var Pp=Object.defineProperty;var kp=(d,b,A)=>b in d?Pp(d,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):d[b]=A;var Hn=(d,b,A)=>(kp(d,typeof b!="symbol"?b+"":b,A),A);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 x of w)if(x.type==="childList")for(const S of x.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&C(S)}).observe(document,{childList:!0,subtree:!0});function A(w){const x={};return w.integrity&&(x.integrity=w.integrity),w.referrerPolicy&&(x.referrerPolicy=w.referrerPolicy),w.crossOrigin==="use-credentials"?x.credentials="include":w.crossOrigin==="anonymous"?x.credentials="omit":x.credentials="same-origin",x}function C(w){if(w.ep)return;w.ep=!0;const x=A(w);fetch(w.href,x)}})();const Lato="",FiraCode="",index$1="",common$1="",icon$2="",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$1="",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 A=Object.create(null),C=d.split(",");for(let w=0;w!!A[w.toLowerCase()]:w=>!!A[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 A=d.indexOf(b);A>-1&&d.splice(A,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 A=>b[A]||(b[A]=d(A))},camelizeRE$1=/-(\w)/g,camelize$1=cacheStringFunction(d=>d.replace(camelizeRE$1,(b,A)=>A?A.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 A=0;A{Object.defineProperty(d,b,{configurable:!0,enumerable:!1,value:A})},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 A=0;A{if(A){const C=A.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 A=0;AisString$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((A,[C,w])=>(A["".concat(C," =>")]=w,A),{})}: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 A=activeEffectScope;try{return activeEffectScope=this,b()}finally{activeEffectScope=A}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(b){if(this._active){let A,C;for(A=0,C=this.effects.length;A{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 A=0;for(let C=0;C{(D==="length"||D>=P)&&E.push(B)})}else switch(A!==void 0&&E.push(S.get(A)),b){case"add":isArray$9(d)?isIntegerKey(A)&&E.push(S.get("length")):(E.push(S.get(ITERATE_KEY)),isMap$1(d)&&E.push(S.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$9(d)||(E.push(S.get(ITERATE_KEY)),isMap$1(d)&&E.push(S.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(d)&&E.push(S.get(ITERATE_KEY));break}if(E.length===1)E[0]&&triggerEffects(E[0]);else{const P=[];for(const B of E)B&&P.push(...B);triggerEffects(createDep(P))}}function triggerEffects(d,b){const A=isArray$9(d)?d:[...d];for(const C of A)C.computed&&triggerEffect(C);for(const C of A)C.computed||triggerEffect(C)}function triggerEffect(d,b){(d!==activeEffect||d.allowRecurse)&&(d.scheduler?d.scheduler():d.run())}function getDepFromReactive(d,b){var A;return(A=targetMap.get(d))==null?void 0:A.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(...A){const C=toRaw(this);for(let x=0,S=this.length;x{d[b]=function(...A){pauseTracking();const C=toRaw(this)[b].apply(this,A);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,x){if(w==="__v_isReactive")return!d;if(w==="__v_isReadonly")return d;if(w==="__v_isShallow")return b;if(w==="__v_raw"&&x===(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,x);if(w==="hasOwnProperty")return hasOwnProperty$e}const E=Reflect.get(C,w,x);return(isSymbol$2(w)?builtInSymbols.has(w):isNonTrackableKeys(w))||(d||track(C,"get",w),b)?E:isRef(E)?S&&isIntegerKey(w)?E:E.value:isObject$6(E)?d?readonly(E):reactive(E):E}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(d=!1){return function(A,C,w,x){let S=A[C];if(isReadonly(S)&&isRef(S)&&!isRef(w))return!1;if(!d&&(!isShallow(w)&&!isReadonly(w)&&(S=toRaw(S),w=toRaw(w)),!isArray$9(A)&&isRef(S)&&!isRef(w)))return S.value=w,!0;const E=isArray$9(A)&&isIntegerKey(C)?Number(C)d,getProto$1=d=>Reflect.getPrototypeOf(d);function get$2(d,b,A=!1,C=!1){d=d.__v_raw;const w=toRaw(d),x=toRaw(b);A||(b!==x&&track(w,"get",b),track(w,"get",x));const{has:S}=getProto$1(w),E=C?toShallow:A?toReadonly:toReactive;if(S.call(w,b))return E(d.get(b));if(S.call(w,x))return E(d.get(x));d!==w&&d.get(b)}function has$4(d,b=!1){const A=this.__v_raw,C=toRaw(A),w=toRaw(d);return b||(d!==w&&track(C,"has",d),track(C,"has",w)),d===w?A.has(d):A.has(d)||A.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 A=toRaw(this),{has:C,get:w}=getProto$1(A);let x=C.call(A,d);x||(d=toRaw(d),x=C.call(A,d));const S=w.call(A,d);return A.set(d,b),x?hasChanged(b,S)&&trigger$1(A,"set",d,b):trigger$1(A,"add",d,b),this}function deleteEntry(d){const b=toRaw(this),{has:A,get:C}=getProto$1(b);let w=A.call(b,d);w||(d=toRaw(d),w=A.call(b,d)),C&&C.call(b,d);const x=b.delete(d);return w&&trigger$1(b,"delete",d,void 0),x}function clear(){const d=toRaw(this),b=d.size!==0,A=d.clear();return b&&trigger$1(d,"clear",void 0,void 0),A}function createForEach(d,b){return function(C,w){const x=this,S=x.__v_raw,E=toRaw(S),P=b?toShallow:d?toReadonly:toReactive;return!d&&track(E,"iterate",ITERATE_KEY),S.forEach((B,D)=>C.call(w,P(B),P(D),x))}}function createIterableMethod(d,b,A){return function(...C){const w=this.__v_raw,x=toRaw(w),S=isMap$1(x),E=d==="entries"||d===Symbol.iterator&&S,P=d==="keys"&&S,B=w[d](...C),D=A?toShallow:b?toReadonly:toReactive;return!b&&track(x,"iterate",P?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:k,done:I}=B.next();return I?{value:k,done:I}:{value:E?[D(k[0]),D(k[1])]:D(k),done:I}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(d){return function(...b){return d==="delete"?!1:this}}function createInstrumentations(){const d={get(x){return get$2(this,x)},get size(){return size$1(this)},has:has$4,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},b={get(x){return get$2(this,x,!1,!0)},get size(){return size$1(this)},has:has$4,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},A={get(x){return get$2(this,x,!0)},get size(){return size$1(this,!0)},has(x){return has$4.call(this,x,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},C={get(x){return get$2(this,x,!0,!0)},get size(){return size$1(this,!0)},has(x){return has$4.call(this,x,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(x=>{d[x]=createIterableMethod(x,!1,!1),A[x]=createIterableMethod(x,!0,!1),b[x]=createIterableMethod(x,!1,!0),C[x]=createIterableMethod(x,!0,!0)}),[d,A,b,C]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(d,b){const A=b?d?shallowReadonlyInstrumentations:shallowInstrumentations:d?readonlyInstrumentations:mutableInstrumentations;return(C,w,x)=>w==="__v_isReactive"?!d:w==="__v_isReadonly"?d:w==="__v_raw"?C:Reflect.get(hasOwn$2(A,w)&&w in C?A:C,w,x)}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,A,C,w){if(!isObject$6(d)||d.__v_raw&&!(b&&d.__v_isReactive))return d;const x=w.get(d);if(x)return x;const S=getTargetType(d);if(S===0)return d;const E=new Proxy(d,S===2?C:A);return w.set(d,E),E}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 A=d.dep;A&&triggerEffects(A)}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,A){this.__v_isShallow=A,this.dep=void 0,this.__v_isRef=!0,this._rawValue=A?b:toRaw(b),this._value=A?b:toReactive(b)}get value(){return trackRefValue(this),this._value}set value(b){const A=this.__v_isShallow||isShallow(b)||isReadonly(b);b=A?b:toRaw(b),hasChanged(b,this._rawValue)&&(this._rawValue=b,this._value=A?b:toReactive(b),triggerRefValue(this))}}function unref(d){return isRef(d)?d.value:d}const shallowUnwrapHandlers={get:(d,b,A)=>unref(Reflect.get(d,b,A)),set:(d,b,A,C)=>{const w=d[b];return isRef(w)&&!isRef(A)?(w.value=A,!0):Reflect.set(d,b,A,C)}};function proxyRefs(d){return isReactive(d)?d:new Proxy(d,shallowUnwrapHandlers)}class ObjectRefImpl{constructor(b,A,C){this._object=b,this._key=A,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(d,b,A){return isRef(d)?d:isFunction$5(d)?new GetterRefImpl(d):isObject$6(d)&&arguments.length>1?propertyToRef(d,b,A):ref(d)}function propertyToRef(d,b,A){const C=d[b];return isRef(C)?C:new ObjectRefImpl(d,b,A)}class ComputedRefImpl{constructor(b,A,C,w){this._setter=A,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,A=!1){let C,w;const x=isFunction$5(d);return x?(C=d,w=NOOP):(C=d.get,w=d.set),new ComputedRefImpl(C,w,x||!w,A)}function warn$4(d,...b){}function callWithErrorHandling(d,b,A,C){let w;try{w=C?d(...C):d()}catch(x){handleError(x,b,A)}return w}function callWithAsyncErrorHandling(d,b,A,C){if(isFunction$5(d)){const x=callWithErrorHandling(d,b,A,C);return x&&isPromise$1(x)&&x.catch(S=>{handleError(S,b,A)}),x}const w=[];for(let x=0;x>>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(A)-getId(C)),postFlushIndex=0;postFlushIndexd.id==null?1/0:d.id,comparator=(d,b)=>{const A=getId(d)-getId(b);if(A===0){if(d.pre&&!b.pre)return-1;if(b.pre&&!d.pre)return 1}return A};function flushJobs(d){isFlushPending=!1,isFlushing=!0,queue$2.sort(comparator);const b=NOOP;try{for(flushIndex=0;flushIndexisString$2($)?$.trim():$)),k&&(w=A.map(looseToNumber))}let E,P=C[E=toHandlerKey(b)]||C[E=toHandlerKey(camelize$1(b))];!P&&x&&(P=C[E=toHandlerKey(hyphenate(b))]),P&&callWithAsyncErrorHandling(P,d,6,w);const B=C[E+"Once"];if(B){if(!d.emitted)d.emitted={};else if(d.emitted[E])return;d.emitted[E]=!0,callWithAsyncErrorHandling(B,d,6,w)}}function normalizeEmitsOptions(d,b,A=!1){const C=b.emitsCache,w=C.get(d);if(w!==void 0)return w;const x=d.emits;let S={},E=!1;if(!isFunction$5(d)){const P=B=>{const D=normalizeEmitsOptions(B,b,!0);D&&(E=!0,extend$2(S,D))};!A&&b.mixins.length&&b.mixins.forEach(P),d.extends&&P(d.extends),d.mixins&&d.mixins.forEach(P)}return!x&&!E?(isObject$6(d)&&C.set(d,null),null):(isArray$9(x)?x.forEach(P=>S[P]=null):extend$2(S,x),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,A){if(!b||d._n)return d;const C=(...w)=>{C._d&&setBlockTracking(-1);const x=setCurrentRenderingInstance(b);let S;try{S=d(...w)}finally{setCurrentRenderingInstance(x),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:A,proxy:C,withProxy:w,props:x,propsOptions:[S],slots:E,attrs:P,emit:B,render:D,renderCache:k,data:I,setupState:$,ctx:M,inheritAttrs:L}=d;let H,z;const Q=setCurrentRenderingInstance(d);try{if(A.shapeFlag&4){const V=w||C;H=normalizeVNode(D.call(V,V,k,x,$,I,M)),z=P}else{const V=b;H=normalizeVNode(V.length>1?V(x,{attrs:P,slots:E,emit:B}):V(x,null)),z=b.props?P:getFunctionalFallthrough(P)}}catch(V){blockStack.length=0,handleError(V,d,1),H=createVNode(Comment)}let q=H;if(z&&L!==!1){const V=Object.keys(z),{shapeFlag:U}=q;V.length&&U&7&&(S&&V.some(isModelListener)&&(z=filterModelListeners(z,S)),q=cloneVNode(q,z))}return A.dirs&&(q=cloneVNode(q),q.dirs=q.dirs?q.dirs.concat(A.dirs):A.dirs),A.transition&&(q.transition=A.transition),H=q,setCurrentRenderingInstance(Q),H}const getFunctionalFallthrough=d=>{let b;for(const A in d)(A==="class"||A==="style"||isOn(A))&&((b||(b={}))[A]=d[A]);return b},filterModelListeners=(d,b)=>{const A={};for(const C in d)(!isModelListener(C)||!(C.slice(9)in b))&&(A[C]=d[C]);return A};function shouldUpdateComponent(d,b,A){const{props:C,children:w,component:x}=d,{props:S,children:E,patchFlag:P}=b,B=x.emitsOptions;if(b.dirs||b.transition)return!0;if(A&&P>=0){if(P&1024)return!0;if(P&16)return C?hasPropsChanged(C,S,B):!!S;if(P&8){const D=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,A){return doWatch(d,b,A)}function doWatch(d,b,{immediate:A,deep:C,flush:w,onTrack:x,onTrigger:S}=EMPTY_OBJ){var E;const P=getCurrentScope()===((E=currentInstance)==null?void 0:E.scope)?currentInstance:null;let B,D=!1,k=!1;if(isRef(d)?(B=()=>d.value,D=isShallow(d)):isReactive(d)?(B=()=>d,C=!0):isArray$9(d)?(k=!0,D=d.some(V=>isReactive(V)||isShallow(V)),B=()=>d.map(V=>{if(isRef(V))return V.value;if(isReactive(V))return traverse(V);if(isFunction$5(V))return callWithErrorHandling(V,P,2)})):isFunction$5(d)?b?B=()=>callWithErrorHandling(d,P,2):B=()=>{if(!(P&&P.isUnmounted))return I&&I(),callWithAsyncErrorHandling(d,P,3,[$])}:B=NOOP,b&&C){const V=B;B=()=>traverse(V())}let I,$=V=>{I=Q.onStop=()=>{callWithErrorHandling(V,P,4)}},M;if(isInSSRComponentSetup)if($=NOOP,b?A&&callWithAsyncErrorHandling(b,P,3,[B(),k?[]:void 0,$]):B(),w==="sync"){const V=useSSRContext();M=V.__watcherHandles||(V.__watcherHandles=[])}else return NOOP;let L=k?new Array(d.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const H=()=>{if(Q.active)if(b){const V=Q.run();(C||D||(k?V.some((U,W)=>hasChanged(U,L[W])):hasChanged(V,L)))&&(I&&I(),callWithAsyncErrorHandling(b,P,3,[V,L===INITIAL_WATCHER_VALUE?void 0:k&&L[0]===INITIAL_WATCHER_VALUE?[]:L,$]),L=V)}else Q.run()};H.allowRecurse=!!b;let z;w==="sync"?z=H:w==="post"?z=()=>queuePostRenderEffect(H,P&&P.suspense):(H.pre=!0,P&&(H.id=P.uid),z=()=>queueJob(H));const Q=new ReactiveEffect(B,z);b?A?H():L=Q.run():w==="post"?queuePostRenderEffect(Q.run.bind(Q),P&&P.suspense):Q.run();const q=()=>{Q.stop(),P&&P.scope&&remove$6(P.scope.effects,Q)};return M&&M.push(q),q}function instanceWatch(d,b,A){const C=this.proxy,w=isString$2(d)?d.includes(".")?createPathGetter(C,d):()=>C[d]:d.bind(C,C);let x;isFunction$5(b)?x=b:(x=b.handler,A=b);const S=currentInstance;setCurrentInstance(this);const E=doWatch(w,x.bind(C),A);return S?setCurrentInstance(S):unsetCurrentInstance(),E}function createPathGetter(d,b){const A=b.split(".");return()=>{let C=d;for(let w=0;w{traverse(A,b)});else if(isPlainObject$3(d))for(const A in d)traverse(d[A],b);return d}function withDirectives(d,b){const A=currentRenderingInstance;if(A===null)return d;const C=getExposeProxy(A)||A.proxy,w=d.dirs||(d.dirs=[]);for(let x=0;x{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 A=getCurrentInstance(),C=useTransitionState();let w;return()=>{const x=b.default&&getTransitionRawChildren(b.default(),!0);if(!x||!x.length)return;let S=x[0];if(x.length>1){for(const L of x)if(L.type!==Comment){S=L;break}}const E=toRaw(d),{mode:P}=E;if(C.isLeaving)return emptyPlaceholder(S);const B=getKeepAliveChild(S);if(!B)return emptyPlaceholder(S);const D=resolveTransitionHooks(B,E,C,A);setTransitionHooks(B,D);const k=A.subTree,I=k&&getKeepAliveChild(k);let $=!1;const{getTransitionKey:M}=B.type;if(M){const L=M();w===void 0?w=L:L!==w&&(w=L,$=!0)}if(I&&I.type!==Comment&&(!isSameVNodeType(B,I)||$)){const L=resolveTransitionHooks(I,E,C,A);if(setTransitionHooks(I,L),P==="out-in")return C.isLeaving=!0,L.afterLeave=()=>{C.isLeaving=!1,A.update.active!==!1&&A.update()},emptyPlaceholder(S);P==="in-out"&&B.type!==Comment&&(L.delayLeave=(H,z,Q)=>{const q=getLeavingNodesForType(C,I);q[String(I.key)]=I,H._leaveCb=()=>{z(),H._leaveCb=void 0,delete D.delayedLeave},D.delayedLeave=Q})}return S}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(d,b){const{leavingVNodes:A}=d;let C=A.get(b.type);return C||(C=Object.create(null),A.set(b.type,C)),C}function resolveTransitionHooks(d,b,A,C){const{appear:w,mode:x,persisted:S=!1,onBeforeEnter:E,onEnter:P,onAfterEnter:B,onEnterCancelled:D,onBeforeLeave:k,onLeave:I,onAfterLeave:$,onLeaveCancelled:M,onBeforeAppear:L,onAppear:H,onAfterAppear:z,onAppearCancelled:Q}=b,q=String(d.key),V=getLeavingNodesForType(A,d),U=(Z,te)=>{Z&&callWithAsyncErrorHandling(Z,C,9,te)},W=(Z,te)=>{const ne=te[1];U(Z,te),isArray$9(Z)?Z.every(ue=>ue.length<=1)&&ne():Z.length<=1&&ne()},K={mode:x,persisted:S,beforeEnter(Z){let te=E;if(!A.isMounted)if(w)te=L||E;else return;Z._leaveCb&&Z._leaveCb(!0);const ne=V[q];ne&&isSameVNodeType(d,ne)&&ne.el._leaveCb&&ne.el._leaveCb(),U(te,[Z])},enter(Z){let te=P,ne=B,ue=D;if(!A.isMounted)if(w)te=H||P,ne=z||B,ue=Q||D;else return;let X=!1;const se=Z._enterCb=he=>{X||(X=!0,he?U(ue,[Z]):U(ne,[Z]),K.delayedLeave&&K.delayedLeave(),Z._enterCb=void 0)};te?W(te,[Z,se]):se()},leave(Z,te){const ne=String(d.key);if(Z._enterCb&&Z._enterCb(!0),A.isUnmounting)return te();U(k,[Z]);let ue=!1;const X=Z._leaveCb=se=>{ue||(ue=!0,te(),se?U(M,[Z]):U($,[Z]),Z._leaveCb=void 0,V[ne]===d&&delete V[ne])};V[ne]=d,I?W(I,[Z,X]):X()},clone(Z){return resolveTransitionHooks(Z,b,A,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,A){let C=[],w=0;for(let x=0;x1)for(let x=0;xextend$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,A=currentInstance){const C=d.__wdc||(d.__wdc=()=>{let w=A;for(;w;){if(w.isDeactivated)return;w=w.parent}return d()});if(injectHook(b,C,A),A){let w=A.parent;for(;w&&w.parent;)isKeepAlive(w.parent.vnode)&&injectToKeepAliveRoot(C,b,A,w),w=w.parent}}function injectToKeepAliveRoot(d,b,A,C){const w=injectHook(b,d,C,!0);onUnmounted(()=>{remove$6(C[b],w)},A)}function injectHook(d,b,A=currentInstance,C=!1){if(A){const w=A[d]||(A[d]=[]),x=b.__weh||(b.__weh=(...S)=>{if(A.isUnmounted)return;pauseTracking(),setCurrentInstance(A);const E=callWithAsyncErrorHandling(b,A,d,S);return unsetCurrentInstance(),resetTracking(),E});return C?w.unshift(x):w.push(x),x}}const createHook=d=>(b,A=currentInstance)=>(!isInSSRComponentSetup||d==="sp")&&injectHook(d,(...C)=>b(...C),A),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,A=!0,C=!1){const w=currentRenderingInstance||currentInstance;if(w){const x=w.type;if(d===COMPONENTS){const E=getComponentName(x,!1);if(E&&(E===b||E===camelize$1(b)||E===capitalize(camelize$1(b))))return x}const S=resolve(w[d]||x[d],b)||resolve(w.appContext[d],b);return!S&&C?x:S}}function resolve(d,b){return d&&(d[b]||d[camelize$1(b)]||d[capitalize(camelize$1(b))])}function renderSlot(d,b,A={},C,w){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return b!=="default"&&(A.name=b),createVNode("slot",A,C&&C());let x=d[b];x&&x._c&&(x._d=!1),openBlock();const S=x&&ensureValidVNode$1(x(A)),E=createBlock(Fragment,{key:A.key||S&&S.key||"_".concat(b)},S||(C?C():[]),S&&d._===1?64:-2);return!w&&E.scopeId&&(E.slotScopeIds=[E.scopeId+"-s"]),x&&x._c&&(x._d=!0),E}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:A,setupState:C,data:w,props:x,accessCache:S,type:E,appContext:P}=d;let B;if(b[0]!=="$"){const $=S[b];if($!==void 0)switch($){case 1:return C[b];case 2:return w[b];case 4:return A[b];case 3:return x[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((B=d.propsOptions[0])&&hasOwn$2(B,b))return S[b]=3,x[b];if(A!==EMPTY_OBJ&&hasOwn$2(A,b))return S[b]=4,A[b];shouldCacheAccess&&(S[b]=0)}}const D=publicPropertiesMap[b];let k,I;if(D)return b==="$attrs"&&track(d,"get",b),D(d);if((k=E.__cssModules)&&(k=k[b]))return k;if(A!==EMPTY_OBJ&&hasOwn$2(A,b))return S[b]=4,A[b];if(I=P.config.globalProperties,hasOwn$2(I,b))return I[b]},set({_:d},b,A){const{data:C,setupState:w,ctx:x}=d;return hasSetupBinding(w,b)?(w[b]=A,!0):C!==EMPTY_OBJ&&hasOwn$2(C,b)?(C[b]=A,!0):hasOwn$2(d.props,b)||b[0]==="$"&&b.slice(1)in d?!1:(x[b]=A,!0)},has({_:{data:d,setupState:b,accessCache:A,ctx:C,appContext:w,propsOptions:x}},S){let E;return!!A[S]||d!==EMPTY_OBJ&&hasOwn$2(d,S)||hasSetupBinding(b,S)||(E=x[0])&&hasOwn$2(E,S)||hasOwn$2(C,S)||hasOwn$2(publicPropertiesMap,S)||hasOwn$2(w.config.globalProperties,S)},defineProperty(d,b,A){return A.get!=null?d._.accessCache[b]=0:hasOwn$2(A,"value")&&this.set(d,b,A.value,null),Reflect.defineProperty(d,b,A)}};function normalizePropsOrEmits(d){return isArray$9(d)?d.reduce((b,A)=>(b[A]=null,b),{}):d}let shouldCacheAccess=!0;function applyOptions(d){const b=resolveMergedOptions(d),A=d.proxy,C=d.ctx;shouldCacheAccess=!1,b.beforeCreate&&callHook$1(b.beforeCreate,d,"bc");const{data:w,computed:x,methods:S,watch:E,provide:P,inject:B,created:D,beforeMount:k,mounted:I,beforeUpdate:$,updated:M,activated:L,deactivated:H,beforeDestroy:z,beforeUnmount:Q,destroyed:q,unmounted:V,render:U,renderTracked:W,renderTriggered:K,errorCaptured:Z,serverPrefetch:te,expose:ne,inheritAttrs:ue,components:X,directives:se,filters:he}=b;if(B&&resolveInjections(B,C,null),S)for(const de in S){const be=S[de];isFunction$5(be)&&(C[de]=be.bind(A))}if(w){const de=w.call(A,A);isObject$6(de)&&(d.data=reactive(de))}if(shouldCacheAccess=!0,x)for(const de in x){const be=x[de],ge=isFunction$5(be)?be.bind(A,A):isFunction$5(be.get)?be.get.bind(A,A):NOOP,Se=!isFunction$5(be)&&isFunction$5(be.set)?be.set.bind(A):NOOP,je=computed({get:ge,set:Se});Object.defineProperty(C,de,{enumerable:!0,configurable:!0,get:()=>je.value,set:Ye=>je.value=Ye})}if(E)for(const de in E)createWatcher(E[de],C,A,de);if(P){const de=isFunction$5(P)?P.call(A):P;Reflect.ownKeys(de).forEach(be=>{provide(be,de[be])})}D&&callHook$1(D,d,"c");function ie(de,be){isArray$9(be)?be.forEach(ge=>de(ge.bind(A))):be&&de(be.bind(A))}if(ie(onBeforeMount,k),ie(onMounted,I),ie(onBeforeUpdate,$),ie(onUpdated,M),ie(onActivated,L),ie(onDeactivated,H),ie(onErrorCaptured,Z),ie(onRenderTracked,W),ie(onRenderTriggered,K),ie(onBeforeUnmount,Q),ie(onUnmounted,V),ie(onServerPrefetch,te),isArray$9(ne))if(ne.length){const de=d.exposed||(d.exposed={});ne.forEach(be=>{Object.defineProperty(de,be,{get:()=>A[be],set:ge=>A[be]=ge})})}else d.exposed||(d.exposed={});U&&d.render===NOOP&&(d.render=U),ue!=null&&(d.inheritAttrs=ue),X&&(d.components=X),se&&(d.directives=se)}function resolveInjections(d,b,A=NOOP){isArray$9(d)&&(d=normalizeInject(d));for(const C in d){const w=d[C];let x;isObject$6(w)?"default"in w?x=inject(w.from||C,w.default,!0):x=inject(w.from||C):x=inject(w),isRef(x)?Object.defineProperty(b,C,{enumerable:!0,configurable:!0,get:()=>x.value,set:S=>x.value=S}):b[C]=x}}function callHook$1(d,b,A){callWithAsyncErrorHandling(isArray$9(d)?d.map(C=>C.bind(b.proxy)):d.bind(b.proxy),b,A)}function createWatcher(d,b,A,C){const w=C.includes(".")?createPathGetter(A,C):()=>A[C];if(isString$2(d)){const x=b[d];isFunction$5(x)&&watch(w,x)}else if(isFunction$5(d))watch(w,d.bind(A));else if(isObject$6(d))if(isArray$9(d))d.forEach(x=>createWatcher(x,b,A,C));else{const x=isFunction$5(d.handler)?d.handler.bind(A):b[d.handler];isFunction$5(x)&&watch(w,x,d)}}function resolveMergedOptions(d){const b=d.type,{mixins:A,extends:C}=b,{mixins:w,optionsCache:x,config:{optionMergeStrategies:S}}=d.appContext,E=x.get(b);let P;return E?P=E:!w.length&&!A&&!C?P=b:(P={},w.length&&w.forEach(B=>mergeOptions$1(P,B,S,!0)),mergeOptions$1(P,b,S)),isObject$6(b)&&x.set(b,P),P}function mergeOptions$1(d,b,A,C=!1){const{mixins:w,extends:x}=b;x&&mergeOptions$1(d,x,A,!0),w&&w.forEach(S=>mergeOptions$1(d,S,A,!0));for(const S in b)if(!(C&&S==="expose")){const E=internalOptionMergeStrats[S]||A&&A[S];d[S]=E?E(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 A=0;A1)return A&&isFunction$5(b)?b.call(C&&C.proxy):b}}function initProps(d,b,A,C=!1){const w={},x={};def(x,InternalObjectKey,1),d.propsDefaults=Object.create(null),setFullProps(d,b,w,x);for(const S in d.propsOptions[0])S in w||(w[S]=void 0);A?d.props=C?w:shallowReactive(w):d.type.props?d.props=w:d.props=x,d.attrs=x}function updateProps(d,b,A,C){const{props:w,attrs:x,vnode:{patchFlag:S}}=d,E=toRaw(w),[P]=d.propsOptions;let B=!1;if((C||S>0)&&!(S&16)){if(S&8){const D=d.vnode.dynamicProps;for(let k=0;k{P=!0;const[I,$]=normalizePropsOptions(k,b,!0);extend$2(S,I),$&&E.push(...$)};!A&&b.mixins.length&&b.mixins.forEach(D),d.extends&&D(d.extends),d.mixins&&d.mixins.forEach(D)}if(!x&&!P)return isObject$6(d)&&C.set(d,EMPTY_ARR),EMPTY_ARR;if(isArray$9(x))for(let D=0;D-1,$[1]=L<0||M-1||hasOwn$2($,"default"))&&E.push(k)}}}const B=[S,E];return isObject$6(d)&&C.set(d,B),B}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(A=>isSameType(A,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,A)=>{if(b._n)return b;const C=withCtx((...w)=>normalizeSlotValue(b(...w)),A);return C._c=!1,C},normalizeObjectSlots=(d,b,A)=>{const C=d._ctx;for(const w in d){if(isInternalKey(w))continue;const x=d[w];if(isFunction$5(x))b[w]=normalizeSlot$1(w,x,C);else if(x!=null){const S=normalizeSlotValue(x);b[w]=()=>S}}},normalizeVNodeSlots=(d,b)=>{const A=normalizeSlotValue(b);d.slots.default=()=>A},initSlots=(d,b)=>{if(d.vnode.shapeFlag&32){const A=b._;A?(d.slots=toRaw(b),def(b,"_",A)):normalizeObjectSlots(b,d.slots={})}else d.slots={},b&&normalizeVNodeSlots(d,b);def(d.slots,InternalObjectKey,1)},updateSlots=(d,b,A)=>{const{vnode:C,slots:w}=d;let x=!0,S=EMPTY_OBJ;if(C.shapeFlag&32){const E=b._;E?A&&E===1?x=!1:(extend$2(w,b),!A&&E===1&&delete w._):(x=!b.$stable,normalizeObjectSlots(b,w)),S=b}else b&&(normalizeVNodeSlots(d,b),S={default:1});if(x)for(const E in w)!isInternalKey(E)&&!(E in S)&&delete w[E]};function setRef(d,b,A,C,w=!1){if(isArray$9(d)){d.forEach((I,$)=>setRef(I,b&&(isArray$9(b)?b[$]:b),A,C,w));return}if(isAsyncWrapper(C)&&!w)return;const x=C.shapeFlag&4?getExposeProxy(C.component)||C.component.proxy:C.el,S=w?null:x,{i:E,r:P}=d,B=b&&b.r,D=E.refs===EMPTY_OBJ?E.refs={}:E.refs,k=E.setupState;if(B!=null&&B!==P&&(isString$2(B)?(D[B]=null,hasOwn$2(k,B)&&(k[B]=null)):isRef(B)&&(B.value=null)),isFunction$5(P))callWithErrorHandling(P,E,12,[S,D]);else{const I=isString$2(P),$=isRef(P);if(I||$){const M=()=>{if(d.f){const L=I?hasOwn$2(k,P)?k[P]:D[P]:P.value;w?isArray$9(L)&&remove$6(L,x):isArray$9(L)?L.includes(x)||L.push(x):I?(D[P]=[x],hasOwn$2(k,P)&&(k[P]=D[P])):(P.value=[x],d.k&&(D[d.k]=P.value))}else I?(D[P]=S,hasOwn$2(k,P)&&(k[P]=S)):$&&(P.value=S,d.k&&(D[d.k]=S))};S?(M.id=-1,queuePostRenderEffect(M,A)):M()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(d){return baseCreateRenderer(d)}function baseCreateRenderer(d,b){const A=getGlobalThis$1();A.__VUE__=!0;const{insert:C,remove:w,patchProp:x,createElement:S,createText:E,createComment:P,setText:B,setElementText:D,parentNode:k,nextSibling:I,setScopeId:$=NOOP,insertStaticContent:M}=d,L=(Te,_e,He,Je=null,Ke=null,Ie=null,Fe=!1,ae=null,ee=!!_e.dynamicChildren)=>{if(Te===_e)return;Te&&!isSameVNodeType(Te,_e)&&(Je=Me(Te),Ye(Te,Ke,Ie,!0),Te=null),_e.patchFlag===-2&&(ee=!1,_e.dynamicChildren=null);const{type:J,ref:le,shapeFlag:ve}=_e;switch(J){case Text:H(Te,_e,He,Je);break;case Comment:z(Te,_e,He,Je);break;case Static:Te==null&&Q(_e,He,Je,Fe);break;case Fragment:X(Te,_e,He,Je,Ke,Ie,Fe,ae,ee);break;default:ve&1?U(Te,_e,He,Je,Ke,Ie,Fe,ae,ee):ve&6?se(Te,_e,He,Je,Ke,Ie,Fe,ae,ee):(ve&64||ve&128)&&J.process(Te,_e,He,Je,Ke,Ie,Fe,ae,ee,Qe)}le!=null&&Ke&&setRef(le,Te&&Te.ref,Ie,_e||Te,!_e)},H=(Te,_e,He,Je)=>{if(Te==null)C(_e.el=E(_e.children),He,Je);else{const Ke=_e.el=Te.el;_e.children!==Te.children&&B(Ke,_e.children)}},z=(Te,_e,He,Je)=>{Te==null?C(_e.el=P(_e.children||""),He,Je):_e.el=Te.el},Q=(Te,_e,He,Je)=>{[Te.el,Te.anchor]=M(Te.children,_e,He,Je,Te.el,Te.anchor)},q=({el:Te,anchor:_e},He,Je)=>{let Ke;for(;Te&&Te!==_e;)Ke=I(Te),C(Te,He,Je),Te=Ke;C(_e,He,Je)},V=({el:Te,anchor:_e})=>{let He;for(;Te&&Te!==_e;)He=I(Te),w(Te),Te=He;w(_e)},U=(Te,_e,He,Je,Ke,Ie,Fe,ae,ee)=>{Fe=Fe||_e.type==="svg",Te==null?W(_e,He,Je,Ke,Ie,Fe,ae,ee):te(Te,_e,Ke,Ie,Fe,ae,ee)},W=(Te,_e,He,Je,Ke,Ie,Fe,ae)=>{let ee,J;const{type:le,props:ve,shapeFlag:Be,transition:Ue,dirs:rt}=Te;if(ee=Te.el=S(Te.type,Ie,ve&&ve.is,ve),Be&8?D(ee,Te.children):Be&16&&Z(Te.children,ee,null,Je,Ke,Ie&&le!=="foreignObject",Fe,ae),rt&&invokeDirectiveHook(Te,null,Je,"created"),K(ee,Te,Te.scopeId,Fe,Je),ve){for(const tt in ve)tt!=="value"&&!isReservedProp(tt)&&x(ee,tt,null,ve[tt],Ie,Te.children,Je,Ke,lt);"value"in ve&&x(ee,"value",null,ve.value),(J=ve.onVnodeBeforeMount)&&invokeVNodeHook(J,Je,Te)}rt&&invokeDirectiveHook(Te,null,Je,"beforeMount");const pt=(!Ke||Ke&&!Ke.pendingBranch)&&Ue&&!Ue.persisted;pt&&Ue.beforeEnter(ee),C(ee,_e,He),((J=ve&&ve.onVnodeMounted)||pt||rt)&&queuePostRenderEffect(()=>{J&&invokeVNodeHook(J,Je,Te),pt&&Ue.enter(ee),rt&&invokeDirectiveHook(Te,null,Je,"mounted")},Ke)},K=(Te,_e,He,Je,Ke)=>{if(He&&$(Te,He),Je)for(let Ie=0;Ie{for(let J=ee;J{const ae=_e.el=Te.el;let{patchFlag:ee,dynamicChildren:J,dirs:le}=_e;ee|=Te.patchFlag&16;const ve=Te.props||EMPTY_OBJ,Be=_e.props||EMPTY_OBJ;let Ue;He&&toggleRecurse(He,!1),(Ue=Be.onVnodeBeforeUpdate)&&invokeVNodeHook(Ue,He,_e,Te),le&&invokeDirectiveHook(_e,Te,He,"beforeUpdate"),He&&toggleRecurse(He,!0);const rt=Ke&&_e.type!=="foreignObject";if(J?ne(Te.dynamicChildren,J,ae,He,Je,rt,Ie):Fe||be(Te,_e,ae,null,He,Je,rt,Ie,!1),ee>0){if(ee&16)ue(ae,_e,ve,Be,He,Je,Ke);else if(ee&2&&ve.class!==Be.class&&x(ae,"class",null,Be.class,Ke),ee&4&&x(ae,"style",ve.style,Be.style,Ke),ee&8){const pt=_e.dynamicProps;for(let tt=0;tt{Ue&&invokeVNodeHook(Ue,He,_e,Te),le&&invokeDirectiveHook(_e,Te,He,"updated")},Je)},ne=(Te,_e,He,Je,Ke,Ie,Fe)=>{for(let ae=0;ae<_e.length;ae++){const ee=Te[ae],J=_e[ae],le=ee.el&&(ee.type===Fragment||!isSameVNodeType(ee,J)||ee.shapeFlag&70)?k(ee.el):He;L(ee,J,le,null,Je,Ke,Ie,Fe,!0)}},ue=(Te,_e,He,Je,Ke,Ie,Fe)=>{if(He!==Je){if(He!==EMPTY_OBJ)for(const ae in He)!isReservedProp(ae)&&!(ae in Je)&&x(Te,ae,He[ae],null,Fe,_e.children,Ke,Ie,lt);for(const ae in Je){if(isReservedProp(ae))continue;const ee=Je[ae],J=He[ae];ee!==J&&ae!=="value"&&x(Te,ae,J,ee,Fe,_e.children,Ke,Ie,lt)}"value"in Je&&x(Te,"value",He.value,Je.value)}},X=(Te,_e,He,Je,Ke,Ie,Fe,ae,ee)=>{const J=_e.el=Te?Te.el:E(""),le=_e.anchor=Te?Te.anchor:E("");let{patchFlag:ve,dynamicChildren:Be,slotScopeIds:Ue}=_e;Ue&&(ae=ae?ae.concat(Ue):Ue),Te==null?(C(J,He,Je),C(le,He,Je),Z(_e.children,He,le,Ke,Ie,Fe,ae,ee)):ve>0&&ve&64&&Be&&Te.dynamicChildren?(ne(Te.dynamicChildren,Be,He,Ke,Ie,Fe,ae),(_e.key!=null||Ke&&_e===Ke.subTree)&&traverseStaticChildren(Te,_e,!0)):be(Te,_e,He,le,Ke,Ie,Fe,ae,ee)},se=(Te,_e,He,Je,Ke,Ie,Fe,ae,ee)=>{_e.slotScopeIds=ae,Te==null?_e.shapeFlag&512?Ke.ctx.activate(_e,He,Je,Fe,ee):he(_e,He,Je,Ke,Ie,Fe,ee):me(Te,_e,ee)},he=(Te,_e,He,Je,Ke,Ie,Fe)=>{const ae=Te.component=createComponentInstance(Te,Je,Ke);if(isKeepAlive(Te)&&(ae.ctx.renderer=Qe),setupComponent(ae),ae.asyncDep){if(Ke&&Ke.registerDep(ae,ie),!Te.el){const ee=ae.subTree=createVNode(Comment);z(null,ee,_e,He)}return}ie(ae,Te,_e,He,Ke,Ie,Fe)},me=(Te,_e,He)=>{const Je=_e.component=Te.component;if(shouldUpdateComponent(Te,_e,He))if(Je.asyncDep&&!Je.asyncResolved){de(Je,_e,He);return}else Je.next=_e,invalidateJob(Je.update),Je.update();else _e.el=Te.el,Je.vnode=_e},ie=(Te,_e,He,Je,Ke,Ie,Fe)=>{const ae=()=>{if(Te.isMounted){let{next:le,bu:ve,u:Be,parent:Ue,vnode:rt}=Te,pt=le,tt;toggleRecurse(Te,!1),le?(le.el=rt.el,de(Te,le,Fe)):le=rt,ve&&invokeArrayFns(ve),(tt=le.props&&le.props.onVnodeBeforeUpdate)&&invokeVNodeHook(tt,Ue,le,rt),toggleRecurse(Te,!0);const at=renderComponentRoot(Te),Et=Te.subTree;Te.subTree=at,L(Et,at,k(Et.el),Me(Et),Te,Ke,Ie),le.el=at.el,pt===null&&updateHOCHostEl(Te,at.el),Be&&queuePostRenderEffect(Be,Ke),(tt=le.props&&le.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(tt,Ue,le,rt),Ke)}else{let le;const{el:ve,props:Be}=_e,{bm:Ue,m:rt,parent:pt}=Te,tt=isAsyncWrapper(_e);if(toggleRecurse(Te,!1),Ue&&invokeArrayFns(Ue),!tt&&(le=Be&&Be.onVnodeBeforeMount)&&invokeVNodeHook(le,pt,_e),toggleRecurse(Te,!0),ve&&it){const at=()=>{Te.subTree=renderComponentRoot(Te),it(ve,Te.subTree,Te,Ke,null)};tt?_e.type.__asyncLoader().then(()=>!Te.isUnmounted&&at()):at()}else{const at=Te.subTree=renderComponentRoot(Te);L(null,at,He,Je,Te,Ke,Ie),_e.el=at.el}if(rt&&queuePostRenderEffect(rt,Ke),!tt&&(le=Be&&Be.onVnodeMounted)){const at=_e;queuePostRenderEffect(()=>invokeVNodeHook(le,pt,at),Ke)}(_e.shapeFlag&256||pt&&isAsyncWrapper(pt.vnode)&&pt.vnode.shapeFlag&256)&&Te.a&&queuePostRenderEffect(Te.a,Ke),Te.isMounted=!0,_e=He=Je=null}},ee=Te.effect=new ReactiveEffect(ae,()=>queueJob(J),Te.scope),J=Te.update=()=>ee.run();J.id=Te.uid,toggleRecurse(Te,!0),J()},de=(Te,_e,He)=>{_e.component=Te;const Je=Te.vnode.props;Te.vnode=_e,Te.next=null,updateProps(Te,_e.props,Je,He),updateSlots(Te,_e.children,He),pauseTracking(),flushPreFlushCbs(),resetTracking()},be=(Te,_e,He,Je,Ke,Ie,Fe,ae,ee=!1)=>{const J=Te&&Te.children,le=Te?Te.shapeFlag:0,ve=_e.children,{patchFlag:Be,shapeFlag:Ue}=_e;if(Be>0){if(Be&128){Se(J,ve,He,Je,Ke,Ie,Fe,ae,ee);return}else if(Be&256){ge(J,ve,He,Je,Ke,Ie,Fe,ae,ee);return}}Ue&8?(le&16&<(J,Ke,Ie),ve!==J&&D(He,ve)):le&16?Ue&16?Se(J,ve,He,Je,Ke,Ie,Fe,ae,ee):lt(J,Ke,Ie,!0):(le&8&&D(He,""),Ue&16&&Z(ve,He,Je,Ke,Ie,Fe,ae,ee))},ge=(Te,_e,He,Je,Ke,Ie,Fe,ae,ee)=>{Te=Te||EMPTY_ARR,_e=_e||EMPTY_ARR;const J=Te.length,le=_e.length,ve=Math.min(J,le);let Be;for(Be=0;Bele?lt(Te,Ke,Ie,!0,!1,ve):Z(_e,He,Je,Ke,Ie,Fe,ae,ee,ve)},Se=(Te,_e,He,Je,Ke,Ie,Fe,ae,ee)=>{let J=0;const le=_e.length;let ve=Te.length-1,Be=le-1;for(;J<=ve&&J<=Be;){const Ue=Te[J],rt=_e[J]=ee?cloneIfMounted(_e[J]):normalizeVNode(_e[J]);if(isSameVNodeType(Ue,rt))L(Ue,rt,He,null,Ke,Ie,Fe,ae,ee);else break;J++}for(;J<=ve&&J<=Be;){const Ue=Te[ve],rt=_e[Be]=ee?cloneIfMounted(_e[Be]):normalizeVNode(_e[Be]);if(isSameVNodeType(Ue,rt))L(Ue,rt,He,null,Ke,Ie,Fe,ae,ee);else break;ve--,Be--}if(J>ve){if(J<=Be){const Ue=Be+1,rt=UeBe)for(;J<=ve;)Ye(Te[J],Ke,Ie,!0),J++;else{const Ue=J,rt=J,pt=new Map;for(J=rt;J<=Be;J++){const we=_e[J]=ee?cloneIfMounted(_e[J]):normalizeVNode(_e[J]);we.key!=null&&pt.set(we.key,J)}let tt,at=0;const Et=Be-rt+1;let Dt=!1,Mt=0;const kt=new Array(Et);for(J=0;J=Et){Ye(we,Ke,Ie,!0);continue}let pe;if(we.key!=null)pe=pt.get(we.key);else for(tt=rt;tt<=Be;tt++)if(kt[tt-rt]===0&&isSameVNodeType(we,_e[tt])){pe=tt;break}pe===void 0?Ye(we,Ke,Ie,!0):(kt[pe-rt]=J+1,pe>=Mt?Mt=pe:Dt=!0,L(we,_e[pe],He,null,Ke,Ie,Fe,ae,ee),at++)}const It=Dt?getSequence(kt):EMPTY_ARR;for(tt=It.length-1,J=Et-1;J>=0;J--){const we=rt+J,pe=_e[we],ke=we+1{const{el:Ie,type:Fe,transition:ae,children:ee,shapeFlag:J}=Te;if(J&6){je(Te.component.subTree,_e,He,Je);return}if(J&128){Te.suspense.move(_e,He,Je);return}if(J&64){Fe.move(Te,_e,He,Qe);return}if(Fe===Fragment){C(Ie,_e,He);for(let ve=0;veae.enter(Ie),Ke);else{const{leave:ve,delayLeave:Be,afterLeave:Ue}=ae,rt=()=>C(Ie,_e,He),pt=()=>{ve(Ie,()=>{rt(),Ue&&Ue()})};Be?Be(Ie,rt,pt):pt()}else C(Ie,_e,He)},Ye=(Te,_e,He,Je=!1,Ke=!1)=>{const{type:Ie,props:Fe,ref:ae,children:ee,dynamicChildren:J,shapeFlag:le,patchFlag:ve,dirs:Be}=Te;if(ae!=null&&setRef(ae,null,He,Te,!0),le&256){_e.ctx.deactivate(Te);return}const Ue=le&1&&Be,rt=!isAsyncWrapper(Te);let pt;if(rt&&(pt=Fe&&Fe.onVnodeBeforeUnmount)&&invokeVNodeHook(pt,_e,Te),le&6)et(Te.component,He,Je);else{if(le&128){Te.suspense.unmount(He,Je);return}Ue&&invokeDirectiveHook(Te,null,_e,"beforeUnmount"),le&64?Te.type.remove(Te,_e,He,Ke,Qe,Je):J&&(Ie!==Fragment||ve>0&&ve&64)?lt(J,_e,He,!1,!0):(Ie===Fragment&&ve&384||!Ke&&le&16)&<(ee,_e,He),Je&&st(Te)}(rt&&(pt=Fe&&Fe.onVnodeUnmounted)||Ue)&&queuePostRenderEffect(()=>{pt&&invokeVNodeHook(pt,_e,Te),Ue&&invokeDirectiveHook(Te,null,_e,"unmounted")},He)},st=Te=>{const{type:_e,el:He,anchor:Je,transition:Ke}=Te;if(_e===Fragment){ot(He,Je);return}if(_e===Static){V(Te);return}const Ie=()=>{w(He),Ke&&!Ke.persisted&&Ke.afterLeave&&Ke.afterLeave()};if(Te.shapeFlag&1&&Ke&&!Ke.persisted){const{leave:Fe,delayLeave:ae}=Ke,ee=()=>Fe(He,Ie);ae?ae(Te.el,Ie,ee):ee()}else Ie()},ot=(Te,_e)=>{let He;for(;Te!==_e;)He=I(Te),w(Te),Te=He;w(_e)},et=(Te,_e,He)=>{const{bum:Je,scope:Ke,update:Ie,subTree:Fe,um:ae}=Te;Je&&invokeArrayFns(Je),Ke.stop(),Ie&&(Ie.active=!1,Ye(Fe,Te,_e,He)),ae&&queuePostRenderEffect(ae,_e),queuePostRenderEffect(()=>{Te.isUnmounted=!0},_e),_e&&_e.pendingBranch&&!_e.isUnmounted&&Te.asyncDep&&!Te.asyncResolved&&Te.suspenseId===_e.pendingId&&(_e.deps--,_e.deps===0&&_e.resolve())},lt=(Te,_e,He,Je=!1,Ke=!1,Ie=0)=>{for(let Fe=Ie;FeTe.shapeFlag&6?Me(Te.component.subTree):Te.shapeFlag&128?Te.suspense.next():I(Te.anchor||Te.el),Oe=(Te,_e,He)=>{Te==null?_e._vnode&&Ye(_e._vnode,null,null,!0):L(_e._vnode||null,Te,_e,null,null,null,He),flushPreFlushCbs(),flushPostFlushCbs(),_e._vnode=Te},Qe={p:L,um:Ye,m:je,r:st,mt:he,mc:Z,pc:be,pbc:ne,n:Me,o:d};let Ze,it;return b&&([Ze,it]=b(Qe)),{render:Oe,hydrate:Ze,createApp:createAppAPI(Oe,Ze)}}function toggleRecurse({effect:d,update:b},A){d.allowRecurse=b.allowRecurse=A}function traverseStaticChildren(d,b,A=!1){const C=d.children,w=b.children;if(isArray$9(C)&&isArray$9(w))for(let x=0;x>1,d[A[E]]0&&(b[C]=A[x-1]),A[x]=C)}}for(x=A.length,S=A[x-1];x-- >0;)A[x]=S,S=b[S];return A}const isTeleport=d=>d.__isTeleport,isTeleportDisabled=d=>d&&(d.disabled||d.disabled===""),isTargetSVG=d=>typeof SVGElement<"u"&&d instanceof SVGElement,resolveTarget=(d,b)=>{const A=d&&d.to;return isString$2(A)?b?b(A):null:A},TeleportImpl={__isTeleport:!0,process(d,b,A,C,w,x,S,E,P,B){const{mc:D,pc:k,pbc:I,o:{insert:$,querySelector:M,createText:L,createComment:H}}=B,z=isTeleportDisabled(b.props);let{shapeFlag:Q,children:q,dynamicChildren:V}=b;if(d==null){const U=b.el=L(""),W=b.anchor=L("");$(U,A,C),$(W,A,C);const K=b.target=resolveTarget(b.props,M),Z=b.targetAnchor=L("");K&&($(Z,K),S=S||isTargetSVG(K));const te=(ne,ue)=>{Q&16&&D(q,ne,ue,w,x,S,E,P)};z?te(A,W):K&&te(K,Z)}else{b.el=d.el;const U=b.anchor=d.anchor,W=b.target=d.target,K=b.targetAnchor=d.targetAnchor,Z=isTeleportDisabled(d.props),te=Z?A:W,ne=Z?U:K;if(S=S||isTargetSVG(W),V?(I(d.dynamicChildren,V,te,w,x,S,E),traverseStaticChildren(d,b,!0)):P||k(d,b,te,ne,w,x,S,E,!1),z)Z||moveTeleport(b,A,U,B,1);else if((b.props&&b.props.to)!==(d.props&&d.props.to)){const ue=b.target=resolveTarget(b.props,M);ue&&moveTeleport(b,ue,null,B,0)}else Z&&moveTeleport(b,W,K,B,1)}updateCssVars(b)},remove(d,b,A,C,{um:w,o:{remove:x}},S){const{shapeFlag:E,children:P,anchor:B,targetAnchor:D,target:k,props:I}=d;if(k&&x(D),(S||!isTeleportDisabled(I))&&(x(B),E&16))for(let $=0;$0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(d),d}function createElementBlock(d,b,A,C,w,x){return setupBlock(createBaseVNode(d,b,A,C,w,x,!0))}function createBlock(d,b,A,C,w){return setupBlock(createVNode(d,b,A,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:A})=>(typeof d=="number"&&(d=""+d),d!=null?isString$2(d)||isRef(d)||isFunction$5(d)?{i:currentRenderingInstance,r:d,k:b,f:!!A}:d:null);function createBaseVNode(d,b=null,A=null,C=0,w=null,x=d===Fragment?0:1,S=!1,E=!1){const P={__v_isVNode:!0,__v_skip:!0,type:d,props:b,key:b&&normalizeKey(b),ref:b&&normalizeRef(b),scopeId:currentScopeId,slotScopeIds:null,children:A,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:x,patchFlag:C,dynamicProps:w,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return E?(normalizeChildren(P,A),x&128&&d.normalize(P)):A&&(P.shapeFlag|=isString$2(A)?8:16),isBlockTreeEnabled>0&&!S&¤tBlock&&(P.patchFlag>0||x&6)&&P.patchFlag!==32&¤tBlock.push(P),P}const createVNode=_createVNode;function _createVNode(d,b=null,A=null,C=0,w=null,x=!1){if((!d||d===NULL_DYNAMIC_COMPONENT)&&(d=Comment),isVNode(d)){const E=cloneVNode(d,b,!0);return A&&normalizeChildren(E,A),isBlockTreeEnabled>0&&!x&¤tBlock&&(E.shapeFlag&6?currentBlock[currentBlock.indexOf(d)]=E:currentBlock.push(E)),E.patchFlag|=-2,E}if(isClassComponent(d)&&(d=d.__vccOpts),b){b=guardReactiveProps(b);let{class:E,style:P}=b;E&&!isString$2(E)&&(b.class=normalizeClass(E)),isObject$6(P)&&(isProxy(P)&&!isArray$9(P)&&(P=extend$2({},P)),b.style=normalizeStyle(P))}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,A,C,w,S,x,!0)}function guardReactiveProps(d){return d?isProxy(d)||InternalObjectKey in d?extend$2({},d):d:null}function cloneVNode(d,b,A=!1){const{props:C,ref:w,patchFlag:x,children:S}=d,E=b?mergeProps(C||{},b):C;return{__v_isVNode:!0,__v_skip:!0,type:d.type,props:E,key:E&&normalizeKey(E),ref:b&&b.ref?A&&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?x===-1?16:x|16:x,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 A=0;const{shapeFlag:C}=d;if(b==null)b=null;else if(isArray$9(b))A=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{A=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},A=32):(b=String(b),C&64?(A=16,b=[createTextVNode(b)]):A=8);d.children=b,d.shapeFlag|=A}function mergeProps(...d){const b={};for(let A=0;AcurrentInstance||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:A,children:C}=d.vnode,w=isStatefulComponent(d);initProps(d,A,w,b),initSlots(d,C);const x=w?setupStatefulComponent(d,b):void 0;return isInSSRComponentSetup=!1,x}function setupStatefulComponent(d,b){const A=d.type;d.accessCache=Object.create(null),d.proxy=markRaw(new Proxy(d.ctx,PublicInstanceProxyHandlers));const{setup:C}=A;if(C){const w=d.setupContext=C.length>1?createSetupContext(d):null;setCurrentInstance(d),pauseTracking();const x=callWithErrorHandling(C,d,0,[d.props,w]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(x)){if(x.then(unsetCurrentInstance,unsetCurrentInstance),b)return x.then(S=>{handleSetupResult(d,S,b)}).catch(S=>{handleError(S,d,0)});d.asyncDep=x}else handleSetupResult(d,x,b)}else finishComponentSetup(d,b)}function handleSetupResult(d,b,A){isFunction$5(b)?d.type.__ssrInlineRender?d.ssrRender=b:d.render=b:isObject$6(b)&&(d.setupState=proxyRefs(b)),finishComponentSetup(d,A)}let compile;function finishComponentSetup(d,b,A){const C=d.type;if(!d.render){if(!b&&compile&&!C.render){const w=C.template||resolveMergedOptions(d).template;if(w){const{isCustomElement:x,compilerOptions:S}=d.appContext.config,{delimiters:E,compilerOptions:P}=C,B=extend$2(extend$2({isCustomElement:x,delimiters:E},S),P);C.render=compile(w,B)}}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,A){return track(d,"get","$attrs"),b[A]}}))}function createSetupContext(d){const b=A=>{d.exposed=A||{}};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,A){if(A in b)return b[A];if(A in publicPropertiesMap)return publicPropertiesMap[A](d)},has(b,A){return A in b||A 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,A){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?A=Array.prototype.slice.call(arguments,2):C===3&&isVNode(A)&&(A=[A]),createVNode(d,b,A))}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,A)=>{b.insertBefore(d,A||null)},remove:d=>{const b=d.parentNode;b&&b.removeChild(d)},createElement:(d,b,A,C)=>{const w=b?doc$2.createElementNS(svgNS$1,d):doc$2.createElement(d,A?{is:A}: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,A,C,w,x){const S=A?A.previousSibling:b.lastChild;if(w&&(w===x||w.nextSibling))for(;b.insertBefore(w.cloneNode(!0),A),!(w===x||!(w=w.nextSibling)););else{templateContainer.innerHTML=C?"".concat(d,""):d;const E=templateContainer.content;if(C){const P=E.firstChild;for(;P.firstChild;)E.appendChild(P.firstChild);E.removeChild(P)}b.insertBefore(E,A)}return[S?S.nextSibling:b.firstChild,A?A.previousSibling:b.lastChild]}};function patchClass(d,b,A){const C=d._vtc;C&&(b=(b?[b,...C]:[...C]).join(" ")),b==null?d.removeAttribute("class"):A?d.setAttribute("class",b):d.className=b}function patchStyle(d,b,A){const C=d.style,w=isString$2(A);if(A&&!w){if(b&&!isString$2(b))for(const x in b)A[x]==null&&setStyle(C,x,"");for(const x in A)setStyle(C,x,A[x])}else{const x=C.display;w?b!==A&&(C.cssText=A):b&&d.removeAttribute("style"),"_vod"in d&&(C.display=x)}}const importantRE=/\s*!important$/;function setStyle(d,b,A){if(isArray$9(A))A.forEach(C=>setStyle(d,b,C));else if(A==null&&(A=""),b.startsWith("--"))d.setProperty(b,A);else{const C=autoPrefix(d,b);importantRE.test(A)?d.setProperty(hyphenate(C),A.replace(importantRE,""),"important"):d[C]=A}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(d,b){const A=prefixCache[b];if(A)return A;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 A=C=>{if(!C._vts)C._vts=Date.now();else if(C._vts<=A.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(C,A.value),b,5,[C])};return A.value=d,A.attached=getNow(),A}function patchStopImmediatePropagation(d,b){if(isArray$9(b)){const A=d.stopImmediatePropagation;return d.stopImmediatePropagation=()=>{A.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,A,C,w=!1,x,S,E,P)=>{b==="class"?patchClass(d,C,w):b==="style"?patchStyle(d,A,C):isOn(b)?isModelListener(b)||patchEvent(d,b,A,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,x,S,E,P):(b==="true-value"?d._trueValue=C:b==="false-value"&&(d._falseValue=C),patchAttr(d,b,C,w))};function shouldSetAsProp(d,b,A,C){return C?!!(b==="innerHTML"||b==="textContent"||b in d&&nativeOnRE.test(b)&&isFunction$5(A)):b==="spellcheck"||b==="draggable"||b==="translate"||b==="form"||b==="list"&&d.tagName==="INPUT"||b==="type"&&d.tagName==="TEXTAREA"||nativeOnRE.test(b)&&isString$2(A)?!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(A=>A(...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 X in d)X in DOMTransitionPropsValidators||(b[X]=d[X]);if(d.css===!1)return b;const{name:A="v",type:C,duration:w,enterFromClass:x="".concat(A,"-enter-from"),enterActiveClass:S="".concat(A,"-enter-active"),enterToClass:E="".concat(A,"-enter-to"),appearFromClass:P=x,appearActiveClass:B=S,appearToClass:D=E,leaveFromClass:k="".concat(A,"-leave-from"),leaveActiveClass:I="".concat(A,"-leave-active"),leaveToClass:$="".concat(A,"-leave-to")}=d,M=normalizeDuration(w),L=M&&M[0],H=M&&M[1],{onBeforeEnter:z,onEnter:Q,onEnterCancelled:q,onLeave:V,onLeaveCancelled:U,onBeforeAppear:W=z,onAppear:K=Q,onAppearCancelled:Z=q}=b,te=(X,se,he)=>{removeTransitionClass(X,se?D:E),removeTransitionClass(X,se?B:S),he&&he()},ne=(X,se)=>{X._isLeaving=!1,removeTransitionClass(X,k),removeTransitionClass(X,$),removeTransitionClass(X,I),se&&se()},ue=X=>(se,he)=>{const me=X?K:Q,ie=()=>te(se,X,he);callHook(me,[se,ie]),nextFrame(()=>{removeTransitionClass(se,X?P:x),addTransitionClass(se,X?D:E),hasExplicitCallback(me)||whenTransitionEnds(se,C,L,ie)})};return extend$2(b,{onBeforeEnter(X){callHook(z,[X]),addTransitionClass(X,x),addTransitionClass(X,S)},onBeforeAppear(X){callHook(W,[X]),addTransitionClass(X,P),addTransitionClass(X,B)},onEnter:ue(!1),onAppear:ue(!0),onLeave(X,se){X._isLeaving=!0;const he=()=>ne(X,se);addTransitionClass(X,k),forceReflow(),addTransitionClass(X,I),nextFrame(()=>{X._isLeaving&&(removeTransitionClass(X,k),addTransitionClass(X,$),hasExplicitCallback(V)||whenTransitionEnds(X,C,H,he))}),callHook(V,[X,he])},onEnterCancelled(X){te(X,!1),callHook(q,[X])},onAppearCancelled(X){te(X,!0),callHook(Z,[X])},onLeaveCancelled(X){ne(X),callHook(U,[X])}})}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(A=>A&&d.classList.add(A)),(d._vtc||(d._vtc=new Set)).add(b)}function removeTransitionClass(d,b){b.split(/\s+/).forEach(C=>C&&d.classList.remove(C));const{_vtc:A}=d;A&&(A.delete(b),A.size||(d._vtc=void 0))}function nextFrame(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let endId=0;function whenTransitionEnds(d,b,A,C){const w=d._endId=++endId,x=()=>{w===d._endId&&C()};if(A)return setTimeout(x,A);const{type:S,timeout:E,propCount:P}=getTransitionInfo(d,b);if(!S)return C();const B=S+"end";let D=0;const k=()=>{d.removeEventListener(B,I),x()},I=$=>{$.target===d&&++D>=P&&k()};setTimeout(()=>{D(A[M]||"").split(", "),w=C("".concat(TRANSITION,"Delay")),x=C("".concat(TRANSITION,"Duration")),S=getTimeout(w,x),E=C("".concat(ANIMATION,"Delay")),P=C("".concat(ANIMATION,"Duration")),B=getTimeout(E,P);let D=null,k=0,I=0;b===TRANSITION?S>0&&(D=TRANSITION,k=S,I=x.length):b===ANIMATION?B>0&&(D=ANIMATION,k=B,I=P.length):(k=Math.max(S,B),D=k>0?S>B?TRANSITION:ANIMATION:null,I=D?D===TRANSITION?x.length:P.length:0);const $=D===TRANSITION&&/\b(transform|all)(,|$)/.test(C("".concat(TRANSITION,"Property")).toString());return{type:D,timeout:k,propCount:I,hasTransform:$}}function getTimeout(d,b){for(;d.lengthtoMs(A)+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 A=getCurrentInstance(),C=useTransitionState();let w,x;return onUpdated(()=>{if(!w.length)return;const S=d.moveClass||"".concat(d.name||"v","-move");if(!hasCSSTransform(w[0].el,A.vnode.el,S))return;w.forEach(callPendingCbs),w.forEach(recordPosition);const E=w.filter(applyTranslation);forceReflow(),E.forEach(P=>{const B=P.el,D=B.style;addTransitionClass(B,S),D.transform=D.webkitTransform=D.transitionDuration="";const k=B._moveCb=I=>{I&&I.target!==B||(!I||/transform$/.test(I.propertyName))&&(B.removeEventListener("transitionend",k),B._moveCb=null,removeTransitionClass(B,S))};B.addEventListener("transitionend",k)})}),()=>{const S=toRaw(d),E=resolveTransitionProps(S);let P=S.tag||Fragment;w=x,x=b.default?getTransitionRawChildren(b.default()):[];for(let B=0;Bdelete 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),A=newPositionMap.get(d),C=b.left-A.left,w=b.top-A.top;if(C||w){const x=d.el.style;return x.transform=x.webkitTransform="translate(".concat(C,"px,").concat(w,"px)"),x.transitionDuration="0s",d}}function hasCSSTransform(d,b,A){const C=d.cloneNode();d._vtc&&d._vtc.forEach(S=>{S.split(/\s+/).forEach(E=>E&&C.classList.remove(E))}),A.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:x}=getTransitionInfo(C);return w.removeChild(C),x}const keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(d,b)=>A=>{if(!("key"in A))return;const C=hyphenate(A.key);if(b.some(w=>w===C||keyNames[w]===C))return d(A)},vShow={beforeMount(d,{value:b},{transition:A}){d._vod=d.style.display==="none"?"":d.style.display,A&&b?A.beforeEnter(d):setDisplay(d,b)},mounted(d,{value:b},{transition:A}){A&&b&&A.enter(d)},updated(d,{value:b,oldValue:A},{transition:C}){!b!=!A&&(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:A}=b;return b.mount=C=>{const w=normalizeContainer(C);if(!w)return;const x=b._component;!isFunction$5(x)&&!x.render&&!x.template&&(x.template=w.innerHTML),w.innerHTML="";const S=A(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 A={};for(const C in b){const w=b[C];A[C]=isArray$8(w)?w.map(d):d(w)}return A}const noop$3=()=>{},isArray$8=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=d=>d.replace(TRAILING_SLASH_RE,"");function parseURL(d,b,A="/"){let C,w={},x="",S="";const E=b.indexOf("#");let P=b.indexOf("?");return E=0&&(P=-1),P>-1&&(C=b.slice(0,P),x=b.slice(P+1,E>-1?E:b.length),w=d(x)),E>-1&&(C=C||b.slice(0,E),S=b.slice(E,b.length)),C=resolveRelativePath(C!=null?C:b,A),{fullPath:C+(x&&"?")+x+S,path:C,query:w,hash:S}}function stringifyURL(d,b){const A=b.query?d(b.query):"";return b.path+(A&&"?")+A+(b.hash||"")}function stripBase(d,b){return!b||!d.toLowerCase().startsWith(b.toLowerCase())?d:d.slice(b.length)||"/"}function isSameRouteLocation(d,b,A){const C=b.matched.length-1,w=A.matched.length-1;return C>-1&&C===w&&isSameRouteRecord(b.matched[C],A.matched[w])&&isSameRouteLocationParams(b.params,A.params)&&d(b.query)===d(A.query)&&b.hash===A.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 A in d)if(!isSameRouteLocationParamsValue(d[A],b[A]))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((A,C)=>A===b[C]):d.length===1&&d[0]===b}function resolveRelativePath(d,b){if(d.startsWith("/"))return d;if(!d)return b;const A=b.split("/"),C=d.split("/"),w=C[C.length-1];(w===".."||w===".")&&C.push("");let x=A.length-1,S,E;for(S=0;S1&&x--;else break;return A.slice(0,x).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 A=document.documentElement.getBoundingClientRect(),C=d.getBoundingClientRect();return{behavior:b.behavior,left:C.left-A.left-(b.left||0),top:C.top-A.top-(b.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(d){let b;if("el"in d){const A=d.el,C=typeof A=="string"&&A.startsWith("#"),w=typeof A=="string"?C?document.getElementById(A.slice(1)):document.querySelector(A):A;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:A,search:C,hash:w}=b,x=d.indexOf("#");if(x>-1){let E=w.includes(d.slice(x))?d.slice(x).length:1,P=w.slice(E);return P[0]!=="/"&&(P="/"+P),stripBase(P,"")}return stripBase(A,d)+C+w}function useHistoryListeners(d,b,A,C){let w=[],x=[],S=null;const E=({state:I})=>{const $=createCurrentLocation(d,location),M=A.value,L=b.value;let H=0;if(I){if(A.value=$,b.value=I,S&&S===M){S=null;return}H=L?I.position-L.position:0}else C($);w.forEach(z=>{z(A.value,M,{delta:H,type:NavigationType.pop,direction:H?H>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function P(){S=A.value}function B(I){w.push(I);const $=()=>{const M=w.indexOf(I);M>-1&&w.splice(M,1)};return x.push($),$}function D(){const{history:I}=window;I.state&&I.replaceState(assign$2({},I.state,{scroll:computeScrollPosition()}),"")}function k(){for(const I of x)I();x=[],window.removeEventListener("popstate",E),window.removeEventListener("beforeunload",D)}return window.addEventListener("popstate",E),window.addEventListener("beforeunload",D,{passive:!0}),{pauseListeners:P,listen:B,destroy:k}}function buildState(d,b,A,C=!1,w=!1){return{back:d,current:b,forward:A,replaced:C,position:window.history.length,scroll:w?computeScrollPosition():null}}function useHistoryStateNavigation(d){const{history:b,location:A}=window,C={value:createCurrentLocation(d,A)},w={value:b.state};w.value||x(C.value,{back:null,current:C.value,forward:null,position:b.length-1,replaced:!0,scroll:null},!0);function x(P,B,D){const k=d.indexOf("#"),I=k>-1?(A.host&&document.querySelector("base")?d:d.slice(k))+P:createBaseLocation()+d+P;try{b[D?"replaceState":"pushState"](B,"",I),w.value=B}catch($){console.error($),A[D?"replace":"assign"](I)}}function S(P,B){const D=assign$2({},b.state,buildState(w.value.back,P,w.value.forward,!0),B,{position:w.value.position});x(P,D,!0),C.value=P}function E(P,B){const D=assign$2({},w.value,b.state,{forward:P,scroll:computeScrollPosition()});x(D.current,D,!0);const k=assign$2({},buildState(C.value,P,null),{position:D.position+1},B);x(P,k,!1),C.value=P}return{location:C,state:w,push:E,replace:S}}function createWebHistory(d){d=normalizeBase(d);const b=useHistoryStateNavigation(d),A=useHistoryListeners(d,b.state,b.location,b.replace);function C(x,S=!0){S||A.pauseListeners(),history.go(x)}const w=assign$2({location:"",base:d,go:C,createHref:createHref.bind(null,d)},b,A);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 A=assign$2({},BASE_PATH_PARSER_OPTIONS,b),C=[];let w=A.start?"^":"";const x=[];for(const B of d){const D=B.length?[]:[90];A.strict&&!B.length&&(w+="/");for(let k=0;kb.length?b.length===1&&b[0]===40+40?1:-1:0}function comparePathParserScore(d,b){let A=0;const C=d.score,w=b.score;for(;A0&&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($){throw new Error("ERR (".concat(A,')/"').concat(B,'": ').concat($))}let A=0,C=A;const w=[];let x;function S(){x&&w.push(x),x=[]}let E=0,P,B="",D="";function k(){B&&(A===0?x.push({type:0,value:B}):A===1||A===2||A===3?(x.length>1&&(P==="*"||P==="+")&&b("A repeatable param (".concat(B,") must be alone in its segment. eg: '/:ids+.")),x.push({type:1,value:B,regexp:D,repeatable:P==="*"||P==="+",optional:P==="*"||P==="?"})):b("Invalid state to consume buffer"),B="")}function I(){B+=P}for(;E{S(Q)}:noop$3}function S(D){if(isRouteName(D)){const k=C.get(D);k&&(C.delete(D),A.splice(A.indexOf(k),1),k.children.forEach(S),k.alias.forEach(S))}else{const k=A.indexOf(D);k>-1&&(A.splice(k,1),D.record.name&&C.delete(D.record.name),D.children.forEach(S),D.alias.forEach(S))}}function E(){return A}function P(D){let k=0;for(;k=0&&(D.record.path!==A[k].record.path||!isRecordChildOf(D,A[k]));)k++;A.splice(k,0,D),D.record.name&&!isAliasRecord(D)&&C.set(D.record.name,D)}function B(D,k){let I,$={},M,L;if("name"in D&&D.name){if(I=C.get(D.name),!I)throw createRouterError(1,{location:D});L=I.record.name,$=assign$2(paramsFromLocation(k.params,I.keys.filter(Q=>!Q.optional).map(Q=>Q.name)),D.params&¶msFromLocation(D.params,I.keys.map(Q=>Q.name))),M=I.stringify($)}else if("path"in D)M=D.path,I=A.find(Q=>Q.re.test(M)),I&&($=I.parse(M),L=I.record.name);else{if(I=k.name?C.get(k.name):A.find(Q=>Q.re.test(k.path)),!I)throw createRouterError(1,{location:D,currentLocation:k});L=I.record.name,$=assign$2({},k.params,D.params),M=I.stringify($)}const H=[];let z=I;for(;z;)H.unshift(z.record),z=z.parent;return{name:L,path:M,params:$,matched:H,meta:mergeMetaFields(H)}}return d.forEach(D=>x(D)),{addRoute:x,resolve:B,removeRoute:S,getRoutes:E,getRecordMatcher:w}}function paramsFromLocation(d,b){const A={};for(const C of b)C in d&&(A[C]=d[C]);return A}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={},A=d.props||!1;if("component"in d)b.default=A;else for(const C in d.components)b[C]=typeof A=="object"?A[C]:A;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,A)=>assign$2(b,A.meta),{})}function mergeOptions(d,b){const A={};for(const C in d)A[C]=C in b?b[C]:d[C];return A}function isRecordChildOf(d,b){return b.children.some(A=>A===d||isRecordChildOf(d,A))}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;wx&&encodeQueryValue(x)):[C&&encodeQueryValue(C)]).forEach(x=>{x!==void 0&&(b+=(b.length?"&":"")+A,x!=null&&(b+="="+x))})}return b}function normalizeQuery(d){const b={};for(const A in d){const C=d[A];C!==void 0&&(b[A]=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 A(){d=[]}return{add:b,list:()=>d.slice(),reset:A}}function guardToPromiseFn(d,b,A,C,w){const x=C&&(C.enterCallbacks[w]=C.enterCallbacks[w]||[]);return()=>new Promise((S,E)=>{const P=k=>{k===!1?E(createRouterError(4,{from:A,to:b})):k instanceof Error?E(k):isRouteLocation(k)?E(createRouterError(2,{from:b,to:k})):(x&&C.enterCallbacks[w]===x&&typeof k=="function"&&x.push(k),S())},B=d.call(C&&C.instances[w],b,A,P);let D=Promise.resolve(B);d.length<3&&(D=D.then(P)),D.catch(k=>E(k))})}function extractComponentsGuards(d,b,A,C){const w=[];for(const x of d)for(const S in x.components){let E=x.components[S];if(!(b!=="beforeRouteEnter"&&!x.instances[S]))if(isRouteComponent(E)){const B=(E.__vccOpts||E)[b];B&&w.push(guardToPromiseFn(B,A,C,x,S))}else{let P=E();w.push(()=>P.then(B=>{if(!B)return Promise.reject(new Error("Couldn't resolve component \"".concat(S,'" at "').concat(x.path,'"')));const D=isESModule(B)?B.default:B;x.components[S]=D;const I=(D.__vccOpts||D)[b];return I&&guardToPromiseFn(I,A,C,x,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),A=inject(routeLocationKey),C=computed(()=>b.resolve(unref(d.to))),w=computed(()=>{const{matched:P}=C.value,{length:B}=P,D=P[B-1],k=A.matched;if(!D||!k.length)return-1;const I=k.findIndex(isSameRouteRecord.bind(null,D));if(I>-1)return I;const $=getOriginalPath(P[B-2]);return B>1&&getOriginalPath(D)===$&&k[k.length-1].path!==$?k.findIndex(isSameRouteRecord.bind(null,P[B-2])):I}),x=computed(()=>w.value>-1&&includesParams(A.params,C.value.params)),S=computed(()=>w.value>-1&&w.value===A.matched.length-1&&isSameRouteLocationParams(A.params,C.value.params));function E(P={}){return guardEvent(P)?b[unref(d.replace)?"replace":"push"](unref(d.to)).catch(noop$3):Promise.resolve()}return{route:C,href:computed(()=>C.value.href),isActive:x,isExactActive:S,navigate:E}}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 A=reactive(useLink(d)),{options:C}=inject(routerKey),w=computed(()=>({[getLinkClass(d.activeClass,C.linkActiveClass,"router-link-active")]:A.isActive,[getLinkClass(d.exactActiveClass,C.linkExactActiveClass,"router-link-exact-active")]:A.isExactActive}));return()=>{const x=b.default&&b.default(A);return d.custom?x:h$1("a",{"aria-current":A.isExactActive?d.ariaCurrentValue:null,href:A.href,onClick:A.navigate,class:w.value},x)}}}),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 A in b){const C=b[A],w=d[A];if(typeof C=="string"){if(C!==w)return!1}else if(!isArray$8(w)||w.length!==C.length||C.some((x,S)=>x!==w[S]))return!1}return!0}function getOriginalPath(d){return d?d.aliasOf?d.aliasOf.path:d.path:""}const getLinkClass=(d,b,A)=>d!=null?d:b!=null?b:A,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(d,{attrs:b,slots:A}){const C=inject(routerViewLocationKey),w=computed(()=>d.route||C.value),x=inject(viewDepthKey,0),S=computed(()=>{let B=unref(x);const{matched:D}=w.value;let k;for(;(k=D[B])&&!k.components;)B++;return B}),E=computed(()=>w.value.matched[S.value]);provide(viewDepthKey,computed(()=>S.value+1)),provide(matchedRouteKey,E),provide(routerViewLocationKey,w);const P=ref();return watch(()=>[P.value,E.value,d.name],([B,D,k],[I,$,M])=>{D&&(D.instances[k]=B,$&&$!==D&&B&&B===I&&(D.leaveGuards.size||(D.leaveGuards=$.leaveGuards),D.updateGuards.size||(D.updateGuards=$.updateGuards))),B&&D&&(!$||!isSameRouteRecord(D,$)||!I)&&(D.enterCallbacks[k]||[]).forEach(L=>L(B))},{flush:"post"}),()=>{const B=w.value,D=d.name,k=E.value,I=k&&k.components[D];if(!I)return normalizeSlot(A.default,{Component:I,route:B});const $=k.props[D],M=$?$===!0?B.params:typeof $=="function"?$(B):$:null,H=h$1(I,assign$2({},M,b,{onVnodeUnmounted:z=>{z.component.isUnmounted&&(k.instances[D]=null)},ref:P}));return normalizeSlot(A.default,{Component:H,route:B})||H}}});function normalizeSlot(d,b){if(!d)return null;const A=d(b);return A.length===1?A[0]:A}const RouterView=RouterViewImpl;function createRouter(d){const b=createRouterMatcher(d.routes,d),A=d.parseQuery||parseQuery,C=d.stringifyQuery||stringifyQuery,w=d.history,x=useCallbacks(),S=useCallbacks(),E=useCallbacks(),P=shallowRef(START_LOCATION_NORMALIZED);let B=START_LOCATION_NORMALIZED;isBrowser$3&&d.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const D=applyToParams.bind(null,Me=>""+Me),k=applyToParams.bind(null,encodeParam),I=applyToParams.bind(null,decode$4);function $(Me,Oe){let Qe,Ze;return isRouteName(Me)?(Qe=b.getRecordMatcher(Me),Ze=Oe):Ze=Me,b.addRoute(Ze,Qe)}function M(Me){const Oe=b.getRecordMatcher(Me);Oe&&b.removeRoute(Oe)}function L(){return b.getRoutes().map(Me=>Me.record)}function H(Me){return!!b.getRecordMatcher(Me)}function z(Me,Oe){if(Oe=assign$2({},Oe||P.value),typeof Me=="string"){const He=parseURL(A,Me,Oe.path),Je=b.resolve({path:He.path},Oe),Ke=w.createHref(He.fullPath);return assign$2(He,Je,{params:I(Je.params),hash:decode$4(He.hash),redirectedFrom:void 0,href:Ke})}let Qe;if("path"in Me)Qe=assign$2({},Me,{path:parseURL(A,Me.path,Oe.path).path});else{const He=assign$2({},Me.params);for(const Je in He)He[Je]==null&&delete He[Je];Qe=assign$2({},Me,{params:k(He)}),Oe.params=k(Oe.params)}const Ze=b.resolve(Qe,Oe),it=Me.hash||"";Ze.params=D(I(Ze.params));const Te=stringifyURL(C,assign$2({},Me,{hash:encodeHash(it),path:Ze.path})),_e=w.createHref(Te);return assign$2({fullPath:Te,hash:it,query:C===stringifyQuery?normalizeQuery(Me.query):Me.query||{}},Ze,{redirectedFrom:void 0,href:_e})}function Q(Me){return typeof Me=="string"?parseURL(A,Me,P.value.path):assign$2({},Me)}function q(Me,Oe){if(B!==Me)return createRouterError(8,{from:Oe,to:Me})}function V(Me){return K(Me)}function U(Me){return V(assign$2(Q(Me),{replace:!0}))}function W(Me){const Oe=Me.matched[Me.matched.length-1];if(Oe&&Oe.redirect){const{redirect:Qe}=Oe;let Ze=typeof Qe=="function"?Qe(Me):Qe;return typeof Ze=="string"&&(Ze=Ze.includes("?")||Ze.includes("#")?Ze=Q(Ze):{path:Ze},Ze.params={}),assign$2({query:Me.query,hash:Me.hash,params:"path"in Ze?{}:Me.params},Ze)}}function K(Me,Oe){const Qe=B=z(Me),Ze=P.value,it=Me.state,Te=Me.force,_e=Me.replace===!0,He=W(Qe);if(He)return K(assign$2(Q(He),{state:typeof He=="object"?assign$2({},it,He.state):it,force:Te,replace:_e}),Oe||Qe);const Je=Qe;Je.redirectedFrom=Oe;let Ke;return!Te&&isSameRouteLocation(C,Ze,Qe)&&(Ke=createRouterError(16,{to:Je,from:Ze}),je(Ze,Ze,!0,!1)),(Ke?Promise.resolve(Ke):ne(Je,Ze)).catch(Ie=>isNavigationFailure(Ie)?isNavigationFailure(Ie,2)?Ie:Se(Ie):be(Ie,Je,Ze)).then(Ie=>{if(Ie){if(isNavigationFailure(Ie,2))return K(assign$2({replace:_e},Q(Ie.to),{state:typeof Ie.to=="object"?assign$2({},it,Ie.to.state):it,force:Te}),Oe||Je)}else Ie=X(Je,Ze,!0,_e,it);return ue(Je,Ze,Ie),Ie})}function Z(Me,Oe){const Qe=q(Me,Oe);return Qe?Promise.reject(Qe):Promise.resolve()}function te(Me){const Oe=ot.values().next().value;return Oe&&typeof Oe.runWithContext=="function"?Oe.runWithContext(Me):Me()}function ne(Me,Oe){let Qe;const[Ze,it,Te]=extractChangingRecords(Me,Oe);Qe=extractComponentsGuards(Ze.reverse(),"beforeRouteLeave",Me,Oe);for(const He of Ze)He.leaveGuards.forEach(Je=>{Qe.push(guardToPromiseFn(Je,Me,Oe))});const _e=Z.bind(null,Me,Oe);return Qe.push(_e),lt(Qe).then(()=>{Qe=[];for(const He of x.list())Qe.push(guardToPromiseFn(He,Me,Oe));return Qe.push(_e),lt(Qe)}).then(()=>{Qe=extractComponentsGuards(it,"beforeRouteUpdate",Me,Oe);for(const He of it)He.updateGuards.forEach(Je=>{Qe.push(guardToPromiseFn(Je,Me,Oe))});return Qe.push(_e),lt(Qe)}).then(()=>{Qe=[];for(const He of Te)if(He.beforeEnter)if(isArray$8(He.beforeEnter))for(const Je of He.beforeEnter)Qe.push(guardToPromiseFn(Je,Me,Oe));else Qe.push(guardToPromiseFn(He.beforeEnter,Me,Oe));return Qe.push(_e),lt(Qe)}).then(()=>(Me.matched.forEach(He=>He.enterCallbacks={}),Qe=extractComponentsGuards(Te,"beforeRouteEnter",Me,Oe),Qe.push(_e),lt(Qe))).then(()=>{Qe=[];for(const He of S.list())Qe.push(guardToPromiseFn(He,Me,Oe));return Qe.push(_e),lt(Qe)}).catch(He=>isNavigationFailure(He,8)?He:Promise.reject(He))}function ue(Me,Oe,Qe){E.list().forEach(Ze=>te(()=>Ze(Me,Oe,Qe)))}function X(Me,Oe,Qe,Ze,it){const Te=q(Me,Oe);if(Te)return Te;const _e=Oe===START_LOCATION_NORMALIZED,He=isBrowser$3?history.state:{};Qe&&(Ze||_e?w.replace(Me.fullPath,assign$2({scroll:_e&&He&&He.scroll},it)):w.push(Me.fullPath,it)),P.value=Me,je(Me,Oe,Qe,_e),Se()}let se;function he(){se||(se=w.listen((Me,Oe,Qe)=>{if(!et.listening)return;const Ze=z(Me),it=W(Ze);if(it){K(assign$2(it,{replace:!0}),Ze).catch(noop$3);return}B=Ze;const Te=P.value;isBrowser$3&&saveScrollPosition(getScrollKey(Te.fullPath,Qe.delta),computeScrollPosition()),ne(Ze,Te).catch(_e=>isNavigationFailure(_e,12)?_e:isNavigationFailure(_e,2)?(K(_e.to,Ze).then(He=>{isNavigationFailure(He,20)&&!Qe.delta&&Qe.type===NavigationType.pop&&w.go(-1,!1)}).catch(noop$3),Promise.reject()):(Qe.delta&&w.go(-Qe.delta,!1),be(_e,Ze,Te))).then(_e=>{_e=_e||X(Ze,Te,!1),_e&&(Qe.delta&&!isNavigationFailure(_e,8)?w.go(-Qe.delta,!1):Qe.type===NavigationType.pop&&isNavigationFailure(_e,20)&&w.go(-1,!1)),ue(Ze,Te,_e)}).catch(noop$3)}))}let me=useCallbacks(),ie=useCallbacks(),de;function be(Me,Oe,Qe){Se(Me);const Ze=ie.list();return Ze.length?Ze.forEach(it=>it(Me,Oe,Qe)):console.error(Me),Promise.reject(Me)}function ge(){return de&&P.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Me,Oe)=>{me.add([Me,Oe])})}function Se(Me){return de||(de=!Me,he(),me.list().forEach(([Oe,Qe])=>Me?Qe(Me):Oe()),me.reset()),Me}function je(Me,Oe,Qe,Ze){const{scrollBehavior:it}=d;if(!isBrowser$3||!it)return Promise.resolve();const Te=!Qe&&getSavedScrollPosition(getScrollKey(Me.fullPath,0))||(Ze||!Qe)&&history.state&&history.state.scroll||null;return nextTick().then(()=>it(Me,Oe,Te)).then(_e=>_e&&scrollToPosition(_e)).catch(_e=>be(_e,Me,Oe))}const Ye=Me=>w.go(Me);let st;const ot=new Set,et={currentRoute:P,listening:!0,addRoute:$,removeRoute:M,hasRoute:H,getRoutes:L,resolve:z,options:d,push:V,replace:U,go:Ye,back:()=>Ye(-1),forward:()=>Ye(1),beforeEach:x.add,beforeResolve:S.add,afterEach:E.add,onError:ie.add,isReady:ge,install(Me){const Oe=this;Me.component("RouterLink",RouterLink),Me.component("RouterView",RouterView),Me.config.globalProperties.$router=Oe,Object.defineProperty(Me.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(P)}),isBrowser$3&&!st&&P.value===START_LOCATION_NORMALIZED&&(st=!0,V(w.location).catch(it=>{}));const Qe={};for(const it in START_LOCATION_NORMALIZED)Object.defineProperty(Qe,it,{get:()=>P.value[it],enumerable:!0});Me.provide(routerKey,Oe),Me.provide(routeLocationKey,shallowReactive(Qe)),Me.provide(routerViewLocationKey,P);const Ze=Me.unmount;ot.add(Me),Me.unmount=function(){ot.delete(Me),ot.size<1&&(B=START_LOCATION_NORMALIZED,se&&se(),se=null,P.value=START_LOCATION_NORMALIZED,st=!1,de=!1),Ze()}}};function lt(Me){return Me.reduce((Oe,Qe)=>Oe.then(()=>te(Qe)),Promise.resolve())}return et}function extractChangingRecords(d,b){const A=[],C=[],w=[],x=Math.max(b.matched.length,d.matched.length);for(let S=0;SisSameRouteRecord(B,E))?C.push(E):A.push(E));const P=d.matched[S];P&&(b.matched.find(B=>isSameRouteRecord(B,P))||w.push(P))}return[A,C,w]}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 A=b.split(".");let C=d;return A.forEach(w=>{var x;C=isObject$5(C)&&(x=C[w])!=null?x:""}),C}function pick$1(d,b,A){return b.reduce((C,w)=>((!A||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 A=b.innerWidth,C=b.innerHeight;return makeDOMRect(A,C)}return b!=null&&b.getBoundingClientRect?b.getBoundingClientRect():makeDOMRect(0,0)};function useParent$1(d){const b=inject(d,null);if(b){const A=getCurrentInstance(),{link:C,unlink:w,internalChildren:x}=b;C(A),onUnmounted(()=>w(A));const S=computed(()=>x.indexOf(A));return{parent:b,index:S}}return{parent:null,index:ref(-1)}}function flattenVNodes(d){const b=[],A=C=>{Array.isArray(C)&&C.forEach(w=>{var x;isVNode(w)&&(b.push(w),(x=w.component)!=null&&x.subTree&&(b.push(w.component.subTree),A(w.component.subTree.children)),w.children&&A(w.children))})};return A(d),b}var findVNodeIndex=(d,b)=>{const A=d.indexOf(b);return A===-1?d.findIndex(C=>b.key!==void 0&&b.key!==null&&C.type===b.type&&C.key===b.key):A};function sortChildren(d,b,A){const C=flattenVNodes(d.subTree.children);A.sort((x,S)=>findVNodeIndex(C,x.vnode)-findVNodeIndex(C,S.vnode));const w=A.map(x=>x.proxy);b.sort((x,S)=>{const E=w.indexOf(x),P=w.indexOf(S);return E-P})}function useChildren$1(d){const b=reactive([]),A=reactive([]),C=getCurrentInstance();return{children:b,linkChildren:x=>{provide(d,Object.assign({link:P=>{P.proxy&&(A.push(P),b.push(P.proxy),sortChildren(C,b,A))},unlink:P=>{const B=A.indexOf(P);b.splice(B,1),A.splice(B,1)},children:b,internalChildren:A},x))}}}function onMountedOrActivated(d){let b;onMounted(()=>{d(),nextTick(()=>{b=!0})}),onActivated(()=>{b&&d()})}function useEventListener$1(d,b,A={}){if(!inBrowser$2)return;const{target:C=window,passive:w=!1,capture:x=!1}=A;let S=!1,E;const P=k=>{if(S)return;const I=unref(k);I&&!E&&(I.addEventListener(d,b,{capture:x,passive:w}),E=!0)},B=k=>{if(S)return;const I=unref(k);I&&E&&(I.removeEventListener(d,b,x),E=!1)};onUnmounted(()=>B(C)),onDeactivated(()=>B(C)),onMountedOrActivated(()=>P(C));let D;return isRef(C)&&(D=watch(C,(k,I)=>{B(I),P(k)})),()=>{D==null||D(),B(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 A=d;for(;A&&A!==b&&isElement$2(A);){const{overflowY:C}=window.getComputedStyle(A);if(overflowScrollReg.test(C))return A;A=A.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(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,A)=>A.toUpperCase()),{hasOwnProperty:hasOwnProperty$d}=Object.prototype;function assignKey(d,b,A){const C=b[A];isDef(C)&&(!hasOwnProperty$d.call(d,A)||!isObject$5(C)?d[A]=C:d[A]=deepAssign(Object(d[A]),C))}function deepAssign(d,b){return Object.keys(b).forEach(A=>{assignKey(d,b,A)}),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$1=reactive({"zh-CN":stdin_default$d}),Locale={messages(){return messages$1[lang.value]},use(d,b){lang.value=d,this.add({[d]:b})},add(d={}){deepAssign(messages$1,d)}};var stdin_default$c=Locale;function createTranslate(d){const b=camelize(d)+".";return(A,...C)=>{const w=stdin_default$c.messages(),x=get$1(w,b+A)||get$1(w,A);return isFunction$4(x)?x(...C):x}}function genBem(d,b){return b?typeof b=="string"?" ".concat(d,"--").concat(b):Array.isArray(b)?b.reduce((A,C)=>A+genBem(d,C),""):Object.keys(b).reduce((A,C)=>A+(b[C]?genBem(d,C):""),""):""}function createBEM(d){return(b,A)=>(b&&typeof b!="string"&&(A=b,b=""),b=b?"".concat(d,"__").concat(b):d,"".concat(b).concat(genBem(b,A)))}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:A,canceled:C}){if(d){const w=d.apply(null,b);isPromise(w)?w.then(x=>{x?A():C&&C()}).catch(noop$2):w?A():C&&C()}else A()}function withInstall$1(d){return d.install=b=>{const{name:A}=d;A&&(b.component(A,d),b.component(camelize("-".concat(A)),d))},d}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(d){const b=inject(POPUP_TOGGLE_KEY,null);b&&watch(b,A=>{A&&d()})}const useHeight=(d,b)=>{const A=ref(),C=()=>{A.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),A};function usePlaceholder(d,b){const A=useHeight(d,!0);return C=>createVNode("div",{class:b("placeholder"),style:{height:A.value?"".concat(A.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 A=ref(),C=usePlaceholder(A,bem$c),{linkChildren:w}=useChildren$1(ACTION_BAR_KEY);w();const x=()=>{var S;return createVNode("div",{ref:A,class:[bem$c(),{"van-safe-area-bottom":d.safeAreaInsetBottom}]},[(S=b.default)==null?void 0:S.call(b)])};return()=>d.placeholder?C(x):x()}});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:A,$router:C}){d&&C?C[A?"replace":"push"](d):b&&(A?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 A=()=>{if(b.content)return!0;const{content:E,showZero:P}=d;return isDef(E)&&E!==""&&(P||E!==0&&E!=="0")},C=()=>{const{dot:E,max:P,content:B}=d;if(!E&&A())return b.content?b.content():isDef(P)&&isNumeric(B)&&+B>+P?"".concat(P,"+"):B},w=E=>E.startsWith("-")?E.replace("-",""):"-".concat(E),x=computed(()=>{const E={background:d.color};if(d.offset){const[P,B]=d.offset,{position:D}=d,[k,I]=D.split("-");b.default?(typeof B=="number"?E[k]=addUnit(k==="top"?B:-B):E[k]=k==="top"?addUnit(B):w(B),typeof P=="number"?E[I]=addUnit(I==="left"?P:-P):E[I]=I==="left"?addUnit(P):w(P)):(E.marginTop=addUnit(B),E.marginLeft=addUnit(P))}return E}),S=()=>{if(A()||d.dot)return createVNode("div",{class:bem$b([d.position,{dot:d.dot,fixed:!!b.default}]),style:x.value},[C()])};return()=>{if(b.default){const{tag:E}=d;return createVNode(E,{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 A=inject(CONFIG_PROVIDER_KEY,null),C=computed(()=>d.classPrefix||(A==null?void 0:A.iconPrefix)||bem$9());return()=>{const{tag:w,dot:x,name:S,size:E,badge:P,color:B}=d,D=isImage(S);return createVNode(Badge,mergeProps({dot:x,tag:w,class:[C.value,D?"":"".concat(C.value,"-").concat(S)],style:{color:B,fontSize:addUnit(E)},content:P},d.badgeProps),{default:()=>{var k;return[(k=b.default)==null?void 0:k.call(b),D&&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 A=computed(()=>extend$1({color:d.color},getSizeStyle(d.size))),C=()=>{const x=d.type==="spinner"?SpinIcon:CircularIcon;return createVNode("span",{class:bem$8("spinner",d.type),style:A.value},[b.icon?b.icon():x])},w=()=>{var x;if(b.default)return createVNode("span",{class:bem$8("text"),style:{fontSize:addUnit(d.textSize),color:(x=d.textColor)!=null?x:d.color}},[b.default()])};return()=>{const{type:x,vertical:S}=d;return createVNode("div",{class:bem$8([x,{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:A}){const C=useRoute(),w=()=>A.loading?A.loading():createVNode(Loading,{size:d.loadingSize,type:d.loadingType,class:bem$7("loading")},null),x=()=>{if(d.loading)return w();if(A.icon)return createVNode("div",{class:bem$7("icon")},[A.icon()]);if(d.icon)return createVNode(Icon$1,{name:d.icon,class:bem$7("icon"),classPrefix:d.iconPrefix},null)},S=()=>{let B;if(d.loading?B=d.loadingText:B=A.default?A.default():d.text,B)return createVNode("span",{class:bem$7("text")},[B])},E=()=>{const{color:B,plain:D}=d;if(B){const k={color:D?B:"white"};return D||(k.background=B),B.includes("gradient")?k.border=0:k.borderColor=B,k}},P=B=>{d.loading?preventDefault(B):d.disabled||(b("click",B),C())};return()=>{const{tag:B,type:D,size:k,block:I,round:$,plain:M,square:L,loading:H,disabled:z,hairline:Q,nativeType:q,iconPosition:V}=d,U=[bem$7([D,k,{plain:M,block:I,round:$,square:L,loading:H,disabled:z,hairline:Q}]),{[BORDER_SURROUND]:Q}];return createVNode(B,{type:q,class:U,style:E(),disabled:z,onClick:P},{default:()=>[createVNode("div",{class:bem$7("content")},[V==="left"&&x(),S(),V==="right"&&x()])]})}}});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 A=useRoute(),{parent:C,index:w}=useParent$1(ACTION_BAR_KEY),x=computed(()=>{if(C){const E=C.children[w.value-1];return!(E&&"isButton"in E)}}),S=computed(()=>{if(C){const E=C.children[w.value+1];return!(E&&"isButton"in E)}});return useExpose({isButton:!0}),()=>{const{type:E,icon:P,text:B,color:D,loading:k,disabled:I}=d;return createVNode(Button$1,{class:bem$6([E,{last:S.value,first:x.value}]),size:"large",type:E,icon:P,color:D,loading:k,disabled:I,onClick:A},{default:()=>[b.default?b.default():B]})}}});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),A=ref(0),C=ref(0),w=ref(0),x=ref(0),S=ref(""),E=ref(!0),P=()=>S.value==="vertical",B=()=>S.value==="horizontal",D=()=>{A.value=0,C.value=0,w.value=0,x.value=0,S.value="",E.value=!0};return{move:$=>{const M=$.touches[0];A.value=(M.clientX<0?0:M.clientX)-d.value,C.value=M.clientY-b.value,w.value=Math.abs(A.value),x.value=Math.abs(C.value);const L=10;(!S.value||w.valueTAP_OFFSET||x.value>TAP_OFFSET)&&(E.value=!1)},start:$=>{D(),d.value=$.touches[0].clientX,b.value=$.touches[0].clientY},reset:D,startX:d,startY:b,deltaX:A,deltaY:C,offsetX:w,offsetY:x,direction:S,isVertical:P,isHorizontal:B,isTap:E}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(d,b){const A=useTouch(),C="01",w="10",x=D=>{A.move(D);const k=A.deltaY.value>0?w:C,I=getScrollParent$1(D.target,d.value),{scrollHeight:$,offsetHeight:M,scrollTop:L}=I;let H="11";L===0?H=M>=$?"00":"01":L+M>=$&&(H="10"),H!=="11"&&A.isVertical()&&!(parseInt(H,2)&parseInt(k,2))&&preventDefault(D,!0)},S=()=>{document.addEventListener("touchstart",A.start),document.addEventListener("touchmove",x,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},E=()=>{totalLockCount&&(document.removeEventListener("touchstart",A.start),document.removeEventListener("touchmove",x),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},P=()=>b()&&S(),B=()=>b()&&E();onMountedOrActivated(P),onDeactivated(B),onBeforeUnmount(B),watch(b,D=>{D?S():E()})}function useLazyRender(d){const b=ref(!1);return watch(d,A=>{A&&(b.value=A)},{immediate:!0}),A=>()=>b.value?A():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 A=ref(),C=useLazyRender(()=>d.show||!d.lazyRender),w=S=>{d.lockScroll&&preventDefault(S,!0)},x=C(()=>{var S;const E=extend$1(getZIndexStyle(d.zIndex),d.customStyle);return isDef(d.duration)&&(E.animationDuration="".concat(d.duration,"s")),withDirectives(createVNode("div",{ref:A,style:E,class:[bem$5(),d.className]},[(S=b.default)==null?void 0:S.call(b)]),[[vShow,d.show]])});return useEventListener$1("touchmove",w,{target:A}),()=>createVNode(Transition,{name:"van-fade",appear:!0},{default:x})}});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:A,slots:C}){let w,x;const S=ref(),E=ref(),P=useLazyRender(()=>d.show||!d.lazyRender),B=computed(()=>{const W={zIndex:S.value};if(isDef(d.duration)){const K=d.position==="center"?"animationDuration":"transitionDuration";W[K]="".concat(d.duration,"s")}return W}),D=()=>{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=W=>{b("clickOverlay",W),d.closeOnClickOverlay&&k()},$=()=>{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"]})},M=W=>{b("clickCloseIcon",W),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:M},null)};let H;const z=()=>{H&&clearTimeout(H),H=setTimeout(()=>{b("opened")})},Q=()=>b("closed"),q=W=>b("keydown",W),V=P(()=>{var W;const{round:K,position:Z,safeAreaInsetTop:te,safeAreaInsetBottom:ne}=d;return withDirectives(createVNode("div",mergeProps({ref:E,style:B.value,role:"dialog",tabindex:0,class:[bem$4({round:K,[Z]:Z}),{"van-safe-area-top":te,"van-safe-area-bottom":ne}],onKeydown:q},A),[(W=C.default)==null?void 0:W.call(C),L()]),[[vShow,d.show]])}),U=()=>{const{position:W,transition:K,transitionAppear:Z}=d,te=W==="center"?"van-fade":"van-popup-slide-".concat(W);return createVNode(Transition,{name:K||te,appear:Z,onAfterEnter:z,onAfterLeave:Q},{default:V})};return watch(()=>d.show,W=>{W&&!w&&(D(),A.tabindex===0&&nextTick(()=>{var K;(K=E.value)==null||K.focus()})),!W&&w&&(w=!1,b("close"))}),useExpose({popupRef:E}),useLockScroll(E,()=>d.show&&d.lockScroll),useEventListener$1("popstate",()=>{d.closeOnPopstate&&(k(),x=!1)}),onMounted(()=>{d.show&&D()}),onActivated(()=>{x&&(b("update:show",!0),x=!1)}),onDeactivated(()=>{d.show&&d.teleport&&(k(),x=!0)}),provide(POPUP_TOGGLE_KEY,()=>d.show),()=>d.teleport?createVNode(Teleport,{to:d.teleport},{default:()=>[$(),U()]}):createVNode(Fragment,null,[$(),U()])}});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:A}){let C,w=!1;const x=()=>{const k=d.show&&d.forbidClick;w!==k&&(w=k,lockClick(w))},S=k=>b("update:show",k),E=()=>{d.closeOnClick&&S(!1)},P=()=>clearTimeout(C),B=()=>{const{icon:k,type:I,iconSize:$,iconPrefix:M,loadingType:L}=d;if(k||I==="success"||I==="fail")return createVNode(Icon$1,{name:k||I,size:$,class:bem$3("icon"),classPrefix:M},null);if(I==="loading")return createVNode(Loading,{class:bem$3("loading"),size:$,type:L},null)},D=()=>{const{type:k,message:I}=d;if(A.message)return createVNode("div",{class:bem$3("text")},[A.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],x),watch(()=>[d.show,d.type,d.message,d.duration],()=>{P(),d.show&&d.duration>0&&(C=setTimeout(()=>{S(!1)},d.duration))}),onMounted(x),onUnmounted(x),()=>createVNode(Popup,mergeProps({class:[bem$3([d.position,d.wordBreak==="normal"?"break-normal":d.wordBreak,{[d.type]:!d.icon}]),d.className],lockScroll:!1,onClick:E,onClosed:P,"onUpdate:show":S},pick$1(d,popupInheritProps)),{default:()=>[B(),D()]})}});function usePopupState(){const d=reactive({show:!1}),b=w=>{d.show=w},A=w=>{extend$1(d,w,{transitionAppear:!0}),b(!0)},C=()=>b(!1);return useExpose({open:A,close:C,toggle:b}),{open:A,close:C,state:d,toggle:b}}function mountComponent(d){const b=createApp(d),A=document.createElement("div");return document.body.appendChild(A),{instance:b.mount(A),unmount(){b.unmount(),document.body.removeChild(A)}}}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 A=ref(""),{open:C,state:w,close:x,toggle:S}=usePopupState(),E=()=>{},P=()=>createVNode(stdin_default$3,mergeProps(w,{onClosed:E,"onUpdate:show":S}),null);return watch(A,B=>{w.message=B}),getCurrentInstance().render=P,{open:C,close:x,message:A}}});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(),A=parseOptions(d);return b.open(extend$1({},currentOptions$1,defaultOptionsMap.get(A.type||currentOptions$1.type),A)),b}const closeToast=d=>{queue$1.length&&(d?(queue$1.forEach(b=>{b.close()}),queue$1=[]):queue$1[0].close())};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 A=()=>{const z=b.description?b.description():d.description;if(z)return createVNode("p",{class:bem$2("description")},[z])},C=()=>{if(b.default)return createVNode("div",{class:bem$2("bottom")},[b.default()])},w=useId(),x=z=>"".concat(w,"-").concat(z),S=z=>"url(#".concat(x(z),")"),E=(z,Q,q)=>createVNode("stop",{"stop-color":z,offset:"".concat(Q,"%"),"stop-opacity":q},null),P=(z,Q)=>[E(z,0),E(Q,100)],B=z=>[createVNode("defs",null,[createVNode("radialGradient",{id:x(z),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[E("#EBEDF0",0),E("#F2F3F5",100,.3)])]),createVNode("ellipse",{fill:S(z),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],D=()=>[createVNode("defs",null,[createVNode("linearGradient",{id:x("a"),x1:"64%",y1:"100%",x2:"64%"},[E("#FFF",0,.5),E("#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:x("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[E("#F2F3F5",0,.3),E("#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:x(1),x1:"64%",y1:"100%",x2:"64%"},[E("#FFF",0,.5),E("#F2F3F5",100)]),createVNode("linearGradient",{id:x(2),x1:"50%",x2:"50%",y2:"84%"},[E("#EBEDF0",0),E("#DCDEE0",100,0)]),createVNode("linearGradient",{id:x(3),x1:"100%",x2:"100%",y2:"100%"},[P("#EAEDF0","#DCDEE0")]),createVNode("radialGradient",{id:x(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[E("#EBEDF0",0),E("#FFF",100,0)])]),createVNode("g",{fill:"none"},[D(),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)])])]),$=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:x(5)},[P("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:x(6)},[P("#EAEDF1","#DCDEE0")]),createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:x(7)},[P("#EAEDF1","#DCDEE0")])]),D(),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)])]),M=()=>createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:x(8)},[P("#EAEDF1","#DCDEE0")])]),D(),k(),B("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:x(9)},[P("#EEE","#D8D8D8")]),createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:x(10)},[P("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:x(11)},[P("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:x(12)},[P("#FFF","#F7F8FA")])]),D(),k(),B("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)])]),H=()=>{var z;if(b.image)return b.image();const Q={error:M,search:L,network:I,default:$};return((z=Q[d.image])==null?void 0:z.call(Q))||createVNode("img",{src:d.image},null)};return()=>createVNode("div",{class:bem$2()},[createVNode("div",{class:bem$2("image"),style:getSizeStyle(d.imageSize)},[H()]),A(),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:A}){const C=ref(),w=reactive({confirm:!1,cancel:!1}),x=z=>b("update:show",z),S=z=>{var Q;x(!1),(Q=d.callback)==null||Q.call(d,z)},E=z=>()=>{d.show&&(b(z),d.beforeClose?(w[z]=!0,callInterceptor(d.beforeClose,{args:[z],done(){S(z),w[z]=!1},canceled(){w[z]=!1}})):S(z))},P=E("cancel"),B=E("confirm"),D=withKeys(z=>{var Q,q;if(z.target!==((q=(Q=C.value)==null?void 0:Q.popupRef)==null?void 0:q.value))return;({Enter:d.showConfirmButton?B:noop$2,Escape:d.showCancelButton?P:noop$2})[z.key](),b("keydown",z)},["enter","esc"]),k=()=>{const z=A.title?A.title():d.title;if(z)return createVNode("div",{class:bem$1("header",{isolated:!d.message&&!A.default})},[z])},I=z=>{const{message:Q,allowHtml:q,messageAlign:V}=d,U=bem$1("message",{"has-title":z,[V]:V}),W=isFunction$4(Q)?Q():Q;return q&&typeof W=="string"?createVNode("div",{class:U,innerHTML:W},null):createVNode("div",{class:U},[W])},$=()=>{if(A.default)return createVNode("div",{class:bem$1("content")},[A.default()]);const{title:z,message:Q,allowHtml:q}=d;if(Q){const V=!!(z||A.title);return createVNode("div",{key:q?1:0,class:bem$1("content",{isolated:!V})},[I(V)])}},M=()=>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:P},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:B},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:P},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:B},null)]}),H=()=>A.footer?A.footer():d.theme==="round-button"?L():M();return()=>{const{width:z,title:Q,theme:q,message:V,className:U}=d;return createVNode(Popup,mergeProps({ref:C,role:"dialog",class:[bem$1([q]),U],style:{width:addUnit(z)},tabindex:0,"aria-labelledby":Q||V,onKeydown:D,"onUpdate:show":x},pick$1(d,popupInheritKeys)),{default:()=>[k(),$(),H()]})}}});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:A}=usePopupState();return()=>createVNode(stdin_default$1,mergeProps(b,{"onUpdate:show":A}),null)}}))}function showDialog(d){return inBrowser$3?new Promise((b,A)=>{instance||initInstance(),instance.open(extend$1({},currentOptions,d,{callback:C=>{(C==="confirm"?b:A)(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:A}){const C=ref(),w=usePlaceholder(C,bem),x=D=>b("clickLeft",D),S=D=>b("clickRight",D),E=()=>A.left?A.left():[d.leftArrow&&createVNode(Icon$1,{class:bem("arrow"),name:"arrow-left"},null),d.leftText&&createVNode("span",{class:bem("text")},[d.leftText])],P=()=>A.right?A.right():createVNode("span",{class:bem("text")},[d.rightText]),B=()=>{const{title:D,fixed:k,border:I,zIndex:$}=d,M=getZIndexStyle($),L=d.leftArrow||d.leftText||A.left,H=d.rightText||A.right;return createVNode("div",{ref:C,style:M,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:x},[E()]),createVNode("div",{class:[bem("title"),"van-ellipsis"]},[A.title?A.title():D]),H&&createVNode("div",{class:[bem("right"),d.clickable?HAPTICS_FEEDBACK:""],onClick:S},[P()])])])};return()=>d.fixed&&d.placeholder?w(B):B()}});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 A=d.slice(0,b),C=d.slice(b);return Array.prototype.concat.call([],decodeComponents(A),decodeComponents(C))}function decode$3(d){try{return decodeURIComponent(d)}catch(b){let A=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=>(A,C)=>{const w=A.length;return C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?A:C===null?[...A,[encode$1(b,d),"[",w,"]"].join("")]:[...A,[encode$1(b,d),"[",encode$1(w,d),"]=",encode$1(C,d)].join("")]};case"bracket":return b=>(A,C)=>C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?A:C===null?[...A,[encode$1(b,d),"[]"].join("")]:[...A,[encode$1(b,d),"[]=",encode$1(C,d)].join("")];case"colon-list-separator":return b=>(A,C)=>C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?A:C===null?[...A,[encode$1(b,d),":list="].join("")]:[...A,[encode$1(b,d),":list=",encode$1(C,d)].join("")];case"comma":case"separator":case"bracket-separator":{const b=d.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(C,w)=>w===void 0||d.skipNull&&w===null||d.skipEmptyString&&w===""?C:(w=w===null?"":w,C.length===0?[[encode$1(A,d),b,encode$1(w,d)].join("")]:[[C,encode$1(w,d)].join(d.arrayFormatSeparator)])}default:return b=>(A,C)=>C===void 0||d.skipNull&&C===null||d.skipEmptyString&&C===""?A:C===null?[...A,encode$1(b,d)]:[...A,[encode$1(b,d),"=",encode$1(C,d)].join("")]}}function parserForArrayFormat(d){let b;switch(d.arrayFormat){case"index":return(A,C,w)=>{if(b=/\[(\d*)]$/.exec(A),A=A.replace(/\[\d*]$/,""),!b){w[A]=C;return}w[A]===void 0&&(w[A]={}),w[A][b[1]]=C};case"bracket":return(A,C,w)=>{if(b=/(\[])$/.exec(A),A=A.replace(/\[]$/,""),!b){w[A]=C;return}if(w[A]===void 0){w[A]=[C];return}w[A]=[...w[A],C]};case"colon-list-separator":return(A,C,w)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){w[A]=C;return}if(w[A]===void 0){w[A]=[C];return}w[A]=[...w[A],C]};case"comma":case"separator":return(A,C,w)=>{const x=typeof C=="string"&&C.includes(d.arrayFormatSeparator),S=typeof C=="string"&&!x&&decode$2(C,d).includes(d.arrayFormatSeparator);C=S?decode$2(C,d):C;const E=x||S?C.split(d.arrayFormatSeparator).map(P=>decode$2(P,d)):C===null?C:decode$2(C,d);w[A]=E};case"bracket-separator":return(A,C,w)=>{const x=/(\[])$/.test(A);if(A=A.replace(/\[]$/,""),!x){w[A]=C&&decode$2(C,d);return}const S=C===null?[]:C.split(d.arrayFormatSeparator).map(E=>decode$2(E,d));if(w[A]===void 0){w[A]=S;return}w[A]=[...w[A],...S]};default:return(A,C,w)=>{if(w[A]===void 0){w[A]=C;return}w[A]=[...[w[A]].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,A)=>Number(b)-Number(A)).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 A=d.indexOf("#");return A!==-1&&(b=d.slice(A)),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 A=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 x=b.decode?w.replace(/\+/g," "):w;let[S,E]=splitOnFirst(x,"=");S===void 0&&(S=x),E=E===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?E:decode$2(E,b),A(decode$2(S,b),E,C)}for(const[w,x]of Object.entries(C))if(typeof x=="object"&&x!==null)for(const[S,E]of Object.entries(x))x[S]=parseValue(E,b);else C[w]=parseValue(x,b);return b.sort===!1?C:(b.sort===!0?Object.keys(C).sort():Object.keys(C).sort(b.sort)).reduce((w,x)=>{const S=C[x];return S&&typeof S=="object"&&!Array.isArray(S)?w[x]=keysSorter(S):w[x]=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 A=S=>b.skipNull&&isNullOrUndefined(d[S])||b.skipEmptyString&&d[S]==="",C=encoderForArrayFormat(b),w={};for(const[S,E]of Object.entries(d))A(S)||(w[S]=E);const x=Object.keys(w);return b.sort!==!1&&x.sort(b.sort),x.map(S=>{const E=d[S];return E===void 0?"":E===null?encode$1(S,b):Array.isArray(E)?E.length===0&&b.arrayFormat==="bracket-separator"?encode$1(S,b)+"[]":E.reduce(C(S),[]).join("&"):encode$1(S,b)+"="+encode$1(E,b)}).filter(S=>S.length>0).join("&")}function parseUrl(d,b){var w,x;b={decode:!0,...b};let[A,C]=splitOnFirst(d,"#");return A===void 0&&(A=d),{url:(x=(w=A==null?void 0:A.split("?"))==null?void 0:w[0])!=null?x:"",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 A=removeHash(d.url).split("?")[0]||"",C=extract(d.url),w={...parse$3(C,{sort:!1}),...d.query};let x=stringify$2(w,b);x&&(x="?".concat(x));let S=getHash(d.url);if(d.fragmentIdentifier){const E=new URL(A);E.hash=d.fragmentIdentifier,S=b[encodeFragmentIdentifier]?E.hash:"#".concat(d.fragmentIdentifier)}return"".concat(A).concat(x).concat(S)}function pick(d,b,A){A={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...A};const{url:C,query:w,fragmentIdentifier:x}=parseUrl(d,A);return stringifyUrl({url:C,query:includeKeys(w,b),fragmentIdentifier:x},A)}function exclude(d,b,A){const C=Array.isArray(b)?w=>!b.includes(w):(w,x)=>!b(w,x);return pick(d,C,A)}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 A=function C(){return this instanceof C?Reflect.construct(b,arguments,this.constructor):b.apply(this,arguments)};A.prototype=b.prototype}else A={};return Object.defineProperty(A,"__esModule",{value:!0}),Object.keys(d).forEach(function(C){var w=Object.getOwnPropertyDescriptor(d,C);Object.defineProperty(A,C,w.get?w:{enumerable:!0,get:function(){return d[C]}})}),A}var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var b={},A=Symbol("test"),C=Object(A);if(typeof A=="string"||Object.prototype.toString.call(A)!=="[object Symbol]"||Object.prototype.toString.call(C)!=="[object Symbol]")return!1;var w=42;b[A]=w;for(A 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 x=Object.getOwnPropertySymbols(b);if(x.length!==1||x[0]!==A||!Object.prototype.propertyIsEnumerable.call(b,A))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(b,A);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 A=this;if(typeof A!="function"||toStr$1.call(A)!==funcType)throw new TypeError(ERROR_MESSAGE+A);for(var C=slice$2.call(arguments,1),w,x=function(){if(this instanceof w){var D=A.apply(this,C.concat(slice$2.call(arguments)));return Object(D)===D?D:this}else return A.apply(b,C.concat(slice$2.call(arguments)))},S=Math.max(0,A.length-C.length),E=[],P=0;P"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 A;if(b==="%AsyncFunction%")A=getEvalledConstructor("async function () {}");else if(b==="%GeneratorFunction%")A=getEvalledConstructor("function* () {}");else if(b==="%AsyncGeneratorFunction%")A=getEvalledConstructor("async function* () {}");else if(b==="%AsyncGenerator%"){var C=d("%AsyncGeneratorFunction%");C&&(A=C.prototype)}else if(b==="%AsyncIteratorPrototype%"){var w=d("%AsyncGenerator%");w&&getProto&&(A=getProto(w.prototype))}return INTRINSICS[b]=A,A},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 A=$strSlice(b,0,1),C=$strSlice(b,-1);if(A==="%"&&C!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(C==="%"&&A!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var w=[];return $replace$1(b,rePropName$1,function(x,S,E,P){w[w.length]=E?$replace$1(P,reEscapeChar$1,"$1"):S||x}),w},getBaseIntrinsic=function(b,A){var C=b,w;if(hasOwn$1(LEGACY_ALIASES,C)&&(w=LEGACY_ALIASES[C],C="%"+w[0]+"%"),hasOwn$1(INTRINSICS,C)){var x=INTRINSICS[C];if(x===needsEval&&(x=doEval(C)),typeof x>"u"&&!A)throw new $TypeError$1("intrinsic "+b+" exists, but is not available. Please file an issue!");return{alias:w,name:C,value:x}}throw new $SyntaxError("intrinsic "+b+" does not exist!")},getIntrinsic=function(b,A){if(typeof b!="string"||b.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof A!="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]:"",x=getBaseIntrinsic("%"+w+"%",A),S=x.name,E=x.value,P=!1,B=x.alias;B&&(w=B[0],$spliceApply(C,$concat$1([0,1],B)));for(var D=1,k=!0;D=C.length){var L=$gOPD(E,I);k=!!L,k&&"get"in L&&!("originalValue"in L.get)?E=L.get:E=E[I]}else k=hasOwn$1(E,I),E=E[I];k&&!P&&(INTRINSICS[S]=E)}}return E},callBind$1={exports:{}};(function(d){var b=functionBind,A=getIntrinsic,C=A("%Function.prototype.apply%"),w=A("%Function.prototype.call%"),x=A("%Reflect.apply%",!0)||b.call(w,C),S=A("%Object.getOwnPropertyDescriptor%",!0),E=A("%Object.defineProperty%",!0),P=A("%Math.max%");if(E)try{E({},"a",{value:1})}catch(D){E=null}d.exports=function(k){var I=x(b,w,arguments);if(S&&E){var $=S(I,"length");$.configurable&&E(I,"length",{value:1+P(0,k.length-(arguments.length-1))})}return I};var B=function(){return x(b,C,arguments)};E?E(d.exports,"apply",{value:B}):d.exports.apply=B})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(b,A){var C=GetIntrinsic$1(b,!!A);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 A=/[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),x=$slice.call(b,w.length+1);return $replace.call(w,A,"$&_")+"."+$replace.call($replace.call(x,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(b,A,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$1(inspectCustom)?inspectCustom:null,objectInspect=function d(b,A,C,w){var x=A||{};if(has$3(x,"quoteStyle")&&x.quoteStyle!=="single"&&x.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(x,"maxStringLength")&&(typeof x.maxStringLength=="number"?x.maxStringLength<0&&x.maxStringLength!==1/0:x.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var S=has$3(x,"customInspect")?x.customInspect:!0;if(typeof S!="boolean"&&S!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(x,"indent")&&x.indent!==null&&x.indent!==" "&&!(parseInt(x.indent,10)===x.indent&&x.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(x,"numericSeparator")&&typeof x.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var E=x.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,x);if(typeof b=="number"){if(b===0)return 1/0/b>0?"0":"-0";var P=String(b);return E?addNumericSeparator(b,P):P}if(typeof b=="bigint"){var B=String(b)+"n";return E?addNumericSeparator(b,B):B}var D=typeof x.depth>"u"?5:x.depth;if(typeof C>"u"&&(C=0),C>=D&&D>0&&typeof b=="object")return isArray$7(b)?"[Array]":"[Object]";var k=getIndent(x,C);if(typeof w>"u")w=[];else if(indexOf(w,b)>=0)return"[Circular]";function I(se,he,me){if(he&&(w=$arrSlice.call(w),w.push(he)),me){var ie={depth:x.depth};return has$3(x,"quoteStyle")&&(ie.quoteStyle=x.quoteStyle),d(se,ie,C+1,w)}return d(se,x,C+1,w)}if(typeof b=="function"&&!isRegExp$1(b)){var $=nameOf(b),M=arrObjKeys(b,I);return"[Function"+($?": "+$:" (anonymous)")+"]"+(M.length>0?" { "+$join.call(M,", ")+" }":"")}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 H="<"+$toLowerCase.call(String(b.nodeName)),z=b.attributes||[],Q=0;Q",H}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 V=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),V),", ")+" }":V.length===0?"["+String(b)+"]":"{ ["+String(b)+"] "+$join.call(V,", ")+" }"}if(typeof b=="object"&&S){if(inspectSymbol&&typeof b[inspectSymbol]=="function"&&utilInspect)return utilInspect(b,{depth:D-C});if(S!=="symbol"&&typeof b.inspect=="function")return b.inspect()}if(isMap(b)){var U=[];return mapForEach&&mapForEach.call(b,function(se,he){U.push(I(he,b,!0)+" => "+I(se,b))}),collectionOf("Map",mapSize.call(b),U,k)}if(isSet(b)){var W=[];return setForEach&&setForEach.call(b,function(se){W.push(I(se,b))}),collectionOf("Set",setSize.call(b),W,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),Z=gPO?gPO(b)===Object.prototype:b instanceof Object||b.constructor===Object,te=b instanceof Object?"":"null prototype",ne=!Z&&toStringTag&&Object(b)===b&&toStringTag in b?$slice.call(toStr(b),8,-1):te?"Object":"",ue=Z||typeof b.constructor!="function"?"":b.constructor.name?b.constructor.name+" ":"",X=ue+(ne||te?"["+$join.call($concat.call([],ne||[],te||[]),": ")+"] ":"");return K.length===0?X+"{}":k?X+"{"+indentedJoin(K,k)+"}":X+"{ "+$join.call(K,", ")+" }"}return String(b)};function wrapQuotes(d,b,A){var C=(A.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 A=0,C=d.length;Ab.maxStringLength){var A=d.length-b.maxStringLength,C="... "+A+" more character"+(A>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),A={8:"b",9:"t",10:"n",12:"f",13:"r"}[b];return A?"\\"+A:"\\x"+(b<16?"0":"")+$toUpperCase.call(b.toString(16))}function markBoxed(d){return"Object("+d+")"}function weakCollectionOf(d){return d+" { ? }"}function collectionOf(d,b,A,C){var w=C?indentedJoin(A,C):$join.call(A,", ");return d+" ("+b+") {"+w+"}"}function singleLineValues(d){for(var b=0;b=0)return!1;return!0}function getIndent(d,b){var A;if(d.indent===" ")A=" ";else if(typeof d.indent=="number"&&d.indent>0)A=$join.call(Array(d.indent+1)," ");else return null;return{base:A,prev:$join.call(Array(b+1),A)}}function indentedJoin(d,b){if(d.length===0)return"";var A="\n"+b.prev+b.base;return A+$join.call(d,","+A)+"\n"+b.prev}function arrObjKeys(d,b){var A=isArray$7(d),C=[];if(A){C.length=d.length;for(var w=0;w1;){var A=b.pop(),C=A.obj[A.prop];if(isArray$6(C)){for(var w=[],x=0;x=48&&B<=57||B>=65&&B<=90||B>=97&&B<=122||x===formats$2.RFC1738&&(B===40||B===41)){E+=S.charAt(P);continue}if(B<128){E=E+hexTable[B];continue}if(B<2048){E=E+(hexTable[192|B>>6]+hexTable[128|B&63]);continue}if(B<55296||B>=57344){E=E+(hexTable[224|B>>12]+hexTable[128|B>>6&63]+hexTable[128|B&63]);continue}P+=1,B=65536+((B&1023)<<10|S.charCodeAt(P)&1023),E+=hexTable[240|B>>18]+hexTable[128|B>>12&63]+hexTable[128|B>>6&63]+hexTable[128|B&63]}return E},compact=function(b){for(var A=[{obj:{o:b},prop:"o"}],C=[],w=0;w"u"&&(q=0)}if(typeof P=="function"?z=P(A,z):z instanceof Date?z=k(z):C==="comma"&&isArray$5(z)&&(z=utils$1.maybeMap(z,function(ie){return ie instanceof Date?k(ie):ie})),z===null){if(x)return E&&!M?E(A,defaults$1.encoder,L,"key",I):A;z=""}if(isNonNullishPrimitive(z)||utils$1.isBuffer(z)){if(E){var W=M?A:E(A,defaults$1.encoder,L,"key",I);return[$(W)+"="+$(E(z,defaults$1.encoder,L,"value",I))]}return[$(A)+"="+$(String(z))]}var K=[];if(typeof z>"u")return K;var Z;if(C==="comma"&&isArray$5(z))M&&E&&(z=utils$1.maybeMap(z,E)),Z=[{value:z.length>0?z.join(",")||null:void 0}];else if(isArray$5(P))Z=P;else{var te=Object.keys(z);Z=B?te.sort(B):te}for(var ne=w&&isArray$5(z)&&z.length===1?A+"[]":A,ue=0;ue"u"?defaults$1.allowDots:!!b.allowDots,charset:A,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:x,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 A=d,C=normalizeStringifyOptions(b),w,x;typeof C.filter=="function"?(x=C.filter,A=x("",A)):isArray$5(C.filter)&&(x=C.filter,w=x);var S=[];if(typeof A!="object"||A===null)return"";var E;b&&b.arrayFormat in arrayPrefixGenerators?E=b.arrayFormat:b&&"indices"in b?E=b.indices?"indices":"repeat":E="indices";var P=arrayPrefixGenerators[E];if(b&&"commaRoundTrip"in b&&typeof b.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=P==="comma"&&b&&b.commaRoundTrip;w||(w=Object.keys(A)),C.sort&&w.sort(C.sort);for(var D=getSideChannel(),k=0;k0?M+$:""},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,A){return String.fromCharCode(parseInt(A,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,A){var C={__proto__:null},w=A.ignoreQueryPrefix?b.replace(/^\?/,""):b,x=A.parameterLimit===1/0?void 0:A.parameterLimit,S=w.split(A.delimiter,x),E=-1,P,B=A.charset;if(A.charsetSentinel)for(P=0;P-1&&(M=isArray$4(M)?[M]:M),has.call(C,$)?C[$]=utils.combine(C[$],M):C[$]=M}return C},parseObject=function(d,b,A,C){for(var w=C?b:parseArrayValue(b,A),x=d.length-1;x>=0;--x){var S,E=d[x];if(E==="[]"&&A.parseArrays)S=[].concat(w);else{S=A.plainObjects?Object.create(null):{};var P=E.charAt(0)==="["&&E.charAt(E.length-1)==="]"?E.slice(1,-1):E,B=parseInt(P,10);!A.parseArrays&&P===""?S={0:w}:!isNaN(B)&&E!==P&&String(B)===P&&B>=0&&A.parseArrays&&B<=A.arrayLimit?(S=[],S[B]=w):P!=="__proto__"&&(S[P]=w)}w=S}return w},parseKeys=function(b,A,C,w){if(b){var x=C.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,S=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,P=C.depth>0&&S.exec(x),B=P?x.slice(0,P.index):x,D=[];if(B){if(!C.plainObjects&&has.call(Object.prototype,B)&&!C.allowPrototypes)return;D.push(B)}for(var k=0;C.depth>0&&(P=E.exec(x))!==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:A,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 A=normalizeParseOptions(b);if(d===""||d===null||typeof d>"u")return A.plainObjects?Object.create(null):{};for(var C=typeof d=="string"?parseValues(d,A):d,w=A.plainObjects?Object.create(null):{},x=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 A=d.shift();return{done:A===void 0,value:A}}};return support.iterable&&(b[Symbol.iterator]=function(){return b}),b}function Headers(d){this.map={},d instanceof Headers?d.forEach(function(b,A){this.append(A,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 A=this.map[d];this.map[d]=A?A+", "+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 A in this.map)this.map.hasOwnProperty(A)&&d.call(b,this.map[A],A,this)};Headers.prototype.keys=function(){var d=[];return this.forEach(function(b,A){d.push(A)}),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,A){d.push([A,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,A){d.onload=function(){b(d.result)},d.onerror=function(){A(d.error)}})}function readBlobAsArrayBuffer(d){var b=new FileReader,A=fileReaderReady(b);return b.readAsArrayBuffer(d),A}function readBlobAsText(d){var b=new FileReader,A=fileReaderReady(b),C=/charset=([A-Za-z0-9_-]+)/.exec(d.type),w=C?C[1]:"utf-8";return b.readAsText(d,w),A}function readArrayBufferAsText(d){for(var b=new Uint8Array(d),A=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 A=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,!A&&d._bodyInit!=null&&(A=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 x=new AbortController;return x.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(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(A){if(A){var C=A.split("="),w=C.shift().replace(/\+/g," "),x=C.join("=").replace(/\+/g," ");b.append(decodeURIComponent(w),decodeURIComponent(x))}}),b}function parseHeaders(d){var b=new Headers,A=d.replace(/\r?\n[\t ]+/g," ");return A.split("\r").map(function(C){return C.indexOf("\n")===0?C.substr(1,C.length):C}).forEach(function(C){var w=C.split(":"),x=w.shift().trim();if(x){var S=w.join(":").trim();try{b.append(x,S)}catch(E){console.warn("Response "+E.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,A){this.message=b,this.name=A;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(A,C){var w=new Request(d,b);if(w.signal&&w.signal.aborted)return C(new DOMException("Aborted","AbortError"));var x=new XMLHttpRequest;function S(){x.abort()}x.onload=function(){var B={status:x.status,statusText:x.statusText,headers:parseHeaders(x.getAllResponseHeaders()||"")};B.url="responseURL"in x?x.responseURL:B.headers.get("X-Request-URL");var D="response"in x?x.response:x.responseText;setTimeout(function(){A(new Response(D,B))},0)},x.onerror=function(){setTimeout(function(){C(new TypeError("Network request failed"))},0)},x.ontimeout=function(){setTimeout(function(){C(new TypeError("Network request failed"))},0)},x.onabort=function(){setTimeout(function(){C(new DOMException("Aborted","AbortError"))},0)};function E(B){try{return B===""&&g.location.href?g.location.href:B}catch(D){return B}}if(x.open(w.method,E(w.url),!0),w.credentials==="include"?x.withCredentials=!0:w.credentials==="omit"&&(x.withCredentials=!1),"responseType"in x&&(support.blob?x.responseType="blob":support.arrayBuffer&&(x.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof Headers||g.Headers&&b.headers instanceof g.Headers)){var P=[];Object.getOwnPropertyNames(b.headers).forEach(function(B){P.push(normalizeName(B)),x.setRequestHeader(B,normalizeValue(b.headers[B]))}),w.headers.forEach(function(B,D){P.indexOf(D)===-1&&x.setRequestHeader(D,B)})}else w.headers.forEach(function(B,D){x.setRequestHeader(D,B)});w.signal&&(w.signal.addEventListener("abort",S),x.onreadystatechange=function(){x.readyState===4&&w.signal.removeEventListener("abort",S)}),x.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 A=Object.keys(d);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(d);b&&(C=C.filter(function(w){return Object.getOwnPropertyDescriptor(d,w).enumerable})),A.push.apply(A,C)}return A}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$1(d,b,A){return _isNativeReflectConstruct$1()?_construct$1=Reflect.construct:_construct$1=function(w,x,S){var E=[null];E.push.apply(E,x);var P=Function.bind.apply(w,E),B=new P;return S&&_setPrototypeOf$1(B,S.prototype),B},_construct$1.apply(null,arguments)}function _isNativeFunction$1(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function _wrapNativeSuper$1(d){var b=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(C){if(C===null||!_isNativeFunction$1(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$1(C,arguments,_getPrototypeOf$1(this).constructor)}return w.prototype=Object.create(C.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$1(w,C)},_wrapNativeSuper$1(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$1();return function(){var C=_getPrototypeOf$1(d),w;if(b){var x=_getPrototypeOf$1(this).constructor;w=Reflect.construct(C,arguments,x)}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 A=Object.prototype.toString.call(d).slice(8,-1);if(A==="Object"&&d.constructor&&(A=d.constructor.name),A==="Map"||A==="Set")return Array.from(d);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return _arrayLikeToArray(d,b)}}function _arrayLikeToArray(d,b){(b==null||b>d.length)&&(b=d.length);for(var A=0,C=new Array(b);A1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},w=!1,x=!1,S=!1;if(typeof C=="number"?(process&&process.env,w=!0,x=!1):_typeof$1(C)==="object"&&C&&(x=C.global||!1,w=C.core||!1,S=C.defaultInstance||!1),x){d.globalMiddlewares.splice(d.globalMiddlewares.length-d.defaultGlobalMiddlewaresLength,0,A);return}if(w){d.coreMiddlewares.splice(d.coreMiddlewares.length-d.defaultCoreMiddlewaresLength,0,A);return}if(S){this.defaultMiddlewares.push(A);return}this.middlewares.push(A)}},{key:"execute",value:function(){var A=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(A)}}]),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(A){this.maxCache=A.maxCache||0}},{key:"get",value:function(A){return this.cache.get(JSON.stringify(A))}},{key:"set",value:function(A,C){var w=this,x=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 E=JSON.stringify(A);this.cache.set(E,C),x>0&&(this.timer[E]=setTimeout(function(){w.cache.delete(E),delete w.timer[E]},x))}},{key:"delete",value:function(A){var C=JSON.stringify(A);return delete this.timer[C],this.cache.delete(C)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),d}(),RequestError=function(d){_inherits(A,d);var b=_createSuper(A);function A(C,w){var x,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return _classCallCheck$1(this,A),x=b.call(this,C),x.name="RequestError",x.request=w,x.type=S,x}return A}(_wrapNativeSuper$1(Error)),ResponseError=function(d){_inherits(A,d);var b=_createSuper(A);function A(C,w,x,S){var E,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return _classCallCheck$1(this,A),E=b.call(this,w||C.statusText),E.name="ResponseError",E.data=x,E.response=C,E.request=S,E.type=P,E}return A}(_wrapNativeSuper$1(Error));function readerGBK(d){return new Promise(function(b,A){var C=new FileReader;C.onload=function(){b(C.result)},C.onerror=A,C.readAsText(d,"GBK")})}function safeJsonParse(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=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(A,"JSON.parse fail",d,C,"ParseError")}return d}function timeout2Throw(d,b,A){return new Promise(function(C,w){setTimeout(function(){w(new RequestError(b||"timeout of ".concat(d,"ms exceeded"),A,"Timeout"))},d)})}function cancel2Throw(d){return new Promise(function(b,A){d.cancelToken&&d.cancelToken.promise.then(function(C){A(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 A=0;A1&&arguments[1]!==void 0?arguments[1]:{},C=A.prefix,w=A.suffix;return C&&(b="".concat(C).concat(b)),w&&(b="".concat(b).concat(w)),{url:b,options:A}},warnedCoreType=!1;function __defaultValidateCache(d,b){var A=b.method,C=A===void 0?"get":A;return C.toLowerCase()==="get"}function fetchMiddleware(d,b){if(!d)return b();var A=d.req;A=A===void 0?{}:A;var C=A.options,w=C===void 0?{}:C,x=A.url,S=x===void 0?"":x,E=d.cache,P=d.responseInterceptors,B=w.timeout,D=B===void 0?0:B,k=w.timeoutMessage,I=w.__umiRequestCoreType__,$=I===void 0?"normal":I,M=w.useCache,L=M===void 0?!1:M,H=w.method,z=H===void 0?"get":H,Q=w.params,q=w.ttl,V=w.validateCache,U=V===void 0?__defaultValidateCache:V;if($!=="normal")return process&&process.env,b();var W=fetch;if(!W)throw new Error("Global fetch not exist!");var K=getEnv()==="BROWSER",Z=U(S,w)&&L&&K;if(Z){var te=E.get({url:S,params:Q,method:z});if(te)return te=te.clone(),te.useCache=!0,d.res=te,b()}var ne;return D>0?ne=Promise.race([cancel2Throw(w),W(S,w),timeout2Throw(D,k,d.req)]):ne=Promise.race([cancel2Throw(w),W(S,w)]),P.forEach(function(ue){ne=ne.then(function(X){var se=typeof X.clone=="function"?X.clone():X;return ue(se,w)})}),ne.then(function(ue){if(Z&&ue.status===200){var X=ue.clone();X.useCache=!0,E.set({url:S,params:Q,method:z},X,q)}return d.res=ue,b()})}function parseResponseMiddleware(d,b){var A;return b().then(function(){if(d){var C=d.res,w=C===void 0?{}:C,x=d.req,S=x===void 0?{}:x,E=S||{},P=E.options;P=P===void 0?{}:P;var B=P.responseType,D=B===void 0?"json":B,k=P.charset,I=k===void 0?"utf8":k;P.getResponse;var $=P.throwErrIfParseFail,M=$===void 0?!1:$,L=P.parseResponse,H=L===void 0?!0:L;if(H&&!(!w||!w.clone)){if(A=getEnv()==="BROWSER"?w.clone():w,A.useCache=w.useCache||!1,I==="gbk")try{return w.blob().then(readerGBK).then(function(z){return safeJsonParse(z,!1,A,S)})}catch(z){throw new ResponseError(A,z.message,null,S,"ParseError")}else if(D==="json")return w.text().then(function(z){return safeJsonParse(z,M,A,S)});try{return w[D]()}catch(z){throw new ResponseError(A,"responseType not support",null,S,"ParseError")}}}}).then(function(C){if(d){d.res;var w=d.req,x=w===void 0?{}:w,S=x||{},E=S.options;E=E===void 0?{}:E;var P=E.getResponse,B=P===void 0?!1:P;if(A){if(A.status>=200&&A.status<300){if(B){d.res={data:C,response:A};return}d.res=C;return}throw new ResponseError(A,"http error",C,x,"HttpError")}}}).catch(function(C){if(C instanceof RequestError||C instanceof ResponseError)throw C;var w=d.req,x=d.res;throw C.request=C.request||w,C.response=C.response||x,C.type=C.type||C.name,C.data=C.data||void 0,C})}function simplePostMiddleware(d,b){if(!d)return b();var A=d.req;A=A===void 0?{}:A;var C=A.options,w=C===void 0?{}:C,x=w.method,S=x===void 0?"get":x;if(["post","put","patch","delete"].indexOf(S.toLowerCase())===-1)return b();var E=w.requestType,P=E===void 0?"json":E,B=w.data;if(B){var D=Object.prototype.toString.call(B);D==="[object Object]"||D==="[object Array]"?P==="json"?(w.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},w.headers),w.body=JSON.stringify(B)):P==="form"&&(w.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},w.headers),w.body=reqStringify(B)):(w.headers=_objectSpread2({Accept:"application/json"},w.headers),w.body=B)}return d.req.options=w,b()}function paramsSerialize(d,b){var A,C;if(d)if(b)A=b(d);else if(isURLSearchParams(d))A=d.toString();else if(isArray$3(d))C=[],forEach2ObjArr(d,function(x){x===null||typeof x>"u"?C.push(x):C.push(isObject$4(x)?JSON.stringify(x):x)}),A=reqStringify(C);else{C={},forEach2ObjArr(d,function(x,S){var E=x;x===null||typeof x>"u"?C[S]=x:isDate(x)?E=x.toISOString():isArray$3(x)?E=x:isObject$4(x)&&(E=JSON.stringify(x)),C[S]=E});var w=reqStringify(C);A=w}return A}function simpleGetMiddleware(d,b){if(!d)return b();var A=d.req;A=A===void 0?{}:A;var C=A.options,w=C===void 0?{}:C,x=w.paramsSerializer,S=w.params,E=d.req;E=E===void 0?{}:E;var P=E.url,B=P===void 0?"":P;w.method=w.method?w.method.toUpperCase():"GET",w.credentials=w.credentials||"same-origin";var D=paramsSerialize(S,x);if(d.req.originUrl=B,D){var k=B.indexOf("?")!==-1?"&":"?";d.req.url="".concat(B).concat(k).concat(D)}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(A){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(A,C),this}},{key:"extendOptions",value:function(A){this.initOptions=mergeRequestOptions(this.initOptions,A),this.mapCache.extendOptions(A)}},{key:"dealRequestInterceptors",value:function(A){var C=function(S,E){return S.then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return A.req.url=P.url||A.req.url,A.req.options=P.options||A.req.options,E(A.req.url,A.req.options)})},w=[].concat(_toConsumableArray(d.requestInterceptors),_toConsumableArray(this.instanceRequestInterceptors));return w.reduce(C,Promise.resolve()).then(function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return A.req.url=x.url||A.req.url,A.req.options=x.options||A.req.options,Promise.resolve()})}},{key:"request",value:function(A,C){var w=this,x=this.onion,S={req:{url:A,options:_objectSpread2(_objectSpread2({},C),{},{url:A})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray(d.responseInterceptors),_toConsumableArray(this.instanceResponseInterceptors))};if(typeof A!="string")throw new Error("url MUST be a string");return new Promise(function(E,P){w.dealRequestInterceptors(S).then(function(){return x.execute(S)}).then(function(){E(S.res)}).catch(function(B){var D=S.req.options.errorHandler;if(D)try{var k=D(B);E(k)}catch(I){P(I)}else P(B)})})}}],[{key:"requestUse",value:function(A){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof A!="function")throw new TypeError("Interceptor must be function!");C.global?d.requestInterceptors.push(A):this.instanceRequestInterceptors.push(A)}},{key:"responseUse",value:function(A){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof A!="function")throw new TypeError("Interceptor must be function!");C.global?d.responseInterceptors.push(A):this.instanceResponseInterceptors.push(A)}}]),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 A=this;d(function(w){A.reason||(A.reason=new Cancel(w),b(A.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};CancelToken.source=function(){var b,A=new CancelToken(function(w){b=w});return{token:A,cancel:b}};function isCancel(d){return!!(d&&d.__CANCEL__)}var request$1=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=new Core(b),C=function(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=mergeRequestOptions(A.initOptions,E);return A.request(S,P)};C.use=A.use.bind(A),C.fetchIndex=A.fetchIndex,C.interceptors={request:{use:Core.requestUse.bind(A)},response:{use:Core.responseUse.bind(A)}};var w=["get","post","delete","put","patch","head","options","rpc"];return w.forEach(function(x){C[x]=function(S,E){return C(S,_objectSpread2(_objectSpread2({},E),{},{method:x}))}}),C.Cancel=Cancel,C.CancelToken=CancelToken,C.isCancel=isCancel,C.extendOptions=A.extendOptions.bind(A),C.middlewares={instance:A.onion.middlewares,defaultInstance:A.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},C},extend=function(b){return request$1(b)};request$1({parseResponse:!1});var request$1$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,A,C,w){for(var x=1;x"u"?null:console;if(d){var b=d.warn?d.warn:d.log;b.apply(d,arguments)}}function createStore(d,b,A){A||(A=""),d&&!isList(d)&&(d=[d]),b&&!isList(b)&&(b=[b]);var C=A?"__storejs_"+A+"_":"",w=A?new RegExp("^"+C):null,x=/^[a-zA-Z0-9_\-]*$/;if(!x.test(A))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var S={_namespacePrefix:C,_namespaceRegexp:w,_testStorage:function(P){try{var B="__storejs__test__";P.write(B,B);var D=P.read(B)===B;return P.remove(B),D}catch(k){return!1}},_assignPluginFnProp:function(P,B){var D=this[B];this[B]=function(){var I=slice(arguments,0),$=this;function M(){if(D)return each$6(arguments,function(H,z){I[z]=H}),D.apply($,I)}var L=[M].concat(I);return P.apply($,L)}},_serialize:function(P){return JSON.stringify(P)},_deserialize:function(P,B){if(!P)return B;var D="";try{D=JSON.parse(P)}catch(k){D=P}return D!==void 0?D:B},_addStorage:function(P){this.enabled||this._testStorage(P)&&(this.storage=P,this.enabled=!0)},_addPlugin:function(P){var B=this;if(isList(P)){each$6(P,function(I){B._addPlugin(I)});return}var D=pluck(this.plugins,function(I){return P===I});if(!D){if(this.plugins.push(P),!isFunction$2(P))throw new Error("Plugins must be function values that return objects");var k=P.call(this);if(!isObject$2(k))throw new Error("Plugins must return an object of function properties");each$6(k,function(I,$){if(!isFunction$2(I))throw new Error("Bad plugin property: "+$+" from plugin "+P.name+". Plugins should only return functions.");B._assignPluginFnProp(I,$)})}},addStorage:function(P){_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(P)}},E=create$1(S,storeAPI,{plugins:[]});return E.raw={},each$6(E,function(P,B){isFunction$2(P)&&(E.raw[B]=bind(E,P))}),each$6(d,function(P){E._addStorage(P)}),each$6(b,function(P){E._addPlugin(P)}),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 A=localStorage$1().key(b);d(read$5(A),A)}}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 A=globalStorage.key(b);d(globalStorage[A],A)}}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 A=fixKey(d);_withStorageEl(function(C){C.setAttribute(A,b),C.save(storageName)})}}function read$3(d){if(!disable){var b=fixKey(d),A=null;return _withStorageEl(function(C){A=C.getAttribute(b)}),A}}function each$3(d){_withStorageEl(function(b){for(var A=b.XMLDocument.documentElement.attributes,C=A.length-1;C>=0;C--){var w=A[C];d(b.getAttribute(w.name),w.name)}})}function remove$3(d){var b=fixKey(d);_withStorageEl(function(A){A.removeAttribute(b),A.save(storageName)})}function clearAll$3(){_withStorageEl(function(d){var b=d.XMLDocument.documentElement.attributes;d.load(storageName);for(var A=b.length-1;A>=0;A--)d.removeAttribute(b[A].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,A,C;try{A=new ActiveXObject("htmlfile"),A.open(),A.write("<"+d+">document.w=window'),A.close(),b=A.w.frames[0].document,C=b.createElement("div")}catch(w){C=doc$1.createElement("div"),b=doc$1.body}return function(w){var x=[].slice.call(arguments,0);x.unshift(C),b.appendChild(C),C.addBehavior("#default#userData"),C.load(storageName),w.apply(this,x),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),A=b.length-1;A>=0;A--)if(trim(b[A])){var C=b[A].split("="),w=unescape(C[0]),x=unescape(C[1]);d(x,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 A=sessionStorage$1().key(b);d(read$1(A),A)}}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 A=meta[b];return typeof A=="string"?A:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+d+'"'}function str(d,b){var A,C,w,x,S=gap,E,P=b[d];switch(P&&typeof P=="object"&&typeof P.toJSON=="function"&&(P=P.toJSON(d)),typeof rep=="function"&&(P=rep.call(b,d,P)),typeof P){case"string":return quote(P);case"number":return isFinite(P)?String(P):"null";case"boolean":case"null":return String(P);case"object":if(!P)return"null";if(gap+=indent,E=[],Object.prototype.toString.apply(P)==="[object Array]"){for(x=P.length,A=0;A{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 A=parseInt(d,16)+b,C=A>255?255:A;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 A=document.createElement("a");document.body.appendChild(A),A.setAttribute("style","display: none;"),A.href=d,A.download=b||"output.wav",A.click(),window.URL.revokeObjectURL(d),document.body.removeChild(A)}function encodeUrl(d){return window.btoa(encodeURIComponent(JSON.stringify(d)))}function decodeUrl(d){return JSON.parse(decodeURIComponent(window.atob(d)))}var eventemitter3={exports:{}};(function(d){var b=Object.prototype.hasOwnProperty,A="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(A=!1));function w(P,B,D){this.fn=P,this.context=B,this.once=D||!1}function x(P,B,D,k,I){if(typeof D!="function")throw new TypeError("The listener must be a function");var $=new w(D,k||P,I),M=A?A+B:B;return P._events[M]?P._events[M].fn?P._events[M]=[P._events[M],$]:P._events[M].push($):(P._events[M]=$,P._eventsCount++),P}function S(P,B){--P._eventsCount===0?P._events=new C:delete P._events[B]}function E(){this._events=new C,this._eventsCount=0}E.prototype.eventNames=function(){var B=[],D,k;if(this._eventsCount===0)return B;for(k in D=this._events)b.call(D,k)&&B.push(A?k.slice(1):k);return Object.getOwnPropertySymbols?B.concat(Object.getOwnPropertySymbols(D)):B},E.prototype.listeners=function(B){var D=A?A+B:B,k=this._events[D];if(!k)return[];if(k.fn)return[k.fn];for(var I=0,$=k.length,M=new Array($);I<$;I++)M[I]=k[I].fn;return M},E.prototype.listenerCount=function(B){var D=A?A+B:B,k=this._events[D];return k?k.fn?1:k.length:0},E.prototype.emit=function(B,D,k,I,$,M){var L=A?A+B:B;if(!this._events[L])return!1;var H=this._events[L],z=arguments.length,Q,q;if(H.fn){switch(H.once&&this.removeListener(B,H.fn,void 0,!0),z){case 1:return H.fn.call(H.context),!0;case 2:return H.fn.call(H.context,D),!0;case 3:return H.fn.call(H.context,D,k),!0;case 4:return H.fn.call(H.context,D,k,I),!0;case 5:return H.fn.call(H.context,D,k,I,$),!0;case 6:return H.fn.call(H.context,D,k,I,$,M),!0}for(q=1,Q=new Array(z-1);q{sessionStorage.setItem(UPLOADKEY,JSON.stringify(d||uploadState.uploadList))},getUploadCatch=()=>{const d=sessionStorage.getItem(UPLOADKEY);return d?JSON.parse(d):[]},apiRouter=whiteUrl();browser();const request=extend({requestType:"form",timeout:3e4});request.interceptors.request.use((d,b)=>{const A=storeData.proxy+storeData.platformApi;storeData.platformType==="WEB"&&apiRouter[d]&&(d=apiRouter[d]);const C=getToken(),w={};return C&&(w.Authorization=C),{url:A+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)if(d.status===511)eventGlobal.emit("auth-not-installed"),closeToast();else{const C=d.statusText+", 状态码"+d.status;throw showToast(C),new Error(C)}const A=await d.clone().json();if(A.code===5e3){window.parent.postMessage({api:"onLogin"},"*"),setTimeout(()=>{window.location.href="".concat(/(192|localhost)/.test(location.origin)?"https://test.lexiaoya.cn":location.origin,"/classroom")},500);return}if(A.code!==200&&A.errCode!==0){const C=A.msg||A.message||"处理失败,请重试";if(A.code===5e3)return A;throw A.code===403||A.code===401||showToast(C),new Error(C)}return A},{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,b)=>request.post("/musicSheetCreation/remove?id=".concat(d,"&delMusicSheet=").concat(b)),api_musicSheetCreationDetail=d=>request.get("/musicSheetCreation/detail/".concat(d)),api_musicSheetCreationUpdate=d=>request.post("/musicSheetCreation/update",{data:d,requestType:"json"}),api_subjectList=d=>request.post("/subject/list",{data:d,requestType:"json"}),api_musicSheetCreationSaveMusic=d=>request.post("/musicSheetCreation/saveMusic",{data:d,requestType:"json"}),api_musicSheetCreationWav2mp3=d=>request.get("/musicSheetCreation/wav2mp3?url="+d),api_musicalScoreConversionRecordSave=d=>request.post("/musicalScoreConversionRecord/save",{data:d,requestType:"json"}),api_musicalScoreConversionRecordPage=d=>request.post("/musicalScoreConversionRecord/page",{data:d,requestType:"json"}),api_musicalScoreConversionRecordRemove=d=>request.post("/musicalScoreConversionRecord/remove?id="+d);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:A}=d;for(;A;){if(A.dataset&&A.dataset[b]!==void 0)return!0;A=A.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(A=>{if(A==="")return;const[C,w]=A.split(":");w===void 0?b[""]=C:b[C]=w}),b}function parseResponsivePropValue(d,b){var A;if(d==null)return;const C=parseResponsiveProp(d);if(b===void 0)return C[""];if(typeof b=="string")return(A=C[b])!==null&&A!==void 0?A:C[""];if(Array.isArray(b)){for(let w=b.length-1;w>=0;--w){const x=b[w];if(x in C)return C[x]}return C[""]}else{let w,x=-1;return Object.keys(C).forEach(S=>{const E=Number(S);!Number.isNaN(E)&&b>=E&&E>=x&&(x=E,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 A=d.trim().split(/\s+/g),C={top:A[0]};switch(A.length){case 1:C.right=A[0],C.bottom=A[0],C.left=A[0];break;case 2:C.right=A[1],C.left=A[1],C.bottom=A[0];break;case 3:C.right=A[1],C.bottom=A[2],C.left=A[1];break;case 4:C.right=A[1],C.bottom=A[2],C.left=A[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[A,C]=d.split(" ");return b?b==="row"?A:C:{row:A,col:C||A}}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,A,C){return"rgba(".concat(roundChannel(d),", ").concat(roundChannel(b),", ").concat(roundChannel(A),", ").concat(normalizeAlpha(C),")")}function compositeChannel(d,b,A,C,w){return roundChannel((d*b*(1-C)+A*C)/w)}function composite(d,b){Array.isArray(d)||(d=rgba(d)),Array.isArray(b)||(b=rgba(b));const A=d[3],C=b[3],w=roundAlpha(A+C-A*C);return stringifyRgba(compositeChannel(d[0],A,b[0],C,w),compositeChannel(d[1],A,b[1],C,w),compositeChannel(d[2],A,b[2],C,w),w)}function changeColor(d,b){const[A,C,w,x=1]=Array.isArray(d)?d:rgba(d);return b.alpha?stringifyRgba(A,C,w,b.alpha):stringifyRgba(A,C,w,x)}function scaleColor(d,b){const[A,C,w,x=1]=Array.isArray(d)?d:rgba(d),{lightness:S=1,alpha:E=1}=b;return toRgbaString([A*S,C*S,w*S,x*E])}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,A,C]=d;return 3 in d?"rgba(".concat(roundChannel(b),", ").concat(roundChannel(A),", ").concat(roundChannel(C),", ").concat(roundAlpha(d[3]),")"):"rgba(".concat(roundChannel(b),", ").concat(roundChannel(A),", ").concat(roundChannel(C),", 1)")}function createId(d=8){return Math.random().toString(16).slice(2,2+d)}function getSlot$1(d,b="default",A=[]){const w=d.$slots[b];return w===void 0?A:w()}function keep(d,b=[],A){const C={};return b.forEach(w=>{C[w]=d[w]}),Object.assign(C,A)}function omit(d,b=[],A){const C={};return Object.getOwnPropertyNames(d).forEach(x=>{b.includes(x)||(C[x]=d[x])}),Object.assign(C,A)}function flatten$4(d,b=!0,A=[]){return d.forEach(C=>{if(C!==null){if(typeof C!="object"){(typeof C=="string"||typeof C=="number")&&A.push(createTextVNode(String(C)));return}if(Array.isArray(C)){flatten$4(C,b,A);return}if(C.type===Fragment){if(C.children===null)return;Array.isArray(C.children)&&flatten$4(C.children,b,A)}else C.type!==Comment&&A.push(C)}}),A}function call$1(d,...b){if(Array.isArray(d))d.forEach(A=>call$1(A,...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",A=void 0){const C=d[b];if(!C)return warn$3("getFirstSlotVNode","slot[".concat(b,"] is empty")),null;const w=flatten$4(C(A));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,A){return d&&ensureValidVNode(d(b))||A(b)}function resolveWrappedSlot(d,b){const A=d&&ensureValidVNode(d());return b(A||null)}function isSlotEmpty(d){return!(d&&ensureValidVNode(d()))}function mergeEventHandlers(d){const b=d.filter(A=>A!==void 0);if(b.length!==0)return b.length===1?b[0]:A=>{d.forEach(C=>{C&&C(A)})}}function isNodeVShowFalse(d){var b;const A=(b=d.dirs)===null||b===void 0?void 0:b.find(({dir:C})=>C===vShow);return!!(A&&A.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:A=0,attachPx:C=!0}={}){if(typeof d=="number"){const w=(d+A)*b;return w===0?"0":"".concat(w,"px")}else if(typeof d=="string")if(pureNumberRegex.test(d)){const w=(Number(d)+A)*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])+A)*b)):d}return d}function color2Class(d){return d.replace(/#|\(|\)|,|\s/g,"_")}function ampCount(d){let b=0;for(let A=0;A{let w=ampCount(C);if(w){if(w===1){d.forEach(S=>{A.push(C.replace("&",S))});return}}else{d.forEach(S=>{A.push((S&&S+" ")+C)});return}let x=[C];for(;w--;){const S=[];x.forEach(E=>{d.forEach(P=>{S.push(E.replace("&",P))})}),x=S}x.forEach(S=>A.push(S))}),A}function resolveSelector(d,b){const A=[];return b.split(separatorRegex).forEach(C=>{d.forEach(w=>{A.push((w&&w+" ")+C)})}),A}function parseSelectorPath(d){let b=[""];return d.forEach(A=>{A=A&&A.trim(),A&&(A.includes("&")?b=resolveSelectorWithAmp(b,A):b=resolveSelector(b,A))}),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(A=>b+" ".concat(kebabCase(A[0]),": ").concat(A[1],";")).join("\n")+"\n"+b+"}":": ".concat(d,";")}function unwrapProperties(d,b,A){return typeof d=="function"?d({context:b.context,props:A}):d}function createStyle(d,b,A,C){if(!b)return"";const w=unwrapProperties(b,A,C);if(!w)return"";if(typeof w=="string")return"".concat(d," {\n").concat(w,"\n}");const x=Object.keys(w);if(x.length===0)return A.config.keepEmptyBlock?d+" {\n}":"";const S=d?[d+" {"]:[];return x.forEach(E=>{const P=w[E];if(E==="raw"){S.push("\n"+P+"\n");return}E=kebabCase(E),P!=null&&S.push(" ".concat(E).concat(unwrapProperty(P)))}),d&&S.push("}"),S.join("\n")}function loopCNodeListWithCallback(d,b,A){d&&d.forEach(C=>{if(Array.isArray(C))loopCNodeListWithCallback(C,b,A);else if(typeof C=="function"){const w=C(b);Array.isArray(w)?loopCNodeListWithCallback(w,b,A):w&&A(w)}else C&&A(C)})}function traverseCNode(d,b,A,C,w,x){const S=d.$;let E="";if(!S||typeof S=="string")isMediaOrSupports(S)?E=S:b.push(S);else if(typeof S=="function"){const D=S({context:C.context,props:w});isMediaOrSupports(D)?E=D:b.push(D)}else if(S.before&&S.before(C.context),!S.$||typeof S.$=="string")isMediaOrSupports(S.$)?E=S.$:b.push(S.$);else if(S.$){const D=S.$({context:C.context,props:w});isMediaOrSupports(D)?E=D:b.push(D)}const P=parseSelectorPath(b),B=createStyle(P,d.props,C,w);E?(A.push("".concat(E," {")),x&&B&&x.insertRule("".concat(E," {\n").concat(B,"\n}\n"))):(x&&B&&x.insertRule(B),!x&&B.length&&A.push(B)),d.children&&loopCNodeListWithCallback(d.children,{context:C.context,props:w},D=>{if(typeof D=="string"){const k=createStyle(P,{raw:D},C,w);x?x.insertRule(k):A.push(k)}else traverseCNode(D,b,A,C,w,x)}),b.pop(),E&&A.push("}"),S&&S.after&&S.after(C.context)}function render(d,b,A,C=!1){const w=[];return traverseCNode(d,[],w,b,A,C?d.instance.__styleSheet:void 0),C?"":w.join("\n\n")}function murmur2(d){for(var b=0,A,C=0,w=d.length;w>=4;++C,w-=4)A=d.charCodeAt(C)&255|(d.charCodeAt(++C)&255)<<8|(d.charCodeAt(++C)&255)<<16|(d.charCodeAt(++C)&255)<<24,A=(A&65535)*1540483477+((A>>>16)*59797<<16),A^=A>>>24,b=(A&65535)*1540483477+((A>>>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,A){const{els:C}=b;if(A===void 0)C.forEach(removeElement),b.els=[];else{const w=queryElement(A);w&&C.includes(w)&&(removeElement(w),b.els=C.filter(x=>x!==w))}}function addElementToList(d,b){d.push(b)}function mount(d,b,A,C,w,x,S,E,P){if(x&&!P){if(A===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const I=window.__cssrContext;I[A]||(I[A]=!0,render(b,d,C,x));return}let B;if(A===void 0&&(B=b.render(C),A=murmur2(B)),P){P.adapter(A,B!=null?B:b.render(C));return}const D=queryElement(A);if(D!==null&&!S)return D;const k=D!=null?D:createElement(A);if(B===void 0&&(B=b.render(C)),k.textContent=B,D!==null)return D;if(E){const I=document.head.querySelector('meta[name="'.concat(E,'"]'));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:A,props:C,head:w=!1,silent:x=!1,force:S=!1,anchorMetaName:E}=d;return mount(this.instance,this,b,C,w,x,S,E,A)}function wrappedUnmount(d={}){const{id:b}=d;unmount(this.instance,this,b)}const createCNode=function(d,b,A,C){return{instance:d,$:b,props:A,children:C,els:[],render:wrappedRender,mount:wrappedMount,unmount:wrappedUnmount}},c$4=function(d,b,A,C){return Array.isArray(b)?createCNode(d,{$:null},null,b):Array.isArray(A)?createCNode(d,b,null,A):Array.isArray(C)?createCNode(d,b,A,C):createCNode(d,b,A,null)};function CssRender(d={}){let b=null;const A={c:(...C)=>c$4(A,...C),use:(C,...w)=>C.install(A,...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 A}function exists(d,b){if(d===void 0)return!1;if(b){const{context:{ids:A}}=b;return A.has(d)}return queryElement(d)!==null}function plugin$1(d){let b=".",A="__",C="--",w;if(d){let M=d.blockPrefix;M&&(b=M),M=d.elementPrefix,M&&(A=M),M=d.modifierPrefix,M&&(C=M)}const x={install(M){w=M.c;const L=M.context;L.bem={},L.bem.b=null,L.bem.els=null}};function S(M){let L,H;return{before(z){L=z.bem.b,H=z.bem.els,z.bem.els=null},after(z){z.bem.b=L,z.bem.els=H},$({context:z,props:Q}){return M=typeof M=="string"?M:M({context:z,props:Q}),z.bem.b=M,"".concat((Q==null?void 0:Q.bPrefix)||b).concat(z.bem.b)}}}function E(M){let L;return{before(H){L=H.bem.els},after(H){H.bem.els=L},$({context:H,props:z}){return M=typeof M=="string"?M:M({context:H,props:z}),H.bem.els=M.split(",").map(Q=>Q.trim()),H.bem.els.map(Q=>"".concat((z==null?void 0:z.bPrefix)||b).concat(H.bem.b).concat(A).concat(Q)).join(", ")}}}function P(M){return{$({context:L,props:H}){M=typeof M=="string"?M:M({context:L,props:H});const z=M.split(",").map(V=>V.trim());function Q(V){return z.map(U=>"&".concat((H==null?void 0:H.bPrefix)||b).concat(L.bem.b).concat(V!==void 0?"".concat(A).concat(V):"").concat(C).concat(U)).join(", ")}const q=L.bem.els;return q!==null?Q(q[0]):Q()}}}function B(M){return{$({context:L,props:H}){M=typeof M=="string"?M:M({context:L,props:H});const z=L.bem.els;return"&:not(".concat((H==null?void 0:H.bPrefix)||b).concat(L.bem.b).concat(z!==null&&z.length>0?"".concat(A).concat(z[0]):"").concat(C).concat(M,")")}}}return Object.assign(x,{cB:(...M)=>w(S(M[0]),M[1],M[2]),cE:(...M)=>w(E(M[0]),M[1],M[2]),cM:(...M)=>w(P(M[0]),M[1],M[2]),cNotM:(...M)=>w(B(M[0]),M[1],M[2])}),x}function createKey(d,b){return d+(b==="default"?"":b.replace(/^[a-z]/,A=>A.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 useInjectionInstanceCollection(d,b,A){var C;const w=inject(d,null);if(w===null)return;const x=(C=getCurrentInstance())===null||C===void 0?void 0:C.proxy;watch(A,S),S(A.value),onBeforeUnmount(()=>{S(void 0,A.value)});function S(B,D){const k=w[b];D!==void 0&&E(k,D),B!==void 0&&P(k,B)}function E(B,D){B[D]||(B[D]=[]),B[D].splice(B[D].findIndex(k=>k===x),1)}function P(B,D){B[D]||(B[D]=[]),~B[D].findIndex(k=>k===x)||B[D].push(x)}}function useDeferredTrue(d,b,A){if(!b)return d;const C=ref(d.value);let w=null;return watch(d,x=>{w!==null&&window.clearTimeout(w),x===!0?A&&!A.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 A=watch(d,C=>{C&&(b.value=!0,A())});return readonly(b)}function useMemo(d){const b=computed(d),A=ref(b.value);return watch(b,C=>{A.value=C}),typeof d=="function"?A:{__v_isRef:!0,get value(){return A.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,A){if(d==="mousemoveoutside"){const C=w=>{b.contains(getEventTarget(w))||A(w)};return{mousemove:C,touchstart:C}}else if(d==="clickoutside"){let C=!1;const w=S=>{C=!b.contains(getEventTarget(S))},x=S=>{C&&(b.contains(getEventTarget(S))||A(S))};return{mousedown:w,mouseup:x,touchstart:w,touchend:x}}return console.error("[evtd/create-trap-handler]: name `".concat(d,"` is invalid. This could be a bug of evtd.")),{}}function ensureTrapHandlers(d,b,A){const C=traps[d];let w=C.get(b);w===void 0&&C.set(b,w=new WeakMap);let x=w.get(A);return x===void 0&&w.set(A,x=createTrapHandler(d,b,A)),x}function trapOn(d,b,A,C){if(d==="mousemoveoutside"||d==="clickoutside"){const w=ensureTrapHandlers(d,b,A);return Object.keys(w).forEach(x=>{on(x,document,w[x],C)}),!0}return!1}function trapOff(d,b,A,C){if(d==="mousemoveoutside"||d==="clickoutside"){const w=ensureTrapHandlers(d,b,A);return Object.keys(w).forEach(x=>{off(x,document,w[x],C)}),!0}return!1}function createDelegate(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const d=new WeakMap,b=new WeakMap;function A(){d.set(this,!0)}function C(){d.set(this,!0),b.set(this,!0)}function w(K,Z,te){const ne=K[Z];return K[Z]=function(){return te.apply(K,arguments),ne.apply(K,arguments)},K}function x(K,Z){K[Z]=Event.prototype[Z]}const S=new WeakMap,E=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function P(){var K;return(K=S.get(this))!==null&&K!==void 0?K:null}function B(K,Z){E!==void 0&&Object.defineProperty(K,"currentTarget",{configurable:!0,enumerable:!0,get:Z!=null?Z:E.get})}const D={bubble:{},capture:{}},k={};function I(){const K=function(Z){const{type:te,eventPhase:ne,bubbles:ue}=Z,X=getEventTarget(Z);if(ne===2)return;const se=ne===1?"capture":"bubble";let he=X;const me=[];for(;he===null&&(he=window),me.push(he),he!==window;)he=he.parentNode||null;const ie=D.capture[te],de=D.bubble[te];if(w(Z,"stopPropagation",A),w(Z,"stopImmediatePropagation",C),B(Z,P),se==="capture"){if(ie===void 0)return;for(let be=me.length-1;be>=0&&!d.has(Z);--be){const ge=me[be],Se=ie.get(ge);if(Se!==void 0){S.set(Z,ge);for(const je of Se){if(b.has(Z))break;je(Z)}}if(be===0&&!ue&&de!==void 0){const je=de.get(ge);if(je!==void 0)for(const Ye of je){if(b.has(Z))break;Ye(Z)}}}}else if(se==="bubble"){if(de===void 0)return;for(let be=0;beX(Z))};return K.displayName="evtdUnifiedWindowEventHandler",K}const M=I(),L=$();function H(K,Z){const te=D[K];return te[Z]===void 0&&(te[Z]=new Map,window.addEventListener(Z,M,K==="capture")),te[Z]}function z(K){return k[K]===void 0&&(k[K]=new Set,window.addEventListener(K,L)),k[K]}function Q(K,Z){let te=K.get(Z);return te===void 0&&K.set(Z,te=new Set),te}function q(K,Z,te,ne){const ue=D[Z][te];if(ue!==void 0){const X=ue.get(K);if(X!==void 0&&X.has(ne))return!0}return!1}function V(K,Z){const te=k[K];return!!(te!==void 0&&te.has(Z))}function U(K,Z,te,ne){let ue;if(typeof ne=="object"&&ne.once===!0?ue=ie=>{W(K,Z,ue,ne),te(ie)}:ue=te,trapOn(K,Z,ue,ne))return;const se=ne===!0||typeof ne=="object"&&ne.capture===!0?"capture":"bubble",he=H(se,K),me=Q(he,Z);if(me.has(ue)||me.add(ue),Z===window){const ie=z(K);ie.has(ue)||ie.add(ue)}}function W(K,Z,te,ne){if(trapOff(K,Z,te,ne))return;const X=ne===!0||typeof ne=="object"&&ne.capture===!0,se=X?"capture":"bubble",he=H(se,K),me=Q(he,Z);if(Z===window&&!q(Z,X?"bubble":"capture",K,te)&&V(K,te)){const de=k[K];de.delete(te),de.size===0&&(window.removeEventListener(K,L),k[K]=void 0)}me.has(te)&&me.delete(te),me.size===0&&he.delete(Z),he.size===0&&(window.removeEventListener(K,M,se==="capture"),D[se][K]=void 0)}return{on:U,off:W}}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:A,top:C,width:w,height:x}=b.getBoundingClientRect();A>0||C>0?mousePositionRef.value={x:A+w/2,y:C+x/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 A=null;function C(){A!==null&&window.clearTimeout(A)}function w(){C(),b.value=!0,A=window.setTimeout(()=>{b.value=!1},d)}usedCount===0&&on("click",window,handleClick,!0);const x=()=>{usedCount+=1,on("click",window,w,!0)};return managable&&(managable=hasInstance())?(onBeforeMount(x),onBeforeUnmount(()=>{usedCount-=1,usedCount===0&&off("click",window,handleClick,!0),off("click",window,w,!0),C()})):x(),readonly(b)}function useMergedState(d,b){return watch(d,A=>{A!==void 0&&(b.value=A)}),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 A of b)if(d[A]!==void 0)return d[A];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({}),A=Object.keys(d),C=(w,x)=>{w.matches?b.value[x]=!0:b.value[x]=!1};return A.forEach(w=>{const x=d[w];let S,E;mqlMap[x]===void 0?(S=window.matchMedia(createMediaQuery(x)),S.addEventListener?S.addEventListener("change",P=>{E.forEach(B=>{B(P,w)})}):S.addListener&&S.addListener(P=>{E.forEach(B=>{B(P,w)})}),E=new Set,mqlMap[x]={mql:S,cbs:E}):(S=mqlMap[x].mql,E=mqlMap[x].cbs),E.add(C),S.matches&&E.forEach(P=>{P(S,w)})}),onBeforeUnmount(()=>{A.forEach(w=>{const{cbs:x}=mqlMap[d[w]];x.has(C)&&x.delete(C)})}),computed(()=>{const{value:w}=b;return A.filter(x=>w[x])})}function useKeyboard(d={},b){const A=reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:C,keyup:w}=d,x=P=>{switch(P.key){case"Control":A.ctrl=!0;break;case"Meta":A.command=!0,A.win=!0;break;case"Shift":A.shift=!0;break;case"Tab":A.tab=!0;break}C!==void 0&&Object.keys(C).forEach(B=>{if(B!==P.key)return;const D=C[B];if(typeof D=="function")D(P);else{const{stop:k=!1,prevent:I=!1}=D;k&&P.stopPropagation(),I&&P.preventDefault(),D.handler(P)}})},S=P=>{switch(P.key){case"Control":A.ctrl=!1;break;case"Meta":A.command=!1,A.win=!1;break;case"Shift":A.shift=!1;break;case"Tab":A.tab=!1;break}w!==void 0&&Object.keys(w).forEach(B=>{if(B!==P.key)return;const D=w[B];if(typeof D=="function")D(P);else{const{stop:k=!1,prevent:I=!1}=D;k&&P.stopPropagation(),I&&P.preventDefault(),D.handler(P)}})},E=()=>{(b===void 0||b.value)&&(on("keydown",document,x),on("keyup",document,S)),b!==void 0&&watch(b,P=>{P?(on("keydown",document,x),on("keyup",document,S)):(off("keydown",document,x),off("keyup",document,S))})};return hasInstance()?(onBeforeMount(E),onBeforeUnmount(()=>{(b===void 0||b.value)&&(off("keydown",document,x),off("keyup",document,S))})):E(),readonly(A)}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),A=inject(drawerBodyInjectionKey,null),C=inject(popoverBodyInjectionKey,null),w=inject(internalSelectionMenuBodyInjectionKey,null),x=ref();if(typeof document<"u"){x.value=document.fullscreenElement;const S=()=>{x.value=document.fullscreenElement};onMounted(()=>{on("fullscreenchange",document,S)}),onBeforeUnmount(()=>{off("fullscreenchange",document,S)})}return useMemo(()=>{var S;const{to:E}=d;return E!==void 0?E===!1?teleportDisabled:E===!0?x.value||"body":E:b!=null&&b.value?(S=b.value.$el)!==null&&S!==void 0?S:b.value:A!=null&&A.value?A.value:C!=null&&C.value?C.value:w!=null&&w.value?w.value:E!=null?E:x.value||"body"})}useAdjustedTo.tdkey=teleportDisabled;useAdjustedTo.propTo={type:[String,Object,Boolean],default:void 0};function getSlot(d,b,A="default"){const C=b[A];if(C===void 0)throw new Error("[vueuc/".concat(d,"]: slot[").concat(A,"] is empty."));return C()}function flatten$3(d,b=!0,A=[]){return d.forEach(C=>{if(C!==null){if(typeof C!="object"){(typeof C=="string"||typeof C=="number")&&A.push(createTextVNode(String(C)));return}if(Array.isArray(C)){flatten$3(C,b,A);return}if(C.type===Fragment){if(C.children===null)return;Array.isArray(C.children)&&flatten$3(C.children,b,A)}else C.type!==Comment&&A.push(C)}}),A}function getFirstVNode(d,b,A="default"){const C=b[A];if(C===void 0)throw new Error("[vueuc/".concat(d,"]: slot[").concat(A,"] is empty."));const w=flatten$3(C());if(w.length===1)return w[0];throw new Error("[vueuc/".concat(d,"]: slot[").concat(A,"] 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 A=ensureViewBoundingRect();return{top:b,left:d,height:0,width:0,right:A.width-d,bottom:A.height-b}}function getRect$1(d){const b=d.getBoundingClientRect(),A=ensureViewBoundingRect();return{left:b.left-A.left,top:b.top-A.top,bottom:A.height+A.top-b.bottom,right:A.width+A.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:A,overflowX:C,overflowY:w}=getComputedStyle(b);if(/(auto|scroll|overlay)/.test(A+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 A=inject("VBinder",null),C=ref(null),w=z=>{C.value=z,A&&d.syncTargetWithParent&&A.setTargetRef(z)};let x=[];const S=()=>{let z=C.value;for(;z=getScrollParent(z),z!==null;)x.push(z);for(const Q of x)on("scroll",Q,k,!0)},E=()=>{for(const z of x)off("scroll",z,k,!0);x=[]},P=new Set,B=z=>{P.size===0&&S(),P.has(z)||P.add(z)},D=z=>{P.has(z)&&P.delete(z),P.size===0&&E()},k=()=>{beforeNextFrameOnce(I)},I=()=>{P.forEach(z=>z())},$=new Set,M=z=>{$.size===0&&on("resize",window,H),$.has(z)||$.add(z)},L=z=>{$.has(z)&&$.delete(z),$.size===0&&off("resize",window,H)},H=()=>{$.forEach(z=>z())};return onBeforeUnmount(()=>{off("resize",window,H),E()}),{targetRef:C,setTargetRef:w,addScrollListener:B,removeScrollListener:D,addResizeListener:M,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 A=d[ctxKey$1];typeof b=="function"?A.handler?A.handler!==b&&(off("mousemoveoutside",d,A.handler),A.handler=b,on("mousemoveoutside",d,b)):(d[ctxKey$1].handler=b,on("mousemoveoutside",d,b)):A.handler&&(off("mousemoveoutside",d,A.handler),A.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:A}){d[ctxKey]={handler:void 0},typeof b=="function"&&(d[ctxKey].handler=b,on("clickoutside",d,b,{capture:A.capture}))},updated(d,{value:b,modifiers:A}){const C=d[ctxKey];typeof b=="function"?C.handler?C.handler!==b&&(off("clickoutside",d,C.handler,{capture:A.capture}),C.handler=b,on("clickoutside",d,b,{capture:A.capture})):(d[ctxKey].handler=b,on("clickoutside",d,b,{capture:A.capture})):C.handler&&(off("clickoutside",d,C.handler,{capture:A.capture}),C.handler=void 0)},unmounted(d,{modifiers:b}){const{handler:A}=d[ctxKey];A&&off("clickoutside",d,A,{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,A){const{elementZIndex:C}=this;if(A!==void 0){b.style.zIndex="".concat(A),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,A){const{elementZIndex:C}=this;C.has(b)?C.delete(b):A===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((A,C)=>A[1]-C[1]),this.nextZIndex=2e3,b.forEach(A=>{const C=A[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:A={}}=b,{zIndex:C,enabled:w}=A;d[ctx]={enabled:!!w,initialized:!1},w&&(zIndexManager.ensureZIndex(d,C),d[ctx].initialized=!0)},updated(d,b){const{value:A={}}=b,{zIndex:C,enabled:w}=A,x=d[ctx].enabled;w&&!x&&(zIndexManager.ensureZIndex(d,C),d[ctx].initialized=!0),d[ctx].enabled=!!w},unmounted(d,b){if(!d[ctx].initialized)return;const{value:A={}}=b,{zIndex:C}=A;zIndexManager.unregister(d,C)}},zindexable$1=zindexable,ssrContextKey=Symbol("@css-render/vue3-ssr");function createStyleString(d,b){return'")}function ssrAdapter(d,b){const A=inject(ssrContextKey,null);if(A===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:C,ids:w}=A;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,A){this.l=b,this.min=A;const C=new Array(b+1);for(let w=0;ww)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let x=b*C;for(;b>0;)x+=A[b],b-=lowBit(b);return x}getBound(b){let A=0,C=this.l;for(;C>A;){const w=Math.floor((A+C)/2),x=this.sum(w);if(x>b){C=w;continue}else if(x{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,A,C,w,x){if(!w||x)return{placement:d,top:0,left:0};const[S,E]=d.split("-");let P=E!=null?E:"center",B={top:0,left:0};const D=($,M,L)=>{let H=0,z=0;const Q=A[$]-b[M]-b[$];return Q>0&&C&&(L?z=keepOffsetDirection[M]?Q:-Q:H=keepOffsetDirection[M]?Q:-Q),{left:H,top:z}},k=S==="left"||S==="right";if(P!=="center"){const $=oppositeAlignCssPositionProps[d],M=oppositionPositions[$],L=propToCompare[$];if(A[L]>b[L]){if(b[$]+b[L]b[M]&&(P=oppositeAligns[E])}else{const $=S==="bottom"||S==="top"?"left":"top",M=oppositionPositions[$],L=propToCompare[$],H=(A[L]-b[L])/2;(b[$]b[M]?(P=cssPositionToOppositeAlign[$],B=D(L,$,k)):(P=cssPositionToOppositeAlign[M],B=D(L,M,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"),A=useMemo(()=>d.enabled!==void 0?d.enabled:d.show),C=ref(null),w=ref(null),x=()=>{const{syncTrigger:I}=d;I.includes("scroll")&&b.addScrollListener(P),I.includes("resize")&&b.addResizeListener(P)},S=()=>{b.removeScrollListener(P),b.removeResizeListener(P)};onMounted(()=>{A.value&&(P(),x())});const E=useSsrAdapter();style$y.mount({id:"vueuc/binder",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:E}),onBeforeUnmount(()=>{S()}),onFontsReady(()=>{A.value&&P()});const P=()=>{if(!A.value)return;const I=C.value;if(I===null)return;const $=b.targetRef,{x:M,y:L,overlap:H}=d,z=M!==void 0&&L!==void 0?getPointRect(M,L):getRect$1($);I.style.setProperty("--v-target-width","".concat(Math.round(z.width),"px")),I.style.setProperty("--v-target-height","".concat(Math.round(z.height),"px"));const{width:Q,minWidth:q,placement:V,internalShift:U,flip:W}=d;I.setAttribute("v-placement",V),H?I.setAttribute("v-overlap",""):I.removeAttribute("v-overlap");const{style:K}=I;Q==="target"?K.width="".concat(z.width,"px"):Q!==void 0?K.width=Q:K.width="",q==="target"?K.minWidth="".concat(z.width,"px"):q!==void 0?K.minWidth=q:K.minWidth="";const Z=getRect$1(I),te=getRect$1(w.value),{left:ne,top:ue,placement:X}=getPlacementAndOffsetOfFollower(V,z,Z,U,W,H),se=getProperTransformOrigin(X,H),{left:he,top:me,transform:ie}=getOffset(X,te,z,ue,ne,H);I.setAttribute("v-placement",X),I.style.setProperty("--v-offset-left","".concat(Math.round(ne),"px")),I.style.setProperty("--v-offset-top","".concat(Math.round(ue),"px")),I.style.transform="translateX(".concat(he,") translateY(").concat(me,") ").concat(ie),I.style.setProperty("--v-transform-origin",se),I.style.transformOrigin=se};watch(A,I=>{I?(x(),B()):S()});const B=()=>{nextTick().then(P).catch(I=>console.error(I))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(I=>{watch(toRef(d,I),P)}),["teleportDisabled"].forEach(I=>{watch(toRef(d,I),B)}),watch(toRef(d,"syncTrigger"),I=>{I.includes("resize")?b.addResizeListener(P):b.removeResizeListener(P),I.includes("scroll")?b.addScrollListener(P):b.removeScrollListener(P)});const D=isMounted(),k=useMemo(()=>{const{to:I}=d;if(I!==void 0)return I;D.value});return{VBinder:b,mergedEnabled:A,offsetContainerRef:w,followerRef:C,mergedTo:k,syncPosition:P}},render(){return h$1(LazyTeleport,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var d,b;const A=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(A,[[zindexable$1,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):A}})}});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,A){this.inlineSize=b,this.blockSize=A,freeze(this)}return d}(),DOMRectReadOnly=function(){function d(b,A,C,w){return this.x=b,this.y=A,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,A=b.x,C=b.y,w=b.top,x=b.right,S=b.bottom,E=b.left,P=b.width,B=b.height;return{x:A,y:C,top:w,right:x,bottom:S,left:E,width:P,height:B}},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(),A=b.width,C=b.height;return!A&&!C}var w=d,x=w.offsetWidth,S=w.offsetHeight;return!(x||S||d.getClientRects().length)},isElement=function(d){var b;if(d instanceof Element)return!0;var A=(b=d==null?void 0:d.ownerDocument)===null||b===void 0?void 0:b.defaultView;return!!(A&&d instanceof A.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,A){return d===void 0&&(d=0),b===void 0&&(b=0),A===void 0&&(A=!1),new ResizeObserverSize((A?b:d)||0,(A?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 A=getComputedStyle(d),C=isSVG(d)&&d.ownerSVGElement&&d.getBBox(),w=!IE&&A.boxSizing==="border-box",x=verticalRegexp.test(A.writingMode||""),S=!C&&scrollRegexp.test(A.overflowY||""),E=!C&&scrollRegexp.test(A.overflowX||""),P=C?0:parseDimension(A.paddingTop),B=C?0:parseDimension(A.paddingRight),D=C?0:parseDimension(A.paddingBottom),k=C?0:parseDimension(A.paddingLeft),I=C?0:parseDimension(A.borderTopWidth),$=C?0:parseDimension(A.borderRightWidth),M=C?0:parseDimension(A.borderBottomWidth),L=C?0:parseDimension(A.borderLeftWidth),H=k+B,z=P+D,Q=L+$,q=I+M,V=E?d.offsetHeight-q-d.clientHeight:0,U=S?d.offsetWidth-Q-d.clientWidth:0,W=w?H+Q:0,K=w?z+q:0,Z=C?C.width:parseDimension(A.width)-W-U,te=C?C.height:parseDimension(A.height)-K-V,ne=Z+H+U+Q,ue=te+z+V+q,X=freeze({devicePixelContentBoxSize:size(Math.round(Z*devicePixelRatio),Math.round(te*devicePixelRatio),x),borderBoxSize:size(ne,ue,x),contentBoxSize:size(Z,te,x),contentRect:new DOMRectReadOnly(k,P,Z,te)});return cache.set(d,X),X},calculateBoxSize=function(d,b,A){var C=calculateBoxSizes(d,A),w=C.borderBoxSize,x=C.contentBoxSize,S=C.devicePixelContentBoxSize;switch(b){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return S;case ResizeObserverBoxOptions.BORDER_BOX:return w;default:return x}},ResizeObserverEntry=function(){function d(b){var A=calculateBoxSizes(b);this.target=b,this.contentRect=A.contentRect,this.borderBoxSize=freeze([A.borderBoxSize]),this.contentBoxSize=freeze([A.contentBoxSize]),this.devicePixelContentBoxSize=freeze([A.devicePixelContentBoxSize])}return d}(),calculateDepthForNode=function(d){if(isHidden(d))return 1/0;for(var b=0,A=d.parentNode;A;)b+=1,A=A.parentNode;return b},broadcastActiveObservations=function(){var d=1/0,b=[];resizeObservers.forEach(function(S){if(S.activeTargets.length!==0){var E=[];S.activeTargets.forEach(function(B){var D=new ResizeObserverEntry(B.target),k=calculateDepthForNode(B.target);E.push(D),B.lastReportedSize=calculateBoxSize(B.target,B.observedBox),kd?A.activeTargets.push(w):A.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,A=document.createTextNode(""),C={characterData:!0};new MutationObserver(function(){return notify()}).observe(A,C),trigger=function(){A.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 A=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?A.run(1e3):b>0?A.run(b):A.start()}})}},d.prototype.schedule=function(){this.stop(),this.run()},d.prototype.observe=function(){var b=this,A=function(){return b.observer&&b.observer.observe(document.body,observerConfig)};document.body?A():global$1.addEventListener("DOMContentLoaded",A)},d.prototype.start=function(){var b=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events.forEach(function(A){return global$1.addEventListener(A,b.listener,!0)}))},d.prototype.stop=function(){var b=this;this.stopped||(this.observer&&this.observer.disconnect(),events.forEach(function(A){return global$1.removeEventListener(A,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,A){this.target=b,this.observedBox=A||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,A){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=b,this.callback=A}return d}(),observerMap=new WeakMap,getObservationIndex=function(d,b){for(var A=0;A=0&&(x&&resizeObservers.splice(resizeObservers.indexOf(C),1),C.observationTargets.splice(w,1),updateCount(-1))},d.disconnect=function(b){var A=this,C=observerMap.get(b);C.observationTargets.slice().forEach(function(w){return A.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,A){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,A)},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 A of b){const C=this.elHandlersMap.get(A.target);C!==void 0&&C(A)}}registerHandler(b,A){this.elHandlersMap.set(b,A),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 A=getCurrentInstance().proxy;function C(w){const{onResize:x}=d;x!==void 0&&x(w)}onMounted(()=>{const w=A.$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(A.$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$c=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$c.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:b}),onMounted(()=>{const{defaultScrollIndex:ue,defaultScrollKey:X}=d;ue!=null?M({index:ue}):X!=null&&M({key:X})});let A=!1,C=!1;onActivated(()=>{if(A=!1,!C){C=!0;return}M({top:k.value,left:D})}),onDeactivated(()=>{A=!0,C||(C=!0)});const w=computed(()=>{const ue=new Map,{keyField:X}=d;return d.items.forEach((se,he)=>{ue.set(se[X],he)}),ue}),x=ref(null),S=ref(void 0),E=new Map,P=computed(()=>{const{items:ue,itemSize:X,keyField:se}=d,he=new FinweckTree(ue.length,X);return ue.forEach((me,ie)=>{const de=me[se],be=E.get(de);be!==void 0&&he.add(ie,be)}),he}),B=ref(0);let D=0;const k=ref(0),I=useMemo(()=>Math.max(P.value.getBound(k.value-depx(d.paddingTop))-1,0)),$=computed(()=>{const{value:ue}=S;if(ue===void 0)return[];const{items:X,itemSize:se}=d,he=I.value,me=Math.min(he+Math.ceil(ue/se+1),X.length-1),ie=[];for(let de=he;de<=me;++de)ie.push(X[de]);return ie}),M=(ue,X)=>{if(typeof ue=="number"){Q(ue,X,"auto");return}const{left:se,top:he,index:me,key:ie,position:de,behavior:be,debounce:ge=!0}=ue;if(se!==void 0||he!==void 0)Q(se,he,be);else if(me!==void 0)z(me,be,ge);else if(ie!==void 0){const Se=w.value.get(ie);Se!==void 0&&z(Se,be,ge)}else de==="bottom"?Q(0,Number.MAX_SAFE_INTEGER,be):de==="top"&&Q(0,0,be)};let L,H=null;function z(ue,X,se){const{value:he}=P,me=he.sum(ue)+depx(d.paddingTop);if(!se)x.value.scrollTo({left:0,top:me,behavior:X});else{L=ue,H!==null&&window.clearTimeout(H),H=window.setTimeout(()=>{L=void 0,H=null},16);const{scrollTop:ie,offsetHeight:de}=x.value;if(me>ie){const be=he.get(ue);me+be<=ie+de||x.value.scrollTo({left:0,top:me+be-de,behavior:X})}else x.value.scrollTo({left:0,top:me,behavior:X})}}function Q(ue,X,se){x.value.scrollTo({left:ue,top:X,behavior:se})}function q(ue,X){var se,he,me;if(A||d.ignoreItemResize||ne(X.target))return;const{value:ie}=P,de=w.value.get(ue),be=ie.get(de),ge=(me=(he=(se=X.borderBoxSize)===null||se===void 0?void 0:se[0])===null||he===void 0?void 0:he.blockSize)!==null&&me!==void 0?me:X.contentRect.height;if(ge===be)return;ge-d.itemSize===0?E.delete(ue):E.set(ue,ge-d.itemSize);const je=ge-be;if(je===0)return;ie.add(de,je);const Ye=x.value;if(Ye!=null){if(L===void 0){const st=ie.sum(de);Ye.scrollTop>st&&Ye.scrollBy(0,je)}else if(deYe.scrollTop+Ye.offsetHeight&&Ye.scrollBy(0,je)}te()}B.value++}const V=!ensureMaybeTouch();let U=!1;function W(ue){var X;(X=d.onScroll)===null||X===void 0||X.call(d,ue),(!V||!U)&&te()}function K(ue){var X;if((X=d.onWheel)===null||X===void 0||X.call(d,ue),V){const se=x.value;if(se!=null){if(ue.deltaX===0&&(se.scrollTop===0&&ue.deltaY<=0||se.scrollTop+se.offsetHeight>=se.scrollHeight&&ue.deltaY>=0))return;ue.preventDefault(),se.scrollTop+=ue.deltaY/ensureWheelScale(),se.scrollLeft+=ue.deltaX/ensureWheelScale(),te(),U=!0,beforeNextFrameOnce(()=>{U=!1})}}}function Z(ue){if(A||ne(ue.target)||ue.contentRect.height===S.value)return;S.value=ue.contentRect.height;const{onResize:X}=d;X!==void 0&&X(ue)}function te(){const{value:ue}=x;ue!=null&&(k.value=ue.scrollTop,D=ue.scrollLeft)}function ne(ue){let X=ue;for(;X!==null;){if(X.style.display==="none")return!0;X=X.parentElement}return!1}return{listHeight:S,listStyle:{overflow:"auto"},keyToIndex:w,itemsStyle:computed(()=>{const{itemResizable:ue}=d,X=pxfy(P.value.sum());return B.value,[d.itemsStyle,{boxSizing:"content-box",height:ue?"":X,minHeight:ue?X:"",paddingTop:pxfy(d.paddingTop),paddingBottom:pxfy(d.paddingBottom)}]}),visibleItemsStyle:computed(()=>(B.value,{transform:"translateY(".concat(pxfy(P.value.sum(I.value)),")")})),viewportItems:$,listElRef:x,itemsElRef:ref(null),scrollTo:M,handleListResize:Z,handleListScroll:W,handleListWheel:K,handleItemResize:q}},render(){const{itemResizable:d,keyField:b,keyToIndex:A,visibleItemsTag:C}=this;return h$1(VResizeObserver,{onResize:this.handleListResize},{default:()=>{var w,x;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 E=S[b],P=A.get(E),B=this.$slots.default({item:S,index:P})[0];return d?h$1(VResizeObserver,{key:E,onResize:D=>this.handleItemResize(E,D)},{default:()=>B}):(B.key=E,B)})})]):(x=(w=this.$slots).empty)===null||x===void 0?void 0:x.call(w)])}})}}),styles$b=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:U}=d;for(let W=Q;W>=0;--W){const K=H-1-W;U!==void 0?U(K):B.textContent="".concat(K);const Z=B.offsetWidth;if(M-=I[W],M+Z<=k||W===0){L=!0,Q=W-1,$&&(Q===-1?($.style.maxWidth="".concat(k-Z,"px"),$.style.boxSizing="border-box"):$.style.maxWidth="");break}}}}const{onUpdateOverflow:z}=d;L?z!==void 0&&z(!0):(z!==void 0&&z(!1),B.setAttribute(hiddenAttr,""))}const x=useSsrAdapter();return style$x.mount({id:"vueuc/overflow",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:x}),onMounted(w),{selfRef:A,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 A=d.childNodes[b];if(isHTMLElement(A)&&(attemptFocus(A)||focusLastDescendant(A)))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(),A=ref(null),C=ref(null);let w=!1,x=!1;const S=typeof document>"u"?null:document.activeElement;function E(){return stack[stack.length-1]===b}function P(H){var z;H.code==="Escape"&&E()&&((z=d.onEsc)===null||z===void 0||z.call(d,H))}onMounted(()=>{watch(()=>d.active,H=>{H?(k(),on("keydown",document,P)):(off("keydown",document,P),w&&I())},{immediate:!0})}),onBeforeUnmount(()=>{off("keydown",document,P),w&&I()});function B(H){if(!x&&E()){const z=D();if(z===null||z.contains(getPreciseEventTarget(H)))return;$("first")}}function D(){const H=A.value;if(H===null)return null;let z=H;for(;z=z.nextSibling,!(z===null||z instanceof Element&&z.tagName==="DIV"););return z}function k(){var H;if(!d.disabled){if(stack.push(b),d.autoFocus){const{initialFocusTo:z}=d;z===void 0?$("first"):(H=resolveTo(z))===null||H===void 0||H.focus({preventScroll:!0})}w=!0,document.addEventListener("focus",B,!0)}}function I(){var H;if(d.disabled||(document.removeEventListener("focus",B,!0),stack=stack.filter(Q=>Q!==b),E()))return;const{finalFocusTo:z}=d;z!==void 0?(H=resolveTo(z))===null||H===void 0||H.focus({preventScroll:!0}):d.returnFocusOnDeactivated&&S instanceof HTMLElement&&(x=!0,S.focus({preventScroll:!0}),x=!1)}function $(H){if(E()&&d.active){const z=A.value,Q=C.value;if(z!==null&&Q!==null){const q=D();if(q==null||q===Q){x=!0,z.focus({preventScroll:!0}),x=!1;return}x=!0;const V=H==="first"?focusFirstDescendant(q):focusLastDescendant(q);x=!1,V||(x=!0,z.focus({preventScroll:!0}),x=!1)}}}function M(H){if(x)return;const z=D();z!==null&&(H.relatedTarget!==null&&z.contains(H.relatedTarget)?$("last"):$("first"))}function L(H){x||(H.relatedTarget!==null&&H.relatedTarget===A.value?$("last"):$("first"))}return{focusableStartRef:A,focusableEndRef:C,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:M,handleEndFocus:L}},render(){const{default:d}=this.$slots;if(d===void 0)return null;if(this.disabled)return d();const{active:b,focusableStyle:A}=this;return h$1(Fragment,null,[h$1("div",{"aria-hidden":"true",tabindex:b?"0":"-1",ref:"focusableStartRef",style:A,onFocus:this.handleStartFocus}),d(),h$1("div",{"aria-hidden":"true",style:A,ref:"focusableEndRef",tabindex:b?"0":"-1",onFocus:this.handleEndFocus})])}});function useOnResize(d,b){b&&(onMounted(()=>{const{value:A}=d;A&&resizeObserverManager.registerHandler(A,b)}),onBeforeUnmount(()=>{const{value:A}=d;A&&resizeObserverManager.unregisterHandler(A)}))}let lockCount=0,originalMarginRight="",originalOverflow="",originalOverflowX="",originalOverflowY="";const lockHtmlScrollRightCompensationRef=ref("0px");function useLockHtmlScroll(d){if(typeof document>"u")return;const b=document.documentElement;let A,C=!1;const w=()=>{b.style.marginRight=originalMarginRight,b.style.overflow=originalOverflow,b.style.overflowX=originalOverflowX,b.style.overflowY=originalOverflowY,lockHtmlScrollRightCompensationRef.value="0px"};onMounted(()=>{A=watch(d,x=>{if(x){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(()=>{A==null||A(),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 A=!1;return onActivated(()=>{if(b.isDeactivated=!1,!A){A=!0;return}d()}),onDeactivated(()=>{b.isDeactivated=!0,A||(A=!0)}),b}const formItemInjectionKey="n-form-item";function useFormItem(d,{defaultSize:b="medium",mergedSize:A,mergedDisabled:C}={}){const w=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const x=computed(A?()=>A(w):()=>{const{size:P}=d;if(P)return P;if(w){const{mergedSize:B}=w;if(B.value!==void 0)return B.value}return b}),S=computed(C?()=>C(w):()=>{const{disabled:P}=d;return P!==void 0?P:w?w.disabled.value:!1}),E=computed(()=>{const{status:P}=d;return P||(w==null?void 0:w.mergedValidationStatus.value)});return onBeforeUnmount(()=>{w&&w.restoreValidation()}),{mergedSizeRef:x,mergedDisabledRef:S,mergedStatusRef:E,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),A=d[symToStringTag$1];try{d[symToStringTag$1]=void 0;var C=!0}catch(x){}var w=nativeObjectToString$1.call(d);return C&&(b?d[symToStringTag$1]=A: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 A=-1,C=d==null?0:d.length,w=Array(C);++A0){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 A=typeof d;return b=b==null?MAX_SAFE_INTEGER$1:b,!!b&&(A=="number"||A!="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,A){if(!isObject$1(A))return!1;var C=typeof b;return(C=="number"?isArrayLike(A)&&isIndex(b,A.length):C=="string"&&b in A)?eq(A[b],d):!1}function createAssigner(d){return baseRest(function(b,A){var C=-1,w=A.length,x=w>1?A[w-1]:void 0,S=w>2?A[2]:void 0;for(x=d.length>3&&typeof x=="function"?(w--,x):void 0,S&&isIterateeCall(A[0],A[1],S)&&(x=w<3?void 0:x,w=1),b=Object(b);++C-1}function listCacheSet(d,b){var A=this.__data__,C=assocIndexOf(A,d);return C<0?(++this.size,A.push([d,b])):A[C][1]=b,this}function ListCache(d){var b=-1,A=d==null?0:d.length;for(this.clear();++bw?0:w+b),A=A>w?w:A,A<0&&(A+=w),w=b>A?0:A-b>>>0,b>>>=0;for(var x=Array(w);++C=C?d:baseSlice(d,b,A)}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 A=hasUnicode(b)?stringToArray(b):void 0,C=A?A[0]:b.charAt(0),w=A?castSlice(A,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__,A=b.delete(d);return this.size=b.size,A}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 A=this.__data__;if(A instanceof ListCache){var C=A.__data__;if(!Map$2||C.lengthE))return!1;var B=x.get(d),D=x.get(b);if(B&&D)return B==b&&D==d;var k=-1,I=!0,$=A&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(x.set(d,b),x.set(b,d);++k=b||K<0||k&&Z>=x}function z(){var W=now$2();if(H(W))return Q(W);E=setTimeout(z,L(W))}function Q(W){return E=void 0,I&&C?$(W):(C=w=void 0,S)}function q(){E!==void 0&&clearTimeout(E),B=0,C=P=w=E=void 0}function V(){return E===void 0?S:Q(now$2())}function U(){var W=now$2(),K=H(W);if(C=arguments,w=this,P=W,K){if(E===void 0)return M(P);if(k)return clearTimeout(E),E=setTimeout(z,b),$(P)}return E===void 0&&(E=setTimeout(z,b)),S}return U.cancel=q,U.flush=V,U}function assignMergeValue(d,b,A){(A!==void 0&&!eq(d[b],A)||A===void 0&&!(b in d))&&baseAssignValue(d,b,A)}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,A,C,w,x,S){var E=safeGet(d,A),P=safeGet(b,A),B=S.get(P);if(B){assignMergeValue(d,A,B);return}var D=x?x(E,P,A+"",d,b,S):void 0,k=D===void 0;if(k){var I=isArray$2(P),$=!I&&isBuffer$1(P),M=!I&&!$&&isTypedArray$1(P);D=P,I||$||M?isArray$2(E)?D=E:isArrayLikeObject(E)?D=copyArray(E):$?(k=!1,D=cloneBuffer(P,!0)):M?(k=!1,D=cloneTypedArray(P,!0)):D=[]:isPlainObject$2(P)||isArguments$1(P)?(D=E,isArguments$1(E)?D=toPlainObject(E):(!isObject$1(E)||isFunction$1(E))&&(D=initCloneObject(P))):k=!1}k&&(S.set(P,D),w(D,P,C,x,S),S.delete(P)),assignMergeValue(d,A,D)}function baseMerge(d,b,A,C,w){d!==b&&baseFor$1(b,function(x,S){if(w||(w=new Stack),isObject$1(x))baseMergeDeep(d,b,S,A,baseMerge,C,w);else{var E=C?C(safeGet(d,S),x,S+"",d,b,w):void 0;E===void 0&&(E=x),assignMergeValue(d,S,E)}},keysIn)}function baseMap(d,b){var A=-1,C=isArrayLike(d)?Array(d.length):[];return baseEach$1(d,function(w,x,S){C[++A]=b(w,x,S)}),C}function map(d,b){var A=isArray$2(d)?arrayMap:baseMap;return A(d,baseIteratee(b))}var merge$1=createAssigner(function(d,b,A){baseMerge(d,b,A)});const merge$2=merge$1;var FUNC_ERROR_TEXT="Expected a function";function throttle(d,b,A){var C=!0,w=!0;if(typeof d!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$1(A)&&(C="leading"in A?!!A.leading:C,w="trailing"in A?!!A.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,A,C,w,x){const S=useSsrAdapter(),E=inject(configProviderInjectionKey,null);if(A){const B=()=>{const D=x==null?void 0:x.value;A.mount({id:D===void 0?b:D+b,head:!0,props:{bPrefix:D?".".concat(D,"-"):void 0},anchorMetaName:cssrAnchorMetaName,ssr:S}),E!=null&&E.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:S})};S?B():onBeforeMount(B)}return computed(()=>{var B;const{theme:{common:D,self:k,peers:I={}}={},themeOverrides:$={},builtinThemeOverrides:M={}}=w,{common:L,peers:H}=$,{common:z=void 0,[d]:{common:Q=void 0,self:q=void 0,peers:V={}}={}}=(E==null?void 0:E.mergedThemeRef.value)||{},{common:U=void 0,[d]:W={}}=(E==null?void 0:E.mergedThemeOverridesRef.value)||{},{common:K,peers:Z={}}=W,te=merge$2({},D||Q||z||C.common,U,K,L),ne=merge$2((B=k||q||C.self)===null||B===void 0?void 0:B(te),M,W,$);return{common:te,self:ne,peers:merge$2({},C.peers,V,I),peerOverrides:merge$2({},M.peers,Z,H)}})}useTheme.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const defaultClsPrefix="n";function useConfig(d={},b={defaultBordered:!0}){const A=inject(configProviderInjectionKey,null);return{inlineThemeDisabled:A==null?void 0:A.inlineThemeDisabled,mergedRtlRef:A==null?void 0:A.mergedRtlRef,mergedComponentPropsRef:A==null?void 0:A.mergedComponentPropsRef,mergedBreakpointsRef:A==null?void 0:A.mergedBreakpointsRef,mergedBorderedRef:computed(()=>{var C,w;const{bordered:x}=d;return x!==void 0?x:(w=(C=A==null?void 0:A.mergedBorderedRef.value)!==null&&C!==void 0?C:b.defaultBordered)!==null&&w!==void 0?w:!0}),mergedClsPrefixRef:computed(()=>(A==null?void 0:A.mergedClsPrefixRef.value)||defaultClsPrefix),namespaceRef:computed(()=>A==null?void 0:A.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]:{},A=b.width?String(b.width):d.defaultWidth,C=d.formats[A]||d.formats[d.defaultWidth];return C}}function buildLocalizeFn(d){return function(b,A){var C=A!=null&&A.context?String(A.context):"standalone",w;if(C==="formatting"&&d.formattingValues){var x=d.defaultFormattingWidth||d.defaultWidth,S=A!=null&&A.width?String(A.width):x;w=d.formattingValues[S]||d.formattingValues[x]}else{var E=d.defaultWidth,P=A!=null&&A.width?String(A.width):d.defaultWidth;w=d.values[P]||d.values[E]}var B=d.argumentCallback?d.argumentCallback(b):b;return w[B]}}function buildMatchFn(d){return function(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=A.width,w=C&&d.matchPatterns[C]||d.matchPatterns[d.defaultMatchWidth],x=b.match(w);if(!x)return null;var S=x[0],E=C&&d.parsePatterns[C]||d.parsePatterns[d.defaultParseWidth],P=Array.isArray(E)?findIndex(E,function(k){return k.test(S)}):findKey(E,function(k){return k.test(S)}),B;B=d.valueCallback?d.valueCallback(P):P,B=A.valueCallback?A.valueCallback(B):B;var D=b.slice(S.length);return{value:B,rest:D}}}function findKey(d,b){for(var A in d)if(d.hasOwnProperty(A)&&b(d[A]))return A}function findIndex(d,b){for(var A=0;A1&&arguments[1]!==void 0?arguments[1]:{},C=b.match(d.matchPattern);if(!C)return null;var w=C[0],x=b.match(d.parsePattern);if(!x)return null;var S=d.valueCallback?d.valueCallback(x[0]):x[0];S=A.valueCallback?A.valueCallback(S):S;var E=b.slice(w.length);return{value:S,rest:E}}}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,A,C){var w,x=formatDistanceLocale[b];return typeof x=="string"?w=x:A===1?w=x.one:w=x.other.replace("{{count}}",A.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,A,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,A){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:A}=inject(configProviderInjectionKey,null)||{},C=computed(()=>{var x,S;return(S=(x=b==null?void 0:b.value)===null||x===void 0?void 0:x[d])!==null&&S!==void 0?S:enUS$1[d]});return{dateLocaleRef:computed(()=>{var x;return(x=A==null?void 0:A.value)!==null&&x!==void 0?x:dateEnUS}),localeRef:C}}function useStyle(d,b,A){if(!b)return;const C=useSsrAdapter(),w=inject(configProviderInjectionKey,null),x=()=>{const S=A==null?void 0:A.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?x():onBeforeMount(x)}function useThemeClass(d,b,A,C){var w;A||throwError("useThemeClass","cssVarsRef is not passed");const x=(w=inject(configProviderInjectionKey,null))===null||w===void 0?void 0:w.mergedThemeHashRef,S=ref(""),E=useSsrAdapter();let P;const B="__".concat(d),D=()=>{let k=B;const I=b?b.value:void 0,$=x==null?void 0:x.value;$&&(k+="-"+$),I&&(k+="-"+I);const{themeOverrides:M,builtinThemeOverrides:L}=C;M&&(k+="-"+murmur2(JSON.stringify(M))),L&&(k+="-"+murmur2(JSON.stringify(L))),S.value=k,P=()=>{const H=A.value;let z="";for(const Q in H)z+="".concat(Q,": ").concat(H[Q],";");c$3(".".concat(k),z).mount({id:k,ssr:E}),P=void 0}};return watchEffect(()=>{D()}),{themeClass:S,onRender:()=>{P==null||P()}}}function useRtl(d,b,A){if(!b)return;const C=useSsrAdapter(),w=computed(()=>{const{value:S}=b;if(!S)return;const E=S[d];if(E)return E}),x=()=>{watchEffect(()=>{const{value:S}=A,E="".concat(S).concat(d,"Rtl");if(exists(E,C))return;const{value:P}=w;P&&P.style.mount({id:E,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:S?".".concat(S,"-"):void 0},ssr:C})})};return C?x():onBeforeMount(x),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 A;const C=(A=inject(configProviderInjectionKey,null))===null||A===void 0?void 0:A.mergedIconsRef;return()=>{var w;const x=(w=C==null?void 0:C.value)===null||w===void 0?void 0:w[d];return x?x():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 A=isMounted();return()=>h$1(Transition,{name:"icon-switch-transition",appear:A.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 A(E){d.width?E.style.maxWidth="".concat(E.offsetWidth,"px"):E.style.maxHeight="".concat(E.offsetHeight,"px"),E.offsetWidth}function C(E){d.width?E.style.maxWidth="0":E.style.maxHeight="0",E.offsetWidth;const{onLeave:P}=d;P&&P()}function w(E){d.width?E.style.maxWidth="":E.style.maxHeight="";const{onAfterLeave:P}=d;P&&P()}function x(E){if(E.style.transition="none",d.width){const P=E.offsetWidth;E.style.maxWidth="0",E.offsetWidth,E.style.transition="",E.style.maxWidth="".concat(P,"px")}else if(d.reverse)E.style.maxHeight="".concat(E.offsetHeight,"px"),E.offsetHeight,E.style.transition="",E.style.maxHeight="0";else{const P=E.offsetHeight;E.style.maxHeight="0",E.offsetWidth,E.style.transition="",E.style.maxHeight="".concat(P,"px")}E.offsetWidth}function S(E){var P;d.width?E.style.maxWidth="":d.reverse||(E.style.maxHeight=""),(P=d.onAfterEnter)===null||P===void 0||P.call(d)}return()=>{const{group:E,width:P,appear:B,mode:D}=d,k=E?TransitionGroup:Transition,I={name:P?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:B,onEnter:x,onAfterEnter:S,onBeforeLeave:A,onLeave:C,onAfterLeave:w};return E||(I.mode=D),h$1(k,I,b)}}}),style$w=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$w,toRef(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$v=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$v,toRef(d,"clsPrefix")),()=>{const{clsPrefix:b,disabled:A,absolute:C,round:w,isButtonTag:x}=d;return h$1(x?"button":"div",{type:x?"button":void 0,tabindex:A||!d.focusable?-1:0,"aria-disabled":A,"aria-label":"close",role:x?void 0:"button",disabled:A,class:["".concat(b,"-base-close"),C&&"".concat(b,"-base-close--absolute"),A&&"".concat(b,"-base-close--disabled"),w&&"".concat(b,"-base-close--round")],onMousedown:E=>{d.focusable||E.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$4}=commonVariables$m;function iconSwitchTransition({originalTransform:d="",left:b=0,top:A=0,transition:C="all .3s ".concat(cubicBezierEaseInOut$4," !important")}={}){return[c$3("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:d+" scale(0.75)",left:b,top:A,opacity:0}),c$3("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:"scale(1) ".concat(d),left:b,top:A,opacity:1}),c$3("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:b,top:A,transition:C})]}const style$u=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$u,toRef(d,"clsPrefix"))},render(){const{clsPrefix:d,radius:b,strokeWidth:A,stroke:C,scale:w}=this,x=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*x," ").concat(2*x),xmlns:"http://www.w3.org/2000/svg",style:{color:C}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":A,"stroke-linecap":"round",cx:x,cy:x,r:b-A/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*x," ").concat(2*x),xmlns:"http://www.w3.org/2000/svg",style:{color:C}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":A,"stroke-linecap":"round",cx:x,cy:x,r:b-A/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*x," ").concat(2*x),xmlns:"http://www.w3.org/2000/svg",style:{color:C}},h$1("circle",{fill:"none",stroke:"currentColor","stroke-width":A,"stroke-linecap":"round",cx:x,cy:x,r:b-A/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 A=b(d);d.children!==void 0&&A!==TRAVERSE_COMMAND.STOP&&d.children.forEach(C=>traverseWithCb(C,b))}function getNonLeafKeys(d,b={}){const{preserveGroup:A=!1}=b,C=[],w=A?S=>{S.isLeaf||(C.push(S.key),x(S.children))}:S=>{S.isLeaf||(S.isGroup||C.push(S.key),x(S.children))};function x(S){S.forEach(w)}return x(d),C}function isLeaf(d,b){const{isLeaf:A}=d;return A!==void 0?A:!b(d)}function defaultGetChildren(d){return d.children}function defaultGetKey(d){return d.key}function isIgnored(){return!1}function isShallowLoaded(d,b){const{isLeaf:A}=d;return!(A===!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 A=new Set(d);return b.forEach(C=>{A.has(C)||A.add(C)}),Array.from(A)}function minus(d,b){const A=new Set(d);return b.forEach(C=>{A.has(C)&&A.delete(C)}),Array.from(A)}function isGroup(d){return(d==null?void 0:d.type)==="group"}function createIndexGetter(d){const b=new Map;return d.forEach((A,C)=>{b.set(A.key,C)}),A=>{var C;return(C=b.get(A))!==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,A,C){return getExtendedCheckedKeySet(b.concat(d),A,C,!1)}function getAvailableAscendantNodeSet(d,b){const A=new Set;return d.forEach(C=>{const w=b.treeNodeMap.get(C);if(w!==void 0){let x=w.parent;for(;x!==null&&!(x.disabled||A.has(x.key));)A.add(x.key),x=x.parent}}),A}function getExtendedCheckedKeySetAfterUncheck(d,b,A,C){const w=getExtendedCheckedKeySet(b,A,C,!1),x=getExtendedCheckedKeySet(d,A,C,!0),S=getAvailableAscendantNodeSet(d,A),E=[];return w.forEach(P=>{(x.has(P)||S.has(P))&&E.push(P)}),E.forEach(P=>w.delete(P)),w}function getCheckedKeys(d,b){const{checkedKeys:A,keysToCheck:C,keysToUncheck:w,indeterminateKeys:x,cascade:S,leafOnly:E,checkStrategy:P,allowNotLoaded:B}=d;if(!S)return C!==void 0?{checkedKeys:merge(A,C),indeterminateKeys:Array.from(x)}:w!==void 0?{checkedKeys:minus(A,w),indeterminateKeys:Array.from(x)}:{checkedKeys:Array.from(A),indeterminateKeys:Array.from(x)};const{levelTreeNodeMap:D}=b;let k;w!==void 0?k=getExtendedCheckedKeySetAfterUncheck(w,A,b,B):C!==void 0?k=getExtendedCheckedKeySetAfterCheck(C,A,b,B):k=getExtendedCheckedKeySet(A,b,B,!1);const I=P==="parent",$=P==="child"||E,M=k,L=new Set,H=Math.max.apply(null,Array.from(D.keys()));for(let z=H;z>=0;z-=1){const Q=z===0,q=D.get(z);for(const V of q){if(V.isLeaf)continue;const{key:U,shallowLoaded:W}=V;if($&&W&&V.children.forEach(ne=>{!ne.disabled&&!ne.isLeaf&&ne.shallowLoaded&&M.has(ne.key)&&M.delete(ne.key)}),V.disabled||!W)continue;let K=!0,Z=!1,te=!0;for(const ne of V.children){const ue=ne.key;if(!ne.disabled){if(te&&(te=!1),M.has(ue))Z=!0;else if(L.has(ue)){Z=!0,K=!1;break}else if(K=!1,Z)break}}K&&!te?(I&&V.children.forEach(ne=>{!ne.disabled&&M.has(ne.key)&&M.delete(ne.key)}),M.add(U)):Z&&L.add(U),Q&&$&&M.has(U)&&M.delete(U)}}return{checkedKeys:Array.from(M),indeterminateKeys:Array.from(L)}}function getExtendedCheckedKeySet(d,b,A,C){const{treeNodeMap:w,getChildren:x}=b,S=new Set,E=new Set(d);return d.forEach(P=>{const B=w.get(P);B!==void 0&&traverseWithCb(B,D=>{if(D.disabled)return TRAVERSE_COMMAND.STOP;const{key:k}=D;if(!S.has(k)&&(S.add(k),E.add(k),isExpilicitlyNotLoaded(D.rawNode,x))){if(C)return TRAVERSE_COMMAND.STOP;if(!A)throw new SubtreeNotLoadedError}})}),E}function getPath(d,{includeGroup:b=!1,includeSelf:A=!0},C){var w;const x=C.treeNodeMap;let S=d==null?null:(w=x.get(d))!==null&&w!==void 0?w:null;const E={keyPath:[],treeNodePath:[],treeNode:S};if(S!=null&&S.ignored)return E.treeNode=null,E;for(;S;)!S.ignored&&(b||!S.isGroup)&&E.treeNodePath.push(S),S=S.parent;return E.treeNodePath.reverse(),A||E.treeNodePath.pop(),E.keyPath=E.treeNodePath.map(P=>P.key),E}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 A=d.siblings,C=A.length,{index:w}=d;return b?A[(w+1)%C]:w===A.length-1?null:A[w+1]}function move(d,b,{loop:A=!1,includeDisabled:C=!1}={}){const w=b==="prev"?rawGetPrev:rawGetNext,x={reverse:b==="prev"};let S=!1,E=null;function P(B){if(B!==null){if(B===d){if(!S)S=!0;else if(!d.disabled&&!d.isGroup){E=d;return}}else if((!B.disabled||C)&&!B.ignored&&!B.isGroup){E=B;return}if(B.isGroup){const D=getChild(B,x);D!==null?E=D:P(w(B,A))}else{const D=w(B,!1);if(D!==null)P(D);else{const k=rawGetParent(B);k!=null&&k.isGroup?P(w(k,A)):A&&P(w(B,!0))}}}}return P(d),E}function rawGetPrev(d,b){const A=d.siblings,C=A.length,{index:w}=d;return b?A[(w-1+C)%C]:w===0?null:A[w-1]}function rawGetParent(d){return d.parent}function getChild(d,b={}){const{reverse:A=!1}=b,{children:C}=d;if(C){const{length:w}=C,x=A?w-1:0,S=A?-1:w,E=A?-1:1;for(let P=x;P!==S;P+=E){const B=C[P];if(!B.disabled&&!B.ignored)if(B.isGroup){const D=getChild(B,b);if(D!==null)return D}else return B}}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 A=b?new Set(b):void 0,C=[];function w(x){x.forEach(S=>{C.push(S),!(S.isLeaf||!S.children||S.ignored)&&(S.isGroup||A===void 0||A.has(S.key))&&w(S.children)})}return w(d),C}function contains(d,b){const A=d.key;for(;b;){if(b.key===A)return!0;b=b.parent}return!1}function createTreeNodes(d,b,A,C,w,x=null,S=0){const E=[];return d.forEach((P,B)=>{var D;const k=Object.create(C);if(k.rawNode=P,k.siblings=E,k.level=S,k.index=B,k.isFirstChild=B===0,k.isLastChild=B+1===d.length,k.parent=x,!k.ignored){const I=w(P);Array.isArray(I)&&(k.children=createTreeNodes(I,b,A,C,w,k,S+1))}E.push(k),b.set(k.key,k),A.has(S)||A.set(S,[]),(D=A.get(S))===null||D===void 0||D.push(k)}),E}function createTreeMate(d,b={}){var A;const C=new Map,w=new Map,{getDisabled:x=isDisabled,getIgnored:S=isIgnored,getIsGroup:E=isGroup,getKey:P=defaultGetKey}=b,B=(A=b.getChildren)!==null&&A!==void 0?A:defaultGetChildren,D=b.ignoreEmptyChildren?V=>{const U=B(V);return Array.isArray(U)?U.length?U:null:U}:B,k=Object.assign({get key(){return P(this.rawNode)},get disabled(){return x(this.rawNode)},get isGroup(){return E(this.rawNode)},get isLeaf(){return isLeaf(this.rawNode,D)},get shallowLoaded(){return isShallowLoaded(this.rawNode,D)},get ignored(){return S(this.rawNode)},contains(V){return contains(this,V)}},moveMethods),I=createTreeNodes(d,C,w,k,D);function $(V){if(V==null)return null;const U=C.get(V);return U&&!U.isGroup&&!U.ignored?U:null}function M(V){if(V==null)return null;const U=C.get(V);return U&&!U.ignored?U:null}function L(V,U){const W=M(V);return W?W.getPrev(U):null}function H(V,U){const W=M(V);return W?W.getNext(U):null}function z(V){const U=M(V);return U?U.getParent():null}function Q(V){const U=M(V);return U?U.getChild():null}const q={treeNodes:I,treeNodeMap:C,levelTreeNodeMap:w,maxLevel:Math.max(...w.keys()),getChildren:D,getFlattenedNodes(V){return flatten$2(I,V)},getNode:$,getPrev:L,getNext:H,getParent:z,getChild:Q,getFirstAvailableNode(){return getFirstAvailableNode(I)},getPath(V,U={}){return getPath(V,U,q)},getCheckedKeys(V,U={}){const{cascade:W=!0,leafOnly:K=!1,checkStrategy:Z="all",allowNotLoaded:te=!1}=U;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(V),indeterminateKeys:unwrapIndeterminateKeys(V),cascade:W,leafOnly:K,checkStrategy:Z,allowNotLoaded:te},q)},check(V,U,W={}){const{cascade:K=!0,leafOnly:Z=!1,checkStrategy:te="all",allowNotLoaded:ne=!1}=W;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(U),indeterminateKeys:unwrapIndeterminateKeys(U),keysToCheck:V==null?[]:toArray(V),cascade:K,leafOnly:Z,checkStrategy:te,allowNotLoaded:ne},q)},uncheck(V,U,W={}){const{cascade:K=!0,leafOnly:Z=!1,checkStrategy:te="all",allowNotLoaded:ne=!1}=W;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(U),indeterminateKeys:unwrapIndeterminateKeys(U),keysToUncheck:V==null?[]:toArray(V),cascade:K,leafOnly:Z,checkStrategy:te,allowNotLoaded:ne},q)},getNonLeafKeys(V={}){return getNonLeafKeys(I,V)}};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:A,textColor2:C,fontSizeSmall:w,fontSizeMedium:x,fontSizeLarge:S,fontSizeHuge:E}=d;return Object.assign(Object.assign({},commonVars$c),{fontSizeSmall:w,fontSizeMedium:x,fontSizeLarge:S,fontSizeHuge:E,textColor:b,iconColor:A,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$t=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:A}=useConfig(d),C=useTheme("Empty","-empty",style$t,emptyLight$1,d,b),{localeRef:w}=useLocale("Empty"),x=inject(configProviderInjectionKey,null),S=computed(()=>{var D,k,I;return(D=d.description)!==null&&D!==void 0?D:(I=(k=x==null?void 0:x.mergedComponentPropsRef.value)===null||k===void 0?void 0:k.Empty)===null||I===void 0?void 0:I.description}),E=computed(()=>{var D,k;return((k=(D=x==null?void 0:x.mergedComponentPropsRef.value)===null||D===void 0?void 0:D.Empty)===null||k===void 0?void 0:k.renderIcon)||(()=>h$1(EmptyIcon,null))}),P=computed(()=>{const{size:D}=d,{common:{cubicBezierEaseInOut:k},self:{[createKey("iconSize",D)]:I,[createKey("fontSize",D)]:$,textColor:M,iconColor:L,extraTextColor:H}}=C.value;return{"--n-icon-size":I,"--n-font-size":$,"--n-bezier":k,"--n-text-color":M,"--n-icon-color":L,"--n-extra-text-color":H}}),B=A?useThemeClass("empty",computed(()=>{let D="";const{size:k}=d;return D+=k[0],D}),P,d):void 0;return{mergedClsPrefix:b,mergedRenderIcon:E,localizedDescription:computed(()=>S.value||w.value.description),cssVars:A?void 0:P,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender}},render(){const{$slots:d,mergedClsPrefix:b,onRender:A}=this;return A==null||A(),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:A}=d;return{color:b,colorHover:A}},scrollbarLight={name:"Scrollbar",common:commonLight,self:self$T},scrollbarLight$1=scrollbarLight,scrollbarDark={name:"Scrollbar",common:commonDark,self:self$T},scrollbarDark$1=scrollbarDark,{cubicBezierEaseInOut:cubicBezierEaseInOut$3}=commonVariables$m;function fadeInTransition({name:d="fade-in",enterDuration:b="0.2s",leaveDuration:A="0.2s",enterCubicBezier:C=cubicBezierEaseInOut$3,leaveCubicBezier:w=cubicBezierEaseInOut$3}={}){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(A," ").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$s=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:A,mergedRtlRef:C}=useConfig(d),w=useRtl("Scrollbar",C,b),x=ref(null),S=ref(null),E=ref(null),P=ref(null),B=ref(null),D=ref(null),k=ref(null),I=ref(null),$=ref(null),M=ref(null),L=ref(null),H=ref(0),z=ref(0),Q=ref(!1),q=ref(!1);let V=!1,U=!1,W,K,Z=0,te=0,ne=0,ue=0;const X=useIsIos(),se=computed(()=>{const{value:pe}=I,{value:ke}=D,{value:Ve}=M;return pe===null||ke===null||Ve===null?0:Math.min(pe,Ve*pe/ke+d.size*1.5)}),he=computed(()=>"".concat(se.value,"px")),me=computed(()=>{const{value:pe}=$,{value:ke}=k,{value:Ve}=L;return pe===null||ke===null||Ve===null?0:Ve*pe/ke+d.size*1.5}),ie=computed(()=>"".concat(me.value,"px")),de=computed(()=>{const{value:pe}=I,{value:ke}=H,{value:Ve}=D,{value:gt}=M;if(pe===null||Ve===null||gt===null)return 0;{const yt=Ve-pe;return yt?ke/yt*(gt-se.value):0}}),be=computed(()=>"".concat(de.value,"px")),ge=computed(()=>{const{value:pe}=$,{value:ke}=z,{value:Ve}=k,{value:gt}=L;if(pe===null||Ve===null||gt===null)return 0;{const yt=Ve-pe;return yt?ke/yt*(gt-me.value):0}}),Se=computed(()=>"".concat(ge.value,"px")),je=computed(()=>{const{value:pe}=I,{value:ke}=D;return pe!==null&&ke!==null&&ke>pe}),Ye=computed(()=>{const{value:pe}=$,{value:ke}=k;return pe!==null&&ke!==null&&ke>pe}),st=computed(()=>{const{trigger:pe}=d;return pe==="none"||Q.value}),ot=computed(()=>{const{trigger:pe}=d;return pe==="none"||q.value}),et=computed(()=>{const{container:pe}=d;return pe?pe():S.value}),lt=computed(()=>{const{content:pe}=d;return pe?pe():E.value}),Me=useReactivated(()=>{d.container||Ze({top:H.value,left:z.value})}),Oe=()=>{Me.isDeactivated||Be()},Qe=pe=>{if(Me.isDeactivated)return;const{onResize:ke}=d;ke&&ke(pe),Be()},Ze=(pe,ke)=>{if(!d.scrollable)return;if(typeof pe=="number"){Te(ke!=null?ke:0,pe,0,!1,"auto");return}const{left:Ve,top:gt,index:yt,elSize:xt,position:Ne,behavior:De,el:re,debounce:ce=!0}=pe;(Ve!==void 0||gt!==void 0)&&Te(Ve!=null?Ve:0,gt!=null?gt:0,0,!1,De),re!==void 0?Te(0,re.offsetTop,re.offsetHeight,ce,De):yt!==void 0&&xt!==void 0?Te(0,yt*xt,xt,ce,De):Ne==="bottom"?Te(0,Number.MAX_SAFE_INTEGER,0,!1,De):Ne==="top"&&Te(0,0,0,!1,De)},it=(pe,ke)=>{if(!d.scrollable)return;const{value:Ve}=et;Ve&&(typeof pe=="object"?Ve.scrollBy(pe):Ve.scrollBy(pe,ke||0))};function Te(pe,ke,Ve,gt,yt){const{value:xt}=et;if(xt){if(gt){const{scrollTop:Ne,offsetHeight:De}=xt;if(ke>Ne){ke+Ve<=Ne+De||xt.scrollTo({left:pe,top:ke+Ve-De,behavior:yt});return}}xt.scrollTo({left:pe,top:ke,behavior:yt})}}function _e(){Fe(),ae(),Be()}function He(){Je()}function Je(){Ke(),Ie()}function Ke(){K!==void 0&&window.clearTimeout(K),K=window.setTimeout(()=>{q.value=!1},d.duration)}function Ie(){W!==void 0&&window.clearTimeout(W),W=window.setTimeout(()=>{Q.value=!1},d.duration)}function Fe(){W!==void 0&&window.clearTimeout(W),Q.value=!0}function ae(){K!==void 0&&window.clearTimeout(K),q.value=!0}function ee(pe){const{onScroll:ke}=d;ke&&ke(pe),J()}function J(){const{value:pe}=et;pe&&(H.value=pe.scrollTop,z.value=pe.scrollLeft*(w!=null&&w.value?-1:1))}function le(){const{value:pe}=lt;pe&&(D.value=pe.offsetHeight,k.value=pe.offsetWidth);const{value:ke}=et;ke&&(I.value=ke.offsetHeight,$.value=ke.offsetWidth);const{value:Ve}=B,{value:gt}=P;Ve&&(L.value=Ve.offsetWidth),gt&&(M.value=gt.offsetHeight)}function ve(){const{value:pe}=et;pe&&(H.value=pe.scrollTop,z.value=pe.scrollLeft*(w!=null&&w.value?-1:1),I.value=pe.offsetHeight,$.value=pe.offsetWidth,D.value=pe.scrollHeight,k.value=pe.scrollWidth);const{value:ke}=B,{value:Ve}=P;ke&&(L.value=ke.offsetWidth),Ve&&(M.value=Ve.offsetHeight)}function Be(){d.scrollable&&(d.useUnifiedContainer?ve():(le(),J()))}function Ue(pe){var ke;return!(!((ke=x.value)===null||ke===void 0)&&ke.contains(getPreciseEventTarget(pe)))}function rt(pe){pe.preventDefault(),pe.stopPropagation(),U=!0,on("mousemove",window,pt,!0),on("mouseup",window,tt,!0),te=z.value,ne=w!=null&&w.value?window.innerWidth-pe.clientX:pe.clientX}function pt(pe){if(!U)return;W!==void 0&&window.clearTimeout(W),K!==void 0&&window.clearTimeout(K);const{value:ke}=$,{value:Ve}=k,{value:gt}=me;if(ke===null||Ve===null)return;const xt=(w!=null&&w.value?window.innerWidth-pe.clientX-ne:pe.clientX-ne)*(Ve-ke)/(ke-gt),Ne=Ve-ke;let De=te+xt;De=Math.min(Ne,De),De=Math.max(De,0);const{value:re}=et;if(re){re.scrollLeft=De*(w!=null&&w.value?-1:1);const{internalOnUpdateScrollLeft:ce}=d;ce&&ce(De)}}function tt(pe){pe.preventDefault(),pe.stopPropagation(),off("mousemove",window,pt,!0),off("mouseup",window,tt,!0),U=!1,Be(),Ue(pe)&&Je()}function at(pe){pe.preventDefault(),pe.stopPropagation(),V=!0,on("mousemove",window,Et,!0),on("mouseup",window,Dt,!0),Z=H.value,ue=pe.clientY}function Et(pe){if(!V)return;W!==void 0&&window.clearTimeout(W),K!==void 0&&window.clearTimeout(K);const{value:ke}=I,{value:Ve}=D,{value:gt}=se;if(ke===null||Ve===null)return;const xt=(pe.clientY-ue)*(Ve-ke)/(ke-gt),Ne=Ve-ke;let De=Z+xt;De=Math.min(Ne,De),De=Math.max(De,0);const{value:re}=et;re&&(re.scrollTop=De)}function Dt(pe){pe.preventDefault(),pe.stopPropagation(),off("mousemove",window,Et,!0),off("mouseup",window,Dt,!0),V=!1,Be(),Ue(pe)&&Je()}watchEffect(()=>{const{value:pe}=Ye,{value:ke}=je,{value:Ve}=b,{value:gt}=B,{value:yt}=P;gt&&(pe?gt.classList.remove("".concat(Ve,"-scrollbar-rail--disabled")):gt.classList.add("".concat(Ve,"-scrollbar-rail--disabled"))),yt&&(ke?yt.classList.remove("".concat(Ve,"-scrollbar-rail--disabled")):yt.classList.add("".concat(Ve,"-scrollbar-rail--disabled")))}),onMounted(()=>{d.container||Be()}),onBeforeUnmount(()=>{W!==void 0&&window.clearTimeout(W),K!==void 0&&window.clearTimeout(K),off("mousemove",window,Et,!0),off("mouseup",window,Dt,!0)});const Mt=useTheme("Scrollbar","-scrollbar",style$s,scrollbarLight$1,d,b),kt=computed(()=>{const{common:{cubicBezierEaseInOut:pe,scrollbarBorderRadius:ke,scrollbarHeight:Ve,scrollbarWidth:gt},self:{color:yt,colorHover:xt}}=Mt.value;return{"--n-scrollbar-bezier":pe,"--n-scrollbar-color":yt,"--n-scrollbar-color-hover":xt,"--n-scrollbar-border-radius":ke,"--n-scrollbar-width":gt,"--n-scrollbar-height":Ve}}),It=A?useThemeClass("scrollbar",void 0,kt,d):void 0;return Object.assign(Object.assign({},{scrollTo:Ze,scrollBy:it,sync:Be,syncUnifiedContainer:ve,handleMouseEnterWrapper:_e,handleMouseLeaveWrapper:He}),{mergedClsPrefix:b,rtlEnabled:w,containerScrollTop:H,wrapperRef:x,containerRef:S,contentRef:E,yRailRef:P,xRailRef:B,needYBar:je,needXBar:Ye,yBarSizePx:he,xBarSizePx:ie,yBarTopPx:be,xBarLeftPx:Se,isShowXBar:st,isShowYBar:ot,isIos:X,handleScroll:ee,handleContentResize:Oe,handleContainerResize:Qe,handleYScrollMouseDown:at,handleXScrollMouseDown:rt,cssVars:A?void 0:kt,themeClass:It==null?void 0:It.themeClass,onRender:It==null?void 0:It.onRender})},render(){var d;const{$slots:b,mergedClsPrefix:A,triggerDisplayManually:C,rtlEnabled:w,internalHoistYRail:x}=this;if(!this.scrollable)return(d=b.default)===null||d===void 0?void 0:d.call(b);const S=this.trigger==="none",E=()=>h$1("div",{ref:"yRailRef",class:["".concat(A,"-scrollbar-rail"),"".concat(A,"-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(A,"-scrollbar-rail__scrollbar"),style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),P=()=>{var D,k;return(D=this.onRender)===null||D===void 0||D.call(this),h$1("div",mergeProps(this.$attrs,{role:"none",ref:"wrapperRef",class:["".concat(A,"-scrollbar"),this.themeClass,w&&"".concat(A,"-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(A,"-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(A,"-scrollbar-content"),this.contentClass]},b)})),x?null:E(),this.xScrollable&&h$1("div",{ref:"xRailRef",class:["".concat(A,"-scrollbar-rail"),"".concat(A,"-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(A,"-scrollbar-rail__scrollbar"),style:{width:this.xBarSizePx,right:w?this.xBarLeftPx:void 0,left:w?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},B=this.container?P():h$1(VResizeObserver,{onResize:this.handleContainerResize},{default:P});return x?h$1(Fragment,null,B,E()):B}}),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:A,textColor3:C,dividerColor:w,textColor2:x,primaryColorPressed:S,textColorDisabled:E,primaryColor:P,opacityDisabled:B,hoverColor:D,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:$,fontSizeHuge:M,heightSmall:L,heightMedium:H,heightLarge:z,heightHuge:Q}=d;return Object.assign(Object.assign({},commonVariables$l),{optionFontSizeSmall:k,optionFontSizeMedium:I,optionFontSizeLarge:$,optionFontSizeHuge:M,optionHeightSmall:L,optionHeightMedium:H,optionHeightLarge:z,optionHeightHuge:Q,borderRadius:b,color:A,groupHeaderTextColor:C,actionDividerColor:w,optionTextColor:x,optionTextColorPressed:S,optionTextColorDisabled:E,optionTextColorActive:P,optionOpacityDisabled:B,optionCheckColor:P,optionColorPending:D,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:D,actionTextColor:x,loadingColor:P})},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:A,multipleRef:C,valueSetRef:w,renderLabelRef:x,renderOptionRef:S,labelFieldRef:E,valueFieldRef:P,showCheckmarkRef:B,nodePropsRef:D,handleOptionClick:k,handleOptionMouseEnter:I}=inject(internalSelectionMenuInjectionKey),$=useMemo(()=>{const{value:z}=A;return z?d.tmNode.key===z.key:!1});function M(z){const{tmNode:Q}=d;Q.disabled||k(z,Q)}function L(z){const{tmNode:Q}=d;Q.disabled||I(z,Q)}function H(z){const{tmNode:Q}=d,{value:q}=$;Q.disabled||q||I(z,Q)}return{multiple:C,isGrouped:useMemo(()=>{const{tmNode:z}=d,{parent:Q}=z;return Q&&Q.rawNode.type==="group"}),showCheckmark:B,nodeProps:D,isPending:$,isSelected:useMemo(()=>{const{value:z}=b,{value:Q}=C;if(z===null)return!1;const q=d.tmNode.rawNode[P.value];if(Q){const{value:V}=w;return V.has(q)}else return z===q}),labelField:E,renderLabel:x,renderOption:S,handleMouseMove:H,handleMouseEnter:L,handleClick:M}},render(){const{clsPrefix:d,tmNode:{rawNode:b},isSelected:A,isPending:C,isGrouped:w,showCheckmark:x,nodeProps:S,renderOption:E,renderLabel:P,handleClick:B,handleMouseEnter:D,handleMouseMove:k}=this,I=renderCheckMark(A,d),$=P?[P(b,A),x&&I]:[render$1(b[this.labelField],b,A),x&&I],M=S==null?void 0:S(b),L=h$1("div",Object.assign({},M,{class:["".concat(d,"-base-select-option"),b.class,M==null?void 0:M.class,{["".concat(d,"-base-select-option--disabled")]:b.disabled,["".concat(d,"-base-select-option--selected")]:A,["".concat(d,"-base-select-option--grouped")]:w,["".concat(d,"-base-select-option--pending")]:C,["".concat(d,"-base-select-option--show-checkmark")]:x}],style:[(M==null?void 0:M.style)||"",b.style||""],onClick:mergeEventHandlers([B,M==null?void 0:M.onClick]),onMouseenter:mergeEventHandlers([D,M==null?void 0:M.onMouseenter]),onMousemove:mergeEventHandlers([k,M==null?void 0:M.onMousemove])}),h$1("div",{class:"".concat(d,"-base-select-option__content")},$));return b.render?b.render({node:L,option:b,selected:A}):E?E({node:L,option:b,selected:A}):L}}),NSelectGroupHeader=defineComponent({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:d,renderOptionRef:b,labelFieldRef:A,nodePropsRef:C}=inject(internalSelectionMenuInjectionKey);return{labelField:A,nodeProps:C,renderLabel:d,renderOption:b}},render(){const{clsPrefix:d,renderLabel:b,renderOption:A,nodeProps:C,tmNode:{rawNode:w}}=this,x=C==null?void 0:C(w),S=b?b(w,!1):render$1(w[this.labelField],w,!1),E=h$1("div",Object.assign({},x,{class:["".concat(d,"-base-select-group-header"),x==null?void 0:x.class]}),S);return w.render?w.render({node:E,option:w}):A?A({node:E,option:w,selected:!1}):E}}),{cubicBezierEaseIn:cubicBezierEaseIn$1,cubicBezierEaseOut:cubicBezierEaseOut$1}=commonVariables$m;function fadeInScaleUpTransition({transformOrigin:d="inherit",duration:b=".2s",enterScale:A=".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(A,")")}),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$r=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$r,internalSelectMenuLight$1,d,toRef(d,"clsPrefix")),A=ref(null),C=ref(null),w=ref(null),x=computed(()=>d.treeMate.getFlattenedNodes()),S=computed(()=>createIndexGetter(x.value)),E=ref(null);function P(){const{treeMate:ge}=d;let Se=null;const{value:je}=d;je===null?Se=ge.getFirstAvailableNode():(d.multiple?Se=ge.getNode((je||[])[(je||[]).length-1]):Se=ge.getNode(je),(!Se||Se.disabled)&&(Se=ge.getFirstAvailableNode())),ue(Se||null)}function B(){const{value:ge}=E;ge&&!d.treeMate.getNode(ge.key)&&(E.value=null)}let D;watch(()=>d.show,ge=>{ge?D=watch(()=>d.treeMate,()=>{d.resetMenuOnOptionsChange?(d.autoPending?P():B(),nextTick(X)):B()},{immediate:!0}):D==null||D()},{immediate:!0}),onBeforeUnmount(()=>{D==null||D()});const k=computed(()=>depx(b.value.self[createKey("optionHeight",d.size)])),I=computed(()=>getMargin(b.value.self[createKey("padding",d.size)])),$=computed(()=>d.multiple&&Array.isArray(d.value)?new Set(d.value):new Set),M=computed(()=>{const ge=x.value;return ge&&ge.length===0});function L(ge){const{onToggle:Se}=d;Se&&Se(ge)}function H(ge){const{onScroll:Se}=d;Se&&Se(ge)}function z(ge){var Se;(Se=w.value)===null||Se===void 0||Se.sync(),H(ge)}function Q(){var ge;(ge=w.value)===null||ge===void 0||ge.sync()}function q(){const{value:ge}=E;return ge||null}function V(ge,Se){Se.disabled||ue(Se,!1)}function U(ge,Se){Se.disabled||L(Se)}function W(ge){var Se;happensIn(ge,"action")||(Se=d.onKeyup)===null||Se===void 0||Se.call(d,ge)}function K(ge){var Se;happensIn(ge,"action")||(Se=d.onKeydown)===null||Se===void 0||Se.call(d,ge)}function Z(ge){var Se;(Se=d.onMousedown)===null||Se===void 0||Se.call(d,ge),!d.focusable&&ge.preventDefault()}function te(){const{value:ge}=E;ge&&ue(ge.getNext({loop:!0}),!0)}function ne(){const{value:ge}=E;ge&&ue(ge.getPrev({loop:!0}),!0)}function ue(ge,Se=!1){E.value=ge,Se&&X()}function X(){var ge,Se;const je=E.value;if(!je)return;const Ye=S.value(je.key);Ye!==null&&(d.virtualScroll?(ge=C.value)===null||ge===void 0||ge.scrollTo({index:Ye}):(Se=w.value)===null||Se===void 0||Se.scrollTo({index:Ye,elSize:k.value}))}function se(ge){var Se,je;!((Se=A.value)===null||Se===void 0)&&Se.contains(ge.target)&&((je=d.onFocus)===null||je===void 0||je.call(d,ge))}function he(ge){var Se,je;!((Se=A.value)===null||Se===void 0)&&Se.contains(ge.relatedTarget)||(je=d.onBlur)===null||je===void 0||je.call(d,ge)}provide(internalSelectionMenuInjectionKey,{handleOptionMouseEnter:V,handleOptionClick:U,valueSetRef:$,pendingTmNodeRef:E,nodePropsRef:toRef(d,"nodeProps"),showCheckmarkRef:toRef(d,"showCheckmark"),multipleRef:toRef(d,"multiple"),valueRef:toRef(d,"value"),renderLabelRef:toRef(d,"renderLabel"),renderOptionRef:toRef(d,"renderOption"),labelFieldRef:toRef(d,"labelField"),valueFieldRef:toRef(d,"valueField")}),provide(internalSelectionMenuBodyInjectionKey,A),onMounted(()=>{const{value:ge}=w;ge&&ge.sync()});const me=computed(()=>{const{size:ge}=d,{common:{cubicBezierEaseInOut:Se},self:{height:je,borderRadius:Ye,color:st,groupHeaderTextColor:ot,actionDividerColor:et,optionTextColorPressed:lt,optionTextColor:Me,optionTextColorDisabled:Oe,optionTextColorActive:Qe,optionOpacityDisabled:Ze,optionCheckColor:it,actionTextColor:Te,optionColorPending:_e,optionColorActive:He,loadingColor:Je,loadingSize:Ke,optionColorActivePending:Ie,[createKey("optionFontSize",ge)]:Fe,[createKey("optionHeight",ge)]:ae,[createKey("optionPadding",ge)]:ee}}=b.value;return{"--n-height":je,"--n-action-divider-color":et,"--n-action-text-color":Te,"--n-bezier":Se,"--n-border-radius":Ye,"--n-color":st,"--n-option-font-size":Fe,"--n-group-header-text-color":ot,"--n-option-check-color":it,"--n-option-color-pending":_e,"--n-option-color-active":He,"--n-option-color-active-pending":Ie,"--n-option-height":ae,"--n-option-opacity-disabled":Ze,"--n-option-text-color":Me,"--n-option-text-color-active":Qe,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":lt,"--n-option-padding":ee,"--n-option-padding-left":getMargin(ee,"left"),"--n-option-padding-right":getMargin(ee,"right"),"--n-loading-color":Je,"--n-loading-size":Ke}}),{inlineThemeDisabled:ie}=d,de=ie?useThemeClass("internal-select-menu",computed(()=>d.size[0]),me,d):void 0,be={selfRef:A,next:te,prev:ne,getPendingTmNode:q};return useOnResize(A,d.onResize),Object.assign({mergedTheme:b,virtualListRef:C,scrollbarRef:w,itemSize:k,padding:I,flattenedNodes:x,empty:M,virtualListContainer(){const{value:ge}=C;return ge==null?void 0:ge.listElRef},virtualListContent(){const{value:ge}=C;return ge==null?void 0:ge.itemsElRef},doScroll:H,handleFocusin:se,handleFocusout:he,handleKeyUp:W,handleKeyDown:K,handleMouseDown:Z,handleVirtualListResize:Q,handleVirtualListScroll:z,cssVars:ie?void 0:me,themeClass:de==null?void 0:de.themeClass,onRender:de==null?void 0:de.onRender},be)},render(){const{$slots:d,virtualScroll:b,clsPrefix:A,mergedTheme:C,themeClass:w,onRender:x}=this;return x==null||x(),h$1("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:["".concat(A,"-base-select-menu"),w,this.multiple&&"".concat(A,"-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(A,"-base-select-menu__loading")},h$1(NBaseLoading,{clsPrefix:A,strokeWidth:20})):this.empty?h$1("div",{class:"".concat(A,"-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(A,"-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:A,tmNode:S}):S.ignored?null:h$1(NSelectOption,{clsPrefix:A,key:S.key,tmNode:S})}):h$1("div",{class:"".concat(A,"-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:A,tmNode:S}):h$1(NSelectOption,{clsPrefix:A,key:S.key,tmNode:S})))}),resolveWrappedSlot(d.action,S=>S&&[h$1("div",{class:"".concat(A,"-base-select-menu__action"),"data-action":!0,key:"action"},S),h$1(FocusDetector,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),style$q=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$q,toRef(d,"clsPrefix"));const b=ref(null),A=ref(!1);let C=null;return onBeforeUnmount(()=>{C!==null&&window.clearTimeout(C)}),{active:A,selfRef:b,play(){C!==null&&(window.clearTimeout(C),A.value=!1,C=null),nextTick(()=>{var w;(w=b.value)===null||w===void 0||w.offsetHeight,A.value=!0,C=window.setTimeout(()=>{A.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")]})}}),style$p=cB("base-menu-mask","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 14px;\n overflow: hidden;\n",[fadeInTransition()]),NBaseMenuMask=defineComponent({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(d){useStyle("-base-menu-mask",style$p,toRef(d,"clsPrefix"));const b=ref(null);let A=null;const C=ref(!1);return onBeforeUnmount(()=>{A!==null&&window.clearTimeout(A)}),Object.assign({message:b,show:C},{showOnce(x,S=1500){A&&window.clearTimeout(A),C.value=!0,b.value=x,A=window.setTimeout(()=>{C.value=!1,b.value=null},S)}})},render(){return h$1(Transition,{name:"fade-in-transition"},{default:()=>this.show?h$1("div",{class:"".concat(this.clsPrefix,"-base-menu-mask")},this.message):null})}}),commonVariables$k={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},self$R=d=>{const{boxShadow2:b,popoverColor:A,textColor2:C,borderRadius:w,fontSize:x,dividerColor:S}=d;return Object.assign(Object.assign({},commonVariables$k),{fontSize:x,borderRadius:w,color:A,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$o=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 A=["right","left"].includes(b),C=A?"width":"height";return d.map(w=>{const x=w.split("-")[1]==="end",S="var(--v-target-".concat(C,", 0px)"),E="calc((".concat(S," - ").concat(arrowSize,") / 2)"),P=getArrowOffset(w);return c$3('[v-placement="'.concat(w,'"] >'),[cB("popover-shared",[cM("center-arrow",[cB("popover-arrow","".concat(b,": calc(max(").concat(E,", ").concat(P,") ").concat(x?"+":"-"," var(--v-offset-").concat(A?"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 A=d.split("-")[0],C=["top","bottom"].includes(A)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return c$3('[v-placement="'.concat(d,'"] >'),[cB("popover-shared","\n margin-".concat(oppositePlacement[A],": var(--n-space);\n "),[cM("show-arrow","\n margin-".concat(oppositePlacement[A],": 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(A,": 100%;\n ").concat(oppositePlacement[A],": 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:A}){const{namespaceRef:C,mergedClsPrefixRef:w,inlineThemeDisabled:x}=useConfig(d),S=useTheme("Popover","-popover",style$o,popoverLight$1,d,w),E=ref(null),P=inject("NPopover"),B=ref(null),D=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:Z}=d,te=[],{positionManuallyRef:{value:ne}}=P;return ne||(K==="click"&&!Z&&te.push([clickoutside$1,V,void 0,{capture:!0}]),K==="hover"&&te.push([mousemoveoutside$1,q])),Z&&te.push([clickoutside$1,V,void 0,{capture:!0}]),(d.displayDirective==="show"||d.animated&&k.value)&&te.push([vShow,d.show]),te}),$=computed(()=>{const K=d.width==="trigger"?void 0:formatLength(d.width),Z=[];K&&Z.push({width:K});const{maxWidth:te,minWidth:ne}=d;return te&&Z.push({maxWidth:formatLength(te)}),ne&&Z.push({maxWidth:formatLength(ne)}),x||Z.push(M.value),Z}),M=computed(()=>{const{common:{cubicBezierEaseInOut:K,cubicBezierEaseIn:Z,cubicBezierEaseOut:te},self:{space:ne,spaceArrow:ue,padding:X,fontSize:se,textColor:he,dividerColor:me,color:ie,boxShadow:de,borderRadius:be,arrowHeight:ge,arrowOffset:Se,arrowOffsetVertical:je}}=S.value;return{"--n-box-shadow":de,"--n-bezier":K,"--n-bezier-ease-in":Z,"--n-bezier-ease-out":te,"--n-font-size":se,"--n-text-color":he,"--n-color":ie,"--n-divider-color":me,"--n-border-radius":be,"--n-arrow-height":ge,"--n-arrow-offset":Se,"--n-arrow-offset-vertical":je,"--n-padding":X,"--n-space":ne,"--n-space-arrow":ue}}),L=x?useThemeClass("popover",void 0,M,d):void 0;P.setBodyInstance({syncPosition:H}),onBeforeUnmount(()=>{P.setBodyInstance(null)}),watch(toRef(d,"show"),K=>{d.animated||(K?D.value=!0:D.value=!1)});function H(){var K;(K=E.value)===null||K===void 0||K.syncPosition()}function z(K){d.trigger==="hover"&&d.keepAliveOnHover&&d.show&&P.handleMouseEnter(K)}function Q(K){d.trigger==="hover"&&d.keepAliveOnHover&&P.handleMouseLeave(K)}function q(K){d.trigger==="hover"&&!U().contains(getPreciseEventTarget(K))&&P.handleMouseMoveOutside(K)}function V(K){(d.trigger==="click"&&!U().contains(getPreciseEventTarget(K))||d.onClickoutside)&&P.handleClickOutside(K)}function U(){return P.getTriggerElement()}provide(popoverBodyInjectionKey,B),provide(drawerBodyInjectionKey,null),provide(modalBodyInjectionKey,null);function W(){if(L==null||L.onRender(),!(d.displayDirective==="show"||d.show||d.animated&&k.value))return null;let Z;const te=P.internalRenderBodyRef.value,{value:ne}=w;if(te)Z=te(["".concat(ne,"-popover-shared"),L==null?void 0:L.themeClass.value,d.overlap&&"".concat(ne,"-popover-shared--overlap"),d.showArrow&&"".concat(ne,"-popover-shared--show-arrow"),d.arrowPointToCenter&&"".concat(ne,"-popover-shared--center-arrow")],B,$.value,z,Q);else{const{value:ue}=P.extraClassRef,{internalTrapFocus:X}=d,se=!isSlotEmpty(b.header)||!isSlotEmpty(b.footer),he=()=>{var me;const ie=se?h$1(Fragment,null,resolveWrappedSlot(b.header,ge=>ge?h$1("div",{class:"".concat(ne,"-popover__header"),style:d.headerStyle},ge):null),resolveWrappedSlot(b.default,ge=>ge?h$1("div",{class:"".concat(ne,"-popover__content"),style:d.contentStyle},b):null),resolveWrappedSlot(b.footer,ge=>ge?h$1("div",{class:"".concat(ne,"-popover__footer"),style:d.footerStyle},ge):null)):d.scrollable?(me=b.default)===null||me===void 0?void 0:me.call(b):h$1("div",{class:"".concat(ne,"-popover__content"),style:d.contentStyle},b),de=d.scrollable?h$1(XScrollbar,{contentClass:se?void 0:"".concat(ne,"-popover__content"),contentStyle:se?void 0:d.contentStyle},{default:()=>ie}):ie,be=d.showArrow?renderArrow({arrowStyle:d.arrowStyle,clsPrefix:ne}):null;return[de,be]};Z=h$1("div",mergeProps({class:["".concat(ne,"-popover"),"".concat(ne,"-popover-shared"),L==null?void 0:L.themeClass.value,ue.map(me=>"".concat(ne,"-").concat(me)),{["".concat(ne,"-popover--scrollable")]:d.scrollable,["".concat(ne,"-popover--show-header-or-footer")]:se,["".concat(ne,"-popover--raw")]:d.raw,["".concat(ne,"-popover-shared--overlap")]:d.overlap,["".concat(ne,"-popover-shared--show-arrow")]:d.showArrow,["".concat(ne,"-popover-shared--center-arrow")]:d.arrowPointToCenter}],ref:B,style:$.value,onKeydown:P.handleKeydown,onMouseenter:z,onMouseleave:Q},A),X?h$1(FocusTrap,{active:d.show,autoFocus:!0},{default:he}):he())}return withDirectives(Z,I.value)}return{displayed:k,namespace:C,isMounted:P.isMountedRef,zIndex:P.zIndexRef,followerRef:E,adjustedTo:useAdjustedTo(d),followerEnabled:D,renderContentNode:W}},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,A){triggerEventMap[b].forEach(C=>{d.props?d.props=Object.assign({},d.props):d.props={};const w=d.props[C],x=A[C];w?d.props[C]=(...S)=>{w(...S),x(...S)}:d.props[C]=x})}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(),A=ref(null),C=computed(()=>d.show),w=ref(d.defaultShow),x=useMergedState(C,w),S=useMemo(()=>d.disabled?!1:x.value),E=()=>{if(d.disabled)return!0;const{getDisabled:he}=d;return!!(he!=null&&he())},P=()=>E()?!1:x.value,B=useCompitable(d,["arrow","showArrow"]),D=computed(()=>d.overlap?!1:B.value);let k=null;const I=ref(null),$=ref(null),M=useMemo(()=>d.x!==void 0&&d.y!==void 0);function L(he){const{"onUpdate:show":me,onUpdateShow:ie,onShow:de,onHide:be}=d;w.value=he,me&&call$1(me,he),ie&&call$1(ie,he),he&&de&&call$1(de,!0),he&&be&&call$1(be,!1)}function H(){k&&k.syncPosition()}function z(){const{value:he}=I;he&&(window.clearTimeout(he),I.value=null)}function Q(){const{value:he}=$;he&&(window.clearTimeout(he),$.value=null)}function q(){const he=E();if(d.trigger==="focus"&&!he){if(P())return;L(!0)}}function V(){const he=E();if(d.trigger==="focus"&&!he){if(!P())return;L(!1)}}function U(){const he=E();if(d.trigger==="hover"&&!he){if(Q(),I.value!==null||P())return;const me=()=>{L(!0),I.value=null},{delay:ie}=d;ie===0?me():I.value=window.setTimeout(me,ie)}}function W(){const he=E();if(d.trigger==="hover"&&!he){if(z(),$.value!==null||!P())return;const me=()=>{L(!1),$.value=null},{duration:ie}=d;ie===0?me():$.value=window.setTimeout(me,ie)}}function K(){W()}function Z(he){var me;P()&&(d.trigger==="click"&&(z(),Q(),L(!1)),(me=d.onClickoutside)===null||me===void 0||me.call(d,he))}function te(){if(d.trigger==="click"&&!E()){z(),Q();const he=!P();L(he)}}function ne(he){d.internalTrapFocus&&he.key==="Escape"&&(z(),Q(),L(!1))}function ue(he){w.value=he}function X(){var he;return(he=A.value)===null||he===void 0?void 0:he.targetRef}function se(he){k=he}return provide("NPopover",{getTriggerElement:X,handleKeydown:ne,handleMouseEnter:U,handleMouseLeave:W,handleClickOutside:Z,handleMouseMoveOutside:K,setBodyInstance:se,positionManuallyRef:M,isMountedRef:b,zIndexRef:toRef(d,"zIndex"),extraClassRef:toRef(d,"internalExtraClass"),internalRenderBodyRef:toRef(d,"internalRenderBody")}),watchEffect(()=>{x.value&&E()&&L(!1)}),{binderInstRef:A,positionManually:M,mergedShowConsideringDisabledProp:S,uncontrolledShow:w,mergedShowArrow:D,getMergedShow:P,setShow:ue,handleClick:te,handleMouseEnter:U,handleMouseLeave:W,handleFocus:q,handleBlur:V,syncPosition:H}},render(){var d;const{positionManually:b,$slots:A}=this;let C,w=!1;if(!b&&(A.activator?C=getFirstSlotVNode(A,"activator"):C=getFirstSlotVNode(A,"trigger"),C)){C=cloneVNode(C),C=C.type===Text?h$1("span",[C]):C;const x={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=[x,...C.props.internalInheritedEventHandlers]:C.props.internalInheritedEventHandlers=[x];else{const{internalInheritedEventHandlers:S}=this,E=[x,...S],P={onBlur:B=>{E.forEach(D=>{D.onBlur(B)})},onFocus:B=>{E.forEach(D=>{D.onFocus(B)})},onClick:B=>{E.forEach(D=>{D.onClick(B)})},onMouseenter:B=>{E.forEach(D=>{D.onMouseenter(B)})},onMouseleave:B=>{E.forEach(D=>{D.onMouseleave(B)})}};appendEvents(C,S?"nested":b?"manual":this.trigger,P)}}return h$1(VBinder,{ref:"binderInstRef",syncTarget:!w,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const x=this.getMergedShow();return[this.internalTrapFocus&&x?withDirectives(h$1("div",{style:{position:"fixed",inset:0}}),[[zindexable$1,{enabled:x,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:x})),{default:()=>{var S,E;return(E=(S=this.$slots).default)===null||E===void 0?void 0:E.call(S)},header:()=>{var S,E;return(E=(S=this.$slots).header)===null||E===void 0?void 0:E.call(S)},footer:()=>{var S,E;return(E=(S=this.$slots).footer)===null||E===void 0?void 0:E.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:A,primaryColorPressed:C,primaryColor:w,infoColor:x,successColor:S,warningColor:E,errorColor:P,baseColor:B,borderColor:D,tagColor:k,opacityDisabled:I,closeIconColor:$,closeIconColorHover:M,closeIconColorPressed:L,closeColorHover:H,closeColorPressed:z,borderRadiusSmall:Q,fontSizeMini:q,fontSizeTiny:V,fontSizeSmall:U,fontSizeMedium:W,heightMini:K,heightTiny:Z,heightSmall:te,heightMedium:ne,buttonColor2Hover:ue,buttonColor2Pressed:X,fontWeightStrong:se}=d;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:Q,heightTiny:K,heightSmall:Z,heightMedium:te,heightLarge:ne,borderRadius:Q,opacityDisabled:I,fontSizeTiny:q,fontSizeSmall:V,fontSizeMedium:U,fontSizeLarge:W,fontWeightStrong:se,textColorCheckable:b,textColorHoverCheckable:b,textColorPressedCheckable:b,textColorChecked:B,colorCheckable:"#0000",colorHoverCheckable:ue,colorPressedCheckable:X,colorChecked:w,colorCheckedHover:A,colorCheckedPressed:C,border:"1px solid ".concat(D),textColor:b,color:k,colorBordered:"#0000",closeIconColor:$,closeIconColorHover:M,closeIconColorPressed:L,closeColorHover:H,closeColorPressed:z,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(x,{alpha:.3})),textColorInfo:x,colorInfo:changeColor(x,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:scaleColor(x,{alpha:.7}),closeIconColorHoverInfo:scaleColor(x,{alpha:.7}),closeIconColorPressedInfo:scaleColor(x,{alpha:.7}),closeColorHoverInfo:changeColor(x,{alpha:.16}),closeColorPressedInfo:changeColor(x,{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(E,{alpha:.3})),textColorWarning:E,colorWarning:changeColor(E,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:scaleColor(E,{alpha:.7}),closeIconColorHoverWarning:scaleColor(E,{alpha:.7}),closeIconColorPressedWarning:scaleColor(E,{alpha:.7}),closeColorHoverWarning:changeColor(E,{alpha:.16}),closeColorPressedWarning:changeColor(E,{alpha:.11}),borderError:"1px solid ".concat(changeColor(P,{alpha:.3})),textColorError:P,colorError:changeColor(P,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:scaleColor(P,{alpha:.7}),closeIconColorHoverError:scaleColor(P,{alpha:.7}),closeIconColorPressedError:scaleColor(P,{alpha:.7}),closeColorHoverError:changeColor(P,{alpha:.16}),closeColorPressedError:changeColor(P,{alpha:.12})})}},tagDark$1=tagDark,self$Q=d=>{const{textColor2:b,primaryColorHover:A,primaryColorPressed:C,primaryColor:w,infoColor:x,successColor:S,warningColor:E,errorColor:P,baseColor:B,borderColor:D,opacityDisabled:k,tagColor:I,closeIconColor:$,closeIconColorHover:M,closeIconColorPressed:L,borderRadiusSmall:H,fontSizeMini:z,fontSizeTiny:Q,fontSizeSmall:q,fontSizeMedium:V,heightMini:U,heightTiny:W,heightSmall:K,heightMedium:Z,closeColorHover:te,closeColorPressed:ne,buttonColor2Hover:ue,buttonColor2Pressed:X,fontWeightStrong:se}=d;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:H,heightTiny:U,heightSmall:W,heightMedium:K,heightLarge:Z,borderRadius:H,opacityDisabled:k,fontSizeTiny:z,fontSizeSmall:Q,fontSizeMedium:q,fontSizeLarge:V,fontWeightStrong:se,textColorCheckable:b,textColorHoverCheckable:b,textColorPressedCheckable:b,textColorChecked:B,colorCheckable:"#0000",colorHoverCheckable:ue,colorPressedCheckable:X,colorChecked:w,colorCheckedHover:A,colorCheckedPressed:C,border:"1px solid ".concat(D),textColor:b,color:I,colorBordered:"rgb(250, 250, 252)",closeIconColor:$,closeIconColorHover:M,closeIconColorPressed:L,closeColorHover:te,closeColorPressed:ne,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(x,{alpha:.3})),textColorInfo:x,colorInfo:changeColor(x,{alpha:.12}),colorBorderedInfo:changeColor(x,{alpha:.1}),closeIconColorInfo:x,closeIconColorHoverInfo:x,closeIconColorPressedInfo:x,closeColorHoverInfo:changeColor(x,{alpha:.12}),closeColorPressedInfo:changeColor(x,{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(E,{alpha:.35})),textColorWarning:E,colorWarning:changeColor(E,{alpha:.15}),colorBorderedWarning:changeColor(E,{alpha:.12}),closeIconColorWarning:E,closeIconColorHoverWarning:E,closeIconColorPressedWarning:E,closeColorHoverWarning:changeColor(E,{alpha:.12}),closeColorPressedWarning:changeColor(E,{alpha:.18}),borderError:"1px solid ".concat(changeColor(P,{alpha:.23})),textColorError:P,colorError:changeColor(P,{alpha:.1}),colorBorderedError:changeColor(P,{alpha:.08}),closeIconColorError:P,closeIconColorHoverError:P,closeIconColorPressedError:P,closeColorHoverError:changeColor(P,{alpha:.12}),closeColorPressedError:changeColor(P,{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$n=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:A,mergedClsPrefixRef:C,inlineThemeDisabled:w,mergedRtlRef:x}=useConfig(d),S=useTheme("Tag","-tag",style$n,tagLight$1,d,C);provide(tagInjectionKey,{roundRef:toRef(d,"round")});function E($){if(!d.disabled&&d.checkable){const{checked:M,onCheckedChange:L,onUpdateChecked:H,"onUpdate:checked":z}=d;H&&H(!M),z&&z(!M),L&&L(!M)}}function P($){if(d.triggerClickOnClose||$.stopPropagation(),!d.disabled){const{onClose:M}=d;M&&call$1(M,$)}}const B={setTextContent($){const{value:M}=b;M&&(M.textContent=$)}},D=useRtl("Tag",x,C),k=computed(()=>{const{type:$,size:M,color:{color:L,textColor:H}={}}=d,{common:{cubicBezierEaseInOut:z},self:{padding:Q,closeMargin:q,closeMarginRtl:V,borderRadius:U,opacityDisabled:W,textColorCheckable:K,textColorHoverCheckable:Z,textColorPressedCheckable:te,textColorChecked:ne,colorCheckable:ue,colorHoverCheckable:X,colorPressedCheckable:se,colorChecked:he,colorCheckedHover:me,colorCheckedPressed:ie,closeBorderRadius:de,fontWeightStrong:be,[createKey("colorBordered",$)]:ge,[createKey("closeSize",M)]:Se,[createKey("closeIconSize",M)]:je,[createKey("fontSize",M)]:Ye,[createKey("height",M)]:st,[createKey("color",$)]:ot,[createKey("textColor",$)]:et,[createKey("border",$)]:lt,[createKey("closeIconColor",$)]:Me,[createKey("closeIconColorHover",$)]:Oe,[createKey("closeIconColorPressed",$)]:Qe,[createKey("closeColorHover",$)]:Ze,[createKey("closeColorPressed",$)]:it}}=S.value;return{"--n-font-weight-strong":be,"--n-avatar-size-override":"calc(".concat(st," - 8px)"),"--n-bezier":z,"--n-border-radius":U,"--n-border":lt,"--n-close-icon-size":je,"--n-close-color-pressed":it,"--n-close-color-hover":Ze,"--n-close-border-radius":de,"--n-close-icon-color":Me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":Qe,"--n-close-icon-color-disabled":Me,"--n-close-margin":q,"--n-close-margin-rtl":V,"--n-close-size":Se,"--n-color":L||(A.value?ge:ot),"--n-color-checkable":ue,"--n-color-checked":he,"--n-color-checked-hover":me,"--n-color-checked-pressed":ie,"--n-color-hover-checkable":X,"--n-color-pressed-checkable":se,"--n-font-size":Ye,"--n-height":st,"--n-opacity-disabled":W,"--n-padding":Q,"--n-text-color":H||et,"--n-text-color-checkable":K,"--n-text-color-checked":ne,"--n-text-color-hover-checkable":Z,"--n-text-color-pressed-checkable":te}}),I=w?useThemeClass("tag",computed(()=>{let $="";const{type:M,size:L,color:{color:H,textColor:z}={}}=d;return $+=M[0],$+=L[0],H&&($+="a".concat(color2Class(H))),z&&($+="b".concat(color2Class(z))),A.value&&($+="c"),$}),k,d):void 0;return Object.assign(Object.assign({},B),{rtlEnabled:D,mergedClsPrefix:C,contentRef:b,mergedBordered:A,handleClick:E,handleCloseClick:P,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:A,rtlEnabled:C,closable:w,color:{borderColor:x}={},round:S,onRender:E,$slots:P}=this;E==null||E();const B=resolveWrappedSlot(P.avatar,k=>k&&h$1("div",{class:"".concat(A,"-tag__avatar")},k)),D=resolveWrappedSlot(P.icon,k=>k&&h$1("div",{class:"".concat(A,"-tag__icon")},k));return h$1("div",{class:["".concat(A,"-tag"),this.themeClass,{["".concat(A,"-tag--rtl")]:C,["".concat(A,"-tag--strong")]:this.strong,["".concat(A,"-tag--disabled")]:this.disabled,["".concat(A,"-tag--checkable")]:this.checkable,["".concat(A,"-tag--checked")]:this.checkable&&this.checked,["".concat(A,"-tag--round")]:S,["".concat(A,"-tag--avatar")]:B,["".concat(A,"-tag--icon")]:D,["".concat(A,"-tag--closable")]:w}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},D||B,h$1("span",{class:"".concat(A,"-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:A,class:"".concat(A,"-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(A,"-tag__border"),style:{borderColor:x}}):null)}}),style$m=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$m,toRef(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,A;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")},(A=(b=this.$slots).placeholder)===null||A===void 0?void 0:A.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:A}=d;return h$1(NBaseLoading,{clsPrefix:A,class:"".concat(A,"-base-suffix"),strokeWidth:24,scale:.85,show:d.loading},{default:()=>d.showArrow?h$1(NBaseClear,{clsPrefix:A,show:d.showClear,onClear:d.onClear},{placeholder:()=>h$1(NBaseIcon,{clsPrefix:A,class:"".concat(A,"-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:A,textColorDisabled:C,inputColor:w,inputColorDisabled:x,primaryColor:S,primaryColorHover:E,warningColor:P,warningColorHover:B,errorColor:D,errorColorHover:k,borderColor:I,iconColor:$,iconColorDisabled:M,clearColor:L,clearColorHover:H,clearColorPressed:z,placeholderColor:Q,placeholderColorDisabled:q,fontSizeTiny:V,fontSizeSmall:U,fontSizeMedium:W,fontSizeLarge:K,heightTiny:Z,heightSmall:te,heightMedium:ne,heightLarge:ue}=d;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:V,fontSizeSmall:U,fontSizeMedium:W,fontSizeLarge:K,heightTiny:Z,heightSmall:te,heightMedium:ne,heightLarge:ue,borderRadius:b,textColor:A,textColorDisabled:C,placeholderColor:Q,placeholderColorDisabled:q,color:w,colorDisabled:x,colorActive:w,border:"1px solid ".concat(I),borderHover:"1px solid ".concat(E),borderActive:"1px solid ".concat(S),borderFocus:"1px solid ".concat(E),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:$,arrowColorDisabled:M,loadingColor:S,borderWarning:"1px solid ".concat(P),borderHoverWarning:"1px solid ".concat(B),borderActiveWarning:"1px solid ".concat(P),borderFocusWarning:"1px solid ".concat(B),boxShadowHoverWarning:"none",boxShadowActiveWarning:"0 0 0 2px ".concat(changeColor(P,{alpha:.2})),boxShadowFocusWarning:"0 0 0 2px ".concat(changeColor(P,{alpha:.2})),colorActiveWarning:w,caretColorWarning:P,borderError:"1px solid ".concat(D),borderHoverError:"1px solid ".concat(k),borderActiveError:"1px solid ".concat(D),borderFocusError:"1px solid ".concat(k),boxShadowHoverError:"none",boxShadowActiveError:"0 0 0 2px ".concat(changeColor(D,{alpha:.2})),boxShadowFocusError:"0 0 0 2px ".concat(changeColor(D,{alpha:.2})),colorActiveError:w,caretColorError:D,clearColor:L,clearColorHover:H,clearColorPressed:z})},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:A,textColorDisabled:C,inputColor:w,inputColorDisabled:x,primaryColor:S,primaryColorHover:E,warningColor:P,warningColorHover:B,errorColor:D,errorColorHover:k,iconColor:I,iconColorDisabled:$,clearColor:M,clearColorHover:L,clearColorPressed:H,placeholderColor:z,placeholderColorDisabled:Q,fontSizeTiny:q,fontSizeSmall:V,fontSizeMedium:U,fontSizeLarge:W,heightTiny:K,heightSmall:Z,heightMedium:te,heightLarge:ne}=d;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:q,fontSizeSmall:V,fontSizeMedium:U,fontSizeLarge:W,heightTiny:K,heightSmall:Z,heightMedium:te,heightLarge:ne,borderRadius:b,textColor:A,textColorDisabled:C,placeholderColor:z,placeholderColorDisabled:Q,color:w,colorDisabled:x,colorActive:changeColor(S,{alpha:.1}),border:"1px solid #0000",borderHover:"1px solid ".concat(E),borderActive:"1px solid ".concat(S),borderFocus:"1px solid ".concat(E),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:$,loadingColor:S,borderWarning:"1px solid ".concat(P),borderHoverWarning:"1px solid ".concat(B),borderActiveWarning:"1px solid ".concat(P),borderFocusWarning:"1px solid ".concat(B),boxShadowHoverWarning:"none",boxShadowActiveWarning:"0 0 8px 0 ".concat(changeColor(P,{alpha:.4})),boxShadowFocusWarning:"0 0 8px 0 ".concat(changeColor(P,{alpha:.4})),colorActiveWarning:changeColor(P,{alpha:.1}),caretColorWarning:P,borderError:"1px solid ".concat(D),borderHoverError:"1px solid ".concat(k),borderActiveError:"1px solid ".concat(D),borderFocusError:"1px solid ".concat(k),boxShadowHoverError:"none",boxShadowActiveError:"0 0 8px 0 ".concat(changeColor(D,{alpha:.4})),boxShadowFocusError:"0 0 8px 0 ".concat(changeColor(D,{alpha:.4})),colorActiveError:changeColor(D,{alpha:.1}),caretColorError:D,clearColor:M,clearColorHover:L,clearColorPressed:H})}},internalSelectionDark$1=internalSelectionDark,style$l=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),A=ref(null),C=ref(null),w=ref(null),x=ref(null),S=ref(null),E=ref(null),P=ref(null),B=ref(null),D=ref(null),k=ref(!1),I=ref(!1),$=ref(!1),M=useTheme("InternalSelection","-internal-selection",style$l,internalSelectionLight$1,d,toRef(d,"clsPrefix")),L=computed(()=>d.clearable&&!d.disabled&&($.value||d.active)),H=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),z=computed(()=>{const J=d.selectedOption;if(J)return J[d.labelField]}),Q=computed(()=>d.multiple?!!(Array.isArray(d.selectedOptions)&&d.selectedOptions.length):d.selectedOption!==null);function q(){var J;const{value:le}=b;if(le){const{value:ve}=A;ve&&(ve.style.width="".concat(le.offsetWidth,"px"),d.maxTagCount!=="responsive"&&((J=B.value)===null||J===void 0||J.sync()))}}function V(){const{value:J}=D;J&&(J.style.display="none")}function U(){const{value:J}=D;J&&(J.style.display="inline-block")}watch(toRef(d,"active"),J=>{J||V()}),watch(toRef(d,"pattern"),()=>{d.multiple&&nextTick(q)});function W(J){const{onFocus:le}=d;le&&le(J)}function K(J){const{onBlur:le}=d;le&&le(J)}function Z(J){const{onDeleteOption:le}=d;le&&le(J)}function te(J){const{onClear:le}=d;le&&le(J)}function ne(J){const{onPatternInput:le}=d;le&&le(J)}function ue(J){var le;(!J.relatedTarget||!(!((le=C.value)===null||le===void 0)&&le.contains(J.relatedTarget)))&&W(J)}function X(J){var le;!((le=C.value)===null||le===void 0)&&le.contains(J.relatedTarget)||K(J)}function se(J){te(J)}function he(){$.value=!0}function me(){$.value=!1}function ie(J){!d.active||!d.filterable||J.target!==A.value&&J.preventDefault()}function de(J){Z(J)}function be(J){if(J.key==="Backspace"&&!ge.value&&!d.pattern.length){const{selectedOptions:le}=d;le!=null&&le.length&&de(le[le.length-1])}}const ge=ref(!1);let Se=null;function je(J){const{value:le}=b;if(le){const ve=J.target.value;le.textContent=ve,q()}d.ignoreComposition&&ge.value?Se=J:ne(J)}function Ye(){ge.value=!0}function st(){ge.value=!1,d.ignoreComposition&&ne(Se),Se=null}function ot(J){var le;I.value=!0,(le=d.onPatternFocus)===null||le===void 0||le.call(d,J)}function et(J){var le;I.value=!1,(le=d.onPatternBlur)===null||le===void 0||le.call(d,J)}function lt(){var J,le;if(d.filterable)I.value=!1,(J=S.value)===null||J===void 0||J.blur(),(le=A.value)===null||le===void 0||le.blur();else if(d.multiple){const{value:ve}=w;ve==null||ve.blur()}else{const{value:ve}=x;ve==null||ve.blur()}}function Me(){var J,le,ve;d.filterable?(I.value=!1,(J=S.value)===null||J===void 0||J.focus()):d.multiple?(le=w.value)===null||le===void 0||le.focus():(ve=x.value)===null||ve===void 0||ve.focus()}function Oe(){const{value:J}=A;J&&(U(),J.focus())}function Qe(){const{value:J}=A;J&&J.blur()}function Ze(J){const{value:le}=E;le&&le.setTextContent("+".concat(J))}function it(){const{value:J}=P;return J}function Te(){return A.value}let _e=null;function He(){_e!==null&&window.clearTimeout(_e)}function Je(){d.disabled||d.active||(He(),_e=window.setTimeout(()=>{Q.value&&(k.value=!0)},100))}function Ke(){He()}function Ie(J){J||(He(),k.value=!1)}watch(Q,J=>{J||(k.value=!1)}),onMounted(()=>{watchEffect(()=>{const J=S.value;J&&(J.tabIndex=d.disabled||I.value?-1:0)})}),useOnResize(C,d.onResize);const{inlineThemeDisabled:Fe}=d,ae=computed(()=>{const{size:J}=d,{common:{cubicBezierEaseInOut:le},self:{borderRadius:ve,color:Be,placeholderColor:Ue,textColor:rt,paddingSingle:pt,paddingMultiple:tt,caretColor:at,colorDisabled:Et,textColorDisabled:Dt,placeholderColorDisabled:Mt,colorActive:kt,boxShadowFocus:It,boxShadowActive:we,boxShadowHover:pe,border:ke,borderFocus:Ve,borderHover:gt,borderActive:yt,arrowColor:xt,arrowColorDisabled:Ne,loadingColor:De,colorActiveWarning:re,boxShadowFocusWarning:ce,boxShadowActiveWarning:Ae,boxShadowHoverWarning:ze,borderWarning:dt,borderFocusWarning:vt,borderHoverWarning:wt,borderActiveWarning:ht,colorActiveError:Xe,boxShadowFocusError:mt,boxShadowActiveError:bt,boxShadowHoverError:Y,borderError:xe,borderFocusError:fe,borderHoverError:Ce,borderActiveError:Le,clearColor:$e,clearColorHover:Ge,clearColorPressed:ct,clearSize:Tt,arrowSize:Ot,[createKey("height",J)]:Lt,[createKey("fontSize",J)]:Nt}}=M.value;return{"--n-bezier":le,"--n-border":ke,"--n-border-active":yt,"--n-border-focus":Ve,"--n-border-hover":gt,"--n-border-radius":ve,"--n-box-shadow-active":we,"--n-box-shadow-focus":It,"--n-box-shadow-hover":pe,"--n-caret-color":at,"--n-color":Be,"--n-color-active":kt,"--n-color-disabled":Et,"--n-font-size":Nt,"--n-height":Lt,"--n-padding-single":pt,"--n-padding-multiple":tt,"--n-placeholder-color":Ue,"--n-placeholder-color-disabled":Mt,"--n-text-color":rt,"--n-text-color-disabled":Dt,"--n-arrow-color":xt,"--n-arrow-color-disabled":Ne,"--n-loading-color":De,"--n-color-active-warning":re,"--n-box-shadow-focus-warning":ce,"--n-box-shadow-active-warning":Ae,"--n-box-shadow-hover-warning":ze,"--n-border-warning":dt,"--n-border-focus-warning":vt,"--n-border-hover-warning":wt,"--n-border-active-warning":ht,"--n-color-active-error":Xe,"--n-box-shadow-focus-error":mt,"--n-box-shadow-active-error":bt,"--n-box-shadow-hover-error":Y,"--n-border-error":xe,"--n-border-focus-error":fe,"--n-border-hover-error":Ce,"--n-border-active-error":Le,"--n-clear-size":Tt,"--n-clear-color":$e,"--n-clear-color-hover":Ge,"--n-clear-color-pressed":ct,"--n-arrow-size":Ot}}),ee=Fe?useThemeClass("internal-selection",computed(()=>d.size[0]),ae,d):void 0;return{mergedTheme:M,mergedClearable:L,patternInputFocused:I,filterablePlaceholder:H,label:z,selected:Q,showTagsPanel:k,isComposing:ge,counterRef:E,counterWrapperRef:P,patternInputMirrorRef:b,patternInputRef:A,selfRef:C,multipleElRef:w,singleElRef:x,patternInputWrapperRef:S,overflowRef:B,inputTagElRef:D,handleMouseDown:ie,handleFocusin:ue,handleClear:se,handleMouseEnter:he,handleMouseLeave:me,handleDeleteOption:de,handlePatternKeyDown:be,handlePatternInputInput:je,handlePatternInputBlur:et,handlePatternInputFocus:ot,handleMouseEnterCounter:Je,handleMouseLeaveCounter:Ke,handleFocusout:X,handleCompositionEnd:st,handleCompositionStart:Ye,onPopoverUpdateShow:Ie,focus:Me,focusInput:Oe,blur:lt,blurInput:Qe,updateCounter:Ze,getCounter:it,getTail:Te,renderLabel:d.renderLabel,cssVars:Fe?void 0:ae,themeClass:ee==null?void 0:ee.themeClass,onRender:ee==null?void 0:ee.onRender}},render(){const{status:d,multiple:b,size:A,disabled:C,filterable:w,maxTagCount:x,bordered:S,clsPrefix:E,onRender:P,renderTag:B,renderLabel:D}=this;P==null||P();const k=x==="responsive",I=typeof x=="number",$=k||I,M=h$1(Wrapper,null,{default:()=>h$1(NBaseSuffix,{clsPrefix:E,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var H,z;return(z=(H=this.$slots).arrow)===null||z===void 0?void 0:z.call(H)}})});let L;if(b){const{labelField:H}=this,z=X=>h$1("div",{class:"".concat(E,"-base-selection-tag-wrapper"),key:X.value},B?B({option:X,handleClose:()=>{this.handleDeleteOption(X)}}):h$1(NTag,{size:A,closable:!X.disabled,disabled:C,onClose:()=>{this.handleDeleteOption(X)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>D?D(X,!0):render$1(X[H],X,!0)})),Q=()=>(I?this.selectedOptions.slice(0,x):this.selectedOptions).map(z),q=w?h$1("div",{class:"".concat(E,"-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(E,"-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(E,"-base-selection-input-tag__mirror")},this.pattern)):null,V=k?()=>h$1("div",{class:"".concat(E,"-base-selection-tag-wrapper"),ref:"counterWrapperRef"},h$1(NTag,{size:A,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:C})):void 0;let U;if(I){const X=this.selectedOptions.length-x;X>0&&(U=h$1("div",{class:"".concat(E,"-base-selection-tag-wrapper"),key:"__counter__"},h$1(NTag,{size:A,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:C},{default:()=>"+".concat(X)})))}const W=k?w?h$1(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:Q,counter:V,tail:()=>q}):h$1(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:Q,counter:V}):I?Q().concat(U):Q(),K=$?()=>h$1("div",{class:"".concat(E,"-base-selection-popover")},k?Q():this.selectedOptions.map(z)):void 0,Z=$?{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,ne=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?h$1("div",{class:"".concat(E,"-base-selection-placeholder ").concat(E,"-base-selection-overlay")},h$1("div",{class:"".concat(E,"-base-selection-placeholder__inner")},this.placeholder)):null,ue=w?h$1("div",{ref:"patternInputWrapperRef",class:"".concat(E,"-base-selection-tags")},W,k?null:q,M):h$1("div",{ref:"multipleElRef",class:"".concat(E,"-base-selection-tags"),tabindex:C?void 0:0},W,M);L=h$1(Fragment,null,$?h$1(NPopover,Object.assign({},Z,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>ue,default:K}):ue,ne)}else if(w){const H=this.pattern||this.isComposing,z=this.active?!H:!this.selected,Q=this.active?!1:this.selected;L=h$1("div",{ref:"patternInputWrapperRef",class:"".concat(E,"-base-selection-label")},h$1("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:"".concat(E,"-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})),Q?h$1("div",{class:"".concat(E,"-base-selection-label__render-label ").concat(E,"-base-selection-overlay"),key:"input"},h$1("div",{class:"".concat(E,"-base-selection-overlay__wrapper")},B?B({option:this.selectedOption,handleClose:()=>{}}):D?D(this.selectedOption,!0):render$1(this.label,this.selectedOption,!0))):null,z?h$1("div",{class:"".concat(E,"-base-selection-placeholder ").concat(E,"-base-selection-overlay"),key:"placeholder"},h$1("div",{class:"".concat(E,"-base-selection-overlay__wrapper")},this.filterablePlaceholder)):null,M)}else L=h$1("div",{ref:"singleElRef",class:"".concat(E,"-base-selection-label"),tabindex:this.disabled?void 0:0},this.label!==void 0?h$1("div",{class:"".concat(E,"-base-selection-input"),title:getTitleAttribute(this.label),key:"input"},h$1("div",{class:"".concat(E,"-base-selection-input__content")},B?B({option:this.selectedOption,handleClose:()=>{}}):D?D(this.selectedOption,!0):render$1(this.label,this.selectedOption,!0))):h$1("div",{class:"".concat(E,"-base-selection-placeholder ").concat(E,"-base-selection-overlay"),key:"placeholder"},h$1("div",{class:"".concat(E,"-base-selection-placeholder__inner")},this.placeholder)),M);return h$1("div",{ref:"selfRef",class:["".concat(E,"-base-selection"),this.themeClass,d&&"".concat(E,"-base-selection--").concat(d,"-status"),{["".concat(E,"-base-selection--active")]:this.active,["".concat(E,"-base-selection--selected")]:this.selected||this.active&&this.pattern,["".concat(E,"-base-selection--disabled")]:this.disabled,["".concat(E,"-base-selection--multiple")]:this.multiple,["".concat(E,"-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(E,"-base-selection__border")}):null,S?h$1("div",{class:"".concat(E,"-base-selection__state-border")}):null)}}),{cubicBezierEaseInOut:cubicBezierEaseInOut$2}=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$2,",\n max-width ").concat(d," ").concat(cubicBezierEaseInOut$2," ").concat(b,",\n margin-left ").concat(d," ").concat(cubicBezierEaseInOut$2," ").concat(b,",\n margin-right ").concat(d," ").concat(cubicBezierEaseInOut$2," ").concat(b,";\n ")),c$3("&.fade-in-width-expand-transition-enter-active","\n overflow: hidden;\n transition:\n opacity ".concat(d," ").concat(cubicBezierEaseInOut$2," ").concat(b,",\n max-width ").concat(d," ").concat(cubicBezierEaseInOut$2,",\n margin-left ").concat(d," ").concat(cubicBezierEaseInOut$2,",\n margin-right ").concat(d," ").concat(cubicBezierEaseInOut$2,";\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:A,fontWeightStrong:C,dividerColor:w,inputColor:x,textColor1:S,textColor2:E,closeColorHover:P,closeColorPressed:B,closeIconColor:D,closeIconColorHover:k,closeIconColorPressed:I,infoColorSuppl:$,successColorSuppl:M,warningColorSuppl:L,errorColorSuppl:H,fontSize:z}=d;return Object.assign(Object.assign({},commonVars$a),{fontSize:z,lineHeight:b,titleFontWeight:C,borderRadius:A,border:"1px solid ".concat(w),color:x,titleTextColor:S,iconColor:E,contentTextColor:E,closeBorderRadius:A,closeColorHover:P,closeColorPressed:B,closeIconColor:D,closeIconColorHover:k,closeIconColorPressed:I,borderInfo:"1px solid ".concat(changeColor($,{alpha:.35})),colorInfo:changeColor($,{alpha:.25}),titleTextColorInfo:S,iconColorInfo:$,contentTextColorInfo:E,closeColorHoverInfo:P,closeColorPressedInfo:B,closeIconColorInfo:D,closeIconColorHoverInfo:k,closeIconColorPressedInfo:I,borderSuccess:"1px solid ".concat(changeColor(M,{alpha:.35})),colorSuccess:changeColor(M,{alpha:.25}),titleTextColorSuccess:S,iconColorSuccess:M,contentTextColorSuccess:E,closeColorHoverSuccess:P,closeColorPressedSuccess:B,closeIconColorSuccess:D,closeIconColorHoverSuccess:k,closeIconColorPressedSuccess:I,borderWarning:"1px solid ".concat(changeColor(L,{alpha:.35})),colorWarning:changeColor(L,{alpha:.25}),titleTextColorWarning:S,iconColorWarning:L,contentTextColorWarning:E,closeColorHoverWarning:P,closeColorPressedWarning:B,closeIconColorWarning:D,closeIconColorHoverWarning:k,closeIconColorPressedWarning:I,borderError:"1px solid ".concat(changeColor(H,{alpha:.35})),colorError:changeColor(H,{alpha:.25}),titleTextColorError:S,iconColorError:H,contentTextColorError:E,closeColorHoverError:P,closeColorPressedError:B,closeIconColorError:D,closeIconColorHoverError:k,closeIconColorPressedError:I})}},alertDark$1=alertDark,{cubicBezierEaseInOut:cubicBezierEaseInOut$1,cubicBezierEaseOut,cubicBezierEaseIn}=commonVariables$m;function fadeInHeightExpandTransition({overflow:d="hidden",duration:b=".3s",originalTransition:A="",leavingDelay:C="0s",foldPadding:w=!1,enterToProps:x=void 0,leaveToProps:S=void 0,reverse:E=!1}={}){const P=E?"leave":"enter",B=E?"enter":"leave";return[c$3("&.fade-in-height-expand-transition-".concat(B,"-from,\n &.fade-in-height-expand-transition-").concat(P,"-to"),Object.assign(Object.assign({},x),{opacity:1})),c$3("&.fade-in-height-expand-transition-".concat(B,"-to,\n &.fade-in-height-expand-transition-").concat(P,"-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(B,"-active"),"\n overflow: ".concat(d,";\n transition:\n max-height ").concat(b," ").concat(cubicBezierEaseInOut$1," ").concat(C,",\n opacity ").concat(b," ").concat(cubicBezierEaseOut," ").concat(C,",\n margin-top ").concat(b," ").concat(cubicBezierEaseInOut$1," ").concat(C,",\n margin-bottom ").concat(b," ").concat(cubicBezierEaseInOut$1," ").concat(C,",\n padding-top ").concat(b," ").concat(cubicBezierEaseInOut$1," ").concat(C,",\n padding-bottom ").concat(b," ").concat(cubicBezierEaseInOut$1," ").concat(C,"\n ").concat(A?","+A:"","\n ")),c$3("&.fade-in-height-expand-transition-".concat(P,"-active"),"\n overflow: ".concat(d,";\n transition:\n max-height ").concat(b," ").concat(cubicBezierEaseInOut$1,",\n opacity ").concat(b," ").concat(cubicBezierEaseIn,",\n margin-top ").concat(b," ").concat(cubicBezierEaseInOut$1,",\n margin-bottom ").concat(b," ").concat(cubicBezierEaseInOut$1,",\n padding-top ").concat(b," ").concat(cubicBezierEaseInOut$1,",\n padding-bottom ").concat(b," ").concat(cubicBezierEaseInOut$1,"\n ").concat(A?","+A:"","\n "))]}const commonVars$9={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},self$O=d=>{const{borderRadius:b,railColor:A,primaryColor:C,primaryColorHover:w,primaryColorPressed:x,textColor2:S}=d;return Object.assign(Object.assign({},commonVars$9),{borderRadius:b,railColor:A,railColorActive:C,linkColor:changeColor(C,{alpha:.15}),linkTextColor:S,linkTextColorHover:w,linkTextColorPressed:x,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(A){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,A,C){if(!b)return d;function w(x){if(!Array.isArray(x))return[];const S=[];for(const E of x)if(getIsGroup(E)){const P=w(E[C]);P.length&&S.push(Object.assign({},E,{[C]:P}))}else{if(getIgnored(E))continue;b(A,E)&&S.push(E)}return S}return w(d)}function createValOptMap(d,b,A){const C=new Map;return d.forEach(w=>{getIsGroup(w)?w[A].forEach(x=>{C.set(x[b],x)}):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:A,textColorDisabled:C,primaryColor:w,primaryColorHover:x,inputColor:S,inputColorDisabled:E,warningColor:P,warningColorHover:B,errorColor:D,errorColorHover:k,borderRadius:I,lineHeight:$,fontSizeTiny:M,fontSizeSmall:L,fontSizeMedium:H,fontSizeLarge:z,heightTiny:Q,heightSmall:q,heightMedium:V,heightLarge:U,clearColor:W,clearColorHover:K,clearColorPressed:Z,placeholderColor:te,placeholderColorDisabled:ne,iconColor:ue,iconColorDisabled:X,iconColorHover:se,iconColorPressed:he}=d;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:C,countTextColor:A,heightTiny:Q,heightSmall:q,heightMedium:V,heightLarge:U,fontSizeTiny:M,fontSizeSmall:L,fontSizeMedium:H,fontSizeLarge:z,lineHeight:$,lineHeightTextarea:$,borderRadius:I,iconSize:"16px",groupLabelColor:S,textColor:b,textColorDisabled:C,textDecorationColor:b,groupLabelTextColor:b,caretColor:w,placeholderColor:te,placeholderColorDisabled:ne,color:S,colorDisabled:E,colorFocus:changeColor(w,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:"1px solid ".concat(x),borderDisabled:"1px solid #0000",borderFocus:"1px solid ".concat(x),boxShadowFocus:"0 0 8px 0 ".concat(changeColor(w,{alpha:.3})),loadingColor:w,loadingColorWarning:P,borderWarning:"1px solid ".concat(P),borderHoverWarning:"1px solid ".concat(B),colorFocusWarning:changeColor(P,{alpha:.1}),borderFocusWarning:"1px solid ".concat(B),boxShadowFocusWarning:"0 0 8px 0 ".concat(changeColor(P,{alpha:.3})),caretColorWarning:P,loadingColorError:D,borderError:"1px solid ".concat(D),borderHoverError:"1px solid ".concat(k),colorFocusError:changeColor(D,{alpha:.1}),borderFocusError:"1px solid ".concat(k),boxShadowFocusError:"0 0 8px 0 ".concat(changeColor(D,{alpha:.3})),caretColorError:D,clearColor:W,clearColorHover:K,clearColorPressed:Z,iconColor:ue,iconColorDisabled:X,iconColorHover:se,iconColorPressed:he,suffixTextColor:b})}},inputDark$1=inputDark,self$N=d=>{const{textColor2:b,textColor3:A,textColorDisabled:C,primaryColor:w,primaryColorHover:x,inputColor:S,inputColorDisabled:E,borderColor:P,warningColor:B,warningColorHover:D,errorColor:k,errorColorHover:I,borderRadius:$,lineHeight:M,fontSizeTiny:L,fontSizeSmall:H,fontSizeMedium:z,fontSizeLarge:Q,heightTiny:q,heightSmall:V,heightMedium:U,heightLarge:W,actionColor:K,clearColor:Z,clearColorHover:te,clearColorPressed:ne,placeholderColor:ue,placeholderColorDisabled:X,iconColor:se,iconColorDisabled:he,iconColorHover:me,iconColorPressed:ie}=d;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:C,countTextColor:A,heightTiny:q,heightSmall:V,heightMedium:U,heightLarge:W,fontSizeTiny:L,fontSizeSmall:H,fontSizeMedium:z,fontSizeLarge:Q,lineHeight:M,lineHeightTextarea:M,borderRadius:$,iconSize:"16px",groupLabelColor:K,groupLabelTextColor:b,textColor:b,textColorDisabled:C,textDecorationColor:b,caretColor:w,placeholderColor:ue,placeholderColorDisabled:X,color:S,colorDisabled:E,colorFocus:S,groupLabelBorder:"1px solid ".concat(P),border:"1px solid ".concat(P),borderHover:"1px solid ".concat(x),borderDisabled:"1px solid ".concat(P),borderFocus:"1px solid ".concat(x),boxShadowFocus:"0 0 0 2px ".concat(changeColor(w,{alpha:.2})),loadingColor:w,loadingColorWarning:B,borderWarning:"1px solid ".concat(B),borderHoverWarning:"1px solid ".concat(D),colorFocusWarning:S,borderFocusWarning:"1px solid ".concat(D),boxShadowFocusWarning:"0 0 0 2px ".concat(changeColor(B,{alpha:.2})),caretColorWarning:B,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:Z,clearColorHover:te,clearColorPressed:ne,iconColor:se,iconColorDisabled:he,iconColorHover:me,iconColorPressed:ie,suffixTextColor:b})},inputLight={name:"Input",common:commonLight,self:self$N},inputLight$1=inputLight,inputInjectionKey="n-input";function len(d){let b=0;for(const A of d)b++;return b}function isEmptyInputValue(d){return d===""||d==null}function useCursor(d){const b=ref(null);function A(){const{value:x}=d;if(!(x!=null&&x.focus)){w();return}const{selectionStart:S,selectionEnd:E,value:P}=x;if(S==null||E==null){w();return}b.value={start:S,end:E,beforeText:P.slice(0,S),afterText:P.slice(E)}}function C(){var x;const{value:S}=b,{value:E}=d;if(!S||!E)return;const{value:P}=E,{start:B,beforeText:D,afterText:k}=S;let I=P.length;if(P.endsWith(k))I=P.length-k.length;else if(P.startsWith(D))I=D.length;else{const $=D[B-1],M=P.indexOf($,B-1);M!==-1&&(I=M+1)}(x=E.setSelectionRange)===null||x===void 0||x.call(E,I,I)}function w(){b.value=null}return watch(d,w),{recordCursor:A,restoreCursor:C}}const WordCount=defineComponent({name:"InputWordCount",setup(d,{slots:b}){const{mergedValueRef:A,maxlengthRef:C,mergedClsPrefixRef:w,countGraphemesRef:x}=inject(inputInjectionKey),S=computed(()=>{const{value:E}=A;return E===null||Array.isArray(E)?0:(x.value||len)(E)});return()=>{const{value:E}=C,{value:P}=A;return h$1("span",{class:"".concat(w.value,"-input-word-count")},resolveSlotWithProps(b.default,{value:P===null||Array.isArray(P)?"":P},()=>[E===void 0?S.value:"".concat(S.value," / ").concat(E)]))}}}),style$k=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:A,inlineThemeDisabled:C,mergedRtlRef:w}=useConfig(d),x=useTheme("Input","-input",style$k,inputLight$1,d,b);isSafari&&useStyle("-input-safari",safariStyle,b);const S=ref(null),E=ref(null),P=ref(null),B=ref(null),D=ref(null),k=ref(null),I=ref(null),$=useCursor(I),M=ref(null),{localeRef:L}=useLocale("Input"),H=ref(d.defaultValue),z=toRef(d,"value"),Q=useMergedState(z,H),q=useFormItem(d),{mergedSizeRef:V,mergedDisabledRef:U,mergedStatusRef:W}=q,K=ref(!1),Z=ref(!1),te=ref(!1),ne=ref(!1);let ue=null;const X=computed(()=>{const{placeholder:Xe,pair:mt}=d;return mt?Array.isArray(Xe)?Xe:Xe===void 0?["",""]:[Xe,Xe]:Xe===void 0?[L.value.placeholder]:[Xe]}),se=computed(()=>{const{value:Xe}=te,{value:mt}=Q,{value:bt}=X;return!Xe&&(isEmptyInputValue(mt)||Array.isArray(mt)&&isEmptyInputValue(mt[0]))&&bt[0]}),he=computed(()=>{const{value:Xe}=te,{value:mt}=Q,{value:bt}=X;return!Xe&&bt[1]&&(isEmptyInputValue(mt)||Array.isArray(mt)&&isEmptyInputValue(mt[1]))}),me=useMemo(()=>d.internalForceFocus||K.value),ie=useMemo(()=>{if(U.value||d.readonly||!d.clearable||!me.value&&!Z.value)return!1;const{value:Xe}=Q,{value:mt}=me;return d.pair?!!(Array.isArray(Xe)&&(Xe[0]||Xe[1]))&&(Z.value||mt):!!Xe&&(Z.value||mt)}),de=computed(()=>{const{showPasswordOn:Xe}=d;if(Xe)return Xe;if(d.showPasswordToggle)return"click"}),be=ref(!1),ge=computed(()=>{const{textDecoration:Xe}=d;return Xe?Array.isArray(Xe)?Xe.map(mt=>({textDecoration:mt})):[{textDecoration:Xe}]:["",""]}),Se=ref(void 0),je=()=>{var Xe,mt;if(d.type==="textarea"){const{autosize:bt}=d;if(bt&&(Se.value=(mt=(Xe=M.value)===null||Xe===void 0?void 0:Xe.$el)===null||mt===void 0?void 0:mt.offsetWidth),!E.value||typeof bt=="boolean")return;const{paddingTop:Y,paddingBottom:xe,lineHeight:fe}=window.getComputedStyle(E.value),Ce=Number(Y.slice(0,-2)),Le=Number(xe.slice(0,-2)),$e=Number(fe.slice(0,-2)),{value:Ge}=P;if(!Ge)return;if(bt.minRows){const ct=Math.max(bt.minRows,1),Tt="".concat(Ce+Le+$e*ct,"px");Ge.style.minHeight=Tt}if(bt.maxRows){const ct="".concat(Ce+Le+$e*bt.maxRows,"px");Ge.style.maxHeight=ct}}},Ye=computed(()=>{const{maxlength:Xe}=d;return Xe===void 0?void 0:Number(Xe)});onMounted(()=>{const{value:Xe}=Q;Array.isArray(Xe)||Ne(Xe)});const st=getCurrentInstance().proxy;function ot(Xe){const{onUpdateValue:mt,"onUpdate:value":bt,onInput:Y}=d,{nTriggerFormInput:xe}=q;mt&&call$1(mt,Xe),bt&&call$1(bt,Xe),Y&&call$1(Y,Xe),H.value=Xe,xe()}function et(Xe){const{onChange:mt}=d,{nTriggerFormChange:bt}=q;mt&&call$1(mt,Xe),H.value=Xe,bt()}function lt(Xe){const{onBlur:mt}=d,{nTriggerFormBlur:bt}=q;mt&&call$1(mt,Xe),bt()}function Me(Xe){const{onFocus:mt}=d,{nTriggerFormFocus:bt}=q;mt&&call$1(mt,Xe),bt()}function Oe(Xe){const{onClear:mt}=d;mt&&call$1(mt,Xe)}function Qe(Xe){const{onInputBlur:mt}=d;mt&&call$1(mt,Xe)}function Ze(Xe){const{onInputFocus:mt}=d;mt&&call$1(mt,Xe)}function it(){const{onDeactivate:Xe}=d;Xe&&call$1(Xe)}function Te(){const{onActivate:Xe}=d;Xe&&call$1(Xe)}function _e(Xe){const{onClick:mt}=d;mt&&call$1(mt,Xe)}function He(Xe){const{onWrapperFocus:mt}=d;mt&&call$1(mt,Xe)}function Je(Xe){const{onWrapperBlur:mt}=d;mt&&call$1(mt,Xe)}function Ke(){te.value=!0}function Ie(Xe){te.value=!1,Xe.target===k.value?Fe(Xe,1):Fe(Xe,0)}function Fe(Xe,mt=0,bt="input"){const Y=Xe.target.value;if(Ne(Y),Xe instanceof InputEvent&&!Xe.isComposing&&(te.value=!1),d.type==="textarea"){const{value:fe}=M;fe&&fe.syncUnifiedContainer()}if(ue=Y,te.value)return;$.recordCursor();const xe=ae(Y);if(xe)if(!d.pair)bt==="input"?ot(Y):et(Y);else{let{value:fe}=Q;Array.isArray(fe)?fe=[fe[0],fe[1]]:fe=["",""],fe[mt]=Y,bt==="input"?ot(fe):et(fe)}st.$forceUpdate(),xe||nextTick($.restoreCursor)}function ae(Xe){const{countGraphemes:mt,maxlength:bt,minlength:Y}=d;if(mt){let fe;if(bt!==void 0&&(fe===void 0&&(fe=mt(Xe)),fe>Number(bt))||Y!==void 0&&(fe===void 0&&(fe=mt(Xe)),fe{Y.preventDefault(),off("mouseup",document,mt)};if(on("mouseup",document,mt),de.value!=="mousedown")return;be.value=!0;const bt=()=>{be.value=!1,off("mouseup",document,bt)};on("mouseup",document,bt)}function kt(Xe){var mt;switch((mt=d.onKeydown)===null||mt===void 0||mt.call(d,Xe),Xe.key){case"Escape":we();break;case"Enter":It(Xe);break}}function It(Xe){var mt,bt;if(d.passivelyActivated){const{value:Y}=ne;if(Y){d.internalDeactivateOnEnter&&we();return}Xe.preventDefault(),d.type==="textarea"?(mt=E.value)===null||mt===void 0||mt.focus():(bt=D.value)===null||bt===void 0||bt.focus()}}function we(){d.passivelyActivated&&(ne.value=!1,nextTick(()=>{var Xe;(Xe=S.value)===null||Xe===void 0||Xe.focus()}))}function pe(){var Xe,mt,bt;U.value||(d.passivelyActivated?(Xe=S.value)===null||Xe===void 0||Xe.focus():((mt=E.value)===null||mt===void 0||mt.focus(),(bt=D.value)===null||bt===void 0||bt.focus()))}function ke(){var Xe;!((Xe=S.value)===null||Xe===void 0)&&Xe.contains(document.activeElement)&&document.activeElement.blur()}function Ve(){var Xe,mt;(Xe=E.value)===null||Xe===void 0||Xe.select(),(mt=D.value)===null||mt===void 0||mt.select()}function gt(){U.value||(E.value?E.value.focus():D.value&&D.value.focus())}function yt(){const{value:Xe}=S;Xe!=null&&Xe.contains(document.activeElement)&&Xe!==document.activeElement&&we()}function xt(Xe){if(d.type==="textarea"){const{value:mt}=E;mt==null||mt.scrollTo(Xe)}else{const{value:mt}=D;mt==null||mt.scrollTo(Xe)}}function Ne(Xe){const{type:mt,pair:bt,autosize:Y}=d;if(!bt&&Y)if(mt==="textarea"){const{value:xe}=P;xe&&(xe.textContent=(Xe!=null?Xe:"")+"\r\n")}else{const{value:xe}=B;xe&&(Xe?xe.textContent=Xe:xe.innerHTML=" ")}}function De(){je()}const re=ref({top:"0"});function ce(Xe){var mt;const{scrollTop:bt}=Xe.target;re.value.top="".concat(-bt,"px"),(mt=M.value)===null||mt===void 0||mt.syncUnifiedContainer()}let Ae=null;watchEffect(()=>{const{autosize:Xe,type:mt}=d;Xe&&mt==="textarea"?Ae=watch(Q,bt=>{!Array.isArray(bt)&&bt!==ue&&Ne(bt)}):Ae==null||Ae()});let ze=null;watchEffect(()=>{d.type==="textarea"?ze=watch(Q,Xe=>{var mt;!Array.isArray(Xe)&&Xe!==ue&&((mt=M.value)===null||mt===void 0||mt.syncUnifiedContainer())}):ze==null||ze()}),provide(inputInjectionKey,{mergedValueRef:Q,maxlengthRef:Ye,mergedClsPrefixRef:b,countGraphemesRef:toRef(d,"countGraphemes")});const dt={wrapperElRef:S,inputElRef:D,textareaElRef:E,isCompositing:te,focus:pe,blur:ke,select:Ve,deactivate:yt,activate:gt,scrollTo:xt},vt=useRtl("Input",w,b),wt=computed(()=>{const{value:Xe}=V,{common:{cubicBezierEaseInOut:mt},self:{color:bt,borderRadius:Y,textColor:xe,caretColor:fe,caretColorError:Ce,caretColorWarning:Le,textDecorationColor:$e,border:Ge,borderDisabled:ct,borderHover:Tt,borderFocus:Ot,placeholderColor:Lt,placeholderColorDisabled:Nt,lineHeightTextarea:Ht,colorDisabled:sr,colorFocus:wr,textColorDisabled:br,boxShadowFocus:_r,iconSize:Dr,colorFocusWarning:Yr,boxShadowFocusWarning:Qt,borderWarning:Ut,borderFocusWarning:ir,borderHoverWarning:ur,colorFocusError:Mr,boxShadowFocusError:Ir,borderError:an,borderFocusError:Cn,borderHoverError:_n,clearSize:sn,clearColor:pn,clearColorHover:Pn,clearColorPressed:Xr,iconColor:wn,iconColorDisabled:Jr,suffixTextColor:po,countTextColor:go,countTextColorDisabled:vo,iconColorHover:mo,iconColorPressed:kn,loadingColor:No,loadingColorError:bo,loadingColorWarning:Yn,[createKey("padding",Xe)]:Xn,[createKey("fontSize",Xe)]:xn,[createKey("height",Xe)]:yo}}=x.value,{left:Ao,right:Oo}=getMargin(Xn);return{"--n-bezier":mt,"--n-count-text-color":go,"--n-count-text-color-disabled":vo,"--n-color":bt,"--n-font-size":xn,"--n-border-radius":Y,"--n-height":yo,"--n-padding-left":Ao,"--n-padding-right":Oo,"--n-text-color":xe,"--n-caret-color":fe,"--n-text-decoration-color":$e,"--n-border":Ge,"--n-border-disabled":ct,"--n-border-hover":Tt,"--n-border-focus":Ot,"--n-placeholder-color":Lt,"--n-placeholder-color-disabled":Nt,"--n-icon-size":Dr,"--n-line-height-textarea":Ht,"--n-color-disabled":sr,"--n-color-focus":wr,"--n-text-color-disabled":br,"--n-box-shadow-focus":_r,"--n-loading-color":No,"--n-caret-color-warning":Le,"--n-color-focus-warning":Yr,"--n-box-shadow-focus-warning":Qt,"--n-border-warning":Ut,"--n-border-focus-warning":ir,"--n-border-hover-warning":ur,"--n-loading-color-warning":Yn,"--n-caret-color-error":Ce,"--n-color-focus-error":Mr,"--n-box-shadow-focus-error":Ir,"--n-border-error":an,"--n-border-focus-error":Cn,"--n-border-hover-error":_n,"--n-loading-color-error":bo,"--n-clear-color":pn,"--n-clear-size":sn,"--n-clear-color-hover":Pn,"--n-clear-color-pressed":Xr,"--n-icon-color":wn,"--n-icon-color-hover":mo,"--n-icon-color-pressed":kn,"--n-icon-color-disabled":Jr,"--n-suffix-text-color":po}}),ht=C?useThemeClass("input",computed(()=>{const{value:Xe}=V;return Xe[0]}),wt,d):void 0;return Object.assign(Object.assign({},dt),{wrapperElRef:S,inputElRef:D,inputMirrorElRef:B,inputEl2Ref:k,textareaElRef:E,textareaMirrorElRef:P,textareaScrollbarInstRef:M,rtlEnabled:vt,uncontrolledValue:H,mergedValue:Q,passwordVisible:be,mergedPlaceholder:X,showPlaceholder1:se,showPlaceholder2:he,mergedFocus:me,isComposing:te,activated:ne,showClearButton:ie,mergedSize:V,mergedDisabled:U,textDecorationStyle:ge,mergedClsPrefix:b,mergedBordered:A,mergedShowPasswordOn:de,placeholderStyle:re,mergedStatus:W,textAreaScrollContainerWidth:Se,handleTextAreaScroll:ce,handleCompositionStart:Ke,handleCompositionEnd:Ie,handleInput:Fe,handleInputBlur:ee,handleInputFocus:J,handleWrapperBlur:le,handleWrapperFocus:ve,handleMouseEnter:at,handleMouseLeave:Et,handleMouseDown:tt,handleChange:Ue,handleClick:rt,handleClear:pt,handlePasswordToggleClick:Dt,handlePasswordToggleMousedown:Mt,handleWrapperKeydown:kt,handleTextAreaMirrorResize:De,getTextareaScrollContainer:()=>E.value,mergedTheme:x,cssVars:C?void 0:wt,themeClass:ht==null?void 0:ht.themeClass,onRender:ht==null?void 0:ht.onRender})},render(){var d,b;const{mergedClsPrefix:A,mergedStatus:C,themeClass:w,type:x,countGraphemes:S,onRender:E}=this,P=this.$slots;return E==null||E(),h$1("div",{ref:"wrapperElRef",class:["".concat(A,"-input"),w,C&&"".concat(A,"-input--").concat(C,"-status"),{["".concat(A,"-input--rtl")]:this.rtlEnabled,["".concat(A,"-input--disabled")]:this.mergedDisabled,["".concat(A,"-input--textarea")]:x==="textarea",["".concat(A,"-input--resizable")]:this.resizable&&!this.autosize,["".concat(A,"-input--autosize")]:this.autosize,["".concat(A,"-input--round")]:this.round&&x!=="textarea",["".concat(A,"-input--pair")]:this.pair,["".concat(A,"-input--focus")]:this.mergedFocus,["".concat(A,"-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(A,"-input-wrapper")},resolveWrappedSlot(P.prefix,B=>B&&h$1("div",{class:"".concat(A,"-input__prefix")},B)),x==="textarea"?h$1(NScrollbar$1,{ref:"textareaScrollbarInstRef",class:"".concat(A,"-input__textarea"),container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var B,D;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(A,"-input__textarea-el"),(B=this.inputProps)===null||B===void 0?void 0:B.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],(D=this.inputProps)===null||D===void 0?void 0:D.style,I],onBlur:this.handleInputBlur,onFocus:$=>{this.handleInputFocus($,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?h$1("div",{class:"".concat(A,"-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(A,"-input__textarea-mirror"),key:"mirror"})}):null)}}):h$1("div",{class:"".concat(A,"-input__input")},h$1("input",Object.assign({type:x==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":x},this.inputProps,{ref:"inputElRef",class:["".concat(A,"-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:B=>{this.handleInputFocus(B,0)},onInput:B=>{this.handleInput(B,0)},onChange:B=>{this.handleChange(B,0)}})),this.showPlaceholder1?h$1("div",{class:"".concat(A,"-input__placeholder")},h$1("span",null,this.mergedPlaceholder[0])):null,this.autosize?h$1("div",{class:"".concat(A,"-input__input-mirror"),key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&resolveWrappedSlot(P.suffix,B=>B||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?h$1("div",{class:"".concat(A,"-input__suffix")},[resolveWrappedSlot(P["clear-icon-placeholder"],D=>(this.clearable||D)&&h$1(NBaseClear,{clsPrefix:A,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>D,icon:()=>{var k,I;return(I=(k=this.$slots)["clear-icon"])===null||I===void 0?void 0:I.call(k)}})),this.internalLoadingBeforeSuffix?null:B,this.loading!==void 0?h$1(NBaseSuffix,{clsPrefix:A,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?B:null,this.showCount&&this.type!=="textarea"?h$1(WordCount,null,{default:D=>{var k;return(k=P.count)===null||k===void 0?void 0:k.call(P,D)}}):null,this.mergedShowPasswordOn&&this.type==="password"?h$1("div",{class:"".concat(A,"-input__eye"),onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?resolveSlot(P["password-visible-icon"],()=>[h$1(NBaseIcon,{clsPrefix:A},{default:()=>h$1(EyeIcon,null)})]):resolveSlot(P["password-invisible-icon"],()=>[h$1(NBaseIcon,{clsPrefix:A},{default:()=>h$1(EyeOffIcon,null)})])):null]):null)),this.pair?h$1("span",{class:"".concat(A,"-input__separator")},resolveSlot(P.separator,()=>[this.separator])):null,this.pair?h$1("div",{class:"".concat(A,"-input-wrapper")},h$1("div",{class:"".concat(A,"-input__input")},h$1("input",{ref:"inputEl2Ref",type:this.type,class:"".concat(A,"-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:B=>{this.handleInputFocus(B,1)},onInput:B=>{this.handleInput(B,1)},onChange:B=>{this.handleChange(B,1)}}),this.showPlaceholder2?h$1("div",{class:"".concat(A,"-input__placeholder")},h$1("span",null,this.mergedPlaceholder[1])):null),resolveWrappedSlot(P.suffix,B=>(this.clearable||B)&&h$1("div",{class:"".concat(A,"-input__suffix")},[this.clearable&&h$1(NBaseClear,{clsPrefix:A,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var D;return(D=P["clear-icon"])===null||D===void 0?void 0:D.call(P)},placeholder:()=>{var D;return(D=P["clear-icon-placeholder"])===null||D===void 0?void 0:D.call(P)}}),B]))):null,this.mergedBordered?h$1("div",{class:"".concat(A,"-input__border")}):null,this.mergedBordered?h$1("div",{class:"".concat(A,"-input__state-border")}):null,this.showCount&&x==="textarea"?h$1(WordCount,null,{default:B=>{var D;const{renderCount:k}=this;return k?k(B):(D=P.count)===null||D===void 0?void 0:D.call(P,B)}}):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:A,cardColor:C,fontSize:w,heightTiny:x,heightSmall:S,heightMedium:E,heightLarge:P,heightHuge:B,modalColor:D,popoverColor:k}=d;return{borderRadius:b,fontSize:w,border:"2px solid ".concat(C),heightTiny:x,heightSmall:S,heightMedium:E,heightLarge:P,heightHuge:B,color:composite(C,A),colorModal:composite(D,A),colorPopover:composite(k,A)}},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:A,primaryColorHover:C,primaryColorPressed:w}=d;return Object.assign(Object.assign({},commonVariables$h),{color:b,textColor:A,iconColor:A,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:A,successColorSuppl:C,warningColorSuppl:w,fontFamily:x}=d;return{color:b,colorInfo:A,colorSuccess:C,colorError:b,colorWarning:w,fontSize:"12px",fontFamily:x}}},badgeDark$1=badgeDark,commonVariables$g={fontWeightActive:"400"},self$J=d=>{const{fontSize:b,textColor3:A,textColor2:C,borderRadius:w,buttonColor2Hover:x,buttonColor2Pressed:S}=d;return Object.assign(Object.assign({},commonVariables$g),{fontSize:b,itemLineHeight:"1.25",itemTextColor:A,itemTextColorHover:C,itemTextColorPressed:C,itemTextColorActive:C,itemBorderRadius:w,itemColorHover:x,itemColorPressed:S,separatorColor:A})},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:A,heightMedium:C,heightLarge:w,borderRadius:x,fontSizeTiny:S,fontSizeSmall:E,fontSizeMedium:P,fontSizeLarge:B,opacityDisabled:D,textColor2:k,textColor3:I,primaryColorHover:$,primaryColorPressed:M,borderColor:L,primaryColor:H,baseColor:z,infoColor:Q,infoColorHover:q,infoColorPressed:V,successColor:U,successColorHover:W,successColorPressed:K,warningColor:Z,warningColorHover:te,warningColorPressed:ne,errorColor:ue,errorColorHover:X,errorColorPressed:se,fontWeight:he,buttonColor2:me,buttonColor2Hover:ie,buttonColor2Pressed:de,fontWeightStrong:be}=d;return Object.assign(Object.assign({},commonVariables$f),{heightTiny:b,heightSmall:A,heightMedium:C,heightLarge:w,borderRadiusTiny:x,borderRadiusSmall:x,borderRadiusMedium:x,borderRadiusLarge:x,fontSizeTiny:S,fontSizeSmall:E,fontSizeMedium:P,fontSizeLarge:B,opacityDisabled:D,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:me,colorSecondaryHover:ie,colorSecondaryPressed:de,colorTertiary:me,colorTertiaryHover:ie,colorTertiaryPressed:de,colorQuaternary:"#0000",colorQuaternaryHover:ie,colorQuaternaryPressed:de,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:k,textColorTertiary:I,textColorHover:$,textColorPressed:M,textColorFocus:$,textColorDisabled:k,textColorText:k,textColorTextHover:$,textColorTextPressed:M,textColorTextFocus:$,textColorTextDisabled:k,textColorGhost:k,textColorGhostHover:$,textColorGhostPressed:M,textColorGhostFocus:$,textColorGhostDisabled:k,border:"1px solid ".concat(L),borderHover:"1px solid ".concat($),borderPressed:"1px solid ".concat(M),borderFocus:"1px solid ".concat($),borderDisabled:"1px solid ".concat(L),rippleColor:H,colorPrimary:H,colorHoverPrimary:$,colorPressedPrimary:M,colorFocusPrimary:$,colorDisabledPrimary:H,textColorPrimary:z,textColorHoverPrimary:z,textColorPressedPrimary:z,textColorFocusPrimary:z,textColorDisabledPrimary:z,textColorTextPrimary:H,textColorTextHoverPrimary:$,textColorTextPressedPrimary:M,textColorTextFocusPrimary:$,textColorTextDisabledPrimary:k,textColorGhostPrimary:H,textColorGhostHoverPrimary:$,textColorGhostPressedPrimary:M,textColorGhostFocusPrimary:$,textColorGhostDisabledPrimary:H,borderPrimary:"1px solid ".concat(H),borderHoverPrimary:"1px solid ".concat($),borderPressedPrimary:"1px solid ".concat(M),borderFocusPrimary:"1px solid ".concat($),borderDisabledPrimary:"1px solid ".concat(H),rippleColorPrimary:H,colorInfo:Q,colorHoverInfo:q,colorPressedInfo:V,colorFocusInfo:q,colorDisabledInfo:Q,textColorInfo:z,textColorHoverInfo:z,textColorPressedInfo:z,textColorFocusInfo:z,textColorDisabledInfo:z,textColorTextInfo:Q,textColorTextHoverInfo:q,textColorTextPressedInfo:V,textColorTextFocusInfo:q,textColorTextDisabledInfo:k,textColorGhostInfo:Q,textColorGhostHoverInfo:q,textColorGhostPressedInfo:V,textColorGhostFocusInfo:q,textColorGhostDisabledInfo:Q,borderInfo:"1px solid ".concat(Q),borderHoverInfo:"1px solid ".concat(q),borderPressedInfo:"1px solid ".concat(V),borderFocusInfo:"1px solid ".concat(q),borderDisabledInfo:"1px solid ".concat(Q),rippleColorInfo:Q,colorSuccess:U,colorHoverSuccess:W,colorPressedSuccess:K,colorFocusSuccess:W,colorDisabledSuccess:U,textColorSuccess:z,textColorHoverSuccess:z,textColorPressedSuccess:z,textColorFocusSuccess:z,textColorDisabledSuccess:z,textColorTextSuccess:U,textColorTextHoverSuccess:W,textColorTextPressedSuccess:K,textColorTextFocusSuccess:W,textColorTextDisabledSuccess:k,textColorGhostSuccess:U,textColorGhostHoverSuccess:W,textColorGhostPressedSuccess:K,textColorGhostFocusSuccess:W,textColorGhostDisabledSuccess:U,borderSuccess:"1px solid ".concat(U),borderHoverSuccess:"1px solid ".concat(W),borderPressedSuccess:"1px solid ".concat(K),borderFocusSuccess:"1px solid ".concat(W),borderDisabledSuccess:"1px solid ".concat(U),rippleColorSuccess:U,colorWarning:Z,colorHoverWarning:te,colorPressedWarning:ne,colorFocusWarning:te,colorDisabledWarning:Z,textColorWarning:z,textColorHoverWarning:z,textColorPressedWarning:z,textColorFocusWarning:z,textColorDisabledWarning:z,textColorTextWarning:Z,textColorTextHoverWarning:te,textColorTextPressedWarning:ne,textColorTextFocusWarning:te,textColorTextDisabledWarning:k,textColorGhostWarning:Z,textColorGhostHoverWarning:te,textColorGhostPressedWarning:ne,textColorGhostFocusWarning:te,textColorGhostDisabledWarning:Z,borderWarning:"1px solid ".concat(Z),borderHoverWarning:"1px solid ".concat(te),borderPressedWarning:"1px solid ".concat(ne),borderFocusWarning:"1px solid ".concat(te),borderDisabledWarning:"1px solid ".concat(Z),rippleColorWarning:Z,colorError:ue,colorHoverError:X,colorPressedError:se,colorFocusError:X,colorDisabledError:ue,textColorError:z,textColorHoverError:z,textColorPressedError:z,textColorFocusError:z,textColorDisabledError:z,textColorTextError:ue,textColorTextHoverError:X,textColorTextPressedError:se,textColorTextFocusError:X,textColorTextDisabledError:k,textColorGhostError:ue,textColorGhostHoverError:X,textColorGhostPressedError:se,textColorGhostFocusError:X,textColorGhostDisabledError:ue,borderError:"1px solid ".concat(ue),borderHoverError:"1px solid ".concat(X),borderPressedError:"1px solid ".concat(se),borderFocusError:"1px solid ".concat(X),borderDisabledError:"1px solid ".concat(ue),rippleColorError:ue,waveOpacity:"0.6",fontWeight:he,fontWeightStrong:be})},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$j=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),A=ref(null),C=ref(!1),w=useMemo(()=>!d.quaternary&&!d.tertiary&&!d.secondary&&!d.text&&(!d.color||d.ghost||d.dashed)&&d.bordered),x=inject(buttonGroupInjectionKey,{}),{mergedSizeRef:S}=useFormItem({},{defaultSize:"medium",mergedSize:V=>{const{size:U}=d;if(U)return U;const{size:W}=x;if(W)return W;const{mergedSize:K}=V||{};return K?K.value:"medium"}}),E=computed(()=>d.focusable&&!d.disabled),P=V=>{var U;E.value||V.preventDefault(),!d.nativeFocusBehavior&&(V.preventDefault(),!d.disabled&&E.value&&((U=b.value)===null||U===void 0||U.focus({preventScroll:!0})))},B=V=>{var U;if(!d.disabled&&!d.loading){const{onClick:W}=d;W&&call$1(W,V),d.text||(U=A.value)===null||U===void 0||U.play()}},D=V=>{switch(V.key){case"Enter":if(!d.keyboard)return;C.value=!1}},k=V=>{switch(V.key){case"Enter":if(!d.keyboard||d.loading){V.preventDefault();return}C.value=!0}},I=()=>{C.value=!1},{inlineThemeDisabled:$,mergedClsPrefixRef:M,mergedRtlRef:L}=useConfig(d),H=useTheme("Button","-button",style$j,buttonLight$1,d,M),z=useRtl("Button",L,M),Q=computed(()=>{const V=H.value,{common:{cubicBezierEaseInOut:U,cubicBezierEaseOut:W},self:K}=V,{rippleDuration:Z,opacityDisabled:te,fontWeight:ne,fontWeightStrong:ue}=K,X=S.value,{dashed:se,type:he,ghost:me,text:ie,color:de,round:be,circle:ge,textColor:Se,secondary:je,tertiary:Ye,quaternary:st,strong:ot}=d,et={"font-weight":ot?ue:ne};let lt={"--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 Me=he==="tertiary",Oe=he==="default",Qe=Me?"default":he;if(ie){const ee=Se||de;lt={"--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":ee||K[createKey("textColorText",Qe)],"--n-text-color-hover":ee?createHoverColor(ee):K[createKey("textColorTextHover",Qe)],"--n-text-color-pressed":ee?createPressedColor(ee):K[createKey("textColorTextPressed",Qe)],"--n-text-color-focus":ee?createHoverColor(ee):K[createKey("textColorTextHover",Qe)],"--n-text-color-disabled":ee||K[createKey("textColorTextDisabled",Qe)]}}else if(me||se){const ee=Se||de;lt={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":de||K[createKey("rippleColor",Qe)],"--n-text-color":ee||K[createKey("textColorGhost",Qe)],"--n-text-color-hover":ee?createHoverColor(ee):K[createKey("textColorGhostHover",Qe)],"--n-text-color-pressed":ee?createPressedColor(ee):K[createKey("textColorGhostPressed",Qe)],"--n-text-color-focus":ee?createHoverColor(ee):K[createKey("textColorGhostHover",Qe)],"--n-text-color-disabled":ee||K[createKey("textColorGhostDisabled",Qe)]}}else if(je){const ee=Oe?K.textColor:Me?K.textColorTertiary:K[createKey("color",Qe)],J=de||ee,le=he!=="default"&&he!=="tertiary";lt={"--n-color":le?changeColor(J,{alpha:Number(K.colorOpacitySecondary)}):K.colorSecondary,"--n-color-hover":le?changeColor(J,{alpha:Number(K.colorOpacitySecondaryHover)}):K.colorSecondaryHover,"--n-color-pressed":le?changeColor(J,{alpha:Number(K.colorOpacitySecondaryPressed)}):K.colorSecondaryPressed,"--n-color-focus":le?changeColor(J,{alpha:Number(K.colorOpacitySecondaryHover)}):K.colorSecondaryHover,"--n-color-disabled":K.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":J,"--n-text-color-hover":J,"--n-text-color-pressed":J,"--n-text-color-focus":J,"--n-text-color-disabled":J}}else if(Ye||st){const ee=Oe?K.textColor:Me?K.textColorTertiary:K[createKey("color",Qe)],J=de||ee;Ye?(lt["--n-color"]=K.colorTertiary,lt["--n-color-hover"]=K.colorTertiaryHover,lt["--n-color-pressed"]=K.colorTertiaryPressed,lt["--n-color-focus"]=K.colorSecondaryHover,lt["--n-color-disabled"]=K.colorTertiary):(lt["--n-color"]=K.colorQuaternary,lt["--n-color-hover"]=K.colorQuaternaryHover,lt["--n-color-pressed"]=K.colorQuaternaryPressed,lt["--n-color-focus"]=K.colorQuaternaryHover,lt["--n-color-disabled"]=K.colorQuaternary),lt["--n-ripple-color"]="#0000",lt["--n-text-color"]=J,lt["--n-text-color-hover"]=J,lt["--n-text-color-pressed"]=J,lt["--n-text-color-focus"]=J,lt["--n-text-color-disabled"]=J}else lt={"--n-color":de||K[createKey("color",Qe)],"--n-color-hover":de?createHoverColor(de):K[createKey("colorHover",Qe)],"--n-color-pressed":de?createPressedColor(de):K[createKey("colorPressed",Qe)],"--n-color-focus":de?createHoverColor(de):K[createKey("colorFocus",Qe)],"--n-color-disabled":de||K[createKey("colorDisabled",Qe)],"--n-ripple-color":de||K[createKey("rippleColor",Qe)],"--n-text-color":Se||(de?K.textColorPrimary:Me?K.textColorTertiary:K[createKey("textColor",Qe)]),"--n-text-color-hover":Se||(de?K.textColorHoverPrimary:K[createKey("textColorHover",Qe)]),"--n-text-color-pressed":Se||(de?K.textColorPressedPrimary:K[createKey("textColorPressed",Qe)]),"--n-text-color-focus":Se||(de?K.textColorFocusPrimary:K[createKey("textColorFocus",Qe)]),"--n-text-color-disabled":Se||(de?K.textColorDisabledPrimary:K[createKey("textColorDisabled",Qe)])};let Ze={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};ie?Ze={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Ze={"--n-border":K[createKey("border",Qe)],"--n-border-hover":K[createKey("borderHover",Qe)],"--n-border-pressed":K[createKey("borderPressed",Qe)],"--n-border-focus":K[createKey("borderFocus",Qe)],"--n-border-disabled":K[createKey("borderDisabled",Qe)]};const{[createKey("height",X)]:it,[createKey("fontSize",X)]:Te,[createKey("padding",X)]:_e,[createKey("paddingRound",X)]:He,[createKey("iconSize",X)]:Je,[createKey("borderRadius",X)]:Ke,[createKey("iconMargin",X)]:Ie,waveOpacity:Fe}=K,ae={"--n-width":ge&&!ie?it:"initial","--n-height":ie?"initial":it,"--n-font-size":Te,"--n-padding":ge||ie?"initial":be?He:_e,"--n-icon-size":Je,"--n-icon-margin":Ie,"--n-border-radius":ie?"initial":ge||be?it:Ke};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":U,"--n-bezier-ease-out":W,"--n-ripple-duration":Z,"--n-opacity-disabled":te,"--n-wave-opacity":Fe},et),lt),Ze),ae)}),q=$?useThemeClass("button",computed(()=>{let V="";const{dashed:U,type:W,ghost:K,text:Z,color:te,round:ne,circle:ue,textColor:X,secondary:se,tertiary:he,quaternary:me,strong:ie}=d;U&&(V+="a"),K&&(V+="b"),Z&&(V+="c"),ne&&(V+="d"),ue&&(V+="e"),se&&(V+="f"),he&&(V+="g"),me&&(V+="h"),ie&&(V+="i"),te&&(V+="j"+color2Class(te)),X&&(V+="k"+color2Class(X));const{value:de}=S;return V+="l"+de[0],V+="m"+W[0],V}),Q,d):void 0;return{selfElRef:b,waveElRef:A,mergedClsPrefix:M,mergedFocusable:E,mergedSize:S,showBorder:w,enterPressed:C,rtlEnabled:z,handleMousedown:P,handleKeydown:k,handleBlur:I,handleKeyup:D,handleClick:B,customColorCssVars:computed(()=>{const{color:V}=d;if(!V)return null;const U=createHoverColor(V);return{"--n-border-color":V,"--n-border-color-hover":U,"--n-border-color-pressed":createPressedColor(V),"--n-border-color-focus":U,"--n-border-color-disabled":V}}),cssVars:$?void 0:Q,themeClass:q==null?void 0:q.themeClass,onRender:q==null?void 0:q.onRender}},render(){const{mergedClsPrefix:d,tag:b,onRender:A}=this;A==null||A();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:A,lineHeight:C,textColor2:w,textColor1:x,textColorDisabled:S,dividerColor:E,fontWeightStrong:P,primaryColor:B,baseColor:D,hoverColor:k,cardColor:I,modalColor:$,popoverColor:M}=d;return Object.assign(Object.assign({},commonVariables$e),{borderRadius:b,borderColor:composite(I,E),borderColorModal:composite($,E),borderColorPopover:composite(M,E),textColor:w,titleFontWeight:P,titleTextColor:x,dayTextColor:S,fontSize:A,lineHeight:C,dateColorCurrent:B,dateTextColorCurrent:D,cellColorHover:composite(I,k),cellColorHoverModal:composite($,k),cellColorHoverPopover:composite(M,k),cellColor:I,cellColorModal:$,cellColorPopover:M,barColor:B})},calendarDark={name:"Calendar",common:commonDark,peers:{Button:buttonDark$1},self:self$H},calendarDark$1=calendarDark,self$G=d=>{const{fontSize:b,boxShadow2:A,popoverColor:C,textColor2:w,borderRadius:x,borderColor:S,heightSmall:E,heightMedium:P,heightLarge:B,fontSizeSmall:D,fontSizeMedium:k,fontSizeLarge:I,dividerColor:$}=d;return{panelFontSize:b,boxShadow:A,color:C,textColor:w,borderRadius:x,border:"1px solid ".concat(S),heightSmall:E,heightMedium:P,heightLarge:B,fontSizeSmall:D,fontSizeMedium:k,fontSizeLarge:I,dividerColor:$}},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:A,lineHeight:C,fontSize:w,cardColor:x,textColor2:S,textColor1:E,dividerColor:P,fontWeightStrong:B,closeIconColor:D,closeIconColorHover:k,closeIconColorPressed:I,closeColorHover:$,closeColorPressed:M,modalColor:L,boxShadow1:H,popoverColor:z,actionColor:Q}=d;return Object.assign(Object.assign({},commonVariables$d),{lineHeight:C,color:x,colorModal:L,colorPopover:z,colorTarget:b,colorEmbedded:Q,colorEmbeddedModal:Q,colorEmbeddedPopover:Q,textColor:S,titleTextColor:E,borderColor:P,actionColor:Q,titleFontWeight:B,closeColorHover:$,closeColorPressed:M,closeBorderRadius:A,closeIconColor:D,closeIconColorHover:k,closeIconColorPressed:I,fontSizeSmall:w,fontSizeMedium:w,fontSizeLarge:w,fontSizeHuge:w,boxShadow:H,borderRadius:A})},cardLight={name:"Card",common:commonLight,self:self$F},cardLight$1=cardLight,cardDark={name:"Card",common:commonDark,self(d){const b=self$F(d),{cardColor:A,modalColor:C,popoverColor:w}=d;return b.colorEmbedded=A,b.colorEmbeddedModal=C,b.colorEmbeddedPopover=w,b}},cardDark$1=cardDark,style$i=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:B}=d;B&&call$1(B)},{inlineThemeDisabled:A,mergedClsPrefixRef:C,mergedRtlRef:w}=useConfig(d),x=useTheme("Card","-card",style$i,cardLight$1,d,C),S=useRtl("Card",w,C),E=computed(()=>{const{size:B}=d,{self:{color:D,colorModal:k,colorTarget:I,textColor:$,titleTextColor:M,titleFontWeight:L,borderColor:H,actionColor:z,borderRadius:Q,lineHeight:q,closeIconColor:V,closeIconColorHover:U,closeIconColorPressed:W,closeColorHover:K,closeColorPressed:Z,closeBorderRadius:te,closeIconSize:ne,closeSize:ue,boxShadow:X,colorPopover:se,colorEmbedded:he,colorEmbeddedModal:me,colorEmbeddedPopover:ie,[createKey("padding",B)]:de,[createKey("fontSize",B)]:be,[createKey("titleFontSize",B)]:ge},common:{cubicBezierEaseInOut:Se}}=x.value,{top:je,left:Ye,bottom:st}=getMargin(de);return{"--n-bezier":Se,"--n-border-radius":Q,"--n-color":D,"--n-color-modal":k,"--n-color-popover":se,"--n-color-embedded":he,"--n-color-embedded-modal":me,"--n-color-embedded-popover":ie,"--n-color-target":I,"--n-text-color":$,"--n-line-height":q,"--n-action-color":z,"--n-title-text-color":M,"--n-title-font-weight":L,"--n-close-icon-color":V,"--n-close-icon-color-hover":U,"--n-close-icon-color-pressed":W,"--n-close-color-hover":K,"--n-close-color-pressed":Z,"--n-border-color":H,"--n-box-shadow":X,"--n-padding-top":je,"--n-padding-bottom":st,"--n-padding-left":Ye,"--n-font-size":be,"--n-title-font-size":ge,"--n-close-size":ue,"--n-close-icon-size":ne,"--n-close-border-radius":te}}),P=A?useThemeClass("card",computed(()=>d.size[0]),E,d):void 0;return{rtlEnabled:S,mergedClsPrefix:C,mergedTheme:x,handleCloseClick:b,cssVars:A?void 0:E,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender}},render(){const{segmented:d,bordered:b,hoverable:A,mergedClsPrefix:C,rtlEnabled:w,onRender:x,embedded:S,tag:E,$slots:P}=this;return x==null||x(),h$1(E,{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")]:A}],style:this.cssVars,role:this.role},resolveWrappedSlot(P.cover,B=>B&&h$1("div",{class:"".concat(C,"-card-cover"),role:"none"},B)),resolveWrappedSlot(P.header,B=>B||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"},B||this.title),resolveWrappedSlot(P["header-extra"],D=>D&&h$1("div",{class:"".concat(C,"-card-header__extra"),style:this.headerExtraStyle},D)),this.closable?h$1(NBaseClose,{clsPrefix:C,class:"".concat(C,"-card-header__close"),onClick:this.handleCloseClick,absolute:!0}):null):null),resolveWrappedSlot(P.default,B=>B&&h$1("div",{class:"".concat(C,"-card__content"),style:this.contentStyle,role:"none"},B)),resolveWrappedSlot(P.footer,B=>B&&[h$1("div",{class:"".concat(C,"-card__footer"),style:this.footerStyle,role:"none"},B)]),resolveWrappedSlot(P.action,B=>B&&h$1("div",{class:"".concat(C,"-card__action"),role:"none"},B)))}}),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:A,cardColor:C,modalColor:w,popoverColor:x,textColorDisabled:S,borderColor:E,primaryColor:P,textColor2:B,fontSizeSmall:D,fontSizeMedium:k,fontSizeLarge:I,borderRadiusSmall:$,lineHeight:M}=d;return Object.assign(Object.assign({},commonVariables$c),{labelLineHeight:M,fontSizeSmall:D,fontSizeMedium:k,fontSizeLarge:I,borderRadius:$,color:b,colorChecked:P,colorDisabled:A,colorDisabledChecked:A,colorTableHeader:C,colorTableHeaderModal:w,colorTableHeaderPopover:x,checkMarkColor:b,checkMarkColorDisabled:S,checkMarkColorDisabledChecked:S,border:"1px solid ".concat(E),borderDisabled:"1px solid ".concat(E),borderDisabledChecked:"1px solid ".concat(E),borderChecked:"1px solid ".concat(P),borderFocus:"1px solid ".concat(P),boxShadowFocus:"0 0 0 2px ".concat(changeColor(P,{alpha:.3})),textColor:B,textColorDisabled:S})},checkboxLight={name:"Checkbox",common:commonLight,self:self$D},checkboxLight$1=checkboxLight,checkboxDark={name:"Checkbox",common:commonDark,self(d){const{cardColor:b}=d,A=self$D(d);return A.color="#0000",A.checkMarkColor=b,A}},checkboxDark$1=checkboxDark,self$C=d=>{const{borderRadius:b,boxShadow2:A,popoverColor:C,textColor2:w,textColor3:x,primaryColor:S,textColorDisabled:E,dividerColor:P,hoverColor:B,fontSizeMedium:D,heightMedium:k}=d;return{menuBorderRadius:b,menuColor:C,menuBoxShadow:A,menuDividerColor:P,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:x,optionHeight:k,optionFontSize:D,optionColorHover:B,optionTextColor:w,optionTextColorActive:S,optionTextColorDisabled:E,optionCheckMarkColor:S,loadingColor:S,columnWidth:"180px"}},cascaderLight={name:"Cascader",common:commonLight,peers:{InternalSelectMenu:internalSelectMenuLight$1,InternalSelection:internalSelectionLight$1,Scrollbar:scrollbarLight$1,Checkbox:checkboxLight$1,Empty:emptyLight$1},self:self$C},cascaderLight$1=cascaderLight,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;function getRawNodePath(d){return d?d.map(b=>b.rawNode):null}function createSelectOptions(d,b,A,C){const w=[],x=[];function S(E){for(const P of E){if(P.disabled)continue;const{rawNode:B}=P;x.push(B),(P.isLeaf||!b)&&w.push({label:getPathLabel(P,C,A),value:P.key,rawNode:P.rawNode,path:Array.from(x)}),!P.isLeaf&&P.children&&S(P.children),x.pop()}}return S(d),w}function getPathLabel(d,b,A){const C=[];for(;d;)C.push(d.rawNode[A]),d=d.parent;return C.reverse().join(b)}const CheckMark=h$1("svg",{viewBox:"0 0 64 64",class:"check-icon"},h$1("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),LineMark=h$1("svg",{viewBox:"0 0 100 100",class:"line-icon"},h$1("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),checkboxGroupInjectionKey="n-checkbox-group",style$h=c$3([cB("checkbox","\n line-height: var(--n-label-line-height);\n font-size: var(--n-font-size);\n outline: none;\n cursor: pointer;\n display: inline-flex;\n flex-wrap: nowrap;\n align-items: flex-start;\n word-break: break-word;\n --n-merged-color-table: var(--n-color-table);\n ",[c$3("&:hover",[cB("checkbox-box",[cE("border",{border:"var(--n-border-checked)"})])]),c$3("&:focus:not(:active)",[cB("checkbox-box",[cE("border","\n border: var(--n-border-focus);\n box-shadow: var(--n-box-shadow-focus);\n ")])]),cM("inside-table",[cB("checkbox-box","\n background-color: var(--n-merged-color-table);\n ")]),cM("checked",[cB("checkbox-box","\n background-color: var(--n-color-checked);\n ",[cB("checkbox-icon",[c$3(".check-icon","\n opacity: 1;\n transform: scale(1);\n ")])])]),cM("indeterminate",[cB("checkbox-box",[cB("checkbox-icon",[c$3(".check-icon","\n opacity: 0;\n transform: scale(.5);\n "),c$3(".line-icon","\n opacity: 1;\n transform: scale(1);\n ")])])]),cM("checked, indeterminate",[c$3("&:focus:not(:active)",[cB("checkbox-box",[cE("border","\n border: var(--n-border-checked);\n box-shadow: var(--n-box-shadow-focus);\n ")])]),cB("checkbox-box","\n background-color: var(--n-color-checked);\n border-left: 0;\n border-top: 0;\n ",[cE("border",{border:"var(--n-border-checked)"})])]),cM("disabled",{cursor:"not-allowed"},[cM("checked",[cB("checkbox-box","\n background-color: var(--n-color-disabled-checked);\n ",[cE("border",{border:"var(--n-border-disabled-checked)"}),cB("checkbox-icon",[c$3(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),cB("checkbox-box","\n background-color: var(--n-color-disabled);\n ",[cE("border",{border:"var(--n-border-disabled)"}),cB("checkbox-icon",[c$3(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),cE("label",{color:"var(--n-text-color-disabled)"})]),cB("checkbox-box-wrapper","\n position: relative;\n width: var(--n-size);\n flex-shrink: 0;\n flex-grow: 0;\n user-select: none;\n -webkit-user-select: none;\n "),cB("checkbox-box","\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n height: var(--n-size);\n width: var(--n-size);\n display: inline-block;\n box-sizing: border-box;\n border-radius: var(--n-border-radius);\n background-color: var(--n-color);\n transition: background-color 0.3s var(--n-bezier);\n ",[cE("border","\n transition:\n border-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n border-radius: inherit;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border: var(--n-border);\n "),cB("checkbox-icon","\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n left: 1px;\n right: 1px;\n top: 1px;\n bottom: 1px;\n ",[c$3(".check-icon, .line-icon","\n width: 100%;\n fill: var(--n-check-mark-color);\n opacity: 0;\n transform: scale(0.5);\n transform-origin: center;\n transition:\n fill 0.3s var(--n-bezier),\n transform 0.3s var(--n-bezier),\n opacity 0.3s var(--n-bezier),\n border-color 0.3s var(--n-bezier);\n "),iconSwitchTransition({left:"1px",top:"1px"})])]),cE("label","\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n user-select: none;\n -webkit-user-select: none;\n padding: var(--n-label-padding);\n font-weight: var(--n-label-font-weight);\n ",[c$3("&:empty",{display:"none"})])]),insideModal(cB("checkbox","\n --n-merged-color-table: var(--n-color-table-modal);\n ")),insidePopover(cB("checkbox","\n --n-merged-color-table: var(--n-color-table-popover);\n "))]),checkboxProps=Object.assign(Object.assign({},useTheme.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),NCheckbox=defineComponent({name:"Checkbox",props:checkboxProps,setup(d){const b=ref(null),{mergedClsPrefixRef:A,inlineThemeDisabled:C,mergedRtlRef:w}=useConfig(d),x=useFormItem(d,{mergedSize(W){const{size:K}=d;if(K!==void 0)return K;if(P){const{value:Z}=P.mergedSizeRef;if(Z!==void 0)return Z}if(W){const{mergedSize:Z}=W;if(Z!==void 0)return Z.value}return"medium"},mergedDisabled(W){const{disabled:K}=d;if(K!==void 0)return K;if(P){if(P.disabledRef.value)return!0;const{maxRef:{value:Z},checkedCountRef:te}=P;if(Z!==void 0&&te.value>=Z&&!I.value)return!0;const{minRef:{value:ne}}=P;if(ne!==void 0&&te.value<=ne&&I.value)return!0}return W?W.disabled.value:!1}}),{mergedDisabledRef:S,mergedSizeRef:E}=x,P=inject(checkboxGroupInjectionKey,null),B=ref(d.defaultChecked),D=toRef(d,"checked"),k=useMergedState(D,B),I=useMemo(()=>{if(P){const W=P.valueSetRef.value;return W&&d.value!==void 0?W.has(d.value):!1}else return k.value===d.checkedValue}),$=useTheme("Checkbox","-checkbox",style$h,checkboxLight$1,d,A);function M(W){if(P&&d.value!==void 0)P.toggleCheckbox(!I.value,d.value);else{const{onChange:K,"onUpdate:checked":Z,onUpdateChecked:te}=d,{nTriggerFormInput:ne,nTriggerFormChange:ue}=x,X=I.value?d.uncheckedValue:d.checkedValue;Z&&call$1(Z,X,W),te&&call$1(te,X,W),K&&call$1(K,X,W),ne(),ue(),B.value=X}}function L(W){S.value||M(W)}function H(W){if(!S.value)switch(W.key){case" ":case"Enter":M(W)}}function z(W){switch(W.key){case" ":W.preventDefault()}}const Q={focus:()=>{var W;(W=b.value)===null||W===void 0||W.focus()},blur:()=>{var W;(W=b.value)===null||W===void 0||W.blur()}},q=useRtl("Checkbox",w,A),V=computed(()=>{const{value:W}=E,{common:{cubicBezierEaseInOut:K},self:{borderRadius:Z,color:te,colorChecked:ne,colorDisabled:ue,colorTableHeader:X,colorTableHeaderModal:se,colorTableHeaderPopover:he,checkMarkColor:me,checkMarkColorDisabled:ie,border:de,borderFocus:be,borderDisabled:ge,borderChecked:Se,boxShadowFocus:je,textColor:Ye,textColorDisabled:st,checkMarkColorDisabledChecked:ot,colorDisabledChecked:et,borderDisabledChecked:lt,labelPadding:Me,labelLineHeight:Oe,labelFontWeight:Qe,[createKey("fontSize",W)]:Ze,[createKey("size",W)]:it}}=$.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":Qe,"--n-size":it,"--n-bezier":K,"--n-border-radius":Z,"--n-border":de,"--n-border-checked":Se,"--n-border-focus":be,"--n-border-disabled":ge,"--n-border-disabled-checked":lt,"--n-box-shadow-focus":je,"--n-color":te,"--n-color-checked":ne,"--n-color-table":X,"--n-color-table-modal":se,"--n-color-table-popover":he,"--n-color-disabled":ue,"--n-color-disabled-checked":et,"--n-text-color":Ye,"--n-text-color-disabled":st,"--n-check-mark-color":me,"--n-check-mark-color-disabled":ie,"--n-check-mark-color-disabled-checked":ot,"--n-font-size":Ze,"--n-label-padding":Me}}),U=C?useThemeClass("checkbox",computed(()=>E.value[0]),V,d):void 0;return Object.assign(x,Q,{rtlEnabled:q,selfRef:b,mergedClsPrefix:A,mergedDisabled:S,renderedChecked:I,mergedTheme:$,labelId:createId(),handleClick:L,handleKeyUp:H,handleKeyDown:z,cssVars:C?void 0:V,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender})},render(){var d;const{$slots:b,renderedChecked:A,mergedDisabled:C,indeterminate:w,privateInsideTable:x,cssVars:S,labelId:E,label:P,mergedClsPrefix:B,focusable:D,handleKeyUp:k,handleKeyDown:I,handleClick:$}=this;return(d=this.onRender)===null||d===void 0||d.call(this),h$1("div",{ref:"selfRef",class:["".concat(B,"-checkbox"),this.themeClass,this.rtlEnabled&&"".concat(B,"-checkbox--rtl"),A&&"".concat(B,"-checkbox--checked"),C&&"".concat(B,"-checkbox--disabled"),w&&"".concat(B,"-checkbox--indeterminate"),x&&"".concat(B,"-checkbox--inside-table")],tabindex:C||!D?void 0:0,role:"checkbox","aria-checked":w?"mixed":A,"aria-labelledby":E,style:S,onKeyup:k,onKeydown:I,onClick:$,onMousedown:()=>{on("selectstart",window,M=>{M.preventDefault()},{once:!0})}},h$1("div",{class:"".concat(B,"-checkbox-box-wrapper")}," ",h$1("div",{class:"".concat(B,"-checkbox-box")},h$1(NIconSwitchTransition,null,{default:()=>this.indeterminate?h$1("div",{key:"indeterminate",class:"".concat(B,"-checkbox-icon")},LineMark):h$1("div",{key:"check",class:"".concat(B,"-checkbox-icon")},CheckMark)}),h$1("div",{class:"".concat(B,"-checkbox-box__border")}))),P!==null||b.default?h$1("span",{class:"".concat(B,"-checkbox__label"),id:E},b.default?b.default():P):null)}}),cascaderInjectionKey="n-cascader",NCascaderOption=defineComponent({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(d){const{expandTriggerRef:b,remoteRef:A,multipleRef:C,mergedValueRef:w,checkedKeysRef:x,indeterminateKeysRef:S,hoverKeyPathRef:E,keyboardKeyRef:P,loadingKeySetRef:B,cascadeRef:D,mergedCheckStrategyRef:k,onLoadRef:I,mergedClsPrefixRef:$,mergedThemeRef:M,labelFieldRef:L,showCheckboxRef:H,updateHoverKey:z,updateKeyboardKey:Q,addLoadingKey:q,deleteLoadingKey:V,closeMenu:U,doCheck:W,doUncheck:K,renderLabelRef:Z}=inject(cascaderInjectionKey),te=computed(()=>d.tmNode.key),ne=computed(()=>{const{value:Me}=b,{value:Oe}=A;return!Oe&&Me==="hover"}),ue=computed(()=>{if(ne.value)return st}),X=computed(()=>{if(ne.value)return ot}),se=useMemo(()=>{const{value:Me}=C;return Me?x.value.includes(te.value):w.value===te.value}),he=useMemo(()=>C.value?S.value.includes(te.value):!1),me=useMemo(()=>E.value.includes(te.value)),ie=useMemo(()=>{const{value:Me}=P;return Me===null?!1:Me===te.value}),de=useMemo(()=>A.value?B.value.has(te.value):!1),be=computed(()=>d.tmNode.isLeaf),ge=computed(()=>d.tmNode.disabled),Se=computed(()=>d.tmNode.rawNode[L.value]),je=computed(()=>d.tmNode.shallowLoaded);function Ye(Me){if(ge.value)return;const{value:Oe}=A,{value:Qe}=B,{value:Ze}=I,{value:it}=te,{value:Te}=be,{value:_e}=je;happensIn(Me,"checkbox")||(Oe&&!_e&&!Qe.has(it)&&Ze&&(q(it),Ze(d.tmNode.rawNode).then(()=>{V(it)}).catch(()=>{V(it)})),z(it),Q(it)),Te&<()}function st(){if(!ne.value||ge.value)return;const{value:Me}=te;z(Me),Q(Me)}function ot(){ne.value&&st()}function et(){const{value:Me}=be;Me||lt()}function lt(){const{value:Me}=C,{value:Oe}=te;Me?he.value||se.value?K(Oe):W(Oe):(W(Oe),U(!0))}return{checkStrategy:k,multiple:C,cascade:D,checked:se,indeterminate:he,hoverPending:me,keyboardPending:ie,isLoading:de,showCheckbox:H,isLeaf:be,disabled:ge,label:Se,mergedClsPrefix:$,mergedTheme:M,handleClick:Ye,handleCheckboxUpdateValue:et,mergedHandleMouseEnter:ue,mergedHandleMouseMove:X,renderLabel:Z}},render(){const{mergedClsPrefix:d,renderLabel:b}=this;return h$1("div",{class:["".concat(d,"-cascader-option"),{["".concat(d,"-cascader-option--pending")]:this.keyboardPending||this.hoverPending,["".concat(d,"-cascader-option--disabled")]:this.disabled,["".concat(d,"-cascader-option--show-prefix")]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?h$1("div",{class:"".concat(d,"-cascader-option__prefix")},h$1(NCheckbox,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,h$1("span",{class:"".concat(d,"-cascader-option__label")},b?b(this.tmNode.rawNode,this.checked):this.label),h$1("div",{class:"".concat(d,"-cascader-option__suffix")},h$1("div",{class:"".concat(d,"-cascader-option-icon-placeholder")},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?h$1(Transition,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?h$1(NBaseIcon,{clsPrefix:d,class:"".concat(d,"-cascader-option-icon ").concat(d,"-cascader-option-icon--checkmark")},{default:()=>h$1(FinishedIcon,null)}):null}):null:h$1(NBaseLoading,{clsPrefix:d,scale:.85,strokeWidth:24,show:this.isLoading,class:"".concat(d,"-cascader-option-icon")},{default:()=>h$1(NBaseIcon,{clsPrefix:d,key:"arrow",class:"".concat(d,"-cascader-option-icon ").concat(d,"-cascader-option-icon--arrow")},{default:()=>h$1(ChevronRightIcon,null)})}))))}}),NCascaderSubmenu=defineComponent({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:d,mergedClsPrefixRef:b,mergedThemeRef:A,optionHeightRef:C}=inject(cascaderInjectionKey),w=ref(null),x=ref(null),S={scroll(E,P){var B,D;d.value?(B=x.value)===null||B===void 0||B.scrollTo({index:E}):(D=w.value)===null||D===void 0||D.scrollTo({index:E,elSize:P})}};return Object.assign({mergedClsPrefix:b,mergedTheme:A,scrollbarInstRef:w,vlInstRef:x,virtualScroll:d,itemSize:computed(()=>depx(C.value)),handleVlScroll:()=>{var E;(E=w.value)===null||E===void 0||E.sync()},getVlContainer:()=>{var E;return(E=x.value)===null||E===void 0?void 0:E.listElRef},getVlContent:()=>{var E;return(E=x.value)===null||E===void 0?void 0:E.itemsElRef}},S)},render(){const{mergedClsPrefix:d,mergedTheme:b,virtualScroll:A}=this;return h$1("div",{class:[A&&"".concat(d,"-cascader-submenu--virtual"),"".concat(d,"-cascader-submenu")]},h$1(NScrollbar$1,{ref:"scrollbarInstRef",theme:b.peers.Scrollbar,themeOverrides:b.peerOverrides.Scrollbar,container:A?this.getVlContainer:void 0,content:A?this.getVlContent:void 0},{default:()=>A?h$1(VVirtualList,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:C})=>h$1(NCascaderOption,{key:C.key,tmNode:C})}):this.tmNodes.map(C=>h$1(NCascaderOption,{key:C.key,tmNode:C}))}))}}),CascaderMenu=defineComponent({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(d){const{localeRef:b,isMountedRef:A,mergedClsPrefixRef:C,syncCascaderMenuPosition:w,handleCascaderMenuClickOutside:x,mergedThemeRef:S}=inject(cascaderInjectionKey),E=[],P=ref(null),B=ref(null);function D(){w()}useOnResize(B,D);function k(H){var z;const{value:{loadingRequiredMessage:Q}}=b;(z=P.value)===null||z===void 0||z.showOnce(Q(H))}function I(H){x(H)}function $(H){const{value:z}=B;z&&(z.contains(H.relatedTarget)||d.onFocus(H))}function M(H){const{value:z}=B;z&&(z.contains(H.relatedTarget)||d.onBlur(H))}return Object.assign({isMounted:A,mergedClsPrefix:C,selfElRef:B,submenuInstRefs:E,maskInstRef:P,mergedTheme:S,handleFocusin:$,handleFocusout:M,handleClickOutside:I},{scroll(H,z,Q){const q=E[H];q&&q.scroll(z,Q)},showErrorMessage:k})},render(){const{submenuInstRefs:d,mergedClsPrefix:b,mergedTheme:A}=this;return h$1(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?withDirectives(h$1("div",{tabindex:"0",ref:"selfElRef",class:"".concat(b,"-cascader-menu"),onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?h$1("div",{class:"".concat(b,"-cascader-submenu-wrapper")},this.menuModel.map((C,w)=>h$1(NCascaderSubmenu,{ref:x=>{x&&(d[w]=x)},key:w,tmNodes:C,depth:w+1})),h$1(NBaseMenuMask,{clsPrefix:b,ref:"maskInstRef"})):h$1("div",{class:"".concat(b,"-cascader-menu__empty")},resolveSlot(this.$slots.empty,()=>[h$1(NEmpty,{theme:A.peers.Empty,themeOverrides:A.peerOverrides.Empty})])),resolveWrappedSlot(this.$slots.action,C=>C&&h$1("div",{class:"".concat(b,"-cascader-menu-action"),"data-action":!0},C)),h$1(FocusDetector,{onFocus:this.onTabout})),[[clickoutside$1,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),CascaderSelectMenu=defineComponent({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(d){const{isMountedRef:b,mergedValueRef:A,mergedClsPrefixRef:C,mergedThemeRef:w,mergedCheckStrategyRef:x,slots:S,syncSelectMenuPosition:E,closeMenu:P,handleSelectMenuClickOutside:B,doUncheck:D,doCheck:k,clearPattern:I}=inject(cascaderInjectionKey),$=ref(null),M=computed(()=>createSelectOptions(d.tmNodes,x.value==="child",d.labelField,d.separator)),L=computed(()=>{const{filter:ne}=d;if(ne)return ne;const{labelField:ue}=d;return(X,se,he)=>he.some(me=>me[ue]&&~me[ue].indexOf(X))}),H=computed(()=>{const{pattern:ne}=d,{value:ue}=L;return(ne?M.value.filter(X=>ue(ne,X.rawNode,X.path)):M.value).map(X=>({value:X.value,label:X.label}))}),z=computed(()=>createTreeMate(H.value,createTmOptions("value","children")));function Q(){E()}function q(ne){V(ne)}function V(ne){if(d.multiple){const{value:ue}=A;Array.isArray(ue)?ue.includes(ne.key)?D(ne.key):k(ne.key):ue===null&&k(ne.key),I()}else k(ne.key),P(!0)}function U(){var ne;(ne=$.value)===null||ne===void 0||ne.prev()}function W(){var ne;(ne=$.value)===null||ne===void 0||ne.next()}function K(){var ne;if($){const ue=(ne=$.value)===null||ne===void 0?void 0:ne.getPendingTmNode();return ue&&V(ue),!0}return!1}function Z(ne){B(ne)}return Object.assign({isMounted:b,mergedTheme:w,mergedClsPrefix:C,menuInstRef:$,selectTreeMate:z,handleResize:Q,handleToggle:q,handleClickOutside:Z,cascaderSlots:S},{prev:U,next:W,enter:K})},render(){const{mergedClsPrefix:d,isMounted:b,mergedTheme:A,cascaderSlots:C}=this;return h$1(Transition,{name:"fade-in-scale-up-transition",appear:b},{default:()=>this.show?withDirectives(h$1(NInternalSelectMenu,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:d,class:"".concat(d,"-cascader-menu"),autoPending:!0,themeOverrides:A.peerOverrides.InternalSelectMenu,theme:A.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>resolveSlot(C["not-found"],()=>[])}),[[clickoutside$1,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),style$g=c$3([cB("cascader-menu","\n outline: none;\n position: relative;\n margin: 4px 0;\n display: flex;\n flex-flow: column nowrap;\n border-radius: var(--n-menu-border-radius);\n overflow: hidden;\n box-shadow: var(--n-menu-box-shadow);\n color: var(--n-option-text-color);\n background-color: var(--n-menu-color);\n ",[fadeInScaleUpTransition({transformOrigin:"inherit",duration:"0.2s"}),cE("empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),cB("scrollbar",{width:"100%"}),cB("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),cB("base-loading",{color:"var(--n-loading-color)"}),cB("cascader-submenu-wrapper","\n position: relative;\n display: flex;\n flex-wrap: nowrap;\n "),cB("cascader-submenu","\n height: var(--n-menu-height);\n min-width: var(--n-column-width);\n position: relative;\n ",[cM("virtual","\n width: var(--n-column-width);\n "),cB("scrollbar-content",{position:"relative"}),c$3("&:first-child","\n border-top-left-radius: var(--n-menu-border-radius);\n border-bottom-left-radius: var(--n-menu-border-radius);\n "),c$3("&:last-child","\n border-top-right-radius: var(--n-menu-border-radius);\n border-bottom-right-radius: var(--n-menu-border-radius);\n "),c$3("&:not(:first-child)","\n border-left: 1px solid var(--n-menu-divider-color);\n ")]),cB("cascader-menu-action","\n box-sizing: border-box;\n padding: 8px;\n border-top: 1px solid var(--n-menu-divider-color);\n "),cB("cascader-option","\n height: var(--n-option-height);\n line-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n padding: 0 0 0 18px;\n box-sizing: border-box;\n min-width: 182px;\n background-color: #0000;\n display: flex;\n align-items: center;\n white-space: nowrap;\n position: relative;\n cursor: pointer;\n transition:\n background-color .2s var(--n-bezier),\n color 0.2s var(--n-bezier);\n ",[cM("show-prefix",{paddingLeft:0}),cE("label","\n flex: 1 0 0;\n overflow: hidden;\n text-overflow: ellipsis;\n "),cE("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),cE("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),cB("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[cB("cascader-option-icon",[cM("checkmark",{color:"var(--n-option-check-mark-color)"},[fadeInScaleUpTransition({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),cM("arrow",{color:"var(--n-option-arrow-color)"})])]),cM("selected",{color:"var(--n-option-text-color-active)"}),cM("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),cM("pending",{backgroundColor:"var(--n-option-color-hover)"}),c$3("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),cM("disabled","\n color: var(--n-option-text-color-disabled);\n background-color: #0000;\n cursor: not-allowed;\n ",[cB("cascader-option-icon",[cM("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),cB("cascader","\n z-index: auto;\n position: relative;\n width: 100%;\n ")]),cascaderProps=Object.assign(Object.assign({},useTheme.props),{allowCheckingNotLoaded:Boolean,to:useAdjustedTo.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),NCascader=defineComponent({name:"Cascader",props:cascaderProps,setup(d,{slots:b}){const{mergedBorderedRef:A,mergedClsPrefixRef:C,namespaceRef:w,inlineThemeDisabled:x}=useConfig(d),S=useTheme("Cascader","-cascader",style$g,cascaderLight$1,d,C),{localeRef:E}=useLocale("Cascader"),P=ref(d.defaultValue),B=computed(()=>d.value),D=useMergedState(B,P),k=computed(()=>d.leafOnly?"child":d.checkStrategy),I=ref(""),$=useFormItem(d),{mergedSizeRef:M,mergedDisabledRef:L,mergedStatusRef:H}=$,z=ref(null),Q=ref(null),q=ref(null),V=ref(null),U=ref(null),W=ref(new Set),K=ref(null),Z=ref(null),te=useAdjustedTo(d),ne=ref(!1),ue=De=>{W.value.add(De)},X=De=>{W.value.delete(De)},se=computed(()=>{const{valueField:De,childrenField:re,disabledField:ce}=d;return createTreeMate(d.options,{getDisabled(Ae){return Ae[ce]},getKey(Ae){return Ae[De]},getChildren(Ae){return Ae[re]}})}),he=computed(()=>{const{cascade:De,multiple:re}=d;return re&&Array.isArray(D.value)?se.value.getCheckedKeys(D.value,{cascade:De,allowNotLoaded:d.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),me=computed(()=>he.value.checkedKeys),ie=computed(()=>he.value.indeterminateKeys),de=computed(()=>{const{treeNodePath:De,treeNode:re}=se.value.getPath(U.value);let ce;return re===null?ce=[se.value.treeNodes]:(ce=De.map(Ae=>Ae.siblings),!re.isLeaf&&!W.value.has(re.key)&&re.children&&ce.push(re.children)),ce}),be=computed(()=>{const{keyPath:De}=se.value.getPath(U.value);return De}),ge=computed(()=>S.value.self.optionHeight);isReactive(d.options)&&watch(d.options,(De,re)=>{De!==re&&(U.value=null,V.value=null)});function Se(De){const{onUpdateShow:re,"onUpdate:show":ce}=d;re&&call$1(re,De),ce&&call$1(ce,De),Qe.value=De}function je(De,re,ce){const{onUpdateValue:Ae,"onUpdate:value":ze,onChange:dt}=d,{nTriggerFormInput:vt,nTriggerFormChange:wt}=$;Ae&&call$1(Ae,De,re,ce),ze&&call$1(ze,De,re,ce),dt&&call$1(dt,De,re,ce),P.value=De,vt(),wt()}function Ye(De){V.value=De}function st(De){U.value=De}function ot(De){const{value:{getNode:re}}=se;return De.map(ce=>{var Ae;return((Ae=re(ce))===null||Ae===void 0?void 0:Ae.rawNode)||null})}function et(De){var re;const{cascade:ce,multiple:Ae,filterable:ze}=d,{value:{check:dt,getNode:vt,getPath:wt}}=se;if(Ae)try{const{checkedKeys:ht}=dt(De,he.value.checkedKeys,{cascade:ce,checkStrategy:k.value,allowNotLoaded:d.allowCheckingNotLoaded});je(ht,ot(ht),ht.map(Xe=>{var mt;return getRawNodePath((mt=wt(Xe))===null||mt===void 0?void 0:mt.treeNodePath)})),ze&&Ke(),V.value=De,U.value=De}catch(ht){if(ht instanceof SubtreeNotLoadedError){if(z.value){const Xe=vt(De);Xe!==null&&z.value.showErrorMessage(Xe.rawNode[d.labelField])}}else throw ht}else if(k.value==="child"){const ht=vt(De);if(ht!=null&&ht.isLeaf)je(De,ht.rawNode,getRawNodePath(wt(De).treeNodePath));else return!1}else{const ht=vt(De);je(De,(ht==null?void 0:ht.rawNode)||null,getRawNodePath((re=wt(De))===null||re===void 0?void 0:re.treeNodePath))}return!0}function lt(De){const{cascade:re,multiple:ce}=d;if(ce){const{value:{uncheck:Ae,getNode:ze,getPath:dt}}=se,{checkedKeys:vt}=Ae(De,he.value.checkedKeys,{cascade:re,checkStrategy:k.value,allowNotLoaded:d.allowCheckingNotLoaded});je(vt,vt.map(wt=>{var ht;return((ht=ze(wt))===null||ht===void 0?void 0:ht.rawNode)||null}),vt.map(wt=>{var ht;return getRawNodePath((ht=dt(wt))===null||ht===void 0?void 0:ht.treeNodePath)})),V.value=De,U.value=De}}const Me=computed(()=>{if(d.multiple){const{showPath:De,separator:re,labelField:ce,cascade:Ae}=d,{getCheckedKeys:ze,getNode:dt}=se.value;return ze(me.value,{cascade:Ae,checkStrategy:k.value,allowNotLoaded:d.allowCheckingNotLoaded}).checkedKeys.map(wt=>{const ht=dt(wt);return ht===null?{label:String(wt),value:wt}:{label:De?getPathLabel(ht,re,ce):ht.rawNode[ce],value:ht.key}})}else return[]}),Oe=computed(()=>{const{multiple:De,showPath:re,separator:ce,labelField:Ae}=d,{value:ze}=D;if(!De&&!Array.isArray(ze)){const{getNode:dt}=se.value;if(ze===null)return null;const vt=dt(ze);return vt===null?{label:String(ze),value:ze}:{label:re?getPathLabel(vt,ce,Ae):vt.rawNode[Ae],value:vt.key}}else return null}),Qe=ref(!1),Ze=toRef(d,"show"),it=useMergedState(Ze,Qe),Te=computed(()=>{const{placeholder:De}=d;return De!==void 0?De:E.value.placeholder}),_e=computed(()=>!!(d.filterable&&I.value));watch(it,De=>{if(!De||d.multiple)return;const{value:re}=D;!Array.isArray(re)&&re!==null?(V.value=re,U.value=re,nextTick(()=>{var ce;if(!it.value)return;const{value:Ae}=U;if(D.value!==null){const ze=se.value.getNode(Ae);ze&&((ce=z.value)===null||ce===void 0||ce.scroll(ze.level,ze.index,depx(ge.value)))}})):(V.value=null,U.value=null)},{immediate:!0});function He(De){const{onBlur:re}=d,{nTriggerFormBlur:ce}=$;re&&call$1(re,De),ce()}function Je(De){const{onFocus:re}=d,{nTriggerFormFocus:ce}=$;re&&call$1(re,De),ce()}function Ke(){var De;(De=q.value)===null||De===void 0||De.focusInput()}function Ie(){var De;(De=q.value)===null||De===void 0||De.focus()}function Fe(){L.value||(I.value="",Se(!0),d.filterable&&Ke())}function ae(De=!1){De&&Ie(),Se(!1),I.value=""}function ee(De){var re;_e.value||it.value&&(!((re=q.value)===null||re===void 0)&&re.$el.contains(getPreciseEventTarget(De))||ae())}function J(De){_e.value&&ee(De)}function le(){d.clearFilterAfterSelect&&(I.value="")}function ve(De){var re,ce,Ae;const{value:ze}=V,{value:dt}=se;switch(De){case"prev":if(ze!==null){const vt=dt.getPrev(ze,{loop:!0});vt!==null&&(Ye(vt.key),(re=z.value)===null||re===void 0||re.scroll(vt.level,vt.index,depx(ge.value)))}break;case"next":if(ze===null){const vt=dt.getFirstAvailableNode();vt!==null&&(Ye(vt.key),(ce=z.value)===null||ce===void 0||ce.scroll(vt.level,vt.index,depx(ge.value)))}else{const vt=dt.getNext(ze,{loop:!0});vt!==null&&(Ye(vt.key),(Ae=z.value)===null||Ae===void 0||Ae.scroll(vt.level,vt.index,depx(ge.value)))}break;case"child":if(ze!==null){const vt=dt.getNode(ze);if(vt!==null)if(vt.shallowLoaded){const wt=dt.getChild(ze);wt!==null&&(st(ze),Ye(wt.key))}else{const{value:wt}=W;if(!wt.has(ze)){ue(ze),st(ze);const{onLoad:ht}=d;ht&&ht(vt.rawNode).then(()=>{X(ze)}).catch(()=>{X(ze)})}}}break;case"parent":if(ze!==null){const vt=dt.getParent(ze);if(vt!==null){Ye(vt.key);const wt=vt.getParent();st(wt===null?null:wt.key)}}break}}function Be(De){var re,ce;switch(De.key){case" ":case"ArrowDown":case"ArrowUp":if(d.filterable&&it.value)break;De.preventDefault();break}if(!happensIn(De,"action"))switch(De.key){case" ":if(d.filterable)return;case"Enter":if(!it.value)Fe();else{const{value:Ae}=_e,{value:ze}=V;if(Ae)Q.value&&Q.value.enter()&&le();else if(ze!==null)if(me.value.includes(ze)||ie.value.includes(ze))lt(ze);else{const dt=et(ze);!d.multiple&&dt&&ae(!0)}}break;case"ArrowUp":De.preventDefault(),it.value&&(_e.value?(re=Q.value)===null||re===void 0||re.prev():ve("prev"));break;case"ArrowDown":De.preventDefault(),it.value?_e.value?(ce=Q.value)===null||ce===void 0||ce.next():ve("next"):Fe();break;case"ArrowLeft":De.preventDefault(),it.value&&!_e.value&&ve("parent");break;case"ArrowRight":De.preventDefault(),it.value&&!_e.value&&ve("child");break;case"Escape":it.value&&(markEventEffectPerformed(De),ae(!0))}}function Ue(De){Be(De)}function rt(De){De.stopPropagation(),d.multiple?je([],[],[]):je(null,null,null)}function pt(De){var re;!((re=z.value)===null||re===void 0)&&re.$el.contains(De.relatedTarget)||(ne.value=!0,Je(De))}function tt(De){var re;!((re=z.value)===null||re===void 0)&&re.$el.contains(De.relatedTarget)||(ne.value=!1,He(De),ae())}function at(De){var re;!((re=q.value)===null||re===void 0)&&re.$el.contains(De.relatedTarget)||(ne.value=!0,Je(De))}function Et(De){var re;!((re=q.value)===null||re===void 0)&&re.$el.contains(De.relatedTarget)||(ne.value=!1,He(De))}function Dt(De){happensIn(De,"action")||d.multiple&&d.filter&&(De.preventDefault(),Ke())}function Mt(){ae(!0)}function kt(){d.filterable?Fe():it.value?ae(!0):Fe()}function It(De){I.value=De.target.value}function we(De){const{multiple:re}=d,{value:ce}=D;re&&Array.isArray(ce)&&De.value!==void 0?lt(De.value):je(null,null,null)}function pe(){var De;(De=K.value)===null||De===void 0||De.syncPosition()}function ke(){var De;(De=Z.value)===null||De===void 0||De.syncPosition()}function Ve(){it.value&&(_e.value?pe():ke())}const gt=computed(()=>!!(d.multiple&&d.cascade||k.value!=="child"));provide(cascaderInjectionKey,{slots:b,mergedClsPrefixRef:C,mergedThemeRef:S,mergedValueRef:D,checkedKeysRef:me,indeterminateKeysRef:ie,hoverKeyPathRef:be,mergedCheckStrategyRef:k,showCheckboxRef:gt,cascadeRef:toRef(d,"cascade"),multipleRef:toRef(d,"multiple"),keyboardKeyRef:V,hoverKeyRef:U,remoteRef:toRef(d,"remote"),loadingKeySetRef:W,expandTriggerRef:toRef(d,"expandTrigger"),isMountedRef:isMounted(),onLoadRef:toRef(d,"onLoad"),virtualScrollRef:toRef(d,"virtualScroll"),optionHeightRef:ge,localeRef:E,labelFieldRef:toRef(d,"labelField"),renderLabelRef:toRef(d,"renderLabel"),syncCascaderMenuPosition:ke,syncSelectMenuPosition:pe,updateKeyboardKey:Ye,updateHoverKey:st,addLoadingKey:ue,deleteLoadingKey:X,doCheck:et,doUncheck:lt,closeMenu:ae,handleSelectMenuClickOutside:J,handleCascaderMenuClickOutside:ee,clearPattern:le});const yt={focus:()=>{var De;(De=q.value)===null||De===void 0||De.focus()},blur:()=>{var De;(De=q.value)===null||De===void 0||De.blur()},getCheckedData:()=>{if(gt.value){const De=me.value;return{keys:De,options:ot(De)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(gt.value){const De=ie.value;return{keys:De,options:ot(De)}}return{keys:[],options:[]}}},xt=computed(()=>{const{self:{optionArrowColor:De,optionTextColor:re,optionTextColorActive:ce,optionTextColorDisabled:Ae,optionCheckMarkColor:ze,menuColor:dt,menuBoxShadow:vt,menuDividerColor:wt,menuBorderRadius:ht,menuHeight:Xe,optionColorHover:mt,optionHeight:bt,optionFontSize:Y,loadingColor:xe,columnWidth:fe},common:{cubicBezierEaseInOut:Ce}}=S.value;return{"--n-bezier":Ce,"--n-menu-border-radius":ht,"--n-menu-box-shadow":vt,"--n-menu-height":Xe,"--n-column-width":fe,"--n-menu-color":dt,"--n-menu-divider-color":wt,"--n-option-height":bt,"--n-option-font-size":Y,"--n-option-text-color":re,"--n-option-text-color-disabled":Ae,"--n-option-text-color-active":ce,"--n-option-color-hover":mt,"--n-option-check-mark-color":ze,"--n-option-arrow-color":De,"--n-menu-mask-color":changeColor(dt,{alpha:.75}),"--n-loading-color":xe}}),Ne=x?useThemeClass("cascader",void 0,xt,d):void 0;return Object.assign(Object.assign({},yt),{handleTriggerResize:Ve,mergedStatus:H,selectMenuFollowerRef:K,cascaderMenuFollowerRef:Z,triggerInstRef:q,selectMenuInstRef:Q,cascaderMenuInstRef:z,mergedBordered:A,mergedClsPrefix:C,namespace:w,mergedValue:D,mergedShow:it,showSelectMenu:_e,pattern:I,treeMate:se,mergedSize:M,mergedDisabled:L,localizedPlaceholder:Te,selectedOption:Oe,selectedOptions:Me,adjustedTo:te,menuModel:de,handleMenuTabout:Mt,handleMenuFocus:at,handleMenuBlur:Et,handleMenuKeydown:Ue,handleMenuMousedown:Dt,handleTriggerFocus:pt,handleTriggerBlur:tt,handleTriggerClick:kt,handleClear:rt,handleDeleteOption:we,handlePatternInput:It,handleKeydown:Be,focused:ne,optionHeight:ge,mergedTheme:S,cssVars:x?void 0:xt,themeClass:Ne==null?void 0:Ne.themeClass,onRender:Ne==null?void 0:Ne.onRender})},render(){const{mergedClsPrefix:d}=this;return h$1("div",{class:"".concat(d,"-cascader")},h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1(NInternalSelection,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:d,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var b,A;return(A=(b=this.$slots).arrow)===null||A===void 0?void 0:A.call(b)}})}),h$1(VFollower,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,to:this.adjustedTo},{default:()=>{var b;(b=this.onRender)===null||b===void 0||b.call(this);const{menuProps:A}=this;return h$1(CascaderMenu,Object.assign({},A,{ref:"cascaderMenuInstRef",class:[this.themeClass,A==null?void 0:A.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,A==null?void 0:A.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var C,w;return(w=(C=this.$slots).action)===null||w===void 0?void 0:w.call(C)},empty:()=>{var C,w;return(w=(C=this.$slots).empty)===null||w===void 0?void 0:w.call(C)}})}}),h$1(VFollower,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey},{default:()=>{var b;(b=this.onRender)===null||b===void 0||b.call(this);const{filterMenuProps:A}=this;return h$1(CascaderSelectMenu,Object.assign({},A,{ref:"selectMenuInstRef",class:[this.themeClass,A==null?void 0:A.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,A==null?void 0:A.style]}))}})]}))}}),codeDark={name:"Code",common:commonDark,self(d){const{textColor2:b,fontSize:A,fontWeightStrong:C,textColor3:w}=d;return{textColor:b,fontSize:A,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:A,textColor2:C,textColorDisabled:w,dividerColor:x,fontSize:S}=d;return{titleFontSize:S,titleFontWeight:b,dividerColor:x,titleTextColor:A,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),A=computed(()=>{const{theme:M}=d;if(M===null)return;const L=b==null?void 0:b.mergedThemeRef.value;return M===void 0?L:L===void 0?M:Object.assign({},L,M)}),C=computed(()=>{const{themeOverrides:M}=d;if(M!==null){if(M===void 0)return b==null?void 0:b.mergedThemeOverridesRef.value;{const L=b==null?void 0:b.mergedThemeOverridesRef.value;return L===void 0?M:merge$2({},L,M)}}}),w=useMemo(()=>{const{namespace:M}=d;return M===void 0?b==null?void 0:b.mergedNamespaceRef.value:M}),x=useMemo(()=>{const{bordered:M}=d;return M===void 0?b==null?void 0:b.mergedBorderedRef.value:M}),S=computed(()=>{const{icons:M}=d;return M===void 0?b==null?void 0:b.mergedIconsRef.value:M}),E=computed(()=>{const{componentOptions:M}=d;return M!==void 0?M:b==null?void 0:b.mergedComponentPropsRef.value}),P=computed(()=>{const{clsPrefix:M}=d;return M!==void 0?M:b==null?void 0:b.mergedClsPrefixRef.value}),B=computed(()=>{var M;const{rtl:L}=d;if(L===void 0)return b==null?void 0:b.mergedRtlRef.value;const H={};for(const z of L)H[z.name]=markRaw(z),(M=z.peers)===null||M===void 0||M.forEach(Q=>{Q.name in H||(H[Q.name]=markRaw(Q))});return H}),D=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),$=computed(()=>{const{value:M}=A,{value:L}=C,H=L&&Object.keys(L).length!==0,z=M==null?void 0:M.name;return z?H?"".concat(z,"-").concat(murmur2(JSON.stringify(C.value))):z:H?murmur2(JSON.stringify(C.value)):""});return provide(configProviderInjectionKey,{mergedThemeHashRef:$,mergedBreakpointsRef:D,mergedRtlRef:B,mergedIconsRef:S,mergedComponentPropsRef:E,mergedBorderedRef:x,mergedNamespaceRef:w,mergedClsPrefixRef:P,mergedLocaleRef:computed(()=>{const{locale:M}=d;if(M!==null)return M===void 0?b==null?void 0:b.mergedLocaleRef.value:M}),mergedDateLocaleRef:computed(()=>{const{dateLocale:M}=d;if(M!==null)return M===void 0?b==null?void 0:b.mergedDateLocaleRef.value:M}),mergedHljsRef:computed(()=>{const{hljs:M}=d;return M===void 0?b==null?void 0:b.mergedHljsRef.value:M}),mergedKatexRef:computed(()=>{const{katex:M}=d;return M===void 0?b==null?void 0:b.mergedKatexRef.value:M}),mergedThemeRef:A,mergedThemeOverridesRef:C,inlineThemeDisabled:k||!1,preflightStyleDisabled:I||!1}),{mergedClsPrefix:P,mergedBordered:x,mergedNamespace:w,mergedTheme:A,mergedThemeOverrides:C}},render(){var d,b,A,C;return this.abstract?(C=(A=this.$slots).default)===null||C===void 0?void 0:C.call(A):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$f=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:A,namespaceRef:C,inlineThemeDisabled:w}=useConfig(d),x=useTheme("Select","-select",style$f,selectLight$1,d,b),S=ref(d.defaultValue),E=toRef(d,"value"),P=useMergedState(E,S),B=ref(!1),D=ref(""),k=computed(()=>{const{valueField:pe,childrenField:ke}=d,Ve=createTmOptions(pe,ke);return createTreeMate(X.value,Ve)}),I=computed(()=>createValOptMap(ne.value,d.valueField,d.childrenField)),$=ref(!1),M=useMergedState(toRef(d,"show"),$),L=ref(null),H=ref(null),z=ref(null),{localeRef:Q}=useLocale("Select"),q=computed(()=>{var pe;return(pe=d.placeholder)!==null&&pe!==void 0?pe:Q.value.placeholder}),V=useCompitable(d,["items","options"]),U=[],W=ref([]),K=ref([]),Z=ref(new Map),te=computed(()=>{const{fallbackOption:pe}=d;if(pe===void 0){const{labelField:ke,valueField:Ve}=d;return gt=>({[ke]:String(gt),[Ve]:gt})}return pe===!1?!1:ke=>Object.assign(pe(ke),{value:ke})}),ne=computed(()=>K.value.concat(W.value).concat(V.value)),ue=computed(()=>{const{filter:pe}=d;if(pe)return pe;const{labelField:ke,valueField:Ve}=d;return(gt,yt)=>{if(!yt)return!1;const xt=yt[ke];if(typeof xt=="string")return patternMatched(gt,xt);const Ne=yt[Ve];return typeof Ne=="string"?patternMatched(gt,Ne):typeof Ne=="number"?patternMatched(gt,String(Ne)):!1}}),X=computed(()=>{if(d.remote)return V.value;{const{value:pe}=ne,{value:ke}=D;return!ke.length||!d.filterable?pe:filterOptions(pe,ue.value,ke,d.childrenField)}});function se(pe){const ke=d.remote,{value:Ve}=Z,{value:gt}=I,{value:yt}=te,xt=[];return pe.forEach(Ne=>{if(gt.has(Ne))xt.push(gt.get(Ne));else if(ke&&Ve.has(Ne))xt.push(Ve.get(Ne));else if(yt){const De=yt(Ne);De&&xt.push(De)}}),xt}const he=computed(()=>{if(d.multiple){const{value:pe}=P;return Array.isArray(pe)?se(pe):[]}return null}),me=computed(()=>{const{value:pe}=P;return!d.multiple&&!Array.isArray(pe)?pe===null?null:se([pe])[0]||null:null}),ie=useFormItem(d),{mergedSizeRef:de,mergedDisabledRef:be,mergedStatusRef:ge}=ie;function Se(pe,ke){const{onChange:Ve,"onUpdate:value":gt,onUpdateValue:yt}=d,{nTriggerFormChange:xt,nTriggerFormInput:Ne}=ie;Ve&&call$1(Ve,pe,ke),yt&&call$1(yt,pe,ke),gt&&call$1(gt,pe,ke),S.value=pe,xt(),Ne()}function je(pe){const{onBlur:ke}=d,{nTriggerFormBlur:Ve}=ie;ke&&call$1(ke,pe),Ve()}function Ye(){const{onClear:pe}=d;pe&&call$1(pe)}function st(pe){const{onFocus:ke,showOnFocus:Ve}=d,{nTriggerFormFocus:gt}=ie;ke&&call$1(ke,pe),gt(),Ve&&Oe()}function ot(pe){const{onSearch:ke}=d;ke&&call$1(ke,pe)}function et(pe){const{onScroll:ke}=d;ke&&call$1(ke,pe)}function lt(){var pe;const{remote:ke,multiple:Ve}=d;if(ke){const{value:gt}=Z;if(Ve){const{valueField:yt}=d;(pe=he.value)===null||pe===void 0||pe.forEach(xt=>{gt.set(xt[yt],xt)})}else{const yt=me.value;yt&>.set(yt[d.valueField],yt)}}}function Me(pe){const{onUpdateShow:ke,"onUpdate:show":Ve}=d;ke&&call$1(ke,pe),Ve&&call$1(Ve,pe),$.value=pe}function Oe(){be.value||(Me(!0),$.value=!0,d.filterable&&Dt())}function Qe(){Me(!1)}function Ze(){D.value="",K.value=U}const it=ref(!1);function Te(){d.filterable&&(it.value=!0)}function _e(){d.filterable&&(it.value=!1,M.value||Ze())}function He(){be.value||(M.value?d.filterable?Dt():Qe():Oe())}function Je(pe){var ke,Ve;!((Ve=(ke=z.value)===null||ke===void 0?void 0:ke.selfRef)===null||Ve===void 0)&&Ve.contains(pe.relatedTarget)||(B.value=!1,je(pe),Qe())}function Ke(pe){st(pe),B.value=!0}function Ie(pe){B.value=!0}function Fe(pe){var ke;!((ke=L.value)===null||ke===void 0)&&ke.$el.contains(pe.relatedTarget)||(B.value=!1,je(pe),Qe())}function ae(){var pe;(pe=L.value)===null||pe===void 0||pe.focus(),Qe()}function ee(pe){var ke;M.value&&(!((ke=L.value)===null||ke===void 0)&&ke.$el.contains(getPreciseEventTarget(pe))||Qe())}function J(pe){if(!Array.isArray(pe))return[];if(te.value)return Array.from(pe);{const{remote:ke}=d,{value:Ve}=I;if(ke){const{value:gt}=Z;return pe.filter(yt=>Ve.has(yt)||gt.has(yt))}else return pe.filter(gt=>Ve.has(gt))}}function le(pe){ve(pe.rawNode)}function ve(pe){if(be.value)return;const{tag:ke,remote:Ve,clearFilterAfterSelect:gt,valueField:yt}=d;if(ke&&!Ve){const{value:xt}=K,Ne=xt[0]||null;if(Ne){const De=W.value;De.length?De.push(Ne):W.value=[Ne],K.value=U}}if(Ve&&Z.value.set(pe[yt],pe),d.multiple){const xt=J(P.value),Ne=xt.findIndex(De=>De===pe[yt]);if(~Ne){if(xt.splice(Ne,1),ke&&!Ve){const De=Be(pe[yt]);~De&&(W.value.splice(De,1),gt&&(D.value=""))}}else xt.push(pe[yt]),gt&&(D.value="");Se(xt,se(xt))}else{if(ke&&!Ve){const xt=Be(pe[yt]);~xt?W.value=[W.value[xt]]:W.value=U}Et(),Qe(),Se(pe[yt],pe)}}function Be(pe){return W.value.findIndex(Ve=>Ve[d.valueField]===pe)}function Ue(pe){M.value||Oe();const{value:ke}=pe.target;D.value=ke;const{tag:Ve,remote:gt}=d;if(ot(ke),Ve&&!gt){if(!ke){K.value=U;return}const{onCreate:yt}=d,xt=yt?yt(ke):{[d.labelField]:ke,[d.valueField]:ke},{valueField:Ne}=d;V.value.some(De=>De[Ne]===xt[Ne])||W.value.some(De=>De[Ne]===xt[Ne])?K.value=U:K.value=[xt]}}function rt(pe){pe.stopPropagation();const{multiple:ke}=d;!ke&&d.filterable&&Qe(),Ye(),ke?Se([],[]):Se(null,null)}function pt(pe){!happensIn(pe,"action")&&!happensIn(pe,"empty")&&pe.preventDefault()}function tt(pe){et(pe)}function at(pe){var ke,Ve,gt,yt,xt;if(!d.keyboard){pe.preventDefault();return}switch(pe.key){case" ":if(d.filterable)break;pe.preventDefault();case"Enter":if(!(!((ke=L.value)===null||ke===void 0)&&ke.isComposing)){if(M.value){const Ne=(Ve=z.value)===null||Ve===void 0?void 0:Ve.getPendingTmNode();Ne?le(Ne):d.filterable||(Qe(),Et())}else if(Oe(),d.tag&&it.value){const Ne=K.value[0];if(Ne){const De=Ne[d.valueField],{value:re}=P;d.multiple&&Array.isArray(re)&&re.some(ce=>ce===De)||ve(Ne)}}}pe.preventDefault();break;case"ArrowUp":if(pe.preventDefault(),d.loading)return;M.value&&((gt=z.value)===null||gt===void 0||gt.prev());break;case"ArrowDown":if(pe.preventDefault(),d.loading)return;M.value?(yt=z.value)===null||yt===void 0||yt.next():Oe();break;case"Escape":M.value&&(markEventEffectPerformed(pe),Qe()),(xt=L.value)===null||xt===void 0||xt.focus();break}}function Et(){var pe;(pe=L.value)===null||pe===void 0||pe.focus()}function Dt(){var pe;(pe=L.value)===null||pe===void 0||pe.focusInput()}function Mt(){var pe;M.value&&((pe=H.value)===null||pe===void 0||pe.syncPosition())}lt(),watch(toRef(d,"options"),lt);const kt={focus:()=>{var pe;(pe=L.value)===null||pe===void 0||pe.focus()},blur:()=>{var pe;(pe=L.value)===null||pe===void 0||pe.blur()}},It=computed(()=>{const{self:{menuBoxShadow:pe}}=x.value;return{"--n-menu-box-shadow":pe}}),we=w?useThemeClass("select",void 0,It,d):void 0;return Object.assign(Object.assign({},kt),{mergedStatus:ge,mergedClsPrefix:b,mergedBordered:A,namespace:C,treeMate:k,isMounted:isMounted(),triggerRef:L,menuRef:z,pattern:D,uncontrolledShow:$,mergedShow:M,adjustedTo:useAdjustedTo(d),uncontrolledValue:S,mergedValue:P,followerRef:H,localizedPlaceholder:q,selectedOption:me,selectedOptions:he,mergedSize:de,mergedDisabled:be,focused:B,activeWithoutMenuOpen:it,inlineThemeDisabled:w,onTriggerInputFocus:Te,onTriggerInputBlur:_e,handleTriggerOrMenuResize:Mt,handleMenuFocus:Ie,handleMenuBlur:Fe,handleMenuTabOut:ae,handleTriggerClick:He,handleToggle:le,handleDeleteOption:ve,handlePatternInput:Ue,handleClear:rt,handleTriggerBlur:Je,handleTriggerFocus:Ke,handleKeydown:at,handleMenuAfterLeave:Ze,handleMenuClickOutside:ee,handleMenuScroll:tt,handleMenuKeydown:at,handleMenuMousedown:pt,mergedTheme:x,cssVars:w?void 0:It,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.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,A;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:[(A=this.menuProps)===null||A===void 0?void 0:A.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:A,primaryColorHover:C,primaryColorPressed:w,inputColorDisabled:x,textColorDisabled:S,borderColor:E,borderRadius:P,fontSizeTiny:B,fontSizeSmall:D,fontSizeMedium:k,heightTiny:I,heightSmall:$,heightMedium:M}=d;return Object.assign(Object.assign({},commonVariables$b),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:"1px solid ".concat(E),buttonBorderHover:"1px solid ".concat(E),buttonBorderPressed:"1px solid ".concat(E),buttonIconColor:b,buttonIconColorHover:b,buttonIconColorPressed:b,itemTextColor:b,itemTextColorHover:C,itemTextColorPressed:w,itemTextColorActive:A,itemTextColorDisabled:S,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:x,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:"1px solid ".concat(A),itemBorderDisabled:"1px solid ".concat(E),itemBorderRadius:P,itemSizeSmall:I,itemSizeMedium:$,itemSizeLarge:M,itemFontSizeSmall:B,itemFontSizeMedium:D,itemFontSizeLarge:k,jumperFontSizeSmall:B,jumperFontSizeMedium:D,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:A}=d,C=changeColor(b,{alpha:Number(A)}),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:A,popoverColor:C,textColor2:w}=d;return Object.assign(Object.assign({},commonVars$8),{borderRadius:b,boxShadow:A,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:A,baseColor:C,textColorDisabled:w,inputColorDisabled:x,textColor2:S,opacityDisabled:E,borderRadius:P,fontSizeSmall:B,fontSizeMedium:D,fontSizeLarge:k,heightSmall:I,heightMedium:$,heightLarge:M,lineHeight:L}=d;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:L,buttonHeightSmall:I,buttonHeightMedium:$,buttonHeightLarge:M,fontSizeSmall:B,fontSizeMedium:D,fontSizeLarge:k,boxShadow:"inset 0 0 0 1px ".concat(b),boxShadowActive:"inset 0 0 0 1px ".concat(A),boxShadowFocus:"inset 0 0 0 1px ".concat(A,", 0 0 0 2px ").concat(changeColor(A,{alpha:.3})),boxShadowHover:"inset 0 0 0 1px ".concat(A),boxShadowDisabled:"inset 0 0 0 1px ".concat(b),color:"#0000",colorDisabled:x,colorActive:"#0000",textColor:S,textColorDisabled:w,dotColorActive:A,dotColorDisabled:b,buttonBorderColor:b,buttonBorderColorActive:A,buttonBorderColorHover:A,buttonColor:"#0000",buttonColorActive:A,buttonTextColor:S,buttonTextColorActive:C,buttonTextColorHover:A,opacityDisabled:E,buttonBoxShadowFocus:"inset 0 0 0 1px ".concat(A,", 0 0 0 2px ").concat(changeColor(A,{alpha:.3})),buttonBoxShadowHover:"inset 0 0 0 1px ".concat(A),buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:P})}},radioDark$1=radioDark,self$x=d=>{const{borderColor:b,primaryColor:A,baseColor:C,textColorDisabled:w,inputColorDisabled:x,textColor2:S,opacityDisabled:E,borderRadius:P,fontSizeSmall:B,fontSizeMedium:D,fontSizeLarge:k,heightSmall:I,heightMedium:$,heightLarge:M,lineHeight:L}=d;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:L,buttonHeightSmall:I,buttonHeightMedium:$,buttonHeightLarge:M,fontSizeSmall:B,fontSizeMedium:D,fontSizeLarge:k,boxShadow:"inset 0 0 0 1px ".concat(b),boxShadowActive:"inset 0 0 0 1px ".concat(A),boxShadowFocus:"inset 0 0 0 1px ".concat(A,", 0 0 0 2px ").concat(changeColor(A,{alpha:.2})),boxShadowHover:"inset 0 0 0 1px ".concat(A),boxShadowDisabled:"inset 0 0 0 1px ".concat(b),color:C,colorDisabled:x,colorActive:"#0000",textColor:S,textColorDisabled:w,dotColorActive:A,dotColorDisabled:b,buttonBorderColor:b,buttonBorderColorActive:A,buttonBorderColorHover:b,buttonColor:C,buttonColorActive:C,buttonTextColor:S,buttonTextColorActive:A,buttonTextColorHover:A,opacityDisabled:E,buttonBoxShadowFocus:"inset 0 0 0 1px ".concat(A,", 0 0 0 2px ").concat(changeColor(A,{alpha:.3})),buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:P})},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:A,dividerColor:C,hoverColor:w,popoverColor:x,invertedColor:S,borderRadius:E,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:D,fontSizeHuge:k,heightSmall:I,heightMedium:$,heightLarge:M,heightHuge:L,textColor3:H,opacityDisabled:z}=d;return Object.assign(Object.assign({},commonVariables$9),{optionHeightSmall:I,optionHeightMedium:$,optionHeightLarge:M,optionHeightHuge:L,borderRadius:E,fontSizeSmall:P,fontSizeMedium:B,fontSizeLarge:D,fontSizeHuge:k,optionTextColor:A,optionTextColorHover:A,optionTextColorActive:b,optionTextColorChildActive:b,color:x,dividerColor:C,suffixColor:A,prefixColor:A,optionColorHover:w,optionColorActive:changeColor(b,{alpha:.1}),groupHeaderTextColor:H,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:S,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:b,optionColorActiveInverted:b,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:z})},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:A,popoverColor:C}=d,w=self$w(d);return w.colorInverted=C,w.optionColorActive=changeColor(A,{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:A,popoverColor:C,textColor2:w,textColor1:x,tableHeaderColor:S,tableColorHover:E,iconColor:P,primaryColor:B,fontWeightStrong:D,borderRadius:k,lineHeight:I,fontSizeSmall:$,fontSizeMedium:M,fontSizeLarge:L,dividerColor:H,heightSmall:z,opacityDisabled:Q,tableColorStriped:q}=d;return Object.assign(Object.assign({},commonVariables$8),{actionDividerColor:H,lineHeight:I,borderRadius:k,fontSizeSmall:$,fontSizeMedium:M,fontSizeLarge:L,borderColor:composite(b,H),tdColorHover:composite(b,E),tdColorStriped:composite(b,q),thColor:composite(b,S),thColorHover:composite(composite(b,S),E),tdColor:b,tdTextColor:w,thTextColor:x,thFontWeight:D,thButtonColorHover:E,thIconColor:P,thIconColorActive:B,borderColorModal:composite(A,H),tdColorHoverModal:composite(A,E),tdColorStripedModal:composite(A,q),thColorModal:composite(A,S),thColorHoverModal:composite(composite(A,S),E),tdColorModal:A,borderColorPopover:composite(C,H),tdColorHoverPopover:composite(C,E),tdColorStripedPopover:composite(C,q),thColorPopover:composite(C,S),thColorHoverPopover:composite(composite(C,S),E),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:B,loadingSize:z,opacityLoading:Q})},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(Q){const{size:q}=d;if(q!==void 0)return q;if(S){const{mergedSizeRef:{value:V}}=S;if(V!==void 0)return V}return Q?Q.mergedSize.value:"medium"},mergedDisabled(Q){return!!(d.disabled||S!=null&&S.disabledRef.value||Q!=null&&Q.disabled.value)}}),{mergedSizeRef:A,mergedDisabledRef:C}=b,w=ref(null),x=ref(null),S=inject(radioGroupInjectionKey,null),E=ref(d.defaultChecked),P=toRef(d,"checked"),B=useMergedState(P,E),D=useMemo(()=>S?S.valueRef.value===d.value:B.value),k=useMemo(()=>{const{name:Q}=d;if(Q!==void 0)return Q;if(S)return S.nameRef.value}),I=ref(!1);function $(){if(S){const{doUpdateValue:Q}=S,{value:q}=d;call$1(Q,q)}else{const{onUpdateChecked:Q,"onUpdate:checked":q}=d,{nTriggerFormInput:V,nTriggerFormChange:U}=b;Q&&call$1(Q,!0),q&&call$1(q,!0),V(),U(),E.value=!0}}function M(){C.value||D.value||$()}function L(){M()}function H(){I.value=!1}function z(){I.value=!0}return{mergedClsPrefix:S?S.mergedClsPrefixRef:useConfig(d).mergedClsPrefixRef,inputRef:w,labelRef:x,mergedName:k,mergedDisabled:C,uncontrolledChecked:E,renderSafeChecked:D,focus:I,mergedSize:A,handleRadioInputChange:L,handleRadioInputBlur:H,handleRadioInputFocus:z}}const style$e=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),A=useTheme("Radio","-radio",style$e,radioLight$1,d,b.mergedClsPrefix),C=computed(()=>{const{mergedSize:{value:B}}=b,{common:{cubicBezierEaseInOut:D},self:{boxShadow:k,boxShadowActive:I,boxShadowDisabled:$,boxShadowFocus:M,boxShadowHover:L,color:H,colorDisabled:z,colorActive:Q,textColor:q,textColorDisabled:V,dotColorActive:U,dotColorDisabled:W,labelPadding:K,labelLineHeight:Z,labelFontWeight:te,[createKey("fontSize",B)]:ne,[createKey("radioSize",B)]:ue}}=A.value;return{"--n-bezier":D,"--n-label-line-height":Z,"--n-label-font-weight":te,"--n-box-shadow":k,"--n-box-shadow-active":I,"--n-box-shadow-disabled":$,"--n-box-shadow-focus":M,"--n-box-shadow-hover":L,"--n-color":H,"--n-color-active":Q,"--n-color-disabled":z,"--n-dot-color-active":U,"--n-dot-color-disabled":W,"--n-font-size":ne,"--n-radio-size":ue,"--n-text-color":q,"--n-text-color-disabled":V,"--n-label-padding":K}}),{inlineThemeDisabled:w,mergedClsPrefixRef:x,mergedRtlRef:S}=useConfig(d),E=useRtl("Radio",S,x),P=w?useThemeClass("radio",computed(()=>b.mergedSize.value[0]),C,d):void 0;return Object.assign(b,{rtlEnabled:E,cssVars:w?void 0:C,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender})},render(){const{$slots:d,mergedClsPrefix:b,onRender:A,label:C}=this;return A==null||A(),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$d=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,A){var C;const w=[];let x=!1;for(let S=0;S{const{value:U}=A,{common:{cubicBezierEaseInOut:W},self:{buttonBorderColor:K,buttonBorderColorActive:Z,buttonBorderRadius:te,buttonBoxShadow:ne,buttonBoxShadowFocus:ue,buttonBoxShadowHover:X,buttonColorActive:se,buttonTextColor:he,buttonTextColorActive:me,buttonTextColorHover:ie,opacityDisabled:de,[createKey("buttonHeight",U)]:be,[createKey("fontSize",U)]:ge}}=k.value;return{"--n-font-size":ge,"--n-bezier":W,"--n-button-border-color":K,"--n-button-border-color-active":Z,"--n-button-border-radius":te,"--n-button-box-shadow":ne,"--n-button-box-shadow-focus":ue,"--n-button-box-shadow-hover":X,"--n-button-color-active":se,"--n-button-text-color":he,"--n-button-text-color-hover":ie,"--n-button-text-color-active":me,"--n-height":be,"--n-opacity-disabled":de}}),V=B?useThemeClass("radio-group",computed(()=>A.value[0]),q,d):void 0;return{selfElRef:b,rtlEnabled:Q,mergedClsPrefix:P,mergedValue:M,handleFocusout:z,handleFocusin:H,cssVars:B?void 0:q,themeClass:V==null?void 0:V.themeClass,onRender:V==null?void 0:V.onRender}},render(){var d;const{mergedValue:b,mergedClsPrefix:A,handleFocusin:C,handleFocusout:w}=this,{children:x,isButtonGroup:S}=mapSlot(flatten$4(getSlot$1(this)),b,A);return(d=this.onRender)===null||d===void 0||d.call(this),h$1("div",{onFocusin:C,onFocusout:w,ref:"selfElRef",class:["".concat(A,"-radio-group"),this.rtlEnabled&&"".concat(A,"-radio-group--rtl"),this.themeClass,S&&"".concat(A,"-radio-group--button-group")],style:this.cssVars},x)}}),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:A,opacity2:C,opacity3:w,opacity4:x,opacity5:S}=d;return{color:b,opacity1Depth:A,opacity2Depth:C,opacity3Depth:w,opacity4Depth:x,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$c=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:A}=useConfig(d),C=useTheme("Icon","-icon",style$c,iconLight$1,d,b),w=computed(()=>{const{depth:S}=d,{common:{cubicBezierEaseInOut:E},self:P}=C.value;if(S!==void 0){const{color:B,["opacity".concat(S,"Depth")]:D}=P;return{"--n-bezier":E,"--n-color":B,"--n-opacity":D}}return{"--n-bezier":E,"--n-color":"","--n-opacity":""}}),x=A?useThemeClass("icon",computed(()=>"".concat(d.depth||"d")),w,d):void 0;return{mergedClsPrefix:b,mergedStyle:computed(()=>{const{size:S,color:E}=d;return{fontSize:formatLength(S),color:E}}),cssVars:A?void 0:w,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var d;const{$parent:b,depth:A,mergedClsPrefix:C,component:w,onRender:x,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`"),x==null||x(),h$1("i",mergeProps(this.$attrs,{role:"img",class:["".concat(C,"-icon"),S,{["".concat(C,"-icon--depth")]:A,["".concat(C,"-icon--color-transition")]:A!==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:A,keyboardKeyRef:C,lastToggledSubmenuKeyRef:w,pendingKeyPathRef:x,activeKeyPathRef:S,animatedRef:E,mergedShowRef:P,renderLabelRef:B,renderIconRef:D,labelFieldRef:k,childrenFieldRef:I,renderOptionRef:$,nodePropsRef:M,menuPropsRef:L}=b,H=inject(dropdownOptionInjectionKey,null),z=inject(dropdownMenuInjectionKey),Q=inject(popoverBodyInjectionKey),q=computed(()=>d.tmNode.rawNode),V=computed(()=>{const{value:de}=I;return isSubmenuNode(d.tmNode.rawNode,de)}),U=computed(()=>{const{disabled:de}=d.tmNode;return de}),W=computed(()=>{if(!V.value)return!1;const{key:de,disabled:be}=d.tmNode;if(be)return!1;const{value:ge}=A,{value:Se}=C,{value:je}=w,{value:Ye}=x;return ge!==null?Ye.includes(de):Se!==null?Ye.includes(de)&&Ye[Ye.length-1]!==de:je!==null?Ye.includes(de):!1}),K=computed(()=>C.value===null&&!E.value),Z=useDeferredTrue(W,300,K),te=computed(()=>!!(H!=null&&H.enteringSubmenuRef.value)),ne=ref(!1);provide(dropdownOptionInjectionKey,{enteringSubmenuRef:ne});function ue(){ne.value=!0}function X(){ne.value=!1}function se(){const{parentKey:de,tmNode:be}=d;be.disabled||P.value&&(w.value=de,C.value=null,A.value=be.key)}function he(){const{tmNode:de}=d;de.disabled||P.value&&A.value!==de.key&&se()}function me(de){if(d.tmNode.disabled||!P.value)return;const{relatedTarget:be}=de;be&&!happensIn({target:be},"dropdownOption")&&!happensIn({target:be},"scrollbarRail")&&(A.value=null)}function ie(){const{value:de}=V,{tmNode:be}=d;P.value&&!de&&!be.disabled&&(b.doSelect(be.key,be.rawNode),b.doUpdateShow(!1))}return{labelField:k,renderLabel:B,renderIcon:D,siblingHasIcon:z.showIconRef,siblingHasSubmenu:z.hasSubmenuRef,menuProps:L,popoverBody:Q,animated:E,mergedShowSubmenu:computed(()=>Z.value&&!te.value),rawNode:q,hasSubmenu:V,pending:useMemo(()=>{const{value:de}=x,{key:be}=d.tmNode;return de.includes(be)}),childActive:useMemo(()=>{const{value:de}=S,{key:be}=d.tmNode,ge=de.findIndex(Se=>be===Se);return ge===-1?!1:ge{const{value:de}=S,{key:be}=d.tmNode,ge=de.findIndex(Se=>be===Se);return ge===-1?!1:ge===de.length-1}),mergedDisabled:U,renderOption:$,nodeProps:M,handleClick:ie,handleMouseMove:he,handleMouseEnter:se,handleMouseLeave:me,handleSubmenuBeforeEnter:ue,handleSubmenuAfterEnter:X}},render(){var d,b;const{animated:A,rawNode:C,mergedShowSubmenu:w,clsPrefix:x,siblingHasIcon:S,siblingHasSubmenu:E,renderLabel:P,renderIcon:B,renderOption:D,nodeProps:k,props:I,scrollable:$}=this;let M=null;if(w){const Q=(d=this.menuProps)===null||d===void 0?void 0:d.call(this,C,C.children);M=h$1(NDropdownMenu,Object.assign({},Q,{clsPrefix:x,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const L={class:["".concat(x,"-dropdown-option-body"),this.pending&&"".concat(x,"-dropdown-option-body--pending"),this.active&&"".concat(x,"-dropdown-option-body--active"),this.childActive&&"".concat(x,"-dropdown-option-body--child-active"),this.mergedDisabled&&"".concat(x,"-dropdown-option-body--disabled")],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},H=k==null?void 0:k(C),z=h$1("div",Object.assign({class:["".concat(x,"-dropdown-option"),H==null?void 0:H.class],"data-dropdown-option":!0},H),h$1("div",mergeProps(L,I),[h$1("div",{class:["".concat(x,"-dropdown-option-body__prefix"),S&&"".concat(x,"-dropdown-option-body__prefix--show-icon")]},[B?B(C):render$1(C.icon)]),h$1("div",{"data-dropdown-option":!0,class:"".concat(x,"-dropdown-option-body__label")},P?P(C):render$1((b=C[this.labelField])!==null&&b!==void 0?b:C.title)),h$1("div",{"data-dropdown-option":!0,class:["".concat(x,"-dropdown-option-body__suffix"),E&&"".concat(x,"-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(x,"-dropdown-offset-container")},h$1(VFollower,{show:this.mergedShowSubmenu,placement:this.placement,to:$&&this.popoverBody||void 0,teleportDisabled:!$},{default:()=>h$1("div",{class:"".concat(x,"-dropdown-menu-wrapper")},A?h$1(Transition,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>M}):M)}))})]}):null);return D?D({node:z,option:C}):z}}),NDropdownGroupHeader=defineComponent({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:d,hasSubmenuRef:b}=inject(dropdownMenuInjectionKey),{renderLabelRef:A,labelFieldRef:C,nodePropsRef:w,renderOptionRef:x}=inject(dropdownInjectionKey);return{labelField:C,showIcon:d,hasSubmenu:b,renderLabel:A,nodeProps:w,renderOption:x}},render(){var d;const{clsPrefix:b,hasSubmenu:A,showIcon:C,nodeProps:w,renderLabel:x,renderOption:S}=this,{rawNode:E}=this.tmNode,P=h$1("div",Object.assign({class:"".concat(b,"-dropdown-option")},w==null?void 0:w(E)),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(E.icon)),h$1("div",{class:"".concat(b,"-dropdown-option-body__label"),"data-dropdown-option":!0},x?x(E):render$1((d=E.title)!==null&&d!==void 0?d:E[this.labelField])),h$1("div",{class:["".concat(b,"-dropdown-option-body__suffix"),A&&"".concat(b,"-dropdown-option-body__suffix--has-submenu")],"data-dropdown-option":!0})));return S?S({node:P,option:E}):P}}),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:A}=this,{children:C}=d;return h$1(Fragment,null,h$1(NDropdownGroupHeader,{clsPrefix:A,tmNode:d,key:d.key}),C==null?void 0:C.map(w=>{const{rawNode:x}=w;return x.show===!1?null:isDividerNode(x)?h$1(NDropdownDivider,{clsPrefix:A,key:w.key}):w.isGroup?(warn$3("dropdown","`group` node is not allowed to be put in `group` node."),null):h$1(NDropdownOption,{clsPrefix:A,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:A}=inject(dropdownInjectionKey);provide(dropdownMenuInjectionKey,{showIconRef:computed(()=>{const w=b.value;return d.tmNodes.some(x=>{var S;if(x.isGroup)return(S=x.children)===null||S===void 0?void 0:S.some(({rawNode:P})=>w?w(P):P.icon);const{rawNode:E}=x;return w?w(E):E.icon})}),hasSubmenuRef:computed(()=>{const{value:w}=A;return d.tmNodes.some(x=>{var S;if(x.isGroup)return(S=x.children)===null||S===void 0?void 0:S.some(({rawNode:P})=>isSubmenuNode(P,w));const{rawNode:E}=x;return isSubmenuNode(E,w)})})});const C=ref(null);return provide(modalBodyInjectionKey,null),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,C),{bodyRef:C}},render(){const{parentKey:d,clsPrefix:b,scrollable:A}=this,C=this.tmNodes.map(w=>{const{rawNode:x}=w;return x.show===!1?null:isRenderNode(x)?h$1(NDropdownRenderOption,{tmNode:w,key:w.key}):isDividerNode(x)?h$1(NDropdownDivider,{clsPrefix:b,key:w.key}):isGroupNode(x)?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:x.props,scrollable:A})});return h$1("div",{class:["".concat(b,"-dropdown-menu"),A&&"".concat(b,"-dropdown-menu--scrollable")],ref:"bodyRef"},A?h$1(XScrollbar,{contentClass:"".concat(b,"-dropdown-menu__content")},{default:()=>C}):C,this.showArrow?renderArrow({clsPrefix:b,arrowStyle:this.arrowStyle}):null)}}),style$b=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),A=useMergedState(toRef(d,"show"),b),C=computed(()=>{const{keyField:X,childrenField:se}=d;return createTreeMate(d.options,{getKey(he){return he[X]},getDisabled(he){return he.disabled===!0},getIgnored(he){return he.type==="divider"||he.type==="render"},getChildren(he){return he[se]}})}),w=computed(()=>C.value.treeNodes),x=ref(null),S=ref(null),E=ref(null),P=computed(()=>{var X,se,he;return(he=(se=(X=x.value)!==null&&X!==void 0?X:S.value)!==null&&se!==void 0?se:E.value)!==null&&he!==void 0?he:null}),B=computed(()=>C.value.getPath(P.value).keyPath),D=computed(()=>C.value.getPath(d.value).keyPath),k=useMemo(()=>d.keyboard&&A.value);useKeyboard({keydown:{ArrowUp:{prevent:!0,handler:U},ArrowRight:{prevent:!0,handler:V},ArrowDown:{prevent:!0,handler:W},ArrowLeft:{prevent:!0,handler:q},Enter:{prevent:!0,handler:K},Escape:Q}},k);const{mergedClsPrefixRef:I,inlineThemeDisabled:$}=useConfig(d),M=useTheme("Dropdown","-dropdown",style$b,dropdownLight$1,d,I);provide(dropdownInjectionKey,{labelFieldRef:toRef(d,"labelField"),childrenFieldRef:toRef(d,"childrenField"),renderLabelRef:toRef(d,"renderLabel"),renderIconRef:toRef(d,"renderIcon"),hoverKeyRef:x,keyboardKeyRef:S,lastToggledSubmenuKeyRef:E,pendingKeyPathRef:B,activeKeyPathRef:D,animatedRef:toRef(d,"animated"),mergedShowRef:A,nodePropsRef:toRef(d,"nodeProps"),renderOptionRef:toRef(d,"renderOption"),menuPropsRef:toRef(d,"menuProps"),doSelect:L,doUpdateShow:H}),watch(A,X=>{!d.animated&&!X&&z()});function L(X,se){const{onSelect:he}=d;he&&call$1(he,X,se)}function H(X){const{"onUpdate:show":se,onUpdateShow:he}=d;se&&call$1(se,X),he&&call$1(he,X),b.value=X}function z(){x.value=null,S.value=null,E.value=null}function Q(){H(!1)}function q(){te("left")}function V(){te("right")}function U(){te("up")}function W(){te("down")}function K(){const X=Z();X!=null&&X.isLeaf&&A.value&&(L(X.key,X.rawNode),H(!1))}function Z(){var X;const{value:se}=C,{value:he}=P;return!se||he===null?null:(X=se.getNode(he))!==null&&X!==void 0?X:null}function te(X){const{value:se}=P,{value:{getFirstAvailableNode:he}}=C;let me=null;if(se===null){const ie=he();ie!==null&&(me=ie.key)}else{const ie=Z();if(ie){let de;switch(X){case"down":de=ie.getNext();break;case"up":de=ie.getPrev();break;case"right":de=ie.getChild();break;case"left":de=ie.getParent();break}de&&(me=de.key)}}me!==null&&(x.value=null,S.value=me)}const ne=computed(()=>{const{size:X,inverted:se}=d,{common:{cubicBezierEaseInOut:he},self:me}=M.value,{padding:ie,dividerColor:de,borderRadius:be,optionOpacityDisabled:ge,[createKey("optionIconSuffixWidth",X)]:Se,[createKey("optionSuffixWidth",X)]:je,[createKey("optionIconPrefixWidth",X)]:Ye,[createKey("optionPrefixWidth",X)]:st,[createKey("fontSize",X)]:ot,[createKey("optionHeight",X)]:et,[createKey("optionIconSize",X)]:lt}=me,Me={"--n-bezier":he,"--n-font-size":ot,"--n-padding":ie,"--n-border-radius":be,"--n-option-height":et,"--n-option-prefix-width":st,"--n-option-icon-prefix-width":Ye,"--n-option-suffix-width":je,"--n-option-icon-suffix-width":Se,"--n-option-icon-size":lt,"--n-divider-color":de,"--n-option-opacity-disabled":ge};return se?(Me["--n-color"]=me.colorInverted,Me["--n-option-color-hover"]=me.optionColorHoverInverted,Me["--n-option-color-active"]=me.optionColorActiveInverted,Me["--n-option-text-color"]=me.optionTextColorInverted,Me["--n-option-text-color-hover"]=me.optionTextColorHoverInverted,Me["--n-option-text-color-active"]=me.optionTextColorActiveInverted,Me["--n-option-text-color-child-active"]=me.optionTextColorChildActiveInverted,Me["--n-prefix-color"]=me.prefixColorInverted,Me["--n-suffix-color"]=me.suffixColorInverted,Me["--n-group-header-text-color"]=me.groupHeaderTextColorInverted):(Me["--n-color"]=me.color,Me["--n-option-color-hover"]=me.optionColorHover,Me["--n-option-color-active"]=me.optionColorActive,Me["--n-option-text-color"]=me.optionTextColor,Me["--n-option-text-color-hover"]=me.optionTextColorHover,Me["--n-option-text-color-active"]=me.optionTextColorActive,Me["--n-option-text-color-child-active"]=me.optionTextColorChildActive,Me["--n-prefix-color"]=me.prefixColor,Me["--n-suffix-color"]=me.suffixColor,Me["--n-group-header-text-color"]=me.groupHeaderTextColor),Me}),ue=$?useThemeClass("dropdown",computed(()=>"".concat(d.size[0]).concat(d.inverted?"i":"")),ne,d):void 0;return{mergedClsPrefix:I,mergedTheme:M,tmNodes:w,mergedShow:A,handleAfterLeave:()=>{d.animated&&z()},doUpdateShow:H,cssVars:$?void 0:ne,themeClass:ue==null?void 0:ue.themeClass,onRender:ue==null?void 0:ue.onRender}},render(){const d=(C,w,x,S,E)=>{var P;const{mergedClsPrefix:B,menuProps:D}=this;(P=this.onRender)===null||P===void 0||P.call(this);const k=(D==null?void 0:D(void 0,this.tmNodes.map($=>$.rawNode)))||{},I={ref:createRefSetter(w),class:[C,"".concat(B,"-dropdown"),this.themeClass],clsPrefix:B,tmNodes:this.tmNodes,style:[x,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:S,onMouseleave:E};return h$1(NDropdownMenu,mergeProps(this.$attrs,I,k))},{mergedTheme:b}=this,A={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),A),{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:A,primaryColor:C,hoverColor:w,dividerColor:x,opacityDisabled:S,boxShadow2:E,borderRadius:P,iconColor:B,iconColorDisabled:D}=d;return Object.assign(Object.assign({},commonVars$7),{panelColor:b,panelBoxShadow:E,panelDividerColor:x,itemTextColor:A,itemTextColorActive:C,itemColorHover:w,itemOpacityDisabled:S,itemBorderRadius:P,borderRadius:P,iconColor:B,iconColorDisabled:D})},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:A,textColor2:C,textColorDisabled:w,popoverColor:x,primaryColor:S,borderRadiusSmall:E,iconColor:P,iconColorDisabled:B,textColor1:D,dividerColor:k,boxShadow2:I,borderRadius:$,fontWeightStrong:M}=d;return Object.assign(Object.assign({},commonVars$6),{itemFontSize:A,calendarDaysFontSize:A,calendarTitleFontSize:A,itemTextColor:C,itemTextColorDisabled:w,itemTextColorActive:x,itemTextColorCurrent:S,itemColorIncluded:changeColor(S,{alpha:.1}),itemColorHover:b,itemColorDisabled:b,itemColorActive:S,itemBorderRadius:E,panelColor:x,panelTextColor:C,arrowColor:P,calendarTitleTextColor:D,calendarTitleColorHover:b,calendarDaysTextColor:C,panelHeaderDividerColor:k,calendarDaysDividerColor:k,calendarDividerColor:k,panelActionDividerColor:k,panelBoxShadow:I,panelBorderRadius:$,calendarTitleFontWeight:M,scrollItemBorderRadius:$,iconColor:P,iconColorDisabled:B})},datePickerDark={name:"DatePicker",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1,TimePicker:timePickerDark$1,Scrollbar:scrollbarDark$1},self(d){const{popoverColor:b,hoverColor:A,primaryColor:C}=d,w=self$s(d);return w.itemColorDisabled=composite(b,A),w.itemColorIncluded=changeColor(C,{alpha:.15}),w.itemColorHover=composite(b,A),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:A,textColor1:C,cardColor:w,modalColor:x,popoverColor:S,dividerColor:E,borderRadius:P,fontWeightStrong:B,lineHeight:D,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:$}=d;return Object.assign(Object.assign({},commonVariables$7),{lineHeight:D,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:$,titleTextColor:C,thColor:composite(w,b),thColorModal:composite(x,b),thColorPopover:composite(S,b),thTextColor:C,thFontWeight:B,tdTextColor:A,tdColor:w,tdColorModal:x,tdColorPopover:S,borderColor:composite(w,E),borderColorModal:composite(x,E),borderColorPopover:composite(S,E),borderRadius:P})},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:A,modalColor:C,closeIconColor:w,closeIconColorHover:x,closeIconColorPressed:S,closeColorHover:E,closeColorPressed:P,infoColor:B,successColor:D,warningColor:k,errorColor:I,primaryColor:$,dividerColor:M,borderRadius:L,fontWeightStrong:H,lineHeight:z,fontSize:Q}=d;return Object.assign(Object.assign({},commonVars$5),{fontSize:Q,lineHeight:z,border:"1px solid ".concat(M),titleTextColor:b,textColor:A,color:C,closeColorHover:E,closeColorPressed:P,closeIconColor:w,closeIconColorHover:x,closeIconColorPressed:S,closeBorderRadius:L,iconColor:$,iconColorInfo:B,iconColorSuccess:D,iconColorWarning:k,iconColorError:I,borderRadius:L,titleFontWeight:H})},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$a=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:A,inlineThemeDisabled:C}=useConfig(d),w=computed(()=>{var k,I;const{iconPlacement:$}=d;return $||((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 x(k){const{onPositiveClick:I}=d;I&&I(k)}function S(k){const{onNegativeClick:I}=d;I&&I(k)}function E(){const{onClose:k}=d;k&&k()}const P=useTheme("Dialog","-dialog",style$a,dialogLight$1,d,A),B=computed(()=>{const{type:k}=d,I=w.value,{common:{cubicBezierEaseInOut:$},self:{fontSize:M,lineHeight:L,border:H,titleTextColor:z,textColor:Q,color:q,closeBorderRadius:V,closeColorHover:U,closeColorPressed:W,closeIconColor:K,closeIconColorHover:Z,closeIconColorPressed:te,closeIconSize:ne,borderRadius:ue,titleFontWeight:X,titleFontSize:se,padding:he,iconSize:me,actionSpace:ie,contentMargin:de,closeSize:be,[I==="top"?"iconMarginIconTop":"iconMargin"]:ge,[I==="top"?"closeMarginIconTop":"closeMargin"]:Se,[createKey("iconColor",k)]:je}}=P.value;return{"--n-font-size":M,"--n-icon-color":je,"--n-bezier":$,"--n-close-margin":Se,"--n-icon-margin":ge,"--n-icon-size":me,"--n-close-size":be,"--n-close-icon-size":ne,"--n-close-border-radius":V,"--n-close-color-hover":U,"--n-close-color-pressed":W,"--n-close-icon-color":K,"--n-close-icon-color-hover":Z,"--n-close-icon-color-pressed":te,"--n-color":q,"--n-text-color":Q,"--n-border-radius":ue,"--n-padding":he,"--n-line-height":L,"--n-border":H,"--n-content-margin":de,"--n-title-font-size":se,"--n-title-font-weight":X,"--n-title-text-color":z,"--n-action-space":ie}}),D=C?useThemeClass("dialog",computed(()=>"".concat(d.type[0]).concat(w.value[0])),B,d):void 0;return{mergedClsPrefix:A,mergedIconPlacement:w,mergedTheme:P,handlePositiveClick:x,handleNegativeClick:S,handleCloseClick:E,cssVars:C?void 0:B,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender}},render(){var d;const{bordered:b,mergedIconPlacement:A,cssVars:C,closable:w,showIcon:x,title:S,content:E,action:P,negativeText:B,positiveText:D,positiveButtonProps:k,negativeButtonProps:I,handlePositiveClick:$,handleNegativeClick:M,mergedTheme:L,loading:H,type:z,mergedClsPrefix:Q}=this;(d=this.onRender)===null||d===void 0||d.call(this);const q=x?h$1(NBaseIcon,{clsPrefix:Q,class:"".concat(Q,"-dialog__icon")},{default:()=>resolveWrappedSlot(this.$slots.icon,U=>U||(this.icon?render$1(this.icon):iconRenderMap$2[this.type]()))}):null,V=resolveWrappedSlot(this.$slots.action,U=>U||D||B||P?h$1("div",{class:"".concat(Q,"-dialog__action")},U||(P?[render$1(P)]:[this.negativeText&&h$1(NButton,Object.assign({theme:L.peers.Button,themeOverrides:L.peerOverrides.Button,ghost:!0,size:"small",onClick:M},I),{default:()=>render$1(this.negativeText)}),this.positiveText&&h$1(NButton,Object.assign({theme:L.peers.Button,themeOverrides:L.peerOverrides.Button,size:"small",type:z==="default"?"primary":z,disabled:H,loading:H,onClick:$},k),{default:()=>render$1(this.positiveText)})])):null);return h$1("div",{class:["".concat(Q,"-dialog"),this.themeClass,this.closable&&"".concat(Q,"-dialog--closable"),"".concat(Q,"-dialog--icon-").concat(A),b&&"".concat(Q,"-dialog--bordered")],style:C,role:"dialog"},w?h$1(NBaseClose,{clsPrefix:Q,class:"".concat(Q,"-dialog__close"),onClick:this.handleCloseClick}):null,x&&A==="top"?h$1("div",{class:"".concat(Q,"-dialog-icon-container")},q):null,h$1("div",{class:"".concat(Q,"-dialog__title")},x&&A==="left"?q:null,resolveSlot(this.$slots.header,()=>[render$1(S)])),h$1("div",{class:["".concat(Q,"-dialog__content"),V?"":"".concat(Q,"-dialog__content--last")]},resolveSlot(this.$slots.default,()=>[render$1(E)])),V)}}),dialogProviderInjectionKey="n-dialog-provider",dialogApiInjectionKey="n-dialog-api",dialogReactiveListInjectionKey="n-dialog-reactive-list",self$p=d=>{const{modalColor:b,textColor2:A,boxShadow3:C}=d;return{color:b,textColor:A,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),A=ref(null),C=ref(d.show),w=ref(null),x=ref(null);watch(toRef(d,"show"),H=>{H&&(C.value=!0)}),useLockHtmlScroll(computed(()=>d.blockScroll&&C.value));const S=inject(modalInjectionKey);function E(){if(S.transformOriginRef.value==="center")return"";const{value:H}=w,{value:z}=x;if(H===null||z===null)return"";if(A.value){const Q=A.value.containerScrollTop;return"".concat(H,"px ").concat(z+Q,"px")}return""}function P(H){if(S.transformOriginRef.value==="center")return;const z=S.getMousePosition();if(!z||!A.value)return;const Q=A.value.containerScrollTop,{offsetLeft:q,offsetTop:V}=H;if(z){const U=z.y,W=z.x;w.value=-(q-W),x.value=-(V-U-Q)}H.style.transformOrigin=E()}function B(H){nextTick(()=>{P(H)})}function D(H){H.style.transformOrigin=E(),d.onBeforeLeave()}function k(){C.value=!1,w.value=null,x.value=null,d.onAfterLeave()}function I(){const{onClose:H}=d;H&&H()}function $(){d.onNegativeClick()}function M(){d.onPositiveClick()}const L=ref(null);return watch(L,H=>{H&&nextTick(()=>{const z=H.el;z&&b.value!==z&&(b.value=z)})}),provide(modalBodyInjectionKey,b),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,null),{mergedTheme:S.mergedThemeRef,appear:S.appearRef,isMounted:S.isMountedRef,mergedClsPrefix:S.mergedClsPrefixRef,bodyRef:b,scrollbarRef:A,displayed:C,childNodeRef:L,handlePositiveClick:M,handleNegativeClick:$,handleCloseClick:I,handleAfterLeave:k,handleBeforeLeave:D,handleEnter:B}},render(){const{$slots:d,$attrs:b,handleEnter:A,handleAfterLeave:C,handleBeforeLeave:w,preset:x,mergedClsPrefix:S}=this;let E=null;if(!x){if(E=getFirstSlotVNode(d),!E){warn$3("modal","default slot is empty");return}E=cloneVNode(E),E.props=mergeProps({class:"".concat(S,"-modal")},b,E.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 P;return[(P=this.renderMask)===null||P===void 0?void 0:P.call(this),h$1(FocusTrap,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var B;return h$1(Transition,{name:"fade-in-scale-up-transition",appear:(B=this.appear)!==null&&B!==void 0?B:this.isMounted,onEnter:A,onAfterEnter:this.onAfterEnter,onAfterLeave:C,onBeforeLeave:w},{default:()=>{const D=[[vShow,this.show]],{onClickoutside:k}=this;return k&&D.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=E,D)}})}})]}})),[[vShow,this.displayDirective==="if"||this.displayed||this.show]]):null}}),style$9=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:A,namespaceRef:C,inlineThemeDisabled:w}=useConfig(d),x=useTheme("Modal","-modal",style$9,modalLight$1,d,A),S=useClicked(64),E=useClickPosition(),P=isMounted(),B=d.internalDialog?inject(dialogProviderInjectionKey,null):null,D=useIsComposing();function k(U){const{onUpdateShow:W,"onUpdate:show":K,onHide:Z}=d;W&&call$1(W,U),K&&call$1(K,U),Z&&!U&&Z(U)}function I(){const{onClose:U}=d;U?Promise.resolve(U()).then(W=>{W!==!1&&k(!1)}):k(!1)}function $(){const{onPositiveClick:U}=d;U?Promise.resolve(U()).then(W=>{W!==!1&&k(!1)}):k(!1)}function M(){const{onNegativeClick:U}=d;U?Promise.resolve(U()).then(W=>{W!==!1&&k(!1)}):k(!1)}function L(){const{onBeforeLeave:U,onBeforeHide:W}=d;U&&call$1(U),W&&W()}function H(){const{onAfterLeave:U,onAfterHide:W}=d;U&&call$1(U),W&&W()}function z(U){var W;const{onMaskClick:K}=d;K&&K(U),d.maskClosable&&!((W=b.value)===null||W===void 0)&&W.contains(getPreciseEventTarget(U))&&k(!1)}function Q(U){var W;(W=d.onEsc)===null||W===void 0||W.call(d),d.show&&d.closeOnEsc&&eventEffectNotPerformed(U)&&!D.value&&k(!1)}provide(modalInjectionKey,{getMousePosition:()=>{if(B){const{clickedRef:U,clickPositionRef:W}=B;if(U.value&&W.value)return W.value}return S.value?E.value:null},mergedClsPrefixRef:A,mergedThemeRef:x,isMountedRef:P,appearRef:toRef(d,"internalAppear"),transformOriginRef:toRef(d,"transformOrigin")});const q=computed(()=>{const{common:{cubicBezierEaseOut:U},self:{boxShadow:W,color:K,textColor:Z}}=x.value;return{"--n-bezier-ease-out":U,"--n-box-shadow":W,"--n-color":K,"--n-text-color":Z}}),V=w?useThemeClass("theme-class",void 0,q,d):void 0;return{mergedClsPrefix:A,namespace:C,isMounted:P,containerRef:b,presetProps:computed(()=>keep(d,presetPropsKeys)),handleEsc:Q,handleAfterLeave:H,handleClickoutside:z,handleBeforeLeave:L,doUpdateShow:k,handleNegativeClick:M,handlePositiveClick:$,handleCloseClick:I,cssVars:w?void 0:q,themeClass:V==null?void 0:V.themeClass,onRender:V==null?void 0:V.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:A}=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:A?void 0:this.handleClickoutside,renderMask:A?()=>{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 A(){const{onInternalAfterLeave:D,internalKey:k,onAfterLeave:I}=d;D&&D(k),I&&I()}function C(D){const{onPositiveClick:k}=d;k?Promise.resolve(k(D)).then(I=>{I!==!1&&P()}):P()}function w(D){const{onNegativeClick:k}=d;k?Promise.resolve(k(D)).then(I=>{I!==!1&&P()}):P()}function x(){const{onClose:D}=d;D?Promise.resolve(D()).then(k=>{k!==!1&&P()}):P()}function S(D){const{onMaskClick:k,maskClosable:I}=d;k&&(k(D),I&&P())}function E(){const{onEsc:D}=d;D&&D()}function P(){b.value=!1}function B(D){b.value=D}return{show:b,hide:P,handleUpdateShow:B,handleAfterLeave:A,handleCloseClick:x,handleNegativeClick:w,handlePositiveClick:C,handleMaskClick:S,handleEsc:E}},render(){const{handlePositiveClick:d,handleUpdateShow:b,handleNegativeClick:A,handleCloseClick:C,handleAfterLeave:w,handleMaskClick:x,handleEsc:S,to:E,maskClosable:P,show:B}=this;return h$1(NModal,{show:B,onUpdateShow:b,onMaskClick:x,onEsc:S,to:E,maskClosable:P,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:A,onPositiveClick:d}))})}}),dialogProviderProps={injectionKey:String,to:[String,Object]},NDialogProvider=defineComponent({name:"DialogProvider",props:dialogProviderProps,setup(){const d=ref([]),b={};function A(E={}){const P=createId(),B=reactive(Object.assign(Object.assign({},E),{key:P,destroy:()=>{b["n-dialog-".concat(P)].hide()}}));return d.value.push(B),B}const C=["info","success","warning","error"].map(E=>P=>A(Object.assign(Object.assign({},P),{type:E})));function w(E){const{value:P}=d;P.splice(P.findIndex(B=>B.key===E),1)}function x(){Object.values(b).forEach(E=>{E.hide()})}const S={create:A,destroyAll:x,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(A=>h$1(NDialogEnvironment,omit(A,["destroy","style"],{internalStyle:A.style,to:this.to,ref:C=>{C===null?delete this.dialogInstRefs["n-dialog-".concat(A.key)]:this.dialogInstRefs["n-dialog-".concat(A.key)]=C},internalKey:A.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:A,fontWeightStrong:C}=d;return{textColor:b,color:A,fontWeight:C}},dividerDark={name:"Divider",common:commonDark,self:self$o},dividerDark$1=dividerDark,self$n=d=>{const{modalColor:b,textColor1:A,textColor2:C,boxShadow3:w,lineHeight:x,fontWeightStrong:S,dividerColor:E,closeColorHover:P,closeColorPressed:B,closeIconColor:D,closeIconColorHover:k,closeIconColorPressed:I,borderRadius:$,primaryColorHover:M}=d;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:b,textColor:C,titleTextColor:A,titleFontSize:"18px",titleFontWeight:S,boxShadow:w,lineHeight:x,headerBorderBottom:"1px solid ".concat(E),footerBorderTop:"1px solid ".concat(E),closeIconColor:D,closeIconColorHover:k,closeIconColorPressed:I,closeSize:"22px",closeIconSize:"18px",closeColorHover:P,closeColorPressed:B,closeBorderRadius:$,resizableTriggerColorHover:M}},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:A}=useConfig(d),C=useTheme("Space","-space",void 0,spaceLight$1,d,b),w=useRtl("Space",A,b);return{useGap:ensureSupportFlexGap(),rtlEnabled:w,mergedClsPrefix:b,margin:computed(()=>{const{size:x}=d;if(Array.isArray(x))return{horizontal:x[0],vertical:x[1]};if(typeof x=="number")return{horizontal:x,vertical:x};const{self:{[createKey("gap",x)]:S}}=C.value,{row:E,col:P}=getGap(S);return{horizontal:depx(P),vertical:depx(E)}})}},render(){const{vertical:d,align:b,inline:A,justify:C,itemStyle:w,margin:x,wrap:S,mergedClsPrefix:E,rtlEnabled:P,useGap:B,wrapItem:D,internalUseGap:k}=this,I=flatten$4(getSlot$1(this));if(!I.length)return null;const $="".concat(x.horizontal,"px"),M="".concat(x.horizontal/2,"px"),L="".concat(x.vertical,"px"),H="".concat(x.vertical/2,"px"),z=I.length-1,Q=C.startsWith("space-");return h$1("div",{role:"none",class:["".concat(E,"-space"),P&&"".concat(E,"-space--rtl")],style:{display:A?"inline-flex":"flex",flexDirection:d?"column":"row",justifyContent:["start","end"].includes(C)?"flex-"+C:C,flexWrap:!S||d?"nowrap":"wrap",marginTop:B||d?"":"-".concat(H),marginBottom:B||d?"":"-".concat(H),alignItems:b,gap:B?"".concat(x.vertical,"px ").concat(x.horizontal,"px"):""}},!D&&(B||k)?I:I.map((q,V)=>h$1("div",{role:"none",style:[w,{maxWidth:"100%"},B?"":d?{marginBottom:V!==z?L:""}:P?{marginLeft:Q?C==="space-between"&&V===z?"":M:V!==z?$:"",marginRight:Q?C==="space-between"&&V===0?"":M:"",paddingTop:H,paddingBottom:H}:{marginRight:Q?C==="space-between"&&V===z?"":M:V!==z?$:"",marginLeft:Q?C==="space-between"&&V===0?"":M:"",paddingTop:H,paddingBottom:H}]},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:A,heightLarge:C,textColor1:w,errorColor:x,warningColor:S,lineHeight:E,textColor3:P}=d;return Object.assign(Object.assign({},commonVariables$5),{blankHeightSmall:b,blankHeightMedium:A,blankHeightLarge:C,lineHeight:E,labelTextColor:w,asteriskColor:x,feedbackTextColorError:x,feedbackTextColorWarning:S,feedbackTextColor:P})},formLight={name:"Form",common:commonLight,self:self$l},formLight$1=formLight,formItemDark={name:"Form",common:commonDark,self:self$l},formDark=formItemDark,style$8=cB("form",[cM("inline","\n width: 100%;\n display: inline-flex;\n align-items: flex-start;\n align-content: space-around;\n ",[cB("form-item",{width:"auto",marginRight:"18px"},[c$3("&:last-child",{marginRight:0})])])]),formInjectionKey="n-form",formItemInstsInjectionKey="n-form-item-insts";var __awaiter$1=globalThis&&globalThis.__awaiter||function(d,b,A,C){function w(x){return x instanceof A?x:new A(function(S){S(x)})}return new(A||(A=Promise))(function(x,S){function E(D){try{B(C.next(D))}catch(k){S(k)}}function P(D){try{B(C.throw(D))}catch(k){S(k)}}function B(D){D.done?x(D.value):w(D.value).then(E,P)}B((C=C.apply(d,b||[])).next())})};const formProps=Object.assign(Object.assign({},useTheme.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:d=>{d.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),NForm=defineComponent({name:"Form",props:formProps,setup(d){const{mergedClsPrefixRef:b}=useConfig(d);useTheme("Form","-form",style$8,formLight$1,d,b);const A={},C=ref(void 0),w=P=>{const B=C.value;(B===void 0||P>=B)&&(C.value=P)};function x(P,B=()=>!0){return __awaiter$1(this,void 0,void 0,function*(){yield new Promise((D,k)=>{const I=[];for(const $ of keysOf(A)){const M=A[$];for(const L of M)L.path&&I.push(L.internalValidate(null,B))}Promise.all(I).then($=>{if($.some(M=>!M.valid)){const M=$.filter(L=>L.errors).map(L=>L.errors);P&&P(M),k(M)}else P&&P(),D()})})})}function S(){for(const P of keysOf(A)){const B=A[P];for(const D of B)D.restoreValidation()}}return provide(formInjectionKey,{props:d,maxChildLabelWidthRef:C,deriveMaxChildLabelWidth:w}),provide(formItemInstsInjectionKey,{formItems:A}),Object.assign({validate:x,restoreValidation:S},{mergedClsPrefix:b})},render(){const{mergedClsPrefix:d}=this;return h$1("form",{class:["".concat(d,"-form"),this.inline&&"".concat(d,"-form--inline")],onSubmit:this.onSubmit},this.$slots)}});function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(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,A){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(w,x,S){var E=[null];E.push.apply(E,x);var P=Function.bind.apply(w,E),B=new P;return S&&_setPrototypeOf(B,S.prototype),B},_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)}var formatRegExp=/%[sdj%]/g,warning=function d(){};typeof process<"u"&&process.env;function convertFieldsError(d){if(!d||!d.length)return null;var b={};return d.forEach(function(A){var C=A.field;b[C]=b[C]||[],b[C].push(A)}),b}function format$1(d){for(var b=arguments.length,A=new Array(b>1?b-1:0),C=1;C=x)return E;switch(E){case"%s":return String(A[w++]);case"%d":return Number(A[w++]);case"%j":try{return JSON.stringify(A[w++])}catch(P){return"[Circular]"}break;default:return E}});return S}return d}function isNativeStringType(d){return d==="string"||d==="url"||d==="hex"||d==="email"||d==="date"||d==="pattern"}function isEmptyValue(d,b){return!!(d==null||b==="array"&&Array.isArray(d)&&!d.length||isNativeStringType(b)&&typeof d=="string"&&!d)}function asyncParallelArray(d,b,A){var C=[],w=0,x=d.length;function S(E){C.push.apply(C,E||[]),w++,w===x&&A(C)}d.forEach(function(E){b(E,S)})}function asyncSerialArray(d,b,A){var C=0,w=d.length;function x(S){if(S&&S.length){A(S);return}var E=C;C=C+1,E()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function d(b){return types.number(b)&&parseInt(b,10)===b},float:function d(b){return types.number(b)&&!types.integer(b)},array:function d(b){return Array.isArray(b)},regexp:function d(b){if(b instanceof RegExp)return!0;try{return!!new RegExp(b)}catch(A){return!1}},date:function d(b){return typeof b.getTime=="function"&&typeof b.getMonth=="function"&&typeof b.getYear=="function"&&!isNaN(b.getTime())},number:function d(b){return isNaN(b)?!1:typeof b=="number"},object:function d(b){return typeof b=="object"&&!types.array(b)},method:function d(b){return typeof b=="function"},email:function d(b){return typeof b=="string"&&b.length<=320&&!!b.match(pattern$2.email)},url:function d(b){return typeof b=="string"&&b.length<=2048&&!!b.match(getUrlRegex())},hex:function d(b){return typeof b=="string"&&!!b.match(pattern$2.hex)}},type$1=function d(b,A,C,w,x){if(b.required&&A===void 0){required$1(b,A,C,w,x);return}var S=["integer","float","array","regexp","object","method","email","number","date","url","hex"],E=b.type;S.indexOf(E)>-1?types[E](A)||w.push(format$1(x.messages.types[E],b.fullField,b.type)):E&&typeof A!==b.type&&w.push(format$1(x.messages.types[E],b.fullField,b.type))},range=function d(b,A,C,w,x){var S=typeof b.len=="number",E=typeof b.min=="number",P=typeof b.max=="number",B=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D=A,k=null,I=typeof A=="number",$=typeof A=="string",M=Array.isArray(A);if(I?k="number":$?k="string":M&&(k="array"),!k)return!1;M&&(D=A.length),$&&(D=A.replace(B,"_").length),S?D!==b.len&&w.push(format$1(x.messages[k].len,b.fullField,b.len)):E&&!P&&Db.max?w.push(format$1(x.messages[k].max,b.fullField,b.max)):E&&P&&(Db.max)&&w.push(format$1(x.messages[k].range,b.fullField,b.min,b.max))},ENUM$1="enum",enumerable$1=function d(b,A,C,w,x){b[ENUM$1]=Array.isArray(b[ENUM$1])?b[ENUM$1]:[],b[ENUM$1].indexOf(A)===-1&&w.push(format$1(x.messages[ENUM$1],b.fullField,b[ENUM$1].join(", ")))},pattern$1=function d(b,A,C,w,x){if(b.pattern){if(b.pattern instanceof RegExp)b.pattern.lastIndex=0,b.pattern.test(A)||w.push(format$1(x.messages.pattern.mismatch,b.fullField,A,b.pattern));else if(typeof b.pattern=="string"){var S=new RegExp(b.pattern);S.test(A)||w.push(format$1(x.messages.pattern.mismatch,b.fullField,A,b.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A,"string")&&!b.required)return C();rules.required(b,A,w,S,x,"string"),isEmptyValue(A,"string")||(rules.type(b,A,w,S,x),rules.range(b,A,w,S,x),rules.pattern(b,A,w,S,x),b.whitespace===!0&&rules.whitespace(b,A,w,S,x))}C(S)},method=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x),A!==void 0&&rules.type(b,A,w,S,x)}C(S)},number=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(A===""&&(A=void 0),isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x),A!==void 0&&(rules.type(b,A,w,S,x),rules.range(b,A,w,S,x))}C(S)},_boolean=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x),A!==void 0&&rules.type(b,A,w,S,x)}C(S)},regexp=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x),isEmptyValue(A)||rules.type(b,A,w,S,x)}C(S)},integer=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x),A!==void 0&&(rules.type(b,A,w,S,x),rules.range(b,A,w,S,x))}C(S)},floatFn=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x),A!==void 0&&(rules.type(b,A,w,S,x),rules.range(b,A,w,S,x))}C(S)},array=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(A==null&&!b.required)return C();rules.required(b,A,w,S,x,"array"),A!=null&&(rules.type(b,A,w,S,x),rules.range(b,A,w,S,x))}C(S)},object=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x),A!==void 0&&rules.type(b,A,w,S,x)}C(S)},ENUM="enum",enumerable=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x),A!==void 0&&rules[ENUM](b,A,w,S,x)}C(S)},pattern=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A,"string")&&!b.required)return C();rules.required(b,A,w,S,x),isEmptyValue(A,"string")||rules.pattern(b,A,w,S,x)}C(S)},date=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A,"date")&&!b.required)return C();if(rules.required(b,A,w,S,x),!isEmptyValue(A,"date")){var P;A instanceof Date?P=A:P=new Date(A),rules.type(b,P,w,S,x),P&&rules.range(b,P.getTime(),w,S,x)}}C(S)},required=function d(b,A,C,w,x){var S=[],E=Array.isArray(A)?"array":typeof A;rules.required(b,A,w,S,x,E),C(S)},type=function d(b,A,C,w,x){var S=b.type,E=[],P=b.required||!b.required&&w.hasOwnProperty(b.field);if(P){if(isEmptyValue(A,S)&&!b.required)return C();rules.required(b,A,w,E,x,S),isEmptyValue(A,S)||rules.type(b,A,w,E,x)}C(E)},any=function d(b,A,C,w,x){var S=[],E=b.required||!b.required&&w.hasOwnProperty(b.field);if(E){if(isEmptyValue(A)&&!b.required)return C();rules.required(b,A,w,S,x)}C(S)},validators={string,method,number,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var b=JSON.parse(JSON.stringify(this));return b.clone=this.clone,b}}}var messages=newMessages(),Schema=function(){function d(A){this.rules=null,this._messages=messages,this.define(A)}var b=d.prototype;return b.define=function(C){var w=this;if(!C)throw new Error("Cannot configure a schema with no rules");if(typeof C!="object"||Array.isArray(C))throw new Error("Rules must be an object");this.rules={},Object.keys(C).forEach(function(x){var S=C[x];w.rules[x]=Array.isArray(S)?S:[S]})},b.messages=function(C){return C&&(this._messages=deepMerge(newMessages(),C)),this._messages},b.validate=function(C,w,x){var S=this;w===void 0&&(w={}),x===void 0&&(x=function(){});var E=C,P=w,B=x;if(typeof P=="function"&&(B=P,P={}),!this.rules||Object.keys(this.rules).length===0)return B&&B(null,E),Promise.resolve(E);function D(L){var H=[],z={};function Q(V){if(Array.isArray(V)){var U;H=(U=H).concat.apply(U,V)}else H.push(V)}for(var q=0;qd.size!==void 0?d.size:(b==null?void 0:b.props.size)!==void 0?b.props.size:"medium")}}function formItemMisc(d){const b=inject(formInjectionKey,null),A=computed(()=>{const{labelPlacement:$}=d;return $!==void 0?$:b!=null&&b.props.labelPlacement?b.props.labelPlacement:"top"}),C=computed(()=>A.value==="left"&&(d.labelWidth==="auto"||(b==null?void 0:b.props.labelWidth)==="auto")),w=computed(()=>{if(A.value==="top")return;const{labelWidth:$}=d;if($!==void 0&&$!=="auto")return formatLength($);if(C.value){const M=b==null?void 0:b.maxChildLabelWidthRef.value;return M!==void 0?formatLength(M):void 0}if((b==null?void 0:b.props.labelWidth)!==void 0)return formatLength(b.props.labelWidth)}),x=computed(()=>{const{labelAlign:$}=d;if($)return $;if(b!=null&&b.props.labelAlign)return b.props.labelAlign}),S=computed(()=>{var $;return[($=d.labelProps)===null||$===void 0?void 0:$.style,d.labelStyle,{width:w.value}]}),E=computed(()=>{const{showRequireMark:$}=d;return $!==void 0?$:b==null?void 0:b.props.showRequireMark}),P=computed(()=>{const{requireMarkPlacement:$}=d;return $!==void 0?$:(b==null?void 0:b.props.requireMarkPlacement)||"right"}),B=ref(!1),D=computed(()=>{const{validationStatus:$}=d;if($!==void 0)return $;if(B.value)return"error"}),k=computed(()=>{const{showFeedback:$}=d;return $!==void 0?$:(b==null?void 0:b.props.showFeedback)!==void 0?b.props.showFeedback:!0}),I=computed(()=>{const{showLabel:$}=d;return $!==void 0?$:(b==null?void 0:b.props.showLabel)!==void 0?b.props.showLabel:!0});return{validationErrored:B,mergedLabelStyle:S,mergedLabelPlacement:A,mergedLabelAlign:x,mergedShowRequireMark:E,mergedRequireMarkPlacement:P,mergedValidationStatus:D,mergedShowFeedback:k,mergedShowLabel:I,isAutoLabelWidth:C}}function formItemRule(d){const b=inject(formInjectionKey,null),A=computed(()=>{const{rulePath:S}=d;if(S!==void 0)return S;const{path:E}=d;if(E!==void 0)return E}),C=computed(()=>{const S=[],{rule:E}=d;if(E!==void 0&&(Array.isArray(E)?S.push(...E):S.push(E)),b){const{rules:P}=b.props,{value:B}=A;if(P!==void 0&&B!==void 0){const D=get(P,B);D!==void 0&&(Array.isArray(D)?S.push(...D):S.push(D))}}return S}),w=computed(()=>C.value.some(S=>S.required)),x=computed(()=>w.value||d.required);return{mergedRules:C,mergedRequired:x}}const{cubicBezierEaseInOut}=commonVariables$m;function fadeDownTransition({name:d="fade-down",fromOffset:b="-4px",enterDuration:A=".3s",leaveDuration:C=".3s",enterCubicBezier:w=cubicBezierEaseInOut,leaveCubicBezier:x=cubicBezierEaseInOut}={}){return[c$3("&.".concat(d,"-transition-enter-from, &.").concat(d,"-transition-leave-to"),{opacity:0,transform:"translateY(".concat(b,")")}),c$3("&.".concat(d,"-transition-enter-to, &.").concat(d,"-transition-leave-from"),{opacity:1,transform:"translateY(0)"}),c$3("&.".concat(d,"-transition-leave-active"),{transition:"opacity ".concat(C," ").concat(x,", transform ").concat(C," ").concat(x)}),c$3("&.".concat(d,"-transition-enter-active"),{transition:"opacity ".concat(A," ").concat(w,", transform ").concat(A," ").concat(w)})]}const style$7=cB("form-item","\n display: grid;\n line-height: var(--n-line-height);\n",[cB("form-item-label","\n grid-area: label;\n align-items: center;\n line-height: 1.25;\n text-align: var(--n-label-text-align);\n font-size: var(--n-label-font-size);\n min-height: var(--n-label-height);\n padding: var(--n-label-padding);\n color: var(--n-label-text-color);\n transition: color .3s var(--n-bezier);\n box-sizing: border-box;\n font-weight: var(--n-label-font-weight);\n ",[cE("asterisk","\n white-space: nowrap;\n user-select: none;\n -webkit-user-select: none;\n color: var(--n-asterisk-color);\n transition: color .3s var(--n-bezier);\n "),cE("asterisk-placeholder","\n grid-area: mark;\n user-select: none;\n -webkit-user-select: none;\n visibility: hidden; \n ")]),cB("form-item-blank","\n grid-area: blank;\n min-height: var(--n-blank-height);\n "),cM("auto-label-width",[cB("form-item-label","white-space: nowrap;")]),cM("left-labelled",'\n grid-template-areas:\n "label blank"\n "label feedback";\n grid-template-columns: auto minmax(0, 1fr);\n grid-template-rows: auto 1fr;\n align-items: start;\n ',[cB("form-item-label","\n display: grid;\n grid-template-columns: 1fr auto;\n min-height: var(--n-blank-height);\n height: auto;\n box-sizing: border-box;\n flex-shrink: 0;\n flex-grow: 0;\n ",[cM("reverse-columns-space","\n grid-template-columns: auto 1fr;\n "),cM("left-mark",'\n grid-template-areas:\n "mark text"\n ". text";\n '),cM("right-mark",'\n grid-template-areas: \n "text mark"\n "text .";\n '),cM("right-hanging-mark",'\n grid-template-areas: \n "text mark"\n "text .";\n '),cE("text","\n grid-area: text; \n "),cE("asterisk","\n grid-area: mark; \n align-self: end;\n ")])]),cM("top-labelled",'\n grid-template-areas:\n "label"\n "blank"\n "feedback";\n grid-template-rows: minmax(var(--n-label-height), auto) 1fr;\n grid-template-columns: minmax(0, 100%);\n ',[cM("no-label",'\n grid-template-areas:\n "blank"\n "feedback";\n grid-template-rows: 1fr;\n '),cB("form-item-label","\n display: flex;\n align-items: flex-start;\n justify-content: var(--n-label-text-align);\n ")]),cB("form-item-blank","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n position: relative;\n "),cB("form-item-feedback-wrapper","\n grid-area: feedback;\n box-sizing: border-box;\n min-height: var(--n-feedback-height);\n font-size: var(--n-feedback-font-size);\n line-height: 1.25;\n transform-origin: top left;\n ",[c$3("&:not(:empty)","\n padding: var(--n-feedback-padding);\n "),cB("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[cM("warning",{color:"var(--n-feedback-text-color-warning)"}),cM("error",{color:"var(--n-feedback-text-color-error)"}),fadeDownTransition({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var __awaiter=globalThis&&globalThis.__awaiter||function(d,b,A,C){function w(x){return x instanceof A?x:new A(function(S){S(x)})}return new(A||(A=Promise))(function(x,S){function E(D){try{B(C.next(D))}catch(k){S(k)}}function P(D){try{B(C.throw(D))}catch(k){S(k)}}function B(D){D.done?x(D.value):w(D.value).then(E,P)}B((C=C.apply(d,b||[])).next())})};const formItemProps=Object.assign(Object.assign({},useTheme.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object});function wrapValidator(d,b){return(...A)=>{try{const C=d(...A);return!b&&(typeof C=="boolean"||C instanceof Error||Array.isArray(C))||C!=null&&C.then?C:(C===void 0||warn$3("form-item/validate","You return a ".concat(typeof C," ")+"typed value in the validator method, which is not recommended. Please use "+(b?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(C){warn$3("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(C);return}}}const NFormItem=defineComponent({name:"FormItem",props:formItemProps,setup(d){useInjectionInstanceCollection(formItemInstsInjectionKey,"formItems",toRef(d,"path"));const{mergedClsPrefixRef:b,inlineThemeDisabled:A}=useConfig(d),C=inject(formInjectionKey,null),w=formItemSize(d),x=formItemMisc(d),{validationErrored:S}=x,{mergedRequired:E,mergedRules:P}=formItemRule(d),{mergedSize:B}=w,{mergedLabelPlacement:D,mergedLabelAlign:k,mergedRequireMarkPlacement:I}=x,$=ref([]),M=ref(createId()),L=C?toRef(C.props,"disabled"):ref(!1),H=useTheme("Form","-form-item",style$7,formLight$1,d,b);watch(toRef(d,"path"),()=>{d.ignorePathChange||z()});function z(){$.value=[],S.value=!1,d.feedback&&(M.value=createId())}function Q(){K("blur")}function q(){K("change")}function V(){K("focus")}function U(){K("input")}function W(se,he){return __awaiter(this,void 0,void 0,function*(){let me,ie,de,be;typeof se=="string"?(me=se,ie=he):se!==null&&typeof se=="object"&&(me=se.trigger,ie=se.callback,de=se.shouldRuleBeApplied,be=se.options),yield new Promise((ge,Se)=>{K(me,de,be).then(({valid:je,errors:Ye})=>{je?(ie&&ie(),ge()):(ie&&ie(Ye),Se(Ye))})})})}const K=(se=null,he=()=>!0,me={suppressWarning:!0})=>__awaiter(this,void 0,void 0,function*(){const{path:ie}=d;me?me.first||(me.first=d.first):me={};const{value:de}=P,be=C?get(C.props.model,ie||""):void 0,ge={},Se={},je=(se?de.filter(et=>Array.isArray(et.trigger)?et.trigger.includes(se):et.trigger===se):de).filter(he).map((et,lt)=>{const Me=Object.assign({},et);if(Me.validator&&(Me.validator=wrapValidator(Me.validator,!1)),Me.asyncValidator&&(Me.asyncValidator=wrapValidator(Me.asyncValidator,!0)),Me.renderMessage){const Oe="__renderMessage__".concat(lt);Se[Oe]=Me.message,Me.message=Oe,ge[Oe]=Me.renderMessage}return Me});if(!je.length)return{valid:!0};const Ye=ie!=null?ie:"__n_no_path__",st=new Schema({[Ye]:je}),{validateMessages:ot}=(C==null?void 0:C.props)||{};return ot&&st.messages(ot),yield new Promise(et=>{st.validate({[Ye]:be},me,lt=>{lt!=null&<.length?($.value=lt.map(Me=>{const Oe=(Me==null?void 0:Me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?ge[Oe]():Oe}}),lt.forEach(Me=>{var Oe;!((Oe=Me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(Me.message=Se[Me.message])}),S.value=!0,et({valid:!1,errors:lt})):(z(),et({valid:!0}))})})});provide(formItemInjectionKey,{path:toRef(d,"path"),disabled:L,mergedSize:w.mergedSize,mergedValidationStatus:x.mergedValidationStatus,restoreValidation:z,handleContentBlur:Q,handleContentChange:q,handleContentFocus:V,handleContentInput:U});const Z={validate:W,restoreValidation:z,internalValidate:K},te=ref(null);onMounted(()=>{if(!x.isAutoLabelWidth.value)return;const se=te.value;if(se!==null){const he=se.style.whiteSpace;se.style.whiteSpace="nowrap",se.style.width="",C==null||C.deriveMaxChildLabelWidth(Number(getComputedStyle(se).width.slice(0,-2))),se.style.whiteSpace=he}});const ne=computed(()=>{var se;const{value:he}=B,{value:me}=D,ie=me==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:de},self:{labelTextColor:be,asteriskColor:ge,lineHeight:Se,feedbackTextColor:je,feedbackTextColorWarning:Ye,feedbackTextColorError:st,feedbackPadding:ot,labelFontWeight:et,[createKey("labelHeight",he)]:lt,[createKey("blankHeight",he)]:Me,[createKey("feedbackFontSize",he)]:Oe,[createKey("feedbackHeight",he)]:Qe,[createKey("labelPadding",ie)]:Ze,[createKey("labelTextAlign",ie)]:it,[createKey(createKey("labelFontSize",me),he)]:Te}}=H.value;let _e=(se=k.value)!==null&&se!==void 0?se:it;return me==="top"&&(_e=_e==="right"?"flex-end":"flex-start"),{"--n-bezier":de,"--n-line-height":Se,"--n-blank-height":Me,"--n-label-font-size":Te,"--n-label-text-align":_e,"--n-label-height":lt,"--n-label-padding":Ze,"--n-label-font-weight":et,"--n-asterisk-color":ge,"--n-label-text-color":be,"--n-feedback-padding":ot,"--n-feedback-font-size":Oe,"--n-feedback-height":Qe,"--n-feedback-text-color":je,"--n-feedback-text-color-warning":Ye,"--n-feedback-text-color-error":st}}),ue=A?useThemeClass("form-item",computed(()=>{var se;return"".concat(B.value[0]).concat(D.value[0]).concat(((se=k.value)===null||se===void 0?void 0:se[0])||"")}),ne,d):void 0,X=computed(()=>D.value==="left"&&I.value==="left"&&k.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:te,mergedClsPrefix:b,mergedRequired:E,feedbackId:M,renderExplains:$,reverseColSpace:X},x),w),Z),{cssVars:A?void 0:ne,themeClass:ue==null?void 0:ue.themeClass,onRender:ue==null?void 0:ue.onRender})},render(){const{$slots:d,mergedClsPrefix:b,mergedShowLabel:A,mergedShowRequireMark:C,mergedRequireMarkPlacement:w,onRender:x}=this,S=C!==void 0?C:this.mergedRequired;x==null||x();const E=()=>{const P=this.$slots.label?this.$slots.label():this.label;if(!P)return null;const B=h$1("span",{class:"".concat(b,"-form-item-label__text")},P),D=S?h$1("span",{class:"".concat(b,"-form-item-label__asterisk")},w!=="left"?" *":"* "):w==="right-hanging"&&h$1("span",{class:"".concat(b,"-form-item-label__asterisk-placeholder")}," *"),{labelProps:k}=this;return h$1("label",Object.assign({},k,{class:[k==null?void 0:k.class,"".concat(b,"-form-item-label"),"".concat(b,"-form-item-label--").concat(w,"-mark"),this.reverseColSpace&&"".concat(b,"-form-item-label--reverse-columns-space")],style:this.mergedLabelStyle,ref:"labelElementRef"}),w==="left"?[D,B]:[B,D])};return h$1("div",{class:["".concat(b,"-form-item"),this.themeClass,"".concat(b,"-form-item--").concat(this.mergedSize,"-size"),"".concat(b,"-form-item--").concat(this.mergedLabelPlacement,"-labelled"),this.isAutoLabelWidth&&"".concat(b,"-form-item--auto-label-width"),!A&&"".concat(b,"-form-item--no-label")],style:this.cssVars},A&&E(),h$1("div",{class:["".concat(b,"-form-item-blank"),this.mergedValidationStatus&&"".concat(b,"-form-item-blank--").concat(this.mergedValidationStatus)]},d),this.mergedShowFeedback?h$1("div",{key:this.feedbackId,class:"".concat(b,"-form-item-feedback-wrapper")},h$1(Transition,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:P}=this;return resolveWrappedSlot(d.feedback,B=>{var D;const{feedback:k}=this,I=B||k?h$1("div",{key:"__feedback__",class:"".concat(b,"-form-item-feedback__line")},B||k):this.renderExplains.length?(D=this.renderExplains)===null||D===void 0?void 0:D.map(({key:$,render:M})=>h$1("div",{key:$,class:"".concat(b,"-form-item-feedback__line")},M())):null;return I?P==="warning"?h$1("div",{key:"controlled-warning",class:"".concat(b,"-form-item-feedback ").concat(b,"-form-item-feedback--warning")},I):P==="error"?h$1("div",{key:"controlled-error",class:"".concat(b,"-form-item-feedback ").concat(b,"-form-item-feedback--error")},I):P==="success"?h$1("div",{key:"controlled-success",class:"".concat(b,"-form-item-feedback ").concat(b,"-form-item-feedback--success")},I):h$1("div",{key:"controlled-default",class:"".concat(b,"-form-item-feedback")},I):null})}})):null)}}),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:A,overflowRef:C,layoutShiftDisabledRef:w}=inject(gridInjectionKey),x=getCurrentInstance();return{overflow:C,itemStyle:A,layoutShiftDisabled:w,mergedXGap:computed(()=>pxfy(b.value||0)),deriveStyle:()=>{d.value;const{privateSpan:S=defaultSpan,privateShow:E=!0,privateColStart:P=void 0,privateOffset:B=0}=x.vnode.props,{value:D}=b,k=pxfy(D||0);return{display:E?"":"none",gridColumn:"".concat(P!=null?P:"span ".concat(S)," / span ").concat(S),marginLeft:B?"calc((100% - (".concat(S," - 1) * ").concat(k,") / ").concat(S," * ").concat(B," + ").concat(k," * ").concat(B,")"):""}}}},render(){var d,b;if(this.layoutShiftDisabled){const{span:A,offset:C,mergedXGap:w}=this;return h$1("div",{style:{gridColumn:"span ".concat(A," / span ").concat(A),marginLeft:C?"calc((100% - (".concat(A," - 1) * ").concat(w,") / ").concat(A," * ").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:A,warningColor:C,errorColor:w,infoColor:x,primaryColorSuppl:S,successColorSuppl:E,warningColorSuppl:P,errorColorSuppl:B,infoColorSuppl:D,fontWeightStrong:k}=d;return{fontWeight:k,rotate:"252deg",colorStartPrimary:b,colorEndPrimary:S,colorStartInfo:x,colorEndInfo:D,colorStartWarning:C,colorEndWarning:P,colorStartError:w,colorEndError:B,colorStartSuccess:A,colorEndSuccess:E}}},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:A}=useConfig(d),C=/^\d+$/,w=ref(void 0),x=useBreakpoints((A==null?void 0:A.value)||defaultBreakpoints),S=useMemo(()=>!!(d.itemResponsive||!C.test(d.cols.toString())||!C.test(d.xGap.toString())||!C.test(d.yGap.toString()))),E=computed(()=>{if(S.value)return d.responsive==="self"?w.value:x.value}),P=useMemo(()=>{var z;return(z=Number(parseResponsivePropValue(d.cols.toString(),E.value)))!==null&&z!==void 0?z:defaultCols}),B=useMemo(()=>parseResponsivePropValue(d.xGap.toString(),E.value)),D=useMemo(()=>parseResponsivePropValue(d.yGap.toString(),E.value)),k=z=>{w.value=z.contentRect.width},I=z=>{beforeNextFrameOnce(k,z)},$=ref(!1),M=computed(()=>{if(d.responsive==="self")return I}),L=ref(!1),H=ref();return onMounted(()=>{const{value:z}=H;z&&z.hasAttribute(SSR_ATTR_NAME)&&(z.removeAttribute(SSR_ATTR_NAME),L.value=!0)}),provide(gridInjectionKey,{layoutShiftDisabledRef:toRef(d,"layoutShiftDisabled"),isSsrRef:L,itemStyleRef:toRef(d,"itemStyle"),xGapRef:B,overflowRef:$}),{isSsr:!isBrowser$2,contentEl:H,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(P.value,", minmax(0, 1fr))"),columnGap:pxfy(B.value),rowGap:pxfy(D.value)}),isResponsive:S,responsiveQuery:E,responsiveCols:P,handleResize:M,overflow:$}},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,A,C,w,x,S,E;this.overflow=!1;const P=flatten$4(getSlot$1(this)),B=[],{collapsed:D,collapsedRows:k,responsiveCols:I,responsiveQuery:$}=this;P.forEach(Q=>{var q,V,U,W;if(((q=Q==null?void 0:Q.type)===null||q===void 0?void 0:q.__GRID_ITEM__)!==!0)return;if(isNodeVShowFalse(Q)){const te=cloneVNode(Q);te.props?te.props.privateShow=!1:te.props={privateShow:!1},B.push({child:te,rawChildSpan:0});return}Q.dirs=((V=Q.dirs)===null||V===void 0?void 0:V.filter(({dir:te})=>te!==vShow))||null;const K=cloneVNode(Q),Z=Number((W=parseResponsivePropValue((U=K.props)===null||U===void 0?void 0:U.span,$))!==null&&W!==void 0?W:defaultSpan$1);Z!==0&&B.push({child:K,rawChildSpan:Z})});let M=0;const L=(b=B[B.length-1])===null||b===void 0?void 0:b.child;if(L!=null&&L.props){const Q=(A=L.props)===null||A===void 0?void 0:A.suffix;Q!==void 0&&Q!==!1&&(M=(w=(C=L.props)===null||C===void 0?void 0:C.span)!==null&&w!==void 0?w:defaultSpan$1,L.props.privateSpan=M,L.props.privateColStart=I+1-M,L.props.privateShow=(x=L.props.privateShow)!==null&&x!==void 0?x:!0)}let H=0,z=!1;for(const{child:Q,rawChildSpan:q}of B){if(z&&(this.overflow=!0),!z){const V=Number((E=parseResponsivePropValue((S=Q.props)===null||S===void 0?void 0:S.offset,$))!==null&&E!==void 0?E:0),U=Math.min(q+V,I);if(Q.props?(Q.props.privateSpan=U,Q.props.privateOffset=V):Q.props={privateSpan:U,privateOffset:V},D){const W=H%I;U+W>I&&(H+=I-W),U+H+M>k*I?z=!0:H+=U}}z&&(Q.props?Q.props.privateShow!==!0&&(Q.props.privateShow=!1):Q.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),B.map(({child:Q})=>Q))};return this.isResponsive&&this.responsive==="self"?h$1(VResizeObserver,{onResize:this.handleResize},{default:d}):d()}}),self$k=d=>{const{primaryColor:b,baseColor:A}=d;return{color:b,iconColor:A}},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:A,infoColor:C,warningColor:w,errorColor:x,popoverColor:S,closeIconColor:E,closeIconColorHover:P,closeIconColorPressed:B,closeColorHover:D,closeColorPressed:k,textColor1:I,textColor3:$,borderRadius:M,fontWeightStrong:L,boxShadow2:H,lineHeight:z,fontSize:Q}=d;return Object.assign(Object.assign({},commonVars$3),{borderRadius:M,lineHeight:z,fontSize:Q,headerFontWeight:L,iconColor:b,iconColorSuccess:A,iconColorInfo:C,iconColorWarning:w,iconColorError:x,color:S,textColor:b,closeIconColor:E,closeIconColorHover:P,closeIconColorPressed:B,closeBorderRadius:M,closeColorHover:D,closeColorPressed:k,headerTextColor:I,descriptionTextColor:$,actionTextColor:b,boxShadow:H})},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:A,closeIconColorHover:C,closeIconColorPressed:w,infoColor:x,successColor:S,errorColor:E,warningColor:P,popoverColor:B,boxShadow2:D,primaryColor:k,lineHeight:I,borderRadius:$,closeColorHover:M,closeColorPressed:L}=d;return Object.assign(Object.assign({},commonVariables$4),{closeBorderRadius:$,textColor:b,textColorInfo:b,textColorSuccess:b,textColorError:b,textColorWarning:b,textColorLoading:b,color:B,colorInfo:B,colorSuccess:B,colorError:B,colorWarning:B,colorLoading:B,boxShadow:D,boxShadowInfo:D,boxShadowSuccess:D,boxShadowError:D,boxShadowWarning:D,boxShadowLoading:D,iconColor:b,iconColorInfo:x,iconColorSuccess:S,iconColorWarning:P,iconColorError:E,iconColorLoading:k,closeColorHover:M,closeColorPressed:L,closeIconColor:A,closeIconColorHover:C,closeIconColorPressed:w,closeColorHoverInfo:M,closeColorPressedInfo:L,closeIconColorInfo:A,closeIconColorHoverInfo:C,closeIconColorPressedInfo:w,closeColorHoverSuccess:M,closeColorPressedSuccess:L,closeIconColorSuccess:A,closeIconColorHoverSuccess:C,closeIconColorPressedSuccess:w,closeColorHoverError:M,closeColorPressedError:L,closeIconColorError:A,closeIconColorHoverError:C,closeIconColorPressedError:w,closeColorHoverWarning:M,closeColorPressedWarning:L,closeIconColorWarning:A,closeIconColorHoverWarning:C,closeIconColorPressedWarning:w,closeColorHoverLoading:M,closeColorPressedLoading:L,closeIconColorLoading:A,closeIconColorHoverLoading:C,closeIconColorPressedLoading:w,loadingColor:k,lineHeight:I,borderRadius:$})},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:A,popoverColor:C,cardColor:w,dividerColor:x,scrollbarColor:S,scrollbarColorHover:E}=d;return{textColor:b,textColorInverted:b,color:A,colorEmbedded:A,headerColor:w,headerColorInverted:w,footerColor:w,footerColorInverted:w,headerBorderColor:x,headerBorderColorInverted:x,footerBorderColor:x,footerBorderColorInverted:x,siderBorderColor:x,siderBorderColorInverted:x,siderColor:w,siderColorInverted:w,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:C,siderToggleButtonIconColor:b,siderToggleButtonIconColorInverted:b,siderToggleBarColor:composite(A,S),siderToggleBarColorHover:composite(A,E),__invertScrollbar:"false"}}},layoutDark$1=layoutDark,self$g=d=>{const{textColor2:b,cardColor:A,modalColor:C,popoverColor:w,dividerColor:x,borderRadius:S,fontSize:E,hoverColor:P}=d;return{textColor:b,color:A,colorHover:P,colorModal:C,colorHoverModal:composite(C,P),colorPopover:w,colorHoverPopover:composite(w,P),borderColor:x,borderColorModal:composite(C,x),borderColorPopover:composite(w,x),borderRadius:S,fontSize:E}},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:A,fontSize:C,primaryColor:w}=d;return{loaderFontSize:C,loaderTextColor:b,loaderColor:A,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,A,C){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:b,itemColorActiveHoverInverted:b,itemColorActiveCollapsedInverted:b,itemTextColorInverted:d,itemTextColorHoverInverted:A,itemTextColorChildActiveInverted:A,itemTextColorChildActiveHoverInverted:A,itemTextColorActiveInverted:A,itemTextColorActiveHoverInverted:A,itemTextColorHorizontalInverted:d,itemTextColorHoverHorizontalInverted:A,itemTextColorChildActiveHorizontalInverted:A,itemTextColorChildActiveHoverHorizontalInverted:A,itemTextColorActiveHorizontalInverted:A,itemTextColorActiveHoverHorizontalInverted:A,itemIconColorInverted:d,itemIconColorHoverInverted:A,itemIconColorActiveInverted:A,itemIconColorActiveHoverInverted:A,itemIconColorChildActiveInverted:A,itemIconColorChildActiveHoverInverted:A,itemIconColorCollapsedInverted:d,itemIconColorHorizontalInverted:d,itemIconColorHoverHorizontalInverted:A,itemIconColorActiveHorizontalInverted:A,itemIconColorActiveHoverHorizontalInverted:A,itemIconColorChildActiveHorizontalInverted:A,itemIconColorChildActiveHoverHorizontalInverted:A,arrowColorInverted:d,arrowColorHoverInverted:A,arrowColorActiveInverted:A,arrowColorActiveHoverInverted:A,arrowColorChildActiveInverted:A,arrowColorChildActiveHoverInverted:A,groupTextColorInverted:C}}const self$f=d=>{const{borderRadius:b,textColor3:A,primaryColor:C,textColor2:w,textColor1:x,fontSize:S,dividerColor:E,hoverColor:P,primaryColorHover:B}=d;return Object.assign({borderRadius:b,color:"#0000",groupTextColor:A,itemColorHover:P,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:B,itemTextColorActiveHorizontal:C,itemTextColorActiveHoverHorizontal:C,itemTextColorChildActiveHorizontal:C,itemTextColorChildActiveHoverHorizontal:C,itemIconColor:x,itemIconColorHover:x,itemIconColorActive:C,itemIconColorActiveHover:C,itemIconColorChildActive:C,itemIconColorChildActiveHover:C,itemIconColorCollapsed:x,itemIconColorHorizontal:x,itemIconColorHoverHorizontal:B,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:E},createPartialInvertedVars("#BBB",C,"#FFF","#AAA"))},menuDark={name:"Menu",common:commonDark,peers:{Tooltip:tooltipDark$1,Dropdown:dropdownDark$1},self(d){const{primaryColor:b,primaryColorSuppl:A}=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=A,C.itemColorActiveHoverInverted=A,C.itemColorActiveCollapsedInverted=A,C}},menuDark$1=menuDark,common={titleFontSize:"18px",backSize:"22px"};function self$e(d){const{textColor1:b,textColor2:A,textColor3:C,fontSize:w,fontWeightStrong:x,primaryColorHover:S,primaryColorPressed:E}=d;return Object.assign(Object.assign({},common),{titleFontWeight:x,fontSize:w,titleTextColor:b,backColor:A,backColorHover:S,backColorPressed:E,subtitleTextColor:C})}const pageHeaderDark={name:"PageHeader",common:commonDark,self:self$e},commonVars$2={iconSize:"22px"},self$d=d=>{const{fontSize:b,warningColor:A}=d;return Object.assign(Object.assign({},commonVars$2),{fontSize:b,iconColor:A})},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:A,warningColor:C,errorColor:w,textColor2:x,progressRailColor:S,fontSize:E,fontWeight:P}=d;return{fontSize:E,fontSizeCircle:"28px",fontWeightCircle:P,railColor:S,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:b,iconColorInfo:b,iconColorSuccess:A,iconColorWarning:C,iconColorError:w,textColorCircle:x,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:x,fillColor:b,fillColorInfo:b,fillColorSuccess:A,fillColorWarning:C,fillColorError:w,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},progressLight={name:"Progress",common:commonLight,self:self$c},progressLight$1=progressLight,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:A,errorColor:C,successColor:w,infoColor:x,warningColor:S,lineHeight:E,fontWeightStrong:P}=d;return Object.assign(Object.assign({},commonVariables$3),{lineHeight:E,titleFontWeight:P,titleTextColor:A,textColor:b,iconColorError:C,iconColorSuccess:w,iconColorInfo:x,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:A,modalColor:C,primaryColorSuppl:w,popoverColor:x,textColor2:S,cardColor:E,borderRadius:P,fontSize:B,opacityDisabled:D}=d;return Object.assign(Object.assign({},sizeVariables$3),{fontSize:B,markFontSize:B,railColor:A,railColorHover:A,fillColor:w,fillColorHover:w,opacityDisabled:D,handleColor:"#FFF",dotColor:E,dotColorModal:C,dotColorPopover:x,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:x,indicatorBoxShadow:b,indicatorTextColor:S,indicatorBorderRadius:P,dotBorder:"2px solid ".concat(A),dotBorderActive:"2px solid ".concat(w),dotBoxShadow:""})}},sliderDark$1=sliderDark,self$a=d=>{const{opacityDisabled:b,heightTiny:A,heightSmall:C,heightMedium:w,heightLarge:x,heightHuge:S,primaryColor:E,fontSize:P}=d;return{fontSize:P,textColor:E,sizeTiny:A,sizeSmall:C,sizeMedium:w,sizeLarge:x,sizeHuge:S,color:E,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:A,fontSize:C,fontWeight:w}=d;return{labelFontSize:C,labelFontWeight:w,valueFontWeight:w,valueFontSize:"24px",labelTextColor:A,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:A,textColorDisabled:C,primaryColor:w,errorColor:x,textColor1:S,textColor2:E}=d;return Object.assign(Object.assign({},commonVariables$2),{stepHeaderFontWeight:b,indicatorTextColorProcess:A,indicatorTextColorWait:C,indicatorTextColorFinish:w,indicatorTextColorError:x,indicatorBorderColorProcess:w,indicatorBorderColorWait:C,indicatorBorderColorFinish:w,indicatorBorderColorError:x,indicatorColorProcess:w,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:C,splitorColorWait:C,splitorColorFinish:w,splitorColorError:C,headerTextColorProcess:S,headerTextColorWait:C,headerTextColorFinish:C,headerTextColorError:x,descriptionTextColorProcess:E,descriptionTextColorWait:C,descriptionTextColorFinish:C,descriptionTextColorError:x})},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:A,borderRadius:C,primaryColor:w,textColor2:x,baseColor:S}=d,E="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},commonVars$1),{iconColor:S,textColor:x,loadingColor:b,opacityDisabled:A,railColor:E,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:A,modalColor:C,popoverColor:w,tableHeaderColor:x,tableColorStriped:S,textColor1:E,textColor2:P,borderRadius:B,fontWeightStrong:D,lineHeight:k,fontSizeSmall:I,fontSizeMedium:$,fontSizeLarge:M}=d;return Object.assign(Object.assign({},sizeVariables$2),{fontSizeSmall:I,fontSizeMedium:$,fontSizeLarge:M,lineHeight:k,borderRadius:B,borderColor:composite(A,b),borderColorModal:composite(C,b),borderColorPopover:composite(w,b),tdColor:A,tdColorModal:C,tdColorPopover:w,tdColorStriped:composite(A,S),tdColorStripedModal:composite(C,S),tdColorStripedPopover:composite(w,S),thColor:composite(A,x),thColorModal:composite(C,x),thColorPopover:composite(w,x),thTextColor:E,tdTextColor:P,thFontWeight:D})},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:A,textColorDisabled:C,closeIconColor:w,closeIconColorHover:x,closeIconColorPressed:S,closeColorHover:E,closeColorPressed:P,tabColor:B,baseColor:D,dividerColor:k,fontWeight:I,textColor1:$,borderRadius:M,fontSize:L,fontWeightStrong:H}=d;return Object.assign(Object.assign({},sizeVariables$1),{colorSegment:B,tabFontSizeCard:L,tabTextColorLine:$,tabTextColorActiveLine:A,tabTextColorHoverLine:A,tabTextColorDisabledLine:C,tabTextColorSegment:$,tabTextColorActiveSegment:b,tabTextColorHoverSegment:b,tabTextColorDisabledSegment:C,tabTextColorBar:$,tabTextColorActiveBar:A,tabTextColorHoverBar:A,tabTextColorDisabledBar:C,tabTextColorCard:$,tabTextColorHoverCard:$,tabTextColorActiveCard:A,tabTextColorDisabledCard:C,barColor:A,closeIconColor:w,closeIconColorHover:x,closeIconColorPressed:S,closeColorHover:E,closeColorPressed:P,closeBorderRadius:M,tabColor:B,tabColorSegment:D,tabBorderColor:k,tabFontWeightActive:I,tabFontWeight:I,tabBorderRadius:M,paneTextColor:b,fontWeightStrong:H})},tabsLight={name:"Tabs",common:commonLight,self:self$6},tabsLight$1=tabsLight,tabsDark={name:"Tabs",common:commonDark,self(d){const b=self$6(d),{inputColor:A}=d;return b.colorSegment=A,b.tabColorSegment=A,b}},tabsDark$1=tabsDark,self$5=d=>{const{textColor1:b,textColor2:A,fontWeightStrong:C,fontSize:w}=d;return{fontSize:w,titleTextColor:b,textColor:A,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:A,errorColorSuppl:C,successColorSuppl:w,warningColorSuppl:x,textColor1:S,textColor2:E,railColor:P,fontWeightStrong:B,fontSize:D}=d;return Object.assign(Object.assign({},sizeVariables),{contentFontSize:D,titleFontWeight:B,circleBorder:"2px solid ".concat(b),circleBorderInfo:"2px solid ".concat(A),circleBorderError:"2px solid ".concat(C),circleBorderSuccess:"2px solid ".concat(w),circleBorderWarning:"2px solid ".concat(x),iconColor:b,iconColorInfo:A,iconColorError:C,iconColorSuccess:w,iconColorWarning:x,titleTextColor:S,contentTextColor:E,metaTextColor:b,lineColor:P})}},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:A,fontSizeMedium:C,fontSizeSmall:w,heightLarge:x,heightMedium:S,borderRadius:E,inputColor:P,tableHeaderColor:B,textColor1:D,textColorDisabled:k,textColor2:I,textColor3:$,hoverColor:M,closeColorHover:L,closeColorPressed:H,closeIconColor:z,closeIconColorHover:Q,closeIconColorPressed:q,dividerColor:V}=d;return Object.assign(Object.assign({},commonVariables$1),{itemHeightSmall:S,itemHeightMedium:S,itemHeightLarge:x,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:A,borderRadius:E,dividerColor:V,borderColor:"#0000",listColor:P,headerColor:B,titleTextColor:D,titleTextColorDisabled:k,extraTextColor:$,extraTextColorDisabled:k,itemTextColor:I,itemTextColorDisabled:k,itemColorPending:M,titleFontWeight:b,closeColorHover:L,closeColorPressed:H,closeIconColor:z,closeIconColorHover:Q,closeIconColorPressed:q})}},transferDark$2=transferDark$1,self$4=d=>{const{borderRadiusSmall:b,hoverColor:A,pressedColor:C,primaryColor:w,textColor3:x,textColor2:S,textColorDisabled:E,fontSize:P}=d;return{fontSize:P,nodeBorderRadius:b,nodeColorHover:A,nodeColorPressed:C,nodeColorActive:changeColor(w,{alpha:.1}),arrowColor:x,nodeTextColor:S,nodeTextColorDisabled:E,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,A=self$4(d);return A.nodeColorActive=changeColor(b,{alpha:.15}),A}},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:A,borderColor:C,lineHeight:w,fontSize:x,borderRadiusSmall:S,dividerColor:E,fontWeightStrong:P,textColor1:B,textColor3:D,infoColor:k,warningColor:I,errorColor:$,successColor:M,codeColor:L}=d;return Object.assign(Object.assign({},commonVars),{aTextColor:b,blockquoteTextColor:A,blockquotePrefixColor:C,blockquoteLineHeight:w,blockquoteFontSize:x,codeBorderRadius:S,liTextColor:A,liLineHeight:w,liFontSize:x,hrColor:E,headerFontWeight:P,headerTextColor:B,pTextColor:A,pTextColor1Depth:B,pTextColor2Depth:A,pTextColor3Depth:D,pLineHeight:w,pFontSize:x,headerBarColor:b,headerBarColorPrimary:b,headerBarColorInfo:k,headerBarColorError:$,headerBarColorWarning:I,headerBarColorSuccess:M,textColor:A,textColor1Depth:B,textColor2Depth:A,textColor3Depth:D,textColorPrimary:b,textColorInfo:k,textColorSuccess:M,textColorWarning:I,textColorError:$,codeTextColor:A,codeColor:L,codeBorder:"1px solid #0000"})},typographyDark={name:"Typography",common:commonDark,self:self$3},typographyDark$1=typographyDark,self$2=d=>{const{iconColor:b,primaryColor:A,errorColor:C,textColor2:w,successColor:x,opacityDisabled:S,actionColor:E,borderColor:P,hoverColor:B,lineHeight:D,borderRadius:k,fontSize:I}=d;return{fontSize:I,lineHeight:D,borderRadius:k,draggerColor:E,draggerBorder:"1px dashed ".concat(P),draggerBorderHover:"1px dashed ".concat(A),itemColorHover:B,itemColorHoverError:changeColor(C,{alpha:.06}),itemTextColor:w,itemTextColorError:C,itemTextColorSuccess:x,itemIconColor:b,itemDisabledOpacity:S,itemBorderImageCardError:"1px solid ".concat(C),itemBorderImageCard:"1px solid ".concat(P)}},uploadDark={name:"Upload",common:commonDark,peers:{Button:buttonDark$1,Progress:progressDark$1},self(d){const{errorColor:b}=d,A=self$2(d);return A.itemColorHoverError=changeColor(b,{alpha:.09}),A}},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$6=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:A,mergedRtlRef:C}=useConfig(d),w=useTheme("InputNumber","-input-number",style$6,inputNumberLight$1,d,A),{localeRef:x}=useLocale("InputNumber"),S=useFormItem(d),{mergedSizeRef:E,mergedDisabledRef:P,mergedStatusRef:B}=S,D=ref(null),k=ref(null),I=ref(null),$=ref(d.defaultValue),M=toRef(d,"value"),L=useMergedState(M,$),H=ref(""),z=Ie=>{const Fe=String(Ie).split(".")[1];return Fe?Fe.length:0},Q=Ie=>{const Fe=[d.min,d.max,d.step,Ie].map(ae=>ae===void 0?0:z(ae));return Math.max(...Fe)},q=useMemo(()=>{const{placeholder:Ie}=d;return Ie!==void 0?Ie:x.value.placeholder}),V=useMemo(()=>{const Ie=parseNumber(d.step);return Ie!==null?Ie===0?1:Math.abs(Ie):1}),U=useMemo(()=>{const Ie=parseNumber(d.min);return Ie!==null?Ie:null}),W=useMemo(()=>{const Ie=parseNumber(d.max);return Ie!==null?Ie:null}),K=Ie=>{const{value:Fe}=L;if(Ie===Fe){te();return}const{"onUpdate:value":ae,onUpdateValue:ee,onChange:J}=d,{nTriggerFormInput:le,nTriggerFormChange:ve}=S;J&&call$1(J,Ie),ee&&call$1(ee,Ie),ae&&call$1(ae,Ie),$.value=Ie,le(),ve()},Z=({offset:Ie,doUpdateIfValid:Fe,fixPrecision:ae,isInputing:ee})=>{const{value:J}=H;if(ee&&isWipValue(J))return!1;const le=(d.parse||parse)(J);if(le===null)return Fe&&K(null),null;if(validator(le)){const ve=z(le),{precision:Be}=d;if(Be!==void 0&&Bert){if(!Fe||ee)return!1;Ue=rt}if(pt!==null&&Ue{const{value:Ie}=L;if(validator(Ie)){const{format:Fe,precision:ae}=d;Fe?H.value=Fe(Ie):Ie===null||ae===void 0||z(Ie)>ae?H.value=format(Ie,void 0):H.value=format(Ie,ae)}else H.value=String(Ie)};te();const ne=useMemo(()=>Z({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),ue=useMemo(()=>{const{value:Ie}=L;if(d.validator&&Ie===null)return!1;const{value:Fe}=V;return Z({offset:-Fe,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),X=useMemo(()=>{const{value:Ie}=L;if(d.validator&&Ie===null)return!1;const{value:Fe}=V;return Z({offset:+Fe,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function se(Ie){const{onFocus:Fe}=d,{nTriggerFormFocus:ae}=S;Fe&&call$1(Fe,Ie),ae()}function he(Ie){var Fe,ae;if(Ie.target===((Fe=D.value)===null||Fe===void 0?void 0:Fe.wrapperElRef))return;const ee=Z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ee!==!1){const ve=(ae=D.value)===null||ae===void 0?void 0:ae.inputElRef;ve&&(ve.value=String(ee||"")),L.value===ee&&te()}else te();const{onBlur:J}=d,{nTriggerFormBlur:le}=S;J&&call$1(J,Ie),le(),nextTick(()=>{te()})}function me(Ie){const{onClear:Fe}=d;Fe&&call$1(Fe,Ie)}function ie(){const{value:Ie}=X;if(!Ie){Me();return}const{value:Fe}=L;if(Fe===null)d.validator||K(Se());else{const{value:ae}=V;Z({offset:ae,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function de(){const{value:Ie}=ue;if(!Ie){lt();return}const{value:Fe}=L;if(Fe===null)d.validator||K(Se());else{const{value:ae}=V;Z({offset:-ae,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const be=se,ge=he;function Se(){if(d.validator)return null;const{value:Ie}=U,{value:Fe}=W;return Ie!==null?Math.max(0,Ie):Fe!==null?Math.min(0,Fe):0}function je(Ie){me(Ie),K(null)}function Ye(Ie){var Fe,ae,ee;!((Fe=I.value)===null||Fe===void 0)&&Fe.$el.contains(Ie.target)&&Ie.preventDefault(),!((ae=k.value)===null||ae===void 0)&&ae.$el.contains(Ie.target)&&Ie.preventDefault(),(ee=D.value)===null||ee===void 0||ee.activate()}let st=null,ot=null,et=null;function lt(){et&&(window.clearTimeout(et),et=null),st&&(window.clearInterval(st),st=null)}function Me(){Qe&&(window.clearTimeout(Qe),Qe=null),ot&&(window.clearInterval(ot),ot=null)}function Oe(){lt(),et=window.setTimeout(()=>{st=window.setInterval(()=>{de()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,lt,{once:!0})}let Qe=null;function Ze(){Me(),Qe=window.setTimeout(()=>{ot=window.setInterval(()=>{ie()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,Me,{once:!0})}const it=()=>{ot||ie()},Te=()=>{st||de()};function _e(Ie){var Fe,ae;if(Ie.key==="Enter"){if(Ie.target===((Fe=D.value)===null||Fe===void 0?void 0:Fe.wrapperElRef))return;Z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ae=D.value)===null||ae===void 0||ae.deactivate())}else if(Ie.key==="ArrowUp"){if(!X.value||d.keyboard.ArrowUp===!1)return;Ie.preventDefault(),Z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ie()}else if(Ie.key==="ArrowDown"){if(!ue.value||d.keyboard.ArrowDown===!1)return;Ie.preventDefault(),Z({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&de()}}function He(Ie){H.value=Ie,d.updateValueOnInput&&!d.format&&!d.parse&&d.precision===void 0&&Z({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}watch(L,()=>{te()});const Je={focus:()=>{var Ie;return(Ie=D.value)===null||Ie===void 0?void 0:Ie.focus()},blur:()=>{var Ie;return(Ie=D.value)===null||Ie===void 0?void 0:Ie.blur()}},Ke=useRtl("InputNumber",C,A);return Object.assign(Object.assign({},Je),{rtlEnabled:Ke,inputInstRef:D,minusButtonInstRef:k,addButtonInstRef:I,mergedClsPrefix:A,mergedBordered:b,uncontrolledValue:$,mergedValue:L,mergedPlaceholder:q,displayedValueInvalid:ne,mergedSize:E,mergedDisabled:P,displayedValue:H,addable:X,minusable:ue,mergedStatus:B,handleFocus:be,handleBlur:ge,handleClear:je,handleMouseDown:Ye,handleAddClick:it,handleMinusClick:Te,handleAddMousedown:Ze,handleMinusMousedown:Oe,handleKeyDown:_e,handleUpdateDisplayedValue:He,mergedTheme:w,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:computed(()=>{const{self:{iconColorDisabled:Ie}}=w.value,[Fe,ae,ee,J]=rgba(Ie);return{textColorTextDisabled:"rgb(".concat(Fe,", ").concat(ae,", ").concat(ee,")"),opacityDisabled:"".concat(J)}})})},render(){const{mergedClsPrefix:d,$slots:b}=this,A=()=>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"?[A(),resolveWrappedSlot(b.prefix,x=>x?h$1("span",{class:"".concat(d,"-input-number-prefix")},x):null)]:(w=b.prefix)===null||w===void 0?void 0:w.call(b)},suffix:()=>{var w;return this.showButton?[resolveWrappedSlot(b.suffix,x=>x?h$1("span",{class:"".concat(d,"-input-number-suffix")},x):null),this.buttonPlacement==="right"?A():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:A,fontWeight:C,fontSizeLarge:w,fontSizeMedium:x,fontSizeSmall:S,heightLarge:E,heightMedium:P,heightSmall:B,borderRadius:D,inputColor:k,tableHeaderColor:I,textColor1:$,textColorDisabled:M,textColor2:L,hoverColor:H}=d;return Object.assign(Object.assign({},commonVariables),{itemHeightSmall:B,itemHeightMedium:P,itemHeightLarge:E,fontSizeSmall:S,fontSizeMedium:x,fontSizeLarge:w,borderRadius:D,borderColor:"#0000",listColor:k,headerColor:I,titleTextColor:$,titleTextColorDisabled:M,extraTextColor:L,filterDividerColor:"#0000",itemTextColor:L,itemTextColorDisabled:M,itemColorPending:H,titleFontWeight:C,iconColor:A,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$5=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:A}=useConfig(d),{props:C,mergedClsPrefixRef:w}=inject(messageProviderInjectionKey),x=useRtl("Message",A,w),S=useTheme("Message","-message",style$5,messageLight$1,C,w),E=computed(()=>{const{type:B}=d,{common:{cubicBezierEaseInOut:D},self:{padding:k,margin:I,maxWidth:$,iconMargin:M,closeMargin:L,closeSize:H,iconSize:z,fontSize:Q,lineHeight:q,borderRadius:V,iconColorInfo:U,iconColorSuccess:W,iconColorWarning:K,iconColorError:Z,iconColorLoading:te,closeIconSize:ne,closeBorderRadius:ue,[createKey("textColor",B)]:X,[createKey("boxShadow",B)]:se,[createKey("color",B)]:he,[createKey("closeColorHover",B)]:me,[createKey("closeColorPressed",B)]:ie,[createKey("closeIconColor",B)]:de,[createKey("closeIconColorPressed",B)]:be,[createKey("closeIconColorHover",B)]:ge}}=S.value;return{"--n-bezier":D,"--n-margin":I,"--n-padding":k,"--n-max-width":$,"--n-font-size":Q,"--n-icon-margin":M,"--n-icon-size":z,"--n-close-icon-size":ne,"--n-close-border-radius":ue,"--n-close-size":H,"--n-close-margin":L,"--n-text-color":X,"--n-color":he,"--n-box-shadow":se,"--n-icon-color-info":U,"--n-icon-color-success":W,"--n-icon-color-warning":K,"--n-icon-color-error":Z,"--n-icon-color-loading":te,"--n-close-color-hover":me,"--n-close-color-pressed":ie,"--n-close-icon-color":de,"--n-close-icon-color-pressed":be,"--n-close-icon-color-hover":ge,"--n-line-height":q,"--n-border-radius":V}}),P=b?useThemeClass("message",computed(()=>d.type[0]),E,{}):void 0;return{mergedClsPrefix:w,rtlEnabled:x,messageProviderProps:C,handleClose(){var B;(B=d.onClose)===null||B===void 0||B.call(d)},cssVars:b?void 0:E,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender,placement:C.placement}},render(){const{render:d,type:b,closable:A,content:C,mergedClsPrefix:w,cssVars:x,themeClass:S,onRender:E,icon:P,handleClose:B,showIcon:D}=this;E==null||E();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"},x]},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(P,b,w))&&D?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)),A?h$1(NBaseClose,{clsPrefix:w,class:"".concat(w,"-message__close"),onClick:B,absolute:!0}):null))}});function createIconVNode(d,b,A){if(typeof d=="function")return d();{const C=b==="loading"?h$1(NBaseLoading,{clsPrefix:A,strokeWidth:24,scale:.85}):iconRenderMap$1[b]();return C?h$1(NBaseIcon,{clsPrefix:A,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 A=ref(!0);onMounted(()=>{C()});function C(){const{duration:D}=d;D&&(b=window.setTimeout(S,D))}function w(D){D.currentTarget===D.target&&b!==null&&(window.clearTimeout(b),b=null)}function x(D){D.currentTarget===D.target&&C()}function S(){const{onHide:D}=d;A.value=!1,b&&(window.clearTimeout(b),b=null),D&&D()}function E(){const{onClose:D}=d;D&&D(),S()}function P(){const{onAfterLeave:D,onInternalAfterLeave:k,onAfterHide:I,internalKey:$}=d;D&&D(),k&&k($),I&&I()}function B(){S()}return{show:A,hide:S,handleClose:E,handleAfterLeave:P,handleMouseleave:x,handleMouseenter:w,deactivate:B}},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),A=ref([]),C=ref({}),w={create(P,B){return x(P,Object.assign({type:"default"},B))},info(P,B){return x(P,Object.assign(Object.assign({},B),{type:"info"}))},success(P,B){return x(P,Object.assign(Object.assign({},B),{type:"success"}))},warning(P,B){return x(P,Object.assign(Object.assign({},B),{type:"warning"}))},error(P,B){return x(P,Object.assign(Object.assign({},B),{type:"error"}))},loading(P,B){return x(P,Object.assign(Object.assign({},B),{type:"loading"}))},destroyAll:E};provide(messageProviderInjectionKey,{props:d,mergedClsPrefixRef:b}),provide(messageApiInjectionKey,w);function x(P,B){const D=createId(),k=reactive(Object.assign(Object.assign({},B),{content:P,key:D,destroy:()=>{var $;($=C.value[D])===null||$===void 0||$.hide()}})),{max:I}=d;return I&&A.value.length>=I&&A.value.shift(),A.value.push(k),k}function S(P){A.value.splice(A.value.findIndex(B=>B.key===P),1),delete C.value[P]}function E(){Object.values(C.value).forEach(P=>{P.hide()})}return Object.assign({mergedClsPrefix:b,messageRefs:C,messageList:A,handleAfterLeave:S},w)},render(){var d,b,A;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:(A=this.to)!==null&&A!==void 0?A:"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:A}=inject(notificationProviderInjectionKey),C=ref(null);return watchEffect(()=>{var w,x;A.value>0?(w=C==null?void 0:C.value)===null||w===void 0||w.classList.add("transitioning"):(x=C==null?void 0:C.value)===null||x===void 0||x.classList.remove("transitioning")}),{selfRef:C,mergedTheme:d,mergedClsPrefix:b,transitioning:A}},render(){const{$slots:d,scrollable:b,mergedClsPrefix:A,mergedTheme:C,placement:w}=this;return h$1("div",{ref:"selfRef",class:["".concat(A,"-notification-container"),b&&"".concat(A,"-notification-container--scrollable"),"".concat(A,"-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:A,props:C}=inject(notificationProviderInjectionKey),{inlineThemeDisabled:w,mergedRtlRef:x}=useConfig(),S=useRtl("Notification",x,b),E=computed(()=>{const{type:B}=d,{self:{color:D,textColor:k,closeIconColor:I,closeIconColorHover:$,closeIconColorPressed:M,headerTextColor:L,descriptionTextColor:H,actionTextColor:z,borderRadius:Q,headerFontWeight:q,boxShadow:V,lineHeight:U,fontSize:W,closeMargin:K,closeSize:Z,width:te,padding:ne,closeIconSize:ue,closeBorderRadius:X,closeColorHover:se,closeColorPressed:he,titleFontSize:me,metaFontSize:ie,descriptionFontSize:de,[createKey("iconColor",B)]:be},common:{cubicBezierEaseOut:ge,cubicBezierEaseIn:Se,cubicBezierEaseInOut:je}}=A.value,{left:Ye,right:st,top:ot,bottom:et}=getMargin(ne);return{"--n-color":D,"--n-font-size":W,"--n-text-color":k,"--n-description-text-color":H,"--n-action-text-color":z,"--n-title-text-color":L,"--n-title-font-weight":q,"--n-bezier":je,"--n-bezier-ease-out":ge,"--n-bezier-ease-in":Se,"--n-border-radius":Q,"--n-box-shadow":V,"--n-close-border-radius":X,"--n-close-color-hover":se,"--n-close-color-pressed":he,"--n-close-icon-color":I,"--n-close-icon-color-hover":$,"--n-close-icon-color-pressed":M,"--n-line-height":U,"--n-icon-color":be,"--n-close-margin":K,"--n-close-size":Z,"--n-close-icon-size":ue,"--n-width":te,"--n-padding-left":Ye,"--n-padding-right":st,"--n-padding-top":ot,"--n-padding-bottom":et,"--n-title-font-size":me,"--n-meta-font-size":ie,"--n-description-font-size":de}}),P=w?useThemeClass("notification",computed(()=>d.type[0]),E,C):void 0;return{mergedClsPrefix:b,showAvatar:computed(()=>d.avatar||d.type!=="default"),handleCloseClick(){d.onClose()},rtlEnabled:S,cssVars:w?void 0:E,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.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),A=ref(!0);let C=null;function w(){A.value=!1,C&&window.clearTimeout(C)}function x(M){b.value++,nextTick(()=>{M.style.height="".concat(M.offsetHeight,"px"),M.style.maxHeight="0",M.style.transition="none",M.offsetHeight,M.style.transition="",M.style.maxHeight=M.style.height})}function S(M){b.value--,M.style.height="",M.style.maxHeight="";const{onAfterEnter:L,onAfterShow:H}=d;L&&L(),H&&H()}function E(M){b.value++,M.style.maxHeight="".concat(M.offsetHeight,"px"),M.style.height="".concat(M.offsetHeight,"px"),M.offsetHeight}function P(M){const{onHide:L}=d;L&&L(),M.style.maxHeight="0",M.offsetHeight}function B(){b.value--;const{onAfterLeave:M,onInternalAfterLeave:L,onAfterHide:H,internalKey:z}=d;M&&M(),L(z),H&&H()}function D(){const{duration:M}=d;M&&(C=window.setTimeout(w,M))}function k(M){M.currentTarget===M.target&&C!==null&&(window.clearTimeout(C),C=null)}function I(M){M.currentTarget===M.target&&D()}function $(){const{onClose:M}=d;M?Promise.resolve(M()).then(L=>{L!==!1&&w()}):w()}return onMounted(()=>{d.duration&&(C=window.setTimeout(w,d.duration))}),{show:A,hide:w,handleClose:$,handleAfterLeave:B,handleLeave:P,handleBeforeLeave:E,handleAfterEnter:S,handleBeforeEnter:x,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$4=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 A=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(A,", 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),A=ref([]),C={},w=new Set;function x($){const M=createId(),L=()=>{w.add(M),C[M]&&C[M].hide()},H=reactive(Object.assign(Object.assign({},$),{key:M,destroy:L,hide:L,deactivate:L})),{max:z}=d;if(z&&A.value.length-w.size>=z){let Q=!1,q=0;for(const V of A.value){if(!w.has(V.key)){C[V.key]&&(V.destroy(),Q=!0);break}q++}Q||A.value.splice(q,1)}return A.value.push(H),H}const S=["info","success","warning","error"].map($=>M=>x(Object.assign(Object.assign({},M),{type:$})));function E($){w.delete($),A.value.splice(A.value.findIndex(M=>M.key===$),1)}const P=useTheme("Notification","-notification",style$4,notificationLight$1,d,b),B={create:x,info:S[0],success:S[1],warning:S[2],error:S[3],open:k,destroyAll:I},D=ref(0);provide(notificationApiInjectionKey,B),provide(notificationProviderInjectionKey,{props:d,mergedClsPrefixRef:b,mergedThemeRef:P,wipTransitionCountRef:D});function k($){return x($)}function I(){Object.values(A.value).forEach($=>{$.hide()})}return Object.assign({mergedClsPrefix:b,notificationList:A,notificationRefs:C,handleAfterLeave:E},B)},render(){var d,b,A;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:(A=this.to)!==null&&A!==void 0?A:"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:x=>{const S=w.key;x===null?delete this.notificationRefs[S]:this.notificationRefs[S]=x}},omit(w,["destroy","hide","deactivate"]),{internalKey:w.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:w.keepAliveOnHover===void 0?this.keepAliveOnHover:w.keepAliveOnHover})))})):null)}}),style$3=c$3([cB("progress",{display:"inline-block"},[cB("progress-icon","\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n "),cM("line","\n width: 100%;\n display: block;\n ",[cB("progress-content","\n display: flex;\n align-items: center;\n ",[cB("progress-graph",{flex:1})]),cB("progress-custom-content",{marginLeft:"14px"}),cB("progress-icon","\n width: 30px;\n padding-left: 14px;\n height: var(--n-icon-size-line);\n line-height: var(--n-icon-size-line);\n font-size: var(--n-icon-size-line);\n ",[cM("as-text","\n color: var(--n-text-color-line-outer);\n text-align: center;\n width: 40px;\n font-size: var(--n-font-size);\n padding-left: 4px;\n transition: color .3s var(--n-bezier);\n ")])]),cM("circle, dashboard",{width:"120px"},[cB("progress-custom-content","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n "),cB("progress-text","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n color: inherit;\n font-size: var(--n-font-size-circle);\n color: var(--n-text-color-circle);\n font-weight: var(--n-font-weight-circle);\n transition: color .3s var(--n-bezier);\n white-space: nowrap;\n "),cB("progress-icon","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n color: var(--n-icon-color);\n font-size: var(--n-icon-size-circle);\n ")]),cM("multiple-circle","\n width: 200px;\n color: inherit;\n ",[cB("progress-text","\n font-weight: var(--n-font-weight-circle);\n color: var(--n-text-color-circle);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color .3s var(--n-bezier);\n ")]),cB("progress-content",{position:"relative"}),cB("progress-graph",{position:"relative"},[cB("progress-graph-circle",[c$3("svg",{verticalAlign:"bottom"}),cB("progress-graph-circle-fill","\n stroke: var(--n-fill-color);\n transition:\n opacity .3s var(--n-bezier),\n stroke .3s var(--n-bezier),\n stroke-dasharray .3s var(--n-bezier);\n ",[cM("empty",{opacity:0})]),cB("progress-graph-circle-rail","\n transition: stroke .3s var(--n-bezier);\n overflow: hidden;\n stroke: var(--n-rail-color);\n ")]),cB("progress-graph-line",[cM("indicator-inside",[cB("progress-graph-line-rail","\n height: 16px;\n line-height: 16px;\n border-radius: 10px;\n ",[cB("progress-graph-line-fill","\n height: inherit;\n border-radius: 10px;\n "),cB("progress-graph-line-indicator","\n background: #0000;\n white-space: nowrap;\n text-align: right;\n margin-left: 14px;\n margin-right: 14px;\n height: inherit;\n font-size: 12px;\n color: var(--n-text-color-line-inner);\n transition: color .3s var(--n-bezier);\n ")])]),cM("indicator-inside-label","\n height: 16px;\n display: flex;\n align-items: center;\n ",[cB("progress-graph-line-rail","\n flex: 1;\n transition: background-color .3s var(--n-bezier);\n "),cB("progress-graph-line-indicator","\n background: var(--n-fill-color);\n font-size: 12px;\n transform: translateZ(0);\n display: flex;\n vertical-align: middle;\n height: 16px;\n line-height: 16px;\n padding: 0 10px;\n border-radius: 10px;\n position: absolute;\n white-space: nowrap;\n color: var(--n-text-color-line-inner);\n transition:\n right .2s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ")]),cB("progress-graph-line-rail","\n position: relative;\n overflow: hidden;\n height: var(--n-rail-height);\n border-radius: 5px;\n background-color: var(--n-rail-color);\n transition: background-color .3s var(--n-bezier);\n ",[cB("progress-graph-line-fill","\n background: var(--n-fill-color);\n position: relative;\n border-radius: 5px;\n height: inherit;\n width: 100%;\n max-width: 0%;\n transition:\n background-color .3s var(--n-bezier),\n max-width .2s var(--n-bezier);\n ",[cM("processing",[c$3("&::after",'\n content: "";\n background-image: var(--n-line-bg-processing);\n animation: progress-processing-animation 2s var(--n-bezier) infinite;\n ')])])])])])]),c$3("@keyframes progress-processing-animation","\n 0% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 100%;\n opacity: 1;\n }\n 66% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n 100% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n ")]),iconMap$1={success:h$1(SuccessIcon,null),error:h$1(ErrorIcon,null),warning:h$1(WarningIcon,null),info:h$1(InfoIcon,null)},Line=defineComponent({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(d,{slots:b}){const A=computed(()=>formatLength(d.height)),C=computed(()=>d.railBorderRadius!==void 0?formatLength(d.railBorderRadius):d.height!==void 0?formatLength(d.height,{c:.5}):""),w=computed(()=>d.fillBorderRadius!==void 0?formatLength(d.fillBorderRadius):d.railBorderRadius!==void 0?formatLength(d.railBorderRadius):d.height!==void 0?formatLength(d.height,{c:.5}):"");return()=>{const{indicatorPlacement:x,railColor:S,railStyle:E,percentage:P,unit:B,indicatorTextColor:D,status:k,showIndicator:I,fillColor:$,processing:M,clsPrefix:L}=d;return h$1("div",{class:"".concat(L,"-progress-content"),role:"none"},h$1("div",{class:"".concat(L,"-progress-graph"),"aria-hidden":!0},h$1("div",{class:["".concat(L,"-progress-graph-line"),{["".concat(L,"-progress-graph-line--indicator-").concat(x)]:!0}]},h$1("div",{class:"".concat(L,"-progress-graph-line-rail"),style:[{backgroundColor:S,height:A.value,borderRadius:C.value},E]},h$1("div",{class:["".concat(L,"-progress-graph-line-fill"),M&&"".concat(L,"-progress-graph-line-fill--processing")],style:{maxWidth:"".concat(d.percentage,"%"),backgroundColor:$,height:A.value,lineHeight:A.value,borderRadius:w.value}},x==="inside"?h$1("div",{class:"".concat(L,"-progress-graph-line-indicator"),style:{color:D}},P,B):null)))),I&&x==="outside"?h$1("div",null,b.default?h$1("div",{class:"".concat(L,"-progress-custom-content"),style:{color:D},role:"none"},b.default()):k==="default"?h$1("div",{role:"none",class:"".concat(L,"-progress-icon ").concat(L,"-progress-icon--as-text"),style:{color:D}},P,B):h$1("div",{class:"".concat(L,"-progress-icon"),"aria-hidden":!0},h$1(NBaseIcon,{clsPrefix:L},{default:()=>iconMap$1[k]}))):null)}}}),iconMap={success:h$1(SuccessIcon,null),error:h$1(ErrorIcon,null),warning:h$1(WarningIcon,null),info:h$1(InfoIcon,null)},Circle=defineComponent({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(d,{slots:b}){function A(C,w,x){const{gapDegree:S,viewBoxWidth:E,strokeWidth:P}=d,B=50,D=0,k=B,I=0,$=2*B,M=50+P/2,L="M ".concat(M,",").concat(M," m ").concat(D,",").concat(k,"\n a ").concat(B,",").concat(B," 0 1 1 ").concat(I,",").concat(-$,"\n a ").concat(B,",").concat(B," 0 1 1 ").concat(-I,",").concat($),H=Math.PI*2*B,z={stroke:x,strokeDasharray:"".concat(C/100*(H-S),"px ").concat(E*8,"px"),strokeDashoffset:"-".concat(S/2,"px"),transformOrigin:w?"center":void 0,transform:w?"rotate(".concat(w,"deg)"):void 0};return{pathString:L,pathStyle:z}}return()=>{const{fillColor:C,railColor:w,strokeWidth:x,offsetDegree:S,status:E,percentage:P,showIndicator:B,indicatorTextColor:D,unit:k,gapOffsetDegree:I,clsPrefix:$}=d,{pathString:M,pathStyle:L}=A(100,0,w),{pathString:H,pathStyle:z}=A(P,S,C),Q=100+x;return h$1("div",{class:"".concat($,"-progress-content"),role:"none"},h$1("div",{class:"".concat($,"-progress-graph"),"aria-hidden":!0},h$1("div",{class:"".concat($,"-progress-graph-circle"),style:{transform:I?"rotate(".concat(I,"deg)"):void 0}},h$1("svg",{viewBox:"0 0 ".concat(Q," ").concat(Q)},h$1("g",null,h$1("path",{class:"".concat($,"-progress-graph-circle-rail"),d:M,"stroke-width":x,"stroke-linecap":"round",fill:"none",style:L})),h$1("g",null,h$1("path",{class:["".concat($,"-progress-graph-circle-fill"),P===0&&"".concat($,"-progress-graph-circle-fill--empty")],d:H,"stroke-width":x,"stroke-linecap":"round",fill:"none",style:z}))))),B?h$1("div",null,b.default?h$1("div",{class:"".concat($,"-progress-custom-content"),role:"none"},b.default()):E!=="default"?h$1("div",{class:"".concat($,"-progress-icon"),"aria-hidden":!0},h$1(NBaseIcon,{clsPrefix:$},{default:()=>iconMap[E]})):h$1("div",{class:"".concat($,"-progress-text"),style:{color:D},role:"none"},h$1("span",{class:"".concat($,"-progress-text__percentage")},P),h$1("span",{class:"".concat($,"-progress-text__unit")},k))):null)}}});function circlePath(d,b,A=100){return"m ".concat(A/2," ").concat(A/2-d," a ").concat(d," ").concat(d," 0 1 1 0 ").concat(2*d," a ").concat(d," ").concat(d," 0 1 1 0 -").concat(2*d)}const MultipleCircle=defineComponent({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(d,{slots:b}){const A=computed(()=>d.percentage.map((w,x)=>"".concat(Math.PI*w/100*(d.viewBoxWidth/2-d.strokeWidth/2*(1+2*x)-d.circleGap*x)*2,", ").concat(d.viewBoxWidth*8)));return()=>{const{viewBoxWidth:C,strokeWidth:w,circleGap:x,showIndicator:S,fillColor:E,railColor:P,railStyle:B,percentage:D,clsPrefix:k}=d;return h$1("div",{class:"".concat(k,"-progress-content"),role:"none"},h$1("div",{class:"".concat(k,"-progress-graph"),"aria-hidden":!0},h$1("div",{class:"".concat(k,"-progress-graph-circle")},h$1("svg",{viewBox:"0 0 ".concat(C," ").concat(C)},D.map((I,$)=>h$1("g",{key:$},h$1("path",{class:"".concat(k,"-progress-graph-circle-rail"),d:circlePath(C/2-w/2*(1+2*$)-x*$,w,C),"stroke-width":w,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:P[$]},B[$]]}),h$1("path",{class:["".concat(k,"-progress-graph-circle-fill"),I===0&&"".concat(k,"-progress-graph-circle-fill--empty")],d:circlePath(C/2-w/2*(1+2*$)-x*$,w,C),"stroke-width":w,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:A.value[$],strokeDashoffset:0,stroke:E[$]}})))))),S&&b.default?h$1("div",null,h$1("div",{class:"".concat(k,"-progress-text")},b.default())):null)}}}),progressProps=Object.assign(Object.assign({},useTheme.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),NProgress=defineComponent({name:"Progress",props:progressProps,setup(d){const b=computed(()=>d.indicatorPlacement||d.indicatorPosition),A=computed(()=>{if(d.gapDegree||d.gapDegree===0)return d.gapDegree;if(d.type==="dashboard")return 75}),{mergedClsPrefixRef:C,inlineThemeDisabled:w}=useConfig(d),x=useTheme("Progress","-progress",style$3,progressLight$1,d,C),S=computed(()=>{const{status:P}=d,{common:{cubicBezierEaseInOut:B},self:{fontSize:D,fontSizeCircle:k,railColor:I,railHeight:$,iconSizeCircle:M,iconSizeLine:L,textColorCircle:H,textColorLineInner:z,textColorLineOuter:Q,lineBgProcessing:q,fontWeightCircle:V,[createKey("iconColor",P)]:U,[createKey("fillColor",P)]:W}}=x.value;return{"--n-bezier":B,"--n-fill-color":W,"--n-font-size":D,"--n-font-size-circle":k,"--n-font-weight-circle":V,"--n-icon-color":U,"--n-icon-size-circle":M,"--n-icon-size-line":L,"--n-line-bg-processing":q,"--n-rail-color":I,"--n-rail-height":$,"--n-text-color-circle":H,"--n-text-color-line-inner":z,"--n-text-color-line-outer":Q}}),E=w?useThemeClass("progress",computed(()=>d.status[0]),S,d):void 0;return{mergedClsPrefix:C,mergedIndicatorPlacement:b,gapDeg:A,cssVars:w?void 0:S,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const{type:d,cssVars:b,indicatorTextColor:A,showIndicator:C,status:w,railColor:x,railStyle:S,color:E,percentage:P,viewBoxWidth:B,strokeWidth:D,mergedIndicatorPlacement:k,unit:I,borderRadius:$,fillBorderRadius:M,height:L,processing:H,circleGap:z,mergedClsPrefix:Q,gapDeg:q,gapOffsetDegree:V,themeClass:U,$slots:W,onRender:K}=this;return K==null||K(),h$1("div",{class:[U,"".concat(Q,"-progress"),"".concat(Q,"-progress--").concat(d),"".concat(Q,"-progress--").concat(w)],style:b,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":P,role:d==="circle"||d==="line"||d==="dashboard"?"progressbar":"none"},d==="circle"||d==="dashboard"?h$1(Circle,{clsPrefix:Q,status:w,showIndicator:C,indicatorTextColor:A,railColor:x,fillColor:E,railStyle:S,offsetDegree:this.offsetDegree,percentage:P,viewBoxWidth:B,strokeWidth:D,gapDegree:q===void 0?d==="dashboard"?75:0:q,gapOffsetDegree:V,unit:I},W):d==="line"?h$1(Line,{clsPrefix:Q,status:w,showIndicator:C,indicatorTextColor:A,railColor:x,fillColor:E,railStyle:S,percentage:P,processing:H,indicatorPlacement:k,unit:I,fillBorderRadius:M,railBorderRadius:$,height:L},W):d==="multiple-circle"?h$1(MultipleCircle,{clsPrefix:Q,strokeWidth:D,railColor:x,fillColor:E,railStyle:S,viewBoxWidth:B,percentage:P,showIndicator:C,circleGap:z},W):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:(...A)=>{var C;(C=d.value)===null||C===void 0||C.scrollTo(A[0],A[1])},scrollBy:(...A)=>{var C;(C=d.value)===null||C===void 0||C.scrollBy(A[0],A[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:A,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:A,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:A}=useConfig(d),C=useTheme("Spin","-spin",style$2,spinLight$1,d,b),w=computed(()=>{const{size:S}=d,{common:{cubicBezierEaseInOut:E},self:P}=C.value,{opacitySpinning:B,color:D,textColor:k}=P,I=typeof S=="number"?pxfy(S):P[createKey("size",S)];return{"--n-bezier":E,"--n-opacity-spinning":B,"--n-size":I,"--n-color":D,"--n-text-color":k}}),x=A?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:E}=d;return STROKE_WIDTH[typeof E=="number"?"medium":E]}),cssVars:A?void 0:w,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var d,b;const{$slots:A,mergedClsPrefix:C,description:w}=this,x=A.icon&&this.rotate,S=(w||A.description)&&h$1("div",{class:"".concat(C,"-spin-description")},w||((d=A.description)===null||d===void 0?void 0:d.call(A))),E=A.icon?h$1("div",{class:["".concat(C,"-spin-body"),this.themeClass]},h$1("div",{class:["".concat(C,"-spin"),x&&"".concat(C,"-spin--rotate")],style:A.default?"":this.cssVars},A.icon()),S):h$1("div",{class:["".concat(C,"-spin-body"),this.themeClass]},h$1(NBaseLoading,{clsPrefix:C,style:A.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),A.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")]},A),h$1(Transition,{name:"fade-in-transition"},{default:()=>this.compitableShow?E:null})):E}}),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:A,mergedRtlRef:C}=useConfig(d),w=useTheme("Table","-table",style$1,tableLight$1,d,b),x=useRtl("Table",C,b),S=computed(()=>{const{size:P}=d,{self:{borderColor:B,tdColor:D,tdColorModal:k,tdColorPopover:I,thColor:$,thColorModal:M,thColorPopover:L,thTextColor:H,tdTextColor:z,borderRadius:Q,thFontWeight:q,lineHeight:V,borderColorModal:U,borderColorPopover:W,tdColorStriped:K,tdColorStripedModal:Z,tdColorStripedPopover:te,[createKey("fontSize",P)]:ne,[createKey("tdPadding",P)]:ue,[createKey("thPadding",P)]:X},common:{cubicBezierEaseInOut:se}}=w.value;return{"--n-bezier":se,"--n-td-color":D,"--n-td-color-modal":k,"--n-td-color-popover":I,"--n-td-text-color":z,"--n-border-color":B,"--n-border-color-modal":U,"--n-border-color-popover":W,"--n-border-radius":Q,"--n-font-size":ne,"--n-th-color":$,"--n-th-color-modal":M,"--n-th-color-popover":L,"--n-th-font-weight":q,"--n-th-text-color":H,"--n-line-height":V,"--n-td-padding":ue,"--n-th-padding":X,"--n-td-color-striped":K,"--n-td-color-striped-modal":Z,"--n-td-color-striped-popover":te}}),E=A?useThemeClass("table",computed(()=>d.size[0]),S,d):void 0;return{rtlEnabled:x,mergedClsPrefix:b,cssVars:A?void 0:S,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("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:A,typeRef:C,closableRef:w,tabStyleRef:x,tabChangeIdRef:S,onBeforeLeaveRef:E,triggerRef:P,handleAdd:B,activateTab:D,handleClose:k}=inject(tabsInjectionKey);return{trigger:P,mergedClosable:computed(()=>{if(d.internalAddable)return!1;const{closable:I}=d;return I===void 0?w.value:I}),style:x,clsPrefix:b,value:A,type:C,handleClose(I){I.stopPropagation(),!d.disabled&&k(d.name)},activateTab(){if(d.disabled)return;if(d.internalAddable){B();return}const{name:I}=d,$=++S.id;if(I!==A.value){const{value:M}=E;M?Promise.resolve(M(d.name,A.value)).then(L=>{L&&S.id===$&&D(I)}):D(I)}}}},render(){const{internalAddable:d,clsPrefix:b,name:A,disabled:C,label:w,tab:x,value:S,mergedClosable:E,style:P,trigger:B,$slots:{default:D}}=this,k=w!=null?w:x;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:A,"data-name":A,"data-disabled":C?!0:void 0},mergeProps({class:["".concat(b,"-tabs-tab"),S===A&&"".concat(b,"-tabs-tab--active"),C&&"".concat(b,"-tabs-tab--disabled"),E&&"".concat(b,"-tabs-tab--closable"),d&&"".concat(b,"-tabs-tab--addable")],onClick:B==="click"?this.activateTab:void 0,onMouseenter:B==="hover"?this.activateTab:void 0,style:d?void 0:P},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)})):D?D():typeof k=="object"?k:render$1(k!=null?k:A)),E&&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 A,C,w,x;const{mergedClsPrefixRef:S,inlineThemeDisabled:E}=useConfig(d),P=useTheme("Tabs","-tabs",style,tabsLight$1,d,S),B=ref(null),D=ref(null),k=ref(null),I=ref(null),$=ref(null),M=ref(!0),L=ref(!0),H=useCompitable(d,["labelSize","size"]),z=useCompitable(d,["activeName","value"]),Q=ref((C=(A=z.value)!==null&&A!==void 0?A:d.defaultValue)!==null&&C!==void 0?C:b.default?(x=(w=flatten$4(b.default())[0])===null||w===void 0?void 0:w.props)===null||x===void 0?void 0:x.name:null),q=useMergedState(z,Q),V={id:0},U=computed(()=>{if(!(!d.justifyContent||d.type==="card"))return{display:"flex",justifyContent:d.justifyContent}});watch(q,()=>{V.id=0,te(),ne()});function W(){var Ke;const{value:Ie}=q;return Ie===null?null:(Ke=B.value)===null||Ke===void 0?void 0:Ke.querySelector('[data-name="'.concat(Ie,'"]'))}function K(Ke){if(d.type==="card")return;const{value:Ie}=D;if(Ie&&Ke){const Fe="".concat(S.value,"-tabs-bar--disabled"),{barWidth:ae,placement:ee}=d;if(Ke.dataset.disabled==="true"?Ie.classList.add(Fe):Ie.classList.remove(Fe),["top","bottom"].includes(ee)){if(Z(["top","maxHeight","height"]),typeof ae=="number"&&Ke.offsetWidth>=ae){const J=Math.floor((Ke.offsetWidth-ae)/2)+Ke.offsetLeft;Ie.style.left="".concat(J,"px"),Ie.style.maxWidth="".concat(ae,"px")}else Ie.style.left="".concat(Ke.offsetLeft,"px"),Ie.style.maxWidth="".concat(Ke.offsetWidth,"px");Ie.style.width="8192px",Ie.offsetWidth}else{if(Z(["left","maxWidth","width"]),typeof ae=="number"&&Ke.offsetHeight>=ae){const J=Math.floor((Ke.offsetHeight-ae)/2)+Ke.offsetTop;Ie.style.top="".concat(J,"px"),Ie.style.maxHeight="".concat(ae,"px")}else Ie.style.top="".concat(Ke.offsetTop,"px"),Ie.style.maxHeight="".concat(Ke.offsetHeight,"px");Ie.style.height="8192px",Ie.offsetHeight}}}function Z(Ke){const{value:Ie}=D;if(Ie)for(const Fe of Ke)Ie.style[Fe]=""}function te(){if(d.type==="card")return;const Ke=W();Ke&&K(Ke)}function ne(Ke){var Ie;const Fe=(Ie=$.value)===null||Ie===void 0?void 0:Ie.$el;if(!Fe)return;const ae=W();if(!ae)return;const{scrollLeft:ee,offsetWidth:J}=Fe,{offsetLeft:le,offsetWidth:ve}=ae;ee>le?Fe.scrollTo({top:0,left:le,behavior:"smooth"}):le+ve>ee+J&&Fe.scrollTo({top:0,left:le+ve-J,behavior:"smooth"})}const ue=ref(null);let X=0,se=null;function he(Ke){const Ie=ue.value;if(Ie){X=Ke.getBoundingClientRect().height;const Fe="".concat(X,"px"),ae=()=>{Ie.style.height=Fe,Ie.style.maxHeight=Fe};se?(ae(),se(),se=null):se=ae}}function me(Ke){const Ie=ue.value;if(Ie){const Fe=Ke.getBoundingClientRect().height,ae=()=>{document.body.offsetHeight,Ie.style.maxHeight="".concat(Fe,"px"),Ie.style.height="".concat(Math.max(X,Fe),"px")};se?(se(),se=null,ae()):se=ae}}function ie(){const Ke=ue.value;Ke&&(Ke.style.maxHeight="",Ke.style.height="")}const de={value:[]},be=ref("next");function ge(Ke){const Ie=q.value;let Fe="next";for(const ae of de.value){if(ae===Ie)break;if(ae===Ke){Fe="prev";break}}be.value=Fe,Se(Ke)}function Se(Ke){const{onActiveNameChange:Ie,onUpdateValue:Fe,"onUpdate:value":ae}=d;Ie&&call$1(Ie,Ke),Fe&&call$1(Fe,Ke),ae&&call$1(ae,Ke),Q.value=Ke}function je(Ke){const{onClose:Ie}=d;Ie&&call$1(Ie,Ke)}function Ye(){const{value:Ke}=D;if(!Ke)return;const Ie="transition-disabled";Ke.classList.add(Ie),te(),Ke.classList.remove(Ie)}let st=0;function ot(Ke){var Ie;if(Ke.contentRect.width===0&&Ke.contentRect.height===0||st===Ke.contentRect.width)return;st=Ke.contentRect.width;const{type:Fe}=d;(Fe==="line"||Fe==="bar")&&Ye(),Fe!=="segment"&&Ze((Ie=$.value)===null||Ie===void 0?void 0:Ie.$el)}const et=throttle(ot,64);watch([()=>d.justifyContent,()=>d.size],()=>{nextTick(()=>{const{type:Ke}=d;(Ke==="line"||Ke==="bar")&&Ye()})});const lt=ref(!1);function Me(Ke){var Ie;const{target:Fe,contentRect:{width:ae}}=Ke,ee=Fe.parentElement.offsetWidth;if(!lt.value)eeJ.$el.offsetWidth&&(lt.value=!1)}Ze((Ie=$.value)===null||Ie===void 0?void 0:Ie.$el)}const Oe=throttle(Me,64);function Qe(){const{onAdd:Ke}=d;Ke&&Ke(),nextTick(()=>{const Ie=W(),{value:Fe}=$;!Ie||!Fe||Fe.scrollTo({left:Ie.offsetLeft,top:0,behavior:"smooth"})})}function Ze(Ke){if(!Ke)return;const{placement:Ie}=d;if(Ie==="top"||Ie==="bottom"){const{scrollLeft:Fe,scrollWidth:ae,offsetWidth:ee}=Ke;M.value=Fe<=0,L.value=Fe+ee>=ae}else{const{scrollTop:Fe,scrollHeight:ae,offsetHeight:ee}=Ke;M.value=Fe<=0,L.value=Fe+ee>=ae}}const it=throttle(Ke=>{Ze(Ke.target)},64);provide(tabsInjectionKey,{triggerRef:toRef(d,"trigger"),tabStyleRef:toRef(d,"tabStyle"),paneClassRef:toRef(d,"paneClass"),paneStyleRef:toRef(d,"paneStyle"),mergedClsPrefixRef:S,typeRef:toRef(d,"type"),closableRef:toRef(d,"closable"),valueRef:q,tabChangeIdRef:V,onBeforeLeaveRef:toRef(d,"onBeforeLeave"),activateTab:ge,handleClose:je,handleAdd:Qe}),onFontsReady(()=>{te(),ne()}),watchEffect(()=>{const{value:Ke}=k;if(!Ke)return;const{value:Ie}=S,Fe="".concat(Ie,"-tabs-nav-scroll-wrapper--shadow-start"),ae="".concat(Ie,"-tabs-nav-scroll-wrapper--shadow-end");M.value?Ke.classList.remove(Fe):Ke.classList.add(Fe),L.value?Ke.classList.remove(ae):Ke.classList.add(ae)});const Te=ref(null);watch(q,()=>{if(d.type==="segment"){const Ke=Te.value;Ke&&nextTick(()=>{Ke.classList.add("transition-disabled"),Ke.offsetWidth,Ke.classList.remove("transition-disabled")})}});const _e={syncBarPosition:()=>{te()}},He=computed(()=>{const{value:Ke}=H,{type:Ie}=d,Fe={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[Ie],ae="".concat(Ke).concat(Fe),{self:{barColor:ee,closeIconColor:J,closeIconColorHover:le,closeIconColorPressed:ve,tabColor:Be,tabBorderColor:Ue,paneTextColor:rt,tabFontWeight:pt,tabBorderRadius:tt,tabFontWeightActive:at,colorSegment:Et,fontWeightStrong:Dt,tabColorSegment:Mt,closeSize:kt,closeIconSize:It,closeColorHover:we,closeColorPressed:pe,closeBorderRadius:ke,[createKey("panePadding",Ke)]:Ve,[createKey("tabPadding",ae)]:gt,[createKey("tabPaddingVertical",ae)]:yt,[createKey("tabGap",ae)]:xt,[createKey("tabGap","".concat(ae,"Vertical"))]:Ne,[createKey("tabTextColor",Ie)]:De,[createKey("tabTextColorActive",Ie)]:re,[createKey("tabTextColorHover",Ie)]:ce,[createKey("tabTextColorDisabled",Ie)]:Ae,[createKey("tabFontSize",Ke)]:ze},common:{cubicBezierEaseInOut:dt}}=P.value;return{"--n-bezier":dt,"--n-color-segment":Et,"--n-bar-color":ee,"--n-tab-font-size":ze,"--n-tab-text-color":De,"--n-tab-text-color-active":re,"--n-tab-text-color-disabled":Ae,"--n-tab-text-color-hover":ce,"--n-pane-text-color":rt,"--n-tab-border-color":Ue,"--n-tab-border-radius":tt,"--n-close-size":kt,"--n-close-icon-size":It,"--n-close-color-hover":we,"--n-close-color-pressed":pe,"--n-close-border-radius":ke,"--n-close-icon-color":J,"--n-close-icon-color-hover":le,"--n-close-icon-color-pressed":ve,"--n-tab-color":Be,"--n-tab-font-weight":pt,"--n-tab-font-weight-active":at,"--n-tab-padding":gt,"--n-tab-padding-vertical":yt,"--n-tab-gap":xt,"--n-tab-gap-vertical":Ne,"--n-pane-padding-left":getMargin(Ve,"left"),"--n-pane-padding-right":getMargin(Ve,"right"),"--n-pane-padding-top":getMargin(Ve,"top"),"--n-pane-padding-bottom":getMargin(Ve,"bottom"),"--n-font-weight-strong":Dt,"--n-tab-color-segment":Mt}}),Je=E?useThemeClass("tabs",computed(()=>"".concat(H.value[0]).concat(d.type[0])),He,d):void 0;return Object.assign({mergedClsPrefix:S,mergedValue:q,renderedNames:new Set,tabsRailElRef:Te,tabsPaneWrapperRef:ue,tabsElRef:B,barElRef:D,addTabInstRef:I,xScrollInstRef:$,scrollWrapperElRef:k,addTabFixed:lt,tabWrapperStyle:U,handleNavResize:et,mergedSize:H,handleScroll:it,handleTabsResize:Oe,cssVars:E?void 0:He,themeClass:Je==null?void 0:Je.themeClass,animationDirection:be,renderNameListRef:de,onAnimationBeforeLeave:he,onAnimationEnter:me,onAnimationAfterEnter:ie,onRender:Je==null?void 0:Je.onRender},_e)},render(){const{mergedClsPrefix:d,type:b,placement:A,addTabFixed:C,addable:w,mergedSize:x,renderNameListRef:S,onRender:E,paneWrapperClass:P,paneWrapperStyle:B,$slots:{default:D,prefix:k,suffix:I}}=this;E==null||E();const $=D?flatten$4(D()).filter(U=>U.type.__TAB_PANE__===!0):[],M=D?flatten$4(D()).filter(U=>U.type.__TAB__===!0):[],L=!M.length,H=b==="card",z=b==="segment",Q=!H&&!z&&this.justifyContent;S.value=[];const q=()=>{const U=h$1("div",{style:this.tabWrapperStyle,class:["".concat(d,"-tabs-wrapper")]},Q?null:h$1("div",{class:"".concat(d,"-tabs-scroll-padding"),style:{width:"".concat(this.tabsPadding,"px")}}),L?$.map((W,K)=>(S.value.push(W.props.name),justifyTabDynamicProps(h$1(Tab,Object.assign({},W.props,{internalCreatedByPane:!0,internalLeftPadded:K!==0&&(!Q||Q==="center"||Q==="start"||Q==="end")}),W.children?{default:W.children.tab}:void 0)))):M.map((W,K)=>(S.value.push(W.props.name),justifyTabDynamicProps(K!==0&&!Q?createLeftPaddedTabVNode(W):W))),!C&&w&&H?createAddTag(w,(L?$.length:M.length)!==0):null,Q?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")},H&&w?h$1(VResizeObserver,{onResize:this.handleTabsResize},{default:()=>U}):U,H?h$1("div",{class:"".concat(d,"-tabs-pad")}):null,H?null:h$1("div",{ref:"barElRef",class:"".concat(d,"-tabs-bar")}))},V=z?"top":A;return h$1("div",{class:["".concat(d,"-tabs"),this.themeClass,"".concat(d,"-tabs--").concat(b,"-type"),"".concat(d,"-tabs--").concat(x,"-size"),Q&&"".concat(d,"-tabs--flex"),"".concat(d,"-tabs--").concat(V)],style:this.cssVars},h$1("div",{class:["".concat(d,"-tabs-nav--").concat(b,"-type"),"".concat(d,"-tabs-nav--").concat(V),"".concat(d,"-tabs-nav")]},resolveWrappedSlot(k,U=>U&&h$1("div",{class:"".concat(d,"-tabs-nav__prefix")},U)),z?h$1("div",{class:"".concat(d,"-tabs-rail"),ref:"tabsRailElRef"},L?$.map((U,W)=>(S.value.push(U.props.name),h$1(Tab,Object.assign({},U.props,{internalCreatedByPane:!0,internalLeftPadded:W!==0}),U.children?{default:U.children.tab}:void 0))):M.map((U,W)=>(S.value.push(U.props.name),W===0?U:createLeftPaddedTabVNode(U)))):h$1(VResizeObserver,{onResize:this.handleNavResize},{default:()=>h$1("div",{class:"".concat(d,"-tabs-nav-scroll-wrapper"),ref:"scrollWrapperElRef"},["top","bottom"].includes(V)?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&&H?createAddTag(w,!0):null,resolveWrappedSlot(I,U=>U&&h$1("div",{class:"".concat(d,"-tabs-nav__suffix")},U))),L&&(this.animated&&(V==="top"||V==="bottom")?h$1("div",{ref:"tabsPaneWrapperRef",style:B,class:["".concat(d,"-tabs-pane-wrapper"),P]},filterMapTabPanes($,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):filterMapTabPanes($,this.mergedValue,this.renderedNames)))}});function filterMapTabPanes(d,b,A,C,w,x,S){const E=[];return d.forEach(P=>{const{name:B,displayDirective:D,"display-directive":k}=P.props,I=M=>D===M||k===M,$=b===B;if(P.key!==void 0&&(P.key=B),$||I("show")||I("show:lazy")&&A.has(B)){A.has(B)||A.add(B);const M=!I("if");E.push(M?withDirectives(P,[[vShow,$]]):P)}}),S?h$1(TransitionGroup,{name:"".concat(S,"-transition"),onBeforeLeave:C,onEnter:w,onAfterEnter:x},{default:()=>E}):E}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),A={common:{primaryColor:d,primaryColorHover:b,primaryColorPressed:b},LoadingBar:{colorLoading:d}},C=getQuery(),w=async()=>storeData.platformType==="TEACHER"?await teacherQueryUserInfo():await studentQueryUserInfo(),x=async()=>{const E=await w(),P=(E==null?void 0:E.data)||{};setUserInfo(P)};onBeforeMount(()=>{C.Authorization&&setToken(C.Authorization),x(),sessionStorage.setItem("SCRIPT_ERROR","0")}),onMounted(()=>{document.addEventListener("contextmenu",function(E){E.preventDefault()}),document.addEventListener("keydown",function(E){(E.key==="F12"||E.ctrlKey&&E.shiftKey&&E.key==="I"||E.metaKey&&E.altKey&&E.key==="I")&&E.preventDefault()}),eventGlobal.on("auth-not-installed",()=>{window.parent.postMessage({api:"onAuthNotInstalled"},"*")})});const S=computed(()=>storeData.status==="login"||C.dev);return()=>createVNode(NConfigProvider,{inlineThemeDisabled:!0,themeOverrides:A,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 A=this;if(b||(b={}),A.qpm=b.qpm?parseInt(b.qpm,10):null,!A.qpm){var C=d.metaText?d.metaText.tempo:null;A.qpm=d.getBpm(C)}A.extraMeasuresAtBeginning=b.extraMeasuresAtBeginning?parseInt(b.extraMeasuresAtBeginning,10):0,A.beatCallback=b.beatCallback,A.eventCallback=b.eventCallback,A.lineEndCallback=b.lineEndCallback,A.lineEndAnticipation=b.lineEndAnticipation?parseInt(b.lineEndAnticipation,10):0,A.beatSubdivisions=b.beatSubdivisions?parseInt(b.beatSubdivisions,10):1,A.joggerTimer=null,A.replaceTarget=function(x){A.noteTimings=x.setTiming(A.qpm,A.extraMeasuresAtBeginning),x.noteTimings.length===0&&(A.noteTimings=x.setTiming(0,0)),A.lineEndCallback&&(A.lineEndTimings=getLineEndTimings(x.noteTimings,A.lineEndAnticipation)),A.startTime=null,A.currentBeat=0,A.currentEvent=0,A.currentLine=0,A.currentTime=0,A.isPaused=!1,A.isRunning=!1,A.pausedPercent=null,A.justUnpaused=!1,A.newSeekPercent=0,A.lastTimestamp=0,A.noteTimings.length!==0&&(A.millisecondsPerBeat=1e3/(A.qpm/60)/A.beatSubdivisions,A.lastMoment=A.noteTimings[A.noteTimings.length-1].milliseconds,A.totalBeats=Math.round(A.lastMoment/A.millisecondsPerBeat))},A.replaceTarget(d),A.doTiming=function(x){if(A.lastTimestamp!==x&&(A.lastTimestamp=x,A.startTime||(A.startTime=x),!A.isPaused&&A.isRunning)){for(A.currentTime=x-A.startTime,A.currentTime+=16;A.noteTimings.length>A.currentEvent&&A.noteTimings[A.currentEvent].millisecondsA.currentLine&&A.lineEndTimings[A.currentLine].milliseconds=A.lastMoment)if(A.eventCallback){var D=A.eventCallback(null);A.shouldStop(D).then(function(k){k&&A.stop()})}else A.stop()}},A.shouldStop=function(x){return new Promise(function(S){if(!x)return S(!0);if(x==="continue")return S(!1);x.then&&x.then(function(E){S(E!=="continue")})})},A.doBeatCallback=function(x){if(A.beatCallback){for(var S=A.currentEvent;S=0&&A.noteTimings[S].left===null;)S--;P=A.noteTimings[S]}var B={},D={};if(P){B.top=P.top,B.height=P.height;var k=Math.max(0,x-A.startTime-P.milliseconds),I=E-P.milliseconds,$=P.endX-P.left,M=I?k*$/I:0;B.left=P.left+M,A.currentEvent===0&&P.milliseconds>x-A.startTime&&(B.left=void 0),D={timestamp:x,startTime:A.startTime,ev:P,endMs:E,offMs:k,offPx:M,gapMs:I,gapPx:$}}else D={timestamp:x,startTime:A.startTime};var L=A.startTime;if(A.beatCallback(A.currentBeat/A.beatSubdivisions,A.totalBeats/A.beatSubdivisions,A.lastMoment,B,D),L!==A.startTime)return x-A.startTime;A.currentBeat++}return null};var w=60;A.animationJogger=function(){A.isRunning&&(A.doTiming(performance.now()),A.joggerTimer=setTimeout(A.animationJogger,w))},A.start=function(x,S){if(A.isRunning=!0,A.isPaused&&(A.isPaused=!1,x===void 0&&(A.justUnpaused=!0)),x)A.setProgress(x,S);else if(x===0)A.reset();else if(A.pausedPercent!==null){var E=performance.now();A.currentTime=A.lastMoment*A.pausedPercent,A.startTime=E-A.currentTime,A.pausedPercent=null,A.reportNext=!0}requestAnimationFrame(A.doTiming),A.joggerTimer=setTimeout(A.animationJogger,w)},A.pause=function(){A.isPaused=!0;var x=performance.now();A.pausedPercent=(x-A.startTime)/A.lastMoment,A.isRunning=!1,A.joggerTimer&&(clearTimeout(A.joggerTimer),A.joggerTimer=null)},A.currentMillisecond=function(){return A.currentTime},A.reset=function(){A.currentBeat=0,A.currentEvent=0,A.currentLine=0,A.startTime=null,A.pausedPercent=null},A.stop=function(){A.pause(),A.reset()},A.setProgress=function(x,S){var E;switch(S){case"seconds":A.currentTime=x*1e3,A.currentTime<0&&(A.currentTime=0),A.currentTime>A.lastMoment&&(A.currentTime=A.lastMoment),E=A.currentTime/A.lastMoment;break;case"beats":A.currentTime=x*A.millisecondsPerBeat*A.beatSubdivisions,A.currentTime<0&&(A.currentTime=0),A.currentTime>A.lastMoment&&(A.currentTime=A.lastMoment),E=A.currentTime/A.lastMoment;break;default:E=x,E<0&&(E=0),E>1&&(E=1),A.currentTime=A.lastMoment*E;break}A.isRunning||(A.pausedPercent=E);var P=performance.now();for(A.startTime=P-A.currentTime,A.currentEvent,A.currentEvent=0;A.noteTimings.length>A.currentEvent&&A.noteTimings[A.currentEvent].millisecondsA.currentLine&&A.lineEndTimings[A.currentLine].milliseconds+A.lineEndAnticipation=0&&A.noteTimings[A.currentEvent].type==="event"&&A.eventCallback(A.noteTimings[A.currentEvent]),A.lineEndCallback&&A.lineEndCallback(A.lineEndTimings[A.currentLine],A.noteTimings[A.currentEvent],{line:A.currentLine,endTimings:A.lineEndTimings}),A.joggerTimer=setTimeout(A.animationJogger,w)}};function getLineEndTimings(d,b){for(var A=[],C=null,w=0;w=0&&d.lastIndexOf(b)===A};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,A,C,w;parseDirective$3.initialize=function(ie,de,be,ge,Se){d=ie,b=de,A=be,C=ge,w=Se,x()};function x(){A.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},A.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},A.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},A.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},A.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},A.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},A.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},A.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},A.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},A.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},A.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=A.annotationfont,C.formatting.gchordfont=A.gchordfont,C.formatting.historyfont=A.historyfont,C.formatting.infofont=A.infofont,C.formatting.measurefont=A.measurefont,C.formatting.partsfont=A.partsfont,C.formatting.repeatfont=A.repeatfont,C.formatting.textfont=A.textfont,C.formatting.tripletfont=A.tripletfont,C.formatting.vocalfont=A.vocalfont,C.formatting.wordsfont=A.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},E=function(ie){switch(ie){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}},P=function(ie,de,be,ge,Se){function je(){var He=parseInt(ie[0].token);return ie.shift(),de?ie.length===0?{face:de.face,weight:de.weight,style:de.style,decoration:de.decoration,size:He}:ie.length===1&&ie[0].token==="box"&&S[Se]?{face:de.face,weight:de.weight,style:de.style,decoration:de.decoration,size:He,box:!0}:(b("Extra parameters in font definition.",be,ge),{face:de.face,weight:de.weight,style:de.style,decoration:de.decoration,size:He}):(b("Can't set just the size of the font since there is no default value.",be,ge),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:He})}if(ie[0].token==="*"){if(ie.shift(),ie[0].type==="number")return je();b("Expected font size number after *.",be,ge)}if(ie[0].type==="number")return je();for(var Ye=[],st,ot="normal",et="normal",lt="none",Me=!1,Oe="face",Qe=!1;ie.length;){var Ze=ie.shift(),it=Ze.token.toLowerCase();switch(Oe){case"face":Qe||it!=="utf"&&Ze.type!=="number"&&it!=="bold"&&it!=="italic"&&it!=="underline"&&it!=="box"?Ye.length>0&&Ze.token==="-"?(Qe=!0,Ye[Ye.length-1]=Ye[Ye.length-1]+Ze.token):Qe?(Qe=!1,Ye[Ye.length-1]=Ye[Ye.length-1]+Ze.token):Ye.push(Ze.token):Ze.type==="number"?(st?b("Font size specified twice in font definition.",be,ge):st=Ze.token,Oe="modifier"):it==="bold"?ot="bold":it==="italic"?et="italic":it==="underline"?lt="underline":it==="box"?(S[Se]?Me=!0:b('This font style doesn\'t support "box"',be,ge),Oe="finished"):it==="utf"?(Ze=ie.shift(),Oe="size"):b("Unknown parameter "+Ze.token+" in font definition.",be,ge);break;case"size":Ze.type==="number"?st?b("Font size specified twice in font definition.",be,ge):st=Ze.token:b("Expected font size in font definition.",be,ge),Oe="modifier";break;case"modifier":it==="bold"?ot="bold":it==="italic"?et="italic":it==="underline"?lt="underline":it==="box"?(S[Se]?Me=!0:b('This font style doesn\'t support "box"',be,ge),Oe="finished"):b("Unknown parameter "+Ze.token+" in font definition.",be,ge);break;case"finished":b('Extra characters found after "box" in font definition.',be,ge);break}}st===void 0?de?st=de.size:(b("Must specify the size of the font since there is no default value.",be,ge),st=12):st=parseFloat(st),Ye=Ye.join(" "),Ye===""&&(de?Ye=de.face:(b("Must specify the name of the font since there is no default value.",be,ge),Ye="sans-serif"));var Te=E(Ye),_e={};return Te?(_e.face=Te.face,_e.weight=Te.weight,_e.style=Te.style,_e.decoration=Te.decoration,_e.size=st,Me&&(_e.box=!0),_e):(_e.face=Ye,_e.weight=ot,_e.style=et,_e.decoration=lt,_e.size=st,Me&&(_e.box=!0),_e)},B=function(ie,de,be){return de.length===0?'Directive "'+ie+'" requires a font as a parameter.':(A[ie]=P(de,A[ie],be,0,ie),A.is_in_header&&(C.formatting[ie]=A[ie]),null)},D=function(ie,de,be){return de.length===0?'Directive "'+ie+'" requires a font as a parameter.':(C.formatting[ie]=P(de,C.formatting[ie],be,0,ie),null)},k=function(ie,de){var be="";de.forEach(function(Se){be+=Se.token});var ge=parseFloat(be);if(isNaN(ge)||ge===0)return'Directive "'+ie+'" requires a number as a parameter.';C.formatting.scale=ge},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"],$=function(ie){var de=ie.split(/\s+/);if(de.length!==2&&de.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var be=de[0],ge=parseInt(de[1],10);if((isNaN(ge)||ge<35||ge>81)&&de[1]&&(ge=I.indexOf(de[1].toLowerCase())+35),isNaN(ge)||ge<35||ge>81)return{error:'Expected drum name, received "'+de[1]+'"'};var Se={sound:ge};return de.length===3&&(Se.noteHead=de[2]),{key:be,value:Se}},M=function(ie,de){var be=d.getMeasurement(de);return be.used===0||de.length!==0?{error:'Directive "'+ie+'" requires a measurement as a parameter.'}:be.value},L=function(ie,de){var be=d.getMeasurement(de);return be.used===0||de.length!==0?'Directive "'+ie+'" requires a measurement as a parameter.':(C.formatting[ie]=be.value,null)},H=function(ie,de,be,ge,Se){if(be.length!==1||be[0].type!=="number")return'Directive "'+de+'" requires a number as a parameter.';var je=be[0].intt;return ge!==void 0&&jeSe?'Directive "'+de+'" requires a number less than or equal to '+Se+" as a parameter.":(A[ie]=je,null)},z=function(ie,de,be){if(be.length===1&&(be[0].token==="true"||be[0].token==="false"))return A[ie]=be[0].token==="true",null;var ge=H(ie,de,be,0,1);return ge!==null?ge:(A[ie]=A[ie]===1,null)},Q=function(ie,de,be,ge){if(be.length!==1)return'Directive "'+de+'" requires one of [ '+ge.join(", ")+" ] as a parameter.";for(var Se=be[0].token,je=!1,Ye=0;!je&&Ye=0)ie.length!==0&&b("Unexpected parameter in MIDI "+ge,be,0);else if(V.indexOf(ge)>=0)ie.length!==1?b("Expected one parameter in MIDI "+ge,be,0):Se.push(ie[0].token);else if(U.indexOf(ge)>=0)ie.length!==1?b("Expected one parameter in MIDI "+ge,be,0):ie[0].type!=="number"?b("Expected one integer parameter in MIDI "+ge,be,0):Se.push(ie[0].intt);else if(W.indexOf(ge)>=0)ie.length!==1&&ie.length!==2?b("Expected one or two parameters in MIDI "+ge,be,0):ie[0].type!=="number"||ie.length===2&&ie[1].type!=="number"?b("Expected integer parameter in MIDI "+ge,be,0):(Se.push(ie[0].intt),ie.length===2&&Se.push(ie[1].intt));else if(K.indexOf(ge)>=0)ie.length!==2?b("Expected two parameters in MIDI "+ge,be,0):ie[0].type!=="number"||ie[1].type!=="number"?b("Expected two integer parameters in MIDI "+ge,be,0):(Se.push(ie[0].intt),Se.push(ie[1].intt));else if(ne.indexOf(ge)>=0)ie.length!==2?b("Expected two parameters in MIDI "+ge,be,0):ie[0].type!=="alpha"||ie[1].type!=="number"?b("Expected one string and one integer parameters in MIDI "+ge,be,0):(Se.push(ie[0].token),Se.push(ie[1].intt));else if(ge==="drummap")ie.length===2&&ie[0].type==="alpha"&&ie[1].type==="number"?(de.formatting||(de.formatting={}),de.formatting.midi||(de.formatting.midi={}),de.formatting.midi.drummap||(de.formatting.midi.drummap={}),de.formatting.midi.drummap[ie[0].token]=ie[1].intt,Se=de.formatting.midi.drummap):ie.length===3&&ie[0].type==="punct"&&ie[1].type==="alpha"&&ie[2].type==="number"?(de.formatting||(de.formatting={}),de.formatting.midi||(de.formatting.midi={}),de.formatting.midi.drummap||(de.formatting.midi.drummap={}),de.formatting.midi.drummap[ie[0].token+ie[1].token]=ie[2].intt,Se=de.formatting.midi.drummap):b("Expected one note name and one integer parameter in MIDI "+ge,be,0);else if(ue.indexOf(ge)>=0)ie.length!==3||ie[0].type!=="number"||ie[1].token!=="/"||ie[2].type!=="number"?b("Expected fraction parameter in MIDI "+ge,be,0):(Se.push(ie[0].intt),Se.push(ie[2].intt));else if(Z.indexOf(ge)>=0)ie.length!==4?b("Expected four parameters in MIDI "+ge,be,0):ie[0].type!=="number"||ie[1].type!=="number"||ie[2].type!=="number"||ie[3].type!=="number"?b("Expected four integer parameters in MIDI "+ge,be,0):(Se.push(ie[0].intt),Se.push(ie[1].intt),Se.push(ie[2].intt),Se.push(ie[3].intt));else if(te.indexOf(ge)>=0)ie.length!==5?b("Expected five parameters in MIDI "+ge,be,0):ie[0].type!=="number"||ie[1].type!=="number"||ie[2].type!=="number"||ie[3].type!=="number"||ie[4].type!=="number"?b("Expected five integer parameters in MIDI "+ge,be,0):(Se.push(ie[0].intt),Se.push(ie[1].intt),Se.push(ie[2].intt),Se.push(ie[3].intt),Se.push(ie[4].intt));else if(W.indexOf(ge)>=0)ie.length!==1||ie.length!==4?b("Expected one or two parameters in MIDI "+ge,be,0):ie[0].type!=="number"?b("Expected integer parameter in MIDI "+ge,be,0):ie.length===4?(ie[1].token!=="octave"&&b("Expected octave parameter in MIDI "+ge,be,0),ie[2].token!=="="&&b("Expected octave parameter in MIDI "+ge,be,0),ie[3].type!=="number"&&b("Expected integer parameter for octave in MIDI "+ge,be,0)):(Se.push(ie[0].intt),ie.length===4&&Se.push(ie[3].intt));else if(X.indexOf(ge)>=0)if(ie.length<2)b("Expected string parameter and at least one integer parameter in MIDI "+ge,be,0);else if(ie[0].type!=="alpha")b("Expected string parameter and at least one integer parameter in MIDI "+ge,be,0);else{var je=ie.shift();for(Se.push(je.token);ie.length>0;)je=ie.shift(),je.type!=="number"&&b("Expected integer parameter in MIDI "+ge,be,0),Se.push(je.intt)}w.hasBeginMusic()?w.appendElement("midi",-1,-1,{cmd:ge,params:Se}):(de.formatting.midi===void 0&&(de.formatting.midi={}),de.formatting.midi[ge]=Se)};parseDirective$3.parseFontChangeLine=function(ie){var de=ie.split("$");if(de.length>1&&A.setfont){for(var be=[{text:de[0]}],ge=1;ge1)return be}return ie};var he=["auto","above","below","hidden"];parseDirective$3.addDirective=function(ie){var de=d.tokenize(ie,0,ie.length);if(de.length===0||de[0].type!=="alpha")return null;var be=ie.substring(ie.indexOf(de[0].token)+de[0].token.length);be=d.stripComment(be);var ge=de.shift().token.toLowerCase(),Se="",je;switch(ge){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":A.landscape=!0;break;case"papersize":A.papersize=be;break;case"graceslurs":if(de.length!==1)return"Directive graceslurs requires one parameter: 0 or 1";if(de[0].token==="0"||de[0].token==="false")C.formatting.graceSlurs=!1;else if(de[0].token==="1"||de[0].token==="true")C.formatting.graceSlurs=!0;else return"Directive graceslurs requires one parameter: 0 or 1 (received "+de[0].token+")";break;case"lineThickness":var Ye=me(de);if(Ye.value!==void 0&&(C.formatting.lineThickness=Ye.value),Ye.error)return Ye.error;break;case"stretchlast":var st=me(de);if(st.value!==void 0&&(C.formatting.stretchlast=st.value),st.error)return st.error;break;case"titlecaps":A.titlecaps=!0;break;case"titleleft":C.formatting.titleleft=!0;break;case"measurebox":C.formatting.measurebox=!0;break;case"vocal":return Q("vocalPosition",ge,de,he);case"dynamic":return Q("dynamicPosition",ge,de,he);case"gchord":return Q("chordPosition",ge,de,he);case"ornament":return Q("ornamentPosition",ge,de,he);case"volume":return Q("volumePosition",ge,de,he);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(ge,de);case"voicescale":if(de.length!==1||de[0].type!=="number")return"voicescale requires one float as a parameter";var ot=de.shift();return A.currentVoice&&(A.currentVoice.scale=ot.floatt,w.changeVoiceScale(A.currentVoice.scale)),null;case"voicecolor":if(de.length!==1)return"voicecolor requires one string as a parameter";var et=de.shift();return A.currentVoice&&(A.currentVoice.color=et.token,w.changeVoiceColor(A.currentVoice.color)),null;case"vskip":var lt=Math.round(M(ge,de));return lt.error?lt.error:(w.addSpacing(lt),null);case"scale":k(ge,de);break;case"sep":if(de.length===0)w.addSeparator(14,14,85,{startChar:A.iChar,endChar:A.iChar+5});else{var Me=d.getMeasurement(de);if(Me.used===0)return'Directive "'+ge+'" requires 3 numbers: space above, space below, length of line';var Oe=Me.value;if(Me=d.getMeasurement(de),Me.used===0)return'Directive "'+ge+'" requires 3 numbers: space above, space below, length of line';var Qe=Me.value;if(Me=d.getMeasurement(de),Me.used===0||de.length!==0)return'Directive "'+ge+'" requires 3 numbers: space above, space below, length of line';var Ze=Me.value;w.addSeparator(Oe,Qe,Ze,{startChar:A.iChar,endChar:A.iChar+be.length})}break;case"barsperstaff":if(Se=H("barsperstaff",ge,de),Se!==null)return Se;break;case"staffnonote":if(de.length!==1)return"Directive staffnonote requires one parameter: 0 or 1";if(de[0].token==="0")A.staffnonote=!0;else if(de[0].token==="1")A.staffnonote=!1;else return"Directive staffnonote requires one parameter: 0 or 1 (received "+de[0].token+")";break;case"printtempo":if(Se=z("printTempo",ge,de),Se!==null)return Se;break;case"partsbox":if(Se=z("partsBox",ge,de),Se!==null)return Se;A.partsfont.box=A.partsBox;break;case"freegchord":if(Se=z("freegchord",ge,de),Se!==null)return Se;break;case"measurenb":case"barnumbers":if(Se=H("barNumbers",ge,de),Se!==null)return Se;break;case"setbarnb":if(de.length!==1||de[0].type!=="number")return"Directive setbarnb requires a number as a parameter.";A.currBarNumber=w.setBarNumberImmediate(de[0].intt);break;case"begintext":var it="";for(je=d.nextLine();je&&je.indexOf("%%endtext")!==0;)parseCommon$d.startsWith(je,"%%")?it+=je.substring(2)+"\n":it+=je+"\n",je=d.nextLine();w.addText(it,{startChar:A.iChar,endChar:A.iChar+it.length+7});break;case"continueall":A.continueall=!0;break;case"beginps":for(je=d.nextLine();je&&je.indexOf("%%endps")!==0;)d.nextLine();b("Postscript ignored",ie,0);break;case"deco":be.length>0&&A.ignoredDecorations.push(be.substring(0,be.indexOf(" "))),b("Decoration redefinition ignored",ie,0);break;case"text":var Te=d.translateString(be);w.addText(parseDirective$3.parseFontChangeLine(Te),{startChar:A.iChar,endChar:A.iChar+be.length+7});break;case"center":var _e=d.translateString(be);w.addCentered(parseDirective$3.parseFontChangeLine(_e));break;case"font":break;case"setfont":var He=d.tokenize(be,0,be.length);if(He.length>=4&&He[0].token==="-"&&He[1].type==="number"){var Je=parseInt(He[1].token);Je>=1&&Je<=4&&(A.setfont||(A.setfont=[]),He.shift(),He.shift(),A.setfont[Je]=P(He,A.setfont[Je],ie,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 B(ge,de,ie);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return D(ge,de,ie);case"barlabelfont":case"barnumberfont":case"barnumfont":return B("measurefont",de,ie);case"staves":case"score":A.score_is_present=!0;for(var Ke=function(gt,yt,xt,Ne,De){(yt||A.staves.length===0)&&A.staves.push({index:A.staves.length,numVoices:0});var re=parseCommon$d.last(A.staves);xt!==void 0&&re.bracket===void 0&&(re.bracket=xt),Ne!==void 0&&re.brace===void 0&&(re.brace=Ne),De&&(re.connectBarLines="end"),A.voices[gt]===void 0&&(A.voices[gt]={staffNum:re.index,index:re.numVoices},re.numVoices++)},Ie=!1,Fe=!1,ae=!1,ee=!1,J=!1,le=!1,ve=!1,Be,Ue=function(){if(ve=!0,Be){var gt="start";Be.staffNum>0&&(A.staves[Be.staffNum-1].connectBarLines==="start"||A.staves[Be.staffNum-1].connectBarLines==="continue")&&(gt="continue"),A.staves[Be.staffNum].connectBarLines=gt}};de.length;){var rt=de.shift();switch(rt.token){case"(":Ie?b("Can't nest parenthesis in %%score",ie,rt.start):(Ie=!0,ee=!0);break;case")":!Ie||ee?b("Unexpected close parenthesis in %%score",ie,rt.start):Ie=!1;break;case"[":Fe?b("Can't nest brackets in %%score",ie,rt.start):(Fe=!0,J=!0);break;case"]":!Fe||J?b("Unexpected close bracket in %%score",ie,rt.start):(Fe=!1,A.staves[Be.staffNum].bracket="end");break;case"{":ae?b("Can't nest braces in %%score",ie,rt.start):(ae=!0,le=!0);break;case"}":!ae||le?b("Unexpected close brace in %%score",ie,rt.start):(ae=!1,A.staves[Be.staffNum].brace="end");break;case"|":Ue();break;default:for(var pt="";(rt.type==="alpha"||rt.type==="number")&&(pt+=rt.token,rt.continueId);)rt=de.shift();var tt=!Ie||ee,at=J?"start":Fe?"continue":void 0,Et=le?"start":ae?"continue":void 0;Ke(pt,tt,at,Et,ve),ee=!1,J=!1,le=!1,ve=!1,Be=A.voices[pt],ge==="staves"&&Ue();break}}break;case"newpage":var Dt=d.getInt(be);w.addNewPage(Dt.digits===0?-1:Dt.value);break;case"abc":var Mt=be.split(" ");switch(Mt[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var kt=Mt.shift();w.addMetaText(ge+kt,Mt.join(" "),{startChar:A.iChar,endChar:A.iChar+be.length+5});break;default:return"Unknown directive: "+ge+Mt[0]}break;case"header":case"footer":var It=d.getMeat(be,0,be.length);It=be.substring(It.start,It.end),It[0]==='"'&&It[It.length-1]==='"'&&(It=It.substring(1,It.length-1));var we=It.split(" "),pe={};we.length===1?pe={left:"",center:we[0],right:""}:we.length===2?pe={left:we[0],center:we[1],right:""}:pe={left:we[0],center:we[1],right:we[2]},we.length>3&&b("Too many tabs in "+ge+": "+we.length+" found.",be,0),w.addMetaTextObj(ge,pe,{startChar:A.iChar,endChar:A.iChar+ie.length});break;case"midi":var ke=d.tokenize(be,0,be.length,!0);ke.length>0&&ke[0].token==="="&&ke.shift(),ke.length===0?b("Expected midi command",be,0):se(ke,C,be);break;case"percmap":var Ve=$(be);Ve.error?b(Ve.error,ie,8):(C.formatting.percmap||(C.formatting.percmap={}),C.formatting.percmap[Ve.key]=Ve.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":C.formatting[ge]=be;break;default:return"Unknown directive: "+ge}return null},parseDirective$3.globalFormatting=function(ie){for(var de in ie)if(ie.hasOwnProperty(de)){var be=""+ie[de],ge=d.tokenize(be,0,be.length),Se;switch(de){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":B(de,ge,be);break;case"scale":k(de,ge);break;case"partsbox":Se=z("partsBox",de,ge),Se!==null&&b(Se),A.partsfont.box=A.partsBox;break;case"freegchord":Se=z("freegchord",de,ge),Se!==null&&b(Se);break;case"fontboxpadding":(ge.length!==1||ge[0].type!=="number")&&b('Directive "'+de+'" requires a number as a parameter.'),C.formatting.fontboxpadding=ge[0].floatt;break;case"stretchlast":var je=me(ge);if(je.value!==void 0&&(C.formatting.stretchlast=je.value),je.error)return je.error;break;default:b("Formatting directive unrecognized: ",de,0)}}};function me(ie){if(ie.length===0)return{value:1};if(ie.length===1)if(ie[0].type==="number"){if(ie[0].floatt>=0||ie[0].floatt<=1)return{value:ie[0].floatt}}else{if(ie[0].token==="false")return{value:0};if(ie[0].token==="true")return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+ie[0].token+")"}}})();var abc_parse_directive=parseDirective$3,allNotes$1={};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'''"];allNotes$1.pitchIndex=function(d){return allPitches.indexOf(d)};allNotes$1.noteName=function(d){return allPitches[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,A,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 x=w[1],S=w[2],E=w[3],P=w[4],B=sharpChords.indexOf(x);if(B<0&&(B=flatChords.indexOf(x)),B<0&&(B=sharpChordsFree.indexOf(x)),B<0&&(B=flatChordsFree.indexOf(x)),B<0)return d;if(B+=b,B=B%12,A?C?d=flatChordsFree[B]:d=flatChords[B]:C?d=sharpChordsFree[B]:d=sharpChords[B],S&&(d+=S),E){var B=sharpChords.indexOf(E);B<0&&(B=flatChords.indexOf(E)),B<0&&(B=sharpChordsFree.indexOf(E)),B<0&&(B=flatChordsFree.indexOf(E)),d+="/",B>=0?(B+=b,B=B%12,A?C?d+=flatChordsFree[B]:d+=flatChords[B]:C?d+=sharpChordsFree[B]:d+=sharpChords[B]):d+=E}return P&&(d+=P),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&&(B=B%12);var D=b[0]==="m"?newKeyMinor[B]:newKey[B],k=D+b,I=keyAccidentals$1(k);I.length>0&&I[0].acc==="flat"&&(d.localTransposePreferFlats=!0);var $=k.charCodeAt(0)-S.charCodeAt(0);return d.localTranspose>0?($<0||$===0&&(S[1]==="#"||k[1]==="b"))&&($+=7):d.localTranspose<0&&($>0||$===0&&(S[1]==="b"||k[1]==="#"))&&($-=7),d.localTranspose>0?d.localTransposeVerticalMovement=$+Math.floor(d.localTranspose/12)*7:d.localTransposeVerticalMovement=$+Math.ceil(d.localTranspose/12)*7,P?{accidentals:I,root:D[0],acc:D.length>1?D[1]:""}:{accidentals:[],root:A,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,A,C,w){for(var x=pitchToLetter[(d+49)%7],S=0,E=0;E2&&(b++,$-=D==="b"||D==="e"?1:2),[b,$]}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 A=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]:"",x=allNotes.pitchIndex(C);b.name=w+allNotes.noteName(x+d.localTransposeVerticalMovement)}if(b.accidental){var S=accidentalChange(A,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,A,C;parseKeyVoice$3.initialize=function(D,k,I,$,M){d=D,b=k,A=I,C=M},parseKeyVoice$3.standardKey=function(D,k,I,$){return transpose$1.keySignature(A,D,k,I,$)};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}},x=function(D,k){var I=w[D],$=I?I.mid:0;return $+k};parseKeyVoice$3.fixClef=function(D){var k=w[D.type];k&&(D.clefPos=k.pitch,D.type=k.clef)},parseKeyVoice$3.deepCopyKey=function(D){var k={accidentals:[],root:D.root,acc:D.acc,mode:D.mode};return D.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(D,k){var I=D.verticalPos;k.accidentals.forEach(function($){var M=S[$.note];M=M-I,$.verticalPos=M}),k.impliedNaturals&&k.impliedNaturals.forEach(function($){var M=S[$.note];M=M-I,$.verticalPos=M}),I<-10?(k.accidentals.forEach(function($){$.verticalPos-=7,($.verticalPos>=11||$.verticalPos===10&&$.acc==="flat")&&($.verticalPos-=7),$.note==="A"&&$.acc==="sharp"&&($.verticalPos-=7),($.note==="G"||$.note==="F")&&$.acc==="flat"&&($.verticalPos-=7)}),k.impliedNaturals&&k.impliedNaturals.forEach(function($){$.verticalPos-=7,($.verticalPos>=11||$.verticalPos===10&&$.acc==="flat")&&($.verticalPos-=7),$.note==="A"&&$.acc==="sharp"&&($.verticalPos-=7),($.note==="G"||$.note==="F")&&$.acc==="flat"&&($.verticalPos-=7)})):I<-4?(k.accidentals.forEach(function($){$.verticalPos-=7,I===-8&&($.note==="f"||$.note==="g")&&$.acc==="sharp"&&($.verticalPos-=7)}),k.impliedNaturals&&k.impliedNaturals.forEach(function($){$.verticalPos-=7,I===-8&&($.note==="f"||$.note==="g")&&$.acc==="sharp"&&($.verticalPos-=7)})):I>=7&&(k.accidentals.forEach(function($){$.verticalPos+=7}),k.impliedNaturals&&k.impliedNaturals.forEach(function($){$.verticalPos+=7}))},parseKeyVoice$3.fixKey=function(D,k){var I=parseCommon$c.clone(k);return parseKeyVoice$3.addPosToKey(D,I),I};var E=function(D){var k=0,I=D[k++];(I==="^"||I==="_")&&(I=D[k++]);var $=S[I];for($===void 0&&($=6);k0){$.foundKey=!0;var L="",H="";I[0].token.length>1?I[0].token=I[0].token.substring(1):I.shift();var z=M.token;if(I.length>0){var Q=d.getSharpFlat(I[0].token);if(Q.len>0&&(I[0].token.length>1?I[0].token=I[0].token.substring(1):I.shift(),z+=Q.token,L=Q.token),I.length>0){var q=d.getMode(I[0].token);q.len>0&&(I.shift(),z+=q.token,H=q.token)}if(parseKeyVoice$3.standardKey(z,M.token,L,0)===void 0)return b("Unsupported key signature: "+z,D,0),$}var V=parseKeyVoice$3.deepCopyKey(A.key),U=!k&&A.globalTranspose?-A.globalTranspose:0,W;if(k&&(W=A.globalTransposeOrigKeySig),A.key=parseKeyVoice$3.deepCopyKey(parseKeyVoice$3.standardKey(z,M.token,L,U)),k&&(A.globalTransposeOrigKeySig=W),A.key.mode=H,V){for(var K,Z=0;Z0;)switch(I[0].token){case"m":case"middle":if(I.shift(),I.length===0)return b("Expected = after middle",D,0),$;if(he=I.shift(),he.token!=="="){b("Expected = after middle",D,he.start);break}if(I.length===0)return b("Expected parameter after middle=",D,0),$;var me=d.getPitchFromTokens(I);me.warn&&b(me.warn,D,0),me.position&&(A.clef.verticalPos=me.position-6);break;case"transpose":if(I.shift(),I.length===0)return b("Expected = after transpose",D,0),$;if(he=I.shift(),he.token!=="="){b("Expected = after transpose",D,he.start);break}if(I.length===0)return b("Expected parameter after transpose=",D,0),$;if(I[0].type!=="number"){b("Expected number after transpose",D,I[0].start);break}A.clef.transpose=I[0].intt,I.shift();break;case"stafflines":if(I.shift(),I.length===0)return b("Expected = after stafflines",D,0),$;if(he=I.shift(),he.token!=="="){b("Expected = after stafflines",D,he.start);break}if(I.length===0)return b("Expected parameter after stafflines=",D,0),$;if(I[0].type!=="number"){b("Expected number after stafflines",D,I[0].start);break}A.clef.stafflines=I[0].intt,I.shift();break;case"staffscale":if(I.shift(),I.length===0)return b("Expected = after staffscale",D,0),$;if(he=I.shift(),he.token!=="="){b("Expected = after staffscale",D,he.start);break}if(I.length===0)return b("Expected parameter after staffscale=",D,0),$;if(I[0].type!=="number"){b("Expected number after staffscale",D,I[0].start);break}A.clef.staffscale=I[0].floatt,I.shift();break;case"octave":if(I.shift(),I.length===0)return b("Expected = after octave",D,0),$;if(he=I.shift(),he.token!=="="){b("Expected = after octave",D,he.start);break}if(I.length===0)return b("Expected parameter after octave=",D,0),$;if(I[0].type!=="number"){b("Expected number after octave",D,I[0].start);break}A.octave=I[0].intt,I.shift();break;case"style":if(I.shift(),I.length===0)return b("Expected = after style",D,0),$;if(he=I.shift(),he.token!=="="){b("Expected = after style",D,he.start);break}if(I.length===0)return b("Expected parameter after style=",D,0),$;switch(I[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":A.style=I[0].token,I.shift();break;default:b("error parsing style element: "+I[0].token,D,I[0].start);break}break;case"clef":if(I.shift(),I.length===0)return b("Expected = after clef",D,0),$;if(he=I.shift(),he.token!=="="){b("Expected = after clef",D,he.start);break}if(I.length===0)return b("Expected parameter after clef=",D,0),$;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var ie=I.shift();switch(ie.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":ie.token="alto";break;case"F":ie.token="bass";break;case"G":ie.token="treble";break;case"c":ie.token="alto";break;case"f":ie.token="bass";break;case"g":ie.token="treble";break;default:b("Expected clef name. Found "+ie.token,D,ie.start);break}I.length>0&&I[0].type==="number"&&(ie.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"&&(ie.token+=I[0].token+I[1].token,I.shift(),I.shift()),A.clef={type:ie.token,verticalPos:x(ie.token,0)},A.currentVoice&&A.currentVoice.transpose!==void 0&&(A.clef.transpose=A.currentVoice.transpose),$.foundClef=!0;break;default:b("Unknown parameter: "+I[0].token,D,I[0].start),I.shift()}return $};var B=function(D){A.currentVoice=A.voices[D],C.setCurrentVoice(A.currentVoice.staffNum,A.currentVoice.index)};parseKeyVoice$3.parseVoice=function(D,k,I){var $=d.getMeat(D,k,I),M=$.start,L=$.end,H=d.getToken(D,M,L);if(H.length===0){b("Expected a voice id",D,M);return}var z=!1;A.voices[H]===void 0&&(A.voices[H]={},z=!0,A.score_is_present&&b("Can't have an unknown V: id when the %score directive is present",D,M)),M+=H.length,M+=d.eatWhiteSpace(D,M);for(var Q={startStaff:z},q=function(me){var ie=d.getVoiceToken(D,M,L);ie.warn!==void 0?b("Expected value for "+me+" in voice: "+ie.warn,D,M):ie.err!==void 0?b("Expected value for "+me+" in voice: "+ie.err,D,M):ie.token.length===0&&D[M]!=='"'?b("Expected value for "+me+" in voice",D,M):Q[me]=ie.token,M+=ie.len},V=function(me,ie,de){var be=d.getVoiceToken(D,M,L);be.warn!==void 0?b("Expected value for "+ie+" in voice: "+be.warn,D,M):be.err!==void 0?b("Expected value for "+ie+" in voice: "+be.err,D,M):be.token.length===0&&D[M]!=='"'?b("Expected value for "+ie+" in voice",D,M):(de==="number"&&(be.token=parseFloat(be.token)),A.voices[me][ie]=be.token),M+=be.len},U=function(me,ie){var de=d.getVoiceToken(D,M,L);if(de.warn!==void 0)b("Expected value for "+me+" in voice: "+de.warn,D,M);else if(de.err!==void 0)b("Expected value for "+me+" in voice: "+de.err,D,M);else if(de.token.length===0&&D[M]!=='"')b("Expected value for "+me+" in voice",D,M);else return ie==="number"&&(de.token=parseFloat(de.token)),de.token;M+=de.len},W=function(me,ie){var de={_B:2,_E:9,_b:-10,_e:-3},be=d.getVoiceToken(D,M,L);if(be.warn!==void 0)b("Expected one of (_B, _E, _b, _e) for "+ie+" in voice: "+be.warn,D,M);else if(be.token.length===0&&D[M]!=='"')b("Expected one of (_B, _E, _b, _e) for "+ie+" in voice",D,M);else{var ge=de[be.token];ge?A.voices[me][ie]=ge:b("Expected one of (_B, _E, _b, _e) for "+ie+" in voice",D,M)}M+=be.len};M0&&(A.default_length=I/$,A.havent_set_length=!1)}else k.length===1&&k[0]==="1"&&(A.default_length=1,A.havent_set_length=!1)};var x={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,D){try{var k=d.tokenize(E,P,B);if(k.length===0)throw"Missing parameter in Q: field";var I={startChar:D+P-2,endChar:D+B},$=!0,M=k.shift();if(M.type==="quote"&&(I.preString=M.token,M=k.shift(),k.length===0))return x[I.preString.toLowerCase()]&&(I.bpm=x[I.preString.toLowerCase()],I.suppressBpm=!0),{type:"immediate",tempo:I};if(M.type==="alpha"&&M.token==="C"){if(k.length===0)throw"Missing tempo after C in Q: field";if(M=k.shift(),M.type==="punct"&&M.token==="="){if(k.length===0)throw"Missing tempo after = in Q: field";if(M=k.shift(),M.type!=="number")throw"Expected number after = in Q: field";I.duration=[1],I.bpm=parseInt(M.token)}else if(M.type==="number"){if(I.duration=[parseInt(M.token)],k.length===0)throw"Missing = after duration in Q: field";if(M=k.shift(),M.type!=="punct"||M.token!=="=")throw"Expected = after duration in Q: field";if(k.length===0)throw"Missing tempo after = in Q: field";if(M=k.shift(),M.type!=="number")throw"Expected number after = in Q: field";I.bpm=parseInt(M.token)}else throw"Expected number or equal after C in Q: field"}else if(M.type==="number"){var L=parseInt(M.token);if(k.length===0||k[0].type==="quote")I.duration=[1],I.bpm=L;else{if($=!1,M=k.shift(),M.type!=="punct"&&M.token!=="/"||(M=k.shift(),M.type!=="number"))throw"Expected fraction in Q: field";var H=parseInt(M.token);for(I.duration=[L/H];k.length>0&&k[0].token!=="="&&k[0].type!=="quote";){if(M=k.shift(),M.type!=="number"||(L=parseInt(M.token),M=k.shift(),M.type!=="punct"&&M.token!=="/")||(M=k.shift(),M.type!=="number"))throw"Expected fraction in Q: field";H=parseInt(M.token),I.duration.push(L/H)}if(M=k.shift(),M.type!=="punct"&&M.token!=="=")throw"Expected = in Q: field";if(M=k.shift(),M.type!=="number")throw"Expected tempo in Q: field";I.bpm=parseInt(M.token)}}else throw"Unknown value in Q: field";if(k.length!==0&&(M=k.shift(),M.type==="quote"&&(I.postString=M.token,M=k.shift()),k.length!==0))throw"Unexpected string at end of Q: field";return A.printTempo===!1&&(I.suppress=!0),{type:$?"delaySet":"immediate",tempo:I}}catch(z){return b(z,E,P),{type:"none"}}},this.letter_to_inline_header=function(E,P,B){var D=d.eatWhiteSpace(E,P);if(P+=D,E.length>=P+5&&E[P]==="["&&E[P+2]===":"){var k=E.indexOf("]",P),I=A.iChar+P,$=A.iChar+k+1;switch(E.substring(P,P+3)){case"[I:":var M=parseDirective$1.addDirective(E.substring(P+3,k));return M&&b(M,E,P),[k-P+1+D];case"[M:":var L=this.setMeter(E.substring(P+3,k));return w.hasBeginMusic()&&L?w.appendStartingElement("meter",I,$,L):A.meter=L,[k-P+1+D];case"[K:":var H=parseKeyVoice$2.parseKey(E.substring(P+3,k),!0);return H.foundClef&&w.hasBeginMusic()&&w.appendStartingElement("clef",I,$,A.clef),H.foundKey&&w.hasBeginMusic()&&w.appendStartingElement("key",I,$,parseKeyVoice$2.fixKey(A.clef,A.key)),[k-P+1+D];case"[P:":return B||C.lines.length<=C.lineNum?A.partForNextLine={title:E.substring(P+3,k),startChar:I,endChar:$}:w.appendElement("part",I,$,{title:E.substring(P+3,k)}),[k-P+1+D];case"[L:":return this.setDefaultLength(E,P+3,k),[k-P+1+D];case"[Q:":if(k>0){var z=this.setTempo(E,P+3,k,A.iChar);return z.type==="delaySet"?w.hasBeginMusic()?w.appendElement("tempo",I,$,this.calcTempo(z.tempo)):A.tempoForNextLine=["tempo",I,$,this.calcTempo(z.tempo)]:z.type==="immediate"&&(!B&&w.hasBeginMusic()?w.appendElement("tempo",I,$,z.tempo):A.tempoForNextLine=["tempo",I,$,z.tempo]),[k-P+1+D,E[P+1],E.substring(P+3,k)]}break;case"[V:":if(k>0)return parseKeyVoice$2.parseVoice(E,P+3,k),[k-P+1+D,E[P+1],E.substring(P+3,k)];break;case"[r:":return[k-P+1+D]}}return[0]},this.letter_to_body_header=function(E,P){if(E.length>=P+3)switch(E.substring(P,P+2)){case"I:":var B=parseDirective$1.addDirective(E.substring(P+2));return B&&b(B,E,P),[E.length];case"M:":var D=this.setMeter(E.substring(P+2));return w.hasBeginMusic()&&D&&w.appendStartingElement("meter",A.iChar+P,A.iChar+E.length,D),[E.length];case"K:":var k=parseKeyVoice$2.parseKey(E.substring(P+2),w.hasBeginMusic());return k.foundClef&&w.hasBeginMusic()&&w.appendStartingElement("clef",A.iChar+P,A.iChar+E.length,A.clef),k.foundKey&&w.hasBeginMusic()&&w.appendStartingElement("key",A.iChar+P,A.iChar+E.length,parseKeyVoice$2.fixKey(A.clef,A.key)),[E.length];case"P:":return w.hasBeginMusic()&&w.appendElement("part",A.iChar+P,A.iChar+E.length,{title:E.substring(P+2)}),[E.length];case"L:":return this.setDefaultLength(E,P+2,E.length),[E.length];case"Q:":var I=E.indexOf("",P+2);I===-1&&(I=E.length);var $=this.setTempo(E,P+2,I,A.iChar);return $.type==="delaySet"?w.appendElement("tempo",A.iChar+P,A.iChar+E.length,this.calcTempo($.tempo)):$.type==="immediate"&&w.appendElement("tempo",A.iChar+P,A.iChar+E.length,$.tempo),[I,E[P],parseCommon$b.strip(E.substring(P+2))];case"V:":return parseKeyVoice$2.parseVoice(E,P+2,E.length),[E.length,E[P],parseCommon$b.strip(E.substring(P+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(E){var P=S[E[0]];if(P!==void 0)return P==="unalignedWords"?w.addMetaTextArray(P,parseDirective$1.parseFontChangeLine(d.translateString(d.stripComment(E.substring(2)))),{startChar:A.iChar,endChar:A.iChar+E.length}):w.addMetaText(P,d.translateString(d.stripComment(E.substring(2))),{startChar:A.iChar,endChar:A.iChar+E.length}),{};var B=A.iChar,D=B+E.length;switch(E[0]){case"H":for(w.addMetaText("history",d.translateString(d.stripComment(E.substring(2))),{startChar:A.iChar,endChar:A.iChar+E.length}),E=d.peekLine();E&&E[1]!==":";)d.nextLine(),w.addMetaText("history",d.translateString(d.stripComment(E)),{startChar:A.iChar,endChar:A.iChar+E.length}),E=d.peekLine();break;case"K":this.resolveTempo();var k=parseKeyVoice$2.parseKey(E.substring(2),!1);!A.is_in_header&&w.hasBeginMusic()&&(k.foundClef&&w.appendStartingElement("clef",B,D,A.clef),k.foundKey&&w.appendStartingElement("key",B,D,parseKeyVoice$2.fixKey(A.clef,A.key))),A.is_in_header=!1;break;case"L":this.setDefaultLength(E,2,E.length);break;case"M":A.origMeter=A.meter=this.setMeter(E.substring(2));break;case"P":A.is_in_header?w.addMetaText("partOrder",d.translateString(d.stripComment(E.substring(2))),{startChar:A.iChar,endChar:A.iChar+E.length}):A.partForNextLine={title:d.translateString(d.stripComment(E.substring(2))),startChar:B,endChar:D};break;case"Q":var I=this.setTempo(E,2,E.length,A.iChar);I.type==="delaySet"?A.tempo=I.tempo:I.type==="immediate"&&(C.metaText.tempo?A.tempoForNextLine=["tempo",B,D,I.tempo]:C.metaText.tempo=I.tempo);break;case"T":this.setTitle(E.substring(2));break;case"U":this.addUserDefinition(E,2,E.length);break;case"V":if(parseKeyVoice$2.parseVoice(E,2,E.length),!A.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",E,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,A,C,w,x){tokenizer=d,warn=b,multilineVars=A,tune=C,tuneBuilder$1=w,header=x,this.lineContinuation=!1},nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",isInTie=function(d,b,A){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]&&(A.pitches!==void 0||A.rest.type!=="spacer"))},el={};MusicParser.prototype.parseMusic=function(d){header.resolveTempo(),multilineVars.is_in_header=!1;for(var b=0,A=multilineVars.iChar;tokenizer.isWhiteSpace(d[b])&&b0&&(b+=x[0],x[1]==="V"&&this.startNewLine());for(var S=0;b0)b+=P[0],P[1]==="V"&&(C=!0);else{(!tuneBuilder$1.hasBeginMusic()||C&&!this.lineContinuation)&&(this.startNewLine(),C=!1);for(var B;;)if(B=tokenizer.eatWhiteSpace(d,b),B>0&&(b+=B),b>0&&d[b-1]===""&&(B=header.letter_to_body_header(d,b),B[0]>0&&(B[1]==="V"&&this.startNewLine(),b=B[0],multilineVars.start_new_line=!1)),B=letter_to_spacer(d,b),B[0]>0&&(b+=B[0]),B=letter_to_chord(d,b),B[0]>0){el.chord||(el.chord=[]);var D=tokenizer.translateString(B[1]);D=D.replace(/;/g,"\n");for(var k=!1,I=0;I0&&(el.force_end_beam_last=!0),b+=$}else if(nonDecorations.indexOf(d[b])===-1?B=letter_to_accent(d,b):B=[0],B[0]>0)B[1]===null?b+10&&(B[1].indexOf("style=")===0?el.style=B[1].substr(6):(el.decoration===void 0&&(el.decoration=[]),B[1]==="beambr1"?el.beambr=1:B[1]==="beambr2"?el.beambr=2:el.decoration.push(B[1]))),b+=B[0];else if(B=letter_to_grace(d,b),B[0]>0)el.gracenotes=B[1],b+=B[0];else break;if(B=letter_to_bar(d,b),B[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",A+b,A+b+B[0],el),multilineVars.measureNotEmpty=!0,el={});var M={type:B[1]};if(M.type.length===0)warn("Unknown bar type",d,b);else{if(multilineVars.inEnding&&M.type!=="bar_thin"&&(M.endEnding=!0,multilineVars.inEnding=!1),B[2]&&(M.startEnding=B[2],multilineVars.inEnding&&(M.endEnding=!0),multilineVars.inEnding=!0,B[1]==="bar_right_repeat"?multilineVars.restoreStartEndingHoldOvers():multilineVars.duplicateStartEndingHoldOvers()),el.decoration!==void 0&&(M.decoration=el.decoration),el.chord!==void 0&&(M.chord=el.chord),M.startEnding&&multilineVars.barFirstEndingNum===void 0?multilineVars.barFirstEndingNum=multilineVars.currBarNumber:M.startEnding&&M.endEnding&&multilineVars.barFirstEndingNum?multilineVars.currBarNumber=multilineVars.barFirstEndingNum:M.endEnding&&(multilineVars.barFirstEndingNum=void 0),M.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&&(M.barNumber=multilineVars.currBarNumber))}multilineVars.addFormattingOptions(el,tune.formatting,"bar"),tuneBuilder$1.appendElement("bar",A+E,A+b+B[0],M),multilineVars.measureNotEmpty=!1,el={}}b+=B[0]}else if(d[b]==="&")B=letter_to_overlay(d,b),B[0]>0&&(tuneBuilder$1.appendElement("overlay",A,A+1,{}),b+=1,S++);else{if(B=letter_to_open_slurs_and_triplets(d,b),B.consumed>0&&(B.startSlur!==void 0&&(el.startSlur=B.startSlur),B.dottedSlur&&(el.dottedSlur=!0),B.triplet!==void 0&&(w>0?warn("Can't nest triplets",d,b):(el.startTriplet=B.triplet,el.tripletMultiplier=B.tripletQ/B.triplet,el.tripletR=B.num_notes,w=B.num_notes===void 0?B.triplet:B.num_notes)),b+=B.consumed),d[b]==="["){b++;for(var H=null,z=!1,Q=!1;!Q;){var q=letter_to_accent(d,b);q[0]>0&&(b+=q[0]);var V=getCoreNote(d,b,{},!1);if(V!==null&&V.pitch!==void 0)q[0]>0&&q[1].indexOf("style=")!==0&&(el.decoration===void 0&&(el.decoration=[]),el.decoration.push(q[1])),V.end_beam&&(el.end_beam=!0,delete V.end_beam),el.pitches===void 0?(el.duration=V.duration,el.pitches=[V]):el.pitches.push(V),delete V.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]&&(V.endTie=!0,multilineVars.inTieChord[el.pitches.length]=void 0),V.startTie&&(multilineVars.inTieChord[el.pitches.length]=!0),b=V.endChar,delete V.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 U=!1;b":case"<":var W=getBrokenRhythm(d,b);b+=W[0]-1,multilineVars.next_note_duration=W[2],H?H=H*W[1]:H=W[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);H=K.value,b=K.index;var Z=d[b];Z===" "&&(z=!0),Z==="-"||Z===")"||Z===" "||Z==="<"||Z===">"?b--:U=!0;break;default:U=!0;break}U||b++}}else warn("Expected ']' to end the chords",d,b);el.pitches!==void 0&&(H!==null&&(el.duration=el.duration*H,z&&addEndBeam(el)),multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",A+E,A+b,el),multilineVars.measureNotEmpty=!0,el={}),Q=!0}}}else{var te={},ne=getCoreNote(d,b,te,!0);if(te.endTie!==void 0&&setIsInTie(multilineVars,S,!0),ne!==null){ne.pitch!==void 0?(el.pitches=[{}],ne.accidental!==void 0&&(el.pitches[0].accidental=ne.accidental),el.pitches[0].pitch=ne.pitch,el.pitches[0].name=ne.name,(ne.midipitch||ne.midipitch===0)&&(el.pitches[0].midipitch=ne.midipitch),ne.endSlur!==void 0&&(el.pitches[0].endSlur=ne.endSlur),ne.endTie!==void 0&&(el.pitches[0].endTie=ne.endTie),ne.startSlur!==void 0&&(el.pitches[0].startSlur=ne.startSlur),el.startSlur!==void 0&&(el.pitches[0].startSlur=el.startSlur),el.dottedSlur!==void 0&&(el.pitches[0].dottedSlur=!0),ne.startTie!==void 0&&(el.pitches[0].startTie=ne.startTie),el.startTie!==void 0&&(el.pitches[0].startTie=el.startTie)):(el.rest=ne.rest,ne.endSlur!==void 0&&(el.endSlur=ne.endSlur),ne.endTie!==void 0&&(el.rest.endTie=ne.endTie),ne.startSlur!==void 0&&(el.startSlur=ne.startSlur),ne.startTie!==void 0&&(el.rest.startTie=ne.startTie),el.startTie!==void 0&&(el.rest.startTie=el.startTie)),ne.chord!==void 0&&(el.chord=ne.chord),ne.duration!==void 0&&(el.duration=ne.duration),ne.decoration!==void 0&&(el.decoration=ne.decoration),ne.graceNotes!==void 0&&(el.graceNotes=ne.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)),(ne.startTie||el.startTie)&&setIsInTie(multilineVars,S,!0),b=ne.endChar,w>0&&!(ne.rest&&ne.rest.type==="spacer")&&(w--,w===0&&(el.endTriplet=!0)),ne.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 ue=[.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&&ue.indexOf(el.duration)===-1&&el.duration!==0&&(!el.rest||el.rest.type!=="spacer")&&warn("Duration not representable: "+d.substring(E,b),d,b),multilineVars.addFormattingOptions(el,tune.formatting,"note"),tuneBuilder$1.appendElement("note",A+E,A+b,el),multilineVars.measureNotEmpty=!0,el={}}}b===E&&(d[b]!==" "&&d[b]!=="`"&&warn("Unknown character ignored",d,b),b++)}}}this.lineContinuation=d.indexOf("")>=0||x[0]>0,this.lineContinuation||(el={})}};var setIsInTie=function(d,b,A){var C=d.currentVoice?d.currentVoice.staffNum*100+d.currentVoice.index:0;d.inTie[b]===void 0&&(d.inTie[b]=[]),d.inTie[b][C]=A},letter_to_chord=function(d,b){if(d[b]==='"'){var A=tokenizer.getBrackettedSubstring(d,b,5);if(A[2]||warn("Missing the closing quote while parsing the chord symbol",d,b),A[0]>0&&A[1].length>0&&A[1][0]==="^")A[1]=A[1].substring(1),A[2]="above";else if(A[0]>0&&A[1].length>0&&A[1][0]==="_")A[1]=A[1].substring(1),A[2]="below";else if(A[0]>0&&A[1].length>0&&A[1][0]==="<")A[1]=A[1].substring(1),A[2]="left";else if(A[0]>0&&A[1].length>0&&A[1][0]===">")A[1]=A[1].substring(1),A[2]="right";else if(A[0]>0&&A[1].length>0&&A[1][0]==="@"){A[1]=A[1].substring(1);var C=tokenizer.getFloat(A[1]);C.digits===0&&warn("Missing first position in absolutely positioned annotation.",d,b),A[1]=A[1].substring(C.digits),A[1][0]!==","&&warn("Missing comma absolutely positioned annotation.",d,b),A[1]=A[1].substring(1);var w=tokenizer.getFloat(A[1]);w.digits===0&&warn("Missing second position in absolutely positioned annotation.",d,b),A[1]=A[1].substring(w.digits);var x=tokenizer.skipWhiteSpace(A[1]);A[1]=A[1].substring(x),A[2]=null,A[3]={x:C.value,y:w.value}}else multilineVars.freegchord!==!0&&(A[1]=A[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),A[1]=A[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),A[1]=A[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),A[1]=A[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),A[1]=A[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),A[1]=A[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),A[2]="default",A[1]=transpose.chordName(multilineVars,A[1]);return A}return[0,""]},letter_to_grace=function(d,b){if(d[b]==="{"){var A=tokenizer.getBrackettedSubstring(d,b,1,"}");A[2]||warn("Missing the closing '}' while parsing grace note",d,b),d[b+A[0]]===")"&&(A[0]++,A[1]+=")");for(var C=[],w=0,x=!1;w0&&(C[C.length-1].endBeam=!0):warn("Unknown character '"+A[1][w]+"' while parsing grace note",d,b),w++)}if(C.length)return[A[0],C]}return[0]};function letter_to_overlay(d,b){if(d[b]==="&"){for(var A=b;d[b]&&d[b]!==":"&&d[b]!=="|";)b++;return[b-A,d.substring(A+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 A=multilineVars.macros[d[b]];if(A!==void 0)return(A[0]==="!"||A[0]==="+")&&(A=A.substring(1)),(A[A.length-1]==="!"||A[A.length-1]==="+")&&(A=A.substring(0,A.length-1)),legalAccents.includes(A)?[1,A]:volumeDecorations.includes(A)?(multilineVars.volumePosition==="hidden"&&(A=""),[1,A]):dynamicDecorations.includes(A)?(multilineVars.dynamicPosition==="hidden"&&(A=""),[1,A]):(multilineVars.ignoredDecorations.includes(A)||warn("Unknown macro: "+A,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(x){return C[1]===x[0]});return w>=0?(C[1]=accentPseudonyms[w][1],C):(w=accentDynamicPseudonyms.findIndex(function(x){return C[1]===x[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 A=b;tokenizer.isWhiteSpace(d[b]);)b++;return[b-A]},letter_to_bar=function(d,b){var A=tokenizer.getBarLine(d,b);if(A.len===0)return[0,""];if(A.warn)return warn(A.warn,d,b),[A.len,""];for(var C=0;C="2"&&d[b+1]<="9"?(A.triplet!==void 0?warn("Can't nest triplets",d,b):(A.triplet=d[b+1]-"0",A.tripletQ=tripletQ[A.triplet],A.num_notes=A.triplet,b+2="1"&&d[b+4]<="9"?(A.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"?(A.tripletQ=d[b+3]-"0",b+4="1"&&d[b+5]<="9"&&(A.num_notes=d[b+5]-"0",b+=4):b+=2):warn("expected number after the triplet to mark the duration",d,b))),b++):A.startSlur===void 0?A.startSlur=1:A.startSlur++),b++;return A.consumed=b-C,A};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 A=0;A=0?(A.duration=tune.getBarLength(),A.rest.text=1,S="Zduration"):(C&&multilineVars.next_note_duration!==0?(A.duration=multilineVars.default_length*multilineVars.next_note_duration,multilineVars.next_note_duration=0,E=!0):A.duration=multilineVars.default_length,S="duration");else return w(S)?(A.endChar=b,A):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 B=tokenizer.getFraction(d,b);for(A.duration=A.duration*B.value,A.endChar=B.index;B.index"))b--,S="broken_rhythm";else return A}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],A.duration=k[1]*A.duration,S="end_slur"}else return A.endChar=b,A;else return null;break;default:return w(S)?(A.endChar=b,A):null}if(b++,b===d.length)return w(S)?(A.endChar=b,A):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=B.length};this.eatWhiteSpace=function(B,D){for(var k=D;k="a"&&$[M]<="z"||$[M]>="A"&&$[M]<="Z");)M++;return M},k=this.skipWhiteSpace(B);if(A(B,k))return{len:0};var I=B.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:D(B,k),token:"Mix"};case"dor":return{len:D(B,k),token:"Dor"};case"phr":return{len:D(B,k),token:"Phr"};case"lyd":return{len:D(B,k),token:"Lyd"};case"loc":return{len:D(B,k),token:"Loc"};case"aeo":return{len:D(B,k),token:"m"};case"maj":return{len:D(B,k),token:""};case"ion":return{len:D(B,k),token:""};case"min":return{len:D(B,k),token:"m"};case"m":return{len:D(B,k),token:"m"}}return{len:0}},this.getClef=function(B,D){var k=B,I=this.skipWhiteSpace(B);if(A(B,I))return{len:0};var $=!1,M=B.substring(I);if(parseCommon$9.startsWith(M,"clef=")&&($=!0,M=M.substring(5),I+=5),M.length===0&&$)return{len:I+5,warn:"No clef specified: "+k};var L=this.skipWhiteSpace(M);if(A(M,L))return{len:0};L>0&&(I+=L,M=M.substring(L));var H=null;if(parseCommon$9.startsWith(M,"treble"))H="treble";else if(parseCommon$9.startsWith(M,"bass3"))H="bass3";else if(parseCommon$9.startsWith(M,"bass"))H="bass";else if(parseCommon$9.startsWith(M,"tenor"))H="tenor";else if(parseCommon$9.startsWith(M,"alto2"))H="alto2";else if(parseCommon$9.startsWith(M,"alto1"))H="alto1";else if(parseCommon$9.startsWith(M,"alto"))H="alto";else if(!D&&$&&parseCommon$9.startsWith(M,"none"))H="none";else if(parseCommon$9.startsWith(M,"perc"))H="perc";else if(!D&&$&&parseCommon$9.startsWith(M,"C"))H="tenor";else if(!D&&$&&parseCommon$9.startsWith(M,"F"))H="bass";else if(!D&&$&&parseCommon$9.startsWith(M,"G"))H="treble";else return{len:I+5,warn:"Unknown clef specified: "+k};return M=M.substring(H.length),L=this.isMatch(M,"+8"),L>0?H+="+8":(L=this.isMatch(M,"-8"),L>0&&(H+="-8")),{len:I+H.length,token:H,explicit:$}},this.getBarLine=function(B,D){switch(B[D]){case"]":switch(++D,B[D]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++D,B[D]>="1"&&B[D]<="9"||B[D]==='"'?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}case":":switch(++D,B[D]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++D,B[D]){case"]":switch(++D,B[D]){case"|":return++D,B[D]===":"?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}case"|":return++D,B[D]===":"?{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(++D,B[D]==="|")switch(++D,B[D]){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 B[D]>="1"&&B[D]<="9"||B[D]==='"'?{len:1,token:"bar_invisible"}:{len:0};case"|":switch(++D,B[D]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++D,B[D]===":"?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var k=0;B[D+k]===":";)k++;return{len:1+k,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(B,D){for(var k=0;k0;){var k;if(B[0].token==="^"){if(k="sharp",B.shift(),B.length===0)return{accs:D,warn:"Expected note name after "+k};switch(B[0].token){case"^":k="dblsharp",B.shift();break;case"/":k="quartersharp",B.shift();break}}else if(B[0].token==="=")k="natural",B.shift();else if(B[0].token==="_"){if(k="flat",B.shift(),B.length===0)return{accs:D,warn:"Expected note name after "+k};switch(B[0].token){case"_":k="dblflat",B.shift();break;case"/":k="quarterflat",B.shift();break}}else return{accs:D};if(B.length===0)return{accs:D,warn:"Expected note name after "+k};switch(B[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":D===void 0&&(D=[]),D.push({acc:k,note:B[0].token[0]}),B[0].token.length===1?B.shift():B[0].token=B[0].token.substring(1);break;default:return{accs:D,warn:"Expected note name after "+k+" Found: "+B[0].token}}}return{accs:D}},this.getKeyAccidental=function(B){var D={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},k=this.skipWhiteSpace(B);if(A(B,k))return{len:0};var I=null;switch(B[k]){case"^":case"_":case"=":I=B[k];break;default:return{len:0}}if(k++,A(B,k))return{len:1,warn:"Expected note name after accidental"};switch(B[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:D[I],note:B[k]}};case"^":case"_":case"/":if(I+=B[k],k++,A(B,k))return{len:2,warn:"Expected note name after accidental"};switch(B[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:D[I],note:B[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(B){return B===" "||B===" "||B===""},this.getMeat=function(B,D,k){var I=B.indexOf("%",D);for(I>=0&&I="A"&&B<="Z"||B>="a"&&B<="z"},w=function(B){return B>="0"&&B<="9"};this.tokenize=function(B,D,k,I){var $=this.getMeat(B,D,k);D=$.start,k=$.end;for(var M=[],L;D=k?{len:1,err:"Missing close quote"}:{len:$-D+1,token:this.translateString(B.substring(I+1,$))}}else{for(var M=I;M=0?parseCommon$9.strip(B.substring(0,D)):parseCommon$9.strip(B)},this.getInt=function(B){var D=parseInt(B);if(isNaN(D))return{digits:0};var k=""+D,I=B.indexOf(k);return{value:D,digits:I+k.length}},this.getFloat=function(B){var D=parseFloat(B);if(isNaN(D))return{digits:0};var k=""+D,I=B.indexOf(k);return{value:D,digits:I+k.length}},this.getMeasurement=function(B){if(B.length===0)return{used:0};var D=1,k="";if(B[0].token==="-")B.shift(),k="-",D++;else if(B[0].type!=="number")return{used:0};if(k+=B.shift().token,B.length===0)return{used:1,value:parseInt(k)};var I=B.shift();if(I.token==="."){if(D++,B.length===0)return{used:D,value:parseInt(k)};if(B[0].type==="number"&&(I=B.shift(),k=k+"."+I.token,D++,B.length===0))return{used:D,value:parseFloat(k)};I=B.shift()}switch(I.token){case"pt":return{used:D+1,value:parseFloat(k)};case"px":return{used:D+1,value:parseFloat(k)};case"cm":return{used:D+1,value:parseFloat(k)/2.54*72};case"in":return{used:D+1,value:parseFloat(k)*72};default:return B.unshift(I),{used:D,value:parseFloat(k)}}};var P=function(B){return B=B.replace(/\\n/g,"\n"),B=B.replace(/\\"/g,'"'),B};this.getBrackettedSubstring=function(B,D,k,I){for(var $=I||B[D],M=D+1,L=!1;MB.length-1&&(M=B.length-1),[M-D+1,P(B.substring(D+1,M)),!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[P.line].staff[P.staff].barNumber=S);for(var D=Object.keys(B),k=0;k=0;M--)if($[M].el_type==="key"){w[P.staff]={root:$[M].root,acc:$[M].acc,mode:$[M].mode,accidentals:$[M].accidentals.filter(function(H){return H.acc!=="natural"})};break}for(M=$.length-1;M>=0;M--)if($[M].el_type==="stem"){x[P.staff*10+P.voice]={direction:$[M].direction};break}if(A!==void 0&&P.staff===0&&P.voice===0)for(M=0;M<$.length;M++)$[M].el_type==="bar"&&(S++,M===$.length-1?delete $[M].barNumber:$[M].barNumber=S)}else C[P.line]=d[P.ogLine]}for(var L=0;L0?(A.push(x-1),C.push(Math.round(w-S)),w=S):xx&&kx?(P.push(k-1),E++,S=Math.max(S,x),x=Math.abs(A-b[E]),w.push(C-I),C=I):x=$}w.push(C)}function optimizeLineWidths(d,b,A,C){for(var w=Math.ceil(d.total/b),x=Math.floor(d.total/w),S=[],E=0;Eb&&(S=!0),E%A===A-1&&(E!==d.length-1&&C.push(E),w.push(Math.round(x)),x=0);return{failed:S,totals:w,lineBreaks:C}}function getRevisedTuneParams(d,b,A){var C={lineBreaks:d,staffwidth:b};for(var w in A)A.hasOwnProperty(w)&&w!=="wrap"&&w!=="staffwidth"&&(C[w]=A[w]);return{revisedParams:C}}function calcLineWraps(d,b,A){if(b.length===0||A.staffwidth0&&k.measureWidths.length<25&&(q=optimizeLineWidths(k,$,z,H),H.attempts.push({type:"Optimize",failed:q.failed,reason:q.reason,lineBreaks:q.lineBreaks,totals:q.totals}),q.failed||(z=q.lineBreaks))}P.push(z),B.push(H)}var V=A.staffwidth,U=getRevisedTuneParams(P,V,A);return U.explanation=B,U.reParse=!0,U}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($,M){M=M||{};var L,H=M.program||0,z=M.midiTranspose||0;$.visualTranspose&&(z-=$.visualTranspose);var Q=M.channel||0,q=!1,V=M.drum||"",U=M.drumBars||1,W=M.drumIntro||0,K=V!=="",Z=[],te=50;H=parseInt(H,10),z=parseInt(z,10),Q=parseInt(Q,10),Q===10&&(H=b),V=V.split(" "),U=parseInt(U,10),W=parseInt(W,10);var ne=$.formatting.bagpipes;ne&&(H=71);var ue=[];if($.formatting.midi){var X=$.formatting.midi;X.program&&X.program.length>0&&(H=X.program[0],X.program.length>1&&(H=X.program[1],Q=X.program[0]),q=!0),X.transpose&&(z=X.transpose[0]),X.channel&&(Q=X.channel[0],q=!0),X.drum&&(V=X.drum),X.drumbars&&(U=X.drumbars[0]),X.drumon&&(K=!0),Q===10&&(H=b),X.beat&&ue.push({el_type:"beat",beats:X.beat}),X.nobeataccents&&ue.push({el_type:"beataccents",value:!1})}M.qpm?L=parseInt(M.qpm,10):$.metaText.tempo?L=E($.metaText.tempo,$.getBeatLength()):M.defaultQpm?L=M.defaultQpm:L=180;var se=[];ne&&se.push({el_type:"bagpipes"}),se.push({el_type:"instrument",program:H}),Q&&se.push({el_type:"channel",channel:Q}),z&&se.push({el_type:"transpose",transpose:z}),se.push({el_type:"tempo",qpm:L});for(var he=0;he=0?Ve="pppp":pe.decoration.indexOf("ppp")>=0?Ve="ppp":pe.decoration.indexOf("pp")>=0?Ve="pp":pe.decoration.indexOf("p")>=0?Ve="p":pe.decoration.indexOf("mp")>=0?Ve="mp":pe.decoration.indexOf("mf")>=0?Ve="mf":pe.decoration.indexOf("f")>=0?Ve="f":pe.decoration.indexOf("ff")>=0?Ve="ff":pe.decoration.indexOf("fff")>=0?Ve="fff":pe.decoration.indexOf("ffff")>=0&&(Ve="ffff"),Ve&&(Se=ke[Ve].slice(0),me[Oe].push({el_type:"beat",beats:Se.slice(0)}),ie[it]=!1,de[it]=!1),pe.decoration.indexOf("crescendo(")>=0){var gt=A(Te,ae,"crescendo)"),yt=Math.min(127,Se[0]+te),xt=C(Te,ae+gt+1,Object.keys(ke));xt&&(yt=ke[xt][0]),gt>0?ie[it]=Math.floor((yt-Se[0])/gt):ie[it]=!1,de[it]=!1}else if(pe.decoration.indexOf("crescendo)")>=0)ie[it]=!1;else if(pe.decoration.indexOf("diminuendo(")>=0){var Ne=A(Te,ae,"diminuendo)"),De=Math.max(15,Se[0]-te),re=C(Te,ae+Ne+1,Object.keys(ke));re&&(De=ke[re][0]),ie[it]=!1,Ne>0?de[it]=Math.floor((De-Se[0])/Ne):de[it]=!1}else pe.decoration.indexOf("diminuendo)")>=0&&(de[it]=!1)};for(var Me=lt.staff,Oe=0,Qe=0;Qe=0?me[Oe].push({el_type:"transpose",transpose:-12}):Ze.clef.type.indexOf("+8")>=0&&me[Oe].push({el_type:"transpose",transpose:12})),$.formatting.midi&&$.formatting.midi.drumoff&&(me[Oe].push({el_type:"bar"}),me[Oe].push({el_type:"drum",params:{pattern:"",on:!1}}));var Je=0,Ke=0,Ie=0,Fe=0;Se=[105,95,85,1];for(var ae=0;ae=0?me[Oe].push({el_type:"transpose",transpose:-12}):ee.type.indexOf("+8")>=0&&me[Oe].push({el_type:"transpose",transpose:12}));break;case"tempo":L=E(ee,$.getBeatLength()),me[Oe].push({el_type:"tempo",qpm:L,timing:be[Oe]}),ge[""+be[Oe]]={el_type:"tempo",qpm:L,timing:be[Oe]};break;case"bar":Je>0&&me[Oe].push({el_type:"bar"}),we(ee),Je=0;var Be=ee.type==="bar_right_repeat"||ee.type==="bar_dbl_repeat",Ue=ee.startEnding==="1",rt=ee.type==="bar_left_repeat"||ee.type==="bar_dbl_repeat"||ee.type==="bar_right_repeat";if(Be){var pt=je[Oe];pt||(pt=0);var tt=Ye[Oe];tt||(tt=me[Oe].length);for(var at=pt;atIt;)It++;if(me[kt].length>It)for(var ve=0;ve0&&me[0].length>0&&(me[0][0].pickupLength=$.getPickupLength()),me};function A($,M,L){for(var H=0,z=M+1;z<$.length;z++)if($[z].el_type==="note"&&H++,$[z].decoration&&$[z].decoration.indexOf(L)>=0)return H;return H}function C($,M,L){for(var H=Math.min($.length,M+3),z=M;z=0)return $[z].decoration[Q]}return null}function w($,M){if(!(!M||M.length===0))for(var L=Object.keys(M),H=0;H<$.length;H++)for(var z=$[H],Q=M[0]?M[0].qpm:0,q=0;q=0&&Q!==M[""+V.timing].qpm&&(Q=M[""+V.timing].qpm,V.el_type==="tempo"?(V.qpm=M[""+V.timing].qpm,q++):($[H].splice(q,0,{el_type:"tempo",qpm:M[""+V.timing].qpm,timing:V.timing}),q+=2))}}function x($){for(var M=0;M<$.length;M++)for(var L=$[M],H=L.length-1;H>=0&&L[H].el_type!=="bar";)L[H].noChordVoice=!0,H--}function S($,M){if(!(!$||$.length<=M||!$[M].title))return $[M].title.join(" ")}function E($,M){var L=.25;$.duration&&(L=$.duration[0]);var H=60;return $.bpm&&(H=$.bpm),L*H/M}function P($){var M;switch($.type){case"common_time":M={el_type:"meter",num:4,den:4};break;case"cut_time":M={el_type:"meter",num:2,den:2};break;case"specified":M={el_type:"meter",num:$.value[0].num,den:$.value[0].den};break;default:M={el_type:"meter"}}return d=M.num/M.den,M}function B($){for(var M=[],L=0;L<$.length;L++)$[L].acc!=="natural"&&M.push($[L]);return M}function D($,M){var L;M.root==="HP"?L={el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:L={el_type:"key",accidentals:B(M.accidentals)},I($,L)}function k($,M){var L=P(M);I($,L)}function I($,M){for(var L=$.length-1;L>=0;L--)if($[L].el_type===M.el_type){JSON.stringify($[L])!==JSON.stringify(M)&&$.push(M);return}$.push(M)}})();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,A,C,w,x=1,S,E,P,B,D,k={num:4,den:4},I,$,M,L,H=0,z=0,Q=128,q=64,V=48,U,W,K,Z,te=!1,ne=!1,ue=!0,X=105,se=95,he=85,me=.25,ie,de,be=0,ge,Se={},je,Ye=0,st,ot=0,et=-.001,lt=.4;flatten$1=function(Ne,De,re,ce){De||(De={}),ce||(ce={}),d=[],b=[0,0,0,0,0,0,0],C=[],w=De.qpm,x=1,S=void 0,E=void 0,P=void 0,B=void 0,D=0,st=re,k={num:4,den:4},I=[],$=!1,L=Ne.length,M=!1,U=[],H=ce.bassprog&&ce.bassprog.length===1?ce.bassprog[0]:0,z=ce.chordprog&&ce.chordprog.length===1?ce.chordprog[0]:0,q=ce.bassvol&&ce.bassvol.length===1?ce.bassvol[0]:64,V=ce.chordvol&&ce.chordvol.length===1?ce.chordvol[0]:48,W=void 0,K=void 0,te=!!De.chordsOff,ne=!1,ue=!0,X=105,se=95,he=85,me=.25,ie=void 0,de=void 0,be=0,ge=[],Se={},je=1,Ne.length>0&&Ne[0].length>0&&(Ye=Ne[0][0].pickupLength),it(Ne,De);for(var Ae=0;Ae=0)&&(dt=!0);for(var vt=0;vt0&&($===!1||Ae===$)&&(ke(Z,Qe(wt.time)),U=[]),d=[],Ae===0&&yt(Ne.length+1),ne=!1,K=W,Z=Qe(wt.time);break;case"bagpipes":break;case"instrument":if(S===void 0&&(S=wt.program),E=wt.program,P.length>0&&P[P.length-1].cmd==="program")P[P.length-1].instrument=wt.program;else{var Xe;for(Xe=P.length-1;Xe>=0&&P[Xe].cmd!=="program";Xe--);(Xe<0||P[Xe].instrument!==wt.program)&&P.push({cmd:"program",channel:0,instrument:wt.program})}break;case"channel":Me(wt.channel);break;case"drum":Se=Ve(wt.params),gt();break;case"gchord":De.chordsOff||(te=wt.tacet);break;case"beat":X=wt.beats[0],se=wt.beats[1],he=wt.beats[2];break;case"vol":ie=wt.volume;break;case"volinc":de=wt.volume;break;case"beataccents":ue=wt.value;break;default:console.log("MIDI creation. Unknown el_type: "+wt.el_type+"\n");break}}P[0].instrument===void 0&&(P[0].instrument=S||0),B&&P.unshift(B),C.push(P),Oe()||(M=!0),ge.length>0}return De.detuneOctave&&xt(C,parseInt(De.detuneOctave,10)),Oe()||C.push(I),ge.length>0&&C.push(ge),{tempo:w,instrument:S,tracks:C,totalDuration:D}};function Me(Ne){for(var De=P.length-1;De>=0;De--)if(P[De].cmd==="program"){P[De].channel=Ne;return}}function Oe(){for(var Ne=!0,De=0;De=0)return"break"}return null}function Je(Ne,De,re){var ce=re-Ne;return ce/De}function Ke(Ne,De){if(De)return 0;var re;if(ie)re=ie,ie=void 0;else if(!ue)re=se;else if(Ye>Ne)re=he;else{k.num/k.den;var ce=Je(Z,Te(k),Ne);ce===0?re=X:parseInt(ce,10)===ce?re=se:re=he}return de&&(re+=de,de=void 0),re<0&&(re=0),re>127&&(re=127),De?0:re}function Ie(Ne){var De=!1,re=He(Ne);if(re){var ce=Dt(re);if(ce){I.length===0&&(De=!0,I.push({cmd:"program",channel:L,instrument:z})),W=ce;var Ae=Je(Z,Te(k),Qe(Ne.time));U.push({chord:W,beat:Ae,start:Qe(Ne.time)})}}return De}function Fe(Ne,De){var re={};if(Ne.decoration)for(var ce=0;ce0;)P.push({cmd:"note",pitch:De.pitch+ze,volume:De.volume,start:re,duration:Ae,gap:0,instrument:E,style:"decoration"}),ze=ze===1?0:1,ce-=Ae,re+=Ae;break;case"mordent":P.push({cmd:"note",pitch:De.pitch,volume:De.volume,start:re,duration:Ae,gap:0,instrument:E,style:"decoration"}),ce-=Ae,re+=Ae,P.push({cmd:"note",pitch:De.pitch+1,volume:De.volume,start:re,duration:Ae,gap:0,instrument:E,style:"decoration"}),ce-=Ae,re+=Ae,P.push({cmd:"note",pitch:De.pitch,volume:De.volume,start:re,duration:ce,gap:0,instrument:E});break;case"lowermordent":P.push({cmd:"note",pitch:De.pitch,volume:De.volume,start:re,duration:Ae,gap:0,instrument:E,style:"decoration"}),ce-=Ae,re+=Ae,P.push({cmd:"note",pitch:De.pitch-1,volume:De.volume,start:re,duration:Ae,gap:0,instrument:E,style:"decoration"}),ce-=Ae,re+=Ae,P.push({cmd:"note",pitch:De.pitch,volume:De.volume,start:re,duration:ce,gap:0,instrument:E});break;case"turn":Ae=De.duration/5,P.push({cmd:"note",pitch:De.pitch,volume:De.volume,start:re,duration:Ae,gap:0,instrument:E,style:"decoration"}),P.push({cmd:"note",pitch:De.pitch+1,volume:De.volume,start:re+Ae,duration:Ae,gap:0,instrument:E,style:"decoration"}),P.push({cmd:"note",pitch:De.pitch,volume:De.volume,start:re+Ae*2,duration:Ae,gap:0,instrument:E,style:"decoration"}),P.push({cmd:"note",pitch:De.pitch+1,volume:De.volume,start:re+Ae*3,duration:Ae,gap:0,instrument:E,style:"decoration"}),P.push({cmd:"note",pitch:De.pitch,volume:De.volume,start:re+Ae*4,duration:Ae,gap:0,instrument:E});break;case"roll":for(;ce>0;)P.push({cmd:"note",pitch:De.pitch,volume:De.volume,start:re,duration:Ae,gap:0,instrument:E,style:"decoration"}),ce-=Ae*2,re+=Ae*2;break}}function ee(Ne,De){P.length;var re=Ke(Qe(Ne.time),De),ce=Ie(Ne),Ae;if(Ne.gracenotes&&Ne.pitches&&Ne.pitches.length>0&&Ne.pitches[0]&&(Ae=Ue(Ne.gracenotes,Ne.pitches[0].duration),Ne.elem&&(Ne.elem.midiGraceNotePitches=rt(Ae,Qe(Ne.time),re*2/3,E))),Ne.elem){var ze=Qe(Ne.time),dt=ze/me/w*60*1e3;if(Ne.elem.currentTrackMilliseconds===void 0)Ne.elem.currentTrackMilliseconds=dt,Ne.elem.currentTrackWholeNotes=ze;else if(Ne.elem.currentTrackMilliseconds.length===void 0)Ne.elem.currentTrackMilliseconds!==dt&&(Ne.elem.currentTrackMilliseconds=[Ne.elem.currentTrackMilliseconds,dt],Ne.elem.currentTrackWholeNotes=[Ne.elem.currentTrackWholeNotes,ze]);else{for(var vt=!1,wt=0;wt0?$e.endType="tenuto":ht&&($e.endType=ht),$e.endType){case"tenuto":$e.gap=et;break;case"staccato":var Ge=$e.duration*lt;$e.gap=w/60*Ge;break;default:$e.gap=ot;break}P.push($e)}}}P.length-1}var ct=J(Ne);return D=Math.max(D,Qe(Ne.time)+Ze(ct)),ce}function J(Ne){return Ne.pitches&&Ne.pitches.length>0&&Ne.pitches[0]?Ne.pitches[0].duration:Ne.elem?Ne.elem.duration:Ne.duration}var le=[0,2,4,5,7,9,11];function ve(Ne){if(Ne.midipitch!==void 0)return Ne.midipitch;var De=Ne.pitch;if(Ne.accidental)switch(Ne.accidental){case"sharp":d[De]=1;break;case"flat":d[De]=-1;break;case"natural":d[De]=0;break;case"dblsharp":d[De]=2;break;case"dblflat":d[De]=-2;break;case"quartersharp":d[De]=.25;break;case"quarterflat":d[De]=-.25;break}var re=tt(De)*12+le[at(De)]+60;return d[De]!==void 0?re+=d[De]:re+=b[at(De)],re+=A,re}function Be(Ne){var De=[0,0,0,0,0,0,0];if(!Ne.accidentals)return De;for(var re=0;re=0?(Ne.pitch=Math.round(Ne.pitch),Ne.cents=-50):De.indexOf(".25")>=0&&(Ne.pitch=Math.round(Ne.pitch),Ne.cents=50),Ne}function tt(Ne){return Math.floor(Ne/7)}function at(Ne){return Ne=Ne%7,Ne<0&&(Ne+=7),Ne}var Et={A:33,B:35,C:36,D:38,E:40,F:41,G:43};function Dt(Ne){if(Ne.length!==0){if(Ne==="break")return{chick:[]};var De=Ne.substring(0,1);if(De==="("){if(Ne=Ne.substring(1,Ne.length-2),Ne.length===0)return;De=Ne.substring(0,1)}var re=Et[De];if(re){for(var ce=A;ce<-8;)ce+=12;for(;ce>8;)ce-=12;re+=ce;var Ae=re-5,ze;Ne.length===1&&(ze=kt(re,""));var dt=Ne.substring(1),vt=dt.substring(0,1);vt==="b"||vt==="♭"?(re--,Ae--,dt=dt.substring(1)):(vt==="#"||vt==="♯")&&(re++,Ae++,dt=dt.substring(1));var wt=dt.split("/");if(ze=kt(re,wt[0]),ze.length>=3){var ht=ze[2]-ze[0];Ae=Ae+ht-7}if(wt.length===2){var Xe=Et[wt[1].substring(0,1)];if(Xe){var mt=wt[1].substring(1),bt={"#":1,"♯":1,b:-1,"♭":-1}[mt]||0;re=Et[wt[1].substring(0,1)]+bt+ce,Ae=re}}return{boom:re,boom2:Ae,chick:ze}}}}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 kt(Ne,De){var re=Mt[De];re||(De.slice(0,2).toLowerCase()==="ma"||De[0]==="M"?re=Mt.M:De[0]==="m"||De[0]==="-"?re=Mt.m:re=Mt.M),Ne+=12;for(var ce=[],Ae=0;Ae1){vt=vt.sort(function(bt,Y){return bt.pitch-Y.pitch});var wt=vt[vt.length-1],ht=wt.pitch%12,Xe=!1;for(Ae=0;!Xe&&Ae=E&&(P-=E),I[M].el_type==="bar")return P}return P}this.getPickupLength=function(){var S=this.getBarLength(),E=b(this.lines,S);return E<1e-8||S-E<1e-8?0:E},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 E;if(S)E=S;else{var P=this.metaText?this.metaText.tempo:null;E=this.getBpm(P)}E<=0&&(E=1);var B=this.getBeatsPerMeasure(),D=B/E;return D*6e4},this.getBeatsPerMeasure=function(){var S=this.getBeatLength(),E=this.getBarLength();return E/S},this.getMeter=function(){for(var S=0;SS)return M}}return null};function A(S){for(var E,P,B,D,k=S.length-1;k>=0;k--){var I=S[k];I.type==="bar"?(I.top=B,I.nextTop=E,E=B,I.bottom=D,I.nextBottom=P,P=D):I.type==="event"&&(B=I.top,D=I.top+I.height)}}function C(S){var E=[];for(var P in S)S.hasOwnProperty(P)&&E.push(S[P]);return E=E.sort(function(B,D){var k=B.milliseconds-D.milliseconds;return k!==0?k:B.type==="bar"?-1:1}),E}this.addElementToEvents=function(S,E,P,B,D,k,I,$,M,L){if(E.hint)return{isTiedState:void 0,duration:0};var H=E.durationClass?E.durationClass:E.duration;if(E.abcelem.rest&&E.abcelem.rest.type==="spacer"&&(H=0),H>0){for(var z=[],Q=0;Q0){var k=D.staffs[0],I=k.absoluteY,$=I-k.top*spacing$d.STEP,M=D.staffs[D.staffs.length-1];I=M.absoluteY;for(var L=I-M.bottom*spacing$d.STEP,H=L-$,z=D.voices,Q=0;Q0&&k["event"+q]&&(se="event"+q),q=Math.round(Q*1e3),ue.type==="bar"){var he=ue.abcelem.type,me=he==="bar_right_repeat"||he==="bar_dbl_repeat",ie=ue.abcelem.startEnding==="1",de=he==="bar_left_repeat"||he==="bar_dbl_repeat"||he==="bar_right_repeat";if(me){te>0&&(k[se].endX=ue.x),U===-1&&(U=te);var be=0;Z=-1;for(var ge=V;geB.left&&(B.endX=Math.min(B.endX,k)):B.endX=k}}var I=E[E.length-1];I.endX=S[I.line].staffGroup.w}}this.getBpm=function(S){var E;if(S){E=S.bpm;var P=this.getBeatLength(),B=S.duration&&S.duration.length>0?S.duration[0]:P;E=E*B/P}if(!E){E=180;var D=this.getMeterFraction();D&&D.num!==3&&D.num%3===0&&(E=120)}return E},this.setTiming=function(S,E){if(E=E||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var P=this.metaText?this.metaText.tempo:null,B=this.getBpm(P),D=1;S?P&&(D=S/B):S=B;var k=this.getBeatLength(),I=S/60,$=this.getBarLength(),M=$/k*E/I;M&&(M-=this.getPickupLength()/k/I);var L=k*I;return this.noteTimings=this.setupEvents(M,L,S,D),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 E=sequence$1(this,S);return flatten(E,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,x=[],S=0;S=d.lines[Q].staff[0].voices.length&&d.lines[Q].staff[0].voices.push([{el_type:"note",duration:x[Q],rest:{type:"invisible"},startChar:z.startChar,endChar:z.endChar}])}else z.el_type==="bar"?(M?(M=!1,D[k].snip.push({start:L,len:H-L}),D[k].voice.push(z)):($>0&&D[k].voice.push({el_type:"note",duration:$,rest:{type:"invisible"},startChar:z.startChar,endChar:z.endChar}),D[k].voice.push(z)),$=0):z.el_type==="note"?M?D[k].voice.push(z):($+=z.duration,x[S]+=z.duration):(z.el_type==="scale"||z.el_type==="stem"||z.el_type==="overlay"||z.el_type==="style"||z.el_type==="transpose"||z.el_type==="color")&&D[k].voice.push(z)}D[k].hasOverlay&&D[k].snip.length===0&&D[k].snip.push({start:L,len:I.length-L})}for(k=0;k=0;V--){var U=q.snip[V];B.voices[k].splice(U.start,U.len),B.voices[k].splice(U.start+1,0,{el_type:"stem",direction:"auto"});var W=A(B.voices[k],U.start);B.voices[k].splice(W,0,{el_type:"stem",direction:"up"})}for(V=0;V0&&w[S].el_type!=="bar";S--);return S}function C(w){for(var x=!0,S=0;S=W&&neW;){if(U[W].staff)return U[W];W++}return null}for(d.lineNum=0;d.lineNum0&&Q[Q.length-1].barNumber){var V=H(d.lines,d.lineNum);V&&(V.staff[0].barNumber=Q[Q.length-1].barNumber),delete Q[Q.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 x=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum][w];if(x.el_type==="note")return x}return null},this.addTieToLastNote=function(w){var x=this.getLastNote();return x&&x.pitches&&x.pitches.length>0?(x.pitches[0].startTie={},w&&(x.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,x,S,E){var P=d,B=function($){var M=P.lines[P.lineNum].staff[P.staffNum];if(M){if($.pitches!==void 0){var L=M.workingClef.verticalPos;$.pitches.forEach(function(z){z.verticalPos=z.pitch-L})}if($.gracenotes!==void 0){var H=M.workingClef.verticalPos;$.gracenotes.forEach(function(z){z.verticalPos=z.pitch-H})}M.voices[P.voiceNum].push($)}};E.el_type=w,x!==null&&(E.startChar=x),S!==null&&(E.endChar=S);var D=function(){P.potentialStartBeam.startBeam=!0,E.endBeam=!0,delete P.potentialStartBeam,delete P.potentialEndBeam},k=function(){P.potentialStartBeam!==void 0&&P.potentialEndBeam!==void 0&&(P.potentialStartBeam.startBeam=!0,P.potentialEndBeam.endBeam=!0),delete P.potentialStartBeam,delete P.potentialEndBeam};if(w==="note"){var I=b.getDuration(E);I>=.25||E.force_end_beam_last&&P.potentialStartBeam!==void 0?k():E.end_beam&&P.potentialStartBeam!==void 0?E.rest===void 0?D():k():E.rest===void 0&&(P.potentialStartBeam===void 0?E.end_beam||(P.potentialStartBeam=E,delete P.potentialEndBeam):P.potentialEndBeam=E)}else k();delete E.end_beam,delete E.force_end_beam_last,B(E)},this.appendStartingElement=function(w,x,S,E){this.closeLine();var P;w==="key"&&(P=E.impliedNaturals,delete E.impliedNaturals,delete E.explicitAccidentals);var B=parseCommon$5.clone(E);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=B);for(var D=d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum],k=0;k0){if(D.voices[0]!==void 0){for(var k=!1,I=0;I0){var S=x[x.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;x--)if(d.lines[x].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var w=d.lines[d.lineNum];if(!w)return null;var x=w.staff[d.staffNum];return x&&x.voices[d.voiceNum]!==void 0?x.voices[d.voiceNum]:null},this.setCurrentVoice=function(w,x){d.staffNum=w,d.voiceNum=x;for(var S=0;S/g,">")},k=function(V,U,W){U||(U=" ");var K=U[W];(K===" "||!K)&&(K="SPACE");var Z=D(U.substring(W-64,W))+''+K+""+D(U.substring(W+1).substring(0,64));P("Music Line:"+A.lineIndex+":"+(W+1)+": "+V+": "+Z),B({message:V,line:U,startChar:E.iChar+W,column:W})},I,$;this.getWarnings=function(){return E.warnings},this.getWarningObjects=function(){return E.warningObjects};var M=function(V,U){if(U.indexOf("")>=0){C+=U;return}if(U=C+U,C="",!V){k("Can't add words before the first line of music",V,0);return}U=parseCommon$4.strip(U),U[U.length-1]!=="-"&&(U=U+" ");for(var W=[],K=0,Z=!1,te=function(se){var he=parseCommon$4.strip(U.substring(K,se));if(he=he.replace(/\\([-_*|~])/g,"$1"),K=se+1,he.length>0){Z&&(he=he.replace(/~/g," "));var me=U[se];return me!=="_"&&me!=="-"&&(me=" "),W.push({syllable:A.translateString(he),divider:me}),Z=!1,!0}return!1},ne=!1,ue=0;ue0&&(parseCommon$4.last(W).divider="-",W.push({skip:!0,to:"next"}));break;case"_":ne||(te(ue),W.push({skip:!0,to:"slur"}));break;case"*":ne||(te(ue),W.push({skip:!0,to:"next"}));break;case"|":ne||(te(ue),W.push({skip:!0,to:"bar"}));break;case"~":ne||(Z=!0);break}ne=U[ue]==="\\"}var X=!1;V.forEach(function(se){if(W.length!==0){if(W[0].skip){switch(W[0].to){case"next":se.el_type==="note"&&se.pitches!==null&&!X&&W.shift();break;case"slur":se.el_type==="note"&&se.pitches!==null&&W.shift();break;case"bar":se.el_type==="bar"&&W.shift();break}se.el_type!=="bar"&&(se.lyric===void 0?se.lyric=[{syllable:"",divider:" "}]:se.lyric.push({syllable:"",divider:" "}))}else if(se.el_type==="note"&&se.rest===void 0&&!X){var he=W.shift();he.syllable&&(he.syllable=he.syllable.replace(/ +/g," ")),se.lyric===void 0?se.lyric=[he]:se.lyric.push(he)}}})},L=function(V,U){if(U.indexOf("")>=0){w+=U;return}if(U=w+U,w="",!V){k("Can't add symbols before the first line of music",V,0);return}U=parseCommon$4.strip(U),U[U.length-1]!=="-"&&(U=U+" ");for(var W=[],K=0,Z=!1,te=function(X){var se=parseCommon$4.strip(U.substring(K,X));if(K=X+1,se.length>0){Z&&(se=se.replace(/~/g," "));var he=U[X];return he!=="_"&&he!=="-"&&(he=" "),W.push({syllable:A.translateString(se),divider:he}),Z=!1,!0}return!1},ne=0;ne0&&(parseCommon$4.last(W).divider="-",W.push({skip:!0,to:"next"}));break;case"_":te(ne),W.push({skip:!0,to:"slur"});break;case"*":te(ne),W.push({skip:!0,to:"next"});break;case"|":te(ne),W.push({skip:!0,to:"bar"});break;case"~":Z=!0;break}var ue=!1;V.forEach(function(X){if(W.length!==0){if(W[0].skip)switch(W[0].to){case"next":X.el_type==="note"&&X.pitches!==null&&!ue&&W.shift();break;case"slur":X.el_type==="note"&&X.pitches!==null&&W.shift();break;case"bar":X.el_type==="bar"&&W.shift();break}else if(X.el_type==="note"&&X.rest===void 0&&!ue){var se=W.shift();X.lyric===void 0?X.lyric=[se]:X.lyric.push(se)}}})},H=function(V){if(parseCommon$4.startsWith(V,"%%")){var U=parseDirective.addDirective(V.substring(2));U&&k(U,V,2);return}var W=V.indexOf("%");if(W>=0&&(V=V.substring(0,W)),V=V.replace(/\s+$/,""),V.length!==0){if(C){M(b.getCurrentVoice(),V.substring(2));return}if(w){L(b.getCurrentVoice(),V.substring(2));return}if(V.length<2||V[1]!==":"||$.lineContinuation){$.parseMusic(V);return}var K=I.parseHeader(V);K.regular&&$.parseMusic(V),K.newline&&$.startNewLine(),K.words&&M(b.getCurrentVoice(),V.substring(2)),K.symbols&&L(b.getCurrentVoice(),V.substring(2))}};function z(V,U){V.push({el_type:"hint"});for(var W=0;W1){for(var Z=1;Z0&&K[Z][0]!=="\n";)K[Z]=K[Z].substr(1),K[Z-1]+=" ";V=K.join(" ")}V=V.replace(/\\([ \t]*)(%.*)*\n/g,function(me,ie,de){var be=de?Array(de.length+1).join(" "):"";return ie+""+be+"\n"});var te=V.split("\n");parseCommon$4.last(te).length===0&&te.pop(),A=new Tokenizer(te,E),I=new ParseHeader(A,k,E,d,b),$=new ParseMusic(A,k,E,d,b,I),U.print&&(d.media="print"),E.reset(),E.iChar=W,U.visualTranspose?(E.globalTranspose=parseInt(U.visualTranspose),E.globalTranspose===0?E.globalTranspose=void 0:b.setVisualTranspose(U.visualTranspose)):E.globalTranspose=void 0,U.lineBreaks&&(E.lineBreaks=U.lineBreaks),I.reset(A,k,E,d);try{U.format&&parseDirective.globalFormatting(U.format);for(var ne=A.nextLine();ne;){if(U.header_only&&E.is_in_header===!1||U.stop_on_warning&&E.warnings)throw"normal_abort";var ue=E.is_in_header;H(ne),ue&&!E.is_in_header&&(b.setRunningFont("annotationfont",E.annotationfont),b.setRunningFont("gchordfont",E.gchordfont),b.setRunningFont("tripletfont",E.tripletfont),b.setRunningFont("vocalfont",E.vocalfont)),ne=A.nextLine()}C&&M(b.getCurrentVoice(),""),w&&L(b.getCurrentVoice(),""),E.openSlurs=b.cleanUp(E.barsperstaff,E.staffnonote,E.openSlurs)}catch(me){if(me!=="normal_abort")throw me}var X=11*72,se=8.5*72;switch(E.papersize){case"legal":X=14*72,se=8.5*72;break;case"A4":X=11.7*72,se=8.3*72;break}if(E.landscape){var he=X;X=se,se=he}d.formatting.pagewidth||(d.formatting.pagewidth=se),d.formatting.pageheight||(d.formatting.pageheight=X),U.hint_measures&&q(),wrap$2.wrapLines(d,E.lineBreaks,E.barNumbers)}},abc_parse=Parse$2,parseCommon$3=abc_common,bookParser$1=function(d){var b="",A=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 E=S.shift(),P=E.abc.split("\n");P.forEach(function(D){parseCommon$3.startsWith(D,"%%")&&(b+=D+"\n")})}var B=b;return S.forEach(function(D){var k=D.abc.indexOf("\n\n");k>0&&(D.abc=D.abc.substring(0,k)),D.pure=D.abc,D.abc=b+D.abc,D.title="";var I=D.pure.split("T:");I.length>1&&(I=I[1].split("\n"),D.title=parseCommon$3.strip(I[0]));var $=D.pure.substring(2,D.pure.indexOf("\n"));D.id=parseCommon$3.strip($)}),{header:B,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 A=3;this.bar={pitch:A,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,A){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 A?(b.pitch=C,!1):(b.pitch=C+this.lineSpace,!0);break}return A};var stringTablature=StringTablature$2;function TabCommon$2(d,b,A){this.tune=d,this.params=A,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,A){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=b,this.voicetotal=A,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,A=0;b&&A0&&(E.length>0&&E[E.length-1]!==" "&&(E+=" "),E+=b),x.setAttribute("class",E)}},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,A,C,w,x,S){S||(S={}),this.tuneNumber=x,this.abcelem=b,this.duration=A,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+=x.stemHeight:this.bottom+=x.stemHeight),x.dim&&(this.dim=x.dim),x.position&&(this.position=x.position),this.height=x.height?x.height:4,x.top&&(this.top=x.top),x.bottom&&(this.bottom=x.bottom),x.name?this.name=x.name:this.c?this.name=this.c:this.name=this.type,x.realWidth?this.realWidth=x.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":x.position&&x.position==="below"?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":x.position&&x.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":this.pitch===void 0?x.position&&x.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,A=this.x-b-d,C=A+this.realWidth+d;return{left:A,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 A in b)b.hasOwnProperty(A)&&(Array.isArray(b[A])||isObject(b[A])||(d[A]=b[A]))}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 A=cloneAbsolute(d);if(b)for(var C=d.children,w=!0,x=0;x=0){if(A===b)return d.extra[C].x+d.extra[C].w/2;A++}}return-1}function graceInRest(d){if(d.abcelem){var b=d.abcelem;if(b.rest)return b.gracenotes}return null}function convertToNumber(d,b,A){var C=d.semantics.notesToNumber(b,A);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,A,C,w){for(var x=0;x=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===E.children.length-1&&(L=!0);var H=cloneAbsoluteAndRelatives(I,d);if(H.abcelem.barNumber){delete H.abcelem.barNumber;for(var z=0;z0&&(D.abselem=q,A.push(D),P.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,A=0;Ab&&(b=C.specialY.lyricHeightBelow)}return b}function buildTabName(d,b){var A=d.plugin.semantics.strings,C=d.renderer.controller,w=C.getTextSize,x=A.tabInfos(d.plugin),S=w.calc(x,"tablabelfont","text instrumentname");return b.tabNameInfos={textSize:S,name:x},S.height}function TabRenderer$2(d,b,A,C){this.renderer=b,this.plugin=d,this.line=A,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,A=0;A=0;A--)if(!d[A].isTabStaff)return A;return-1}function linkStaffAndTabs(d){for(var b=0;b1}function getNextTabPos(d,b){for(var A=d.staffIndex,C=0,w=0,x=!0,S=0;x;){if(!b[C])return-1;if(b[C].isTabStaff||(S=b[C].voices.length),b[C].isTabStaff){if(w++,islastTabInStaff(C,b)&&w=A&&(C+1==b.length||!b[C+1].isTabStaff))return C+1;if(C++,C>b.length)return-1}}function getLastStaff(d,b){for(var A=b;A>=0;A--)if(!d[A].isTabStaff)return d[A];return null}function checkVoiceKeySig(d,b){var A=d[b],C=A.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 A=this.line.staffGroup,C=A.voices,w=C[0],x=getLyricHeight(w),S=3,E=this.staffIndex,P=A.staffs[E],B=this.tabSize+S-P.bottom-x;P.isTabStaff&&(B=P.top);var D={bottom:-1,isTabStaff:!0,specialY:initSpecialY(),lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:B},k=getNextTabPos(this,A.staffs);if(k!==-1){D.parentIndex=k-1,A.staffs.splice(k,0,D),A.height+=this.tabSize+S;var I=getLastStaff(A.staffs,k),$=1;isMultiVoiceSingleStaff(A.staffs,I)&&($=I.voices.length),this.tabStaff.voices=[];for(var M=0;M<$;M++){var L=new VoiceElement$2(0,0);M>0&&(L.duplicate=!0);var H=buildTabName(this,L)/spacing$c.STEP;H=Math.max(H,1),A.staffs[this.staffIndex].top+=H,A.height+=H*spacing$c.STEP,L.staff=D,C.splice(C.length,0,L);var z=checkVoiceKeySig(C,M+this.staffIndex);this.tabStaff.voices[M]=[],this.absolutes.build(this.plugin,C,this.tabStaff.voices[M],M,this.staffIndex,z)}linkStaffAndTabs(A.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 A=accidentals[b[1]],C=notesInOrder.indexOf(b[2]),w=b[4].length-b[3].length;return 48+C+A+w*12}return 0}function midiToNote$1(d){d=parseInt(d,10);var b=Math.floor(d/12),A=d%12,C=notesInOrder[A];if(C==="-"&&(C="^"+notesInOrder[A-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 A=noteToMidi$1(d);b&&(A+=b);var C=midiToNote(A),w=!1,x=!1,S=!1,E=null,P=null,B=!1,D=0;d.startsWith("_")?(w=!0,D=-1,d[1]=="/"?(w=!1,P="v",D=0):d[1]=="_"&&(B=!0,D-=1)):d.startsWith("^")?(x=!0,D=1,d[1]=="/"?(x=!1,P="^",D=0):d[1]=="^"&&(B=!0,D+=1)):d.startsWith("=")&&(E=!0,D=0),S=w||x||P!=null,(S||E)&&(P!=null||B?C=d.slice(2):C=d.slice(1));var k=(C.match(/,/g)||[]).length,I=(C.match(/'/g)||[]).length;this.pitch=A,this.pitchAltered=0,this.name=C,this.acc=D,this.isSharp=x,this.isKeySharp=!1,this.isDouble=B,this.isAltered=S,this.isFlat=w,this.isKeyFlat=!1,this.natural=E,this.quarter=P,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,A=new TabNote$2(b);return A.pitch=d.pitch,A.hasComma=d.hasComma,A.isLower=d.isLower,A.isQuoted=d.isQuoted,A.isSharp=d.isSharp,A.isKeySharp=d.isKeySharp,A.isFlat=d.isFlat,A.isKeyFlat=d.isKeyFlat,A}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 A=this.name,C=0;C0){b=[];for(var C=0;C0&&(A=d.capoTuning);for(var C=A.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,A=this.strings.length-1;return b+(A-d)*this.linePitch};function invalidNumber(d,b){var A={num:"?",str:0,note:b};d.push(A),d.error=b.emit()+": unexpected note for instrument"}StringPatterns$2.prototype.notesToNumber=function(d,b){var A,C,w=null,x=null;if(d&&(x=[],d.length>1?(x=handleChordNotes(this,d),x.error&&(w=x.error)):d[0].endTie||(A=new TabNote.TabNote(d[0].name,this.clefTranspose),A.checkKeyAccidentals(this.accidentals,this.measureAccidentals),C=toNumber$1(this,A),C?x.push(C):(invalidNumber(x,A),w=x.error))),w)return x;var S=null;if(b){S=[];for(var E=0;E0&&(w+=" capo:"+d.capo),A=A.replace("%T",w)),A}return""};function StringPatterns$2(d){var b=d.tuning,A=d.capo,C=d._super.params.highestNote;this.linePitch=d.linePitch,this.highestNote="a'",C&&(this.highestNote=C),this.measureAccidentals={},this.capo=0,A&&(this.capo=parseInt(A,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 A=this.strings;return A.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,A){var C=new TabCommon$1(d,b,A);this.abcTune=d,this._super=C,this.linePitch=3,this.nbLines=4,this.isTabBig=!1,this.capo=A.capo,this.transpose=A.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,A){if(!this._super.inError&&!this.tablature.bypass(b)){var C=new TabRenderer$1(this,d,b,A);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 A=this.strings;return A.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,A){var C=new TabCommon(d,b,A);this._super=C,this.abcTune=d,this.linePitch=3,this.nbLines=6,this.isTabBig=!0,this.capo=A.capo,this.transpose=A.visualTranspose,this.tablature=new StringTablature(this.nbLines,this.linePitch);var w=new GuitarPatterns(this);this.semantics=w};Plugin.prototype.render=function(d,b,A){if(!this._super.inError&&!this.tablature.bypass(b)){var C=new TabRenderer(this,d,b,A);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,A=d.tablature;this.plugins[b]=A},setError:function(d,b){d.warnings?d.warning.push(b):d.warnings=[b]},preparePlugins:function(d,b,A){var C=null;if(A.tablature){var w=A.tablature;C=[];for(var x=0;x=0&&E0,H=0;H=0&&(k=K.startChar,K.chord===void 0?D=B:D=null),K.chord&&(B=K),K.el_type==="bar"){if($){var Z=x.abc.substring(k,K.endChar),te={abc:Z};B=D&&D.chord&&D.chord.length>0?D.chord[0].name:null,B&&(te.lastChord=B),K.startEnding&&(te.startEnding=K.startEnding),K.endEnding&&(te.endEnding=K.endEnding),I.push(te),k=null,$=!1}}else K.el_type==="note"&&($=!0)}}A.push({header:P,measures:I,hasPickup:L})}return A}})();var abc_tunebook=tunebook$2,keyAccidentals=keyAccidentals_1,{relativeMajor,transposeKey,relativeMode}=relativeMajor_1,transposeChordName=transposeChord,strTranspose$1;(function(){strTranspose$1=function(q,V,U){if(V==="TEST")return{keyAccidentals,relativeMajor,transposeKey,relativeMode,transposeChordName};U=parseInt(U,10);var W=[],K;for(K=0;K2?W+=7:U===-12&&(W-=7):U>0&&W<0?W+=7:U<0&&W>0&&(W-=7),U>12?W+=7:U<-12&&(W-=7),W}function x(q,V,U,W,K,Z){for(var te=[],ne=w(K,U,Z),ue={},X={},se=0;se1?K[1]:"",accidentals:Z}}function B(q,V,U,W){for(var K=q.pitch,Z=S.indexOf(q.name),te=S.indexOf(V.root),ne=(te+K)%7,ue=Z+U,X=q.oct;ue>6;)X++,ue-=7;for(;ue<0;)X--,ue+=7;for(var se=S[ne],he="",me=q.adj,ie="=",de=0;de4&&(se=se.toLowerCase()),{acc:he,name:se,upper:se.toUpperCase()}}var D=/([_^=]*)([A-Ga-g])([,']*)/,k=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,I=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,$=/(\s*)$/;function M(q,V,U,W){var K=V==="none"?0:S.indexOf(V),Z=q.match(D),te=Z[2].toUpperCase(),ne=S.indexOf(te)-K;ne<0&&(ne+=7);var ue=E.indexOf(Z[3]);te===Z[2]&&ue--;var X=W[te]||U[te]||"=";return{acc:Z[1],name:te,pitch:ne,oct:ue,adj:Q(Z[1],U[te],W[te]),courtesy:Z[1]===X}}function L(q,V,U,W,K){var Z=q.substring(V,U),te=Z.match(new RegExp(k.source+$.source),"");if(te){var ne=te[1].length,ue=te[2].length+te[3].length+te[4].length,X=U-V-ne-ue;V+=X,U-=ue}else{var se=/([^\[]*)/,he=/\[/,me=/\-?](\d*\/*\d*)?([\>\<\-\)]*)/;if(te=Z.match(new RegExp(se.source+he.source+I.source+I.source+I.source+I.source+I.source+I.source+I.source+I.source+me.source+$.source)),te){for(var ie=1+te[1].length,de=0;dethis.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=[],A=0,C=d.length;A0?w.top+3:w.bottom-1,k=C>0?w.top+3:w.bottom-3,I=k-2;d.type==="bass-8"&&(D=3,B=0),w.addRight(new RelativeElement$8("8",x+B,glyphs$7.getSymbolWidth("8")*P,D,{scalex:P,scaley:P,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 A=new AbsoluteElement$3(d,0,10,"staff-extra key-signature",b);A.isKeySig=!0;var C=0;return d.accidentals.forEach(function(w){var x,S=0;switch(w.acc){case"sharp":x="accidentals.sharp",S=-3;break;case"natural":x="accidentals.nat";break;case"flat":x="accidentals.flat",S=-1.2;break;case"quartersharp":x="accidentals.halfsharp",S=-2.5;break;case"quarterflat":x="accidentals.halfflat",S=-1.2;break;default:x="accidentals.flat"}A.addRight(new RelativeElement$7(x,C,glyphs$6.getSymbolWidth(x),w.verticalPos,{thickness:glyphs$6.symbolHeightInPitches(x),top:w.verticalPos+glyphs$6.symbolHeightInPitches(x)+S,bottom:w.verticalPos+S})),C+=glyphs$6.getSymbolWidth(x)+2},this),A},createKeySignature_1=createKeySignature$1,glyphs$5=glyphs_1,RelativeElement$6=relativeElement,createNoteHead$1=function(d,b,A,C){C||(C={});var w=C.dir!==void 0?C.dir:null,x=C.headx!==void 0?C.headx:0,S=C.extrax!==void 0?C.extrax:0,E=C.flag!==void 0?C.flag:null,P=C.dot!==void 0?C.dot:0,B=C.dotshiftx!==void 0?C.dotshiftx:0,D=C.scale!==void 0?C.scale:1,k=C.accidentalSlot!==void 0?C.accidentalSlot:[],I=C.shouldExtendStem!==void 0?C.shouldExtendStem:!1,$=C.printAccidentals!==void 0?C.printAccidentals:!0,M=A.verticalPos,L,H=0,z=0,Q=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,M);else{var q=x;if(A.printer_shift){var V=A.printer_shift==="same"?1:0;q=w==="down"?-glyphs$5.getSymbolWidth(b)*D+V:glyphs$5.getSymbolWidth(b)*D-V}var U={scalex:D,scaley:D,thickness:glyphs$5.symbolHeightInPitches(b)*D,name:A.name};if(L=new RelativeElement$6(b,q,glyphs$5.getSymbolWidth(b)*D,M,U),L.stemDir=w,E){var W=M+(w==="down"?-7:7)*D;I&&(w==="down"&&W>6&&(W=6),w==="up"&&W<6&&(W=6));var K=w==="down"?x:x+L.w-.6;d.addRight(new RelativeElement$6(E,K,glyphs$5.getSymbolWidth(E)*D,W,{scalex:D,scaley:D}))}for(z=L.w+B-2+5*P;P>0;P--){var Z=1-Math.abs(M)%2;d.addRight(new RelativeElement$6("dots.dot",L.w+B-2+5*P,glyphs$5.getSymbolWidth("dots.dot"),M+Z))}}if(L&&(L.highestVert=A.highestVert),$&&A.accidental){var te;switch(A.accidental){case"quartersharp":te="accidentals.halfsharp";break;case"dblsharp":te="accidentals.dblsharp";break;case"sharp":te="accidentals.sharp";break;case"quarterflat":te="accidentals.halfflat";break;case"flat":te="accidentals.flat";break;case"dblflat":te="accidentals.dblflat";break;case"natural":te="accidentals.nat"}for(var ne=!1,ue=S,X=0;X=6){k[X][0]=M,ue=k[X][1],ne=!0;break}ne===!1&&(ue-=glyphs$5.getSymbolWidth(te)*D+2,k.push([M,ue]),H=glyphs$5.getSymbolWidth(te)*D+2);var se=glyphs$5.symbolHeightInPitches(te);d.addExtra(new RelativeElement$6(te,ue,glyphs$5.getSymbolWidth(te),M,{scalex:D,scaley:D,top:M+se/2,bottom:M-se/2})),Q=glyphs$5.getSymbolWidth(te)/2}return{notehead:L,accidentalshiftx:H,dotshiftx:z,extraLeft:Q}},createNoteHead_1=createNoteHead$1,AbsoluteElement$2=absoluteElement,glyphs$4=glyphs_1,RelativeElement$5=relativeElement,createTimeSignature$1=function(d,b){d.el_type="timeSignature";var A=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,A,C,w,x,S,E){for(var P,B=0;B9&&P++;var k=C/2;glyphs$3.getSymbolAlign(D)!=="center"&&(k-=glyphs$3.getSymbolWidth(D)/2),w.addFixedX(new RelativeElement$4(D,k,glyphs$3.getSymbolWidth(D),P))}if(b[B]==="slide"&&w.heads[0]){var I=w.heads[0].pitch;I-=2;var $=new RelativeElement$4("",-x-15,0,I-1),M=new RelativeElement$4("",-x-5,0,I+1);w.addFixedX($),w.addFixedX(M),d.addOther(new TieElem$1({anchor1:$,anchor2:M,fixedY:!0}))}}return P===void 0&&(P=A),{above:P,below:w.bottom}},volumeDecoration=function(d,b,A,C){for(var w=0;wS&&(L=S)),L}function B(M,L,H){var z=P(L),Q=2,q=5;A.addFixedX(new RelativeElement$4(M,b/2,0,z+Q,{type:"decoration",klass:"ornament",thickness:3,anchor:H})),E(L,q)}function D(M,L){var H=b/2;glyphs$3.getSymbolAlign(M)!=="center"&&(H-=glyphs$3.getSymbolWidth(M)/2);var z=glyphs$3.symbolHeightInPitches(M)+1,Q=P(L);Q=L==="above"?Q+z/2:Q-z/2,A.addFixedX(new RelativeElement$4(M,H,glyphs$3.getSymbolWidth(M),Q,{klass:"ornament",thickness:glyphs$3.symbolHeightInPitches(M)})),E(L,z)}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,$=0;$",C)),x&&d.addOther(new CrescendoElem(x.start,x.stop,"<",C)),S&&d.addOther(new GlissandoElem(S.start,S.stop))};Decoration$1.prototype.createDecoration=function(d,b,A,C,w,x,S,E,P,B){P||(P={ornamentPosition:"above",volumePosition:B?"above":"below",dynamicPosition:B?"above":"below"}),volumeDecoration(d,b,w,P.volumePosition),this.dynamicDecoration(d,b,w,P.dynamicPosition),compoundDecoration(b,A,C,w,S);var D=closeDecoration(d,b,A,C,w,x,S,E);D.above=Math.max(D.above,this.minTop),stackedDecoration(b,C,w,D,P.ornamentPosition,this.minTop,this.minBottom),leftDecoration(b,w,x)};var decoration=Decoration$1,EndingElem$1=function d(b,A,C){this.type="EndingElem",this.text=b,this.anchor1=A,this.anchor2=C,this.endingHeightAbove=5,this.pitch=void 0},endingElement=EndingElem$1,calcHeight$1=function(d){for(var b=0,A=0;A=0;I--){var $=k[I],M=0,L,H,z;B==="left"||B==="right"||B==="below"||B==="above"||D?(H="annotationfont",z="annotation"):(H="gchordfont",z="chord",$=translateChord($,S,E));var Q=d.attr(H,z),q=d.calc($,H,z),V=q.width,U=q.height/spacing$a.STEP;switch(B){case"left":C+=V+7,M=-C,L=A.averagepitch,b.addExtra(new RelativeElement$2($,M,V+4,L,{type:"text",height:U,dim:Q,position:"left"}));break;case"right":w+=4,M=w,L=A.averagepitch,b.addRight(new RelativeElement$2($,M,V+4,L,{type:"text",height:U,dim:Q,position:"right"}));break;case"below":b.addRight(new RelativeElement$2($,0,0,void 0,{type:"text",position:"below",height:U,dim:Q,realWidth:V}));break;case"above":b.addRight(new RelativeElement$2($,0,0,void 0,{type:"text",position:"above",height:U,dim:Q,realWidth:V}));break;default:if(D){var W=D.y+3*spacing$a.STEP;b.addRight(new RelativeElement$2($,M+D.x,0,A.minpitch+W/spacing$a.STEP,{position:"relative",type:"text",height:U,dim:Q}))}else{var K="above";A.positioning&&A.positioning.chordPosition&&(K=A.positioning.chordPosition),K!=="hidden"&&b.addCentered(new RelativeElement$2($,x/2,V,void 0,{type:"chord",position:K,height:U,dim:Q,realWidth:V}))}}}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,A){this.decoration=new Decoration,this.getTextSize=d,this.tuneNumber=b,this.isBagpipes=A.bagpipes,this.flatBeams=A.flatbeams,this.graceSlurs=A.graceSlurs,this.percmap=A.percmap,this.initialClef=A.initialClef,this.jazzchords=!!A.jazzchords,this.germanAlphabet=!!A.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],A.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"clef":if(w[0]=createClef(C,this.tuneNumber),!w[0])return null;A.duplicate&&w.length>0&&(w[0].invisible=!0);break;case"key":var x=createKeySignature(C,this.tuneNumber);x&&(w[0]=x,this.startlimitelem=w[0]),A.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),E=this.getTextSize.calc(C.title,"partsfont","part");S.addFixedX(new RelativeElement$1(C.title,0,0,void 0,{type:"part",height:E.height/spacing$9.STEP})),w[0]=S;break;case"tempo":var P=new AbsoluteElement(C,0,0,"tempo",this.tuneNumber);P.addFixedX(new TempoElement(C,this.tuneNumber,createNoteHead)),w[0]=P;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,A.color=this.voiceColor;break;default:var B=new AbsoluteElement(C,0,0,"unsupported",this.tuneNumber);B.addFixed(new RelativeElement$1("element type "+C.el_type,0,0,void 0,{type:"debug"})),w[0]=B}return w};function setAveragePitch(d){if(d.pitches){sortPitch(d);for(var b=0,A=0;Ad.pitches[A+1].pitch){b=!1;var C=d.pitches[A];d.pitches[A]=d.pitches[A+1],d.pitches[A+1]=C}}while(!b)},ledgerLines=function(d,b,A,C,w,x,S,E,P){for(var B=A;B>11;B--)B%2===0&&!C&&d.addFixed(new RelativeElement$1(null,E,(w+4)*P,B,{type:"ledger"}));for(B=b;B<1;B++)B%2===0&&!C&&d.addFixed(new RelativeElement$1(null,E,(w+4)*P,B,{type:"ledger"}));for(B=0;B1&&(B=new BeamElem(w,"grace",x),hint&&B.setHint(),B.mainNote=A);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&&(Q=C),w=b.style?b.style:w,(!w||w==="normal")&&(w="note");var q;x?q=chartable[w].nostem:q=chartable[w][-S],q||console.log("noteSymbol:",w,S,x);var V;for(V=Q==="down"?b.pitches.length-2:1;Q==="down"?V>=0:V11||W.verticalPos<1)&&L.push(W.verticalPos-W.verticalPos%2),Q==="down"?k=glyphs$2.getSymbolWidth(q)+2:B=glyphs$2.getSymbolWidth(q)+2)}var Z=b.pitches.length;for(V=0;V0&&(D.bottom=D.bottom-1),d.addHead(D)),k+=me.accidentalshiftx,I=Math.max(I,me.dotshiftx)}if(he){var ie=Math.round(70*this.voiceScale)/10,de=Q==="down"?b.minpitch-ie:b.minpitch+1/3;de>6&&!C&&(de=6);var be=Q==="down"?b.maxpitch-1/3:b.maxpitch+ie;be<6&&!C&&(be=6);var ge=Q==="down"||d.heads.length===0?0:d.heads[0].w,Se=Q==="down"?1:-1;D&&D.c==="noteheads.slash.quarter"&&(Q==="down"?be-=1:de+=1),d.addRight(new RelativeElement$1(null,ge,0,de,{type:"stem",pitch2:be,linewidth:Se,bottom:de-1})),$=Math.min(de,be)}return{noteHead:D,roomTaken:k,roomTakenRight:I,min:$,additionalLedgers:L,dir:Q,symbolWidth:z}};AbstractEngraver$1.prototype.addLyric=function(d,b){var A="";b.lyric.forEach(function(x){var S=x.divider===" "?"":x.divider;A+=x.syllable+S+"\n"});var C=this.getTextSize.calc(A,"vocalfont","lyric"),w=b.positioning?b.positioning.vocalPosition:"below";d.addCentered(new RelativeElement$1(A,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,A,C){var w=null,x=0,S=0,E=0,P=[],B,D=getDuration(d),k=!1;D===0&&(k=!0,D=.25,b=!0);for(var I=Math.floor(Math.log(D)/Math.log(2)),$=0,M=Math.pow(2,I),L=M/2;M1,this.stemdir,A,I,this.voiceScale);w=q.noteHead,x=q.roomTaken,S=q.roomTakenRight}else{var V=this.addNoteToAbcElement(Q,d,$,this.stemdir,this.style,k,I,b,C);V.min!==void 0&&(this.minY=Math.min(V.min,this.minY)),w=V.noteHead,x=V.roomTaken,S=V.roomTakenRight,P=V.additionalLedgers,B=V.dir,E=V.symbolWidth}if(d.lyric!==void 0&&this.addLyric(Q,d),d.gracenotes!==void 0&&(x+=this.addGraceNotes(d,C,Q,w,this.stemHeight*this.voiceScale,this.isBagpipes,x)),d.decoration&&this.decoration.createDecoration(C,d.decoration,Q.top,w?w.w:0,Q,x,B,Q.bottom,d.positioning,this.hasVocals),d.barNumber&&Q.addFixed(new RelativeElement$1(d.barNumber,-10,0,0,{type:"barNumber"})),ledgerLines(Q,d.minpitch,d.maxpitch,d.rest,E,P,B,-2,1),d.chord!==void 0){var U=addChord(this.getTextSize,Q,d,x,S,E,this.jazzchords,this.germanAlphabet);x=U.roomTaken,S=U.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),Q};AbstractEngraver$1.prototype.addSlursAndTies=function(d,b,A,C,w,x){if(b.endTie&&this.ties.length>0){for(var S=!1,E=0;E10&&b.abcelem.type==="treble"?13:11;b.addFixed(new RelativeElement$1(d,C,A.width,w+A.height/spacing$9.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))};AbstractEngraver$1.prototype.createBarLine=function(d,b,A){var C=new AbsoluteElement(b,0,10,"bar",this.tuneNumber),w=null,x=0;b.barNumber&&this.addMeasureNumber(b.barNumber,C);var S=b.type==="bar_right_repeat"||b.type==="bar_dbl_repeat",E=b.type!=="bar_left_repeat"&&b.type!=="bar_thick_thin"&&b.type!=="bar_invisible",P=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",B=b.type==="bar_left_repeat"||b.type==="bar_thick_thin"||b.type==="bar_thin_thin"||b.type==="bar_dbl_repeat",D=b.type==="bar_left_repeat"||b.type==="bar_dbl_repeat";if(S||D){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",x,1,7)),C.addRight(new RelativeElement$1("dots.dot",x,1,5)),x+=6),E&&(w=new RelativeElement$1(null,x,1,2,{type:"bar",pitch2:10,linewidth:.6}),C.addRight(w)),b.type==="bar_invisible"&&(w=new RelativeElement$1(null,x,1,2,{type:"none",pitch2:10,linewidth:.6}),C.addRight(w)),b.decoration&&this.decoration.createDecoration(d,b.decoration,12,P?3:1,C,0,"down",2,b.positioning,this.hasVocals),P&&(x+=4,w=new RelativeElement$1(null,x,4,2,{type:"bar",pitch2:10,linewidth:4}),C.addRight(w),x+=5),this.partstartelem&&b.endEnding&&(this.partstartelem.anchor2=w,this.partstartelem=null),B&&(x+=3,w=new RelativeElement$1(null,x,1,2,{type:"bar",pitch2:10,linewidth:.6}),C.addRight(w)),D&&(x+=3,C.addRight(new RelativeElement$1("dots.dot",x,1,7)),C.addRight(new RelativeElement$1("dots.dot",x,1,5))),b.startEnding&&A){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"),A=document.createTextNode(d);b.appendChild(A),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 A=this.svg.parentNode.getAttribute("class");A?A.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",A+" 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 A=document.querySelector("body");A.removeChild(this.dummySvg),this.dummySvg=null}};function constructHLine(d,b,A){var C=A-d;return"M "+d+" "+b+" l "+C+" 0 l 0 1 l "+-C+" 0 z "}function constructVLine(d,b,A){var C=A-b;return"M "+d+" "+b+" l 0 "+C+" l 1 0 l 0 "+-C+" z "}Svg$1.prototype.rect=function(d){var b=[],A=d.x,C=d.y,w=d.x+d.width,x=d.y+d.height;return b.push(constructHLine(A,C,w)),b.push(constructHLine(A,x,w)),b.push(constructVLine(w,C,x)),b.push(constructVLine(A,x,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,A){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 x=(""+d).split("\n"),S=0;S0?this.currentGroup[0].removeChild(A):this.svg.removeChild(A)),C&&(sizeCache[C]=x),x};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 A in d)d.hasOwnProperty(A)&&(A==="path"?b.setAttributeNS(null,"d",d.path):A==="klass"?b.setAttributeNS(null,"class",d[A]):d[A]!==void 0&&b.setAttributeNS(null,A,d[A]));return this.append(b),b};Svg$1.prototype.pathToBack=function(d){var b=document.createElementNS(svgNS,"path");for(var A in d)d.hasOwnProperty(A)&&(A==="path"?b.setAttributeNS(null,"d",d.path):A==="klass"?b.setAttributeNS(null,"class",d[A]):b.setAttributeNS(null,A,d[A]));return this.prepend(b),b};Svg$1.prototype.lineToBack=function(d){for(var b=document.createElementNS(svgNS,"line"),A=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 A in b)b.hasOwnProperty(A)&&d.setAttributeNS(null,A,b[A])};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(A,C,w,x,S){d.formatting[w]!==void 0?A.padding[C]=d.formatting[w]:A.paddingOverride[C]!==void 0?A.padding[C]=A.paddingOverride[C]:A.isPrint?A.padding[C]=x:A.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,A,C,w,x){var S=d.text;this.rows=[];var E;b&&this.rows.push({move:b});var P=A.calc("textfont","defined-text");if(S==="")this.rows.push({move:P.attr["font-size"]*2});else if(typeof S=="string")this.rows.push({move:P.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"}),E=x.calc(S,"textfont","defined-text"),this.rows.push({move:E.height});else if(S){for(var B=0,D=C,k="textfont",I=0;I0){var $=!!(d.composer||d.origin);addTextIf$1(this.rows,{marginLeft:S,text:d.rhythm,font:"infofont",klass:"meta-top rhythm",absElemType:"rhythm",noMove:$,info:b.rhythm,name:"rhythm"},P)}var M="";d.composer&&(M+=d.composer),d.origin&&(M+=" ("+d.origin+")"),M.length>0&&addTextIf$1(this.rows,{marginLeft:S+w,text:M,font:"composerfont",klass:"meta-top composer",anchor:"end",absElemType:"composer",info:b.composer,name:"composer"},P)}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"},P),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"},P)}var topText=TopText$1;const addTextIf=addTextIf_1;function BottomText$1(d,b,A,C,w,x){this.rows=[],d.unalignedWords&&d.unalignedWords.length>0&&this.unalignedWords(d.unalignedWords,C,w,x),this.extraText(d,C,w,x),d.footer&&A&&this.footer(d.footer,b,C,x)}BottomText$1.prototype.unalignedWords=function(d,b,A,C){var w="meta-bottom unaligned-words",x="wordsfont";this.rows.push({startGroup:"unalignedWords",klass:"abcjs-meta-bottom abcjs-unaligned-words",name:"words"});var S=C.calc("i",x,w);this.rows.push({move:A.words});for(var E=0;E0&&addTextIf(this.rows,{marginLeft:b,text:w,font:"historyfont",klass:"meta-bottom extra-text",marginTop:A.info,absElemType:"extraText",name:"description"},C)};BottomText$1.prototype.footer=function(d,b,A,C){var w="header meta-bottom",x="footerfont";this.rows.push({startGroup:"footer",klass:w}),addTextIf(this.rows,{marginLeft:A,text:d.left,font:x,klass:w,name:"footer"},C),addTextIf(this.rows,{marginLeft:A+b/2,text:d.center,font:x,klass:w,anchor:"middle",name:"footer"},C),addTextIf(this.rows,{marginLeft:A+b,text:d.right,font:x,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 A=0;A0;x++){var S=d.selectables[x];if(d.getDim(S),S.dim.leftb&&S.dim.topA)w=x,C=0;else if(S.dim.topA){var E=Math.min(Math.abs(S.dim.left-b),Math.abs(S.dim.right-b));Eb){var P=Math.min(Math.abs(S.dim.top-A),Math.abs(S.dim.bottom-A));PMath.abs(b-S.dim.right)?Math.abs(b-S.dim.right):Math.abs(b-S.dim.left),D=Math.abs(A-S.dim.top)>Math.abs(A-S.dim.bottom)?Math.abs(A-S.dim.bottom):Math.abs(A-S.dim.top),k=Math.sqrt(B*B+D*D);k=0&&C<=12?w:-1}function getBestMatchCoordinates(d,b,A){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/A-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 A,C,w,x=findElementInHistory(d.selectables,getTarget(b.target));return x>=0?(w=getBestMatchCoordinates(d.selectables[x].svgEl.getBBox(),b,d.scale),A=w[0],C=w[1]):(w=getCoord(b),A=w[0],C=w[1],x=findElementByCoord(d,A,C)),{x:A,y:C,clickedOn:x}}function attachMissingTouchEventAttributes(d){if(!(!d||!d.target||!d.touches||d.touches.length<1)){var b=d.target.getBoundingClientRect(),A=d.touches[0].pageX-b.left,C=d.touches[0].pageY-b.top;d.touches[0].offsetX=A,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 A=getMousePosition(this,b);A.clickedOn>=0&&(d.type==="touchstart"||d.button===0)&&this.selectables[A.clickedOn]&&(this.dragTarget=this.selectables[A.clickedOn],this.dragIndex=A.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:A.x,y:A.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 A=getMousePosition(this,b),C=Math.round((A.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&&dE&&dx&&(w=x),w<-x&&(w=-x),w}function calcDy(d,b){var A=d?spacing$6.STEP:-spacing$6.STEP;return b&&(A=A*.4),A}function calcXPos(d,b,A){var C=b.heads[d?0:b.heads.length-1],w=A.heads[d?0:A.heads.length-1],x=C.x;d&&(x+=C.w-.6);var S=w.x;return S+=d?w.w:.6,[x,S]}function calcYPos(d,b,A,C,w,x,S,E,P,B){var D=A-2,k=A-2,I=Math.round(C?Math.max(d+D,P+k):Math.min(d-D,E-k)),$=calcSlant(w,x,b,S),M=I+Math.floor($/2),L=I+Math.floor(-$/2);return B||(C&&I<6||!C&&I>6)&&(M=6,L=6),[M,L]}function createStems(d,b,A,C,w){for(var x=0;x0&&P.abcelem.beambr&&P.abcelem.beambr<=L+1){S[L].split||(S[L].split=[S[L].x]);var H=calcXPos(b,d[E-1],P);S[L].split[S[L].split.length-1]>=H[0]&&(H[0]+=P.w),S[L].split.push(H[0]),S[L].split.push(H[1])}}for(var z=S.length-1;z>=0;z--)if(E===d.length-1||getDurlog(d[E+1].abcelem.duration)>-z-4){var Q=D,q=k+I*(z+1);S[z].single&&(Q=E===0?D+5:D-5,q=getBarYAt$2(A.startX,A.startY,A.endX,A.endY,Q)+I*(z+1));var V={startX:S[z].x,endX:Q,startY:S[z].y,endY:q,dy:w};if(S[z].split!==void 0){var U=S[z].split;V.endX<=U[U.length-1]&&(U[U.length-1]-=P.w),U.push(V.endX),V.split=S[z].split}x.push(V),S=S.slice(0,z)}}}return x}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 A=isAbove(b)?d.anchor1.x+d.anchor1.w:d.anchor1.x;d.yTextPos=heightAtMidpoint(A,d.anchor2.x,b),d.yTextPos+=isAbove(b)?3:-2,d.xTextPos=xAtMidpoint(A,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,A){if(A.beams.length===0)return 0;A=A.beams[0];var C=d+(b-d)/2;return getBarYAt$1(A.startX,A.startY,A.endX,A.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]=A.right;return}}d.push(A.right),b.putChordInLane(d.length-1)}}function setLaneForChord(d){var b=[0],A=[0],C,w,x;for(C=0;C=0;w--)x=d[C].children[w],x.chordHeightBelow&&placeInLane(A,x)}return(b.length>1||A.length>1)&&setLane(d,b.length),{above:b.length,below:A.length}}function numAnnotationsBelow(d){for(var b=0,A=0;A=0&&(w.originalTop=w.top,w.originalBottom=w.bottom),incTop(w,x,"lyricHeightAbove"),incTop(w,x,"chordHeightAbove",w.specialY.chordLines.above),w.specialY.endingHeightAbove&&(w.specialY.chordHeightAbove?w.top+=2:w.top+=w.specialY.endingHeightAbove+margin,x.endingHeightAbove=w.top),w.specialY.dynamicHeightAbove&&w.specialY.volumeHeightAbove?(w.top+=Math.max(w.specialY.dynamicHeightAbove,w.specialY.volumeHeightAbove)+margin,x.dynamicHeightAbove=w.top,x.volumeHeightAbove=w.top):(incTop(w,x,"dynamicHeightAbove"),incTop(w,x,"volumeHeightAbove")),incTop(w,x,"partHeightAbove"),incTop(w,x,"tempoHeightAbove"),w.specialY.lyricHeightBelow&&(w.specialY.lyricHeightBelow+=d.spacing.vocal/spacing$5.STEP,x.lyricHeightBelow=w.bottom,w.bottom-=w.specialY.lyricHeightBelow+margin),w.specialY.chordHeightBelow){x.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?(x.volumeHeightBelow=w.bottom,x.dynamicHeightBelow=w.bottom,w.bottom-=Math.max(w.specialY.volumeHeightBelow,w.specialY.dynamicHeightBelow)+margin):w.specialY.volumeHeightBelow?(x.volumeHeightBelow=w.bottom,w.bottom-=w.specialY.volumeHeightBelow+margin):w.specialY.dynamicHeightBelow&&(x.dynamicHeightBelow=w.bottom,w.bottom-=w.specialY.dynamicHeightBelow+margin),d.showDebug&&d.showDebug.indexOf("box")>=0&&(w.positionY=x);for(var E=0;E0&&(w.top+=I)}A=2-w.bottom}},margin=1;function incTop(d,b,A,C){if(d.specialY[A]){var w=d.specialY[A];C&&(w*=C),d.top+=w+margin,b[A]=d.top}}function setUpperAndLowerVoiceElements(d,b,A){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,A,C,w){var x=A.children[A.i];if(!x)return 0;var S=d-A.minx,E=A.durationindex+x.duration>0?C:0;if(x.abcelem.el_type==="note"&&!x.abcelem.rest&&A.voicenumber!==0&&w){var P=w.children[w.i],B=P&&(x.abcelem.maxpitch<=P.abcelem.maxpitch+1&&x.abcelem.maxpitch>=P.abcelem.minpitch-1||x.abcelem.minpitch<=P.abcelem.maxpitch+1&&x.abcelem.minpitch>=P.abcelem.minpitch-1);if(B&&x.abcelem.minpitch===P.abcelem.minpitch&&x.abcelem.maxpitch===P.abcelem.maxpitch&&P.heads&&P.heads.length>0&&x.heads&&x.heads.length>0&&P.heads[0].c===x.heads[0].c&&(B=!1),B){var D=P.heads&&P.heads.length>0?P.heads[0].realWidth:P.fixed.w;x.adjustedWidth||(x.adjustedWidth=D+x.w),x.w=x.adjustedWidth;for(var k=0;k0){var w=C.children.length-1,x=C.children[w];if(x.abcelem.el_type==="bar"){var S=x.children[0].x;S>b?b=S:x.children[0].x=b}}}}var layoutStaffGroup$1=function(d,b,A,C,w){var x=1e-7,S=0,E=1e3,P=w;C.startx=P;var B,D=0;for(A&&console.log("init layout",d),B=0;Bx?$.push(C.voices[B]):I.push(C.voices[B])}k=0;var L=0;for(B=0;BP&&(P=layoutVoiceElements.getNextX(I[B]),k=layoutVoiceElements.getSpacingUnits(I[B]),L=I[B].spacingduration);S+=k,E=Math.min(E,k),A&&console.log("currentduration: ",D,S,E);var H=void 0;for(B=0;B0){P=q;for(var U=0;UP&&(P=layoutVoiceElements.getNextX(C.voices[B]),k=layoutVoiceElements.getSpacingUnits(C.voices[B]));return checkLastBarX(C.voices),S+=k,C.setWidth(P),{spacingUnits:S,minSpace:E}};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,A,C,w){var x=d.padding.left,S=0,E,P;for(E=0;ES&&(S=x.staffGroup.w));for(w=0;w0?(w=(A-k)/x,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 A=0;A0&&(b[A]="abcjs-"+b[A])}return b.join(" ")};var classes$2=Classes$1,GetFontAndAttr$1=function d(b,A){this.formatting=b,this.classes=A};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 A;typeof d=="string"?(A=this.formatting[d],A?A={face:A.face,size:Math.round(A.size*4/3),decoration:A.decoration,style:A.style,weight:A.weight,box:A.box}:A={face:"Arial",size:Math.round(12*4/3),decoration:"underline",style:"normal",weight:"normal"}):A={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;A.padding=A.size*C;var w={"font-size":A.size,"font-style":A.style,"font-family":A.face,"font-weight":A.weight,"text-decoration":A.decoration,class:this.classes.generate(b)};return{font:A,attr:w}};var getFontAndAttr=GetFontAndAttr$1,GetTextSize$1=function d(b,A){this.getFontAndAttr=b,this.svg=A};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,A,C){var w;typeof b=="string"?w=this.attr(b,A):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(A)}};var x=this.svg.getTextSize(d,w.attr,C);return w.font.box?{height:x.height+w.font.padding*4,width:x.width+w.font.padding*4}:x};GetTextSize$1.prototype.baselineToCenter=function(d,b,A,C,w){var x=this.calc(d,b,A).height,S=this.attr(b,A).font.size;return x*.5+(w-C-2)*S};var getTextSize=GetTextSize$1,sprintf$7=function(){for(var d=0,b,A=arguments[d++],C=[],w,x,S,E;A;){if(w=/^[^\x25]+/.exec(A))C.push(w[0]);else if(w=/^\x25{2}/.exec(A))C.push("%");else if(w=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(A)){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]:" ",E=w[5]-String(b).length,x=w[5]?str_repeat(S,E):"",C.push(w[4]?b+x:x+b)}else throw"Huh ?!";A=A.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,A){var C=b.y;if(b.lane){var w=b.dim.font.size*.25;C+=(b.dim.font.size+w)*b.lane}var x;b.dim?(x=b.dim,x.attr.class=b.klass):x=d.controller.getFontAndAttr.calc(b.type,b.klass),b.anchor&&(x.attr["text-anchor"]=b.anchor),x.attr.x=b.x,x.attr.y=C,b.centerVertically||(x.attr.y+=x.font.size),b.type==="debugfont"&&(console.log("Debug msg: "+b.text),x.attr.stroke="#ff0000"),b.cursor&&(x.attr.cursor=b.cursor);var S=b.text.replace(/\n\n/g,"\n \n");S=S.replace(/^\n/," \n"),x.font.box&&(A||d.paper.openGroup({klass:x.attr.class,fill:d.foregroundColor,"data-name":b.name}),x.attr["text-anchor"]==="end"?x.attr.x-=x.font.padding:x.attr["text-anchor"]==="start"&&(x.attr.x+=x.font.padding),x.attr.y+=x.font.padding,delete x.attr.class),b.noClass&&delete x.attr.class,x.attr.x=roundNumber$9(x.attr.x),x.attr.y=roundNumber$9(x.attr.y),b.name&&(x.attr["data-name"]=b.name);var E=d.paper.text(S,x.attr);if(x.font.box){var P=E.getBBox(),B=0;x.attr["text-anchor"]==="middle"?B=P.width/2+x.font.padding:x.attr["text-anchor"]==="end"&&(B=P.width+x.font.padding*2);var D=0;b.centerVertically&&(D=P.height-x.font.padding),d.paper.rect({"data-name":"box",x:Math.round(b.x-B),y:Math.round(C-D),width:Math.round(P.width+x.font.padding*2),height:Math.round(P.height+x.font.padding*2)}),A||(E=d.paper.closeGroup())}return E}var text$1=renderText$8,sprintf$6=sprintf_1,spacing$4=spacing_1,renderText$7=text$1;function drawBrace$1(d,b,A){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,A)}function straightPath(d,b,A,C,w){b+=spacing$4.STEP;var x=spacing$4.STEP*.75,S=spacing$4.STEP*.75,E=C-A,P=sprintf$6("M %f %f l %f %f l %f %f l %f %f z",b,A-S,0,E+S*2,x,0,0,-(E+S*2)),B=spacing$4.STEP*2,D=spacing$4.STEP;return P+=sprintf$6("M %f %f q %f %f %f %f q %f %f %f %f z",b+x,A-S,B*.6,D*.2,B,-D,-B*.1,D*.3,-B,D+spacing$4.STEP),P+=sprintf$6("M %f %f q %f %f %f %f q %f %f %f %f z",b+x,A+S+E,B*.6,-D*.2,B,D,-B*.1,-D*.3,-B,-D-spacing$4.STEP),d.paper.path({path:P,stroke:d.foregroundColor,fill:d.foregroundColor,class:d.controller.classes.generate(w),"data-name":w})}function curvyPath(d,b,A,C,w){var x=C-A,S=curve(b,A,[7.5,-8,21,0,18.5,-10.5,7.5],[0,x/5.5,x/3.14,x/2,x/2.93,x/4.88,0]);return S+=curve(b,A,[0,17.5,-7.5,6.6,-5,20,0],[x/2,x/1.46,x/1.22,x,x/1.19,x/1.42,x/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,A,C){return sprintf$6("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",d+A[0],b+C[0],d+A[1],b+C[1],d+A[2],b+C[2],d+A[3],b+C[3],d+A[4],b+C[4],d+A[5],b+C[5],d+A[6],b+C[6])}var draw$3=function(d,b,A,C,w,x,S){var E;if(x){d.paper.openGroup({klass:d.controller.classes.generate("staff-extra voice-name"),"data-name":w});var P=A+(C-A)/2;P=P-d.controller.getTextSize.baselineToCenter(x,"voicefont","staff-extra voice-name",0,1),renderText$7(d,{x:d.padding.left,y:P,text:x,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return w==="brace"?E=curvyPath(d,b,A,C,w):w==="bracket"&&(E=straightPath(d,b,A,C,w)),x&&(E=d.paper.closeGroup()),S.wrapSvgEl({el_type:w,startChar:-1,endChar:-1},E),E},brace=drawBrace$1;function printPath$5(d,b,A){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,A){(!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),x=d.calcY(b.anchor2.heads[0].pitch),S=b.anchor1.x+b.anchor1.w/2,E=b.anchor2.x+b.anchor2.w/2,P=lineLength(S,w,E,x),B=b.anchor1.w/2+C,D=b.anchor2.w/2+C,k=slope(S,w,E,x),I=getY$1(w,k,B);getY$1(x,k,-D);var $=numSquigglies(P-B-D),M=drawSquiggly(d,S+B,I,$,k);return A.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},M),[M]}function lineLength(d,b,A,C){var w=A-d,x=C-b;return Math.sqrt(w*w+x*x)}function slope(d,b,A,C){return(C-b)/(A-d)}function getY$1(d,b,A){return roundNumber$8(d+A*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 A="",C=0;C1&&C.indexOf(".")<0){var E=elementGroup$2.isInGroup()?"":w.klass;d.paper.openGroup({"data-name":w.name,klass:E});for(var P=0,B=0;B0?b.linewidth+d.lineThickness:b.linewidth-d.lineThickness;b.graphelem=printStem$1(d,b.x,P,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,A,C,w,x){d.setAttributeOnElement(b,{style:"transform:scale("+A+","+C+");transform-origin:"+w+"px "+x+"px;"})}var relative=drawRelativeElement$2,drawRelativeElement$1=relative,renderText$2=text$1;function drawTempo$1(d,b){var A=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,x;if(b.tempo.preString){w=renderText$2(d,{x:A,y:C,text:b.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,"dominant-baseline":"ideographic",name:"pre"},!0),x=d.controller.getTextSize.calc(b.tempo.preString,"tempofont","tempo",w);var S=x.width,E=S/b.tempo.preString.length;A+=S+E}if(b.note){b.note.setX(A);for(var P=0;P0&&b.children[0].type==="TempoElement";b.elemset=[],elementGroup.beginGroup(d.paper,d.controller);for(var S=0;S0?D.classList[0]+" ":"";D.setAttribute("class",k+b.overrideClasses)}if(x)b.startChar=b.abcelem.startChar,b.endChar=b.abcelem.endChar,C.add(b,D,!1,w);else{b.elemset.push(D);var I=!1;(b.type==="note"||b.type==="tabNumber")&&(I=!0),C.add(b,D,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 $=0;$=0;D--){var k=(D+1)*E;B=d.calcY(k),P===0&&(P=B),printStaffLine(d,b,A,k,S,null,x+d.lineThickness),S=void 0}return d.paper.closeGroup(),[P,B]}var staff=printStaff$1;function printDebugBox$1(d,b,A){var C=d.paper.rectBeneath(b);return A&&d.paper.text(A,{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 A="rgba(0,0,0,255)",C="rgba(0,0,0,0)",w=Math.round(d.y),x=d.controller.width,S=(x-b)/2,E=S+b,P="M "+S+" "+w+" L "+E+" "+w+" L "+E+" "+(w+1)+" L "+S+" "+(w+1)+" L "+S+" "+w+" z";d.paper.pathToBack({path:P,stroke:C,fill:A,class:d.controller.classes.generate("defined-text")})}var separator=drawSeparator$1,drawSeparator=separator,renderText=text$1;function nonMusic$2(d,b,A){for(var C=0;C=0&&E.voices&&boxAllElements(d,b.voices,E.voices),d.showDebug.indexOf("grid")>=0&&(d.paper.dottedLine({x1:d.padding.left,x2:d.padding.left+d.controller.width,y1:x,y2:x,stroke:"#0000ff"}),printDebugBox(d,{x:d.padding.left,y:d.calcY(E.originalTop),width:d.controller.width,height:d.calcY(E.originalBottom)-d.calcY(E.originalTop),fill:d.foregroundColor,stroke:d.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),w=0,V(E,"chordHeightAbove"),V(E,"chordHeightBelow"),V(E,"dynamicHeightAbove"),V(E,"dynamicHeightBelow"),V(E,"endingHeightAbove"),V(E,"lyricHeightAbove"),V(E,"lyricHeightBelow"),V(E,"partHeightAbove"),V(E,"tempoHeightAbove"),V(E,"volumeHeightAbove"),V(E,"volumeHeightBelow"))),d.moveY(spacing$2.STEP,-E.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 P,B,D=2,k=0,I=0;I1&&(P=b.staffs[0].topLine,B=b.staffs[q-1].bottomLine,printStem(d,b.startx,.6,P,B,null)),d.y=x;function V(U,W){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(U.positionY&&U.positionY[W]){var Z=U.specialY[W]*spacing$2.STEP;W==="chordHeightAbove"&&U.specialY.chordLines&&U.specialY.chordLines.above&&(Z*=U.specialY.chordLines.above),W==="chordHeightBelow"&&U.specialY.chordLines&&U.specialY.chordLines.below&&(Z*=U.specialY.chordLines.below),printDebugBox(d,{x:d.padding.left,y:d.calcY(U.positionY[W]),width:d.controller.width,height:Z,fill:K[w],stroke:K[w],"fill-opacity":.4,"stroke-opacity":.4},W.substr(0,4)),w+=1,w>6&&(w=0)}}}function printBrace(d,b,A,C,w){if(A)for(var x=0;x=0};Selectables$1.prototype.wrapSvgEl=function(d,b){var A={tuneNumber:this.tuneNumber,abcelem:d,elemset:[b],highlight,unhighlight};this.add(A,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,A,C,w,x,S,E,P,B){var D=new Selectables(d.paper,E,P);d.paper.openGroup(),d.moveY(d.padding.top),nonMusic(d,A.topText,D),d.paper.closeGroup(),d.moveY(d.spacing.music);for(var k=[],I=0;I=1&&addStaffPadding(d,d.spacing.staffSeparation,k[k.length-1],$.staffGroup);var M=engraveStaffLine(d,$.staffGroup,D);M.line=B+I,k.push(M),d.paper.closeGroup()}else $.nonMusic&&(d.paper.openGroup(),nonMusic(d,$.nonMusic,D),d.paper.closeGroup())}return b.reset(),A.bottomText&&A.bottomText.rows&&A.bottomText.rows.length>0&&(d.paper.openGroup(),d.moveY(24),nonMusic(d,A.bottomText,D),d.paper.closeGroup()),setPaperSize(d,w,S,x),{staffgroups:k,selectables:D.getElements()}}function engraveStaffLine(d,b,A,C){drawStaffGroup(d,b,A);var w=b.height*spacing$1.STEP;return d.y+=w,b}function addStaffPadding(d,b,A,C){var w=A.staffs[A.staffs.length-1],x=-(w.bottom-2),S=C.staffs[0].top-10,E=S+x,P=E*spacing$1.STEP;P.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,A){d[0]===void 0&&(d=[d]),this.reset();for(var C=0;C0)for(var S=x.staffGroup.voices[0],E=!1,P=0,B=0;B g"),P=0,B=[],D=0;D',d.style.overflowX="hidden",d.style.overflowY="auto",d=d.children[0]):d.innerHTML="";var x=new EngraverController(d,A);if(x.engraveABC(b,C,w),b.engraver=x,A.viewportVertical||A.viewportHorizontal){var S=d.parentNode;S.style.width=d.style.width}}var renderAbc$1=function(d,b,A,C,w){var x={},S;if(A){for(S in A)A.hasOwnProperty(S)&&(x[S]=A[S]);x.warnings_id&&x.tablature&&(x.tablature.warning_id=x.warnings_id)}if(C)for(S in C)C.hasOwnProperty(S)&&(S==="listener"?C[S].highlight&&(x.clickListener=C[S].highlight):x[S]=C[S]);if(w)for(S in w)w.hasOwnProperty(S)&&(x[S]=w[S]);function E(P,B,D,k){var I=!1;return P==="*"&&(I=!0,P=document.createElement("div"),P.setAttribute("style","visibility: hidden;"),document.body.appendChild(P)),x.afterParsing&&x.afterParsing(B,D,k),!I&&x.wrap&&x.staffwidth?(B=doLineWrapping(P,B,D,k,x),B):(renderOne(P,B,x,D,0),I&&P.parentNode.removeChild(P),null)}return tunebook$1.renderEngine(E,d,b,x)};function doLineWrapping(d,b,A,C,w){var x=new EngraverController(d,w),S=x.getMeasureWidths(b),E=wrap$1.calcLineWraps(b,S,w);if(E.reParse){var P=new Parse;P.parse(C,E.revisedParams),b=P.getTune();var B=P.getWarnings();B&&(b.warnings=B)}return renderOne(d,b,E.revisedParams,A,0),b.explanation=E.explanation,b}var abc_tunebook_svg=renderAbc$1,soundsCache$3={},soundsCache_1=soundsCache$3,soundsCache$2=soundsCache_1,getNote$1=function(d,b,A,C){soundsCache$2[b]||(soundsCache$2[b]={});var w=soundsCache$2[b];return w[A]||(w[A]=new Promise(function(x,S){var E=new XMLHttpRequest;let P=d+b+"-mp3/"+A+".mp3";E.open("GET",P,!0),E.responseType="arraybuffer",E.onload=function(){if(E.status!==200){S(Error("Can't load sound at "+P+" status="+E.status));return}var B=function(k){x({instrument:b,name:A,status:"loaded",audioBuffer:k})},D=C.decodeAudioData(E.response,B,function(){S(Error("Can't decode sound at "+P))});D&&typeof D.catch=="function"&&D.catch(S)},E.onerror=function(){S(Error("Can't load sound at "+P))},E.send()}).catch(x=>{throw console.error("Didn't load note",b,A,":",x.message),x})),w[A]},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=[],A=0;A0){var E=S.gap?S.gap:0,P=S.duration;E=Math.min(E,P*2/3);var B={pitch:S.pitch,instrument:C,start:Math.round(S.start*1e6)/1e6,end:Math.round((S.start+P-E)*1e6)/1e6,volume:S.volume};S.startChar&&(B.startChar=S.startChar),S.endChar&&(B.endChar=S.endChar),S.style&&(B.style=S.style),S.cents&&(B.cents=S.cents),b[x].push(B)}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$1(d.audioBuffers))};function bufferToWave$1(d){var b=d[0],A=b.numberOfChannels,C=b.length*A*2+44,w=new ArrayBuffer(C),x=new DataView(w),S=[],E,P,B=0,D=0;for(I(1179011410),I(C-8),I(1163280727),I(544501094),I(16),k(1),k(A),I(b.sampleRate),I(b.sampleRate*2*A),k(A*2),k(16),I(1635017060),I(C-D-4),E=0;E0){if(d.debugCallback&&d.debugCallback("pending "+JSON.stringify(D)),x?x=x*2:x=50,x<9e4)return new Promise(function(z,Q){setTimeout(function(){var q=[];for(I=0;IQ?P[Q]:0;z.forEach(function(V){var U=V.instrument+":"+V.pitch+":"+V.volume+":"+Math.round((V.end-V.start)*1e3)/1e3+":"+q+":"+x+":"+(V.cents?V.cents:0);d.debugCallback&&d.debugCallback("noteMapTrack "+U),B[U]||(B[U]=[]),B[U].push(V.start)})});for(var D=[],k=activeAudioContext$4().createBuffer(2,S,activeAudioContext$4().sampleRate),I=0;I0?z.audioBuffers[0].duration:0;return{status:activeAudioContext$4().state,duration:Q}}Promise.all(D).then(function(){activeAudioContext$4().state==="suspended"?activeAudioContext$4().resume().then(function(){C(H(d))}):activeAudioContext$4().state==="interrupted"?activeAudioContext$4().suspend().then(function(){activeAudioContext$4().resume().then(function(){C(H(d))})}):C(H(d))})})):Promise.reject(new Error(notSupportedMessage))};function b(A,C){if(C==null)return null;var w=[];if(C.length){for(var x=0;x1&&(S=1),w.push(S)}else w.push(0);return w}else{var E=parseFloat(C);if(E*(A-1)>2)return null;for(var P=A%2===0,B=P?0-E/2:0,D=B+E,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 A=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(A.parent=d,A.options={},b&&(A.options=parseCommon$1.clone(b)),A.options.ac&®isterAudioContext$1(A.options.ac),buildDom(A.parent,A.options),attachListeners(A),A.disable=function(x){var S=A.parent.querySelector(".abcjs-inline-audio");x?S.classList.add("abcjs-disabled"):S.classList.remove("abcjs-disabled")},A.setWarp=function(x,S){var E=A.parent.querySelector(".abcjs-midi-tempo");E.value=Math.round(S),A.setTempo(x)},A.setTempo=function(x){var S=A.parent.querySelector(".abcjs-midi-current-tempo");S&&(S.innerHTML=Math.round(x))},A.resetAll=function(){for(var x=A.parent.querySelectorAll(".abcjs-pushed"),S=0;S\n';if(A){var B=b.repeatTitle?b.repeatTitle:"Click to toggle play once/repeat.",D=b.repeatAria?b.repeatAria:B;P+='\n"}if(C){var k=b.restartTitle?b.restartTitle:"Click to go to beginning.",I=b.restartAria?b.restartAria:k;P+='\n"}if(w){var $=b.playTitle?b.playTitle:"Click to play/pause.",M=b.playAria?b.playAria:$;P+='\n"}if(x){var L=b.randomTitle?b.randomTitle:"Click to change the playback position.",H=b.randomAria?b.randomAria:L;P+='\n'}if(E&&(P+='\n'),S){var z=b.warpTitle?b.warpTitle:"Change the playback speed.",Q=b.warpAria?b.warpAria:z,q=b.bpm?b.bpm:"BPM";P+=' ( '+q+")\n"}P+='
CSS required: load abcjs-audio.css
',P+="\n",d.innerHTML=P}function acResumerMiddleWare(d,b,A,C,w){var x=!0;if(activeAudioContext$3()?x=activeAudioContext$3().state==="suspended":registerAudioContext$1(),!supportsAudio$2())throw{status:"NotSupported",message:"This browser does not support audio."};(x||w)&&A&&A.classList.add("abcjs-loading"),x?activeAudioContext$3().resume().then(function(){C?C().then(function(S){doNext(d,b,A,w)}):doNext(d,b,A,w)}):doNext(d,b,A,w)}function doNext(d,b,A,C){C?d(b).then(function(){A&&A.classList.remove("abcjs-loading")}):(d(b),A&&A.classList.remove("abcjs-loading"))}function attachListeners(d){var b=!!d.options.loopHandler,A=!!d.options.restartHandler,C=!!d.options.playHandler||!!d.options.playPromiseHandler,w=!!d.options.progressHandler,x=!!d.options.warpHandler,S=d.parent.querySelector(".abcjs-midi-start");b&&d.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(E){acResumerMiddleWare(d.options.loopHandler,E,S,d.options.afterResume)}),A&&d.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(E){acResumerMiddleWare(d.options.restartHandler,E,S,d.options.afterResume)}),C&&S.addEventListener("click",function(E){acResumerMiddleWare(d.options.playPromiseHandler||d.options.playHandler,E,S,d.options.afterResume,!!d.options.playPromiseHandler)}),w&&d.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(E){acResumerMiddleWare(d.options.progressHandler,E,S,d.options.afterResume)}),x&&d.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(E){acResumerMiddleWare(d.options.warpHandler,E,S,d.options.afterResume)})}var createSynthControl=CreateSynthControl$2,SynthSequence$1=synthSequence,CreateSynth$2=createSynth,activeAudioContext$2=activeAudioContext_1;function playEvent$1(d,b,A){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(A){return new Promise(function(C){setTimeout(C,A)})}d.runWhenReady=function(A,C){return d.visualObj?d.isLoading?b(500).then(function(){return d.isLoading?d.runWhenReady(A,C):A(C)}):d.isLoaded?A(C):d.go().then(function(){return A(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(A){return d.runWhenReady(d._randomAccess,A)},d._randomAccess=function(A){var C=A.target.classList.contains("abcjs-midi-progress-indicator")?A.target.parentNode:A.target,w=(A.x-C.offsetLeft)/C.offsetWidth;return w<0&&(w=0),w>1&&(w=1),d.seek(w),Promise.resolve({status:"ok"})},d.seek=function(A,C){d.timer&&d.midiBuffer&&(d.timer.setProgress(A,C),d.midiBuffer.seek(A,C))},d.setWarp=function(A){if(parseInt(A,10)>0){d.warp=parseInt(A,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(A){var C=A.target.value;return d.setWarp(C)},d.setProgress=function(A,C){d.percent=A,d.control&&d.control.setProgress(A,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(A,C,w,x){var S=A/C;d.setProgress(S,w),d.cursorControl&&d.cursorControl.onBeat&&typeof d.cursorControl.onBeat=="function"&&d.cursorControl.onBeat(A,C,w,x)},d.eventCallback=function(A){if(A)d.cursorControl&&d.cursorControl.onEvent&&typeof d.cursorControl.onEvent=="function"&&d.cursorControl.onEvent(A);else return d.finished()},d.lineEndCallback=function(A,C){d.cursorControl&&d.cursorControl.onLineEnd&&typeof d.cursorControl.onLineEnd=="function"&&d.cursorControl.onLineEnd(A,C)},d.getUrl=function(){return d.midiBuffer.download()},d.download=function(A){var C=d.getUrl(),w=document.createElement("a");document.body.appendChild(w),w.setAttribute("style","display: none;"),w.href=C,w.download=A||"output.wav",w.click(),window.URL.revokeObjectURL(C),document.body.removeChild(w)}}var synthController=SynthController$2,centsToFactor=centsToFactor_1,rendererFactory$1;(function(){function d(D,k){for(var I in k)k.hasOwnProperty(I)&&D.setAttribute(I,k[I]);return D}function b(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}b.prototype.setTempo=function(D){this.trackcount===0&&(this.startTrack(),this.track+="%00%FF%51%03"+E(Math.round(6e7/D),6),this.endTrack())},b.prototype.setGlobalInfo=function(D,k,I,$){if(this.trackcount===0){this.startTrack();var M=Math.round(6e7/D);this.track+="%00%FF%51%03"+E(M,6),I&&(this.track+=w(I)),$&&(this.track+=x($)),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 D=E(this.track.length/3+4,8);this.track="MTrk"+D+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},b.prototype.setText=function(D,k){switch(D){case"name":this.trackName=C(k,"%03");break}},b.prototype.setInstrument=function(D){this.trackInstrument="%00%C0"+E(D,2),this.instrument=D},b.prototype.setChannel=function(D,k){this.channel=D;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"+E(k,2),this.track+=I+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};var A=4096;b.prototype.startNote=function(D,k,I){if(this.track+=B(this.silencelength),this.silencelength=0,I){this.track+="%e"+this.channel.toString(16);var $=Math.round(centsToFactor(I)*A);this.track+=P(8192+$),this.track+=B(0),this.noteWarped[D]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+D.toString(16)+E(k,2)},b.prototype.endNote=function(D){this.track+=B(this.silencelength),this.silencelength=0,this.noteWarped[D]&&(this.track+="%e"+this.channel.toString(16),this.track+=P(8192),this.track+=B(0),this.noteWarped[D]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+D.toString(16)+"%00"},b.prototype.addRest=function(D){this.silencelength+=D,this.silencelength<0&&(this.silencelength=0)},b.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+E(this.trackcount,4)+"%01%e0"+this.trackstrings},b.prototype.embed=function(D,k){var I=this.getData(),$=d(document.createElement("a"),{href:I});if($.innerHTML="download midi",D.insertBefore($,D.firstChild),!k){var M=d(document.createElement("embed"),{src:I,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});D.insertBefore(M,D.firstChild)}};function C(D,k){for(var I="",$=0;$k&&(I=I.substring(0,k)),S(I)}function P(D){D=Math.round(D);var k=D%128,I=D-k;return E(I*2+k,4)}function B(D){var k=0,I=[];for(D=Math.round(D);D!==0;)I.push(D&127),D=D>>7;for(var $=I.length-1;$>=0;$--){k=k<<8;var M=I[$];$!==0&&(M=M|128),k=k|M}var L=k.toString(16).length;return L+=L%2,E(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(A,C){C===void 0&&(C={});var w=A.setUpAudio(C),x=rendererFactory(),S=A.metaText?A.metaText.title:void 0;S&&S.length>128&&(S=S.substring(0,124)+"...");var E=A.getKeySignature(),P=A.getMeterFraction(),B=w.tempo/60;x.setGlobalInfo(w.tempo,S,E,P);for(var D=0;DD&&(M=C.pan[D]),$.instrument===128?(x.setChannel(9,M),x.setInstrument(0)):(x.setChannel($.channel,M),x.setInstrument($.instrument));break;case"note":var L=$.gap*B,H=$.start,z=H+$.duration-L;k[H]||(k[H]=[]),k[H].push({pitch:$.pitch,volume:$.volume,cents:$.cents}),k[z]||(k[z]=[]),k[z].push({pitch:$.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+$.cmd)}}b(x,k,d),x.endTrack()}return x.getData()};function b(A,C,w){for(var x=Object.keys(C),S=0;SE){var D=(x[P]-E)*w;A.addRest(D),E=x[P]}for(var k=0;k';b.preTextDownload&&(x+=b.preTextDownload);var S=d.metaText&&d.metaText.title?d.metaText.title:"Untitled",E;b.downloadLabel&&isFunction(b.downloadLabel)?E=b.downloadLabel(d,C):b.downloadLabel?E=b.downloadLabel.replace(/%T/,S):E='Download MIDI for "'+S+'"',S=S.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_");var P=b.fileName?b.fileName:S+".midi";return x+=''+E+"",b.postTextDownload&&(x+=b.postTextDownload),x+""},getMidiFile_1=getMidiFile$1;try{if(typeof window.CustomEvent!="function"){var CustomEvent=function(d,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(d,b.bubbles,b.cancelable,b.detail),A};CustomEvent.prototype=window.Event.prototype,window.CustomEvent=CustomEvent}}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 A=this.textarea.createTextRange();A.collapse(!0),A.moveEnd("character",b),A.moveStart("character",d),A.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={},A;if(d.abcjsParams)for(A in d.abcjsParams)d.abcjsParams.hasOwnProperty(A)&&(b[A]=d.abcjsParams[A]);if(d.midi_options)for(A in d.midi_options)d.midi_options.hasOwnProperty(A)&&(b[A]=d.midi_options[A]);if(d.parser_options)for(A in d.parser_options)d.parser_options.hasOwnProperty(A)&&(b[A]=d.parser_options[A]);if(d.render_options)for(A in d.render_options)d.render_options.hasOwnProperty(A)&&(b[A]=d.render_options[A]);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(A,C){var w=function(x,S){var E=x.className;return E.length>0&&(E===S||new RegExp("(^|\\s)"+S+"(\\s|$)").test(E))};return w(A,C)||(A.className+=(A.className?" ":"")+C),A},this.removeClassName=function(A,C){return A.className=parseCommon.strip(A.className.replace(new RegExp("(^|\\s+)"+C+"(\\s+|$)")," ")),A},this.setReadOnly=function(A){var C="abc_textarea_readonly",w=this.editarea.getElem();A?(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(x,S){var E=function(P,B){var D=P.className;return D.length>0&&(D===B||new RegExp("(^|\\s)"+B+"(\\s|$)").test(D))};return E(x,S)||(x.className+=(x.className?" ":"")+S),x},A=function(x,S){return x.className=parseCommon.strip(x.className.replace(new RegExp("(^|\\s+)"+S+"(\\s+|$)")," ")),x},C="abc_textarea_dirty",w=this.editarea.getElem();d?b(w,C):A(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,A,C,w,x){this.editarea.setSelection(d.startChar,d.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(d.startChar,d.endChar),this.clientClickListener&&this.clientClickListener(d,b,A,C,w,x)};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_1h3dr_1",rhythm="_rhythm_1h3dr_17",containerTop="_containerTop_1h3dr_30",topWrap="_topWrap_1h3dr_37",topBtn="_topBtn_1h3dr_44",btnImg$1="_btnImg_1h3dr_44",btnImgActive="_btnImgActive_1h3dr_70",topBtnIcon$1="_topBtnIcon_1h3dr_73",btnDisabled="_btnDisabled_1h3dr_77",topDownArrow="_topDownArrow_1h3dr_82",topLine="_topLine_1h3dr_94",btnPlayMore="_btnPlayMore_1h3dr_100",wrapBox$1="_wrapBox_1h3dr_103",longTopBtn="_longTopBtn_1h3dr_113",dropDownWrap="_dropDownWrap_1h3dr_119",content$3="_content_1h3dr_127",slide$1="_slide_1h3dr_132",box$1="_box_1h3dr_145",value="_value_1h3dr_153",instruments$1="_instruments_1h3dr_180",instrumentTitle="_instrumentTitle_1h3dr_188",titleBox="_titleBox_1h3dr_196",popupWrap="_popupWrap_1h3dr_202",btnLineTitle="_btnLineTitle_1h3dr_210",btnItem$1="_btnItem_1h3dr_217",btnItemIcon$1="_btnItemIcon_1h3dr_223",btnItemName$1="_btnItemName_1h3dr_236",btnItemActive="_btnItemActive_1h3dr_239",titleName="_titleName_1h3dr_242",selectMearesBox="_selectMearesBox_1h3dr_248",mearesInput="_mearesInput_1h3dr_257",selectMearesHidden="_selectMearesHidden_1h3dr_268",loading="_loading_1h3dr_271",btnGroup="_btnGroup_1h3dr_303",exportPng="_exportPng_1h3dr_307",tabsmodel="_tabsmodel_1h3dr_315",styles$a={container,rhythm,containerTop,topWrap,topBtn,btnImg:btnImg$1,btnImgActive,topBtnIcon:topBtnIcon$1,btnDisabled,topDownArrow,topLine,btnPlayMore,wrapBox:wrapBox$1,longTopBtn,dropDownWrap,content:content$3,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,btnGroup,exportPng,tabsmodel},piano="_piano_1vew4_1",show="_show_1vew4_12",pianoItemWrap="_pianoItemWrap_1vew4_15",itemWrap$1="_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$9={piano,show,pianoItemWrap,itemWrap:itemWrap$1,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,A){return openBlock(),createElementBlock("svg",_hoisted_1$3,_hoisted_3$3)}}),setbox$2="_setbox_97a7m_1",head$3="_head_97a7m_10",close$3="_close_97a7m_24",content$2="_content_97a7m_30",lineTitle="_lineTitle_97a7m_35",item$1="_item_97a7m_43",itemImg="_itemImg_97a7m_51",icon$1="_icon_97a7m_59",itemActive="_itemActive_97a7m_63",itemIcon="_itemIcon_97a7m_70",beatItem="_beatItem_97a7m_81",beatIcon="_beatIcon_97a7m_92",speedIcon$1="_speedIcon_97a7m_107",btnItem="_btnItem_97a7m_110",btnItemIcon="_btnItemIcon_97a7m_119",btnItemName="_btnItemName_97a7m_128",active="_active_97a7m_131",btns$1="_btns_97a7m_134",styles$8={setbox:setbox$2,head:head$3,close:close$3,content:content$2,lineTitle,item:item$1,itemImg,icon:icon$1,itemActive,itemIcon,beatItem,beatIcon,speedIcon:speedIcon$1,btnItem,btnItemIcon,btnItemName,active,btns:btns$1},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,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAEqklEQVRoBe2ZTWhUVxTHZyZjmoZRQYZCUYQM3WhEsfloYpDGjy5iHInoIOguuNDSRaEU2mYT6EbdCeJGhQriJtJGiQ2pItEgmZBkpRJRSbJw0xi0NqVNk5mkvxPmPu+8ee/lvcmb2MW78LjnnnvuOf9z7rn3nkxCoaAFEQgiEETgfUYgvJzxlpaWD6anp3cjV823Zjl5mV9YWJij+210dPSpG3ldprOzM9LX15eYn5/fBD9eVlaWHhoaeqnL6LSjA3V1ddWA6WLBFn2RGzocDs8uLi7udONEQ0PDlkwmcwy9u/g+Y906zcZf0Wj0U5x4rvEMMmpQJkIiPzU1VRR4UQWICpz4HNJ2F2pra5uQ+55oH0DOLpixbDa7l3lvDuTSxnPkMaTa32z/PTXQ+1QqVTY+Pv4j4L+DbwdcLXmL3F01MPe2O4Cg5Ly5dRPV+zAz5gl9jIycgbts+7jOF7q5ubkC8L9C7jHP5caT9L3oeAbwycrKyocDAwOvbGRDTg6YD2w3+XzYTpEbPoDCnKtryJrB/wvvAt9VbDxyo0vJODmgZJb6XOTzeF4H5HwHa47o69Ar0f5qeHi4YLd0OTs6YjdhwXdMGwv5PFZNTc1mgP6QxwyFfqqqqkoWC150ud4Bk2HPQ8CfJYU+1BZ2j4yMtMNf1HieyVVxgOh/DLKjCh2gX3NDnVopeNHnJYWUfc89QNuJvhEs6HPcUL97VmSxYFUcAPBxzbbcOFe08YpIIyor0sJirsd9lB3VPPs/67VLY2Pjxrm5ua2a/jtcldPaeEWkLztAjqcAL6/leWqaUZxJKFSA369o6UmngtdZHjddxgvtiwMY/EIz+hEpc6upqWmt8AAsBZrRIpFIWg1wfD1vw42ZmZl/oEf44mrObe+LA4Ds1g3iQPXs7Ox1KY2ht+tzFGZLRRmp9Qn8QebVw1Yjh12XdUP74gD3udQ2Z0wGD/b09Ahvm8b/Q/K/vr5+LxXoEPy8YhEHbGseTUce6YsDojGZTHYA4Jauneh+yzimeMy/IE1Oc176mNug+NIzd6W1tfWqznND++YA6bIQi8VOAOSxg2GpcC8C3rj9kM9yLr5mF0+KDoe1llO+OSDa+/v75a+nJKTlNQlwvZSQJW/4WqiFzsugmOarAwIgnU5PElE5mPPLABorLy+vJ/J3lpFznPbdAbFGRB/Qfelg+TY71TA4OPjCToazcpIr9qacGTsZ4ZfEAVHMbXOZriA12J2zHPhDvNZ/ipxV45aSX0EukXKH6C/yMOY9hvoa4zDpTL/oRCLxzcTExCaAHOGwztCfYneu8zma4JbKezsY72CBvPQFraQOdHV1ZbF4VB4tSopX7MrbAgTWjLDOZtfyxvpcSR1QhpxyXckU25fsDBQLyOu6wAGvEfNb3ssOrMp5yTno2pZrB7gC5XfOVWlebDl5ai4F2ngVf+E+v48XmRJ5Es2BbzPpN2Mxpp0ceGJIvSPaMGBW/m62dJQVliVrtikUj8cHkBgrHSbXmsdyWCwX2L5wIk0NUvQ/OCyteWeO8QqnKD1sd8DRAbFXzL+YvOMsWCE5/0Qi39vbK78jBS2IQBCBIAL/0wj8B0SokQ50tMF9AAAAAElFTkSuQmCC",__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_26_6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAEqklEQVRoBe2ZTWhUVxTHZyZjmoZRQYZCUYQM3WhEsfloYpDGjy5iHInoIOguuNDSRaEU2mYT6EbdCeJGhQriJtJGiQ2pItEgmZBkpRJRSbJw0xi0NqVNk5mkvxPmPu+8ee/lvcmb2MW78LjnnnvuOf9z7rn3nkxCoaAFEQgiEETgfUYgvJzxlpaWD6anp3cjV823Zjl5mV9YWJij+210dPSpG3ldprOzM9LX15eYn5/fBD9eVlaWHhoaeqnL6LSjA3V1ddWA6WLBFn2RGzocDs8uLi7udONEQ0PDlkwmcwy9u/g+Y906zcZf0Wj0U5x4rvEMMmpQJkIiPzU1VRR4UQWICpz4HNJ2F2pra5uQ+55oH0DOLpixbDa7l3lvDuTSxnPkMaTa32z/PTXQ+1QqVTY+Pv4j4L+DbwdcLXmL3F01MPe2O4Cg5Ly5dRPV+zAz5gl9jIycgbts+7jOF7q5ubkC8L9C7jHP5caT9L3oeAbwycrKyocDAwOvbGRDTg6YD2w3+XzYTpEbPoDCnKtryJrB/wvvAt9VbDxyo0vJODmgZJb6XOTzeF4H5HwHa47o69Ar0f5qeHi4YLd0OTs6YjdhwXdMGwv5PFZNTc1mgP6QxwyFfqqqqkoWC150ud4Bk2HPQ8CfJYU+1BZ2j4yMtMNf1HieyVVxgOh/DLKjCh2gX3NDnVopeNHnJYWUfc89QNuJvhEs6HPcUL97VmSxYFUcAPBxzbbcOFe08YpIIyor0sJirsd9lB3VPPs/67VLY2Pjxrm5ua2a/jtcldPaeEWkLztAjqcAL6/leWqaUZxJKFSA369o6UmngtdZHjddxgvtiwMY/EIz+hEpc6upqWmt8AAsBZrRIpFIWg1wfD1vw42ZmZl/oEf44mrObe+LA4Ds1g3iQPXs7Ox1KY2ht+tzFGZLRRmp9Qn8QebVw1Yjh12XdUP74gD3udQ2Z0wGD/b09Ahvm8b/Q/K/vr5+LxXoEPy8YhEHbGseTUce6YsDojGZTHYA4Jauneh+yzimeMy/IE1Oc176mNug+NIzd6W1tfWqznND++YA6bIQi8VOAOSxg2GpcC8C3rj9kM9yLr5mF0+KDoe1llO+OSDa+/v75a+nJKTlNQlwvZSQJW/4WqiFzsugmOarAwIgnU5PElE5mPPLABorLy+vJ/J3lpFznPbdAbFGRB/Qfelg+TY71TA4OPjCToazcpIr9qacGTsZ4ZfEAVHMbXOZriA12J2zHPhDvNZ/ipxV45aSX0EukXKH6C/yMOY9hvoa4zDpTL/oRCLxzcTExCaAHOGwztCfYneu8zma4JbKezsY72CBvPQFraQOdHV1ZbF4VB4tSopX7MrbAgTWjLDOZtfyxvpcSR1QhpxyXckU25fsDBQLyOu6wAGvEfNb3ssOrMp5yTno2pZrB7gC5XfOVWlebDl5ai4F2ngVf+E+v48XmRJ5Es2BbzPpN2Mxpp0ceGJIvSPaMGBW/m62dJQVliVrtikUj8cHkBgrHSbXmsdyWCwX2L5wIk0NUvQ/OCyteWeO8QqnKD1sd8DRAbFXzL+YvOMsWCE5/0Qi39vbK78jBS2IQBCBIAL/0wj8B0SokQ50tMF9AAAAAElFTkSuQmCC",__vite_glob_0_27=Object.freeze(Object.defineProperty({__proto__:null,default:icon_26_6},Symbol.toStringTag,{value:"Module"})),icon_27_0=""+new URL("icon_27_0-1a34c85d.png",import.meta.url).href,__vite_glob_0_28=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_0},Symbol.toStringTag,{value:"Module"})),icon_27_1=""+new URL("icon_27_1-f9a5b1c0.png",import.meta.url).href,__vite_glob_0_29=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_1},Symbol.toStringTag,{value:"Module"})),icon_27_2=""+new URL("icon_27_2-f7c74866.png",import.meta.url).href,__vite_glob_0_30=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_2},Symbol.toStringTag,{value:"Module"})),icon_27_3=""+new URL("icon_27_3-10612b9d.png",import.meta.url).href,__vite_glob_0_31=Object.freeze(Object.defineProperty({__proto__:null,default:icon_27_3},Symbol.toStringTag,{value:"Module"})),icon_27_4=""+new URL("icon_27_4-acce030b.png",import.meta.url).href,__vite_glob_0_32=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_33=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_34=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_35=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_36=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_37=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_38=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_39=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_3},Symbol.toStringTag,{value:"Module"})),icon_29_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAABxlJREFUeF7tnA9MVVUcx78/EPEPFkn+4TGcIqZSmmKt0oaW/0KbhP/mFpVGpaZS+shaW2W1tTSeJmhq5ewPbY5UxKX4B0uZWq3E1EJNUQYD8Q9Ggn8Aeb927ntP+fd499537+vd7d7tbgzOn+/5cH7nnvM7v3MIPnyWMAess2EoER4E0F96GX2YcBcxugDSK55qJlQT4yoI5wCcEi8zjs624sgSIruvZJPeFUVmsKWhFlNAGA1gJDOHelMnEVUB2A/G3sBgbC5dQOXelOcpry6Aem/gDrWVmEKE55kxBuAAT0LU/Z3sRMhjxjfBYdhcPItuqivHfS5NAcWs5pCqm5jDDCvAPbUW23Z5VEEEW2gHrC2cRzVa1a0JoFE/cbvTBUhhxtsMDtNKnJpyCFRJhI/6xSJ93xN0S00ZjfN4DciSxo8z4TMwD/JWjKb5iY4T49XyVDrgTbmqAcVkcfuqUqQxMB/MqsvxRrzHvERC2KrQSKQWTqc6j+lbSaCqYb1WcFR9A7IAHqamUt/nocNBgZhespDOKq1bMaCIFfwkN2ALg+9WWtn/mZ5A/1IgJpctpB+V6FAEKMLG05iRyeD2Sirxl7QEqiNCUpmVvperSTagcBu/DMZa/eY0ciV7m47sIMw5b6Uv5JQkC5DoOXbGRuPDcSEhewBhhpye5BGQc8zJNapZueslkrkFIt7TmNQmIPG1utWAAqMNyHJMR6QRA3e7QMS29XVzC0jMc/4pwSHjfMrlYmmejg7f0wvD3c2T3AKy2DidmReordZI+Ygoo9xKKa1pbhWQc/mQ77czZK3pixk3I661ZUkLQGLheaoABX63ttIaSgtLo+P9YxHbfIHbAlCEjRfZmW166/HH8gOIrGVWWt5YWxNAkj/nBop95bIY1B0YEwWM6AX0DAF6dHZIu3ANqKgBDpYAeWeB4xd9g1O4SkI7ondjf1ITQBYbpzLzJ3rLGd8XWDwCGNjN4zRMknLiEmPZQWBXkd7KACJ6o9xKabenlK4fnG7Sc3p6Art1AtY+DTwWKQ9Mcxw/lzLm/ABcuq4nKKoIDkMfl/v2ttLwNH4W4Ey9qh4WDnw5CegRog6OS9eFGsZL24DD5/VSKk0hk86n0neOyaTzsdh4FzOP06PaAfcCOTOALsHewXFpq65lJGwETl7WQ61kZrvLrTT+NiCxNXOrFqV6LEaFWe1MAsK7aAPHhaS8mhGfqZe5kb1dMCLFlpKk2mLjFGZeqcf/Y9UEYPJAbeG4dG45wZi/Qw/V0jotpTyVMlyAcph5ktZVPRIBZM/QB45La+JGxq9lWiuXzCyn3ErPkNgO/nw5Kr3d8WxN4oYEYHy0voB2FzFmbtUFUNUrixBG4WnC8c6/a11F147AkdlAUKC+gOobGEPXAVduaN0CaYh+iCw2fpGZ12td/PT7gU+f0heOS/PrOxlZf2ndAsnMkgWgpcy8WOvi34kD5j7sG0BrfmN8mK91CyRAywSgrcycoHXx3yYCo6N8A2jvWcZz2Vq3wDFQkyWNjzJ4sLfFdw4CJvV3vA90B8I6+QaOS3fldcafF4FtpxzvtXpvWyR96o9RuI3Pgbm3N8VNjQHeG+l7KO40C1jv7wc2FXrTKjFGU7HoQZfVujcCCPh4DJA02Le9RW6zM48x3soD7Cw3R9N0UqSIJY1r1W7pLBvrv3BcTRWQFu9RDahONaDEAcDqif7Zc5rjmLedkX1SOSRp70yNiQUFAIeSgYi7jAGo7Cpj+HqgXmHop2RiagbpyQOBVROMAcfVb+bvYGw5obAXOQdpxZ/5NROBhAHGApRzkjF3uzJA0mdezURRmFfvUGMBKq5ymJmSxzFRVLHUOJMCdAoyFqDr9YzodCV47iw1FC9W/14AhLQ3FqCaOsZ9GYoBJatyd+TPAqK7GgvQmSuMuA3KAEnuDjUOs/R4YGqMsQBtKmSk5MoHJI48SA4zkcViY0Uu1/hoYH2CsQAl5zByzygC5HC5OgEpctoLJ+G+mUBfg5hZ0RXGqK+ABgVrsiZOezXbPmOjgK8TjdGLXshm7FEUId1s28fZixRvHL45AnjtUf+GtPIXxtKD8k1LpGyxcSh+qXbr2Z8hqYHjQNnK1rM3wQvC3N4d6T9jkhhzPtgPhWbl6mVughecZqY6/EUM3OP6AvH9gCE9HfE+vppMikmgiCf6owLIPQ3sLlI2IDc2QLfhLyKRrwOolI0M+qf2GEAlJJgheG2E4AlAZhBn01OKrX6jzTDgO+bsdhJjBpI7P/juhj7zKIIHQOLP5mGWRjGK7nqSeRxKxvTCPFAnA5J5JFMGJPNQrxxI5rFwz5TMiwU8M4J5NYUMSJKLxLzcxDMp83ocz4ykFOYFSzJBmVd0yQQlkkmXvNVhKiBd8hbn7ZEH5yVv+WDkGfaSN3f8pmVx4IESDDHSNYH/AUmZXpCRLCmZAAAAAElFTkSuQmCC",__vite_glob_0_40=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_4},Symbol.toStringTag,{value:"Module"})),icon_29_5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAB9xJREFUeF7tnH2QlVUdxz+/uzsEKwvpSirmAIaRCRYgDFqAgZPA5cUJl5wUKqJEtJ3iJWSZanPGu6JghYqolAXW2O5sI8IGNmACZQQq6WJGoMCYqMEqbwLusPc05z538e7ufTnn3Oe5sjPPmbkz+8fv7Xz3nPM7v5fzCAUcSlVFuGf7QOALKNUPJf0Q1QfoBlKKojRhjnAM1DHgKEr2ImoXIruAl7lzyA6RqnihzJagFalFE3tyunkyMBoYCeqT+emUw8AmYCPFRXUy/+kD+cnLzh0IQOrxb3XmnUOTUfFpKLkOVCSYSUgcURuQyEouPL9Ovv2bU37r8RUg9VB5V46cmAnMQakL/TY2qzyRd4AldC9ZLrfXHvdLty8Aqb9UFfP3FypAVaJUmV/GOckRaQSJcfVVS+UrVaedZKQw5Q2QumfCl4k3L0MxIF9jfOUXGogUzZI71/w1H7nOAKma8k7sObEY1B0onOXkY3xOXkGBPEjfkrkypbYpJ30aAqeJqeropShqUGqwi9KC84i8iDBFFtS/YavbGiBVPWEUqvmPKLrbKvtY6YUjSNHXZMGaZ23ssAJIVUfLifMEqE42Ss4eWmkiwi2yoL7W1CZjgFRs/HdRanlwdxpTk/Ol03cnmSmVax8zkWQEUHLlPNnxwWmBROJEuMlkJeUEKHHmxOPrOu62yrRO9HaLjM11JmUFyPNW6qUOdyCb7B1Nkzi4ZVA275YRoOQ95/kO48pNQWlLp68AfUuuyXRPygxQLLoUpb7vqrdD8Yk8IJX1FelsTgtQMnzYfNbekP1GX9+4I0Uj0oUl7QDyAs9t+tw5u2Irv0Fpt9Vo4Oqhg9oGuO0Bio2fjYovCdqes1K+ROZI5dr7U21rBVAyn7OvYCmLCz4Dlw2FXldCaRl0Pc+z7fh7cKwR9r8Cu7fBu68XBk+dKule0js1n9QaoFh0LkrdF7g1lw2DkVPhU73NVP1vH2xaBbu3mtHnQyUyTyrrF5+5Urb8kUiTvn1wb6CZwHPOhRvmQy/H421/Azy1CD54Px8IsvPqzORFPfq0pG/PrCBVPf5m4vEnAtN88edg8sKPtpGrIr396u6Gt/7tKiE3XyRyiyxY+zvvLpkcKjbuGRRfzc3tQNGjF0xbDJ8ocWBOw/LhCVg5Fw7u90dee4/2Z6n80/VnAEqWZt4MJBjV22r6L6D0fH8nc/QQPP6DgLabxCkuukSXlBIrSMXGVaD4pb8zSEqbOA/6XxuIaHY+B08H5VOkQhbWP5AEKLoapSb6PotL+sPURb6LbSVw1Xx4c2cAOmS1LKy/QRLl4Nj2xvwrnmlsvPHH8NlhARifInL3P6D2rgB0yGEqh5SJqo4OJq5e8F1Dl25QsQqKin0X3Upg82lYOhVOHvVfT0Su0gBNJ65+5bv0AdfBhB/6LjatwDU/h4YN/uuKyHdExcYtQvEj36WPmg7DdM+CxXip3iMeFLVgArbWwbO/tuMxoRbuFXV39ClQk0zorWimVEHfIeYs+/4JT/7Eo7/pLuj9RXPePduhpsqc3phSVusV9DKKK415MhF26gKXD4fLR8AFl8I5FmWz9w7Ab2fDSd0SBHQphW/eD+f1NDfrgyPw7hvw2mZ4bQs0nTTnzUQpvKIB2ovCMGrMIKn/KBg9ww6UFlGnjnvgNL7VWnjZxR5InbvaT1SDtXEF7LSqEbbXI+wTFYseck5vSATG3A4Dx9hPQnOouLet9u5Iz99noLfdtB6XsWM9rH/I0+MyRBr1GfShc0ln7B0wcKyLao/nmYfhxbXZ+QePh+tvc9exYx2se9CRX5rcAbpiJEzKw/lpj7V+mZnhY2bZe7ZUyavvhVd1157t0AC5bLFIMcxaAd162Gr06Fs8VrzZjD9SZO/ZUiUfPQjLZkDcsp8qscVcDukrroVJ88wm15aqrccyleLi2Vqtovvg1edMtXl03iHt4OZ1VvDzI+yUaepMHstUUj6e7V+bvWykzUi4eZeL4m0r4NyLbFTl9lim0lw92/tvw8MzTLUk6byLon2oMbcOOnW2U2bisUwluni2plOw2DL0SYQaLsHqnFr/0qcalC2/hy2JFPBHY/jNMPwbppDlptNp2iXluelSKRLBqku649ZHoOzTdsqyURcCoMb/wiO32tmcSHe4JMwmzIYB+mWBT6MQADVshDWtiqY5jE8mzDSVilmmXPtd45Vw/BqFAEiXinY9b2FxMuXqAWSZtNex0feWg3a7foygAdKB8KMzLWOy1KS99yLHruzTdyhM+akf8AR/SNf8DPZss7C1TdknuYrsC4cjp8GXvm6hOANpkCvob3+ATSvtbBRaFw4TALmWnv0AKSiAXMDRYKQtPefTvKC3m06YuZ5JfgOkzxydMLPaVslFlql5IenN3Ntf9MGta2D617Of16RgWovPFyB9CdRNDQd2wX+2ej/3JFn69pcEQN6DuMI1UNmdDMFT52qg8lZR2IKX+p8Imzhb0NAP8EyaOBOryHtFGLYBpzZQtd3gKmwkT0ASPkVwfYrgXR7Dxyzhc6gcTzRzApRcSfopZvigLttNLHySaXBPDR/1GoEUPgvPCVP4YYGcEEH4aQoDkFLCkvDjJlk9XPh5HLPlFH5gyQwnwk90GQKVOKN0San59I0go1GMyP/JgxxG0KmYDR32I2+Z8FM15UW8fkI3QHeYzwT+H3ZrcTYXRZDdAAAAAElFTkSuQmCC",__vite_glob_0_41=Object.freeze(Object.defineProperty({__proto__:null,default:icon_29_5},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_42=Object.freeze(Object.defineProperty({__proto__:null,default:icon_3},Symbol.toStringTag,{value:"Module"})),icon_30="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAAAAXNSR0IArs4c6QAAA49JREFUeF7t2kuoTVEcx/HvlVcGXiGlDCgMzJgwQMpEJEUkj4mBEUVSCJeBksRABh7FQJFIYsLIwISBCQNl4E2JvPPWX+vUaXXqnrPPb52z1um/pnfv3/mvz/3ffc9ea/XhQyrQJ03zMBxU3AQO6qBiAXGcd6iDigXEcd6hDioWEMd5hzqoWEAc5x3qoGIBcZx3qIOKBcRx3qEOKhYQx3mHOqhYQBznHeqgYgFxnHeog/4XmABcBGYBZ4GtwA+xTaW4Ujv0ELC9bsa3geXAu0oKwptKBT0MbIscHgGLgcdCn5ajSgUdD1hXzohm/BZYBtxpWUJ0Q6mgNv0xwGVgQWTxHdgAXBAZtRRTMqhNdChwElgfzfovsAs42JKG4OLSQWsEe4F9DTzOAJuAnwKrpiJ6BdQmuxY4Hbq2fvK3gBXAh6ZE2ryol0CNYh5wBRgbuTwM3wCetOk14O29BmoTngbcAKZGs38DLAXuDqjSxgW9CGoc44CrwNzI5mt4NFgXJxkpQUcAo5JU3VzocOAUsDC6/E94yzrSXExrV6UCPQDsBAa1Vk5Hr7ZvBf3qT0wBOhF4pS40Qd6vsMjyXpmdAnQ08BoYpiw0QdYXwF5hvymzU4BafauAPQ2+vihrbyfrGWCPpWvthDS6NxWous5i8hxU/KtyUAcVC4jjvEMdVCwgjvMOdVCxgDguVYduDCvok8T1quJsu3k3cEIVWMtJAToSsN3HIepixXm/w6tn9u/ythv5ErDls5xHMaCGuBk4lrFmUX/yNcd1YYHXtnrrx82wafYxY/DKpaV4htYXMz9smtljoH48CJtmTytXnumNqUFt2tPDptmUyMDWTG3T7F6mNpXK6gSoFWYLubZpNieq0jbN1oSfVZpAbjd1CtTmbf/1zwErIwTbNLOTdEdzw6lSTydBrT77PDtvtKNBsceBLYB9nSl2dBq0BmVvUvaWMjiSuw6sBj6XKtotUPNaBFwC7M2qftwHlgAvSkTtJqh5zQSsKydHeM/DqQ/bTCtqdBvUsGwf33YfZ0dydrIjPvadPW4OoIZkx3bOh+PcNTQ787k/e8GowFxArSw7tmNLanbO007I2UHZTw5amoC43pw6VDy17sQ5qNjdQR1ULCCO8w51ULGAOM471EHFAuI471AHFQuI47xDHVQsII7zDnVQsYA4zjvUQcUC4jjvUAcVC4jjvEMdVCwgjvMOFYP+A6f4XVWR690fAAAAAElFTkSuQmCC",__vite_glob_0_43=Object.freeze(Object.defineProperty({__proto__:null,default:icon_30},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_44=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_45=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_46=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_47=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_48=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_49=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_50=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_51=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_52=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_53=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_54=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_26_6.png":__vite_glob_0_27,"./icon_27_0.png":__vite_glob_0_28,"./icon_27_1.png":__vite_glob_0_29,"./icon_27_2.png":__vite_glob_0_30,"./icon_27_3.png":__vite_glob_0_31,"./icon_27_4.png":__vite_glob_0_32,"./icon_28_1.png":__vite_glob_0_33,"./icon_28_2.png":__vite_glob_0_34,"./icon_28_3.png":__vite_glob_0_35,"./icon_29.png":__vite_glob_0_36,"./icon_29_1.png":__vite_glob_0_37,"./icon_29_2.png":__vite_glob_0_38,"./icon_29_3.png":__vite_glob_0_39,"./icon_29_4.png":__vite_glob_0_40,"./icon_29_5.png":__vite_glob_0_41,"./icon_3.png":__vite_glob_0_42,"./icon_30.png":__vite_glob_0_43,"./icon_4.png":__vite_glob_0_44,"./icon_5.png":__vite_glob_0_45,"./icon_6.png":__vite_glob_0_46,"./icon_7.png":__vite_glob_0_47,"./icon_8.png":__vite_glob_0_48,"./icon_9.png":__vite_glob_0_49,"./icon_arrow.png":__vite_glob_0_50,"./icon_check.png":__vite_glob_0_51,"./icon_collapseIcon.png":__vite_glob_0_52,"./icon_rest.png":__vite_glob_0_53,"./icon_staff.png":__vite_glob_0_54}),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=[],A=(w=0)=>w===0?"":new Array(Math.abs(w)).fill(w>0?"'":",").join("");for(let w=0;w<=6;w++)for(let x=0;x<12;x++){let S=d[x];w<3?b.push(S+A(w-3)):w===3?b.push(S):w===4?(S=S.toLocaleLowerCase(),b.push(S)):(S=S.toLocaleLowerCase(),b.push(S+A(w-4)))}let C="";return b.forEach((w,x)=>{C+=w+(x%4===0?" |":" ")}),C},ALL_Pitches=["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''''"],ABC_KEYS={"K:Cb":{"K:C":{up:1,down:-11,move:0},"K:C#":{up:2,down:-10,move:1},"K:Db":{up:2,down:-10,move:0},"K:D":{up:3,down:-9,move:1},"K:Eb":{up:4,down:-8,move:0},"K:E":{up:5,down:-7,move:1},"K:F":{up:6,down:-6,move:0},"K:Gb":{up:7,down:-5,move:1},"K:F#":{up:7,down:-5,move:0},"K:G":{up:8,down:-4,move:1},"K:Ab":{up:9,down:-3,move:0},"K:A":{up:10,down:-2,move:1},"K:Bb":{up:11,down:-1,move:0},"K:B":{up:0,down:0,move:0},"K:Cb":{up:0,down:0,move:0}},"K:C":{"K:C#":{up:1,down:-11,move:0},"K:Db":{up:1,down:-11,move:1},"K:D":{up:2,down:-10,move:0},"K:Eb":{up:3,down:-9,move:1},"K:E":{up:4,down:-8,move:0},"K:F":{up:5,down:-7,move:1},"K:F#":{up:6,down:-6,move:0},"K:Gb":{up:6,down:-6,move:1},"K:G":{up:7,down:-5,move:0},"K:Ab":{up:8,down:-4,move:1},"K:A":{up:9,down:-3,move:0},"K:Bb":{up:10,down:-2,move:1},"K:B":{up:11,down:-1,move:0},"K:Cb":{up:0,down:0,move:0}},"K:C#":{"K:D":{up:1,down:-11,move:0},"K:Eb":{up:2,down:-10,move:1},"K:E":{up:3,down:-9,move:0},"K:F":{up:4,down:-8,move:1},"K:Gb":{up:5,down:-7,move:0},"K:F#":{up:5,down:-7,move:1},"K:G":{up:6,down:-6,move:1},"K:Ab":{up:7,down:-5,move:1},"K:A":{up:8,down:-4,move:0},"K:Bb":{up:9,down:-3,move:1},"K:B":{up:10,down:-2,move:0},"K:Cb":{up:10,down:-2,move:0},"K:C":{up:11,down:-1,move:1},"K:C#":{up:0,down:0,move:0},"K:Db":{up:0,down:0,move:0}},"K:Db":{"K:D":{up:1,down:-11,move:0},"K:Eb":{up:2,down:-10,move:1},"K:E":{up:3,down:-9,move:0},"K:F":{up:4,down:-8,move:1},"K:Gb":{up:5,down:-7,move:0},"K:F#":{up:5,down:-7,move:1},"K:G":{up:6,down:-6,move:0},"K:Ab":{up:7,down:-5,move:1},"K:A":{up:8,down:-4,move:0},"K:Bb":{up:9,down:-3,move:1},"K:B":{up:10,down:-2,move:0},"K:Cb":{up:10,down:-2,move:0},"K:C":{up:11,down:-1,move:1},"K:C#":{up:0,down:0,move:0},"K:Db":{up:0,down:0,move:1}},"K:D":{"K:Eb":{up:1,down:-11,move:0},"K:E":{up:2,down:-10,move:1},"K:F":{up:3,down:-9,move:0},"K:Gb":{up:4,down:-8,move:1},"K:F#":{up:4,down:-8,move:0},"K:G":{up:5,down:-7,move:0},"K:Ab":{up:6,down:-6,move:0},"K:A":{up:7,down:-5,move:1},"K:Bb":{up:8,down:-4,move:0},"K:B":{up:9,down:-3,move:1},"K:Cb":{up:9,down:-3,move:1},"K:C":{up:10,down:-2,move:0},"K:C#":{up:11,down:-1,move:1},"K:Db":{up:11,down:-1,move:0},"K:D":{up:0,down:0,move:0}},"K:Eb":{"K:E":{up:1,down:-11,move:0},"K:F":{up:2,down:-10,move:1},"K:Gb":{up:3,down:-9,move:0},"K:F#":{up:3,down:-9,move:1},"K:G":{up:4,down:-8,move:0},"K:Ab":{up:5,down:-7,move:1},"K:A":{up:6,down:-6,move:0},"K:Bb":{up:7,down:-5,move:1},"K:B":{up:8,down:-4,move:0},"K:Cb":{up:8,down:-4,move:0},"K:C":{up:9,down:-3,move:1},"K:C#":{up:10,down:-2,move:0},"K:Db":{up:10,down:-2,move:1},"K:D":{up:11,down:-1,move:0},"K:Eb":{up:0,down:0,move:0}},"K:E":{"K:F":{up:1,down:-11,move:0},"K:Gb":{up:2,down:-10,move:1},"K:F#":{up:2,down:-10,move:0},"K:G":{up:3,down:-9,move:1},"K:Ab":{up:4,down:-8,move:0},"K:A":{up:5,down:-7,move:1},"K:Bb":{up:6,down:-6,move:0},"K:B":{up:7,down:-5,move:1},"K:Cb":{up:7,down:-5,move:1},"K:C":{up:8,down:-4,move:0},"K:C#":{up:9,down:-3,move:1},"K:Db":{up:9,down:-3,move:0},"K:D":{up:10,down:-2,move:1},"K:Eb":{up:11,down:-1,move:0},"K:E":{up:0,down:0,move:0}},"K:F":{"K:Gb":{up:1,down:-11,move:0},"K:F#":{up:1,down:-11,move:1},"K:G":{up:2,down:-10,move:0},"K:Ab":{up:3,down:-9,move:1},"K:A":{up:4,down:-8,move:0},"K:Bb":{up:5,down:-7,move:1},"K:B":{up:6,down:-6,move:0},"K:Cb":{up:6,down:-6,move:0},"K:C":{up:7,down:-5,move:1},"K:C#":{up:8,down:-4,move:0},"K:Db":{up:8,down:-4,move:1},"K:D":{up:9,down:-3,move:0},"K:Eb":{up:10,down:-2,move:1},"K:E":{up:11,down:-1,move:0},"K:F":{up:0,down:0,move:0}},"K:F#":{"K:G":{up:1,down:-11,move:0},"K:Ab":{up:2,down:-10,move:1},"K:A":{up:3,down:-9,move:0},"K:Bb":{up:4,down:-8,move:1},"K:B":{up:5,down:-7,move:0},"K:Cb":{up:5,down:-7,move:0},"K:C":{up:6,down:-6,move:1},"K:C#":{up:7,down:-5,move:0},"K:Db":{up:7,down:-5,move:1},"K:D":{up:8,down:-4,move:0},"K:Eb":{up:9,down:-3,move:1},"K:E":{up:10,down:-2,move:0},"K:F":{up:11,down:-1,move:1},"K:Gb":{up:0,down:0,move:0},"K:F#":{up:0,down:0,move:0}},"K:Gb":{"K:G":{up:1,down:-11,move:0},"K:Ab":{up:2,down:-10,move:1},"K:A":{up:3,down:-9,move:0},"K:Bb":{up:4,down:-8,move:1},"K:B":{up:5,down:-7,move:0},"K:Cb":{up:5,down:-7,move:0},"K:C":{up:6,down:-6,move:1},"K:C#":{up:7,down:-5,move:0},"K:Db":{up:7,down:-5,move:1},"K:D":{up:8,down:-4,move:0},"K:Eb":{up:9,down:-3,move:1},"K:E":{up:10,down:-2,move:0},"K:F":{up:11,down:-1,move:1},"K:Gb":{up:0,down:0,move:0},"K:F#":{up:0,down:0,move:0}},"K:G":{"K:Ab":{up:1,down:-11,move:0},"K:A":{up:2,down:-10,move:1},"K:Bb":{up:3,down:-9,move:0},"K:B":{up:4,down:-8,move:1},"K:Cb":{up:4,down:-8,move:1},"K:C":{up:5,down:-7,move:0},"K:C#":{up:6,down:-6,move:1},"K:Db":{up:6,down:-6,move:0},"K:D":{up:7,down:-5,move:1},"K:Eb":{up:8,down:-4,move:0},"K:E":{up:9,down:-3,move:1},"K:F":{up:10,down:-2,move:0},"K:Gb":{up:11,down:-1,move:1},"K:F#":{up:11,down:-1,move:0},"K:G":{up:0,down:0,move:0}},"K:Ab":{"K:A":{up:1,down:-11,move:0},"K:Bb":{up:2,down:-10,move:1},"K:B":{up:3,down:-9,move:0},"K:Cb":{up:3,down:-9,move:0},"K:C":{up:4,down:-8,move:1},"K:C#":{up:5,down:-7,move:0},"K:Db":{up:5,down:-7,move:1},"K:D":{up:6,down:-6,move:0},"K:Eb":{up:7,down:-5,move:1},"K:E":{up:8,down:-4,move:0},"K:F":{up:9,down:-3,move:1},"K:Gb":{up:10,down:-2,move:0},"K:F#":{up:10,down:-2,move:1},"K:G":{up:11,down:-1,move:0},"K:Ab":{up:0,down:0,move:0}},"K:A":{"K:Bb":{up:1,down:-11,move:0},"K:B":{up:2,down:-10,move:1},"K:Cb":{up:2,down:-10,move:1},"K:C":{up:3,down:-9,move:0},"K:C#":{up:4,down:-8,move:1},"K:Db":{up:4,down:-8,move:0},"K:D":{up:5,down:-7,move:1},"K:Eb":{up:6,down:-6,move:0},"K:E":{up:7,down:-5,move:1},"K:F":{up:8,down:-4,move:0},"K:Gb":{up:9,down:-3,move:1},"K:F#":{up:9,down:-3,move:0},"K:G":{up:10,down:-2,move:1},"K:Ab":{up:11,down:-1,move:0},"K:A":{up:0,down:0,move:0}},"K:Bb":{"K:B":{up:1,down:-11,move:0},"K:Cb":{up:1,down:-11,move:0},"K:C":{up:2,down:-10,move:1},"K:C#":{up:3,down:-9,move:0},"K:Db":{up:3,down:-9,move:1},"K:D":{up:4,down:-8,move:0},"K:Eb":{up:5,down:-7,move:1},"K:E":{up:6,down:-6,move:0},"K:F":{up:7,down:-5,move:1},"K:Gb":{up:8,down:-4,move:0},"K:F#":{up:8,down:-4,move:1},"K:G":{up:9,down:-3,move:0},"K:Ab":{up:10,down:-2,move:1},"K:A":{up:11,down:-1,move:0},"K:Bb":{up:0,down:0,move:0}},"K:B":{"K:C":{up:1,down:-11,move:0},"K:C#":{up:2,down:-10,move:1},"K:Db":{up:2,down:-10,move:0},"K:D":{up:3,down:-9,move:1},"K:Eb":{up:4,down:-8,move:0},"K:E":{up:5,down:-7,move:1},"K:F":{up:6,down:-6,move:0},"K:Gb":{up:7,down:-5,move:1},"K:F#":{up:7,down:-5,move:0},"K:G":{up:8,down:-4,move:1},"K:Ab":{up:9,down:-3,move:0},"K:A":{up:10,down:-2,move:1},"K:Bb":{up:11,down:-1,move:0},"K:B":{up:0,down:0,move:0},"K:Cb":{up:0,down:0,move:0}}},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 x,S,E,P,B,D,k,I,$,M,L,H,z,Q,q,V,U,W,K,Z,te;let A=1,C="X:1\n";b!=null&&b.jianpu&&(C+="%%jianpu 1 \n"),b!=null&&b.showTitle&&d.title&&(C+="T:".concat(d.title,"\n")),b!=null&&b.showCreator&&d.creator&&(C+="C:".concat(d.creator,"\n")),b!=null&&b.hiddenIndex||(C+="%%barnumbers 1\n"),d.isrhythm==="rhythm"?C+="K:perc\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+" ",d.isrhythm==="rhythm"&&(C+="style=x"),C+="\n");const w=d.measures;for(let ne=0;ne{let C=0;const w=ABC_KEYS[b][d];return A==="down"?C=w.down:A==="up"?C=w.up:C=Math.abs(w.up)>Math.abs(w.down)?w.down:w.up,{step:C,move:w.move}},formateGetData={getNoteType:d=>{var x;const b=.25/d;let C=((x=[{name:.25,value:"4"},{name:.5,value:"2"},{name:1,value:""},{name:2,value:"/"},{name:4,value:"//"},{name:8,value:"///"}].find(S=>S.name===b))==null?void 0:x.value)||"";return C===""&&(C={"0.046875":"1/6","0.09375":"1/3","0.1875":"2/3","0.375":"3/2","0.75":"3"}[d]||""),C},getSegno(d,b){var C,w;let A=" ";return b&&d&&(w=(C=b==null?void 0:b.abselem)==null?void 0:C.beam)!=null&&w.elems&&Array.isArray(b.abselem.beam.elems)&&b.abselem.beam.elems.find(S=>S.abcelem.startChar===d.startChar)&&(A=""),A}},formateAbc=(d,b)=>{var E,P,B,D,k,I,$,M,L,H,z,Q;let A=(P=(E=d==null?void 0:d.metaText)==null?void 0:E.tempo)!=null&&P.bpm?d.metaText.tempo.bpm:d.getBpm();const C={celf:"K:treble",minUnit:"L:1/4",meter:"M:4/4",speed:"Q:1/4=".concat(A),key:"K:C",visualTranspose:0,subjectCode:(B=b.subjectCode)!=null?B:"acoustic_grand_piano",title:(k=(D=d==null?void 0:d.metaText)==null?void 0:D.title)!=null?k:"",creator:($=(I=d==null?void 0:d.metaText)==null?void 0:I.composer)!=null?$:""},w=[];let x=0;const S=q=>{let V="";return q.content.includes("_")&&(V="_"),q.content.includes("__")&&(V="__"),q.content.includes("=")&&(V="="),q.content.includes("^")&&(V="^"),q.content.includes("^^")&&(V="^^"),V};for(let q=0;qcreateVNode("svg",{style:{width:b,height:A},class:"svg-icon","aria-hidden":"true"},[createVNode("use",{"xlink:href":"#"+d.iconClassName,fill:d.color},null)])}});function _isSlot$3(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:36,max:62}},{label:"排箫",key:"pan_flute",id:1,icon:getImage("icon_27_1.png"),range:{min:31,max:66}},{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:33,max:53}},{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 A=useMessage(),C=reactive({loading:!1}),w=reactive({key:ABC_DATA.key[0],meter:ABC_DATA.meter[0],speed:80,measure:30}),x=async()=>{if(!w.speed){A.warning("请输入开始速度");return}if(!w.measure){A.warning("请输入小节数量");return}C.loading=!0,S({meter:w.meter.value,speed:"Q:1/4=".concat(w.speed),key:w.key.value,measure:w.measure}),b("create"),C.loading=!1},S=E=>{const P="".concat(location.origin,"/notation/#/?v=").concat(Date.now(),"&config=").concat(encodeUrl(E));window.parent.postMessage({api:"notation_open",url:P},"*")};return()=>createVNode(NModal,{maskClosable:!1,unstableShowMask:!1,transformOrigin:"center",autoFocus:!1,show:d.show,"onUpdate:show":E=>b("update:show",E)},{default:()=>[createVNode("div",{class:styles$8.setbox},[createVNode("div",{class:styles$8.head},[createVNode("div",null,[createTextVNode("新建乐谱")]),createVNode(NButton,{class:styles$8.close,quaternary:!0,circle:!0,size:"small",onClick:()=>b("update:show",!1)},{default:()=>[createVNode(NIcon,{component:Close,size:18},null)]})]),createVNode("div",{class:styles$8.content},[createVNode(NSpace,{style:{paddingBottom:"45px"}},{default:()=>[createVNode(NPopover,{to:"body",trigger:"click"},{trigger:()=>createVNode("div",null,[createVNode("div",{class:styles$8.lineTitle},[createTextVNode("调号")]),createVNode("div",{class:styles$8.beatItem},[createVNode("div",{class:[styles$8.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$3(E=ABC_DATA.key.map(P=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$8.btnItem,w.key.value===P.value&&styles$8.active],onClick:()=>w.key=P},[createVNode("div",{class:[styles$8.btnItemIcon]},[createVNode(TheIcon,{iconClassName:P.icon},null)]),createVNode("div",{class:styles$8.btnItemName},[P.name])])]})))?E:{default:()=>[E]})}}),createVNode(NPopover,{to:"body",trigger:"click"},{trigger:()=>createVNode("div",null,[createVNode("div",{class:styles$8.lineTitle},[createTextVNode("拍号")]),createVNode("div",{class:styles$8.beatItem},[createVNode("div",{class:[styles$8.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$3(E=ABC_DATA.meter.map(P=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$8.btnItem,w.meter.value===P.value&&styles$8.active],onClick:()=>w.meter=P},[createVNode("div",{class:[styles$8.btnItemIcon]},[createVNode(TheIcon,{iconClassName:P.icon},null)]),createVNode("div",{class:styles$8.btnItemName},[P.name])])]})))?E:{default:()=>[E]})}}),createVNode("div",null,[createVNode("div",{class:styles$8.lineTitle},[createTextVNode("速度")]),createVNode("div",{class:styles$8.beatItem},[createVNode(NInputNumber,{size:"large",value:w.speed,"onUpdate:value":E=>w.speed=E,placeholder:"开始速度",showButton:!1,min:50},{prefix:()=>createVNode("div",{class:styles$8.speedIcon},[createVNode(TheIcon,{iconClassName:"icon-a-sudu-4fenyinfu",size:["2em","1em"]},null)])})])]),createVNode("div",null,[createVNode("div",{class:styles$8.lineTitle},[createTextVNode("小节")]),createVNode("div",{class:styles$8.beatItem},[createVNode(NInputNumber,{placeholder:"小节数量",size:"large",value:w.measure,"onUpdate:value":E=>w.measure=E,min:4},null)])])]}),createVNode("div",{class:styles$8.btns},[createVNode(NButton,{round:!0,onClick:()=>b("update:show",!1)},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{loading:C.loading,round:!0,type:"primary",onClick:()=>x()},{default:()=>[createTextVNode("确定")]})])])])]})}}),Keys=defineComponent({name:"Keys",emits:["click"],props:{show:{type:Boolean,default:!1},instrumentCode:{type:String,default:""}},setup(d,{emit:b}){const A=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=(B=0)=>new Array(Math.abs(B)).fill(B>0?"'":",").join(""),x=B=>{A.keyDown=B.key.toLocaleUpperCase()},S=B=>{A.keyDown=""},E=()=>{var I;let B=0;const D=[];for(let $=0;$<7;$++){const M=[];for(let L=0;L3?H.key.toLocaleLowerCase():H.key;const Q=$>3?[3,4].includes($)?0:$-4:$-3;M.push({noteIndex:B,index:$,singname:H.singname,key:H.key,name:H.key+($+1),type:"white",value:z+w(Q)}),B++,H.key!=="E"&&H.key!=="B"&&(M.push({noteIndex:B,bekey:"bkey"+L,index:$,key:H.key,singname:H.singname,name:"#"+H.key+($+1),type:"black",value:z+w(Q)+"-^"}),B++)}D.push(M)}A.list=D;const k=(I=notationInstruments.find($=>$.key===d.instrumentCode))==null?void 0:I.range;k&&(A.range=k)};watch(()=>d.instrumentCode,()=>{var D;const B=(D=notationInstruments.find(k=>k.key===d.instrumentCode))==null?void 0:D.range;A.range=B||{min:0,max:83}});const P=computed(()=>A.list.map(D=>D.filter(k=>k.noteIndex>=A.range.min&&k.noteIndex<=A.range.max)).filter(D=>D.length>0));return onMounted(()=>{E(),document.addEventListener("keydown",x),document.addEventListener("keyup",S)}),onUnmounted(()=>{document.removeEventListener("keydown",x),document.removeEventListener("keyup",S)}),()=>createVNode("div",{class:[styles$9.piano,d.show&&styles$9.show]},[createVNode("div",{class:styles$9.pianoItemWrap},[P.value.map((B,D)=>createVNode("div",{class:styles$9.itemWrap,style:{width:"calc(100% / ".concat(P.value.length,")")}},[B.map(k=>createVNode(Fragment,null,[k.type==="white"?createVNode("div",{style:{display:k.noteIndexA.range.max?"none":""},class:[styles$9.item,k.index===3&&A.keyDown===k.key&&styles$9.keyDown],key:k.index,onClick:()=>{console.log(k.value),b("click",{type:"note",value:k.value})}},[createVNode("div",{class:styles$9.keytip},[createVNode("div",{style:{color:"#ff4a00"}},[k.index===3&&k.key==="C"?"中央C":""]),createVNode("div",{class:styles$9.keyname},[k.name]),createVNode("div",{class:styles$9.singname,style:{background:C[k.index]}},[k.singname])])]):createVNode("div",{style:{display:k.noteIndexA.range.max?"none":""},class:[styles$9.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 A=d.indexOf(b);if(A>-1)return d.splice(A,1)}},inBrowser$1=()=>typeof window<"u";var getGlobalThis=()=>typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:self;function error$1(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:A,vMin:C,vMax:w}=getViewportSize();if(isVw(d))return+d.replace("vw","")*b/100;if(isVh(d))return+d.replace("vh","")*A/100;if(isVMin(d))return+d.replace("vmin","")*C/100;if(isVMax(d))return+d.replace("vmax","")*w/100;if(isRem(d)){var x=+d.replace("rem",""),S=getStyle(document.documentElement).fontSize;return x*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 A={};for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&b.indexOf(C)<0&&(A[C]=d[C]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,C=Object.getOwnPropertySymbols(d);wA.indexOf(S)),parentProvider:x,bindParent:B=>{onMounted(()=>{nextTick().then(()=>{C(S,B)})}),onBeforeUnmount(()=>{nextTick().then(()=>{w(S,B)})})}}}function flatVNodes(d){const b=[],A=C=>{if(C!=null&&C.component){A(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),A(w))})};return A(d),b}function useChildren(d){const b=getCurrentInstance(),A=reactive([]),C=[],w=computed(()=>A.length),x=()=>{const B=flatVNodes(b.subTree);A.sort((D,k)=>B.indexOf(D.vnode)-B.indexOf(k.vnode))},S=(B,D)=>{A.push(B),C.push(D),x()},E=(B,D)=>{removeItem(A,B),removeItem(C,D)};return{length:w,childProviders:C,bindChildren:B=>{provide(d,Object.assign({childInstances:A,collect:S,clear:E},B))}}}function withInstall(d,b){var A=b!=null?b:d;return A.install=function(C){var{name:w}=d;w&&C.component(w,d)},A}function createNamespace(d){var b="var",A=b+"-"+d,C=x=>x?x[0]==="$"?x.replace("$",b):x.startsWith("--")?""+A+x:A+"__"+x:A,w=function(){for(var x=arguments.length,S=new Array(x),E=0;E{if(isArray(P)){var[B,D,k=null]=P;return B?D:k}return P})};return{n:C,classes:w}}function call(d){for(var b=arguments.length,A=new Array(b>1?b-1:0),C=1;Cw(...A));if(d)return d(...A)}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,A,C,w,x,S){try{var E=d[x](S),P=E.value}catch(B){A(B);return}E.done?b(P):Promise.resolve(P).then(C,w)}function _asyncToGenerator(d){return function(){var b=this,A=arguments;return new Promise(function(C,w){var x=d.apply(b,A);function S(P){asyncGeneratorStep(x,C,w,S,E,"next",P)}function E(P){asyncGeneratorStep(x,C,w,S,E,"throw",P)}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(""),A=ref(!1),C=function(){var w=_asyncToGenerator(function*(x,S){var{transition:E}=d;if(S==null||toNumber(E)===0){b.value=x;return}A.value=!0,yield nextTick(),setTimeout(()=>{S!=null&&(b.value=x),A.value=!1},toNumber(E))});return function(S,E){return w.apply(this,arguments)}}();return watch(()=>d.name,C,{immediate:!0}),{n:n$3,classes:classes$1,nextName:b,animateInProgress:A,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:A}=useChildren(COLLAPSE_BIND_COLLAPSE_ITEM_KEY);return{length:b,collapseItem:d,bindCollapseItem:A}}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:A,bindCollapseItem:C}=useCollapseItem(),w=computed(()=>d.modelValue),x=computed(()=>d.offset),S=computed(()=>d.divider),E=computed(()=>d.elevation),P=()=>!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,B=(L,H)=>P()?H?d.accordion?L:[...d.modelValue,L]:d.accordion?null:d.modelValue.filter(z=>z!==L):null,D=(L,H)=>{var z=B(L,H);call(d["onUpdate:modelValue"],z),call(d.onChange,z)},k=()=>{if(d.accordion)return A.find(H=>{var{name:z}=H;return d.modelValue===z.value});var L=A.filter(H=>{var{name:z}=H;return z.value===void 0?!1:d.modelValue.includes(z.value)});return L.length?L:void 0},I=()=>d.accordion?A.find(L=>{var{index:H,name:z}=L;return z.value===void 0&&d.modelValue===H.value}):A.filter(L=>{var{index:H,name:z}=L;return z.value===void 0&&d.modelValue.includes(H.value)}),$=()=>{if(P()){var L=k()||I();if(d.accordion&&!L||!d.accordion&&!L.length){A.forEach(H=>{H.init(d.accordion,!1)});return}A.forEach(H=>{var z=d.accordion?L===H:L.includes(H);H.init(d.accordion,z)})}},M={active:w,offset:x,divider:S,elevation:E,updateItem:D};return C(M),watch(()=>b.value,()=>nextTick().then($)),watch(()=>d.modelValue,()=>nextTick().then($)),{n:n$2,divider:S}}});__sfc__$1.render=__render__$1;const Collapse=__sfc__$1;withInstall(Collapse);function useCollapse(){var{parentProvider:d,index:b,bindParent:A}=useParent(COLLAPSE_BIND_COLLAPSE_ITEM_KEY);return A||error$1("Collapse"," must in "),{index:b,collapse:d,bindCollapse:A}}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 A=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(A,{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:A,bindCollapse:C}=useCollapse(),w=!0,x=ref(null),S=ref(!1),E=ref(!1),{active:P,offset:B,divider:D,elevation:k,updateItem:I}=A,$=computed(()=>d.name),M=(U,W)=>{P.value===void 0||U&&isArray(P.value)||W===E.value||(E.value=W,L(!0))},L=U=>{d.disabled||U||I(d.name||b.value,!E.value)},H=()=>{x.value&&(x.value.style.height="",S.value=!0,requestAnimationFrame$2(()=>{var{offsetHeight:U}=x.value;x.value.style.height="0px",requestAnimationFrame$2(()=>{x.value.style.height=U+"px",w&&nextTickFrame(()=>{w&&q()})})}))},z=()=>{w=!1},Q=()=>{if(x.value){var{offsetHeight:U}=x.value;x.value.style.height=U+"px",requestAnimationFrame$2(()=>{x.value.style.height="0px"})}},q=()=>{E.value||(S.value=!1),x.value.style.height=""},V={index:b,name:$,init:M};return C(V),watch(E,U=>{U?H():Q()}),{n:n$1,start:z,classes,showContent:S,isShow:E,offset:B,divider:D,elevation:k,toggle:L,contentEl:x,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 A,C="4.17.21",w=200,x="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",E="Invalid `variable` option passed into `_.template`",P="__lodash_hash_undefined__",B=500,D="__lodash_placeholder__",k=1,I=2,$=4,M=1,L=2,H=1,z=2,Q=4,q=8,V=16,U=32,W=64,K=128,Z=256,te=512,ne=30,ue="...",X=800,se=16,he=1,me=2,ie=3,de=1/0,be=9007199254740991,ge=17976931348623157e292,Se=0/0,je=4294967295,Ye=je-1,st=je>>>1,ot=[["ary",K],["bind",H],["bindKey",z],["curry",q],["curryRight",V],["flip",te],["partial",U],["partialRight",W],["rearg",Z]],et="[object Arguments]",lt="[object Array]",Me="[object AsyncFunction]",Oe="[object Boolean]",Qe="[object Date]",Ze="[object DOMException]",it="[object Error]",Te="[object Function]",_e="[object GeneratorFunction]",He="[object Map]",Je="[object Number]",Ke="[object Null]",Ie="[object Object]",Fe="[object Promise]",ae="[object Proxy]",ee="[object RegExp]",J="[object Set]",le="[object String]",ve="[object Symbol]",Be="[object Undefined]",Ue="[object WeakMap]",rt="[object WeakSet]",pt="[object ArrayBuffer]",tt="[object DataView]",at="[object Float32Array]",Et="[object Float64Array]",Dt="[object Int8Array]",Mt="[object Int16Array]",kt="[object Int32Array]",It="[object Uint8Array]",we="[object Uint8ClampedArray]",pe="[object Uint16Array]",ke="[object Uint32Array]",Ve=/\b__p \+= '';/g,gt=/\b(__p \+=) '' \+/g,yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xt=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,De=RegExp(xt.source),re=RegExp(Ne.source),ce=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,ze=/<%=([\s\S]+?)%>/g,dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vt=/^\w*$/,wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ht=/[\\^$.*+?()[\]{}|]/g,Xe=RegExp(ht.source),mt=/^\s+/,bt=/\s/,Y=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xe=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,Ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Le=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,Tt=/^[-+]0x[0-9a-f]+$/i,Ot=/^0b[01]+$/i,Lt=/^\[object .+?Constructor\]$/,Nt=/^0o[0-7]+$/i,Ht=/^(?:0|[1-9]\d*)$/,sr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wr=/($^)/,br=/['\n\r\u2028\u2029\\]/g,_r="\\ud800-\\udfff",Dr="\\u0300-\\u036f",Yr="\\ufe20-\\ufe2f",Qt="\\u20d0-\\u20ff",Ut=Dr+Yr+Qt,ir="\\u2700-\\u27bf",ur="a-z\\xdf-\\xf6\\xf8-\\xff",Mr="\\xac\\xb1\\xd7\\xf7",Ir="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",an="\\u2000-\\u206f",Cn=" \\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",_n="A-Z\\xc0-\\xd6\\xd8-\\xde",sn="\\ufe0e\\ufe0f",pn=Mr+Ir+an+Cn,Pn="['’]",Xr="["+_r+"]",wn="["+pn+"]",Jr="["+Ut+"]",po="\\d+",go="["+ir+"]",vo="["+ur+"]",mo="[^"+_r+pn+po+ir+ur+_n+"]",kn="\\ud83c[\\udffb-\\udfff]",No="(?:"+Jr+"|"+kn+")",bo="[^"+_r+"]",Yn="(?:\\ud83c[\\udde6-\\uddff]){2}",Xn="[\\ud800-\\udbff][\\udc00-\\udfff]",xn="["+_n+"]",yo="\\u200d",Ao="(?:"+vo+"|"+mo+")",Oo="(?:"+xn+"|"+mo+")",ri="(?:"+Pn+"(?:d|ll|m|re|s|t|ve))?",ni="(?:"+Pn+"(?:D|LL|M|RE|S|T|VE))?",Fo=No+"?",oi="["+sn+"]?",ii="(?:"+yo+"(?:"+[bo,Yn,Xn].join("|")+")"+oi+Fo+")*",Ji="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jn=oi+Fo+ii,ea="(?:"+[go,Yn,Xn].join("|")+")"+Jn,Vn="(?:"+[bo+Jr+"?",Jr,Yn,Xn,Xr].join("|")+")",Sn=RegExp(Pn,"g"),ta=RegExp(Jr,"g"),Co=RegExp(kn+"(?="+kn+")|"+Vn+Jn,"g"),wo=RegExp([xn+"?"+vo+"+"+ri+"(?="+[wn,xn,"$"].join("|")+")",Oo+"+"+ni+"(?="+[wn,xn+Ao,"$"].join("|")+")",xn+"?"+Ao+"+"+ri,xn+"+"+ni,Zi,Ji,po,ea].join("|"),"g"),ra=RegExp("["+yo+_r+Ut+sn+"]"),na=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oa=["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"],ai=-1,fr={};fr[at]=fr[Et]=fr[Dt]=fr[Mt]=fr[kt]=fr[It]=fr[we]=fr[pe]=fr[ke]=!0,fr[et]=fr[lt]=fr[pt]=fr[Oe]=fr[tt]=fr[Qe]=fr[it]=fr[Te]=fr[He]=fr[Je]=fr[Ie]=fr[ee]=fr[J]=fr[le]=fr[Ue]=!1;var hr={};hr[et]=hr[lt]=hr[pt]=hr[tt]=hr[Oe]=hr[Qe]=hr[at]=hr[Et]=hr[Dt]=hr[Mt]=hr[kt]=hr[He]=hr[Je]=hr[Ie]=hr[ee]=hr[J]=hr[le]=hr[ve]=hr[It]=hr[we]=hr[pe]=hr[ke]=!0,hr[it]=hr[Te]=hr[Ue]=!1;var xo={À:"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"},Dn={"&":"&","<":"<",">":">",'"':""","'":"'"},Lo={"&":"&","<":"<",">":">",""":'"',"'":"'"},si={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},li=parseFloat,gn=parseInt,zo=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ia=typeof self=="object"&&self&&self.Object===Object&&self,yr=zo||ia||Function("return this")(),Zn=b&&!b.nodeType&&b,Hr=Zn&&!0&&d&&!d.nodeType&&d,eo=Hr&&Hr.exports===Zn,to=eo&&zo.process,Nr=function(){try{var ut=Hr&&Hr.require&&Hr.require("util").types;return ut||to&&to.binding&&to.binding("util")}catch(St){}}(),ci=Nr&&Nr.isArrayBuffer,ui=Nr&&Nr.isDate,di=Nr&&Nr.isMap,ro=Nr&&Nr.isRegExp,fi=Nr&&Nr.isSet,hi=Nr&&Nr.isTypedArray;function Or(ut,St,At){switch(At.length){case 0:return ut.call(St);case 1:return ut.call(St,At[0]);case 2:return ut.call(St,At[0],At[1]);case 3:return ut.call(St,At[0],At[1],At[2])}return ut.apply(St,At)}function Ee(ut,St,At,Ft){for(var Yt=-1,lr=ut==null?0:ut.length;++Yt-1}function rr(ut,St,At){for(var Ft=-1,Yt=ut==null?0:ut.length;++Ft-1;);return At}function us(ut,St){for(var At=ut.length;At--&&Kr(St,ut[At],0)>-1;);return At}function ic(ut,St){for(var At=ut.length,Ft=0;At--;)ut[At]===St&&++Ft;return Ft}var ac=sa(xo),sc=sa(Dn);function lc(ut){return"\\"+si[ut]}function cc(ut,St){return ut==null?A:ut[St]}function So(ut){return ra.test(ut)}function uc(ut){return na.test(ut)}function dc(ut){for(var St,At=[];!(St=ut.next()).done;)At.push(St.value);return At}function da(ut){var St=-1,At=Array(ut.size);return ut.forEach(function(Ft,Yt){At[++St]=[Yt,Ft]}),At}function ds(ut,St){return function(At){return ut(St(At))}}function Un(ut,St){for(var At=-1,Ft=ut.length,Yt=0,lr=[];++At-1}function Jc(R,F){var G=this.__data__,oe=ki(G,R);return oe<0?(++this.size,G.push([R,F])):G[oe][1]=F,this}In.prototype.clear=qc,In.prototype.delete=Wc,In.prototype.get=Yc,In.prototype.has=Xc,In.prototype.set=Jc;function $n(R){var F=-1,G=R==null?0:R.length;for(this.clear();++F=F?R:F)),R}function un(R,F,G,oe,ye,Re){var We,nt=F&k,ft=F&I,Bt=F&$;if(G&&(We=ye?G(R,oe,ye,Re):G(R)),We!==A)return We;if(!gr(R))return R;var _t=Xt(R);if(_t){if(We=rd(R),!nt)return Gr(R,We)}else{var Pt=Rr(R),Rt=Pt==Te||Pt==_e;if(Wn(R))return Qs(R,nt);if(Pt==Ie||Pt==et||Rt&&!ye){if(We=ft||Rt?{}:hl(R),!nt)return ft?Ku(R,pu(We,R)):ju(R,xs(We,R))}else{if(!hr[Pt])return ye?R:{};We=nd(R,Pt,nt)}}Re||(Re=new bn);var Vt=Re.get(R);if(Vt)return Vt;Re.set(R,We),Vl(R)?R.forEach(function(Wt){We.add(un(Wt,F,G,Wt,R,Re))}):zl(R)&&R.forEach(function(Wt,tr){We.set(tr,un(Wt,F,G,tr,R,Re))});var qt=Bt?ft?Oa:Na:ft?qr:Br,Zt=_t?A:qt(R);return qe(Zt||R,function(Wt,tr){Zt&&(tr=Wt,Wt=R[tr]),Qo(We,tr,un(Wt,F,G,tr,R,Re))}),We}function gu(R){var F=Br(R);return function(G){return Ss(G,R,F)}}function Ss(R,F,G){var oe=G.length;if(R==null)return!oe;for(R=pr(R);oe--;){var ye=G[oe],Re=F[ye],We=R[ye];if(We===A&&!(ye in R)||!Re(We))return!1}return!0}function Es(R,F,G){if(typeof R!="function")throw new ln(S);return ei(function(){R.apply(A,G)},F)}function qo(R,F,G,oe){var ye=-1,Re=zt,We=!0,nt=R.length,ft=[],Bt=F.length;if(!nt)return ft;G&&(F=Kt(F,Zr(G))),oe?(Re=rr,We=!1):F.length>=w&&(Re=Ho,We=!1,F=new so(F));e:for(;++yeye?0:ye+G),oe=oe===A||oe>ye?ye:Jt(oe),oe<0&&(oe+=ye),oe=G>oe?0:jl(oe);G0&&G(nt)?F>1?kr(nt,F-1,G,oe,ye):ar(ye,nt):oe||(ye[ye.length]=nt)}return ye}var ba=Zs(),_s=Zs(!0);function En(R,F){return R&&ba(R,F,Br)}function ya(R,F){return R&&_s(R,F,Br)}function Ii(R,F){return jt(F,function(G){return Fn(R[G])})}function co(R,F){F=Qn(F,R);for(var G=0,oe=F.length;R!=null&&GF}function bu(R,F){return R!=null&&dr.call(R,F)}function yu(R,F){return R!=null&&F in pr(R)}function Au(R,F,G){return R>=$r(F,G)&&R=120&&_t.length>=120)?new so(We&&_t):A}_t=R[0];var Pt=-1,Rt=nt[0];e:for(;++Pt-1;)nt!==R&&xi.call(nt,ft,1),xi.call(R,ft,1);return R}function Ls(R,F){for(var G=R?F.length:0,oe=G-1;G--;){var ye=F[G];if(G==oe||ye!==Re){var Re=ye;On(ye)?xi.call(R,ye,1):Pa(R,ye)}}return R}function Ta(R,F){return R+Ti(ys()*(F-R+1))}function $u(R,F,G,oe){for(var ye=-1,Re=Er(Ei((F-R)/(G||1)),0),We=At(Re);Re--;)We[oe?Re:++ye]=R,R+=G;return We}function Ba(R,F){var G="";if(!R||F<1||F>be)return G;do F%2&&(G+=R),F=Ti(F/2),F&&(R+=R);while(F);return G}function er(R,F){return ja(vl(R,F,Wr),R+"")}function Ru(R){return ws(Mo(R))}function Mu(R,F){var G=Mo(R);return Ui(G,lo(F,0,G.length))}function Xo(R,F,G,oe){if(!gr(R))return R;F=Qn(F,R);for(var ye=-1,Re=F.length,We=Re-1,nt=R;nt!=null&&++yeye?0:ye+F),G=G>ye?ye:G,G<0&&(G+=ye),ye=F>G?0:G-F>>>0,F>>>=0;for(var Re=At(ye);++oe>>1,We=R[Re];We!==null&&!tn(We)&&(G?We<=F:We=w){var Bt=F?null:Wu(R);if(Bt)return gi(Bt);We=!1,ye=Ho,ft=new so}else ft=F?[]:nt;e:for(;++oe=oe?R:dn(R,F,G)}var Gs=Tc||function(R){return yr.clearTimeout(R)};function Qs(R,F){if(F)return R.slice();var G=R.length,oe=ps?ps(G):new R.constructor(G);return R.copy(oe),oe}function $a(R){var F=new R.constructor(R.byteLength);return new Ci(F).set(new Ci(R)),F}function zu(R,F){var G=F?$a(R.buffer):R.buffer;return new R.constructor(G,R.byteOffset,R.byteLength)}function Hu(R){var F=new R.constructor(R.source,ct.exec(R));return F.lastIndex=R.lastIndex,F}function Vu(R){return Go?pr(Go.call(R)):{}}function qs(R,F){var G=F?$a(R.buffer):R.buffer;return new R.constructor(G,R.byteOffset,R.length)}function Ws(R,F){if(R!==F){var G=R!==A,oe=R===null,ye=R===R,Re=tn(R),We=F!==A,nt=F===null,ft=F===F,Bt=tn(F);if(!nt&&!Bt&&!Re&&R>F||Re&&We&&ft&&!nt&&!Bt||oe&&We&&ft||!G&&ft||!ye)return 1;if(!oe&&!Re&&!Bt&&R=nt)return ft;var Bt=G[oe];return ft*(Bt=="desc"?-1:1)}}return R.index-F.index}function Ys(R,F,G,oe){for(var ye=-1,Re=R.length,We=G.length,nt=-1,ft=F.length,Bt=Er(Re-We,0),_t=At(ft+Bt),Pt=!oe;++nt1?G[ye-1]:A,We=ye>2?G[2]:A;for(Re=R.length>3&&typeof Re=="function"?(ye--,Re):A,We&&Lr(G[0],G[1],We)&&(Re=ye<3?A:Re,ye=1),F=pr(F);++oe-1?ye[Re?F[We]:We]:A}}function nl(R){return Nn(function(F){var G=F.length,oe=G,ye=cn.prototype.thru;for(R&&F.reverse();oe--;){var Re=F[oe];if(typeof Re!="function")throw new ln(S);if(ye&&!We&&Hi(Re)=="wrapper")var We=new cn([],!0)}for(oe=We?oe:G;++oe1&&or.reverse(),_t&&ftnt))return!1;var Bt=Re.get(R),_t=Re.get(F);if(Bt&&_t)return Bt==F&&_t==R;var Pt=-1,Rt=!0,Vt=G&L?new so:A;for(Re.set(R,F),Re.set(F,R);++Pt1?"& ":"")+F[oe],F=F.join(G>2?", ":" "),R.replace(Y,"{\n/* [wrapped with "+F+"] */\n")}function ad(R){return Xt(R)||ho(R)||!!(ms&&R&&R[ms])}function On(R,F){var G=typeof R;return F=F==null?be:F,!!F&&(G=="number"||G!="symbol"&&Ht.test(R))&&R>-1&&R%1==0&&R0){if(++F>=X)return arguments[0]}else F=0;return R.apply(A,arguments)}}function Ui(R,F){var G=-1,oe=R.length,ye=oe-1;for(F=F===A?oe:F;++G1?R[F-1]:A;return G=typeof G=="function"?(R.pop(),G):A,_l(R,G)});function Pl(R){var F=Pe(R);return F.__chain__=!0,F}function bf(R,F){return F(R),R}function ji(R,F){return F(R)}var yf=Nn(function(R){var F=R.length,G=F?R[0]:0,oe=this.__wrapped__,ye=function(Re){return ma(Re,R)};return F>1||this.__actions__.length||!(oe instanceof nr)||!On(G)?this.thru(ye):(oe=oe.slice(G,+G+(F?1:0)),oe.__actions__.push({func:ji,args:[ye],thisArg:A}),new cn(oe,this.__chain__).thru(function(Re){return F&&!Re.length&&Re.push(A),Re}))});function Af(){return Pl(this)}function Cf(){return new cn(this.value(),this.__chain__)}function wf(){this.__values__===A&&(this.__values__=Ul(this.value()));var R=this.__index__>=this.__values__.length,F=R?A:this.__values__[this.__index__++];return{done:R,value:F}}function xf(){return this}function Sf(R){for(var F,G=this;G instanceof Pi;){var oe=wl(G);oe.__index__=0,oe.__values__=A,F?ye.__wrapped__=oe:F=oe;var ye=oe;G=G.__wrapped__}return ye.__wrapped__=R,F}function Ef(){var R=this.__wrapped__;if(R instanceof nr){var F=R;return this.__actions__.length&&(F=new nr(this)),F=F.reverse(),F.__actions__.push({func:ji,args:[Ka],thisArg:A}),new cn(F,this.__chain__)}return this.thru(Ka)}function Tf(){return js(this.__wrapped__,this.__actions__)}var Bf=Ni(function(R,F,G){dr.call(R,G)?++R[G]:Rn(R,G,1)});function _f(R,F,G){var oe=Xt(R)?$t:vu;return G&&Lr(R,F,G)&&(F=A),oe(R,Gt(F,3))}function Pf(R,F){var G=Xt(R)?jt:Bs;return G(R,Gt(F,3))}var kf=rl(xl),Df=rl(Sl);function If(R,F){return kr(Ki(R,F),1)}function $f(R,F){return kr(Ki(R,F),de)}function Rf(R,F,G){return G=G===A?1:Jt(G),kr(Ki(R,F),G)}function kl(R,F){var G=Xt(R)?qe:Kn;return G(R,Gt(F,3))}function Dl(R,F){var G=Xt(R)?Ct:Ts;return G(R,Gt(F,3))}var Mf=Ni(function(R,F,G){dr.call(R,G)?R[G].push(F):Rn(R,G,[F])});function Nf(R,F,G,oe){R=Qr(R)?R:Mo(R),G=G&&!oe?Jt(G):0;var ye=R.length;return G<0&&(G=Er(ye+G,0)),Yi(R)?G<=ye&&R.indexOf(F,G)>-1:!!ye&&Kr(R,F,G)>-1}var Of=er(function(R,F,G){var oe=-1,ye=typeof F=="function",Re=Qr(R)?At(R.length):[];return Kn(R,function(We){Re[++oe]=ye?Or(F,We,G):Wo(We,F,G)}),Re}),Ff=Ni(function(R,F,G){Rn(R,G,F)});function Ki(R,F){var G=Xt(R)?Kt:$s;return G(R,Gt(F,3))}function Lf(R,F,G,oe){return R==null?[]:(Xt(F)||(F=F==null?[]:[F]),G=oe?A:G,Xt(G)||(G=G==null?[]:[G]),Os(R,F,G))}var zf=Ni(function(R,F,G){R[G?0:1].push(F)},function(){return[[],[]]});function Hf(R,F,G){var oe=Xt(R)?vr:ss,ye=arguments.length<3;return oe(R,Gt(F,4),G,ye,Kn)}function Vf(R,F,G){var oe=Xt(R)?Pr:ss,ye=arguments.length<3;return oe(R,Gt(F,4),G,ye,Ts)}function Uf(R,F){var G=Xt(R)?jt:Bs;return G(R,qi(Gt(F,3)))}function jf(R){var F=Xt(R)?ws:Ru;return F(R)}function Kf(R,F,G){(G?Lr(R,F,G):F===A)?F=1:F=Jt(F);var oe=Xt(R)?du:Mu;return oe(R,F)}function Gf(R){var F=Xt(R)?fu:Ou;return F(R)}function Qf(R){if(R==null)return 0;if(Qr(R))return Yi(R)?Eo(R):R.length;var F=Rr(R);return F==He||F==J?R.size:xa(R).length}function qf(R,F,G){var oe=Xt(R)?Tr:Fu;return G&&Lr(R,F,G)&&(F=A),oe(R,Gt(F,3))}var Wf=er(function(R,F){if(R==null)return[];var G=F.length;return G>1&&Lr(R,F[0],F[1])?F=[]:G>2&&Lr(F[0],F[1],F[2])&&(F=[F[0]]),Os(R,kr(F,1),[])}),Gi=Bc||function(){return yr.Date.now()};function Yf(R,F){if(typeof F!="function")throw new ln(S);return R=Jt(R),function(){if(--R<1)return F.apply(this,arguments)}}function Il(R,F,G){return F=G?A:F,F=R&&F==null?R.length:F,Mn(R,K,A,A,A,A,F)}function $l(R,F){var G;if(typeof F!="function")throw new ln(S);return R=Jt(R),function(){return--R>0&&(G=F.apply(this,arguments)),R<=1&&(F=A),G}}var Qa=er(function(R,F,G){var oe=H;if(G.length){var ye=Un(G,$o(Qa));oe|=U}return Mn(R,oe,F,G,ye)}),Rl=er(function(R,F,G){var oe=H|z;if(G.length){var ye=Un(G,$o(Rl));oe|=U}return Mn(F,oe,R,G,ye)});function Ml(R,F,G){F=G?A:F;var oe=Mn(R,q,A,A,A,A,A,F);return oe.placeholder=Ml.placeholder,oe}function Nl(R,F,G){F=G?A:F;var oe=Mn(R,V,A,A,A,A,A,F);return oe.placeholder=Nl.placeholder,oe}function Ol(R,F,G){var oe,ye,Re,We,nt,ft,Bt=0,_t=!1,Pt=!1,Rt=!0;if(typeof R!="function")throw new ln(S);F=hn(F)||0,gr(G)&&(_t=!!G.leading,Pt="maxWait"in G,Re=Pt?Er(hn(G.maxWait)||0,F):Re,Rt="trailing"in G?!!G.trailing:Rt);function Vt(Cr){var An=oe,zn=ye;return oe=ye=A,Bt=Cr,We=R.apply(zn,An),We}function qt(Cr){return Bt=Cr,nt=ei(tr,F),_t?Vt(Cr):We}function Zt(Cr){var An=Cr-ft,zn=Cr-Bt,rc=F-An;return Pt?$r(rc,Re-zn):rc}function Wt(Cr){var An=Cr-ft,zn=Cr-Bt;return ft===A||An>=F||An<0||Pt&&zn>=Re}function tr(){var Cr=Gi();if(Wt(Cr))return or(Cr);nt=ei(tr,Zt(Cr))}function or(Cr){return nt=A,Rt&&oe?Vt(Cr):(oe=ye=A,We)}function rn(){nt!==A&&Gs(nt),Bt=0,oe=ft=ye=nt=A}function zr(){return nt===A?We:or(Gi())}function nn(){var Cr=Gi(),An=Wt(Cr);if(oe=arguments,ye=this,ft=Cr,An){if(nt===A)return qt(ft);if(Pt)return Gs(nt),nt=ei(tr,F),Vt(ft)}return nt===A&&(nt=ei(tr,F)),We}return nn.cancel=rn,nn.flush=zr,nn}var Xf=er(function(R,F){return Es(R,1,F)}),Jf=er(function(R,F,G){return Es(R,hn(F)||0,G)});function Zf(R){return Mn(R,te)}function Qi(R,F){if(typeof R!="function"||F!=null&&typeof F!="function")throw new ln(S);var G=function(){var oe=arguments,ye=F?F.apply(this,oe):oe[0],Re=G.cache;if(Re.has(ye))return Re.get(ye);var We=R.apply(this,oe);return G.cache=Re.set(ye,We)||Re,We};return G.cache=new(Qi.Cache||$n),G}Qi.Cache=$n;function qi(R){if(typeof R!="function")throw new ln(S);return function(){var F=arguments;switch(F.length){case 0:return!R.call(this);case 1:return!R.call(this,F[0]);case 2:return!R.call(this,F[0],F[1]);case 3:return!R.call(this,F[0],F[1],F[2])}return!R.apply(this,F)}}function e0(R){return $l(2,R)}var t0=Lu(function(R,F){F=F.length==1&&Xt(F[0])?Kt(F[0],Zr(Gt())):Kt(kr(F,1),Zr(Gt()));var G=F.length;return er(function(oe){for(var ye=-1,Re=$r(oe.length,G);++ye=F}),ho=ks(function(){return arguments}())?ks:function(R){return mr(R)&&dr.call(R,"callee")&&!vs.call(R,"callee")},Xt=At.isArray,v0=ci?Zr(ci):wu;function Qr(R){return R!=null&&Wi(R.length)&&!Fn(R)}function Ar(R){return mr(R)&&Qr(R)}function m0(R){return R===!0||R===!1||mr(R)&&Fr(R)==Oe}var Wn=Pc||is,b0=ui?Zr(ui):xu;function y0(R){return mr(R)&&R.nodeType===1&&!ti(R)}function A0(R){if(R==null)return!0;if(Qr(R)&&(Xt(R)||typeof R=="string"||typeof R.splice=="function"||Wn(R)||Ro(R)||ho(R)))return!R.length;var F=Rr(R);if(F==He||F==J)return!R.size;if(Zo(R))return!xa(R).length;for(var G in R)if(dr.call(R,G))return!1;return!0}function C0(R,F){return Yo(R,F)}function w0(R,F,G){G=typeof G=="function"?G:A;var oe=G?G(R,F):A;return oe===A?Yo(R,F,A,G):!!oe}function Wa(R){if(!mr(R))return!1;var F=Fr(R);return F==it||F==Ze||typeof R.message=="string"&&typeof R.name=="string"&&!ti(R)}function x0(R){return typeof R=="number"&&bs(R)}function Fn(R){if(!gr(R))return!1;var F=Fr(R);return F==Te||F==_e||F==Me||F==ae}function Ll(R){return typeof R=="number"&&R==Jt(R)}function Wi(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=be}function gr(R){var F=typeof R;return R!=null&&(F=="object"||F=="function")}function mr(R){return R!=null&&typeof R=="object"}var zl=di?Zr(di):Eu;function S0(R,F){return R===F||wa(R,F,La(F))}function E0(R,F,G){return G=typeof G=="function"?G:A,wa(R,F,La(F),G)}function T0(R){return Hl(R)&&R!=+R}function B0(R){if(cd(R))throw new Yt(x);return Ds(R)}function _0(R){return R===null}function P0(R){return R==null}function Hl(R){return typeof R=="number"||mr(R)&&Fr(R)==Je}function ti(R){if(!mr(R)||Fr(R)!=Ie)return!1;var F=wi(R);if(F===null)return!0;var G=dr.call(F,"constructor")&&F.constructor;return typeof G=="function"&&G instanceof G&&bi.call(G)==xc}var Ya=ro?Zr(ro):Tu;function k0(R){return Ll(R)&&R>=-be&&R<=be}var Vl=fi?Zr(fi):Bu;function Yi(R){return typeof R=="string"||!Xt(R)&&mr(R)&&Fr(R)==le}function tn(R){return typeof R=="symbol"||mr(R)&&Fr(R)==ve}var Ro=hi?Zr(hi):_u;function D0(R){return R===A}function I0(R){return mr(R)&&Rr(R)==Ue}function $0(R){return mr(R)&&Fr(R)==rt}var R0=zi(Sa),M0=zi(function(R,F){return R<=F});function Ul(R){if(!R)return[];if(Qr(R))return Yi(R)?mn(R):Gr(R);if(Vo&&R[Vo])return dc(R[Vo]());var F=Rr(R),G=F==He?da:F==J?gi:Mo;return G(R)}function Ln(R){if(!R)return R===0?R:0;if(R=hn(R),R===de||R===-de){var F=R<0?-1:1;return F*ge}return R===R?R:0}function Jt(R){var F=Ln(R),G=F%1;return F===F?G?F-G:F:0}function jl(R){return R?lo(Jt(R),0,je):0}function hn(R){if(typeof R=="number")return R;if(tn(R))return Se;if(gr(R)){var F=typeof R.valueOf=="function"?R.valueOf():R;R=gr(F)?F+"":F}if(typeof R!="string")return R===0?R:+R;R=ls(R);var G=Ot.test(R);return G||Nt.test(R)?gn(R.slice(2),G?2:8):Tt.test(R)?Se:+R}function Kl(R){return Tn(R,qr(R))}function N0(R){return R?lo(Jt(R),-be,be):R===0?R:0}function cr(R){return R==null?"":en(R)}var O0=Do(function(R,F){if(Zo(F)||Qr(F)){Tn(F,Br(F),R);return}for(var G in F)dr.call(F,G)&&Qo(R,G,F[G])}),Gl=Do(function(R,F){Tn(F,qr(F),R)}),Xi=Do(function(R,F,G,oe){Tn(F,qr(F),R,oe)}),F0=Do(function(R,F,G,oe){Tn(F,Br(F),R,oe)}),L0=Nn(ma);function z0(R,F){var G=ko(R);return F==null?G:xs(G,F)}var H0=er(function(R,F){R=pr(R);var G=-1,oe=F.length,ye=oe>2?F[2]:A;for(ye&&Lr(F[0],F[1],ye)&&(oe=1);++G1),Re}),Tn(R,Oa(R),G),oe&&(G=un(G,k|I|$,Yu));for(var ye=F.length;ye--;)Pa(G,F[ye]);return G});function ih(R,F){return ql(R,qi(Gt(F)))}var ah=Nn(function(R,F){return R==null?{}:Du(R,F)});function ql(R,F){if(R==null)return{};var G=Kt(Oa(R),function(oe){return[oe]});return F=Gt(F),Fs(R,G,function(oe,ye){return F(oe,ye[0])})}function sh(R,F,G){F=Qn(F,R);var oe=-1,ye=F.length;for(ye||(ye=1,R=A);++oeF){var oe=R;R=F,F=oe}if(G||R%1||F%1){var ye=ys();return $r(R+ye*(F-R+li("1e-"+((ye+"").length-1))),F)}return Ta(R,F)}var bh=Io(function(R,F,G){return F=F.toLowerCase(),R+(G?Xl(F):F)});function Xl(R){return Za(cr(R).toLowerCase())}function Jl(R){return R=cr(R),R&&R.replace(sr,ac).replace(ta,"")}function yh(R,F,G){R=cr(R),F=en(F);var oe=R.length;G=G===A?oe:lo(Jt(G),0,oe);var ye=G;return G-=F.length,G>=0&&R.slice(G,ye)==F}function Ah(R){return R=cr(R),R&&re.test(R)?R.replace(Ne,sc):R}function Ch(R){return R=cr(R),R&&Xe.test(R)?R.replace(ht,"\\$&"):R}var wh=Io(function(R,F,G){return R+(G?"-":"")+F.toLowerCase()}),xh=Io(function(R,F,G){return R+(G?" ":"")+F.toLowerCase()}),Sh=tl("toLowerCase");function Eh(R,F,G){R=cr(R),F=Jt(F);var oe=F?Eo(R):0;if(!F||oe>=F)return R;var ye=(F-oe)/2;return Li(Ti(ye),G)+R+Li(Ei(ye),G)}function Th(R,F,G){R=cr(R),F=Jt(F);var oe=F?Eo(R):0;return F&&oe>>0,G?(R=cr(R),R&&(typeof F=="string"||F!=null&&!Ya(F))&&(F=en(F),!F&&So(R))?qn(mn(R),0,G):R.split(F,G)):[]}var $h=Io(function(R,F,G){return R+(G?" ":"")+Za(F)});function Rh(R,F,G){return R=cr(R),G=G==null?0:lo(Jt(G),0,R.length),F=en(F),R.slice(G,G+F.length)==F}function Mh(R,F,G){var oe=Pe.templateSettings;G&&Lr(R,F,G)&&(F=A),R=cr(R),F=Xi({},F,oe,ll);var ye=Xi({},F.imports,oe.imports,ll),Re=Br(ye),We=ua(ye,Re),nt,ft,Bt=0,_t=F.interpolate||wr,Pt="__p += '",Rt=fa((F.escape||wr).source+"|"+_t.source+"|"+(_t===ze?Ge:wr).source+"|"+(F.evaluate||wr).source+"|$","g"),Vt="//# sourceURL="+(dr.call(F,"sourceURL")?(F.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ai+"]")+"\n";R.replace(Rt,function(Wt,tr,or,rn,zr,nn){return or||(or=rn),Pt+=R.slice(Bt,nn).replace(br,lc),tr&&(nt=!0,Pt+="' +\n__e("+tr+") +\n'"),zr&&(ft=!0,Pt+="';\n"+zr+";\n__p += '"),or&&(Pt+="' +\n((__t = ("+or+")) == null ? '' : __t) +\n'"),Bt=nn+Wt.length,Wt}),Pt+="';\n";var qt=dr.call(F,"variable")&&F.variable;if(!qt)Pt="with (obj) {\n"+Pt+"\n}\n";else if(Le.test(qt))throw new Yt(E);Pt=(ft?Pt.replace(Ve,""):Pt).replace(gt,"$1").replace(yt,"$1;"),Pt="function("+(qt||"obj")+") {\n"+(qt?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(nt?", __e = _.escape":"")+(ft?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+Pt+"return __p\n}";var Zt=ec(function(){return lr(Re,Vt+"return "+Pt).apply(A,We)});if(Zt.source=Pt,Wa(Zt))throw Zt;return Zt}function Nh(R){return cr(R).toLowerCase()}function Oh(R){return cr(R).toUpperCase()}function Fh(R,F,G){if(R=cr(R),R&&(G||F===A))return ls(R);if(!R||!(F=en(F)))return R;var oe=mn(R),ye=mn(F),Re=cs(oe,ye),We=us(oe,ye)+1;return qn(oe,Re,We).join("")}function Lh(R,F,G){if(R=cr(R),R&&(G||F===A))return R.slice(0,fs(R)+1);if(!R||!(F=en(F)))return R;var oe=mn(R),ye=us(oe,mn(F))+1;return qn(oe,0,ye).join("")}function zh(R,F,G){if(R=cr(R),R&&(G||F===A))return R.replace(mt,"");if(!R||!(F=en(F)))return R;var oe=mn(R),ye=cs(oe,mn(F));return qn(oe,ye).join("")}function Hh(R,F){var G=ne,oe=ue;if(gr(F)){var ye="separator"in F?F.separator:ye;G="length"in F?Jt(F.length):G,oe="omission"in F?en(F.omission):oe}R=cr(R);var Re=R.length;if(So(R)){var We=mn(R);Re=We.length}if(G>=Re)return R;var nt=G-Eo(oe);if(nt<1)return oe;var ft=We?qn(We,0,nt).join(""):R.slice(0,nt);if(ye===A)return ft+oe;if(We&&(nt+=ft.length-nt),Ya(ye)){if(R.slice(nt).search(ye)){var Bt,_t=ft;for(ye.global||(ye=fa(ye.source,cr(ct.exec(ye))+"g")),ye.lastIndex=0;Bt=ye.exec(_t);)var Pt=Bt.index;ft=ft.slice(0,Pt===A?nt:Pt)}}else if(R.indexOf(en(ye),nt)!=nt){var Rt=ft.lastIndexOf(ye);Rt>-1&&(ft=ft.slice(0,Rt))}return ft+oe}function Vh(R){return R=cr(R),R&&De.test(R)?R.replace(xt,gc):R}var Uh=Io(function(R,F,G){return R+(G?" ":"")+F.toUpperCase()}),Za=tl("toUpperCase");function Zl(R,F,G){return R=cr(R),F=G?A:F,F===A?uc(R)?bc(R):Ur(R):R.match(F)||[]}var ec=er(function(R,F){try{return Or(R,A,F)}catch(G){return Wa(G)?G:new Yt(G)}}),jh=Nn(function(R,F){return qe(F,function(G){G=Bn(G),Rn(R,G,Qa(R[G],R))}),R});function Kh(R){var F=R==null?0:R.length,G=Gt();return R=F?Kt(R,function(oe){if(typeof oe[1]!="function")throw new ln(S);return[G(oe[0]),oe[1]]}):[],er(function(oe){for(var ye=-1;++yebe)return[];var G=je,oe=$r(R,je);F=Gt(F),R-=je;for(var ye=ca(oe,F);++G0||F<0)?new nr(G):(R<0?G=G.takeRight(-R):R&&(G=G.drop(R)),F!==A&&(F=Jt(F),G=F<0?G.dropRight(-F):G.take(F-R)),G)},nr.prototype.takeRightWhile=function(R){return this.reverse().takeWhile(R).reverse()},nr.prototype.toArray=function(){return this.take(je)},En(nr.prototype,function(R,F){var G=/^(?:filter|find|map|reject)|While$/.test(F),oe=/^(?:head|last)$/.test(F),ye=Pe[oe?"take"+(F=="last"?"Right":""):F],Re=oe||/^find/.test(F);ye&&(Pe.prototype[F]=function(){var We=this.__wrapped__,nt=oe?[1]:arguments,ft=We instanceof nr,Bt=nt[0],_t=ft||Xt(We),Pt=function(tr){var or=ye.apply(Pe,ar([tr],nt));return oe&&Rt?or[0]:or};_t&&G&&typeof Bt=="function"&&Bt.length!=1&&(ft=_t=!1);var Rt=this.__chain__,Vt=!!this.__actions__.length,qt=Re&&!Rt,Zt=ft&&!Vt;if(!Re&&_t){We=Zt?We:new nr(this);var Wt=R.apply(We,nt);return Wt.__actions__.push({func:ji,args:[Pt],thisArg:A}),new cn(Wt,Rt)}return qt&&Zt?R.apply(this,nt):(Wt=this.thru(Pt),qt?oe?Wt.value()[0]:Wt.value():Wt)})}),qe(["pop","push","shift","sort","splice","unshift"],function(R){var F=vi[R],G=/^(?:push|sort|unshift)$/.test(R)?"tap":"thru",oe=/^(?:pop|shift)$/.test(R);Pe.prototype[R]=function(){var ye=arguments;if(oe&&!this.__chain__){var Re=this.value();return F.apply(Xt(Re)?Re:[],ye)}return this[G](function(We){return F.apply(Xt(We)?We:[],ye)})}}),En(nr.prototype,function(R,F){var G=Pe[F];if(G){var oe=G.name+"";dr.call(Po,oe)||(Po[oe]=[]),Po[oe].push({name:F,func:G})}}),Po[Oi(A,z).name]=[{name:"wrapper",func:A}],nr.prototype.clone=zc,nr.prototype.reverse=Hc,nr.prototype.value=Vc,Pe.prototype.at=yf,Pe.prototype.chain=Af,Pe.prototype.commit=Cf,Pe.prototype.next=wf,Pe.prototype.plant=Sf,Pe.prototype.reverse=Ef,Pe.prototype.toJSON=Pe.prototype.valueOf=Pe.prototype.value=Tf,Pe.prototype.first=Pe.prototype.head,Vo&&(Pe.prototype[Vo]=xf),Pe},To=yc();Hr?((Hr.exports=To)._=To,Zn._=To):yr._=To}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const speedEdit="_speedEdit_iqru4_1",speedIcon="_speedIcon_iqru4_6",styles$7={speedEdit,speedIcon},TheSpeed=defineComponent({name:"TheSpeed",emits:["change"],setup(d,{emit:b}){const A=reactive({speed:80});return()=>createVNode("div",null,[createVNode("div",{class:styles$7.speedEdit,onKeyup:C=>C.stopPropagation()},[createVNode(NInputNumber,{size:"large",value:A.speed,"onUpdate:value":[C=>A.speed=C,()=>{b("change",{type:"speeds",value:"Q:1/4="+A.speed})}],min:45,max:270},{prefix:()=>createVNode("div",{class:styles$7.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,A){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,A){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,A){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_3)}});var raf$1={exports:{}},performanceNow={exports:{}};(function(){var d,b,A,C,w,x;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(),x=process.uptime()*1e9,w=C-x):Date.now?(performanceNow.exports=function(){return Date.now()-A},A=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-A},A=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=E[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 P=this.r.toString(16),B=this.g.toString(16),D=this.b.toString(16);return P.length==1&&(P="0"+P),B.length==1&&(B="0"+B),D.length==1&&(D="0"+D),"#"+P+B+D},this.getHelpXML=function(){for(var P=new Array,B=0;B "+L.toRGB()+" -> "+L.toHex());M.appendChild(H),M.appendChild(z),$.appendChild(M)}catch(q){}return $}};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(A,C){A.__proto__=C}||function(A,C){for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&(A[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 A(){this.constructor=d}t(d,b),d.prototype=b===null?Object.create(b):(A.prototype=b.prototype,new A)}function e(d){var b="";Array.isArray(d)||(d=[d]);for(var A=0;Ad.phi1&&(d.phi2-=2*n),d.sweepFlag===1&&d.phi2C)return[];if(C===0)return[[d*A/(d*d+b*b),b*A/(d*d+b*b)]];var w=Math.sqrt(C);return[[(d*A+b*w)/(d*d+b*b),(b*A-d*w)/(d*d+b*b)],[(d*A-b*w)/(d*d+b*b),(b*A+d*w)/(d*d+b*b)]]}var u,h=Math.PI/180;function c$1(d,b,A){return(1-A)*d+A*b}function y(d,b,A,C){return d+Math.cos(C/180*n)*b+Math.sin(C/180*n)*A}function p(d,b,A,C){var w=1e-6,x=b-d,S=A-b,E=3*x+3*(C-A)-6*S,P=6*(S-x),B=3*x;return Math.abs(E)K&&($.sweepFlag=+!$.sweepFlag),$})}function S(){return function(E){var P={};for(var B in E)P[B]=E[B];return P}}d.ROUND=function(E){function P(B){return Math.round(B*E)/E}return E===void 0&&(E=1e13),a(E),function(B){return B.x1!==void 0&&(B.x1=P(B.x1)),B.y1!==void 0&&(B.y1=P(B.y1)),B.x2!==void 0&&(B.x2=P(B.x2)),B.y2!==void 0&&(B.y2=P(B.y2)),B.x!==void 0&&(B.x=P(B.x)),B.y!==void 0&&(B.y=P(B.y)),B.rX!==void 0&&(B.rX=P(B.rX)),B.rY!==void 0&&(B.rY=P(B.rY)),B}},d.TO_ABS=b,d.TO_REL=function(){return w(function(E,P,B){return E.relative||(E.x1!==void 0&&(E.x1-=P),E.y1!==void 0&&(E.y1-=B),E.x2!==void 0&&(E.x2-=P),E.y2!==void 0&&(E.y2-=B),E.x!==void 0&&(E.x-=P),E.y!==void 0&&(E.y-=B),E.relative=!0),E})},d.NORMALIZE_HVZ=function(E,P,B){return E===void 0&&(E=!0),P===void 0&&(P=!0),B===void 0&&(B=!0),w(function(D,k,I,$,M){if(isNaN($)&&!(D.type&_.MOVE_TO))throw new Error("path must start with moveto");return P&&D.type&_.HORIZ_LINE_TO&&(D.type=_.LINE_TO,D.y=D.relative?0:I),B&&D.type&_.VERT_LINE_TO&&(D.type=_.LINE_TO,D.x=D.relative?0:k),E&&D.type&_.CLOSE_PATH&&(D.type=_.LINE_TO,D.x=D.relative?$-k:$,D.y=D.relative?M-I:M),D.type&_.ARC&&(D.rX===0||D.rY===0)&&(D.type=_.LINE_TO,delete D.rX,delete D.rY,delete D.xRot,delete D.lArcFlag,delete D.sweepFlag),D})},d.NORMALIZE_ST=A,d.QT_TO_C=C,d.INFO=w,d.SANITIZE=function(E){E===void 0&&(E=0),a(E);var P=NaN,B=NaN,D=NaN,k=NaN;return w(function(I,$,M,L,H){var z=Math.abs,Q=!1,q=0,V=0;if(I.type&_.SMOOTH_CURVE_TO&&(q=isNaN(P)?0:$-P,V=isNaN(B)?0:M-B),I.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(P=I.relative?$+I.x2:I.x2,B=I.relative?M+I.y2:I.y2):(P=NaN,B=NaN),I.type&_.SMOOTH_QUAD_TO?(D=isNaN(D)?$:2*$-D,k=isNaN(k)?M:2*M-k):I.type&_.QUAD_TO?(D=I.relative?$+I.x1:I.x1,k=I.relative?M+I.y1:I.y2):(D=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 U=I.x===void 0?0:I.relative?I.x:I.x-$,W=I.y===void 0?0:I.relative?I.y:I.y-M;q=isNaN(D)?I.x1===void 0?q:I.relative?I.x:I.x1-$:D-$,V=isNaN(k)?I.y1===void 0?V:I.relative?I.y:I.y1-M:k-M;var K=I.x2===void 0?0:I.relative?I.x:I.x2-$,Z=I.y2===void 0?0:I.relative?I.y:I.y2-M;z(U)<=E&&z(W)<=E&&z(q)<=E&&z(V)<=E&&z(K)<=E&&z(Z)<=E&&(Q=!0)}return I.type&_.CLOSE_PATH&&z($-L)<=E&&z(M-H)<=E&&(Q=!0),Q?[]:I})},d.MATRIX=x,d.ROTATE=function(E,P,B){P===void 0&&(P=0),B===void 0&&(B=0),a(E,P,B);var D=Math.sin(E),k=Math.cos(E);return x(k,D,-D,k,P-P*k+B*D,B-P*D-B*k)},d.TRANSLATE=function(E,P){return P===void 0&&(P=0),a(E,P),x(1,0,0,1,E,P)},d.SCALE=function(E,P){return P===void 0&&(P=E),a(E,P),x(E,0,0,P,0,0)},d.SKEW_X=function(E){return a(E),x(1,0,Math.atan(E),1,0,0)},d.SKEW_Y=function(E){return a(E),x(1,Math.atan(E),0,1,0,0)},d.X_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),a(E),x(-1,0,0,1,E,0)},d.Y_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),a(E),x(1,0,0,-1,0,E)},d.A_TO_C=function(){return w(function(E,P,B){return _.ARC===E.type?function(D,k,I){var $,M,L,H;D.cX||o(D,k,I);for(var z=Math.min(D.phi1,D.phi2),Q=Math.max(D.phi1,D.phi2)-z,q=Math.ceil(Q/90),V=new Array(q),U=k,W=I,K=0;Kk.maxX&&(k.maxX=Se),Sek.maxY&&(k.maxY=Se),Sege&&H(m$1($,L.x1,L.x2,L.x,ge));for(var V=0,U=p(M,L.y1,L.y2,L.y);Vge&&z(m$1(M,L.y1,L.y2,L.y,ge))}if(L.type&_.ARC){H(L.x),z(L.y),o(L,$,M);for(var W=L.xRot/180*Math.PI,K=Math.cos(W)*L.rX,Z=Math.sin(W)*L.rX,te=-Math.sin(W)*L.rY,ne=Math.cos(W)*L.rY,ue=L.phi1L.phi2?[L.phi2+360,L.phi1+360]:[L.phi2,L.phi1],X=ue[0],se=ue[1],he=function(Se){var je=Se[0],Ye=Se[1],st=180*Math.atan2(Ye,je)/Math.PI;return stX&&geX&&geD)throw new SyntaxError('Expected positive number, got "'+D+'" 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(D),this.curArgs.length===N[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?x({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:D}):_.VERT_LINE_TO===this.curCommandType?x({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:D}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(x({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?x({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?x({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?x({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&&x({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(E))if(E===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(E!=="+"&&E!=="-"&&E!==".")if(B)this.curNumber=E,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 "'+E+'" at index '+S+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,E!=="z"&&E!=="Z")if(E==="h"||E==="H")this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative=E==="h";else if(E==="v"||E==="V")this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative=E==="v";else if(E==="m"||E==="M")this.curCommandType=_.MOVE_TO,this.curCommandRelative=E==="m";else if(E==="l"||E==="L")this.curCommandType=_.LINE_TO,this.curCommandRelative=E==="l";else if(E==="c"||E==="C")this.curCommandType=_.CURVE_TO,this.curCommandRelative=E==="c";else if(E==="s"||E==="S")this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative=E==="s";else if(E==="q"||E==="Q")this.curCommandType=_.QUAD_TO,this.curCommandRelative=E==="q";else if(E==="t"||E==="T")this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative=E==="t";else{if(E!=="a"&&E!=="A")throw new SyntaxError('Unexpected character "'+E+'" at index '+S+".");this.curCommandType=_.ARC,this.curCommandRelative=E==="a"}else C.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=E,this.curNumberHasDecimal=E==="."}else this.curNumber+=E,this.curNumberHasDecimal=!0;else this.curNumber+=E;else this.curNumber+=E,this.curNumberHasExp=!0;else this.curNumber+=E,this.curNumberHasExpDigits=this.curNumberHasExp}return C},b.prototype.transform=function(A){return Object.create(this,{parse:{value:function(C,w){w===void 0&&(w=[]);for(var x=0,S=Object.getPrototypeOf(this).parse.call(this,C);x>U;if(S[q+3]=Te,Te!==0){var _e=255/Te;S[q]=(Se*V>>U)*_e,S[q+1]=(je*V>>U)*_e,S[q+2]=(Ye*V>>U)*_e}else S[q]=S[q+1]=S[q+2]=0;Se-=ie,je-=de,Ye-=be,st-=ge,ie-=H.r,de-=H.g,be-=H.b,ge-=H.a;var He=it+x+1;He=Q+(He>U,Be>0?(Be=255/Be,S[Ne]=(at*V>>U)*Be,S[Ne+1]=(Et*V>>U)*Be,S[Ne+2]=(Dt*V>>U)*Be):S[Ne]=S[Ne+1]=S[Ne+2]=0,at-=Ue,Et-=rt,Dt-=pt,Mt-=tt,Ue-=H.r,rt-=H.g,pt-=H.b,tt-=H.a,Ne=ee+((Ne=xt+D)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 A=b.exec(d);return A?[d.replace(b," "),A.length]:[d,0]}function getSelectorSpecificity(d){const b=[0,0,0];let A=d.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),C=0;return[A,C]=findSelectorMatch(A,attributeRegex),b[1]+=C,[A,C]=findSelectorMatch(A,idRegex),b[0]+=C,[A,C]=findSelectorMatch(A,classRegex),b[1]+=C,[A,C]=findSelectorMatch(A,pseudoElementRegex),b[2]+=C,[A,C]=findSelectorMatch(A,pseudoClassWithBracketsRegex),b[1]+=C,[A,C]=findSelectorMatch(A,pseudoClassRegex),b[1]+=C,A=A.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[A,C]=findSelectorMatch(A,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:A,name:C}=this;return compressSpaces(this.getString()).trim().split(b).map(w=>new Property(A,C,w))}hasValue(b){const A=this.value;return A!==null&&A!==""&&(b||A!==0)&&typeof A<"u"}isString(b){const{value:A}=this,C=typeof A=="string";return!C||!b?C:b.test(A)}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:A}=this;let C=parseFloat(A);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 A=this.getString(b);return this.isNormalizedColor||(this.isNormalizedColor=!0,A=normalizeColor(A),this.value=A),A}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(b){let A=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:x}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(x.computeSize("x"),x.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(x.computeSize("x"),x.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*x.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*x.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()*x.computeSize(C);default:{const S=this.getNumber();return A&&S<1?S*x.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(),A=/#([^)'"]+)/.exec(b),C=(A==null?void 0:A[1])||b;return this.document.definitions[C]}getFillStyleDefinition(b,A){let C=this.getDefinition();if(!C)return null;if(typeof C.createGradient=="function"&&"getBoundingBox"in b)return C.createGradient(this.document.ctx,b,A);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,A)}return null}getTextBaseline(){if(!this.hasValue())return null;const b=this.getString();return Property.textBaselineMapping[b]||null}addOpacity(b){let A=this.getColor();const C=A.length;let w=0;for(let x=0;x1&&arguments[1]!==void 0?arguments[1]:0;const[C=A,w=A]=toNumbers(b);return new Point(C,w)}static parseScale(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const[C=A,w=C]=toNumbers(b);return new Point(C,w)}static parsePath(b){const A=toNumbers(b),C=A.length,w=[];for(let x=0;x0}runEvents(){if(!this.working)return;const{screen:b,events:A,eventElements:C}=this,{style:w}=b.ctx.canvas;let x;w&&(w.cursor=""),A.forEach((S,E)=>{let{run:P}=S;for(x=C[E];x;)P(x),x=x.parent}),this.events=[],this.eventElements=[]}checkPath(b,A){if(!this.working||!A)return;const{events:C,eventElements:w}=this;C.forEach((x,S)=>{let{x:E,y:P}=x;!w[S]&&A.isPointInPath&&A.isPointInPath(E,P)&&(w[S]=b)})}checkBoundingBox(b,A){if(!this.working||!A)return;const{events:C,eventElements:w}=this;C.forEach((x,S)=>{let{x:E,y:P}=x;!w[S]&&A.isPointInBox(E,P)&&(w[S]=b)})}mapXY(b,A){const{window:C,ctx:w}=this.screen,x=new Point(b,A);let S=w.canvas;for(;S;)x.x-=S.offsetLeft,x.y-=S.offsetTop,S=S.offsetParent;return C!=null&&C.scrollX&&(x.x+=C.scrollX),C!=null&&C.scrollY&&(x.y+=C.scrollY),x}onClick(b){const{x:A,y:C}=this.mapXY(b.clientX,b.clientY);this.events.push({type:"onclick",x:A,y:C,run(w){w.onClick&&w.onClick()}})}onMouseMove(b){const{x:A,y:C}=this.mapXY(b.clientX,b.clientY);this.events.push({type:"onmousemove",x:A,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$1=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(A=>A());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:A,ctx:C,aspectRatio:w,width:x,desiredWidth:S,height:E,desiredHeight:P,minX:B=0,minY:D=0,refX:k,refY:I,clip:$=!1,clipX:M=0,clipY:L=0}=b;const H=compressSpaces(w).replace(/^defer\s/,""),[z,Q]=H.split(" "),q=z||"xMidYMid",V=Q||"meet",U=x/S,W=E/P,K=Math.min(U,W),Z=Math.max(U,W);let te=S,ne=P;V==="meet"&&(te*=K,ne*=K),V==="slice"&&(te*=Z,ne*=Z);const ue=new Property(A,"refX",k),X=new Property(A,"refY",I),se=ue.hasValue()&&X.hasValue();if(se&&C.translate(-K*ue.getPixels("x"),-K*X.getPixels("y")),$){const he=K*M,me=K*L;C.beginPath(),C.moveTo(he,me),C.lineTo(x,me),C.lineTo(x,E),C.lineTo(he,E),C.closePath(),C.clip()}if(!se){const he=V==="meet"&&K===W,me=V==="slice"&&Z===W,ie=V==="meet"&&K===U,de=V==="slice"&&Z===U;q.startsWith("xMid")&&(he||me)&&C.translate(x/2-te/2,0),q.endsWith("YMid")&&(ie||de)&&C.translate(0,E/2-ne/2),q.startsWith("xMax")&&(he||me)&&C.translate(x-te,0),q.endsWith("YMax")&&(ie||de)&&C.translate(0,E-ne)}switch(!0){case q==="none":C.scale(U,W);break;case V==="meet":C.scale(K,K);break;case V==="slice":C.scale(Z,Z);break}C.translate(-B,-D)}start(b){let{enableRedraw:A=!1,ignoreMouse:C=!1,ignoreAnimation:w=!1,ignoreDimensions:x=!1,ignoreClear:S=!1,forceRedraw:E,scaleWidth:P,scaleHeight:B,offsetX:D,offsetY:k}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{mouse:I}=this,$=1e3/Screen.FRAMERATE;if(this.isReadyLock=!1,this.frameDuration=$,this.readyPromise=new Promise(Q=>{this.resolveReady=Q}),this.isReady()&&this.render(b,x,S,P,B,D,k),!A)return;let M=Date.now(),L=M,H=0;const z=()=>{M=Date.now(),H=M-L,H>=$&&(L=M-H%$,this.shouldUpdate(w,E)&&(this.render(b,x,S,P,B,D,k),I.runEvents())),this.intervalId=requestAnimationFrame$1(z)};C||I.start(),this.intervalId=requestAnimationFrame$1(z)}stop(){this.intervalId&&(requestAnimationFrame$1.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(b,A){if(!b){const{frameDuration:C}=this;if(this.animations.reduce((x,S)=>S.update(C)||x,!1))return!0}return!!(typeof A=="function"&&A()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(b,A,C,w,x,S,E){const{viewPort:P,ctx:B,isFirstRender:D}=this,k=B.canvas;P.clear(),k.width&&k.height&&P.setCurrent(k.width,k.height);const I=b.getStyle("width"),$=b.getStyle("height");!A&&(D||typeof w!="number"&&typeof x!="number")&&(I.hasValue()&&(k.width=I.getPixels("x"),k.style&&(k.style.width="".concat(k.width,"px"))),$.hasValue()&&(k.height=$.getPixels("y"),k.style&&(k.style.height="".concat(k.height,"px"))));let M=k.clientWidth||k.width,L=k.clientHeight||k.height;if(A&&I.hasValue()&&$.hasValue()&&(M=I.getPixels("x"),L=$.getPixels("y")),P.setCurrent(M,L),typeof S=="number"&&b.getAttribute("x",!0).setValue(S),typeof E=="number"&&b.getAttribute("y",!0).setValue(E),typeof w=="number"||typeof x=="number"){const H=toNumbers(b.getAttribute("viewBox").getString());let z=0,Q=0;if(typeof w=="number"){const V=b.getStyle("width");V.hasValue()?z=V.getPixels("x")/w:H[2]&&!isNaN(H[2])&&(z=H[2]/w)}if(typeof x=="number"){const V=b.getStyle("height");V.hasValue()?Q=V.getPixels("y")/x:H[3]&&!isNaN(H[3])&&(Q=H[3]/x)}z||(z=Q),Q||(Q=z),b.getAttribute("width",!0).setValue(w),b.getAttribute("height",!0).setValue(x);const q=b.getStyle("transform",!0,!0);q.setValue("".concat(q.getString()," scale(").concat(1/z,", ").concat(1/Q,")"))}C||B.clearRect(0,0,M,L),b.render(B),D&&(this.isFirstRender=!1)}constructor(b,{fetch:A=defaultFetch$1,window:C=defaultWindow$1}={}){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,!A)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");this.fetch=A}}Screen.defaultWindow=defaultWindow$1;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 A=new this.DOMParser;try{return this.checkDocument(A.parseFromString(b,"image/svg+xml"))}catch(C){return this.checkDocument(A.parseFromString(b,"text/xml"))}}checkDocument(b){const A=b.getElementsByTagName("parsererror")[0];if(A)throw new Error(A.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:A=DefaultDOMParser}={}){if(!b)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");if(!A)throw new Error("Can't find 'DOMParser' in 'globalThis', please provide it via options");this.fetch=b,this.DOMParser=A}}class Translate{apply(b){const{x:A,y:C}=this.point;b.translate(A||0,C||0)}unapply(b){const{x:A,y:C}=this.point;b.translate(-1*A||0,-1*C||0)}applyToPoint(b){const{x:A,y:C}=this.point;b.applyTransform([1,0,0,1,A||0,C||0])}constructor(b,A){this.type="translate",this.point=Point.parse(A)}}class Rotate{apply(b){const{cx:A,cy:C,originX:w,originY:x,angle:S}=this,E=A+w.getPixels("x"),P=C+x.getPixels("y");b.translate(E,P),b.rotate(S.getRadians()),b.translate(-E,-P)}unapply(b){const{cx:A,cy:C,originX:w,originY:x,angle:S}=this,E=A+w.getPixels("x"),P=C+x.getPixels("y");b.translate(E,P),b.rotate(-1*S.getRadians()),b.translate(-E,-P)}applyToPoint(b){const{cx:A,cy:C,angle:w}=this,x=w.getRadians();b.applyTransform([1,0,0,1,A||0,C||0]),b.applyTransform([Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0]),b.applyTransform([1,0,0,1,-A||0,-C||0])}constructor(b,A,C){this.type="rotate";const w=toNumbers(A);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:A,y:C},originX:w,originY:x}=this,S=w.getPixels("x"),E=x.getPixels("y");b.translate(S,E),b.scale(A,C||A),b.translate(-S,-E)}unapply(b){const{scale:{x:A,y:C},originX:w,originY:x}=this,S=w.getPixels("x"),E=x.getPixels("y");b.translate(S,E),b.scale(1/A,1/C||A),b.translate(-S,-E)}applyToPoint(b){const{x:A,y:C}=this.scale;b.applyTransform([A||0,0,0,C||0,0,0])}constructor(b,A,C){this.type="scale";const w=Point.parseScale(A);(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:A,originY:C,matrix:w}=this,x=A.getPixels("x"),S=C.getPixels("y");b.translate(x,S),b.transform(w[0],w[1],w[2],w[3],w[4],w[5]),b.translate(-x,-S)}unapply(b){const{originX:A,originY:C,matrix:w}=this,x=w[0],S=w[2],E=w[4],P=w[1],B=w[3],D=w[5],k=0,I=0,$=1,M=1/(x*(B*$-D*I)-S*(P*$-D*k)+E*(P*I-B*k)),L=A.getPixels("x"),H=C.getPixels("y");b.translate(L,H),b.transform(M*(B*$-D*I),M*(D*k-P*$),M*(E*I-S*$),M*(x*$-E*k),M*(S*D-E*B),M*(E*P-x*D)),b.translate(-L,-H)}applyToPoint(b){b.applyTransform(this.matrix)}constructor(b,A,C){this.type="matrix",this.matrix=toMatrixValue(A),this.originX=C[0],this.originY=C[1]}}class Skew extends Matrix{constructor(b,A,C){super(b,A,C),this.type="skew",this.angle=new Property(b,"angle",A)}}class SkewX extends Skew{constructor(b,A,C){super(b,A,C),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(b,A,C){super(b,A,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="",A=""]=d.split("(");return[b.trim(),A.trim().replace(")","")]}class Transform{static fromElement(b,A){const C=A.getStyle("transform",!1,!0);if(C.hasValue()){const[w,x=w]=A.getStyle("transform-origin",!1,!0).split();if(w&&x){const S=[w,x];return new Transform(b,C.getString(),S)}}return null}apply(b){this.transforms.forEach(A=>A.apply(b))}unapply(b){this.transforms.forEach(A=>A.unapply(b))}applyToPoint(b){this.transforms.forEach(A=>A.applyToPoint(b))}constructor(b,A,C){this.document=b,this.transforms=[],parseTransforms(A).forEach(x=>{if(x==="none")return;const[S,E]=parseTransform(x),P=Transform.transformTypes[S];P&&this.transforms.push(new P(this.document,E,C))})}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};let Element$1=class as{getAttribute(b){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const C=this.attributes[b];if(!C&&A){const w=new Property(this.document,b,"");return this.attributes[b]=w,w}return C||Property.empty(this.document)}getHrefAttribute(){let b;for(const A in this.attributes)if(A==="href"||A.endsWith(":href")){b=this.attributes[A];break}return b||Property.empty(this.document)}getStyle(b){let A=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 x=this.getAttribute(b);if(x.hasValue())return this.styles[b]=x,x;if(!C){const{parent:S}=this;if(S){const E=S.getStyle(b);if(E.hasValue())return E}}if(A){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 A=this.getStyle("mask").getDefinition();A&&(this.applyEffects(b),A.apply(b,this))}else if(this.getStyle("filter").getValue("none")!=="none"){const A=this.getStyle("filter").getDefinition();A&&(this.applyEffects(b),A.apply(b,this))}else this.setContext(b),this.renderChildren(b),this.clearContext(b);b.restore()}}setContext(b){}applyEffects(b){const A=Transform.fromElement(this.document,this);A&&A.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(A=>{A.render(b)})}addChild(b){const A=b instanceof as?b:this.document.createElement(b);A.parent=this,as.ignoreChildTypes.includes(A.type)||this.children.push(A)}matchesSelector(b){var A;const{node:C}=this;if(typeof C.matches=="function")return C.matches(b);const w=(A=C.getAttribute)===null||A===void 0?void 0:A.call(C,"class");return!w||w===""?!1:w.split(" ").some(x=>".".concat(x)===b)}addStylesFromStyleDefinition(){const{styles:b,stylesSpecificity:A}=this.document;let C;for(const w in b)if(!w.startsWith("@")&&this.matchesSelector(w)){const x=b[w],S=A[w];if(x)for(const E in x){let P=this.stylesSpecificity[E];typeof P>"u"&&(P="000"),S&&S>=P&&(C=x[E],C&&(this.styles[E]=C),this.stylesSpecificity[E]=S)}}}removeStyles(b,A){return A.reduce((w,x)=>{const S=b.getStyle(x);if(!S.hasValue())return w;const E=S.getString();return S.setValue(""),[...w,[x,E]]},[])}restoreStyles(b,A){A.forEach(C=>{let[w,x]=C;b.getStyle(w,!0).setValue(x)})}isFirstChild(){var b;return((b=this.parent)===null||b===void 0?void 0:b.children.indexOf(this))===0}constructor(b,A,C=!1){if(this.document=b,this.node=A,this.captureTextNodes=C,this.type="",this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!A||A.nodeType!==1)return;Array.from(A.attributes).forEach(S=>{const E=normalizeAttributeName(S.nodeName);this.attributes[E]=new Property(b,E,S.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(E=>E.trim()).forEach(E=>{if(!E)return;const[P,B]=E.split(":").map(D=>D.trim());P&&(this.styles[P]=new Property(b,P,B))});const{definitions:w}=b,x=this.getAttribute("id");x.hasValue()&&(w[x.getString()]||(w[x.getString()]=this)),Array.from(A.childNodes).forEach(S=>{if(S.nodeType===1)this.addChild(S);else if(C&&(S.nodeType===3||S.nodeType===4)){const E=b.createTextNode(S);E.getText().length>0&&this.addChild(E)}})}};Element$1.ignoreChildTypes=["title"];class UnknownElement extends Element$1{constructor(b,A,C){super(b,A,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]:"",A=arguments.length>1?arguments[1]:void 0,C="",w="",x="",S="",E="";const P=compressSpaces(b).trim().split(" "),B={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return P.forEach(D=>{switch(!0){case(!B.fontStyle&&Font.styles.includes(D)):D!=="inherit"&&(C=D),B.fontStyle=!0;break;case(!B.fontVariant&&Font.variants.includes(D)):D!=="inherit"&&(w=D),B.fontStyle=!0,B.fontVariant=!0;break;case(!B.fontWeight&&Font.weights.includes(D)):D!=="inherit"&&(x=D),B.fontStyle=!0,B.fontVariant=!0,B.fontWeight=!0;break;case!B.fontSize:D!=="inherit"&&(S=D.split("/")[0]||""),B.fontStyle=!0,B.fontVariant=!0,B.fontWeight=!0,B.fontSize=!0;break;default:D!=="inherit"&&(E+=D)}}),new Font(C,w,x,S,E,A)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}constructor(b,A,C,w,x,S){const E=S?typeof S=="string"?Font.parse(S):S:{};this.fontFamily=x||E.fontFamily,this.fontSize=w||E.fontSize,this.fontStyle=b||E.fontStyle,this.fontWeight=C||E.fontWeight,this.fontVariant=A||E.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,A){typeof b<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=b,this.x2=b),bthis.x2&&(this.x2=b)),typeof A<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=A,this.y2=A),Athis.y2&&(this.y2=A))}addX(b){this.addPoint(b,0)}addY(b){this.addPoint(0,b)}addBoundingBox(b){if(!b)return;const{x1:A,y1:C,x2:w,y2:x}=b;this.addPoint(A,C),this.addPoint(w,x)}sumCubic(b,A,C,w,x){return Math.pow(1-b,3)*A+3*Math.pow(1-b,2)*b*C+3*(1-b)*Math.pow(b,2)*w+Math.pow(b,3)*x}bezierCurveAdd(b,A,C,w,x){const S=6*A-12*C+6*w,E=-3*A+9*C-9*w+3*x,P=3*C-3*A;if(E===0){if(S===0)return;const I=-P/S;01&&arguments[1]!==void 0?arguments[1]:!1;if(!A){const C=this.getStyle("fill"),w=this.getStyle("fill-opacity"),x=this.getStyle("stroke"),S=this.getStyle("stroke-opacity");if(C.isUrlDefinition()){const $=C.getFillStyleDefinition(this,w);$&&(b.fillStyle=$)}else if(C.hasValue()){C.getString()==="currentColor"&&C.setValue(this.getStyle("color").getColor());const $=C.getColor();$!=="inherit"&&(b.fillStyle=$==="none"?"rgba(0,0,0,0)":$)}if(w.hasValue()){const $=new Property(this.document,"fill",b.fillStyle).addOpacity(w).getColor();b.fillStyle=$}if(x.isUrlDefinition()){const $=x.getFillStyleDefinition(this,S);$&&(b.strokeStyle=$)}else if(x.hasValue()){x.getString()==="currentColor"&&x.setValue(this.getStyle("color").getColor());const $=x.getString();$!=="inherit"&&(b.strokeStyle=$==="none"?"rgba(0,0,0,0)":$)}if(S.hasValue()){const $=new Property(this.document,"stroke",b.strokeStyle).addOpacity(S).getString();b.strokeStyle=$}const E=this.getStyle("stroke-width");if(E.hasValue()){const $=E.getPixels();b.lineWidth=$||PSEUDO_ZERO}const P=this.getStyle("stroke-linecap"),B=this.getStyle("stroke-linejoin"),D=this.getStyle("stroke-miterlimit"),k=this.getStyle("stroke-dasharray"),I=this.getStyle("stroke-dashoffset");if(P.hasValue()&&(b.lineCap=P.getString()),B.hasValue()&&(b.lineJoin=B.getString()),D.hasValue()&&(b.miterLimit=D.getNumber()),k.hasValue()&&k.getString()!=="none"){const $=toNumbers(k.getString());typeof b.setLineDash<"u"?b.setLineDash($):typeof b.webkitLineDash<"u"?b.webkitLineDash=$:typeof b.mozDash<"u"&&!($.length===1&&$[0]===0)&&(b.mozDash=$);const M=I.getPixels();typeof b.lineDashOffset<"u"?b.lineDashOffset=M:typeof b.webkitLineDashOffset<"u"?b.webkitLineDashOffset=M:typeof b.mozDashOffset<"u"&&(b.mozDashOffset=M)}}if(this.modifiedEmSizeStack=!1,typeof b.font<"u"){const C=this.getStyle("font"),w=this.getStyle("font-style"),x=this.getStyle("font-variant"),S=this.getStyle("font-weight"),E=this.getStyle("font-size"),P=this.getStyle("font-family"),B=new Font(w.getString(),x.getString(),S.getString(),E.hasValue()?"".concat(E.getPixels(!0),"px"):"",P.getString(),Font.parse(C.getString(),b.font));w.setValue(B.fontStyle),x.setValue(B.fontVariant),S.setValue(B.fontWeight),E.setValue(B.fontSize),P.setValue(B.fontFamily),b.font=B.toString(),E.isPixels()&&(this.document.emSize=E.getPixels(),this.modifiedEmSizeStack=!0)}A||(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 A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(b,A);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 A=null;return this.children.forEach((C,w)=>{const x=this.getChildBoundingBox(b,this,this,w);A?A.addBoundingBox(x):A=x}),A}getFontSize(){const{document:b,parent:A}=this,C=Font.parse(b.ctx.font).fontSize;return A.getStyle("font-size").getNumber(C)}getTElementBoundingBox(b){const A=this.getFontSize();return new BoundingBox(this.x,this.y-A,this.x+this.measureText(b),this.y)}getGlyph(b,A,C){const w=A[C];let x;if(b.isArabic){var S;const E=A.length,P=A[C-1],B=A[C+1];let D="isolated";(C===0||P===" ")&&C0&&P!==" "&&C0&&P!==" "&&(C===E-1||B===" ")&&(D="initial"),x=((S=b.arabicGlyphs[w])===null||S===void 0?void 0:S[D])||b.glyphs[w]}else x=b.glyphs[w];return x||(x=b.missingGlyph),x}getText(){return""}getTextFromNode(b){const A=b||this.node,C=Array.from(A.parentNode.childNodes),w=C.indexOf(A),x=C.length-1;let S=compressSpaces(A.textContent||"");return w===0&&(S=trimLeft(S)),w===x&&(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:A}=this.document.screen;A.isWorking()&&A.checkBoundingBox(this,this.getBoundingBox(b))}renderTElementChildren(b){const{document:A,parent:C}=this,w=this.getText(),x=C.getStyle("font-family").getDefinition();if(x){const{unitsPerEm:P}=x.fontFace,B=Font.parse(A.ctx.font),D=C.getStyle("font-size").getNumber(B.fontSize),k=C.getStyle("font-style").getString(B.fontStyle),I=D/P,$=x.isRTL?w.split("").reverse().join(""):w,M=toNumbers(C.getAttribute("dx").getString()),L=$.length;for(let H=0;H=this.leafTexts.length)return;const b=this.leafTexts[this.textChunkStart],A=b.getStyle("text-anchor").getString("start"),C=!1;let w=0;A==="start"&&!C||A==="end"&&C?w=b.x-this.minX:A==="end"&&!C||A==="start"&&C?w=b.x-this.maxX:w=b.x-(this.minX+this.maxX)/2;for(let x=this.textChunkStart;x{this.adjustChildCoordinatesRecursiveCore(b,this,this,C)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(b,A,C,w){const x=C.children[w];x.children.length>0?x.children.forEach((S,E)=>{A.adjustChildCoordinatesRecursiveCore(b,A,x,E)}):this.adjustChildCoordinates(b,A,C,w)}adjustChildCoordinates(b,A,C,w){const x=C.children[w];if(typeof x.measureText!="function")return x;b.save(),x.setContext(b,!0);const S=x.getAttribute("x"),E=x.getAttribute("y"),P=x.getAttribute("dx"),B=x.getAttribute("dy"),D=x.getStyle("font-family").getDefinition(),k=!!(D!=null&&D.isRTL);w===0&&(S.hasValue()||S.setValue(x.getInheritedAttribute("x")),E.hasValue()||E.setValue(x.getInheritedAttribute("y")),P.hasValue()||P.setValue(x.getInheritedAttribute("dx")),B.hasValue()||B.setValue(x.getInheritedAttribute("dy")));const I=x.measureText(b);return k&&(A.x-=I),S.hasValue()?(A.applyAnchoring(),x.x=S.getPixels("x"),P.hasValue()&&(x.x+=P.getPixels("x"))):(P.hasValue()&&(A.x+=P.getPixels("x")),x.x=A.x),A.x=x.x,k||(A.x+=I),E.hasValue()?(x.y=E.getPixels("y"),B.hasValue()&&(x.y+=B.getPixels("y"))):(B.hasValue()&&(A.y+=B.getPixels("y")),x.y=A.y),A.y=x.y,A.leafTexts.push(x),A.minX=Math.min(A.minX,x.x,x.x+I),A.maxX=Math.max(A.maxX,x.x,x.x+I),x.clearContext(b),b.restore(),x}getChildBoundingBox(b,A,C,w){const x=C.children[w];if(typeof x.getBoundingBox!="function")return null;const S=x.getBoundingBox(b);return S&&x.children.forEach((E,P)=>{const B=A.getChildBoundingBox(b,A,x,P);S.addBoundingBox(B)}),S}renderChild(b,A,C,w){const x=C.children[w];x.render(b),x.children.forEach((S,E)=>{A.renderChild(b,A,x,E)})}measureText(b){const{measureCache:A}=this;if(~A)return A;const C=this.getText(),w=this.measureTargetText(b,C);return this.measureCache=w,w}measureTargetText(b,A){if(!A.length)return 0;const{parent:C}=this,w=C.getStyle("font-family").getDefinition();if(w){const S=this.getFontSize(),E=w.isRTL?A.split("").reverse().join(""):A,P=toNumbers(C.getAttribute("dx").getString()),B=E.length;let D=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:A}=this;return b>=A.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",A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";const C=new Point(this.command[b],this.command[A]);return this.makeAbsolute(C)}getAsControlPoint(b,A){const C=this.getPoint(b,A);return this.control=C,C}getAsCurrentPoint(b,A){const C=this.getPoint(b,A);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:A,y:C},control:{x:w,y:x}}=this;return new Point(2*A-w,2*C-x)}makeAbsolute(b){if(this.command.relative){const{x:A,y:C}=this.current;b.x+=A,b.y+=C}return b}addMarker(b,A,C){const{points:w,angles:x}=this;C&&x.length>0&&!x[x.length-1]&&(x[x.length-1]=w[w.length-1].angleTo(C)),this.addMarkerAngle(b,A?A.angleTo(b):null)}addMarkerAngle(b,A){this.points.push(b),this.angles.push(A)}getMarkerPoints(){return this.points}getMarkerAngles(){const{angles:b}=this,A=b.length;for(let C=0;C[x,C[S]])}renderChildren(b){this.path(b),this.document.screen.mouse.checkPath(this,b);const A=this.getStyle("fill-rule");b.fillStyle!==""&&(A.getString("inherit")!=="inherit"?b.fill(A.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,x=this.getStyle("marker-start"),S=this.getStyle("marker-mid"),E=this.getStyle("marker-end");if(x.isUrlDefinition()){const P=x.getDefinition(),[B,D]=C[0];P.render(b,B,D)}if(S.isUrlDefinition()){const P=S.getDefinition();for(let B=1;B1&&(w*=Math.sqrt(I),x*=Math.sqrt(I));let $=(E===P?-1:1)*Math.sqrt((Math.pow(w,2)*Math.pow(x,2)-Math.pow(w,2)*Math.pow(k.y,2)-Math.pow(x,2)*Math.pow(k.x,2))/(Math.pow(w,2)*Math.pow(k.y,2)+Math.pow(x,2)*Math.pow(k.x,2)));isNaN($)&&($=0);const M=new Point($*w*k.y/x,$*-x*k.x/w),L=new Point((A.x+D.x)/2+Math.cos(B)*M.x-Math.sin(B)*M.y,(A.y+D.y)/2+Math.sin(B)*M.x+Math.cos(B)*M.y),H=vectorsAngle([1,0],[(k.x-M.x)/w,(k.y-M.y)/x]),z=[(k.x-M.x)/w,(k.y-M.y)/x],Q=[(-k.x-M.x)/w,(-k.y-M.y)/x];let q=vectorsAngle(z,Q);return vectorsRatio(z,Q)<=-1&&(q=Math.PI),vectorsRatio(z,Q)>=1&&(q=0),{currentPoint:D,rX:w,rY:x,sweepFlag:P,xAxisRotation:B,centp:L,a1:H,ad:q}}pathA(b,A){const{pathParser:C}=this,{currentPoint:w,rX:x,rY:S,sweepFlag:E,xAxisRotation:P,centp:B,a1:D,ad:k}=PathElement.pathA(C),I=1-E?1:-1,$=D+I*(k/2),M=new Point(B.x+x*Math.cos($),B.y+S*Math.sin($));if(C.addMarkerAngle(M,$-I*Math.PI/2),C.addMarkerAngle(w,$-I*Math.PI),A.addPoint(w.x,w.y),b&&!isNaN(D)&&!isNaN(k)){const L=x>S?x:S,H=x>S?1:x/S,z=x>S?S/x:1;b.translate(B.x,B.y),b.rotate(P),b.scale(H,z),b.arc(0,0,L,D,D+k,!!(1-E)),b.scale(1/H,1/z),b.rotate(-P),b.translate(-B.x,-B.y)}}static pathZ(b){b.current=b.start}pathZ(b,A){PathElement.pathZ(this.pathParser),b&&A.x1!==A.x2&&A.y1!==A.y2&&b.closePath()}constructor(b,A,C){super(b,A,C),this.type="path",this.pathParser=new PathParser(this.getAttribute("d").getString())}}let SVGElement$1=class extends RenderedElement{setContext(b){var A;const{document:C}=this,{screen:w,window:x}=C,S=b.canvas;if(w.setDefaults(b),"style"in S&&typeof b.font<"u"&&x&&typeof x.getComputedStyle<"u"){b.font=x.getComputedStyle(S).getPropertyValue("font");const Q=new Property(C,"fontSize",Font.parse(b.font).fontSize);Q.hasValue()&&(C.rootEmSize=Q.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:E,height:P}=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 B=this.getAttribute("refX"),D=this.getAttribute("refY"),k=this.getAttribute("viewBox"),I=k.hasValue()?toNumbers(k.getString()):null,$=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible";let M=0,L=0,H=0,z=0;I&&(M=I[0],L=I[1]),this.root||(E=this.getStyle("width").getPixels("x"),P=this.getStyle("height").getPixels("y"),this.type==="marker"&&(H=M,z=L,M=0,L=0)),w.viewPort.setCurrent(E,P),this.node&&(!this.parent||((A=this.node.parentNode)===null||A===void 0?void 0:A.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&&(E=I[2],P=I[3]),C.setViewBox({ctx:b,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:w.viewPort.width,desiredWidth:E,height:w.viewPort.height,desiredHeight:P,minX:M,minY:L,refX:B.getValue(),refY:D.getValue(),clip:$,clipX:H,clipY:z}),I&&(w.viewPort.removeCurrent(),w.viewPort.setCurrent(E,P))}clearContext(b){super.clearContext(b),this.document.screen.viewPort.removeCurrent()}resize(b){let A=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),x=this.getAttribute("height",!0),S=this.getAttribute("viewBox"),E=this.getAttribute("style"),P=w.getNumber(0),B=x.getNumber(0);if(C)if(typeof C=="string")this.getAttribute("preserveAspectRatio",!0).setValue(C);else{const D=this.getAttribute("preserveAspectRatio");D.hasValue()&&D.setValue(D.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(w.setValue(b),x.setValue(A),S.hasValue()||S.setValue("0 0 ".concat(P||b," ").concat(B||A)),E.hasValue()){const D=this.getStyle("width"),k=this.getStyle("height");D.hasValue()&&D.setValue("".concat(b,"px")),k.hasValue()&&k.setValue("".concat(A,"px"))}}constructor(...b){super(...b),this.type="svg",this.root=!1}};class RectElement extends PathElement{path(b){const A=this.getAttribute("x").getPixels("x"),C=this.getAttribute("y").getPixels("y"),w=this.getStyle("width",!1,!0).getPixels("x"),x=this.getStyle("height",!1,!0).getPixels("y"),S=this.getAttribute("rx"),E=this.getAttribute("ry");let P=S.getPixels("x"),B=E.getPixels("y");if(S.hasValue()&&!E.hasValue()&&(B=P),E.hasValue()&&!S.hasValue()&&(P=B),P=Math.min(P,w/2),B=Math.min(B,x/2),b){const D=4*((Math.sqrt(2)-1)/3);b.beginPath(),x>0&&w>0&&(b.moveTo(A+P,C),b.lineTo(A+w-P,C),b.bezierCurveTo(A+w-P+D*P,C,A+w,C+B-D*B,A+w,C+B),b.lineTo(A+w,C+x-B),b.bezierCurveTo(A+w,C+x-B+D*B,A+w-P+D*P,C+x,A+w-P,C+x),b.lineTo(A+P,C+x),b.bezierCurveTo(A+P-D*P,C+x,A,C+x-B+D*B,A,C+x-B),b.lineTo(A,C+B),b.bezierCurveTo(A,C+B-D*B,A+P-D*P,C,A+P,C),b.closePath())}return new BoundingBox(A,C,A+w,C+x)}getMarkers(){return null}constructor(...b){super(...b),this.type="rect"}}class CircleElement extends PathElement{path(b){const A=this.getAttribute("cx").getPixels("x"),C=this.getAttribute("cy").getPixels("y"),w=this.getAttribute("r").getPixels();return b&&w>0&&(b.beginPath(),b.arc(A,C,w,0,Math.PI*2,!1),b.closePath()),new BoundingBox(A-w,C-w,A+w,C+w)}getMarkers(){return null}constructor(...b){super(...b),this.type="circle"}}class EllipseElement extends PathElement{path(b){const A=4*((Math.sqrt(2)-1)/3),C=this.getAttribute("rx").getPixels("x"),w=this.getAttribute("ry").getPixels("y"),x=this.getAttribute("cx").getPixels("x"),S=this.getAttribute("cy").getPixels("y");return b&&C>0&&w>0&&(b.beginPath(),b.moveTo(x+C,S),b.bezierCurveTo(x+C,S+A*w,x+A*C,S+w,x,S+w),b.bezierCurveTo(x-A*C,S+w,x-C,S+A*w,x-C,S),b.bezierCurveTo(x-C,S-A*w,x-A*C,S-w,x,S-w),b.bezierCurveTo(x+A*C,S-w,x+C,S-A*w,x+C,S),b.closePath()),new BoundingBox(x-C,S-w,x+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:A,y:C},{x:w,y:x}]=this.getPoints();return b&&(b.beginPath(),b.moveTo(A,C),b.lineTo(w,x)),new BoundingBox(A,C,w,x)}getMarkers(){const[b,A]=this.getPoints(),C=b.angleTo(A);return[[b,C],[A,C]]}constructor(...b){super(...b),this.type="line"}}class PolylineElement extends PathElement{path(b){const{points:A}=this,[{x:C,y:w}]=A,x=new BoundingBox(C,w);return b&&(b.beginPath(),b.moveTo(C,w)),A.forEach(S=>{let{x:E,y:P}=S;x.addPoint(E,P),b&&b.lineTo(E,P)}),x}getMarkers(){const{points:b}=this,A=b.length-1,C=[];return b.forEach((w,x)=>{x!==A&&C.push([w,w.angleTo(b[x+1])])}),C.length>0&&C.push([b[b.length-1],C[C.length-1][1]]),C}constructor(b,A,C){super(b,A,C),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}}class PolygonElement extends PolylineElement{path(b){const A=super.path(b),[{x:C,y:w}]=this.points;return b&&(b.lineTo(C,w),b.closePath()),A}constructor(...b){super(...b),this.type="polygon"}}class PatternElement extends Element$1{createPattern(b,A,C){const w=this.getStyle("width").getPixels("x",!0),x=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(x,"px")),S.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),S.children=this.children;const E=this.document.createCanvas(w,x),P=E.getContext("2d"),B=this.getAttribute("x"),D=this.getAttribute("y");B.hasValue()&&D.hasValue()&&P.translate(B.getPixels("x",!0),D.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 $=-1;$<=1;$++)P.save(),S.attributes.x=new Property(this.document,"x",I*E.width),S.attributes.y=new Property(this.document,"y",$*E.height),S.render(P),P.restore();return b.createPattern(E,"repeat")}constructor(...b){super(...b),this.type="pattern"}}class MarkerElement extends Element$1{render(b,A,C){if(!A)return;const{x:w,y:x}=A,S=this.getAttribute("orient").getString("auto"),E=this.getAttribute("markerUnits").getString("strokeWidth");b.translate(w,x),S==="auto"&&b.rotate(C),E==="strokeWidth"&&b.scale(b.lineWidth,b.lineWidth),b.save();const P=new SVGElement$1(this.document);P.type=this.type,P.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),P.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),P.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),P.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),P.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),P.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),P.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),P.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),P.children=this.children,P.render(b),b.restore(),E==="strokeWidth"&&b.scale(1/b.lineWidth,1/b.lineWidth),S==="auto"&&b.rotate(-C),b.translate(-w,-x)}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 A=new BoundingBox;return this.children.forEach(C=>{A.addBoundingBox(C.getBoundingBox(b))}),A}constructor(...b){super(...b),this.type="g"}}class GradientElement extends Element$1{getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(b,A,C){let w=this;this.getHrefAttribute().hasValue()&&(w=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(w));const{stops:x}=w,S=this.getGradient(b,A);if(!S)return this.addParentOpacity(C,x[x.length-1].color);if(x.forEach(E=>{S.addColorStop(E.offset,this.addParentOpacity(C,E.color))}),this.getAttribute("gradientTransform").hasValue()){const{document:E}=this,{MAX_VIRTUAL_PIXELS:P}=Screen,{viewPort:B}=E.screen,D=B.getRoot(),k=new RectElement(E);k.attributes.x=new Property(E,"x",-P/3),k.attributes.y=new Property(E,"y",-P/3),k.attributes.width=new Property(E,"width",P),k.attributes.height=new Property(E,"height",P);const I=new GElement(E);I.attributes.transform=new Property(E,"transform",this.getAttribute("gradientTransform").getValue()),I.children=[k];const $=new SVGElement$1(E);$.attributes.x=new Property(E,"x",0),$.attributes.y=new Property(E,"y",0),$.attributes.width=new Property(E,"width",D.width),$.attributes.height=new Property(E,"height",D.height),$.children=[I];const M=E.createCanvas(D.width,D.height),L=M.getContext("2d");return L.fillStyle=S,$.render(L),L.createPattern(M,"no-repeat")}return S}inheritStopContainer(b){this.attributesToInherit.forEach(A=>{!this.getAttribute(A).hasValue()&&b.getAttribute(A).hasValue()&&this.getAttribute(A,!0).setValue(b.getAttribute(A).getValue())})}addParentOpacity(b,A){return b.hasValue()?new Property(this.document,"color",A).addOpacity(b).getColor():A}constructor(b,A,C){super(b,A,C),this.attributesToInherit=["gradientUnits"],this.stops=[];const{stops:w,children:x}=this;x.forEach(S=>{S.type==="stop"&&w.push(S)})}}class LinearGradientElement extends GradientElement{getGradient(b,A){const C=this.getGradientUnits()==="objectBoundingBox",w=C?A.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 x=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"),E=C?w.x+w.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),P=C?w.y+w.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return x===E&&S===P?null:b.createLinearGradient(x,S,E,P)}constructor(b,A,C){super(b,A,C),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}}class RadialGradientElement extends GradientElement{getGradient(b,A){const C=this.getGradientUnits()==="objectBoundingBox",w=A.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 x=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 E=x,P=S;this.getAttribute("fx").hasValue()&&(E=C?w.x+w.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(P=C?w.y+w.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));const B=C?(w.width+w.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),D=this.getAttribute("fr").getPixels();return b.createRadialGradient(E,P,D,x,S,B)}constructor(b,A,C){super(b,A,C),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}}class StopElement extends Element$1{constructor(b,A,C){super(b,A,C),this.type="stop";const w=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),x=this.getStyle("stop-opacity");let S=this.getStyle("stop-color",!0);S.getString()===""&&S.setValue("#000"),x.hasValue()&&(S=S.addOpacity(x)),this.offset=w,this.color=S.getColor()}}class AnimateElement extends Element$1{getProperty(){const b=this.getAttribute("attributeType").getString(),A=this.getAttribute("attributeName").getString();return b==="CSS"?this.parent.getStyle(A,!0):this.parent.getAttribute(A,!0)}calcValue(){const{initialUnits:b}=this,{progress:A,from:C,to:w}=this.getProgress();let x=C.getNumber()+(w.getNumber()-C.getNumber())*A;return b==="%"&&(x*=100),"".concat(x).concat(b)}update(b){const{parent:A}=this,C=this.getProperty();if(this.initialValue||(this.initialValue=C.getString(),this.initialUnits=C.getUnits()),this.duration>this.maxDuration){const x=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(x==="freeze"&&!this.frozen)this.frozen=!0,A&&C&&(A.animationFrozen=!0,A.animationFrozenValue=C.getString());else if(x==="remove"&&!this.removed)return this.removed=!0,A&&C&&C.setValue(A.animationFrozen?A.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=b;let w=!1;if(this.begin{const B=x[P];return E+(B-E)*b}).join(" ")}constructor(...b){super(...b),this.type="animateTransform"}}class FontFaceElement extends Element$1{constructor(b,A,C){super(b,A,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,A,C){super(b,A,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,A,C){super(b,A,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:x}=this;for(const S of x)if(S instanceof FontFaceElement){this.fontFace=S;const E=S.getStyle("font-family");E.hasValue()&&(w[E.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 E=this.arabicGlyphs[S.unicode];typeof E>"u"?this.arabicGlyphs[S.unicode]={[S.arabicForm]:S}:E[S.arabicForm]=S}else this.glyphs[S.unicode]=S}}class TRefElement extends TextElement{getText(){const b=this.getHrefAttribute().getDefinition();if(b){const A=b.children[0];if(A)return A.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:A,x:C,y:w}=this,{mouse:x}=A.screen,S=new Property(A,"fontSize",Font.parse(A.ctx.font).fontSize);x.isWorking()&&x.checkBoundingBox(this,new BoundingBox(C,w-S.getPixels("y"),C+this.measureText(b),w))}else if(this.children.length>0){const A=new GElement(this.document);A.children=this.children,A.parent=this,A.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,A,C){super(b,A,C),this.type="a";const{childNodes:w}=A,x=w[0],S=w.length>0&&Array.from(w).every(E=>E.nodeType===3);this.hasText=S,this.text=S?this.getTextFromNode(x):""}}class TextPathElement extends TextElement{getText(){return this.text}path(b){const{dataArray:A}=this;b&&b.beginPath(),A.forEach(C=>{let{type:w,points:x}=C;switch(w){case PathParser.LINE_TO:b&&b.lineTo(x[0],x[1]);break;case PathParser.MOVE_TO:b&&b.moveTo(x[0],x[1]);break;case PathParser.CURVE_TO:b&&b.bezierCurveTo(x[0],x[1],x[2],x[3],x[4],x[5]);break;case PathParser.QUAD_TO:b&&b.quadraticCurveTo(x[0],x[1],x[2],x[3]);break;case PathParser.ARC:{const[S,E,P,B,D,k,I,$]=x,M=P>B?P:B,L=P>B?1:P/B,H=P>B?B/P:1;b&&(b.translate(S,E),b.rotate(I),b.scale(L,H),b.arc(0,0,M,D,D+k,!!(1-$)),b.scale(1/L,1/H),b.rotate(-I),b.translate(-S,-E));break}case PathParser.CLOSE_PATH:b&&b.closePath();break}})}renderChildren(b){this.setTextData(b),b.save();const A=this.parent.getStyle("text-decoration").getString(),C=this.getFontSize(),{glyphInfo:w}=this,x=b.fillStyle;A==="underline"&&b.beginPath(),w.forEach((S,E)=>{const{p0:P,p1:B,rotation:D,text:k}=S;b.save(),b.translate(P.x,P.y),b.rotate(D),b.fillStyle&&b.fillText(k,0,0),b.strokeStyle&&b.strokeText(k,0,0),b.restore(),A==="underline"&&(E===0&&b.moveTo(P.x,P.y+C/8),b.lineTo(B.x,B.y+C/5))}),A==="underline"&&(b.lineWidth=C/20,b.strokeStyle=x,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,A,C,w,x,S,E,P,B){let D=S,k=this.measureText(b,P);P===" "&&A==="justify"&&C-1&&(D+=this.getLetterSpacingAt(B));const I=this.textHeight/20,$=this.getEquidistantPointOnPath(D,I,0),M=this.getEquidistantPointOnPath(D+k,I,0),L={p0:$,p1:M},H=$&&M?Math.atan2(M.y-$.y,M.x-$.x):0;if(E){const z=Math.cos(Math.PI/2+H)*E,Q=Math.cos(-H)*E;L.p0={...$,x:$.x+z,y:$.y+Q},L.p1={...M,x:M.x+z,y:M.y+Q}}return D+=k,{offset:D,segment:L,rotation:H}}measureText(b,A){const{measuresCache:C}=this,w=A||this.getText();if(C.has(w))return C.get(w);const x=this.measureTargetText(b,w);return C.set(w,x),x}setTextData(b){if(this.glyphInfo)return;const A=this.getText(),C=A.split(""),w=A.split(" ").length-1,x=this.parent.getAttribute("dx").split().map(q=>q.getPixels("x")),S=this.parent.getAttribute("dy").getPixels("y"),E=this.parent.getStyle("text-anchor").getString("start"),P=this.getStyle("letter-spacing"),B=this.parent.getStyle("letter-spacing");let D=0;!P.hasValue()||P.getValue()==="inherit"?D=B.getPixels():P.hasValue()&&P.getValue()!=="initial"&&P.getValue()!=="unset"&&(D=P.getPixels());const k=[],I=A.length;this.letterSpacingCache=k;for(let q=0;qU===0?0:q+V||0,0),M=this.measureText(b),L=Math.max(M+$,0);this.textWidth=M,this.textHeight=this.getFontSize(),this.glyphInfo=[];const H=this.getPathLength(),z=this.getStyle("startOffset").getNumber(0)*H;let Q=0;(E==="middle"||E==="center")&&(Q=-L/2),(E==="end"||E==="right")&&(Q=-L),Q+=z,C.forEach((q,V)=>{const{offset:U,segment:W,rotation:K}=this.findSegmentToFitChar(b,E,L,H,w,Q,S,q,V);Q=U,!(!W.p0||!W.p1)&&this.glyphInfo.push({text:C[V],p0:W.p0,p1:W.p1,rotation:K})})}parsePathData(b){if(this.pathLength=-1,!b)return[];const A=[],{pathParser:C}=b;for(C.reset();!C.isEnd();){const{current:w}=C,x=w?w.x:0,S=w?w.y:0,E=C.next();let P=E.type,B=[];switch(E.type){case PathParser.MOVE_TO:this.pathM(C,B);break;case PathParser.LINE_TO:P=this.pathL(C,B);break;case PathParser.HORIZ_LINE_TO:P=this.pathH(C,B);break;case PathParser.VERT_LINE_TO:P=this.pathV(C,B);break;case PathParser.CURVE_TO:this.pathC(C,B);break;case PathParser.SMOOTH_CURVE_TO:P=this.pathS(C,B);break;case PathParser.QUAD_TO:this.pathQ(C,B);break;case PathParser.SMOOTH_QUAD_TO:P=this.pathT(C,B);break;case PathParser.ARC:B=this.pathA(C);break;case PathParser.CLOSE_PATH:PathElement.pathZ(C);break}E.type!==PathParser.CLOSE_PATH?A.push({type:P,points:B,start:{x,y:S},pathLength:this.calcLength(x,S,P,B)}):A.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return A}pathM(b,A){const{x:C,y:w}=PathElement.pathM(b).point;A.push(C,w)}pathL(b,A){const{x:C,y:w}=PathElement.pathL(b).point;return A.push(C,w),PathParser.LINE_TO}pathH(b,A){const{x:C,y:w}=PathElement.pathH(b).point;return A.push(C,w),PathParser.LINE_TO}pathV(b,A){const{x:C,y:w}=PathElement.pathV(b).point;return A.push(C,w),PathParser.LINE_TO}pathC(b,A){const{point:C,controlPoint:w,currentPoint:x}=PathElement.pathC(b);A.push(C.x,C.y,w.x,w.y,x.x,x.y)}pathS(b,A){const{point:C,controlPoint:w,currentPoint:x}=PathElement.pathS(b);return A.push(C.x,C.y,w.x,w.y,x.x,x.y),PathParser.CURVE_TO}pathQ(b,A){const{controlPoint:C,currentPoint:w}=PathElement.pathQ(b);A.push(C.x,C.y,w.x,w.y)}pathT(b,A){const{controlPoint:C,currentPoint:w}=PathElement.pathT(b);return A.push(C.x,C.y,w.x,w.y),PathParser.QUAD_TO}pathA(b){let{rX:A,rY:C,sweepFlag:w,xAxisRotation:x,centp:S,a1:E,ad:P}=PathElement.pathA(b);return w===0&&P>0&&(P-=2*Math.PI),w===1&&P<0&&(P+=2*Math.PI),[S.x,S.y,A,C,E,P,x,w]}calcLength(b,A,C,w){let x=0,S=null,E=null,P=0;switch(C){case PathParser.LINE_TO:return this.getLineLength(b,A,w[0],w[1]);case PathParser.CURVE_TO:for(x=0,S=this.getPointOnCubicBezier(0,b,A,w[0],w[1],w[2],w[3],w[4],w[5]),P=.01;P<=1;P+=.01)E=this.getPointOnCubicBezier(P,b,A,w[0],w[1],w[2],w[3],w[4],w[5]),x+=this.getLineLength(S.x,S.y,E.x,E.y),S=E;return x;case PathParser.QUAD_TO:for(x=0,S=this.getPointOnQuadraticBezier(0,b,A,w[0],w[1],w[2],w[3]),P=.01;P<=1;P+=.01)E=this.getPointOnQuadraticBezier(P,b,A,w[0],w[1],w[2],w[3]),x+=this.getLineLength(S.x,S.y,E.x,E.y),S=E;return x;case PathParser.ARC:{x=0;const B=w[4],D=w[5],k=w[4]+D;let I=Math.PI/180;if(Math.abs(B-k)k;P-=I)E=this.getPointOnEllipticalArc(w[0],w[1],w[2],w[3],P,0),x+=this.getLineLength(S.x,S.y,E.x,E.y),S=E;else for(P=B+I;P5&&arguments[5]!==void 0?arguments[5]:A,E=arguments.length>6&&arguments[6]!==void 0?arguments[6]:C;const P=(x-C)/(w-A+PSEUDO_ZERO);let B=Math.sqrt(b*b/(1+P*P));wA)return null;const{dataArray:x}=this;for(const S of x){if(S&&(S.pathLength<5e-5||C+S.pathLength+5e-5=0&&P>k)break;w=this.getPointOnEllipticalArc(S.points[0],S.points[1],S.points[2],S.points[3],P,S.points[6]);break}case PathParser.CURVE_TO:P=E/S.pathLength,P>1&&(P=1),w=this.getPointOnCubicBezier(P,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:P=E/S.pathLength,P>1&&(P=1),w=this.getPointOnQuadraticBezier(P,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,A,C,w){return Math.sqrt((C-b)*(C-b)+(w-A)*(w-A))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((b,A)=>A.pathLength>0?b+A.pathLength:b,0)),this.pathLength}getPointOnCubicBezier(b,A,C,w,x,S,E,P,B){const D=P*CB1(b)+S*CB2(b)+w*CB3(b)+A*CB4(b),k=B*CB1(b)+E*CB2(b)+x*CB3(b)+C*CB4(b);return{x:D,y:k}}getPointOnQuadraticBezier(b,A,C,w,x,S,E){const P=S*QB1(b)+w*QB2(b)+A*QB3(b),B=E*QB1(b)+x*QB2(b)+C*QB3(b);return{x:P,y:B}}getPointOnEllipticalArc(b,A,C,w,x,S){const E=Math.cos(S),P=Math.sin(S),B={x:C*Math.cos(x),y:w*Math.sin(x)};return{x:b+(B.x*E-B.y*P),y:A+(B.x*P+B.y*E)}}buildEquidistantCache(b,A){const C=this.getPathLength(),w=A||.25,x=b||C/100;if(!this.equidistantCache||this.equidistantCache.step!==x||this.equidistantCache.precision!==w){this.equidistantCache={step:x,precision:w,points:[]};let S=0;for(let E=0;E<=C;E+=w){const P=this.getPointOnPath(E),B=this.getPointOnPath(E+w);!P||!B||(S+=this.getLineLength(P.x,P.y,B.x,B.y),S>=x&&(this.equidistantCache.points.push({x:P.x,y:P.y,distance:E}),S-=x))}}}getEquidistantPointOnPath(b,A,C){if(this.buildEquidistantCache(A,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,A,C){super(b,A,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 A=await this.document.createImage(b);this.image=A}catch(A){console.error('Error while loading image "'.concat(b,'":'),A)}this.loaded=!0}async loadSvg(b){const A=dataUriRegex.exec(b);if(A){const C=A[5];C&&(A[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:A,image:C,loaded:w}=this,x=this.getAttribute("x").getPixels("x"),S=this.getAttribute("y").getPixels("y"),E=this.getStyle("width").getPixels("x"),P=this.getStyle("height").getPixels("y");if(!(!w||!C||!E||!P)){if(b.save(),b.translate(x,S),typeof C=="string"){const B=A.canvg.forkString(b,C,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:E,scaleHeight:P}),{documentElement:D}=B.document;D&&(D.parent=this),B.render()}else A.setViewBox({ctx:b,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:E,desiredWidth:C.width,height:P,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"),A=this.getAttribute("y").getPixels("y"),C=this.getStyle("width").getPixels("x"),w=this.getStyle("height").getPixels("y");return new BoundingBox(b,A,b+C,A+w)}constructor(b,A,C){super(b,A,C),this.type="image",this.loaded=!1;const w=this.getHrefAttribute().getString();if(!w)return;const x=w.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(w);b.images.push(this),x?this.loadSvg(w):this.loadImage(w)}}class SymbolElement extends RenderedElement{render(b){}constructor(...b){super(...b),this.type="symbol"}}class SVGFontLoader{async load(b,A){try{const{document:C}=this,x=(await C.canvg.parser.load(A)).getElementsByTagName("font");Array.from(x).forEach(S=>{const E=C.createElement(S);C.definitions[b]=E})}catch(C){console.error('Error while loading font "'.concat(A,'":'),C)}this.loaded=!0}constructor(b){this.document=b,this.loaded=!1,b.fonts.push(this)}}class StyleElement extends Element$1{constructor(b,A,C){super(b,A,C),this.type="style",compressSpaces(Array.from(A.childNodes).map(S=>S.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(S=>{const E=S.trim();if(!E)return;const P=E.split("{"),B=P[0].split(","),D=P[1].split(";");B.forEach(k=>{const I=k.trim();if(!I)return;const $=b.styles[I]||{};if(D.forEach(M=>{const L=M.indexOf(":"),H=M.substr(0,L).trim(),z=M.substr(L+1,M.length-L).trim();H&&z&&($[H]=new Property(b,H,z))}),b.styles[I]=$,b.stylesSpecificity[I]=getSelectorSpecificity(I),I==="@font-face"){const M=$["font-family"].getString().replace(/"|'/g,"");$.src.getString().split(",").forEach(H=>{if(H.indexOf('format("svg")')>0){const z=parseExternalUrl(H);z&&new SVGFontLoader(b).load(M,z)}})}})})}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{setContext(b){super.setContext(b);const A=this.getAttribute("x"),C=this.getAttribute("y");A.hasValue()&&b.translate(A.getPixels("x"),0),C.hasValue()&&b.translate(0,C.getPixels("y"))}path(b){const{element:A}=this;A&&A.path(b)}renderChildren(b){const{document:A,element:C}=this;if(C){let w=C;if(C.type==="symbol"&&(w=new SVGElement$1(A),w.attributes.viewBox=new Property(A,"viewBox",C.getAttribute("viewBox").getString()),w.attributes.preserveAspectRatio=new Property(A,"preserveAspectRatio",C.getAttribute("preserveAspectRatio").getString()),w.attributes.overflow=new Property(A,"overflow",C.getAttribute("overflow").getString()),w.children=C.children,C.styles.opacity=new Property(A,"opacity",this.calculateOpacity())),w.type==="svg"){const S=this.getStyle("width",!1,!0),E=this.getStyle("height",!1,!0);S.hasValue()&&(w.attributes.width=new Property(A,"width",S.getString())),E.hasValue()&&(w.attributes.height=new Property(A,"height",E.getString()))}const x=w.parent;w.parent=this,w.render(b),w.parent=x}}getBoundingBox(b){const{element:A}=this;return A?A.getBoundingBox(b):null}elementTransform(){const{document:b,element:A}=this;return A?Transform.fromElement(b,A):null}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}constructor(...b){super(...b),this.type="use"}}function imGet(d,b,A,C,w,x){return d[A*C*4+b*4+x]}function imSet(d,b,A,C,w,x,S){d[A*C*4+b*4+x]=S}function m(d,b,A){return d[b]*A}function c(d,b,A,C){return b+Math.cos(d)*A+Math.sin(d)*C}class FeColorMatrixElement extends Element$1{apply(b,A,C,w,x){const{includeOpacity:S,matrix:E}=this,P=b.getImageData(0,0,w,x);for(let B=0;B{$.addBoundingBox(M.getBoundingBox(b))}),w=Math.floor($.x1),x=Math.floor($.y1),S=Math.floor($.width),E=Math.floor($.height)}const P=this.removeStyles(A,MaskElement.ignoreStyles),B=C.createCanvas(w+S,x+E),D=B.getContext("2d");C.screen.setDefaults(D),this.renderChildren(D),new FeColorMatrixElement(C,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(D,0,0,w+S,x+E);const k=C.createCanvas(w+S,x+E),I=k.getContext("2d");C.screen.setDefaults(I),A.render(I),I.globalCompositeOperation="destination-in",I.fillStyle=D.createPattern(B,"no-repeat"),I.fillRect(0,0,w+S,x+E),b.fillStyle=I.createPattern(k,"no-repeat"),b.fillRect(0,0,w+S,x+E),this.restoreStyles(A,P)}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:A}=this,C=Reflect.getPrototypeOf(b),{beginPath:w,closePath:x}=b;C&&(C.beginPath=noop$1,C.closePath=noop$1),Reflect.apply(w,b,[]),this.children.forEach(S=>{if(!("path"in S))return;let E="elementTransform"in S?S.elementTransform():null;E||(E=Transform.fromElement(A,S)),E&&E.apply(b),S.path(b),C&&(C.closePath=x),E&&E.unapply(b)}),Reflect.apply(x,b,[]),b.clip(),C&&(C.beginPath=w,C.closePath=x)}render(b){}constructor(...b){super(...b),this.type="clipPath"}}class FilterElement extends Element$1{apply(b,A){const{document:C,children:w}=this,x="getBoundingBox"in A?A.getBoundingBox(b):null;if(!x)return;let S=0,E=0;w.forEach(z=>{const Q=z.extraFilterDistance||0;S=Math.max(S,Q),E=Math.max(E,Q)});const P=Math.floor(x.width),B=Math.floor(x.height),D=P+2*S,k=B+2*E;if(D<1||k<1)return;const I=Math.floor(x.x),$=Math.floor(x.y),M=this.removeStyles(A,FilterElement.ignoreStyles),L=C.createCanvas(D,k),H=L.getContext("2d");C.screen.setDefaults(H),H.translate(-I+S,-$+E),A.render(H),w.forEach(z=>{typeof z.apply=="function"&&z.apply(H,0,0,D,k)}),b.drawImage(L,0,0,D,k,I-S,$-E,D,k),this.restoreStyles(A,M)}render(b){}constructor(...b){super(...b),this.type="filter"}}FilterElement.ignoreStyles=["filter","transform","clip-path"];class FeDropShadowElement extends Element$1{apply(b,A,C,w,x){}constructor(b,A,C){super(b,A,C),this.type="feDropShadow",this.addStylesFromStyleDefinition()}}class FeMorphologyElement extends Element$1{apply(b,A,C,w,x){}constructor(...b){super(...b),this.type="feMorphology"}}class FeCompositeElement extends Element$1{apply(b,A,C,w,x){}constructor(...b){super(...b),this.type="feComposite"}}class FeGaussianBlurElement extends Element$1{apply(b,A,C,w,x){const{document:S,blurRadius:E}=this,P=S.window?S.window.document.body:null,B=b.canvas;B.id=S.getUniqueId(),P&&(B.style.display="none",P.appendChild(B)),processCanvasRGBA(B,A,C,w,x,E),P&&P.removeChild(B)}constructor(b,A,C){super(b,A,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 A=document.createElement("canvas");return A.width=d,A.height=b,A}async function createImage(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const A=document.createElement("img");return b&&(A.crossOrigin="Anonymous"),new Promise((C,w)=>{A.onload=()=>{C(A)},A.onerror=(x,S,E,P,B)=>{w(B)},A.src=d})}const DEFAULT_EM_SIZE=12;class Document{bindCreateImage(b,A){return typeof A=="boolean"?(C,w)=>b(C,typeof w=="boolean"?w:A):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:A}=this;A.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 A=this.createElement(b.documentElement);return A.root=!0,A.addStylesFromStyleDefinition(),this.documentElement=A,A}createElement(b){const A=b.nodeName.replace(/^[^:]+:/,""),C=Document.elementTypes[A];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:A=DEFAULT_EM_SIZE,emSize:C=DEFAULT_EM_SIZE,createCanvas:w=Document.createCanvas,createImage:x=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=A,this.emSize=C,this.createCanvas=w,this.createImage=this.bindCreateImage(x,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,A){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const x=await new Parser(C).parse(A);return new Canvg(b,x,C)}static fromString(b,A){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const x=new Parser(C).parseFromString(A);return new Canvg(b,x,C)}fork(b,A){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.from(b,A,{...this.options,...C})}forkString(b,A){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Canvg.fromString(b,A,{...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:A,screen:C,options:w}=this;C.start(A,{enableRedraw:!0,...w,...b})}stop(){this.screen.stop()}resize(b){let A=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,A,C)}constructor(b,A,C={}){this.parser=new Parser(C),this.screen=new Screen(b,C),this.options=C;const w=new Document(this,C),x=w.createDocumentElement(A);this.document=w,this.documentElement=x}}const svg2canvas=d=>{const b=document.createElement("canvas"),A=b.getContext("2d");return A&&Canvg.fromString(A,d).start(),b},btnImg="_btnImg_16jss_1",topBtnIcon="_topBtnIcon_16jss_13",dropItem="_dropItem_16jss_17",dropIcon="_dropIcon_16jss_21",dropWrap="_dropWrap_16jss_26",styles$6={btnImg,topBtnIcon,dropItem,dropIcon,dropWrap},FileBtn=defineComponent({name:"FileBtn",emits:["select"],props:{saveLoading:{type:Boolean,default:!1}},setup(d,{emit:b}){const A=computed(()=>[{label:()=>createVNode("div",{class:styles$6.dropItem},[createVNode("img",{class:styles$6.dropIcon,src:getImage("icon_26_4.png")},null),createVNode("span",null,[createTextVNode("新建曲谱")])]),key:"newMusic"},{label:()=>createVNode("div",{class:styles$6.dropItem},[createVNode("img",{class:styles$6.dropIcon,src:getImage("icon_26_0.png")},null),createVNode("span",null,[createTextVNode("保存")]),d.saveLoading&&createVNode(NSpin,{style:{marginLeft:"auto"},size:14},null)]),key:"save",disabled:d.saveLoading},{label:()=>createVNode("div",{class:styles$6.dropItem},[createVNode("img",{class:styles$6.dropIcon,src:getImage("icon_26_6.png")},null),createVNode("span",null,[createTextVNode("导入")])]),key:"import",children:[{label:"XML",key:"xml"},{label:"PDF",key:"import-pdf"},{label:"PNG,JPG",key:"import-image"}]},{label:()=>createVNode("div",{class:styles$6.dropItem},[createVNode("img",{class:styles$6.dropIcon,src:getImage("icon_26_1.png")},null),createVNode("span",null,[createTextVNode("上传到我的资源")])]),key:"upload"},{label:()=>createVNode("div",{class:styles$6.dropItem},[createVNode("img",{class:styles$6.dropIcon,src:getImage("icon_26_2.png")},null),createVNode("span",null,[createTextVNode("导出")])]),key:"export",children:[{label:"XML",key:"down-xml"},{label:"PNG",key:"png"},{label:"WAV",key:"wav"},{label:"MIDI",key:"midi"}]},{label:()=>createVNode("div",{class:styles$6.dropItem},[createVNode("img",{class:styles$6.dropIcon,src:getImage("icon_26_3.png")},null),createVNode("span",null,[createTextVNode("打印")])]),key:"print",disabled:!0}]);return()=>createVNode(NDropdown,{class:styles$6.dropWrap,options:A.value,trigger:"click",onSelect:C=>{console.log("🚀 ~ val:",C),b("select",C)}},{default:()=>[createVNode("div",{class:styles$6.btnImg},[createVNode("img",{class:styles$6.topBtnIcon,src:getImage("icon_0.png")},null)])]})}}),setbox$1="_setbox_1p89x_1",head$2="_head_1p89x_11",close$2="_close_1p89x_25",content$1="_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$5={setbox:setbox$1,head:head$2,close:close$2,content:content$1,slide,box,btn:btn$1,activeBtn,btnIcon,keyBox,table};function _isSlot$2(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 A=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,()=>{A.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:"删除音符",value:"BackSpace"},{label:"撤回",value:"Ctrl + z"},{label:"多选",value:"Shift"},{label:"休止符",value:"0"},{label:"三十二分音符",value:"1"},{label:"十六分音符",value:"2"},{label:"八分音符",value:"3"},{label:"四分音符",value:"4"},{label:"二分音符",value:"5"},{label:"全音符",value:"6"},{label:"还原记号",value:"7"},{label:"升记号",value:"8"},{label:"降记号",value:"9"}];return()=>{let w;return createVNode(NModal,{maskClosable:!1,autoFocus:!1,show:d.show,"onUpdate:show":x=>b("update:show",x)},{default:()=>[createVNode("div",{class:styles$5.setbox},[createVNode("div",{class:styles$5.head},[createVNode("div",null,[createTextVNode("设置")]),createVNode(NButton,{class:styles$5.close,quaternary:!0,circle:!0,size:"small",onClick:()=>b("update:show",!1)},{default:()=>[createVNode(NIcon,{component:Close,size:18},null)]})]),createVNode("div",{class:styles$5.content},[createVNode("div",{class:styles$5.slide},[createVNode(NSpace,{vertical:!0,align:"center",wrapItem:!1},_isSlot$2(w=A.btns.map(x=>createVNode(NButton,{quaternary:!0,block:!0,class:[styles$5.btn,A.active===x.key&&styles$5.activeBtn],onClick:()=>A.active=x.key},{icon:()=>createVNode("img",{class:styles$5.btnIcon,src:x.icon},null),default:()=>x.label})))?w:{default:()=>[w]})]),createVNode("div",{class:styles$5.box},[createVNode(NTabs,{value:A.active,"onUpdate:value":x=>A.active=x},{default:()=>[createVNode(NTabPane,{name:"1",tab:"1"},{default:()=>[createVNode("div",{class:styles$5.keyBox},[createVNode(NCard,{title:"光标设置",bordered:!1},{default:()=>[createVNode(NRadioGroup,{value:settings.cursorType,"onUpdate:value":x=>settings.cursorType=x},{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$5.keyBox},[createVNode(NTable,{class:styles$5.table,striped:!0},{default:()=>[createVNode("thead",null,[createVNode("tr",null,[createVNode("th",null,[createTextVNode("命令")]),createVNode("th",null,[createTextVNode("快捷键")])])]),createVNode("tbody",null,[C.map(x=>createVNode("tr",null,[createVNode("td",null,[x.label]),createVNode("td",null,[x.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};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||A;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||A;if(k=parseFloat(k),I.ctx||D(),typeof k<"u"&&k>=0&&k<=1){if(I._volume=k,I._muted)return I;I.usingWebAudio&&I.masterGain.gain.setValueAtTime(k,A.ctx.currentTime);for(var $=0;$=0;I--)k._howls[I].unload();return k.usingWebAudio&&k.ctx&&typeof k.ctx.close<"u"&&(k.ctx.close(),k.ctx=null,D()),k},codecs:function(k){return(this||A)._codecs[k.replace(/^x-/,"")]},_setup:function(){var k=this||A;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($){k.noAudio=!0}else k.noAudio=!0;try{var I=new Audio;I.muted&&(k.noAudio=!0)}catch($){}return k.noAudio||k._setupCodecs(),k},_setupCodecs:function(){var k=this||A,I=null;try{I=typeof Audio<"u"?new Audio:null}catch(V){return k}if(!I||typeof I.canPlayType!="function")return k;var $=I.canPlayType("audio/mpeg;").replace(/^no$/,""),M=k._navigator?k._navigator.userAgent:"",L=M.match(/OPR\/([0-6].)/g),H=L&&parseInt(L[0].split("/")[1],10)<33,z=M.indexOf("Safari")!==-1&&M.indexOf("Chrome")===-1,Q=M.match(/Version\/(.*?) /),q=z&&Q&&parseInt(Q[1],10)<15;return k._codecs={mp3:!!(!H&&($||I.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!$,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||A;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($){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 V=0;V"u"||!A.usingWebAudio)){for(var I=0;I"u"||!A.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",!$._playLock)){for(var L=0,H=0;H<$._sounds.length;H++)$._sounds[H]._paused&&!$._sounds[H]._ended&&(L++,M=$._sounds[H]._id);L===1?k=null:M=null}}var z=M?$._soundById(M):$._inactiveSound();if(!z)return null;if(M&&!k&&(k=z._sprite||"__default"),$._state!=="loaded"){z._sprite=k,z._ended=!1;var Q=z._id;return $._queue.push({event:"play",action:function(){$.play(Q)}}),Q}if(M&&!z._paused)return I||$._loadQueue("play"),z._id;$._webAudio&&A._autoResume();var q=Math.max(0,z._seek>0?z._seek:$._sprite[k][0]/1e3),V=Math.max(0,($._sprite[k][0]+$._sprite[k][1])/1e3-q),U=V*1e3/Math.abs(z._rate),W=$._sprite[k][0]/1e3,K=($._sprite[k][0]+$._sprite[k][1])/1e3;z._sprite=k,z._ended=!1;var Z=function(){z._paused=!1,z._seek=q,z._start=W,z._stop=K,z._loop=!!(z._loop||$._sprite[k][2])};if(q>=K){$._ended(z);return}var te=z._node;if($._webAudio){var ne=function(){$._playLock=!1,Z(),$._refreshBuffer(z);var he=z._muted||$._muted?0:z._volume;te.gain.setValueAtTime(he,A.ctx.currentTime),z._playStart=A.ctx.currentTime,typeof te.bufferSource.start>"u"?z._loop?te.bufferSource.noteGrainOn(0,q,86400):te.bufferSource.noteGrainOn(0,q,V):z._loop?te.bufferSource.start(0,q,86400):te.bufferSource.start(0,q,V),U!==1/0&&($._endTimers[z._id]=setTimeout($._ended.bind($,z),U)),I||setTimeout(function(){$._emit("play",z._id),$._loadQueue()},0)};A.state==="running"&&A.ctx.state!=="interrupted"?ne():($._playLock=!0,$.once("resume",ne),$._clearTimer(z._id))}else{var ue=function(){te.currentTime=q,te.muted=z._muted||$._muted||A._muted||te.muted,te.volume=z._volume*A.volume(),te.playbackRate=z._rate;try{var he=te.play();if(he&&typeof Promise<"u"&&(he instanceof Promise||typeof he.then=="function")?($._playLock=!0,Z(),he.then(function(){$._playLock=!1,te._unlocked=!0,I?$._loadQueue():$._emit("play",z._id)}).catch(function(){$._playLock=!1,$._emit("playerror",z._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."),z._ended=!0,z._paused=!0})):I||($._playLock=!1,Z(),$._emit("play",z._id)),te.playbackRate=z._rate,te.paused){$._emit("playerror",z._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"||z._loop?$._endTimers[z._id]=setTimeout($._ended.bind($,z),U):($._endTimers[z._id]=function(){$._ended(z),te.removeEventListener("ended",$._endTimers[z._id],!1)},te.addEventListener("ended",$._endTimers[z._id],!1))}catch(me){$._emit("playerror",z._id,me)}};te.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(te.src=$._src,te.load());var X=window&&window.ejecta||!te.readyState&&A._navigator.isCocoonJS;if(te.readyState>=3||X)ue();else{$._playLock=!0,$._state="loading";var se=function(){$._state="loaded",ue(),te.removeEventListener(A._canPlayEvent,se,!1)};te.addEventListener(A._canPlayEvent,se,!1),$._clearTimer(z._id)}}return z._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 $=I._getSoundIds(k),M=0;M<$.length;M++){I._clearTimer($[M]);var L=I._soundById($[M]);if(L&&!L._paused&&(L._seek=I.seek($[M]),L._rateSeek=0,L._paused=!0,I._stopFade($[M]),L._node))if(I._webAudio){if(!L._node.bufferSource)continue;typeof L._node.bufferSource.stop>"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 $=this;if($._state!=="loaded"||$._playLock)return $._queue.push({event:"stop",action:function(){$.stop(k)}}),$;for(var M=$._getSoundIds(k),L=0;L"u"?H._node.bufferSource.noteOff(0):H._node.bufferSource.stop(0),$._cleanBuffer(H._node)):(!isNaN(H._node.duration)||H._node.duration===1/0)&&(H._node.currentTime=H._start||0,H._node.pause(),H._node.duration===1/0&&$._clearSound(H._node))),I||$._emit("stop",H._id))}return $},mute:function(k,I){var $=this;if($._state!=="loaded"||$._playLock)return $._queue.push({event:"mute",action:function(){$.mute(k,I)}}),$;if(typeof I>"u")if(typeof k=="boolean")$._muted=k;else return $._muted;for(var M=$._getSoundIds(I),L=0;L"u"){var L=k._getSoundIds(),H=L.indexOf(I[0]);H>=0?M=parseInt(I[0],10):$=parseFloat(I[0])}else I.length>=2&&($=parseFloat(I[0]),M=parseInt(I[1],10));var z;if(typeof $<"u"&&$>=0&&$<=1){if(k._state!=="loaded"||k._playLock)return k._queue.push({event:"volume",action:function(){k.volume.apply(k,I)}}),k;typeof M>"u"&&(k._volume=$),M=k._getSoundIds(M);for(var Q=0;Q"u")}}return L},_startFadeInterval:function(k,I,$,M,L,H){var z=this,Q=I,q=$-I,V=Math.abs(q/.01),U=Math.max(4,V>0?M/V:M),W=Date.now();k._fadeTo=$,k._interval=setInterval(function(){var K=(Date.now()-W)/M;W=Date.now(),Q+=q*K,Q=Math.round(Q*100)/100,q<0?Q=Math.max($,Q):Q=Math.min($,Q),z._webAudio?k._volume=Q:z.volume(Q,k._id,!0),H&&(z._volume=Q),($I&&Q>=$)&&(clearInterval(k._interval),k._interval=null,k._fadeTo=null,z.volume($,k._id),z._emit("fade",k._id))},U)},_stopFade:function(k){var I=this,$=I._soundById(k);return $&&$._interval&&(I._webAudio&&$._node.gain.cancelScheduledValues(A.ctx.currentTime),clearInterval($._interval),$._interval=null,I.volume($._fadeTo,k),$._fadeTo=null,I._emit("fade",k)),I},loop:function(){var k=this,I=arguments,$,M,L;if(I.length===0)return k._loop;if(I.length===1)if(typeof I[0]=="boolean")$=I[0],k._loop=$;else return L=k._soundById(parseInt(I[0],10)),L?L._loop:!1;else I.length===2&&($=I[0],M=parseInt(I[1],10));for(var H=k._getSoundIds(M),z=0;z=0?M=parseInt(I[0],10):$=parseFloat(I[0])}else I.length===2&&($=parseFloat(I[0]),M=parseInt(I[1],10));var z;if(typeof $=="number"){if(k._state!=="loaded"||k._playLock)return k._queue.push({event:"rate",action:function(){k.rate.apply(k,I)}}),k;typeof M>"u"&&(k._rate=$),M=k._getSoundIds(M);for(var Q=0;Q=0?M=parseInt(I[0],10):k._sounds.length&&(M=k._sounds[0]._id,$=parseFloat(I[0]))}else I.length===2&&($=parseFloat(I[0]),M=parseInt(I[1],10));if(typeof M>"u")return 0;if(typeof $=="number"&&(k._state!=="loaded"||k._playLock))return k._queue.push({event:"seek",action:function(){k.seek.apply(k,I)}}),k;var z=k._soundById(M);if(z)if(typeof $=="number"&&$>=0){var Q=k.playing(M);Q&&k.pause(M,!0),z._seek=$,z._ended=!1,k._clearTimer(M),!k._webAudio&&z._node&&!isNaN(z._node.duration)&&(z._node.currentTime=$);var q=function(){Q&&k.play(M,!0),k._emit("seek",M)};if(Q&&!k._webAudio){var V=function(){k._playLock?setTimeout(V,0):q()};setTimeout(V,0)}else q()}else if(k._webAudio){var U=k.playing(M)?A.ctx.currentTime-z._playStart:0,W=z._rateSeek?z._rateSeek-z._seek:0;return z._seek+(W+U*Math.abs(z._rate))}else return z._node.currentTime;return k},playing:function(k){var I=this;if(typeof k=="number"){var $=I._soundById(k);return $?!$._paused:!1}for(var M=0;M=0&&A._howls.splice(M,1);var L=!0;for($=0;$=0){L=!1;break}return x&&L&&delete x[k._src],A.noAudio=!1,k._state="unloaded",k._sounds=[],k=null,null},on:function(k,I,$,M){var L=this,H=L["_on"+k];return typeof I=="function"&&H.push(M?{id:$,fn:I,once:M}:{id:$,fn:I}),L},off:function(k,I,$){var M=this,L=M["_on"+k],H=0;if(typeof I=="number"&&($=I,I=null),I||$)for(H=0;H=0;H--)(!L[H].id||L[H].id===I||k==="load")&&(setTimeout((function(z){z.call(this,I,$)}).bind(M,L[H].fn),0),L[H].once&&M.off(k,L[H].fn,L[H].id));return M._loadQueue(k),M},_loadQueue:function(k){var I=this;if(I._queue.length>0){var $=I._queue[0];$.event===k&&(I._queue.shift(),I._loadQueue()),k||$.action()}return I},_ended:function(k){var I=this,$=k._sprite;if(!I._webAudio&&k._node&&!k._node.paused&&!k._node.ended&&k._node.currentTime=0;M--){if($<=I)return;k._sounds[M]._ended&&(k._webAudio&&k._sounds[M]._node&&k._sounds[M]._node.disconnect(0),k._sounds.splice(M,1),$--)}}},_getSoundIds:function(k){var I=this;if(typeof k>"u"){for(var $=[],M=0;M=0;if(A._scratchBuffer&&k.bufferSource&&(k.bufferSource.onended=null,k.bufferSource.disconnect(0),$))try{k.bufferSource.buffer=A._scratchBuffer}catch(M){}return k.bufferSource=null,I},_clearSound:function(k){var I=/MSIE |Trident\//.test(A._navigator&&A._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=++A._counter,I._sounds.push(k),k.create(),k},create:function(){var k=this,I=k._parent,$=A._muted||k._muted||k._parent._muted?0:k._volume;return I._webAudio?(k._node=typeof A.ctx.createGain>"u"?A.ctx.createGainNode():A.ctx.createGain(),k._node.gain.setValueAtTime($,A.ctx.currentTime),k._node.paused=!0,k._node.connect(A.masterGain)):A.noAudio||(k._node=A._obtainHtml5Audio(),k._errorFn=k._errorListener.bind(k),k._node.addEventListener("error",k._errorFn,!1),k._loadFn=k._loadListener.bind(k),k._node.addEventListener(A._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=$*A.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=++A._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(A._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 x={},S=function(k){var I=k._src;if(x[I]){k._duration=x[I].duration,B(k);return}if(/^data:[^;]+;base64,/.test(I)){for(var $=atob(I.split(",")[1]),M=new Uint8Array($.length),L=0;L<$.length;++L)M[L]=$.charCodeAt(L);P(M.buffer,k)}else{var H=new XMLHttpRequest;H.open(k._xhr.method,I,!0),H.withCredentials=k._xhr.withCredentials,H.responseType="arraybuffer",k._xhr.headers&&Object.keys(k._xhr.headers).forEach(function(z){H.setRequestHeader(z,k._xhr.headers[z])}),H.onload=function(){var z=(H.status+"")[0];if(z!=="0"&&z!=="2"&&z!=="3"){k._emit("loaderror",null,"Failed loading audio file with status: "+H.status+".");return}P(H.response,k)},H.onerror=function(){k._webAudio&&(k._html5=!0,k._webAudio=!1,k._sounds=[],delete x[I],k.load())},E(H)}},E=function(k){try{k.send()}catch(I){k.onerror()}},P=function(k,I){var $=function(){I._emit("loaderror",null,"Decoding audio data failed.")},M=function(L){L&&I._sounds.length>0?(x[I._src]=L,B(I,L)):$()};typeof Promise<"u"&&A.ctx.decodeAudioData.length===1?A.ctx.decodeAudioData(k).then(M).catch($):A.ctx.decodeAudioData(k,M,$)},B=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())},D=function(){if(A.usingWebAudio){try{typeof AudioContext<"u"?A.ctx=new AudioContext:typeof webkitAudioContext<"u"?A.ctx=new webkitAudioContext:A.usingWebAudio=!1}catch(L){A.usingWebAudio=!1}A.ctx||(A.usingWebAudio=!1);var k=/iP(hone|od|ad)/.test(A._navigator&&A._navigator.platform),I=A._navigator&&A._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),$=I?parseInt(I[1],10):null;if(k&&$&&$<9){var M=/safari/.test(A._navigator&&A._navigator.userAgent.toLowerCase());A._navigator&&!M&&(A.usingWebAudio=!1)}A.usingWebAudio&&(A.masterGain=typeof A.ctx.createGain>"u"?A.ctx.createGainNode():A.ctx.createGain(),A.masterGain.gain.setValueAtTime(A._muted?0:A._volume,A.ctx.currentTime),A.masterGain.connect(A.ctx.destination)),A._setup()}};d.Howler=A,d.Howl=C,typeof commonjsGlobal<"u"?(commonjsGlobal.HowlerGlobal=b,commonjsGlobal.Howler=A,commonjsGlobal.Howl=C,commonjsGlobal.Sound=w):typeof window<"u"&&(window.HowlerGlobal=b,window.Howler=A,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(A){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(A);return C},HowlerGlobal.prototype.pos=function(A,C,w){var x=this;if(!x.ctx||!x.ctx.listener)return x;if(C=typeof C!="number"?x._pos[1]:C,w=typeof w!="number"?x._pos[2]:w,typeof A=="number")x._pos=[A,C,w],typeof x.ctx.listener.positionX<"u"?(x.ctx.listener.positionX.setTargetAtTime(x._pos[0],Howler.ctx.currentTime,.1),x.ctx.listener.positionY.setTargetAtTime(x._pos[1],Howler.ctx.currentTime,.1),x.ctx.listener.positionZ.setTargetAtTime(x._pos[2],Howler.ctx.currentTime,.1)):x.ctx.listener.setPosition(x._pos[0],x._pos[1],x._pos[2]);else return x._pos;return x},HowlerGlobal.prototype.orientation=function(A,C,w,x,S,E){var P=this;if(!P.ctx||!P.ctx.listener)return P;var B=P._orientation;if(C=typeof C!="number"?B[1]:C,w=typeof w!="number"?B[2]:w,x=typeof x!="number"?B[3]:x,S=typeof S!="number"?B[4]:S,E=typeof E!="number"?B[5]:E,typeof A=="number")P._orientation=[A,C,w,x,S,E],typeof P.ctx.listener.forwardX<"u"?(P.ctx.listener.forwardX.setTargetAtTime(A,Howler.ctx.currentTime,.1),P.ctx.listener.forwardY.setTargetAtTime(C,Howler.ctx.currentTime,.1),P.ctx.listener.forwardZ.setTargetAtTime(w,Howler.ctx.currentTime,.1),P.ctx.listener.upX.setTargetAtTime(x,Howler.ctx.currentTime,.1),P.ctx.listener.upY.setTargetAtTime(S,Howler.ctx.currentTime,.1),P.ctx.listener.upZ.setTargetAtTime(E,Howler.ctx.currentTime,.1)):P.ctx.listener.setOrientation(A,C,w,x,S,E);else return B;return P},Howl.prototype.init=function(A){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}]:[],A.call(this,C)}}(Howl.prototype.init),Howl.prototype.stereo=function(A,C){var w=this;if(!w._webAudio)return w;if(w._state!=="loaded")return w._queue.push({event:"stereo",action:function(){w.stereo(A,C)}}),w;var x=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof C>"u")if(typeof A=="number")w._stereo=A,w._pos=[A,0,0];else return w._stereo;for(var S=w._getSoundIds(C),E=0;E"u")if(typeof A=="number")S._pos=[A,C,w];else return S._pos;for(var E=S._getSoundIds(x),P=0;P"u")if(typeof A=="number")S._orientation=[A,C,w];else return S._orientation;for(var E=S._getSoundIds(x),P=0;P"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}),A._pannerAttr={coneInnerAngle:typeof w.pannerAttr.coneInnerAngle<"u"?w.pannerAttr.coneInnerAngle:A._coneInnerAngle,coneOuterAngle:typeof w.pannerAttr.coneOuterAngle<"u"?w.pannerAttr.coneOuterAngle:A._coneOuterAngle,coneOuterGain:typeof w.pannerAttr.coneOuterGain<"u"?w.pannerAttr.coneOuterGain:A._coneOuterGain,distanceModel:typeof w.pannerAttr.distanceModel<"u"?w.pannerAttr.distanceModel:A._distanceModel,maxDistance:typeof w.pannerAttr.maxDistance<"u"?w.pannerAttr.maxDistance:A._maxDistance,refDistance:typeof w.pannerAttr.refDistance<"u"?w.pannerAttr.refDistance:A._refDistance,rolloffFactor:typeof w.pannerAttr.rolloffFactor<"u"?w.pannerAttr.rolloffFactor:A._rolloffFactor,panningModel:typeof w.pannerAttr.panningModel<"u"?w.pannerAttr.panningModel:A._panningModel});else return S=A._soundById(parseInt(C[0],10)),S?S._pannerAttr:A._pannerAttr;else C.length===2&&(w=C[0],x=parseInt(C[1],10));for(var E=A._getSoundIds(x),P=0;P{let A=-1;for(let C=0;C=w)A=C;else break}if(A>-1&&metronomeData.activeIndex!==A){metronomeData.activeIndex=A,this.playAudio();return}});Hn(this,"playAudio",()=>{metronomeData.initPlayerState&&this.source.play()});Hn(this,"loadAudio1",()=>new howler.Howl({src:tockAndTick.tick}));Hn(this,"loadAudio2",()=>new howler.Howl({src:tockAndTick.tock}))}init(b){this.calculation(b),metronomeData.activeList=[]}initPlayer(){this.source||(this.source=this.loadAudio1()),this.source.volume(metronomeData.disable?0:1),metronomeData.initPlayerState=!0}selectPlay(){}getStep(b){for(let A=0;Ax.time===b);if(w)return w}return{}}calculation(b){var E,P,B,D;const A=[];let C=-1,w=-1;for(let k=0;k-1)if($!=w){const M={measureNumberXML:$,numerator:((P=I==null?void 0:I.measure)==null?void 0:P.numerator)||0,time:(B=I==null?void 0:I.timeNote)==null?void 0:B.millisecondsPerMeasure,stepList:[],notes:[I]};C++,A[C]=M,w=$}else A[C].notes.push(I)}const x=[],S=[];try{for(let k=0;k{var U;return q+((U=V==null?void 0:V.abcNote)==null?void 0:U.duration)},0),H=Math.floor(L/M),z=$.notes[0].timeNote.milliseconds,Q=$.notes[0].timeNote.millisecondsPerMeasure/$.numerator;for(let q=0;q<$.numerator;q++){const V=Q*q+z;x.push(V),I.push(V)}}}catch(k){console.log(k)}metronomeData.metroList=x,metronomeData.metroMeasure=S,metronomeData.activeMetro=((D=S[0])==null?void 0:D[0])||{}}}var lodash_isempty={exports:{}};lodash_isempty.exports;(function(d,b){var A=9007199254740991,C="[object Arguments]",w="[object Function]",x="[object GeneratorFunction]",S="[object Map]",E="[object Object]",P="[object Promise]",B="[object Set]",D="[object WeakMap]",k="[object DataView]",I=/[\\^$.*+?()[\]{}|]/g,$=/^\[object .+?Constructor\]$/,M=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,L=typeof self=="object"&&self&&self.Object===Object&&self,H=M||L||Function("return this")(),z=b&&!b.nodeType&&b,Q=z&&!0&&d&&!d.nodeType&&d,q=Q&&Q.exports===z;function V(tt,at){return tt==null?void 0:tt[at]}function U(tt){var at=!1;if(tt!=null&&typeof tt.toString!="function")try{at=!!(tt+"")}catch(Et){}return at}function W(tt,at){return function(Et){return tt(at(Et))}}var K=Function.prototype,Z=Object.prototype,te=H["__core-js_shared__"],ne=function(){var tt=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return tt?"Symbol(src)_1."+tt:""}(),ue=K.toString,X=Z.hasOwnProperty,se=Z.toString,he=RegExp("^"+ue.call(X).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=q?H.Buffer:void 0,ie=Z.propertyIsEnumerable,de=me?me.isBuffer:void 0,be=W(Object.keys,Object),ge=Te(H,"DataView"),Se=Te(H,"Map"),je=Te(H,"Promise"),Ye=Te(H,"Set"),st=Te(H,"WeakMap"),ot=!ie.call({valueOf:1},"valueOf"),et=Ke(ge),lt=Ke(Se),Me=Ke(je),Oe=Ke(Ye),Qe=Ke(st);function Ze(tt){return se.call(tt)}function it(tt){if(!Ue(tt)||He(tt))return!1;var at=ve(tt)||U(tt)?he:$;return at.test(Ke(tt))}function Te(tt,at){var Et=V(tt,at);return it(Et)?Et:void 0}var _e=Ze;(ge&&_e(new ge(new ArrayBuffer(1)))!=k||Se&&_e(new Se)!=S||je&&_e(je.resolve())!=P||Ye&&_e(new Ye)!=B||st&&_e(new st)!=D)&&(_e=function(tt){var at=se.call(tt),Et=at==E?tt.constructor:void 0,Dt=Et?Ke(Et):void 0;if(Dt)switch(Dt){case et:return k;case lt:return S;case Me:return P;case Oe:return B;case Qe:return D}return at});function He(tt){return!!ne&&ne in tt}function Je(tt){var at=tt&&tt.constructor,Et=typeof at=="function"&&at.prototype||Z;return tt===Et}function Ke(tt){if(tt!=null){try{return ue.call(tt)}catch(at){}try{return tt+""}catch(at){}}return""}function Ie(tt){return ee(tt)&&X.call(tt,"callee")&&(!ie.call(tt,"callee")||se.call(tt)==C)}var Fe=Array.isArray;function ae(tt){return tt!=null&&Be(tt.length)&&!ve(tt)}function ee(tt){return rt(tt)&&ae(tt)}var J=de||pt;function le(tt){if(ae(tt)&&(Fe(tt)||typeof tt=="string"||typeof tt.splice=="function"||J(tt)||Ie(tt)))return!tt.length;var at=_e(tt);if(at==S||at==B)return!tt.size;if(ot||Je(tt))return!be(tt).length;for(var Et in tt)if(X.call(tt,Et))return!1;return!0}function ve(tt){var at=Ue(tt)?se.call(tt):"";return at==w||at==x}function Be(tt){return typeof tt=="number"&&tt>-1&&tt%1==0&&tt<=A}function Ue(tt){var at=typeof tt;return!!tt&&(at=="object"||at=="function")}function rt(tt){return!!tt&&typeof tt=="object"}function pt(){return!1}d.exports=le})(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(A){}return b}function overArg(d,b){return function(A){return d(b(A))}}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 A=hasOwnProperty.call(b,"constructor")&&b.constructor;return typeof A=="function"&&A instanceof A&&funcToString.call(A)==objectCtorString}var lodash_isplainobject=isPlainObject$1,lodash_transform={exports:{}};lodash_transform.exports;(function(d,b){var A=200,C="Expected a function",w="__lodash_hash_undefined__",x=1,S=2,E=1/0,P=9007199254740991,B="[object Arguments]",D="[object Array]",k="[object Boolean]",I="[object Date]",$="[object Error]",M="[object Function]",L="[object GeneratorFunction]",H="[object Map]",z="[object Number]",Q="[object Object]",q="[object Promise]",V="[object RegExp]",U="[object Set]",W="[object String]",K="[object Symbol]",Z="[object WeakMap]",te="[object ArrayBuffer]",ne="[object DataView]",ue="[object Float32Array]",X="[object Float64Array]",se="[object Int8Array]",he="[object Int16Array]",me="[object Int32Array]",ie="[object Uint8Array]",de="[object Uint8ClampedArray]",be="[object Uint16Array]",ge="[object Uint32Array]",Se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,Ye=/^\./,st=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,et=/\\(\\)?/g,lt=/^\[object .+?Constructor\]$/,Me=/^(?:0|[1-9]\d*)$/,Oe={};Oe[ue]=Oe[X]=Oe[se]=Oe[he]=Oe[me]=Oe[ie]=Oe[de]=Oe[be]=Oe[ge]=!0,Oe[B]=Oe[D]=Oe[te]=Oe[k]=Oe[ne]=Oe[I]=Oe[$]=Oe[M]=Oe[H]=Oe[z]=Oe[Q]=Oe[V]=Oe[U]=Oe[W]=Oe[Z]=!1;var Qe=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Ze=typeof self=="object"&&self&&self.Object===Object&&self,it=Qe||Ze||Function("return this")(),Te=b&&!b.nodeType&&b,_e=Te&&!0&&d&&!d.nodeType&&d,He=_e&&_e.exports===Te,Je=He&&Qe.process,Ke=function(){try{return Je&&Je.binding("util")}catch(Ee){}}(),Ie=Ke&&Ke.isTypedArray;function Fe(Ee,qe){for(var Ct=-1,$t=Ee?Ee.length:0;++Ct<$t&&qe(Ee[Ct],Ct,Ee)!==!1;);return Ee}function ae(Ee,qe){for(var Ct=-1,$t=Ee?Ee.length:0;++Ct<$t;)if(qe(Ee[Ct],Ct,Ee))return!0;return!1}function ee(Ee){return function(qe){return qe==null?void 0:qe[Ee]}}function J(Ee,qe){for(var Ct=-1,$t=Array(Ee);++Ct-1}function wr(Ee,qe){var Ct=this.__data__,$t=Xr(Ct,Ee);return $t<0?Ct.push([Ee,qe]):Ct[$t][1]=qe,this}Ot.prototype.clear=Lt,Ot.prototype.delete=Nt,Ot.prototype.get=Ht,Ot.prototype.has=sr,Ot.prototype.set=wr;function br(Ee){var qe=-1,Ct=Ee?Ee.length:0;for(this.clear();++qeKt))return!1;var vr=zt.get(Ee);if(vr&&zt.get(qe))return vr==qe;var Pr=-1,Tr=!0,xr=jt&x?new ir:void 0;for(zt.set(Ee,qe),zt.set(qe,Ee);++Pr-1&&Ee%1==0&&Ee-1&&Ee%1==0&&Ee<=P}function Hr(Ee){var qe=typeof Ee;return!!Ee&&(qe=="object"||qe=="function")}function eo(Ee){return!!Ee&&typeof Ee=="object"}function to(Ee){return typeof Ee=="symbol"||eo(Ee)&&we.call(Ee)==K}var Nr=Ie?le(Ie):Xn;function ci(Ee){return Ee==null?"":ni(Ee)}function ui(Ee,qe,Ct){var $t=Ee==null?void 0:go(Ee,qe);return $t===void 0?Ct:$t}function di(Ee,qe){return Ee!=null&&ta(Ee,qe,mo)}function ro(Ee){return zo(Ee)?Pn(Ee):yo(Ee)}function fi(Ee,qe,Ct){var $t=gn(Ee)||Nr(Ee);if(qe=xn(qe),Ct==null)if($t||Hr(Ee)){var jt=Ee.constructor;$t?Ct=gn(Ee)?new jt:[]:Ct=yr(jt)?wn(gt(Ee)):{}}else Ct={};return($t?Fe:po)(Ee,function(zt,rr,Kt){return qe(Ct,zt,rr,Kt)}),Ct}function hi(Ee){return Ee}function Or(Ee){return wo(Ee)?ee(xo(Ee)):ri(Ee)}d.exports=fi})(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:A=[],cleanValues:C=[],emptyArrays:w=!0,emptyObjects:x=!0,emptyStrings:S=!0,NaNValues:E=!1,nullValues:P=!0,undefinedValues:B=!0}={}){return transform(b,(D,k,I)=>{if(!A.includes(I)&&((Array.isArray(k)||isPlainObject(k))&&(k=d(k,{NaNValues:E,cleanKeys:A,cleanValues:C,emptyArrays:w,emptyObjects:x,emptyStrings:S,nullValues:P,undefinedValues:B})),!C.includes(k)&&!(x&&isPlainObject(k)&&isEmpty(k))&&!(w&&Array.isArray(k)&&!k.length)&&!(S&&k==="")&&!(E&&Number.isNaN(k))&&!(P&&k===null)&&!(B&&k===void 0))){if(Array.isArray(D))return D.push(k);D[I]=k}})};const cleanDeep=getDefaultExportFromCjs(src);var FileSaver_min={exports:{}};(function(d,b){(function(A,C){C()})(commonjsGlobal,function(){function A(B,D){return typeof D>"u"?D={autoBom:!1}:typeof D!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),D={autoBom:!D}),D.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(B.type)?new Blob(["\uFEFF",B],{type:B.type}):B}function C(B,D,k){var I=new XMLHttpRequest;I.open("GET",B),I.responseType="blob",I.onload=function(){P(I.response,D,k)},I.onerror=function(){console.error("could not download file")},I.send()}function w(B){var D=new XMLHttpRequest;D.open("HEAD",B,!1);try{D.send()}catch(k){}return 200<=D.status&&299>=D.status}function x(B){try{B.dispatchEvent(new MouseEvent("click"))}catch(k){var D=document.createEvent("MouseEvents");D.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),B.dispatchEvent(D)}}var S=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal=="object"&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,E=S.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),P=S.saveAs||(typeof window!="object"||window!==S?function(){}:"download"in HTMLAnchorElement.prototype&&!E?function(B,D,k){var I=S.URL||S.webkitURL,$=document.createElement("a");D=D||B.name||"download",$.download=D,$.rel="noopener",typeof B=="string"?($.href=B,$.origin===location.origin?x($):w($.href)?C(B,D,k):x($,$.target="_blank")):($.href=I.createObjectURL(B),setTimeout(function(){I.revokeObjectURL($.href)},4e4),setTimeout(function(){x($)},0))}:"msSaveOrOpenBlob"in navigator?function(B,D,k){if(D=D||B.name||"download",typeof B!="string")navigator.msSaveOrOpenBlob(A(B,k),D);else if(w(B))C(B,D,k);else{var I=document.createElement("a");I.href=B,I.target="_blank",setTimeout(function(){x(I)})}}:function(B,D,k,I){if(I=I||open("","_blank"),I&&(I.document.title=I.document.body.innerText="downloading..."),typeof B=="string")return C(B,D,k);var $=B.type==="application/octet-stream",M=/constructor/i.test(S.HTMLElement)||S.safari,L=/CriOS\/[\d]+/.test(navigator.userAgent);if((L||$&&M||E)&&typeof FileReader<"u"){var H=new FileReader;H.onloadend=function(){var q=H.result;q=L?q:q.replace(/^data:[^;]*;/,"data:attachment/file;"),I?I.location.href=q:location=q,I=null},H.readAsDataURL(B)}else{var z=S.URL||S.webkitURL,Q=z.createObjectURL(B);I?I.location=Q:location.href=Q,I=null,setTimeout(function(){z.revokeObjectURL(Q)},4e4)}});S.saveAs=P.saveAs=P,d.exports=P})})(FileSaver_min);var FileSaver_minExports=FileSaver_min.exports;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=()=>{};function unrefElement(d){var b;const A=toValue(d);return(b=A==null?void 0:A.$el)!=null?b:A}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...d){let b,A,C,w;if(typeof d[0]=="string"||Array.isArray(d[0])?([A,C,w]=d,b=defaultWindow):[b,A,C,w]=d,!b)return noop;Array.isArray(A)||(A=[A]),Array.isArray(C)||(C=[C]);const x=[],S=()=>{x.forEach(D=>D()),x.length=0},E=(D,k,I,$)=>(D.addEventListener(k,I,$),()=>D.removeEventListener(k,I,$)),P=watch(()=>[unrefElement(b),toValue(w)],([D,k])=>{S(),D&&x.push(...A.flatMap(I=>C.map($=>E(D,I,$,k))))},{immediate:!0,flush:"post"}),B=()=>{P(),S()};return tryOnScopeDispose(B),B}function useDocumentVisibility({document:d=defaultDocument}={}){if(!d)return ref("visible");const b=ref(d.visibilityState);return useEventListener(d,"visibilitychange",()=>{b.value=d.visibilityState}),b}var cosJsSdkV5={exports:{}};(function(module,exports){(function(b,A){module.exports=A()})(commonjsGlobal,function(){return function(d){var b={};function A(C){if(b[C])return b[C].exports;var w=b[C]={i:C,l:!1,exports:{}};return d[C].call(w.exports,w,w.exports,A),w.l=!0,w.exports}return A.m=d,A.c=b,A.d=function(C,w,x){A.o(C,w)||Object.defineProperty(C,w,{enumerable:!0,get:x})},A.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},A.t=function(C,w){if(w&1&&(C=A(C)),w&8||w&4&&typeof C=="object"&&C&&C.__esModule)return C;var x=Object.create(null);if(A.r(x),Object.defineProperty(x,"default",{enumerable:!0,value:C}),w&2&&typeof C!="string")for(var S in C)A.d(x,S,(function(E){return C[E]}).bind(null,S));return x},A.n=function(C){var w=C&&C.__esModule?function(){return C.default}:function(){return C};return A.d(w,"a",w),w},A.o=function(C,w){return Object.prototype.hasOwnProperty.call(C,w)},A.p="/dist/",A(A.s="./index.js")}({"./index.js":function(d,b,A){var C=A("./src/cos.js");d.exports=C},"./lib/base64.js":function(d,b){var A=function(C){C=C||{};var w=C.Base64,x="2.1.9",S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=function(ne){for(var ue={},X=0,se=ne.length;X>>6)+P(128|X&63):P(224|X>>>12&15)+P(128|X>>>6&63)+P(128|X&63)}else{var X=65536+(ue.charCodeAt(0)-55296)*1024+(ue.charCodeAt(1)-56320);return P(240|X>>>18&7)+P(128|X>>>12&63)+P(128|X>>>6&63)+P(128|X&63)}},D=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,k=function(ue){return ue.replace(D,B)},I=function(ue){var X=[0,2,1][ue.length%3],se=ue.charCodeAt(0)<<16|(ue.length>1?ue.charCodeAt(1):0)<<8|(ue.length>2?ue.charCodeAt(2):0),he=[S.charAt(se>>>18),S.charAt(se>>>12&63),X>=2?"=":S.charAt(se>>>6&63),X>=1?"=":S.charAt(se&63)];return he.join("")},$=C.btoa?function(ne){return C.btoa(ne)}:function(ne){return ne.replace(/[\s\S]{1,3}/g,I)},M=function(ne){return $(k(ne))},L=function(ue,X){return X?M(String(ue)).replace(/[+\/]/g,function(se){return se=="+"?"-":"_"}).replace(/=/g,""):M(String(ue))},H=function(ue){return L(ue,!0)},z=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),Q=function(ue){switch(ue.length){case 4:var X=(7&ue.charCodeAt(0))<<18|(63&ue.charCodeAt(1))<<12|(63&ue.charCodeAt(2))<<6|63&ue.charCodeAt(3),se=X-65536;return P((se>>>10)+55296)+P((se&1023)+56320);case 3:return P((15&ue.charCodeAt(0))<<12|(63&ue.charCodeAt(1))<<6|63&ue.charCodeAt(2));default:return P((31&ue.charCodeAt(0))<<6|63&ue.charCodeAt(1))}},q=function(ue){return ue.replace(z,Q)},V=function(ue){var X=ue.length,se=X%4,he=(X>0?E[ue.charAt(0)]<<18:0)|(X>1?E[ue.charAt(1)]<<12:0)|(X>2?E[ue.charAt(2)]<<6:0)|(X>3?E[ue.charAt(3)]:0),me=[P(he>>>16),P(he>>>8&255),P(he&255)];return me.length-=[0,0,2,1][se],me.join("")},U=C.atob?function(ne){return C.atob(ne)}:function(ne){return ne.replace(/[\s\S]{1,4}/g,V)},W=function(ne){return q(U(ne))},K=function(ue){return W(String(ue).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},Z=function(){var ue=C.Base64;return C.Base64=w,ue},te={VERSION:x,atob:U,btoa:$,fromBase64:K,toBase64:L,utob:k,encode:L,encodeURI:H,btou:q,decode:K,noConflict:Z};return te}();d.exports=A},"./lib/beacon.min.js":function(d,b,A){var C,w,x=A("./node_modules/@babel/runtime/helpers/typeof.js");(function(S,E){x(b)=="object"&&typeof d<"u"?d.exports=E():(C=E,w=typeof C=="function"?C.call(b,A,b,d):C,w!==void 0&&(d.exports=w))})(this,function(){var S=function(ee,J){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ve){le.__proto__=ve}||function(le,ve){for(var Be in ve)Object.prototype.hasOwnProperty.call(ve,Be)&&(le[Be]=ve[Be])},S(ee,J)},E=function(){return E=Object.assign||function(ee){for(var J,le=1,ve=arguments.length;le0&&ve[ve.length-1])||at[0]!==6&&at[0]!==2)){Ue=0;continue}if(at[0]===3&&(!ve||at[1]>ve[0]&&at[1]"u"?"3":"4",mainAppKey:this.appkey,appVersion:ee,sdkVersion:J.sdkVersion,osVersion:J.userAgent,model:"",packageName:"",params:{A3:J.deviceId}}).then(function(Be){if(Be.data.ret==0)try{var Ue=JSON.parse(Be.data.beaconConfig);Ue&&(ve.processData(Ue),ve.storage.setItem(M,Be.data.beaconConfig))}catch(rt){}else ve.processData(null),ve.storage.setItem(M,"")}).catch(function(Be){})},ae.prototype.processData=function(ee){var J,le,ve,Be,Ue;this.strategy.isEventUpOnOff=(J=ee==null?void 0:ee.isEventUpOnOff)!==null&&J!==void 0?J:this.strategy.isEventUpOnOff,this.strategy.httpsUploadUrl=(le=ee==null?void 0:ee.httpsUploadUrl)!==null&&le!==void 0?le:this.strategy.httpsUploadUrl,this.strategy.requestInterval=(ve=ee==null?void 0:ee.requestInterval)!==null&&ve!==void 0?ve:this.strategy.requestInterval,this.strategy.blacklist=(Be=ee==null?void 0:ee.blacklist)!==null&&Be!==void 0?Be:this.strategy.blacklist,this.strategy.samplelist=(Ue=ee==null?void 0:ee.samplelist)!==null&&Ue!==void 0?Ue:this.strategy.samplelist;for(var rt=0,pt=this.strategy.samplelist;rt60*this.strategy.requestInterval*1e3},ae.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},ae.prototype.isBlackEvent=function(ee){return this.strategy.blacklist.indexOf(ee)!=-1},ae.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},ae.prototype.isSampleEvent=function(ee){return!!Object.prototype.hasOwnProperty.call(this.realSample,ee)&&this.realSample[ee]this.duration)return this.createSession();J=ve.sessionId,le=ve.sessionStart,this.getSessionStackDepth=0}catch(Ue){}return{sessionId:J,sessionStart:le}},ae.prototype.createSession=function(){var ee=Date.now(),J={sessionId:this.appkey+"_"+ee.toString(),sessionStart:ee};this.storage.setItem(Z,JSON.stringify(J)),this.storage.setItem(I,ee.toString());var le="is_new_user",ve=this.storage.getItem(le);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:ve?"N":"Y"}),this.storage.setItem(le,JSON.stringify(!1)),J},ae}();function ne(){var ae=navigator.userAgent,ee=ae.indexOf("compatible")>-1&&ae.indexOf("MSIE")>-1,J=ae.indexOf("Edge")>-1&&!ee,le=ae.indexOf("Trident")>-1&&ae.indexOf("rv:11.0")>-1;if(ee){new RegExp("MSIE (\\d+\\.\\d+);").test(ae);var ve=parseFloat(RegExp.$1);return ve==7?7:ve==8?8:ve==9?9:ve==10?10:6}return J?-2:le?11:-1}function ue(ae,ee){var J,le;return(J="https://tun-cos-1258344701.file.myqcloud.com/fp.js",le===void 0&&(le=Date.now()+"-"+Math.random()),new Promise(function(ve,Be){if(document.getElementById(le))ve(void 0);else{var Ue=document.getElementsByTagName("head")[0],rt=document.createElement("script");rt.onload=function(){return function(){rt.onload=null,ve(void 0)}},rt.onerror=function(pt){rt.onerror=null,Ue.removeChild(rt),Be(pt)},rt.src=J,rt.id=le,Ue.appendChild(rt)}})).then(function(){new Fingerprint().getQimei36(ae,ee)}).catch(function(ve){}),""}var X=function(){return(X=Object.assign||function(ee){for(var J,le=1,ve=arguments.length;le0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new be(J),this.dbEventCount=this.store.getCount()):(this.store=new de(ee),this.getCount().then(function(ve){le.dbEventCount=ve}).catch(function(ve){}))}return ae.prototype.getCount=function(){return P(this,void 0,void 0,function(){return B(this,function(ee){switch(ee.label){case 0:return ee.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,ee.sent()];case 2:return ee.sent(),[2,Promise.reject()];case 3:return[2]}})})},ae.prototype.insertEvent=function(ee,J){return P(this,void 0,void 0,function(){var le,ve;return B(this,function(Be){switch(Be.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];le=q(ee.mapValue),Be.label=1;case 1:return Be.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(le,ee)];case 2:return[2,Be.sent()];case 3:return ve=Be.sent(),J&&J(ve,ee),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},ae.prototype.getEvents=function(){return P(this,void 0,void 0,function(){var ee;return B(this,function(J){switch(J.label){case 0:ee=[],J.label=1;case 1:return J.trys.push([1,3,,4]),[4,this.store.iterate(function(le){ee.push(le)})];case 2:return J.sent(),[2,Promise.all(ee)];case 3:return J.sent(),[2,Promise.all(ee)];case 4:return[2]}})})},ae.prototype.removeEvent=function(ee){return P(this,void 0,void 0,function(){var J;return B(this,function(le){switch(le.label){case 0:J=q(ee.mapValue),le.label=1;case 1:return le.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(J)];case 2:return[2,le.sent()];case 3:return le.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},ae}(),Se=function(){return(Se=Object.assign||function(ee){for(var J,le=1,ve=arguments.length;le0&&ve[ve.length-1])||at[0]!==6&&at[0]!==2)){Ue=0;continue}if(at[0]===3&&(!ve||at[1]>ve[0]&&at[1]0&&Ue<8,le.isUnderIE8||(le.isUnderIE=Ue>0,J.needInitQimei&&ue(J.appkey,function(rt){le.qimei36=rt.q36}),le.network=new Je(J),le.storage=new Ke(J.appkey),le.initCommonInfo(J),le.store=new ge(J.appkey,le.storage),le.errorReport=new W(le.config,le.commonInfo,"web",le.network),le.strategy=new K(J.needQueryConfig==null||J.needQueryConfig,le.config,le.commonInfo,le.storage,le.network),le.logidStartTime=le.storage.getItem(Ie),le.logidStartTime||(le.logidStartTime=Date.now().toString(),le.storage.setItem(Ie,le.logidStartTime)),ve=le.logidStartTime,Be=Date.now()-Number.parseFloat(ve),Math.floor(Be/864e5)>=365&&le.storage.clear(),le.initSession(J),le.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return le.lifeCycle.emit("init")},0),le.initDelayTime=J.delay?J.delay:1e3,le.cycleTask(le.initDelayTime)),le}return function(J,le){if(typeof le!="function"&&le!==null)throw new TypeError("Class extends value "+String(le)+" is not a constructor or null");function ve(){this.constructor=J}S(J,le),J.prototype=le===null?Object.create(le):(ve.prototype=le.prototype,new ve)}(ee,ae),ee.prototype.initSession=function(J){var le=18e5;J.sessionDuration&&J.sessionDuration>3e4&&(le=J.sessionDuration),this.beaconSession=new te(this.storage,le,this)},ee.prototype.initCommonInfo=function(J){var le=Number(this.storage.getItem(I));try{var ve=JSON.parse(this.storage.getItem($));(Date.now()-le>3e4||!ve)&&this.storage.setItem($,JSON.stringify([]))}catch(Ue){}J.uploadUrl&&(this.uploadUrl=J.uploadUrl+"?appkey="+J.appkey);var Be=[window.screen.width,window.screen.height];window.devicePixelRatio&&Be.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:Be.join("*"),channelID:J.channelID?String(J.channelID):"",openid:J.openid?String(J.openid):"",unid:J.unionid?String(J.unionid):"",sdkVersion:Fe},this.config.appVersion=J.versionCode?String(J.versionCode):"",this.config.strictMode=J.strictMode},ee.prototype.cycleTask=function(J){var le=this;this.intervalID=window.setInterval(function(){le.pauseSearching||le.store.getEvents().then(function(ve){ve.length==0&&(le.pauseSearching=!0);var Be=[],Ue=JSON.parse(le.storage.getItem($));Ue||(Ue=[]),ve&&ve.forEach(function(rt){var pt=q(rt.mapValue);Ue.indexOf(pt)==-1&&(Be.push(rt),Ue.push(pt))}),Be.length!=0&&(le.storage.setItem($,JSON.stringify(Ue)),le._normalLogPipeline(le.assembleData(Be)))}).catch(function(ve){})},J)},ee.prototype.onReport=function(J,le,ve){var Be=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var Ue=this.generateData(J,le,ve);if(ve&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(Ue));else{var rt=Ue.shift();rt&&this.store.insertEvent(rt,function(pt){pt&&Be.errorReport.reportError("604","insertEvent fail!")}).catch(function(pt){Be._normalLogPipeline(Be.assembleData(Ue))})}}},ee.prototype.onSendBeacon=function(J,le){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var ve=this.assembleData(this.generateData(J,le,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(ve))}},ee.prototype.generateData=function(J,le,ve){var Be=[],Ue="4.5.14-web_"+(ve?"direct_log_id":"normal_log_id"),rt=Number(this.storage.getItem(Ue));return rt=rt||1,le=E(E({},le),{A99:ve?"Y":"N",A100:rt.toString(),A72:Fe,A88:this.logidStartTime}),rt++,this.storage.setItem(Ue,rt.toString()),Be.push({eventCode:J,eventTime:Date.now().toString(),mapValue:z(le,this.config.strictMode)}),Be},ee.prototype.assembleData=function(J){var le=this.beaconSession.getSession();return{appVersion:this.config.appVersion?Q(this.config.appVersion):"",sdkId:"js",sdkVersion:Fe,mainAppKey:this.config.appkey,platformId:3,common:z(E(E({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:le.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:J}},ee.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},ee.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},ee}(U)})},"./lib/crypto.js":function(d,b,A){(function(C){var w=A("./node_modules/@babel/runtime/helpers/typeof.js"),x=x||function(S,E){var P={},B=P.lib={},D=function(){},k=B.Base={extend:function(V){D.prototype=this;var U=new D;return V&&U.mixIn(V),U.hasOwnProperty("init")||(U.init=function(){U.$super.init.apply(this,arguments)}),U.init.prototype=U,U.$super=this,U},create:function(){var V=this.extend();return V.init.apply(V,arguments),V},init:function(){},mixIn:function(V){for(var U in V)V.hasOwnProperty(U)&&(this[U]=V[U]);V.hasOwnProperty("toString")&&(this.toString=V.toString)},clone:function(){return this.init.prototype.extend(this)}},I=B.WordArray=k.extend({init:function(V,U){V=this.words=V||[],this.sigBytes=U!=E?U:4*V.length},toString:function(V){return(V||M).stringify(this)},concat:function(V){var U=this.words,W=V.words,K=this.sigBytes;if(V=V.sigBytes,this.clamp(),K%4)for(var Z=0;Z>>2]|=(W[Z>>>2]>>>24-8*(Z%4)&255)<<24-8*((K+Z)%4);else if(65535>>2]=W[Z>>>2];else U.push.apply(U,W);return this.sigBytes+=V,this},clamp:function(){var V=this.words,U=this.sigBytes;V[U>>>2]&=4294967295<<32-8*(U%4),V.length=S.ceil(U/4)},clone:function(){var V=k.clone.call(this);return V.words=this.words.slice(0),V},random:function(V){for(var U=[],W=0;W>>2]>>>24-8*(K%4)&255;W.push((Z>>>4).toString(16)),W.push((Z&15).toString(16))}return W.join("")},parse:function(V){for(var U=V.length,W=[],K=0;K>>3]|=parseInt(V.substr(K,2),16)<<24-4*(K%8);return new I.init(W,U/2)}},L=$.Latin1={stringify:function(V){var U=V.words;V=V.sigBytes;for(var W=[],K=0;K>>2]>>>24-8*(K%4)&255));return W.join("")},parse:function(V){for(var U=V.length,W=[],K=0;K>>2]|=(V.charCodeAt(K)&255)<<24-8*(K%4);return new I.init(W,U)}},H=$.Utf8={stringify:function(V){try{return decodeURIComponent(escape(L.stringify(V)))}catch(U){throw Error("Malformed UTF-8 data")}},parse:function(V){return L.parse(unescape(encodeURIComponent(V)))}},z=B.BufferedBlockAlgorithm=k.extend({reset:function(){this._data=new I.init,this._nDataBytes=0},_append:function(V){typeof V=="string"&&(V=H.parse(V)),this._data.concat(V),this._nDataBytes+=V.sigBytes},_process:function(V){var U=this._data,W=U.words,K=U.sigBytes,Z=this.blockSize,te=K/(4*Z),te=V?S.ceil(te):S.max((te|0)-this._minBufferSize,0);if(V=te*Z,K=S.min(4*V,K),V){for(var ne=0;neV;V++){if(16>V)B[V]=I[$+V]|0;else{var U=B[V-3]^B[V-8]^B[V-14]^B[V-16];B[V]=U<<1|U>>>31}U=(L<<5|L>>>27)+q+B[V],U=20>V?U+((H&z|~H&Q)+1518500249):40>V?U+((H^z^Q)+1859775393):60>V?U+((H&z|H&Q|z&Q)-1894007588):U+((H^z^Q)-899497514),q=Q,Q=z,z=H<<30|H>>>2,H=L,L=U}M[0]=M[0]+L|0,M[1]=M[1]+H|0,M[2]=M[2]+z|0,M[3]=M[3]+Q|0,M[4]=M[4]+q|0},_doFinalize:function(){var I=this._data,$=I.words,M=8*this._nDataBytes,L=8*I.sigBytes;return $[L>>>5]|=128<<24-L%32,$[(L+64>>>9<<4)+14]=Math.floor(M/4294967296),$[(L+64>>>9<<4)+15]=M,I.sigBytes=4*$.length,this._process(),this._hash},clone:function(){var I=P.clone.call(this);return I._hash=this._hash.clone(),I}});S.SHA1=P._createHelper(D),S.HmacSHA1=P._createHmacHelper(D)})(),function(){var S=x,E=S.enc.Utf8;S.algo.HMAC=S.lib.Base.extend({init:function(B,D){B=this._hasher=new B.init,typeof D=="string"&&(D=E.parse(D));var k=B.blockSize,I=4*k;D.sigBytes>I&&(D=B.finalize(D)),D.clamp();for(var $=this._oKey=D.clone(),M=this._iKey=D.clone(),L=$.words,H=M.words,z=0;z>>2]>>>24-H%4*8&255,Q=I[H+1>>>2]>>>24-(H+1)%4*8&255,q=I[H+2>>>2]>>>24-(H+2)%4*8&255,V=z<<16|Q<<8|q,U=0;U<4&&H+U*.75<$;U++)L.push(M.charAt(V>>>6*(3-U)&63));var W=M.charAt(64);if(W)for(;L.length%4;)L.push(W);return L.join("")},parse:function(k){var I=k.length,$=this._map,M=$.charAt(64);if(M){var L=k.indexOf(M);L!=-1&&(I=L)}for(var H=[],z=0,Q=0;Q>>6-Q%4*2;H[z>>>2]|=(q|V)<<24-z%4*8,z++}return P.create(H,z)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),w(C)==="object"?C.exports=x:window.CryptoJS=x}).call(this,A("./node_modules/webpack/buildin/module.js")(d))},"./lib/json2xml.js":function(d,b,A){var C=A("./node_modules/@babel/runtime/helpers/typeof.js"),w="a-zA-Z_À-ÖØ-öø-ÿͰ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿿、-퟿豈-﷏ﷰ-�",x="-.0-9·̀-ͯ‿⁀",S=new RegExp("^([^"+w+"])|^((x|X)(m|M)(l|L))|([^"+w+x+"])","g"),E=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,P=function($){var M=[];if($ instanceof Object)for(var L in $)$.hasOwnProperty(L)&&M.push(L);return M},B=function($,M){var L=function(z,Q,q,V,U){var W=M.indent!==void 0?M.indent:" ",K=M.prettyPrint?"\n"+new Array(V).join(W):"";M.removeIllegalNameCharacters&&(z=z.replace(S,"_"));var Z=[K,"<",z,q||""];return Q&&Q.length>0?(Z.push(">"),Z.push(Q),U&&Z.push(K),Z.push("")):Z.push("/>"),Z.join("")};return function H(z,Q,q){var V=C(z);switch((Array.isArray?Array.isArray(z):z instanceof Array)?V="array":z instanceof Date&&(V="date"),V){case"array":var U=[];return z.map(function(te){U.push(H(te,1,q+1))}),M.prettyPrint&&U.push("\n"),U.join("");case"date":return z.toJSON?z.toJSON():z+"";case"object":var W=[];for(var K in z)if(z.hasOwnProperty(K))if(z[K]instanceof Array)for(var Z=0;Z0&&W.push("\n"),W.join("");case"function":return z();default:return M.escape?k(z):""+z}}($,0,0)},D=function($){var M=['"),M.join("")};function k(I){return(""+I).replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""").replace(E,"")}d.exports=function(I,$){if($||($={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof I=="string")try{I=JSON.parse(I.toString())}catch(z){return!1}var M="",L="";$&&(C($)=="object"?($.xmlHeader&&(M=D(!!$.xmlHeader.standalone)),typeof $.docType<"u"&&(L="")):M=D()),$=$||{};var H=[M,$.prettyPrint&&L?"\n":"",L,B(I,$)];return H.join("").replace(/\n{2,}/g,"\n").replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var ERROR="input is invalid type",WINDOW=(typeof window>"u"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self>"u"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process>"u"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__webpack_require__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(d){return Object.prototype.toString.call(d)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(d){return _typeof(d)==="object"&&d.buffer&&d.buffer.constructor===ArrayBuffer});var createOutputMethod=function(b){return function(A,C){return new Md5(!0).update(A,C)[b]()}},createMethod=function(){var b=createOutputMethod("hex");NODE_JS&&(b=nodeWrap(b)),b.getCtx=b.create=function(){return new Md5},b.update=function(w){return b.create().update(w)};for(var A=0;A>6,E[w++]=128|A&63):A<55296||A>=57344?(E[w++]=224|A>>12,E[w++]=128|A>>6&63,E[w++]=128|A&63):(A=65536+((A&1023)<<10|d.charCodeAt(++C)&1023),E[w++]=240|A>>18,E[w++]=128|A>>12&63,E[w++]=128|A>>6&63,E[w++]=128|A&63);else for(w=this.start;C>2]|=A<>2]|=(192|A>>6)<>2]|=(128|A&63)<=57344?(S[w>>2]|=(224|A>>12)<>2]|=(128|A>>6&63)<>2]|=(128|A&63)<>2]|=(240|A>>18)<>2]|=(128|A>>12&63)<>2]|=(128|A>>6&63)<>2]|=(128|A&63)<=64?(this.start=w-64,this.hash(),this.hashed=!0):this.start=w}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var d=this.blocks,b=this.lastByteIndex;d[b>>2]|=EXTRA[b&3],b>=56&&(this.hashed||this.hash(),d[0]=d[16],d[16]=d[1]=d[2]=d[3]=d[4]=d[5]=d[6]=d[7]=d[8]=d[9]=d[10]=d[11]=d[12]=d[13]=d[14]=d[15]=0),d[14]=this.bytes<<3,d[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var d,b,A,C,w,x,S=this.blocks;this.first?(d=S[0]-680876937,d=(d<<7|d>>>25)-271733879<<0,C=(-1732584194^d&2004318071)+S[1]-117830708,C=(C<<12|C>>>20)+d<<0,A=(-271733879^C&(d^-271733879))+S[2]-1126478375,A=(A<<17|A>>>15)+C<<0,b=(d^A&(C^d))+S[3]-1316259209,b=(b<<22|b>>>10)+A<<0):(d=this.h0,b=this.h1,A=this.h2,C=this.h3,d+=(C^b&(A^C))+S[0]-680876936,d=(d<<7|d>>>25)+b<<0,C+=(A^d&(b^A))+S[1]-389564586,C=(C<<12|C>>>20)+d<<0,A+=(b^C&(d^b))+S[2]+606105819,A=(A<<17|A>>>15)+C<<0,b+=(d^A&(C^d))+S[3]-1044525330,b=(b<<22|b>>>10)+A<<0),d+=(C^b&(A^C))+S[4]-176418897,d=(d<<7|d>>>25)+b<<0,C+=(A^d&(b^A))+S[5]+1200080426,C=(C<<12|C>>>20)+d<<0,A+=(b^C&(d^b))+S[6]-1473231341,A=(A<<17|A>>>15)+C<<0,b+=(d^A&(C^d))+S[7]-45705983,b=(b<<22|b>>>10)+A<<0,d+=(C^b&(A^C))+S[8]+1770035416,d=(d<<7|d>>>25)+b<<0,C+=(A^d&(b^A))+S[9]-1958414417,C=(C<<12|C>>>20)+d<<0,A+=(b^C&(d^b))+S[10]-42063,A=(A<<17|A>>>15)+C<<0,b+=(d^A&(C^d))+S[11]-1990404162,b=(b<<22|b>>>10)+A<<0,d+=(C^b&(A^C))+S[12]+1804603682,d=(d<<7|d>>>25)+b<<0,C+=(A^d&(b^A))+S[13]-40341101,C=(C<<12|C>>>20)+d<<0,A+=(b^C&(d^b))+S[14]-1502002290,A=(A<<17|A>>>15)+C<<0,b+=(d^A&(C^d))+S[15]+1236535329,b=(b<<22|b>>>10)+A<<0,d+=(A^C&(b^A))+S[1]-165796510,d=(d<<5|d>>>27)+b<<0,C+=(b^A&(d^b))+S[6]-1069501632,C=(C<<9|C>>>23)+d<<0,A+=(d^b&(C^d))+S[11]+643717713,A=(A<<14|A>>>18)+C<<0,b+=(C^d&(A^C))+S[0]-373897302,b=(b<<20|b>>>12)+A<<0,d+=(A^C&(b^A))+S[5]-701558691,d=(d<<5|d>>>27)+b<<0,C+=(b^A&(d^b))+S[10]+38016083,C=(C<<9|C>>>23)+d<<0,A+=(d^b&(C^d))+S[15]-660478335,A=(A<<14|A>>>18)+C<<0,b+=(C^d&(A^C))+S[4]-405537848,b=(b<<20|b>>>12)+A<<0,d+=(A^C&(b^A))+S[9]+568446438,d=(d<<5|d>>>27)+b<<0,C+=(b^A&(d^b))+S[14]-1019803690,C=(C<<9|C>>>23)+d<<0,A+=(d^b&(C^d))+S[3]-187363961,A=(A<<14|A>>>18)+C<<0,b+=(C^d&(A^C))+S[8]+1163531501,b=(b<<20|b>>>12)+A<<0,d+=(A^C&(b^A))+S[13]-1444681467,d=(d<<5|d>>>27)+b<<0,C+=(b^A&(d^b))+S[2]-51403784,C=(C<<9|C>>>23)+d<<0,A+=(d^b&(C^d))+S[7]+1735328473,A=(A<<14|A>>>18)+C<<0,b+=(C^d&(A^C))+S[12]-1926607734,b=(b<<20|b>>>12)+A<<0,w=b^A,d+=(w^C)+S[5]-378558,d=(d<<4|d>>>28)+b<<0,C+=(w^d)+S[8]-2022574463,C=(C<<11|C>>>21)+d<<0,x=C^d,A+=(x^b)+S[11]+1839030562,A=(A<<16|A>>>16)+C<<0,b+=(x^A)+S[14]-35309556,b=(b<<23|b>>>9)+A<<0,w=b^A,d+=(w^C)+S[1]-1530992060,d=(d<<4|d>>>28)+b<<0,C+=(w^d)+S[4]+1272893353,C=(C<<11|C>>>21)+d<<0,x=C^d,A+=(x^b)+S[7]-155497632,A=(A<<16|A>>>16)+C<<0,b+=(x^A)+S[10]-1094730640,b=(b<<23|b>>>9)+A<<0,w=b^A,d+=(w^C)+S[13]+681279174,d=(d<<4|d>>>28)+b<<0,C+=(w^d)+S[0]-358537222,C=(C<<11|C>>>21)+d<<0,x=C^d,A+=(x^b)+S[3]-722521979,A=(A<<16|A>>>16)+C<<0,b+=(x^A)+S[6]+76029189,b=(b<<23|b>>>9)+A<<0,w=b^A,d+=(w^C)+S[9]-640364487,d=(d<<4|d>>>28)+b<<0,C+=(w^d)+S[12]-421815835,C=(C<<11|C>>>21)+d<<0,x=C^d,A+=(x^b)+S[15]+530742520,A=(A<<16|A>>>16)+C<<0,b+=(x^A)+S[2]-995338651,b=(b<<23|b>>>9)+A<<0,d+=(A^(b|~C))+S[0]-198630844,d=(d<<6|d>>>26)+b<<0,C+=(b^(d|~A))+S[7]+1126891415,C=(C<<10|C>>>22)+d<<0,A+=(d^(C|~b))+S[14]-1416354905,A=(A<<15|A>>>17)+C<<0,b+=(C^(A|~d))+S[5]-57434055,b=(b<<21|b>>>11)+A<<0,d+=(A^(b|~C))+S[12]+1700485571,d=(d<<6|d>>>26)+b<<0,C+=(b^(d|~A))+S[3]-1894986606,C=(C<<10|C>>>22)+d<<0,A+=(d^(C|~b))+S[10]-1051523,A=(A<<15|A>>>17)+C<<0,b+=(C^(A|~d))+S[1]-2054922799,b=(b<<21|b>>>11)+A<<0,d+=(A^(b|~C))+S[8]+1873313359,d=(d<<6|d>>>26)+b<<0,C+=(b^(d|~A))+S[15]-30611744,C=(C<<10|C>>>22)+d<<0,A+=(d^(C|~b))+S[6]-1560198380,A=(A<<15|A>>>17)+C<<0,b+=(C^(A|~d))+S[13]+1309151649,b=(b<<21|b>>>11)+A<<0,d+=(A^(b|~C))+S[4]-145523070,d=(d<<6|d>>>26)+b<<0,C+=(b^(d|~A))+S[11]-1120210379,C=(C<<10|C>>>22)+d<<0,A+=(d^(C|~b))+S[2]+718787259,A=(A<<15|A>>>17)+C<<0,b+=(C^(A|~d))+S[9]-343485551,b=(b<<21|b>>>11)+A<<0,this.first?(this.h0=d+1732584193<<0,this.h1=b-271733879<<0,this.h2=A-1732584194<<0,this.h3=C+271733878<<0,this.first=!1):(this.h0=this.h0+d<<0,this.h1=this.h1+b<<0,this.h2=this.h2+A<<0,this.h3=this.h3+C<<0)},Md5.prototype.hex=function(){this.finalize();var d=this.h0,b=this.h1,A=this.h2,C=this.h3;return HEX_CHARS[d>>4&15]+HEX_CHARS[d&15]+HEX_CHARS[d>>12&15]+HEX_CHARS[d>>8&15]+HEX_CHARS[d>>20&15]+HEX_CHARS[d>>16&15]+HEX_CHARS[d>>28&15]+HEX_CHARS[d>>24&15]+HEX_CHARS[b>>4&15]+HEX_CHARS[b&15]+HEX_CHARS[b>>12&15]+HEX_CHARS[b>>8&15]+HEX_CHARS[b>>20&15]+HEX_CHARS[b>>16&15]+HEX_CHARS[b>>28&15]+HEX_CHARS[b>>24&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[A&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[C&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(d){if(d==="hex")return this.hex();this.finalize();var b=this.h0,A=this.h1,C=this.h2,w=this.h3,x=[b&255,b>>8&255,b>>16&255,b>>24&255,A&255,A>>8&255,A>>16&255,A>>24&255,C&255,C>>8&255,C>>16&255,C>>24&255,w&255,w>>8&255,w>>16&255,w>>24&255];return x},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var d=new ArrayBuffer(16),b=new Uint32Array(d);return b[0]=this.h0,b[1]=this.h1,b[2]=this.h2,b[3]=this.h3,d},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var d,b,A,C="",w=this.array(),x=0;x<15;)d=w[x++],b=w[x++],A=w[x++],C+=BASE64_ENCODE_CHAR[d>>>2]+BASE64_ENCODE_CHAR[(d<<4|b>>>4)&63]+BASE64_ENCODE_CHAR[(b<<2|A>>>6)&63]+BASE64_ENCODE_CHAR[A&63];return d=w[x],C+=BASE64_ENCODE_CHAR[d>>>2]+BASE64_ENCODE_CHAR[d<<4&63]+"==",C};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return exports}).call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("./node_modules/process/browser.js"),__webpack_require__("./node_modules/webpack/buildin/global.js"),__webpack_require__("./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":function(d,b,A){var C=A("./node_modules/@babel/runtime/helpers/typeof.js"),w=function(D){switch(C(D)){case"string":return D;case"boolean":return D?"true":"false";case"number":return isFinite(D)?D:"";default:return""}},x=function(D,k,I,$){return k=k||"&",I=I||"=",D===null&&(D=void 0),C(D)==="object"?Object.keys(D).map(function(M){var L=encodeURIComponent(w(M))+I;return Array.isArray(D[M])?D[M].map(function(H){return L+encodeURIComponent(w(H))}).join(k):L+encodeURIComponent(w(D[M]))}).filter(Boolean).join(k):$?encodeURIComponent(w($))+I+encodeURIComponent(w(D)):""},S=function(D,k,I){var $={};return k.getAllResponseHeaders().trim().split("\n").forEach(function(M){if(M){var L=M.indexOf(":"),H=M.substr(0,L).trim().toLowerCase(),z=M.substr(L+1).trim();$[H]=z}}),{error:D,statusCode:k.status,statusMessage:k.statusText,headers:$,body:I}},E=function(D,k){return!k&&k==="text"?D.responseText:D.response},P=function(D,k){var I=(D.method||"GET").toUpperCase(),$=D.url;if(D.qs){var M=x(D.qs);M&&($+=($.indexOf("?")===-1?"?":"&")+M)}var L=new XMLHttpRequest;if(L.open(I,$,!0),L.responseType=D.dataType||"text",D.xhrFields)for(var H in D.xhrFields)L[H]=D.xhrFields[H];var z=D.headers;if(z)for(var Q in z)z.hasOwnProperty(Q)&&Q.toLowerCase()!=="content-length"&&Q.toLowerCase()!=="user-agent"&&Q.toLowerCase()!=="origin"&&Q.toLowerCase()!=="host"&&L.setRequestHeader(Q,z[Q]);return D.onProgress&&L.upload&&(L.upload.onprogress=D.onProgress),D.onDownloadProgress&&(L.onprogress=D.onDownloadProgress),D.timeout&&(L.timeout=D.timeout),L.ontimeout=function(q){var V=new Error("timeout");k(S(V,L))},L.onload=function(){k(S(null,L,E(L,D.dataType)))},L.onerror=function(q){var V=E(L,D.dataType);if(V)k(S(null,L,V));else{var U=L.statusText;!U&&L.status===0&&(U=new Error("CORS blocked or network error")),k(S(U,L,V))}},L.send(D.body||""),L};d.exports=P},"./lib/xml2json.js":function(d,b,A){var C=A("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,w=(function(){this.version="1.3.5";var S={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},E=new RegExp(/(?!xmlns)^.*:/);return this.grokType=function(P){return/^\s*$/.test(P)?null:/^(?:true|false)$/i.test(P)?P.toLowerCase()==="true":isFinite(P)?parseFloat(P):P},this.parseString=function(P,B){if(P){var D=this.stringToXML(P);return D.getElementsByTagName("parsererror").length?null:this.parseXML(D,B)}else return null},this.parseXML=function(P,B){for(var D in B)S[D]=B[D];var k={},I=0,$="",M=P.childNodes.length;if(M)for(var L,H,z,Q=0;Q=V+U||V?new java.lang.String(q,V,U)+"":q}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(q){M.prototype[q]=function(){return null}});function Q(q,V){q.currentElement?q.currentElement.appendChild(V):q.doc.appendChild(V)}b.__DOMHandler=M,b.normalizeLineEndings=k,b.DOMParser=I},"./node_modules/@xmldom/xmldom/lib/dom.js":function(d,b,A){var C=A("./node_modules/@xmldom/xmldom/lib/conventions.js"),w=C.find,x=C.NAMESPACE;function S(re){return re!==""}function E(re){return re?re.split(/[\t\n\f\r ]+/).filter(S):[]}function P(re,ce){return re.hasOwnProperty(ce)||(re[ce]=!0),re}function B(re){if(!re)return[];var ce=E(re);return Object.keys(ce.reduce(P,{}))}function D(re){return function(ce){return re&&re.indexOf(ce)!==-1}}function k(re,ce){for(var Ae in re)Object.prototype.hasOwnProperty.call(re,Ae)&&(ce[Ae]=re[Ae])}function I(re,ce){var Ae=re.prototype;if(!(Ae instanceof ce)){let ze=function(){};ze.prototype=ce.prototype,ze=new ze,k(Ae,ze),re.prototype=Ae=ze}Ae.constructor!=re&&(typeof re!="function"&&console.error("unknown Class:"+re),Ae.constructor=re)}var $={},M=$.ELEMENT_NODE=1,L=$.ATTRIBUTE_NODE=2,H=$.TEXT_NODE=3,z=$.CDATA_SECTION_NODE=4,Q=$.ENTITY_REFERENCE_NODE=5,q=$.ENTITY_NODE=6,V=$.PROCESSING_INSTRUCTION_NODE=7,U=$.COMMENT_NODE=8,W=$.DOCUMENT_NODE=9,K=$.DOCUMENT_TYPE_NODE=10,Z=$.DOCUMENT_FRAGMENT_NODE=11,te=$.NOTATION_NODE=12,ne={},ue={};ne.INDEX_SIZE_ERR=(ue[1]="Index size error",1),ne.DOMSTRING_SIZE_ERR=(ue[2]="DOMString size error",2);var X=ne.HIERARCHY_REQUEST_ERR=(ue[3]="Hierarchy request error",3);ne.WRONG_DOCUMENT_ERR=(ue[4]="Wrong document",4),ne.INVALID_CHARACTER_ERR=(ue[5]="Invalid character",5),ne.NO_DATA_ALLOWED_ERR=(ue[6]="No data allowed",6),ne.NO_MODIFICATION_ALLOWED_ERR=(ue[7]="No modification allowed",7);var se=ne.NOT_FOUND_ERR=(ue[8]="Not found",8);ne.NOT_SUPPORTED_ERR=(ue[9]="Not supported",9);var he=ne.INUSE_ATTRIBUTE_ERR=(ue[10]="Attribute in use",10);ne.INVALID_STATE_ERR=(ue[11]="Invalid state",11),ne.SYNTAX_ERR=(ue[12]="Syntax error",12),ne.INVALID_MODIFICATION_ERR=(ue[13]="Invalid modification",13),ne.NAMESPACE_ERR=(ue[14]="Invalid namespace",14),ne.INVALID_ACCESS_ERR=(ue[15]="Invalid access",15);function me(re,ce){if(ce instanceof Error)var Ae=ce;else Ae=this,Error.call(this,ue[re]),this.message=ue[re],Error.captureStackTrace&&Error.captureStackTrace(this,me);return Ae.code=re,ce&&(this.message=this.message+": "+ce),Ae}me.prototype=Error.prototype,k(ne,me);function ie(){}ie.prototype={length:0,item:function(re){return re>=0&&re=0){for(var dt=ce.length-1;ze0},lookupPrefix:function(re){for(var ce=this;ce;){var Ae=ce._nsMap;if(Ae){for(var ze in Ae)if(Object.prototype.hasOwnProperty.call(Ae,ze)&&Ae[ze]===re)return ze}ce=ce.nodeType==L?ce.ownerDocument:ce.parentNode}return null},lookupNamespaceURI:function(re){for(var ce=this;ce;){var Ae=ce._nsMap;if(Ae&&Object.prototype.hasOwnProperty.call(Ae,re))return Ae[re];ce=ce.nodeType==L?ce.ownerDocument:ce.parentNode}return null},isDefaultNamespace:function(re){var ce=this.lookupPrefix(re);return ce==null}};function et(re){return re=="<"&&"<"||re==">"&&">"||re=="&"&&"&"||re=='"'&&"""||"&#"+re.charCodeAt()+";"}k($,ot),k($,ot.prototype);function lt(re,ce){if(ce(re))return!0;if(re=re.firstChild)do if(lt(re,ce))return!0;while(re=re.nextSibling)}function Me(){this.ownerDocument=this}function Oe(re,ce,Ae){re&&re._inc++;var ze=Ae.namespaceURI;ze===x.XMLNS&&(ce._nsMap[Ae.prefix?Ae.localName:""]=Ae.value)}function Qe(re,ce,Ae,ze){re&&re._inc++;var dt=Ae.namespaceURI;dt===x.XMLNS&&delete ce._nsMap[Ae.prefix?Ae.localName:""]}function Ze(re,ce,Ae){if(re&&re._inc){re._inc++;var ze=ce.childNodes;if(Ae)ze[ze.length++]=Ae;else{for(var dt=ce.firstChild,vt=0;dt;)ze[vt++]=dt,dt=dt.nextSibling;ze.length=vt,delete ze[ze.length]}}}function it(re,ce){var Ae=ce.previousSibling,ze=ce.nextSibling;return Ae?Ae.nextSibling=ze:re.firstChild=ze,ze?ze.previousSibling=Ae:re.lastChild=Ae,ce.parentNode=null,ce.previousSibling=null,ce.nextSibling=null,Ze(re.ownerDocument,re),ce}function Te(re){return re&&(re.nodeType===ot.DOCUMENT_NODE||re.nodeType===ot.DOCUMENT_FRAGMENT_NODE||re.nodeType===ot.ELEMENT_NODE)}function _e(re){return re&&(Je(re)||Ke(re)||He(re)||re.nodeType===ot.DOCUMENT_FRAGMENT_NODE||re.nodeType===ot.COMMENT_NODE||re.nodeType===ot.PROCESSING_INSTRUCTION_NODE)}function He(re){return re&&re.nodeType===ot.DOCUMENT_TYPE_NODE}function Je(re){return re&&re.nodeType===ot.ELEMENT_NODE}function Ke(re){return re&&re.nodeType===ot.TEXT_NODE}function Ie(re,ce){var Ae=re.childNodes||[];if(w(Ae,Je)||He(ce))return!1;var ze=w(Ae,He);return!(ce&&ze&&Ae.indexOf(ze)>Ae.indexOf(ce))}function Fe(re,ce){var Ae=re.childNodes||[];function ze(vt){return Je(vt)&&vt!==ce}if(w(Ae,ze))return!1;var dt=w(Ae,He);return!(ce&&dt&&Ae.indexOf(dt)>Ae.indexOf(ce))}function ae(re,ce,Ae){if(!Te(re))throw new me(X,"Unexpected parent node type "+re.nodeType);if(Ae&&Ae.parentNode!==re)throw new me(se,"child not in parent");if(!_e(ce)||He(ce)&&re.nodeType!==ot.DOCUMENT_NODE)throw new me(X,"Unexpected node type "+ce.nodeType+" for parent node type "+re.nodeType)}function ee(re,ce,Ae){var ze=re.childNodes||[],dt=ce.childNodes||[];if(ce.nodeType===ot.DOCUMENT_FRAGMENT_NODE){var vt=dt.filter(Je);if(vt.length>1||w(dt,Ke))throw new me(X,"More than one element or text in fragment");if(vt.length===1&&!Ie(re,Ae))throw new me(X,"Element in fragment can not be inserted before doctype")}if(Je(ce)&&!Ie(re,Ae))throw new me(X,"Only one element can be added and only after doctype");if(He(ce)){if(w(ze,He))throw new me(X,"Only one doctype is allowed");var wt=w(ze,Je);if(Ae&&ze.indexOf(wt)1||w(dt,Ke))throw new me(X,"More than one element or text in fragment");if(vt.length===1&&!Fe(re,Ae))throw new me(X,"Element in fragment can not be inserted before doctype")}if(Je(ce)&&!Fe(re,Ae))throw new me(X,"Only one element can be added and only after doctype");if(He(ce)){if(w(ze,function(Xe){return He(Xe)&&Xe!==Ae}))throw new me(X,"Only one doctype is allowed");var wt=w(ze,Je);if(Ae&&ze.indexOf(wt)0&<(Ae.documentElement,function(dt){if(dt!==Ae&&dt.nodeType===M){var vt=dt.getAttribute("class");if(vt){var wt=re===vt;if(!wt){var ht=B(vt);wt=ce.every(D(ht))}wt&&ze.push(dt)}}}),ze})},createElement:function(re){var ce=new Be;ce.ownerDocument=this,ce.nodeName=re,ce.tagName=re,ce.localName=re,ce.childNodes=new ie;var Ae=ce.attributes=new ge;return Ae._ownerElement=ce,ce},createDocumentFragment:function(){var re=new It;return re.ownerDocument=this,re.childNodes=new ie,re},createTextNode:function(re){var ce=new pt;return ce.ownerDocument=this,ce.appendData(re),ce},createComment:function(re){var ce=new tt;return ce.ownerDocument=this,ce.appendData(re),ce},createCDATASection:function(re){var ce=new at;return ce.ownerDocument=this,ce.appendData(re),ce},createProcessingInstruction:function(re,ce){var Ae=new we;return Ae.ownerDocument=this,Ae.tagName=Ae.nodeName=Ae.target=re,Ae.nodeValue=Ae.data=ce,Ae},createAttribute:function(re){var ce=new Ue;return ce.ownerDocument=this,ce.name=re,ce.nodeName=re,ce.localName=re,ce.specified=!0,ce},createEntityReference:function(re){var ce=new kt;return ce.ownerDocument=this,ce.nodeName=re,ce},createElementNS:function(re,ce){var Ae=new Be,ze=ce.split(":"),dt=Ae.attributes=new ge;return Ae.childNodes=new ie,Ae.ownerDocument=this,Ae.nodeName=ce,Ae.tagName=ce,Ae.namespaceURI=re,ze.length==2?(Ae.prefix=ze[0],Ae.localName=ze[1]):Ae.localName=ce,dt._ownerElement=Ae,Ae},createAttributeNS:function(re,ce){var Ae=new Ue,ze=ce.split(":");return Ae.ownerDocument=this,Ae.nodeName=ce,Ae.name=ce,Ae.namespaceURI=re,Ae.specified=!0,ze.length==2?(Ae.prefix=ze[0],Ae.localName=ze[1]):Ae.localName=ce,Ae}},I(Me,ot);function Be(){this._nsMap={}}Be.prototype={nodeType:M,hasAttribute:function(re){return this.getAttributeNode(re)!=null},getAttribute:function(re){var ce=this.getAttributeNode(re);return ce&&ce.value||""},getAttributeNode:function(re){return this.attributes.getNamedItem(re)},setAttribute:function(re,ce){var Ae=this.ownerDocument.createAttribute(re);Ae.value=Ae.nodeValue=""+ce,this.setAttributeNode(Ae)},removeAttribute:function(re){var ce=this.getAttributeNode(re);ce&&this.removeAttributeNode(ce)},appendChild:function(re){return re.nodeType===Z?this.insertBefore(re,null):ve(this,re)},setAttributeNode:function(re){return this.attributes.setNamedItem(re)},setAttributeNodeNS:function(re){return this.attributes.setNamedItemNS(re)},removeAttributeNode:function(re){return this.attributes.removeNamedItem(re.nodeName)},removeAttributeNS:function(re,ce){var Ae=this.getAttributeNodeNS(re,ce);Ae&&this.removeAttributeNode(Ae)},hasAttributeNS:function(re,ce){return this.getAttributeNodeNS(re,ce)!=null},getAttributeNS:function(re,ce){var Ae=this.getAttributeNodeNS(re,ce);return Ae&&Ae.value||""},setAttributeNS:function(re,ce,Ae){var ze=this.ownerDocument.createAttributeNS(re,ce);ze.value=ze.nodeValue=""+Ae,this.setAttributeNode(ze)},getAttributeNodeNS:function(re,ce){return this.attributes.getNamedItemNS(re,ce)},getElementsByTagName:function(re){return new de(this,function(ce){var Ae=[];return lt(ce,function(ze){ze!==ce&&ze.nodeType==M&&(re==="*"||ze.tagName==re)&&Ae.push(ze)}),Ae})},getElementsByTagNameNS:function(re,ce){return new de(this,function(Ae){var ze=[];return lt(Ae,function(dt){dt!==Ae&&dt.nodeType===M&&(re==="*"||dt.namespaceURI===re)&&(ce==="*"||dt.localName==ce)&&ze.push(dt)}),ze})}},Me.prototype.getElementsByTagName=Be.prototype.getElementsByTagName,Me.prototype.getElementsByTagNameNS=Be.prototype.getElementsByTagNameNS,I(Be,ot);function Ue(){}Ue.prototype.nodeType=L,I(Ue,ot);function rt(){}rt.prototype={data:"",substringData:function(re,ce){return this.data.substring(re,re+ce)},appendData:function(re){re=this.data+re,this.nodeValue=this.data=re,this.length=re.length},insertData:function(re,ce){this.replaceData(re,0,ce)},appendChild:function(re){throw new Error(ue[X])},deleteData:function(re,ce){this.replaceData(re,ce,"")},replaceData:function(re,ce,Ae){var ze=this.data.substring(0,re),dt=this.data.substring(re+ce);Ae=ze+Ae+dt,this.nodeValue=this.data=Ae,this.length=Ae.length}},I(rt,ot);function pt(){}pt.prototype={nodeName:"#text",nodeType:H,splitText:function(re){var ce=this.data,Ae=ce.substring(re);ce=ce.substring(0,re),this.data=this.nodeValue=ce,this.length=ce.length;var ze=this.ownerDocument.createTextNode(Ae);return this.parentNode&&this.parentNode.insertBefore(ze,this.nextSibling),ze}},I(pt,rt);function tt(){}tt.prototype={nodeName:"#comment",nodeType:U},I(tt,rt);function at(){}at.prototype={nodeName:"#cdata-section",nodeType:z},I(at,rt);function Et(){}Et.prototype.nodeType=K,I(Et,ot);function Dt(){}Dt.prototype.nodeType=te,I(Dt,ot);function Mt(){}Mt.prototype.nodeType=q,I(Mt,ot);function kt(){}kt.prototype.nodeType=Q,I(kt,ot);function It(){}It.prototype.nodeName="#document-fragment",It.prototype.nodeType=Z,I(It,ot);function we(){}we.prototype.nodeType=V,I(we,ot);function pe(){}pe.prototype.serializeToString=function(re,ce,Ae){return ke.call(re,ce,Ae)},ot.prototype.toString=ke;function ke(re,ce){var Ae=[],ze=this.nodeType==9&&this.documentElement||this,dt=ze.prefix,vt=ze.namespaceURI;if(vt&&dt==null){var dt=ze.lookupPrefix(vt);if(dt==null)var wt=[{namespace:vt,prefix:null}]}return yt(this,Ae,re,ce,wt),Ae.join("")}function Ve(re,ce,Ae){var ze=re.prefix||"",dt=re.namespaceURI;if(!dt||ze==="xml"&&dt===x.XML||dt===x.XMLNS)return!1;for(var vt=Ae.length;vt--;){var wt=Ae[vt];if(wt.prefix===ze)return wt.namespace!==dt}return!0}function gt(re,ce,Ae){re.push(" ",ce,'="',Ae.replace(/[<>&"\t\n\r]/g,et),'"')}function yt(re,ce,Ae,ze,dt){if(dt||(dt=[]),ze)if(re=ze(re),re){if(typeof re=="string"){ce.push(re);return}}else return;switch(re.nodeType){case M:var vt=re.attributes,wt=vt.length,Ge=re.firstChild,ht=re.tagName;Ae=x.isHTML(re.namespaceURI)||Ae;var Xe=ht;if(!Ae&&!re.prefix&&re.namespaceURI){for(var mt,bt=0;bt=0;Y--){var xe=dt[Y];if(xe.prefix===""&&xe.namespace===re.namespaceURI){mt=xe.namespace;break}}if(mt!==re.namespaceURI)for(var Y=dt.length-1;Y>=0;Y--){var xe=dt[Y];if(xe.namespace===re.namespaceURI){xe.prefix&&(Xe=xe.prefix+":"+ht);break}}}ce.push("<",Xe);for(var fe=0;fe"),Ae&&/^script$/i.test(ht))for(;Ge;)Ge.data?ce.push(Ge.data):yt(Ge,ce,Ae,ze,dt.slice()),Ge=Ge.nextSibling;else for(;Ge;)yt(Ge,ce,Ae,ze,dt.slice()),Ge=Ge.nextSibling;ce.push("")}else ce.push("/>");return;case W:case Z:for(var Ge=re.firstChild;Ge;)yt(Ge,ce,Ae,ze,dt.slice()),Ge=Ge.nextSibling;return;case L:return gt(ce,re.name,re.value);case H:return ce.push(re.data.replace(/[<&>]/g,et));case z:return ce.push("");case U:return ce.push("");case K:var ct=re.publicId,Tt=re.systemId;if(ce.push("");else if(Tt&&Tt!=".")ce.push(" SYSTEM ",Tt,">");else{var Ot=re.internalSubset;Ot&&ce.push(" [",Ot,"]"),ce.push(">")}return;case V:return ce.push("");case Q:return ce.push("&",re.nodeName,";");default:ce.push("??",re.nodeName)}}function xt(re,ce,Ae){var ze;switch(ce.nodeType){case M:ze=ce.cloneNode(!1),ze.ownerDocument=re;case Z:break;case L:Ae=!0;break}if(ze||(ze=ce.cloneNode(!1)),ze.ownerDocument=re,ze.parentNode=null,Ae)for(var dt=ce.firstChild;dt;)ze.appendChild(xt(re,dt,Ae)),dt=dt.nextSibling;return ze}function Ne(re,ce,Ae){var ze=new ce.constructor;for(var dt in ce)if(Object.prototype.hasOwnProperty.call(ce,dt)){var vt=ce[dt];typeof vt!="object"&&vt!=ze[dt]&&(ze[dt]=vt)}switch(ce.childNodes&&(ze.childNodes=new ie),ze.ownerDocument=re,ze.nodeType){case M:var wt=ce.attributes,ht=ze.attributes=new ge,Xe=wt.length;ht._ownerElement=ze;for(var mt=0;mt",lt:"<",quot:'"'}),b.HTML_ENTITIES=C({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),b.entityMap=b.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(d,b,A){var C=A("./node_modules/@xmldom/xmldom/lib/dom.js");b.DOMImplementation=C.DOMImplementation,b.XMLSerializer=C.XMLSerializer,b.DOMParser=A("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(d,b,A){var C=A("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,w=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,x=new RegExp("[\\-\\.0-9"+w.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),S=new RegExp("^"+w.source+x.source+"*(?::"+w.source+x.source+"*)?$"),E=0,P=1,B=2,D=3,k=4,I=5,$=6,M=7;function L(X,se){this.message=X,this.locator=se,Error.captureStackTrace&&Error.captureStackTrace(this,L)}L.prototype=new Error,L.prototype.name=L.name;function H(){}H.prototype={parse:function(X,se,he){var me=this.domBuilder;me.startDocument(),K(se,se={}),z(X,se,he,me,this.errorHandler),me.endDocument()}};function z(X,se,he,me,ie){function de(Be){if(Be>65535){Be-=65536;var Ue=55296+(Be>>10),rt=56320+(Be&1023);return String.fromCharCode(Ue,rt)}else return String.fromCharCode(Be)}function be(Be){var Ue=Be.slice(1,-1);return Object.hasOwnProperty.call(he,Ue)?he[Ue]:Ue.charAt(0)==="#"?de(parseInt(Ue.substr(1).replace("x","0x"))):(ie.error("entity not found:"+Be),Be)}function ge(Be){if(Be>Me){var Ue=X.substring(Me,Be).replace(/&#?\w+;/g,be);ot&&Se(Me),me.characters(Ue,0,Be-Me),Me=Be}}function Se(Be,Ue){for(;Be>=Ye&&(Ue=st.exec(X));)je=Ue.index,Ye=je+Ue[0].length,ot.lineNumber++;ot.columnNumber=Be-je+1}for(var je=0,Ye=0,st=/.*(?:\r\n?|\n)|.*$/g,ot=me.locator,et=[{currentNSMap:se}],lt={},Me=0;;){try{var Oe=X.indexOf("<",Me);if(Oe<0){if(!X.substr(Me).match(/^\s*$/)){var Qe=me.doc,Ze=Qe.createTextNode(X.substr(Me));Qe.appendChild(Ze),me.currentElement=Ze}return}switch(Oe>Me&&ge(Oe),X.charAt(Oe+1)){case"/":var ae=X.indexOf(">",Oe+3),it=X.substring(Oe+2,ae).replace(/[ \t\n\r]+$/g,""),Te=et.pop();ae<0?(it=X.substring(Oe+2).replace(/[\s<].*/,""),ie.error("end tag name: "+it+" is not complete:"+Te.tagName),ae=Oe+1+it.length):it.match(/\sMe?Me=ae:ge(Math.max(Oe,Me)+1)}}function Q(X,se){return se.lineNumber=X.lineNumber,se.columnNumber=X.columnNumber,se}function q(X,se,he,me,ie,de){function be(ot,et,lt){he.attributeNames.hasOwnProperty(ot)&&de.fatalError("Attribute "+ot+" redefined"),he.addValue(ot,et.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,ie),lt)}for(var ge,Se,je=++se,Ye=E;;){var st=X.charAt(je);switch(st){case"=":if(Ye===P)ge=X.slice(se,je),Ye=D;else if(Ye===B)Ye=D;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(Ye===D||Ye===P)if(Ye===P&&(de.warning('attribute value must after "="'),ge=X.slice(se,je)),se=je+1,je=X.indexOf(st,se),je>0)Se=X.slice(se,je),be(ge,Se,se-1),Ye=I;else throw new Error("attribute value no end '"+st+"' match");else if(Ye==k)Se=X.slice(se,je),be(ge,Se,se),de.warning('attribute "'+ge+'" missed start quot('+st+")!!"),se=je+1,Ye=I;else throw new Error('attribute value must after "="');break;case"/":switch(Ye){case E:he.setTagName(X.slice(se,je));case I:case $:case M:Ye=M,he.closed=!0;case k:case P:break;case B:he.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return de.error("unexpected end of input"),Ye==E&&he.setTagName(X.slice(se,je)),je;case">":switch(Ye){case E:he.setTagName(X.slice(se,je));case I:case $:case M:break;case k:case P:Se=X.slice(se,je),Se.slice(-1)==="/"&&(he.closed=!0,Se=Se.slice(0,-1));case B:Ye===B&&(Se=ge),Ye==k?(de.warning('attribute "'+Se+'" missed quot(")!'),be(ge,Se,se)):((!C.isHTML(me[""])||!Se.match(/^(?:disabled|checked|selected)$/i))&&de.warning('attribute "'+Se+'" missed value!! "'+Se+'" instead!!'),be(Se,Se,se));break;case D:throw new Error("attribute value missed!!")}return je;case"€":st=" ";default:if(st<=" ")switch(Ye){case E:he.setTagName(X.slice(se,je)),Ye=$;break;case P:ge=X.slice(se,je),Ye=B;break;case k:var Se=X.slice(se,je);de.warning('attribute "'+Se+'" missed quot(")!!'),be(ge,Se,se);case I:Ye=$;break}else switch(Ye){case B:he.tagName,(!C.isHTML(me[""])||!ge.match(/^(?:disabled|checked|selected)$/i))&&de.warning('attribute "'+ge+'" missed value!! "'+ge+'" instead2!!'),be(ge,ge,se),se=je,Ye=P;break;case I:de.warning('attribute space is required"'+ge+'"!!');case $:Ye=P,se=je;break;case D:Ye=k,se=je;break;case M:throw new Error("elements closed character '/' and '>' must be connected to")}}je++}}function V(X,se,he){for(var me=X.tagName,ie=null,st=X.length;st--;){var de=X[st],be=de.qName,ge=de.value,ot=be.indexOf(":");if(ot>0)var Se=de.prefix=be.slice(0,ot),je=be.slice(ot+1),Ye=Se==="xmlns"&&je;else je=be,Se=null,Ye=be==="xmlns"&&"";de.localName=je,Ye!==!1&&(ie==null&&(ie={},K(he,he={})),he[Ye]=ie[Ye]=ge,de.uri=C.XMLNS,se.startPrefixMapping(Ye,ge))}for(var st=X.length;st--;){de=X[st];var Se=de.prefix;Se&&(Se==="xml"&&(de.uri=C.XML),Se!=="xmlns"&&(de.uri=he[Se||""]))}var ot=me.indexOf(":");ot>0?(Se=X.prefix=me.slice(0,ot),je=X.localName=me.slice(ot+1)):(Se=null,je=X.localName=me);var et=X.uri=he[Se||""];if(se.startElement(et,je,me,X),X.closed){if(se.endElement(et,je,me),ie)for(Se in ie)Object.prototype.hasOwnProperty.call(ie,Se)&&se.endPrefixMapping(Se)}else return X.currentNSMap=he,X.localNSMap=ie,!0}function U(X,se,he,me,ie){if(/^(?:script|textarea)$/i.test(he)){var de=X.indexOf("",se),be=X.substring(se+1,de);if(/[&<]/.test(be))return/^script$/i.test(he)?(ie.characters(be,0,be.length),de):(be=be.replace(/&#?\w+;/g,me),ie.characters(be,0,be.length),de)}return se+1}function W(X,se,he,me){var ie=me[he];return ie==null&&(ie=X.lastIndexOf(""),ie",se+4);return de>se?(he.comment(X,se+4,de-se-4),de+3):(me.error("Unclosed comment"),-1)}else return-1;default:if(X.substr(se+3,6)=="CDATA["){var de=X.indexOf("]]>",se+9);return he.startCDATA(),he.characters(X,se+9,de-se-9),he.endCDATA(),de+3}var be=ue(X,se),ge=be.length;if(ge>1&&/!doctype/i.test(be[0][0])){var Se=be[1][0],je=!1,Ye=!1;ge>3&&(/^public$/i.test(be[2][0])?(je=be[3][0],Ye=ge>4&&be[4][0]):/^system$/i.test(be[2][0])&&(Ye=be[3][0]));var st=be[ge-1];return he.startDTD(Se,je,Ye),he.endDTD(),st.index+st[0].length}}return-1}function te(X,se,he){var me=X.indexOf("?>",se);if(me){var ie=X.substring(se,me).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return ie?(ie[0].length,he.processingInstruction(ie[1],ie[2]),me+2):-1}return-1}function ne(){this.attributeNames={}}ne.prototype={setTagName:function(X){if(!S.test(X))throw new Error("invalid tagName:"+X);this.tagName=X},addValue:function(X,se,he){if(!S.test(X))throw new Error("invalid attribute:"+X);this.attributeNames[X]=this.length,this[this.length++]={qName:X,value:se,offset:he}},length:0,getLocalName:function(X){return this[X].localName},getLocator:function(X){return this[X].locator},getQName:function(X){return this[X].qName},getURI:function(X){return this[X].uri},getValue:function(X){return this[X].value}};function ue(X,se){var he,me=[],ie=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(ie.lastIndex=se,ie.exec(X);he=ie.exec(X);)if(me.push(he),he[1])return me}b.XMLReader=H,b.ParseError=L},"./node_modules/process/browser.js":function(d,b){var A=d.exports={},C,w;function x(){throw new Error("setTimeout has not been defined")}function S(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?C=setTimeout:C=x}catch(z){C=x}try{typeof clearTimeout=="function"?w=clearTimeout:w=S}catch(z){w=S}})();function E(z){if(C===setTimeout)return setTimeout(z,0);if((C===x||!C)&&setTimeout)return C=setTimeout,setTimeout(z,0);try{return C(z,0)}catch(Q){try{return C.call(null,z,0)}catch(q){return C.call(this,z,0)}}}function P(z){if(w===clearTimeout)return clearTimeout(z);if((w===S||!w)&&clearTimeout)return w=clearTimeout,clearTimeout(z);try{return w(z)}catch(Q){try{return w.call(null,z)}catch(q){return w.call(this,z)}}}var B=[],D=!1,k,I=-1;function $(){!D||!k||(D=!1,k.length?B=k.concat(B):I=-1,B.length&&M())}function M(){if(!D){var z=E($);D=!0;for(var Q=B.length;Q;){for(k=B,B=[];++I1)for(var q=1;qbe)return lt(null,!1);if(Me>1){var Oe=Math.max(et[0].Size,et[1].Size);if(Oe!==de)return lt(null,!1)}var Qe=function Ze(it){if(it=lt.length){st.emit("has_and_check_upload_id",ot);return}var Ze=lt[Qe];if(!E.isInArray(ot,Ze)){w.removeUploadId.call(he,Ze),Oe(Qe+1);return}if(w.using[Ze]){Oe(Qe+1);return}I.call(he,{Bucket:ne,Region:ue,Key:X,UploadId:Ze,tracker:K.tracker},function(it,Te){he._isRunningTask(te)&&(it?(w.removeUploadId.call(he,Ze),Oe(Qe+1)):st.emit("upload_id_available",{UploadId:Ze,PartList:Te.PartList}))})};Me(0)}),st.on("get_remote_upload_id_list",function(){k.call(he,{Bucket:ne,Region:ue,Key:X,tracker:K.tracker},function(ot,et){if(he._isRunningTask(te)){if(ot)return st.emit("error",ot);var lt=E.filter(et.UploadList,function(Qe){return Qe.Key===X&&(!se||Qe.StorageClass.toUpperCase()===se.toUpperCase())}).reverse().map(function(Qe){return Qe.UploadId||Qe.UploadID});if(lt.length)st.emit("seek_local_avail_upload_id",lt);else{var Me=w.getFileId(K.Body,K.ChunkSize,ne,X),Oe;Me&&(Oe=w.getUploadIdList.call(he,Me))&&E.each(Oe,function(Qe){w.removeUploadId.call(he,Qe)}),st.emit("no_available_upload_id")}}})}),st.emit("get_remote_upload_id_list")}function k(K,Z){var te=this,ne=[],ue={Bucket:K.Bucket,Region:K.Region,Prefix:K.Key,calledBySdk:K.calledBySdk||"sliceUploadFile",tracker:K.tracker},X=function se(){te.multipartList(ue,function(he,me){if(he)return Z(he);ne.push.apply(ne,me.Upload||[]),me.IsTruncated==="true"?(ue.KeyMarker=me.NextKeyMarker,ue.UploadIdMarker=me.NextUploadIdMarker,se()):Z(null,{UploadList:ne})})};X()}function I(K,Z){var te=this,ne=[],ue={Bucket:K.Bucket,Region:K.Region,Key:K.Key,UploadId:K.UploadId,calledBySdk:"sliceUploadFile",tracker:K.tracker},X=function se(){te.multipartListPart(ue,function(he,me){if(he)return Z(he);ne.push.apply(ne,me.Part||[]),me.IsTruncated==="true"?(ue.PartNumberMarker=me.NextPartNumberMarker,se()):Z(null,{PartList:ne})})};X()}function $(K,Z){var te=this,ne=K.TaskId,ue=K.Bucket,X=K.Region,se=K.Key,he=K.UploadData,me=K.FileSize,ie=K.SliceSize,de=Math.min(K.AsyncLimit||te.options.ChunkParallelLimit||1,256),be=K.Body,ge=Math.ceil(me/ie),Se=0,je=K.ServerSideEncryption,Ye=K.Headers,st=E.filter(he.PartList,function(et){return et.Uploaded&&(Se+=et.PartNumber>=ge&&me%ie||ie),!et.Uploaded}),ot=K.onProgress;x.eachLimit(st,de,function(et,lt){if(te._isRunningTask(ne)){var Me=et.PartNumber,Oe=Math.min(me,et.PartNumber*ie)-(et.PartNumber-1)*ie,Qe=0;M.call(te,{TaskId:ne,Bucket:ue,Region:X,Key:se,SliceSize:ie,FileSize:me,PartNumber:Me,ServerSideEncryption:je,Body:be,UploadData:he,Headers:Ye,onProgress:function(it){Se+=it.loaded-Qe,Qe=it.loaded,ot({loaded:Se,total:me})},tracker:K.tracker},function(Ze,it){te._isRunningTask(ne)&&(!Ze&&!it.ETag&&(Ze='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),Ze?Se-=Qe:(Se+=Oe-Qe,et.ETag=it.ETag),ot({loaded:Se,total:me}),lt(Ze||null,it))})}},function(et){if(te._isRunningTask(ne)){if(et)return Z(et);Z(null,{UploadId:he.UploadId,SliceList:he.PartList})}})}function M(K,Z){var te=this,ne=K.TaskId,ue=K.Bucket,X=K.Region,se=K.Key,he=K.FileSize,me=K.Body,ie=K.PartNumber*1,de=K.SliceSize,be=K.ServerSideEncryption,ge=K.UploadData,Se=K.Headers||{},je=te.options.ChunkRetryTimes+1,Ye=de*(ie-1),st=de,ot=Ye+de;ot>he&&(ot=he,st=ot-Ye);var et=["x-cos-traffic-limit","x-cos-mime-limit"],lt={};E.each(Se,function(Oe,Qe){et.indexOf(Qe)>-1&&(lt[Qe]=Oe)});var Me=ge.PartList[ie-1];x.retry(je,function(Oe){te._isRunningTask(ne)&&E.fileSlice(me,Ye,ot,!0,function(Qe){te.multipartUpload({TaskId:ne,Bucket:ue,Region:X,Key:se,ContentLength:st,PartNumber:ie,UploadId:ge.UploadId,ServerSideEncryption:be,Body:Qe,Headers:lt,onProgress:K.onProgress,calledBySdk:"sliceUploadFile",tracker:K.tracker},function(Ze,it){if(te._isRunningTask(ne))return Ze?Oe(Ze):(Me.Uploaded=!0,Oe(null,it))})})},function(Oe,Qe){if(te._isRunningTask(ne))return Z(Oe,Qe)})}function L(K,Z){var te=K.Bucket,ne=K.Region,ue=K.Key,X=K.UploadId,se=K.SliceList,he=this,me=this.options.ChunkRetryTimes+1,ie=K.Headers,de=se.map(function(be){return{PartNumber:be.PartNumber,ETag:be.ETag}});x.retry(me,function(be){he.multipartComplete({Bucket:te,Region:ne,Key:ue,UploadId:X,Parts:de,Headers:ie,calledBySdk:"sliceUploadFile",tracker:K.tracker},be)},function(be,ge){Z(be,ge)})}function H(K,Z){var te=K.Bucket,ne=K.Region,ue=K.Key,X=K.UploadId,se=K.Level||"task",he=K.AsyncLimit,me=this,ie=new S;if(ie.on("error",function(de){return Z(de)}),ie.on("get_abort_array",function(de){z.call(me,{Bucket:te,Region:ne,Key:ue,Headers:K.Headers,AsyncLimit:he,AbortArray:de},Z)}),se==="bucket")k.call(me,{Bucket:te,Region:ne,calledBySdk:"abortUploadTask"},function(de,be){if(de)return Z(de);ie.emit("get_abort_array",be.UploadList||[])});else if(se==="file"){if(!ue)return Z(E.error(new Error("abort_upload_task_no_key")));k.call(me,{Bucket:te,Region:ne,Key:ue,calledBySdk:"abortUploadTask"},function(de,be){if(de)return Z(de);ie.emit("get_abort_array",be.UploadList||[])})}else if(se==="task"){if(!X)return Z(E.error(new Error("abort_upload_task_no_id")));if(!ue)return Z(E.error(new Error("abort_upload_task_no_key")));ie.emit("get_abort_array",[{Key:ue,UploadId:X}])}else return Z(E.error(new Error("abort_unknown_level")))}function z(K,Z){var te=K.Bucket,ne=K.Region,ue=K.Key,X=K.AbortArray,se=K.AsyncLimit||1,he=this,me=0,ie=new Array(X.length);x.eachLimit(X,se,function(de,be){var ge=me;if(ue&&ue!==de.Key){ie[ge]={error:{KeyNotMatch:!0}},be(null);return}var Se=de.UploadId||de.UploadID;he.multipartAbort({Bucket:te,Region:ne,Key:de.Key,Headers:K.Headers,UploadId:Se},function(je){var Ye={Bucket:te,Region:ne,Key:de.Key,UploadId:Se};ie[ge]={error:je,task:Ye},be(null)}),me++},function(de){if(de)return Z(de);for(var be=[],ge=[],Se=0,je=ie.length;Sene?"sliceUploadFile":"putObject",ge=K.onFileFinish,Se=function(Ye,st){K.tracker&&K.tracker.formatResult(Ye,st),ge&&ge(Ye,st,he),Z&&Z(Ye,st)};ue.push({api:be,params:K,callback:Se}),te._addTasks(ue)}function q(K,Z){var te=this,ne=K.SliceSize===void 0?te.options.SliceSize:K.SliceSize,ue=0,X=0,se=E.throttleOnProgress.call(te,X,K.onProgress),he=K.files.length,me=K.onFileFinish,ie=Array(he),de=function(Se,je,Ye){se(null,!0),me&&me(Se,je,Ye),ie[Ye.Index]={options:Ye,error:Se,data:je},--he<=0&&Z&&Z(null,{files:ie})},be=[];E.each(K.files,function(ge,Se){(function(){var je=ge.Body,Ye=je.size||je.length||0,st={Index:Se,TaskId:""};if(!te.options.UseRawKey&&ge.Key&&ge.Key.substr(0,1)==="/"&&(ge.Key=ge.Key.substr(1)),ue+=Ye,te.options.EnableTracker){var ot=te.options.UseAccelerate||typeof te.options.Domain=="string"&&te.options.Domain.includes("accelerate.");ge.tracker=new P({bucket:ge.Bucket,region:ge.Region,apiName:"uploadFiles",fileKey:ge.Key,fileSize:Ye,accelerate:ot,deepTracker:te.options.DeepTracker,customId:te.options.CustomId,delay:te.options.TrackerDelay})}E.each(ge,function(_e,He){C(_e)!=="object"&&typeof _e!="function"&&(st[He]=_e)});var et=ge.onTaskReady,lt=function(He){st.TaskId=He,et&&et(He)};ge.onTaskReady=lt;var Me=0,Oe=ge.onProgress,Qe=function(He){X=X-Me+He.loaded,Me=He.loaded,Oe&&Oe(He),se({loaded:X,total:ue})};ge.onProgress=Qe;var Ze=Ye>ne?"sliceUploadFile":"putObject",it=ge.onFileFinish,Te=function(He,Je){ge.tracker&&ge.tracker.formatResult(He,Je),it&&it(He,Je),de&&de(He,Je,st)};be.push({api:Ze,params:ge,callback:Te})})()}),te._addTasks(be)}function V(K,Z){var te=new S,ne=this,ue=K.Bucket,X=K.Region,se=K.Key,he=K.CopySource,me=E.getSourceParams.call(this,he);if(!me){Z(E.error(new Error("CopySource format error")));return}var ie=me.Bucket,de=me.Region,be=decodeURIComponent(me.Key),ge=K.CopySliceSize===void 0?ne.options.CopySliceSize:K.CopySliceSize;ge=Math.max(0,ge);var Se=K.CopyChunkSize||this.options.CopyChunkSize,je=this.options.CopyChunkParallelLimit,Ye=this.options.ChunkRetryTimes+1,st=0,ot=0,et,lt,Me={},Oe={},Qe={};te.on("copy_slice_complete",function(Ze){E.each(K.Headers,function(Te,_e){_e.toLowerCase().indexOf("x-cos-meta-")});var it=E.map(Ze.PartList,function(Te){return{PartNumber:Te.PartNumber,ETag:Te.ETag}});x.retry(Ye,function(Te){ne.multipartComplete({Bucket:ue,Region:X,Key:se,UploadId:Ze.UploadId,Parts:it,calledBySdk:"sliceCopyFile"},Te)},function(Te,_e){if(w.removeUsing(Ze.UploadId),Te)return lt(null,!0),Z(Te);w.removeUploadId(Ze.UploadId),lt({loaded:et,total:et},!0),Z(null,_e)})}),te.on("get_copy_data_finish",function(Ze){var it=w.getCopyFileId(he,Me,Se,ue,se);it&&w.saveUploadId(it,Ze.UploadId,ne.options.UploadIdCacheLimit),w.setUsing(Ze.UploadId);var Te=E.filter(Ze.PartList,function(_e){return _e.Uploaded&&(ot+=_e.PartNumber>=st&&et%Se||Se),!_e.Uploaded});x.eachLimit(Te,je,function(_e,He){var Je=_e.PartNumber,Ke=_e.CopySourceRange,Ie=_e.end-_e.start;x.retry(Ye,function(Fe){U.call(ne,{Bucket:ue,Region:X,Key:se,CopySource:he,UploadId:Ze.UploadId,PartNumber:Je,CopySourceRange:Ke},Fe)},function(Fe,ae){if(Fe)return He(Fe);ot+=Ie,lt({loaded:ot,total:et}),_e.ETag=ae.ETag,He(Fe||null,ae)})},function(_e){if(_e)return w.removeUsing(Ze.UploadId),lt(null,!0),Z(_e);te.emit("copy_slice_complete",Ze)})}),te.on("get_chunk_size_finish",function(){var Ze=function(){ne.multipartInit({Bucket:ue,Region:X,Key:se,Headers:Qe},function(Je,Ke){if(Je)return Z(Je);K.UploadId=Ke.UploadId,te.emit("get_copy_data_finish",{UploadId:K.UploadId,PartList:K.PartList})})},it=w.getCopyFileId(he,Me,Se,ue,se),Te=w.getUploadIdList(it);if(!it||!Te)return Ze();var _e=function He(Je){if(Je>=Te.length)return Ze();var Ke=Te[Je];if(w.using[Ke])return He(Je+1);I.call(ne,{Bucket:ue,Region:X,Key:se,UploadId:Ke},function(Ie,Fe){if(Ie)w.removeUploadId(Ke),He(Je+1);else{if(w.using[Ke])return He(Je+1);var ae={},ee=0;E.each(Fe.PartList,function(J){var le=parseInt(J.Size),ve=ee+le-1;ae[J.PartNumber+"|"+ee+"|"+ve]=J.ETag,ee+=le}),E.each(K.PartList,function(J){var le=ae[J.PartNumber+"|"+J.start+"|"+J.end];le&&(J.ETag=le,J.Uploaded=!0)}),te.emit("get_copy_data_finish",{UploadId:Ke,PartList:K.PartList})}})};_e(0)}),te.on("get_file_size_finish",function(){if(function(){for(var it=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],Te=1024*1024,_e=0;_eJe.length&&(Oe[He]=_e)}),te.emit("get_file_size_finish")}})}function U(K,Z){var te=K.TaskId,ne=K.Bucket,ue=K.Region,X=K.Key,se=K.CopySource,he=K.UploadId,me=K.PartNumber*1,ie=K.CopySourceRange,de=this.options.ChunkRetryTimes+1,be=this;x.retry(de,function(ge){be.uploadPartCopy({TaskId:te,Bucket:ne,Region:ue,Key:X,CopySource:se,UploadId:he,PartNumber:me,CopySourceRange:ie},function(Se,je){ge(Se||null,je)})},function(ge,Se){return Z(ge,Se)})}var W={sliceUploadFile:B,abortUploadTask:H,uploadFile:Q,uploadFiles:q,sliceCopyFile:V};d.exports.init=function(K,Z){Z.transferToTaskMethod(W,"sliceUploadFile"),E.each(W,function(te,ne){K.prototype[ne]=E.apiWrapper(ne,te)})}},"./src/async.js":function(d,b){var A=function(S,E,P,B){if(B=B||function(){},!S.length||E<=0)return B();var D=0,k=0,I=0;(function $(){if(D>=S.length)return B();for(;I=S.length?B():$())})})()},C=function(S,E,P){var B=function D(k){E(function(I,$){I&&k"u"?"undefined":C(location))==="object"&&location.protocol==="http:"?"http:":"https:"),Ce=this.options.ServiceDomain,Le=Y.AppId||this.options.appId,$e=Y.Region;Ce?(Ce=Ce.replace(/\{\{AppId\}\}/gi,Le||"").replace(/\{\{Region\}\}/gi,$e||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(Ce)||(Ce=fe+"//"+Ce),Ce.slice(-1)==="/"&&(Ce=Ce.slice(0,-1))):$e?Ce=fe+"//cos."+$e+".myqcloud.com":Ce=fe+"//service.cos.myqcloud.com";var Ge="",ct=$e?"cos."+$e+".myqcloud.com":"service.cos.myqcloud.com",Tt=Ce.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");ct===Tt&&(Ge=ct),ht.call(this,{Action:"name/cos:GetService",url:Ce,method:"GET",headers:Y.Headers,SignHost:Ge},function(Ot,Lt){if(Ot)return xe(Ot);var Nt=Lt&&Lt.ListAllMyBucketsResult&&Lt.ListAllMyBucketsResult.Buckets&&Lt.ListAllMyBucketsResult.Buckets.Bucket||[];Nt=x.isArray(Nt)?Nt:[Nt];var Ht=Lt&&Lt.ListAllMyBucketsResult&&Lt.ListAllMyBucketsResult.Owner||{};xe(null,{Buckets:Nt,Owner:Ht,statusCode:Lt.statusCode,headers:Lt.headers})})}function E(Y,xe){var fe=this,Ce="";if(Y.BucketAZConfig){var Le={BucketAZConfig:Y.BucketAZConfig};Ce=x.json2xml({CreateBucketConfiguration:Le})}ht.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,body:Ce},function($e,Ge){if($e)return xe($e);var ct=ze({protocol:fe.options.Protocol,domain:fe.options.Domain,bucket:Y.Bucket,region:Y.Region,isLocation:!0});xe(null,{Location:ct,statusCode:Ge.statusCode,headers:Ge.headers})})}function P(Y,xe){ht.call(this,{Action:"name/cos:HeadBucket",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,method:"HEAD"},xe)}function B(Y,xe){var fe={};fe.prefix=Y.Prefix||"",fe.delimiter=Y.Delimiter,fe.marker=Y.Marker,fe["max-keys"]=Y.MaxKeys,fe["encoding-type"]=Y.EncodingType,ht.call(this,{Action:"name/cos:GetBucket",ResourceKey:fe.prefix,method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,qs:fe},function(Ce,Le){if(Ce)return xe(Ce);var $e=Le.ListBucketResult||{},Ge=$e.Contents||[],ct=$e.CommonPrefixes||[];Ge=x.isArray(Ge)?Ge:[Ge],ct=x.isArray(ct)?ct:[ct];var Tt=x.clone($e);x.extend(Tt,{Contents:Ge,CommonPrefixes:ct,statusCode:Le.statusCode,headers:Le.headers}),xe(null,Tt)})}function D(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucket",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,method:"DELETE"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function k(Y,xe){var fe=Y.Headers,Ce="";if(Y.AccessControlPolicy){var Le=x.clone(Y.AccessControlPolicy||{}),$e=Le.Grants||Le.Grant;$e=x.isArray($e)?$e:[$e],delete Le.Grant,delete Le.Grants,Le.AccessControlList={Grant:$e},Ce=x.json2xml({AccessControlPolicy:Le}),fe["Content-Type"]="application/xml",fe["Content-MD5"]=x.b64(x.md5(Ce))}x.each(fe,function(Ge,ct){ct.indexOf("x-cos-grant-")===0&&(fe[ct]=Ae(fe[ct]))}),ht.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,headers:fe,action:"acl",body:Ce},function(Ge,ct){if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function I(Y,xe){ht.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"acl"},function(fe,Ce){if(fe)return xe(fe);var Le=Ce.AccessControlPolicy||{},$e=Le.Owner||{},Ge=Le.AccessControlList.Grant||[];Ge=x.isArray(Ge)?Ge:[Ge];var ct=ce(Le);Ce.headers&&Ce.headers["x-cos-acl"]&&(ct.ACL=Ce.headers["x-cos-acl"]),ct=x.extend(ct,{Owner:$e,Grants:Ge,statusCode:Ce.statusCode,headers:Ce.headers}),xe(null,ct)})}function $(Y,xe){var fe=Y.CORSConfiguration||{},Ce=fe.CORSRules||Y.CORSRules||[];Ce=x.clone(x.isArray(Ce)?Ce:[Ce]),x.each(Ce,function(ct){x.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Tt){var Ot=Tt+"s",Lt=ct[Ot]||ct[Tt]||[];delete ct[Ot],ct[Tt]=x.isArray(Lt)?Lt:[Lt]})});var Le={CORSRule:Ce};Y.ResponseVary&&(Le.ResponseVary=Y.ResponseVary);var $e=x.json2xml({CORSConfiguration:Le}),Ge=Y.Headers;Ge["Content-Type"]="application/xml",Ge["Content-MD5"]=x.b64(x.md5($e)),ht.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:$e,action:"cors",headers:Ge},function(ct,Tt){if(ct)return xe(ct);xe(null,{statusCode:Tt.statusCode,headers:Tt.headers})})}function M(Y,xe){ht.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"cors"},function(fe,Ce){if(fe){if(fe.statusCode===404&&fe.error&&fe.error.Code==="NoSuchCORSConfiguration"){var Le={CORSRules:[],statusCode:fe.statusCode};fe.headers&&(Le.headers=fe.headers),xe(null,Le)}else xe(fe);return}var $e=Ce.CORSConfiguration||{},Ge=$e.CORSRules||$e.CORSRule||[];Ge=x.clone(x.isArray(Ge)?Ge:[Ge]);var ct=$e.ResponseVary;x.each(Ge,function(Tt){x.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Ot){var Lt=Ot+"s",Nt=Tt[Lt]||Tt[Ot]||[];delete Tt[Ot],Tt[Lt]=x.isArray(Nt)?Nt:[Nt]})}),xe(null,{CORSRules:Ge,ResponseVary:ct,statusCode:Ce.statusCode,headers:Ce.headers})})}function L(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"cors"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode||fe.statusCode,headers:Ce.headers})})}function H(Y,xe){ht.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"location"},xe)}function z(Y,xe){var fe=Y.Policy;try{typeof fe=="string"&&(fe=JSON.parse(fe))}catch($e){}if(!fe||typeof fe=="string")return xe(x.error(new Error("Policy format error")));var Ce=JSON.stringify(fe);fe.version||(fe.version="2.0");var Le=Y.Headers;Le["Content-Type"]="application/json",Le["Content-MD5"]=x.b64(x.md5(Ce)),ht.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,action:"policy",body:Ce,headers:Le},function($e,Ge){if($e&&$e.statusCode===204)return xe(null,{statusCode:$e.statusCode});if($e)return xe($e);xe(null,{statusCode:Ge.statusCode,headers:Ge.headers})})}function Q(Y,xe){ht.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"policy",rawBody:!0},function(fe,Ce){if(fe)return fe.statusCode&&fe.statusCode===403?xe(x.error(fe,{ErrorStatus:"Access Denied"})):fe.statusCode&&fe.statusCode===405?xe(x.error(fe,{ErrorStatus:"Method Not Allowed"})):fe.statusCode&&fe.statusCode===404?xe(x.error(fe,{ErrorStatus:"Policy Not Found"})):xe(fe);var Le={};try{Le=JSON.parse(Ce.body)}catch($e){}xe(null,{Policy:Le,statusCode:Ce.statusCode,headers:Ce.headers})})}function q(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"policy"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode||fe.statusCode,headers:Ce.headers})})}function V(Y,xe){var fe=Y.Tagging||{},Ce=fe.TagSet||fe.Tags||Y.Tags||[];Ce=x.clone(x.isArray(Ce)?Ce:[Ce]);var Le=x.json2xml({Tagging:{TagSet:{Tag:Ce}}}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Le,action:"tagging",headers:$e},function(Ge,ct){if(Ge&&Ge.statusCode===204)return xe(null,{statusCode:Ge.statusCode});if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function U(Y,xe){ht.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"tagging"},function(fe,Ce){if(fe){if(fe.statusCode===404&&fe.error&&(fe.error==="Not Found"||fe.error.Code==="NoSuchTagSet")){var Le={Tags:[],statusCode:fe.statusCode};fe.headers&&(Le.headers=fe.headers),xe(null,Le)}else xe(fe);return}var $e=[];try{$e=Ce.Tagging.TagSet.Tag||[]}catch(Ge){}$e=x.clone(x.isArray($e)?$e:[$e]),xe(null,{Tags:$e,statusCode:Ce.statusCode,headers:Ce.headers})})}function W(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"tagging"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function K(Y,xe){var fe=Y.LifecycleConfiguration||{},Ce=fe.Rules||Y.Rules||[];Ce=x.clone(Ce);var Le=x.json2xml({LifecycleConfiguration:{Rule:Ce}}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Le,action:"lifecycle",headers:$e},function(Ge,ct){if(Ge&&Ge.statusCode===204)return xe(null,{statusCode:Ge.statusCode});if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function Z(Y,xe){ht.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"lifecycle"},function(fe,Ce){if(fe){if(fe.statusCode===404&&fe.error&&fe.error.Code==="NoSuchLifecycleConfiguration"){var Le={Rules:[],statusCode:fe.statusCode};fe.headers&&(Le.headers=fe.headers),xe(null,Le)}else xe(fe);return}var $e=[];try{$e=Ce.LifecycleConfiguration.Rule||[]}catch(Ge){}$e=x.clone(x.isArray($e)?$e:[$e]),xe(null,{Rules:$e,statusCode:Ce.statusCode,headers:Ce.headers})})}function te(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"lifecycle"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function ne(Y,xe){if(!Y.VersioningConfiguration){xe(x.error(new Error("missing param VersioningConfiguration")));return}var fe=Y.VersioningConfiguration||{},Ce=x.json2xml({VersioningConfiguration:fe}),Le=Y.Headers;Le["Content-Type"]="application/xml",Le["Content-MD5"]=x.b64(x.md5(Ce)),ht.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Ce,action:"versioning",headers:Le},function($e,Ge){if($e&&$e.statusCode===204)return xe(null,{statusCode:$e.statusCode});if($e)return xe($e);xe(null,{statusCode:Ge.statusCode,headers:Ge.headers})})}function ue(Y,xe){ht.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"versioning"},function(fe,Ce){fe||!Ce.VersioningConfiguration&&(Ce.VersioningConfiguration={}),xe(fe,Ce)})}function X(Y,xe){var fe=x.clone(Y.ReplicationConfiguration),Ce=x.json2xml({ReplicationConfiguration:fe});Ce=Ce.replace(/<(\/?)Rules>/gi,"<$1Rule>"),Ce=Ce.replace(/<(\/?)Tags>/gi,"<$1Tag>");var Le=Y.Headers;Le["Content-Type"]="application/xml",Le["Content-MD5"]=x.b64(x.md5(Ce)),ht.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Ce,action:"replication",headers:Le},function($e,Ge){if($e&&$e.statusCode===204)return xe(null,{statusCode:$e.statusCode});if($e)return xe($e);xe(null,{statusCode:Ge.statusCode,headers:Ge.headers})})}function se(Y,xe){ht.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"replication"},function(fe,Ce){if(fe){if(fe.statusCode===404&&fe.error&&(fe.error==="Not Found"||fe.error.Code==="ReplicationConfigurationnotFoundError")){var Le={ReplicationConfiguration:{Rules:[]},statusCode:fe.statusCode};fe.headers&&(Le.headers=fe.headers),xe(null,Le)}else xe(fe);return}!Ce.ReplicationConfiguration&&(Ce.ReplicationConfiguration={}),Ce.ReplicationConfiguration.Rule&&(Ce.ReplicationConfiguration.Rules=x.makeArray(Ce.ReplicationConfiguration.Rule),delete Ce.ReplicationConfiguration.Rule),xe(fe,Ce)})}function he(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"replication"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function me(Y,xe){if(!Y.WebsiteConfiguration){xe(x.error(new Error("missing param WebsiteConfiguration")));return}var fe=x.clone(Y.WebsiteConfiguration||{}),Ce=fe.RoutingRules||fe.RoutingRule||[];Ce=x.isArray(Ce)?Ce:[Ce],delete fe.RoutingRule,delete fe.RoutingRules,Ce.length&&(fe.RoutingRules={RoutingRule:Ce});var Le=x.json2xml({WebsiteConfiguration:fe}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Le,action:"website",headers:$e},function(Ge,ct){if(Ge&&Ge.statusCode===204)return xe(null,{statusCode:Ge.statusCode});if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function ie(Y,xe){ht.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,headers:Y.Headers,action:"website"},function(fe,Ce){if(fe){if(fe.statusCode===404&&fe.error.Code==="NoSuchWebsiteConfiguration"){var Le={WebsiteConfiguration:{},statusCode:fe.statusCode};fe.headers&&(Le.headers=fe.headers),xe(null,Le)}else xe(fe);return}var $e=Ce.WebsiteConfiguration||{};if($e.RoutingRules){var Ge=x.clone($e.RoutingRules.RoutingRule||[]);Ge=x.makeArray(Ge),$e.RoutingRules=Ge}xe(null,{WebsiteConfiguration:$e,statusCode:Ce.statusCode,headers:Ce.headers})})}function de(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"website"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function be(Y,xe){if(!Y.RefererConfiguration){xe(x.error(new Error("missing param RefererConfiguration")));return}var fe=x.clone(Y.RefererConfiguration||{}),Ce=fe.DomainList||{},Le=Ce.Domains||Ce.Domain||[];Le=x.isArray(Le)?Le:[Le],Le.length&&(fe.DomainList={Domain:Le});var $e=x.json2xml({RefererConfiguration:fe}),Ge=Y.Headers;Ge["Content-Type"]="application/xml",Ge["Content-MD5"]=x.b64(x.md5($e)),ht.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:$e,action:"referer",headers:Ge},function(ct,Tt){if(ct&&ct.statusCode===204)return xe(null,{statusCode:ct.statusCode});if(ct)return xe(ct);xe(null,{statusCode:Tt.statusCode,headers:Tt.headers})})}function ge(Y,xe){ht.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,headers:Y.Headers,action:"referer"},function(fe,Ce){if(fe){if(fe.statusCode===404&&fe.error.Code==="NoSuchRefererConfiguration"){var Le={WebsiteConfiguration:{},statusCode:fe.statusCode};fe.headers&&(Le.headers=fe.headers),xe(null,Le)}else xe(fe);return}var $e=Ce.RefererConfiguration||{};if($e.DomainList){var Ge=x.makeArray($e.DomainList.Domain||[]);$e.DomainList={Domains:Ge}}xe(null,{RefererConfiguration:$e,statusCode:Ce.statusCode,headers:Ce.headers})})}function Se(Y,xe){var fe=Y.DomainConfiguration||{},Ce=fe.DomainRule||Y.DomainRule||[];Ce=x.clone(Ce);var Le=x.json2xml({DomainConfiguration:{DomainRule:Ce}}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Le,action:"domain",headers:$e},function(Ge,ct){if(Ge&&Ge.statusCode===204)return xe(null,{statusCode:Ge.statusCode});if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function je(Y,xe){ht.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"domain"},function(fe,Ce){if(fe)return xe(fe);var Le=[];try{Le=Ce.DomainConfiguration.DomainRule||[]}catch($e){}Le=x.clone(x.isArray(Le)?Le:[Le]),xe(null,{DomainRule:Le,statusCode:Ce.statusCode,headers:Ce.headers})})}function Ye(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"domain"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function st(Y,xe){var fe=Y.OriginConfiguration||{},Ce=fe.OriginRule||Y.OriginRule||[];Ce=x.clone(Ce);var Le=x.json2xml({OriginConfiguration:{OriginRule:Ce}}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Le,action:"origin",headers:$e},function(Ge,ct){if(Ge&&Ge.statusCode===204)return xe(null,{statusCode:Ge.statusCode});if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function ot(Y,xe){ht.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"origin"},function(fe,Ce){if(fe)return xe(fe);var Le=[];try{Le=Ce.OriginConfiguration.OriginRule||[]}catch($e){}Le=x.clone(x.isArray(Le)?Le:[Le]),xe(null,{OriginRule:Le,statusCode:Ce.statusCode,headers:Ce.headers})})}function et(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"origin"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function lt(Y,xe){var fe=x.json2xml({BucketLoggingStatus:Y.BucketLoggingStatus||""}),Ce=Y.Headers;Ce["Content-Type"]="application/xml",Ce["Content-MD5"]=x.b64(x.md5(fe)),ht.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:fe,action:"logging",headers:Ce},function(Le,$e){if(Le&&Le.statusCode===204)return xe(null,{statusCode:Le.statusCode});if(Le)return xe(Le);xe(null,{statusCode:$e.statusCode,headers:$e.headers})})}function Me(Y,xe){ht.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"logging"},function(fe,Ce){if(fe)return xe(fe);xe(null,{BucketLoggingStatus:Ce.BucketLoggingStatus,statusCode:Ce.statusCode,headers:Ce.headers})})}function Oe(Y,xe,fe){var Ce=x.clone(xe.InventoryConfiguration);if(Ce.OptionalFields){var Le=Ce.OptionalFields||[];Ce.OptionalFields={Field:Le}}if(Ce.Destination&&Ce.Destination.COSBucketDestination&&Ce.Destination.COSBucketDestination.Encryption){var $e=Ce.Destination.COSBucketDestination.Encryption;Object.keys($e).indexOf("SSECOS")>-1&&($e["SSE-COS"]=$e.SSECOS,delete $e.SSECOS)}var Ge=x.json2xml({InventoryConfiguration:Ce}),ct=xe.Headers;ct["Content-Type"]="application/xml",ct["Content-MD5"]=x.b64(x.md5(Ge));var Tt=Y==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";ht.call(this,{Action:Tt,method:Y,Bucket:xe.Bucket,Region:xe.Region,body:Ge,action:"inventory",qs:{id:xe.Id},headers:ct},function(Ot,Lt){if(Ot&&Ot.statusCode===204)return fe(null,{statusCode:Ot.statusCode});if(Ot)return fe(Ot);fe(null,{statusCode:Lt.statusCode,headers:Lt.headers})})}function Qe(Y,xe){return Oe.call(this,"PUT",Y,xe)}function Ze(Y,xe){return Oe.call(this,"POST",Y,xe)}function it(Y,xe){ht.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"inventory",qs:{id:Y.Id}},function(fe,Ce){if(fe)return xe(fe);var Le=Ce.InventoryConfiguration;if(Le&&Le.OptionalFields&&Le.OptionalFields.Field){var $e=Le.OptionalFields.Field;x.isArray($e)||($e=[$e]),Le.OptionalFields=$e}if(Le.Destination&&Le.Destination.COSBucketDestination&&Le.Destination.COSBucketDestination.Encryption){var Ge=Le.Destination.COSBucketDestination.Encryption;Object.keys(Ge).indexOf("SSE-COS")>-1&&(Ge.SSECOS=Ge["SSE-COS"],delete Ge["SSE-COS"])}xe(null,{InventoryConfiguration:Le,statusCode:Ce.statusCode,headers:Ce.headers})})}function Te(Y,xe){ht.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"inventory",qs:{"continuation-token":Y.ContinuationToken}},function(fe,Ce){if(fe)return xe(fe);var Le=Ce.ListInventoryConfigurationResult,$e=Le.InventoryConfiguration||[];$e=x.isArray($e)?$e:[$e],delete Le.InventoryConfiguration,x.each($e,function(Ge){if(Ge&&Ge.OptionalFields&&Ge.OptionalFields.Field){var ct=Ge.OptionalFields.Field;x.isArray(ct)||(ct=[ct]),Ge.OptionalFields=ct}if(Ge.Destination&&Ge.Destination.COSBucketDestination&&Ge.Destination.COSBucketDestination.Encryption){var Tt=Ge.Destination.COSBucketDestination.Encryption;Object.keys(Tt).indexOf("SSE-COS")>-1&&(Tt.SSECOS=Tt["SSE-COS"],delete Tt["SSE-COS"])}}),Le.InventoryConfigurations=$e,x.extend(Le,{statusCode:Ce.statusCode,headers:Ce.headers}),xe(null,Le)})}function _e(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"inventory",qs:{id:Y.Id}},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function He(Y,xe){if(!Y.AccelerateConfiguration){xe(x.error(new Error("missing param AccelerateConfiguration")));return}var fe={AccelerateConfiguration:Y.AccelerateConfiguration||{}},Ce=x.json2xml(fe),Le={};Le["Content-Type"]="application/xml",Le["Content-MD5"]=x.b64(x.md5(Ce)),ht.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Ce,action:"accelerate",headers:Le},function($e,Ge){if($e)return xe($e);xe(null,{statusCode:Ge.statusCode,headers:Ge.headers})})}function Je(Y,xe){ht.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:Y.Bucket,Region:Y.Region,action:"accelerate"},function(fe,Ce){fe||!Ce.AccelerateConfiguration&&(Ce.AccelerateConfiguration={}),xe(fe,Ce)})}function Ke(Y,xe){var fe=Y.ServerSideEncryptionConfiguration||{},Ce=fe.Rule||fe.Rules||[],Le=x.json2xml({ServerSideEncryptionConfiguration:{Rule:Ce}}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,body:Le,action:"encryption",headers:$e},function(Ge,ct){if(Ge&&Ge.statusCode===204)return xe(null,{statusCode:Ge.statusCode});if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function Ie(Y,xe){ht.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"encryption"},function(fe,Ce){if(fe){if(fe.statusCode===404&&fe.code==="NoSuchEncryptionConfiguration"){var Le={EncryptionConfiguration:{Rules:[]},statusCode:fe.statusCode};fe.headers&&(Le.headers=fe.headers),xe(null,Le)}else xe(fe);return}var $e=x.makeArray(Ce.EncryptionConfiguration&&Ce.EncryptionConfiguration.Rule||[]);Ce.EncryptionConfiguration={Rules:$e},xe(fe,Ce)})}function Fe(Y,xe){ht.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"encryption"},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function ae(Y,xe){ht.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,VersionId:Y.VersionId,headers:Y.Headers},function(fe,Ce){if(fe){var Le=fe.statusCode;return Y.Headers["If-Modified-Since"]&&Le&&Le===304?xe(null,{NotModified:!0,statusCode:Le}):xe(fe)}Ce.ETag=x.attr(Ce.headers,"etag",""),xe(null,Ce)})}function ee(Y,xe){var fe={};fe.prefix=Y.Prefix||"",fe.delimiter=Y.Delimiter,fe["key-marker"]=Y.KeyMarker,fe["version-id-marker"]=Y.VersionIdMarker,fe["max-keys"]=Y.MaxKeys,fe["encoding-type"]=Y.EncodingType,ht.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:fe.prefix,method:"GET",Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,qs:fe,action:"versions"},function(Ce,Le){if(Ce)return xe(Ce);var $e=Le.ListVersionsResult||{},Ge=$e.DeleteMarker||[];Ge=x.isArray(Ge)?Ge:[Ge];var ct=$e.Version||[];ct=x.isArray(ct)?ct:[ct];var Tt=x.clone($e);delete Tt.DeleteMarker,delete Tt.Version,x.extend(Tt,{DeleteMarkers:Ge,Versions:ct,statusCode:Le.statusCode,headers:Le.headers}),xe(null,Tt)})}function J(Y,xe){var fe=Y.Query||{},Ce=Y.QueryString||"",Le=x.throttleOnProgress.call(this,0,Y.onProgress),$e=Y.tracker;$e&&$e.setParams({signStartTime:new Date().getTime()}),fe["response-content-type"]=Y.ResponseContentType,fe["response-content-language"]=Y.ResponseContentLanguage,fe["response-expires"]=Y.ResponseExpires,fe["response-cache-control"]=Y.ResponseCacheControl,fe["response-content-disposition"]=Y.ResponseContentDisposition,fe["response-content-encoding"]=Y.ResponseContentEncoding,ht.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,VersionId:Y.VersionId,DataType:Y.DataType,headers:Y.Headers,qs:fe,qsStr:Ce,rawBody:!0,onDownloadProgress:Le,tracker:$e},function(Ge,ct){if(Le(null,!0),Ge){var Tt=Ge.statusCode;return Y.Headers["If-Modified-Since"]&&Tt&&Tt===304?xe(null,{NotModified:!0}):xe(Ge)}xe(null,{Body:ct.body,ETag:x.attr(ct.headers,"etag",""),statusCode:ct.statusCode,headers:ct.headers})})}function le(Y,xe){var fe=this,Ce=Y.ContentLength,Le=x.throttleOnProgress.call(fe,Ce,Y.onProgress),$e=Y.Headers;!$e["Cache-Control"]&&!$e["cache-control"]&&($e["Cache-Control"]=""),!$e["Content-Type"]&&!$e["content-type"]&&($e["Content-Type"]=Y.Body&&Y.Body.type||"");var Ge=Y.UploadAddMetaMd5||fe.options.UploadAddMetaMd5||fe.options.UploadCheckContentMd5,ct=Y.tracker;Ge&&ct&&ct.setParams({md5StartTime:new Date().getTime()}),x.getBodyMd5(Ge,Y.Body,function(Tt){Tt&&(ct&&ct.setParams({md5EndTime:new Date().getTime()}),fe.options.UploadCheckContentMd5&&($e["Content-MD5"]=x.b64(Tt)),(Y.UploadAddMetaMd5||fe.options.UploadAddMetaMd5)&&($e["x-cos-meta-md5"]=Tt)),Y.ContentLength!==void 0&&($e["Content-Length"]=Y.ContentLength),Le(null,!0),ht.call(fe,{Action:"name/cos:PutObject",TaskId:Y.TaskId,method:"PUT",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,headers:Y.Headers,qs:Y.Query,body:Y.Body,onProgress:Le,tracker:ct},function(Ot,Lt){if(Ot)return Le(null,!0),xe(Ot);Le({loaded:Ce,total:Ce},!0);var Nt=ze({ForcePathStyle:fe.options.ForcePathStyle,protocol:fe.options.Protocol,domain:fe.options.Domain,bucket:Y.Bucket,region:fe.options.UseAccelerate?"accelerate":Y.Region,object:Y.Key});Nt=Nt.substr(Nt.indexOf("://")+3),Lt.Location=Nt,Lt.ETag=x.attr(Lt.headers,"etag",""),xe(null,Lt)})},Y.onHashProgress)}function ve(Y,xe){ht.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,headers:Y.Headers,VersionId:Y.VersionId,action:Y.Recursive?"recursive":""},function(fe,Ce){if(fe){var Le=fe.statusCode;return Le&&Le===404?xe(null,{BucketNotFound:!0,statusCode:Le}):xe(fe)}xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function Be(Y,xe){var fe={};Y.VersionId&&(fe.versionId=Y.VersionId),ht.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,headers:Y.Headers,qs:fe,action:"acl"},function(Ce,Le){if(Ce)return xe(Ce);var $e=Le.AccessControlPolicy||{},Ge=$e.Owner||{},ct=$e.AccessControlList&&$e.AccessControlList.Grant||[];ct=x.isArray(ct)?ct:[ct];var Tt=ce($e);delete Tt.GrantWrite,Le.headers&&Le.headers["x-cos-acl"]&&(Tt.ACL=Le.headers["x-cos-acl"]),Tt=x.extend(Tt,{Owner:Ge,Grants:ct,statusCode:Le.statusCode,headers:Le.headers}),xe(null,Tt)})}function Ue(Y,xe){var fe=Y.Headers,Ce="";if(Y.AccessControlPolicy){var Le=x.clone(Y.AccessControlPolicy||{}),$e=Le.Grants||Le.Grant;$e=x.isArray($e)?$e:[$e],delete Le.Grant,delete Le.Grants,Le.AccessControlList={Grant:$e},Ce=x.json2xml({AccessControlPolicy:Le}),fe["Content-Type"]="application/xml",fe["Content-MD5"]=x.b64(x.md5(Ce))}x.each(fe,function(Ge,ct){ct.indexOf("x-cos-grant-")===0&&(fe[ct]=Ae(fe[ct]))}),ht.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,action:"acl",headers:fe,body:Ce},function(Ge,ct){if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function rt(Y,xe){var fe=Y.Headers;fe.Origin=Y.Origin,fe["Access-Control-Request-Method"]=Y.AccessControlRequestMethod,fe["Access-Control-Request-Headers"]=Y.AccessControlRequestHeaders,ht.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,headers:fe},function(Ce,Le){if(Ce)return Ce.statusCode&&Ce.statusCode===403?xe(null,{OptionsForbidden:!0,statusCode:Ce.statusCode}):xe(Ce);var $e=Le.headers||{};xe(null,{AccessControlAllowOrigin:$e["access-control-allow-origin"],AccessControlAllowMethods:$e["access-control-allow-methods"],AccessControlAllowHeaders:$e["access-control-allow-headers"],AccessControlExposeHeaders:$e["access-control-expose-headers"],AccessControlMaxAge:$e["access-control-max-age"],statusCode:Le.statusCode,headers:Le.headers})})}function pt(Y,xe){var fe=this,Ce=Y.Headers;!Ce["Cache-Control"]&&!Ce["cache-control"]&&(Ce["Cache-Control"]="");var Le=Y.CopySource||"",$e=x.getSourceParams.call(this,Le);if(!$e){xe(x.error(new Error("CopySource format error")));return}var Ge=$e.Bucket,ct=$e.Region,Tt=decodeURIComponent($e.Key);ht.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Ge,region:ct,prefix:Tt},{action:"name/cos:PutObject",bucket:Y.Bucket,region:Y.Region,prefix:Y.Key}],method:"PUT",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,VersionId:Y.VersionId,headers:Y.Headers},function(Ot,Lt){if(Ot)return xe(Ot);var Nt=x.clone(Lt.CopyObjectResult||{}),Ht=ze({ForcePathStyle:fe.options.ForcePathStyle,protocol:fe.options.Protocol,domain:fe.options.Domain,bucket:Y.Bucket,region:Y.Region,object:Y.Key,isLocation:!0});x.extend(Nt,{Location:Ht,statusCode:Lt.statusCode,headers:Lt.headers}),xe(null,Nt)})}function tt(Y,xe){var fe=Y.CopySource||"",Ce=x.getSourceParams.call(this,fe);if(!Ce){xe(x.error(new Error("CopySource format error")));return}var Le=Ce.Bucket,$e=Ce.Region,Ge=decodeURIComponent(Ce.Key);ht.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Le,region:$e,prefix:Ge},{action:"name/cos:PutObject",bucket:Y.Bucket,region:Y.Region,prefix:Y.Key}],method:"PUT",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,VersionId:Y.VersionId,qs:{partNumber:Y.PartNumber,uploadId:Y.UploadId},headers:Y.Headers},function(ct,Tt){if(ct)return xe(ct);var Ot=x.clone(Tt.CopyPartResult||{});x.extend(Ot,{statusCode:Tt.statusCode,headers:Tt.headers}),xe(null,Ot)})}function at(Y,xe){var fe=Y.Objects||[],Ce=Y.Quiet;fe=x.isArray(fe)?fe:[fe];var Le=x.json2xml({Delete:{Object:fe,Quiet:Ce||!1}}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le));var Ge=x.map(fe,function(ct){return{action:"name/cos:DeleteObject",bucket:Y.Bucket,region:Y.Region,prefix:ct.Key}});ht.call(this,{Scope:Ge,method:"POST",Bucket:Y.Bucket,Region:Y.Region,body:Le,action:"delete",headers:$e},function(ct,Tt){if(ct)return xe(ct);var Ot=Tt.DeleteResult||{},Lt=Ot.Deleted||[],Nt=Ot.Error||[];Lt=x.isArray(Lt)?Lt:[Lt],Nt=x.isArray(Nt)?Nt:[Nt];var Ht=x.clone(Ot);x.extend(Ht,{Error:Nt,Deleted:Lt,statusCode:Tt.statusCode,headers:Tt.headers}),xe(null,Ht)})}function Et(Y,xe){var fe=Y.Headers;if(!Y.RestoreRequest){xe(x.error(new Error("missing param RestoreRequest")));return}var Ce=Y.RestoreRequest||{},Le=x.json2xml({RestoreRequest:Ce});fe["Content-Type"]="application/xml",fe["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,VersionId:Y.VersionId,body:Le,action:"restore",headers:fe},xe)}function Dt(Y,xe){var fe=Y.Tagging||{},Ce=fe.TagSet||fe.Tags||Y.Tags||[];Ce=x.clone(x.isArray(Ce)?Ce:[Ce]);var Le=x.json2xml({Tagging:{TagSet:{Tag:Ce}}}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:Y.Bucket,Key:Y.Key,Region:Y.Region,body:Le,action:"tagging",headers:$e,VersionId:Y.VersionId},function(Ge,ct){if(Ge&&Ge.statusCode===204)return xe(null,{statusCode:Ge.statusCode});if(Ge)return xe(Ge);xe(null,{statusCode:ct.statusCode,headers:ct.headers})})}function Mt(Y,xe){ht.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:Y.Key,Bucket:Y.Bucket,Region:Y.Region,headers:Y.Headers,action:"tagging",VersionId:Y.VersionId},function(fe,Ce){if(fe){if(fe.statusCode===404&&fe.error&&(fe.error==="Not Found"||fe.error.Code==="NoSuchTagSet")){var Le={Tags:[],statusCode:fe.statusCode};fe.headers&&(Le.headers=fe.headers),xe(null,Le)}else xe(fe);return}var $e=[];try{$e=Ce.Tagging.TagSet.Tag||[]}catch(Ge){}$e=x.clone(x.isArray($e)?$e:[$e]),xe(null,{Tags:$e,statusCode:Ce.statusCode,headers:Ce.headers})})}function kt(Y,xe){ht.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,headers:Y.Headers,action:"tagging",VersionId:Y.VersionId},function(fe,Ce){if(fe&&fe.statusCode===204)return xe(null,{statusCode:fe.statusCode});if(fe)return xe(fe);xe(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function It(Y,xe){var fe=Y.SelectType;if(!fe)return xe(x.error(new Error("missing param SelectType")));var Ce=Y.SelectRequest||{},Le=x.json2xml({SelectRequest:Ce}),$e=Y.Headers;$e["Content-Type"]="application/xml",$e["Content-MD5"]=x.b64(x.md5(Le)),ht.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,headers:Y.Headers,action:"select",qs:{"select-type":Y.SelectType},VersionId:Y.VersionId,body:Le,DataType:"arraybuffer",rawBody:!0},function(Ge,ct){if(Ge&&Ge.statusCode===204)return xe(null,{statusCode:Ge.statusCode});if(Ge)return xe(Ge);var Tt=x.parseSelectPayload(ct.body);xe(null,{statusCode:ct.statusCode,headers:ct.headers,Body:Tt.body,Payload:Tt.payload})})}function we(Y,xe){var fe=this,Ce=Y.Headers,Le=Y.tracker;!Ce["Cache-Control"]&&!Ce["cache-control"]&&(Ce["Cache-Control"]=""),!Ce["Content-Type"]&&!Ce["content-type"]&&(Ce["Content-Type"]=Y.Body&&Y.Body.type||"");var $e=Y.Body&&(Y.UploadAddMetaMd5||fe.options.UploadAddMetaMd5);$e&&Le&&Le.setParams({md5StartTime:new Date().getTime()}),x.getBodyMd5($e,Y.Body,function(Ge){Ge&&(Y.Headers["x-cos-meta-md5"]=Ge),$e&&Le&&Le.setParams({md5EndTime:new Date().getTime()}),ht.call(fe,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,action:"uploads",headers:Y.Headers,qs:Y.Query,tracker:Le},function(ct,Tt){if(ct)return Le&&Le.parent&&Le.parent.setParams({errorNode:"multipartInit"}),xe(ct);if(Tt=x.clone(Tt||{}),Tt&&Tt.InitiateMultipartUploadResult)return xe(null,x.extend(Tt.InitiateMultipartUploadResult,{statusCode:Tt.statusCode,headers:Tt.headers}));xe(null,Tt)})},Y.onHashProgress)}function pe(Y,xe){var fe=this;x.getFileSize("multipartUpload",Y,function(){var Ce=Y.tracker,Le=fe.options.UploadCheckContentMd5;Le&&Ce&&Ce.setParams({md5StartTime:new Date().getTime()}),x.getBodyMd5(Le,Y.Body,function($e){$e&&(Y.Headers["Content-MD5"]=x.b64($e)),Le&&Ce&&Ce.setParams({md5EndTime:new Date().getTime()}),Ce&&Ce.setParams({partNumber:Y.PartNumber}),ht.call(fe,{Action:"name/cos:UploadPart",TaskId:Y.TaskId,method:"PUT",Bucket:Y.Bucket,Region:Y.Region,Key:Y.Key,qs:{partNumber:Y.PartNumber,uploadId:Y.UploadId},headers:Y.Headers,onProgress:Y.onProgress,body:Y.Body||null,tracker:Ce},function(Ge,ct){if(Ge)return Ce&&Ce.parent&&Ce.parent.setParams({errorNode:"multipartUpload"}),xe(Ge);xe(null,{ETag:x.attr(ct.headers,"etag",""),statusCode:ct.statusCode,headers:ct.headers})})})})}function ke(Y,xe){for(var fe=this,Ce=Y.UploadId,Le=Y.Parts,$e=Y.tracker,Ge=0,ct=Le.length;Ge-1?Nt(Lt.Authorization):"sign="+encodeURIComponent(Lt.Authorization)),Lt.SecurityToken&&(Ht+="&x-cos-security-token="+Lt.SecurityToken),Lt.ClientIP&&(Ht+="&clientIP="+Lt.ClientIP),Lt.ClientUA&&(Ht+="&clientUA="+Lt.ClientUA),Lt.Token&&(Ht+="&token="+Lt.Token),$e&&(Ht+="&"+$e),setTimeout(function(){xe(null,{Url:Ht})})}});return Tt?(Ge+="?"+Tt.Authorization+(Tt.SecurityToken?"&x-cos-security-token="+Tt.SecurityToken:""),$e&&(Ge+="&"+$e)):$e&&(Ge+="?"+$e),Ge}function ce(Y){var xe={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},fe={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},Ce=Y&&Y.AccessControlList||{},Le=Ce.Grant;Le&&(Le=x.isArray(Le)?Le:[Le]);var $e={READ:0,WRITE:0,FULL_CONTROL:0};return Le&&Le.length&&x.each(Le,function(Ge){Ge.Grantee.ID==="qcs::cam::anyone:anyone"||Ge.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?$e[Ge.Permission]=1:Ge.Grantee.ID!==Y.Owner.ID&&xe[fe[Ge.Permission]].push('id="'+Ge.Grantee.ID+'"')}),$e.FULL_CONTROL||$e.WRITE&&$e.READ?xe.ACL="public-read-write":$e.READ?xe.ACL="public-read":xe.ACL="private",x.each(fe,function(Ge){xe[Ge]=Ae(xe[Ge].join(","))}),xe}function Ae(Y){var xe=Y.split(","),fe={},Ce,Le;for(Ce=0;Ce"u"?"undefined":C(location))==="object"&&location.protocol==="http:"?"http:":"https:");$e||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(xe)>-1?$e="{Region}.myqcloud.com":$e="cos.{Region}.myqcloud.com",Y.ForcePathStyle||($e="{Bucket}."+$e)),$e=$e.replace(/\{\{AppId\}\}/gi,Le).replace(/\{\{Bucket\}\}/gi,Ce).replace(/\{\{Region\}\}/gi,xe).replace(/\{\{.*?\}\}/gi,""),$e=$e.replace(/\{AppId\}/gi,Le).replace(/\{BucketName\}/gi,Ce).replace(/\{Bucket\}/gi,fe).replace(/\{Region\}/gi,xe).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test($e)||($e=ct+"//"+$e),$e.slice(-1)==="/"&&($e=$e.slice(0,-1));var Tt=$e;return Y.ForcePathStyle&&(Tt+="/"+fe),Tt+="/",Ge&&(Tt+=x.camSafeUrlEncode(Ge).replace(/%2F/g,"/")),Y.isLocation&&(Tt=Tt.replace(/^https?:\/\//,"")),Tt}var dt=function(xe){if(!xe.Bucket||!xe.Region)return"";var fe=xe.UseAccelerate===void 0?this.options.UseAccelerate:xe.UseAccelerate,Ce=xe.Url||ze({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:xe.Bucket,region:fe?"accelerate":xe.Region}),Le=Ce.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),$e=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return $e.test(Le)?Le:""};function vt(Y,xe){var fe=x.clone(Y.Headers),Ce="";x.each(fe,function(Qt,Ut){(Qt===""||["content-type","cache-control","expires"].indexOf(Ut.toLowerCase())>-1)&&delete fe[Ut],Ut.toLowerCase()==="host"&&(Ce=Qt)});var Le=Y.ForceSignHost!==!1;!Ce&&Y.SignHost&&Le&&(fe.Host=Y.SignHost);var $e=!1,Ge=function(Ut,ir){$e||($e=!0,ir&&ir.XCosSecurityToken&&!ir.SecurityToken&&(ir=x.clone(ir),ir.SecurityToken=ir.XCosSecurityToken,delete ir.XCosSecurityToken),xe&&xe(Ut,ir))},ct=this,Tt=Y.Bucket||"",Ot=Y.Region||"",Lt=Y.Key||"";ct.options.ForcePathStyle&&Tt&&(Lt=Tt+"/"+Lt);var Nt="/"+Lt,Ht={},sr=Y.Scope;if(!sr){var wr=Y.Action||"",br=Y.ResourceKey||Y.Key||"";sr=Y.Scope||[{action:wr,bucket:Tt,region:Ot,prefix:br}]}var _r=x.md5(JSON.stringify(sr));ct._StsCache=ct._StsCache||[],function(){var Qt,Ut;for(Qt=ct._StsCache.length-1;Qt>=0;Qt--){Ut=ct._StsCache[Qt];var ir=Math.round(x.getSkewTime(ct.options.SystemClockOffset)/1e3)+30;if(Ut.StartTime&&ir=Ut.ExpiredTime){ct._StsCache.splice(Qt,1);continue}if(!Ut.ScopeLimit||Ut.ScopeLimit&&Ut.ScopeKey===_r){Ht=Ut;break}}}();var Dr=function(){var Ut="";Ht.StartTime&&Y.Expires?Ut=Ht.StartTime+";"+(Ht.StartTime+Y.Expires*1):Ht.StartTime&&Ht.ExpiredTime&&(Ut=Ht.StartTime+";"+Ht.ExpiredTime);var ir=x.getAuth({SecretId:Ht.TmpSecretId,SecretKey:Ht.TmpSecretKey,Method:Y.Method,Pathname:Nt,Query:Y.Query,Headers:fe,Expires:Y.Expires,UseRawKey:ct.options.UseRawKey,SystemClockOffset:ct.options.SystemClockOffset,KeyTime:Ut,ForceSignHost:Le}),ur={Authorization:ir,SecurityToken:Ht.SecurityToken||Ht.XCosSecurityToken||"",Token:Ht.Token||"",ClientIP:Ht.ClientIP||"",ClientUA:Ht.ClientUA||""};Ge(null,ur)},Yr=function(Ut){if(Ut.Authorization){var ir=!1,ur=Ut.Authorization;if(ur)if(ur.indexOf(" ")>-1)ir=!1;else if(ur.indexOf("q-sign-algorithm=")>-1&&ur.indexOf("q-ak=")>-1&&ur.indexOf("q-sign-time=")>-1&&ur.indexOf("q-key-time=")>-1&&ur.indexOf("q-url-param-list=")>-1)ir=!0;else try{ur=atob(ur),ur.indexOf("a=")>-1&&ur.indexOf("k=")>-1&&ur.indexOf("t=")>-1&&ur.indexOf("r=")>-1&&ur.indexOf("b=")>-1&&(ir=!0)}catch(Mr){}if(!ir)return x.error(new Error("getAuthorization callback params format error"))}else{if(!Ut.TmpSecretId)return x.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Ut.TmpSecretKey)return x.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Ut.SecurityToken&&!Ut.XCosSecurityToken)return x.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Ut.ExpiredTime)return x.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Ut.ExpiredTime&&Ut.ExpiredTime.toString().length!==10)return x.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Ut.StartTime&&Ut.StartTime.toString().length!==10)return x.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Ht.ExpiredTime&&Ht.ExpiredTime-x.getSkewTime(ct.options.SystemClockOffset)/1e3>60)Dr();else if(ct.options.getAuthorization)ct.options.getAuthorization.call(ct,{Bucket:Tt,Region:Ot,Method:Y.Method,Key:Lt,Pathname:Nt,Query:Y.Query,Headers:fe,Scope:sr,SystemClockOffset:ct.options.SystemClockOffset,ForceSignHost:Le},function(Qt){typeof Qt=="string"&&(Qt={Authorization:Qt});var Ut=Yr(Qt);if(Ut)return Ge(Ut);Qt.Authorization?Ge(null,Qt):(Ht=Qt||{},Ht.Scope=sr,Ht.ScopeKey=_r,ct._StsCache.push(Ht),Dr())});else if(ct.options.getSTS)ct.options.getSTS.call(ct,{Bucket:Tt,Region:Ot},function(Qt){Ht=Qt||{},Ht.Scope=sr,Ht.ScopeKey=_r,Ht.TmpSecretId||(Ht.TmpSecretId=Ht.SecretId),Ht.TmpSecretKey||(Ht.TmpSecretKey=Ht.SecretKey);var Ut=Yr(Ht);if(Ut)return Ge(Ut);ct._StsCache.push(Ht),Dr()});else return function(){var Qt=x.getAuth({SecretId:Y.SecretId||ct.options.SecretId,SecretKey:Y.SecretKey||ct.options.SecretKey,Method:Y.Method,Pathname:Nt,Query:Y.Query,Headers:fe,Expires:Y.Expires,UseRawKey:ct.options.UseRawKey,SystemClockOffset:ct.options.SystemClockOffset,ForceSignHost:Le}),Ut={Authorization:Qt,SecurityToken:ct.options.SecurityToken||ct.options.XCosSecurityToken};return Ge(null,Ut),Ut}();return""}function wt(Y){var xe=!1,fe=!1,Ce=Y.headers&&(Y.headers.date||Y.headers.Date)||Y.error&&Y.error.ServerTime;try{var Le=Y.error.Code,$e=Y.error.Message;(Le==="RequestTimeTooSkewed"||Le==="AccessDenied"&&$e==="Request has expired")&&(fe=!0)}catch(ct){}if(Y)if(fe&&Ce){var Ge=Date.parse(Ce);this.options.CorrectClockSkew&&Math.abs(x.getSkewTime(this.options.SystemClockOffset)-Ge)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=Ge-Date.now(),xe=!0)}else Math.floor(Y.statusCode/100)===5&&(xe=!0);return xe}function ht(Y,xe){var fe=this;!Y.headers&&(Y.headers={}),!Y.qs&&(Y.qs={}),Y.VersionId&&(Y.qs.versionId=Y.VersionId),Y.qs=x.clearKey(Y.qs),Y.headers&&(Y.headers=x.clearKey(Y.headers)),Y.qs&&(Y.qs=x.clearKey(Y.qs));var Ce=x.clone(Y.qs);Y.action&&(Ce[Y.action]="");var Le=Y.url||Y.Url,$e=Y.SignHost||dt.call(this,{Bucket:Y.Bucket,Region:Y.Region,Url:Le}),Ge=Y.tracker,ct=function Tt(Ot){var Lt=fe.options.SystemClockOffset;Ge&&Ge.setParams({signStartTime:new Date().getTime(),retryTimes:Ot-1}),vt.call(fe,{Bucket:Y.Bucket||"",Region:Y.Region||"",Method:Y.method,Key:Y.Key,Query:Ce,Headers:Y.headers,SignHost:$e,Action:Y.Action,ResourceKey:Y.ResourceKey,Scope:Y.Scope,ForceSignHost:fe.options.ForceSignHost},function(Nt,Ht){if(Nt){xe(Nt);return}Ge&&Ge.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),Y.AuthData=Ht,Xe.call(fe,Y,function(sr,wr){Ge&&Ge.setParams({httpEndTime:new Date().getTime()}),sr&&Ot<2&&(Lt!==fe.options.SystemClockOffset||wt.call(fe,sr))?(Y.headers&&(delete Y.headers.Authorization,delete Y.headers.token,delete Y.headers.clientIP,delete Y.headers.clientUA,Y.headers["x-cos-security-token"]&&delete Y.headers["x-cos-security-token"],Y.headers["x-ci-security-token"]&&delete Y.headers["x-ci-security-token"]),Tt(Ot+1)):xe(sr,wr)})})};ct(1)}function Xe(Y,xe){var fe=this,Ce=Y.TaskId;if(!(Ce&&!fe._isRunningTask(Ce))){var Le=Y.Bucket,$e=Y.Region,Ge=Y.Key,ct=Y.method||"GET",Tt=Y.Url||Y.url,Ot=Y.body,Lt=Y.rawBody;fe.options.UseAccelerate&&($e="accelerate"),Tt=Tt||ze({ForcePathStyle:fe.options.ForcePathStyle,protocol:fe.options.Protocol,domain:fe.options.Domain,bucket:Le,region:$e,object:Ge}),Y.action&&(Tt=Tt+"?"+(x.isIOS_QQ?"".concat(Y.action,"="):Y.action)),Y.qsStr&&(Tt.indexOf("?")>-1?Tt=Tt+"&"+Y.qsStr:Tt=Tt+"?"+Y.qsStr);var Nt={method:ct,url:Tt,headers:Y.headers,qs:Y.qs,body:Ot},Ht="x-cos-security-token";if(x.isCIHost(Tt)&&(Ht="x-ci-security-token"),Nt.headers.Authorization=Y.AuthData.Authorization,Y.AuthData.Token&&(Nt.headers.token=Y.AuthData.Token),Y.AuthData.ClientIP&&(Nt.headers.clientIP=Y.AuthData.ClientIP),Y.AuthData.ClientUA&&(Nt.headers.clientUA=Y.AuthData.ClientUA),Y.AuthData.SecurityToken&&(Nt.headers[Ht]=Y.AuthData.SecurityToken),Nt.headers&&(Nt.headers=x.clearKey(Nt.headers)),Nt=x.clearKey(Nt),Y.onProgress&&typeof Y.onProgress=="function"){var sr=Ot&&(Ot.size||Ot.length)||0;Nt.onProgress=function(Qt){if(!(Ce&&!fe._isRunningTask(Ce))){var Ut=Qt?Qt.loaded:0;Y.onProgress({loaded:Ut,total:sr})}}}Y.onDownloadProgress&&(Nt.onDownloadProgress=Y.onDownloadProgress),Y.DataType&&(Nt.dataType=Y.DataType),this.options.Timeout&&(Nt.timeout=this.options.Timeout),fe.options.ForcePathStyle&&(Nt.pathStyle=fe.options.ForcePathStyle),fe.emit("before-send",Nt);var wr=Nt.url.includes("accelerate."),br=Nt.qs?Object.keys(Nt.qs).map(function(Qt){return"".concat(Qt,"=").concat(Nt.qs[Qt])}).join("&"):"",_r=br?Nt.url+"?"+br:Nt.url;Y.tracker&&Y.tracker.setParams({reqUrl:_r,accelerate:wr?"Y":"N"}),Y.tracker&&Y.tracker.parent&&Y.tracker.parent.setParams({reqUrl:_r,accelerate:wr?"Y":"N"});var Dr=(fe.options.Request||w)(Nt,function(Qt){if(!(Qt&&Qt.error==="abort")){var Ut={options:Nt,error:Qt&&Qt.error,statusCode:Qt&&Qt.statusCode||0,statusMessage:Qt&&Qt.statusMessage||"",headers:Qt&&Qt.headers||{},body:Qt&&Qt.body};fe.emit("after-receive",Ut);var ir=Ut.error,ur=Ut.body,Mr={statusCode:Ut.statusCode,statusMessage:Ut.statusMessage,headers:Ut.headers},Ir,an=function(Xr,wn){if(Ce&&fe.off("inner-kill-task",Yr),!Ir){Ir=!0;var Jr={};Mr&&Mr.statusCode&&(Jr.statusCode=Mr.statusCode),Mr&&Mr.headers&&(Jr.headers=Mr.headers),Xr?(Xr=x.extend(Xr||{},Jr),xe(Xr,null)):(wn=x.extend(wn||{},Jr),xe(null,wn)),Dr=null}};if(ir)return an(x.error(ir));var Cn=Mr.statusCode,_n=Math.floor(Cn/100)===2;if(Lt&&_n)return an(null,{body:ur});var sn;try{sn=ur&&ur.indexOf("<")>-1&&ur.indexOf(">")>-1&&x.xml2json(ur)||{}}catch(Pn){sn={}}var pn=sn&&sn.Error;_n?an(null,sn):pn?an(x.error(new Error(pn.Message),{code:pn.Code,error:pn})):Cn?an(x.error(new Error(Mr.statusMessage),{code:""+Cn})):Cn&&an(x.error(new Error("statusCode error")))}}),Yr=function Qt(Ut){Ut.TaskId===Ce&&(Dr&&Dr.abort&&Dr.abort(),fe.off("inner-kill-task",Qt))};Ce&&fe.on("inner-kill-task",Yr)}}var mt={getService:S,putBucket:E,headBucket:P,getBucket:B,deleteBucket:D,putBucketAcl:k,getBucketAcl:I,putBucketCors:$,getBucketCors:M,deleteBucketCors:L,getBucketLocation:H,getBucketPolicy:Q,putBucketPolicy:z,deleteBucketPolicy:q,putBucketTagging:V,getBucketTagging:U,deleteBucketTagging:W,putBucketLifecycle:K,getBucketLifecycle:Z,deleteBucketLifecycle:te,putBucketVersioning:ne,getBucketVersioning:ue,putBucketReplication:X,getBucketReplication:se,deleteBucketReplication:he,putBucketWebsite:me,getBucketWebsite:ie,deleteBucketWebsite:de,putBucketReferer:be,getBucketReferer:ge,putBucketDomain:Se,getBucketDomain:je,deleteBucketDomain:Ye,putBucketOrigin:st,getBucketOrigin:ot,deleteBucketOrigin:et,putBucketLogging:lt,getBucketLogging:Me,putBucketInventory:Qe,postBucketInventory:Ze,getBucketInventory:it,listBucketInventory:Te,deleteBucketInventory:_e,putBucketAccelerate:He,getBucketAccelerate:Je,putBucketEncryption:Ke,getBucketEncryption:Ie,deleteBucketEncryption:Fe,getObject:J,headObject:ae,listObjectVersions:ee,putObject:le,deleteObject:ve,getObjectAcl:Be,putObjectAcl:Ue,optionsObject:rt,putObjectCopy:pt,deleteMultipleObject:at,restoreObject:Et,putObjectTagging:Dt,getObjectTagging:Mt,deleteObjectTagging:kt,selectObjectContent:It,appendObject:Ne,uploadPartCopy:tt,multipartInit:we,multipartUpload:pe,multipartComplete:ke,multipartList:Ve,multipartListPart:gt,multipartAbort:yt,request:xt,getObjectUrl:re,getAuth:De};function bt(Y,xe,fe){x.each(["Cors","Acl"],function(Ce){if(Y.slice(-Ce.length)===Ce){var Le=Y.slice(0,-Ce.length)+Ce.toUpperCase(),$e=x.apiWrapper(Y,xe),Ge=!1;fe[Le]=function(){!Ge&&console.warn("warning: cos."+Le+" has been deprecated. Please Use cos."+Y+" instead."),Ge=!0,$e.apply(this,arguments)}}})}d.exports.init=function(Y,xe){xe.transferToTaskMethod(mt,"putObject"),x.each(mt,function(fe,Ce){Y.prototype[Ce]=x.apiWrapper(Ce,fe),bt(Ce,fe,Y.prototype)})}},"./src/cos.js":function(d,b,A){var C=A("./src/util.js"),w=A("./src/event.js"),x=A("./src/task.js"),S=A("./src/base.js"),E=A("./src/advance.js"),P=A("./package.json"),B={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,EnableTracker:!1,DeepTracker:!1,TrackerDelay:5e3,CustomId:""},D=function(I){this.options=C.extend(C.clone(B),I||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),C.isNode()&&(console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),w.init(this),x.init(this)};S.init(D,x),E.init(D,x),D.util={md5:C.md5,xml2json:C.xml2json,json2xml:C.json2xml,encodeBase64:C.encodeBase64},D.getAuthorization=C.getAuth,D.version=P.version,d.exports=D},"./src/event.js":function(d,b){var A=function(x){var S={},E=function(B){return!S[B]&&(S[B]=[]),S[B]};x.on=function(P,B){P==="task-list-update"&&console.warn('warning: Event "'+P+'" has been deprecated. Please use "list-update" instead.'),E(P).push(B)},x.off=function(P,B){for(var D=E(P),k=D.length-1;k>=0;k--)B===D[k]&&D.splice(k,1)},x.emit=function(P,B){for(var D=E(P).map(function(I){return I}),k=0;k=0;H--){var z=S[H][2];(!z||z+x=0;z--){var Q=S[z];Q[0]===M&&Q[1]===L&&S.splice(z,1)}S.unshift([M,L,Math.round(Date.now()/1e3)]),S.length>H&&S.splice(H),k()}},removeUploadId:function(M){D.call(this),delete I.using[M];for(var L=S.length-1;L>=0;L--)S[L][1]===M&&S.splice(L,1);k()}};d.exports=I},"./src/task.js":function(d,b,A){var C=A("./src/session.js"),w=A("./src/util.js"),x={},S=function(B,D){x[D]=B[D],B[D]=function(k,I){k.SkipTask?x[D].call(this,k,I):this._addTask(D,k,I)}},E=function(B){var D=[],k={},I=0,$=0,M=function(U){var W={id:U.id,Bucket:U.Bucket,Region:U.Region,Key:U.Key,FilePath:U.FilePath,state:U.state,loaded:U.loaded,size:U.size,speed:U.speed,percent:U.percent,hashPercent:U.hashPercent,error:U.error};return U.FilePath&&(W.FilePath=U.FilePath),U._custom&&(W._custom=U._custom),W},L=function(){var V,U=function(){V=0,B.emit("task-list-update",{list:w.map(D,M)}),B.emit("list-update",{list:w.map(D,M)})};return function(){V||(V=setTimeout(U))}}(),H=function(){if(!(D.length<=B.options.UploadQueueSize)){for(var U=0;U<$&&UB.options.UploadQueueSize;){var W=D[U].state==="waiting"||D[U].state==="checking"||D[U].state==="uploading";!D[U]||!W?(k[D[U].id]&&delete k[D[U].id],D.splice(U,1),$--):U++}L()}},z=function V(){if(!(I>=B.options.FileParallelLimit)){for(;D[$]&&D[$].state!=="waiting";)$++;if(!($>=D.length)){var U=D[$];$++,I++,U.state="checking",U.params.onTaskStart&&U.params.onTaskStart(M(U)),!U.params.UploadData&&(U.params.UploadData={});var W=w.formatParams(U.api,U.params);x[U.api].call(B,W,function(K,Z){B._isRunningTask(U.id)&&((U.state==="checking"||U.state==="uploading")&&(U.state=K?"error":"success",K&&(U.error=K),I--,L(),V(),U.callback&&U.callback(K,Z),U.state==="success"&&(U.params&&(delete U.params.UploadData,delete U.params.Body,delete U.params),delete U.callback)),H())}),L(),setTimeout(V)}}},Q=function(U,W){var K=k[U];if(K){var Z=K&&K.state==="waiting",te=K&&(K.state==="checking"||K.state==="uploading");if(W==="canceled"&&K.state!=="canceled"||W==="paused"&&Z||W==="paused"&&te){if(W==="paused"&&K.params.Body&&typeof K.params.Body.pipe=="function"){console.error("stream not support pause");return}K.state=W,B.emit("inner-kill-task",{TaskId:U,toState:W});try{var ne=K&&K.params&&K.params.UploadData.UploadId}catch(ue){}W==="canceled"&&ne&&C.removeUsing(ne),L(),te&&(I--,z()),W==="canceled"&&(K.params&&(delete K.params.UploadData,delete K.params.Body,delete K.params),delete K.callback)}H()}};B._addTasks=function(V){w.each(V,function(U){B._addTask(U.api,U.params,U.callback,!0)}),L()};var q=!0;B._addTask=function(V,U,W,K){U=w.formatParams(V,U);var Z=w.uuid();U.TaskId=Z,U.onTaskReady&&U.onTaskReady(Z),U.TaskReady&&(U.TaskReady(Z),q&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),q=!1);var te={params:U,callback:W,api:V,index:D.length,id:Z,Bucket:U.Bucket,Region:U.Region,Key:U.Key,FilePath:U.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:U._custom},ne=U.onHashProgress;U.onHashProgress=function(X){B._isRunningTask(te.id)&&(te.hashPercent=X.percent,ne&&ne(X),L())};var ue=U.onProgress;return U.onProgress=function(X){B._isRunningTask(te.id)&&(te.state==="checking"&&(te.state="uploading"),te.loaded=X.loaded,te.speed=X.speed,te.percent=X.percent,ue&&ue(X),L())},w.getFileSize(V,U,function(X,se){if(X)return W(w.error(X));k[Z]=te,D.push(te),te.size=se,!K&&L(),z(),H()}),Z},B._isRunningTask=function(V){var U=k[V];return!!(U&&(U.state==="checking"||U.state==="uploading"))},B.getTaskList=function(){return w.map(D,M)},B.cancelTask=function(V){Q(V,"canceled")},B.pauseTask=function(V){Q(V,"paused")},B.restartTask=function(V){var U=k[V];U&&(U.state==="paused"||U.state==="error")&&(U.state="waiting",L(),$=Math.min($,U.index),z())},B.isUploadRunning=function(){return I||$"u"?"undefined":x(navigator))==="object"){var V=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(V==null?void 0:V.type)||(V==null?void 0:V.effectiveType)||"unknown"}return"unknown"},getOsType:function(){if((typeof navigator>"u"?"undefined":x(navigator))!=="object")return"unknown os";var V=navigator.userAgent.toLowerCase(),U=/macintosh|mac os x/i.test(navigator.userAgent);return V.indexOf("win32")>=0||V.indexOf("wow32")>=0?"win32":V.indexOf("win64")>=0||V.indexOf("wow64")>=0?"win64":U?"mac":"unknown os"},isMobile:function(){var V=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":x(navigator))==="object"&&navigator.userAgent.match(V))},isAndroid:function(){var V=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":x(navigator))==="object"&&navigator.userAgent.match(V))},isIOS:function(){var V=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":x(navigator))==="object"&&navigator.userAgent.match(V))},isOtherMobile:function(){return isMobile&&!isAndroid&&!isIOS},getDeviceName:function(){if((typeof navigator>"u"?"undefined":x(navigator))!=="object")return"unknown device";var V=navigator.userAgent.toLowerCase();if(V.includes("app/tencent_wemeet"))return"tencent_wemeet";if(V.indexOf("maxthon")>=0){var U=V.match(/maxthon\/([\d.]+)/),W=U&&U[1]||"";return"傲游浏览器 ".concat(W).trim()}if(V.indexOf("qqbrowser")>=0){var K=V.match(/qqbrowser\/([\d.]+)/),Z=K&&K[1]||"";return"QQ浏览器 ".concat(Z).trim()}if(V.indexOf("se 2.x")>=0)return"搜狗浏览器";if(V.indexOf("wxwork")>=0)return"微信内置浏览器";if(V.indexOf("msie")>=0){var te=V.match(/msie ([\d.]+)/),ne=te&&te[1]||"";return"IE ".concat(ne).trim()}if(V.indexOf("firefox")>=0){var ue=V.match(/firefox\/([\d.]+)/),X=ue&&ue[1]||"";return"Firefox ".concat(X).trim()}if(V.indexOf("chrome")>=0){var se=V.match(/chrome\/([\d.]+)/),he=se&&se[1]||"";return"Chrome ".concat(he).trim()}if(V.indexOf("opera")>=0){var me=V.match(/opera.([\d.]+)/),ie=me&&me[1]||"";return"Opera ".concat(ie).trim()}if(V.indexOf("safari")>=0){var de=V.match(/version\/([\d.]+)/),be=de&&de[1]||"";return"Safari ".concat(be).trim()}if(V.indexOf("edge")>=0){var ge=V.match(/edge\/([\d.]+)/),Se=ge&&ge[1]||"";return"edge ".concat(Se).trim()}return V.substr(0,200)}},D={isMobile:B.isMobile(),isBrowser:!B.isMobile(),mobileOsType:B.isAndroid()?"android":B.isIOS?"ios":"other_mobile",pcOsType:B.getOsType()},k={deviceType:D.isMobile?"mobile":D.isBrowser?"browser":"unknown",devicePlatform:D.isMobile?D.mobileOsType:D.pcOsType,deviceName:B.getDeviceName()},I=["multipartInit","multipartUpload","multipartComplete","multipartList","multipartListPart","multipartAbort"],$=["putObject","postObject","appendObject","sliceUploadFile","uploadFile","uploadFiles"].concat(I),M=["getObject"];function L(q){return $.includes(q)?"cos_upload":M.includes(q)?"cos_download":"base_service"}function H(q){return q.replace(/([A-Z])/g,"_$1").toLowerCase()}function z(q){var V={},U=["tracePlatform","cossdkVersion","region","networkType","host","accelerate","requestPath","size","httpMd5","httpSign","httpFull","name","result","tookTime","errorNode","errorCode","errorMessage","errorRequestId","errorStatusCode","errorServiceName","errorType","traceId","bucket","appid","partNumber","retryTimes","reqUrl","customId","fullError","deviceType","devicePlatform","deviceName"],W=["tracePlatform","cossdkVersion","region","bucket","appid","networkType","host","accelerate","requestPath","partNumber","size","name","result","tookTime","errorRequestId","retryTimes","reqUrl","customId","deviceType","devicePlatform","deviceName"],K=q.result==="Success"?W:U;for(var Z in q)if(K.includes(Z)){var te=H(Z);V[te]=q[Z]}return V}var Q=function(){function q(V){C(this,q);var U=V.parent,W=V.traceId,K=V.bucket,Z=V.region,te=V.apiName,ne=V.fileKey,ue=V.fileSize,X=V.accelerate,se=V.customId,he=V.delay,me=V.deepTracker,ie=K&&K.substr(K.lastIndexOf("-")+1)||"";this.parent=U,this.deepTracker=me,this.delay=he,this.params={cossdkVersion:S.version,region:Z,networkType:"",host:"",accelerate:X?"Y":"N",requestPath:ne||"",size:ue||-1,httpMd5:0,httpSign:0,httpFull:0,name:te||"",result:"",tookTime:0,errorNode:"",errorCode:"",errorMessage:"",errorRequestId:"",errorStatusCode:0,errorServiceName:"",tracePlatform:"cos-js-sdk-v5",traceId:W||B.getUid(),bucket:K,appid:ie,partNumber:0,retryTimes:0,reqUrl:"",customId:se||"",deviceType:k.deviceType,devicePlatform:k.devicePlatform,deviceName:k.deviceName,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0},this.beacon=P(he)}return w(q,[{key:"formatResult",value:function(U,W){var K,Z,te,ne,ue,X,se=new Date().getTime(),he=se-this.params.startTime,me=B.getNetType(),ie=U?(U==null?void 0:U.code)||(U==null||(K=U.error)===null||K===void 0?void 0:K.code)||(U==null||(Z=U.error)===null||Z===void 0?void 0:Z.Code):"",de=U?(U==null?void 0:U.message)||(U==null||(te=U.error)===null||te===void 0?void 0:te.message)||(U==null||(ne=U.error)===null||ne===void 0?void 0:ne.Message):"",be=U?(U==null?void 0:U.resource)||(U==null||(ue=U.error)===null||ue===void 0?void 0:ue.resource)||(U==null||(X=U.error)===null||X===void 0?void 0:X.Resource):"",ge=U?U==null?void 0:U.statusCode:W.statusCode,Se=U?(U==null?void 0:U.headers)&&(U==null?void 0:U.headers["x-cos-request-id"]):(W==null?void 0:W.headers)&&(W==null?void 0:W.headers["x-cos-request-id"]),je=U?Se?"Server":"Client":"";if(Object.assign(this.params,{tookTime:he,networkType:me,httpMd5:this.params.md5EndTime-this.params.md5StartTime,httpSign:this.params.signEndTime-this.params.signStartTime,httpFull:this.params.httpEndTime-this.params.httpStartTime,result:U?"Fail":"Success",errorType:je,errorCode:ie,errorStatusCode:ge,errorMessage:de,errorServiceName:be,errorRequestId:Se}),U&&(!ie||!de)&&(this.params.fullError=U?JSON.stringify(U):""),this.params.name==="getObject"&&(this.params.size=W?W.headers&&W.headers["content-length"]:-1),this.params.reqUrl)try{var Ye=/^http(s)?:\/\/(.*?)\//.exec(this.params.reqUrl);this.params.host=Ye[2]}catch(st){this.params.host=this.params.reqUrl}this.sendEvents()}},{key:"setParams",value:function(U){Object.assign(this.params,U)}},{key:"sendEvents",value:function(){if(!(I.includes(this.params.name)&&!this.deepTracker)){var U=L(this.params.name),W=z(this.params);this.beacon||(this.beacon=P(this.delay||5e3)),this.delay===0?this.beacon&&this.beacon.onDirectUserAction(U,W):this.beacon&&this.beacon.onUserAction(U,W)}}},{key:"generateSubTracker",value:function(U){return Object.assign(U,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay}),new q(U)}}]),q}();d.exports=Q},"./src/util.js":function(d,b,A){(function(C){var w=A("./node_modules/@babel/runtime/helpers/typeof.js"),x=A("./lib/md5.js"),S=A("./lib/crypto.js"),E=A("./lib/xml2json.js"),P=A("./lib/json2xml.js"),B=A("./lib/base64.js"),D=A("./src/tracker.js");function k(Fe){return encodeURIComponent(Fe).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function I(Fe,ae){var ee=[];for(var J in Fe)Fe.hasOwnProperty(J)&&ee.push(ae?k(J).toLowerCase():J);return ee.sort(function(le,ve){return le=le.toLowerCase(),ve=ve.toLowerCase(),le===ve?0:le>ve?1:-1})}var $=function(ae,ee){var J,le,ve,Be=[],Ue=I(ae);for(J=0;J-1||M.indexOf(le)>-1)&&(ee[J]=ae[J])}return ee},H=function(ae){ae=ae||{};var ee=ae.SecretId,J=ae.SecretKey,le=ae.KeyTime,ve=(ae.method||ae.Method||"get").toLowerCase(),Be=se(ae.Query||ae.params||{}),Ue=L(se(ae.Headers||ae.headers||{})),rt=ae.Key||"",pt;ae.UseRawKey?pt=ae.Pathname||ae.pathname||"/"+rt:(pt=ae.Pathname||ae.pathname||rt,pt.indexOf("/")!==0&&(pt="/"+pt));var tt=ae.ForceSignHost!==!1;if(!Ue.Host&&!Ue.host&&ae.Bucket&&ae.Region&&tt&&(Ue.Host=ae.Bucket+".cos."+ae.Region+".myqcloud.com"),!ee)throw new Error("missing param SecretId");if(!J)throw new Error("missing param SecretKey");var at=Math.round(Qe(ae.SystemClockOffset)/1e3)-1,Et=at,Dt=ae.Expires||ae.expires;Dt===void 0?Et+=900:Et+=Dt*1||0;var Mt="sha1",kt=ee,It=le||at+";"+Et,we=le||at+";"+Et,pe=I(Ue,!0).join(";").toLowerCase(),ke=I(Be,!0).join(";").toLowerCase(),Ve=S.HmacSHA1(we,J).toString(),gt=[ve,pt,Ie.obj2str(Be,!0),Ie.obj2str(Ue,!0),""].join("\n"),yt=["sha1",It,S.SHA1(gt).toString(),""].join("\n"),xt=S.HmacSHA1(yt,Ve).toString(),Ne=["q-sign-algorithm="+Mt,"q-ak="+kt,"q-sign-time="+It,"q-key-time="+we,"q-header-list="+pe,"q-url-param-list="+ke,"q-signature="+xt].join("&");return Ne},z=function(ae,ee,J){var le=ee/8,ve=ae.slice(J,J+le);return new Uint8Array(ve).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[ee](ve)[0]},Q=function(ae,ee,J,le){var ve=ae.slice(ee,J),Be="";return new Uint8Array(ve).forEach(function(Ue){Be+=String.fromCharCode(Ue)}),le&&(Be=decodeURIComponent(escape(Be))),Be},q=function(ae){for(var ee={},J=Q(ae),le={records:[]};ae.byteLength;){var ve=z(ae,32,0),Be=z(ae,32,4),Ue=ve-Be-16,rt=0,pt;for(ae=ae.slice(12);rtparseInt(le[ve])?1:-1;return 0},ae=function(J){if(!J)return!1;var le=(J.match(/Chrome\/([.\d]+)/)||[])[1],ve=(J.match(/QBCore\/([.\d]+)/)||[])[1],Be=(J.match(/QQBrowser\/([.\d]+)/)||[])[1],Ue=le&&Fe(le,"53.0.2785.116")<0&&ve&&Fe(ve,"3.53.991.400")<0&&Be&&Fe(Be,"9.0.2524.400")<=0||!1;return Ue};return ae(typeof navigator<"u"&&navigator.userAgent)}(),te=function(ae,ee,J,le,ve){var Be;if(ae.slice?Be=ae.slice(ee,J):ae.mozSlice?Be=ae.mozSlice(ee,J):ae.webkitSlice&&(Be=ae.webkitSlice(ee,J)),le&&Z){var Ue=new FileReader;Ue.onload=function(rt){Be=null,ve(new Blob([Ue.result]))},Ue.readAsArrayBuffer(Be)}else ve(Be)},ne=function(ae,ee,J,le){J=J||U,ae?typeof ee=="string"?J(Ie.md5(ee,!0)):Blob&&ee instanceof Blob?Ie.getFileMd5(ee,function(ve,Be){J(Be)},le):J():J()},ue=1024*1024,X=function(ae,ee,J){var le=ae.size,ve=0,Be=x.getCtx(),Ue=function rt(pt){if(pt>=le){var tt=Be.digest("hex");ee(null,tt);return}var at=Math.min(le,pt+ue);Ie.fileSlice(ae,pt,at,!1,function(Et){K(Et,function(Dt){Et=null,Be=Be.update(Dt,!0),ve+=Dt.length,Dt=null,J&&J({loaded:ve,total:le,percent:Math.round(ve/le*1e4)/1e4}),rt(pt+ue)})})};Ue(0)};function se(Fe){return Se(Fe,function(ae){return w(ae)==="object"&&ae!==null?se(ae):ae})}function he(Fe,ae,ee){return Fe&&ae in Fe?Fe[ae]:ee}function me(Fe,ae){return ge(ae,function(ee,J){Fe[J]=ae[J]}),Fe}function ie(Fe){return Fe instanceof Array}function de(Fe,ae){for(var ee=!1,J=0;J-1,rt=!Be||typeof Be=="string"&&Be.indexOf("{Region}")>-1;if(ae.indexOf("Bucket")>-1||ae==="deleteMultipleObject"||ae==="multipartList"||ae==="listObjectVersions"){if(Ue&&!J)return"Bucket";if(rt&&!le)return"Region"}else if(ae.indexOf("Object")>-1||ae.indexOf("multipart")>-1||ae==="sliceUploadFile"||ae==="abortUploadTask"){if(Ue&&!J)return"Bucket";if(rt&&!le)return"Region";if(!ve)return"Key"}return!1},et=function(ae,ee){if(ee=me({},ee),ae!=="getAuth"&&ae!=="getV4Auth"&&ae!=="getObjectUrl"){var J=ee.Headers||{};if(ee&&w(ee)==="object"){(function(){for(var ve in ee)ee.hasOwnProperty(ve)&&ve.indexOf("x-cos-")>-1&&(J[ve]=ee[ve])})();var le={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};Ie.each(le,function(ve,Be){ee[ve]!==void 0&&(J[Be]=ee[ve])}),ee.Headers=W(J)}}return ee},lt=function(ae,ee){return function(J,le){var ve=this;typeof J=="function"&&(le=J,J={}),J=et(ae,J);var Be;if(ve.options.EnableTracker)if(J.calledBySdk==="sliceUploadFile")Be=J.tracker&&J.tracker.generateSubTracker({apiName:ae});else if(["uploadFile","uploadFiles"].includes(ae))Be=null;else{var Ue=-1;J.Body&&(Ue=typeof J.Body=="string"?J.Body.length:J.Body.size||J.Body.byteLength||-1),Be=new D({bucket:J.Bucket,region:J.Region,apiName:ae,fileKey:J.Key,fileSize:Ue,deepTracker:ve.options.DeepTracker,customId:ve.options.CustomId,delay:ve.options.TrackerDelay})}J.tracker=Be;var rt=function(kt){return kt&&kt.headers&&(kt.headers["x-cos-request-id"]&&(kt.RequestId=kt.headers["x-cos-request-id"]),kt.headers["x-ci-request-id"]&&(kt.RequestId=kt.headers["x-ci-request-id"]),kt.headers["x-cos-version-id"]&&(kt.VersionId=kt.headers["x-cos-version-id"]),kt.headers["x-cos-delete-marker"]&&(kt.DeleteMarker=kt.headers["x-cos-delete-marker"])),kt},pt=function(kt,It){Be&&Be.formatResult(kt,It),le&&le(rt(kt),rt(It))},tt=function(){if(ae!=="getService"&&ae!=="abortUploadTask"){var kt=ot.call(ve,ae,J);if(kt)return"missing param "+kt;if(J.Region){if(ve.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(J.Region))return"Region format error."}else{if(J.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(J.Region))return"Region format error."}!ve.options.CompatibilityMode&&J.Region.indexOf("-")===-1&&J.Region!=="yfb"&&J.Region!=="default"&&J.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(J.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(J.Bucket))if(J.AppId)J.Bucket=J.Bucket+"-"+J.AppId;else if(ve.options.AppId)J.Bucket=J.Bucket+"-"+ve.options.AppId;else return'Bucket should format as "test-1250000000".';J.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete J.AppId)}!ve.options.UseRawKey&&J.Key&&J.Key.substr(0,1)==="/"&&(J.Key=J.Key.substr(1))}},at=tt(),Et=["getAuth","getObjectUrl"].includes(ae);if(typeof Promise=="function"&&!Et&&!le)return new Promise(function(Mt,kt){if(le=function(we,pe){we?kt(we):Mt(pe)},at)return pt(Ie.error(new Error(at)));ee.call(ve,J,pt)});if(at)return pt(Ie.error(new Error(at)));var Dt=ee.call(ve,J,pt);if(Et)return Dt}},Me=function(ae,ee){var J=this,le=0,ve=0,Be=Date.now(),Ue,rt;function pt(){if(rt=0,ee&&typeof ee=="function"){Ue=Date.now();var tt=Math.max(0,Math.round((ve-le)/((Ue-Be)/1e3)*100)/100)||0,at;ve===0&&ae===0?at=1:at=Math.floor(ve/ae*100)/100||0,Be=Ue,le=ve;try{ee({loaded:ve,total:ae,speed:tt,percent:at})}catch(Et){}}}return function(tt,at){if(tt&&(ve=tt.loaded,ae=tt.total),at)clearTimeout(rt),pt();else{if(rt)return;rt=setTimeout(pt,J.options.ProgressInterval)}}},Oe=function(ae,ee,J){var le;if(typeof ee.Body=="string"?ee.Body=new Blob([ee.Body],{type:"text/plain"}):ee.Body instanceof ArrayBuffer&&(ee.Body=new Blob([ee.Body])),ee.Body&&(ee.Body instanceof Blob||ee.Body.toString()==="[object File]"||ee.Body.toString()==="[object Blob]"))le=ee.Body.size;else{J(Ie.error(new Error("params body format error, Only allow File|Blob|String.")));return}ee.ContentLength=le,J(null,le)},Qe=function(ae){return Date.now()+(ae||0)},Ze=function(ae,ee){var J=ae;return ae.message=ae.message||null,typeof ee=="string"?(ae.error=ee,ae.message=ee):w(ee)==="object"&&ee!==null&&(me(ae,ee),(ee.code||ee.name)&&(ae.code=ee.code||ee.name),ee.message&&(ae.message=ee.message),ee.stack&&(ae.stack=ee.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(ae,"name",{writable:!0,enumerable:!1}),Object.defineProperty(ae,"message",{enumerable:!0})),ae.name=ee&&ee.name||ae.name||ae.code||"Error",ae.code||(ae.code=ae.name),ae.error||(ae.error=se(J)),ae},it=function(){return(typeof globalThis>"u"?"undefined":w(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Te=function(){return(typeof window>"u"?"undefined":w(window))!=="object"&&(typeof C>"u"?"undefined":w(C))==="object"&&!0&&!it()},_e=function(ae){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(ae)},He=function(){if((typeof navigator>"u"?"undefined":w(navigator))!=="object")return!1;var Fe=navigator.userAgent,ae=!!Fe.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return ae}(),Je=function(){return(typeof navigator>"u"?"undefined":w(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Ke=function(ae,ee){var J=B.encode(ae);return ee&&(J=J.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),J},Ie={noop:U,formatParams:et,apiWrapper:lt,xml2json:E,json2xml:P,md5:x,clearKey:W,fileSlice:te,getBodyMd5:ne,getFileMd5:X,b64:Ye,extend:me,isArray:ie,isInArray:de,makeArray:be,each:ge,map:Se,filter:je,clone:se,attr:he,uuid:st,camSafeUrlEncode:k,throttleOnProgress:Me,getFileSize:Oe,getSkewTime:Qe,error:Ze,obj2str:$,getAuth:H,parseSelectPayload:q,getSourceParams:V,isBrowser:!0,isNode:Te,isCIHost:_e,isIOS_QQ:He&&Je,encodeBase64:Ke};d.exports=Ie}).call(this,A("./node_modules/process/browser.js"))}})})})(cosJsSdkV5);var cosJsSdkV5Exports=cosJsSdkV5.exports;const COS=getDefaultExportFromCjs(cosJsSdkV5Exports),ossSwitch="tencent",tencentBucket="daya-online-1303457149",getUploadSign=async d=>{const{bucketName:b,filename:A,postData:C}=d,w=ossSwitch;let x=b,S=A,E={};return x=tencentBucket,S="ktqy/"+A,E={key:"ktqy/"+C.key},request.post("/open/getUploadSign",{requestType:"json",data:{postData:E,pluginName:w,bucketName:x,filename:S},params:{pluginName:w}})},onOnlyFileUpload=async(d,b)=>{{let A="",C=null;if(console.log(b,"params"),await new COS({Domain:"https://oss.dayaedu.com",getAuthorization:async(x,S)=>{S({Authorization:b.signature})}}).uploadFile({Bucket:tencentBucket,Region:"ap-nanjing",Key:"ktqy/".concat(b.name),Body:b.file,SliceSize:1024*1024*500}).then(x=>{var S;((S=x.Location)==null?void 0:S.indexOf("http"))>=0?A=x.Location:A="https://"+x.Location}).catch(x=>{C=x}),A)return A;throw new Error(C)}},bucketName="gyt",ACL="public-read",ossUploadUrl="https://".concat(bucketName,".ks3-cn-beijing.ksyuncs.com/"),getPolicy=async d=>{const b={filename:d,bucketName,postData:{filename:d,acl:ACL,key:d}},{data:A}=await getUploadSign(b);return A},upload=async(d,b,A,C)=>{const w={policy:d.policy,signature:d.signature,key:b,KSSAccessKeyId:d.kssAccessKeyId,acl:ACL,name:b,file:A};return await onOnlyFileUpload(ossUploadUrl,w)},api_uploadFile=async(d,b,A)=>{const C=await getPolicy(b),w=await upload(C,b,d);return console.log("🚀 ~ url:",w),w},bufferToWave=d=>{var b=d.numberOfChannels,A=d.length*b*2+44,C=new ArrayBuffer(A),w=new DataView(C),x=[],S,E,P=0,B=0;for(k(1179011410),k(A-8),k(1163280727),k(544501094),k(16),D(1),D(b),k(d.sampleRate),k(d.sampleRate*2*b),D(b*2),D(16),k(1635017060),k(A-B-4),S=0;S({})}},emits:["update:show","success"],setup(d,{emit:b}){const A=useMessage(),C=reactive({subjects:[],saveLoading:!1,saveProgress:0,productOpen:!1,productIfameSrc:""}),w=reactive({subjectId:null,cbsMusicalInstrumentIds:null,isPublic:0,mp3:"",musicImg:"",musicSvg:"",musicFirstSvg:"",musicJianSvg:""}),x=async()=>{const{data:z}=await api_subjectList({enableFlag:!0,delFlag:0,page:1,rows:999});C.subjects=z},S=z=>{const Q=z.data;if((Q==null?void 0:Q.api)==="webApi_renderSvg"){let q=[];try{q=JSON.parse(Q.product)}catch(V){console.log("🚀 ~ error:",V)}q=q.filter(V=>V.base64),q.length===3&&E(q),console.log("🚀 ~ 上传之前",[...q])}},E=async z=>{var Q,q,V,U;if(d.show){for(let W=0;W{var Z;let q=z.split(",")||[],V=(Z=q[0].match(/:(.*?);/))==null?void 0:Z[1],U=atob(q[1]),W=U.length,K=new Uint8Array(W);for(;W--;)K[W]=U.charCodeAt(W);return new File([K],Q,{type:V})};onMounted(()=>{x(),window.addEventListener("message",S)}),onUnmounted(()=>{window.removeEventListener("message",S)}),watch(()=>d.item,()=>{var U,W,K,Z;const z=C.subjects.length>0?(U=C.subjects[0].instruments[0])==null?void 0:U.id:null;w.subjectId=(W=d.item.subjectId)!=null?W:z;const Q=C.subjects.length>0?(K=C.subjects[0].instruments[0])==null?void 0:K.id:null,q=(Z=d.item.cbsMusicalInstrumentIds)!=null?Z:Q;let V=!1;C.subjects.length>0&&C.subjects.forEach(te=>{Array.isArray(te.instruments)&&te.instruments.forEach(ne=>{q===ne.id&&(V=!0)})}),w.cbsMusicalInstrumentIds=V&&q||null});const B=async()=>{var Q,q,V,U;const z=queryString.parseUrl(d.item.xml);await api_musicSheetCreationSaveMusic({musicSheetCreationId:d.item.id,musicSheetName:d.item.name||"曲谱名称",musicSheetCategoriesId:"",audioType:"MP3",mp3Type:"MP3",composer:d.item.creator,xmlFileUrl:z.url+"?t="+new Date().getTime(),musicSubject:w.subjectId,cbsMusicalInstrumentIds:w.cbsMusicalInstrumentIds,showFingering:1,canEvaluate:1,notation:1,playSpeed:((U=(V=(q=(Q=d.item)==null?void 0:Q.visualObj)==null?void 0:q.metaText)==null?void 0:V.tempo)==null?void 0:U.bpm)||"",background:[{audioFileUrl:w.mp3,track:"P1"}],musicImg:w.musicImg,musicSvg:w.musicSvg,musicFirstSvg:w.musicFirstSvg,musicJianSvg:w.musicJianSvg,extConfigJson:""})},D=async()=>{try{const{data:z}=await api_musicSheetCreationWav2mp3(d.item.filePath);w.mp3=z}catch(z){A.error("wav转mp3失败"),k()}},k=()=>{C.saveLoading=!1,C.saveProgress=0},I=async()=>{C.saveProgress=0;const z=d.item.xml,Q=await fetch(z);if(Q.status>299||Q.status<200){A.error("xml文件不存在"),k();return}const q=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;C.productIfameSrc="".concat(q,"/instrument/#/product-img?xmlUrl=").concat(z,"&productXmlImg=1"),C.productOpen=!0,setTimeout(()=>{C.saveProgress=10},800)},$=async(z=!0)=>new Promise(Q=>{const q=d.item.subjectCode||"acoustic_grand_piano",V=ABCJS.synth.instrumentIndexToName.indexOf(q),U=V>-1?V:0,W=new ABCJS.synth.CreateSynth;W.init({visualObj:d.item.visualObj,options:{program:U,soundFontUrl:"https://oss.dayaedu.com/musicSheet/"}}).then(()=>{W.prime().then(async()=>{if(z)downloadFile(W.download(),(d.item.name||"曲谱")+".wav");else{const K=bufferToWave(W.getAudioBuffer()),Z=+new Date+Math.ceil(Math.random()*1e3),te=await api_uploadFile(K,Z+".wav");Q(te)}})})}),M=ref(),L=()=>{M.value.validate(async z=>{if(!z){if(!d.item.xml){A.error("没有生成xml文件"),k();return}C.saveLoading=!0,I()}})},H=async()=>{const z=await $(!1);d.item.filePath=z,await api_musicSheetCreationUpdate({id:d.item.id,cbsMusicalInstrumentIds:w.cbsMusicalInstrumentIds}),await D(),C.saveProgress=70,d.show&&(await B(),C.saveProgress=100,b("success"),d.show&&(A.success("上传成功"),setTimeout(()=>{C.saveLoading=!1,b("update:show",!1)},300)))};return()=>createVNode(Fragment,null,[createVNode(NModal,{autoFocus:!1,show:d.show,unstableShowMask:!1,maskClosable:!1,"onUpdate:show":z=>{C.productOpen=!1,b("update:show",z)}},{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:()=>{C.productOpen=!1,b("update:show",!1)}},{default:()=>[createVNode(NIcon,{component:Close,size:18},null)]})]),createVNode(NForm,{ref:M,model:w,class:styles$4.form,labelPlacement:"left",showRequireMark:!1},{default:()=>[createVNode(NFormItem,{label:"可用乐器",path:"cbsMusicalInstrumentIds",rule:{required:!0,message:"请选择素材可用乐器",trigger:"change"}},{default:()=>[createVNode(NCascader,{to:"body",disabled:C.saveLoading,placeholder:"请选择素材可用乐器",options:C.subjects,value:w.cbsMusicalInstrumentIds,"onUpdate:value":z=>w.cbsMusicalInstrumentIds=z,checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0},null)]}),createVNode(NFormItem,{label:"上传进度",style:{display:C.saveLoading?"":"none"}},{default:()=>[createVNode("div",{style:{display:"flex",width:"100%",height:"46px",alignItems:"center"}},[createVNode(NProgress,{percentage:C.saveProgress},null)])]})]}),createVNode("div",{class:styles$4.btns},[createVNode(NButton,{onClick:()=>{C.productOpen=!1,k(),b("update:show",!1)}},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{type:"primary",loading:C.saveLoading,onClick:()=>L()},{default:()=>[createTextVNode("确定")]})])])]}),C.productOpen&&createVNode("iframe",{class:styles$4.productIframe,src:C.productIfameSrc},null)])}}),jianpu="_jianpu_onyht_1",head="_head_onyht_9",close="_close_onyht_24",content="_content_onyht_30",iframe="_iframe_onyht_34",styles$3={jianpu,head,close,content,iframe},TheJianpu=defineComponent({name:"TheJianpu",props:{show:{type:Boolean,default:!1},abc:{type:String,default:""}},emits:["update:show"],setup(d,{emit:b}){const A=computed(()=>"".concat(location.origin).concat(location.pathname,"jianpu/index.html?c=")+encodeURIComponent(d.abc));return()=>createVNode(NModal,{maskClosable:!1,displayDirective:"if",autoFocus:!1,show:d.show,"onUpdate:show":C=>b("update:show",C)},{default:()=>[createVNode("div",{class:styles$3.jianpu},[createVNode("div",{class:styles$3.head},[createVNode("div",null,[createTextVNode("简谱预览")]),createVNode(NButton,{class:styles$3.close,quaternary:!0,circle:!0,size:"small",onClick:()=>b("update:show",!1)},{default:()=>[createVNode(NIcon,{component:Close,size:18},null)]})]),createVNode("div",{class:styles$3.content},[createVNode("iframe",{class:styles$3.iframe,src:A.value},null)])])]})}});function _isSlot$1(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!isVNode(d)}const initMusic=d=>new Array(d).fill(0).map((b,A)=>({measureNumber:A+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 A=ALL_Pitches.indexOf(d);if(A>=0){const C=ALL_Pitches[A-b];return C||d}return d}const Home=defineComponent({name:"Home",setup(){const d=useDialog();useRoute$1();const b=useMessage(),A=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,jianpuShow:!1});let C=reactive({uploadStatus:"",saveLoading:!1,saveLoadingText:!1,loading:!0,drawCount:0,isSave:!0,musicId:Date.now().toString(),musicName:"",creator:"",cbsMusicalInstrumentIds:"",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,loadingAudioSrouce2:!1,moveKeyType:"inset",activePlayNote:null,times:[],undoList:[],redoList:[],uploadShow:!1,item:{},uploadClick:!1,multiSelect:!1,multiSelectList:[],multilList:[]});const w=ABC_DATA.types.map(we=>we.value).filter(Boolean),x=ABC_DATA.accidentals.map(we=>we.value).filter(Boolean),S=ABC_DATA.clef.map(we=>we.value).filter(Boolean),E=ABC_DATA.play.map(we=>we.value).filter(Boolean),P=ABC_DATA.dynamics.map(we=>we.value).flat().filter(Boolean);ABC_DATA.bar.map(we=>we.value).filter(Boolean),console.log("🚀 ~ noteTypes:",w,x,S,E,P);const B=()=>{const we=document.querySelectorAll("#paper svg g.note_selected");Array.from(we).forEach(pe=>{pe.classList.remove("note_selected")})},D=(we,pe,ke,Ve,gt)=>{var Ne,De,re,ce,Ae,ze,dt;B();let yt=((De=(Ne=we.chord)==null?void 0:Ne.find(vt=>vt.position==="left"))==null?void 0:De.name)||"";yt=yt.split(".").map(vt=>Number(vt));const xt={...lodashExports.cloneDeep(we),measureIndex:yt[0],noteIndex:yt[1],isFirstChecked:!0};if(we&&we.startChar&&we.endChar&&($.visualObj.engraver.rangeHighlight(we.startChar,we.endChar),(ze=(Ae=(ce=(re=we==null?void 0:we.abselem)==null?void 0:re.elemset)==null?void 0:ce[0])==null?void 0:Ae.classList)==null||ze.add("note_selected")),C.select.state){C.select.list.push(xt),C.select.list.length===1&&showToast("请先选择结束音符"),C.select.list.length===2&&(console.log(C.select.list),C.select.list=C.select.list.sort((vt,wt)=>vt.startChar-wt.startChar),Se());return}if(C.active=xt,C.multiSelect){if(C.multiSelectList.length===0&&C.multiSelectList.push(xt),C.multiSelectList.length>0){if(C.multilList=[],C.multiSelectList[0].startChar>xt.startChar){const vt=C.multiSelectList[1]||C.multiSelectList[0];C.multiSelectList=[cleanDeep(vt),cleanDeep(xt)]}else C.multiSelectList=[cleanDeep(C.multiSelectList[0]),cleanDeep(xt)];console.log(C.multiSelectList[0].startChar,C.multiSelectList[1].startChar),C.multiSelectList=C.multiSelectList.sort((vt,wt)=>vt.startChar-wt.startChar),C.multilList=k(),ie({type:"multiSelect",value:""});return}}else(C.multiSelectList.length||C.multilList.length)&&de();if(console.log("🚀 ~ abcElem:",we,C.music.substring(C.active.startChar,C.active.endChar)),((dt=C.active)==null?void 0:dt.el_type)==="note"&&!A.selectMearesShow){const vt=$.synthControl.visualObj.getTotalTime();if(vt){const wt=C.active.currentTrackMilliseconds/1e3/vt;$.synthControl.seek(wt)}}if(gt&>.step){ie({type:"move",value:{action:"drag",step:gt.step}});return}we!=null&&we.midiPitches&&ABCJS.synth.playEvent(we.midiPitches,we.midiGraceNotePitches,1e3)},k=()=>{const we=C.multiSelectList[0],pe=C.multiSelectList[1],ke=[];for(let Ve=we.measureIndex;Ve=we.noteIndex&&ke.push(Ne):Ve===pe.measureIndex?yt<=pe.noteIndex&&ke.push(Ne):ke.push(Ne):yt>=we.noteIndex&&yt<=pe.noteIndex&&ke.push(Ne)}}return ke},I=ref();let $=reactive({visualObj:null,midiBuffer:null,abcOptions:{selectionColor:"#0f81ff",jazzchords:!0,add_classes:!0,clickListener:D,responsive:"resize",dragging:!0,selectTypes:["note"],visualTranspose:0,wrap:{minSpacing:.1,maxSpacing:2.7,preferredMeasuresPerLine:4},staffwidth:800},synthControl:null,synthOptions:{program:0,soundFontUrl:"https://oss.dayaedu.com/musicSheet/"},abc:{celf:"K:treble",minUnit:"L:1/4",meter:"M:4/4",speed:"Q:1/4=60",key:"K:C",visualTranspose:0,visualKey:"K:C",subjectCode:"acoustic_grand_piano",measures:initMusic(30),isrhythm:""}});const M=(we,pe,ke)=>{const Ve=$.abc.measures[we];Ve&&Ve.notes.splice(pe+1,0,ke)},L=()=>{const we=document.querySelector("#paper svg .ABCJS-cursor");we&&(we.setAttribute("x1","0"),we.setAttribute("x2","0"),we.setAttribute("y1","0"),we.setAttribute("y2","0"))},H={onReady:function(){},onStart:function(){console.log("开始"),C.playState=!0;var we=document.querySelector("#paper svg");let pe=document.querySelector("#paper svg .ABCJS-cursor");pe||(pe=document.createElementNS("http://www.w3.org/2000/svg","line"),pe.setAttribute("class","ABCJS-cursor"),we==null||we.appendChild(pe)),pe.setAttributeNS(null,"x1","0"),pe.setAttributeNS(null,"y1","0"),pe.setAttributeNS(null,"x2","0"),pe.setAttributeNS(null,"y2","0")},onBeat:function(we,pe,ke){if(!C.playState)return;if(A.selectMearesShow&&C.selectMeasures.startNote&&C.selectMeasures.endNote){const gt=pe*(C.selectMeasures.endNote.milliseconds/($.visualObj.getTotalTime()*1e3))-.1;if(we>=gt){const yt=C.selectMeasures.startNote.milliseconds/($.visualObj.getTotalTime()*1e3);$.synthControl.seek(yt);return}}const Ve=we/pe*ke;metronomeData.metro.sound(Ve)},onEvent:we=>{let pe=we;if(C.playState&&!(pe.measureStart&&pe.left===null)){C.activePlayNote={...pe};var ke=document.querySelector("#paper svg .ABCJS-cursor");ke&&(ke.setAttribute("x1",pe.left+pe.width/2),ke.setAttribute("x2",pe.left+pe.width/2),ke.setAttribute("y1",pe.top),ke.setAttribute("y2",pe.top+pe.height))}},onFinished:function(){console.log("finished"),C.playState=!1;for(var we=document.querySelectorAll("svg .highlight"),pe=0;pe{C.loadingAudioSrouce=!0;const we=new ABCJS.synth.CreateSynth,pe="X: 1\nM:4/4\nL:1/4\n".concat(z),ke=ABCJS.parseOnly(pe);await we.init({visualObj:ke[0],options:{...$.synthOptions}})},q=(we=!1)=>{new ABCJS.synth.CreateSynth().init({visualObj:$.visualObj,options:{...$.synthOptions}}).then(()=>{$.synthControl.setTune($.visualObj,we,{midiTranspose:$.abc.visualTranspose,program:$.synthOptions.program}).then(function(ke){C.loadingAudioSrouce=!1}).catch(ke=>{console.log(ke)})})},V=async we=>{var pe;if(we==="play"){if(A.selectMearesShow){if(C.selectMeasures.start>C.selectMeasures.end||!C.selectMeasures.startNote||!C.selectMeasures.endNote){C.selectMeasures.start=0,C.selectMeasures.end=0,C.selectMeasures.startNote=null,C.selectMeasures.endNote=null,b.warning("请输入正确的小节范围"),C.selectMeasures.state=!1,nextTick(()=>{C.selectMeasures.state=!0});return}if(!$.synthControl.isLoaded)$.synthControl.runWhenReady(()=>{const ke=C.selectMeasures.startNote.milliseconds/($.visualObj.getTotalTime()*1e3);$.synthControl.seek(ke)});else{const ke=C.selectMeasures.startNote.milliseconds/($.visualObj.getTotalTime()*1e3);$.synthControl.seek(ke)}}$.synthControl.play(),C.playState=!0}else if(we==="pause"){$.synthControl.play(),C.playState=!1,L();const ke=$.synthControl.visualObj.getTotalTime();if(ke&&((pe=C.activePlayNote)==null?void 0:pe.milliseconds)!==void 0){const Ve=C.activePlayNote.milliseconds/1e3/ke;nextTick(()=>{$.synthControl.seek(Ve)})}}else $.synthControl.restart(),nextTick(()=>{if(A.selectMearesShow){if(C.selectMeasures.start>C.selectMeasures.end||!C.selectMeasures.startNote||!C.selectMeasures.endNote){C.selectMeasures.start=0,C.selectMeasures.end=0,C.selectMeasures.startNote=null,C.selectMeasures.endNote=null,b.warning("请输入正确的小节范围"),C.selectMeasures.state=!1,nextTick(()=>{C.selectMeasures.state=!0});return}if(!$.synthControl.isLoaded)$.synthControl.runWhenReady(()=>{const ke=C.selectMeasures.startNote.milliseconds/($.visualObj.getTotalTime()*1e3);$.synthControl.seek(ke)});else{const ke=C.selectMeasures.startNote.milliseconds/($.visualObj.getTotalTime()*1e3);$.synthControl.seek(ke)}}C.playState||$.synthControl.play()})},U=()=>{$.visualObj=ABCJS.renderAbc("paper",C.music,{...$.abcOptions,visualTranspose:$.abc.visualTranspose})[0],C.drawCount<3&&console.log("🚀 ~ visualObj:",$.visualObj)},W=()=>{var Ve,gt,yt;const we=document.querySelector("#paper svg"),pe=4;let ke=0;for(let xt=0;xt<$.visualObj.lines.length;xt++){const Ne=$.visualObj.lines[xt];for(let De=0;De{K&&clearTimeout(K),K=setTimeout(()=>{it(!1)},15e3)},te=()=>(C.drawCount>0&&($.synthControl.disable(!0),C.playState&&(C.playState=!1),C.isSave=!1),A.selectMearesShow&&(C.selectMeasures.startNote=null,C.selectMeasures.endNote=null,C.selectMeasures.start=0,C.selectMeasures.end=0,A.selectMearesShow=!1,C.selectMeasures.state=!1,nextTick(()=>{C.selectMeasures.state=!0})),new Promise(we=>{nextTick(()=>{C.music=renderMeasures($.abc),U(),q(C.drawCount>0),W();try{ne()}catch(pe){console.log("🚀 ~ error:",pe)}we(1),C.drawCount>0&&Z(),I.value&&(I.value.value=C.music),C.drawCount++})})),ne=()=>{var Ve,gt,yt;const we=new ABCJS.TimingCallbacks($.visualObj);C.times=we.noteTimings;const pe=[];let ke=$.abc.meter||"";for(let xt=0;xtce.position==="left"))==null?void 0:gt.name)||"";if(re=re.split(".").map(ce=>Number(ce)),re.length===2){const ce=$.abc.measures[re[0]],Ae=new RegExp(/M:(\d+)\/\d+/),ze=Number((yt=ke.match(Ae))==null?void 0:yt[1]),dt=ce.notes[re[1]];pe.push({...dt,timeNote:Ne,abcNote:De,measure:{numerator:ze}})}}metronomeData.metro||(metronomeData.metro=new Metronome);try{metronomeData.activeIndex=-1,metronomeData.metro.init(pe)}catch(xt){console.log("🚀 ~ 生成节拍器数据错误:",xt)}},ue=we=>{var ke,Ve,gt,yt;const pe=$.visualObj.getElementFromChar(we);return pe&&((yt=(gt=(Ve=(ke=pe==null?void 0:pe.abselem)==null?void 0:ke.elemset)==null?void 0:Ve[0])==null?void 0:gt.classList)==null||yt.add("note_selected")),pe},X=we=>{const pe=C.music.indexOf(we);return $.visualObj.getElementFromChar(pe)},se=we=>{const pe=$.abc.measures[we],ke=[];for(let Ve=0;Ve{console.log("点击退出",window.matchMedia("(display-mode: standalone)").matches),window.matchMedia("(display-mode: standalone)").matches?(window.onbeforeunload=null,console.log("准备发消息"),window.parent.postMessage({api:"notation_exit"},"*")):(window.close(),window.parent.postMessage({api:"notation_exit"},"*"))},me=async()=>{if(C.saveLoading)return;const we=b.loading("保存中...",{duration:0});await it(!1),setTimeout(async()=>{we.type="success",we.content="保存成功",setTimeout(()=>{we.destroy()},500)},300),C.uploadStatus!=="NO"?d.warning({maskClosable:!0,autoFocus:!1,maskClosable:!1,class:"deleteDialog saveDialog",title:"温馨提示",content:"是否更新到我的资源?",positiveText:"更新",positiveButtonProps:{type:"primary"},negativeText:"不更新",negativeButtonProps:{type:"default",ghost:!1},onPositiveClick:async()=>{C.uploadClick=!0,await It()},onNegativeClick:()=>{he()}}):he()},ie=async we=>{var gt,yt,xt,Ne,De,re,ce,Ae,ze,dt,vt,wt,ht,Xe,mt;C.undoList.length>30&&C.undoList.shift(),C.undoList.push(cleanDeep($.abc)),$.synthControl.disable(!0),C.playState&&(C.playState=!1);const pe=we.type,ke=we.value,Ve=((xt=$.abc.measures[(gt=C.active)==null?void 0:gt.measureIndex])==null?void 0:xt.notes[(yt=C.active)==null?void 0:yt.noteIndex])||null;if(pe==="multiSelect"){C.multilList.forEach(bt=>{var Y,xe,fe,Ce;(Ce=(fe=(xe=(Y=bt==null?void 0:bt.abselem)==null?void 0:Y.elemset)==null?void 0:xe[0])==null?void 0:fe.classList)==null||Ce.add("note_selected")});return}if(pe==="exit"){if(!C.isSave){clearTimeout(K),C.uploadClick=!1,d.warning({autoFocus:!1,maskClosable:!1,class:"deleteDialog saveDialog",title:"温馨提示",content:"是否保存当前曲谱?",positiveText:"保存",positiveButtonProps:{type:"primary"},negativeText:"不保存",negativeButtonProps:{type:"default",ghost:!1},onPositiveClick:()=>{me()},onNegativeClick:()=>{he()}});return}he()}if(pe==="type"){if(C.noteType=ke,Ve){Ve.noteType=ke,await te();const bt=ue(C.active.startChar),Y=bt?{...lodashExports.cloneDeep(bt),measureIndex:C.active.measureIndex,noteIndex:C.active.noteIndex,isFirstChecked:!0}:null;C.active=Y}return}if(pe==="segno"){if(!C.active){showToast("请先选择音符");return}if(!Ve)return;Ve.segno=Ve.segno?"":ke,await te(),ue(C.active.startChar)}if(pe==="note"&&C.active&&C.active.el_type=="note"){const bt=((Ne=$.abc.measures[C.active.measureIndex])==null?void 0:Ne.notes[C.active.noteIndex])||null,Y=ke.split("-");C.active.isFirstChecked&&(bt.content=Y[0],bt.noteType=C.noteType,Y[1]&&(bt.accidental=Y[1]||""),C.active.isFirstChecked=!1),await te();const xe=X("".concat(C.active.measureIndex,".").concat(C.active.noteIndex));if((ce=(re=(De=xe==null?void 0:xe.abselem)==null?void 0:De.beam)==null?void 0:re.elems)!=null&&ce.length){const Ce=xe.abselem.beam.elems,Le=$.visualObj.getBeatLength();Ce.map(Ge=>Ge.duration).reduce((Ge,ct)=>Ge+ct)>=Le&&($.abc.measures[C.active.measureIndex].notes[C.active.noteIndex].segno=" ",await te())}if(xe!=null&&xe.midiPitches&&ABCJS.synth.playEvent(xe.midiPitches,xe.midiGraceNotePitches,1e3),(Ae=$.abc.measures[C.active.measureIndex])==null?void 0:Ae.notes[C.active.noteIndex+1]){const Ce=X("".concat(C.active.measureIndex,".").concat(C.active.noteIndex+1));ue(Ce.startChar),C.active={...Ce,measureIndex:C.active.measureIndex,noteIndex:C.active.noteIndex+1,isFirstChecked:!0}}else if(se(C.active.measureIndex).map($e=>$e.duration).reduce(($e,Ge)=>$e+Ge)>=1)if((ze=$.abc.measures[C.active.measureIndex+1])==null?void 0:ze.notes[0]){const Ge=X("".concat(C.active.measureIndex+1,".0"));ue(Ge.startChar),C.active={...Ge,measureIndex:C.active.measureIndex+1,noteIndex:0,isFirstChecked:!0}}else ue(C.active.startChar),C.active.isFirstChecked=!0;else{M(C.active.measureIndex,C.active.noteIndex,createNote({content:"z",noteType:C.noteType})),await te();const $e=X("".concat(C.active.measureIndex,".").concat(C.active.noteIndex+1));ue($e.startChar),C.active={...$e,measureIndex:C.active.measureIndex,noteIndex:C.active.noteIndex+1,isFirstChecked:!0}}}if(pe==="accidentals"){if(!C.active){b.warning("请先选择音符");return}if(Ve.content==="z"){b.warning("休止符无法添加临时升降记号");return}Ve.accidental=Ve.accidental==ke?"":ke,await te();const bt=ue(C.active.startChar),Y=bt?{...lodashExports.cloneDeep(bt),measureIndex:C.active.measureIndex,noteIndex:C.active.noteIndex,isFirstChecked:!0}:null;C.active=Y}if(pe==="clef")if(C.active){if(C.active.measureIndex===0&&C.active.noteIndex===0)$.abc.celf=ke,te();else{if(!Ve)return;Ve.clef="[".concat(ke,"]"),await te()}ue(C.active.startChar)}else $.abc.celf=ke,te();if(pe==="key"&&($.abc.key=ke,$.abc.visualTranspose=0,$.abc.visualKey="K:C",$.abc.visualKey=ke,await te()),pe==="meter")if(C.active&&C.active.measureIndex!==0){if(!Ve)return;const bt=$.abc.measures[C.active.measureIndex];bt.meter="[".concat(ke,"]"),await te();const Y=X("".concat(C.active.measureIndex,".").concat(C.active.noteIndex));ue(Y.startChar)}else $.abc.meter=ke,await te();if(pe==="play"){if(!C.active){b.warning("请先选择音符");return}if(!Ve)return;Ve.play.includes(ke)?Ve.play=Ve.play.filter(bt=>bt!==ke):Ve.play.push(ke),await te(),ue(C.active.startChar)}if(pe==="dynamics"){if(!C.active){b.info("请先选择音符");return}if(!Ve)return;if(Array.isArray(ke)){if(Ve!=null&&Ve.dynamics){Ve.dynamics="";for(let bt=0;bt<$.abc.measures.length;bt++){const Y=$.abc.measures[bt];for(let xe=0;xeY.is_delete!==!0);for(let bt=0;bt<$.abc.measures.length;bt++)$.abc.measures[bt].notes.length||$.abc.measures[bt].notes.push(createNote({content:"z",noteType:"4"}))}else{if(!C.active||C.active.startChar===0)return;$.abc.measures[C.active.measureIndex].notes.splice(C.active.noteIndex,1),$.abc.measures[C.active.measureIndex].notes.length===0&&$.abc.measures.splice(C.active.measureIndex,1)}await te(),C.active=null}C.multilList.length&&de(),pe==="setrhythm"&&($.abc.isrhythm=ke,console.log("🚀 ~ abcData.abc.isrhythm:",$.abc.isrhythm),A.moveKeyShow=!1,await te())},de=async()=>{C.multilList=[],C.multiSelectList=[],C.multiSelect=!1},be=we=>{const pe=$.visualObj.getElementFromChar(we);return(pe==null?void 0:pe.el_type)==="note"?pe:be(pe.endChar)},ge=()=>{C.active=null,document.querySelectorAll(".abcjs-note_selected").forEach(pe=>{pe.classList.remove("abcjs-note_selected"),pe.setAttribute("fill","currentColor")})},Se=async()=>{var gt,yt;const we=(gt=C.select.parmas)==null?void 0:gt.type,pe=(yt=C.select.parmas)==null?void 0:yt.value,ke=C.select.list[0],Ve=C.select.list[1];if(we==="dynamics")if($.abc.measures[Ve.measureIndex].notes[Ve.noteIndex].dynamics||$.abc.measures[ke.measureIndex].notes[ke.noteIndex].dynamics)b.warning("已经添加了力度标记");else{const xt=Date.now()+"";$.abc.measures[ke.measureIndex].notes[ke.noteIndex].dynamics=pe[0],$.abc.measures[ke.measureIndex].notes[ke.noteIndex].dCode=xt,$.abc.measures[Ve.measureIndex].notes[Ve.noteIndex].dynamics=pe[1],$.abc.measures[Ve.measureIndex].notes[Ve.noteIndex].dCode=xt,await te()}if(we==="tie"){const xt=Date.now()+"";if($.abc.measures[ke.measureIndex].notes[ke.noteIndex].tie){const Ne=$.abc.measures[ke.measureIndex].notes[ke.noteIndex].tie;$.abc.measures[ke.measureIndex].notes[ke.noteIndex].tie=pe[0]+Ne}else $.abc.measures[ke.measureIndex].notes[ke.noteIndex].tie=pe[0],$.abc.measures[ke.measureIndex].notes[ke.noteIndex].tCode=xt;if($.abc.measures[Ve.measureIndex].notes[Ve.noteIndex].tie){const Ne=$.abc.measures[Ve.measureIndex].notes[Ve.noteIndex].tie;$.abc.measures[Ve.measureIndex].notes[Ve.noteIndex].tie=Ne+pe[1]}else $.abc.measures[Ve.measureIndex].notes[Ve.noteIndex].tie=pe[1],$.abc.measures[Ve.measureIndex].notes[Ve.noteIndex].tCode=xt;await te()}C.select.state=!1,C.select.list=[],C.select.parmas=null,ge(),b.destroyAll()},je=async we=>{console.log(we),console.log($.abc.visualKey||$.abc.key,"=>",we.value);const pe=getKeyStep(we.value,$.abc.visualKey||$.abc.key,C.moveKeyType);console.log("🚀 ~ item:",pe),window.visual_Key=we.value.split(":")[1],$.abc.visualTranspose=pe.step,$.abc.visualKey=we.value,A.moveKeyShow=!1,C.playState&&($.synthControl.disable(!0),C.playState=!1),await te()},Ye=reactive({wait:!1,control:!1}),st=async we=>{var pe;we.target.nodeName!=="INPUT"&&((we.key==="Control"||we.key==="Meta")&&(Ye.control=!0),we.key==="z"&&Ye.control&&!Ye.wait&&(we.preventDefault(),C.undoList.length&&($.abc=lodashExports.cloneDeep(C.undoList[C.undoList.length-1]),C.undoList.pop(),Ye.wait=!0,await te(),nextTick(()=>{Ye.wait=!1}))),we.key.toLocaleLowerCase()==="shift"&&(!C.multiSelect&&((pe=C.active)==null?void 0:pe.el_type)==="note"&&(console.log("shift 按下"),C.multiSelectList=[cleanDeep(C.active)]),C.multiSelect=!0))},ot=we=>{if(we.target.nodeName!=="INPUT"){if(console.log(we.key.toLocaleLowerCase()),we.key.toLocaleLowerCase()==="shift"&&(console.log("shift 抬起"),C.multiSelect=!1),(we.key==="Control"||we.key==="Meta")&&(Ye.control=!1),we.key.toLocaleLowerCase()=="1"&&ie({type:"type",value:"///"}),we.key.toLocaleLowerCase()=="2"&&ie({type:"type",value:"//"}),we.key.toLocaleLowerCase()=="3"&&ie({type:"type",value:"/"}),we.key.toLocaleLowerCase()=="4"&&ie({type:"type",value:""}),we.key.toLocaleLowerCase()=="5"&&ie({type:"type",value:"2"}),we.key.toLocaleLowerCase()=="6"&&ie({type:"type",value:"4"}),!C.active)return!1;if(we.key==="Backspace"&&ie({type:"delete",value:""}),/^[A-Ga-g]$/.test(we.key)&&ie({type:"note",value:we.key.toLocaleUpperCase()}),["ArrowUp","ArrowDown"].includes(we.key))return we.preventDefault(),we.stopPropagation(),ie({type:"move",value:{action:we.key==="ArrowUp"?"up":"donw"}}),!1;we.key.toLocaleLowerCase()==="0"&&ie({type:"note",value:"z"}),we.key.toLocaleLowerCase()=="7"&&ie({type:"accidentals",value:"="}),we.key.toLocaleLowerCase()=="8"&&ie({type:"accidentals",value:"^"}),we.key.toLocaleLowerCase()=="9"&&ie({type:"accidentals",value:"_"})}},et=()=>{$.abc.measures=initMusic(30),te()},lt=computed(()=>ABCJS.synth.instrumentIndexToName.map((we,pe)=>({label:instrumentsNames[we],value:pe}))),Me=computed(()=>{const we=ABCJS.synth.instrumentIndexToName[$.synthOptions.program];return instrumentsNames[we]}),Oe=async()=>{var ke;const we=getQuery();C.loading=!0;const pe=await api_musicSheetCreationDetail(we.id);if((pe==null?void 0:pe.code)==200){C.uploadStatus=pe.data.uploadStatus||"",C.musicId=pe.data.id||"",C.musicName=pe.data.name||"",C.creator=pe.data.creator||"",C.cbsMusicalInstrumentIds=pe.data.cbsMusicalInstrumentIds||"";let Ve="";try{Ve=JSON.parse(pe.data.creationData)}catch(gt){console.log(gt)}if(Ve){console.log("🚀 ~ abc:",Ve),C.musicName=(ke=Ve.title)!=null?ke:C.musicName,$.abc.title=C.musicName,$.abc.creator=C.creator,$.abc.celf=Ve.celf||"K:treble",$.abc.key=Ve.key.value||Ve.key||"K:C",$.abc.meter=Ve.meter.value||Ve.meter||"M:4/4",$.abc.speed=Ve.speed||"Q:1/4=60",$.abc.visualTranspose=Ve.visualTranspose||0,$.abc.visualKey=Ve.visualKey||"K:C",$.abc.subjectCode=Ve.subjectCode||"acoustic_grand_piano";const gt=ABCJS.synth.instrumentIndexToName.indexOf($.abc.subjectCode);$.synthOptions.program=gt>-1?gt:0,$.abc.measures=Ve.measures||initMusic(30),$.abc.isrhythm=Ve.isrhythm?Ve.isrhythm:""}else if(pe!=null&&pe.data.xml){const gt=await request$1$1.get(pe.data.xml,{mode:"cors"});let yt=new DOMParser().parseFromString(gt,"text/xml");yt=window.vertaal(yt,{p:"f",t:1,u:0,v:3,mnum:0});const xt=ABCJS.renderAbc("importRef",yt[0],{responsive:"resize"});console.log("🚀 ~ parseData:",xt),$.abc=formateAbc(xt[0],{subjectCode:$.abc.subjectCode}),console.log($.abc,"12"),C.musicName=C.musicName||$.abc.title,C.creator=$.abc.creator||C.creator,await te()}}return C.loading=!1,pe},Qe=we=>{C.saveLoading=!0,we&&(C.saveLoadingText=!0,b.loading("保存中...",{duration:0}))};let Ze=!1;const it=async(we=!0)=>{if(Ze)return;Ze=!0;const pe=getQuery();$.abc.title=C.musicName,$.abc.creator=C.creator,Qe(we);const ke=await ae(!1);console.log("🚀 ~ pngUrl:",ke);try{if(pe.id){const Ve=await api_musicSheetCreationUpdate({name:C.musicName||"未命名乐谱",creator:C.creator||"未命名乐谱",creationConfig:renderMeasures($.abc,{hiddenIndex:!0,showTitle:!0,showCreator:!0}),creationData:JSON.stringify(cleanDeep($.abc)),id:pe.id,cbsMusicalInstrumentIds:C.cbsMusicalInstrumentIds,coverImg:ke})}else{const Ve=await api_musicSheetCreationSave({name:C.musicName||"未命名乐谱",creator:C.creator||"未命名乐谱",creationConfig:renderMeasures($.abc,{hiddenIndex:!0,showTitle:!0,showCreator:!0}),creationData:JSON.stringify(cleanDeep($.abc)),cbsMusicalInstrumentIds:C.cbsMusicalInstrumentIds,coverImg:ke});if(Ve!=null&&Ve.data){const gt=location.hash.split("?"),yt=queryString.parse(gt[1]);yt.id=Ve.data;try{delete yt.config}catch(xt){console.log("🚀 ~ error:",xt)}location.hash=gt[0]+"?"+queryString.stringify(yt)}}}catch(Ve){console.log(Ve)}we&&(b.destroyAll(),b.success("保存成功")),C.isSave=!0,C.saveLoading=!1,C.uploadClick=!1,C.saveLoadingText=!1,Ze=!1},Te=()=>{var Ve,gt,yt,xt,Ne,De,re;const we=getQuery(),pe=decodeUrl(we.config);console.log("🚀 ~ abc:",pe),C.cbsMusicalInstrumentIds=pe.cbsMusicalInstrumentIds||"",$.abc.celf=(Ve=pe.celf)!=null?Ve:"K:treble",$.abc.key=(gt=pe.key)!=null?gt:"K:C",$.abc.meter=(yt=pe.meter)!=null?yt:"M:4/4",$.abc.speed=(xt=pe.speed)!=null?xt:"Q:1/4=80",$.abc.visualTranspose=(Ne=pe.visualTranspose)!=null?Ne:0,$.abc.subjectCode=(De=pe.subjectCode)!=null?De:"acoustic_grand_piano";const ke=ABCJS.synth.instrumentIndexToName.indexOf($.abc.subjectCode);$.synthOptions.program=ke>-1?ke:0,$.abc.measures=initMusic((re=pe.measure)!=null?re:30),C.loading=!1},_e=useDocumentVisibility();watch(()=>_e.value,we=>{we==="hidden"&&C.playState&&V("pause")}),onMounted(async()=>{getQuery().id?await Oe():Te(),ABCJS.synth.supportsAudio()&&($.synthControl=new ABCJS.synth.SynthController,$.synthControl.load("#audio",H,{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0})),await te(),Q(),document.addEventListener("keyup",ot),document.addEventListener("keydown",st),window.onbeforeunload=ke=>{C.isSave||(ke.preventDefault(),ke.returnValue="还有没保存的")},$.synthControl.restart();const pe=document.querySelector("#selectMearesBtn");if(pe){const ke=pe.getBoundingClientRect();C.selectMeasures.x=document.body.clientWidth-320,C.selectMeasures.y=ke.top+70,C.selectMeasures.state=!0}}),onUnmounted(()=>{document.removeEventListener("keyup",ot),document.removeEventListener("keydown",st)});const He=computed(()=>C.active?$.abc.measures[C.active.measureIndex]||{}:{}),Je=computed(()=>{var pe;return C.active?((pe=$.abc.measures[C.active.measureIndex])==null?void 0:pe.notes[C.active.noteIndex])||{}:{}}),Ke=()=>{showConfirmDialog({title:"温馨提示",message:"是否覆盖当前乐谱?"}).then(()=>{et(),C.active=null})},Ie=()=>{for(let we=0;we{if(C.deleteMearseType==="ing"){if(!C.active){b.warning("请选择小节");return}$.abc.measures.splice(C.active.measureIndex,1)}else if(C.deleteMearseType==="finish"){let we=$.abc.measures.length;for(let pe=we;pe>0&&($.abc.measures[pe-1].notes.length===1&&$.abc.measures[pe-1].notes[0].content==="z");pe--){if($.abc.measures.length===1)break;$.abc.measures.splice(pe-1,1)}}A.mearseDeleteShow=!1,te()},ae=(we=!0)=>new Promise(pe=>{var Ne;const ke=document.getElementById("exportPng");if(!ke)return;const Ve=renderMeasures($.abc,{hiddenIndex:!0,showTitle:!0,showCreator:!0});ABCJS.renderAbc(ke,Ve,$.abcOptions);const gt=(Ne=ke.children[0])==null?void 0:Ne.cloneNode(!0),yt=ke.getBoundingClientRect();gt.setAttribute("width","".concat(yt.width*3)),gt.setAttribute("height","".concat(yt.height*3));const xt=document.createElementNS("http://www.w3.org/2000/svg","rect");if(xt.setAttribute("x","0"),xt.setAttribute("y","0"),xt.setAttribute("width","".concat(yt.width*10)),xt.setAttribute("height","".concat(yt.height*10)),xt.setAttribute("fill","#fff"),gt.prepend(xt),gt){const De=svg2canvas(gt.outerHTML);if(we){let re=document.createElement("a");re.href=De.toDataURL(),re.download=C.musicName+".png";const ce=new MouseEvent("click");re.dispatchEvent(ce)}else De.toBlob(async re=>{const ce=await api_uploadFile(re,C.musicId+".png");pe(ce)},"image/png")}}),ee=async()=>{$.abc.title="T:".concat(C.musicName),$.abc.creator="R:".concat(C.creator),ae()},J=ref(),le=()=>{const we=ABCJS.synth.getMidiFile($.visualObj,{chordsOff:!0,midiOutputType:"link",fileName:"曲谱"});J.value.innerHTML=we,J.value.querySelector("a").click()},ve=async(we=!0)=>new Promise(pe=>{const ke=new ABCJS.synth.CreateSynth;ke.init({visualObj:$.visualObj,options:$.synthOptions}).then(()=>{ke.prime().then(async()=>{if(we)downloadFile(ke.download(),(C.musicName||"曲谱")+".wav");else{const Ve=bufferToWave(ke.getAudioBuffer()),gt=await api_uploadFile(Ve,C.musicId+".wav");pe(gt)}})})}),Be=()=>{try{$.synthControl&&$.synthControl.download((C.musicName||"曲谱")+".wav")}catch(we){ve()}},Ue=async()=>{var ke;const we=b.loading("导出中...");await it(!1);const pe=await Oe();if(!((ke=pe==null?void 0:pe.data)!=null&&ke.xml)){we.type="error",we.content="导出失败";return}FileSaver_minExports.saveAs(pe.data.xml,(C.musicName||"曲谱")+".xml"),we.type="success",we.content="导出成功"},rt=we=>{we==="png"?ee():we==="midi"?le():we==="wav"?Be():we==="down-xml"&&Ue()},pt=ref({timer:null,importFileId:null,data:{},abcData:{}}),tt=(we="xml")=>{C.active=null;const pe=document.createElement("input");pe.type="file",we==="xml"?pe.accept=".xml,.musicxml":we==="import-image"?pe.accept=".jpg,.png,.jpeg":we==="import-pdf"&&(pe.accept="application/pdf"),pe.onchange=async ke=>{C.loadingAudioSrouce2=!0,pt.value.abcData=lodashExports.cloneDeep($),pt.value.data=lodashExports.cloneDeep(C);const Ve=ke.target.files[0];if(we==="xml"){const gt=new FileReader;gt.onload=async yt=>{Dt(yt.target.result)},gt.readAsText(Ve)}else["import-image","import-pdf"].includes(we)&&at(Ve)},pe.click()},at=async we=>{try{console.log(we,"file");const ke=we.name,Ve={filename:ke,bucketName:"gyt",postData:{filename:ke,acl:"public-read",key:ke,unknowValueField:[]}},{data:gt}=await getUploadSign(Ve),yt={policy:gt.policy,signature:gt.signature,key:ke,KSSAccessKeyId:gt.kssAccessKeyId,acl:"public-read",name:ke,file:we};onOnlyFileUpload("action",yt).then(async xt=>{const Ne=await api_musicalScoreConversionRecordSave([{fileName:ke,fileUrl:xt,creationFlag:!1}]);Ne.data&&Ne.data.length>0&&(pt.value.importFileId=Ne.data[0],pt.value.timer=setInterval(()=>{Et()},5e3))})}catch(pe){}},Et=async()=>{try{const we={page:1,rows:-1,idList:[pt.value.importFileId]},ke=(await api_musicalScoreConversionRecordPage(we)).data.rows||[];let Ve={};if(ke.forEach(gt=>{gt.id===pt.value.importFileId&&(Ve=gt)}),Ve.status==="SUCCESS")if(clearInterval(pt.value.timer),Ve.xmlFileUrl){const gt=await request$1$1.get(Ve.xmlFileUrl,{mode:"cors"});Dt(gt)}else C.loadingAudioSrouce2=!1,b.error("上传失败");else Ve.status==="FAIL"&&(clearInterval(pt.value.timer),C.loadingAudioSrouce2=!1,b.error("上传失败"))}catch(we){console.log(we,"e")}},Dt=async we=>{try{let pe=we;pe=new DOMParser().parseFromString(pe,"text/xml"),pe=window.vertaal(pe,{p:"f",t:1,u:0,v:3,mnum:0});const ke=ABCJS.renderAbc("importRef",pe[0],{responsive:"resize"});console.log("🚀 ~ parseData:",ke),$.abc=formateAbc(ke[0],{subjectCode:$.abc.subjectCode}),C.musicName=$.abc.title||C.musicName,C.creator=$.abc.creator||C.creator,await te()}catch(pe){}C.loadingAudioSrouce2=!1},Mt=async()=>{C=Object.assign(C,pt.value.data),$=Object.assign($,pt.value.abcData),clearInterval(pt.value.timer),pt.value.importFileId&&await api_musicalScoreConversionRecordRemove(pt.value.importFileId),C.loadingAudioSrouce2=!1},kt=(we,pe)=>{if(console.log("🚀 ~ index:",we),C.playState&&V("pause"),pe==="start"){let ke=we?X("".concat(we-1,".0")):null;ke=C.times.find(Ve=>Ve.startChar===ke.startChar),C.selectMeasures.start=we?we-1:0,C.selectMeasures.startNote=ke,C.selectMeasures.start&&C.selectMeasures.end&&C.selectMeasures.endVe.startChar===ke.startChar),C.selectMeasures.end=we?we-1:0,C.selectMeasures.endNote=ke,C.selectMeasures.start&&C.selectMeasures.end&&C.selectMeasures.start>C.selectMeasures.end&&(C.selectMeasures.start=0,C.selectMeasures.startNote=null)}},It=async()=>{if(C.saveLoading)return;getQuery().id||await it(!0);const pe=getQuery(),ke=await api_musicSheetCreationDetail(pe.id);ke.data&&(ke.data.uploadStatus!=="YES"?(C.item={...ke.data,visualObj:$.visualObj,subjectCode:$.abc.subjectCode},C.uploadShow=!0):b.info("已是最新版本"))};return()=>createVNode(Fragment,null,[createVNode("div",{class:styles$a.container},[createVNode("div",{class:styles$a.containerTop,onKeyup:we=>we.stopPropagation()},[createVNode("div",{class:styles$a.topWrap},[createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"exit",value:"exit"})},[createVNode("div",{class:[styles$a.btnImg]},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_-1.png")},null)]),createVNode("div",null,[createTextVNode("退出")])]),createVNode("div",{class:styles$a.topBtn},[createVNode(FileBtn,{saveLoading:C.saveLoading,onSelect:we=>{we==="newMusic"?Ke():we==="save"?it(!0):["xml","import-image","import-pdf"].includes(we)?tt(we):we==="upload"?It():["png","midi","wav","down-xml"].includes(we)&&rt(we)}},null),createVNode("div",null,[createTextVNode("文件")])]),createVNode("div",{class:styles$a.topLine},null),createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"dot",value:">"})},[createVNode("div",{class:[styles$a.btnImg,Je.value.dot===">"&&styles$a.btnImgActive]},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_1.png")},null)]),createVNode("div",null,[createTextVNode("附点")])]),createVNode("div",{class:styles$a.topLine},null),ABC_DATA.accidentals.map(we=>createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"accidentals",value:we.value})},[createVNode("div",{class:[styles$a.btnImg,Je.value.accidental===we.value&&styles$a.btnImgActive]},[createVNode("img",{class:styles$a.topBtnIcon,src:we.icon},null)]),createVNode("div",{class:styles$a.btnName},[we.name])])),createVNode("div",{class:styles$a.topLine},null),createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"tie",value:ABC_DATA.tie[0].value})},[createVNode("div",{class:[styles$a.btnImg,Je.value.tieline===ABC_DATA.tie[0].value&&styles$a.btnImgActive]},[createVNode("img",{class:styles$a.topBtnIcon,src:ABC_DATA.tie[0].icon},null)]),createVNode("div",null,[ABC_DATA.tie[0].name])]),createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"tie",value:ABC_DATA.tie[1].value})},[createVNode("div",{class:[styles$a.btnImg,ABC_DATA.tie[1].value.includes(Je.value.tie)&&styles$a.btnImgActive]},[createVNode("img",{class:styles$a.topBtnIcon,src:ABC_DATA.tie[1].icon},null)]),createVNode("div",null,[ABC_DATA.tie[1].name])]),createVNode("div",{class:styles$a.topLine},null),ABC_DATA.play.slice(0,4).map(we=>{var pe;return createVNode("div",{class:[styles$a.topBtn],onClick:()=>ie({type:"play",value:we.value})},[createVNode("div",{class:[styles$a.btnImg,((pe=Je.value.play)==null?void 0:pe.includes(we.value))&&styles$a.btnImgActive]},[createVNode("img",{class:styles$a.topBtnIcon,src:we.icon},null)]),createVNode("div",null,[we.name])])}),createVNode(NPopover,{class:styles$a.popupWrap,showArrow:!1,trigger:"click",contentStyle:{width:"400px"}},{trigger:()=>createVNode("div",{class:styles$a.topDownArrow},[createVNode("img",{src:getImage("icon_arrow.png")},null)]),default:()=>{let we;return createVNode(NGrid,{cols:4,yGap:8},_isSlot$1(we=ABC_DATA.play.slice(4).map(pe=>createVNode(NGi,null,{default:()=>{var ke;return[createVNode("div",{class:[styles$a.btnItem,((ke=Je.value.play)==null?void 0:ke.includes(pe.value))&&styles$a.btnItemActive],onClick:()=>{C.morePlay=!1,ie({type:"play",value:pe.value})}},[createVNode("div",{class:styles$a.btnItemIcon},[createVNode(TheIcon,{iconClassName:pe.icon},null)]),createVNode("div",null,[pe.name])])]}})))?we:{default:()=>[we]})}}),createVNode("div",{class:styles$a.topLine},null),createVNode(NDropdown,{trigger:"click",options:ABC_DATA.slus,labelField:"name",keyField:"value",onSelect:we=>{console.log(we),ie({type:"slus",value:we})}},{default:()=>[createVNode("div",{class:[styles$a.topBtn]},[createVNode("div",{class:styles$a.btnImg},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_13.png")},null)]),createVNode("div",null,[createTextVNode("连音")])])]}),createVNode("div",{class:[styles$a.topBtn,styles$a.btnDisabled]},[createVNode("div",{class:styles$a.btnImg},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_14.png")},null)]),createVNode("div",null,[createTextVNode("翻转")])]),createVNode("div",{class:styles$a.topLine},null),createVNode(NPopover,{class:styles$a.popupWrap,showArrow:!1,show:A.selectSubjectShow,"onUpdate:show":we=>A.selectSubjectShow=we,trigger:"click",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:styles$a.topBtn},[createVNode("div",{class:styles$a.btnImg,onClick:()=>A.instrument=!0},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_25.png")},null)]),createVNode("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"60px"}},[Me.value])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("选择声部")]),createVNode(NSelect,{filterable:!0,options:lt.value,value:$.synthOptions.program,"onUpdate:value":[we=>$.synthOptions.program=we,()=>{$.synthControl.pause(),C.playState=!1,nextTick(async()=>{await Q(),q(!0),A.selectSubjectShow=!1,$.abc.subjectCode=ABCJS.synth.instrumentIndexToName[$.synthOptions.program],Z()})}]},null)])}),createVNode(NPopover,{class:styles$a.popupWrap,showArrow:!1,show:A.moveKeyShow,"onUpdate:show":we=>A.moveKeyShow=we,trigger:"click",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:[styles$a.topBtn,$.abc.isrhythm==="rhythm"&&styles$a.btnDisabled]},[createVNode("div",{class:styles$a.btnImg},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_15.png")},null)]),createVNode("div",null,[createTextVNode("移调")])]),default:()=>{let we;return createVNode(Fragment,null,[createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("移调方式")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,type:C.moveKeyType==="inset"?"primary":"default",onClick:()=>C.moveKeyType="inset"},{default:()=>[createVNode(NIcon,{component:GripLinesVertical},null),createTextVNode("最靠近")]}),createVNode(NButton,{secondary:!0,type:C.moveKeyType==="down"?"primary":"default",onClick:()=>C.moveKeyType="down"},{default:()=>[createVNode(NIcon,{component:LongArrowAltDown},null),createTextVNode("向下移调")]}),createVNode(NButton,{secondary:!0,type:C.moveKeyType==="up"?"primary":"default",onClick:()=>C.moveKeyType="up"},{default:()=>[createVNode(NIcon,{component:LongArrowAltUp},null),createTextVNode("向上移调")]})]}),createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("目标音调")]),createVNode(NGrid,{cols:5,yGap:8},_isSlot$1(we=ABC_DATA.key.sort((pe,ke)=>ke.step-pe.step).map(pe=>createVNode(NGi,null,{default:()=>[createVNode("div",{class:[styles$a.btnItem,$.abc.visualKey===pe.value&&styles$a.btnItemActive],onClick:()=>je(pe)},[createVNode("div",{class:[styles$a.btnItemIcon]},[createVNode(TheIcon,{iconClassName:pe.icon},null)]),createVNode("div",{class:styles$a.btnItemName},[pe.name])])]})))?we:{default:()=>[we]})])}}),createVNode(NPopover,{class:styles$a.popupWrap,showArrow:!1,value:A.speedShow,"onUpdate:value":we=>A.speedShow=we,trigger:"click",placement:"bottom",displayDirective:"show"},{trigger:()=>createVNode("div",{class:[styles$a.topBtn]},[createVNode("div",{class:styles$a.btnImg},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_16.png")},null)]),createVNode("div",null,[createTextVNode("速度调整")])]),default:()=>createVNode(TheSpeed,{onChange:we=>ie(we)},null)}),createVNode(NPopover,{class:styles$a.popupWrap,showArrow:!1,show:A.staffShow,"onUpdate:show":we=>A.staffShow=we,trigger:"click",placement:"bottom",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:[styles$a.topBtn]},[createVNode("div",{class:styles$a.btnImg},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_17.png")},null)]),createVNode("div",null,[createTextVNode("谱面显示")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("乐谱大小")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:$.abcOptions.staffwidth===1200?"primary":"default",secondary:!0,onClick:()=>{$.abcOptions.staffwidth=1200,te()}},{default:()=>[createTextVNode("小")]}),createVNode(NButton,{type:$.abcOptions.staffwidth===800?"primary":"default",secondary:!0,onClick:()=>{$.abcOptions.staffwidth=800,te()}},{default:()=>[createTextVNode("中")]}),createVNode(NButton,{type:$.abcOptions.staffwidth===400?"primary":"default",secondary:!0,onClick:()=>{$.abcOptions.staffwidth=400,te()}},{default:()=>[createTextVNode("大")]})]}),createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("小节数")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NInputNumber,{min:1,value:$.abcOptions.wrap.preferredMeasuresPerLine,"onUpdate:value":[we=>$.abcOptions.wrap.preferredMeasuresPerLine=we,()=>{te()}],placeholder:"请输入小节数"},null)]})])}),createVNode(NPopover,{class:styles$a.popupWrap,showArrow:!1,show:A.barShow,"onUpdate:show":we=>A.barShow=we,trigger:"click",placement:"bottom",contentStyle:{width:"320px"}},{trigger:()=>createVNode("div",{class:[styles$a.topBtn]},[createVNode("div",{class:styles$a.btnImg},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_18.png")},null)]),createVNode("div",null,[createTextVNode("添加小节")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("添加方式")]),createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:C.addMearseType==="pre"?"primary":"default",secondary:!0,onClick:()=>C.addMearseType="pre"},{default:()=>[createTextVNode("当前小节前")]}),createVNode(NButton,{type:C.addMearseType==="next"?"primary":"default",secondary:!0,onClick:()=>C.addMearseType="next"},{default:()=>[createTextVNode("当前小节后")]}),createVNode(NButton,{type:C.addMearseType==="finish"?"primary":"default",secondary:!0,onClick:()=>C.addMearseType="finish"},{default:()=>[createTextVNode("曲谱末尾")]})]}),createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("小节数")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NInputNumber,{min:1,value:C.addMearseNumber,"onUpdate:value":we=>C.addMearseNumber=we,placeholder:"请输入小节数"},null),createVNode(NSpace,{style:{marginTop:"20px"},align:"center",wrap:!1,wrapItem:!1},{default:()=>[createVNode(NButton,{style:{width:"48%"},round:!0,onClick:()=>A.barShow=!1},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{style:{width:"48%"},round:!0,type:"primary",onClick:()=>Ie()},{default:()=>[createTextVNode("确定")]})]})]})])}),createVNode(NPopover,{class:styles$a.popupWrap,show:A.mearseDeleteShow,"onUpdate:show":we=>A.mearseDeleteShow=we,trigger:"click",placement:"bottom"},{trigger:()=>createVNode("div",{class:[styles$a.topBtn]},[createVNode("div",{class:styles$a.btnImg},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_19.png")},null)]),createVNode("div",null,[createTextVNode("删除小节")])]),default:()=>createVNode(Fragment,null,[createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("删除方式")]),createVNode(NSpace,{vertical:!0},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{type:C.deleteMearseType==="ing"?"primary":"default",secondary:!0,onClick:()=>C.deleteMearseType="ing"},{default:()=>[createTextVNode("当前选中小节")]}),createVNode(NButton,{type:C.deleteMearseType==="finish"?"primary":"default",secondary:!0,onClick:()=>C.deleteMearseType="finish"},{default:()=>[createTextVNode("末尾空白小节")]})]}),createVNode(NSpace,{style:{marginTop:"20px"},align:"center",wrap:!1,wrapItem:!1},{default:()=>[createVNode(NButton,{style:{width:"48%"},round:!0,onClick:()=>A.mearseDeleteShow=!1},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{style:{width:"48%"},round:!0,type:"primary",onClick:()=>Fe()},{default:()=>[createTextVNode("确定")]})]})]})])}),createVNode("div",{class:[styles$a.topBtn,$.abc.isrhythm==="rhythm"&&styles$a.btnDisabled],onClick:()=>{A.jianpuShow=!0}},[createVNode("div",{class:[styles$a.btnImg]},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_30.png")},null)]),createVNode("div",null,[createTextVNode("简谱")])]),createVNode("div",{class:styles$a.topLine},null),createVNode("div",{style:{marginLeft:"auto"},class:styles$a.topBtn},[createVNode(NSpin,{show:C.loadingAudioSrouce||C.loadingAudioSrouce2,size:"small",stroke:"#20BDFF"},{default:()=>[createVNode("div",{class:styles$a.btnImg,onClick:()=>V("reset")},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_20.png")},null)])]}),createVNode("div",null,[createTextVNode("重播")])]),createVNode("div",{class:styles$a.topBtn},[createVNode(NSpin,{show:C.loadingAudioSrouce||C.loadingAudioSrouce2,size:"small",stroke:"#20BDFF"},{default:()=>[createVNode("div",{class:styles$a.btnImg,onClick:()=>V(C.playState?"pause":"play")},[createVNode("img",{style:{display:C.playState?"":"none"},class:styles$a.topBtnIcon,src:getImage("icon_21_1.png")},null),createVNode("img",{style:{display:C.playState?"none":""},class:styles$a.topBtnIcon,src:getImage("icon_21.png")},null)])]}),createVNode("div",null,[C.playState?"暂停":"播放"])]),createVNode("div",{id:"selectMearesBtn",class:[styles$a.topBtn],onClick:()=>A.selectMearesShow=!A.selectMearesShow},[createVNode("div",{class:[styles$a.btnImg,A.selectMearesShow&&styles$a.btnImgActive]},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_22.png")},null)]),createVNode("div",null,[createTextVNode("选段")])]),createVNode("div",{class:[styles$a.topBtn],onClick:()=>{var we;metronomeData.disable=!metronomeData.disable,(we=metronomeData.metro)==null||we.initPlayer()}},[createVNode("div",{class:[styles$a.btnImg,!metronomeData.disable&&styles$a.btnImgActive]},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_23.png")},null)]),createVNode("div",null,[createTextVNode("节拍器")])]),createVNode("div",{class:[styles$a.topBtn],onClick:()=>A.settingShow=!0},[createVNode("div",{class:styles$a.btnImg},[createVNode("img",{class:styles$a.topBtnIcon,src:getImage("icon_24.png")},null)]),createVNode("div",null,[createTextVNode("设置")])])])]),createVNode("div",{class:styles$a.content},[createVNode("div",{class:styles$a.slide},[createVNode(NTabs,{class:styles$a.tabsmodel,value:$.abc.isrhythm,"onUpdate:value":[we=>$.abc.isrhythm=we,we=>{ie({type:"setrhythm",value:we||""})}],"justify-content":"space-evenly"},{default:()=>[createVNode(NTabPane,{name:"",tab:"制谱模式"},null),createVNode(NTabPane,{name:"rhythm",tab:"节奏模式"},null)]}),createVNode(Collapse,{modelValue:C.slide,"onUpdate:modelValue":we=>C.slide=we,elevation:!1,divider:!1},{default:()=>[createVNode(CollapseItem,{title:"音符时值",name:"note"},{default:()=>[createVNode("div",{class:styles$a.wrapBox},[ABC_DATA.types.map(we=>createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"type",value:we.value})},[createVNode("div",{class:[styles$a.btnImg,C.noteType===we.value&&styles$a.btnImgActive]},[createVNode(TheIcon,{iconClassName:we.icon},null)]),createVNode("div",null,[we.name])])),createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"note",value:"z"})},[createVNode("div",{class:[styles$a.btnImg,Je.value.content==="z"&&styles$a.btnImgActive]},[createVNode("img",{style:{width:"20px",height:"20px"},src:getImage("icon_rest.png")},null)]),createVNode("div",null,[createTextVNode("休止符")])]),createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"segno",value:" "})},[createVNode("div",{class:[styles$a.btnImg,Je.value.segno===" "&&styles$a.btnImgActive]},null),createVNode("div",null,[createTextVNode("分割")])])])]}),createVNode(CollapseItem,{title:"拍号",name:"meter"},{default:()=>[createVNode("div",{class:styles$a.wrapBox},[ABC_DATA.meter.map(we=>createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"meter",value:we.value})},[createVNode("div",{class:[styles$a.btnImg]},[createVNode(TheIcon,{iconClassName:we.icon},null)]),createVNode("div",null,[we.name])]))])]}),createVNode(CollapseItem,{title:"力度记号",name:"dynamics"},{default:()=>[createVNode("div",{class:styles$a.wrapBox},[ABC_DATA.dynamics.slice(0,8).map(we=>createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"dynamics",value:we.value})},[createVNode("div",{class:[styles$a.btnImg,Je.value.dynamics===we.value&&styles$a.btnImgActive]},[createVNode(TheIcon,{iconClassName:we.icon,size:["2em","2em"]},null)]),createVNode("div",null,[we.name])])),createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"dynamics",value:ABC_DATA.dynamics[8].value})},[createVNode("div",{class:[styles$a.btnImg,ABC_DATA.dynamics[8].value.includes(Je.value.dynamics)&&styles$a.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$a.topBtn,onClick:()=>ie({type:"dynamics",value:ABC_DATA.dynamics[9].value})},[createVNode("div",{class:[styles$a.btnImg,ABC_DATA.dynamics[9].value.includes(Je.value.dynamics)&&styles$a.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$a.wrapBox},[ABC_DATA.repeat.map(we=>createVNode("div",{class:[styles$a.topBtn,styles$a.longTopBtn],onClick:()=>ie({type:"repeat",value:we.value})},[createVNode("div",{class:[styles$a.btnImg,He.value.repeat===we.value&&styles$a.btnImgActive]},[createVNode(TheIcon,{iconClassName:we.icon,size:["5em","1em"]},null)]),createVNode("div",null,[we.name])]))])]}),createVNode(CollapseItem,{title:"小节线",name:"line"},{default:()=>[createVNode("div",{class:styles$a.wrapBox},[ABC_DATA.bar.map(we=>createVNode("div",{class:styles$a.topBtn,onClick:()=>{C.morePlay=!1,ie({type:"barline",value:we.value})}},[createVNode("div",{class:[styles$a.btnImg,He.value.barline===we.value&&styles$a.btnImgActive]},[createVNode(TheIcon,{iconClassName:we.icon,size:["2em","2em"]},null)]),createVNode("div",null,[we.name])]))])]}),createVNode(CollapseItem,{title:"谱号",name:"clef"},{default:()=>[createVNode("div",{class:styles$a.wrapBox},[ABC_DATA.clef.map(we=>createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"clef",value:we.value})},[createVNode("div",{class:[styles$a.btnImg]},[createVNode(TheIcon,{iconClassName:we.icon},null)]),createVNode("div",null,[we.name])]))])]}),createVNode(CollapseItem,{title:"调号",name:"key"},{default:()=>[createVNode("div",{class:styles$a.wrapBox},[ABC_DATA.key.map(we=>createVNode("div",{class:styles$a.topBtn,onClick:()=>ie({type:"key",value:we.value})},[createVNode("div",{class:[styles$a.btnImg]},[createVNode(TheIcon,{iconClassName:we.icon},null)]),createVNode("div",null,[we.name])]))])]})]})]),createVNode("div",{class:[styles$a.box,$.abc.isrhythm==="rhythm"&&styles$a.rhythm]},[createVNode("div",{class:styles$a.titleBox},[createVNode("div",{class:styles$a.titleName,style:{width:"50%",margin:"0 auto"}},[createVNode(NInput,{onBlur:()=>{C.isSave=!1,Z()},onKeyup:we=>we.stopPropagation(),value:C.musicName,"onUpdate:value":we=>C.musicName=we,placeholder:"曲谱名称"},null)]),createVNode("div",{style:{width:"30%",margin:"10px 0 0 auto"}},[createVNode(NInput,{onBlur:()=>{C.isSave=!1,Z()},onKeyup:we=>we.stopPropagation(),value:C.creator,"onUpdate:value":we=>C.creator=we,placeholder:"曲谱作者"},null)])]),createVNode("div",{id:"paper"},null),!C.loading&&createVNode(Keys,{show:!!C.active,instrumentCode:$.abc.subjectCode,onClick:we=>ie(we)},null),createVNode("div",{id:"importRef",style:{display:"none"}},null),createVNode("div",{id:"audio",style:{display:"none"}},null)]),C.loadingAudioSrouce&&createVNode("div",{class:styles$a.loading},[createVNode(NSpin,{description:"资源加载中...",stroke:"#20BDFF"},null)]),C.loadingAudioSrouce2&&createVNode("div",{class:styles$a.loading},[createVNode(NSpin,{description:"",stroke:"#20BDFF"},{description:()=>createVNode("div",null,[createVNode("div",{class:styles$a.tips},[createTextVNode("正在识别曲目文件,请耐心等待...")]),createVNode("div",{class:styles$a.btnGroup},[createVNode(NButton,{round:!0,onClick:Mt},{default:()=>[createTextVNode("取消上传")]})])])})]),C.saveLoadingText&&createVNode("div",{class:styles$a.loading},null)]),createVNode("div",{ref:J},null),createVNode(TheSetting,{show:A.settingShow,"onUpdate:show":we=>A.settingShow=we},null),C.selectMeasures.state&&createVNode("div",{style:{left:C.selectMeasures.x+"px",top:C.selectMeasures.y+"px"},class:[styles$a.selectMearesBox,!A.selectMearesShow&&styles$a.selectMearesHidden]},[createVNode("div",{onKeyup:we=>we.stopPropagation()},[createVNode(NSpace,{justify:"space-between"},{default:()=>[createVNode("div",{class:styles$a.btnLineTitle},[createTextVNode("输入小节范围")]),createVNode(NButton,{circle:!0,quaternary:!0,size:"small",onClick:()=>A.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$a.mearesInput},[createVNode(NInputNumber,{min:1,max:(C.selectMeasures.end?C.selectMeasures.end+1:0)||C.selectMeasures.max,bordered:!1,placeholder:"开始小节",showButton:!1,"onUpdate:value":we=>kt(we,"start")},null),createTextVNode("-"),createVNode(NInputNumber,{min:C.selectMeasures.start,max:C.selectMeasures.max,bordered:!1,placeholder:"结束小节",showButton:!1,"onUpdate:value":we=>kt(we,"end")},null)]),createVNode("div",{class:styles$a.topBtn},[createVNode(NSpin,{show:C.loadingAudioSrouce,size:"small",stroke:"#20BDFF"},{default:()=>[createVNode("div",{class:styles$a.btnImg,onClick:()=>V(C.playState?"pause":"play")},[createVNode("img",{style:{display:C.playState?"":"none"},class:styles$a.topBtnIcon,src:getImage("icon_21_1.png")},null),createVNode("img",{style:{display:C.playState?"none":""},class:styles$a.topBtnIcon,src:getImage("icon_21.png")},null)])]})])]})])])]),createVNode("div",{class:styles$a.exportPng},[createVNode("div",{id:"exportPng"},null)]),createVNode(UploadToResources,{show:C.uploadShow,"onUpdate:show":we=>C.uploadShow=we,item:C.item,onSuccess:()=>{C.uploadStatus="YES",b.success("上传成功"),C.uploadClick&&setTimeout(()=>{he()},300)}},null),createVNode(TheJianpu,{show:A.jianpuShow,"onUpdate:show":we=>A.jianpuShow=we,abc:renderMeasures($.abc,{hiddenIndex:!0,showTitle:!0,showCreator:!0,jianpu:!0})},null)])}}),createItem="_createItem_zmwnx_1",wrap="_wrap_zmwnx_21",wrapBox="_wrapBox_zmwnx_26",itemWrap="_itemWrap_zmwnx_30",itemWrapBox="_itemWrapBox_zmwnx_65",item="_item_zmwnx_30",icon_29="_icon_29_zmwnx_85",bottomBtn="_bottomBtn_zmwnx_91",btn="_btn_zmwnx_99",imgBox="_imgBox_zmwnx_106",itemBottom="_itemBottom_zmwnx_114",bottombox="_bottombox_zmwnx_120",bottomLeft="_bottomLeft_zmwnx_125",itemtitle="_itemtitle_zmwnx_129",time="_time_zmwnx_137",importRef="_importRef_zmwnx_141",styles$2={createItem,wrap,wrapBox,itemWrap,itemWrapBox,item,icon_29,bottomBtn,btn,imgBox,itemBottom,bottombox,bottomLeft,itemtitle,time,importRef},uploadToTasks="_uploadToTasks_eu48q_1",error="_error_eu48q_9",success="_success_eu48q_12",arrow="_arrow_eu48q_15",arrowDown="_arrowDown_eu48q_20",loadingSection="_loadingSection_eu48q_24",succesSection="_succesSection_eu48q_25",loadingText="_loadingText_eu48q_40",iconQuestion$1="_iconQuestion_eu48q_49",uploadList="_uploadList_eu48q_58",uploadItem="_uploadItem_eu48q_66",uploadSuccess="_uploadSuccess_eu48q_77",text="_text_eu48q_80",uploadError="_uploadError_eu48q_86",uploadWaiting="_uploadWaiting_eu48q_89",iconClose$1="_iconClose_eu48q_96",info="_info_eu48q_102",icon="_icon_eu48q_49",status="_status_eu48q_111",message="_message_eu48q_121",styles$1={uploadToTasks,error,success,arrow,arrowDown,loadingSection,succesSection,loadingText,iconQuestion:iconQuestion$1,uploadList,uploadItem,uploadSuccess,text,uploadError,uploadWaiting,iconClose:iconClose$1,info,icon,status,message},iconQuestion="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAo1JREFUWEfNmL9v01AQx79f26DCghATaQpFCAF/AA1bywgSQp34sbCwgDqUGgEDIwOgJs1QwcLCgmCqEBKMpBuFPwBQhSi0hAkhFqgg9hc9Nw5JSRrHccXzZCt39z65u3d37xEpn32z2vv7F4bDEDk6yBkzClF1HFS3bMXShwl+TGOavSjlyyqEAcYBnJJ0aCNdkm8BPHFczK1MciHpOomA8iWNBMIdSKNJDbfIkfMucXVliq+66W8ItOeudtZ+4p6k090MJfmd5GNvGy5+usRvneQ7AuXKOogango6kGSxpDIEF+HhZHWS79rptAUaLOqYhDlBO5Iu1Iscwe8kxj/7fLFe7x+gumcWNgsmBjBQ8FBY76kWoChnfsDAZBqmzvnCRW87Cs051QKUK+pRVgmcNIQm0as+z/z1XP0t2tqhEteLJte/d1xcMN9hgPuC9ieFieVch4W4JDQ8tLuoSqo6Q85/8TlmjGdhIwIyFTio6WWv/yySzwIIgOvxqKnoEVCuqFuSrv1PIJK3qz6vx0BvuvWmjrAZecj0vqrPwzRde3VVS6m8k2HIjKmBAQ4zX9JoEKpiA5DrcIy5aZ0V9NAGIILnOFiSH4aatgHIcXiFg0VNhVLRCiDSty9k/SY1wa8gZiMPCxOCdqX1dpTUfW/7tKu30Yu2fb1Spy+MGQE1CmPfrQOs0MP5KGI1PAAUNdpen5bW0U9z9TyOLE/ytQEYKutIraauJ4t2sC3NtZ/RwXV5YuUyn0dTw4yOB4Ge9eqd5omhMQ+lHtDIZQI31jYZbkoa6hWo7YBWzyV7RlgDZN2QH3lp7YBoxzEojr1VB8UYyqqjdAxl1WVD89a15jpmfT2x5sKqXaHbrCu9P01pn9rR5pptAAAAAElFTkSuQmCC",iconArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAANpJREFUSEvt0zFOwjEUx/EP7HIRdxJcXGHiBuwujMoNiI5OXsGVidFFSLyGnEAGV0LybyAN5VUSEkzo0qHp9/ve77UtZ16tM/NdBWHCFxVRD69NyWMsw/KpHvId5rhpoGsM8BlJaiLK4YlZJYkEJXi15JjgEPypIT/vRXO0k5KgBH9pwI/IJX0s8pkcEkTwxKiS5IJaeLVkX/BXeJUkCTr4xnZPazvQlHn03PO4fnCLVRLc4+NEeKmTIWZJ0MY7upjiLSq5cP6ACb4wwm/00U707K5dBWGE/z+iDZNQMRkpf3buAAAAAElFTkSuQmCC",iconSuccess="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABAFJREFUWEfNmF1sU1UcwH/ndmVs7MNuITAxCw4zlKCyMa3J5GMKih+wkkCCCA+GRNyLUZYIPuiDvgxjN31xwxijEkWNsJZATAAzcILUyfADQzYZMghOwbWwQke77R5zb+llK+12b7clvW+39//x6/+c/8c5AqvPt42ziYReQ1WeQFELUOU0UOxRM+oAiriOqvhR1ANMyX6Hp2rOWXEhTAt73HWgvAjyDqQ0pyeEBHEF1A9x1W4z42tsw976l5ByO5I8MwaTygj6EGIr1VuaRrOTHEjusOO95kNSNi6QeGXBSapznIjNA4nsJgba+14xQ4PtIAonFMYwJnuxZZSz6pXzt/PG/6LDqJ0gMycHJmZVhLEppfFQIyOkLZMn2DN5kYn/i7IXV27R8OUbCeRxt0/4nhkrzNqectWWG3Ez5LVsUmXjWPqT8l0RNbHsuxUhj/vquFM7VVqtJLhq8zX1KJBW9CRbU7WXTK8ocxp7nCtxOooQQtAR9HPvd58kFhds14rnTaAGP1J1TCSQAhyqXEPV9GLdrJSSlcc97P/3ryRASgDXqwUCrTeF+8+abgcmqd+Y6+St+yoN6fozJ6g9dSS5ttZmMrNKBHsamhDqZpN+TIktKpxFy6NrsQktTvBz4B8qv/+SiFRH15fKDkGzuwsoMeXJhFCBfSq/PraRu7JydengQISylp10ha6a0OaswOv2ozJh+8frrGZV0RzD+fq2/ey62GEGBhQCguZ3wyCmJNPoWPYCpTlRXp+/h9W+vfSErycUf7mkjPcfqDK+fdx9ik0nD5iDiW79iKC5XoXk883TM+5m3yMuPW21p+XyeZYd/Yb43VCWP50fFz9Hpi1Dlzsd7KXi8OeEhgYtAAkp8LhV5M16lETVPX8JW+5ZaHx98/RR3u7wGe85NjsnqjYYkbwxNMjDR77g977/LMDoVVGOuWSaRbtQOLZ4HRWOmbqDIamytPVrfvD/rb9/Vr6CjcXzDOc1vxyi6dxv1mCMJTO5qedk59NetYE8e3QquRAKsqBlJ8/OLOHThSsM57svdrKmbV8KMMQ2dcMZUG+lxSim1s2ay66HnjEkDl++QIVjBjkZ0ZzoDvXpkFcGwqkBoXRZLowfLVjOptn33+ZwUFVZ1PoVxwM9KcLoEWq03DqybRm0LXmeeXkjp9vX/2il7s+21GGM1qGZ8FhrrvNzC/lp6XqybNHj2MFL3Tx5bDcydRwQseaqA1kfP9beWcoHDz5O57UAq31eLkX6x4Ojpfyw8SMKlUYDmgaUdiNsNEppNORrQGl3DNKg0uqgGMuTtDpKx6DS6rJheEVJm+uY+DKXNhdW8WDasan/xjaEuhwFR+IrPQJI5SBZU+usXun9D64FlCLkbnv0AAAAAElFTkSuQmCC",iconError="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABB9JREFUWEfNWGtoW2UYft6TZLmYpMl6UQtV2Vi9gT+SodBObDPzQyriBu10kKF22CLWToZV/NX+04ra2iHtHFM72egKm5dN0UBWcCsIduAPmRYcYqFi0y5tkjXJkpxXvtM1rFku52QN5PwIIed93u/Je/9egsZnuW2XMxVPtMmQvSTjPhDqmbleqCGieTDmWcI/EiS/3mQ87zh/MaTlCFIrvOhx7WFQDxhPMlivBkegFAg/E3ikJnD5rDpMEalr3p3NqbQ8CEaTGoV5ZQjTep3Ut9X/66VCevJaiNvbdUtLVz+UmXvviEgWWCIarq7edpgmJ9O59OYkFHq+xZEMR06D2buZZDK6iPwGu63D+fXUcrb+2wgJMqlweJoZD5eFzE2lRLiit9ubskltICTcFFy6+kPZLHObOchfW73tmVvdt4HQosc9tNkxU8zKIqZqAjOH1uUyhJRsSskXiykox3u9Xtq1nn0ZQgse16VCqX1X9yFwPAYOhxE7c0oVL8tLXTA85kJq9gqujw7lxxCm6wKXm5XiKj5E0ZMZZ/IhzHtegLXnrczr6LEjiJ38vCApS+drsHT4QIYtilxkZBDxsxN5MRJhryieCqGgxx1g5tZCJ1j7+mFqeRpkMiuWigy9h8RP53JCjN422N58F2QyKbLxKT+igwMF/wARXagNzHhI9KbkamyhaDuQJFR9NAbDg4+CjEZwIo6Vd95A8reZDQcJF1W9f+SmTALJP37HyuEuQJYLEwKlDBZzHS16dvpklsfVBAWZLXAcPQnd3feC9HpwbBWhbh/Sc38rcF3DA3COnoCQ41QK6f/+xfKr+xU5NY9E0gEKelzjzPCpAQgZqaYWzmMTIJsdYAavLONaZ4cC3yp+dzhF2wdHwggd3Ad5MahWtYCdoGCr+wKDW1SjhCW274Bz5Iu1GEkmkZ6fW7NQfQPIYFDiJtTzCtJ/zWpRCwJNUdDj/pOZGzUhAWx5vAn2gQ9ARpMST3wjAclWpXwP9/fhxi8Fm3rO44holhZaXREAVq2EhLzpuXZYu3uVzBOPsEx0dBjxbydLUScwUeGyMINtpWjISWjsE8S/OV2KOuGySOkue6IZ9v7BjMsEg3X33ZHLSgvqRjhHjq8Vyc0O6oXd7i8h8wG1Nlad9tEIQp0dmtIeEo1rLozOz05BqrsnT2G8H87Rr0ovjJLOp6l1OD4+Cn3jI+VtHWqbq+3tARif2l3+5ioIaRk/RBCvToxj9finBcPOvP9lWA++npHRNH4IVNEBrasX+h0PIf7jd0j4v1eVA+a9L4KsNpDZjOtjw/kx2QOakKy4EXbNdRU05Cu9qNKuQYJURV0U16Ouoq7S66Qqatlwa35WzDomu2hUzMIqm5iy0ovFn2XIXjA15FrpgXiOxErPbDqndaX3P+K9VCP7u/reAAAAAElFTkSuQmCC",iconWarning="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABHxJREFUWEfNl01sG0UUx//Pm8SlAtS0MUUpKkRAS4U4oCLKRyUU0bsTr3ckRClSSEUPReIKB47lhgRCQgW1oAo4jDd2QiJDT86lEA4gLiWIFtEvkEgcEMLBCdbOo89aB3u7tteOIzGn3Z2dmd++938fS/ifDdpqHmambDa7F8CuWCz2+9jY2DUiMs3O3TKgmZmZ4fX19deISDHzXXUARSKaYuZTSqlrQbAtAdJajwM4B+D2Fh4oA5hUSn1a/07PgVzXPc7Mp8VVtYOIaImZfwTwIIDdAcjn66F6ChQCs2hZ1oRt2ws1CNd1HzPGnAXwiP9MLPVQzX09AwqBOZ9IJMZGR0fXgm7L5/Px1dXVb5j5YZkjotOO45yoXvciyjqBqbPUIWNMzXJFx3F2S/RtGqgbmBqU1noJQELu+/v7R8bHx69sCiiTyUwCeL9OwE3dFOYJrfVXAJ6QOcuyDtq2/W3XQLlcbkelUvkVwG3+YR3ByBqt9QqAnT7QfbZtX+0aqFAobCsWizeYedfNr/wikUiMhwm4mUa11s8AmPdFvZROp+8mov9yRTfi1lrvsSxrXyqVmpfNou4xOzu7fW1t7Ttmlrwk412l1CsdR9nc3NxguVw+ycxJIjrAzNuJaIWZLxDRx+l02m0HprUWF38G4IgPU4rH4/uTyaS4P3rYSzkgorPMvKOFJRYsy3Js277RRMQNMALPzLZSKreR1aOYOZPJiDnfDpQDcVGJme8I7PETgP1KKa/+edAyVb0QvZxOpz+of6+tqAWGmd+pW3SFiF5l5nml1J9aa2ktXgDwBoABAF5fX99wKpWSHFMdUWHauiwE5jyAtFKqFLRsNps94HneSQBfOo7zSTcwLYHCYIK1yXXdCWPMIXGnUur7IGQ+n7+zVCpN1QTczE1tXRYFxm/ArgOIAfiHiE4x8zml1M9a651E9CyAt5j5Hj/XhGom+BG3aCgKjK8LC8AlACMNX0j0t6SDwEEmFoudCAo4LKAagFzXfc4YU9/BtSwHkhiJSDPzUy2iVVrWY47jfB4lojeApqam7vU8b7Gb2uTnqKPM/LRfvUX0F4loemBg4L1kMvlXFJgGUWcyGanax31//zA0NPRoJ7WJmWOu6x5h5otKqV+iAoRqSGstepC8Uau8h23bvhB100Ce+QPAHqWUtKYdj6rLcrnc/ZVK5bK/uqiUqjZNUUZI0hNRD0vSjLK+mYUeB/C1P7mglHoyymYhhVJ+AF9SSn0UZX3TKNNaP+CHsDTcK47jDLXbMAyGiCYdx/mw3dpW81WXFQqFvuXlZdHQoNxbltVSQ1sFE4yyM8w84dNL+B8ME6Y0V+VyeaaunzG9sEzNaht5SGs9QkSLzBz3J6U2ya+uNOLVobU+DOAMgH3+o57CNFhIblzXfdEY0yBI0RSAy367WU0LWwVzC5APddQYI03Tthbik0ws/+TSivZ0hDZofhl5HUDqZgNeH3G/AcjE4/E3az1wT2na9dRSDqanp/d6njdojJF0cL1dE79ZwLYt7GYP6HT9v+XCRkPf42YGAAAAAElFTkSuQmCC",iconClose="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAg9JREFUWEfFlr9r20AUx987xcSFBEKmZCrJkrn5LzoVAg3dswQCLQSKLbnDDbXvFLAHEQg1IWvGQAKBTt1K/4DQtZOHeOrUI9i6Kyq2kaNf98PFGiX7fT66u/e+QljyhUvmw0xAKYXNZvM9Iu57nvel3W5/X5RcFEWrg8HgIyLuIGKXMfZzWnsmEATBuziOrycPngghB4yxe1eJCfwGAF5Pav0Kw3A3I+D7/qmUspsCOkvkwAER/9Tr9XVKqUxYsxWglG4IIX4AwN4iJPLgSV1CyAfGWJRZgeRGEATbcRx/c5UogTcYY2fpbc10gauECXxuC9JWthKm8EIBm+2wgZcKmEjYwisFdCRc4FoCZRK1Wu1wNBodp4bMv6NECMmc9qKBpp0FBQczBgAvXdwErr0CU0CBxIxvCjcWSP7QarVejsfjBwBYmxsoiFec8yPT7NDegqRw0YGbQK2yQ1ugAj59cWMJLYGSVvsspXzrkh2VAlV9bju2c9Pw+QGqgld0h9Z2FK6ALtxVIlfAFO4ikRGwhdtKzAm4wm0k0t+EK0KIW5dg0fmo8TzvTafT+ZrpAt/3j6SUly7B8ryL8loUER8551sZgUajcQIA59MHNsGSlwM5Er8555uIqObCqNfrvRgOh32l1CtEjDjnfdNgKfo9pXRLCHGBiLtKqU9hGN5pDaJFCZTVqRzF/1ti6QJ/AVghmjBCDWAmAAAAAElFTkSuQmCC",iconCloseRed="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAiRJREFUWEfFljtIW1EYgP//pKEILZTmQZyKLs6aOHQpoREkQrEULN1dCoJCQVwcMnQSXKRQDOLqKLQgCCYBh6IkcRJXZ01KShQ1mJ6/XNM877n3nkckd7yP//vOOf/jIgz4wgHzoSVARFiaii0CwISP2GYgm//VLzlKJp+WapfLDGkEwb8eyByfNWO3BEqJ2CfifOfhAUINiH0I5wp7phIWvFy72CWCZCMWnodzxVGBQPQLcVpvAfsgYYdbfLwJvXn3HFMp3ljr/6vyPv6iXr06IqKxfkgI4VZghkvhTHHDtgPWjdJ0dBjuIWcq4QRnjK0EM4W1zmO1VYGphAq86wg6rXQlVOGOAjrHoQN3FVCR0IV7CshImMClBNwk/MQ+1pF/bjeZRiaJst2poUnPAlFiMsS/nMjXGVwFLr0DTYCwOjroqnBlAeuDytvxV3XAUyJ41rPy7WCmMO+01cZHYAVwbK+NpWgNMOkccIW3G7uyhJSAY6khfiWAOZPZ4SngVee6bVs4DXsTxQvuWh2SOeG4A7JwUwmhgCrcRMImoAvXlegSMIXrSLR/y1PxJ+XD6g+TwSLzU+NjMBs4ONm3VcFlIjYPnG+ZDJbeKhKXKF6Es8WITaCcmFjgHL41H+gMFlG/75VAgD/BbPElIlLXMKK510Pl37U0AI4D0UYod5JWHSxO71/PTEZu7/h3AhpF8K2GsvmfUo2oXwJucTxb8WNLDFzgH4rq7jBbZyZTAAAAAElFTkSuQmCC";function _isSlot(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!isVNode(d)}const UploadToTasks=defineComponent({name:"upload-to-tasks",setup(){const d=reactive({showUploadList:!1,timer:null,functionTimer:null}),b=computed(()=>{const E=uploadState.uploadList||[];let P=0;return E.forEach(B=>{(B.status==="CONVERSION"||B.status==="WAITING")&&P++}),P>0}),A=computed(()=>{const E=uploadState.uploadList||[],P={success:0,error:0,waiting:0};return E.forEach(B=>{B.status==="CONVERSION"||B.status==="WAITING"?P.waiting++:B.status==="SUCCESS"?P.success++:B.status==="FAIL"&&P.error++}),P}),C=async E=>{try{const P={page:1,rows:-1};if(E==="ids"){const $=[];uploadState.uploadList.forEach(M=>{$.push(M.id)}),P.idList=$}else P.statusList=["WAITING","CONVERSION"];const{data:B}=await api_musicalScoreConversionRecordPage(P),D=B.rows||[],k=[];let I=0;D.forEach($=>{k.push({id:$.id,musicSheetCreationId:$.musicSheetCreationId,status:$.status,fileName:$.fileName,fileUrl:$.fileUrl}),$.status==="SUCCESS"&&I++}),A.value.success!==I&&eventGlobal.emit("resetList"),uploadState.uploadList=k,saveUploadCatch(k)}catch(P){}},w=async(E,P)=>{try{if(P==="remove"){await api_musicalScoreConversionRecordRemove(E.id);const B=uploadState.uploadList.findIndex(D=>D.id===E.id);uploadState.uploadList.splice(B,1),saveUploadCatch();return}else P==="look"&&window.parent.postMessage({api:"notation_open",url:"".concat(location.origin,"/notation/#/?v=").concat(Date.now(),"&id=").concat(E.musicSheetCreationId)},"*")}catch(B){}},x=()=>{d.timer=setInterval(()=>{b.value&&C("ids")},5e3)},S=()=>{lodashExports.debounce(()=>C("ids"),500)};return onMounted(()=>{const E=getUploadCatch();E.length>0?(uploadState.uploadList=E,C("ids")):C(),eventGlobal.on("resetUploadTask",S),x()}),onUnmounted(()=>{eventGlobal.off("resetUploadTask",S),clearInterval(d.timer)}),()=>{let E;return createVNode("div",{class:styles$1.uploadToTasks,style:{display:uploadState.uploadList.length>0?"block":"none"}},[createVNode(NScrollbar,{class:styles$1.uploadList,style:{display:d.showUploadList?"block":"none"}},_isSlot(E=uploadState.uploadList.map(P=>createVNode(Fragment,null,[P.status==="SUCCESS"&&createVNode("div",{class:[styles$1.uploadItem,styles$1.uploadSuccess]},[createVNode("div",{class:styles$1.info},[createVNode("img",{class:styles$1.icon,src:iconSuccess},null),createVNode("p",{class:styles$1.message},[P.fileName])]),createVNode("div",{class:styles$1.status,onClick:()=>w(P,"look")},[createVNode("span",{class:styles$1.text},[createTextVNode("点击查看")])])]),P.status==="FAIL"&&createVNode("div",{class:[styles$1.uploadItem,styles$1.uploadError]},[createVNode("div",{class:styles$1.info},[createVNode("img",{class:styles$1.icon,src:iconError},null),createVNode("p",{class:styles$1.message},[P.fileName])]),createVNode("div",{class:styles$1.status,onClick:()=>w(P,"remove")},[createVNode("img",{class:styles$1.iconClose,src:iconCloseRed},null)])]),P.status==="WAITING"&&createVNode("div",{class:[styles$1.uploadItem,styles$1.uploadWaiting]},[createVNode("div",{class:styles$1.info},[createVNode("img",{class:styles$1.icon,src:iconWarning},null),createVNode("p",{class:styles$1.message},[P.fileName])]),createVNode("div",{class:styles$1.status,onClick:()=>w(P,"remove")},[createVNode("img",{class:styles$1.iconClose,src:iconClose},null),createVNode("span",{class:styles$1.text},[createTextVNode("等待上传")])])]),P.status==="CONVERSION"&&createVNode("div",{class:[styles$1.uploadItem,styles$1.uploadLoading]},[createVNode("div",{class:styles$1.info},[createVNode(NSpin,{class:styles$1.icon},null),createVNode("p",{class:styles$1.message},[P.fileName])]),createVNode("div",{class:styles$1.status,onClick:()=>w(P,"remove")},[createVNode("img",{class:styles$1.iconClose,src:iconClose},null)])])])))?E:{default:()=>[E]}),createVNode("div",{onClick:()=>d.showUploadList=!d.showUploadList},[b.value?createVNode("div",{class:styles$1.loadingSection},[createVNode("div",{class:styles$1.loadingText},[createVNode("img",{class:styles$1.iconQuestion,src:iconQuestion},null),createVNode("p",null,[createTextVNode("剩余"),createVNode("span",{class:styles$1.error},[A.value.waiting]),createTextVNode("个文件正在上传中…")])]),createVNode("img",{class:[styles$1.arrow,d.showUploadList&&styles$1.arrowDown],src:iconArrow},null)]):createVNode("div",{class:styles$1.succesSection},[createVNode("p",null,[createTextVNode("上传完成,"),createVNode("span",{class:styles$1.success},[createTextVNode("成功"),A.value.success]),createTextVNode(" "),createVNode("span",{class:styles$1.error},[createTextVNode("失败"),A.value.error])]),createVNode("img",{class:[styles$1.arrow,d.showUploadList&&styles$1.arrowDown],src:iconArrow},null)])])])}}}),uploadFile="_uploadFile_chuon_1",iconUpload$1="_iconUpload_chuon_19",tips="_tips_chuon_24",styles={uploadFile,iconUpload:iconUpload$1,tips},iconUpload="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAmCAYAAAC76qlaAAAAAXNSR0IArs4c6QAABgFJREFUWEe1WWmoVlUUXas5ssJm04S0AaPJMiuapAFpUhoMMpNGkETTBsioKCLsh5BWYoNpZa9swtLmIqKBBstsoBGNBouygkZKqtVZr3PkvK/v3XO/7z03PHjv3n32WXefffZeez+il0TSegAOBnAEgP4AdgSwMYBvAHwNYBmAZ0j+1htbsqdGJBnk5QBOBbBdwd4fAJ4NHzSd5Ks92btt4JI2BXAVgAsB+PdWZRGAi0l+1upC67cFPHr5EQDDutl0dQyPPwH0iz8bNNH9EcAYks+3Cr5l4JKGAPBGOzRs9naI7dsBLCa5Kn8nqQ+AkQDGAjipwWF/ATiH5IJWwLcEXNJWAN4AMDjbxN51uCwkqdLmkvYHMBvAgZnuGgBHk3yptD69bxX4cwCOyoy/E7LFKJJf1N3QepKcbW4BcFa27nsA+5B0BipKbeCSxgB4ILO4AsBwko7TtkRSRwyftH4eyXPrGKsFXNKGAD4AsEs06ks3lOSHdTbpTkfSJgBeB7B31Pknev39kt26wEcDcBZJMiMUkktLxuu8l+TQcwgmuZXkhNLausDnZ/Hoi9SvJyHSCErSiwAOi89dafuXLnoRuCTrfAdgm2j4SZLHlTzSyntJkwHMytb47iytslEHuAE75SWZSnJmK8BKupJ2B/BRpje+lNcrgUvaFsCUyEWS3ZNJulxXiqTNAfQh6aMv6Zoy/J4pPQrgfJK5w7rYaAo8VrrLIujNGnYtHqMkh9JCAwdwPUmTsBJ43x1nryRmkQ4fE7JfGxf/D7ikPQE8BMDH1yg2tjVJp8OmIul4AA9HSpt0ZpKcWoVc0ucABjbR+djMk2SXFNkFuCSTJvMQH3MuPjLn24tIfloB+oQIeqMmOjeTnFSx1tzH1fRQO6dB7xcAR5J8Mz1fC1zSoMhD8kWOT4dMB8m/Cx6rAp2WzgkXfWJVqpO0PoAzHGKRVaa1P8RKvdIPOoHHlPdC8PbhGThXxZGhBH9ZGZz/rT8xhlczT5t45Sd7G4AJpTwtaafQUT0NwGw0ifP9CK9NwP2F92QKbrOOqVNkJI0C8CCAHLR5TGKQ9lRfAG7tksyLWcMlvluJbNQd036Z0jiSHQm4ufS+8aU9NIykwVdKN6DvB+AskMiSubnD7U4ADoMkd0UeXgJv0I7tdGrLSQ5lzCLvZQYXkBxfA/SxgWg53+YpzClwXLxk50Ubq0gOkHR6OAU3Czl4n7KLTSWPD/fvbgBnZpj2MnAXmBu6PGxIPc0+QtIn4dLumr3rBO1LHFo7d0JdgFtP0mm+6ADyNm40ycWFkHGKzp071cDnZse6mmSpU+/cQ9LLoWM/JG54nz2SMk93wOO6U0KNsH46qSLwuM58yZXccoeB+2udFSzLSLq1Kkr44AEAXFTcpc/J02UV8AjCVNbEykTqulKoxDVvZZd0iYE/HvJ3YntLSQ4voi4olIC3Yz/QCPe6B8S1Txh403hsx3has45sfhUnZN5mroFfEW76tRnQQe0OadYVcEk7h+zTWTGjXGngdr+PIck0ki63bUtve1yS68D0DNBwA3di93jBl83iSjc4sLmf2kXem8AlbRkylitx4lAOmYGpcnqgk3c1pqUejRUHPM0+rreAR6eaTjiFJplCclYCbp5hUmWGmMQUcxJJj8hakt4ALslF6iYTsmxzx/mQ0JisyWntQYF5mSF6ypTEI7HJJJe3grynwCWZN92Ydf7e3s2LmeFr/qOxkTBLNC/ImZzDxXMPFyoPhdxUeGhv9udKtojku/mHhV7Vs8EL4rOVofHNZ42uuh4AefhpW45f83435Xt4pOc5YgM2EzFzGtOFTmnWurn1uhfAFjW9/HPnZckus6QRAJ6Kp3cNyauTrXjZnAxasT+WpAvlWumuWd4tNLozMipQ+gZnoTzP2quei/cl6VNaK7HTspfryJJAkS8haULXRUrjCZOoswMfdlu2fZOd3AvODs3ztDooMq87J09s0tta5dvQDzwGYD7JV7qzWxwIeWH8x5Qzjr3oWHRMrqiae9T5kDi3cfzbrsfMtus7Udlc2Pa/NTRIFqWfi8cAAAAASUVORK5CYII=",UploadFile=defineComponent({name:"upload-file",setup(){const d=useMessage(),b=ref(),A=reactive({fileList:[],uploading:!1}),C=async w=>{A.uploading=!0;try{const x=w.target.files||[];if(x.length>5){d.error("最多选择5个文件"),A.uploading=!1;return}for(let S=0;S{let M=!0;if((E.type.includes("png")||E.type.includes("jpg")||E.type.includes("jpeg")?"IMG":E.type.includes("xml")?"XML":E.type.includes("application/pdf")?"pdf":"other")==="XML"){console.log(E,"files");try{const z=await request$1$1.get($,{mode:"cors"});let Q=new DOMParser().parseFromString(z,"text/xml");const q=Q.querySelector("parsererror");console.log(Q,"abc",q),M=!q}catch(z){}}const H=await api_musicalScoreConversionRecordSave([{fileName:B,fileUrl:$,status:M?null:"FAIL"}]);uploadState.uploadList.push({fileName:B,fileUrl:$,musicSheetCreationId:"",id:H.data[0],status:"WAITING"}),eventGlobal.emit("resetUploadTask")})}b.value.value=""}catch(x){}A.uploading=!1};return()=>createVNode("div",{class:styles.uploadFile},[createVNode("div",null,[createVNode(NButton,{type:"primary",loading:A.uploading,onClick:()=>{b.value.click()}},{default:()=>[createVNode("img",{src:iconUpload,class:styles.iconUpload},null),createTextVNode("上传曲谱")]}),createVNode("input",{style:{display:"none"},ref:b,type:"file",accept:".jpg,.png,.jpeg,.xml,application/pdf",multiple:!0,onChange:C},null)]),createVNode("p",{class:styles.tips},[createTextVNode("(仅支持上传.PDF、JPG、PNG、XML格式文件)")])])}}),Create=defineComponent({name:"Create",setup(){const d=getQuery(),b=useDialog();console.log(storeData.user);const A=reactive({teacherId:storeData.user.id,page:1,keyword:"",rows:20}),C=reactive({list:[],addShow:!!d.addShow,loading:!1,finish:!1,isCreated:!1,uploadShow:!1,item:{}}),w=async()=>{C.loading=!0;try{const $=await api_musicSheetCreationPage({...A});console.log($,"res"),($==null?void 0:$.code)==200&&(C.isCreated&&(C.isCreated=!1,D($.data.rows[0])),C.list=C.list.concat($.data.rows),C.finish=$.data.rows.length{A.page=1,C.finish=!1,C.list=[],w()},S=usePageVisibility();watch(S,$=>{$==="visible"&&x()});const E=$=>{const M=ref(!0);b.warning({autoFocus:!1,class:"deleteDialog",title:"删除曲谱",maskClosable:!1,content:()=>createVNode("div",{onClick:()=>M.value=!M.value},[createVNode(NRadio,{checked:M.value},{default:()=>[createTextVNode("同步删除我的资源中的该曲目")]})]),positiveText:"取消",positiveButtonProps:{type:"default"},negativeText:"删除",negativeButtonProps:{type:"primary",ghost:!1},onPositiveClick:()=>{},onNegativeClick:async()=>{await api_musicSheetCreationRemove($.id,M.value?1:0),x();const L=uploadState.uploadList.findIndex(H=>H.musicSheetCreationId===$.id);L!==-1&&(uploadState.uploadList.splice(L,1),saveUploadCatch())}})},P=ref(),B=$=>{var M;((M=$.data)==null?void 0:M.api)=="reload"&&x()};onMounted(()=>{var $;w(),P.value&&new IntersectionObserver(L=>{if(L[0].isIntersecting){if(C.finish||C.loading)return;A.page++,w()}}).observe(($=P.value)==null?void 0:$.$el),window.addEventListener("message",M=>{B(M)}),eventGlobal.on("resetList",x)}),onUnmounted(()=>{window.removeEventListener("message",B),eventGlobal.off("resetList",x)});const D=$=>{window.parent.postMessage({api:"notation_open",url:"".concat(location.origin,"/notation/#/?v=").concat(Date.now(),"&id=").concat($.id)},"*")},k=($,M)=>ABCJS.renderAbc(M,$,{selectTypes:!1,add_classes:!0})[0],I=()=>{C.list.find($=>$.id===C.item.id).uploadStatus="YES"};return()=>createVNode("div",{class:styles$2.wrap},[createVNode(UploadFile,null,null),createVNode("div",{class:styles$2.wrapBox},[createVNode("div",{class:styles$2.itemWrap},[createVNode("div",{class:styles$2.itemWrapBox},[createVNode("div",{class:styles$2.createItem,onClick:()=>C.addShow=!0},[createVNode("img",{src:getImage("icon_29.png")},null),createVNode("div",null,[createTextVNode("新建乐谱")])])])]),C.list.map(($,M)=>createVNode("div",{class:styles$2.itemWrap},[createVNode("div",{class:styles$2.itemWrapBox},[createVNode("div",{class:styles$2.item,onClick:()=>D($)},[createVNode("div",{class:[styles$2.imgBox],id:"item_"+M},[createVNode("img",{src:getImage("icon_staff.png"),onLoad:async()=>{if($.creationConfig)$.visualObj=k($.creationConfig,"item_"+M);else try{const L=await request$1$1.get($.xml,{mode:"cors"});let H=new DOMParser().parseFromString(L,"text/xml");const z=H.querySelector("movement-title");z&&z.textContent.trim()!==($==null?void 0:$.name)&&(z.textContent=$.name),H=window.vertaal(H,{p:"f",t:1,u:0,v:3,mnum:0});const Q=ABCJS.renderAbc("importRef",H[0],{responsive:"resize"}),q=formateAbc(Q[0],{subjectCode:"acoustic_grand_piano"}),V=renderMeasures(q,{hiddenIndex:!0,showTitle:!0,showCreator:!0});$.visualObj=k(V,"item_"+M)}catch(L){console.log(L,"1222222")}}},null)]),createVNode("div",{class:styles$2.itemBottom},[createVNode("div",{class:styles$2.bottombox},[createVNode("div",{class:styles$2.bottomLeft},[createVNode("div",{class:styles$2.itemtitle},[createVNode("span",null,[$.name||"未命名乐谱-".concat(M+1)])]),createVNode("div",{class:styles$2.time},[$.updateTime])]),$.uploadStatus!=="YES"&&createVNode("img",{class:styles$2.bottomBtn,src:getImage("icon_29_2.png"),onClick:L=>{L.stopPropagation();const H=$.creationData?JSON.parse($.creationData):{};C.item={...$,subjectCode:H.subjectCode||"acoustic_grand_piano"},nextTick(()=>{C.uploadShow=!0})}},null),createVNode("img",{class:styles$2.bottomBtn,src:getImage("icon_29_3.png"),onClick:L=>{L.stopPropagation(),E($)}},null)])]),$.uploadStatus==="YES"&&createVNode("img",{class:styles$2.btn,src:getImage("icon_29_4.png")},null),$.uploadStatus==="UPDATE"&&createVNode("img",{class:styles$2.btn,src:getImage("icon_29_5.png")},null)])])])),createVNode("div",{id:"importRef",class:styles$2.importRef,style:{display:"none"}},null)]),!C.finish&&createVNode(NSpace,{ref:P,justify:"center",style:{padding:"30px"}},{default:()=>[createVNode(NSpin,{size:"large"},null)]}),createVNode(TheCreate,{show:C.addShow,"onUpdate:show":$=>C.addShow=$,onCreate:()=>{C.addShow=!1}},null),createVNode(UploadToResources,{show:C.uploadShow,"onUpdate:show":$=>C.uploadShow=$,item:C.item,onSuccess:()=>I()},null),createVNode(UploadToTasks,null,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,A){const{clientX:C,clientY:w,screenX:x,screenY:S,pageX:E,pageY:P}=A;this.identifier=b,this.target=d,this.clientX=C,this.clientY=w,this.screenX=x,this.screenY=S,this.pageX=E,this.pageY=P}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:A,ctrlKey:C,metaKey:w,shiftKey:x}=b,S=new Event(d,{bubbles:!0,cancelable:!0});S.altKey=A,S.ctrlKey=C,S.metaKey=w,S.shiftKey=x,S.touches=getActiveTouches(b),S.targetTouches=getActiveTouches(b),S.changedTouches=createTouchList(),eventTarget.dispatchEvent(S)}function onMouse(d,b){const{type:A,target:C}=d;initiated=isMousedown(A)?!0:isMouseup(A)?!1:initiated,!(isMousemove(A)&&!initiated)&&(isUpdateTarget(A)&&(eventTarget=C),triggerTouch(b,d),isMouseup(A)&&(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};