index-04df5bfe-1724872791500.js 673 KB

12345678910111213
  1. import{bb as BaseTransition,bc as BaseTransitionPropsValidators,bd as Comment,be as EffectScope,F as Fragment,bf as KeepAlive,bg as ReactiveEffect,bh as Static,bi as Suspense,bj as Teleport,bk as Text,_ as Transition,b5 as TransitionGroup,bl as VueElement,bm as assertNumber,bn as callWithAsyncErrorHandling,bo as callWithErrorHandling,bp as camelize,bq as capitalize,a6 as cloneVNode,br as compatUtils,U as computed,bs as createApp,bt as createBlock,bu as createCommentVNode,aV as createElementBlock,aW as createBaseVNode,bv as createHydrationRenderer,bw as createPropsRestProxy,bx as createRenderer,by as createSSRApp,bz as createSlots,bA as createStaticVNode,k as createTextVNode,f as createVNode,bB as customRef,bC as defineAsyncComponent,d as defineComponent,bD as defineCustomElement,bE as defineEmits,bF as defineExpose,bG as defineModel,bH as defineOptions,bI as defineProps,bJ as defineSSRCustomElement,bK as defineSlots,bL as devtools,bM as effect,bN as effectScope,bO as getCurrentInstance,bP as getCurrentScope,bQ as getTransitionRawChildren,bR as guardReactiveProps,ad as h$1,bS as handleError,bT as hasInjectionContext,bU as hydrate,bV as initCustomFormatter,bW as initDirectivesForSSR,a8 as inject,bX as isMemoSame,bY as isProxy,bZ as isReactive,b_ as isReadonly,b$ as isRef,c0 as isRuntimeOnly,c1 as isShallow,D as isVNode,c2 as markRaw,c3 as mergeDefaults,c4 as mergeModels,y as mergeProps,S as nextTick,c5 as normalizeClass,c6 as normalizeProps,au as normalizeStyle,c7 as onActivated,c8 as onBeforeMount,p as onBeforeUnmount,ac as onBeforeUpdate,c9 as onDeactivated,ca as onErrorCaptured,q as onMounted,cb as onRenderTracked,cc as onRenderTriggered,cd as onScopeDispose,ce as onServerPrefetch,T as onUnmounted,an as onUpdated,aU as openBlock,cf as popScopeId,a7 as provide,cg as proxyRefs,ch as pushScopeId,ci as queuePostFlushCb,e as reactive,cj as readonly,r as ref,ck as registerRuntimeCompiler,cl as render,cm as renderList,cn as renderSlot,Z as resolveComponent,co as resolveDirective,cp as resolveDynamicComponent,cq as resolveFilter,cr as resolveTransitionHooks,cs as setBlockTracking,ct as setDevtoolsHook,cu as setTransitionHooks,cv as shallowReactive,cw as shallowReadonly,cx as shallowRef,cy as ssrContextKey,cz as ssrUtils,cA as stop,cB as toDisplayString,cC as toHandlerKey,cD as toHandlers,cE as toRaw,al as toRef,aO as toRefs,cF as toValue,cG as transformVNodeArgs,cH as triggerRef,aY as unref,cI as useAttrs,cJ as useCssModule,cK as useCssVars,cL as useModel,cM as useSSRContext,cN as useSlots,cO as useTransitionState,cP as vModelCheckbox,cQ as vModelDynamic,cR as vModelRadio,cS as vModelSelect,a1 as vModelText,at as vShow,cT as version$1,cU as warn,A as watch,am as watchEffect,cV as watchPostEffect,cW as watchSyncEffect,cX as withAsyncContext,cY as withCtx,cZ as withDefaults,a0 as withDirectives,c_ as withKeys,c$ as withMemo,d0 as withModifiers,d1 as withScopeId,d2 as NInputNumber,b6 as commonjsGlobal,b7 as getDefaultExportFromCjs,c as useUserStore,I as NSelect,l as NModal,x as NSpace,j as NButton,G as iframeDislableKeyboard,m as modalClickMask,b as useMessage,N as NForm,g as NFormItem,aC as NPopselect,C as eventGlobal,E as NSpin,t as NTabs,v as NTabPane,w as NImage,V as NTooltip,W as NPopover,d3 as getAugmentedNamespace,n as NCheckbox,az as NCheckboxGroup,aM as NAvatar,Q as dayjs,h as NInput,aJ as NDatePicker,H as request,aK as request$1,o as useDialog,a as useRoute,u as useRouter,d4 as api_cousseScheduleDetail,z as state,s as storage,d5 as ACCESS_TOKEN_ADMIN}from"./index-d5898469-1724872791500.js";import{v as vaildMusicScoreUrl}from"./urlUtils-72ef455d-1724872791500.js";import{D as Dragbom,u as useDrag,T as TCPlayer,i as iconSpeed,a as iconplay,b as iconpause,t as tickMp3,c as iconReplay$2,V as Vudio,C as CardPreview,g as getGuidanceShow,L as ListenModal,I as InstruemntDetail,M as MusicDetail,d as TheotyDetail}from"./index-8eefb3e6-1724872791500.js";import{N as NSlider}from"./Slider-a3783332-1724872791500.js";import{C as CardType,q as materialQueryPage,r as favorite,i as teacherChapterLessonCoursewareList,p as lessonTrainingAdd,E as lessonPreTrainingV2Detail,F as lessonPreTrainingDelete,G as lessonPreTrainingV2Save,c as lessonCoursewareDetail,d as api_teacherChapterLessonCoursewareDetail,H as courseScheduleUpdate}from"./api-99c6b750-1724872791500.js";import{d as dingPng$1,m as moveTop}from"./ding-8e9054d5-1724872791500.js";import{d as deepClone,u as useCatchStore}from"./catchData-dad14be5-1724872791500.js";import{N as NScrollbar}from"./Scrollbar-d9cfeed6-1724872791500.js";import{r as resourceTypeArray}from"./searchArray-7d27a5ef-1724872791500.js";import{T as TheSearch}from"./index-0022b6d4-1724872791500.js";import{a as audioPlayType,g as gradeToCN,e as evaluateDifficult}from"./contants-81f70019-1724872791500.js";import{a as useThrottleFn,u as useDebounceFn}from"./index-feb53cac-1724872791500.js";import{T as TheEmpty}from"./index-81f77935-1724872791500.js";import{u as usePrepareStore,a as TrainUpdate,T as TrainType,S as SelectMusic$1}from"./index-31fd5fdc-1724872791500.js";import{u as useResizeObserver}from"./index-8df00c37-1724872791500.js";import{a as api_getCurrentGradeYear,g as getStudentList$1,b as getStudentAfterWork}from"./api-a584700f-1724872791500.js";import{c as classGroupList}from"./api-e30e88aa-1724872791500.js";import{d as defultHeade}from"./teacherIcon-b8e3946d-1724872791500.js";import{S as SearchInput}from"./index-2343cbda-1724872791500.js";import{h as getStudentList}from"./api-f59ea4cf-1724872791500.js";import{N as NCascader}from"./Cascader-ce784fa2-1724872791500.js";import{C as CCascader}from"./index-5f5a4216-1724872791500.js";import{T as TheMessageDialog}from"./index-e86cae10-1724872791500.js";const compile=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,EffectScope,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text,Transition,TransitionGroup,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize,cloneVNode,compatUtils,compile,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,get devtools(){return devtools},effect,effectScope,getCurrentInstance,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h:h$1,handleError,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick,normalizeClass,normalizeProps,normalizeStyle,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop,toDisplayString,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue,transformVNodeArgs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$1,warn,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),_imports_0$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAQCAMAAAA7+k+nAAAANlBMVEXh4eEAAADg4ODR0dHh4eHi4uLj4+Pi4uLh4eHg4ODg4ODg4ODh4eHg4ODj4+Pf39/j4+Pf398ilOFoAAAAEnRSTlN/ACcIeFY8InZzbGNMSS4YEhAlIBnCAAAAX0lEQVQY023JVRLAIBDA0MAidbn/ZTsVim3+Mg+Ti7GYAjx4DVaAtYfAU2hh42urIboELpawO/hlz3COFI1nApmomuQFmWma5QFPl79hQWkxWNQsQYfAMaA0HBixSmIuu4QCG3HOSMwAAAAASUVORK5CYII=",_imports_1$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAASCAMAAAB2Mu6sAAAAOVBMVEUAAADh4eHg4ODg4ODi4uLf39/h4eHl5eXg4ODh4eHh4eHh4eHg4ODk5OTe3t7h4eHk5OTV1dXV1dWtzjrUAAAAE3RSTlMAfzF6QSUXEXVuZ11RSj4uHAwGOWQ6qwAAAGFJREFUGNONz0cOgDAQwEBvKr39/7EIBUHKIjFH38y3uJrGGiFYUdjAIqoFLyoPTusOYGr7BJex7iPJMZR9OLjtfd77PZvs3t5FMpt91jYK/h2omNQNDZfGFLPIjCoEfjgBcOwCYQkzb9cAAAAASUVORK5CYII=",_imports_2$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAABICAMAAADBGyWzAAAAUVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////8IN+deAAAAGnRSTlMAFfny6825nY47Cfft4MGol39sWk5ELikjEOwBXk0AAACISURBVDjL7M/HEcQwDATBhejlvUH+gZ6OJUukoH5O7QPAaQ1hxcvsNO+0m3HKHV9cjogMPxiKu5pf6v+240QHkEqjIvQs9LAyWlQyVihkLKBl1DAyGngZPYKMAbDyImBRyUMLdmP2bNmIaCrvVk44UJsds5Zw2wbfNH7Y8Pn8RnswWjIMp5IBAJlXPZ3uqSNdAAAAAElFTkSuQmCC",_imports_3$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAAB2CAMAAAAKuQqbAAAB11BMVEXw8PAAAADq6urPz8+QkJDu7u6VlZXq6urNzc3w8PCoqKjw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WzE0mBziV8LAxxN+Lx1l3OZg/aoUXp5KxaNTuCcesDzOZe6vXh/PYkprtrE53RiAnwWhAZhI8AgvJ8iuW76j7RtRGRZ96yDHHQAjRTJOoUbXcx2+R27yUHMwGDZuDNxoMWAfCqpw0JuleCF87Ok7bquZuksLFzXk64yJ92FKlxWgU0wRKMz8JwQwrM6K0kmU4YsPZsonfFAXiEr1UpKvRPVzL8dMTPkegvAhcYHbSAjKA5Vryibc+AlZjWX4PzmvgOx4U1TPDMlC910Wwd1SqZdKEvpTOV2lGreZGiZGaCFrZCJGAF3vazemlmXUt312UVvcFohPANLSCLRINe0eq6q2Vbn+lvadUnGrMYz+43xp3jUfCf2WQamMtkBp9Fx51xo99O0LDcn/pdlLbE3hXxtGKzinHv2krU4ohEhAEUiTgs0ZU1b1y02tj0gfRkaYC1hskJZoXd99jvE8Mhr9OzFgyO96VgcM3j9IbCos//mDkNayI52CrNaT7hIT4AdNn8fuusz9infLNWv9/mAjBGhjU5Pej61sWn3FhLCIgDCQx6LPdaHGJl8Mt/svp28uVwa6rfTN36uuWJqTdDr0bfuuUV3x+2brSO/94tLhF+fm/wdfwY76nhVvQU0IaAw5qZCoyaLDA1M7L/urG8+TAxOrLEw83l0f6/kuVX8+5RkLnnXyGyIeGwPi1MPQncoC+fTC3Q+/vo4LCWthZWk/MfH27c71MbDz/OJ1cXttC9vS+4/1h/ATnky8eIqn/DAAAAAElFTkSuQmCC",_imports_5$2=""+new URL("resetting-a142617a.png",import.meta.url).href,_imports_6$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApgAAAAqCAMAAAAgctusAAAAS1BMVEUAAADq6urp6enq6urq6urj4+Pr6+vo6Ojq6urm5ubp6enm5ubo6Ojp6enn5+fp6enn5+fo6Ojp6env7+/r6+vz8/Po6Ojp6en29vY4U4nHAAAAE3RSTlMA95feNwkGpJPy5dTJvY8vK5SjBTYU0gAAAa9JREFUeNrtnMuSgjAUBYeHgm+ZXJP5/y+dSAUiCIVES6LVzQa6bvWK9fm5kqfbJNmm+Y8Hj1/arwqtjUXrYlULPD4Cv9prUTWi9+4Sj1/cF0bU5c9yUWIKf/g74os5nj79wE6u5XL9rpXovLmzvtXeP3avWk+ffmA/df+pM6m7w+OX9ZkVLUoyd4fHL+sTZYU3SXOYeN3zt4HJe/r0w/qJKE/ncJbvdaTx9OmH9TPVIXN3PS/TXgY9ffph/VI6lO6u69WgVyNelO/Qpx/WP5n6RdWPmJO7c17JqLcMe3Xr6dMP7KfmhrS5m/TymKdPP7C/PuiWw9ofWu+q917XmL7Xd54+/eD+umpM6e86vur6csr7Dn36T/TPx91mszue2xs8PiIPAAAAAAAAAAAAAAAAH08kywt4PEsc+Nh9NMsLeDxLHPRj73/sUgP97+5Hs7yAx7PEgY/ef+xSA/3v7o8uKchLlhro03/TEofM8vTp9zrvWeKoGl8NLzXQpx/WPxn3PrGYELjUQJ9+WH96MUGeWWqgT//1SxyWwSWFhmlPn/78Pksc9OPux7a8gMf/A9O1ZaEK+VoAAAAAAElFTkSuQmCC",soundWav=""+new URL("timer-f5d3d904.mp3",import.meta.url).href,_withScopeId$2=e=>(pushScopeId("data-v-01be6336"),e=e(),popScopeId(),e),_hoisted_1$3={class:"timerMeter"},_hoisted_2$2={class:"timeCon"},_hoisted_3$2={class:"timeBox"},_hoisted_4$2={class:"timeInput mmTimeIpt"},_hoisted_5$2=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_0$2},null,-1)),_hoisted_6$1=[_hoisted_5$2],_hoisted_7$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_0$2},null,-1)),_hoisted_8$1=[_hoisted_7$1],_hoisted_9$1={class:"timeInputBox"},_hoisted_10$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_1$2},null,-1)),_hoisted_11$1=[_hoisted_10$1],_hoisted_12$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_1$2},null,-1)),_hoisted_13$1=[_hoisted_12$1],_hoisted_14$1=_withScopeId$2(()=>createBaseVNode("img",{class:"midBg",src:_imports_2$2},null,-1)),_hoisted_15$1={class:"timeInput ssTimeIpt"},_hoisted_16$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_0$2},null,-1)),_hoisted_17$1=[_hoisted_16$1],_hoisted_18$1=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_0$2},null,-1)),_hoisted_19$1=[_hoisted_18$1],_hoisted_20={class:"timeInputBox"},_hoisted_21=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_1$2},null,-1)),_hoisted_22=[_hoisted_21],_hoisted_23=_withScopeId$2(()=>createBaseVNode("img",{src:_imports_1$2},null,-1)),_hoisted_24=[_hoisted_23],_hoisted_25={class:"timeTools"},_hoisted_26={class:"timeType"},_hoisted_27={class:"timeTypeBox"},_hoisted_28={class:"playState"},_hoisted_29={class:"timeBomCon"},_hoisted_30={key:1,class:"timeUpBom",src:_imports_6$1},_sfc_main$3=defineComponent({__name:"TimerMeter",setup(e){const t=new Audio(soundWav);onMounted(()=>{document.querySelectorAll(".timerMeter .timeInput .timeInputBox .n-input__input-el").forEach(E=>{E.setAttribute("maxlength","2")})}),onUnmounted(()=>{clearInterval(d),t.pause()});const r=ref("countdown");function a(g){r.value!==g&&(r.value=g,n())}function n(){A(),i.value=0,o.value=0,l.value=0}const s=ref("pause"),i=ref(0),o=ref(0),l=ref(0);watch(i,()=>{o.value=Math.floor(i.value/60),l.value=i.value%60});function c(g){if(s.value==="play")return;let E=i.value+g;E>=3599&&(E=3599),E<=0&&(E=0),i.value=E}function p(){if(r.value==="countdown"){if(i.value<=0)return;s.value="play",f()}else{if(i.value>=3599)return;s.value="play",m()}}function A(){clearInterval(d),s.value="pause",t.pause()}let d;function f(){t.pause(),t.currentTime=0,i.value<=3&&(t.currentTime=3-i.value,t.play()),d=setInterval(()=>{i.value--,i.value===3&&t.play(),i.value<=0&&(clearInterval(d),s.value="pause")},1e3)}function m(){d=setInterval(()=>{i.value++,i.value>=3599&&A()},1e3)}return(g,E)=>(openBlock(),createElementBlock("div",_hoisted_1$3,[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$2,[createBaseVNode("div",_hoisted_4$2,[r.value==="countdown"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["timeInputBtn",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[0]||(E[0]=u=>c(600))},_hoisted_6$1),createBaseVNode("div",{onClick:E[1]||(E[1]=u=>c(60))},_hoisted_8$1)],2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_9$1,[createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:o.value,format:u=>u?u<10?"0".concat(u):u+"":"00","onUpdate:value":E[2]||(E[2]=u=>{u&&(u<0?u=0:u>59&&(u=59),i.value=u*60+l.value)}),"show-button":!1},null,8,["value","format"])]),r.value==="countdown"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["timeInputBtn",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[3]||(E[3]=u=>c(-600))},_hoisted_11$1),createBaseVNode("div",{onClick:E[4]||(E[4]=u=>c(-60))},_hoisted_13$1)],2)):createCommentVNode("",!0)]),_hoisted_14$1,createBaseVNode("div",_hoisted_15$1,[r.value==="countdown"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["timeInputBtn",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[5]||(E[5]=u=>c(10))},_hoisted_17$1),createBaseVNode("div",{onClick:E[6]||(E[6]=u=>c(1))},_hoisted_19$1)],2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_20,[createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:l.value,format:u=>u?u<10?"0".concat(u):u+"":"00","onUpdate:value":E[7]||(E[7]=u=>{u&&(u<0?u=0:u>59&&(u=59),i.value=o.value*60+u)}),"show-button":!1},null,8,["value","format"])]),r.value==="countdown"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["timeInputBtn",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[8]||(E[8]=u=>c(-10))},_hoisted_22),createBaseVNode("div",{onClick:E[9]||(E[9]=u=>c(-1))},_hoisted_24)],2)):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_25,[createBaseVNode("div",_hoisted_26,[createBaseVNode("div",_hoisted_27,[createBaseVNode("div",{class:normalizeClass(["timeTypeName",{timeTypeActive:r.value==="countdown"}]),onClick:E[10]||(E[10]=u=>a("countdown"))}," 倒计时 ",2),createBaseVNode("div",{class:normalizeClass(["timeTypeName",{timeTypeActive:r.value==="countup"}]),onClick:E[11]||(E[11]=u=>a("countup"))}," 正计时 ",2)])]),createBaseVNode("div",_hoisted_28,[s.value==="play"?(openBlock(),createElementBlock("img",{key:0,onClick:A,src:_imports_3$2})):(openBlock(),createElementBlock("img",{key:1,onClick:p,src:_imports_4$2}))]),createBaseVNode("div",{class:"resetting"},[createBaseVNode("img",{onClick:n,src:_imports_5$2})])])]),createBaseVNode("div",_hoisted_29,[r.value==="countdown"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["timeDownBom",{palyDisabled:s.value==="play"}])},[createBaseVNode("div",{onClick:E[12]||(E[12]=u=>c(300))},"5分"),createBaseVNode("div",{onClick:E[13]||(E[13]=u=>c(60))},"1分"),createBaseVNode("div",{onClick:E[14]||(E[14]=u=>c(30))},"30秒"),createBaseVNode("div",{onClick:E[15]||(E[15]=u=>c(5))},"5秒")],2)):(openBlock(),createElementBlock("img",_hoisted_30)),createVNode(unref(Dragbom))])]))}}),TimerMeter_vue_vue_type_style_index_0_scoped_01be6336_lang="",_export_sfc$1=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},TimerMeter=_export_sfc$1(_sfc_main$3,[["__scopeId","data-v-01be6336"]]),_imports_0$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABECAMAAACs5QVGAAAASFBMVEUAAAD/nob7j2/7kG77kG/6kG/8j27/knH/knb7j2/7j2/7kG/8knH/lHn7j3D7kG/6j27////9y7v8sZr7mnz9y7z8spv7mn093k0XAAAAEHRSTlMAB+bDq6aTKhz27YxNE3JzrutAdwAAALNJREFUOMvtlUsSgyAMQAMK4rdR/Nz/plUJxA7NpqvO6FsBTyEEhkDCGa2NgwzX4E6TG4MnJhM6CJ0JJB7xs6jKKMoKGGXxglVA9AV+UPT0fRxnE/6xmGHPdfELRwQpntn7OcUGoGpqT+PORJ1aQcfjV9PBQPOMBM02QBsaPgof+q0sXsJU4uIc7nKMLxwub3Bb1403KKVESqKYdumgpKMVLsP/XNFH3FFkj75QJuTCIpaiN4anMAgvwjL+AAAAAElFTkSuQmCC",_imports_1$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABcCAMAAAD+gdPFAAABJlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+Yzv9Lqf5SrP5Pq/5IqP5Vrv+Oyf+MyP9Yr//G5P+53v9uuv5esv6Jx/91vf9quP9ltv9bsf5htP9yvP95v/9ot/9/wv+Gxf/7/f+Bw/98wf6DxP+s2P/l8//R6f+n1f+i0//1+/+d0f/u9//b7v/N5//X7P+Exf/p9f+13P98wf/4/P/y+f+94P+Sy//B4f+w2f+Vzf/D4//f8P8Tk/5OAAAALXRSTlMAmfJQPAgEbNOOhDQP/Pi0q6OUfXQgxruIGe3p2r8rFVhHI+GWkGlkYVvO5ON2uHVLAAAFpUlEQVRYw6WZCVvaQBCGq1I51LaCFo9arbV3F6EGgtwghDPhFOQQ9P//ic5MIpBAyEa+5wGXnZmXsMtsvgffmGv7cGfrp/PA53F7vW6P78D5Y8tx+PaNPb3dOvK7TtlSnbj87otdTtCxd5NZ6N3+JQ/JSSBLmGfb8rPtM1K92qqJw7GsKI3AZDSaBBqKIo+jYq1VrTOS3+pTfsCsgdgQVqjx2MSsj6u34Ahz2iPBSk8S5O2vIu3sQUY0LITD+MBnQfs7HWuPCrK2VqDOIP4Y5lIPUj+tuCgIV6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BMVEUAAAB2ent4eXt3enx2eXx3eXp3enp3eXt3eXt4eXx3enx2eXx1eXt3e3t3eXt8fHx2dnx3eXtMdUTrAAAAEXRSTlMAmdGjxshH6/VdWFAxPIsOJ8pXJ/EAAAB4SURBVEjH7dRJCsAgEERRp8QxGu9/2UB2ot0iNKED/v3b1KLETgSJFAfAVqy4CiQByArK9QBPfQ28RvI9CBXNd0DiQNMAZ4Y5ECgxzGzwA3AfTWkKUm26GIByNhUGs1KCbK0NK+CNO3DAzQMAjgbE2Rn3QiIFwbsHfxknzdQ/5zIAAAAASUVORK5CYII=",_imports_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMAgHIRQx0KTE13NBtuAAAAmklEQVQ4y9XTKQ7DQAxA0ZG6YecGUS8Q9QRFxWUtLOgBSspDcu+QHznRB8YZZI/nZbE8bYfr9Vhn3/8SnaIbcv/Qx5PwEnHNwi3iR3gMCCDuxOceAug+62QAcEhZnslUIHMBNgSSUBcxgABMACYAE4CJgQt+VPlyf275g25J2US33cCEXETDUI2PB64YUQ/1WF2D9t5enKntb81cmCBGRHN3oQAAAABJRU5ErkJggg==",_imports_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABGBAMAAACDAP+3AAAAMFBMVEUAAACWlpaVlZWVlZWWlpaVlZWVlZWXl5eVlZWZmZmSkpKVlZWVlZWWlpaVlZWVlZVOlI4QAAAAD3RSTlMAgbR3wq6KV0MUB+balsELmVrpAAAAe0lEQVRIx2MYBaOA7qC5gKAS3v9fFhBS0///vwEhNfL//wcQoUZhVA0t1TQKgsD7//8PghkFWCMcBWCN/n5UJVij3x5VBdbor0dXk4CphgVNye8JmGq4TJVA4Pz//5vAjEyGIRAXo2rqMSMcM/oxIhxb9GcyjIJRMAgBAMF7m6W6Zav9AAAAAElFTkSuQmCC",_imports_3="data:image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u7r6+vV1c/Pz8+1ta6umJiYmI2NjYCAPz82LiTz7u6Njd6AANQAAAImSURBVDjLddRXW9swFAbgIzvOhIa9R9kbumsTs0yAQtKEFuxsoMwy/v81sh/5WLbk7/p9Pg3rGMIhufX0uJocUCcyGzkC8fmwMLRNs7tbKBRO9va+LebjYJoyTh4env7OyDBZSYryz9/en8I2EpPbMlksnk8lwvKTGpWnTB4djXSF5FehE+Xx8SBnE3znSVReXIziHsikbHWUZ2eVacLoinz1cyYvLyulVXafSV4+39/Ubbt++/iGnZVSua/Ho/zNv9zZOovzUPQk7SyVqzNeKSf/13QujTbKgwO3doGT13oo121Xll25vwRAhoLVsRN7O77cHyaQC+7zThfyRBevVqm0zE1YD85ui9TpeJ2WZZlZSON93uuStKh0O01zDsbx5m9ktOnLXylQ8RvVZbTmSovKnTFI4te0ZdT25Y4GA/hCpNShq3vS0EDFFyLfAOs0DAUm8H3eSo9lMmmkIIPv81F6Wb405mED3+ebI0rnypdGFnLBdDyI9JVKRreAfMc5Kjai8p/ldxoKAVgM5qgdeYT1K5TGMgDkuYlrN0KdKGm6gSbDzWbnycETvVqcnAU3+V5/3t0332k1a7ZTa7bw7G76P4OXH9xslvB98tJY838ZU2zecTooDMmPBH9EI6wzLJEqXwDTNYhTTGV0dc07PdrReKkwiXuYjt2nvzqGrPbJOvvXCIjpmRE7Z9l9inhpmO9UlrshPmQzO5ca0zQlNZ/diiz9DrXEVCS8JPZeAAAAAElFTkSuQmCC",_imports_7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAMAAABIzV/hAAAAVFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////8wXzyWAAAAG3RSTlMAT+raDfeDQ/DMw7WqnJFyaVtQPjgrJBoUBNQxDgHgAAAAdElEQVQoz53S2wqAIAyA4VKz87m02vu/Z4HIwLnI/tsPYbhl7ykOVglyjj8R8FSXESrB1e6EcvD1liUotAoJE9MZEiYXQlizIZE6wxIUw+GJVo1IJM2T+EWaHyN5+M6kfpRc+KWkrrK3389GVe7YmBO95hjcrpAoVLkesMgAAAAASUVORK5CYII=",_imports_8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAaCAMAAACaYWzBAAAAM1BMVEUAAAD///////////////////////////////////////////////////////////////+3leKCAAAAEHRSTlMAkW3TS/lo8u3Vt6RBFgsHbqBFqQAAAE5JREFUKM9jYGBhZmVmYUAAPkYOdm5eoLgACCDJcIH4nPwMzGAJZrg4jwAYsDGwgmlWuAQbRIKRQQAC4BJMoxJDTAJX1OJMDDiTD84EBwBYMhPvQGi3JAAAAABJRU5ErkJggg==",tickWav=""+new URL("tick-b5f22461.mp3",import.meta.url).href,tockWav=""+new URL("tock-8f21331a.wav",import.meta.url).href;var crunker={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(typeof self<"u"?self:commonjsGlobal,()=>(()=>{var r={d:(p,A)=>{for(var d in A)r.o(A,d)&&!r.o(p,d)&&Object.defineProperty(p,d,{enumerable:!0,get:A[d]})},o:(p,A)=>Object.prototype.hasOwnProperty.call(p,A),r:p=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})}},a={};function n(p){return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},n(p)}function s(p){return function(A){if(Array.isArray(A))return i(A)}(p)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}(p)||function(A,d){if(A){if(typeof A=="string")return i(A,d);var f=Object.prototype.toString.call(A).slice(8,-1);if(f==="Object"&&A.constructor&&(f=A.constructor.name),f==="Map"||f==="Set")return Array.from(A);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return i(A,d)}}(p)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(p,A){(A==null||A>p.length)&&(A=p.length);for(var d=0,f=new Array(A);d<A;d++)f[d]=p[d];return f}function o(p,A){if(!(p instanceof A))throw new TypeError("Cannot call a class as a function")}function l(p,A){for(var d=0;d<A.length;d++){var f=A[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(p,(m=f.key,g=void 0,g=function(E,u){if(n(E)!=="object"||E===null)return E;var y=E[Symbol.toPrimitive];if(y!==void 0){var S=y.call(E,u||"default");if(n(S)!=="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(E)}(m,"string"),n(g)==="symbol"?g:String(g)),f)}var m,g}r.r(a),r.d(a,{default:()=>c});var c=function(){function p(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=f.sampleRate;o(this,p),this._context=this._createContext(m),m||(m=this._context.sampleRate),this._sampleRate=m}var A,d;return A=p,d=[{key:"_createContext",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:44100;return window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext,new AudioContext({sampleRate:f})}},{key:"context",get:function(){return this._context}},{key:"fetchAudio",value:async function(){for(var f=this,m=arguments.length,g=new Array(m),E=0;E<m;E++)g[E]=arguments[E];return await Promise.all(g.map(async function(u){var y;return y=u instanceof File||u instanceof Blob?await u.arrayBuffer():await fetch(u).then(function(S){return S.headers.has("Content-Type")&&!S.headers.get("Content-Type").includes("audio/")&&console.warn("Crunker: Attempted to fetch an audio file, but its MIME type is `".concat(S.headers.get("Content-Type").split(";")[0],"`. We'll try and continue anyway. (file: \"").concat(u,'")')),S.arrayBuffer()}),await f._context.decodeAudioData(y)}))}},{key:"mergeAudio",value:function(f){var m=this._context.createBuffer(this._maxNumberOfChannels(f),this._sampleRate*this._maxDuration(f),this._sampleRate);return f.forEach(function(g){for(var E=0;E<g.numberOfChannels;E++){for(var u=m.getChannelData(E),y=g.getChannelData(E),S=g.getChannelData(E).length-1;S>=0;S--)u[S]+=y[S];m.getChannelData(E).set(u)}}),m}},{key:"concatAudio",value:function(f){var m=this._context.createBuffer(this._maxNumberOfChannels(f),this._totalLength(f),this._sampleRate),g=0;return f.forEach(function(E){for(var u=0;u<E.numberOfChannels;u++)m.getChannelData(u).set(E.getChannelData(u),g);g+=E.length}),m}},{key:"padAudio",value:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(g===0)return f;if(m<0)throw new Error('Crunker: Parameter "padStart" in padAudio must be positive');if(g<0)throw new Error('Crunker: Parameter "seconds" in padAudio must be positive');for(var E=this._context.createBuffer(f.numberOfChannels,Math.ceil(f.length+g*f.sampleRate),f.sampleRate),u=0;u<f.numberOfChannels;u++){var y=f.getChannelData(u);E.getChannelData(u).set(y.subarray(0,Math.ceil(m*f.sampleRate)+1),0),E.getChannelData(u).set(y.subarray(Math.ceil(m*f.sampleRate)+2,E.length+1),Math.ceil((m+g)*f.sampleRate))}return E}},{key:"sliceAudio",value:function(f,m,g){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(m>=g)throw new Error('Crunker: "start" time should be less than "end" time in sliceAudio method');for(var y=Math.round((g-m)*this._sampleRate),S=Math.round(m*this._sampleRate),b=this._context.createBuffer(f.numberOfChannels,y,this._sampleRate),x=0;x<f.numberOfChannels;x++)for(var C=f.getChannelData(x),D=b.getChannelData(x),I=0;I<y;I++)D[I]=C[S+I],I<E*this._sampleRate&&(D[I]*=I/(E*this._sampleRate)),I>y-u*this._sampleRate&&(D[I]*=(y-I)/(u*this._sampleRate));return b}},{key:"play",value:function(f){var m=this._context.createBufferSource();return m.buffer=f,m.connect(this._context.destination),m.start(),m}},{key:"export",value:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"audio/wav",g=this._interleave(f),E=this._writeHeaders(g,f.numberOfChannels,f.sampleRate),u=new Blob([E],{type:m});return{blob:u,url:this._renderURL(u),element:this._renderAudioElement(u)}}},{key:"download",value:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"crunker",g=document.createElement("a");return g.style.display="none",g.href=this._renderURL(f),g.download="".concat(m,".").concat(f.type.split("/")[1]),g.click(),g}},{key:"notSupported",value:function(f){return this._isSupported()?void 0:f()}},{key:"close",value:function(){return this._context.close(),this}},{key:"_maxDuration",value:function(f){return Math.max.apply(Math,s(f.map(function(m){return m.duration})))}},{key:"_maxNumberOfChannels",value:function(f){return Math.max.apply(Math,s(f.map(function(m){return m.numberOfChannels})))}},{key:"_totalLength",value:function(f){return f.map(function(m){return m.length}).reduce(function(m,g){return m+g},0)}},{key:"_isSupported",value:function(){return"AudioContext"in window||"webkitAudioContext"in window||"mozAudioContext"in window}},{key:"_writeHeaders",value:function(f,m,g){var E=2*m,u=2*f.length,y=36+u,S=new ArrayBuffer(8+y),b=new DataView(S);return this._writeString(b,0,"RIFF"),b.setUint32(4,y,!0),this._writeString(b,8,"WAVE"),this._writeString(b,12,"fmt "),b.setUint32(16,16,!0),b.setUint16(20,1,!0),b.setUint16(22,m,!0),b.setUint32(24,g,!0),b.setUint32(28,g*E,!0),b.setUint16(32,E,!0),b.setUint16(34,16,!0),this._writeString(b,36,"data"),b.setUint32(40,u,!0),this._floatTo16BitPCM(b,f,44)}},{key:"_floatTo16BitPCM",value:function(f,m,g){for(var E=0;E<m.length;E++,g+=2){var u=Math.max(-1,Math.min(1,m[E]));f.setInt16(g,u<0?32768*u:32767*u,!0)}return f}},{key:"_writeString",value:function(f,m,g){for(var E=0;E<g.length;E++)f.setUint8(m+E,g.charCodeAt(E))}},{key:"_interleave",value:function(f){if(f.numberOfChannels===1)return f.getChannelData(0);for(var m=[],g=0;g<f.numberOfChannels;g++)m.push(f.getChannelData(g));for(var E=m.reduce(function(b,x){return b+x.length},0),u=new Float32Array(E),y=0,S=0;y<E;)m.forEach(function(b){u[y++]=b[S]}),S++;return u}},{key:"_renderAudioElement",value:function(f){var m=document.createElement("audio");return m.controls=!0,m.src=this._renderURL(f),m}},{key:"_renderURL",value:function(f){return(window.URL||window.webkitURL).createObjectURL(f)}}],d&&l(A.prototype,d),Object.defineProperty(A,"prototype",{writable:!1}),p}();return a})())})(crunker);var crunkerExports=crunker.exports;const Crunker=getDefaultExportFromCjs(crunkerExports);function useMetronome(e,t){const r=ref(100);watch(r,()=>{o(r.value/100)});const a=ref("pause"),n=ref(90),{start:s,stop:i,changeVolume:o}=useHandleAudio([tickWav,tockWav]);onUnmounted(()=>{c()});async function l(){await s(p.value,{volume:r.value/100,playbackRate:n.value/60})&&(a.value="play")}function c(){i(),a.value="pause"}const p=computed(()=>t.value==="1"?e.value.split("-"):t.value.split("-"));return{volumeNum:r,playState:a,speedNum:n,startPlay:l,pausePlay:c}}function useHandleAudio(e){const t=new Crunker;async function r(c,p,A){try{const d=await t.fetchAudio(...c),f=d[0],m=d[1];let g;return p.map((E,u)=>{const y=Number(E);let S=u===0&&y!==0?f:m;(1/A-S.duration*p.length<=0||(y||1)/A-S.duration<=0)&&(S=t.sliceAudio(S,0,S.duration/A,0,.12)),g?g=t.concatAudio([g,S]):g=S,g=t.padAudio(g,g.duration-.01,(y||1)/A-S.duration)}),g}catch(d){console.log(d);return}}const a=t.context;let n,s;async function i(c,p){const A=await r(e,c,p.playbackRate);return A?(n=a.createBufferSource(),n.buffer=A,s=a.createGain(),n.connect(s),s.connect(a.destination),s.gain.value=p.volume,n.loop=!0,n.start(),!0):!1}function o(){n==null||n.stop(),n=null,s=null}function l(c){s&&(s.gain.value=c)}return{start:i,stop:o,changeVolume:l}}const localStorageName="metronomePos";function getCachePos(e){const t=localStorage.getItem(localStorageName);if(t)try{return JSON.parse(t)[e+localStorageName]}catch(r){return null}return null}function setCachePos(e,t){const r=localStorage.getItem(localStorageName);let a={};if(r)try{a=JSON.parse(r)}catch(n){}a[e+localStorageName]=t,localStorage.setItem(localStorageName,JSON.stringify(a))}const _withScopeId$1=e=>(pushScopeId("data-v-138efc00"),e=e(),popScopeId(),e),_hoisted_1$2={class:"Metronome"},_hoisted_2$1={class:"MetronomeBox"},_hoisted_3$1={class:"headTools"},_hoisted_4$1={class:"beatWrap"},_hoisted_5$1=_withScopeId$1(()=>createBaseVNode("div",{class:"round"},null,-1)),_hoisted_6={class:"beatCon"},_hoisted_7={class:"optMid"},_hoisted_8=_withScopeId$1(()=>createBaseVNode("img",{class:"optImg",src:_imports_3},null,-1)),_hoisted_9={class:"selectCon"},_hoisted_10={class:"sliderList"},_hoisted_11=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_5,alt:""},null,-1)),_hoisted_12=_withScopeId$1(()=>createBaseVNode("img",{class:"thumbDot",src:_imports_6,alt:""},null,-1)),_hoisted_13={class:"sliderText"},_hoisted_14=_withScopeId$1(()=>createBaseVNode("span",null,"播放",-1)),_hoisted_15=_withScopeId$1(()=>createBaseVNode("img",{src:_imports_7},null,-1)),_hoisted_16=[_hoisted_14,_hoisted_15],_hoisted_17=_withScopeId$1(()=>createBaseVNode("span",null,"暂停",-1)),_hoisted_18=_withScopeId$1(()=>createBaseVNode("img",{class:"pauseImg",src:_imports_8},null,-1)),_hoisted_19=[_hoisted_17,_hoisted_18],_sfc_main$2=defineComponent({__name:"Metronome",emits:["windowMet","closeMet","playStateChange"],setup(e,{expose:t,emit:r}){const a=useUserStore(),n=ref(),s=ref(),i=ref("1"),o=[{label:"",labelHide:"0",value:"0",class:"beatValOptItem"},{label:"",labelHide:"1",value:"1",class:"beatValOptItem"},{label:"",labelHide:"2",value:"1-1",class:"beatValOptItem"},{label:"",labelHide:"3",value:"1-1-1",class:"beatValOptItem"},{label:"",labelHide:"4",value:"1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"5",value:"1-1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"6",value:"1-1-1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"7",value:"1-1-1-1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"8",value:"1-1-1-1-1-1-1-1",class:"beatValOptItem"},{label:"",labelHide:"9",value:"1-1-1-1-1-1-1-1-1",class:"beatValOptItem"}],l=ref("1"),c=[{label:"",labelHide:"1",value:"1",class:"beatSymbolOptItem"},{label:"",labelHide:"2",value:"0.5-0.5",class:"beatSymbolOptItem"},{label:"",labelHide:"3",value:"0.3333333-0.3333333-0.3333333",class:"beatSymbolOptItem"},{label:"",labelHide:"4",value:"0.25-0.25-0.25-0.25",class:"beatSymbolOptItem"},{label:"",labelHide:"5",value:"0.6666666-0.3333333",class:"beatSymbolOptItem"},{label:"",labelHide:"6",value:"0.75-0.25",class:"beatSymbolOptItem"},{label:"",labelHide:"7",value:"0.5-0.25-0.25",class:"beatSymbolOptItem"}],{volumeNum:p,playState:A,speedNum:d,startPlay:f,pausePlay:m}=useMetronome(i,l);onMounted(()=>{const I=getCachePos(a.info.id);I&&(i.value=I.beatVal,l.value=I.beatSymbol,p.value=I.volumeNum,d.value=I.speedNum);const N=document.querySelector(".Metronome .MetronomeBox .optMid .n-input__input-el");N==null||N.setAttribute("maxlength","3"),C(g(d.value))}),onUnmounted(()=>{setCachePos(a.info.id,{beatVal:i.value,beatSymbol:l.value,volumeNum:p.value,speedNum:d.value})}),watch(A,()=>{r("playStateChange",A.value)}),watch(d,()=>{A.value==="play"&&m(),C(g(d.value))}),watch([i,l],()=>{A.value==="play"&&m()});function g(I){return(I-50)/150*100}function E(I){return Math.round(I*150/100+50)}const u=I=>{const N=n.value.getBoundingClientRect(),B=N.left+N.width/2,O=N.top+N.height/2,R=D(I)?I.touches[0]:I,G=(Math.atan2(R.clientY-O,R.clientX-B)*(180/Math.PI)+180)/360,j=Math.round(G*100)-25;d.value=E(j<0?100+j:j)};function y(){function I(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",I)}document.addEventListener("mousemove",b),document.addEventListener("mouseup",I)}function S(){function I(){document.removeEventListener("touchmove",x),document.removeEventListener("touchend",I)}document.addEventListener("touchmove",x),document.addEventListener("touchend",I)}function b(I){u(I)}function x(I){u(I)}function C(I){const B=["#51DBFF","#009FFF"],O=n.value,R=O.getContext("2d");R.clearRect(0,0,O.width,O.height);const _=O.width/2,G=O.height/2,j=Math.PI*2/100,M=-Math.PI/2+I*j,F=121+Math.cos(M)*121,P=121+Math.sin(M)*121;s.value.style.left=F-7+"Px",s.value.style.top=P-7+"Px";const T={x1:0,y1:0,x2:121*2,y2:0};T.y2=121*2;const L=R.createLinearGradient(T.x1,T.y1,T.x2,T.y2);B.map((k,Y)=>{L.addColorStop(Y,k)}),R.strokeStyle=L,R.lineWidth=10,R.save(),R.beginPath(),R.arc(_,G,121,-Math.PI/2,-Math.PI/2+I*j,!1),R.stroke(),R.closePath(),R.restore()}function D(I){return window.TouchEvent&&I instanceof window.TouchEvent}return t({startPlay:f,pausePlay:m,speedNum:d,beatSymbol:l}),(I,N)=>(openBlock(),createElementBlock("div",_hoisted_1$2,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,[createBaseVNode("img",{src:_imports_0,onClick:N[0]||(N[0]=()=>{r("windowMet")})}),createBaseVNode("img",{src:_imports_1,onClick:N[1]||(N[1]=()=>{r("closeMet")})})]),createBaseVNode("div",_hoisted_4$1,[createBaseVNode("div",{class:"dot",ref_key:"dotDom",ref:s,onMousedown:y,onTouchstart:S},null,544),_hoisted_5$1,createBaseVNode("canvas",{ref_key:"mycanvasDom",ref:n,class:"mycanvas",width:"252",height:"252",onClick:u},null,512),createBaseVNode("div",_hoisted_6,[createBaseVNode("img",{class:"optImg",src:_imports_2,onClick:N[2]||(N[2]=()=>{unref(d)<200&&d.value++})}),createBaseVNode("div",_hoisted_7,[_hoisted_8,createVNode(unref(NInputNumber),{disabled:!0,placeholder:"",value:unref(d),"show-button":!1,"onUpdate:value":N[3]||(N[3]=B=>{B&&(B<=50?d.value=50:B>=200?d.value=200:d.value=B)})},null,8,["value"])]),createBaseVNode("img",{class:"optImg",src:_imports_4,onClick:N[4]||(N[4]=()=>{unref(d)>50&&d.value--})})])]),createBaseVNode("div",_hoisted_9,[createVNode(unref(NSelect),{value:i.value,"onUpdate:value":N[5]||(N[5]=B=>i.value=B),options:o,"show-checkmark":!1,"show-arrow":!1,placement:"top","render-tag":({option:B})=>h$1("div",{class:"beatName"},[h$1("div",B.labelHide),h$1("div","拍")]),"render-label":B=>h$1("div",B.labelHide)},null,8,["value","render-tag","render-label"]),createVNode(unref(NSelect),{class:"beatSymbolSel",value:l.value,"onUpdate:value":N[6]||(N[6]=B=>l.value=B),options:c,"show-checkmark":!1,"show-arrow":!1,placement:"top","render-tag":({option:B})=>h$1("div",{class:"beatSymbolImg".concat(B.labelHide," beatSymbolImg")}),"render-label":B=>h$1("div",{class:"beatSymbolImg".concat(B.labelHide," beatSymbolImg")})},null,8,["value","render-tag","render-label"])]),createBaseVNode("div",_hoisted_10,[_hoisted_11,createVNode(unref(NSlider),{value:unref(p),"onUpdate:value":N[7]||(N[7]=B=>isRef(p)?p.value=B:null),step:1,tooltip:!1},{thumb:withCtx(()=>[_hoisted_12]),_:1},8,["value"]),createBaseVNode("span",_hoisted_13,toDisplayString(unref(p)),1)]),unref(A)==="pause"?(openBlock(),createElementBlock("div",{key:0,class:"playBtn",onClick:N[8]||(N[8]=(...B)=>unref(f)&&unref(f)(...B))},_hoisted_16)):(openBlock(),createElementBlock("div",{key:1,class:"playBtn",onClick:N[9]||(N[9]=(...B)=>unref(m)&&unref(m)(...B))},_hoisted_19))]),createVNode(unref(Dragbom))]))}}),Metronome_vue_vue_type_style_index_0_scoped_138efc00_lang="",Metronome_vue_vue_type_style_index_1_lang="",Metronome=_export_sfc$1(_sfc_main$2,[["__scopeId","data-v-138efc00"]]),_withScopeId=e=>(pushScopeId("data-v-b8a07c11"),e=e(),popScopeId(),e),_hoisted_1$1={key:0,class:"metronomeMinConMask"},_hoisted_2={class:"topMetronomeMin"},_hoisted_3=_withScopeId(()=>createBaseVNode("img",{class:"bai",src:_imports_1$1},null,-1)),_hoisted_4={class:"bomMetronomeMin"},_hoisted_5=_withScopeId(()=>createBaseVNode("div",{class:"topDragDom"},null,-1)),metronomeMinConBoxClass="metronomeMinConBoxClass_drag",_sfc_main$1=defineComponent({__name:"MetronomeBox",props:{modelValue:{type:Boolean},dragClass:{},dragStyle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,a=ref(!0),n=ref(),s=ref(!1),i=computed({get(){return r.modelValue},set(C){t("update:modelValue",C)}});watch(i,()=>{i.value&&(s.value=!1)});const o=ref("pause");function l(C){C==="play"&&(A.value=parseFloat((60/n.value.speedNum).toFixed(4)),c.value=n.value.beatSymbol),o.value=C}const c=ref("1"),p={1:"1","0.5-0.5":"2","0.3333333-0.3333333-0.3333333":"3","0.25-0.25-0.25-0.25":"4","0.6666666-0.3333333":"5","0.75-0.25":"6","0.5-0.25-0.25":"7"},A=ref(60/90);onMounted(()=>{document.addEventListener("visibilitychange",d)}),onUnmounted(()=>{document.removeEventListener("visibilitychange",d)});function d(){var C;document.visibilityState==="hidden"&&((C=n.value)==null||C.pausePlay())}function f(){i.value=!1,s.value=!1,o.value="pause"}function m(){s.value=!0,nextTick(()=>{S(),i.value=!1})}function g(){i.value=!0}const E=useUserStore(),u=useDrag(["".concat(metronomeMinConBoxClass)],metronomeMinConBoxClass,s,E.info.id),y=ref("initial");function S(){const D=document.querySelector(".".concat(r.dragClass)).getBoundingClientRect(),I=u.pos.value.left===-1?12:u.pos.value.left,N=u.pos.value.top===-1?document.body.clientHeight-81-10:u.pos.value.top,B=D.left,O=D.top;y.value="".concat(I-B,"Px ").concat(N-O,"Px")}const b=ref(!1);function x(){b.value=!0,document.addEventListener("mouseup",C);function C(){b.value=!1,document.removeEventListener("mouseup",C)}}return(C,D)=>(openBlock(),createElementBlock(Fragment,null,[b.value?(openBlock(),createElementBlock("div",_hoisted_1$1)):createCommentVNode("",!0),i.value||s.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["metronomeMinCon",[metronomeMinConBoxClass,i.value&&"metronomeMinConHide"]]),style:normalizeStyle(unref(u).styleDrag.value),onMousedown:x},[createBaseVNode("div",_hoisted_2,[createBaseVNode("img",{class:normalizeClass(["zhen",[o.value==="play"&&"playWagAnimation"+p[c.value]]]),style:normalizeStyle({"--rotateWagTime":A.value+"s"}),src:_imports_0$1},null,6),_hoisted_3]),createBaseVNode("div",_hoisted_4,[createBaseVNode("img",{class:"setting",onClick:g,src:_imports_2$1}),o.value==="pause"?(openBlock(),createElementBlock("img",{key:0,class:"play",onClick:D[0]||(D[0]=()=>{var I;(I=n.value)==null||I.startPlay()}),src:_imports_3$1})):(openBlock(),createElementBlock("img",{key:1,class:"pause",onClick:D[1]||(D[1]=()=>{var I;(I=n.value)==null||I.pausePlay()}),src:_imports_4$1})),createBaseVNode("img",{class:"close",onClick:f,src:_imports_5$1})])],38)):createCommentVNode("",!0),createVNode(unref(NModal),{style:normalizeStyle({...C.dragStyle,"--transformOrigin":y.value}),class:normalizeClass(["metronomeNModal",[C.dragClass,s.value?"transformOrigin":""]]),show:i.value,"onUpdate:show":D[2]||(D[2]=I=>i.value=I),"display-directive":"show","mask-closable":!1,onEsc:f,onAfterEnter:D[3]||(D[3]=()=>{a.value=!0}),onAfterLeave:D[4]||(D[4]=()=>{a.value=!1})},{default:withCtx(()=>[createBaseVNode("div",null,[_hoisted_5,s.value||i.value||a.value?(openBlock(),createBlock(Metronome,{key:0,ref_key:"metronomeDom",ref:n,onCloseMet:f,onWindowMet:m,onPlayStateChange:l},null,512)):createCommentVNode("",!0)])]),_:1},8,["style","show","class"])],64))}}),MetronomeBox_vue_vue_type_style_index_0_scoped_b8a07c11_lang="",MetronomeBox=_export_sfc$1(_sfc_main$1,[["__scopeId","data-v-b8a07c11"]]),downMove="_downMove_137wx_1",downMoveBg="_downMoveBg_137wx_9",dingPng="_dingPng_137wx_16",closeAble="_closeAble_137wx_25",submitAppBtn="_submitAppBtn_137wx_53",styles$l={downMove,downMoveBg,dingPng,closeAble,submitAppBtn},PlaceholderTone=defineComponent({props:["item","message"],emits:["close"],name:"placeholderTone",setup(e,{emit:t}){return()=>createVNode(Fragment,null,[createVNode("div",{class:styles$l.downMove},[createVNode("img",{src:dingPng$1,class:styles$l.dingPng,alt:""},null),createVNode("img",{src:moveTop,class:styles$l.downMoveBg,alt:""},null),createVNode("h2",null,[createTextVNode("温馨提示")]),createVNode("p",null,[e.message||"调音器功能暂未开放,敬请期待!"]),createVNode(NSpace,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[createVNode(NButton,mergeProps({id:"submitBtn"},{class:styles$l.submitAppBtn,round:!0,type:"primary",onClick:()=>{t("close")}}),{default:()=>[createTextVNode("我知道了")]})]})])])}}),playContent="_playContent_15uu9_1",assignHomeworkClose="_assignHomeworkClose_15uu9_10",coursewarePlay="_coursewarePlay_15uu9_23",playModel="_playModel_15uu9_29",headerContainer="_headerContainer_15uu9_38",backBtn="_backBtn_15uu9_58",headRight="_headRight_15uu9_70",rightBtn="_rightBtn_15uu9_79",menu$1="_menu_15uu9_91",tabsContent="_tabsContent_15uu9_102",wraps="_wraps_15uu9_113",itemDiv="_itemDiv_15uu9_119",itemActive="_itemActive_15uu9_132",acitveAnimation="_acitveAnimation_15uu9_135",show="_show_15uu9_138",hide$2="_hide_15uu9_141",rightFixedBtns="_rightFixedBtns_15uu9_154",fullBtn="_fullBtn_15uu9_161",point="_point_15uu9_166",iconUp="_iconUp_15uu9_176",iconDown="_iconDown_15uu9_177",btnsDisabled="_btnsDisabled_15uu9_180",loadWrap="_loadWrap_15uu9_210",drawerContainer="_drawerContainer_15uu9_221",sectionAnimate$2="_sectionAnimate_15uu9_236",sectionAnimateUp="_sectionAnimateUp_15uu9_242",switchDisplaySection="_switchDisplaySection_15uu9_248",switchSpace="_switchSpace_15uu9_262",btnItem$1="_btnItem_15uu9_265",attendClassModal="_attendClassModal_15uu9_287",modelAttendContent="_modelAttendContent_15uu9_311",modelAttendBtnGroup="_modelAttendBtnGroup_15uu9_317",trainClassModal="_trainClassModal_15uu9_325",workContainer="_workContainer_15uu9_331",toolboxImg="_toolboxImg_15uu9_335",isDragIng="_isDragIng_15uu9_344",toolClassImg="_toolClassImg_15uu9_348",booxToolWrap="_booxToolWrap_15uu9_363",booxToolItem="_booxToolItem_15uu9_374",setTimeImage="_setTimeImage_15uu9_391",beatImage="_beatImage_15uu9_397",changePwdModal="_changePwdModal_15uu9_403",imChatModal="_imChatModal_15uu9_406",modeWrap="_modeWrap_15uu9_409",showModalTone="_showModalTone_15uu9_414",studentRemove$2="_studentRemove_15uu9_417",removeVisiable$2="_removeVisiable_15uu9_429",btnGroupModal$2="_btnGroupModal_15uu9_455",iframePpt="_iframePpt_15uu9_462",pptBox="_pptBox_15uu9_467",rightColumn="_rightColumn_15uu9_476",leftColumn="_leftColumn_15uu9_477",columnItemBox="_columnItemBox_15uu9_490",columnItem="_columnItem_15uu9_490",active$1="_active_15uu9_509",itemDisabled="_itemDisabled_15uu9_523",rightColumnHide="_rightColumnHide_15uu9_569",leftColumnHide="_leftColumnHide_15uu9_572",rightHideIcon="_rightHideIcon_15uu9_575",leftHideIcon="_leftHideIcon_15uu9_576",rightIconShow="_rightIconShow_15uu9_604",rightIn="_rightIn_15uu9_1",leftIconShow="_leftIconShow_15uu9_608",leftIn="_leftIn_15uu9_1",instrumentContainer="_instrumentContainer_15uu9_628",selectMusicModal$1="_selectMusicModal_15uu9_647",selectClassModal="_selectClassModal_15uu9_660",workVisiable="_workVisiable_15uu9_663",timerMeterClose$1="_timerMeterClose_15uu9_692",workTrain="_workTrain_15uu9_704",resourceMain="_resourceMain_15uu9_717",styles$k={playContent,assignHomeworkClose,coursewarePlay,playModel,headerContainer,backBtn,headRight,rightBtn,menu:menu$1,tabsContent,wraps,itemDiv,itemActive,acitveAnimation,show,hide:hide$2,rightFixedBtns,fullBtn,point,iconUp,iconDown,btnsDisabled,loadWrap,drawerContainer,sectionAnimate:sectionAnimate$2,sectionAnimateUp,switchDisplaySection,switchSpace,btnItem:btnItem$1,attendClassModal,modelAttendContent,modelAttendBtnGroup,trainClassModal,workContainer,toolboxImg,isDragIng,toolClassImg,booxToolWrap,booxToolItem,setTimeImage,beatImage,changePwdModal,imChatModal,modeWrap,showModalTone,studentRemove:studentRemove$2,removeVisiable:removeVisiable$2,btnGroupModal:btnGroupModal$2,iframePpt,pptBox,rightColumn,leftColumn,columnItemBox,columnItem,active:active$1,itemDisabled,rightColumnHide,leftColumnHide,rightHideIcon,leftHideIcon,rightIconShow,rightIn,leftIconShow,leftIn,instrumentContainer,selectMusicModal:selectMusicModal$1,selectClassModal,workVisiable,timerMeterClose:timerMeterClose$1,workTrain,resourceMain},plyr="",musicScore$1="_musicScore_6u588_1",container="_container_6u588_7",musicModel="_musicModel_6u588_15",errorModel="_errorModel_6u588_22",startBtn="_startBtn_6u588_34",loading="_loading_6u588_44",skeletonWrap="_skeletonWrap_6u588_50",skeleton="_skeleton_6u588_50",styles$j={musicScore:musicScore$1,container,musicModel,errorModel,startBtn,loading,skeletonWrap,skeleton};var inBrowser=typeof window<"u",visibility;function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser)){const e=()=>{visibility.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return visibility}const MusicScore=defineComponent({name:"musicScore",props:{music:{type:Object,default:()=>({})},activeModel:{type:Boolean},instrumentId:{type:String},activeStatus:{type:Boolean},imagePos:{type:String,default:"left"}},emits:["setIframe"],setup(e,{emit:t}){const r=useUserStore(),a=ref(!1),n=usePageVisibility();watch(n,A=>{console.log("🚀 ~ value:",A),A=="hidden"&&(a.value=!1)});const s=ref(),i=ref(!1),o=ref(!1),l=ref(!1);let c="".concat(vaildMusicScoreUrl(),"/instrument/?v=").concat(+new Date,"&showGuide=true&showWebGuide=false&platform=pc&zoom=1.2&modelType=practise&id=").concat(e.music.content,"&Authorization=").concat(r.getToken,"&imagePos=").concat(e.imagePos);e.instrumentId&&(c+="&instrumentId=".concat(e.instrumentId));const p=()=>{fetch(c).then(()=>{l.value=!0,o.value=!1}).catch(()=>{o.value=!0})};return watch(()=>e.music,()=>{l.value||(o.value=!1,e.music.display&&p())}),watch(()=>e.activeModel,()=>{s.value.contentWindow&&e.activeStatus&&s.value.contentWindow.postMessage({api:"attendClassBarStatus",hideMenu:!e.activeModel},"*")}),()=>createVNode("div",{class:styles$j.musicScore},[createVNode("iframe",{ref:s,onLoad:A=>{t("setIframe",s.value),i.value=!0,iframeDislableKeyboard(A.target)},class:[styles$j.container,"musicIframe"],frameborder:"0",src:c},null)])}});var lottie={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,t){module.exports=t()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,a=e.length,n;for(r=0;r<a;r+=1){n=e[r].prototype;for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t.prototype[s]=n[s])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,a=this.audios.length;for(r=0;r<a;r+=1)this.audios[r].pause()},resume:function(){var r,a=this.audios.length;for(r=0;r<a;r+=1)this.audios[r].resume()},setRate:function(r){var a,n=this.audios.length;for(a=0;a<n;a+=1)this.audios[a].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,a=this.audios.length;for(r=0;r<a;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(r,a){var n=0,s=[],i;switch(r){case"int16":case"uint8c":i=1;break;default:i=1.1;break}for(n=0;n<a;n+=1)s.push(i);return s}function t(r,a){return r==="float32"?new Float32Array(a):r==="int16"?new Int16Array(a):r==="uint8c"?new Uint8ClampedArray(a):e(r,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(r){return typeof r}:_typeof$6=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),a,n=e.length;for(a=0;a<n;a+=1)r[a]=Math.abs(e[a]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,a){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=a<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,a){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,r){var a,n,s,i,o,l,c,p;switch(i=Math.floor(e*6),o=e*6-i,l=r*(1-t),c=r*(1-o*t),p=r*(1-(1-o)*t),i%6){case 0:a=r,n=p,s=l;break;case 1:a=c,n=r,s=l;break;case 2:a=l,n=r,s=p;break;case 3:a=l,n=c,s=r;break;case 4:a=p,n=l,s=r;break;case 5:a=r,n=l,s=c;break}return[a,n,s]}function RGBtoHSV(e,t,r){var a=Math.max(e,t,r),n=Math.min(e,t,r),s=a-n,i,o=a===0?0:s/a,l=a/255;switch(a){case n:i=0;break;case e:i=t-r+s*(t<r?6:0),i/=6*s;break;case t:i=r-e+s*2,i/=6*s;break;case r:i=e-t+s*4,i/=6*s;break}return[i,o,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(a,n,s){return a<0&&(a=0),n<0&&(n=0),s<0&&(s=0),"#"+e[a]+e[n]+e[s]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(e)}var dataManager=function(){var e=1,t=[],r,a,n={onmessage:function(){},postMessage:function(f){r({data:f})}},s={postMessage:function(f){n.onmessage({data:f})}};function i(d){if(window.Worker&&window.Blob&&getWebWorker()){var f=new Blob(["var _workerSelf = self; self.onmessage = ",d.toString()],{type:"text/javascript"}),m=URL.createObjectURL(f);return new Worker(m)}return r=d,n}function o(){a||(a=i(function(f){function m(){function E(j,M){var F,P,T=j.length,L,k,Y,Z;for(P=0;P<T;P+=1)if(F=j[P],"ks"in F&&!F.completed){if(F.completed=!0,F.hasMask){var Q=F.masksProperties;for(k=Q.length,L=0;L<k;L+=1)if(Q[L].pt.k.i)x(Q[L].pt.k);else for(Z=Q[L].pt.k.length,Y=0;Y<Z;Y+=1)Q[L].pt.k[Y].s&&x(Q[L].pt.k[Y].s[0]),Q[L].pt.k[Y].e&&x(Q[L].pt.k[Y].e[0])}F.ty===0?(F.layers=S(F.refId,M),E(F.layers,M)):F.ty===4?b(F.shapes):F.ty===5&&_(F)}}function u(j,M){if(j){var F=0,P=j.length;for(F=0;F<P;F+=1)j[F].t===1&&(j[F].data.layers=S(j[F].data.refId,M),E(j[F].data.layers,M))}}function y(j,M){for(var F=0,P=M.length;F<P;){if(M[F].id===j)return M[F];F+=1}return null}function S(j,M){var F=y(j,M);return F?F.layers.__used?JSON.parse(JSON.stringify(F.layers)):(F.layers.__used=!0,F.layers):null}function b(j){var M,F=j.length,P,T;for(M=F-1;M>=0;M-=1)if(j[M].ty==="sh")if(j[M].ks.k.i)x(j[M].ks.k);else for(T=j[M].ks.k.length,P=0;P<T;P+=1)j[M].ks.k[P].s&&x(j[M].ks.k[P].s[0]),j[M].ks.k[P].e&&x(j[M].ks.k[P].e[0]);else j[M].ty==="gr"&&b(j[M].it)}function x(j){var M,F=j.i.length;for(M=0;M<F;M+=1)j.i[M][0]+=j.v[M][0],j.i[M][1]+=j.v[M][1],j.o[M][0]+=j.v[M][0],j.o[M][1]+=j.v[M][1]}function C(j,M){var F=M?M.split("."):[100,100,100];return j[0]>F[0]?!0:F[0]>j[0]?!1:j[1]>F[1]?!0:F[1]>j[1]?!1:j[2]>F[2]?!0:F[2]>j[2]?!1:null}var D=function(){var j=[4,4,14];function M(P){var T=P.t.d;P.t.d={k:[{s:T,t:0}]}}function F(P){var T,L=P.length;for(T=0;T<L;T+=1)P[T].ty===5&&M(P[T])}return function(P){if(C(j,P.v)&&(F(P.layers),P.assets)){var T,L=P.assets.length;for(T=0;T<L;T+=1)P.assets[T].layers&&F(P.assets[T].layers)}}}(),I=function(){var j=[4,7,99];return function(M){if(M.chars&&!C(j,M.v)){var F,P=M.chars.length;for(F=0;F<P;F+=1){var T=M.chars[F];T.data&&T.data.shapes&&(b(T.data.shapes),T.data.ip=0,T.data.op=99999,T.data.st=0,T.data.sr=1,T.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},M.chars[F].t||(T.data.shapes.push({ty:"no"}),T.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),N=function(){var j=[5,7,15];function M(P){var T=P.t.p;typeof T.a=="number"&&(T.a={a:0,k:T.a}),typeof T.p=="number"&&(T.p={a:0,k:T.p}),typeof T.r=="number"&&(T.r={a:0,k:T.r})}function F(P){var T,L=P.length;for(T=0;T<L;T+=1)P[T].ty===5&&M(P[T])}return function(P){if(C(j,P.v)&&(F(P.layers),P.assets)){var T,L=P.assets.length;for(T=0;T<L;T+=1)P.assets[T].layers&&F(P.assets[T].layers)}}}(),B=function(){var j=[4,1,9];function M(P){var T,L=P.length,k,Y;for(T=0;T<L;T+=1)if(P[T].ty==="gr")M(P[T].it);else if(P[T].ty==="fl"||P[T].ty==="st")if(P[T].c.k&&P[T].c.k[0].i)for(Y=P[T].c.k.length,k=0;k<Y;k+=1)P[T].c.k[k].s&&(P[T].c.k[k].s[0]/=255,P[T].c.k[k].s[1]/=255,P[T].c.k[k].s[2]/=255,P[T].c.k[k].s[3]/=255),P[T].c.k[k].e&&(P[T].c.k[k].e[0]/=255,P[T].c.k[k].e[1]/=255,P[T].c.k[k].e[2]/=255,P[T].c.k[k].e[3]/=255);else P[T].c.k[0]/=255,P[T].c.k[1]/=255,P[T].c.k[2]/=255,P[T].c.k[3]/=255}function F(P){var T,L=P.length;for(T=0;T<L;T+=1)P[T].ty===4&&M(P[T].shapes)}return function(P){if(C(j,P.v)&&(F(P.layers),P.assets)){var T,L=P.assets.length;for(T=0;T<L;T+=1)P.assets[T].layers&&F(P.assets[T].layers)}}}(),O=function(){var j=[4,4,18];function M(P){var T,L=P.length,k,Y;for(T=L-1;T>=0;T-=1)if(P[T].ty==="sh")if(P[T].ks.k.i)P[T].ks.k.c=P[T].closed;else for(Y=P[T].ks.k.length,k=0;k<Y;k+=1)P[T].ks.k[k].s&&(P[T].ks.k[k].s[0].c=P[T].closed),P[T].ks.k[k].e&&(P[T].ks.k[k].e[0].c=P[T].closed);else P[T].ty==="gr"&&M(P[T].it)}function F(P){var T,L,k=P.length,Y,Z,Q,te;for(L=0;L<k;L+=1){if(T=P[L],T.hasMask){var ee=T.masksProperties;for(Z=ee.length,Y=0;Y<Z;Y+=1)if(ee[Y].pt.k.i)ee[Y].pt.k.c=ee[Y].cl;else for(te=ee[Y].pt.k.length,Q=0;Q<te;Q+=1)ee[Y].pt.k[Q].s&&(ee[Y].pt.k[Q].s[0].c=ee[Y].cl),ee[Y].pt.k[Q].e&&(ee[Y].pt.k[Q].e[0].c=ee[Y].cl)}T.ty===4&&M(T.shapes)}}return function(P){if(C(j,P.v)&&(F(P.layers),P.assets)){var T,L=P.assets.length;for(T=0;T<L;T+=1)P.assets[T].layers&&F(P.assets[T].layers)}}}();function R(j){j.__complete||(B(j),D(j),I(j),N(j),O(j),E(j.layers,j.assets),u(j.chars,j.assets),j.__complete=!0)}function _(j){j.t.a.length===0&&"m"in j.t.p}var G={};return G.completeData=R,G.checkColors=B,G.checkChars=I,G.checkPathProperties=N,G.checkShapes=O,G.completeLayers=E,G}if(s.dataManager||(s.dataManager=m()),s.assetLoader||(s.assetLoader=function(){function E(y){var S=y.getResponseHeader("content-type");return S&&y.responseType==="json"&&S.indexOf("json")!==-1||y.response&&_typeof$5(y.response)==="object"?y.response:y.response&&typeof y.response=="string"?JSON.parse(y.response):y.responseText?JSON.parse(y.responseText):null}function u(y,S,b,x){var C,D=new XMLHttpRequest;try{D.responseType="json"}catch(I){}D.onreadystatechange=function(){if(D.readyState===4)if(D.status===200)C=E(D),b(C);else try{C=E(D),b(C)}catch(I){x&&x(I)}};try{D.open(["G","E","T"].join(""),y,!0)}catch(I){D.open(["G","E","T"].join(""),S+"/"+y,!0)}D.send()}return{load:u}}()),f.data.type==="loadAnimation")s.assetLoader.load(f.data.path,f.data.fullPath,function(E){s.dataManager.completeData(E),s.postMessage({id:f.data.id,payload:E,status:"success"})},function(){s.postMessage({id:f.data.id,status:"error"})});else if(f.data.type==="complete"){var g=f.data.animation;s.dataManager.completeData(g),s.postMessage({id:f.data.id,payload:g,status:"success"})}else f.data.type==="loadData"&&s.assetLoader.load(f.data.path,f.data.fullPath,function(E){s.postMessage({id:f.data.id,payload:E,status:"success"})},function(){s.postMessage({id:f.data.id,status:"error"})})}),a.onmessage=function(d){var f=d.data,m=f.id,g=t[m];t[m]=null,f.status==="success"?g.onComplete(f.payload):g.onError&&g.onError()})}function l(d,f){e+=1;var m="processId_"+e;return t[m]={onComplete:d,onError:f},m}function c(d,f,m){o();var g=l(f,m);a.postMessage({type:"loadAnimation",path:d,fullPath:window.location.origin+window.location.pathname,id:g})}function p(d,f,m){o();var g=l(f,m);a.postMessage({type:"loadData",path:d,fullPath:window.location.origin+window.location.pathname,id:g})}function A(d,f,m){o();var g=l(f,m);a.postMessage({type:"complete",animation:d,id:g})}return{loadAnimation:c,loadData:p,completeAnimation:A}}(),ImagePreloader=function(){var e=function(){var u=createTag("canvas");u.width=1,u.height=1;var y=u.getContext("2d");return y.fillStyle="rgba(0,0,0,0)",y.fillRect(0,0,1,1),u}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(u,y,S){var b="";if(u.e)b=u.p;else if(y){var x=u.p;x.indexOf("images/")!==-1&&(x=x.split("/")[1]),b=y+x}else b=S,b+=u.u?u.u:"",b+=u.p;return b}function n(u){var y=0,S=setInterval((function(){var b=u.getBBox();(b.width||y>500)&&(this._imageLoaded(),clearInterval(S)),y+=1}).bind(this),50)}function s(u){var y=a(u,this.assetsPath,this.path),S=createNS("image");isSafari?this.testImageLoaded(S):S.addEventListener("load",this._imageLoaded,!1),S.addEventListener("error",(function(){b.img=e,this._imageLoaded()}).bind(this),!1),S.setAttributeNS("http://www.w3.org/1999/xlink","href",y),this._elementHelper.append?this._elementHelper.append(S):this._elementHelper.appendChild(S);var b={img:S,assetData:u};return b}function i(u){var y=a(u,this.assetsPath,this.path),S=createTag("img");S.crossOrigin="anonymous",S.addEventListener("load",this._imageLoaded,!1),S.addEventListener("error",(function(){b.img=e,this._imageLoaded()}).bind(this),!1),S.src=y;var b={img:S,assetData:u};return b}function o(u){var y={assetData:u},S=a(u,this.assetsPath,this.path);return dataManager.loadData(S,(function(b){y.img=b,this._footageLoaded()}).bind(this),(function(){y.img={},this._footageLoaded()}).bind(this)),y}function l(u,y){this.imagesLoadedCb=y;var S,b=u.length;for(S=0;S<b;S+=1)u[S].layers||(!u[S].t||u[S].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(u[S]))):u[S].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(u[S]))))}function c(u){this.path=u||""}function p(u){this.assetsPath=u||""}function A(u){for(var y=0,S=this.images.length;y<S;){if(this.images[y].assetData===u)return this.images[y].img;y+=1}return null}function d(){this.imagesLoadedCb=null,this.images.length=0}function f(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(u,y){u==="svg"?(this._elementHelper=y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function E(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return E.prototype={loadAssets:l,setAssetsPath:p,setPath:c,loadedImages:f,loadedFootages:m,destroy:d,getAsset:A,createImgData:i,createImageData:s,imageLoaded:t,footageLoaded:r,setCacheType:g},E}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var a=this._cbs[t],n=0;n<a.length;n+=1)a[n](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),(function(){this.removeEventListener(t,r)}).bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var a=0,n=this._cbs[t].length;a<n;)this._cbs[t][a]===r&&(this._cbs[t].splice(a,1),a-=1,n-=1),a+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var r=t.split("\r\n"),a={},n,s=0,i=0;i<r.length;i+=1)n=r[i].split(":"),n.length===2&&(a[n[0]]=n[1].trim(),s+=1);if(s===0)throw new Error;return a}return function(t){for(var r=[],a=0;a<t.length;a+=1){var n=t[a],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(t[a].cm)}catch(i){try{s.payload=e(t[a].cm)}catch(o){s.payload={name:t[a].cm}}}r.push(s)}return r}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var a=0,n=this.compositions.length;a<n;){if(this.compositions[a].data&&this.compositions[a].data.nm===r)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,r){renderers[t]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(r){return typeof r}:_typeof$4=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},a=e.attributes;r.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",r.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";n==="false"?r.loop=!1:n==="true"?r.loop=!0:n!==""&&(r.loop=parseInt(n,10));var s=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;r.autoplay=s!=="false",r.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var i=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";i==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,a=t.length,n=e.layers,s,i=n.length;for(s=0;s<i;s+=1)for(r=0;r<a;){if(t[r].id===n[s].id){t[r]=n[s];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(a=e.assets.length,r=0;r<a;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,a=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,a)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if(t=this.markers[r],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!(r&&this.name!==r)){var a=Number(e);if(isNaN(a)){var n=this.getMarkerData(e);n&&this.goToAndStop(n.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!(r&&this.name!==r)){var a=Number(e);if(isNaN(a)){var n=this.getMarkerData(e);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(a,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,a=e.length;for(r=0;r<a;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{var a=this.renderer.getElementByPath(e);a.updateDocumentData(t,r)}catch(n){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,a=0,n=0,s=!0,i=!1;function o(M){for(var F=0,P=M.target;F<a;)t[F].animation===P&&(t.splice(F,1),F-=1,a-=1,P.isPaused||A()),F+=1}function l(M,F){if(!M)return null;for(var P=0;P<a;){if(t[P].elem===M&&t[P].elem!==null)return t[P].animation;P+=1}var T=new AnimationItem;return d(T,M),T.setData(M,F),T}function c(){var M,F=t.length,P=[];for(M=0;M<F;M+=1)P.push(t[M].animation);return P}function p(){n+=1,B()}function A(){n-=1}function d(M,F){M.addEventListener("destroy",o),M.addEventListener("_active",p),M.addEventListener("_idle",A),t.push({elem:F,animation:M}),a+=1}function f(M){var F=new AnimationItem;return d(F,null),F.setParams(M),F}function m(M,F){var P;for(P=0;P<a;P+=1)t[P].animation.setSpeed(M,F)}function g(M,F){var P;for(P=0;P<a;P+=1)t[P].animation.setDirection(M,F)}function E(M){var F;for(F=0;F<a;F+=1)t[F].animation.play(M)}function u(M){var F=M-r,P;for(P=0;P<a;P+=1)t[P].animation.advanceTime(F);r=M,n&&!i?window.requestAnimationFrame(u):s=!0}function y(M){r=M,window.requestAnimationFrame(u)}function S(M){var F;for(F=0;F<a;F+=1)t[F].animation.pause(M)}function b(M,F,P){var T;for(T=0;T<a;T+=1)t[T].animation.goToAndStop(M,F,P)}function x(M){var F;for(F=0;F<a;F+=1)t[F].animation.stop(M)}function C(M){var F;for(F=0;F<a;F+=1)t[F].animation.togglePause(M)}function D(M){var F;for(F=a-1;F>=0;F-=1)t[F].animation.destroy(M)}function I(M,F,P){var T=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),L,k=T.length;for(L=0;L<k;L+=1)P&&T[L].setAttribute("data-bm-type",P),l(T[L],M);if(F&&k===0){P||(P="svg");var Y=document.getElementsByTagName("body")[0];Y.innerText="";var Z=createTag("div");Z.style.width="100%",Z.style.height="100%",Z.setAttribute("data-bm-type",P),Y.appendChild(Z),l(Z,M)}}function N(){var M;for(M=0;M<a;M+=1)t[M].animation.resize()}function B(){!i&&n&&s&&(window.requestAnimationFrame(y),s=!1)}function O(){i=!0}function R(){i=!1,B()}function _(M,F){var P;for(P=0;P<a;P+=1)t[P].animation.setVolume(M,F)}function G(M){var F;for(F=0;F<a;F+=1)t[F].animation.mute(M)}function j(M){var F;for(F=0;F<a;F+=1)t[F].animation.unmute(M)}return e.registerAnimation=l,e.loadAnimation=f,e.setSpeed=m,e.setDirection=g,e.play=E,e.pause=S,e.stop=x,e.togglePause=C,e.searchAnimations=I,e.resize=N,e.goToAndStop=b,e.destroy=D,e.freeze=O,e.unfreeze=R,e.setVolume=_,e.mute=G,e.unmute=j,e.getRegisteredAnimations=c,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var t={};function r(y,S,b,x,C){var D=C||("bez_"+y+"_"+S+"_"+b+"_"+x).replace(/\./g,"p");if(t[D])return t[D];var I=new u([y,S,b,x]);return t[D]=I,I}var a=4,n=.001,s=1e-7,i=10,o=11,l=1/(o-1),c=typeof Float32Array=="function";function p(y,S){return 1-3*S+3*y}function A(y,S){return 3*S-6*y}function d(y){return 3*y}function f(y,S,b){return((p(S,b)*y+A(S,b))*y+d(S))*y}function m(y,S,b){return 3*p(S,b)*y*y+2*A(S,b)*y+d(S)}function g(y,S,b,x,C){var D,I,N=0;do I=S+(b-S)/2,D=f(I,x,C)-y,D>0?b=I:S=I;while(Math.abs(D)>s&&++N<i);return I}function E(y,S,b,x){for(var C=0;C<a;++C){var D=m(S,b,x);if(D===0)return S;var I=f(S,b,x)-y;S-=I/D}return S}function u(y){this._p=y,this._mSampleValues=c?new Float32Array(o):new Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(S){var b=this._p[0],x=this._p[1],C=this._p[2],D=this._p[3];return this._precomputed||this._precompute(),b===x&&C===D?S:S===0?0:S===1?1:f(this._getTForX(S),x,D)},_precompute:function(){var S=this._p[0],b=this._p[1],x=this._p[2],C=this._p[3];this._precomputed=!0,(S!==b||x!==C)&&this._calcSampleValues()},_calcSampleValues:function(){for(var S=this._p[0],b=this._p[2],x=0;x<o;++x)this._mSampleValues[x]=f(x*l,S,b)},_getTForX:function(S){for(var b=this._p[0],x=this._p[2],C=this._mSampleValues,D=0,I=1,N=o-1;I!==N&&C[I]<=S;++I)D+=l;--I;var B=(S-C[I])/(C[I+1]-C[I]),O=D+B*l,R=m(O,b,x);return R>=n?E(S,O,b,x):R===0?O:g(S,D,D+l,b,x)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,r){var a=0,n=e,s=createSizedArray(n),i={newElement:o,release:l};function o(){var c;return a?(a-=1,c=s[a]):c=t(),c}function l(c){a===n&&(s=pooling.double(s),n*=2),r&&r(c),s[a]=c,a+=1}return i}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(r){var a,n=r.lengths.length;for(a=0;a<n;a+=1)bezierLengthPool.release(r.lengths[a]);r.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(d,f,m,g,E,u){var y=d*g+f*E+m*u-E*g-u*d-m*f;return y>-.001&&y<.001}function r(d,f,m,g,E,u,y,S,b){if(m===0&&u===0&&b===0)return t(d,f,g,E,y,S);var x=e.sqrt(e.pow(g-d,2)+e.pow(E-f,2)+e.pow(u-m,2)),C=e.sqrt(e.pow(y-d,2)+e.pow(S-f,2)+e.pow(b-m,2)),D=e.sqrt(e.pow(y-g,2)+e.pow(S-E,2)+e.pow(b-u,2)),I;return x>C?x>D?I=x-C-D:I=D-C-x:D>C?I=D-C-x:I=C-x-D,I>-1e-4&&I<1e-4}var a=function(){return function(d,f,m,g){var E=getDefaultCurveSegments(),u,y,S,b,x,C=0,D,I=[],N=[],B=bezierLengthPool.newElement();for(S=m.length,u=0;u<E;u+=1){for(x=u/(E-1),D=0,y=0;y<S;y+=1)b=bmPow(1-x,3)*d[y]+3*bmPow(1-x,2)*x*m[y]+3*(1-x)*bmPow(x,2)*g[y]+bmPow(x,3)*f[y],I[y]=b,N[y]!==null&&(D+=bmPow(I[y]-N[y],2)),N[y]=I[y];D&&(D=bmSqrt(D),C+=D),B.percents[u]=x,B.lengths[u]=C}return B.addedLength=C,B}}();function n(d){var f=segmentsLengthPool.newElement(),m=d.c,g=d.v,E=d.o,u=d.i,y,S=d._length,b=f.lengths,x=0;for(y=0;y<S-1;y+=1)b[y]=a(g[y],g[y+1],E[y],u[y+1]),x+=b[y].addedLength;return m&&S&&(b[y]=a(g[y],g[0],E[y],u[0]),x+=b[y].addedLength),f.totalLength=x,f}function s(d){this.segmentLength=0,this.points=new Array(d)}function i(d,f){this.partialLength=d,this.point=f}var o=function(){var d={};return function(f,m,g,E){var u=(f[0]+"_"+f[1]+"_"+m[0]+"_"+m[1]+"_"+g[0]+"_"+g[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!d[u]){var y=getDefaultCurveSegments(),S,b,x,C,D,I=0,N,B,O=null;f.length===2&&(f[0]!==m[0]||f[1]!==m[1])&&t(f[0],f[1],m[0],m[1],f[0]+g[0],f[1]+g[1])&&t(f[0],f[1],m[0],m[1],m[0]+E[0],m[1]+E[1])&&(y=2);var R=new s(y);for(x=g.length,S=0;S<y;S+=1){for(B=createSizedArray(x),D=S/(y-1),N=0,b=0;b<x;b+=1)C=bmPow(1-D,3)*f[b]+3*bmPow(1-D,2)*D*(f[b]+g[b])+3*(1-D)*bmPow(D,2)*(m[b]+E[b])+bmPow(D,3)*m[b],B[b]=C,O!==null&&(N+=bmPow(B[b]-O[b],2));N=bmSqrt(N),I+=N,R.points[S]=new i(N,B),O=B}R.segmentLength=I,d[u]=R}return d[u]}}();function l(d,f){var m=f.percents,g=f.lengths,E=m.length,u=bmFloor((E-1)*d),y=d*f.addedLength,S=0;if(u===E-1||u===0||y===g[u])return m[u];for(var b=g[u]>y?-1:1,x=!0;x;)if(g[u]<=y&&g[u+1]>y?(S=(y-g[u])/(g[u+1]-g[u]),x=!1):u+=b,u<0||u>=E-1){if(u===E-1)return m[u];x=!1}return m[u]+(m[u+1]-m[u])*S}function c(d,f,m,g,E,u){var y=l(E,u),S=1-y,b=e.round((S*S*S*d[0]+(y*S*S+S*y*S+S*S*y)*m[0]+(y*y*S+S*y*y+y*S*y)*g[0]+y*y*y*f[0])*1e3)/1e3,x=e.round((S*S*S*d[1]+(y*S*S+S*y*S+S*S*y)*m[1]+(y*y*S+S*y*y+y*S*y)*g[1]+y*y*y*f[1])*1e3)/1e3;return[b,x]}var p=createTypedArray("float32",8);function A(d,f,m,g,E,u,y){E<0?E=0:E>1&&(E=1);var S=l(E,y);u=u>1?1:u;var b=l(u,y),x,C=d.length,D=1-S,I=1-b,N=D*D*D,B=S*D*D*3,O=S*S*D*3,R=S*S*S,_=D*D*I,G=S*D*I+D*S*I+D*D*b,j=S*S*I+D*S*b+S*D*b,M=S*S*b,F=D*I*I,P=S*I*I+D*b*I+D*I*b,T=S*b*I+D*b*b+S*I*b,L=S*b*b,k=I*I*I,Y=b*I*I+I*b*I+I*I*b,Z=b*b*I+I*b*b+b*I*b,Q=b*b*b;for(x=0;x<C;x+=1)p[x*4]=e.round((N*d[x]+B*m[x]+O*g[x]+R*f[x])*1e3)/1e3,p[x*4+1]=e.round((_*d[x]+G*m[x]+j*g[x]+M*f[x])*1e3)/1e3,p[x*4+2]=e.round((F*d[x]+P*m[x]+T*g[x]+L*f[x])*1e3)/1e3,p[x*4+3]=e.round((k*d[x]+Y*m[x]+Z*g[x]+Q*f[x])*1e3)/1e3;return p}return{getSegmentsLength:n,getNewSegment:A,getPointInSegment:c,buildBezierData:o,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,a;this.propType==="multidimensional"&&(a=createTypedArray("float32",this.pv.length));for(var n=t.lastIndex,s=n,i=this.keyframes.length-1,o=!0,l,c,p;o;){if(l=this.keyframes[s],c=this.keyframes[s+1],s===i-1&&e>=c.t-r){l.h&&(l=c),n=0;break}if(c.t-r>e){n=s;break}s<i-1?s+=1:(n=0,o=!1)}p=this.keyframesMetadata[s]||{};var A,d,f,m,g,E,u=c.t-r,y=l.t-r,S;if(l.to){p.bezierData||(p.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var b=p.bezierData;if(e>=u||e<y){var x=e>=u?b.points.length-1:0;for(d=b.points[x].point.length,A=0;A<d;A+=1)a[A]=b.points[x].point[A]}else{p.__fnct?E=p.__fnct:(E=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,p.__fnct=E),f=E((e-y)/(u-y));var C=b.segmentLength*f,D,I=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastAddedLength:0;for(g=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastPoint:0,o=!0,m=b.points.length;o;){if(I+=b.points[g].partialLength,C===0||f===0||g===b.points.length-1){for(d=b.points[g].point.length,A=0;A<d;A+=1)a[A]=b.points[g].point[A];break}else if(C>=I&&C<I+b.points[g+1].partialLength){for(D=(C-I)/b.points[g+1].partialLength,d=b.points[g].point.length,A=0;A<d;A+=1)a[A]=b.points[g].point[A]+(b.points[g+1].point[A]-b.points[g].point[A])*D;break}g<m-1?g+=1:o=!1}t._lastPoint=g,t._lastAddedLength=I-b.points[g].partialLength,t._lastKeyframeIndex=s}}else{var N,B,O,R,_;if(i=l.s.length,S=c.s||l.e,this.sh&&l.h!==1)if(e>=u)a[0]=S[0],a[1]=S[1],a[2]=S[2];else if(e<=y)a[0]=l.s[0],a[1]=l.s[1],a[2]=l.s[2];else{var G=createQuaternion(l.s),j=createQuaternion(S),M=(e-y)/(u-y);quaternionToEuler(a,slerp(G,j,M))}else for(s=0;s<i;s+=1)l.h!==1&&(e>=u?f=1:e<y?f=0:(l.o.x.constructor===Array?(p.__fnct||(p.__fnct=[]),p.__fnct[s]?E=p.__fnct[s]:(N=l.o.x[s]===void 0?l.o.x[0]:l.o.x[s],B=l.o.y[s]===void 0?l.o.y[0]:l.o.y[s],O=l.i.x[s]===void 0?l.i.x[0]:l.i.x[s],R=l.i.y[s]===void 0?l.i.y[0]:l.i.y[s],E=BezierFactory.getBezierEasing(N,B,O,R).get,p.__fnct[s]=E)):p.__fnct?E=p.__fnct:(N=l.o.x,B=l.o.y,O=l.i.x,R=l.i.y,E=BezierFactory.getBezierEasing(N,B,O,R).get,l.keyframeMetadata=E),f=E((e-y)/(u-y)))),S=c.s||l.e,_=l.h===1?l.s[s]:l.s[s]+(S[s]-l.s[s])*f,this.propType==="multidimensional"?a[s]=_:a=_}return t.lastIndex=n,a}function slerp(e,t,r){var a=[],n=e[0],s=e[1],i=e[2],o=e[3],l=t[0],c=t[1],p=t[2],A=t[3],d,f,m,g,E;return f=n*l+s*c+i*p+o*A,f<0&&(f=-f,l=-l,c=-c,p=-p,A=-A),1-f>1e-6?(d=Math.acos(f),m=Math.sin(d),g=Math.sin((1-r)*d)/m,E=Math.sin(r*d)/m):(g=1-r,E=r),a[0]=g*n+E*l,a[1]=g*s+E*c,a[2]=g*i+E*p,a[3]=g*o+E*A,a}function quaternionToEuler(e,t){var r=t[0],a=t[1],n=t[2],s=t[3],i=Math.atan2(2*a*s-2*r*n,1-2*a*a-2*n*n),o=Math.asin(2*r*a+2*n*s),l=Math.atan2(2*r*s-2*a*n,1-2*r*r-2*n*n);e[0]=i/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,a=e[2]*degToRads,n=Math.cos(t/2),s=Math.cos(r/2),i=Math.cos(a/2),o=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(a/2),p=n*s*i-o*l*c,A=o*l*i+n*s*c,d=o*s*i+n*l*c,f=n*l*i-o*s*c;return[A,d,f,p]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,a=this.v.length;r<a;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,a){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,a){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n,s=t.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),n=0;n<s;n+=1)this.v[n]=t.k[n]*this.mult,this.pv[n]=t.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,a){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=a,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,a){this.propType="multidimensional";var n,s=t.k.length,i,o,l,c;for(n=0;n<s-1;n+=1)t.k[n].to&&t.k[n].s&&t.k[n+1]&&t.k[n+1].s&&(i=t.k[n].s,o=t.k[n+1].s,l=t.k[n].to,c=t.k[n].ti,(i.length===2&&!(i[0]===o[0]&&i[1]===o[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],i[0]+l[0],i[1]+l[1])&&bez.pointOnLine2D(i[0],i[1],o[0],o[1],o[0]+c[0],o[1]+c[1])||i.length===3&&!(i[0]===o[0]&&i[1]===o[1]&&i[2]===o[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],i[0]+l[0],i[1]+l[1],i[2]+l[2])&&bez.pointOnLine3D(i[0],i[1],i[2],o[0],o[1],o[2],o[0]+c[0],o[1]+c[1],o[2]+c[2]))&&(t.k[n].to=null,t.k[n].ti=null),i[0]===o[0]&&i[1]===o[1]&&l[0]===0&&l[1]===0&&c[0]===0&&c[1]===0&&(i.length===2||i[2]===o[2]&&l[2]===0&&c[2]===0)&&(t.k[n].to=null,t.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=a,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var p=t.k[0].s.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),n=0;n<p;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=addEffect}var PropertyFactory=function(){function e(r,a,n,s,i){a.sid&&(a=r.globalData.slotManager.getProp(a));var o;if(!a.k.length)o=new ValueProperty(r,a,s,i);else if(typeof a.k[0]=="number")o=new MultiDimensionalProperty(r,a,s,i);else switch(n){case 0:o=new KeyframedValueProperty(r,a,s,i);break;case 1:o=new KeyframedMultidimensionalProperty(r,a,s,i);break}return o.effectsSequence.length&&i.addDynamicProperty(o),o}var t={getProp:e};return t}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,a,n){var s;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[];break}(!s[a]||s[a]&&!n)&&(s[a]=pointPool.newElement()),s[a][0]=e,s[a][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,a,n,s,i,o){this.setXYAt(e,t,"v",i,o),this.setXYAt(r,a,"o",i,o),this.setXYAt(n,s,"i",i,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,a=this.i,n=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],a[0][0],a[0][1],r[0][0],r[0][1],0,!1),n=1);var s=this._length-1,i=this._length,o;for(o=n;o<i;o+=1)e.setTripleAt(t[s][0],t[s][1],a[s][0],a[s][1],r[s][0],r[s][1],o,!1),s-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(n){var s=n._length,i;for(i=0;i<s;i+=1)pointPool.release(n.v[i]),pointPool.release(n.i[i]),pointPool.release(n.o[i]),n.v[i]=null,n.i[i]=null,n.o[i]=null;n._length=0,n.c=!1}function r(n){var s=a.newElement(),i,o=n._length===void 0?n.v.length:n._length;for(s.setLength(o),s.c=n.c,i=0;i<o;i+=1)s.setTripleAt(n.v[i][0],n.v[i][1],n.o[i][0],n.o[i][1],n.i[i][0],n.i[i][1],i);return s}var a=poolFactory(4,e,t);return a.clone=r,a}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:n,release:s},t=0,r=4,a=createSizedArray(r);function n(){var i;return t?(t-=1,i=a[t]):i=new ShapeCollection,i}function s(i){var o,l=i._length;for(o=0;o<l;o+=1)shapePool.release(i.shapes[o]);i._length=0,t===r&&(a=pooling.double(a),r*=2),a[t]=i,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(u,y,S){var b=S.lastIndex,x,C,D,I,N,B,O,R,_,G=this.keyframes;if(u<G[0].t-this.offsetTime)x=G[0].s[0],D=!0,b=0;else if(u>=G[G.length-1].t-this.offsetTime)x=G[G.length-1].s?G[G.length-1].s[0]:G[G.length-2].e[0],D=!0;else{for(var j=b,M=G.length-1,F=!0,P,T,L;F&&(P=G[j],T=G[j+1],!(T.t-this.offsetTime>u));)j<M-1?j+=1:F=!1;if(L=this.keyframesMetadata[j]||{},D=P.h===1,b=j,!D){if(u>=T.t-this.offsetTime)R=1;else if(u<P.t-this.offsetTime)R=0;else{var k;L.__fnct?k=L.__fnct:(k=BezierFactory.getBezierEasing(P.o.x,P.o.y,P.i.x,P.i.y).get,L.__fnct=k),R=k((u-(P.t-this.offsetTime))/(T.t-this.offsetTime-(P.t-this.offsetTime)))}C=T.s?T.s[0]:P.e[0]}x=P.s[0]}for(B=y._length,O=x.i[0].length,S.lastIndex=b,I=0;I<B;I+=1)for(N=0;N<O;N+=1)_=D?x.i[I][N]:x.i[I][N]+(C.i[I][N]-x.i[I][N])*R,y.i[I][N]=_,_=D?x.o[I][N]:x.o[I][N]+(C.o[I][N]-x.o[I][N])*R,y.o[I][N]=_,_=D?x.v[I][N]:x.v[I][N]+(C.v[I][N]-x.v[I][N])*R,y.v[I][N]=_}function r(){var u=this.comp.renderedFrame-this.offsetTime,y=this.keyframes[0].t-this.offsetTime,S=this.keyframes[this.keyframes.length-1].t-this.offsetTime,b=this._caching.lastFrame;return b!==e&&(b<y&&u<y||b>S&&u>S)||(this._caching.lastIndex=b<u?this._caching.lastIndex:0,this.interpolateShape(u,this.pv,this._caching)),this._caching.lastFrame=u,this.pv}function a(){this.paths=this.localShapeCollection}function n(u,y){if(u._length!==y._length||u.c!==y.c)return!1;var S,b=u._length;for(S=0;S<b;S+=1)if(u.v[S][0]!==y.v[S][0]||u.v[S][1]!==y.v[S][1]||u.o[S][0]!==y.o[S][0]||u.o[S][1]!==y.o[S][1]||u.i[S][0]!==y.i[S][0]||u.i[S][1]!==y.i[S][1])return!1;return!0}function s(u){n(this.v,u)||(this.v=shapePool.clone(u),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var u;this.kf?u=this.pv:this.data.ks?u=this.data.ks.k:u=this.data.pt.k;var y,S=this.effectsSequence.length;for(y=0;y<S;y+=1)u=this.effectsSequence[y](u);this.setVValue(u),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(u,y,S){this.propType="shape",this.comp=u.comp,this.container=u,this.elem=u,this.data=y,this.k=!1,this.kf=!1,this._mdf=!1;var b=S===3?y.pt.k:y.ks.k;this.v=shapePool.clone(b),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function l(u){this.effectsSequence.push(u),this.container.addDynamicProperty(this)}o.prototype.interpolateShape=t,o.prototype.getValue=i,o.prototype.setVValue=s,o.prototype.addEffect=l;function c(u,y,S){this.propType="shape",this.comp=u.comp,this.elem=u,this.container=u,this.offsetTime=u.data.st,this.keyframes=S===3?y.pt.k:y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var b=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,b),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}c.prototype.getValue=i,c.prototype.interpolateShape=t,c.prototype.setVValue=s,c.prototype.addEffect=l;var p=function(){var u=roundCorner;function y(S,b){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=b.d,this.elem=S,this.comp=S.comp,this.frameId=-1,this.initDynamicPropertyContainer(S),this.p=PropertyFactory.getProp(S,b.p,1,0,this),this.s=PropertyFactory.getProp(S,b.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return y.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var b=this.p.v[0],x=this.p.v[1],C=this.s.v[0]/2,D=this.s.v[1]/2,I=this.d!==3,N=this.v;N.v[0][0]=b,N.v[0][1]=x-D,N.v[1][0]=I?b+C:b-C,N.v[1][1]=x,N.v[2][0]=b,N.v[2][1]=x+D,N.v[3][0]=I?b-C:b+C,N.v[3][1]=x,N.i[0][0]=I?b-C*u:b+C*u,N.i[0][1]=x-D,N.i[1][0]=I?b+C:b-C,N.i[1][1]=x-D*u,N.i[2][0]=I?b+C*u:b-C*u,N.i[2][1]=x+D,N.i[3][0]=I?b-C:b+C,N.i[3][1]=x+D*u,N.o[0][0]=I?b+C*u:b-C*u,N.o[0][1]=x-D,N.o[1][0]=I?b+C:b-C,N.o[1][1]=x+D*u,N.o[2][0]=I?b-C*u:b+C*u,N.o[2][1]=x+D,N.o[3][0]=I?b-C:b+C,N.o[3][1]=x-D*u}},extendPrototype([DynamicPropertyContainer],y),y}(),A=function(){function u(y,S){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=y,this.comp=y.comp,this.data=S,this.frameId=-1,this.d=S.d,this.initDynamicPropertyContainer(y),S.sy===1?(this.ir=PropertyFactory.getProp(y,S.ir,0,0,this),this.is=PropertyFactory.getProp(y,S.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(y,S.pt,0,0,this),this.p=PropertyFactory.getProp(y,S.p,1,0,this),this.r=PropertyFactory.getProp(y,S.r,0,degToRads,this),this.or=PropertyFactory.getProp(y,S.or,0,0,this),this.os=PropertyFactory.getProp(y,S.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return u.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var S=Math.floor(this.pt.v)*2,b=Math.PI*2/S,x=!0,C=this.or.v,D=this.ir.v,I=this.os.v,N=this.is.v,B=2*Math.PI*C/(S*2),O=2*Math.PI*D/(S*2),R,_,G,j,M=-Math.PI/2;M+=this.r.v;var F=this.data.d===3?-1:1;for(this.v._length=0,R=0;R<S;R+=1){_=x?C:D,G=x?I:N,j=x?B:O;var P=_*Math.cos(M),T=_*Math.sin(M),L=P===0&&T===0?0:T/Math.sqrt(P*P+T*T),k=P===0&&T===0?0:-P/Math.sqrt(P*P+T*T);P+=+this.p.v[0],T+=+this.p.v[1],this.v.setTripleAt(P,T,P-L*j*G*F,T-k*j*G*F,P+L*j*G*F,T+k*j*G*F,R,!0),x=!x,M+=b*F}},convertPolygonToPath:function(){var S=Math.floor(this.pt.v),b=Math.PI*2/S,x=this.or.v,C=this.os.v,D=2*Math.PI*x/(S*4),I,N=-Math.PI*.5,B=this.data.d===3?-1:1;for(N+=this.r.v,this.v._length=0,I=0;I<S;I+=1){var O=x*Math.cos(N),R=x*Math.sin(N),_=O===0&&R===0?0:R/Math.sqrt(O*O+R*R),G=O===0&&R===0?0:-O/Math.sqrt(O*O+R*R);O+=+this.p.v[0],R+=+this.p.v[1],this.v.setTripleAt(O,R,O-_*D*C*B,R-G*D*C*B,O+_*D*C*B,R+G*D*C*B,I,!0),N+=b*B}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],u),u}(),d=function(){function u(y,S){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=y,this.comp=y.comp,this.frameId=-1,this.d=S.d,this.initDynamicPropertyContainer(y),this.p=PropertyFactory.getProp(y,S.p,1,0,this),this.s=PropertyFactory.getProp(y,S.s,1,0,this),this.r=PropertyFactory.getProp(y,S.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return u.prototype={convertRectToPath:function(){var S=this.p.v[0],b=this.p.v[1],x=this.s.v[0]/2,C=this.s.v[1]/2,D=bmMin(x,C,this.r.v),I=D*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(S+x,b-C+D,S+x,b-C+D,S+x,b-C+I,0,!0),this.v.setTripleAt(S+x,b+C-D,S+x,b+C-I,S+x,b+C-D,1,!0),D!==0?(this.v.setTripleAt(S+x-D,b+C,S+x-D,b+C,S+x-I,b+C,2,!0),this.v.setTripleAt(S-x+D,b+C,S-x+I,b+C,S-x+D,b+C,3,!0),this.v.setTripleAt(S-x,b+C-D,S-x,b+C-D,S-x,b+C-I,4,!0),this.v.setTripleAt(S-x,b-C+D,S-x,b-C+I,S-x,b-C+D,5,!0),this.v.setTripleAt(S-x+D,b-C,S-x+D,b-C,S-x+I,b-C,6,!0),this.v.setTripleAt(S+x-D,b-C,S+x-I,b-C,S+x-D,b-C,7,!0)):(this.v.setTripleAt(S-x,b+C,S-x+I,b+C,S-x,b+C,2),this.v.setTripleAt(S-x,b-C,S-x,b-C+I,S-x,b-C,3))):(this.v.setTripleAt(S+x,b-C+D,S+x,b-C+I,S+x,b-C+D,0,!0),D!==0?(this.v.setTripleAt(S+x-D,b-C,S+x-D,b-C,S+x-I,b-C,1,!0),this.v.setTripleAt(S-x+D,b-C,S-x+I,b-C,S-x+D,b-C,2,!0),this.v.setTripleAt(S-x,b-C+D,S-x,b-C+D,S-x,b-C+I,3,!0),this.v.setTripleAt(S-x,b+C-D,S-x,b+C-I,S-x,b+C-D,4,!0),this.v.setTripleAt(S-x+D,b+C,S-x+D,b+C,S-x+I,b+C,5,!0),this.v.setTripleAt(S+x-D,b+C,S+x-I,b+C,S+x-D,b+C,6,!0),this.v.setTripleAt(S+x,b+C-D,S+x,b+C-D,S+x,b+C-I,7,!0)):(this.v.setTripleAt(S-x,b-C,S-x+I,b-C,S-x,b-C,1,!0),this.v.setTripleAt(S-x,b+C,S-x,b+C-I,S-x,b+C,2,!0),this.v.setTripleAt(S+x,b+C,S+x-I,b+C,S+x,b+C,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],u),u}();function f(u,y,S){var b;if(S===3||S===4){var x=S===3?y.pt:y.ks,C=x.k;C.length?b=new c(u,y,S):b=new o(u,y,S)}else S===5?b=new d(u,y):S===6?b=new p(u,y):S===7&&(b=new A(u,y));return b.k&&u.addDynamicProperty(b),b}function m(){return o}function g(){return c}var E={};return E.getShapeProp=f,E.getConstructorFunction=m,E.getKeyframedConstructorFunction=g,E}();/*!
  2. Transformation Matrix v2.0
  3. (c) Epistemex 2014-2015
  4. www.epistemex.com
  5. By Ken Fyrstenberg
  6. Contributions by leeoniya.
  7. License: MIT, header required.
  8. */var Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,a=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(P){if(P===0)return this;var T=e(P),L=t(P);return this._t(T,-L,0,0,L,T,0,0,0,0,1,0,0,0,0,1)}function i(P){if(P===0)return this;var T=e(P),L=t(P);return this._t(1,0,0,0,0,T,-L,0,0,L,T,0,0,0,0,1)}function o(P){if(P===0)return this;var T=e(P),L=t(P);return this._t(T,0,L,0,0,1,0,0,-L,0,T,0,0,0,0,1)}function l(P){if(P===0)return this;var T=e(P),L=t(P);return this._t(T,-L,0,0,L,T,0,0,0,0,1,0,0,0,0,1)}function c(P,T){return this._t(1,T,P,1,0,0)}function p(P,T){return this.shear(r(P),r(T))}function A(P,T){var L=e(T),k=t(T);return this._t(L,k,0,0,-k,L,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(P),1,0,0,0,0,1,0,0,0,0,1)._t(L,-k,0,0,k,L,0,0,0,0,1,0,0,0,0,1)}function d(P,T,L){return!L&&L!==0&&(L=1),P===1&&T===1&&L===1?this:this._t(P,0,0,0,0,T,0,0,0,0,L,0,0,0,0,1)}function f(P,T,L,k,Y,Z,Q,te,ee,ne,oe,me,he,ue,fe,ce){return this.props[0]=P,this.props[1]=T,this.props[2]=L,this.props[3]=k,this.props[4]=Y,this.props[5]=Z,this.props[6]=Q,this.props[7]=te,this.props[8]=ee,this.props[9]=ne,this.props[10]=oe,this.props[11]=me,this.props[12]=he,this.props[13]=ue,this.props[14]=fe,this.props[15]=ce,this}function m(P,T,L){return L=L||0,P!==0||T!==0||L!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,P,T,L,1):this}function g(P,T,L,k,Y,Z,Q,te,ee,ne,oe,me,he,ue,fe,ce){var q=this.props;if(P===1&&T===0&&L===0&&k===0&&Y===0&&Z===1&&Q===0&&te===0&&ee===0&&ne===0&&oe===1&&me===0)return q[12]=q[12]*P+q[15]*he,q[13]=q[13]*Z+q[15]*ue,q[14]=q[14]*oe+q[15]*fe,q[15]*=ce,this._identityCalculated=!1,this;var ye=q[0],ve=q[1],Ee=q[2],Te=q[3],De=q[4],ge=q[5],Ae=q[6],Ie=q[7],we=q[8],Ce=q[9],Me=q[10],xe=q[11],Ne=q[12],Ve=q[13],U=q[14],H=q[15];return q[0]=ye*P+ve*Y+Ee*ee+Te*he,q[1]=ye*T+ve*Z+Ee*ne+Te*ue,q[2]=ye*L+ve*Q+Ee*oe+Te*fe,q[3]=ye*k+ve*te+Ee*me+Te*ce,q[4]=De*P+ge*Y+Ae*ee+Ie*he,q[5]=De*T+ge*Z+Ae*ne+Ie*ue,q[6]=De*L+ge*Q+Ae*oe+Ie*fe,q[7]=De*k+ge*te+Ae*me+Ie*ce,q[8]=we*P+Ce*Y+Me*ee+xe*he,q[9]=we*T+Ce*Z+Me*ne+xe*ue,q[10]=we*L+Ce*Q+Me*oe+xe*fe,q[11]=we*k+Ce*te+Me*me+xe*ce,q[12]=Ne*P+Ve*Y+U*ee+H*he,q[13]=Ne*T+Ve*Z+U*ne+H*ue,q[14]=Ne*L+Ve*Q+U*oe+H*fe,q[15]=Ne*k+Ve*te+U*me+H*ce,this._identityCalculated=!1,this}function E(P){var T=P.props;return this.transform(T[0],T[1],T[2],T[3],T[4],T[5],T[6],T[7],T[8],T[9],T[10],T[11],T[12],T[13],T[14],T[15])}function u(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function y(P){for(var T=0;T<16;){if(P.props[T]!==this.props[T])return!1;T+=1}return!0}function S(P){var T;for(T=0;T<16;T+=1)P.props[T]=this.props[T];return P}function b(P){var T;for(T=0;T<16;T+=1)this.props[T]=P[T]}function x(P,T,L){return{x:P*this.props[0]+T*this.props[4]+L*this.props[8]+this.props[12],y:P*this.props[1]+T*this.props[5]+L*this.props[9]+this.props[13],z:P*this.props[2]+T*this.props[6]+L*this.props[10]+this.props[14]}}function C(P,T,L){return P*this.props[0]+T*this.props[4]+L*this.props[8]+this.props[12]}function D(P,T,L){return P*this.props[1]+T*this.props[5]+L*this.props[9]+this.props[13]}function I(P,T,L){return P*this.props[2]+T*this.props[6]+L*this.props[10]+this.props[14]}function N(){var P=this.props[0]*this.props[5]-this.props[1]*this.props[4],T=this.props[5]/P,L=-this.props[1]/P,k=-this.props[4]/P,Y=this.props[0]/P,Z=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/P,Q=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/P,te=new Matrix;return te.props[0]=T,te.props[1]=L,te.props[4]=k,te.props[5]=Y,te.props[12]=Z,te.props[13]=Q,te}function B(P){var T=this.getInverseMatrix();return T.applyToPointArray(P[0],P[1],P[2]||0)}function O(P){var T,L=P.length,k=[];for(T=0;T<L;T+=1)k[T]=B(P[T]);return k}function R(P,T,L){var k=createTypedArray("float32",6);if(this.isIdentity())k[0]=P[0],k[1]=P[1],k[2]=T[0],k[3]=T[1],k[4]=L[0],k[5]=L[1];else{var Y=this.props[0],Z=this.props[1],Q=this.props[4],te=this.props[5],ee=this.props[12],ne=this.props[13];k[0]=P[0]*Y+P[1]*Q+ee,k[1]=P[0]*Z+P[1]*te+ne,k[2]=T[0]*Y+T[1]*Q+ee,k[3]=T[0]*Z+T[1]*te+ne,k[4]=L[0]*Y+L[1]*Q+ee,k[5]=L[0]*Z+L[1]*te+ne}return k}function _(P,T,L){var k;return this.isIdentity()?k=[P,T,L]:k=[P*this.props[0]+T*this.props[4]+L*this.props[8]+this.props[12],P*this.props[1]+T*this.props[5]+L*this.props[9]+this.props[13],P*this.props[2]+T*this.props[6]+L*this.props[10]+this.props[14]],k}function G(P,T){if(this.isIdentity())return P+","+T;var L=this.props;return Math.round((P*L[0]+T*L[4]+L[12])*100)/100+","+Math.round((P*L[1]+T*L[5]+L[13])*100)/100}function j(){for(var P=0,T=this.props,L="matrix3d(",k=1e4;P<16;)L+=a(T[P]*k)/k,L+=P===15?")":",",P+=1;return L}function M(P){var T=1e4;return P<1e-6&&P>0||P>-1e-6&&P<0?a(P*T)/T:P}function F(){var P=this.props,T=M(P[0]),L=M(P[1]),k=M(P[4]),Y=M(P[5]),Z=M(P[12]),Q=M(P[13]);return"matrix("+T+","+L+","+k+","+Y+","+Z+","+Q+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=i,this.rotateY=o,this.rotateZ=l,this.skew=p,this.skewFromAxis=A,this.shear=c,this.scale=d,this.setTransform=f,this.translate=m,this.transform=g,this.multiply=E,this.applyToPoint=x,this.applyToX=C,this.applyToY=D,this.applyToZ=I,this.applyToPointArray=_,this.applyToTriplePoints=R,this.applyToPointStringified=G,this.toCSS=j,this.to2dCSS=F,this.clone=S,this.cloneFromProps=b,this.equals=y,this.inversePoints=O,this.inversePoint=B,this.getInverseMatrix=N,this._t=this.transform,this.isIdentity=u,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var a=t[r].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};e.registerModifier=r,e.getModifier=a;function r(n,s){t[n]||(t[n]=s)}function a(n,s,i){return new t[n](s,i)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,a,n){var s=[];t<=1?s.push({s:e,e:t}):e>=1?s.push({s:e-1,e:t-1}):(s.push({s:e,e:1}),s.push({s:0,e:t-1}));var i=[],o,l=s.length,c;for(o=0;o<l;o+=1)if(c=s[o],!(c.e*n<a||c.s*n>a+r)){var p,A;c.s*n<=a?p=0:p=(c.s*n-a)/r,c.e*n>=a+r?A=1:A=(c.e*n-a)/r,i.push([p,A])}return i.length||i.push([0,0]),i},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?t=1+a:this.s.v<0?t=0+a:t=this.s.v+a,this.e.v>1?r=1+a:this.e.v<0?r=0+a:r=this.e.v+a,t>r){var n=t;t=r,r=n}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,i,o=this.shapes.length,l,c,p,A,d,f=0;if(r===t)for(i=0;i<o;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(i=0;i<o;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var m=[],g,E;for(i=0;i<o;i+=1)if(g=this.shapes[i],!g.shape._mdf&&!this._mdf&&!e&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(s=g.shape.paths,c=s._length,d=0,!g.shape._mdf&&g.pathsData.length)d=g.totalShapeLength;else{for(p=this.releasePathsData(g.pathsData),l=0;l<c;l+=1)A=bez.getSegmentsLength(s.shapes[l]),p.push(A),d+=A.totalLength;g.totalShapeLength=d,g.pathsData=p}f+=d,g.shape._mdf=!0}var u=t,y=r,S=0,b;for(i=o-1;i>=0;i-=1)if(g=this.shapes[i],g.shape._mdf){for(E=g.localShapeCollection,E.releaseShapes(),this.m===2&&o>1?(b=this.calculateShapeEdges(t,r,g.totalShapeLength,S,f),S+=g.totalShapeLength):b=[[u,y]],c=b.length,l=0;l<c;l+=1){u=b[l][0],y=b[l][1],m.length=0,y<=1?m.push({s:g.totalShapeLength*u,e:g.totalShapeLength*y}):u>=1?m.push({s:g.totalShapeLength*(u-1),e:g.totalShapeLength*(y-1)}):(m.push({s:g.totalShapeLength*u,e:g.totalShapeLength}),m.push({s:0,e:g.totalShapeLength*(y-1)}));var x=this.addShapes(g,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var C=g.shape.paths.shapes[g.shape.paths._length-1];if(C.c){var D=x.pop();this.addPaths(x,E),x=this.addShapes(g,m[1],D)}else this.addPaths(x,E),x=this.addShapes(g,m[1])}this.addPaths(x,E)}}g.shape.paths=E}}},TrimModifier.prototype.addPaths=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,a,n,s,i){n.setXYAt(t[0],t[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),i&&n.setXYAt(e[0],e[1],"v",s),n.setXYAt(a[0],a[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,a){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),a&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var a=e.pathsData,n=e.shape.paths.shapes,s,i=e.shape.paths._length,o,l,c=0,p,A,d,f,m=[],g,E=!0;for(r?(A=r._length,g=r._length):(r=shapePool.newElement(),A=0,g=0),m.push(r),s=0;s<i;s+=1){for(d=a[s].lengths,r.c=n[s].c,l=n[s].c?d.length:d.length+1,o=1;o<l;o+=1)if(p=d[o-1],c+p.addedLength<t.s)c+=p.addedLength,r.c=!1;else if(c>t.e){r.c=!1;break}else t.s<=c&&t.e>=c+p.addedLength?(this.addSegment(n[s].v[o-1],n[s].o[o-1],n[s].i[o],n[s].v[o],r,A,E),E=!1):(f=bez.getNewSegment(n[s].v[o-1],n[s].v[o],n[s].o[o-1],n[s].i[o],(t.s-c)/p.addedLength,(t.e-c)/p.addedLength,d[o-1]),this.addSegmentFromArray(f,r,A,E),E=!1,r.c=!1),c+=p.addedLength,A+=1;if(n[s].c&&d.length){if(p=d[o-1],c<=t.e){var u=d[o-1].addedLength;t.s<=c&&t.e>=c+u?(this.addSegment(n[s].v[o-1],n[s].o[o-1],n[s].i[0],n[s].v[0],r,A,E),E=!1):(f=bez.getNewSegment(n[s].v[o-1],n[s].v[0],n[s].o[o-1],n[s].i[0],(t.s-c)/u,(t.e-c)/u,d[o-1]),this.addSegmentFromArray(f,r,A,E),E=!1,r.c=!1)}else r.c=!1;c+=p.addedLength,A+=1}if(r._length&&(r.setXYAt(r.v[g][0],r.v[g][1],"i",g),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),c>t.e)break;s<i-1&&(r=shapePool.newElement(),E=!0,m.push(r),A=0)}return m};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,a=[0,0],n=e._length,s=0;for(s=0;s<n;s+=1)a[0]+=e.v[s][0],a[1]+=e.v[s][1];a[0]/=n,a[1]/=n;var i=shapePool.newElement();i.c=e.c;var o,l,c,p,A,d;for(s=0;s<n;s+=1)o=e.v[s][0]+(a[0]-e.v[s][0])*r,l=e.v[s][1]+(a[1]-e.v[s][1])*r,c=e.o[s][0]+(a[0]-e.o[s][0])*-r,p=e.o[s][1]+(a[1]-e.o[s][1])*-r,A=e.i[s][0]+(a[0]-e.i[s][0])*-r,d=e.i[s][1]+(a[1]-e.i[s][1])*-r,i.setTripleAt(o,l,c,p,A,d,s);return i},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,a=this.shapes.length,n,s,i=this.amount.v;if(i!==0){var o,l;for(r=0;r<a;r+=1){if(o=this.shapes[r],l=o.localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,s=o.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],i));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(l){var c=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||c,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var c;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var p,A;if(c=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(p=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),A=this.p.getValueAtTime(this.p.keyframes[0].t/c,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(p=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),A=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(p=this.p.pv,A=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){p=[],A=[];var d=this.px,f=this.py;d._caching.lastFrame+d.offsetTime<=d.keyframes[0].t?(p[0]=d.getValueAtTime((d.keyframes[0].t+.01)/c,0),p[1]=f.getValueAtTime((f.keyframes[0].t+.01)/c,0),A[0]=d.getValueAtTime(d.keyframes[0].t/c,0),A[1]=f.getValueAtTime(f.keyframes[0].t/c,0)):d._caching.lastFrame+d.offsetTime>=d.keyframes[d.keyframes.length-1].t?(p[0]=d.getValueAtTime(d.keyframes[d.keyframes.length-1].t/c,0),p[1]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/c,0),A[0]=d.getValueAtTime((d.keyframes[d.keyframes.length-1].t-.01)/c,0),A[1]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/c,0)):(p=[d.pv,f.pv],A[0]=d.getValueAtTime((d._caching.lastFrame+d.offsetTime-.01)/c,d.offsetTime),A[1]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/c,f.offsetTime))}else A=e,p=A;this.v.rotate(-Math.atan2(p[1]-A[1],p[0]-A[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function a(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function n(){}function s(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function i(l,c,p){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(p||l),c.p&&c.p.s?(this.px=PropertyFactory.getProp(l,c.p.x,0,0,this),this.py=PropertyFactory.getProp(l,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(l,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(l,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,c.rz,0,degToRads,this),c.or.k[0].ti){var A,d=c.or.k.length;for(A=0;A<d;A+=1)c.or.k[A].to=null,c.or.k[A].ti=null}this.or=PropertyFactory.getProp(l,c.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,c.r||{k:0},0,degToRads,this);c.sk&&(this.sk=PropertyFactory.getProp(l,c.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,c.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,c.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,c.s||{k:[100,100,100]},1,.01,this),c.o?this.o=PropertyFactory.getProp(l,c.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}i.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:a,autoOrient:n},extendPrototype([DynamicPropertyContainer],i),i.prototype.addDynamicProperty=s,i.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function o(l,c,p){return new i(l,c,p)}return{getTransformProperty:o}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,a,n,s){var i=s?-1:1,o=a.s.v[0]+(1-a.s.v[0])*(1-n),l=a.s.v[1]+(1-a.s.v[1])*(1-n);e.translate(a.p.v[0]*i*n,a.p.v[1]*i*n,a.p.v[2]),t.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),t.rotate(-a.r.v*i*n),t.translate(a.a.v[0],a.a.v[1],a.a.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.scale(s?1/o:o,s?1/l:l),r.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,a){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,a,n,s,i=!1;if(this._mdf||e){var o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),i=!0}s=0;var c;for(a=0;a<=this._groups.length-1;a+=1){if(c=s<o,this._groups[a]._render=c,this.changeGroupRender(this._groups[a].it,c),!c){var p=this.elemsData[a].it,A=p[p.length-1];A.transform.op.v!==0?(A.transform.op._mdf=!0,A.transform.op.v=0):A.transform.op._mdf=!1}s+=1}this._currentCopies=o;var d=this.o.v,f=d%1,m=d>0?Math.floor(d):Math.ceil(d),g=this.pMatrix.props,E=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y=0;if(d>0){for(;y<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),y+=f)}else if(d<0){for(;y>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),y-=f)}a=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;for(var S,b;s;){if(t=this.elemsData[a].it,r=t[t.length-1].transform.mProps.v.props,b=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),y!==0){for((a!==0&&n===1||a!==this._currentCopies-1&&n===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),S=0;S<b;S+=1)r[S]=this.matrix.props[S];this.matrix.reset()}else for(this.matrix.reset(),S=0;S<b;S+=1)r[S]=this.matrix.props[S];y+=1,s-=1,a+=n}}else for(s=this._currentCopies,a=0,n=1;s;)t=this.elemsData[a].it,r=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,s-=1,a+=n;return i},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r=shapePool.newElement();r.c=e.c;var a,n=e._length,s,i,o,l,c,p,A=0,d,f,m,g,E,u;for(a=0;a<n;a+=1)s=e.v[a],o=e.o[a],i=e.i[a],s[0]===o[0]&&s[1]===o[1]&&s[0]===i[0]&&s[1]===i[1]?(a===0||a===n-1)&&!e.c?(r.setTripleAt(s[0],s[1],o[0],o[1],i[0],i[1],A),A+=1):(a===0?l=e.v[n-1]:l=e.v[a-1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),p=c?Math.min(c/2,t)/c:0,E=s[0]+(l[0]-s[0])*p,d=E,u=s[1]-(s[1]-l[1])*p,f=u,m=d-(d-s[0])*roundCorner,g=f-(f-s[1])*roundCorner,r.setTripleAt(d,f,m,g,E,u,A),A+=1,a===n-1?l=e.v[0]:l=e.v[a+1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),p=c?Math.min(c/2,t)/c:0,m=s[0]+(l[0]-s[0])*p,d=m,g=s[1]+(l[1]-s[1])*p,f=g,E=d-(d-s[0])*roundCorner,u=f-(f-s[1])*roundCorner,r.setTripleAt(d,f,m,g,E,u,A),A+=1):(r.setTripleAt(e.v[a][0],e.v[a][1],e.o[a][0],e.o[a][1],e.i[a][0],e.i[a][1],A),A+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,a=this.shapes.length,n,s,i=this.rd.v;if(i!==0){var o,l;for(r=0;r<a;r+=1){if(o=this.shapes[r],l=o.localShapeCollection,!(!o.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,s=o.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],i));o.shape.paths=o.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var a=t*t-4*e*r;if(a<0)return[];var n=-t/(2*e);if(a===0)return[n];var s=Math.sqrt(a)/(2*e);return[n-s,n+s]}function polynomialCoefficients(e,t,r,a){return[-e+3*t-3*r+a,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,a,n){n&&pointEqual(e,t)&&(t=lerpPoint(e,a,1/3)),n&&pointEqual(r,a)&&(r=lerpPoint(e,a,2/3));var s=polynomialCoefficients(e[0],t[0],r[0],a[0]),i=polynomialCoefficients(e[1],t[1],r[1],a[1]);this.a=[s[0],i[0]],this.b=[s[1],i[1]],this.c=[s[2],i[2]],this.d=[s[3],i[3]],this.points=[e,t,r,a]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var a=Math.sqrt(r);return floatZero(a)?a>0&&a<1?[t]:[]:[t-a,t+a].filter(function(n){return n>0&&n<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),a=lerpPoint(this.points[2],this.points[3],e),n=lerpPoint(t,r,e),s=lerpPoint(r,a,e),i=lerpPoint(n,s,e);return[new PolynomialBezier(this.points[0],t,n,i,!0),new PolynomialBezier(i,s,a,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],a=e.points[e.points.length-1][t];if(r>a){var n=a;a=r,r=n}for(var s=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),i=0;i<s.length;i+=1)if(s[i]>0&&s[i]<1){var o=e.point(s[i])[t];o<r?r=o:o>a&&(a=o)}return{min:r,max:a}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,r){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,r,a,n,s){if(boxIntersect(e,t)){if(r>=s||e.width<=a&&e.height<=a&&t.width<=a&&t.height<=a){n.push([e.t,t.t]);return}var i=splitData(e),o=splitData(t);intersectsImpl(i[0],o[0],r+1,a,n,s),intersectsImpl(i[0],o[1],r+1,a,n,s),intersectsImpl(i[1],o[0],r+1,a,n,s),intersectsImpl(i[1],o[1],r+1,a,n,s)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,a,r),a},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,a){var n=[e[0],e[1],1],s=[t[0],t[1],1],i=[r[0],r[1],1],o=[a[0],a[1],1],l=crossProduct(crossProduct(n,s),crossProduct(i,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,a,n,s,i){var o=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*a*n,p=t[1]-Math.sin(r)*a*n;e.setTripleAt(c,p,c+Math.cos(o)*s,p-Math.sin(o)*s,c+Math.cos(l)*i,p-Math.sin(l)*i,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],a=-Math.PI*.5,n=[Math.cos(a)*r[0]-Math.sin(a)*r[1],Math.sin(a)*r[0]+Math.cos(a)*r[1]];return n}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,a=(t+1)%e.length(),n=e.v[r],s=e.v[a],i=getPerpendicularVector(n,s);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,a,n,s,i){var o=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[r===0?t._length-1:r-1],p=t.v[(r+1)%t._length],A=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,d=s===2?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0;setPoint(e,t.v[r%t._length],o,i,a,d/((n+1)*2),A/((n+1)*2))}function zigZagSegment(e,t,r,a,n,s){for(var i=0;i<a;i+=1){var o=(i+1)/(a+1),l=n===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(o),p=t.point(o);setPoint(e,p,c,s,r,l/((a+1)*2),l/((a+1)*2)),s=-s}return s}ZigZagModifier.prototype.processPath=function(e,t,r,a){var n=e._length,s=shapePool.newElement();if(s.c=e.c,e.c||(n-=1),n===0)return s;var i=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(s,e,0,t,r,a,i);for(var l=0;l<n;l+=1)i=zigZagSegment(s,o,t,r,a,-i),l===n-1&&!e.c?o=null:o=PolynomialBezier.shapeSegment(e,(l+1)%n),zigZagCorner(s,e,l+1,t,r,a,i);return s},ZigZagModifier.prototype.processShapes=function(e){var t,r,a=this.shapes.length,n,s,i=this.amplitude.v,o=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(i!==0){var c,p;for(r=0;r<a;r+=1){if(c=this.shapes[r],p=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(p.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)p.addShape(this.processPath(t[n],i,o,l));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var a=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,a,r),polarOffset(t,a,r)]}function offsetSegment(e,t){var r,a,n,s,i,o,l;l=linearOffset(e.points[0],e.points[1],t),r=l[0],a=l[1],l=linearOffset(e.points[1],e.points[2],t),n=l[0],s=l[1],l=linearOffset(e.points[2],e.points[3],t),i=l[0],o=l[1];var c=lineIntersection(r,a,n,s);c===null&&(c=a);var p=lineIntersection(i,o,n,s);return p===null&&(p=i),new PolynomialBezier(r,c,p,o)}function joinLines(e,t,r,a,n){var s=t.points[3],i=r.points[0];if(a===3||pointEqual(s,i))return s;if(a===2){var o=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),i,polarOffset(i,o+Math.PI/2,100)),p=c?pointDistance(c,s):pointDistance(s,i)/2,A=polarOffset(s,o,2*p*roundCorner);return e.setXYAt(A[0],A[1],"o",e.length()-1),A=polarOffset(i,l,2*p*roundCorner),e.setTripleAt(i[0],i[1],i[0],i[1],A[0],A[1],e.length()),i}var d=pointEqual(s,t.points[2])?t.points[0]:t.points[2],f=pointEqual(i,r.points[1])?r.points[3]:r.points[1],m=lineIntersection(d,s,i,f);return m&&pointDistance(m,s)<n?(e.setTripleAt(m[0],m[1],m[0],m[1],m[0],m[1],e.length()),m):s}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),a=t.slice(),n=getIntersection(e[e.length-1],t[0]);return n&&(r[e.length-1]=e[e.length-1].split(n[0])[0],a[0]=t[0].split(n[1])[1]),e.length>1&&t.length>1&&(n=getIntersection(e[0],t[t.length-1]),n)?[[e[0].split(n[0])[0]],[t[t.length-1].split(n[1])[1]]]:[r,a]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),a,n,s,i;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return s=e.split(r[0]),a=s[0],n=s[1],[offsetSegment(a,t),offsetSegment(n,t)];s=e.split(r[0]),a=s[0];var o=(r[1]-r[0])/(1-r[0]);return s=s[1].split(o),i=s[0],n=s[1],[offsetSegment(a,t),offsetSegment(i,t),offsetSegment(n,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,a){var n=shapePool.newElement();n.c=e.c;var s=e.length();e.c||(s-=1);var i,o,l,c=[];for(i=0;i<s;i+=1)l=PolynomialBezier.shapeSegment(e,i),c.push(offsetSegmentSplit(l,t));if(!e.c)for(i=s-1;i>=0;i-=1)l=PolynomialBezier.shapeSegmentInverted(e,i),c.push(offsetSegmentSplit(l,t));c=pruneIntersections(c);var p=null,A=null;for(i=0;i<c.length;i+=1){var d=c[i];for(A&&(p=joinLines(n,A,d[0],r,a)),A=d[d.length-1],o=0;o<d.length;o+=1)l=d[o],p&&pointEqual(l.points[0],p)?n.setXYAt(l.points[1][0],l.points[1][1],"o",n.length()-1):n.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],n.length()),n.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],n.length()),p=l.points[3]}return c.length&&joinLines(n,A,c[0][0],r,a),n},OffsetPathModifier.prototype.processShapes=function(e){var t,r,a=this.shapes.length,n,s,i=this.amount.v,o=this.miterLimit.v,l=this.lineJoin;if(i!==0){var c,p;for(r=0;r<a;r+=1){if(c=this.shapes[r],p=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(p.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)p.addShape(this.processPath(t[n],i,l,o));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",a="normal",n=t.length,s,i=0;i<n;i+=1)switch(s=t[i].toLowerCase(),s){case"italic":a="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:a,weight:e.fWeight||r}}var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var a=127988,n=917631,s=917601,i=917626,o=65039,l=8205,c=127462,p=127487,A=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function d(M){var F=M.split(","),P,T=F.length,L=[];for(P=0;P<T;P+=1)F[P]!=="sans-serif"&&F[P]!=="monospace"&&L.push(F[P]);return L.join(",")}function f(M,F){var P=createTag("span");P.setAttribute("aria-hidden",!0),P.style.fontFamily=F;var T=createTag("span");T.innerText="giItT1WQy@!-/#",P.style.position="absolute",P.style.left="-10000px",P.style.top="-10000px",P.style.fontSize="300px",P.style.fontVariant="normal",P.style.fontStyle="normal",P.style.fontWeight="normal",P.style.letterSpacing="0",P.appendChild(T),document.body.appendChild(P);var L=T.offsetWidth;return T.style.fontFamily=d(M)+", "+F,{node:T,w:L,parent:P}}function m(){var M,F=this.fonts.length,P,T,L=F;for(M=0;M<F;M+=1)this.fonts[M].loaded?L-=1:this.fonts[M].fOrigin==="n"||this.fonts[M].origin===0?this.fonts[M].loaded=!0:(P=this.fonts[M].monoCase.node,T=this.fonts[M].monoCase.w,P.offsetWidth!==T?(L-=1,this.fonts[M].loaded=!0):(P=this.fonts[M].sansCase.node,T=this.fonts[M].sansCase.w,P.offsetWidth!==T&&(L-=1,this.fonts[M].loaded=!0)),this.fonts[M].loaded&&(this.fonts[M].sansCase.parent.parentNode.removeChild(this.fonts[M].sansCase.parent),this.fonts[M].monoCase.parent.parentNode.removeChild(this.fonts[M].monoCase.parent)));L!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(M,F){var P=document.body&&F?"svg":"canvas",T,L=getFontProperties(M);if(P==="svg"){var k=createNS("text");k.style.fontSize="100px",k.setAttribute("font-family",M.fFamily),k.setAttribute("font-style",L.style),k.setAttribute("font-weight",L.weight),k.textContent="1",M.fClass?(k.style.fontFamily="inherit",k.setAttribute("class",M.fClass)):k.style.fontFamily=M.fFamily,F.appendChild(k),T=k}else{var Y=new OffscreenCanvas(500,500).getContext("2d");Y.font=L.style+" "+L.weight+" 100px "+M.fFamily,T=Y}function Z(Q){return P==="svg"?(T.textContent=Q,T.getComputedTextLength()):T.measureText(Q).width}return{measureText:Z}}function E(M,F){if(!M){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=M.list;return}if(!document.body){this.isLoaded=!0,M.list.forEach(function(oe){oe.helper=g(oe),oe.cache={}}),this.fonts=M.list;return}var P=M.list,T,L=P.length,k=L;for(T=0;T<L;T+=1){var Y=!0,Z,Q;if(P[T].loaded=!1,P[T].monoCase=f(P[T].fFamily,"monospace"),P[T].sansCase=f(P[T].fFamily,"sans-serif"),!P[T].fPath)P[T].loaded=!0,k-=1;else if(P[T].fOrigin==="p"||P[T].origin===3){if(Z=document.querySelectorAll('style[f-forigin="p"][f-family="'+P[T].fFamily+'"], style[f-origin="3"][f-family="'+P[T].fFamily+'"]'),Z.length>0&&(Y=!1),Y){var te=createTag("style");te.setAttribute("f-forigin",P[T].fOrigin),te.setAttribute("f-origin",P[T].origin),te.setAttribute("f-family",P[T].fFamily),te.type="text/css",te.innerText="@font-face {font-family: "+P[T].fFamily+"; font-style: normal; src: url('"+P[T].fPath+"');}",F.appendChild(te)}}else if(P[T].fOrigin==="g"||P[T].origin===1){for(Z=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Q=0;Q<Z.length;Q+=1)Z[Q].href.indexOf(P[T].fPath)!==-1&&(Y=!1);if(Y){var ee=createTag("link");ee.setAttribute("f-forigin",P[T].fOrigin),ee.setAttribute("f-origin",P[T].origin),ee.type="text/css",ee.rel="stylesheet",ee.href=P[T].fPath,document.body.appendChild(ee)}}else if(P[T].fOrigin==="t"||P[T].origin===2){for(Z=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Q=0;Q<Z.length;Q+=1)P[T].fPath===Z[Q].src&&(Y=!1);if(Y){var ne=createTag("link");ne.setAttribute("f-forigin",P[T].fOrigin),ne.setAttribute("f-origin",P[T].origin),ne.setAttribute("rel","stylesheet"),ne.setAttribute("href",P[T].fPath),F.appendChild(ne)}}P[T].helper=g(P[T],F),P[T].cache={},this.fonts.push(P[T])}k===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function u(M){if(M){this.chars||(this.chars=[]);var F,P=M.length,T,L=this.chars.length,k;for(F=0;F<P;F+=1){for(T=0,k=!1;T<L;)this.chars[T].style===M[F].style&&this.chars[T].fFamily===M[F].fFamily&&this.chars[T].ch===M[F].ch&&(k=!0),T+=1;k||(this.chars.push(M[F]),L+=1)}}}function y(M,F,P){for(var T=0,L=this.chars.length;T<L;){if(this.chars[T].ch===M&&this.chars[T].style===F&&this.chars[T].fFamily===P)return this.chars[T];T+=1}return(typeof M=="string"&&M.charCodeAt(0)!==13||!M)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",M,F,P)),t}function S(M,F,P){var T=this.getFontByName(F),L=M;if(!T.cache[L]){var k=T.helper;if(M===" "){var Y=k.measureText("|"+M+"|"),Z=k.measureText("||");T.cache[L]=(Y-Z)/100}else T.cache[L]=k.measureText(M)/100}return T.cache[L]*P}function b(M){for(var F=0,P=this.fonts.length;F<P;){if(this.fonts[F].fName===M)return this.fonts[F];F+=1}return this.fonts[0]}function x(M){var F=0,P=M.charCodeAt(0);if(P>=55296&&P<=56319){var T=M.charCodeAt(1);T>=56320&&T<=57343&&(F=(P-55296)*1024+T-56320+65536)}return F}function C(M,F){var P=M.toString(16)+F.toString(16);return A.indexOf(P)!==-1}function D(M){return M===l}function I(M){return M===o}function N(M){var F=x(M);return F>=c&&F<=p}function B(M){return N(M.substr(0,2))&&N(M.substr(2,2))}function O(M){return r.indexOf(M)!==-1}function R(M,F){var P=x(M.substr(F,2));if(P!==a)return!1;var T=0;for(F+=2;T<5;){if(P=x(M.substr(F,2)),P<s||P>i)return!1;T+=1,F+=2}return x(M.substr(F,2))===n}function _(){this.isLoaded=!0}var G=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};G.isModifier=C,G.isZeroWidthJoiner=D,G.isFlagEmoji=B,G.isRegionalCode=N,G.isCombinedCharacter=O,G.isRegionalFlag=R,G.isVariationSelector=I,G.BLACK_FLAG_CODE_POINT=a;var j={addChars:u,addFonts:E,getCharData:y,getFontByName:b,measureText:S,checkLoadedFonts:m,setIsLoaded:_};return G.prototype=j,G}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,r=this.renderableComponents.length;for(t=0;t<r;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r=e.ef||[];this.effectElements=[];var a,n=r.length,s;for(a=0;a<n;a+=1)s=new GroupEffect(r[a],t),this.effectElements.push(s)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,a=this.data.ef.length,n,s=this.data.ef;for(r=0;r<a;r+=1){switch(n=null,s[r].ty){case 0:n=new SliderEffect(s[r],t,this);break;case 1:n=new AngleEffect(s[r],t,this);break;case 2:n=new ColorEffect(s[r],t,this);break;case 3:n=new PointEffect(s[r],t,this);break;case 4:case 7:n=new CheckboxEffect(s[r],t,this);break;case 10:n=new LayerIndexEffect(s[r],t,this);break;case 11:n=new MaskIndexEffect(s[r],t,this);break;case 5:n=new EffectsManager(s[r],t);break;default:n=new NoValueEffect(s[r]);break}n&&this.effectElements.push(n)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,r=this.data.masksProperties.length;t<r;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var r=t("layer"),a=t("effects"),n=t("shape"),s=t("text"),i=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),this.data.ty===0||this.data.xt?this.compInterface=i(this):this.data.ty===4?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=s(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=t},initBaseData:function(t,r,a){this.globalData=r,this.comp=a,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,r){var a,n=this.dynamicProperties.length;for(a=0;a<n;a+=1)(r||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,r=this.layers.length,a;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(a=this.layers[t],a.ip-a.st<=e-this.layers[t].st&&a.op-a.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,r=e.length,a,n=this.layers.length;for(t=0;t<r;t+=1)for(a=0;a<n;){if(this.layers[a].id===e[t].id){this.layers[a]=e[t];break}a+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var a=this.elements,n=this.layers,s=0,i=n.length;s<i;)n[s].ind==t&&(!a[s]||a[s]===!0?(this.buildItem(s),this.addPendingElement(e)):(r.push(a[s]),a[s].setAsParent(),n[s].parent!==void 0?this.buildElementParenting(e,n[s].parent,r):e.setHierarchy(r))),s+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var a=this.createComp(e[t]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),r;if(typeof t=="number")r=this.elements[t];else{var a,n=this.elements.length;for(a=0;a<n;a+=1)if(this.elements[a].data.nm===t){r=this.elements[a];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,r=this.finalTransform.mat,a=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<n;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),a=0;a<n;a+=1)r.multiply(this.hierarchy[a].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<r;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),t=1;t<r;t+=1){var n=this.localTransforms[t].matrix;a.multiply(n)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)s*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,a=t.length;for(r=0;r<a;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var a=!0,n=this.comp;a;)n.finalTransform?(n.data.hasMask&&r.splice(0,0,n.finalTransform),n=n.comp):a=!1;var s,i=r.length,o;for(s=0;s<i;s+=1)o=r[s].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,n,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var i,o=this.masksProperties,l=0,c=[],p,A,d=createElementID(),f,m,g,E,u="clipPath",y="clip-path";for(n=0;n<s;n+=1)if((o[n].mode!=="a"&&o[n].mode!=="n"||o[n].inv||o[n].o.k!==100||o[n].o.x)&&(u="mask",y="mask"),(o[n].mode==="s"||o[n].mode==="i")&&l===0?(f=createNS("rect"),f.setAttribute("fill","#ffffff"),f.setAttribute("width",this.element.comp.data.w||0),f.setAttribute("height",this.element.comp.data.h||0),c.push(f)):f=null,i=createNS("path"),o[n].mode==="n")this.viewData[n]={op:PropertyFactory.getProp(this.element,o[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[n],3),elem:i,lastPath:""},a.appendChild(i);else{l+=1,i.setAttribute("fill",o[n].mode==="s"?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero");var S;if(o[n].x.k!==0?(u="mask",y="mask",E=PropertyFactory.getProp(this.element,o[n].x,0,null,this.element),S=createElementID(),m=createNS("filter"),m.setAttribute("id",S),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),m.appendChild(g),a.appendChild(m),i.setAttribute("stroke",o[n].mode==="s"?"#000000":"#ffffff")):(g=null,E=null),this.storedData[n]={elem:i,x:E,expan:g,lastPath:"",lastOperator:"",filterId:S,lastRadius:0},o[n].mode==="i"){A=c.length;var b=createNS("g");for(p=0;p<A;p+=1)b.appendChild(c[p]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",d+"_"+l),x.appendChild(i),a.appendChild(x),b.setAttribute("mask","url("+getLocationHref()+"#"+d+"_"+l+")"),c.length=0,c.push(b)}else c.push(i);o[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,o[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,o[n],3),invRect:f},this.viewData[n].prop.k||this.drawPath(o[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(u),s=c.length,n=0;n<s;n+=1)this.maskElement.appendChild(c[n]);l>0&&(this.maskElement.setAttribute("id",d),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+d+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,r,a=this.masksProperties.length;for(r=0;r<a;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var n=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),n.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,r){var a=" M"+t.v[0][0]+","+t.v[0][1],n,s;for(s=t._length,n=1;n<s;n+=1)a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&s>1&&(a+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==a){var i="";r.elem&&(t.c&&(i=e.inv?this.solidPath+a:a),r.elem.setAttribute("d",i)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=r;function t(a,n){var s=createNS("filter");return s.setAttribute("id",a),n!==!0&&(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s}function r(){var a=createNS("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",a=e.data.ef?e.data.ef.length:0,n=createElementID(),s=filtersFactory.createFilter(n,!0),i=0;this.filters=[];var o;for(t=0;t<a;t+=1){o=null;var l=e.data.ef[t].ty;if(registeredEffects$1[l]){var c=registeredEffects$1[l].effect;o=new c(s,e.effectsManager.effectElements[t],e,idPrefix+i,r),r=idPrefix+i,registeredEffects$1[l].countsAsEffect&&(i+=1)}o&&this.filters.push(o)}i&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,a=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&a.push(this.filters[t]);return a};function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),t=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var a=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(a.setAttribute("id",s),a.appendChild(n),this.globalData.defs.appendChild(a),this.checkMasks()){var i=createNS("g");i.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),i.appendChild(this.layerElement),this.transformedElement=i,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var r=this.layerId+"_"+t,a,n,s,i;if(t===1||t===3){var o=createNS("mask");o.setAttribute("id",r),o.setAttribute("mask-type",t===3?"luminance":"alpha"),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),this.globalData.defs.appendChild(o),!featureSupport.maskType&&t===1&&(o.setAttribute("mask-type","luminance"),a=createElementID(),n=filtersFactory.createFilter(a),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),i.appendChild(s),o.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+a+")"))}else if(t===2){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type","alpha");var c=createNS("g");l.appendChild(c),a=createElementID(),n=filtersFactory.createFilter(a);var p=createNS("feComponentTransfer");p.setAttribute("in","SourceGraphic"),n.appendChild(p);var A=createNS("feFuncA");A.setAttribute("type","table"),A.setAttribute("tableValues","1.0 0.0"),p.appendChild(A),this.globalData.defs.appendChild(n);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),c.appendChild(d),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(s),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),c.appendChild(d),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(l)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(r,a,n){this.initFrame(),this.initBaseData(r,a,n),this.initTransform(r,a,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var r,a=this.shapeModifiers.length;for(r=0;r<a;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,a=this.shapeModifiers.length;r<a;)if(this.shapeModifiers[r].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,r=this.shapes.length;for(t=0;t<r;t+=1)this.shapes[t].sh.reset();r=this.shapeModifiers.length;var a;for(t=r-1;t>=0&&(a=this.shapeModifiers[t].processShapes(this._isFirstFrame),!a);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,a=0,n=r.length;a<n;){if(r[a].elem===t)return r[a].pos;a+=1}return 0},addProcessedElement:function(t,r){for(var a=this.processedElements,n=a.length;n;)if(n-=1,a[n].elem===t){a[n].pos=r;return}a.push(new ProcessedElement(t,r))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var a=0,n=e.length;a<n;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,r,a){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var n,s=t.length||0,i;for(n=0;n<s;n+=1)i=PropertyFactory.getProp(e,t[n].v,0,0,this),this.k=i.k||this.k,this.dataProps[n]={n:t[n].n,p:i};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var a=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,a=this.o.length/2,n;r<a;){if(n=Math.abs(e[r*4]-e[t*4+r*2]),n>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r=this.data.p*4,a,n;for(t=0;t<r;t+=1)a=t%4===0?100:255,n=Math.round(this.prop.v[t]*a),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)a=t%2===0?100:1,n=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==n&&(this.o[t-this.data.p*4]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),a=createNS(t.t===1?"linearGradient":"radialGradient");a.setAttribute("id",r),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var n=[],s,i,o;for(o=t.g.p*4,i=0;i<o;i+=4)s=createNS("stop"),a.appendChild(s),n.push(s);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=a,this.cst=n},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,a,n,s=createNS("mask"),i=createNS("path");s.appendChild(i);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var c=createNS(e.t===1?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),n=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var p=this.stops;for(a=e.g.p*4;a<n;a+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),p.push(r);i.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),e.ty==="gs"&&(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&i.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=s,this.ost=p,this.maskId=l,t.msElem=i}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,r,a,n){if(r===0)return"";var s=t.o,i=t.i,o=t.v,l,c=" M"+n.applyToPointStringified(o[0][0],o[0][1]);for(l=1;l<r;l+=1)c+=" C"+n.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+n.applyToPointStringified(i[l][0],i[l][1])+" "+n.applyToPointStringified(o[l][0],o[l][1]);return a&&r&&(c+=" C"+n.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+n.applyToPointStringified(i[0][0],i[0][1])+" "+n.applyToPointStringified(o[0][0],o[0][1]),c+="z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:a};function a(A){switch(A.ty){case"fl":return o;case"gf":return c;case"gs":return l;case"st":return p;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return s;default:return null}}function n(A,d,f){(f||d.transform.op._mdf)&&d.transform.container.setAttribute("opacity",d.transform.op.v),(f||d.transform.mProps._mdf)&&d.transform.container.setAttribute("transform",d.transform.mProps.v.to2dCSS())}function s(){}function i(A,d,f){var m,g,E,u,y,S,b=d.styles.length,x=d.lvl,C,D,I,N;for(S=0;S<b;S+=1){if(u=d.sh._mdf||f,d.styles[S].lvl<x){for(D=t.reset(),I=x-d.styles[S].lvl,N=d.transformers.length-1;!u&&I>0;)u=d.transformers[N].mProps._mdf||u,I-=1,N-=1;if(u)for(I=x-d.styles[S].lvl,N=d.transformers.length-1;I>0;)D.multiply(d.transformers[N].mProps.v),I-=1,N-=1}else D=e;if(C=d.sh.paths,g=C._length,u){for(E="",m=0;m<g;m+=1)y=C.shapes[m],y&&y._length&&(E+=buildShapeString(y,y._length,y.c,D));d.caches[S]=E}else E=d.caches[S];d.styles[S].d+=A.hd===!0?"":E,d.styles[S]._mdf=u||d.styles[S]._mdf}}function o(A,d,f){var m=d.style;(d.c._mdf||f)&&m.pElem.setAttribute("fill","rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")"),(d.o._mdf||f)&&m.pElem.setAttribute("fill-opacity",d.o.v)}function l(A,d,f){c(A,d,f),p(A,d,f)}function c(A,d,f){var m=d.gf,g=d.g._hasOpacity,E=d.s.v,u=d.e.v;if(d.o._mdf||f){var y=A.ty==="gf"?"fill-opacity":"stroke-opacity";d.style.pElem.setAttribute(y,d.o.v)}if(d.s._mdf||f){var S=A.t===1?"x1":"cx",b=S==="x1"?"y1":"cy";m.setAttribute(S,E[0]),m.setAttribute(b,E[1]),g&&!d.g._collapsable&&(d.of.setAttribute(S,E[0]),d.of.setAttribute(b,E[1]))}var x,C,D,I;if(d.g._cmdf||f){x=d.cst;var N=d.g.c;for(D=x.length,C=0;C<D;C+=1)I=x[C],I.setAttribute("offset",N[C*4]+"%"),I.setAttribute("stop-color","rgb("+N[C*4+1]+","+N[C*4+2]+","+N[C*4+3]+")")}if(g&&(d.g._omdf||f)){var B=d.g.o;for(d.g._collapsable?x=d.cst:x=d.ost,D=x.length,C=0;C<D;C+=1)I=x[C],d.g._collapsable||I.setAttribute("offset",B[C*2]+"%"),I.setAttribute("stop-opacity",B[C*2+1])}if(A.t===1)(d.e._mdf||f)&&(m.setAttribute("x2",u[0]),m.setAttribute("y2",u[1]),g&&!d.g._collapsable&&(d.of.setAttribute("x2",u[0]),d.of.setAttribute("y2",u[1])));else{var O;if((d.s._mdf||d.e._mdf||f)&&(O=Math.sqrt(Math.pow(E[0]-u[0],2)+Math.pow(E[1]-u[1],2)),m.setAttribute("r",O),g&&!d.g._collapsable&&d.of.setAttribute("r",O)),d.e._mdf||d.h._mdf||d.a._mdf||f){O||(O=Math.sqrt(Math.pow(E[0]-u[0],2)+Math.pow(E[1]-u[1],2)));var R=Math.atan2(u[1]-E[1],u[0]-E[0]),_=d.h.v;_>=1?_=.99:_<=-1&&(_=-.99);var G=O*_,j=Math.cos(R+d.a.v)*G+E[0],M=Math.sin(R+d.a.v)*G+E[1];m.setAttribute("fx",j),m.setAttribute("fy",M),g&&!d.g._collapsable&&(d.of.setAttribute("fx",j),d.of.setAttribute("fy",M))}}}function p(A,d,f){var m=d.style,g=d.d;g&&(g._mdf||f)&&g.dashStr&&(m.pElem.setAttribute("stroke-dasharray",g.dashStr),m.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),d.c&&(d.c._mdf||f)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")"),(d.o._mdf||f)&&m.pElem.setAttribute("stroke-opacity",d.o.v),(d.w._mdf||f)&&(m.pElem.setAttribute("stroke-width",d.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",d.w.v))}return r}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,r,a,n=this.stylesList.length,s,i=[],o=!1;for(a=0;a<n;a+=1){for(s=this.stylesList[a],o=!1,i.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(s)!==-1&&(i.push(r),o=r._isAnimated||o);i.length>1&&o&&this.setShapesAsAnimated(i)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,a=new SVGStyleData(e,t),n=a.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,a);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,a);else if(e.ty==="gf"||e.ty==="gs"){var s=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new s(this,e,a),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,a));return(e.ty==="st"||e.ty==="gs")&&(n.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),n.setAttribute("fill-opacity","0"),e.lj===1&&n.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&n.setAttribute("fill-rule","evenodd"),e.ln&&n.setAttribute("id",e.ln),e.cl&&n.setAttribute("class",e.cl),e.bm&&(n.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7);var n=ShapePropertyFactory.getShapeProp(this,e,a,this),s=new SVGShapeData(t,r,n);return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(e,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,a=this.animatedContents.length;r<a;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,r,a=this.stylesList.length;for(r=0;r<a;r+=1)this.stylesList[r].closed||t.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,a,n,s,i){var o=[].concat(s),l,c=e.length-1,p,A,d=[],f=[],m,g,E;for(l=c;l>=0;l-=1){if(E=this.searchProcessedElement(e[l]),E?t[l]=r[E-1]:e[l]._render=i,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs"||e[l].ty==="no")E?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],n),e[l]._render&&t[l].style.pElem.parentNode!==a&&a.appendChild(t[l].style.pElem),d.push(t[l].style);else if(e[l].ty==="gr"){if(!E)t[l]=this.createGroupElement(e[l]);else for(A=t[l].it.length,p=0;p<A;p+=1)t[l].prevViewData[p]=t[l].it[p];this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,n+1,o,i),e[l]._render&&t[l].gr.parentNode!==a&&a.appendChild(t[l].gr)}else e[l].ty==="tr"?(E||(t[l]=this.createTransformElement(e[l],a)),m=t[l].transform,o.push(m)):e[l].ty==="sh"||e[l].ty==="rc"||e[l].ty==="el"||e[l].ty==="sr"?(E||(t[l]=this.createShapeElement(e[l],o,n)),this.setElementStyles(t[l])):e[l].ty==="tm"||e[l].ty==="rd"||e[l].ty==="ms"||e[l].ty==="pb"||e[l].ty==="zz"||e[l].ty==="op"?(E?(g=t[l],g.closed=!1):(g=ShapeModifiers.getModifier(e[l].ty),g.init(this,e[l]),t[l]=g,this.shapeModifiers.push(g)),f.push(g)):e[l].ty==="rp"&&(E?(g=t[l],g.closed=!0):(g=ShapeModifiers.getModifier(e[l].ty),t[l]=g,g.init(this,e,l,t),this.shapeModifiers.push(g),i=!1),f.push(g));this.addProcessedElement(e[l],l+1)}for(c=d.length,l=0;l<c;l+=1)d[l].closed=!0;for(c=f.length,l=0;l<c;l+=1)f[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,r;for(e=0;e<t;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,r,a,n,s){this.o=e,this.sw=t,this.sc=r,this.fc=a,this.m=n,this.p=s,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!a,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,a,n,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var i=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,i=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,i=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,i=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,i=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,i=!0),s.length&&(this.p[0]!==s[0]||this.p[1]!==s[1]||this.p[4]!==s[4]||this.p[5]!==s[5]||this.p[12]!==s[12]||this.p[13]!==s[13])&&(this.p=s,this._mdf.p=!0,i=!0),i};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,n=this.effectsSequence.length,s=e||this.data.d.k[this.keysIndex].s;for(a=0;a<n;a+=1)r!==this.keysIndex?s=this.effectsSequence[a](s,s.t):s=this.effectsSequence[a](this.currentData,s.t);t!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,a=e.length;r<=a-1&&!(r===a-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,a=e.length,n,s,i=!1,o=!1,l="";r<a;)i=o,o=!1,n=e.charCodeAt(r),l=e.charAt(r),FontManager.isCombinedCharacter(n)?i=!0:n>=55296&&n<=56319?FontManager.isRegionalFlag(e,r)?l=e.substr(r,14):(s=e.charCodeAt(r+1),s>=56320&&s<=57343&&(FontManager.isModifier(n,s)?(l=e.substr(r,2),i=!0):FontManager.isFlagEmoji(e.substr(r,4))?l=e.substr(r,4):l=e.substr(r,2))):n>56319?(s=e.charCodeAt(r+1),FontManager.isVariationSelector(n)&&(i=!0)):FontManager.isZeroWidthJoiner(n)&&(i=!0,o=!0),i?(t[t.length-1]+=l,i=!1):t.push(l),r+=l.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,a=[],n,s,i,o=0,l,c=r.m.g,p=0,A=0,d=0,f=[],m=0,g=0,E,u,y=t.getFontByName(e.f),S,b=0,x=getFontProperties(y);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),s=e.finalText.length,e.finalLineHeight=e.lh;var C=e.tr/1e3*e.finalSize,D;if(e.sz)for(var I=!0,N=e.sz[0],B=e.sz[1],O,R;I;){R=this.buildFinalText(e.t),O=0,m=0,s=R.length,C=e.tr/1e3*e.finalSize;var _=-1;for(n=0;n<s;n+=1)D=R[n].charCodeAt(0),i=!1,R[n]===" "?_=n:(D===13||D===3)&&(m=0,i=!0,O+=e.finalLineHeight||e.finalSize*1.2),t.chars?(S=t.getCharData(R[n],y.fStyle,y.fFamily),b=i?0:S.w*e.finalSize/100):b=t.measureText(R[n],e.f,e.finalSize),m+b>N&&R[n]!==" "?(_===-1?s+=1:n=_,O+=e.finalLineHeight||e.finalSize*1.2,R.splice(n,_===n?1:0,"\r"),_=-1,m=0):(m+=b,m+=C);O+=y.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&B<O?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=R,s=e.finalText.length,I=!1)}m=-C,b=0;var G=0,j;for(n=0;n<s;n+=1)if(i=!1,j=e.finalText[n],D=j.charCodeAt(0),D===13||D===3?(G=0,f.push(m),g=m>g?m:g,m=-2*C,l="",i=!0,d+=1):l=j,t.chars?(S=t.getCharData(j,y.fStyle,t.getFontByName(e.f).fFamily),b=i?0:S.w*e.finalSize/100):b=t.measureText(l,e.f,e.finalSize),j===" "?G+=b+C:(m+=b+C+G,G=0),a.push({l:b,an:b,add:p,n:i,anIndexes:[],val:l,line:d,animatorJustifyOffset:0}),c==2){if(p+=b,l===""||l===" "||n===s-1){for((l===""||l===" ")&&(p-=b);A<=n;)a[A].an=p,a[A].ind=o,a[A].extra=b,A+=1;o+=1,p=0}}else if(c==3){if(p+=b,l===""||n===s-1){for(l===""&&(p-=b);A<=n;)a[A].an=p,a[A].ind=o,a[A].extra=b,A+=1;p=0,o+=1}}else a[o].ind=o,a[o].extra=0,o+=1;if(e.l=a,g=m>g?m:g,f.push(m),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=g,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=f;var M=r.a,F,P;u=M.length;var T,L,k=[];for(E=0;E<u;E+=1){for(F=M[E],F.a.sc&&(e.strokeColorAnim=!0),F.a.sw&&(e.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(e.fillColorAnim=!0),L=0,T=F.s.b,n=0;n<s;n+=1)P=a[n],P.anIndexes[E]=L,(T==1&&P.val!==""||T==2&&P.val!==""&&P.val!==" "||T==3&&(P.n||P.val==" "||n==s-1)||T==4&&(P.n||n==s-1))&&(F.s.rn===1&&k.push(L),L+=1);r.a[E].s.totalChars=L;var Y=-1,Z;if(F.s.rn===1)for(n=0;n<s;n+=1)P=a[n],Y!=P.anIndexes[E]&&(Y=P.anIndexes[E],Z=k.splice(Math.floor(Math.random()*k.length),1)[0]),P.anIndexes[E]=Z}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=y.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function a(s,i){this._currentTextLength=-1,this.k=!1,this.data=i,this.elem=s,this.comp=s.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(s),this.s=PropertyFactory.getProp(s,i.s||{k:0},0,0,this),"e"in i?this.e=PropertyFactory.getProp(s,i.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(s,i.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(s,i.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(s,i.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(s,i.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(s,i.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,l=0,c=1,p=1;this.ne.v>0?o=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:p=1+this.xe.v/100;var A=BezierFactory.getBezierEasing(o,l,c,p).get,d=0,f=this.finalS,m=this.finalE,g=this.data.sh;if(g===2)m===f?d=i>=m?1:0:d=e(0,t(.5/(m-f)+(i-f)/(m-f),1)),d=A(d);else if(g===3)m===f?d=i>=m?0:1:d=1-e(0,t(.5/(m-f)+(i-f)/(m-f),1)),d=A(d);else if(g===4)m===f?d=0:(d=e(0,t(.5/(m-f)+(i-f)/(m-f),1)),d<.5?d*=2:d=1-2*(d-.5)),d=A(d);else if(g===5){if(m===f)d=0;else{var E=m-f;i=t(e(0,i+.5-f),m-f);var u=-E/2+i,y=E/2;d=Math.sqrt(1-u*u/(y*y))}d=A(d)}else g===6?(m===f?d=0:(i=t(e(0,i+.5-f),m-f),d=(1+Math.cos(Math.PI+Math.PI*2*i/(m-f)))/2),d=A(d)):(i>=r(f)&&(i-f<0?d=e(0,t(t(m,1)-(f-i),1)):d=e(0,t(m-i,1))),d=A(d));if(this.sm.v!==100){var S=this.sm.v*.01;S===0&&(S=1e-8);var b=.5-S*.5;d<b?d=0:(d=(d-b)/S,d>1&&(d=1))}return d*this.a.v},getValue:function(i){this.iterateDynamicProperties(),this._mdf=i||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,i&&this.data.r===2&&(this.e.v=this._currentTextLength);var o=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/o,c=this.s.v/o+l,p=this.e.v/o+l;if(c>p){var A=c;c=p,p=A}this.finalS=c,this.finalE=p}},extendPrototype([DynamicPropertyContainer],a);function n(s,i,o){return new a(s,i)}return{getTextSelectorProp:n}}();function TextAnimatorDataProperty(e,t,r){var a={propType:!1},n=PropertyFactory.getProp,s=t.a;this.a={r:s.r?n(e,s.r,0,degToRads,r):a,rx:s.rx?n(e,s.rx,0,degToRads,r):a,ry:s.ry?n(e,s.ry,0,degToRads,r):a,sk:s.sk?n(e,s.sk,0,degToRads,r):a,sa:s.sa?n(e,s.sa,0,degToRads,r):a,s:s.s?n(e,s.s,1,.01,r):a,a:s.a?n(e,s.a,1,0,r):a,o:s.o?n(e,s.o,0,.01,r):a,p:s.p?n(e,s.p,1,0,r):a,sw:s.sw?n(e,s.sw,0,0,r):a,sc:s.sc?n(e,s.sc,1,0,r):a,fc:s.fc?n(e,s.fc,1,0,r):a,fh:s.fh?n(e,s.fh,0,0,r):a,fs:s.fs?n(e,s.fs,0,.01,r):a,fb:s.fb?n(e,s.fb,0,.01,r):a,t:s.t?n(e,s.t,0,0,r):a},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,r,a=PropertyFactory.getProp;for(e=0;e<t;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,a=this._animatorsData,n=this._textData,s=this.mHelper,i=this._renderType,o=this.renderedLetters.length,l,c,p,A,d=e.l,f,m,g,E,u,y,S,b,x,C,D,I,N,B,O;if(this._hasMaskedPath){if(O=this._pathData.m,!this._pathData.n||this._pathData._mdf){var R=O.v;this._pathData.r.v&&(R=R.reverse()),f={tLength:0,segments:[]},A=R._length-1;var _;for(I=0,p=0;p<A;p+=1)_=bez.buildBezierData(R.v[p],R.v[p+1],[R.o[p][0]-R.v[p][0],R.o[p][1]-R.v[p][1]],[R.i[p+1][0]-R.v[p+1][0],R.i[p+1][1]-R.v[p+1][1]]),f.tLength+=_.segmentLength,f.segments.push(_),I+=_.segmentLength;p=A,O.v.c&&(_=bez.buildBezierData(R.v[p],R.v[0],[R.o[p][0]-R.v[p][0],R.o[p][1]-R.v[p][1]],[R.i[0][0]-R.v[0][0],R.i[0][1]-R.v[0][1]]),f.tLength+=_.segmentLength,f.segments.push(_),I+=_.segmentLength),this._pathData.pi=f}if(f=this._pathData.pi,m=this._pathData.f.v,S=0,y=1,E=0,u=!0,C=f.segments,m<0&&O.v.c)for(f.tLength<Math.abs(m)&&(m=-Math.abs(m)%f.tLength),S=C.length-1,x=C[S].points,y=x.length-1;m<0;)m+=x[y].partialLength,y-=1,y<0&&(S-=1,x=C[S].points,y=x.length-1);x=C[S].points,b=x[y-1],g=x[y],D=g.partialLength}A=d.length,l=0,c=0;var G=e.finalSize*1.2*.714,j=!0,M,F,P,T,L;T=a.length;var k,Y=-1,Z,Q,te,ee=m,ne=S,oe=y,me=-1,he,ue,fe,ce,q,ye,ve,Ee,Te="",De=this.defaultPropsArray,ge;if(e.j===2||e.j===1){var Ae=0,Ie=0,we=e.j===2?-.5:-1,Ce=0,Me=!0;for(p=0;p<A;p+=1)if(d[p].n){for(Ae&&(Ae+=Ie);Ce<p;)d[Ce].animatorJustifyOffset=Ae,Ce+=1;Ae=0,Me=!0}else{for(P=0;P<T;P+=1)M=a[P].a,M.t.propType&&(Me&&e.j===2&&(Ie+=M.t.v*we),F=a[P].s,k=F.getMult(d[p].anIndexes[P],n.a[P].s.totalChars),k.length?Ae+=M.t.v*k[0]*we:Ae+=M.t.v*k*we);Me=!1}for(Ae&&(Ae+=Ie);Ce<p;)d[Ce].animatorJustifyOffset=Ae,Ce+=1}for(p=0;p<A;p+=1){if(s.reset(),he=1,d[p].n)l=0,c+=e.yOffset,c+=j?1:0,m=ee,j=!1,this._hasMaskedPath&&(S=ne,y=oe,x=C[S].points,b=x[y-1],g=x[y],D=g.partialLength,E=0),Te="",Ee="",ye="",ge="",De=this.defaultPropsArray;else{if(this._hasMaskedPath){if(me!==d[p].line){switch(e.j){case 1:m+=I-e.lineWidths[d[p].line];break;case 2:m+=(I-e.lineWidths[d[p].line])/2;break}me=d[p].line}Y!==d[p].ind&&(d[Y]&&(m+=d[Y].extra),m+=d[p].an/2,Y=d[p].ind),m+=r[0]*d[p].an*.005;var xe=0;for(P=0;P<T;P+=1)M=a[P].a,M.p.propType&&(F=a[P].s,k=F.getMult(d[p].anIndexes[P],n.a[P].s.totalChars),k.length?xe+=M.p.v[0]*k[0]:xe+=M.p.v[0]*k),M.a.propType&&(F=a[P].s,k=F.getMult(d[p].anIndexes[P],n.a[P].s.totalChars),k.length?xe+=M.a.v[0]*k[0]:xe+=M.a.v[0]*k);for(u=!0,this._pathData.a.v&&(m=d[0].an*.5+(I-this._pathData.f.v-d[0].an*.5-d[d.length-1].an*.5)*Y/(A-1),m+=this._pathData.f.v);u;)E+D>=m+xe||!x?(N=(m+xe-E)/g.partialLength,Q=b.point[0]+(g.point[0]-b.point[0])*N,te=b.point[1]+(g.point[1]-b.point[1])*N,s.translate(-r[0]*d[p].an*.005,-(r[1]*G)*.01),u=!1):x&&(E+=g.partialLength,y+=1,y>=x.length&&(y=0,S+=1,C[S]?x=C[S].points:O.v.c?(y=0,S=0,x=C[S].points):(E-=g.partialLength,x=null)),x&&(b=g,g=x[y],D=g.partialLength));Z=d[p].an/2-d[p].add,s.translate(-Z,0,0)}else Z=d[p].an/2-d[p].add,s.translate(-Z,0,0),s.translate(-r[0]*d[p].an*.005,-r[1]*G*.01,0);for(P=0;P<T;P+=1)M=a[P].a,M.t.propType&&(F=a[P].s,k=F.getMult(d[p].anIndexes[P],n.a[P].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?k.length?m+=M.t.v*k[0]:m+=M.t.v*k:k.length?l+=M.t.v*k[0]:l+=M.t.v*k));for(e.strokeWidthAnim&&(fe=e.sw||0),e.strokeColorAnim&&(e.sc?ue=[e.sc[0],e.sc[1],e.sc[2]]:ue=[0,0,0]),e.fillColorAnim&&e.fc&&(ce=[e.fc[0],e.fc[1],e.fc[2]]),P=0;P<T;P+=1)M=a[P].a,M.a.propType&&(F=a[P].s,k=F.getMult(d[p].anIndexes[P],n.a[P].s.totalChars),k.length?s.translate(-M.a.v[0]*k[0],-M.a.v[1]*k[1],M.a.v[2]*k[2]):s.translate(-M.a.v[0]*k,-M.a.v[1]*k,M.a.v[2]*k));for(P=0;P<T;P+=1)M=a[P].a,M.s.propType&&(F=a[P].s,k=F.getMult(d[p].anIndexes[P],n.a[P].s.totalChars),k.length?s.scale(1+(M.s.v[0]-1)*k[0],1+(M.s.v[1]-1)*k[1],1):s.scale(1+(M.s.v[0]-1)*k,1+(M.s.v[1]-1)*k,1));for(P=0;P<T;P+=1){if(M=a[P].a,F=a[P].s,k=F.getMult(d[p].anIndexes[P],n.a[P].s.totalChars),M.sk.propType&&(k.length?s.skewFromAxis(-M.sk.v*k[0],M.sa.v*k[1]):s.skewFromAxis(-M.sk.v*k,M.sa.v*k)),M.r.propType&&(k.length?s.rotateZ(-M.r.v*k[2]):s.rotateZ(-M.r.v*k)),M.ry.propType&&(k.length?s.rotateY(M.ry.v*k[1]):s.rotateY(M.ry.v*k)),M.rx.propType&&(k.length?s.rotateX(M.rx.v*k[0]):s.rotateX(M.rx.v*k)),M.o.propType&&(k.length?he+=(M.o.v*k[0]-he)*k[0]:he+=(M.o.v*k-he)*k),e.strokeWidthAnim&&M.sw.propType&&(k.length?fe+=M.sw.v*k[0]:fe+=M.sw.v*k),e.strokeColorAnim&&M.sc.propType)for(q=0;q<3;q+=1)k.length?ue[q]+=(M.sc.v[q]-ue[q])*k[0]:ue[q]+=(M.sc.v[q]-ue[q])*k;if(e.fillColorAnim&&e.fc){if(M.fc.propType)for(q=0;q<3;q+=1)k.length?ce[q]+=(M.fc.v[q]-ce[q])*k[0]:ce[q]+=(M.fc.v[q]-ce[q])*k;M.fh.propType&&(k.length?ce=addHueToRGB(ce,M.fh.v*k[0]):ce=addHueToRGB(ce,M.fh.v*k)),M.fs.propType&&(k.length?ce=addSaturationToRGB(ce,M.fs.v*k[0]):ce=addSaturationToRGB(ce,M.fs.v*k)),M.fb.propType&&(k.length?ce=addBrightnessToRGB(ce,M.fb.v*k[0]):ce=addBrightnessToRGB(ce,M.fb.v*k))}}for(P=0;P<T;P+=1)M=a[P].a,M.p.propType&&(F=a[P].s,k=F.getMult(d[p].anIndexes[P],n.a[P].s.totalChars),this._hasMaskedPath?k.length?s.translate(0,M.p.v[1]*k[0],-M.p.v[2]*k[1]):s.translate(0,M.p.v[1]*k,-M.p.v[2]*k):k.length?s.translate(M.p.v[0]*k[0],M.p.v[1]*k[1],-M.p.v[2]*k[2]):s.translate(M.p.v[0]*k,M.p.v[1]*k,-M.p.v[2]*k));if(e.strokeWidthAnim&&(ye=fe<0?0:fe),e.strokeColorAnim&&(ve="rgb("+Math.round(ue[0]*255)+","+Math.round(ue[1]*255)+","+Math.round(ue[2]*255)+")"),e.fillColorAnim&&e.fc&&(Ee="rgb("+Math.round(ce[0]*255)+","+Math.round(ce[1]*255)+","+Math.round(ce[2]*255)+")"),this._hasMaskedPath){if(s.translate(0,-e.ls),s.translate(0,r[1]*G*.01+c,0),this._pathData.p.v){B=(g.point[1]-b.point[1])/(g.point[0]-b.point[0]);var Ne=Math.atan(B)*180/Math.PI;g.point[0]<b.point[0]&&(Ne+=180),s.rotate(-Ne*Math.PI/180)}s.translate(Q,te,0),m-=r[0]*d[p].an*.005,d[p+1]&&Y!==d[p+1].ind&&(m+=d[p].an/2,m+=e.tr*.001*e.finalSize)}else{switch(s.translate(l,c,0),e.ps&&s.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:s.translate(d[p].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[d[p].line]),0,0);break;case 2:s.translate(d[p].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[d[p].line])/2,0,0);break}s.translate(0,-e.ls),s.translate(Z,0,0),s.translate(r[0]*d[p].an*.005,r[1]*G*.01,0),l+=d[p].l+e.tr*.001*e.finalSize}i==="html"?Te=s.toCSS():i==="svg"?Te=s.to2dCSS():De=[s.props[0],s.props[1],s.props[2],s.props[3],s.props[4],s.props[5],s.props[6],s.props[7],s.props[8],s.props[9],s.props[10],s.props[11],s.props[12],s.props[13],s.props[14],s.props[15]],ge=he}o<=p?(L=new LetterProps(ge,ye,ve,Ee,Te,De),this.renderedLetters.push(L),o+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[p],this.lettersChangedFlag=L.update(ge,ye,ve,Ee,Te,De)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,a=t.length,n,s="";for(r=0;r<a;r+=1)t[r].ty==="sh"&&(n=t[r].ks.k,s+=buildShapeString(n,n.i.length,!0,e));return s},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,a,n){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}t.translate(a,n,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,a=[],n="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(a.push(n),n=""):n+=e[t],t+=1;return a.push(n),a},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var a=r.it[r.it.length-1];a.s&&(a.s.k[0]=t,a.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var a=this.globalData.fontManager.getFontByName(r.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var i=r.l||[],o=!!this.globalData.fontManager.chars;t=i.length;var l,c=this.mHelper,p="",A=this.data.singleShape,d=0,f=0,m=!0,g=r.tr*.001*r.finalSize;if(A&&!o&&!r.sz){var E=this.textContainer,u="start";switch(r.j){case 1:u="end";break;case 2:u="middle";break;default:u="start";break}E.setAttribute("text-anchor",u),E.setAttribute("letter-spacing",g);var y=this.buildTextContents(r.finalText);for(t=y.length,f=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)l=this.textSpans[e].span||createNS("tspan"),l.textContent=y[e],l.setAttribute("x",0),l.setAttribute("y",f),l.style.display="inherit",E.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,f+=r.finalLineHeight;this.layerElement.appendChild(E)}else{var S=this.textSpans.length,b;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!o||!A||e===0){if(l=S>e?this.textSpans[e].span:createNS(o?"g":"text"),S<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,o){var x=createNS("g");l.appendChild(x),this.textSpans[e].childSpan=x}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(c.reset(),A&&(i[e].n&&(d=-g,f+=r.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(r,c,i[e].line,d,f),d+=i[e].l||0,d+=g),o){b=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var C;if(b.t===1)C=new SVGCompElement(b.data,this.globalData,this);else{var D=emptyShapeData;b.data&&b.data.shapes&&(D=this.buildShapeData(b.data,r.finalSize)),C=new SVGShapeElement(D,this.globalData,this)}if(this.textSpans[e].glyph){var I=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(I.layerElement),I.destroy()}this.textSpans[e].glyph=C,C._debug=!0,C.prepareFrame(0),C.renderFrame(),this.textSpans[e].childSpan.appendChild(C.layerElement),b.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else A&&l.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),l.textContent=i[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}A&&l&&l.setAttribute("d",p)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,r=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;t=a.length;var n,s,i;for(e=0;e<t;e+=1)a[e].n||(n=r[e],s=this.textSpans[e].span,i=this.textSpans[e].glyph,i&&i.renderFrame(),n._mdf.m&&s.setAttribute("transform",n.m),n._mdf.o&&s.setAttribute("opacity",n.o),n._mdf.sw&&s.setAttribute("stroke-width",n.sw),n._mdf.sc&&s.setAttribute("stroke",n.sc),n._mdf.fc&&s.setAttribute("fill",n.fc))}};function ISolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(r);else{var n=t[a],s=n.getMatte(this.layers[e].tt);r.setMatte(s)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,n=this.elements[a],s=n.getMatte(this.layers[t].tt);e.setMatte(s);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var a=0,n;a<t;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(n=this.elements[a].getBaseElement()),a+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var a=createNS("title"),n=createElementID();a.setAttribute("id",n),a.textContent=t.title,this.svgElement.appendChild(a),r+=n}if(t&&t.description){var s=createNS("desc"),i=createElementID();s.setAttribute("id",i),s.textContent=t.description,this.svgElement.appendChild(s),r+=" "+i}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,a=t.length,n="_";for(r=0;r<a;r+=1)n+=t[r].transform.key+"_";var s=this.sequences[n];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=s,this.sequenceList.push(s)),s},processSequence:function(t,r){for(var a=0,n=t.transforms.length,s=r;a<n&&!r;){if(t.transforms[a].transform.mProps._mdf){s=!0;break}a+=1}if(s)for(t.finalTransform.reset(),a=n-1;a>=0;a-=1)t.finalTransform.multiply(t.transforms[a].transform.mProps.v);t._mdf=s},processSequences:function(t){var r,a=this.sequenceList.length;for(r=0;r<a;r+=1)this.processSequence(this.sequenceList[r],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",r=null,a=null,n=null;function s(){var l=createNS("svg"),c=createNS("filter"),p=createNS("feColorMatrix");return c.setAttribute("id",t),p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),c.appendChild(p),l.appendChild(c),l.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function i(){r||(n=s(),document.body.appendChild(n),r=createTag("canvas"),a=r.getContext("2d"),a.filter="url(#"+t+")",a.fillStyle="rgba(0,0,0,0)",a.fillRect(0,0,1,1))}function o(l){return r||i(),r.width=l.width,r.height=l.height,a.filter="url(#"+t+")",r}return{load:i,get:o}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var t,r=e.data.ef?e.data.ef.length:0;this.filters=[];var a;for(t=0;t<r;t+=1){a=null;var n=e.data.ef[t].ty;if(registeredEffects[n]){var s=registeredEffects[n].effect;a=new s(e.effectsManager.effectElements[t],e)}a&&this.filters.push(a)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,a=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&a.push(this.filters[t]);return a};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,a=this.masksProperties.length,n=!1;for(r=0;r<a;r+=1)this.masksProperties[r].mode!=="n"&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,a=this.masksProperties.length,n,s,i;for(t.beginPath(),r=0;r<a;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),i=this.viewData[r].v,n=e.applyToPointArray(i.v[0][0],i.v[0][1],0),t.moveTo(n[0],n[1]);var o,l=i._length;for(o=1;o<l;o+=1)s=e.applyToTriplePoints(i.o[o-1],i.i[o],i.v[o]),t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=e.applyToTriplePoints(i.o[o-1],i.i[0],i.v[0]),t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);var a=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(a),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var a=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(a.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas),s=n.getContext("2d");s.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,r,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n=4;t.ty==="rc"?n=5:t.ty==="el"?n=6:t.ty==="sr"&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var s,i=r.length,o;for(s=0;s<i;s+=1)r[s].closed||(o={transforms:a.addTransformSequence(r[s].transforms),trNodes:[]},this.styledShapes.push(o),r[s].elements.push(o))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},a={};if(e.ty==="fl"||e.ty==="st"?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(r.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(r.wi=a.w.v),e.d){var n=new DashProperty(this,e.d,"canvas",this);a.d=n,a.d.k||(r.da=a.d.dashArray,r.do=a.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),a.style=r,a},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,a,n){var s,i=e.length-1,o,l,c=[],p=[],A,d,f,m=[].concat(n);for(s=i;s>=0;s-=1){if(A=this.searchProcessedElement(e[s]),A?t[s]=r[A-1]:e[s]._shouldRender=a,e[s].ty==="fl"||e[s].ty==="st"||e[s].ty==="gf"||e[s].ty==="gs")A?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],m),c.push(t[s].style);else if(e[s].ty==="gr"){if(!A)t[s]=this.createGroupElement(e[s]);else for(l=t[s].it.length,o=0;o<l;o+=1)t[s].prevViewData[o]=t[s].it[o];this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,a,m)}else e[s].ty==="tr"?(A||(f=this.createTransformElement(e[s]),t[s]=f),m.push(t[s]),this.addTransformToStyleList(t[s])):e[s].ty==="sh"||e[s].ty==="rc"||e[s].ty==="el"||e[s].ty==="sr"?A||(t[s]=this.createShapeElement(e[s])):e[s].ty==="tm"||e[s].ty==="rd"||e[s].ty==="pb"||e[s].ty==="zz"||e[s].ty==="op"?(A?(d=t[s],d.closed=!1):(d=ShapeModifiers.getModifier(e[s].ty),d.init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),p.push(d)):e[s].ty==="rp"&&(A?(d=t[s],d.closed=!0):(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),p.push(d));this.addProcessedElement(e[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),i=p.length,s=0;s<i;s+=1)p[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,r,a,n,s,i,o,l=this.globalData.renderer,c=this.globalData.canvasContext,p,A;for(e=0;e<t;e+=1)if(A=this.stylesList[e],p=A.type,!((p==="st"||p==="gs")&&A.wi===0||!A.data._shouldRender||A.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),i=A.elements,p==="st"||p==="gs"?(l.ctxStrokeStyle(p==="st"?A.co:A.grd),l.ctxLineWidth(A.wi),l.ctxLineCap(A.lc),l.ctxLineJoin(A.lj),l.ctxMiterLimit(A.ml||0)):l.ctxFillStyle(p==="fl"?A.co:A.grd),l.ctxOpacity(A.coOp),p!=="st"&&p!=="gs"&&c.beginPath(),l.ctxTransform(A.preTransforms.finalTransform.props),a=i.length,r=0;r<a;r+=1){for((p==="st"||p==="gs")&&(c.beginPath(),A.da&&(c.setLineDash(A.da),c.lineDashOffset=A.do)),o=i[r].trNodes,s=o.length,n=0;n<s;n+=1)o[n].t==="m"?c.moveTo(o[n].p[0],o[n].p[1]):o[n].t==="c"?c.bezierCurveTo(o[n].pts[0],o[n].pts[1],o[n].pts[2],o[n].pts[3],o[n].pts[4],o[n].pts[5]):c.closePath();(p==="st"||p==="gs")&&(l.ctxStroke(),A.da&&c.setLineDash(this.dashResetter))}p!=="st"&&p!=="gs"&&this.globalData.renderer.ctxFill(A.r),l.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,a){var n,s=t.length-1,i;for(i=e,n=s;n>=0;n-=1)t[n].ty==="tr"?(i=r[n].transform,this.renderShapeTransform(e,i)):t[n].ty==="sh"||t[n].ty==="el"||t[n].ty==="rc"||t[n].ty==="sr"?this.renderPath(t[n],r[n]):t[n].ty==="fl"?this.renderFill(t[n],r[n],i):t[n].ty==="st"?this.renderStroke(t[n],r[n],i):t[n].ty==="gf"||t[n].ty==="gs"?this.renderGradientFill(t[n],r[n],i):t[n].ty==="gr"?this.renderShape(i,t[n].it,r[n].it):t[n].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,a=t.paths,n,s,i,o=a._length;r.length=0;var l=e.transforms.finalTransform;for(i=0;i<o;i+=1){var c=a.shapes[i];if(c&&c.v){for(s=c._length,n=1;n<s;n+=1)n===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),r.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});s===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&s&&(r.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,a=t.styledShapes.length;for(r=0;r<a;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var a=t.style;(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var a=t.style,n;if(!a.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var s=this.globalData.canvasContext,i=t.s.v,o=t.e.v;if(e.t===1)n=s.createLinearGradient(i[0],i[1],o[0],o[1]);else{var l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)),c=Math.atan2(o[1]-i[1],o[0]-i[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var A=l*p,d=Math.cos(c+t.a.v)*A+i[0],f=Math.sin(c+t.a.v)*A+i[1];n=s.createRadialGradient(d,f,0,i[0],i[1],l)}var m,g=e.g.p,E=t.g.c,u=1;for(m=0;m<g;m+=1)t.g._hasOpacity&&t.g._collapsable&&(u=t.g.o[m*2+1]),n.addColorStop(E[m*4]/100,"rgba("+E[m*4+1]+","+E[m*4+2]+","+E[m*4+3]+","+u+")");a.grd=n}a.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var a=t.style,n=t.d;n&&(n._mdf||this._isFirstFrame)&&(a.da=n.dashArray,a.do=n.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(a.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a=this.globalData.fontManager.getFontByName(e.f),n,s,i=e.l,o=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,s=e.finalText.length;var l,c,p,A,d,f,m,g,E,u,y=this.data.singleShape,S=e.tr*.001*e.finalSize,b=0,x=0,C=!0,D=0;for(n=0;n<s;n+=1){l=this.globalData.fontManager.getCharData(e.finalText[n],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),c=l&&l.data||{},o.reset(),y&&i[n].n&&(b=-S,x+=e.yOffset,x+=C?1:0,C=!1),d=c.shapes?c.shapes[0].it:[],m=d.length,o.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,o,i[n].line,b,x),E=createSizedArray(m-1);var I=0;for(f=0;f<m;f+=1)if(d[f].ty==="sh"){for(A=d[f].ks.k.i.length,g=d[f].ks.k,u=[],p=1;p<A;p+=1)p===1&&u.push(o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),u.push(o.applyToX(g.o[p-1][0],g.o[p-1][1],0),o.applyToY(g.o[p-1][0],g.o[p-1][1],0),o.applyToX(g.i[p][0],g.i[p][1],0),o.applyToY(g.i[p][0],g.i[p][1],0),o.applyToX(g.v[p][0],g.v[p][1],0),o.applyToY(g.v[p][0],g.v[p][1],0));u.push(o.applyToX(g.o[p-1][0],g.o[p-1][1],0),o.applyToY(g.o[p-1][0],g.o[p-1][1],0),o.applyToX(g.i[0][0],g.i[0][1],0),o.applyToY(g.i[0][0],g.i[0][1],0),o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),E[I]=u,I+=1}y&&(b+=i[n].l,b+=S),this.textSpans[D]?this.textSpans[D].elem=E:this.textSpans[D]={elem:E},D+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,r,a,n,s,i,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;r=l.length;var c,p=null,A=null,d=null,f,m,g=this.globalData.renderer;for(t=0;t<r;t+=1)if(!l[t].n){if(c=o[t],c&&(g.save(),g.ctxTransform(c.p),g.ctxOpacity(c.o)),this.fill){for(c&&c.fc?p!==c.fc&&(g.ctxFillStyle(c.fc),p=c.fc):p!==this.values.fill&&(p=this.values.fill,g.ctxFillStyle(this.values.fill)),f=this.textSpans[t].elem,n=f.length,this.globalData.canvasContext.beginPath(),a=0;a<n;a+=1)for(m=f[a],i=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),s=2;s<i;s+=6)this.globalData.canvasContext.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(c&&c.sw?d!==c.sw&&(d=c.sw,g.ctxLineWidth(c.sw)):d!==this.values.sWidth&&(d=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),c&&c.sc?A!==c.sc&&(A=c.sc,g.ctxStrokeStyle(c.sc)):A!==this.values.stroke&&(A=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),f=this.textSpans[t].elem,n=f.length,this.globalData.canvasContext.beginPath(),a=0;a<n;a+=1)for(m=f[a],i=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),s=2;s<i;s+=6)this.globalData.canvasContext.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}c&&this.globalData.renderer.restore()}};function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),r=this.img.width,a=this.img.height,n=r/a,s=this.assetData.w/this.assetData.h,i,o,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>s&&l==="xMidYMid slice"||n<s&&l!=="xMidYMid slice"?(o=a,i=o*s):(i=r,o=i/s),t.drawImage(this.img,(r-i)/2,(a-o)/2,i,o,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,a){this.canvasContext.fillRect(e,t,r,a)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var r,a;e?(r=e,a=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr);var n,s;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var i=this.renderConfig.preserveAspectRatio.split(" "),o=i[1]||"meet",l=i[0]||"xMidYMid",c=l.substr(0,4),p=l.substr(4);n=r/a,s=this.transformCanvas.w/this.transformCanvas.h,s>n&&o==="meet"||s<n&&o==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),c==="xMid"&&(s<n&&o==="meet"||s>n&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(s<n&&o==="meet"||s>n&&o==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,p==="YMid"&&(s>n&&o==="meet"||s<n&&o==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:p==="YMax"&&(s>n&&o==="meet"||s<n&&o==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],r=t.transform,a,n=this.cTr.props;for(a=0;a<16;a+=1)n[a]=r[a];if(e){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],a;for(a=0;a<16;a+=1)r.transform[a]=t[a];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,a)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,r=this.layers.length;for(t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();t.transform=r,t.webkitTransform=r}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r=e.sh.v,a=e.transformers,n,s=r._length,i,o,l,c;if(!(s<=1)){for(n=0;n<s-1;n+=1)i=this.getTransformedPoint(a,r.v[n]),o=this.getTransformedPoint(a,r.o[n]),l=this.getTransformedPoint(a,r.i[n+1]),c=this.getTransformedPoint(a,r.v[n+1]),this.checkBounds(i,o,l,c,t);r.c&&(i=this.getTransformedPoint(a,r.v[n]),o=this.getTransformedPoint(a,r.o[n]),l=this.getTransformedPoint(a,r.i[0]),c=this.getTransformedPoint(a,r.v[0]),this.checkBounds(i,o,l,c,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,a,n){this.getBoundsOfCurve(e,t,r,a);var s=this.shapeBoundingBox;n.x=bmMin(s.left,n.x),n.xMax=bmMax(s.right,n.xMax),n.y=bmMin(s.top,n.y),n.yMax=bmMax(s.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,a){for(var n=[[e[0],a[0]],[e[1],a[1]]],s,i,o,l,c,p,A,d=0;d<2;++d)i=6*e[d]-12*t[d]+6*r[d],s=-3*e[d]+9*t[d]-9*r[d]+3*a[d],o=3*t[d]-3*e[d],i|=0,s|=0,o|=0,s===0&&i===0||(s===0?(l=-o/i,l>0&&l<1&&n[d].push(this.calculateF(l,e,t,r,a,d))):(c=i*i-4*o*s,c>=0&&(p=(-i+bmSqrt(c))/(2*s),p>0&&p<1&&n[d].push(this.calculateF(p,e,t,r,a,d)),A=(-i-bmSqrt(c))/(2*s),A>0&&A<1&&n[d].push(this.calculateF(A,e,t,r,a,d)))));this.shapeBoundingBox.left=bmMin.apply(null,n[0]),this.shapeBoundingBox.top=bmMin.apply(null,n[1]),this.shapeBoundingBox.right=bmMax.apply(null,n[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,n[1])},HShapeElement.prototype.calculateF=function(e,t,r,a,n,s){return bmPow(1-e,3)*t[s]+3*bmPow(1-e,2)*e*r[s]+3*(1-e)*bmPow(e,2)*a[s]+bmPow(e,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var n=e.keyframes[a].s;n>r&&(r=n)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=n,a.webkitTransform=n}}};function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{t.fontFamily=a.fFamily;var n=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=n}var i,o,l=e.l;o=l.length;var c,p,A,d=this.mHelper,f,m="",g=0;for(i=0;i<o;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?c=this.textPaths[g]:(c=createNS("path"),c.setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(p=this.textSpans[g],A=p.children[0]):(p=createTag("div"),p.style.lineHeight=0,A=createNS("svg"),A.appendChild(c),styleDiv(p)))):this.isMasked?c=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(p=this.textSpans[g],c=this.textPaths[g]):(p=createTag("span"),styleDiv(p),c=createTag("span"),styleDiv(c),p.appendChild(c)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(e.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u;if(E?u=E.data:u=null,d.reset(),u&&u.shapes&&u.shapes.length&&(f=u.shapes[0].it,d.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(d,f),c.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(p),u&&u.shapes){document.body.appendChild(A);var y=A.getBBox();A.setAttribute("width",y.width+2),A.setAttribute("height",y.height+2),A.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var S=A.style,b="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";S.transform=b,S.webkitTransform=b,l[i].yOffset=y.y-1}else A.setAttribute("width",1),A.setAttribute("height",1);p.appendChild(A)}}else if(c.textContent=l[i].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(p);var x=c.style,C="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=C,x.webkitTransform=C}this.isMasked?this.textSpans[g]=c:this.textSpans[g]=p,this.textSpans[g].style.display="block",this.textPaths[g]=c,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,a,n=0,s=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;a=i.length;var o,l,c;for(r=0;r<a;r+=1)i[r].n?n+=1:(l=this.textSpans[r],c=this.textPaths[r],o=s[n],n+=1,o._mdf.m&&(this.isMasked?l.setAttribute("transform",o.m):(l.style.webkitTransform=o.m,l.style.transform=o.m)),l.style.opacity=o.o,o.sw&&o._mdf.sw&&c.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&c.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(c.setAttribute("fill",o.fc),c.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height));var A=1;if(this.currentBBox.w!==p.width+A*2||this.currentBBox.h!==p.height+A*2||this.currentBBox.x!==p.x-A||this.currentBBox.y!==p.y-A){this.currentBBox.w=p.width+A*2,this.currentBBox.h=p.height+A*2,this.currentBBox.x=p.x-A,this.currentBBox.y=p.y-A,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var n,s=e.ks.or.k.length;for(n=0;n<s;n+=1)e.ks.or.k[n].to=null,e.ks.or.k[n].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,r,a,n;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){a=r.perspectiveElem.style,n=r.container.style;var s=this.pe.v+"px",i="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.perspective=s,a.webkitPerspective=s,n.transformOrigin=i,n.mozTransformOrigin=i,n.webkitTransformOrigin=i,a.transform=o,a.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,r;if(this.hierarchy)for(r=this.hierarchy.length,t=0;t<r;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(r=this.hierarchy.length-1,t=r;t>=0;t-=1){var a=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;this.p?n=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:n=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),i=[n[0]/s,n[1]/s,n[2]/s],o=Math.sqrt(i[2]*i[2]+i[0]*i[0]),l=Math.atan2(i[1],o),c=Math.atan2(i[0],-i[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var A,d,f;for(t=0;t<r;t+=1)if(A=this.comp.threeDElements[t],A.type==="3d"){if(p){var m=this.mat.toCSS();f=A.container.style,f.transform=m,f.webkitTransform=m}this.pe._mdf&&(d=A.perspectiveElem.style,d.perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var a=this.layers[t];if(!a.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var n=0,s,i,o;n<t;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement&&(i=this.elements[n],o=this.layers[n].ddd?this.getThreeDContainerByPos(n):i.getBaseElement(),s=o||s),n+=1;s?(!a.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,s):(!a.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),a,n;styleDiv(r);var s=createTag("div");if(styleDiv(s),t==="3d"){a=r.style,a.width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px";var i="50% 50%";a.webkitTransformOrigin=i,a.mozTransformOrigin=i,a.transformOrigin=i,n=s.style;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.transform=o,n.webkitTransform=o}r.appendChild(s);var l={container:s,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,a="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(a!=="3d"&&(a="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(a!=="2d"&&(a="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,a=this.threeDElements.length;r<a;){if(t<=this.threeDElements[r].endPos){for(var n=this.threeDElements[r].startPos,s;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(s=this.elements[n].getBaseElement()),n+=1;s?this.threeDElements[r].container.insertBefore(e,s):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,a=t.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=t,styleDiv(t),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),a.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var s=createNS("defs");n.appendChild(s),this.data=e,this.setupGlobalData(e,n),this.globalData.defs=s,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,r=e/t,a=this.globalData.compSize.w/this.globalData.compSize.h,n,s,i,o;a>r?(n=e/this.globalData.compSize.w,s=e/this.globalData.compSize.w,i=0,o=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(n=t/this.globalData.compSize.h,s=t/this.globalData.compSize.h,i=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,o=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+n+",0,0,0,0,"+s+",0,0,0,0,1,0,"+i+","+o+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,r,a=this.threeDElements.length;for(r=0;r<a;r+=1){var n=this.threeDElements[r].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,a=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t],a,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}};function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r=0,a;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(a=this.elements[r].getBaseElement()),r+=1;a?this.layerElement.insertBefore(e,a):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(r){for(var a=0,n=e.layers.length;a<n;){if(e.layers[a].nm===r||e.layers[a].ind===r)return e.elements[a].layerInterface;a+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(r){return typeof r}:_typeof$2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$2(e)}function seedRandom(e,t){var r=this,a=256,n=6,s=52,i="random",o=t.pow(a,n),l=t.pow(2,s),c=l*2,p=a-1,A;function d(S,b,x){var C=[];b=b===!0?{entropy:!0}:b||{};var D=E(g(b.entropy?[S,y(e)]:S===null?u():S,3),C),I=new f(C),N=function(){for(var O=I.g(n),R=o,_=0;O<l;)O=(O+_)*a,R*=a,_=I.g(1);for(;O>=c;)O/=2,R/=2,_>>>=1;return(O+_)/R};return N.int32=function(){return I.g(4)|0},N.quick=function(){return I.g(4)/4294967296},N.double=N,E(y(I.S),e),(b.pass||x||function(B,O,R,_){return _&&(_.S&&m(_,I),B.state=function(){return m(I,{})}),R?(t[i]=B,O):B})(N,D,"global"in b?b.global:this==t,b.state)}t["seed"+i]=d;function f(S){var b,x=S.length,C=this,D=0,I=C.i=C.j=0,N=C.S=[];for(x||(S=[x++]);D<a;)N[D]=D++;for(D=0;D<a;D++)N[D]=N[I=p&I+S[D%x]+(b=N[D])],N[I]=b;C.g=function(B){for(var O,R=0,_=C.i,G=C.j,j=C.S;B--;)O=j[_=p&_+1],R=R*a+j[p&(j[_]=j[G=p&G+O])+(j[G]=O)];return C.i=_,C.j=G,R}}function m(S,b){return b.i=S.i,b.j=S.j,b.S=S.S.slice(),b}function g(S,b){var x=[],C=_typeof$2(S),D;if(b&&C=="object")for(D in S)try{x.push(g(S[D],b-1))}catch(I){}return x.length?x:C=="string"?S:S+"\0"}function E(S,b){for(var x=S+"",C,D=0;D<x.length;)b[p&D]=p&(C^=b[p&D]*19)+x.charCodeAt(D++);return y(b)}function u(){try{var S=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(S),y(S)}catch(C){var b=r.navigator,x=b&&b.plugins;return[+new Date,r,x,r.screen,y(e)]}}function y(S){return String.fromCharCode.apply(0,S)}E(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(r){return typeof r}:_typeof$1=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,a=e.length,n=[];for(r=0;r<a;r+=1)n[r]=-e[r];return n}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),a=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(a,t)||r==="string"||a==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,s=e.length,i=t.length,o=[];n<s||n<i;)(typeof e[n]=="number"||e[n]instanceof Number)&&(typeof t[n]=="number"||t[n]instanceof Number)?o[n]=e[n]+t[n]:o[n]=t[n]===void 0?e[n]:e[n]||t[n],n+=1;return o}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),a=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(a,t))return r==="string"&&(e=parseInt(e,10)),a==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,s=e.length,i=t.length,o=[];n<s||n<i;)(typeof e[n]=="number"||e[n]instanceof Number)&&(typeof t[n]=="number"||t[n]instanceof Number)?o[n]=e[n]-t[n]:o[n]=t[n]===void 0?e[n]:e[n]||t[n],n+=1;return o}return 0}function mul(e,t){var r=_typeof$1(e),a=_typeof$1(t),n;if(isNumerable(r,e)&&isNumerable(a,t))return e*t;var s,i;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,n=createTypedArray("float32",i),s=0;s<i;s+=1)n[s]=e[s]*t;return n}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),s=0;s<i;s+=1)n[s]=e*t[s];return n}return 0}function div(e,t){var r=_typeof$1(e),a=_typeof$1(t),n;if(isNumerable(r,e)&&isNumerable(a,t))return e/t;var s,i;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,n=createTypedArray("float32",i),s=0;s<i;s+=1)n[s]=e[s]/t;return n}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),s=0;s<i;s+=1)n[s]=e/t[s];return n}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var a=r;r=t,t=a}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,a=Math.min(e.length,t.length),n=0;for(r=0;r<a;r+=1)n+=Math.pow(t[r]-e[r],2);return Math.sqrt(n)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],a=e[2],n=Math.max(t,r,a),s=Math.min(t,r,a),i,o,l=(n+s)/2;if(n===s)i=0,o=0;else{var c=n-s;switch(o=l>.5?c/(2-n-s):c/(n+s),n){case t:i=(r-a)/c+(r<a?6:0);break;case r:i=(a-t)/c+2;break;case a:i=(t-r)/c+4;break}i/=6}return[i,o,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],a=e[2],n,s,i;if(r===0)n=a,i=a,s=a;else{var o=a<.5?a*(1+r):a+r-a*r,l=2*a-o;n=hue2rgb(l,o,t+1/3),s=hue2rgb(l,o,t),i=hue2rgb(l,o,t-1/3)}return[n,s,i,e[3]]}function linear(e,t,r,a,n){if((a===void 0||n===void 0)&&(a=t,n=r,t=0,r=1),r<t){var s=r;r=t,t=s}if(e<=t)return a;if(e>=r)return n;var i=r===t?0:(e-t)/(r-t);if(!a.length)return a+(n-a)*i;var o,l=a.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=a[o]+(n[o]-a[o])*i;return c}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,a=t.length;e||(e=createTypedArray("float32",a));var n=createTypedArray("float32",a),s=BMMath.random();for(r=0;r<a;r+=1)n[r]=e[r]+s*(t[r]-e[r]);return n}e===void 0&&(e=0);var i=BMMath.random();return e+i*(t-e)}function createPath(e,t,r,a){var n,s=e.length,i=shapePool.newElement();i.setPathData(!!a,s);var o=[0,0],l,c;for(n=0;n<s;n+=1)l=t&&t[n]?t[n]:o,c=r&&r[n]?r[n]:o,i.setTripleAt(e[n][0],e[n][1],c[0]+e[n][0],c[1]+e[n][1],l[0]+e[n][0],l[1]+e[n][1],n,!0);return i}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,r){var a,n,s=this.pv.length?this.pv.length:1,i=createTypedArray("float32",s);t=5;var o=Math.floor(time*t);for(a=0,n=0;a<o;){for(n=0;n<s;n+=1)i[n]+=-r+r*2*BMMath.random();a+=1}var l=time*t,c=l-Math.floor(l),p=createTypedArray("float32",s);if(s>1){for(n=0;n<s;n+=1)p[n]=this.pv[n]+i[n]+(-r+r*2*BMMath.random())*c;return p}return this.pv+i[0]+(-r+r*2*BMMath.random())*c}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],a=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,n=-Math.atan2(r[1],r[2])/degToRads;return[n,a,0]}function easeOut(e,t,r,a,n){return applyEase(easeOutBez,e,t,r,a,n)}function easeIn(e,t,r,a,n){return applyEase(easeInBez,e,t,r,a,n)}function ease(e,t,r,a,n){return applyEase(easeInOutBez,e,t,r,a,n)}function applyEase(e,t,r,a,n,s){n===void 0?(n=r,s=a):t=(t-r)/(a-r),t>1?t=1:t<0&&(t=0);var i=e(t);if($bm_isInstanceOfArray(n)){var o,l=n.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(s[o]-n[o])*i+n[o];return c}return(s-n)*i+n}function nearestKey(e){var t,r=data.k.length,a,n;if(!data.k.length||typeof data.k[0]=="number")a=0,n=0;else if(a=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)a=1,n=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){a=t+1,n=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(a=t+2,n=data.k[t+1].t):(a=t+1,n=data.k[t].t);break}a===-1&&(a=t+1,n=data.k[t].t)}var s={};return s.index=a,s.time=n/elem.comp.globalData.frameRate,s}function key(e){var t,r,a;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=n.length,r=0;r<a;r+=1)t[r]=n[r],t.value[r]=n[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(r){var a=0,n=[];function s(){a+=1}function i(){a-=1,a===0&&l()}function o(c){n.indexOf(c)===-1&&n.push(c)}function l(){var c,p=n.length;for(c=0;c<p;c+=1)n[c].release();n.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=s,r.renderer.globalData.popExpression=i,r.renderer.globalData.registerExpressionProperty=o}return e}(),MaskManagerInterface=function(){function e(r,a){this._mask=r,this._data=a}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(a){var n=createSizedArray(a.viewData.length),s,i=a.viewData.length;for(s=0;s<i;s+=1)n[s]=new e(a.viewData[s],a.masksProperties[s]);var o=function(c){for(s=0;s<i;){if(a.masksProperties[s].nm===c)return n[s];s+=1}return null};return o};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(i,o,l){Object.defineProperty(i,"velocity",{get:function(){return o.getVelocityAtTime(o.comp.currentFrame)}}),i.numKeys=o.keyframes?o.keyframes.length:0,i.key=function(c){if(!i.numKeys)return 0;var p="";"s"in o.keyframes[c-1]?p=o.keyframes[c-1].s:"e"in o.keyframes[c-2]?p=o.keyframes[c-2].e:p=o.keyframes[c-2].s;var A=l==="unidimensional"?new Number(p):Object.assign({},p);return A.time=o.keyframes[c-1].t/o.elem.comp.globalData.frameRate,A.value=l==="unidimensional"?p[0]:p,A},i.valueAtTime=o.getValueAtTime,i.speedAtTime=o.getSpeedAtTime,i.velocityAtTime=o.getVelocityAtTime,i.propertyGroup=o.propertyGroup}function a(i){(!i||!("pv"in i))&&(i=e);var o=1/i.mult,l=i.pv*o,c=new Number(l);return c.value=l,r(c,i,"unidimensional"),function(){return i.k&&i.getValue(),l=i.v*o,c.value!==l&&(c=new Number(l),c.value=l,r(c,i,"unidimensional")),c}}function n(i){(!i||!("pv"in i))&&(i=t);var o=1/i.mult,l=i.data&&i.data.l||i.pv.length,c=createTypedArray("float32",l),p=createTypedArray("float32",l);return c.value=p,r(c,i,"multidimensional"),function(){i.k&&i.getValue();for(var A=0;A<l;A+=1)p[A]=i.v[A]*o,c[A]=p[A];return c}}function s(){return e}return function(i){return i?i.propType==="unidimensional"?a(i):n(i):s}}(),TransformExpressionInterface=function(){return function(e){function t(i){switch(i){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var r,a,n,s;return e.p?s=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(n=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?s():[r(),a(),n?n():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(c){var p=new Matrix;if(c!==void 0){var A=this._elem.finalTransform.mProp.getValueAtTime(c);A.clone(p)}else{var d=this._elem.finalTransform.mProp;d.applyToMatrix(p)}return p}function t(c,p){var A=this.getMatrix(p);return A.props[12]=0,A.props[13]=0,A.props[14]=0,this.applyPoint(A,c)}function r(c,p){var A=this.getMatrix(p);return this.applyPoint(A,c)}function a(c,p){var A=this.getMatrix(p);return A.props[12]=0,A.props[13]=0,A.props[14]=0,this.invertPoint(A,c)}function n(c,p){var A=this.getMatrix(p);return this.invertPoint(A,c)}function s(c,p){if(this._elem.hierarchy&&this._elem.hierarchy.length){var A,d=this._elem.hierarchy.length;for(A=0;A<d;A+=1)this._elem.hierarchy[A].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(p[0],p[1],p[2]||0)}function i(c,p){if(this._elem.hierarchy&&this._elem.hierarchy.length){var A,d=this._elem.hierarchy.length;for(A=0;A<d;A+=1)this._elem.hierarchy[A].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(p)}function o(c){var p=new Matrix;if(p.reset(),this._elem.finalTransform.mProp.applyToMatrix(p),this._elem.hierarchy&&this._elem.hierarchy.length){var A,d=this._elem.hierarchy.length;for(A=0;A<d;A+=1)this._elem.hierarchy[A].finalTransform.mProp.applyToMatrix(p);return p.inversePoint(c)}return p.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var p;function A(g){f.mask=new MaskManagerInterface(g,c)}function d(g){f.effect=g}function f(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return f.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return f.effect;case"ADBE Text Properties":return f.textInterface;default:return null}}f.getMatrix=e,f.invertPoint=i,f.applyPoint=s,f.toWorld=r,f.toWorldVec=t,f.fromWorld=n,f.fromWorldVec=a,f.toComp=r,f.fromComp=o,f.sampleImage=l,f.sourceRectAtTime=c.sourceRectAtTime.bind(c),f._elem=c,p=TransformExpressionInterface(c.finalTransform.mProp);var m=getDescriptor(p,"anchorPoint");return Object.defineProperties(f,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return p}},active:{get:function(){return c.isInRange}}}),f.startTime=c.data.st,f.index=c.data.ind,f.source=c.data.refId,f.height=c.data.ty===0?c.data.h:100,f.width=c.data.ty===0?c.data.w:100,f.inPoint=c.data.ip/c.comp.globalData.frameRate,f.outPoint=c.data.op/c.comp.globalData.frameRate,f._name=c.data.nm,f.registerMaskInterface=A,f.registerEffectsInterface=d,f}}(),propertyGroupFactory=function(){return function(e,t){return function(r){return r=r===void 0?1:r,r<=0?e:t(r-1)}}}(),PropertyInterface=function(){return function(e,t){var r={_name:e};function a(n){return n=n===void 0?1:n,n<=0?r:t(n-1)}return a}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(n,s){if(n.effectsManager){var i=[],o=n.data.ef,l,c=n.effectsManager.effectElements.length;for(l=0;l<c;l+=1)i.push(r(o[l],n.effectsManager.effectElements[l],s,n));var p=n.data.ef||[],A=function(f){for(l=0,c=p.length;l<c;){if(f===p[l].nm||f===p[l].mn||f===p[l].ix)return i[l];l+=1}return null};return Object.defineProperty(A,"numProperties",{get:function(){return p.length}}),A}return null}function r(n,s,i,o){function l(f){for(var m=n.ef,g=0,E=m.length;g<E;){if(f===m[g].nm||f===m[g].mn||f===m[g].ix)return m[g].ty===5?p[g]:p[g]();g+=1}throw new Error}var c=propertyGroupFactory(l,i),p=[],A,d=n.ef.length;for(A=0;A<d;A+=1)n.ef[A].ty===5?p.push(r(n.ef[A],s.effectElements[A],s.effectElements[A].propertyGroup,o)):p.push(a(s.effectElements[A],n.ef[A].ty,o,c));return n.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return p[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:c}}),l.enabled=n.en!==0,l.active=l.enabled,l}function a(n,s,i,o){var l=ExpressionPropertyInterface(n.p);function c(){return s===10?i.comp.compInterface(n.p.v):l()}return n.p.setGroupProperty&&n.p.setGroupProperty(PropertyInterface("",o)),c}return e}(),ShapePathInterface=function(){return function(t,r,a){var n=r.sh;function s(o){return o==="Shape"||o==="shape"||o==="Path"||o==="path"||o==="ADBE Vector Shape"||o===2?s.path:null}var i=propertyGroupFactory(s,a);return n.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(s,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:a}}),s}}(),ShapeExpressionInterface=function(){function e(m,g,E){var u=[],y,S=m?m.length:0;for(y=0;y<S;y+=1)m[y].ty==="gr"?u.push(r(m[y],g[y],E)):m[y].ty==="fl"?u.push(a(m[y],g[y],E)):m[y].ty==="st"?u.push(i(m[y],g[y],E)):m[y].ty==="tm"?u.push(o(m[y],g[y],E)):m[y].ty==="tr"||(m[y].ty==="el"?u.push(c(m[y],g[y],E)):m[y].ty==="sr"?u.push(p(m[y],g[y],E)):m[y].ty==="sh"?u.push(ShapePathInterface(m[y],g[y],E)):m[y].ty==="rc"?u.push(A(m[y],g[y],E)):m[y].ty==="rd"?u.push(d(m[y],g[y],E)):m[y].ty==="rp"?u.push(f(m[y],g[y],E)):m[y].ty==="gf"?u.push(n(m[y],g[y],E)):u.push(s(m[y],g[y])));return u}function t(m,g,E){var u,y=function(x){for(var C=0,D=u.length;C<D;){if(u[C]._name===x||u[C].mn===x||u[C].propertyIndex===x||u[C].ix===x||u[C].ind===x)return u[C];C+=1}return typeof x=="number"?u[x-1]:null};y.propertyGroup=propertyGroupFactory(y,E),u=e(m.it,g.it,y.propertyGroup),y.numProperties=u.length;var S=l(m.it[m.it.length-1],g.it[g.it.length-1],y.propertyGroup);return y.transform=S,y.propertyIndex=m.cix,y._name=m.nm,y}function r(m,g,E){var u=function(x){switch(x){case"ADBE Vectors Group":case"Contents":case 2:return u.content;default:return u.transform}};u.propertyGroup=propertyGroupFactory(u,E);var y=t(m,g,u.propertyGroup),S=l(m.it[m.it.length-1],g.it[g.it.length-1],u.propertyGroup);return u.content=y,u.transform=S,Object.defineProperty(u,"_name",{get:function(){return m.nm}}),u.numProperties=m.np,u.propertyIndex=m.ix,u.nm=m.nm,u.mn=m.mn,u}function a(m,g,E){function u(y){return y==="Color"||y==="color"?u.color:y==="Opacity"||y==="opacity"?u.opacity:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm},mn:{value:m.mn}}),g.c.setGroupProperty(PropertyInterface("Color",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),u}function n(m,g,E){function u(y){return y==="Start Point"||y==="start point"?u.startPoint:y==="End Point"||y==="end point"?u.endPoint:y==="Opacity"||y==="opacity"?u.opacity:null}return Object.defineProperties(u,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:m.nm},mn:{value:m.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",E)),g.e.setGroupProperty(PropertyInterface("End Point",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),u}function s(){function m(){return null}return m}function i(m,g,E){var u=propertyGroupFactory(D,E),y=propertyGroupFactory(C,u);function S(I){Object.defineProperty(C,m.d[I].nm,{get:ExpressionPropertyInterface(g.d.dataProps[I].p)})}var b,x=m.d?m.d.length:0,C={};for(b=0;b<x;b+=1)S(b),g.d.dataProps[b].p.setGroupProperty(y);function D(I){return I==="Color"||I==="color"?D.color:I==="Opacity"||I==="opacity"?D.opacity:I==="Stroke Width"||I==="stroke width"?D.strokeWidth:null}return Object.defineProperties(D,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return C}},_name:{value:m.nm},mn:{value:m.mn}}),g.c.setGroupProperty(PropertyInterface("Color",u)),g.o.setGroupProperty(PropertyInterface("Opacity",u)),g.w.setGroupProperty(PropertyInterface("Stroke Width",u)),D}function o(m,g,E){function u(S){return S===m.e.ix||S==="End"||S==="end"?u.end:S===m.s.ix?u.start:S===m.o.ix?u.offset:null}var y=propertyGroupFactory(u,E);return u.propertyIndex=m.ix,g.s.setGroupProperty(PropertyInterface("Start",y)),g.e.setGroupProperty(PropertyInterface("End",y)),g.o.setGroupProperty(PropertyInterface("Offset",y)),u.propertyIndex=m.ix,u.propertyGroup=E,Object.defineProperties(u,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm}}),u.mn=m.mn,u}function l(m,g,E){function u(S){return m.a.ix===S||S==="Anchor Point"?u.anchorPoint:m.o.ix===S||S==="Opacity"?u.opacity:m.p.ix===S||S==="Position"?u.position:m.r.ix===S||S==="Rotation"||S==="ADBE Vector Rotation"?u.rotation:m.s.ix===S||S==="Scale"?u.scale:m.sk&&m.sk.ix===S||S==="Skew"?u.skew:m.sa&&m.sa.ix===S||S==="Skew Axis"?u.skewAxis:null}var y=propertyGroupFactory(u,E);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",y)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",y)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",y)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",y)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",y)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",y)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",y))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",y)),Object.defineProperties(u,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:m.nm}}),u.ty="tr",u.mn=m.mn,u.propertyGroup=E,u}function c(m,g,E){function u(b){return m.p.ix===b?u.position:m.s.ix===b?u.size:null}var y=propertyGroupFactory(u,E);u.propertyIndex=m.ix;var S=g.sh.ty==="tm"?g.sh.prop:g.sh;return S.s.setGroupProperty(PropertyInterface("Size",y)),S.p.setGroupProperty(PropertyInterface("Position",y)),Object.defineProperties(u,{size:{get:ExpressionPropertyInterface(S.s)},position:{get:ExpressionPropertyInterface(S.p)},_name:{value:m.nm}}),u.mn=m.mn,u}function p(m,g,E){function u(b){return m.p.ix===b?u.position:m.r.ix===b?u.rotation:m.pt.ix===b?u.points:m.or.ix===b||b==="ADBE Vector Star Outer Radius"?u.outerRadius:m.os.ix===b?u.outerRoundness:m.ir&&(m.ir.ix===b||b==="ADBE Vector Star Inner Radius")?u.innerRadius:m.is&&m.is.ix===b?u.innerRoundness:null}var y=propertyGroupFactory(u,E),S=g.sh.ty==="tm"?g.sh.prop:g.sh;return u.propertyIndex=m.ix,S.or.setGroupProperty(PropertyInterface("Outer Radius",y)),S.os.setGroupProperty(PropertyInterface("Outer Roundness",y)),S.pt.setGroupProperty(PropertyInterface("Points",y)),S.p.setGroupProperty(PropertyInterface("Position",y)),S.r.setGroupProperty(PropertyInterface("Rotation",y)),m.ir&&(S.ir.setGroupProperty(PropertyInterface("Inner Radius",y)),S.is.setGroupProperty(PropertyInterface("Inner Roundness",y))),Object.defineProperties(u,{position:{get:ExpressionPropertyInterface(S.p)},rotation:{get:ExpressionPropertyInterface(S.r)},points:{get:ExpressionPropertyInterface(S.pt)},outerRadius:{get:ExpressionPropertyInterface(S.or)},outerRoundness:{get:ExpressionPropertyInterface(S.os)},innerRadius:{get:ExpressionPropertyInterface(S.ir)},innerRoundness:{get:ExpressionPropertyInterface(S.is)},_name:{value:m.nm}}),u.mn=m.mn,u}function A(m,g,E){function u(b){return m.p.ix===b?u.position:m.r.ix===b?u.roundness:m.s.ix===b||b==="Size"||b==="ADBE Vector Rect Size"?u.size:null}var y=propertyGroupFactory(u,E),S=g.sh.ty==="tm"?g.sh.prop:g.sh;return u.propertyIndex=m.ix,S.p.setGroupProperty(PropertyInterface("Position",y)),S.s.setGroupProperty(PropertyInterface("Size",y)),S.r.setGroupProperty(PropertyInterface("Rotation",y)),Object.defineProperties(u,{position:{get:ExpressionPropertyInterface(S.p)},roundness:{get:ExpressionPropertyInterface(S.r)},size:{get:ExpressionPropertyInterface(S.s)},_name:{value:m.nm}}),u.mn=m.mn,u}function d(m,g,E){function u(b){return m.r.ix===b||b==="Round Corners 1"?u.radius:null}var y=propertyGroupFactory(u,E),S=g;return u.propertyIndex=m.ix,S.rd.setGroupProperty(PropertyInterface("Radius",y)),Object.defineProperties(u,{radius:{get:ExpressionPropertyInterface(S.rd)},_name:{value:m.nm}}),u.mn=m.mn,u}function f(m,g,E){function u(b){return m.c.ix===b||b==="Copies"?u.copies:m.o.ix===b||b==="Offset"?u.offset:null}var y=propertyGroupFactory(u,E),S=g;return u.propertyIndex=m.ix,S.c.setGroupProperty(PropertyInterface("Copies",y)),S.o.setGroupProperty(PropertyInterface("Offset",y)),Object.defineProperties(u,{copies:{get:ExpressionPropertyInterface(S.c)},offset:{get:ExpressionPropertyInterface(S.o)},_name:{value:m.nm}}),u.mn=m.mn,u}return function(m,g,E){var u;function y(b){if(typeof b=="number")return b=b===void 0?1:b,b===0?E:u[b-1];for(var x=0,C=u.length;x<C;){if(u[x]._name===b)return u[x];x+=1}return null}function S(){return E}return y.propertyGroup=propertyGroupFactory(y,S),u=e(m,g,y.propertyGroup),y.numProperties=u.length,y._name="Contents",y}}(),TextExpressionInterface=function(){return function(e){var t;function r(a){switch(a){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return(!t||n!==t.value)&&(t=new String(n),t.value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(e)}var FootageInterface=function(){var e=function(a){var n="",s=a.getFootageData();function i(){return n="",s=a.getFootageData(),o}function o(l){if(s[l])return n=l,s=s[l],_typeof(s)==="object"?o:s;var c=l.indexOf(n);if(c!==-1){var p=parseInt(l.substr(c+n.length),10);return s=s[p],_typeof(s)==="object"?o:s}return""}return i},t=function(a){function n(s){return s==="Outline"?n.outlineInterface():null}return n._name="Outline",n.outlineInterface=e(a),n};return function(r){function a(n){return n==="Data"?a.dataInterface:null}return a._name="Data",a.dataInterface=t(r),a}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(i,o,l){o.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(i,o,l).bind(l)))}function t(i){return i*=this.elem.globalData.frameRate,i-=this.offsetTime,i!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<i?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(i,this._cachingAtTime),this._cachingAtTime.lastFrame=i),this._cachingAtTime.value}function r(i){var o=-.01,l=this.getValueAtTime(i),c=this.getValueAtTime(i+o),p=0;if(l.length){var A;for(A=0;A<l.length;A+=1)p+=Math.pow(c[A]-l[A],2);p=Math.sqrt(p)*100}else p=0;return p}function a(i){if(this.vel!==void 0)return this.vel;var o=-.001,l=this.getValueAtTime(i),c=this.getValueAtTime(i+o),p;if(l.length){p=createTypedArray("float32",l.length);var A;for(A=0;A<l.length;A+=1)p[A]=(c[A]-l[A])/o}else p=(c-l)/o;return p}function n(){return this.pv}function s(i){this.propertyGroup=i}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:a,getValueAtTime:t,getStaticValueAtTime:n,setGroupProperty:s}}();function addPropertyDecorator(){function e(d,f,m){if(!this.k||!this.keyframes)return this.pv;d=d?d.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,u=E[E.length-1].t;if(g<=u)return this.pv;var y,S;m?(f?y=Math.abs(u-this.elem.comp.globalData.frameRate*f):y=Math.max(0,u-this.elem.data.ip),S=u-y):((!f||f>E.length-1)&&(f=E.length-1),S=E[E.length-1-f].t,y=u-S);var b,x,C;if(d==="pingpong"){var D=Math.floor((g-S)/y);if(D%2!==0)return this.getValueAtTime((y-(g-S)%y+S)/this.comp.globalData.frameRate,0)}else if(d==="offset"){var I=this.getValueAtTime(S/this.comp.globalData.frameRate,0),N=this.getValueAtTime(u/this.comp.globalData.frameRate,0),B=this.getValueAtTime(((g-S)%y+S)/this.comp.globalData.frameRate,0),O=Math.floor((g-S)/y);if(this.pv.length){for(C=new Array(I.length),x=C.length,b=0;b<x;b+=1)C[b]=(N[b]-I[b])*O+B[b];return C}return(N-I)*O+B}else if(d==="continue"){var R=this.getValueAtTime(u/this.comp.globalData.frameRate,0),_=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(C=new Array(R.length),x=C.length,b=0;b<x;b+=1)C[b]=R[b]+(R[b]-_[b])*((g-u)/this.comp.globalData.frameRate)/5e-4;return C}return R+(R-_)*((g-u)/.001)}return this.getValueAtTime(((g-S)%y+S)/this.comp.globalData.frameRate,0)}function t(d,f,m){if(!this.k)return this.pv;d=d?d.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,u=E[0].t;if(g>=u)return this.pv;var y,S;m?(f?y=Math.abs(this.elem.comp.globalData.frameRate*f):y=Math.max(0,this.elem.data.op-u),S=u+y):((!f||f>E.length-1)&&(f=E.length-1),S=E[f].t,y=S-u);var b,x,C;if(d==="pingpong"){var D=Math.floor((u-g)/y);if(D%2===0)return this.getValueAtTime(((u-g)%y+u)/this.comp.globalData.frameRate,0)}else if(d==="offset"){var I=this.getValueAtTime(u/this.comp.globalData.frameRate,0),N=this.getValueAtTime(S/this.comp.globalData.frameRate,0),B=this.getValueAtTime((y-(u-g)%y+u)/this.comp.globalData.frameRate,0),O=Math.floor((u-g)/y)+1;if(this.pv.length){for(C=new Array(I.length),x=C.length,b=0;b<x;b+=1)C[b]=B[b]-(N[b]-I[b])*O;return C}return B-(N-I)*O}else if(d==="continue"){var R=this.getValueAtTime(u/this.comp.globalData.frameRate,0),_=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(C=new Array(R.length),x=C.length,b=0;b<x;b+=1)C[b]=R[b]+(R[b]-_[b])*(u-g)/.001;return C}return R+(R-_)*(u-g)/.001}return this.getValueAtTime((y-((u-g)%y+u))/this.comp.globalData.frameRate,0)}function r(d,f){if(!this.k)return this.pv;if(d=(d||.4)*.5,f=Math.floor(f||5),f<=1)return this.pv;var m=this.comp.renderedFrame/this.comp.globalData.frameRate,g=m-d,E=m+d,u=f>1?(E-g)/(f-1):1,y=0,S=0,b;this.pv.length?b=createTypedArray("float32",this.pv.length):b=0;for(var x;y<f;){if(x=this.getValueAtTime(g+y*u),this.pv.length)for(S=0;S<this.pv.length;S+=1)b[S]+=x[S];else b+=x;y+=1}if(this.pv.length)for(S=0;S<this.pv.length;S+=1)b[S]/=f;else b/=f;return b}function a(d){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var f=this._transformCachingAtTime.v;if(f.cloneFromProps(this.pre.props),this.appliedTransformations<1){var m=this.a.getValueAtTime(d);f.translate(-m[0]*this.a.mult,-m[1]*this.a.mult,m[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(d);f.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var E=this.sk.getValueAtTime(d),u=this.sa.getValueAtTime(d);f.skewFromAxis(-E*this.sk.mult,u*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var y=this.r.getValueAtTime(d);f.rotate(-y*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var S=this.rz.getValueAtTime(d),b=this.ry.getValueAtTime(d),x=this.rx.getValueAtTime(d),C=this.or.getValueAtTime(d);f.rotateZ(-S*this.rz.mult).rotateY(b*this.ry.mult).rotateX(x*this.rx.mult).rotateZ(-C[2]*this.or.mult).rotateY(C[1]*this.or.mult).rotateX(C[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var D=this.px.getValueAtTime(d),I=this.py.getValueAtTime(d);if(this.data.p.z){var N=this.pz.getValueAtTime(d);f.translate(D*this.px.mult,I*this.py.mult,-N*this.pz.mult)}else f.translate(D*this.px.mult,I*this.py.mult,0)}else{var B=this.p.getValueAtTime(d);f.translate(B[0]*this.p.mult,B[1]*this.p.mult,-B[2]*this.p.mult)}return f}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(d,f,m){var g=s(d,f,m);return g.dynamicProperties.length?g.getValueAtTime=a.bind(g):g.getValueAtTime=n.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var i=PropertyFactory.getProp;PropertyFactory.getProp=function(d,f,m,g,E){var u=i(d,f,m,g,E);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=e,u.loopIn=t,u.smooth=r,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=f.a===1?f.k.length:0,u.propertyIndex=f.ix;var y=0;return m!==0&&(y=createTypedArray("float32",f.a===1?f.k[0].s.length:f.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:y},expressionHelpers.searchExpressions(d,f,u),u.k&&E.addDynamicProperty(u),u};function o(d){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),d*=this.elem.globalData.frameRate,d-=this.offsetTime,d!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<d?this._caching.lastIndex:0,this._cachingAtTime.lastTime=d,this.interpolateShape(d,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function(f,m){this.k&&this.getValue();var g=this.v;m!==void 0&&(g=this.getValueAtTime(m,0));var E,u=g._length,y=g[f],S=g.v,b=createSizedArray(u);for(E=0;E<u;E+=1)f==="i"||f==="o"?b[E]=[y[E][0]-S[E][0],y[E][1]-S[E][1]]:b[E]=[y[E][0],y[E][1]];return b},points:function(f){return this.vertices("v",f)},inTangents:function(f){return this.vertices("i",f)},outTangents:function(f){return this.vertices("o",f)},isClosed:function(){return this.v.c},pointOnPath:function(f,m){var g=this.v;m!==void 0&&(g=this.getValueAtTime(m,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var E=this._segmentsLength,u=E.lengths,y=E.totalLength*f,S=0,b=u.length,x=0,C;S<b;){if(x+u[S].addedLength>y){var D=S,I=g.c&&S===b-1?0:S+1,N=(y-x)/u[S].addedLength;C=bez.getPointInSegment(g.v[D],g.v[I],g.o[D],g.i[I],N,u[S]);break}else x+=u[S].addedLength;S+=1}return C||(C=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),C},vectorOnPath:function(f,m,g){f==1?f=this.v.c:f==0&&(f=.999);var E=this.pointOnPath(f,m),u=this.pointOnPath(f+.001,m),y=u[0]-E[0],S=u[1]-E[1],b=Math.sqrt(Math.pow(y,2)+Math.pow(S,2));if(b===0)return[0,0];var x=g==="tangent"?[y/b,S/b]:[-S/b,y/b];return x},tangentOnPath:function(f,m){return this.vectorOnPath(f,m,"tangent")},normalOnPath:function(f,m){return this.vectorOnPath(f,m,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],l),extendPrototype([p],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var A=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(d,f,m,g,E){var u=A(d,f,m,g,E);return u.propertyIndex=f.ix,u.lock=!1,m===3?expressionHelpers.searchExpressions(d,f.pt,u):m===4&&expressionHelpers.searchExpressions(d,f.ks,u),u.k&&d.addDynamicProperty(u),u}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,r){var a=this.calculateExpression(r);if(t.t!==a){var n={};return this.copyData(n,t),n.t=a.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var a=createNS("feMerge");a.setAttribute("result",t);var n,s;for(s=0;s<r.length;s+=1)n=createNS("feMergeNode"),n.setAttribute("in",r[s]),a.appendChild(n),a.appendChild(n);return a}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,a,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",a+"_tint_1"),e.appendChild(s),s=createNS("feColorMatrix"),s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",a+"_tint_2"),e.appendChild(s),this.matrixFilter=s;var i=this.createMergeNode(a,[n,a+"_tint_1",a+"_tint_2"]);e.appendChild(i)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,r,a){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",a),e.appendChild(n),this.matrixFilter=n}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,r,a,n;for(this.filterManager.effectElements[1].p.v===1?(n=this.elem.maskManager.masksProperties.length,a=0):(a=this.filterManager.effectElements[0].p.v-1,n=a+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),a;a<n;a+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:a});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),i=createElementID();s.setAttribute("id",i),s.setAttribute("mask-type","alpha"),s.appendChild(r),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+i+")");e[0];)o.appendChild(e[0]);this.elem.layerElement.appendChild(o),this.masker=s,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,r=this.paths.length,a,n;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(a=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||a.prop._mdf)&&n.setAttribute("d",a.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){var s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var i=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,o=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=n.getTotalLength();s="0 0 0 "+l*i+" ";var c=l*(o-i),p=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,A=Math.floor(c/p),d;for(d=0;d<A;d+=1)s+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+l*10+" 0 0"}else s="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",s)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(f[0]*255)+","+bmFloor(f[1]*255)+","+bmFloor(f[2]*255)+")")}};function SVGTritoneFilter(e,t,r,a){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",a),this.matrixFilter=s;var i=createNS("feFuncR");i.setAttribute("type","table"),s.appendChild(i),this.feFuncR=i;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,e.appendChild(s)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,n=a[0]+" "+r[0]+" "+t[0],s=a[1]+" "+r[1]+" "+t[1],i=a[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",i)}};function SVGProLevelsFilter(e,t,r,a){this.filterManager=t;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||n[10].p.v!==0||n[11].p.k||n[11].p.v!==1||n[12].p.k||n[12].p.v!==1||n[13].p.k||n[13].p.v!==0||n[14].p.k||n[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||n[17].p.v!==0||n[18].p.k||n[18].p.v!==1||n[19].p.k||n[19].p.v!==1||n[20].p.k||n[20].p.v!==0||n[21].p.k||n[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||n[24].p.v!==0||n[25].p.k||n[25].p.v!==1||n[26].p.k||n[26].p.v!==1||n[27].p.k||n[27].p.v!==0||n[28].p.k||n[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||n[31].p.v!==0||n[32].p.k||n[32].p.v!==1||n[33].p.k||n[33].p.v!==1||n[34].p.k||n[34].p.v!==0||n[35].p.k||n[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(s)),(n[3].p.k||n[3].p.v!==0||n[4].p.k||n[4].p.v!==1||n[5].p.k||n[5].p.v!==1||n[6].p.k||n[6].p.v!==0||n[7].p.k||n[7].p.v!==1)&&(s=createNS("feComponentTransfer"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",a),e.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,a,n){for(var s=0,i=256,o,l=Math.min(e,t),c=Math.max(e,t),p=Array.call(null,{length:i}),A,d=0,f=n-a,m=t-e;s<=256;)o=s/256,o<=l?A=m<0?n:a:o>=c?A=m<0?a:n:A=a+f*Math.pow((o-e)/m,1/r),p[d]=A,d+=1,s+=256/(i-1);return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,r,a,n){var s=t.container.globalData.renderConfig.filterSize,i=t.data.fs||s;e.setAttribute("x",i.x||s.x),e.setAttribute("y",i.y||s.y),e.setAttribute("width",i.width||s.width),e.setAttribute("height",i.height||s.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",a+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",a+"_drop_shadow_1"),l.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var p=createNS("feComposite");p.setAttribute("in",a+"_drop_shadow_3"),p.setAttribute("in2",a+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(p);var A=this.createMergeNode(a,[a+"_drop_shadow_4",n]);e.appendChild(A)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(a),s=r*Math.sin(a);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var a=r.children,n=0,s=a.length;n<s&&a[n]!==e.layerElement;)n+=1;var i;n<=s-2&&(i=a[n+1]);var o=createNS("use");o.setAttribute("href","#"+t),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),a=createNS("mask");a.setAttribute("id",t.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var n=e.globalData.defs;n.appendChild(a);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(t,r),s.appendChild(t.layerElement),n.appendChild(s);var i=createNS("use");i.setAttribute("href","#"+r),a.appendChild(i),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,a=t.length;r<a;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,r,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("result",a),e.appendChild(n),this.feGaussianBlur=n}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,a=this.filterManager.effectElements[1].p.v,n=a==3?0:r,s=a==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+s);var i=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,a=t[1].p.v,n=t[2].p.v===1,s=t[3].p.v,i=n?s:t[4].p.v,o=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(i*.01,s*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(a[0],a[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie,lottie.exports);var lottieExports=lottie.exports;const Lottie=getDefaultExportFromCjs(lottieExports);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,Symbol$1=root$1.Symbol,Symbol$2=Symbol$1,objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$b.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch(s){}var n=nativeObjectToString$1.call(e);return a&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),n}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}var isArray=Array.isArray,isArray$1=isArray;function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag$2||t==genTag$1||t==asyncTag||t==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(e!=null){try{return funcToString$1.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$c=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$c.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject(e)||isMasked(e))return!1;var t=isFunction(e)?reIsNative:reIsHostCtor;return t.test(toSource(e))}function getValue(e,t){return e==null?void 0:e[t]}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:void 0}var WeakMap=getNative(root$1,"WeakMap"),WeakMap$1=WeakMap,objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),baseCreate$1=baseCreate;function copyArray(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var defineProperty=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),defineProperty$1=defineProperty;function arrayEach(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;return t=t==null?MAX_SAFE_INTEGER$1:t,!!t&&(r=="number"||r!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function baseAssignValue(e,t,r){t=="__proto__"&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function eq(e,t){return e===t||e!==e&&t!==t}var objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function assignValue(e,t,r){var a=e[t];(!(hasOwnProperty$9.call(e,t)&&eq(a,r))||r===void 0&&!(t in e))&&baseAssignValue(e,t,r)}function copyObject(e,t,r,a){var n=!r;r||(r={});for(var s=-1,i=t.length;++s<i;){var o=t[s],l=a?a(r[o],e[o],o,r,e):void 0;l===void 0&&(l=e[o]),n?baseAssignValue(r,o,l):assignValue(r,o,l)}return r}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var objectProto$a=Object.prototype;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||objectProto$a;return e===r}function baseTimes(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var argsTag$3="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag$3}var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$8.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,isBuffer$1=isBuffer,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var e=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(t){}}(),nodeUtil$1=nodeUtil,nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray$1=isTypedArray,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray$1(e),a=!r&&isArguments$1(e),n=!r&&!a&&isBuffer$1(e),s=!r&&!a&&!n&&isTypedArray$1(e),i=r||a||n||s,o=i?baseTimes(e.length,String):[],l=o.length;for(var c in e)(t||hasOwnProperty$7.call(e,c))&&!(i&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||isIndex(c,l)))&&o.push(c);return o}function overArg(e,t){return function(r){return e(t(r))}}var nativeKeys=overArg(Object.keys,Object),nativeKeys$1=nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys$1(e);var t=[];for(var r in Object(e))hasOwnProperty$6.call(e,r)&&r!="constructor"&&t.push(r);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function nativeKeysIn(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeysIn(e){if(!isObject(e))return nativeKeysIn(e);var t=isPrototype(e),r=[];for(var a in e)a=="constructor"&&(t||!hasOwnProperty$5.call(e,a))||r.push(a);return r}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var nativeCreate=getNative(Object,"create"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate$1){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$4.call(t,e)?t[e]:void 0}var objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate$1?t[e]!==void 0:hasOwnProperty$3.call(t,e)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate$1&&t===void 0?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq(e[r][0],t))return r;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():splice.call(t,r,1),--this.size,!0}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?void 0:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,a=assocIndexOf(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map=getNative(root$1,"Map"),Map$1=Map;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var r=getMapData(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function arrayPush(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var getPrototype=overArg(Object.getPrototypeOf,Object),getPrototype$1=getPrototype;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var a=r.__data__;if(!Map$1||a.length<LARGE_ARRAY_SIZE-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(a)}return r.set(e,t),this.size=r.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(e,t){return e&&copyObject(t,keys(t),e)}function baseAssignIn(e,t){return e&&copyObject(t,keysIn(t),e)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;function cloneBuffer(e,t){if(t)return e.slice();var r=e.length,a=allocUnsafe?allocUnsafe(r):new e.constructor(r);return e.copy(a),a}function arrayFilter(e,t){for(var r=-1,a=e==null?0:e.length,n=0,s=[];++r<a;){var i=e[r];t(i,r,e)&&(s[n++]=i)}return s}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(e){return e==null?[]:(e=Object(e),arrayFilter(nativeGetSymbols$1(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray,getSymbols$1=getSymbols;function copySymbols(e,t){return copyObject(e,getSymbols$1(e),t)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush(t,getSymbols$1(e)),e=getPrototype$1(e);return t}:stubArray,getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(e,t){return copyObject(e,getSymbolsIn$1(e),t)}function baseGetAllKeys(e,t,r){var a=t(e);return isArray$1(e)?a:arrayPush(a,r(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols$1)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,getSymbolsIn$1)}var DataView$1=getNative(root$1,"DataView"),DataView$1$1=DataView$1,Promise$1=getNative(root$1,"Promise"),Promise$2=Promise$1,Set$1=getNative(root$1,"Set"),Set$1$1=Set$1,mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1$1&&getTag(new DataView$1$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1&&getTag(new Map$1)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$1$1&&getTag(new Set$1$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(e){var t=baseGetTag(e),r=t==objectTag$2?e.constructor:void 0,a=r?toSource(r):"";if(a)switch(a){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return t});var getTag$1=getTag,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function initCloneArray(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&hasOwnProperty$2.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Uint8Array$1=root$1.Uint8Array,Uint8Array$1$1=Uint8Array$1;function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1$1(t).set(new Uint8Array$1$1(e)),t}function cloneDataView(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var reFlags=/\w*$/;function cloneRegExp(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(e){return symbolValueOf$1?Object(symbolValueOf$1.call(e)):{}}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(e,t,r){var a=e.constructor;switch(t){case arrayBufferTag$2:return cloneArrayBuffer(e);case boolTag$2:case dateTag$2:return new a(+e);case dataViewTag$2:return cloneDataView(e,r);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,r);case mapTag$3:return new a;case numberTag$2:case stringTag$2:return new a(e);case regexpTag$2:return cloneRegExp(e);case setTag$3:return new a;case symbolTag$2:return cloneSymbol(e)}}function initCloneObject(e){return typeof e.constructor=="function"&&!isPrototype(e)?baseCreate$1(getPrototype$1(e)):{}}var mapTag$2="[object Map]";function baseIsMap(e){return isObjectLike(e)&&getTag$1(e)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,isMap$1=isMap,setTag$2="[object Set]";function baseIsSet(e){return isObjectLike(e)&&getTag$1(e)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet$1=isSet,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(e,t,r,a,n,s){var i,o=t&CLONE_DEEP_FLAG$1,l=t&CLONE_FLAT_FLAG,c=t&CLONE_SYMBOLS_FLAG$1;if(r&&(i=n?r(e,a,n,s):r(e)),i!==void 0)return i;if(!isObject(e))return e;var p=isArray$1(e);if(p){if(i=initCloneArray(e),!o)return copyArray(e,i)}else{var A=getTag$1(e),d=A==funcTag||A==genTag;if(isBuffer$1(e))return cloneBuffer(e,o);if(A==objectTag$1||A==argsTag$1||d&&!n){if(i=l||d?{}:initCloneObject(e),!o)return l?copySymbolsIn(e,baseAssignIn(i,e)):copySymbols(e,baseAssign(i,e))}else{if(!cloneableTags[A])return n?e:{};i=initCloneByTag(e,A,o)}}s||(s=new Stack);var f=s.get(e);if(f)return f;s.set(e,i),isSet$1(e)?e.forEach(function(E){i.add(baseClone(E,t,r,E,e,s))}):isMap$1(e)&&e.forEach(function(E,u){i.set(u,baseClone(E,t,r,u,e,s))});var m=c?l?getAllKeysIn:getAllKeys:l?keysIn:keys,g=p?void 0:m(e);return arrayEach(g||e,function(E,u){g&&(u=E,E=e[u]),assignValue(i,u,baseClone(E,t,r,u,e,s))}),i}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(e){return baseClone(e,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,r,a,n,s){var i=r&COMPARE_PARTIAL_FLAG$3,o=e.length,l=t.length;if(o!=l&&!(i&&l>o))return!1;var c=s.get(e),p=s.get(t);if(c&&p)return c==t&&p==e;var A=-1,d=!0,f=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(s.set(e,t),s.set(t,e);++A<o;){var m=e[A],g=t[A];if(a)var E=i?a(g,m,A,t,e,s):a(m,g,A,e,t,s);if(E!==void 0){if(E)continue;d=!1;break}if(f){if(!arraySome(t,function(u,y){if(!cacheHas(f,y)&&(m===u||n(m,u,r,a,s)))return f.push(y)})){d=!1;break}}else if(!(m===g||n(m,g,r,a,s))){d=!1;break}}return s.delete(e),s.delete(t),d}function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}function setToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,r,a,n,s,i){switch(r){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!s(new Uint8Array$1$1(e),new Uint8Array$1$1(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var o=mapToArray;case setTag:var l=a&COMPARE_PARTIAL_FLAG$2;if(o||(o=setToArray),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;a|=COMPARE_UNORDERED_FLAG,i.set(e,t);var p=equalArrays(o(e),o(t),a,n,s,i);return i.delete(e),p;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,r,a,n,s){var i=r&COMPARE_PARTIAL_FLAG$1,o=getAllKeys(e),l=o.length,c=getAllKeys(t),p=c.length;if(l!=p&&!i)return!1;for(var A=l;A--;){var d=o[A];if(!(i?d in t:hasOwnProperty$1.call(t,d)))return!1}var f=s.get(e),m=s.get(t);if(f&&m)return f==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);for(var E=i;++A<l;){d=o[A];var u=e[d],y=t[d];if(a)var S=i?a(y,u,d,t,e,s):a(u,y,d,e,t,s);if(!(S===void 0?u===y||n(u,y,r,a,s):S)){g=!1;break}E||(E=d=="constructor")}if(g&&!E){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof x=="function"&&x instanceof x)&&(g=!1)}return s.delete(e),s.delete(t),g}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,r,a,n,s){var i=isArray$1(e),o=isArray$1(t),l=i?arrayTag:getTag$1(e),c=o?arrayTag:getTag$1(t);l=l==argsTag?objectTag:l,c=c==argsTag?objectTag:c;var p=l==objectTag,A=c==objectTag,d=l==c;if(d&&isBuffer$1(e)){if(!isBuffer$1(t))return!1;i=!0,p=!1}if(d&&!p)return s||(s=new Stack),i||isTypedArray$1(e)?equalArrays(e,t,r,a,n,s):equalByTag(e,t,l,r,a,n,s);if(!(r&COMPARE_PARTIAL_FLAG)){var f=p&&hasOwnProperty.call(e,"__wrapped__"),m=A&&hasOwnProperty.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,E=m?t.value():t;return s||(s=new Stack),n(g,E,r,a,s)}}return d?(s||(s=new Stack),equalObjects(e,t,r,a,n,s)):!1}function baseIsEqual(e,t,r,a,n){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,r,a,baseIsEqual,n)}function isEqual(e,t){return baseIsEqual(e,t)}var _export_sfc=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r};const _sfc_main=defineComponent({props:{animationData:{type:Object,default:()=>({})},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:()=>({})},assetsPath:{type:String,default:""}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup(e,{emit:t}){let r=ref(null);const a=ref("");let n=1;const s=I=>document.querySelector('[data-id="'.concat(I,'"]'))!==null,i=async I=>{let N=e.autoPlay;e.playOnHover&&(N=!1);let B={};if(isEqual(e.animationData,{})===!1&&(B=cloneDeep(e.animationData)),e.animationLink!="")try{B=await(await fetch(e.animationLink)).json()}catch(_){console.error(_);return}let O=e.loop;typeof O=="number"&&O>0&&(O=O-1),e.delay>0&&(N=!1);const R={container:I,renderer:e.renderer,loop:O,autoplay:N,animationData:B,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(R.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(R),setTimeout(()=>{N=e.autoPlay,e.playOnHover?r.pause():N?r.play():r.pause(),t("onAnimationLoaded")},e.delay),r.setSpeed(e.speed),e.direction==="reverse"&&r.setDirection(-1),e.direction==="normal"&&r.setDirection(1),(e.pauseAnimation||e.playOnHover)&&r.pause(),r.addEventListener("loopComplete",()=>{e.direction==="alternate"&&(r.stop(),n=n*-1,r.setDirection(n),r.play()),t("onLoopComplete")}),r.addEventListener("complete",()=>{t("onComplete")}),r.addEventListener("enterFrame",()=>{t("onEnterFrame")}),r.addEventListener("segmentStart",()=>{t("onSegmentStart")})},o=computed(()=>{let I=e.width,N=e.height;return typeof e.width=="number"&&(I="".concat(e.width,"px")),typeof e.height=="number"&&(N="".concat(e.height,"px")),{"--lottie-animation-container-width":I,"--lottie-animation-container-height":N,"--lottie-animation-container-background-color":e.backgroundColor}}),l=()=>{r&&e.pauseOnHover&&r.pause(),r&&e.playOnHover&&r.play()},c=()=>{r&&e.pauseOnHover&&r.play(),r&&e.playOnHover&&r.pause()};watch(()=>e.pauseAnimation,()=>{if((e.pauseOnHover||e.playOnHover)&&e.pauseAnimation){console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover");return}r&&(e.pauseAnimation?r.pause():r.play())});const p=()=>{r&&r.play()},A=()=>{r&&r.pause()},d=()=>{r&&r.stop()},f=()=>{r&&r.destroy()},m=(I=1)=>{if(I<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(I)},g=I=>{r&&(I==="forward"?r.setDirection(1):I==="reverse"&&r.setDirection(-1))},E=(I,N=!0)=>{r&&r.goToAndStop(I,N)},u=(I,N=!0)=>{r&&r.goToAndPlay(I,N)},y=(I,N=!1)=>{r&&r.playSegments(I,N)},S=(I=!0)=>{r&&r.setSubframe(I)},b=(I=!0)=>{if(r)return r.getDuration(I)},x=(I,N=0)=>{r&&r.renderer.elements[N].updateDocumentData(I)},C=I=>{for(var N="",B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",O=B.length,R=0;R<I;R++)N+=B.charAt(Math.floor(Math.random()*O));return N},D=I=>{if(e.pauseOnHover&&e.playOnHover)throw new Error("You cannot set pauseOnHover and playOnHover for Vue3-Lottie at the same time.");if(e.animationLink===""&&isEqual(e.animationData,{}))throw new Error("You must provide either animationLink or animationData");const N=setInterval(()=>{if(s(I)){clearInterval(N);const B=document.querySelector('[data-id="'.concat(I,'" ]'));B&&i(B)}},0)};return onMounted(async()=>{a.value=C(20),D(a.value)}),{elementid:a,hoverEnded:c,hoverStarted:l,getCurrentStyle:o,play:p,pause:A,stop:d,destroy:f,setSpeed:m,setDirection:g,goToAndStop:E,goToAndPlay:u,playSegments:y,setSubFrame:S,getDuration:b,updateDocumentData:x}}}),_hoisted_1=["data-id"];function _sfc_render(e,t,r,a,n,s){return openBlock(),createElementBlock("div",{"data-id":e.elementid,class:"lottie-animation-container",style:normalizeStyle(e.getCurrentStyle),onMouseenter:t[0]||(t[0]=(...i)=>e.hoverStarted&&e.hoverStarted(...i)),onMouseleave:t[1]||(t[1]=(...i)=>e.hoverEnded&&e.hoverEnded(...i))},null,44,_hoisted_1)}var Vue3Lottie=_export_sfc(_sfc_main,[["render",_sfc_render]]);const v="5.7.1",fr=60,ip=0,op=120,w=2436,h=1125,nm="合成 1",ddd=0,assets=[{id:"image_0",w:195,h:264,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMMAAAEICAYAAADiJ0BpAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAgAElEQVR4nO19ebxlRXXut85tGhBoZGjAhEkRISjJQ5QYYwjghBFiVMQ5xhiHRJOoz0jEiahIElEjUcOLmJ8xosGg4hRFoy2IedHggMg8NUQF6WZqmga6++4vf1StqlW19xnu1Hc3d31w+5yzd1WtqtprrqpzBFsh7r9p1aOmNzdHgTyK4AFosFKEKwksBxj+JwEBQMZa8TV+ZvwcitC0Hu+T4R6YmpFUj6bdXDYWCKVqurlwqgMBpCiby5CESEm37Kul30Ay8dwJ4C6Qt1HkFwJ+F4PBBZze8Vu7PubEu0bP8NKELHYHJgV5zbb3rb7p+U3D14H8VeWUNpMAaDE6K2Yu7xkilQABqJlV38dylmlrgUvXbT9HCeEQASI5om/luFQZJBqxXSPU9wrwiW22HZyx06/90U/qeV7K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LRPMRl1amXcdINdWkr9HhUD/8ovZKVdqsc+PWWq+jduU8nbuLyWlxtY27qpBzmHS+NV3iGVprAvn2nq5XyV7IIyYlpay/hW6NNvQU8b/tv8hijRx67vHqoFPc/rU8VdbRpwzmbyZZtskBq8z+WMy1f+pQs2hWEc3MdoKBrn1yV5GG707xOEUhkQ7TCYUn++lL5wAbs+t1SVcUqsAK0+lvXQusk9+OW8lXeXLv97onf+PdnAlz/RvEdqyMiv5VTs0EebEambuaeKtK7oqSvv4O72hTou8xvfZ3mdZxBkEhOWPeof0VIldsZLieY7v5f+Z6kSiZRGbarsiXMDeJ8aU2TqYMneZt+kjV2d7a08aWfANQSXWnpJSoZM5Pa86alKYrhN0Pj7PB2lfvVlX59J7hkRdTFLljtUKvYnjakrlBsLbZ/qPNJZX6Se/lOFy2OocUix2CBpczskB0zthsQ0DWkNsEnv2KSoDO9AsrzNhGv09jQq/55xs5XNQ0rOxET5Ul745RG223vl1VNVSl4L/GKqSktVWnw5VSXt7JDXNJVmo3nGy4rT0lRKCgn0NJWZ+r1x8gwsU5RxsZS7B8xzE6vSCjPNkKlpKiVFpcEtlPSiZZrM8v9MVZnnloFS6oZUFTjZntY0lXkyS0lTubPNPBmHD7bhgKn1wGFuNw9mw4mTZx8BjuWWABH2MYxr+olnw225PdDSVKLcGOAGbo4Fzi43AUqayg320VcPcrlNAGzSVGqKymtnf8CHXExR4SGuOC1NxbEYHuO8+H1SVIDLaSpAS1X55m+wfPLaT3jCy5cvefLpH0r7n1+ZF9s0la/4is9+/q/LNxDuuX3wa5rKv6/8EycY65bo+YM2AAAAAElFTkSuQmCC",e:1}],layers=[{ddd:0,ind:1,ty:2,nm:"加载视频@3x.png",cl:"png",refId:"image_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1218,562,0],ix:2},a:{a:0,k:[97.5,132,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[100],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[0],e:[0]},{t:120}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[678,587.5,0],ix:2},a:{a:0,k:[0,1.5,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:0,s:[0,100,100],e:[100,100,100]},{t:60}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1758,589,0],ix:2},a:{a:0,k:[1080,3,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:60,s:[100,100,100],e:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[100,100,100],e:[0,100,100]},{t:120}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0}],markers=[],playLoadData={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},videoWrap="_videoWrap_brt8z_1",videoPop="_videoPop_brt8z_6",sectionAnimate$1="_sectionAnimate_brt8z_14",controls$1="_controls_brt8z_20",time$1="_time_brt8z_35",line$1="_line_brt8z_48",tools$1="_tools_brt8z_55",actions$1="_actions_brt8z_61",actionWrap$1="_actionWrap_brt8z_69",downloadSpeed$1="_downloadSpeed_brt8z_73",actionBtn$1="_actionBtn_brt8z_80",actionBtnSpeed="_actionBtnSpeed_brt8z_90",iconReplay$1="_iconReplay_brt8z_101",slider$1="_slider_brt8z_112",sliderPopup="_sliderPopup_brt8z_136",iconAdd$1="_iconAdd_brt8z_150",iconCut="_iconCut_brt8z_151",disabled$1="_disabled_brt8z_160",sliderPoint="_sliderPoint_brt8z_168",styles$i={videoWrap,videoPop,sectionAnimate:sectionAnimate$1,controls:controls$1,time:time$1,line:line$1,tools:tools$1,actions:actions$1,actionWrap:actionWrap$1,downloadSpeed:downloadSpeed$1,actionBtn:actionBtn$1,actionBtnSpeed,iconReplay:iconReplay$1,slider:slider$1,sliderPopup,iconAdd:iconAdd$1,iconCut,disabled:disabled$1,sliderPoint},iconLoop=""+new URL("icon-loop-169f4c3b.svg",import.meta.url).href,VideoPlay=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1},imagePos:{type:String,default:"left"}},emits:["canplay","pause","togglePlay","ended","reset","error","close","loadedmetadata"],setup(e,{emit:t,expose:r}){const{item:a,isEmtry:n}=toRefs(e),s=reactive({paused:!0,speedInKbps:"",isOnline:!0,currentTimeNum:0,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0,showAction:!0,loop:!1,speedControl:!1,speedStyle:{left:"1px"},defaultSpeed:1}),i=ref(),o=ref(),l=ref("video"+Date.now()+Math.floor(Math.random()*100)),c=C=>{if(C>0){const D=Math.floor(C/60),I=C%60;return(D<10?"0"+D:D)+":"+(I<10?"0"+I:I)}else return"00:00"},p=()=>{o.value&&(o.value.src(a.value.content),t("reset"))},A=C=>{s.showBar=C,s.speedControl=!1},d=()=>{s.speedControl=!1,o.value&&o.value.currentTime(0)},f=C=>{C==null||C.stopPropagation(),s.paused?(o.value.play(),s.paused=!1):(o.value.pause(),s.paused=!0),t("togglePlay",s.paused)},m=null;let g=0;const E=()=>{g>5||(clearTimeout(m),nextTick(()=>{var C;(C=o.value)==null||C.play().catch(D=>{})}),g++)},u=()=>{o.value&&(console.log(a.value,"item.value"),o.value.poster(e.item.coverImg),o.value.src(a.value.content),o.value.playbackRate(s.defaultSpeed),o.value.one("loadedmetadata",()=>{o.value.playbackRate(s.defaultSpeed),s.duration=c(Math.round(o.value.duration())),s.durationNum=o.value.duration(),t("canplay"),t("loadedmetadata",o.value),a.value.autoPlay&&o.value&&nextTick(()=>{g=0,o.value.currentTime(0),nextTick(E)})}),o.value.on("play",()=>{t("close"),t("canplay")}),o.value.on("timeupdate",()=>{var C;s.currentTime=c(Math.round(((C=o.value)==null?void 0:C.currentTime())||0)),s.currentTimeNum=o.value.currentTime()}),o.value.on("ended",()=>{s.paused=!0,t("ended")}),o.value.on("pause",()=>{s.paused=!0,t("pause")}),o.value.on("playing",()=>{s.paused=!1}),o.value.on("canplay",C=>{s.duration=c(Math.round(o.value.duration())),s.durationNum=o.value.duration(),t("canplay")}),o.value.on("error",C=>{t("error"),console.log(C,"error")}))},y=C=>{let D=0,I=null,N=Date.now(),B=[],O=!1,R=!1,_=null;const G=2500;function j(Q=1500){I=setTimeout(()=>{s.speedInKbps="0 KB/s"},Q)}function M(Q=0){_=setTimeout(()=>{R&&(console.log("停止缓存数据。"),R=!1,s.speedInKbps="")},Q||G)}function F(){_&&clearTimeout(_),R=!0,M()}const P=Q=>{const te=[];Q.sort((ne,oe)=>ne[0]-oe[0]);let ee=Q[0];for(let ne=1;ne<Q.length;ne++){const oe=Q[ne];ee[1]>=oe[0]?ee[1]=Math.max(oe[1],ee[1]):(te.push(ee),ee=oe)}return te.push(ee),te};let T=!1;const L=()=>{const Q=C.duration,te=Date.now(),ee=C.buffered;let ne=0,oe=0;if(ee.length>0){for(let fe=0;fe<ee.length;fe++)ne+=ee.end(fe)-ee.start(fe),oe+=ee.end(fe)-ee.start(fe),B=P([...B,[ee.start(fe),ee.end(fe)]]);ne*=C.duration*C.seekable.end(0)}const me=Q-oe;let he=!0;B.forEach(fe=>{C.currentTime>=fe[0]&&he<=fe[1]&&(he=!1)});const ue=ne<=D;if(me>0){if(ne>D&&s.isOnline){const fe=(te-N)/1e3,q=(ne-D)/fe;if(!C.paused){const ye=q/1024,ve=ye.toFixed(2);ye>1024?s.speedInKbps="".concat(Number((ye/1024).toFixed(2))," M/s"):s.speedInKbps="".concat(Number(ve)," KB/s"),clearTimeout(I),j()}D=ne,N=te,T=!1}ue&&!he&&(T||(clearTimeout(I),clearTimeout(_),setTimeout(()=>{R&&(console.log("停止缓存数据-。"),R=!1,s.speedInKbps="")},800)),T=!0),(C.paused||!s.isOnline)&&(clearTimeout(I),s.speedInKbps=""),O||F()}else clearTimeout(I),M(1e3)},k=()=>{console.log("waiting"),O=!0;let Q=!0;B.forEach(te=>{C.currentTime>=te[0]&&Q<=te[1]&&(Q=!1)}),!C.paused&&s.isOnline&&Q&&(clearTimeout(I),j()),_&&clearTimeout(_)},Y=()=>{console.log("canplay"),O=!1,F()},Z=()=>{clearTimeout(I),_&&clearTimeout(_),s.speedInKbps=""};C.removeEventListener("progress",L),C.removeEventListener("waiting",k),C.removeEventListener("canplay",Y),C.removeEventListener("pause",Z),C.addEventListener("progress",L),C.addEventListener("waiting",k),C.addEventListener("canplay",Y),C.addEventListener("pause",Z)},S=C=>{if(C.type==="online"){s.isOnline=!0;const D=o.value.currentTime();o.value.load(),o.value.currentTime(D),x()}else C.type==="offline"&&(s.isOnline=!1)};onMounted(()=>{o.value=TCPlayer(l.value,{appID:"",controls:!1}),u(),nextTick(()=>{y(i.value)}),window.addEventListener("online",S),window.addEventListener("offline",S)});const b=()=>{o.value.currentTime(0),o.value.pause()},x=()=>{o.value.pause(),s.paused=!0};return onUnmounted(()=>{o.value&&(o.value.pause(),o.value.src(""),o.value.dispose()),window.removeEventListener("online",S),window.removeEventListener("offline",S)}),watch(()=>e.item,()=>{var C;o.value.pause(),o.value.currentTime(0),(C=a.value)!=null&&C.id&&(u(),s.paused=!0),nextTick(()=>{y(i.value)})}),watch(()=>e.showModel,()=>{s.showAction=e.showModel,s.speedControl=!1}),r({onPlay:p,stop:b,pause:x,toggleHideControl:A}),()=>createVNode("div",{class:styles$i.videoWrap},[createVNode("video",{style:{width:"100%",height:"100%"},ref:i,id:l.value,preload:"auto",playsinline:!0,"webkit-playsinline":!0,"x5-video-player-type":"h5"},null),createVNode("div",{class:styles$i.videoPop},null),createVNode("div",{class:[styles$i.controls,s.showAction?"":styles$i.sectionAnimate],onClick:C=>{C.stopPropagation(),!o.value.paused()&&(t("close"),t("reset"))}},[createVNode("div",{class:styles$i.slider},[createVNode(NSlider,{value:s.currentTimeNum,step:.01,max:s.durationNum,tooltip:!1,"onUpdate:value":C=>{s.speedControl=!1,o.value.currentTime(C),s.currentTimeNum=C,s.currentTime=c(Math.round(C||0))}},null)]),createVNode("div",{class:styles$i.tools},[e.imagePos==="right"?createVNode(Fragment,null,[createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[s.currentTime]),createVNode("span",{class:styles$i.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[s.duration])])])]),createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.downloadSpeed,style:{paddingRight:"20px"}},[s.speedInKbps]),createVNode("div",{class:styles$i.actionBtnSpeed,onClick:C=>{C.stopPropagation(),s.speedControl=!s.speedControl}},[createVNode("img",{src:iconSpeed},null),createVNode("div",{style:{display:s.speedControl?"block":"none"}},[createVNode("div",{class:styles$i.sliderPopup,onClick:C=>{C.stopPropagation()}},[createVNode("i",{class:styles$i.iconAdd,onClick:()=>{s.defaultSpeed>=1.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10+1)/10,o.value.playbackRate(s.defaultSpeed))}},null),createVNode(NSlider,{value:s.defaultSpeed,step:.1,max:1.5,min:.5,vertical:!0,tooltip:!1,"onUpdate:value":C=>{s.defaultSpeed=C,o.value&&o.value.playbackRate(s.defaultSpeed)}},{thumb:()=>createVNode("div",{class:styles$i.sliderPoint},[s.defaultSpeed,createVNode("span",null,[createTextVNode("x")])])}),createVNode("i",{class:[styles$i.iconCut],onClick:()=>{s.defaultSpeed<=.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10-1)/10,o.value.playbackRate(s.defaultSpeed))}},null)])])]),createVNode("button",{class:styles$i.iconReplay,onClick:d},[createVNode("img",{src:iconLoop},null)]),createVNode("div",{class:styles$i.actionBtn,onClick:()=>{s.speedControl=!1,f()}},[createVNode("img",{style:{display:s.paused?"block":"none"},class:styles$i.playIcon,src:iconplay},null),createVNode("img",{style:{display:s.paused?"none":"block"},class:styles$i.playIcon,src:iconpause},null)])])])]):createVNode(Fragment,null,[createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.actionBtn,onClick:()=>{s.speedControl=!1,f()}},[createVNode("img",{style:{display:s.paused?"block":"none"},class:styles$i.playIcon,src:iconplay},null),createVNode("img",{style:{display:s.paused?"none":"block"},class:styles$i.playIcon,src:iconpause},null)]),createVNode("button",{class:styles$i.iconReplay,onClick:d},[createVNode("img",{src:iconLoop},null)]),createVNode("div",{class:styles$i.actionBtnSpeed,onClick:C=>{C.stopPropagation(),s.speedControl=!s.speedControl}},[createVNode("img",{src:iconSpeed},null),createVNode("div",{style:{display:s.speedControl?"block":"none"}},[createVNode("div",{class:styles$i.sliderPopup,onClick:C=>{C.stopPropagation()}},[createVNode("i",{class:styles$i.iconAdd,onClick:()=>{s.defaultSpeed>=1.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10+1)/10,o.value.playbackRate(s.defaultSpeed))}},null),createVNode(NSlider,{value:s.defaultSpeed,step:.1,max:1.5,min:.5,vertical:!0,tooltip:!1,"onUpdate:value":C=>{s.defaultSpeed=C,o.value&&o.value.playbackRate(s.defaultSpeed)}},{thumb:()=>createVNode("div",{class:styles$i.sliderPoint},[s.defaultSpeed,createVNode("span",null,[createTextVNode("x")])])}),createVNode("i",{class:[styles$i.iconCut],onClick:()=>{s.defaultSpeed<=.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10-1)/10,o.value.playbackRate(s.defaultSpeed))}},null)])])]),createVNode("div",{class:styles$i.downloadSpeed},[s.speedInKbps])])]),createVNode("div",{class:styles$i.actions},[createVNode("div",{class:styles$i.actionWrap},[createVNode("div",{class:styles$i.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[s.currentTime]),createVNode("span",{class:styles$i.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[s.duration])])])])])])])])}}),pen="_pen_4lyqr_1",open="_open_4lyqr_9",whiteboard="_whiteboard_4lyqr_12",hide$1="_hide_4lyqr_15",iframe="_iframe_4lyqr_18",dely="_dely_4lyqr_24",rightItem="_rightItem_4lyqr_27",img="_img_4lyqr_42",removeVisiable$1="_removeVisiable_4lyqr_50",studentRemove$1="_studentRemove_4lyqr_63",btnGroupModal$1="_btnGroupModal_4lyqr_75",styles$h={pen,open,whiteboard,hide:hide$1,iframe,dely,rightItem,img,removeVisiable:removeVisiable$1,studentRemove:studentRemove$1,btnGroupModal:btnGroupModal$1},Pen=defineComponent({name:"pen-page",props:{show:{type:Boolean,default:!1},type:{type:String,default:"pen"},close:{type:Function,default:()=>({})},callStudents:{type:Array,default:()=>[]},imagePos:{type:String,default:"left"},isDrag:{type:Boolean,default:!1}},setup(e){const{show:t,type:r}=toRefs(e),a="penIframeRef".concat(+new Date),n=reactive({status:!1,title:r.value==="pen"?"退出批注":"退出白板",content:r.value==="pen"?"确认是否退出批注?":"确认是否退出白板?"}),s=ref(!0),i=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn/":location.origin;let o="".concat(i,"/classroom-whiteboard?t=").concat(+new Date);e.type==="call"&&(o="".concat(i,"/classroom-app/roll-call/index.html?platform=modal&imagePos=").concat(e.imagePos));let l,c;if(e.isDrag){const p=useUserStore();c="penBoxClass_drag",l=useDrag(["".concat(c,">.n-card-header"),"".concat(c," .bom_drag")],c,toRef(n,"status"),p.info.id)}return()=>createVNode("div",{class:[styles$h.pen,r.value==="whiteboard"?styles$h.whiteboard:"",s.value?styles$h.dely:"",t.value?styles$h.open:styles$h.hide]},[createVNode("iframe",{class:styles$h.iframe,id:a,frameborder:"0",width:"100vw",height:"100vh",src:o,onLoad:p=>{if(s.value=!1,e.type==="call"){const A=document.getElementById(a);A&&A.contentWindow.renderData&&A.contentWindow.renderData(e.callStudents)}iframeDislableKeyboard(p.target)}},null),e.type!=="call"&&createVNode("div",{class:styles$h.rightItem,onClick:()=>n.status=!0},[createVNode("svg",{width:"28px",height:"28px",viewBox:"0 0 34 34",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[createVNode("g",{transform:"translate(-1842.000000, -1016.000000)",stroke:"#FFFFFF"},[createVNode("g",{transform:"translate(980.000000, 1006.000000)"},[createVNode("g",{transform:"translate(862.000000, 10.000000)"},[createVNode("g",{transform:"translate(4.000000, 5.000000)"},[createVNode("g",{transform:"translate(8.058241, 5.009812)",fill:"#FFFFFF","fill-rule":"nonzero","stroke-width":"0.3"},[createVNode("path",{d:"M11.6084252,-0.15 C11.9880433,-0.15 12.3676614,-0.00518057514 12.6573002,0.284458275 L12.6573002,0.284458275 L18.3141545,5.94131252 C18.6037933,6.23095137 18.7486128,6.61056948 18.7486128,6.99018758 C18.7486128,7.36980569 18.6037933,7.74942379 18.3141545,8.03906264 L18.3141545,8.03906264 L12.6573002,13.6959169 C12.3676614,13.9855557 11.9880433,14.1303752 11.6084252,14.1303752 C11.2288071,14.1303752 10.849189,13.9855557 10.5595501,13.6959169 C10.2699113,13.406278 10.1250918,13.0266599 10.1250918,12.6470418 C10.1250918,12.2674237 10.2699113,11.8878056 10.5595368,11.5981801 L10.5595368,11.5981801 L13.6839174,8.47301484 L1.33333333,8.47352092 C0.923722144,8.47352092 0.552888811,8.30749318 0.284458275,8.03906264 C0.0160277386,7.77063211 -0.15,7.39979877 -0.15,6.99018758 C-0.15,6.61194961 -0.00841906355,6.26678575 0.224608408,6.00476938 C0.462154637,5.73767211 0.794779811,5.55707713 1.16932931,5.51583101 L1.16932931,5.51583101 L13.6841044,5.50627626 L10.5595501,2.38220839 C10.2699113,2.09256954 10.1250918,1.71295144 10.1250918,1.33333333 C10.1250918,0.953715229 10.2699113,0.574097124 10.5595501,0.284458275 C10.849189,-0.00518057514 11.2288071,-0.15 11.6084252,-0.15 Z"},null)]),createVNode("path",{d:"M15,24 L3,24 C1.34314575,24 -1.1293615e-15,22.6568542 0,21 L0,3 C-2.02906125e-16,1.34314575 1.34314575,3.04359188e-16 3,0 L15,0 L15,0","stroke-width":"3.5","stroke-linecap":"round","stroke-linejoin":"round"},null)])])])])])])]),createVNode(NModal,{maskClosable:modalClickMask,style:e.isDrag?l.styleDrag.value:{},"z-index":3e3,transformOrigin:"center",show:n.status,"onUpdate:show":p=>n.status=p,preset:"card",title:n.title,class:["modalTitle",styles$h.removeVisiable,c]},{default:()=>[createVNode("div",{class:styles$h.studentRemove},[createVNode("p",null,[n.content]),createVNode(NSpace,{class:styles$h.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{n.status=!1}},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{n.status=!1,e.close()}},{default:()=>[createTextVNode("确认")]})]}),e.isDrag&&createVNode(Dragbom,null,null)])]})])}}),audioWrap="_audioWrap_15931_1",audioContainer="_audioContainer_15931_6",audio="_audio_15931_1",tempVudio="_tempVudio_15931_22",sectionAnimate="_sectionAnimate_15931_34",controls="_controls_15931_40",time="_time_15931_55",line="_line_15931_68",tools="_tools_15931_75",actions="_actions_15931_81",actionWrap="_actionWrap_15931_89",downloadSpeed="_downloadSpeed_15931_93",actionBtn="_actionBtn_15931_99",iconReplay="_iconReplay_15931_109",slider="_slider_15931_120",styles$g={audioWrap,audioContainer,audio,tempVudio,sectionAnimate,controls,time,line,tools,actions,actionWrap,downloadSpeed,actionBtn,iconReplay,slider},AudioPay=defineComponent({name:"audio-play",props:{item:{type:Object,default:()=>({})},activeStatus:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1},imagePos:{type:String,default:"left"}},emits:["loadedmetadata","togglePlay","ended","reset"],setup(e,{emit:t,expose:r}){const a=reactive({paused:!0,speedInKbps:"",currentTimeNum:0,isOnline:!1,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0,afterMa3:!0,count:0,previousBytesLoaded:0,previousTime:Date.now()}),n=ref(),s=ref();let i=null;const o=u=>{var y,S,b;u==null||u.stopPropagation(),s.value.paused?(s.value.play(),a.afterMa3=!1):(y=s.value)==null||y.pause(),a.paused=(S=s.value)==null?void 0:S.paused,(b=u==null?void 0:u.target)==null||b.focus(),t("togglePlay",a.paused)},l=(u,y)=>{i||(i=new Vudio(u,y,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),i.dance())},c=u=>{if(u>0){const y=Math.floor(u/60),S=u%60;return(y<10?"0"+y:y)+":"+(S<10?"0"+S:S)}else return"00:00"},p=u=>{a.showBar=u},A=()=>{s.value&&(s.value.currentTime=0)};let d=null;const f=ref(),m=ref();nextTick(()=>{d=new Vudio(m.value,f.value,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),d.dance()}),watch(()=>e.activeStatus,u=>{a.count=0,u&&e.item.autoPlay?(i=null,o()):s.value.pause()});const g=u=>{let y=0,S=null,b=Date.now(),x=[],C=!1,D=!1,I=null;const N=2500;function B(){S=setTimeout(()=>{a.speedInKbps="0 KB/s"},1500)}function O(T=0){I=setTimeout(()=>{D&&(console.log("停止缓存数据。"),D=!1,a.speedInKbps="")},T||N)}function R(){I&&clearTimeout(I),D=!0,O()}const _=T=>{const L=[];T.sort((Y,Z)=>Y[0]-Z[0]);let k=T[0];for(let Y=1;Y<T.length;Y++){const Z=T[Y];k[1]>=Z[0]?k[1]=Math.max(Z[1],k[1]):(L.push(k),k=Z)}return L.push(k),L};let G=!1;const j=()=>{const T=u.duration,L=Date.now(),k=u.buffered;let Y=0;const Z=0;let Q=0;if(k.length>0){for(let oe=0;oe<k.length;oe++)Y+=k.end(oe)-k.start(oe),Q+=k.end(oe)-k.start(oe),x=_([...x,[k.start(oe),k.end(oe)]]);Y*=u.duration*u.seekable.end(0)}const te=T-Q;let ee=!0;x.forEach(oe=>{u.currentTime>=oe[0]&&ee<=oe[1]&&(ee=!1)}),console.log(ee,T,Q,"duration",x,u.currentTime,Z+"%",C,Y<=y);const ne=Y<=y;if(te>0){if(Y>y&&a.isOnline){const oe=(L-b)/1e3,he=(Y-y)/oe;if(!u.paused){const ue=he/1024,fe=ue.toFixed(2);ue>1024?a.speedInKbps="".concat(Number((ue/1024).toFixed(2))," M/s"):a.speedInKbps="".concat(Number(fe)," KB/s"),clearTimeout(S),B()}y=Y,b=L,G=!1}ne&&!ee&&(G||(clearTimeout(S),clearTimeout(I),setTimeout(()=>{D&&(console.log("停止缓存数据"),D=!1,a.speedInKbps="")},800)),G=!0),(u.paused||!a.isOnline)&&(clearTimeout(S),a.speedInKbps=""),C||R()}else clearTimeout(S),O(1e3)},M=()=>{console.log("waiting"),C=!0;let T=!0;x.forEach(L=>{u.currentTime>=L[0]&&T<=L[1]&&(T=!1)}),!u.paused&&a.isOnline&&T&&(clearTimeout(S),B()),I&&clearTimeout(I)},F=()=>{console.log("canplay"),C=!1,R()},P=()=>{clearTimeout(S),I&&clearTimeout(I),a.speedInKbps=""};u.removeEventListener("progress",j),u.removeEventListener("waiting",M),u.removeEventListener("canplay",F),u.removeEventListener("pause",P),u.addEventListener("progress",j),u.addEventListener("waiting",M),u.addEventListener("canplay",F),u.addEventListener("pause",P)},E=u=>{if(u.type==="online"){a.isOnline=!0;const y=s.value.currentTime;s.value.load(),s.value.currentTime=y}else u.type==="offline"&&(a.isOnline=!1)};return onMounted(()=>{nextTick(()=>{g(s.value)}),window.addEventListener("online",E),window.addEventListener("offline",E)}),onUnmounted(()=>{window.removeEventListener("online",E),window.removeEventListener("offline",E)}),r({toggleHideControl:p,onToggleAudio:o}),()=>createVNode("div",{class:styles$g.audioWrap},[createVNode("div",{class:styles$g.audioContainer},[createVNode("audio",{ref:s,crossorigin:"anonymous",src:e.item.content,onEnded:()=>{a.paused=!0,t("ended")},onPlay:()=>{var u;a.paused=(u=s.value)==null?void 0:u.paused},onPause:()=>{},onTimeupdate:()=>{var u,y;a.currentTime=c(Math.round(((u=s.value)==null?void 0:u.currentTime)||0)),a.currentTimeNum=((y=s.value)==null?void 0:y.currentTime)||0,a.count<=1&&(a.count+=1,l(s.value,n.value))},onLoadedmetadata:()=>{var u,y;a.duration=c(Math.round((u=s.value)==null?void 0:u.duration)),a.durationNum=(y=s.value)==null?void 0:y.duration,e.item.autoPlay&&s.value&&e.activeStatus&&o(),s.value&&(s.value.stop=()=>{var S;(S=s.value)==null||S.pause(),a.paused=!0,t("togglePlay",a.paused)},s.value.onPlay=()=>{var S;(S=s.value)==null||S.play(),a.paused=!1,l(s.value,n.value),t("togglePlay",a.paused)}),t("loadedmetadata",s.value)},onError:()=>{var u,y;(u=s.value)==null||u.pause(),a.paused=(y=s.value)==null?void 0:y.paused}},null),createVNode("canvas",{ref:n},null),a.afterMa3&&createVNode("div",{class:styles$g.tempVudio},[createVNode("audio",{ref:m,src:tickMp3},null),createVNode("canvas",{ref:f},null)])]),createVNode("div",{class:[styles$g.controls,a.showBar?"":styles$g.sectionAnimate],onClick:u=>{u.stopPropagation(),t("reset")}},[createVNode("div",{class:styles$g.slider},[createVNode(NSlider,{value:a.currentTimeNum,step:.01,max:a.durationNum,tooltip:!1,"onUpdate:value":u=>{s.value.currentTime=u,a.currentTimeNum=u,a.currentTime=c(Math.round(u||0))}},null)]),createVNode("div",{class:styles$g.tools},[e.imagePos==="right"?createVNode(Fragment,null,[createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[a.currentTime]),createVNode("span",{class:styles$g.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[a.duration])])]),createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.actionWrap},[createVNode("div",{class:styles$g.downloadSpeed},[a.speedInKbps]),createVNode("button",{class:styles$g.iconReplay,onClick:A},[createVNode("img",{src:iconReplay$2},null)]),createVNode("div",{class:styles$g.actionBtn,onClick:o},[a.paused?createVNode("img",{class:styles$g.playIcon,src:iconplay},null):createVNode("img",{class:styles$g.playIcon,src:iconpause},null)])])])]):createVNode(Fragment,null,[createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.actionWrap},[createVNode("div",{class:styles$g.actionBtn,onClick:o},[a.paused?createVNode("img",{class:styles$g.playIcon,src:iconplay},null):createVNode("img",{class:styles$g.playIcon,src:iconpause},null)]),createVNode("button",{class:styles$g.iconReplay,onClick:A},[createVNode("img",{src:iconReplay$2},null)]),createVNode("div",{class:styles$g.downloadSpeed},[a.speedInKbps])])]),createVNode("div",{class:styles$g.actions},[createVNode("div",{class:styles$g.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[a.currentTime]),createVNode("span",{class:styles$g.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[a.duration])])])])])])])}}),chapterBox="_chapterBox_tlyul_1",scrollBar="_scrollBar_tlyul_5",treeBox$1="_treeBox_tlyul_9",listSectionLeft$1="_listSectionLeft_tlyul_17",listSectionRight$1="_listSectionRight_tlyul_24",treeParentSelect="_treeParentSelect_tlyul_29",treeChild="_treeChild_tlyul_33",treeItem="_treeItem_tlyul_36",dir="_dir_tlyul_44",name$2="_name_tlyul_48",childItem="_childItem_tlyul_51",titleName="_titleName_tlyul_51",title="_title_tlyul_51",titleSelect="_titleSelect_tlyul_76",childSelect="_childSelect_tlyul_96",styles$f={chapterBox,scrollBar,treeBox:treeBox$1,listSectionLeft:listSectionLeft$1,listSectionRight:listSectionRight$1,treeParentSelect,treeChild,treeItem,dir,name:name$2,childItem,titleName,title,titleSelect,childSelect};function _isSlot$4(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const Chapter=defineComponent({name:"chapter-modal",props:{treeList:{type:Array,default:()=>[]},itemActive:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){const r=useMessage(),a=toRef(e,"itemActive"),n=ref(deepClone(e.treeList)),s=(o,l,c=[])=>{for(const p of l){if(p.knowledgeList&&p.knowledgeList.length>0){const A=s(o,p.knowledgeList,[...c,p.id]);if(A.includes(o))return A}if(p.id===o)return[...c,o]}return c};watch(()=>e.itemActive,()=>{const o=s(a.value,n.value);o.length>0&&n.value.forEach(l=>{l.id==o[0]?l.selected=!0:l.selected=!1})}),onMounted(()=>{const o=s(a.value,n.value);o.length>0&&n.value.forEach(l=>{l.id==o[0]&&(l.selected=!0)})});const i=computed(()=>n.value.find(o=>o.selected));return()=>{let o;return createVNode("div",{class:styles$f.chapterBox},[createVNode("div",{class:styles$f.treeBox},[createVNode("div",{class:[styles$f.listSectionLeft]},[createVNode(NScrollbar,{class:styles$f.scrollBar},_isSlot$4(o=n.value.map((l,c)=>createVNode("div",{class:[l.selected?styles$f.treeParentSelect:""],key:"parent"+c},[createVNode("div",{class:[styles$f.treeItem,styles$f.parentItem],onClick:()=>{n.value.forEach(p=>{l.id!==p.id&&(p.selected=!1)}),l.selected=!0}},[createVNode("p",{class:[styles$f.title,l.selected?styles$f.titleSelect:""]},[createVNode("span",{class:[styles$f.dir,l.selected?styles$f.dirSelect:""]},null),createVNode("div",{class:styles$f.name},[l.name])])])])))?o:{default:()=>[o]})]),createVNode("div",{class:styles$f.listSectionRight},[createVNode(NScrollbar,{class:styles$f.scrollBar},{default:()=>[i.value&&i.value.knowledgeList&&i.value.knowledgeList.map((l,c)=>createVNode("div",{key:"child"+c,class:[styles$f.treeItem,styles$f.childItem,a.value===l.id?styles$f.childSelect:""],onClick:()=>{if(a.value!=l.id){if(l.coursewareNum<=0){r.error("该章节暂无课件");return}t("handleSelect",{itemActive:l.id,itemName:l.name})}}},[createVNode("div",{class:styles$f.titleName},[l.name])]))]})])])])}}}),iconNote="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAwFBMVEUAAADk9P/k8//l9f/n9f/l9P/l9P/l8//l9P/l8//m8//m9P/o9v/q///k9P/k9P/l9P/k9P/m9P/l9P/l9P/l9f/n9v/o8//p+P/m9//p9P/////l8//l8//l9P/k8/8wmP9Wq/9Rqf80mv9Bof83nP/S6v94vf/d8P/X7f/F5P9yuf9mtP88nv/K5v+73v9IpP+Ixf/A4f9/wP9st/+j0/+w2f+bzv+Uy/9Zrf/O6P+OyP9fsP/h8v+13P+p1v+YamAyAAAAH3RSTlMA+cdMSs777eGYgnArDNG/uLSMi4lqVEIiHhcFxsWpm2xOQwAABJ5JREFUaN7Vm2lT6lAMhlso+yIgV3G7OdhS9lVAWcT//6/uaKNHKU2TUu7g88UZmOlrw8mb9JzUkNGwCrnKQzmbMc1MtvxQyRWshnEiSlYtZcIBzFTNKsWtVswn0kCQTuSL8andFlLAIFW4jUXuupoGJunq9dFyyQSISCSPkrsqg5jUVfSVcgGRuChGS4O6CREx6xHSxMrCEWQtodzdJRzJ5Z1E7yYBR5O4EeRCBmIgw86QPxATf3h6eYiNPEcvBzGSC9f7C7HyV3Z/p7/HPMROnr8+T79Wk3ASkoH+koGTkLkJ8E+5n3XHy8XbrAshJA77qtSv3WlTeTxuRiFOfrAegYh121bf6LtAYR2ot7L69zZUP2k9k/XRX5HrIOFJ+XkCgrqvfzGlen76VNex3+eI+qUXhQwH0+fp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W6FuOMJ6QZ6KgmJgk+w+/mgcAuy6jBiusJ6SQr7MKPWfcnF7HDQcQHbzaKJULjOvQArl/9QB0B3YFcoF17pN5y2XywWHKAWOjXrc0KFuC0shzwqCtj79xOltlJ6Rl1hqQFP8ssFQA6WX5C2WfKnHLloI+Si9JZ+Pjgps61radI8MYHXBYN5n8vVI4LRRj3tggbaD0leyHWCxpmvxrwuRqaESbJP9eSxXoCn2ZSUyFVTm9wl5d4T0hB7zqgR60nhHCFmvOkeOAz++Q5ke86KGCO2IvFNdBz1x5SA+tMX9TQC+zF8lCPC+glW7yfRJf1JMb9oYr7wnjK2ag3TY5E36i2ST1pHp2hbhpAMH8agUpDxcp57MVtNEsNm0bdvh37/gT4L+FTmguUkQ9dKWeO1JdtsLg5cqkezSqi3pNMfbzU4Yq9JdErLWcsMG06djOu6bYchtrZE+SbWh2CFBb5TdC+wQpaEmSYREqm7aJmDzT1C7GHQvakG0vZ5KkAEeLtYVM4Li+Y0LVBu+B20oA2598SEZ4sFCo2QOUaoEQeXm2cbCA5Si/mKra05Bt7WI9lD/U3ReiZOVeZrCng+TULVmFxIMc/Sx29TUBBlDck2jVwFkYeN7XjDDenBFtbUkGc+uqtGe50LYZbuBo9ejmrpLJrOZ1rSW77lDeH5L09KbJJ6tD2yy6/6lB7MGc+dd+nW2BD5skelIrKu6NoCurifILdjf/vZFTacWFlJp9cu37f0xsX/AKBuuyNzsygAAAABJRU5ErkJggg==",rightIconEnd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMAL2L85+9ECPeTc24lGvTe2tN+XlI7HhMNBPHHQCrizKqgmXdZVdDBsI9rYE25sqWKhTUx+JzRhwAAAfBJREFUSMftlttygjAQhtFwEPCIoCICinjWam3e/9k62ThTSTZBmelV+1+Z3XwRNnvA+OOaNcPsjObdBtzUopSOGoAhZZq8D7YBbP0+2AvcSALDwndquIVJKVkIoM/CpA/wkbDdSwEcsF+WraTgaCVIO2pyzDliC6BHOXlXcF8d8FtnKTgegUU2RTlnCN5BF7mOxRxWHyj4ybkJeo8RJ0OEm8CD9lNFAoT82FgGD+A5KTPHhfVYLoY+s+/UKTcz2XorgSfYF2ly1ceTd8+siS7JZxYzBAIXw5P62upYCWeDUl62WjCEsAtgyYymvh57YBGqZM1sFz1owEvaSNpca0DIyU0VhOst5FJJn005s7SRvFk9W1oQikrHGDFTWQUDSH7xIUj1eMidM9LThkIr96tpMsNSJ4LSn+pnAuxxhPlCeMR0ulFsKCTMuteCGdviilbIANKtHSa21AAIvxC1to+sROuKRDU9N5Add3CYPQUXQUuaY3FfApk4+CwyweuhPgt8F4yc8J47ig1MJQVtu9gMY+qopuWBk32v+qdTl1ChNyKvCcrWPzFKb3PKtTaUilf0IZK7x8259Ap4OSEwmAJCcc03dbN8iHK7+k8lJ7AkbHB67RPOGz1TZDeOjVeVHq+5RWjHTIpxz3hbsfGvZvoGIsd8tdTzIiAAAAAASUVORK5CYII=",rightIconArrange="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAmVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VHQRUAAAAMnRSTlMAu0PjG4Z40C4k2fb6sbgI7zgpDOjfwo5fRxcVD6iBfHNwbDEfEvzTvaKck2NZTj/Ind+ac5sAAAF1SURBVEjH7dXZjoIwFIBhHEBE9kUWcddRx3XmvP/DjT1ggnoqLYnJJON/hTafpqVNlf+Vd5j2WsEOgJW3cD245Jvy0ASW4clLB+WXUjVLjJu+ne6Khp8DlIvKwWOWzpmlxUbtAD9sgcqhZYaD6pA9/wDZhJZ7HEzYo2aQ0BrSMsHRtFzm3k2BbpdLQKbFKI/kYFquOt0Zf9Yi917OhlyF0xxY/REx9MFGOgqvMUpHHkYblFMpiJ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aVEv4YwcSxwjymtLCbaQtZCth2myHK1gvBsRk4WgVwCR19YGjLpU3I1TwZ1YbwR020zC7RCvkBbaGv6ENeGnCOQg3nyri08iWSwgL0Z0iQQctErC9n7u5T5tqXRVR6Al7dMV5hyJBUg+4shffrVTA9Voe9l0xwjB0fjrmW83qEqrIxsahF43A1p5FmqChlp7gVTbG4Cd6spjFjEdeGuoT8PX81CdqX9KhP/yl8VYY5nCLx5TeGLWz60gsMjhaLQshurX+K1g6aQvdh7zLEDRxU0hUWItBnM1NqqCUOktfiBjmMqhp4wHNryjbGAnjAc2vKN8aN5M0xBEAiicP3sBGOaWpSaW0QGReX97xUsyAu0QXF8+Q7ghwu7+2Q+a7EDYtG0xmgGxKKVyvH6EisgdkSlNEYnlsA1Fu1HY7yJKfCAI627MWaFLTDDJa8caXbA1D801RqjGRB74qI1RmNg6Z+qNUZj4N3fEnpjtAe+lcZIAaIx2gNd59beBmiMDGCBxsgAojGygA80RnvgvvUuu7ip2QxgdIw3ARrjpEBPCz0M96M98NQ8PfG0JnEkyARA0PCRjdgD803wjauVEmpwW7QSKskOyUhgEQbDch0JFDcQ+BwLFDfsHavRQElc3p933omafoOSKF33jMepg5KlULNcrISaFX2cRx9Y0key9KEzfazOFgfoagRd/mDrLXSBh60o0SUstmbGFunoqiBbhmTrnmyh9f/K7rRS8jy068nE8jmp84SfA+i/P3wAWrtCfeiitXgAAAAASUVORK5CYII=",rightIconWhiteboard="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAmVBMVEUAAADs9v/r9f/s9v/t9//////r9v/r9f/r9f/s9v/r9v/s9f/s9f/r9f/t9v/w+f/r+P/r9f/k8v/m///////r9f/r9f+Ag4XBydCeo6ipr7TY4erg6fORlZnO1t+MkJPU3eXp8vzQ2OCrsbaDhojL09u7wciIjI/l7/jGztbW3uezub+GiYyutLqYnqHa4+ykqa6ip6ydoqdEf5LcAAAAFnRSTlMA4OuYTgT48/DNwauEgnE1J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inOqWhBFakCeEMSAJ3dmneXBnsUkSmguICNP0XbLFbS5ro9ZssP4gOwYmJAthjclZwgiQLoQ3aWbrui0T0oVMGWVE2XEC8KCBi6/4DuKe9qgOTrQyODGsyGnNaiNn4pvgpqyVoJSSpkMpulaBUipaFUqpKn8kq/yhs/LH6qoHB5SPRigf/lA93qJ8gEf1iJLyISzVY2aqB+mUjwqqHoZUPe6peqD174/sFjuU/G+MXRc2WP4vjc4r+HGA8p8//AaDG0f0Jk/e8AAAAABJRU5ErkJggg==",rightIconCall="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMA/Qz5b4QPywhmYhkE5l4nHBP18qIj1tPDt7B8LN/GvaeYk5BNNxftwG1qW0lCMYp0VJyLGxmBAAAByklEQVRIx+2UyZaCMBBFg5FJUWgBRcV5nrXz///WPqIHggrVvfD0wrurUJdMlWIf3seyqX9P+nPrl9qxq4mE1qTO6DhTqUm1SfasEbwUnSqOb4J2922aZydS4xw61mLGEXCX4lUayO0aMooHiHoUsYZM07qHro/5PYLYQ+Iijfv40YYgrq55nWwl4IjGhDtE3iQ7gl2uy8X6w82ZWMJfxfZ/FL8gzrIjbdwr4VQ56iY70iKWTgdPyUjjvVxCObq6SWeI+EAQYw01N7+HM3gNhxEIElNPVhv2BKgxCvWVAH7vNB3Jtxw5jMRFqK1j8EXSvIALBdMjeVVfna6lW6QGN1at6FxnJG8tp+PdzT523Ye9hfPli8aYePz04jS2XPiLp/uDpnXCV9vX0jJW8Hx4I6PI0541kQATtrPeIph6iodafGDJ8007vo40XMWzVSdtoNPcCMwSj0X4olxbU0vMsNizsNKh2g1GN7PIY0d866tjlUiAlfRePK4DPu5YzhwmZpHHLk9bhDEs82RT0o1KipWYZqGHDC5yBLLRmkUemORFfpRmJPwdK8Do4PCe9Qyv5C0bQd40K4yGt6tWq5vt1rbtWq15JWYf3ssP6XFlmwYeECoAAAAASUVORK5CYII=",rightIconPackUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMA+zeQHF/x29HqrYAuFAUM47+jaEw9KhnauJmKenIEBwQ4zAAAAJxJREFUSMfty8kOwjAMRVFnAEoLOEknZv//X4KyqBoLKRaskHx3fvIBTfs9P2I5TPYpcb2hYNfDlajxdYeGiLYraendri5nolIOJJSRSQxCeWyYPOxVqvxKTkyeUShbYPIOtW75Ly736ZIHV3Md5frFtfk2VuYcdxt16j70YA6SzKFhzsoczMzBIHC5WDrAIHOAXSrfvEsjaNqf9wKfgi4azH+HogAAAABJRU5ErkJggg==",leftIconPackUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAXVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9RKvvlAAAAHnRSTlMA+zcckPHbYAXq0a2ALhQMu+KlnHZoTD3lz8NZKyrGTxKvAAAAmklEQVRIx+3MyQ6CUBBE0X6DioI2M471/5+psCC8dkHHuCHpu6zkFFnWf8v8i5J4CBoXbkBDi/wVrlO4PT75hdsBcKxz6FMHBJ2rWLhS545n4U4Xc+a+Y+meOketcJTrHEWMldk83Kch0lreYSyfZYepYlUepIwmTf4kaxKy1UovpGOl7EnIQCpZMaWyJEVDE9P/R10wWdb2egP9ySypatgqLwAAAABJRU5ErkJggg==",rightIconMusic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMA/Pg2Bt24LBjZyFJMIu97EQmPhXNZqVYdDPPprpSId2k81EAm0c3DvquagF1EMuzks6RiOvmixQAAAjhJREFUSMftlstiqjAQhodwC4IKWAGvR49aL9Xa2nn/ZytOqBgTNG666rfQRfiTuWYCf/wScZh6boex42rcXThgiNP3LLziuLPBhJmLCps5PMJeoZZTDHf5Z2EDH/cOdTKscCe5HzsOt2dZBwUsbNZ5SFjj692TH6etPTSwRaL1rsRreFf5JlZ7oNJeC2u1eTlYtNaHOOKqF5/C9QEoJC6d14fFETvLprhNQKFLC13IWfn3ptl4RRv7cMOAor6BOcOSCFSWFKEMbnghB5dOcN725Vzn/cn21Fvc2mS1Qea/8CAUfkLSGyIRhLVRI1S98OmrNqTl7w6geMULaV2PtJPG0jWcT2RtGJTn10yhglPCCkk4xpKza+H0HWCHEhdHW2rgKIk/pdamnYdpuBdpb0m2SgXpnD+1kuvwdXz6tPJdMNigNYVrOJaMoMITdhMUpa86mRzAz3ldxBQvKTU+ED1RTzVxVnphPy/MKZnes6byqmXXTwbHH6FgL6fDfpSODIljrhQA8aAAcMvVkhPoSq4WzrRFTuiKvBba2rYSKG2lCJVGhgpq5PGlkRM7yg+8EuqvDh2Rx8Tpo1qoXlYK3EMJu+l6vKFwURXqL2SZNSpCoxEQVUPOG79aldBs6OxIFpHRJ1qem425DZaEIKDIRwaDFQA+r4puyahRDUZ5EFWOe7lfzKd04Mjo8cB4wVCmZ/ZcOYhWrgkSowcS4wBTSVcYPcmCiFIZXCxPB/AUh7TlfqyyWQx/GPIN4YqwXgc8ikQAAAAASUVORK5CYII=",bottomIconSwitch="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAkFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+WABnwAAAAL3RSTlMAR7iKqlR0/NR+OB75wZEuFATs2sa0poZ7bT8L7+XRrp12W0QpGcqwoHBiUUooJd2BplMAAAECSURBVEjH7ZTZboMwEEWHEIqx2RKWQMi+dG/n//+umqaB2IOUhIeqlXwej+5B2A8Gi+VE4wVuy+xFkjvuLl196OvqBeqI93TjG644si5GzpSrpTI6D28kN0KBt+JonULi+aGlin7+1u1csCQTa+Gc1KOm1qTCj0u1I/WkrRxSI37qvGdllVVW/brakyoGhIqeRndACJWPq3RICOknwICQ+IuhJJVNroQ1rcaaSn1yYtxSbhsg5pvOFSGNZqARocn6u/OZT/RQhr2LEbMlGLyyb4v9IWZd1ICJzPEq06D3/pTjncmwozrLN8kyRrJouxjuIlmdsnALdzLxSpFFgQLLv+ALF8x6vv/+q3MAAAAASUVORK5CYII=",bottomIconResource="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAgVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9d3yJTAAAAKnRSTlMApEM72tSqL/EKJhwPvFb69c7HrqidlYl9amEiFgTttJmRgk8sH4pKRz/l61sYAAAA20lEQVRIx+3VWW/CMBAE4Am0jXMSIAeQcNNr/v8PbLaikl1VXpU+VEL+nkYreffNgyD4F9t1s95KeO7qJ5/jBY4lyVre7aiYxbCkFBlwoqqBJaZIgY6qCLb5OFnIhhk1b7AN7aLNJbzvH72KM4J7lMc5PvUTrxSusqIpJdRUFIlzrxpHZhxtqFrBMqWIgSNVS+eiufEiSkNzlhBRsU/gSOLrIJt69Qju0dDMD4OESfHgVZS49Sd//bE7Xn7ZHf1XW62oOrj9eF2V7aioLt8aud1AZKfIq0sRBH/xAeE/WP9JY0opAAAAAElFTkSuQmCC",bottomIconPre="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4BAMAAABaqCYtAAAAKlBMVEUAAAD///////////////////////////////////////////////////+Gu8ovAAAADXRSTlMA4yQFrV8c8M97xqJQmy3IyQAAAIlJREFUOMvty7EJwkAAheGHoFhY2VkIuoGVDuAcjuAIaVJkgWyTLQJpknC7hMCRv3h3C4T7m8crPpX226lrle0ZhpcyHe4hfPMwQBMQ6hCagDeowf7x26jBq45QgxLUoKAJCHUIJSDUIdShU2CaniOEjrx/hNCJ94kQOnMuVb0OtGpE77j8Ukm0AATIXclNea52AAAAAElFTkSuQmCC",bottomIconNext="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4BAMAAABaqCYtAAAAKlBMVEUAAAD///////////////////////////////////////////////////+Gu8ovAAAADXRSTlMA4yQFrV8c8M97xqJQmy3IyQAAAIhJREFUOMvty7EJwlAYReEfQbGwsrMQdAMrHcA5HMER0qTIAtkmWwTSJOHuEnjNeXBDBgjvdJfLF6VS1ntjX6o68o5Vw/iof+TnTzPjL11zKE2ssxIFamQd7okC9Q16JgocXuHUIdQh1KBRoFOgU6BTIEGBTm9ApwI6BToFrlKgU6B36too7bcF4hRdyc/l56kAAAAASUVORK5CYII=",rightIconTool="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAVFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////8wXzyWAAAAG3RSTlMA75mtQfZ64dSUO46lh2c6BujPtLCiYVUuHQ3WiSDuAAABBUlEQVRIx+2Wy47DIAxFCaEESl59P/z//zm6LEYj18LejNqqPbsgH2E7IOO+vAHbmH0lx62zExL9IQWrNxNjNu5HD9j2TAQ2XWVDIJn6gsgh/O4/4NvSoVhzY5nHpnIt+x2SewSJ7/blKmprJpW8CuKBDByk0lTEYu9dbebJ+7EXGL0/1fZ2dyZesHpcXYP1iJgLW52weHNNboiZ2KJHGk4B5finiz3BVEBML4gqryGOuAJeARdnfPrv+DBxKZ5RFou4kMBiECdJnAziWRLPlhrL0DGG8g9dzTjkmohDnuVRow/O2BhuHD7w5HEq0B6xgXTkamaLN2uPFJkUlGeRCJ5KX16VH6RxSpVCxaDeAAAAAElFTkSuQmCC",selectMusic="_selectMusic_7wci3_1",close="_close_7wci3_37",styles$e={selectMusic,close},searchGroup$4="_searchGroup_1pw89_1",btnType$3="_btnType_1pw89_4",inputSearch$3="_inputSearch_1pw89_40",searchCatatory$1="_searchCatatory_1pw89_61",addTrain$1="_addTrain_1pw89_77",searchForm="_searchForm_1pw89_89",spaceSection$1="_spaceSection_1pw89_92",collaoseGroup="_collaoseGroup_1pw89_100",collapseWrap$1="_collapseWrap_1pw89_107",collaoseBtn$1="_collaoseBtn_1pw89_113",isStart$1="_isStart_1pw89_118",isHidden$1="_isHidden_1pw89_121",hideButton$1="_hideButton_1pw89_125",popSelect$1="_popSelect_1pw89_130",spaceSection2$1="_spaceSection2_1pw89_140",textBtn$1="_textBtn_1pw89_145",iconArrow$1="_iconArrow_1pw89_157",textBtnActive$1="_textBtnActive_1pw89_166",styles$d={searchGroup:searchGroup$4,btnType:btnType$3,inputSearch:inputSearch$3,searchCatatory:searchCatatory$1,addTrain:addTrain$1,searchForm,spaceSection:spaceSection$1,collaoseGroup,collapseWrap:collapseWrap$1,collaoseBtn:collaoseBtn$1,isStart:isStart$1,isHidden:isHidden$1,hideButton:hideButton$1,popSelect:popSelect$1,spaceSection2:spaceSection2$1,textBtn:textBtn$1,iconArrow:iconArrow$1,textBtnActive:textBtnActive$1};function _isSlot$3(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const ChildNodeSearch=defineComponent({name:"ChildNodeSearch",props:{activeRow:{type:Object,default:()=>({})},list:{type:Array,default:()=>[]}},emits:["selectChildTag"],setup(e,{emit:t}){const{activeRow:r}=toRefs(e),a=ref({});watch(()=>e.activeRow,()=>{r.value=e.activeRow,n()});const n=()=>{r.value.activeIndex?(r.value.children||[]).forEach(i=>{if(i.id===r.value.activeIndex){let o,l="";i.children&&(o=[{columnName:i.children[0].columnName,name:"全部",id:""},...i.children],l=i.children[0].columnName,a.value={...i,columnName:l,activeIndex:i.activeIndex,children:o})}}):a.value={}};return onMounted(()=>{n()}),()=>{var s;return createVNode(Fragment,null,[((s=r.value)==null?void 0:s.id)&&createVNode(Fragment,null,[createVNode(NFormItem,{label:r.value.columnName+":"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection},{default:()=>{var i;return[(i=r.value)==null?void 0:i.children.map(o=>createVNode("span",{class:[styles$d.textBtn,(r.value.activeIndex||"")==o.id&&styles$d.textBtnActive],onClick:()=>{r.value.activeIndex=o.id;let l,c="";o.children?(l=[{columnName:o.children[0].columnName,name:"全部",id:""},...o.children],c=o.children[0].columnName,a.value={...o,columnName:c,activeIndex:"",children:l}):a.value={},t("selectChildTag",r.value.activeIndex)}},[o.name]))]}})]}),createVNode(ChildNodeSearch,{activeRow:a.value,onSelectChildTag:i=>{t("selectChildTag",i||r.value.activeIndex)}},null)])])}}}),ResourceSearchGroup$2=defineComponent({name:"resource-search-group",props:{type:{type:String,default:"shareResources"},searchGroup:{type:Object,default:()=>({})},subjectId:{type:String,default:null}},emits:["search"],setup(e,{emit:t}){const r=toRef(e.subjectId),a=useCatchStore(),n=reactive({type:"MUSIC",name:"",subjectId:r.value,audioPlayTypes:e.type=="myResources"?"PLAY":"",bookVersionId:null}),s=reactive({tempSubjectId:null,gradeList:[],musicCategory:[]}),i=reactive({selectParents:{},tags:[],tagActiveId:"",tagActive:{},childSelectId:null}),o=ref([]),l=ref([]),c=N=>{t("search",{...n,subjectId:n.audioPlayTypes!=="SING"?n.subjectId:null,audioPlayTypes:n.audioPlayTypes?n.audioPlayTypes==="PLAY_SING"?["PLAY","SING"]:[n.audioPlayTypes]:[],bookVersionId:i.childSelectId||i.tagActiveId},N)},p=useThrottleFn(()=>c(),500),A=ref(),d=ref([]),f=ref(0),m=ref(0),g=ref(0),E=ref(!1),u=ref(!1),y=()=>{try{d.value=[...new Set(d.value)];let N=-1;d.value.forEach((B,O)=>{O===0?(g.value=1,N=B.offsetLeft):B.offsetLeft===N&&O!=0&&g.value++,E.value?B.style.display="block":g.value>1?B.style.display="none":B.style.display="block"}),u.value=!0}catch(N){}},S=N=>{const B={};return N==null||N.forEach(O=>{O.id===n.subjectId&&(B.selected=!0,B.name=O.name)}),B},b=()=>{const N=a.getMusicTagTree;i.tags=[{columnName:N[0].columnName,name:"全部",id:""},...N],i.tagActiveId=i.tags[0].id},x=N=>{i.tagActiveId=N.id,i.childSelectId=null;let B,O="";N.children?(B=[{columnName:N.children[0].columnName,name:"全部",id:""},...N.children],O=N.children[0].columnName,i.selectParents={...N,columnName:O,activeIndex:"",children:B}):i.selectParents={},c()},C=()=>{var B,O;const N=a.getSubjectInstrumentOnly;if(N.length>0){const R=N[0];R.instruments&&R.instruments.length>1?(s.tempSubjectId=(B=R.instruments[0])==null?void 0:B.value,n.subjectId=(O=R.instruments[0])==null?void 0:O.value):n.subjectId=R.value}},D=(N,B,O=[])=>{for(const R of B){if(R.children&&R.children.length>0){const _=D(N,R.children,[...O,R.id]);if(_.includes(N))return _}if(R.id===N)return[...O,N]}return O},I=(N,B)=>{for(const O of B){if(N.includes(O.id)&&O.children&&O.children.length>0){let R;O.children.forEach(_=>{N.includes(_.id)&&(R=_.id)}),O.activeIndex=R}O.children&&O.children.length>0&&I(N,O.children)}};return onMounted(async()=>{var B,O;const N=Object.keys(audioPlayType).map(R=>({value:R,name:audioPlayType[R]}));if(l.value=[{name:"全部",value:""},...N],resourceTypeArray.forEach(R=>{o.value.push(R)}),await a.getMusicTagTreeApi(),b(),await a.getSubjects(),n.subjectId=null,n.type==="MUSIC"&&(f.value=(B=A.value)==null?void 0:B.offsetHeight,m.value=((O=A.value)==null?void 0:O.offsetHeight)/g.value,y()),C(),console.log(e.searchGroup,"searchGroup - parent"),e.searchGroup.type){const R=e.searchGroup;if(n.type=R.type||"MUSIC",n.audioPlayTypes=R!=null&&R.audioPlayTypes?R.audioPlayTypes.join("_"):"",R.musicalInstrumentId&&(n.subjectId=R.musicalInstrumentId),R.bookVersionId){i.childSelectId=R.bookVersionId;let _=D(i.childSelectId,i.tags);console.log(_,"ids"),i.tagActiveId=_[0];const G=_.findIndex(j=>j===i.childSelectId);_=_.slice(0,G+1),I(_,i.tags),i.tags.forEach(j=>{if(j.id===i.tagActiveId){let M,F="";if(j.children){M=[{columnName:j.children[0].columnName,name:"全部",id:""},...j.children],F=j.children[0].columnName;let P;j.children.forEach(T=>{_.includes(T.id)&&(P=T.id)}),i.selectParents={...j,columnName:F,activeIndex:P||"",children:M}}else i.selectParents={}}})}}c("timer")}),()=>{let N,B,O,R;return createVNode("div",{class:styles$d.searchGroup},[createVNode("div",{class:styles$d.searchCatatory},[createVNode(NSpace,{size:"small",class:styles$d.btnType},_isSlot$3(N=o.value.map(_=>createVNode(NButton,{type:n.type===_.value?"primary":"default",secondary:n.type!==_.value,round:!0,size:"small",focusable:!1,onClick:()=>{n.type=_.value,n.subjectId=null,i.tagActiveId="",i.childSelectId=null,i.selectParents={},n.audioPlayTypes=e.type==="myResources"?"PLAY":"",C(),c();try{nextTick(()=>{var G,j;n.type==="MUSIC"?(f.value=(G=A.value)==null?void 0:G.offsetHeight,m.value=((j=A.value)==null?void 0:j.offsetHeight)/g.value,y()):d.value=[]})}catch(G){}}},{default:()=>[_.label]})))?N:{default:()=>[N]}),createVNode(TheSearch,{class:styles$d.inputSearch,round:!0,onSearch:_=>{n.name=_,p()}},null)]),createVNode(NForm,{labelAlign:"left",labelPlacement:"left",class:styles$d.searchForm},{default:()=>{var _;return[n.type==="MUSIC"&&e.type==="shareResources"&&createVNode(Fragment,null,[createVNode(NFormItem,{label:((_=i.tags[0])==null?void 0:_.columnName)+":"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection},_isSlot$3(B=i.tags.map(G=>createVNode("span",{class:[styles$d.textBtn,i.tagActiveId===G.id&&styles$d.textBtnActive],onClick:()=>{x(G)}},[G.name])))?B:{default:()=>[B]})]}),createVNode(ChildNodeSearch,{activeRow:i.selectParents,onSelectChildTag:G=>{i.childSelectId=G,c()}},null)]),e.type!=="myResources"&&n.type==="MUSIC"&&createVNode(NFormItem,{label:"场景:"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection},_isSlot$3(O=l.value.map(G=>createVNode("span",{class:[styles$d.textBtn,n.audioPlayTypes===G.value&&styles$d.textBtnActive],onClick:()=>{n.audioPlayTypes=G.value,c()}},[G.name])))?O:{default:()=>[O]})]}),n.audioPlayTypes!=="SING"&&createVNode(NFormItem,{label:"乐器:"},{default:()=>[createVNode(NSpace,{class:styles$d.spaceSection2},_isSlot$3(R=a.getSubjectInstrumentOnly.map(G=>G.instruments&&G.instruments.length>1?createVNode(NPopselect,{options:G.instruments,trigger:"hover",scrollable:!0,value:s.tempSubjectId,"onUpdate:value":[j=>s.tempSubjectId=j,()=>{n.subjectId=s.tempSubjectId,c()}],key:G.value,class:[styles$d.popSelect]},{default:()=>[createVNode("span",{class:[styles$d.textBtn,S(G.instruments).selected&&styles$d.textBtnActive]},[S(G.instruments).name||G.name,createVNode("i",{class:styles$d.iconArrow},null)])]}):createVNode("span",{class:[styles$d.textBtn,n.subjectId===G.value&&styles$d.textBtnActive],onClick:()=>{n.subjectId=G.value,s.tempSubjectId=null,c()}},[G.name])))?R:{default:()=>[R]})]})]}})])}}}),listContainer$3="_listContainer_1vlr5_1",emptySection$3="_emptySection_1vlr5_5",list$4="_list_1vlr5_1",itemWrap$1="_itemWrap_1vlr5_18",itemWrapBox$1="_itemWrapBox_1vlr5_23",styles$c={listContainer:listContainer$3,emptySection:emptySection$3,list:list$4,itemWrap:itemWrap$1,itemWrapBox:itemWrapBox$1},searchGroup$3="_searchGroup_sj4lp_1",btnType$2="_btnType_sj4lp_5",inputSearch$2="_inputSearch_sj4lp_41",searchCatatory="_searchCatatory_sj4lp_65",addTrain="_addTrain_sj4lp_72",spaceSection="_spaceSection_sj4lp_84",collapseWrap="_collapseWrap_sj4lp_91",collaoseBtn="_collaoseBtn_sj4lp_97",isStart="_isStart_sj4lp_102",isHidden="_isHidden_sj4lp_105",hideButton="_hideButton_sj4lp_109",popSelect="_popSelect_sj4lp_114",spaceSection2="_spaceSection2_sj4lp_124",textBtn="_textBtn_sj4lp_129",iconArrow="_iconArrow_sj4lp_141",textBtnActive="_textBtnActive_sj4lp_150",styles$b={searchGroup:searchGroup$3,btnType:btnType$2,inputSearch:inputSearch$2,searchCatatory,addTrain,spaceSection,collapseWrap,collaoseBtn,isStart,isHidden,hideButton,popSelect,spaceSection2,textBtn,iconArrow,textBtnActive};function _isSlot$2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const ClassSearchGroup=defineComponent({name:"resource-search-group",props:{type:{type:String,default:"shareResources"},subjectId:{type:String,default:""},from:{type:String,default:""}},emits:["search"],setup(e,{emit:t}){const r=toRef(e.subjectId),a=useCatchStore(),n=reactive({type:"MUSIC",name:"",audioPlayTypes:e.type==="myResources"&&e.from==="class"?"PLAY":"",subjectId:r.value,bookVersionId:null}),s=ref([]),i=ref([]),o=A=>{t("search",{...n,subjectId:n.audioPlayTypes!=="SING"?n.subjectId:null,audioPlayTypes:n.audioPlayTypes?n.audioPlayTypes==="PLAY_SING"?["PLAY","SING"]:[n.audioPlayTypes]:[]},A)},l=useThrottleFn(()=>o(),500),c=A=>{const d={};return A==null||A.forEach(f=>{f.id===n.subjectId&&(d.selected=!0,d.name=f.name)}),d},p=()=>{var d;const A=a.getSubjectInstrumentOnly;if(A.length>0){const f=A[0];f.instruments&&f.instruments.length>1?n.subjectId=(d=f.instruments[0])==null?void 0:d.value:n.subjectId=f.value}};return onMounted(async()=>{const A=Object.keys(audioPlayType).map(d=>({value:d,name:audioPlayType[d]}));i.value=[{name:"全部",value:""},...A],resourceTypeArray.forEach(d=>{s.value.push(d)}),await a.getMusicSheetCategory(),await a.getSubjects(),e.subjectId||p(),a.getSubjectInstruments.forEach(d=>{var f;((f=d.instruments)==null?void 0:f.length)>0?d.instruments.forEach(m=>{m.id==e.subjectId&&(n.subjectId=m.value)}):d.id==e.subjectId&&(n.subjectId=d.value)}),o("timer")}),()=>{let A,d;return createVNode("div",{class:styles$b.searchGroup},[createVNode(NForm,{labelAlign:"left",labelPlacement:"left"},{default:()=>[e.type!=="myResources"&&createVNode(NFormItem,{label:"场景:"},{default:()=>[createVNode(NSpace,{class:[styles$b.spaceSection,styles$b.spaceSection2,"spaceSectionBox"]},_isSlot$2(A=i.value.map(f=>createVNode("span",{class:[styles$b.textBtn,n.audioPlayTypes===f.value&&styles$b.textBtnActive],onClick:()=>{n.audioPlayTypes=f.value,o()}},[f.name])))?A:{default:()=>[A]})]}),n.audioPlayTypes!=="SING"&&createVNode(NFormItem,{label:"乐器:"},{default:()=>[createVNode(NSpace,{class:[styles$b.spaceSection,styles$b.spaceSection2,"spaceSectionBox"]},_isSlot$2(d=a.getSubjectInstrumentOnly.map(f=>f.instruments&&f.instruments.length>1?createVNode(NPopselect,{options:f.instruments,trigger:"hover",scrollable:!0,value:n.subjectId,"onUpdate:value":[m=>n.subjectId=m,()=>{o()}],key:f.value,class:[styles$b.popSelect]},{default:()=>[createVNode("span",{class:[styles$b.textBtn,c(f.instruments).selected&&styles$b.textBtnActive]},[c(f.instruments).name||f.name,createVNode("i",{class:styles$b.iconArrow},null)])]}):createVNode("span",{class:[styles$b.textBtn,n.subjectId===f.value&&styles$b.textBtnActive],onClick:()=>{n.subjectId=f.value,o()}},[f.name])))?d:{default:()=>[d]})]}),createVNode(TheSearch,{class:styles$b.inputSearch,round:!0,onSearch:f=>{n.name=f,l()}},null)]})])}}}),formatType$2=e=>{if(e==="shareResources")return 2;if(e==="myResources")return 3;if(e==="myCollect")return 4;if(e==="relateResources")return 5},SelectItem=defineComponent({name:"share-resources",props:{type:{type:String,default:"shareResources"},searchGroup:{type:Object,default:()=>({})},from:{type:String,default:""},instrumentId:{type:String,default:""}},setup(e){const t=usePrepareStore(),r=useCatchStore(),{type:a}=toRefs(e),n="resourceSearchGroup"+ +new Date,s="spinSearchGroup"+ +new Date,i=reactive({searchHeight:"0px",searchHeight2:"0px",loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,audioPlayTypes:e.type==="myResources"?["PLAY"]:[],sourceType:formatType$2(a.value),musicalInstrumentId:null,enableFlag:!0},tableList:[],show:!1,item:{}}),o=async()=>{try{i.pagination.page===1&&(i.loading=!0);const{data:m}=await materialQueryPage({...i.searchGroup,...i.pagination,lessonCoursewareKnowledgeId:e.type==="relateResources"||e.type==="shareResources"?t.getSelectKey:null,relateLessonCoursewareKnowledgeMaterialIds:d()});i.loading=!1;const g=m.rows||[],E=[];g.forEach(u=>{E.push({id:u.id,coverImg:u.coverImg,type:u.type,title:u.name,isCollect:!!u.favoriteFlag,isSelected:u.sourceFrom==="PLATFORM",refFlag:u.refFlag,audioPlayTypeArray:u.audioPlayTypes?u.audioPlayTypes.split(","):[],containAccompaniment:u.containAccompaniment,content:u.content})}),i.tableList.push(...E),i.finshed=m.pages<=m.current}catch(m){i.loading=!1}},l=m=>{i.pagination.page=1,i.tableList=[];const{subjectId:g,...E}=m;i.searchGroup=Object.assign(i.searchGroup,{...E,musicalInstrumentId:g,subjectId:null}),o()},c=useDebounceFn(m=>{l(m)},300),p=async m=>{try{eventGlobal.emit("onPrepareAddItem",{materialId:m.id,coverImg:m.coverImg,type:m.type,title:m.title,refFlag:m.refFlag,isCollect:m.isCollect,isSelected:m.isSelected,content:m.content,removeFlag:!1})}catch(g){}},A=async m=>{try{await favorite({materialId:m.id,favoriteFlag:m.isCollect?0:1,type:m.type}),m.isCollect=!m.isCollect}catch(g){}},d=()=>{let m=[];if(e.type==="relateResources"){const g=[];t.getCoursewareList.forEach(E=>{var u;(u=E.list)==null||u.forEach(y=>{g.push(y.materialId)})}),m=Array(...new Set(g))}return m.join(",")},f=()=>{i.pagination.page=1,i.tableList=[],o()};return onMounted(async()=>{await r.getSubjects(),useResizeObserver(document.querySelector("."+n),m=>{const g=m[0],{height:E}=g.contentRect;i.searchHeight=E+"px"}),useResizeObserver(document.querySelector("."+s),m=>{const g=m[0],{height:E}=g.contentRect;i.searchHeight2=E+"px"}),e.type==="relateResources"&&eventGlobal.on("onCoursewareUpdate",f)}),onUnmounted(()=>{eventGlobal.off("onCoursewareUpdate",f)}),()=>createVNode("div",null,[createVNode(NScrollbar,{class:[styles$c.listContainer,"list_container"],style:{"max-height":"calc(var(--listContainerHeight) - var(--modal-lesson-tab-height) - ".concat(i.searchHeight,") ")},onScroll:m=>{var y,S,b;const g=(y=m.target)==null?void 0:y.clientHeight,E=(S=m.target)==null?void 0:S.scrollTop,u=(b=m.target)==null?void 0:b.scrollHeight;g+E+20>=u&&!i.finshed&&!i.loading&&(i.pagination.page=i.pagination.page+1,o())}},{default:()=>[createVNode("div",{class:s},[e.from==="class"?createVNode(ClassSearchGroup,{from:e.from,type:e.type,subjectId:t.getSubjectId||e.instrumentId,onSearch:(m,g)=>{if(g){l(m);return}c(m)}},null):createVNode(ResourceSearchGroup$2,{type:e.type,searchGroup:e.searchGroup,onSearch:(m,g)=>{if(g){l(m);return}c(m)}},null)]),createVNode(NSpin,{show:i.loading,size:"small"},{default:()=>[createVNode("div",{style:{"min-height":"calc(var(--listContainerHeight) - var(--modal-lesson-tab-height) - ".concat(i.searchHeight," - ").concat(i.searchHeight2,")")},class:[styles$c.listSection,!i.loading&&i.tableList.length<=0?styles$c.emptySection:""]},[i.tableList.length>0&&createVNode("div",{class:styles$c.list},[i.tableList.map(m=>createVNode("div",{class:[styles$c.itemWrap,"selresources_item_Wrap"]},[createVNode("div",{class:styles$c.itemWrapBox},[createVNode(CardType,{isShowAdd:e.from!=="class",item:m,isShowCollect:!0,onAdd:g=>p(g),disabledMouseHover:!1,onCollect:g=>A(g),onClick:()=>{m.type!=="IMG"&&(i.show=!0,i.item={instrumentId:i.searchGroup.musicalInstrumentId,...m})}},null)])]))]),!i.loading&&i.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{size:e.from==="class"?"large":"default",show:i.show,"onUpdate:show":m=>i.show=m,from:e.from,item:i.item,isDownload:!1},null)])}}),SelectResources=defineComponent({name:"select-resources",props:{type:{type:String,default:"myResources"},searchGroup:{type:Object,default:()=>({})},from:{type:String,default:""},instrumentId:{type:String,default:""}},emits:["select"],setup(e){const{type:t}=toRefs(e),r=ref(t.value),a=useCatchStore();return onMounted(async()=>{nextTick(()=>{useResizeObserver(document.querySelector(".select-resource .n-tabs-nav--top"),n=>{const s=n[0],{height:i}=s.contentRect;console.log(i,"height - 11"),document.documentElement.style.setProperty("--modal-lesson-tab-height",i+"px")})}),await a.getMusicSheetCategory(!0)}),()=>createVNode("div",{class:[styles$e.selectMusic,"select-resource"]},[createVNode(NTabs,{animated:!0,value:r.value,paneClass:styles$e.paneTitle,justifyContent:"center",paneWrapperClass:styles$e.paneWrapperContainer,"onUpdate:value":n=>{r.value=n}},{default:()=>[e.from!=="class"&&createVNode(NTabPane,{name:"relateResources",tab:"相关资源"},{default:()=>[createVNode(SelectItem,{type:"relateResources",searchGroup:e.searchGroup,from:e.from,instrumentId:e.instrumentId},null)]}),createVNode(NTabPane,{name:"shareResources",tab:e.from==="class"?"共享曲目":"共享资源"},{default:()=>[createVNode(SelectItem,{type:"shareResources",from:e.from,searchGroup:e.searchGroup,instrumentId:e.instrumentId},null)]}),createVNode(NTabPane,{name:"myResources",tab:e.from==="class"?"我的曲目":"我的资源"},{default:()=>[createVNode(SelectItem,{type:"myResources",from:e.from,searchGroup:e.searchGroup,instrumentId:e.instrumentId},null)]}),createVNode(NTabPane,{name:"myCollect",tab:"我的收藏"},{default:()=>[createVNode(SelectItem,{type:"myCollect",from:e.from,searchGroup:e.searchGroup,instrumentId:e.instrumentId},null)]})]})])}}),selectClass="_selectClass_1i72c_1",selectClassScroll="_selectClassScroll_1i72c_4",searchGroup$2="_searchGroup_1i72c_8",list$3="_list_1i72c_11",listEmpty="_listEmpty_1i72c_20",itemWrap="_itemWrap_1i72c_25",itemWrapBox="_itemWrapBox_1i72c_28",styles$a={selectClass,selectClassScroll,searchGroup:searchGroup$2,list:list$3,listEmpty,itemWrap,itemWrapBox},coursewareType="_coursewareType_122ih_1",coursewareTypeHover="_coursewareTypeHover_122ih_12",addBtn="_addBtn_122ih_12",coursewareTypeHocoursewareTypeShow="_coursewareTypeHocoursewareTypeShow_122ih_16",cover="_cover_122ih_38",noCoverImg="_noCoverImg_122ih_48",defaultLook="_defaultLook_122ih_58",isShowAdd="_isShowAdd_122ih_82",iconNoWork="_iconNoWork_122ih_90",status="_status_122ih_100",hideP="_hideP_122ih_121",preview="_preview_122ih_124",previewBtn="_previewBtn_122ih_144",coursewareText="_coursewareText_122ih_151",name$1="_name_122ih_154",iconEditName="_iconEditName_122ih_169",subjectName="_subjectName_122ih_176",editName="_editName_122ih_182",addCourseBtn="_addCourseBtn_122ih_201",operationBottom="_operationBottom_122ih_211",footer="_footer_122ih_214",actionClass="_actionClass_122ih_223",actionWork="_actionWork_122ih_242",menu="_menu_122ih_252",iconEdit="_iconEdit_122ih_169",iconDelete="_iconDelete_122ih_276",popoverItem="_popoverItem_122ih_289",iconLook="_iconLook_122ih_323",iconAdd="_iconAdd_122ih_324",styles$9={coursewareType,coursewareTypeHover,addBtn,coursewareTypeHocoursewareTypeShow,cover,noCoverImg,defaultLook,isShowAdd,function:"_function_122ih_85",iconNoWork,status,hideP,preview,previewBtn,coursewareText,name:name$1,iconEditName,subjectName,editName,addCourseBtn,operationBottom,footer,actionClass,actionWork,menu,iconEdit,iconDelete,popoverItem,iconLook,iconAdd},CoursewareType=defineComponent({name:"courseware-type",props:{item:{type:Object,default:()=>({})},isHoverShowAdd:{type:Boolean,default:!0},isShowAdd:{type:Boolean,default:!1},isEditName:{type:Boolean,default:!1},operate:{type:Boolean,default:!1},isShowPreviewBtn:{type:Boolean,default:!1},isShowOpenFlag:{type:Boolean,default:!0},background:{type:String,default:"#F4F7FD"}},emits:["add","editName","edit","delete","startClass","click","work","look"],setup(e,{emit:t}){return()=>createVNode("div",{class:[styles$9.coursewareType,e.isHoverShowAdd?styles$9.coursewareTypeHover:styles$9.coursewareTypeHocoursewareTypeShow],style:{background:e.background}},[createVNode("div",{class:[styles$9.cover,e.isShowPreviewBtn&&styles$9.hideP,e.isShowAdd&&styles$9.isShowAdd],onClick:()=>t("click")},[e.item.openFlag&&e.isShowOpenFlag&&createVNode("span",{class:styles$9.status},[createTextVNode("公开")]),createVNode(NImage,{objectFit:"cover",previewDisabled:!0,src:e.item.coverImg,class:!e.item.coverImg&&styles$9.noCoverImg},null),createVNode("i",{class:styles$9.defaultLook},null),e.isShowPreviewBtn&&createVNode("div",{class:styles$9.preview},[createVNode(NButton,{strong:!0,secondary:!0,class:styles$9.previewBtn},{default:()=>[createTextVNode("使用课件")]})]),e.item.isNotWork&&createVNode("i",{class:styles$9.iconNoWork},null),e.isShowAdd&&createVNode("div",{class:styles$9.function},[createVNode(NTooltip,{showArrow:!1,duration:30,animated:!1},{trigger:()=>createVNode("i",{class:styles$9.iconLook,onClick:()=>t("look")},null),default:()=>"预览课件"})])]),createVNode("div",{class:styles$9.operationBottom},[createVNode("div",{class:styles$9.coursewareText},[createVNode("div",{class:[styles$9.name]},[createVNode("span",null,[e.item.name])]),createVNode("div",{class:styles$9.subjectName},[e.item.instrumentNames]),e.isShowAdd&&createVNode("div",{class:styles$9.addCourseBtn,onClick:()=>t("add")},[createTextVNode("添加课件")])]),e.operate&&createVNode("div",{class:styles$9.footer},[createVNode("div",{class:styles$9.actionClass,onClick:()=>t("startClass")},[createTextVNode("开始上课")]),createVNode(NSpace,null,{default:()=>[createVNode("div",{class:[styles$9.actionClass,styles$9.actionWork],onClick:()=>t("work")},[createTextVNode("作业")]),createVNode(NPopover,{trigger:"hover",showArrow:!1,to:!1,duration:50},{trigger:()=>createVNode("div",{class:[styles$9.menu]},null),default:()=>createVNode("div",{class:styles$9.popoverList},[createVNode("div",{class:styles$9.popoverItem,onClick:()=>t("edit")},[createVNode("i",{class:styles$9.iconEdit},null),createVNode("span",null,[createTextVNode("编辑课件")])]),createVNode("div",{class:styles$9.popoverItem,onClick:()=>t("delete")},[createVNode("i",{class:styles$9.iconDelete},null),createVNode("span",null,[createTextVNode("删除课件")])])])})]})])])])}}),SelectClass=defineComponent({name:"select-class",props:{courseId:{type:String,default:""},instrumentId:{type:String,default:""},lessonCoursewareSubjectList:{type:Array,default:()=>[]},classId:{type:String,default:""}},emits:["confirm","close"],setup(e,{emit:t}){const r=reactive({loading:!1,instrumentId:e.instrumentId?Number(e.instrumentId):"",tableList:[]}),a=async()=>{r.loading=!0;try{const{data:n}=await teacherChapterLessonCoursewareList({coursewareDetailKnowledgeId:e.courseId,instrumentId:e.classId?r.instrumentId:null});if(!Array.isArray(n))return;const s=[];n.forEach(i=>{var l;const o=(l=i.chapterKnowledgeList[0])==null?void 0:l.chapterKnowledgeMaterialList[0];s.push({id:i.id,openFlag:i.openFlag,openFlagEnable:i.openFlagEnable,subjectNames:i.subjectNames,fromChapterLessonCoursewareId:i.fromChapterLessonCoursewareId,name:i.name,coverImg:o==null?void 0:o.bizInfo.coverImg,type:o==null?void 0:o.bizInfo.type})}),r.tableList=s}catch(n){}r.loading=!1};return onMounted(()=>{if(console.log(e.instrumentId,e.lessonCoursewareSubjectList,"props.lessonCoursewareSubjectList"),e.instrumentId){const n=Number(e.instrumentId);let s=!1;e.lessonCoursewareSubjectList.forEach(i=>{i.id===n&&(s=!0)}),s||(r.instrumentId="")}a()}),()=>createVNode("div",{class:styles$a.selectClass},[e.classId&&createVNode("div",{class:styles$a.searchGroup},[createVNode(NSelect,{options:[{id:"",name:"全部乐器"},...e.lessonCoursewareSubjectList],valueField:"id",labelField:"name",style:{width:"220px"},placeholder:"请选择乐器",value:r.instrumentId,"onUpdate:value":[n=>r.instrumentId=n,()=>{a()}]},null)]),createVNode(NSpin,{show:r.loading},{default:()=>[createVNode(NScrollbar,{class:styles$a.selectClassScroll},{default:()=>[createVNode("div",{class:[styles$a.list,!r.loading&&r.tableList.length<=0&&styles$a.listEmpty]},[r.tableList.map(n=>createVNode("div",{class:[styles$a.itemWrap,styles$a.itemBlock,"row-nav"]},[createVNode("div",{class:styles$a.itemWrapBox},[createVNode(CoursewareType,{isShowPreviewBtn:!0,isShowOpenFlag:!1,item:n,onClick:()=>{t("confirm",{itemActive:e.courseId,chapterId:n.id})}},null)])])),!r.loading&&r.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]})])}}),sourcelistBox="_sourcelistBox_1sa5p_1",treeBox="_treeBox_1sa5p_5",listSectionLeft="_listSectionLeft_1sa5p_10",leftscrollBar="_leftscrollBar_1sa5p_14",className$1="_className_1sa5p_20",classNameIcon="_classNameIcon_1sa5p_27",classNameContent="_classNameContent_1sa5p_35",treeParent="_treeParent_1sa5p_43",parentSelect="_parentSelect_1sa5p_54",listSectionRight="_listSectionRight_1sa5p_60",rightscrollBar="_rightscrollBar_1sa5p_64",cardContainer="_cardContainer_1sa5p_72",styles$8={sourcelistBox,treeBox,listSectionLeft,leftscrollBar,className:className$1,classNameIcon,classNameContent,treeParent,parentSelect,listSectionRight,rightscrollBar,cardContainer},SourceList=defineComponent({name:"source-list",props:{knowledgePointList:{type:Array,default:()=>[]},activeItem:{type:Object,default:()=>({})},courseActiveIndex:{type:Number,default:0},teacherChapterName:{type:String,default:""}},emits:["confirm"],setup(e,{emit:t}){const r=ref(e.courseActiveIndex);watch(()=>e.courseActiveIndex,()=>{r.value=e.courseActiveIndex});const a=computed(()=>{let n=0;return e.knowledgePointList.forEach(s=>{s.list.forEach((i,o)=>{i.id===e.activeItem.id&&(n=o)})}),n});return()=>createVNode("div",{class:styles$8.sourcelistBox},[createVNode("div",{class:styles$8.treeBox},[createVNode("div",{class:[styles$8.listSectionLeft]},[createVNode(NScrollbar,{class:styles$8.leftscrollBar},{default:()=>[e.teacherChapterName&&createVNode("div",{class:styles$8.className},[createVNode("i",{class:styles$8.classNameIcon},null),createVNode("p",{class:styles$8.classNameContent},[e.teacherChapterName])]),e.knowledgePointList.map((n,s)=>createVNode("div",{class:[styles$8.treeParent,r.value===s&&styles$8.parentSelect],key:"parent"+s,onClick:()=>{r.value=s}},[n.title]))]})]),createVNode("div",{class:[styles$8.listSectionRight]},[createVNode(NScrollbar,{class:styles$8.rightscrollBar},{default:()=>{var n;return[((n=e.knowledgePointList[r.value])==null?void 0:n.list)&&e.knowledgePointList[r.value].list.map((s,i)=>createVNode("div",{class:[styles$8.cardContainer,"drawerCardItemRef"]},[createVNode(CardType,{item:s,audioPlayTypeSize:"small",isActive:a.value===i&&r.value===e.courseActiveIndex,isCollect:!1,isShowCollect:!1,onClick:()=>{t("confirm",s)}},null)]))]}})])])])}}),musicScore="_musicScore_17kro_1",styles$7={musicScore},RhythmModal=defineComponent({name:"song-modal",props:{item:{type:Object,default:()=>({})},activeStatus:{type:Boolean,default:!1},imagePos:{type:String,default:"left"}},emits:["setIframe"],setup(e,{emit:t}){const r=useUserStore(),a=ref(),n=ref(!1);let s="".concat(location.origin,"/classroom-app/#/tempo-practice?v=").concat(+new Date,"&platform=modal&dataJson=").concat(e.item.dataJson,"&Authorization=").concat(r.getToken,"&win=pc&imagePos=").concat(e.imagePos);return/(localhost)/.test(location.host)&&(s="http://localhost:9002/#/tempo-practice?v=".concat(+new Date,"&platform=modal&dataJson=").concat(e.item.dataJson,"&Authorization=").concat(r.getToken,"&win=pc&imagePos=").concat(e.imagePos)),watch(()=>e.activeStatus,()=>{var i;e.activeStatus||(i=a.value.contentWindow)==null||i.postMessage({api:"resetPlay"},"*")}),()=>createVNode("div",{class:styles$7.musicScore},[createVNode("iframe",{ref:a,onLoad:i=>{t("setIframe",a.value),n.value=!0,iframeDislableKeyboard(i.target)},class:[styles$7.container,"musicIframe"],frameborder:"0",src:s},null)])}}),btnGroup$1="_btnGroup_2jpng_1",tipsContainer="_tipsContainer_2jpng_61",tipsLeft="_tipsLeft_2jpng_73",tips="_tips_2jpng_61",iconTips="_iconTips_2jpng_82",btnNoTips="_btnNoTips_2jpng_87",btnItem="_btnItem_2jpng_93",btnTitle="_btnTitle_2jpng_97",btnGroupClass="_btnGroupClass_2jpng_106",listContainer$2="_listContainer_2jpng_109",listSection$2="_listSection_2jpng_113",listContainerDrag="_listContainerDrag_2jpng_116",emptySection$2="_emptySection_2jpng_122",list$2="_list_2jpng_109",itemBlock="_itemBlock_2jpng_136",trainEditModal$2="_trainEditModal_2jpng_139",assignHomework="_assignHomework_2jpng_48",assignHomeworkContainer="_assignHomeworkContainer_2jpng_145",maxExpireTime="_maxExpireTime_2jpng_148",expireDateTip="_expireDateTip_2jpng_151",expireDateIcon="_expireDateIcon_2jpng_159",updateBtnGroup="_updateBtnGroup_2jpng_171",active="_active_2jpng_183",studentSection$1="_studentSection_2jpng_187",selectStudentBtn="_selectStudentBtn_2jpng_191",disabled="_disabled_2jpng_200",firstName="_firstName_2jpng_204",studentList="_studentList_2jpng_207",studentItem$1="_studentItem_2jpng_215",removeVisiable="_removeVisiable_2jpng_233",studentRemove="_studentRemove_2jpng_239",btnGroupModal="_btnGroupModal_2jpng_251",removeVisiable1="_removeVisiable1_2jpng_258",styles$6={btnGroup:btnGroup$1,tipsContainer,tipsLeft,tips,iconTips,btnNoTips,btnItem,btnTitle,btnGroupClass,listContainer:listContainer$2,listSection:listSection$2,listContainerDrag,emptySection:emptySection$2,list:list$2,itemBlock,trainEditModal:trainEditModal$2,assignHomework,assignHomeworkContainer,maxExpireTime,expireDateTip,expireDateIcon,updateBtnGroup,switch:"_switch_2jpng_179",active,studentSection:studentSection$1,selectStudentBtn,disabled,firstName,studentList,studentItem:studentItem$1,removeVisiable,studentRemove,btnGroupModal,removeVisiable1};var vuedraggable_umd={exports:{}};const require$$0=getAugmentedNamespace(vue_runtime_esmBundler);/**!
  9. * Sortable 1.14.0
  10. * @author RubaXa <trash@rubaxa.org>
  11. * @author owenm <owen23355@gmail.com>
  12. * @license MIT
  13. */function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(a){_defineProperty(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(t){return typeof t}:_typeof=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={},a=Object.keys(e),n,s;for(s=0;s<a.length;s++)n=a[s],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t),a,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)a=s[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var version="1.14.0";function userAgent(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(e,t,r){e.addEventListener(t,r,!IE11OrLess&&captureMode)}function off(e,t,r){e.removeEventListener(t,r,!IE11OrLess&&captureMode)}function matches(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(r){return!1}return!1}}function getParentOrHost(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function closest(e,t,r,a){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&matches(e,t):matches(e,t))||a&&e===r)return e;if(e===r)break}while(e=getParentOrHost(e))}return null}var R_SPACE=/\s+/g;function toggleClass(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(R_SPACE," ").replace(" "+t+" "," ");e.className=(a+(r?" "+t:"")).replace(R_SPACE," ")}}function css(e,t,r){var a=e&&e.style;if(a){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in a)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),a[t]=r+(typeof r=="string"?"":"px")}}function matrix(e,t){var r="";if(typeof e=="string")r=e;else do{var a=css(e,"transform");a&&a!=="none"&&(r=a+" "+r)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(r)}function find(e,t,r){if(e){var a=e.getElementsByTagName(t),n=0,s=a.length;if(r)for(;n<s;n++)r(a[n],n);return a}return[]}function getWindowScrollingElement(){var e=document.scrollingElement;return e||document.documentElement}function getRect(e,t,r,a,n){if(!(!e.getBoundingClientRect&&e!==window)){var s,i,o,l,c,p,A;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()?(s=e.getBoundingClientRect(),i=s.top,o=s.left,l=s.bottom,c=s.right,p=s.height,A=s.width):(i=0,o=0,l=window.innerHeight,c=window.innerWidth,p=window.innerHeight,A=window.innerWidth),(t||r)&&e!==window&&(n=n||e.parentNode,!IE11OrLess))do if(n&&n.getBoundingClientRect&&(css(n,"transform")!=="none"||r&&css(n,"position")!=="static")){var d=n.getBoundingClientRect();i-=d.top+parseInt(css(n,"border-top-width")),o-=d.left+parseInt(css(n,"border-left-width")),l=i+s.height,c=o+s.width;break}while(n=n.parentNode);if(a&&e!==window){var f=matrix(n||e),m=f&&f.a,g=f&&f.d;f&&(i/=g,o/=m,A/=m,p/=g,l=i+p,c=o+A)}return{top:i,left:o,bottom:l,right:c,width:A,height:p}}}function isScrolledPast(e,t,r){for(var a=getParentAutoScrollElement(e,!0),n=getRect(e)[t];a;){var s=getRect(a)[r],i=void 0;if(r==="top"||r==="left"?i=n>=s:i=n<=s,!i)return a;if(a===getWindowScrollingElement())break;a=getParentAutoScrollElement(a,!1)}return!1}function getChild(e,t,r,a){for(var n=0,s=0,i=e.children;s<i.length;){if(i[s].style.display!=="none"&&i[s]!==Sortable.ghost&&(a||i[s]!==Sortable.dragged)&&closest(i[s],r.draggable,e,!1)){if(n===t)return i[s];n++}s++}return null}function lastChild(e,t){for(var r=e.lastElementChild;r&&(r===Sortable.ghost||css(r,"display")==="none"||t&&!matches(r,t));)r=r.previousElementSibling;return r||null}function index$1(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Sortable.clone&&(!t||matches(e,t))&&r++;return r}function getRelativeScrollOffset(e){var t=0,r=0,a=getWindowScrollingElement();if(e)do{var n=matrix(e),s=n.a,i=n.d;t+=e.scrollLeft*s,r+=e.scrollTop*i}while(e!==a&&(e=e.parentNode));return[t,r]}function indexOfObject(e,t){for(var r in e)if(e.hasOwnProperty(r)){for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[r][a])return Number(r)}return-1}function getParentAutoScrollElement(e,t){if(!e||!e.getBoundingClientRect)return getWindowScrollingElement();var r=e,a=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var n=css(r);if(r.clientWidth<r.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return getWindowScrollingElement();if(a||t)return r;a=!0}}while(r=r.parentNode);return getWindowScrollingElement()}function extend(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function isRectEqual(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _throttleTimeout;function throttle(e,t){return function(){if(!_throttleTimeout){var r=arguments,a=this;r.length===1?e.call(a,r[0]):e.apply(a,r),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},t)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function clone(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}function setRect(e,t){css(e,"position","absolute"),css(e,"top",t.top),css(e,"left",t.left),css(e,"width",t.width),css(e,"height",t.height)}function unsetRect(e){css(e,"position",""),css(e,"top",""),css(e,"left",""),css(e,"width",""),css(e,"height","")}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(n){if(!(css(n,"display")==="none"||n===Sortable.ghost)){e.push({target:n,rect:getRect(n)});var s=_objectSpread2({},e[e.length-1].rect);if(n.thisAnimationDuration){var i=matrix(n,!0);i&&(s.top-=i.f,s.left-=i.e)}n.fromRect=s}})}},addAnimationState:function(a){e.push(a)},removeAnimationState:function(a){e.splice(indexOfObject(e,{target:a}),1)},animateAll:function(a){var n=this;if(!this.options.animation){clearTimeout(t),typeof a=="function"&&a();return}var s=!1,i=0;e.forEach(function(o){var l=0,c=o.target,p=c.fromRect,A=getRect(c),d=c.prevFromRect,f=c.prevToRect,m=o.rect,g=matrix(c,!0);g&&(A.top-=g.f,A.left-=g.e),c.toRect=A,c.thisAnimationDuration&&isRectEqual(d,A)&&!isRectEqual(p,A)&&(m.top-A.top)/(m.left-A.left)===(p.top-A.top)/(p.left-A.left)&&(l=calculateRealTime(m,d,f,n.options)),isRectEqual(A,p)||(c.prevFromRect=p,c.prevToRect=A,l||(l=n.options.animation),n.animate(c,m,A,l)),l&&(s=!0,i=Math.max(i,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),s?t=setTimeout(function(){typeof a=="function"&&a()},i):typeof a=="function"&&a(),e=[]},animate:function(a,n,s,i){if(i){css(a,"transition",""),css(a,"transform","");var o=matrix(this.el),l=o&&o.a,c=o&&o.d,p=(n.left-s.left)/(l||1),A=(n.top-s.top)/(c||1);a.animatingX=!!p,a.animatingY=!!A,css(a,"transform","translate3d("+p+"px,"+A+"px,0)"),this.forRepaintDummy=repaint(a),css(a,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),css(a,"transform","translate3d(0,0,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){css(a,"transition",""),css(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},i)}}}}function repaint(e){return e.offsetWidth}function calculateRealTime(e,t,r,a){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*a.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function e(t){for(var r in defaults)defaults.hasOwnProperty(r)&&!(r in t)&&(t[r]=defaults[r]);plugins.forEach(function(a){if(a.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),plugins.push(t)},pluginEvent:function e(t,r,a){var n=this;this.eventCanceled=!1,a.cancel=function(){n.eventCanceled=!0};var s=t+"Global";plugins.forEach(function(i){r[i.pluginName]&&(r[i.pluginName][s]&&r[i.pluginName][s](_objectSpread2({sortable:r},a)),r.options[i.pluginName]&&r[i.pluginName][t]&&r[i.pluginName][t](_objectSpread2({sortable:r},a)))})},initializePlugins:function e(t,r,a,n){plugins.forEach(function(o){var l=o.pluginName;if(!(!t.options[l]&&!o.initializeByDefault)){var c=new o(t,r,t.options);c.sortable=t,c.options=t.options,t[l]=c,_extends(a,c.defaults)}});for(var s in t.options)if(t.options.hasOwnProperty(s)){var i=this.modifyOption(t,s,t.options[s]);typeof i<"u"&&(t.options[s]=i)}},getEventProperties:function e(t,r){var a={};return plugins.forEach(function(n){typeof n.eventProperties=="function"&&_extends(a,n.eventProperties.call(r[n.pluginName],t))}),a},modifyOption:function e(t,r,a){var n;return plugins.forEach(function(s){t[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[r]=="function"&&(n=s.optionListeners[r].call(t[s.pluginName],a))}),n}};function dispatchEvent(e){var t=e.sortable,r=e.rootEl,a=e.name,n=e.targetEl,s=e.cloneEl,i=e.toEl,o=e.fromEl,l=e.oldIndex,c=e.newIndex,p=e.oldDraggableIndex,A=e.newDraggableIndex,d=e.originalEvent,f=e.putSortable,m=e.extraEventProperties;if(t=t||r&&r[expando],!!t){var g,E=t.options,u="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?g=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(a,!0,!0)),g.to=i||r,g.from=o||r,g.item=n||r,g.clone=s,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=p,g.newDraggableIndex=A,g.originalEvent=d,g.pullMode=f?f.lastPutMode:void 0;var y=_objectSpread2(_objectSpread2({},m),PluginManager.getEventProperties(a,t));for(var S in y)g[S]=y[S];r&&r.dispatchEvent(g),E[u]&&E[u].call(t,g)}}var _excluded=["evt"],pluginEvent=function e(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=a.evt,s=_objectWithoutProperties(a,_excluded);PluginManager.pluginEvent.bind(Sortable)(t,r,_objectSpread2({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:n,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(o){_dispatchEvent({sortable:r,name:o,originalEvent:n})}},s))};function _dispatchEvent(e){dispatchEvent(_objectSpread2({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},e))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),_detectDirection=function e(t,r){var a=css(t),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),s=getChild(t,0,r),i=getChild(t,1,r),o=s&&css(s),l=i&&css(i),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+getRect(s).width,p=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+getRect(i).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&o.float&&o.float!=="none"){var A=o.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===A)?"vertical":"horizontal"}return s&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||c>=n&&a[CSSFloatProperty]==="none"||i&&a[CSSFloatProperty]==="none"&&c+p>n)?"vertical":"horizontal"},_dragElInRowColumn=function e(t,r,a){var n=a?t.left:t.top,s=a?t.right:t.bottom,i=a?t.width:t.height,o=a?r.left:r.top,l=a?r.right:r.bottom,c=a?r.width:r.height;return n===o||s===l||n+i/2===o+c/2},_detectNearestEmptySortable=function e(t,r){var a;return sortables.some(function(n){var s=n[expando].options.emptyInsertThreshold;if(!(!s||lastChild(n))){var i=getRect(n),o=t>=i.left-s&&t<=i.right+s,l=r>=i.top-s&&r<=i.bottom+s;if(o&&l)return a=n}}),a},_prepareGroup=function e(t){function r(s,i){return function(o,l,c,p){var A=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(s==null&&(i||A))return!0;if(s==null||s===!1)return!1;if(i&&s==="clone")return s;if(typeof s=="function")return r(s(o,l,c,p),i)(o,l,c,p);var d=(i?o:l).options.group.name;return s===!0||typeof s=="string"&&s===d||s.join&&s.indexOf(d)>-1}}var a={},n=t.group;(!n||_typeof(n)!="object")&&(n={name:n}),a.name=n.name,a.checkPull=r(n.pull,!0),a.checkPut=r(n.put),a.revertClone=n.revertClone,t.group=a},_hideGhostForTarget=function e(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function e(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",function(e){if(ignoreNextClick)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function e(t){if(dragEl){t=t.touches?t.touches[0]:t;var r=_detectNearestEmptySortable(t.clientX,t.clientY);if(r){var a={};for(var n in t)t.hasOwnProperty(n)&&(a[n]=t[n]);a.target=a.rootEl=r,a.preventDefault=void 0,a.stopPropagation=void 0,r[expando]._onDragOver(a)}}},_checkOutsideTargetEl=function e(t){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(t.target)};function Sortable(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=_extends({},t),e[expando]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,o){i.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==!1&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,e,r);for(var a in r)!(a in t)&&(t[a]=r[a]);_prepareGroup(t);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=t.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?on(e,"pointerdown",this._onTapStart):(on(e,"mousedown",this._onTapStart),on(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(e,"dragover",this),on(e,"dragenter",this)),sortables.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function e(t){!this.el.contains(t)&&t!==this.el&&(lastTarget=null)},_getDirection:function e(t,r){return typeof this.options.direction=="function"?this.options.direction.call(this,t,r,dragEl):this.options.direction},_onTapStart:function e(t){if(t.cancelable){var r=this,a=this.el,n=this.options,s=n.preventOnFilter,i=t.type,o=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(o||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,p=n.filter;if(_saveInputCheckedState(a),!dragEl&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Safari&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=closest(l,n.draggable,a,!1),!(l&&l.animated)&&lastDownEl!==l)){if(oldIndex=index$1(l),oldDraggableIndex=index$1(l,n.draggable),typeof p=="function"){if(p.call(this,t,l,this)){_dispatchEvent({sortable:r,rootEl:c,name:"filter",targetEl:l,toEl:a,fromEl:a}),pluginEvent("filter",r,{evt:t}),s&&t.cancelable&&t.preventDefault();return}}else if(p&&(p=p.split(",").some(function(A){if(A=closest(c,A.trim(),a,!1),A)return _dispatchEvent({sortable:r,rootEl:A,name:"filter",targetEl:l,fromEl:a,toEl:a}),pluginEvent("filter",r,{evt:t}),!0}),p)){s&&t.cancelable&&t.preventDefault();return}n.handle&&!closest(c,n.handle,a,!1)||this._prepareDragStart(t,o,l)}}},_prepareDragStart:function e(t,r,a){var n=this,s=n.el,i=n.options,o=s.ownerDocument,l;if(a&&!dragEl&&a.parentNode===s){var c=getRect(a);if(rootEl=s,dragEl=a,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=a,activeGroup=i.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(r||t).clientX,clientY:(r||t).clientY},tapDistanceLeft=tapEvt.clientX-c.left,tapDistanceTop=tapEvt.clientY-c.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,dragEl.style["will-change"]="all",l=function(){if(pluginEvent("delayEnded",n,{evt:t}),Sortable.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!FireFox&&n.nativeDraggable&&(dragEl.draggable=!0),n._triggerDragStart(t,r),_dispatchEvent({sortable:n,name:"choose",originalEvent:t}),toggleClass(dragEl,i.chosenClass,!0)},i.ignore.split(",").forEach(function(p){find(dragEl,p.trim(),_disableDraggable)}),on(o,"dragover",nearestEmptyInsertDetectEvent),on(o,"mousemove",nearestEmptyInsertDetectEvent),on(o,"touchmove",nearestEmptyInsertDetectEvent),on(o,"mouseup",n._onDrop),on(o,"touchend",n._onDrop),on(o,"touchcancel",n._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(o,"mouseup",n._disableDelayedDrag),on(o,"touchend",n._disableDelayedDrag),on(o,"touchcancel",n._disableDelayedDrag),on(o,"mousemove",n._delayedDragTouchMoveHandler),on(o,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&on(o,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,i.delay)}else l()}},_delayedDragTouchMoveHandler:function e(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function e(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag),off(t,"touchend",this._disableDelayedDrag),off(t,"touchcancel",this._disableDelayedDrag),off(t,"mousemove",this._delayedDragTouchMoveHandler),off(t,"touchmove",this._delayedDragTouchMoveHandler),off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,r){r=r||t.pointerType=="touch"&&t,!this.nativeDraggable||r?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):r?on(document,"touchmove",this._onTouchMove):on(document,"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(a){}},_dragStarted:function e(t,r){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:r}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var a=this.options;!t&&toggleClass(dragEl,a.dragClass,!1),toggleClass(dragEl,a.ghostClass,!0),Sortable.active=this,t&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function e(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),t!==r);)r=t;if(dragEl.parentNode[expando]._isOutsideThisEl(t),r)do{if(r[expando]){var a=void 0;if(a=r[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:r}),a&&!this.options.dragoverBubble)break}t=r}while(r=r.parentNode);_unhideGhostForTarget()}},_onTouchMove:function e(t){if(tapEvt){var r=this.options,a=r.fallbackTolerance,n=r.fallbackOffset,s=t.touches?t.touches[0]:t,i=ghostEl&&matrix(ghostEl,!0),o=ghostEl&&i&&i.a,l=ghostEl&&i&&i.d,c=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),p=(s.clientX-tapEvt.clientX+n.x)/(o||1)+(c?c[0]-ghostRelativeParentInitialScroll[0]:0)/(o||1),A=(s.clientY-tapEvt.clientY+n.y)/(l||1)+(c?c[1]-ghostRelativeParentInitialScroll[1]:0)/(l||1);if(!Sortable.active&&!awaitingDragStarted){if(a&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<a)return;this._onDragStart(t,!0)}if(ghostEl){i?(i.e+=p-(lastDx||0),i.f+=A-(lastDy||0)):i={a:1,b:0,c:0,d:1,e:p,f:A};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");css(ghostEl,"webkitTransform",d),css(ghostEl,"mozTransform",d),css(ghostEl,"msTransform",d),css(ghostEl,"transform",d),lastDx=p,lastDy=A,touchEvt=s}t.cancelable&&t.preventDefault()}},_appendGhost:function e(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,r=getRect(dragEl,!0,PositionGhostAbsolutely,!0,t),a=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=t;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),r.top+=ghostRelativeParent.scrollTop,r.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,a.ghostClass,!1),toggleClass(ghostEl,a.fallbackClass,!0),toggleClass(ghostEl,a.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",r.top),css(ghostEl,"left",r.left),css(ghostEl,"width",r.width),css(ghostEl,"height",r.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,t.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function e(t,r){var a=this,n=t.dataTransfer,s=a.options;if(pluginEvent("dragStart",this,{evt:t}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),a.cloneId=_nextTick(function(){pluginEvent("clone",a),!Sortable.eventCanceled&&(a.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),a._hideClone(),_dispatchEvent({sortable:a,name:"clone"}))}),!r&&toggleClass(dragEl,s.dragClass,!0),r?(ignoreNextClick=!0,a._loopId=setInterval(a._emulateDragOver,50)):(off(document,"mouseup",a._onDrop),off(document,"touchend",a._onDrop),off(document,"touchcancel",a._onDrop),n&&(n.effectAllowed="move",s.setData&&s.setData.call(a,n,dragEl)),on(document,"drop",a),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,a._dragStartId=_nextTick(a._dragStarted.bind(a,r,t)),on(document,"selectstart",a),moved=!0,Safari&&css(document.body,"user-select","none")},_onDragOver:function e(t){var r=this.el,a=t.target,n,s,i,o=this.options,l=o.group,c=Sortable.active,p=activeGroup===l,A=o.sort,d=putSortable||c,f,m=this,g=!1;if(_silent)return;function E(P,T){pluginEvent(P,m,_objectSpread2({evt:t,isOwner:p,axis:f?"vertical":"horizontal",revert:i,dragRect:n,targetRect:s,canSort:A,fromSortable:d,target:a,completed:y,onMove:function(k,Y){return _onMove(rootEl,r,dragEl,n,k,getRect(k),t,Y)},changed:S},T))}function u(){E("dragOverAnimationCapture"),m.captureAnimationState(),m!==d&&d.captureAnimationState()}function y(P){return E("dragOverCompleted",{insertion:P}),P&&(p?c._hideClone():c._showClone(m),m!==d&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,!1),toggleClass(dragEl,o.ghostClass,!0)),putSortable!==m&&m!==Sortable.active?putSortable=m:m===Sortable.active&&putSortable&&(putSortable=null),d===m&&(m._ignoreWhileAnimating=a),m.animateAll(function(){E("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===dragEl&&!dragEl.animated||a===r&&!a.animated)&&(lastTarget=null),!o.dragoverBubble&&!t.rootEl&&a!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(t.target),!P&&nearestEmptyInsertDetectEvent(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function S(){newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,o.draggable),_dispatchEvent({sortable:m,name:"change",toEl:r,newIndex,newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),a=closest(a,o.draggable,r,!0),E("dragOver"),Sortable.eventCanceled)return g;if(dragEl.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||m._ignoreWhileAnimating===a)return y(!1);if(ignoreNextClick=!1,c&&!o.disabled&&(p?A||(i=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&l.checkPut(this,c,dragEl,t))){if(f=this._getDirection(t,a)==="vertical",n=getRect(dragEl),E("dragOverValid"),Sortable.eventCanceled)return g;if(i)return parentEl=rootEl,u(),this._hideClone(),E("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),y(!0);var b=lastChild(r,o.draggable);if(!b||_ghostIsLast(t,f,this)&&!b.animated){if(b===dragEl)return y(!1);if(b&&r===t.target&&(a=b),a&&(s=getRect(a)),_onMove(rootEl,r,dragEl,n,a,s,t,!!a)!==!1)return u(),r.appendChild(dragEl),parentEl=r,S(),y(!0)}else if(b&&_ghostIsFirst(t,f,this)){var x=getChild(r,0,o,!0);if(x===dragEl)return y(!1);if(a=x,s=getRect(a),_onMove(rootEl,r,dragEl,n,a,s,t,!1)!==!1)return u(),r.insertBefore(dragEl,x),parentEl=r,S(),y(!0)}else if(a.parentNode===r){s=getRect(a);var C=0,D,I=dragEl.parentNode!==r,N=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||n,a.animated&&a.toRect||s,f),B=f?"top":"left",O=isScrolledPast(a,"top","top")||isScrolledPast(dragEl,"top","top"),R=O?O.scrollTop:void 0;lastTarget!==a&&(D=s[B],pastFirstInvertThresh=!1,isCircumstantialInvert=!N&&o.invertSwap||I),C=_getSwapDirection(t,a,s,f,N?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,isCircumstantialInvert,lastTarget===a);var _;if(C!==0){var G=index$1(dragEl);do G-=C,_=parentEl.children[G];while(_&&(css(_,"display")==="none"||_===ghostEl))}if(C===0||_===a)return y(!1);lastTarget=a,lastDirection=C;var j=a.nextElementSibling,M=!1;M=C===1;var F=_onMove(rootEl,r,dragEl,n,a,s,t,M);if(F!==!1)return(F===1||F===-1)&&(M=F===1),_silent=!0,setTimeout(_unsilent,30),u(),M&&!j?r.appendChild(dragEl):a.parentNode.insertBefore(dragEl,M?j:a),O&&scrollBy(O,0,R-O.scrollTop),parentEl=dragEl.parentNode,D!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(D-getRect(a)[B])),S(),y(!0)}if(r.contains(dragEl))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function e(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop),off(t,"touchend",this._onDrop),off(t,"pointerup",this._onDrop),off(t,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function e(t){var r=this.el,a=this.options;if(newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,a.draggable),pluginEvent("drop",this,{evt:t}),parentEl=dragEl&&dragEl.parentNode,newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,a.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),t&&(moved&&(t.cancelable&&t.preventDefault(),!a.dropBubble&&t.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t}),this.save()))),this._nulling()},_nulling:function e(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(t){t.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(t),_globalDragOver(t));break;case"selectstart":t.preventDefault();break}},toArray:function e(){for(var t=[],r,a=this.el.children,n=0,s=a.length,i=this.options;n<s;n++)r=a[n],closest(r,i.draggable,this.el,!1)&&t.push(r.getAttribute(i.dataIdAttr)||_generateId(r));return t},sort:function e(t,r){var a={},n=this.el;this.toArray().forEach(function(s,i){var o=n.children[i];closest(o,this.options.draggable,n,!1)&&(a[s]=o)},this),r&&this.captureAnimationState(),t.forEach(function(s){a[s]&&(n.removeChild(a[s]),n.appendChild(a[s]))}),r&&this.animateAll()},save:function e(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function e(t,r){return closest(t,r||this.options.draggable,this.el,!1)},option:function e(t,r){var a=this.options;if(r===void 0)return a[t];var n=PluginManager.modifyOption(this,t,r);typeof n<"u"?a[t]=n:a[t]=r,t==="group"&&_prepareGroup(a)},destroy:function e(){pluginEvent("destroy",this);var t=this.el;t[expando]=null,off(t,"mousedown",this._onTapStart),off(t,"touchstart",this._onTapStart),off(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(t,"dragover",this),off(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=t=null},_hideClone:function e(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function e(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode==rootEl&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function _onMove(e,t,r,a,n,s,i,o){var l,c=e[expando],p=c.options.onMove,A;return window.CustomEvent&&!IE11OrLess&&!Edge?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=r,l.draggedRect=a,l.related=n||t,l.relatedRect=s||getRect(t),l.willInsertAfter=o,l.originalEvent=i,e.dispatchEvent(l),p&&(A=p.call(c,l,i)),A}function _disableDraggable(e){e.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(e,t,r){var a=getRect(getChild(r.el,0,r.options,!0)),n=10;return t?e.clientX<a.left-n||e.clientY<a.top&&e.clientX<a.right:e.clientY<a.top-n||e.clientY<a.bottom&&e.clientX<a.left}function _ghostIsLast(e,t,r){var a=getRect(lastChild(r.el,r.options.draggable)),n=10;return t?e.clientX>a.right+n||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+n}function _getSwapDirection(e,t,r,a,n,s,i,o){var l=a?e.clientY:e.clientX,c=a?r.height:r.width,p=a?r.top:r.left,A=a?r.bottom:r.right,d=!1;if(!i){if(o&&targetMoveDistance<c*n){if(!pastFirstInvertThresh&&(lastDirection===1?l>p+c*s/2:l<A-c*s/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)d=!0;else if(lastDirection===1?l<p+targetMoveDistance:l>A-targetMoveDistance)return-lastDirection}else if(l>p+c*(1-n)/2&&l<A-c*(1-n)/2)return _getInsertDirection(t)}return d=d||i,d&&(l<p+c*s/2||l>A-c*s/2)?l>p+c/2?1:-1:0}function _getInsertDirection(e){return index$1(dragEl)<index$1(e)?1:-1}function _generateId(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,a=0;r--;)a+=t.charCodeAt(r);return a.toString(36)}function _saveInputCheckedState(e){savedInputChecked.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var a=t[r];a.checked&&savedInputChecked.push(a)}}function _nextTick(e){return setTimeout(e,0)}function _cancelNextTick(e){return clearTimeout(e)}documentExists&&on(document,"touchmove",function(e){(Sortable.active||awaitingDragStarted)&&e.cancelable&&e.preventDefault()});Sortable.utils={on,off,css,find,is:function e(t,r){return!!closest(t,r,t,!1)},extend,throttle,closest,toggleClass,clone,index:index$1,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild};Sortable.get=function(e){return e[expando]};Sortable.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),a.utils)),PluginManager.mount(a)})};Sortable.create=function(e,t){return new Sortable(e,t)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(r){var a=r.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):a.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var a=r.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,a){var n=this,s=(r.touches?r.touches[0]:r).clientX,i=(r.touches?r.touches[0]:r).clientY,o=document.elementFromPoint(s,i);if(touchEvt$1=r,a||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(r,this.options,o,a);var l=getParentAutoScrollElement(o,!0);scrolling&&(!pointerElemChangedInterval||s!==lastAutoScrollX||i!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var c=getParentAutoScrollElement(document.elementFromPoint(s,i),!0);c!==l&&(l=c,clearAutoScrolls()),autoScroll(r,n.options,c,a)},10),lastAutoScrollX=s,lastAutoScrollY=i)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(o,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(r,this.options,getParentAutoScrollElement(o,!1),!1)}}},_extends(e,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(e){clearInterval(e.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle(function(e,t,r,a){if(t.scroll){var n=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,o=t.scrollSpeed,l=getWindowScrollingElement(),c=!1,p;scrollRootEl!==r&&(scrollRootEl=r,clearAutoScrolls(),scrollEl=t.scroll,p=t.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(r,!0)));var A=0,d=scrollEl;do{var f=d,m=getRect(f),g=m.top,E=m.bottom,u=m.left,y=m.right,S=m.width,b=m.height,x=void 0,C=void 0,D=f.scrollWidth,I=f.scrollHeight,N=css(f),B=f.scrollLeft,O=f.scrollTop;f===l?(x=S<D&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),C=b<I&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(x=S<D&&(N.overflowX==="auto"||N.overflowX==="scroll"),C=b<I&&(N.overflowY==="auto"||N.overflowY==="scroll"));var R=x&&(Math.abs(y-n)<=i&&B+S<D)-(Math.abs(u-n)<=i&&!!B),_=C&&(Math.abs(E-s)<=i&&O+b<I)-(Math.abs(g-s)<=i&&!!O);if(!autoScrolls[A])for(var G=0;G<=A;G++)autoScrolls[G]||(autoScrolls[G]={});(autoScrolls[A].vx!=R||autoScrolls[A].vy!=_||autoScrolls[A].el!==f)&&(autoScrolls[A].el=f,autoScrolls[A].vx=R,autoScrolls[A].vy=_,clearInterval(autoScrolls[A].pid),(R!=0||_!=0)&&(c=!0,autoScrolls[A].pid=setInterval((function(){a&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var j=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*o:0,M=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*o:0;typeof p=="function"&&p.call(Sortable.dragged.parentNode[expando],M,j,e,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,M,j)}).bind({layer:A}),24))),A++}while(t.bubbleScroll&&d!==l&&(d=getParentAutoScrollElement(d,!1)));scrolling=c}},30),drop=function e(t){var r=t.originalEvent,a=t.putSortable,n=t.dragEl,s=t.activeSortable,i=t.dispatchSortableEvent,o=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(r){var c=a||s;o();var p=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,A=document.elementFromPoint(p.clientX,p.clientY);l(),c&&!c.el.contains(A)&&(i("spill"),this.onSpill({dragEl:n,putSortable:a}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function e(t){var r=t.oldDraggableIndex;this.startIndex=r},onSpill:function e(t){var r=t.dragEl,a=t.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var n=getChild(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(r,n):this.sortable.el.appendChild(r),this.sortable.animateAll(),a&&a.animateAll()},drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function e(t){var r=t.dragEl,a=t.putSortable,n=a||this.sortable;n.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),n.animateAll()},drop};_extends(Remove,{pluginName:"removeOnSpill"});var lastSwapEl;function SwapPlugin(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(r){var a=r.dragEl;lastSwapEl=a},dragOverValid:function(r){var a=r.completed,n=r.target,s=r.onMove,i=r.activeSortable,o=r.changed,l=r.cancel;if(i.options.swap){var c=this.sortable.el,p=this.options;if(n&&n!==c){var A=lastSwapEl;s(n)!==!1?(toggleClass(n,p.swapClass,!0),lastSwapEl=n):lastSwapEl=null,A&&A!==lastSwapEl&&toggleClass(A,p.swapClass,!1)}o(),a(!0),l()}},drop:function(r){var a=r.activeSortable,n=r.putSortable,s=r.dragEl,i=n||this.sortable,o=this.options;lastSwapEl&&toggleClass(lastSwapEl,o.swapClass,!1),lastSwapEl&&(o.swap||n&&n.options.swap)&&s!==lastSwapEl&&(i.captureAnimationState(),i!==a&&a.captureAnimationState(),swapNodes(s,lastSwapEl),i.animateAll(),i!==a&&a.animateAll())},nulling:function(){lastSwapEl=null}},_extends(e,{pluginName:"swap",eventProperties:function(){return{swapItem:lastSwapEl}}})}function swapNodes(e,t){var r=e.parentNode,a=t.parentNode,n,s;!r||!a||r.isEqualNode(t)||a.isEqualNode(e)||(n=index$1(e),s=index$1(t),r.isEqualNode(a)&&n<s&&s++,r.insertBefore(t,r.children[n]),a.insertBefore(e,a.children[s]))}var multiDragElements=[],multiDragClones=[],lastMultiDragSelect,multiDragSortable,initialFolding=!1,folding=!1,dragStarted=!1,dragEl$1,clonesFromRect,clonesHidden;function MultiDragPlugin(){function e(t){for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));t.options.supportPointer?on(document,"pointerup",this._deselectMultiDrag):(on(document,"mouseup",this._deselectMultiDrag),on(document,"touchend",this._deselectMultiDrag)),on(document,"keydown",this._checkKeyDown),on(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(n,s){var i="";multiDragElements.length&&multiDragSortable===t?multiDragElements.forEach(function(o,l){i+=(l?", ":"")+o.textContent}):i=s.textContent,n.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(r){var a=r.dragEl;dragEl$1=a},delayEnded:function(){this.isMultiDrag=~multiDragElements.indexOf(dragEl$1)},setupClone:function(r){var a=r.sortable,n=r.cancel;if(this.isMultiDrag){for(var s=0;s<multiDragElements.length;s++)multiDragClones.push(clone(multiDragElements[s])),multiDragClones[s].sortableIndex=multiDragElements[s].sortableIndex,multiDragClones[s].draggable=!1,multiDragClones[s].style["will-change"]="",toggleClass(multiDragClones[s],this.options.selectedClass,!1),multiDragElements[s]===dragEl$1&&toggleClass(multiDragClones[s],this.options.chosenClass,!1);a._hideClone(),n()}},clone:function(r){var a=r.sortable,n=r.rootEl,s=r.dispatchSortableEvent,i=r.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||multiDragElements.length&&multiDragSortable===a&&(insertMultiDragClones(!0,n),s("clone"),i()))},showClone:function(r){var a=r.cloneNowShown,n=r.rootEl,s=r.cancel;this.isMultiDrag&&(insertMultiDragClones(!1,n),multiDragClones.forEach(function(i){css(i,"display","")}),a(),clonesHidden=!1,s())},hideClone:function(r){var a=this;r.sortable;var n=r.cloneNowHidden,s=r.cancel;this.isMultiDrag&&(multiDragClones.forEach(function(i){css(i,"display","none"),a.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),n(),clonesHidden=!0,s())},dragStartGlobal:function(r){r.sortable,!this.isMultiDrag&&multiDragSortable&&multiDragSortable.multiDrag._deselectMultiDrag(),multiDragElements.forEach(function(a){a.sortableIndex=index$1(a)}),multiDragElements=multiDragElements.sort(function(a,n){return a.sortableIndex-n.sortableIndex}),dragStarted=!0},dragStarted:function(r){var a=this,n=r.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){multiDragElements.forEach(function(i){i!==dragEl$1&&css(i,"position","absolute")});var s=getRect(dragEl$1,!1,!0,!0);multiDragElements.forEach(function(i){i!==dragEl$1&&setRect(i,s)}),folding=!0,initialFolding=!0}n.animateAll(function(){folding=!1,initialFolding=!1,a.options.animation&&multiDragElements.forEach(function(i){unsetRect(i)}),a.options.sort&&removeMultiDragElements()})}},dragOver:function(r){var a=r.target,n=r.completed,s=r.cancel;folding&&~multiDragElements.indexOf(a)&&(n(!1),s())},revert:function(r){var a=r.fromSortable,n=r.rootEl,s=r.sortable,i=r.dragRect;multiDragElements.length>1&&(multiDragElements.forEach(function(o){s.addAnimationState({target:o,rect:folding?getRect(o):i}),unsetRect(o),o.fromRect=i,a.removeAnimationState(o)}),folding=!1,insertMultiDragElements(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(r){var a=r.sortable,n=r.isOwner,s=r.insertion,i=r.activeSortable,o=r.parentEl,l=r.putSortable,c=this.options;if(s){if(n&&i._hideClone(),initialFolding=!1,c.animation&&multiDragElements.length>1&&(folding||!n&&!i.options.sort&&!l)){var p=getRect(dragEl$1,!1,!0,!0);multiDragElements.forEach(function(d){d!==dragEl$1&&(setRect(d,p),o.appendChild(d))}),folding=!0}if(!n)if(folding||removeMultiDragElements(),multiDragElements.length>1){var A=clonesHidden;i._showClone(a),i.options.animation&&!clonesHidden&&A&&multiDragClones.forEach(function(d){i.addAnimationState({target:d,rect:clonesFromRect}),d.fromRect=clonesFromRect,d.thisAnimationDuration=null})}else i._showClone(a)}},dragOverAnimationCapture:function(r){var a=r.dragRect,n=r.isOwner,s=r.activeSortable;if(multiDragElements.forEach(function(o){o.thisAnimationDuration=null}),s.options.animation&&!n&&s.multiDrag.isMultiDrag){clonesFromRect=_extends({},a);var i=matrix(dragEl$1,!0);clonesFromRect.top-=i.f,clonesFromRect.left-=i.e}},dragOverAnimationComplete:function(){folding&&(folding=!1,removeMultiDragElements())},drop:function(r){var a=r.originalEvent,n=r.rootEl,s=r.parentEl,i=r.sortable,o=r.dispatchSortableEvent,l=r.oldIndex,c=r.putSortable,p=c||this.sortable;if(a){var A=this.options,d=s.children;if(!dragStarted)if(A.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),toggleClass(dragEl$1,A.selectedClass,!~multiDragElements.indexOf(dragEl$1)),~multiDragElements.indexOf(dragEl$1))multiDragElements.splice(multiDragElements.indexOf(dragEl$1),1),lastMultiDragSelect=null,dispatchEvent({sortable:i,rootEl:n,name:"deselect",targetEl:dragEl$1,originalEvt:a});else{if(multiDragElements.push(dragEl$1),dispatchEvent({sortable:i,rootEl:n,name:"select",targetEl:dragEl$1,originalEvt:a}),a.shiftKey&&lastMultiDragSelect&&i.el.contains(lastMultiDragSelect)){var f=index$1(lastMultiDragSelect),m=index$1(dragEl$1);if(~f&&~m&&f!==m){var g,E;for(m>f?(E=f,g=m):(E=m,g=f+1);E<g;E++)~multiDragElements.indexOf(d[E])||(toggleClass(d[E],A.selectedClass,!0),multiDragElements.push(d[E]),dispatchEvent({sortable:i,rootEl:n,name:"select",targetEl:d[E],originalEvt:a}))}}else lastMultiDragSelect=dragEl$1;multiDragSortable=p}if(dragStarted&&this.isMultiDrag){if(folding=!1,(s[expando].options.sort||s!==n)&&multiDragElements.length>1){var u=getRect(dragEl$1),y=index$1(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&A.animation&&(dragEl$1.thisAnimationDuration=null),p.captureAnimationState(),!initialFolding&&(A.animation&&(dragEl$1.fromRect=u,multiDragElements.forEach(function(b){if(b.thisAnimationDuration=null,b!==dragEl$1){var x=folding?getRect(b):u;b.fromRect=x,p.addAnimationState({target:b,rect:x})}})),removeMultiDragElements(),multiDragElements.forEach(function(b){d[y]?s.insertBefore(b,d[y]):s.appendChild(b),y++}),l===index$1(dragEl$1))){var S=!1;multiDragElements.forEach(function(b){if(b.sortableIndex!==index$1(b)){S=!0;return}}),S&&o("update")}multiDragElements.forEach(function(b){unsetRect(b)}),p.animateAll()}multiDragSortable=p}(n===s||c&&c.lastPutMode!=="clone")&&multiDragClones.forEach(function(b){b.parentNode&&b.parentNode.removeChild(b)})}},nullingGlobal:function(){this.isMultiDrag=dragStarted=!1,multiDragClones.length=0},destroyGlobal:function(){this._deselectMultiDrag(),off(document,"pointerup",this._deselectMultiDrag),off(document,"mouseup",this._deselectMultiDrag),off(document,"touchend",this._deselectMultiDrag),off(document,"keydown",this._checkKeyDown),off(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(r){if(!(typeof dragStarted<"u"&&dragStarted)&&multiDragSortable===this.sortable&&!(r&&closest(r.target,this.options.draggable,this.sortable.el,!1))&&!(r&&r.button!==0))for(;multiDragElements.length;){var a=multiDragElements[0];toggleClass(a,this.options.selectedClass,!1),multiDragElements.shift(),dispatchEvent({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:a,originalEvt:r})}},_checkKeyDown:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},_extends(e,{pluginName:"multiDrag",utils:{select:function(r){var a=r.parentNode[expando];!a||!a.options.multiDrag||~multiDragElements.indexOf(r)||(multiDragSortable&&multiDragSortable!==a&&(multiDragSortable.multiDrag._deselectMultiDrag(),multiDragSortable=a),toggleClass(r,a.options.selectedClass,!0),multiDragElements.push(r))},deselect:function(r){var a=r.parentNode[expando],n=multiDragElements.indexOf(r);!a||!a.options.multiDrag||!~n||(toggleClass(r,a.options.selectedClass,!1),multiDragElements.splice(n,1))}},eventProperties:function(){var r=this,a=[],n=[];return multiDragElements.forEach(function(s){a.push({multiDragElement:s,index:s.sortableIndex});var i;folding&&s!==dragEl$1?i=-1:folding?i=index$1(s,":not(."+r.options.selectedClass+")"):i=index$1(s),n.push({multiDragElement:s,index:i})}),{items:_toConsumableArray(multiDragElements),clones:[].concat(multiDragClones),oldIndicies:a,newIndicies:n}},optionListeners:{multiDragKey:function(r){return r=r.toLowerCase(),r==="ctrl"?r="Control":r.length>1&&(r=r.charAt(0).toUpperCase()+r.substr(1)),r}}})}function insertMultiDragElements(e,t){multiDragElements.forEach(function(r,a){var n=t.children[r.sortableIndex+(e?Number(a):0)];n?t.insertBefore(r,n):t.appendChild(r)})}function insertMultiDragClones(e,t){multiDragClones.forEach(function(r,a){var n=t.children[r.sortableIndex+(e?Number(a):0)];n?t.insertBefore(r,n):t.appendChild(r)})}function removeMultiDragElements(){multiDragElements.forEach(function(e){e!==dragEl$1&&e.parentNode&&e.parentNode.removeChild(e)})}Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);const sortable_esm=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:MultiDragPlugin,Sortable,Swap:SwapPlugin,default:Sortable},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(sortable_esm);(function(e,t){(function(a,n){e.exports=n(require$$0,require$$1)})(typeof self<"u"?self:commonjsGlobal,function(r,a){return function(n){var s={};function i(o){if(s[o])return s[o].exports;var l=s[o]={i:o,l:!1,exports:{}};return n[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=n,i.c=s,i.d=function(o,l,c){i.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:c})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,l){if(l&1&&(o=i(o)),l&8||l&4&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),l&2&&typeof o!="string")for(var p in o)i.d(c,p,(function(A){return o[A]}).bind(null,p));return c},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s="fb15")}({"00ee":function(n,s,i){var o=i("b622"),l=o("toStringTag"),c={};c[l]="z",n.exports=String(c)==="[object z]"},"0366":function(n,s,i){var o=i("1c0b");n.exports=function(l,c,p){if(o(l),c===void 0)return l;switch(p){case 0:return function(){return l.call(c)};case 1:return function(A){return l.call(c,A)};case 2:return function(A,d){return l.call(c,A,d)};case 3:return function(A,d,f){return l.call(c,A,d,f)}}return function(){return l.apply(c,arguments)}}},"057f":function(n,s,i){var o=i("fc6a"),l=i("241c").f,c={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],A=function(d){try{return l(d)}catch(f){return p.slice()}};n.exports.f=function(f){return p&&c.call(f)=="[object Window]"?A(f):l(o(f))}},"06cf":function(n,s,i){var o=i("83ab"),l=i("d1e7"),c=i("5c6c"),p=i("fc6a"),A=i("c04e"),d=i("5135"),f=i("0cfb"),m=Object.getOwnPropertyDescriptor;s.f=o?m:function(E,u){if(E=p(E),u=A(u,!0),f)try{return m(E,u)}catch(y){}if(d(E,u))return c(!l.f.call(E,u),E[u])}},"0cfb":function(n,s,i){var o=i("83ab"),l=i("d039"),c=i("cc12");n.exports=!o&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(n,s,i){var o=i("23e7"),l=i("d58f").left,c=i("a640"),p=i("ae40"),A=c("reduce"),d=p("reduce",{1:0});o({target:"Array",proto:!0,forced:!A||!d},{reduce:function(m){return l(this,m,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(n,s,i){var o=i("c6b6"),l=i("9263");n.exports=function(c,p){var A=c.exec;if(typeof A=="function"){var d=A.call(c,p);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(o(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,p)}},"159b":function(n,s,i){var o=i("da84"),l=i("fdbc"),c=i("17c2"),p=i("9112");for(var A in l){var d=o[A],f=d&&d.prototype;if(f&&f.forEach!==c)try{p(f,"forEach",c)}catch(m){f.forEach=c}}},"17c2":function(n,s,i){var o=i("b727").forEach,l=i("a640"),c=i("ae40"),p=l("forEach"),A=c("forEach");n.exports=!p||!A?function(f){return o(this,f,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(n,s,i){var o=i("d066");n.exports=o("document","documentElement")},"1c0b":function(n,s){n.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(n,s,i){var o=i("b622"),l=o("iterator"),c=!1;try{var p=0,A={next:function(){return{done:!!p++}},return:function(){c=!0}};A[l]=function(){return this},Array.from(A,function(){throw 2})}catch(d){}n.exports=function(d,f){if(!f&&!c)return!1;var m=!1;try{var g={};g[l]=function(){return{next:function(){return{done:m=!0}}}},d(g)}catch(E){}return m}},"1d80":function(n,s){n.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(n,s,i){var o=i("d039"),l=i("b622"),c=i("2d00"),p=l("species");n.exports=function(A){return c>=51||!o(function(){var d=[],f=d.constructor={};return f[p]=function(){return{foo:1}},d[A](Boolean).foo!==1})}},"23cb":function(n,s,i){var o=i("a691"),l=Math.max,c=Math.min;n.exports=function(p,A){var d=o(p);return d<0?l(d+A,0):c(d,A)}},"23e7":function(n,s,i){var o=i("da84"),l=i("06cf").f,c=i("9112"),p=i("6eeb"),A=i("ce4e"),d=i("e893"),f=i("94ca");n.exports=function(m,g){var E=m.target,u=m.global,y=m.stat,S,b,x,C,D,I;if(u?b=o:y?b=o[E]||A(E,{}):b=(o[E]||{}).prototype,b)for(x in g){if(D=g[x],m.noTargetGet?(I=l(b,x),C=I&&I.value):C=b[x],S=f(u?x:E+(y?".":"#")+x,m.forced),!S&&C!==void 0){if(typeof D==typeof C)continue;d(D,C)}(m.sham||C&&C.sham)&&c(D,"sham",!0),p(b,x,D,m)}}},"241c":function(n,s,i){var o=i("ca84"),l=i("7839"),c=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(A){return o(A,c)}},"25f0":function(n,s,i){var o=i("6eeb"),l=i("825a"),c=i("d039"),p=i("ad6d"),A="toString",d=RegExp.prototype,f=d[A],m=c(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),g=f.name!=A;(m||g)&&o(RegExp.prototype,A,function(){var u=l(this),y=String(u.source),S=u.flags,b=String(S===void 0&&u instanceof RegExp&&!("flags"in d)?p.call(u):S);return"/"+y+"/"+b},{unsafe:!0})},"2ca0":function(n,s,i){var o=i("23e7"),l=i("06cf").f,c=i("50c4"),p=i("5a34"),A=i("1d80"),d=i("ab13"),f=i("c430"),m="".startsWith,g=Math.min,E=d("startsWith"),u=!f&&!E&&!!function(){var y=l(String.prototype,"startsWith");return y&&!y.writable}();o({target:"String",proto:!0,forced:!u&&!E},{startsWith:function(S){var b=String(A(this));p(S);var x=c(g(arguments.length>1?arguments[1]:void 0,b.length)),C=String(S);return m?m.call(b,C,x):b.slice(x,x+C.length)===C}})},"2d00":function(n,s,i){var o=i("da84"),l=i("342f"),c=o.process,p=c&&c.versions,A=p&&p.v8,d,f;A?(d=A.split("."),f=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(f=d[1]))),n.exports=f&&+f},"342f":function(n,s,i){var o=i("d066");n.exports=o("navigator","userAgent")||""},"35a1":function(n,s,i){var o=i("f5df"),l=i("3f8c"),c=i("b622"),p=c("iterator");n.exports=function(A){if(A!=null)return A[p]||A["@@iterator"]||l[o(A)]}},"37e8":function(n,s,i){var o=i("83ab"),l=i("9bf2"),c=i("825a"),p=i("df75");n.exports=o?Object.defineProperties:function(d,f){c(d);for(var m=p(f),g=m.length,E=0,u;g>E;)l.f(d,u=m[E++],f[u]);return d}},"3bbe":function(n,s,i){var o=i("861d");n.exports=function(l){if(!o(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(n,s,i){var o=i("6547").charAt,l=i("69f3"),c=i("7dd0"),p="String Iterator",A=l.set,d=l.getterFor(p);c(String,"String",function(f){A(this,{type:p,string:String(f),index:0})},function(){var m=d(this),g=m.string,E=m.index,u;return E>=g.length?{value:void 0,done:!0}:(u=o(g,E),m.index+=u.length,{value:u,done:!1})})},"3f8c":function(n,s){n.exports={}},4160:function(n,s,i){var o=i("23e7"),l=i("17c2");o({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(n,s,i){var o=i("da84");n.exports=o},"44ad":function(n,s,i){var o=i("d039"),l=i("c6b6"),c="".split;n.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(p){return l(p)=="String"?c.call(p,""):Object(p)}:Object},"44d2":function(n,s,i){var o=i("b622"),l=i("7c73"),c=i("9bf2"),p=o("unscopables"),A=Array.prototype;A[p]==null&&c.f(A,p,{configurable:!0,value:l(null)}),n.exports=function(d){A[p][d]=!0}},"44e7":function(n,s,i){var o=i("861d"),l=i("c6b6"),c=i("b622"),p=c("match");n.exports=function(A){var d;return o(A)&&((d=A[p])!==void 0?!!d:l(A)=="RegExp")}},4930:function(n,s,i){var o=i("d039");n.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})},"4d64":function(n,s,i){var o=i("fc6a"),l=i("50c4"),c=i("23cb"),p=function(A){return function(d,f,m){var g=o(d),E=l(g.length),u=c(m,E),y;if(A&&f!=f){for(;E>u;)if(y=g[u++],y!=y)return!0}else for(;E>u;u++)if((A||u in g)&&g[u]===f)return A||u||0;return!A&&-1}};n.exports={includes:p(!0),indexOf:p(!1)}},"4de4":function(n,s,i){var o=i("23e7"),l=i("b727").filter,c=i("1dde"),p=i("ae40"),A=c("filter"),d=p("filter");o({target:"Array",proto:!0,forced:!A||!d},{filter:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,s,i){var o=i("0366"),l=i("7b0b"),c=i("9bdd"),p=i("e95a"),A=i("50c4"),d=i("8418"),f=i("35a1");n.exports=function(g){var E=l(g),u=typeof this=="function"?this:Array,y=arguments.length,S=y>1?arguments[1]:void 0,b=S!==void 0,x=f(E),C=0,D,I,N,B,O,R;if(b&&(S=o(S,y>2?arguments[2]:void 0,2)),x!=null&&!(u==Array&&p(x)))for(B=x.call(E),O=B.next,I=new u;!(N=O.call(B)).done;C++)R=b?c(B,S,[N.value,C],!0):N.value,d(I,C,R);else for(D=A(E.length),I=new u(D);D>C;C++)R=b?S(E[C],C):E[C],d(I,C,R);return I.length=C,I}},"4fad":function(n,s,i){var o=i("23e7"),l=i("6f53").entries;o({target:"Object",stat:!0},{entries:function(p){return l(p)}})},"50c4":function(n,s,i){var o=i("a691"),l=Math.min;n.exports=function(c){return c>0?l(o(c),9007199254740991):0}},5135:function(n,s){var i={}.hasOwnProperty;n.exports=function(o,l){return i.call(o,l)}},5319:function(n,s,i){var o=i("d784"),l=i("825a"),c=i("7b0b"),p=i("50c4"),A=i("a691"),d=i("1d80"),f=i("8aa5"),m=i("14c3"),g=Math.max,E=Math.min,u=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\d\d?)/g,b=function(x){return x===void 0?x:String(x)};o("replace",2,function(x,C,D,I){var N=I.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,B=I.REPLACE_KEEPS_$0,O=N?"$":"$0";return[function(G,j){var M=d(this),F=G==null?void 0:G[x];return F!==void 0?F.call(G,M,j):C.call(String(M),G,j)},function(_,G){if(!N&&B||typeof G=="string"&&G.indexOf(O)===-1){var j=D(C,_,this,G);if(j.done)return j.value}var M=l(_),F=String(this),P=typeof G=="function";P||(G=String(G));var T=M.global;if(T){var L=M.unicode;M.lastIndex=0}for(var k=[];;){var Y=m(M,F);if(Y===null||(k.push(Y),!T))break;var Z=String(Y[0]);Z===""&&(M.lastIndex=f(F,p(M.lastIndex),L))}for(var Q="",te=0,ee=0;ee<k.length;ee++){Y=k[ee];for(var ne=String(Y[0]),oe=g(E(A(Y.index),F.length),0),me=[],he=1;he<Y.length;he++)me.push(b(Y[he]));var ue=Y.groups;if(P){var fe=[ne].concat(me,oe,F);ue!==void 0&&fe.push(ue);var ce=String(G.apply(void 0,fe))}else ce=R(ne,F,oe,me,ue,G);oe>=te&&(Q+=F.slice(te,oe)+ce,te=oe+ne.length)}return Q+F.slice(te)}];function R(_,G,j,M,F,P){var T=j+_.length,L=M.length,k=S;return F!==void 0&&(F=c(F),k=y),C.call(P,k,function(Y,Z){var Q;switch(Z.charAt(0)){case"$":return"$";case"&":return _;case"`":return G.slice(0,j);case"'":return G.slice(T);case"<":Q=F[Z.slice(1,-1)];break;default:var te=+Z;if(te===0)return Y;if(te>L){var ee=u(te/10);return ee===0?Y:ee<=L?M[ee-1]===void 0?Z.charAt(1):M[ee-1]+Z.charAt(1):Y}Q=M[te-1]}return Q===void 0?"":Q})}})},5692:function(n,s,i){var o=i("c430"),l=i("c6cd");(n.exports=function(c,p){return l[c]||(l[c]=p!==void 0?p:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,s,i){var o=i("d066"),l=i("241c"),c=i("7418"),p=i("825a");n.exports=o("Reflect","ownKeys")||function(d){var f=l.f(p(d)),m=c.f;return m?f.concat(m(d)):f}},"5a34":function(n,s,i){var o=i("44e7");n.exports=function(l){if(o(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(n,s){n.exports=function(i,o){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:o}}},"5db7":function(n,s,i){var o=i("23e7"),l=i("a2bf"),c=i("7b0b"),p=i("50c4"),A=i("1c0b"),d=i("65f0");o({target:"Array",proto:!0},{flatMap:function(m){var g=c(this),E=p(g.length),u;return A(m),u=d(g,0),u.length=l(u,g,g,E,0,1,m,arguments.length>1?arguments[1]:void 0),u}})},6547:function(n,s,i){var o=i("a691"),l=i("1d80"),c=function(p){return function(A,d){var f=String(l(A)),m=o(d),g=f.length,E,u;return m<0||m>=g?p?"":void 0:(E=f.charCodeAt(m),E<55296||E>56319||m+1===g||(u=f.charCodeAt(m+1))<56320||u>57343?p?f.charAt(m):E:p?f.slice(m,m+2):(E-55296<<10)+(u-56320)+65536)}};n.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(n,s,i){var o=i("861d"),l=i("e8b5"),c=i("b622"),p=c("species");n.exports=function(A,d){var f;return l(A)&&(f=A.constructor,typeof f=="function"&&(f===Array||l(f.prototype))?f=void 0:o(f)&&(f=f[p],f===null&&(f=void 0))),new(f===void 0?Array:f)(d===0?0:d)}},"69f3":function(n,s,i){var o=i("7f9a"),l=i("da84"),c=i("861d"),p=i("9112"),A=i("5135"),d=i("f772"),f=i("d012"),m=l.WeakMap,g,E,u,y=function(N){return u(N)?E(N):g(N,{})},S=function(N){return function(B){var O;if(!c(B)||(O=E(B)).type!==N)throw TypeError("Incompatible receiver, "+N+" required");return O}};if(o){var b=new m,x=b.get,C=b.has,D=b.set;g=function(N,B){return D.call(b,N,B),B},E=function(N){return x.call(b,N)||{}},u=function(N){return C.call(b,N)}}else{var I=d("state");f[I]=!0,g=function(N,B){return p(N,I,B),B},E=function(N){return A(N,I)?N[I]:{}},u=function(N){return A(N,I)}}n.exports={set:g,get:E,has:u,enforce:y,getterFor:S}},"6eeb":function(n,s,i){var o=i("da84"),l=i("9112"),c=i("5135"),p=i("ce4e"),A=i("8925"),d=i("69f3"),f=d.get,m=d.enforce,g=String(String).split("String");(n.exports=function(E,u,y,S){var b=S?!!S.unsafe:!1,x=S?!!S.enumerable:!1,C=S?!!S.noTargetGet:!1;if(typeof y=="function"&&(typeof u=="string"&&!c(y,"name")&&l(y,"name",u),m(y).source=g.join(typeof u=="string"?u:"")),E===o){x?E[u]=y:p(u,y);return}else b?!C&&E[u]&&(x=!0):delete E[u];x?E[u]=y:l(E,u,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||A(this)})},"6f53":function(n,s,i){var o=i("83ab"),l=i("df75"),c=i("fc6a"),p=i("d1e7").f,A=function(d){return function(f){for(var m=c(f),g=l(m),E=g.length,u=0,y=[],S;E>u;)S=g[u++],(!o||p.call(m,S))&&y.push(d?[S,m[S]]:m[S]);return y}};n.exports={entries:A(!0),values:A(!1)}},"73d9":function(n,s,i){var o=i("44d2");o("flatMap")},7418:function(n,s){s.f=Object.getOwnPropertySymbols},"746f":function(n,s,i){var o=i("428f"),l=i("5135"),c=i("e538"),p=i("9bf2").f;n.exports=function(A){var d=o.Symbol||(o.Symbol={});l(d,A)||p(d,A,{value:c.f(A)})}},7839:function(n,s){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,s,i){var o=i("1d80");n.exports=function(l){return Object(o(l))}},"7c73":function(n,s,i){var o=i("825a"),l=i("37e8"),c=i("7839"),p=i("d012"),A=i("1be4"),d=i("cc12"),f=i("f772"),m=">",g="<",E="prototype",u="script",y=f("IE_PROTO"),S=function(){},b=function(N){return g+u+m+N+g+"/"+u+m},x=function(N){N.write(b("")),N.close();var B=N.parentWindow.Object;return N=null,B},C=function(){var N=d("iframe"),B="java"+u+":",O;return N.style.display="none",A.appendChild(N),N.src=String(B),O=N.contentWindow.document,O.open(),O.write(b("document.F=Object")),O.close(),O.F},D,I=function(){try{D=document.domain&&new ActiveXObject("htmlfile")}catch(B){}I=D?x(D):C();for(var N=c.length;N--;)delete I[E][c[N]];return I()};p[y]=!0,n.exports=Object.create||function(B,O){var R;return B!==null?(S[E]=o(B),R=new S,S[E]=null,R[y]=B):R=I(),O===void 0?R:l(R,O)}},"7dd0":function(n,s,i){var o=i("23e7"),l=i("9ed3"),c=i("e163"),p=i("d2bb"),A=i("d44e"),d=i("9112"),f=i("6eeb"),m=i("b622"),g=i("c430"),E=i("3f8c"),u=i("ae93"),y=u.IteratorPrototype,S=u.BUGGY_SAFARI_ITERATORS,b=m("iterator"),x="keys",C="values",D="entries",I=function(){return this};n.exports=function(N,B,O,R,_,G,j){l(O,B,R);var M=function(ee){if(ee===_&&k)return k;if(!S&&ee in T)return T[ee];switch(ee){case x:return function(){return new O(this,ee)};case C:return function(){return new O(this,ee)};case D:return function(){return new O(this,ee)}}return function(){return new O(this)}},F=B+" Iterator",P=!1,T=N.prototype,L=T[b]||T["@@iterator"]||_&&T[_],k=!S&&L||M(_),Y=B=="Array"&&T.entries||L,Z,Q,te;if(Y&&(Z=c(Y.call(new N)),y!==Object.prototype&&Z.next&&(!g&&c(Z)!==y&&(p?p(Z,y):typeof Z[b]!="function"&&d(Z,b,I)),A(Z,F,!0,!0),g&&(E[F]=I))),_==C&&L&&L.name!==C&&(P=!0,k=function(){return L.call(this)}),(!g||j)&&T[b]!==k&&d(T,b,k),E[B]=k,_)if(Q={values:M(C),keys:G?k:M(x),entries:M(D)},j)for(te in Q)(S||P||!(te in T))&&f(T,te,Q[te]);else o({target:B,proto:!0,forced:S||P},Q);return Q}},"7f9a":function(n,s,i){var o=i("da84"),l=i("8925"),c=o.WeakMap;n.exports=typeof c=="function"&&/native code/.test(l(c))},"825a":function(n,s,i){var o=i("861d");n.exports=function(l){if(!o(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(n,s,i){var o=i("d039");n.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(n,s,i){var o=i("c04e"),l=i("9bf2"),c=i("5c6c");n.exports=function(p,A,d){var f=o(A);f in p?l.f(p,f,c(0,d)):p[f]=d}},"861d":function(n,s){n.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},8875:function(n,s,i){var o,l,c;(function(p,A){l=[],o=A,c=typeof o=="function"?o.apply(s,l):o,c!==void 0&&(n.exports=c)})(typeof self<"u"?self:this,function(){function p(){var A=Object.getOwnPropertyDescriptor(document,"currentScript");if(!A&&"currentScript"in document&&document.currentScript||A&&A.get!==p&&document.currentScript)return document.currentScript;try{throw new Error}catch(D){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,f=/@([^@]*):(\d+):(\d+)\s*$/ig,m=d.exec(D.stack)||f.exec(D.stack),g=m&&m[1]||!1,E=m&&m[2]||!1,u=document.location.href.replace(document.location.hash,""),y,S,b,x=document.getElementsByTagName("script");g===u&&(y=document.documentElement.outerHTML,S=new RegExp("(?:[^\\n]+?\\n){0,"+(E-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=y.replace(S,"$1").trim());for(var C=0;C<x.length;C++)if(x[C].readyState==="interactive"||x[C].src===g||g===u&&x[C].innerHTML&&x[C].innerHTML.trim()===b)return x[C];return null}}return p})},8925:function(n,s,i){var o=i("c6cd"),l=Function.toString;typeof o.inspectSource!="function"&&(o.inspectSource=function(c){return l.call(c)}),n.exports=o.inspectSource},"8aa5":function(n,s,i){var o=i("6547").charAt;n.exports=function(l,c,p){return c+(p?o(l,c).length:1)}},"8bbf":function(n,s){n.exports=r},"90e3":function(n,s){var i=0,o=Math.random();n.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++i+o).toString(36)}},9112:function(n,s,i){var o=i("83ab"),l=i("9bf2"),c=i("5c6c");n.exports=o?function(p,A,d){return l.f(p,A,c(1,d))}:function(p,A,d){return p[A]=d,p}},9263:function(n,s,i){var o=i("ad6d"),l=i("9f7f"),c=RegExp.prototype.exec,p=String.prototype.replace,A=c,d=function(){var E=/a/,u=/b*/g;return c.call(E,"a"),c.call(u,"a"),E.lastIndex!==0||u.lastIndex!==0}(),f=l.UNSUPPORTED_Y||l.BROKEN_CARET,m=/()??/.exec("")[1]!==void 0,g=d||m||f;g&&(A=function(u){var y=this,S,b,x,C,D=f&&y.sticky,I=o.call(y),N=y.source,B=0,O=u;return D&&(I=I.replace("y",""),I.indexOf("g")===-1&&(I+="g"),O=String(u).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&u[y.lastIndex-1]!=="\n")&&(N="(?: "+N+")",O=" "+O,B++),b=new RegExp("^(?:"+N+")",I)),m&&(b=new RegExp("^"+N+"$(?!\\s)",I)),d&&(S=y.lastIndex),x=c.call(D?b:y,O),D?x?(x.input=x.input.slice(B),x[0]=x[0].slice(B),x.index=y.lastIndex,y.lastIndex+=x[0].length):y.lastIndex=0:d&&x&&(y.lastIndex=y.global?x.index+x[0].length:S),m&&x&&x.length>1&&p.call(x[0],b,function(){for(C=1;C<arguments.length-2;C++)arguments[C]===void 0&&(x[C]=void 0)}),x}),n.exports=A},"94ca":function(n,s,i){var o=i("d039"),l=/#|\.prototype\./,c=function(m,g){var E=A[p(m)];return E==f?!0:E==d?!1:typeof g=="function"?o(g):!!g},p=c.normalize=function(m){return String(m).replace(l,".").toLowerCase()},A=c.data={},d=c.NATIVE="N",f=c.POLYFILL="P";n.exports=c},"99af":function(n,s,i){var o=i("23e7"),l=i("d039"),c=i("e8b5"),p=i("861d"),A=i("7b0b"),d=i("50c4"),f=i("8418"),m=i("65f0"),g=i("1dde"),E=i("b622"),u=i("2d00"),y=E("isConcatSpreadable"),S=9007199254740991,b="Maximum allowed index exceeded",x=u>=51||!l(function(){var N=[];return N[y]=!1,N.concat()[0]!==N}),C=g("concat"),D=function(N){if(!p(N))return!1;var B=N[y];return B!==void 0?!!B:c(N)},I=!x||!C;o({target:"Array",proto:!0,forced:I},{concat:function(B){var O=A(this),R=m(O,0),_=0,G,j,M,F,P;for(G=-1,M=arguments.length;G<M;G++)if(P=G===-1?O:arguments[G],D(P)){if(F=d(P.length),_+F>S)throw TypeError(b);for(j=0;j<F;j++,_++)j in P&&f(R,_,P[j])}else{if(_>=S)throw TypeError(b);f(R,_++,P)}return R.length=_,R}})},"9bdd":function(n,s,i){var o=i("825a");n.exports=function(l,c,p,A){try{return A?c(o(p)[0],p[1]):c(p)}catch(f){var d=l.return;throw d!==void 0&&o(d.call(l)),f}}},"9bf2":function(n,s,i){var o=i("83ab"),l=i("0cfb"),c=i("825a"),p=i("c04e"),A=Object.defineProperty;s.f=o?A:function(f,m,g){if(c(f),m=p(m,!0),c(g),l)try{return A(f,m,g)}catch(E){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(f[m]=g.value),f}},"9ed3":function(n,s,i){var o=i("ae93").IteratorPrototype,l=i("7c73"),c=i("5c6c"),p=i("d44e"),A=i("3f8c"),d=function(){return this};n.exports=function(f,m,g){var E=m+" Iterator";return f.prototype=l(o,{next:c(1,g)}),p(f,E,!1,!0),A[E]=d,f}},"9f7f":function(n,s,i){var o=i("d039");function l(c,p){return RegExp(c,p)}s.UNSUPPORTED_Y=o(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),s.BROKEN_CARET=o(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(n,s,i){var o=i("e8b5"),l=i("50c4"),c=i("0366"),p=function(A,d,f,m,g,E,u,y){for(var S=g,b=0,x=u?c(u,y,3):!1,C;b<m;){if(b in f){if(C=x?x(f[b],b,d):f[b],E>0&&o(C))S=p(A,d,C,l(C.length),S,E-1)-1;else{if(S>=9007199254740991)throw TypeError("Exceed the acceptable array length");A[S]=C}S++}b++}return S};n.exports=p},a352:function(n,s){n.exports=a},a434:function(n,s,i){var o=i("23e7"),l=i("23cb"),c=i("a691"),p=i("50c4"),A=i("7b0b"),d=i("65f0"),f=i("8418"),m=i("1dde"),g=i("ae40"),E=m("splice"),u=g("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,S=Math.min,b=9007199254740991,x="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!E||!u},{splice:function(D,I){var N=A(this),B=p(N.length),O=l(D,B),R=arguments.length,_,G,j,M,F,P;if(R===0?_=G=0:R===1?(_=0,G=B-O):(_=R-2,G=S(y(c(I),0),B-O)),B+_-G>b)throw TypeError(x);for(j=d(N,G),M=0;M<G;M++)F=O+M,F in N&&f(j,M,N[F]);if(j.length=G,_<G){for(M=O;M<B-G;M++)F=M+G,P=M+_,F in N?N[P]=N[F]:delete N[P];for(M=B;M>B-G+_;M--)delete N[M-1]}else if(_>G)for(M=B-G;M>O;M--)F=M+G-1,P=M+_-1,F in N?N[P]=N[F]:delete N[P];for(M=0;M<_;M++)N[M+O]=arguments[M+2];return N.length=B-G+_,j}})},a4d3:function(n,s,i){var o=i("23e7"),l=i("da84"),c=i("d066"),p=i("c430"),A=i("83ab"),d=i("4930"),f=i("fdbf"),m=i("d039"),g=i("5135"),E=i("e8b5"),u=i("861d"),y=i("825a"),S=i("7b0b"),b=i("fc6a"),x=i("c04e"),C=i("5c6c"),D=i("7c73"),I=i("df75"),N=i("241c"),B=i("057f"),O=i("7418"),R=i("06cf"),_=i("9bf2"),G=i("d1e7"),j=i("9112"),M=i("6eeb"),F=i("5692"),P=i("f772"),T=i("d012"),L=i("90e3"),k=i("b622"),Y=i("e538"),Z=i("746f"),Q=i("d44e"),te=i("69f3"),ee=i("b727").forEach,ne=P("hidden"),oe="Symbol",me="prototype",he=k("toPrimitive"),ue=te.set,fe=te.getterFor(oe),ce=Object[me],q=l.Symbol,ye=c("JSON","stringify"),ve=R.f,Ee=_.f,Te=B.f,De=G.f,ge=F("symbols"),Ae=F("op-symbols"),Ie=F("string-to-symbol-registry"),we=F("symbol-to-string-registry"),Ce=F("wks"),Me=l.QObject,xe=!Me||!Me[me]||!Me[me].findChild,Ne=A&&m(function(){return D(Ee({},"a",{get:function(){return Ee(this,"a",{value:7}).a}})).a!=7})?function(K,z,X){var re=ve(ce,z);re&&delete ce[z],Ee(K,z,X),re&&K!==ce&&Ee(ce,z,re)}:Ee,Ve=function(K,z){var X=ge[K]=D(q[me]);return ue(X,{type:oe,tag:K,description:z}),A||(X.description=z),X},U=f?function(K){return typeof K=="symbol"}:function(K){return Object(K)instanceof q},H=function(z,X,re){z===ce&&H(Ae,X,re),y(z);var se=x(X,!0);return y(re),g(ge,se)?(re.enumerable?(g(z,ne)&&z[ne][se]&&(z[ne][se]=!1),re=D(re,{enumerable:C(0,!1)})):(g(z,ne)||Ee(z,ne,C(1,{})),z[ne][se]=!0),Ne(z,se,re)):Ee(z,se,re)},W=function(z,X){y(z);var re=b(X),se=I(re).concat(V(re));return ee(se,function(ie){(!A||ae.call(re,ie))&&H(z,ie,re[ie])}),z},J=function(z,X){return X===void 0?D(z):W(D(z),X)},ae=function(z){var X=x(z,!0),re=De.call(this,X);return this===ce&&g(ge,X)&&!g(Ae,X)?!1:re||!g(this,X)||!g(ge,X)||g(this,ne)&&this[ne][X]?re:!0},le=function(z,X){var re=b(z),se=x(X,!0);if(!(re===ce&&g(ge,se)&&!g(Ae,se))){var ie=ve(re,se);return ie&&g(ge,se)&&!(g(re,ne)&&re[ne][se])&&(ie.enumerable=!0),ie}},de=function(z){var X=Te(b(z)),re=[];return ee(X,function(se){!g(ge,se)&&!g(T,se)&&re.push(se)}),re},V=function(z){var X=z===ce,re=Te(X?Ae:b(z)),se=[];return ee(re,function(ie){g(ge,ie)&&(!X||g(ce,ie))&&se.push(ge[ie])}),se};if(d||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var z=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),X=L(z),re=function(se){this===ce&&re.call(Ae,se),g(this,ne)&&g(this[ne],X)&&(this[ne][X]=!1),Ne(this,X,C(1,se))};return A&&xe&&Ne(ce,X,{configurable:!0,set:re}),Ve(X,z)},M(q[me],"toString",function(){return fe(this).tag}),M(q,"withoutSetter",function(K){return Ve(L(K),K)}),G.f=ae,_.f=H,R.f=le,N.f=B.f=de,O.f=V,Y.f=function(K){return Ve(k(K),K)},A&&(Ee(q[me],"description",{configurable:!0,get:function(){return fe(this).description}}),p||M(ce,"propertyIsEnumerable",ae,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:q}),ee(I(Ce),function(K){Z(K)}),o({target:oe,stat:!0,forced:!d},{for:function(K){var z=String(K);if(g(Ie,z))return Ie[z];var X=q(z);return Ie[z]=X,we[X]=z,X},keyFor:function(z){if(!U(z))throw TypeError(z+" is not a symbol");if(g(we,z))return we[z]},useSetter:function(){xe=!0},useSimple:function(){xe=!1}}),o({target:"Object",stat:!0,forced:!d,sham:!A},{create:J,defineProperty:H,defineProperties:W,getOwnPropertyDescriptor:le}),o({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:de,getOwnPropertySymbols:V}),o({target:"Object",stat:!0,forced:m(function(){O.f(1)})},{getOwnPropertySymbols:function(z){return O.f(S(z))}}),ye){var $=!d||m(function(){var K=q();return ye([K])!="[null]"||ye({a:K})!="{}"||ye(Object(K))!="{}"});o({target:"JSON",stat:!0,forced:$},{stringify:function(z,X,re){for(var se=[z],ie=1,pe;arguments.length>ie;)se.push(arguments[ie++]);if(pe=X,!(!u(X)&&z===void 0||U(z)))return E(X)||(X=function(Se,be){if(typeof pe=="function"&&(be=pe.call(this,Se,be)),!U(be))return be}),se[1]=X,ye.apply(null,se)}})}q[me][he]||j(q[me],he,q[me].valueOf),Q(q,oe),T[ne]=!0},a630:function(n,s,i){var o=i("23e7"),l=i("4df4"),c=i("1c7e"),p=!c(function(A){Array.from(A)});o({target:"Array",stat:!0,forced:p},{from:l})},a640:function(n,s,i){var o=i("d039");n.exports=function(l,c){var p=[][l];return!!p&&o(function(){p.call(null,c||function(){throw 1},1)})}},a691:function(n,s){var i=Math.ceil,o=Math.floor;n.exports=function(l){return isNaN(l=+l)?0:(l>0?o:i)(l)}},ab13:function(n,s,i){var o=i("b622"),l=o("match");n.exports=function(c){var p=/./;try{"/./"[c](p)}catch(A){try{return p[l]=!1,"/./"[c](p)}catch(d){}}return!1}},ac1f:function(n,s,i){var o=i("23e7"),l=i("9263");o({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(n,s,i){var o=i("825a");n.exports=function(){var l=o(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}},ae40:function(n,s,i){var o=i("83ab"),l=i("d039"),c=i("5135"),p=Object.defineProperty,A={},d=function(f){throw f};n.exports=function(f,m){if(c(A,f))return A[f];m||(m={});var g=[][f],E=c(m,"ACCESSORS")?m.ACCESSORS:!1,u=c(m,0)?m[0]:d,y=c(m,1)?m[1]:void 0;return A[f]=!!g&&!l(function(){if(E&&!o)return!0;var S={length:-1};E?p(S,1,{enumerable:!0,get:d}):S[1]=1,g.call(S,u,y)})}},ae93:function(n,s,i){var o=i("e163"),l=i("9112"),c=i("5135"),p=i("b622"),A=i("c430"),d=p("iterator"),f=!1,m=function(){return this},g,E,u;[].keys&&(u=[].keys(),"next"in u?(E=o(o(u)),E!==Object.prototype&&(g=E)):f=!0),g==null&&(g={}),!A&&!c(g,d)&&l(g,d,m),n.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:f}},b041:function(n,s,i){var o=i("00ee"),l=i("f5df");n.exports=o?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(n,s,i){var o=i("83ab"),l=i("9bf2").f,c=Function.prototype,p=c.toString,A=/^\s*function ([^ (]*)/,d="name";o&&!(d in c)&&l(c,d,{configurable:!0,get:function(){try{return p.call(this).match(A)[1]}catch(f){return""}}})},b622:function(n,s,i){var o=i("da84"),l=i("5692"),c=i("5135"),p=i("90e3"),A=i("4930"),d=i("fdbf"),f=l("wks"),m=o.Symbol,g=d?m:m&&m.withoutSetter||p;n.exports=function(E){return c(f,E)||(A&&c(m,E)?f[E]=m[E]:f[E]=g("Symbol."+E)),f[E]}},b64b:function(n,s,i){var o=i("23e7"),l=i("7b0b"),c=i("df75"),p=i("d039"),A=p(function(){c(1)});o({target:"Object",stat:!0,forced:A},{keys:function(f){return c(l(f))}})},b727:function(n,s,i){var o=i("0366"),l=i("44ad"),c=i("7b0b"),p=i("50c4"),A=i("65f0"),d=[].push,f=function(m){var g=m==1,E=m==2,u=m==3,y=m==4,S=m==6,b=m==5||S;return function(x,C,D,I){for(var N=c(x),B=l(N),O=o(C,D,3),R=p(B.length),_=0,G=I||A,j=g?G(x,R):E?G(x,0):void 0,M,F;R>_;_++)if((b||_ in B)&&(M=B[_],F=O(M,_,N),m)){if(g)j[_]=F;else if(F)switch(m){case 3:return!0;case 5:return M;case 6:return _;case 2:d.call(j,M)}else if(y)return!1}return S?-1:u||y?y:j}};n.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},c04e:function(n,s,i){var o=i("861d");n.exports=function(l,c){if(!o(l))return l;var p,A;if(c&&typeof(p=l.toString)=="function"&&!o(A=p.call(l))||typeof(p=l.valueOf)=="function"&&!o(A=p.call(l))||!c&&typeof(p=l.toString)=="function"&&!o(A=p.call(l)))return A;throw TypeError("Can't convert object to primitive value")}},c430:function(n,s){n.exports=!1},c6b6:function(n,s){var i={}.toString;n.exports=function(o){return i.call(o).slice(8,-1)}},c6cd:function(n,s,i){var o=i("da84"),l=i("ce4e"),c="__core-js_shared__",p=o[c]||l(c,{});n.exports=p},c740:function(n,s,i){var o=i("23e7"),l=i("b727").findIndex,c=i("44d2"),p=i("ae40"),A="findIndex",d=!0,f=p(A);A in[]&&Array(1)[A](function(){d=!1}),o({target:"Array",proto:!0,forced:d||!f},{findIndex:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}}),c(A)},c8ba:function(n,s){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(o){typeof window=="object"&&(i=window)}n.exports=i},c975:function(n,s,i){var o=i("23e7"),l=i("4d64").indexOf,c=i("a640"),p=i("ae40"),A=[].indexOf,d=!!A&&1/[1].indexOf(1,-0)<0,f=c("indexOf"),m=p("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:d||!f||!m},{indexOf:function(E){return d?A.apply(this,arguments)||0:l(this,E,arguments.length>1?arguments[1]:void 0)}})},ca84:function(n,s,i){var o=i("5135"),l=i("fc6a"),c=i("4d64").indexOf,p=i("d012");n.exports=function(A,d){var f=l(A),m=0,g=[],E;for(E in f)!o(p,E)&&o(f,E)&&g.push(E);for(;d.length>m;)o(f,E=d[m++])&&(~c(g,E)||g.push(E));return g}},caad:function(n,s,i){var o=i("23e7"),l=i("4d64").includes,c=i("44d2"),p=i("ae40"),A=p("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!A},{includes:function(f){return l(this,f,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(n,s,i){var o=i("da84"),l=i("861d"),c=o.document,p=l(c)&&l(c.createElement);n.exports=function(A){return p?c.createElement(A):{}}},ce4e:function(n,s,i){var o=i("da84"),l=i("9112");n.exports=function(c,p){try{l(o,c,p)}catch(A){o[c]=p}return p}},d012:function(n,s){n.exports={}},d039:function(n,s){n.exports=function(i){try{return!!i()}catch(o){return!0}}},d066:function(n,s,i){var o=i("428f"),l=i("da84"),c=function(p){return typeof p=="function"?p:void 0};n.exports=function(p,A){return arguments.length<2?c(o[p])||c(l[p]):o[p]&&o[p][A]||l[p]&&l[p][A]}},d1e7:function(n,s,i){var o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!o.call({1:2},1);s.f=c?function(A){var d=l(this,A);return!!d&&d.enumerable}:o},d28b:function(n,s,i){var o=i("746f");o("iterator")},d2bb:function(n,s,i){var o=i("825a"),l=i("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,p={},A;try{A=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,A.call(p,[]),c=p instanceof Array}catch(d){}return function(f,m){return o(f),l(m),c?A.call(f,m):f.__proto__=m,f}}():void 0)},d3b7:function(n,s,i){var o=i("00ee"),l=i("6eeb"),c=i("b041");o||l(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(n,s,i){var o=i("9bf2").f,l=i("5135"),c=i("b622"),p=c("toStringTag");n.exports=function(A,d,f){A&&!l(A=f?A:A.prototype,p)&&o(A,p,{configurable:!0,value:d})}},d58f:function(n,s,i){var o=i("1c0b"),l=i("7b0b"),c=i("44ad"),p=i("50c4"),A=function(d){return function(f,m,g,E){o(m);var u=l(f),y=c(u),S=p(u.length),b=d?S-1:0,x=d?-1:1;if(g<2)for(;;){if(b in y){E=y[b],b+=x;break}if(b+=x,d?b<0:S<=b)throw TypeError("Reduce of empty array with no initial value")}for(;d?b>=0:S>b;b+=x)b in y&&(E=m(E,y[b],b,u));return E}};n.exports={left:A(!1),right:A(!0)}},d784:function(n,s,i){i("ac1f");var o=i("6eeb"),l=i("d039"),c=i("b622"),p=i("9263"),A=i("9112"),d=c("species"),f=!l(function(){var y=/./;return y.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(y,"$<a>")!=="7"}),m=function(){return"a".replace(/./,"$0")==="$0"}(),g=c("replace"),E=function(){return/./[g]?/./[g]("a","$0")==="":!1}(),u=!l(function(){var y=/(?:)/,S=y.exec;y.exec=function(){return S.apply(this,arguments)};var b="ab".split(y);return b.length!==2||b[0]!=="a"||b[1]!=="b"});n.exports=function(y,S,b,x){var C=c(y),D=!l(function(){var _={};return _[C]=function(){return 7},""[y](_)!=7}),I=D&&!l(function(){var _=!1,G=/a/;return y==="split"&&(G={},G.constructor={},G.constructor[d]=function(){return G},G.flags="",G[C]=/./[C]),G.exec=function(){return _=!0,null},G[C](""),!_});if(!D||!I||y==="replace"&&!(f&&m&&!E)||y==="split"&&!u){var N=/./[C],B=b(C,""[y],function(_,G,j,M,F){return G.exec===p?D&&!F?{done:!0,value:N.call(G,j,M)}:{done:!0,value:_.call(j,G,M)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:E}),O=B[0],R=B[1];o(String.prototype,y,O),o(RegExp.prototype,C,S==2?function(_,G){return R.call(_,this,G)}:function(_){return R.call(_,this)})}x&&A(RegExp.prototype[C],"sham",!0)}},d81d:function(n,s,i){var o=i("23e7"),l=i("b727").map,c=i("1dde"),p=i("ae40"),A=c("map"),d=p("map");o({target:"Array",proto:!0,forced:!A||!d},{map:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,s,i){(function(o){var l=function(c){return c&&c.Math==Math&&c};n.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof o=="object"&&o)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(n,s,i){var o=i("23e7"),l=i("83ab"),c=i("56ef"),p=i("fc6a"),A=i("06cf"),d=i("8418");o({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(m){for(var g=p(m),E=A.f,u=c(g),y={},S=0,b,x;u.length>S;)x=E(g,b=u[S++]),x!==void 0&&d(y,b,x);return y}})},dbf1:function(n,s,i){(function(o){i.d(s,"a",function(){return c});function l(){return typeof window<"u"?window.console:o.console}var c=l()}).call(this,i("c8ba"))},ddb0:function(n,s,i){var o=i("da84"),l=i("fdbc"),c=i("e260"),p=i("9112"),A=i("b622"),d=A("iterator"),f=A("toStringTag"),m=c.values;for(var g in l){var E=o[g],u=E&&E.prototype;if(u){if(u[d]!==m)try{p(u,d,m)}catch(S){u[d]=m}if(u[f]||p(u,f,g),l[g]){for(var y in c)if(u[y]!==c[y])try{p(u,y,c[y])}catch(S){u[y]=c[y]}}}}},df75:function(n,s,i){var o=i("ca84"),l=i("7839");n.exports=Object.keys||function(p){return o(p,l)}},e01a:function(n,s,i){var o=i("23e7"),l=i("83ab"),c=i("da84"),p=i("5135"),A=i("861d"),d=i("9bf2").f,f=i("e893"),m=c.Symbol;if(l&&typeof m=="function"&&(!("description"in m.prototype)||m().description!==void 0)){var g={},E=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),D=this instanceof E?new m(C):C===void 0?m():m(C);return C===""&&(g[D]=!0),D};f(E,m);var u=E.prototype=m.prototype;u.constructor=E;var y=u.toString,S=String(m("test"))=="Symbol(test)",b=/^Symbol\((.*)\)[^)]+$/;d(u,"description",{configurable:!0,get:function(){var C=A(this)?this.valueOf():this,D=y.call(C);if(p(g,C))return"";var I=S?D.slice(7,-1):D.replace(b,"$1");return I===""?void 0:I}}),o({global:!0,forced:!0},{Symbol:E})}},e163:function(n,s,i){var o=i("5135"),l=i("7b0b"),c=i("f772"),p=i("e177"),A=c("IE_PROTO"),d=Object.prototype;n.exports=p?Object.getPrototypeOf:function(f){return f=l(f),o(f,A)?f[A]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?d:null}},e177:function(n,s,i){var o=i("d039");n.exports=!o(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(n,s,i){var o=i("fc6a"),l=i("44d2"),c=i("3f8c"),p=i("69f3"),A=i("7dd0"),d="Array Iterator",f=p.set,m=p.getterFor(d);n.exports=A(Array,"Array",function(g,E){f(this,{type:d,target:o(g),index:0,kind:E})},function(){var g=m(this),E=g.target,u=g.kind,y=g.index++;return!E||y>=E.length?(g.target=void 0,{value:void 0,done:!0}):u=="keys"?{value:y,done:!1}:u=="values"?{value:E[y],done:!1}:{value:[y,E[y]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")},e439:function(n,s,i){var o=i("23e7"),l=i("d039"),c=i("fc6a"),p=i("06cf").f,A=i("83ab"),d=l(function(){p(1)}),f=!A||d;o({target:"Object",stat:!0,forced:f,sham:!A},{getOwnPropertyDescriptor:function(g,E){return p(c(g),E)}})},e538:function(n,s,i){var o=i("b622");s.f=o},e893:function(n,s,i){var o=i("5135"),l=i("56ef"),c=i("06cf"),p=i("9bf2");n.exports=function(A,d){for(var f=l(d),m=p.f,g=c.f,E=0;E<f.length;E++){var u=f[E];o(A,u)||m(A,u,g(d,u))}}},e8b5:function(n,s,i){var o=i("c6b6");n.exports=Array.isArray||function(c){return o(c)=="Array"}},e95a:function(n,s,i){var o=i("b622"),l=i("3f8c"),c=o("iterator"),p=Array.prototype;n.exports=function(A){return A!==void 0&&(l.Array===A||p[c]===A)}},f5df:function(n,s,i){var o=i("00ee"),l=i("c6b6"),c=i("b622"),p=c("toStringTag"),A=l(function(){return arguments}())=="Arguments",d=function(f,m){try{return f[m]}catch(g){}};n.exports=o?l:function(f){var m,g,E;return f===void 0?"Undefined":f===null?"Null":typeof(g=d(m=Object(f),p))=="string"?g:A?l(m):(E=l(m))=="Object"&&typeof m.callee=="function"?"Arguments":E}},f772:function(n,s,i){var o=i("5692"),l=i("90e3"),c=o("keys");n.exports=function(p){return c[p]||(c[p]=l(p))}},fb15:function(n,s,i){if(i.r(s),typeof window<"u"){var o=window.document.currentScript;{var l=i("8875");o=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(i.p=c[1])}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b");function p(U,H,W){return H in U?Object.defineProperty(U,H,{value:W,enumerable:!0,configurable:!0,writable:!0}):U[H]=W,U}function A(U,H){var W=Object.keys(U);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(U);H&&(J=J.filter(function(ae){return Object.getOwnPropertyDescriptor(U,ae).enumerable})),W.push.apply(W,J)}return W}function d(U){for(var H=1;H<arguments.length;H++){var W=arguments[H]!=null?arguments[H]:{};H%2?A(Object(W),!0).forEach(function(J){p(U,J,W[J])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(W)):A(Object(W)).forEach(function(J){Object.defineProperty(U,J,Object.getOwnPropertyDescriptor(W,J))})}return U}function f(U){if(Array.isArray(U))return U}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function m(U,H){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(U)))){var W=[],J=!0,ae=!1,le=void 0;try{for(var de=U[Symbol.iterator](),V;!(J=(V=de.next()).done)&&(W.push(V.value),!(H&&W.length===H));J=!0);}catch($){ae=!0,le=$}finally{try{!J&&de.return!=null&&de.return()}finally{if(ae)throw le}}return W}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function g(U,H){(H==null||H>U.length)&&(H=U.length);for(var W=0,J=new Array(H);W<H;W++)J[W]=U[W];return J}function E(U,H){if(U){if(typeof U=="string")return g(U,H);var W=Object.prototype.toString.call(U).slice(8,-1);if(W==="Object"&&U.constructor&&(W=U.constructor.name),W==="Map"||W==="Set")return Array.from(U);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return g(U,H)}}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(U,H){return f(U)||m(U,H)||E(U,H)||u()}function S(U){if(Array.isArray(U))return g(U)}function b(U){if(typeof Symbol<"u"&&Symbol.iterator in Object(U))return Array.from(U)}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(U){return S(U)||b(U)||E(U)||x()}var D=i("a352"),I=i.n(D);function N(U){U.parentElement!==null&&U.parentElement.removeChild(U)}function B(U,H,W){var J=W===0?U.children[0]:U.children[W-1].nextSibling;U.insertBefore(H,J)}var O=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function R(U){var H=Object.create(null);return function(J){var ae=H[J];return ae||(H[J]=U(J))}}var _=/-(\w)/g,G=R(function(U){return U.replace(_,function(H,W){return W.toUpperCase()})});i("5db7"),i("73d9");var j=["Start","Add","Remove","Update","End"],M=["Choose","Unchoose","Sort","Filter","Clone"],F=["Move"],P=[F,j,M].flatMap(function(U){return U}).map(function(U){return"on".concat(U)}),T={manage:F,manageAndEmit:j,emit:M};function L(U){return P.indexOf(U)!==-1}i("caad"),i("2ca0");var k=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Y(U){return k.includes(U)}function Z(U){return["transition-group","TransitionGroup"].includes(U)}function Q(U){return["id","class","role","style"].includes(U)||U.startsWith("data-")||U.startsWith("aria-")||U.startsWith("on")}function te(U){return U.reduce(function(H,W){var J=y(W,2),ae=J[0],le=J[1];return H[ae]=le,H},{})}function ee(U){var H=U.$attrs,W=U.componentData,J=W===void 0?{}:W,ae=te(Object.entries(H).filter(function(le){var de=y(le,2),V=de[0];return de[1],Q(V)}));return d(d({},ae),J)}function ne(U){var H=U.$attrs,W=U.callBackBuilder,J=te(oe(H));Object.entries(W).forEach(function(le){var de=y(le,2),V=de[0],$=de[1];T[V].forEach(function(K){J["on".concat(K)]=$(K)})});var ae="[data-draggable]".concat(J.draggable||"");return d(d({},J),{},{draggable:ae})}function oe(U){return Object.entries(U).filter(function(H){var W=y(H,2),J=W[0];return W[1],!Q(J)}).map(function(H){var W=y(H,2),J=W[0],ae=W[1];return[G(J),ae]}).filter(function(H){var W=y(H,2),J=W[0];return W[1],!L(J)})}i("c740");function me(U,H){if(!(U instanceof H))throw new TypeError("Cannot call a class as a function")}function he(U,H){for(var W=0;W<H.length;W++){var J=H[W];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(U,J.key,J)}}function ue(U,H,W){return H&&he(U.prototype,H),W&&he(U,W),U}var fe=function(H){var W=H.el;return W},ce=function(H,W){return H.__draggable_context=W},q=function(H){return H.__draggable_context},ye=function(){function U(H){var W=H.nodes,J=W.header,ae=W.default,le=W.footer,de=H.root,V=H.realList;me(this,U),this.defaultNodes=ae,this.children=[].concat(C(J),C(ae),C(le)),this.externalComponent=de.externalComponent,this.rootTransition=de.transition,this.tag=de.tag,this.realList=V}return ue(U,[{key:"render",value:function(W,J){var ae=this.tag,le=this.children,de=this._isRootComponent,V=de?{default:function(){return le}}:le;return W(ae,J,V)}},{key:"updated",value:function(){var W=this.defaultNodes,J=this.realList;W.forEach(function(ae,le){ce(fe(ae),{element:J[le],index:le})})}},{key:"getUnderlyingVm",value:function(W){return q(W)}},{key:"getVmIndexFromDomIndex",value:function(W,J){var ae=this.defaultNodes,le=ae.length,de=J.children,V=de.item(W);if(V===null)return le;var $=q(V);if($)return $.index;if(le===0)return 0;var K=fe(ae[0]),z=C(de).findIndex(function(X){return X===K});return W<z?0:le}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),U}(),ve=i("8bbf");function Ee(U,H){var W=U[H];return W?W():[]}function Te(U){var H=U.$slots,W=U.realList,J=U.getKey,ae=W||[],le=["header","footer"].map(function(X){return Ee(H,X)}),de=y(le,2),V=de[0],$=de[1],K=H.item;if(!K)throw new Error("draggable element must have an item slot");var z=ae.flatMap(function(X,re){return K({element:X,index:re}).map(function(se){return se.key=J(X),se.props=d(d({},se.props||{}),{},{"data-draggable":!0}),se})});if(z.length!==ae.length)throw new Error("Item slot must have only one child");return{header:V,footer:$,default:z}}function De(U){var H=Z(U),W=!Y(U)&&!H;return{transition:H,externalComponent:W,tag:W?Object(ve.resolveComponent)(U):H?ve.TransitionGroup:U}}function ge(U){var H=U.$slots,W=U.tag,J=U.realList,ae=U.getKey,le=Te({$slots:H,realList:J,getKey:ae}),de=De(W);return new ye({nodes:le,root:de,realList:J})}function Ae(U,H){var W=this;Object(ve.nextTick)(function(){return W.$emit(U.toLowerCase(),H)})}function Ie(U){var H=this;return function(W,J){if(H.realList!==null)return H["onDrag".concat(U)](W,J)}}function we(U){var H=this,W=Ie.call(this,U);return function(J,ae){W.call(H,J,ae),Ae.call(H,U,J)}}var Ce=null,Me={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(H){return H}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},xe=["update:modelValue","change"].concat(C([].concat(C(T.manageAndEmit),C(T.emit)).map(function(U){return U.toLowerCase()}))),Ne=Object(ve.defineComponent)({name:"draggable",inheritAttrs:!1,props:Me,emits:xe,data:function(){return{error:!1}},render:function(){try{this.error=!1;var H=this.$slots,W=this.$attrs,J=this.tag,ae=this.componentData,le=this.realList,de=this.getKey,V=ge({$slots:H,tag:J,realList:le,getKey:de});this.componentStructure=V;var $=ee({$attrs:W,componentData:ae});return V.render(ve.h,$)}catch(K){return this.error=!0,Object(ve.h)("pre",{style:{color:"red"}},K.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&O.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var H=this;if(!this.error){var W=this.$attrs,J=this.$el,ae=this.componentStructure;ae.updated();var le=ne({$attrs:W,callBackBuilder:{manageAndEmit:function($){return we.call(H,$)},emit:function($){return Ae.bind(H,$)},manage:function($){return Ie.call(H,$)}}}),de=J.nodeType===1?J:J.parentElement;this._sortable=new I.a(de,le),this.targetDomElement=de,de.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var H=this.list;return H||this.modelValue},getKey:function(){var H=this.itemKey;return typeof H=="function"?H:function(W){return W[H]}}},watch:{$attrs:{handler:function(H){var W=this._sortable;W&&oe(H).forEach(function(J){var ae=y(J,2),le=ae[0],de=ae[1];W.option(le,de)})},deep:!0}},methods:{getUnderlyingVm:function(H){return this.componentStructure.getUnderlyingVm(H)||null},getUnderlyingPotencialDraggableComponent:function(H){return H.__draggable_component__},emitChanges:function(H){var W=this;Object(ve.nextTick)(function(){return W.$emit("change",H)})},alterList:function(H){if(this.list){H(this.list);return}var W=C(this.modelValue);H(W),this.$emit("update:modelValue",W)},spliceList:function(){var H=arguments,W=function(ae){return ae.splice.apply(ae,C(H))};this.alterList(W)},updatePosition:function(H,W){var J=function(le){return le.splice(W,0,le.splice(H,1)[0])};this.alterList(J)},getRelatedContextFromMoveEvent:function(H){var W=H.to,J=H.related,ae=this.getUnderlyingPotencialDraggableComponent(W);if(!ae)return{component:ae};var le=ae.realList,de={list:le,component:ae};if(W!==J&&le){var V=ae.getUnderlyingVm(J)||{};return d(d({},V),de)}return de},getVmIndexFromDomIndex:function(H){return this.componentStructure.getVmIndexFromDomIndex(H,this.targetDomElement)},onDragStart:function(H){this.context=this.getUnderlyingVm(H.item),H.item._underlying_vm_=this.clone(this.context.element),Ce=H.item},onDragAdd:function(H){var W=H.item._underlying_vm_;if(W!==void 0){N(H.item);var J=this.getVmIndexFromDomIndex(H.newIndex);this.spliceList(J,0,W);var ae={element:W,newIndex:J};this.emitChanges({added:ae})}},onDragRemove:function(H){if(B(this.$el,H.item,H.oldIndex),H.pullMode==="clone"){N(H.clone);return}var W=this.context,J=W.index,ae=W.element;this.spliceList(J,1);var le={element:ae,oldIndex:J};this.emitChanges({removed:le})},onDragUpdate:function(H){N(H.item),B(H.from,H.item,H.oldIndex);var W=this.context.index,J=this.getVmIndexFromDomIndex(H.newIndex);this.updatePosition(W,J);var ae={element:this.context.element,oldIndex:W,newIndex:J};this.emitChanges({moved:ae})},computeFutureIndex:function(H,W){if(!H.element)return 0;var J=C(W.to.children).filter(function(V){return V.style.display!=="none"}),ae=J.indexOf(W.related),le=H.component.getVmIndexFromDomIndex(ae),de=J.indexOf(Ce)!==-1;return de||!W.willInsertAfter?le:le+1},onDragMove:function(H,W){var J=this.move,ae=this.realList;if(!J||!ae)return!0;var le=this.getRelatedContextFromMoveEvent(H),de=this.computeFutureIndex(le,H),V=d(d({},this.context),{},{futureIndex:de}),$=d(d({},H),{},{relatedContext:le,draggedContext:V});return J($,W)},onDragEnd:function(){Ce=null}}}),Ve=Ne;s.default=Ve},fb6a:function(n,s,i){var o=i("23e7"),l=i("861d"),c=i("e8b5"),p=i("23cb"),A=i("50c4"),d=i("fc6a"),f=i("8418"),m=i("b622"),g=i("1dde"),E=i("ae40"),u=g("slice"),y=E("slice",{ACCESSORS:!0,0:0,1:2}),S=m("species"),b=[].slice,x=Math.max;o({target:"Array",proto:!0,forced:!u||!y},{slice:function(D,I){var N=d(this),B=A(N.length),O=p(D,B),R=p(I===void 0?B:I,B),_,G,j;if(c(N)&&(_=N.constructor,typeof _=="function"&&(_===Array||c(_.prototype))?_=void 0:l(_)&&(_=_[S],_===null&&(_=void 0)),_===Array||_===void 0))return b.call(N,O,R);for(G=new(_===void 0?Array:_)(x(R-O,0)),j=0;O<R;O++,j++)O in N&&f(G,j,N[O]);return G.length=j,G}})},fc6a:function(n,s,i){var o=i("44ad"),l=i("1d80");n.exports=function(c){return o(l(c))}},fdbc:function(n,s){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(n,s,i){var o=i("4930");n.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(vuedraggable_umd);var vuedraggable_umdExports=vuedraggable_umd.exports;const Draggable=getDefaultExportFromCjs(vuedraggable_umdExports),assignStudent="_assignStudent_19k54_1",studentListGroup="_studentListGroup_19k54_4",selectStudentGroup="_selectStudentGroup_19k54_5",searchSection="_searchSection_19k54_11",searchSpace="_searchSpace_19k54_14",studentSection="_studentSection_19k54_21",checkboxAll="_checkboxAll_19k54_24",nums="_nums_19k54_34",student="_student_19k54_4",loadingSection="_loadingSection_19k54_43",studentItem="_studentItem_19k54_46",studentInfo="_studentInfo_19k54_58",studentImg="_studentImg_19k54_63",studentValue="_studentValue_19k54_70",userInfo="_userInfo_19k54_73",name="_name_19k54_77",iconMember="_iconMember_19k54_88",className="_className_19k54_96",phone="_phone_19k54_108",selectCount="_selectCount_19k54_114",hide="_hide_19k54_143",iconClose="_iconClose_19k54_146",btnGroup="_btnGroup_19k54_170",styles$5={assignStudent,studentListGroup,selectStudentGroup,searchSection,searchSpace,studentSection,checkboxAll,nums,student,loadingSection,studentItem,studentInfo,studentImg,studentValue,userInfo,name,iconMember,className,phone,selectCount,hide,iconClose,btnGroup};function _isSlot$1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const AssignStudent=defineComponent({name:"assign-student",props:{classList:{type:Array,default:()=>[]},studentList:{type:Array,default:()=>[]},currentGradeNum:{type:[String||Number],default:""},selectIds:{type:Array,default:()=>[]},classGroupId:{type:String,default:""}},emits:["close","confirm"],setup(e,{emit:t}){const r=useCatchStore(),a=reactive({studentName:"",loading:!1,finshed:!1,checkAllStatus:!1,indeterminate:!1,searchFrom:{upgradeFlag:!0,currentGradeNum:e.currentGradeNum||"",gradeYear:null,classGroupId:e.classGroupId||"",classInstrumentId:"",keyword:""},pagination:{page:1,rows:20,pageTotal:0},tableList:[],checkboxIds:[],selectStudents:[],selectKeyword:"",popSelectYearList:[]}),n=async()=>{try{const{data:d}=await api_getCurrentGradeYear({});a.searchFrom.gradeYear=d}catch(d){}},s=async()=>{try{a.pagination.page===1&&(a.loading=!0,a.tableList=[]);const{data:d}=await getStudentList({...a.searchFrom,...a.pagination});a.loading=!1;const f=d.rows||[];a.tableList.push(...f),a.finshed=d.pages<=d.current,c()}catch(d){a.loading=!1}},i=()=>{a.pagination.page=1,s()},o=computed(()=>{let d=!0;return a.selectStudents.forEach(f=>{f.hide||(d=!1)}),d}),l=useThrottleFn(()=>{a.pagination.page=a.pagination.page+1,s()},500),c=()=>{if(a.checkboxIds.length<=0||a.tableList.length<=0){a.indeterminate=!1,a.checkAllStatus=!1;return}let d=0;a.tableList.forEach(f=>{a.checkboxIds.includes(f.id)&&(d++,a.selectStudents.findIndex(g=>g.id===f.id)===-1&&a.selectStudents.push(f))}),d>=a.tableList.length?(a.checkAllStatus=!0,a.indeterminate=!1):(a.checkAllStatus=!1,a.indeterminate=!0)},p=d=>{const f=a.checkboxIds.findIndex(m=>m===d.id);if(f!==-1){a.checkboxIds.splice(f,1);const m=a.selectStudents.findIndex(g=>g.id===d.id);m!==-1&&a.selectStudents.splice(m,1),c()}},A=()=>{const d=[];a.selectStudents.forEach(f=>{d.push({id:f.id,name:f.nickname,avatar:f.avatar})}),t("confirm",d)};return onMounted(async()=>{var d;a.checkboxIds=e.selectIds||[],a.loading=!0,await r.getSubjects(),await n(),await s(),a.selectStudents=(d=e.studentList)==null?void 0:d.map(f=>({...f,nickname:f.name}))}),()=>{let d;return createVNode("div",{class:[styles$5.assignStudent,"assignStudent"]},[createVNode("div",{class:styles$5.studentListGroup},[createVNode("div",{class:styles$5.searchSection},[createVNode("div",{class:styles$5.searchSpace},[createVNode(NSelect,{placeholder:"全部班级",disabled:!!e.classGroupId,value:a.searchFrom.classGroupId,"onUpdate:value":[f=>a.searchFrom.classGroupId=f,()=>i()],options:[{label:"全部班级",value:""},...e.classList]},null),createVNode(NCascader,{options:[{name:"全部乐器",id:""},...r.getSubjectList],placeholder:"全部乐器",value:a.searchFrom.classInstrumentId,"onUpdate:value":[f=>a.searchFrom.classInstrumentId=f,()=>i()],checkStrategy:"child",showPath:!1,childrenField:"instruments",expandTrigger:"hover",labelField:"name",valueField:"id",clearable:!0,filterable:!0},null)]),createVNode(SearchInput,mergeProps({placeholder:"请输入学生姓名/手机号"},{class:styles$5.searchInput,searchWord:a.searchFrom.keyword,onChangeValue:f=>{a.searchFrom.keyword=f},onClear:()=>{a.searchFrom.keyword="",i()},onKeyup:f=>{f.code==="Enter"&&i()}}),null)]),createVNode("div",{class:styles$5.studentSection},[createVNode("div",{class:styles$5.checkboxAll},[createVNode(NCheckbox,{checked:a.checkAllStatus,"onUpdate:checked":[f=>a.checkAllStatus=f,f=>{if(f){const m=[];a.tableList.forEach(g=>{m.push(g.id)}),a.checkboxIds=m}else a.checkboxIds=[],a.selectStudents=[],a.indeterminate=!1;c()}],indeterminate:a.indeterminate},null),createVNode("p",null,[createTextVNode("全选 "),createVNode("span",{class:styles$5.nums},[createTextVNode("("),a.tableList.length,createTextVNode(")")])," ",createTextVNode(":")])])]),createVNode(NScrollbar,{class:styles$5.student,onScroll:f=>{var u,y,S;const m=(u=f.target)==null?void 0:u.clientHeight,g=(y=f.target)==null?void 0:y.scrollTop,E=(S=f.target)==null?void 0:S.scrollHeight;m+g+20>=E&&!a.finshed&&!a.loading&&l()}},{default:()=>[createVNode(NSpin,{show:a.loading,class:styles$5.loadingSection},{default:()=>[createVNode(NCheckboxGroup,{value:a.checkboxIds,"onUpdate:value":[f=>a.checkboxIds=f,()=>{a.selectStudents=[],c()}]},_isSlot$1(d=a.tableList.map(f=>createVNode(NCheckbox,{value:f.id,class:[styles$5.studentItem]},{default:()=>[createVNode("div",{class:styles$5.studentInfo},[createVNode(NAvatar,{src:f.avatar||defultHeade,class:styles$5.studentImg},null),createVNode("div",{class:styles$5.studentValue},[createVNode("div",{class:styles$5.userInfo},[createVNode("span",{class:styles$5.name},[f.nickname]),f.membership&&createVNode("i",{class:styles$5.iconMember},null),f.classGroupName&&createVNode("span",{class:styles$5.className},[f.classGroupName])]),createVNode("div",{class:styles$5.phone},[f.phone])])])]})))?d:{default:()=>[d]}),a.tableList.length<=0&&!a.loading&&createVNode(TheEmpty,null,null)]})]})]),createVNode("div",{class:styles$5.selectStudentGroup},[createVNode("div",{class:styles$5.selectCount},[createTextVNode("当前选中 "),createVNode("span",null,[createTextVNode("("),a.selectStudents.length,createTextVNode(") ")]),createTextVNode(":")]),createVNode("div",{class:styles$5.searchSection},[createVNode(SearchInput,mergeProps({placeholder:"请输入学生姓名"},{class:styles$5.searchInput,searchWord:a.selectKeyword,onChangeValue:f=>{a.selectKeyword=f,a.selectStudents.forEach(m=>{var g;((g=m.nickname)==null?void 0:g.indexOf(f))===-1?m.hide=!0:m.hide=!1})}}),null)]),createVNode(NScrollbar,{class:styles$5.student},{default:()=>[a.selectStudents.map(f=>createVNode("div",{class:[styles$5.studentItem,f.hide&&styles$5.hide]},[createVNode("div",{class:styles$5.studentInfo},[createVNode(NAvatar,{src:f.avatar||defultHeade,class:styles$5.studentImg},null),createVNode("span",{class:styles$5.name},[f.nickname])]),createVNode("i",{class:styles$5.iconClose,onClick:()=>p(f)},null)])),o.value&&createVNode(TheEmpty,null,null)]}),createVNode(NSpace,{justify:"end",class:styles$5.btnGroup},{default:()=>[createVNode(NButton,{type:"default",onClick:()=>t("close")},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{type:"primary",onClick:A},{default:()=>[createTextVNode("保存")]})]})])])}}}),AssignHomework=defineComponent({name:"assign-homework",props:{classGroupId:{type:String,default:""},courseScheduleId:{type:String,default:""},chapterLessonCoursewareId:{type:String,default:""},item:{type:Object,default:()=>({})},trainList:{type:Array,default:()=>[]},homeworkType:{type:String,default:"CLASSWORK"},from:{type:String,default:""}},emits:["close","confirm"],setup(e,{emit:t}){const r=useMessage(),a=usePrepareStore(),n=reactive({gradeYear:"",currentTime:dayjs(dayjs().format("YYYY-MM-DD")).valueOf(),homeworkObj:"CLASS",homeworkType:e.homeworkType,workVisiable:!1,id:null,uploading:!1,title:e.item.title,courseScheduleId:e.courseScheduleId||null,chapterLessonCoursewareId:e.chapterLessonCoursewareId||null,gradeList:[],classList:[],currentGradeNum:null,expireDate:dayjs().add(7,"day").format("YYYY-MM-DD HH:mm"),classGroupId:null,studentList:[],selectIds:[]}),s=ref(),i=ref(0),o=ref(0),l=ref(null),c=async()=>{try{const u=e.classGroupId||a.getClassGroupId,{data:y}=await classGroupList({upgradeFlag:!0,gradeYear:n.gradeYear}),S=y||[],b=[];S.forEach(x=>{const C=[];x.classGroupList.forEach(D=>{C.push({label:D.currentClass+"班",value:D.id,lastStudy:D.lastStudy,preStudentNum:D.preStudentNum}),D.id===u&&(n.currentGradeNum=D.currentGradeNum,n.classGroupId=[D.id])}),b.push({label:gradeToCN[x.currentGradeNum],value:x.currentGradeNum,childrens:C})}),n.gradeList=b,n.currentGradeNum&&p()}catch(u){}},p=async()=>{try{n.gradeList.forEach(u=>{u.value===n.currentGradeNum&&(n.classList=u.childrens)})}catch(u){}},A=async()=>{var u;(u=s.value)==null||u.validate(async y=>{if(!y){n.uploading=!0;try{const S=e.item.lessonPreTrainingDetails||[],b=[];S.forEach(C=>{b.push({trainingType:C.trainingType,musicId:C.musicId,trainingConfigJsonObject:C.trainingConfigJson})});const x={name:n.title,homeworkObj:n.homeworkObj,homeworkType:n.homeworkType,lessonTrainingDetails:b,expireDate:dayjs(n.expireDate).format("YYYY-MM-DD HH:mm:ss"),classGroupId:n.classGroupId?n.classGroupId.join(","):null,studentIds:null,courseScheduleId:n.courseScheduleId,chapterLessonCoursewareId:n.chapterLessonCoursewareId};if(n.homeworkObj==="PERSON"){x.classGroupId="";const C=[];n.studentList.forEach(D=>{C.push(D.id)}),x.studentIds=C.join(",")}await lessonTrainingAdd(x),r.success("布置成功"),t("close"),t("confirm")}catch(S){}n.uploading=!1}})},d=async()=>{try{const{data:u}=await api_getCurrentGradeYear({});console.log(u),n.gradeYear=u}catch(u){}},f=async()=>{try{const{data:u}=await request.get("/edu-app/open/paramConfig/queryByParamNameList",{params:{paramNames:"homework_max_deadline_time,homework_file_expire_time"}});console.log(u,"data"),(u||[]).forEach(S=>{S.paramName==="homework_file_expire_time"?o.value=S.paramValue||0:S.paramName==="homework_max_deadline_time"&&(i.value=S.paramValue||0)}),i.value>0&&(l.value=dayjs(dayjs().add(Number(i.value)+1,"day").format("YYYY-MM-DD")).valueOf(),Number(i.value)<7&&(n.expireDate=dayjs().add(Number(i.value),"day").format("YYYY-MM-DD HH:mm")),console.log(dayjs().add(Number(i.value),"day").format("YYYY-MM-DD"),"pickerEndTime.value"))}catch(u){}},m=u=>{let y=!1;return l.value?y=u<n.currentTime||u>=l.value:y=u<n.currentTime,console.log(y,"1212",u>l.value,n.currentTime,u,l.value),y};onMounted(async()=>{await f(),await d(),await c()});let g,E;if(e.from==="class"){const u=useUserStore();E="assignHomeworkStuBoxClass_drag",g=useDrag(["".concat(E,">.n-card-header"),"".concat(E," .bom_drag")],E,toRef(n,"workVisiable"),u.info.id)}return()=>createVNode("div",{class:styles$6.assignHomeworkContainer},[createVNode(NForm,{ref:s,model:n,labelAlign:"right",labelWidth:"80",labelPlacement:"left"},{default:()=>[createVNode(NFormItem,{label:"布置方式",path:"homeworkObj",rule:[{required:!0,message:"请选择布置方式"}]},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,class:[styles$6.switch,n.homeworkObj==="CLASS"?styles$6.active:""],onClick:()=>n.homeworkObj="CLASS"},{default:()=>[createTextVNode("按班级布置")]}),createVNode(NButton,{secondary:!0,class:[styles$6.switch,n.homeworkObj==="PERSON"?styles$6.active:""],onClick:()=>n.homeworkObj="PERSON"},{default:()=>[createTextVNode("按学生布置")]})]})]}),createVNode(NFormItem,{label:"作业标题",path:"title",rule:[{required:!0,message:"请输入作业标题",trigger:"blur"}]},{default:()=>[createVNode(NInput,{value:n.title,"onUpdate:value":u=>n.title=u,placeholder:"请选择作业标题",clearable:!0},null)]}),createVNode(NFormItem,{label:"年级",path:"currentGradeNum",rule:[{required:!0,message:"请选择年级",trigger:"change",type:"number"}]},{default:()=>[createVNode(NSelect,{disabled:!!e.classGroupId,value:n.currentGradeNum,"onUpdate:value":[u=>n.currentGradeNum=u,()=>{n.classGroupId=null,p()}],placeholder:"请选择年级",options:n.gradeList,clearable:!0},null)]}),n.homeworkObj==="CLASS"?createVNode(NFormItem,{label:"班级",path:"classGroupId",rule:[{required:!0,message:"请选择班级",trigger:"change",type:"array"}]},{default:()=>[createVNode(NSelect,{disabled:!!e.classGroupId,options:n.classList,value:n.classGroupId,"onUpdate:value":u=>n.classGroupId=u,placeholder:"请选择班级",clearable:!0,multiple:!0},null)]}):createVNode(NFormItem,{label:"学生",path:"studentList",rule:[{required:!0,message:"请选择学生",trigger:"change",type:"array"}],class:styles$6.studentSection},{default:()=>[createVNode("span",{class:[styles$6.selectStudentBtn,!n.currentGradeNum&&styles$6.disabled],onClick:()=>{if(!n.currentGradeNum)return;const u=[];n.studentList.forEach(y=>{u.push(y.id)}),n.selectIds=u,n.workVisiable=!0}},[createTextVNode("选择学生")]),n.studentList.length>0&&createVNode(NScrollbar,{class:styles$6.studentList},{default:()=>[createVNode("span",{class:styles$6.firstName},[createTextVNode("当前选中("),n.studentList.length||0,createTextVNode("):")]),n.studentList.map((u,y)=>createVNode("span",{class:styles$6.studentItem},[u.name," ",createVNode("i",{class:styles$6.iconDelete,onClick:()=>{n.studentList.splice(y,1)}},null)]))]})]}),createVNode(NFormItem,{label:"截止时间",path:"expireDate",rule:[{required:!0,message:"请选择截止时间",trigger:"change"}]},{default:()=>[createVNode(NDatePicker,{"formatted-value":n.expireDate,"onUpdate:formatted-value":u=>n.expireDate=u,type:"datetime",clearable:!0,format:"yyyy-MM-dd HH:mm",style:{width:"100%"},isDateDisabled:m},null)]}),o.value>0&&createVNode(NFormItem,{label:" ",class:styles$6.maxExpireTime},{default:()=>[createVNode("div",{class:styles$6.expireDateTip},[createVNode("i",{class:styles$6.expireDateIcon},null),createVNode("span",null,[createTextVNode("作业截止"),o.value,createTextVNode("天后,学生上传的文件将过期,请及时查看")])])]}),createVNode(NSpace,{class:styles$6.updateBtnGroup},{default:()=>[createVNode(NButton,{strong:!0,type:"default",round:!0,onClick:()=>t("close")},{default:()=>[createTextVNode("取消布置")]}),createVNode(NButton,{strong:!0,type:"primary",round:!0,disabled:n.uploading,loading:n.uploading,onClick:A},{default:()=>[createTextVNode("确认布置")]})]})]}),createVNode(NModal,{maskClosable:modalClickMask,show:n.workVisiable,"onUpdate:show":u=>n.workVisiable=u,style:e.from==="class"?{width:"640px",...g.styleDrag.value}:{width:"640px"},preset:"card",showIcon:!1,class:["modalTitle background",E],title:"选择学生",blockScroll:!1},{default:()=>[createVNode(AssignStudent,{classGroupId:e.classGroupId,currentGradeNum:n.currentGradeNum,selectIds:n.selectIds,studentList:n.studentList,classList:n.classList,onClose:()=>n.workVisiable=!1,onConfirm:u=>{n.studentList=u||[],n.workVisiable=!1}},null),e.from==="class"&&createVNode(Dragbom,null,null)]})])}}),searchGroup$1="_searchGroup_noig9_1",searchSelect$1="_searchSelect_noig9_4",inputSearch$1="_inputSearch_noig9_18",searchBtn$1="_searchBtn_noig9_22",btnType$1="_btnType_noig9_28",styles$4={searchGroup:searchGroup$1,searchSelect:searchSelect$1,inputSearch:inputSearch$1,searchBtn:searchBtn$1,btnType:btnType$1},ResourceSearchGroup$1=defineComponent({name:"resource-search-group",props:{type:{type:String,default:"myMusic"}},emits:["search"],setup(e,{emit:t}){const r=useCatchStore(),a=ref(""),n=ref(""),s=reactive({name:"",bookVersionId:"",subjectId:null,musicalInstrumentId:""}),i=()=>{t("search",s)},o=useThrottleFn(()=>i(),500),l=ref([]),c=()=>{const f=r.getMusicTagTree;l.value=[{columnName:f[0].columnName,name:"全部"+f[0].columnName||"",id:""},...f]},p=f=>{for(const m of f)m.instruments&&m.instruments.length>0&&(m.instruments.forEach(g=>{g.columnName="乐器"}),m.children=m.instruments,p(m.instruments))},A=ref([]),d=()=>{const f=r.getSubjectList;p(f),A.value=[{columnName:"声部",name:"全部声部",id:""},...f]};return onMounted(async()=>{await r.getMusicTagTreeApi(),c(),await r.getSubjects(),d(),await r.getSubjects()}),()=>createVNode(Fragment,null,[createVNode("div",{class:styles$4.searchGroup},[createVNode("div",{class:styles$4.searchSelect},[e.type!=="myMusic"&&createVNode(CCascader,{placeholder:"全部版本",showPath:!0,value:a.value,"onUpdate:value":[f=>a.value=f,f=>{s.bookVersionId=f||"",i()}],options:l.value},null),createVNode(CCascader,{value:n.value,"onUpdate:value":f=>n.value=f,childShowAllCheck:!1,placement:"bottom-end",placeholder:"全部声部",options:A.value,onMoreId:f=>{s.musicalInstrumentId=f.childId,s.subjectId=f.parentId,i()}},null)]),createVNode(NInput,{type:"text",placeholder:"请输入搜索关键词",clearable:!0,value:s.name,"onUpdate:value":f=>s.name=f,class:styles$4.inputSearch,onKeyup:f=>{f.code==="Enter"&&o()},onClear:()=>{s.name="",o()}},{prefix:()=>createVNode("span",{class:"icon-search-input",onClick:()=>o()},null)})])])}}),listContainer$1="_listContainer_1gz6z_1",listSection$1="_listSection_1gz6z_5",emptySection$1="_emptySection_1gz6z_8",list$1="_list_1gz6z_1",trainEditModal$1="_trainEditModal_1gz6z_22",styles$3={listContainer:listContainer$1,listSection:listSection$1,emptySection:emptySection$1,list:list$1,trainEditModal:trainEditModal$1},formatType$1=e=>{if(e==="sahreMusic")return 2;if(e==="myMusic")return 3;if(e==="collectMusic")return 4},typeFormat=(e,t)=>{let r=[];return e==="EVALUATION"?r=["".concat(evaluateDifficult[t.evaluateDifficult]),t.practiceChapterBegin||t.practiceChapterEnd?"".concat(t.practiceChapterBegin,"-").concat(t.practiceChapterEnd,"小节"):"全部小节","".concat(t.trainingTimes,"分合格")]:r=["".concat(t.practiceChapterBegin,"-").concat(t.practiceChapterEnd,"小节"),"速度".concat(t.practiceSpeed),"".concat(t.trainingTimes,"分钟")],r},SelectMusic=defineComponent({name:"share-resources",props:{type:{type:String,default:"myMusic"},cardType:{type:String,default:""},from:{type:String,default:""}},setup(e){const t=usePrepareStore(),r=reactive({loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{name:"",type:"MUSIC",musicSheetCategoriesId:"",musicalInstrumentId:"",audioPlayTypes:e.cardType==="homerowk-record"||e.cardType==="prepare"?["PLAY"]:[],sourceType:formatType$1(e.type),status:1,versionFlag:!1,musicSubject:null},tableList:[],editStatus:!1,editItem:{},show:!1,item:{}}),a=async()=>{try{if(!t.getSubjectId&&!["homerowk-record","prepare"].includes(e.cardType))return;r.pagination.page===1&&(r.loading=!0);const{data:p}=await materialQueryPage({...r.searchGroup,...r.pagination});r.loading=!1;const A=p.rows||[],d=[];A.forEach(f=>{const m=t.getTrainList.findIndex(g=>g.musicId===f.id);d.push({id:f.id,coverImg:f.coverImg||f.musicSvg,type:"MUSIC",title:f.name,isCollect:!!f.favoriteFlag,refFlag:f.refFlag,isSelected:f.sourceFrom==="PLATFORM",content:f.id,audioPlayTypeArray:f.audioPlayTypes?f.audioPlayTypes.split(","):[],containAccompaniment:f.containAccompaniment,xmlFileUrl:f.xmlFileUrl})}),r.tableList.push(...d),r.finshed=p.pages<=p.current}catch(p){r.loading=!1}},n=async p=>{r.pagination.page=1,r.tableList=[],r.searchGroup=Object.assign(r.searchGroup,p),a()};watch(()=>t.getSubjectId,()=>{n(r.searchGroup)});const s=useThrottleFn(()=>{r.pagination.page=r.pagination.page+1,a()},500),i=async p=>{var f;let A="init",d=null;try{const m=await request$1.get(p.xmlFileUrl,{mode:"cors"});d=(f=new DOMParser().parseFromString(m,"text/xml").getElementsByTagName("part")[0])==null?void 0:f.getElementsByTagName("measure"),A="success"}catch(m){A="error"}A=="success"?p.practiceChapterMax=d.length:p.practiceChapterMax=0,p.coursewareKnowledgeDetailId=t.getSelectKey,p.subjectId=t.getSubjectId,r.editItem=p,r.editStatus=!0},o=async p=>{try{await favorite({materialId:p.id,favoriteFlag:p.isCollect?0:1,type:p.type}),p.isCollect=!p.isCollect}catch(A){}};onMounted(()=>{a(),eventGlobal.on("onTrainDragItem",(p,A)=>{i(p)})});let l,c;if(e.from==="class"){const p=useUserStore();c="workSetingBoxClass_drag",l=useDrag(["".concat(c,">.n-card-header"),"".concat(c," .bom_drag")],c,toRef(r,"editStatus"),p.info.id)}return()=>createVNode("div",null,[createVNode(ResourceSearchGroup$1,{type:e.type,onSearch:p=>n(p)},null),createVNode(NScrollbar,{class:[styles$3.listContainer,e.type==="myMusic"?styles$3.listNoMusic:""],onScroll:p=>{var m,g,E;const A=(m=p.target)==null?void 0:m.clientHeight,d=(g=p.target)==null?void 0:g.scrollTop,f=(E=p.target)==null?void 0:E.scrollHeight;A+d+20>=f&&!r.finshed&&!r.loading&&s()}},{default:()=>[createVNode(NSpin,{show:r.loading,size:"small"},{default:()=>[createVNode("div",{class:[styles$3.listSection,!r.loading&&r.tableList.length<=0?styles$3.emptySection:""]},[r.tableList.length>0&&createVNode("div",{class:styles$3.list},[r.tableList.map(p=>createVNode(CardType,{isShowAdd:!0,item:p,draggable:!0,isShowCollect:!0,disabledMouseHover:!1,onClick:()=>{p.type!=="IMG"&&(r.show=!0,r.item={instrumentId:r.searchGroup.musicalInstrumentId||null,...p})},onAdd:A=>i(A),onCollect:A=>o(A)},null))]),!r.loading&&r.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{from:e.from,show:r.show,"onUpdate:show":p=>r.show=p,item:r.item,isDownload:!1},null),createVNode(NModal,{maskClosable:modalClickMask,show:r.editStatus,"onUpdate:show":p=>r.editStatus=p,style:e.from==="class"?l.styleDrag.value:{},class:["modalTitle background",styles$3.trainEditModal,c],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:r.editItem,type:"homework",onClose:()=>r.editStatus=!1,onConfirm:p=>{const A=typeFormat(p.trainingType,p.trainingConfigJson),d={...p,id:null,musicName:r.editItem.title,typeList:A};eventGlobal.emit("onTrainAddItem",d)}},null),e.from==="class"&&createVNode(Dragbom,null,null)]})])}}),Train=defineComponent({name:"courseware-modal",props:{lessonPreTraining:{type:Object,default:()=>({})},cardType:{type:String,default:""},classGroupId:{type:String,default:""},coursewareKnowledgeDetailId:{type:String,default:""},courseScheduleId:{type:String,default:""},from:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){var S;console.log(e.courseScheduleId,"courseScheduleId"),useCatchStore();const r=usePrepareStore(),a=useDialog(),n=useMessage(),s=reactive({title:(S=e.lessonPreTraining)==null?void 0:S.title,preBtnLoading:!1,showAttendClass:!1,list:[],drag:!0,loadingStatus:!1,trainList:[],assignHomeworkStatus:!1,editStatus:!1,editItem:{},removeIds:[],removeVisiable1:!1,preSaveVisiable:!1}),i=async()=>{var b,x;s.loadingStatus=!0;try{if(!((b=e.lessonPreTraining)!=null&&b.id))return s.loadingStatus=!1;const{data:C}=await lessonPreTrainingV2Detail({id:(x=e.lessonPreTraining)==null?void 0:x.id}),D=C.lessonPreTrainingDetails||[],I=[];s.title=C.title,D.forEach(B=>{let O=[];const R=B.trainingConfigJson;B.trainingType==="EVALUATION"?O=["".concat(evaluateDifficult[R.evaluateDifficult]),R.practiceChapterBegin||R.practiceChapterEnd?"".concat(R.practiceChapterBegin,"-").concat(R.practiceChapterEnd,"小节"):"全部小节","".concat(R.trainingTimes,"分合格")]:O=["".concat(R.practiceChapterBegin,"-").concat(R.practiceChapterEnd,"小节"),"速度".concat(R.practiceSpeed),"".concat(R.trainingTimes,"分钟")],I.push({typeList:O||[],...B})}),r.setTrainList(I||[]);const N=[];I.forEach(B=>{s.removeIds.includes(B.id)||N.push(B)}),s.trainList=N||[]}catch(C){}s.loadingStatus=!1};watch(()=>r.getSelectKey,()=>{eventGlobal.emit("teacher-slideshow",!1),t("change",{status:!1}),s.trainList=[],i()});const o=b=>{s.removeIds.push(b.id);const x=s.trainList.findIndex(C=>C.id===b.id);s.trainList.splice(x,1)},l=async b=>{try{a.warning({title:"提示",content:"该训练已下架,是否删除?",positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:async()=>{s.removeIds.push(b.id),await lessonPreTrainingDelete({ids:b.id}),n.success("删除成功"),i()}})}catch(x){}},c=async()=>{var b,x;s.preBtnLoading=!0;try{const C=[];s.trainList.forEach(I=>{C.push({trainingType:I.trainingType,musicId:I.musicId,trainingConfigJson:I.trainingConfigJson,musicName:I.musicName})});const{data:D}=await lessonPreTrainingV2Save({title:s.title,id:(b=e.lessonPreTraining)==null?void 0:b.id,coursewareKnowledgeDetailId:e.coursewareKnowledgeDetailId||r.getSelectKey,lessonPreTrainingDetails:C,courseScheduleId:e.courseScheduleId,chapterLessonCoursewareId:(x=e.lessonPreTraining)==null?void 0:x.chapterId});n.success("保存成功"),r.setIsEditTrain(!1),s.removeIds=[],t("change",{status:!1,saveWork:!0,lessonPreTrainingId:D.id})}catch(C){}s.preBtnLoading=!1},p=()=>{const b=document.querySelector("#model-homework-height");b&&useResizeObserver(b,x=>{const C=x[0],{height:D}=C.contentRect;b.style.setProperty("--window-page-lesson-height",D+"px")})};onMounted(async()=>{p(),await i(),eventGlobal.on("onTrainAddItem",b=>{s.drag=!0,b.id=b.id||new Date().getTime()+"__tmp",s.trainList.push(b),r.setTrainList(s.trainList)})}),onUnmounted(()=>{s.trainList=[],r.setTrainList([])});let A,d;if(e.from==="class"){const b=useUserStore();d="workSetingBoxClass_drag",A=useDrag(["".concat(d,">.n-card-header"),"".concat(d," .bom_drag")],d,toRef(s,"editStatus"),b.info.id)}let f,m;if(e.from==="class"){const b=useUserStore();m="workClearBoxClass_drag",f=useDrag(["".concat(m,">.n-card-header"),"".concat(m," .bom_drag")],m,toRef(s,"removeVisiable1"),b.info.id)}let g,E;if(e.from==="class"){const b=useUserStore();E="workSaveBoxClass_drag",g=useDrag(["".concat(E,">.n-card-header"),"".concat(E," .bom_drag")],E,toRef(s,"preSaveVisiable"),b.info.id)}let u,y;if(e.from==="class"){const b=useUserStore();y="workArrangeImmediatelyBoxClass_drag",u=useDrag(["".concat(y,">.n-card-header"),"".concat(y," .bom_drag")],y,toRef(s,"assignHomeworkStatus"),b.info.id)}return()=>createVNode("div",{class:styles$6.coursewareModal},[createVNode("div",{class:styles$6.btnGroup},[createVNode(NSpace,null,{default:()=>[createVNode("div",{class:styles$6.btnItem},[createVNode("span",{class:styles$6.btnTitle},[createVNode("i",{style:{color:"#ea4132",fontStyle:"normal"}},[createTextVNode("*")]),createTextVNode("标题:")]),createVNode(NInput,{placeholder:"请输入标题",value:s.title,"onUpdate:value":b=>s.title=b,maxlength:100},null)])]}),createVNode("div",{class:styles$6.spaceBtnGroup},[createVNode(NButton,{bordered:!1,type:"error",disabled:s.trainList.length<=0,onClick:()=>{s.removeVisiable1=!0}},{default:()=>[createTextVNode("清空")]}),createVNode(NButton,{bordered:!1,type:"error",onClick:()=>{r.setIsEditTrain(!1),s.removeIds=[],t("change",{status:!1})}},{default:()=>[createTextVNode("取消")]}),(e.cardType!=="homeworkRecord"||e.courseScheduleId)&&createVNode(NButton,{bordered:!1,type:"default",onClick:()=>{if(!s.title){n.error("请输入标题");return}s.preSaveVisiable=!0}},{default:()=>[createTextVNode("保存")]}),(e.cardType==="homeworkRecord"||e.courseScheduleId)&&createVNode(NButton,{type:"primary",disabled:s.trainList.length<=0,onClick:()=>{if(!s.title){n.error("请输入标题");return}let b=0;if(s.trainList.forEach(x=>{x.removeFlag||b++}),b<=0){n.error("作业内容不能为空");return}s.assignHomeworkStatus=!0}},{default:()=>[createTextVNode("立即布置")]})])]),createVNode(NScrollbar,{class:[styles$6.listContainer,"train-container"]},{default:()=>[createVNode(NSpin,{show:s.loadingStatus},{default:()=>[createVNode("div",{class:[styles$6.listSection,"train-listSection",!s.loadingStatus&&r.getTrainList.length<=0?styles$6.emptySection:""],onDragenter:b=>{b.preventDefault()},onDragover:b=>{b.preventDefault()},onDrop:b=>{let x=b.dataTransfer.getData("text");x=x?JSON.parse(x):{},x.id&&eventGlobal.emit("onTrainDragItem",x)}},[s.trainList.length>0&&createVNode(Fragment,null,[createVNode(Draggable,{modelValue:s.trainList,"onUpdate:modelValue":b=>s.trainList=b,itemKey:"id",componentData:{itemKey:"id",tag:"div",animation:200,group:"description",disabled:!1},class:styles$6.list},{item:b=>{const x=b.element;return createVNode("div",{"data-id":x.musicId,class:styles$6.itemBlock},[createVNode(TrainType,{from:e.from,item:x,isDelete:!0,type:"prepare",onDelete:C=>o(C),offShelf:!!x.removeFlag,onOffShelf:()=>l(x),onEdit:C=>{const{trainingConfigJson:D,id:I,musicId:N,...B}=C;s.editItem={...B,id:N,trainId:I,...D},s.editStatus=!0}},null)])}})]),!s.loadingStatus&&r.getTrainList.length<=0&&createVNode(TheEmpty,{description:"暂无作业"},null)])]})]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?A.styleDrag.value:{},show:s.editStatus,"onUpdate:show":b=>s.editStatus=b,class:["modalTitle background",styles$6.trainEditModal,d],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:s.editItem,onClose:()=>s.editStatus=!1,onConfirm:b=>{s.editItem={};const x=typeFormat(b.trainingType,b.trainingConfigJson),C={...b,typeList:x};s.trainList.forEach(D=>{D.id===C.id&&(D.trainingConfigJson=C.trainingConfigJson,D.trainingType=C.trainingType,D.typeList=C.typeList)}),r.setTrainList(s.trainList)}},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?u.styleDrag.value:{},show:s.assignHomeworkStatus,"onUpdate:show":b=>s.assignHomeworkStatus=b,preset:"card",showIcon:!1,class:["modalTitle background",styles$6.assignHomework,y],title:"布置作业",blockScroll:!1},{default:()=>[createVNode(AssignHomework,{from:e.from,classGroupId:e.classGroupId,courseScheduleId:e.courseScheduleId,chapterLessonCoursewareId:e.lessonPreTraining.chapterId,homeworkType:e.courseScheduleId?"HOMEWORK":"CLASSWORK",item:{title:s.title,lessonPreTrainingDetails:s.trainList},onClose:()=>s.assignHomeworkStatus=!1,onConfirm:()=>{e.cardType==="homeworkRecord"&&(s.trainList=[],r.setTrainList([]),t("change",{state:!1}))}},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?f.styleDrag.value:{},show:s.removeVisiable1,"onUpdate:show":b=>s.removeVisiable1=b,preset:"card",class:["modalTitle",styles$6.removeVisiable1,m],title:"清空资源"},{default:()=>[createVNode("div",{class:styles$6.studentRemove},[createVNode("p",null,[createTextVNode("请确认是否要清空作业?")]),createVNode(NSpace,{class:styles$6.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,type:"primary",onClick:()=>{s.trainList.forEach(b=>{s.removeIds.push(b.id)}),s.trainList=[],r.setTrainList([]),s.removeVisiable1=!1}},{default:()=>[createTextVNode("确定")]}),createVNode(NButton,{round:!0,onClick:()=>s.removeVisiable1=!1},{default:()=>[createTextVNode("取消")]})]})]),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?g.styleDrag.value:{},show:s.preSaveVisiable,"onUpdate:show":b=>s.preSaveVisiable=b,preset:"card",class:["modalTitle",styles$6.removeVisiable1,E],title:"保存"},{default:()=>[createVNode(TheMessageDialog,{content:"是否保存当前页面编辑内容?",cancelButtonText:"取消",confirmButtonText:"保存",onClose:()=>s.preSaveVisiable=!1,onConfirm:()=>c()},null),e.from==="class"&&createVNode(Dragbom,null,null)]})])}}),iconScreen="_iconScreen_1r4vd_40",homerowkTabs="_homerowkTabs_1r4vd_51",selectMusicModal="_selectMusicModal_1r4vd_68",trainEditModal="_trainEditModal_1r4vd_81",styles$2={"resource-main":"_resource-main_1r4vd_1",iconScreen,homerowkTabs,selectMusicModal,trainEditModal},searchGroup="_searchGroup_1c8zl_4",searchSelect="_searchSelect_1c8zl_7",inputSearch="_inputSearch_1c8zl_24",searchBtn="_searchBtn_1c8zl_31",btnType="_btnType_1c8zl_37",styles$1={searchGroup,searchSelect,inputSearch,searchBtn,btnType};function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const ResourceSearchGroup=defineComponent({name:"resource-search-group",emits:["search"],props:{type:{type:String,default:"relateResources"}},setup(e,{emit:t}){const r=useCatchStore(),a=ref(""),n=ref(""),s=reactive({type:"MUSIC",name:"",bookVersionId:null,subjectId:null,audioPlayTypes:e.type==="myResources"?"PLAY":"",musicalInstrumentId:""}),i=ref([]),o=()=>{t("search",{...s,audioPlayTypes:s.type==="MUSIC"?s.audioPlayTypes?s.audioPlayTypes==="PLAY_SING"?["PLAY","SING"]:[s.audioPlayTypes]:[]:[]})},l=useThrottleFn(()=>o(),500),c=ref([]),p=()=>{const m=r.getMusicTagTree;c.value=[{columnName:m[0].columnName,name:"全部"+m[0].columnName||"",id:""},...m]},A=m=>{for(const g of m)g.instruments&&g.instruments.length>0&&(g.instruments.forEach(E=>{E.columnName="乐器"}),g.children=g.instruments,A(g.instruments))},d=ref([]),f=()=>{const m=r.getSubjectList;A(m),d.value=[{columnName:"声部",name:"全部声部",id:""},...m],console.log(d.value,"tagSubjectList.value")};return onMounted(async()=>{await r.getMusicTagTreeApi(),p(),await r.getSubjects(),f(),resourceTypeArray.forEach(m=>{i.value.push(m)})}),()=>{let m;return createVNode(Fragment,null,[createVNode("div",{class:styles$1.searchGroup},[createVNode(NSpace,{size:"small",class:styles$1.btnType},_isSlot(m=i.value.map(g=>createVNode(NButton,{type:s.type===g.value?"primary":"default",secondary:s.type!==g.value,round:!0,size:"small",focusable:!1,onClick:()=>{s.type=g.value,l()}},{default:()=>[g.label]})))?m:{default:()=>[m]}),createVNode("div",{class:styles$1.searchSelect},[s.type==="MUSIC"&&e.type==="shareResources"&&createVNode(CCascader,{placeholder:"全部教材",showPath:!0,value:a.value,"onUpdate:value":[g=>a.value=g,g=>{console.log(g,"value"),s.bookVersionId=g||"",o()}],options:c.value},null),createVNode(CCascader,{placeholder:"全部声部",childShowAllCheck:!1,showPath:!0,showAudioPlayType:!(e.type==="myResources"||s.type!=="MUSIC"),value:n.value,"onUpdate:value":g=>n.value=g,options:d.value,onMoreId:g=>{s.musicalInstrumentId=g.childId,s.subjectId=g.parentId,e.type!=="myResources"&&(s.audioPlayTypes=g.audioPlayTypes),o()}},null)]),createVNode(NInput,{type:"text",placeholder:"请输入搜索关键词",clearable:!0,value:s.name,"onUpdate:value":g=>s.name=g,class:styles$1.inputSearch,onKeyup:g=>{g.code==="Enter"&&l()},onClear:()=>{s.name="",l()}},{prefix:()=>createVNode("span",{class:"icon-search-input",onClick:()=>l()},null)})])])}}}),listContainer="_listContainer_x01kc_1",listSection="_listSection_x01kc_5",emptySection="_emptySection_x01kc_8",list="_list_x01kc_1",styles={listContainer,listSection,emptySection,list},formatType=e=>{if(e==="shareResources")return 2;if(e==="myResources")return 3;if(e==="myCollect")return 4;if(e==="relateResources")return 5},ResourceItem=defineComponent({name:"share-resources",props:{type:{type:String,default:"relateResources"}},setup(e,{expose:t}){const r=usePrepareStore();useMessage(),useDialog();const a=reactive({loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,musicalInstrumentId:null,subjectId:null,audioPlayTypes:[],sourceType:formatType(e.type),enableFlag:!0},tableList:[],show:!1,item:{}}),n=async()=>{try{a.pagination.page===1&&(a.loading=!0);const{data:f}=await materialQueryPage({...a.searchGroup,...a.pagination,lessonCoursewareKnowledgeId:e.type==="relateResources"||e.type==="shareResources"?r.getSelectKey:null,relateLessonCoursewareKnowledgeMaterialIds:p()});a.loading=!1;const m=f.rows||[],g=[];m.forEach(E=>{const u=r.getCoursewareList.findIndex(y=>y.materialId===E.id);g.push({id:E.id,coverImg:E.coverImg,type:E.type,title:E.name,isCollect:!!E.favoriteFlag,refFlag:E.refFlag,isSelected:E.sourceFrom==="PLATFORM",containAccompaniment:E.containAccompaniment,content:E.content,sourceForm:"resource-item",audioPlayTypeArray:E.audioPlayTypes?E.audioPlayTypes.split(","):[]})}),a.pagination.page===1?a.tableList=g:a.tableList.push(...g),a.finshed=f.pages<=f.current}catch(f){a.loading=!1}},s=async f=>{a.pagination.page=1,a.tableList=[],a.searchGroup=Object.assign(a.searchGroup,f),n()},i=useDebounceFn(f=>{a.pagination.page=a.pagination.page+1,a.pagination.page=1,a.tableList=[],a.searchGroup=Object.assign(a.searchGroup,f),n()},300);watch(()=>r.getInstrumentId,()=>{s(a.searchGroup)});const o=useThrottleFn(()=>{a.pagination.page=a.pagination.page+1,n()},500),l=async f=>{try{eventGlobal.emit("onPrepareAddItem",{materialId:f.id,coverImg:f.coverImg,refFlag:f.refFlag,type:f.type,title:f.title,isCollect:f.isCollect,isSelected:f.isSelected,audioPlayTypeArray:f.audioPlayTypeArray,content:f.content,removeFlag:!1})}catch(m){}},c=async f=>{try{await favorite({materialId:f.id,favoriteFlag:f.isCollect?0:1,type:f.type}),f.isCollect=!f.isCollect}catch(m){}},p=()=>{let f=[];if(e.type==="relateResources"){const m=[];r.getCoursewareList.forEach(g=>{var E;(E=g.list)==null||E.forEach(u=>{m.push(u.materialId)})}),f=Array(...new Set(m))}return f.join(",")},A=()=>{a.pagination.page=1,a.tableList=[],n()};return onMounted(()=>{A(),e.type==="relateResources"&&eventGlobal.on("onCoursewareUpdate",A)}),onUnmounted(()=>{eventGlobal.off("onCoursewareUpdate",A)}),t({getParams:()=>a.searchGroup}),()=>createVNode("div",null,[createVNode(ResourceSearchGroup,{type:e.type,onSearch:f=>{a.searchGroup=Object.assign(a.searchGroup,f),i(f)}},null),createVNode(NScrollbar,{class:[styles.listContainer,"listContainerResource",a.searchGroup.type!=="MUSIC"||["myResources","myCollect","relateResources"].includes(e.type)?[styles.listNoMusic,"listNoMusicResource"]:""],onScroll:f=>{var u,y,S;const m=(u=f.target)==null?void 0:u.clientHeight,g=(y=f.target)==null?void 0:y.scrollTop,E=(S=f.target)==null?void 0:S.scrollHeight;m+g+20>=E&&!a.finshed&&!a.loading&&o()}},{default:()=>[createVNode(NSpin,{show:a.loading,size:"small"},{default:()=>[createVNode("div",{class:[styles.listSection,"listSectionResource",!a.loading&&a.tableList.length<=0?[styles.emptySection,"emptySectionResource"]:""]},[a.tableList.length>0&&createVNode(Draggable,{modelValue:a.tableList,"onUpdate:modelValue":f=>a.tableList=f,itemKey:"id",group:{name:"description",pull:"clone",put:!1},animation:200,sort:!1,onMove:f=>f.from!==f.to,componentData:{draggable:"row-nav",itemKey:"id",tag:"div",pull:"clone",put:!1,animation:200,group:"description"},class:styles.list},{item:f=>{const m=f.element;return createVNode("div",{"data-id":m.id,class:["itemWrap","itemBlock","row-nav"]},[createVNode("div",{class:"itemWrapBox"},[createVNode(CardType,{isShowAdd:!0,item:m,isShowCollect:!0,draggable:!1,disabledMouseHover:!1,onClick:()=>{m.type!=="IMG"&&(a.show=!0,a.item={instrumentId:a.searchGroup.musicalInstrumentId||null,...m})},onCollect:g=>c(g),onAdd:g=>l(g)},null)])])}}),!a.loading&&a.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{show:a.show,"onUpdate:show":f=>a.show=f,item:a.item,isDownload:!1},null)])}}),ResourceMain=defineComponent({name:"resource-main",props:{cardType:{type:String,default:""},from:{type:String,default:""}},setup(e,{expose:t}){const r=usePrepareStore(),a=useCatchStore(),n=reactive({tabType:"relateResources",tabWorkType:"myMusic",selectMusicStatus:!1,selectResourceStatus:!1,editStatus:!1,editItem:{},searchGroup:{}}),s=ref(),i=ref(),o=ref(),l=ref(),c=ref(),p=ref(),A=async u=>{var b;let y="init",S=null;try{const x=await request$1.get(u.xmlFileUrl,{mode:"cors"}),C=new DOMParser().parseFromString(x,"text/xml");(Array.from(C==null?void 0:C.querySelectorAll("systems"))||[]).forEach(N=>{(Array.from(N==null?void 0:N.querySelectorAll("system"))||[]).forEach(O=>{N==null||N.removeChild(O)})}),S=(b=C.getElementsByTagName("part")[0])==null?void 0:b.getElementsByTagName("measure"),y="success"}catch(x){y="error"}y=="success"?u.practiceChapterMax=S.length:u.practiceChapterMax=0,u.coursewareKnowledgeDetailId=r.getSelectKey,u.subjectId=r.getSubjectId,n.editItem=u,n.editStatus=!0},d=()=>{nextTick(()=>{var u,y;(u=c.value)==null||u.syncBarPosition(),(y=p.value)==null||y.syncBarPosition()})};onMounted(async()=>{d(),await a.getMusicSheetCategory(!0)});let f,m;if(e.from==="class"){const u=useUserStore();m="selectResourceStatusAddBoxClass_drag",f=useDrag(["".concat(m," .select-resource>.n-tabs>.n-tabs-nav--top.n-tabs-nav"),"".concat(m," .bom_drag")],m,toRef(n,"selectMusicStatus"),u.info.id)}let g,E;if(e.from==="class"){const u=useUserStore();E="workSetingBoxClass_drag",g=useDrag(["".concat(E,">.n-card-header"),"".concat(E," .bom_drag")],E,toRef(n,"editStatus"),u.info.id)}return t({resetTabPosition:d}),()=>createVNode("div",{class:[styles$2["resource-main"],n.selectMusicStatus||n.selectResourceStatus?styles$2.resourceClose:""]},[r.getTabType==="courseware"&&!["homerowk-record","prepare"].includes(e.cardType)?createVNode(NTabs,{id:"lessonsIn-0",ref:c,animated:!0,class:styles$2.homerowkTabs,value:n.tabType,paneClass:styles$2.paneTitle,paneWrapperClass:styles$2.paneWrapperContainer,"onUpdate:value":u=>{n.tabType=u}},{suffix:()=>createVNode("div",{class:styles$2.iconScreen,onClick:()=>{var y,S,b,x;let u={};n.tabType==="relateResources"?u=(y=s.value)==null?void 0:y.getParams():n.tabType==="shareResources"?u=(S=i.value)==null?void 0:S.getParams():n.tabType==="myResources"?u=(b=o.value)==null?void 0:b.getParams():n.tabType==="myCollect"&&(u=(x=l.value)==null?void 0:x.getParams()),n.searchGroup=u,n.selectResourceStatus=!0,r.setSelectResourceStatus(!0)}},[createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[createVNode("g",{fill:"none"},[createVNode("path",{d:"M5 6a1 1 0 0 1 1-1h2a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v2a1 1 0 0 0 2 0V6zm0 12a1 1 0 0 0 1 1h2a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3v-2a1 1 0 1 1 2 0v2zM18 5a1 1 0 0 1 1 1v2a1 1 0 1 0 2 0V6a3 3 0 0 0-3-3h-2a1 1 0 1 0 0 2h2zm1 13a1 1 0 0 1-1 1h-2a1 1 0 1 0 0 2h2a3 3 0 0 0 3-3v-2a1 1 0 1 0-2 0v2z",fill:"#198CFE"},null)])])]),default:()=>createVNode(Fragment,null,[createVNode(NTabPane,{name:"relateResources",tab:"相关资源"},{default:()=>[createVNode(ResourceItem,{type:"relateResources",ref:s},null)]}),createVNode(NTabPane,{name:"shareResources",tab:"共享资源"},{default:()=>[createVNode(ResourceItem,{type:"shareResources",ref:i},null)]}),createVNode(NTabPane,{name:"myResources",tab:"我的资源"},{default:()=>[createVNode(ResourceItem,{type:"myResources",ref:o},null)]}),createVNode(NTabPane,{name:"myCollect",tab:"我的收藏"},{default:()=>[createVNode(ResourceItem,{type:"myCollect",ref:l},null)]})])}):createVNode(NTabs,{ref:p,animated:!0,value:n.tabWorkType,paneClass:styles$2.paneTitle,paneWrapperClass:styles$2.paneWrapperContainer,"onUpdate:value":u=>{n.tabWorkType=u}},{suffix:()=>createVNode("div",{class:styles$2.iconScreen,onClick:()=>{n.selectMusicStatus=!0,r.setSelectMusicStatus(!0)}},[createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[createVNode("g",{fill:"none"},[createVNode("path",{d:"M5 6a1 1 0 0 1 1-1h2a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v2a1 1 0 0 0 2 0V6zm0 12a1 1 0 0 0 1 1h2a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3v-2a1 1 0 1 1 2 0v2zM18 5a1 1 0 0 1 1 1v2a1 1 0 1 0 2 0V6a3 3 0 0 0-3-3h-2a1 1 0 1 0 0 2h2zm1 13a1 1 0 0 1-1 1h-2a1 1 0 1 0 0 2h2a3 3 0 0 0 3-3v-2a1 1 0 1 0-2 0v2z",fill:"#198CFE"},null)])])]),default:()=>createVNode(Fragment,null,[createVNode(NTabPane,{name:"myMusic",tab:"我的曲目"},{default:()=>[createVNode(SelectMusic,{from:e.from,cardType:e.cardType,type:"myMusic"},null)]}),createVNode(NTabPane,{name:"sahreMusic",tab:"共享曲目"},{default:()=>[createVNode(SelectMusic,{from:e.from,cardType:e.cardType,type:"sahreMusic"},null)]}),createVNode(NTabPane,{name:"collectMusic",tab:"收藏曲目"},{default:()=>[createVNode(SelectMusic,{from:e.from,cardType:e.cardType,type:"collectMusic"},null)]})])}),createVNode(NModal,{maskClosable:modalClickMask,show:n.selectResourceStatus,"onUpdate:show":[u=>n.selectResourceStatus=u,u=>{u||r.setSelectResourceStatus(u)}],class:["modalTitle",styles$2.selectMusicModal],preset:"card",title:"选择资源"},{default:()=>[createVNode(SelectResources,{type:n.tabType,searchGroup:n.searchGroup},null)]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?f.styleDrag.value:{},show:n.selectMusicStatus,"onUpdate:show":[u=>n.selectMusicStatus=u,u=>{u||r.setSelectMusicStatus(u)}],class:["modalTitle",styles$2.selectMusicModal,m],preset:"card",title:"选择曲目"},{default:()=>[createVNode(SelectMusic$1,{from:e.from,cardType:e.cardType,onAdd:u=>A(u)},null),e.from==="class"&&createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,style:e.from==="class"?g.styleDrag.value:{},show:n.editStatus,"onUpdate:show":u=>n.editStatus=u,class:["modalTitle background",styles$2.trainEditModal,E],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:n.editItem,onClose:()=>n.editStatus=!1,onConfirm:u=>{const y=typeFormat(u.trainingType,u.trainingConfigJson),S={...u,id:null,musicName:n.editItem.title,typeList:y};eventGlobal.emit("onTrainAddItem",S)}},null),e.from==="class"&&createVNode(Dragbom,null,null)]})])}}),AttendClass=defineComponent({name:"CoursewarePlay",props:{type:{type:String,default:""},courseId:{type:String,default:""},instrumentId:{type:[String,Number],default:""},lessonCourseId:{type:[String,Number],default:""},detailId:{type:String,default:""},classGroupId:{type:String,default:""},classId:{type:String,defaault:""},preStudentNum:{type:[String,Number],default:""}},emits:["close"],setup(e,{emit:t}){const r=useMessage(),a=useRoute(),n=useRouter(),s=useUserStore(),i=reactive({width:"100vw"});onUnmounted(()=>{window.removeEventListener("online",E),window.removeEventListener("offline",u)});const o=reactive({type:"class",courseId:"",instrumentId:"",lessonCourseId:"",lessonCoursewareDetailId:"",lessonCoursewareSubjectList:[],detailId:"",classGroupId:"",classId:"",preStudentNum:"",knowledgePointList:[],itemList:[],videoRefs:{},audioRefs:{},modelAttendStatus:!1,modalAttendMessage:"本节课未设置课后作业,是否继续?",modelTrainStatus:!1,selectClassStatus:!1,homeworkStatus:!0,removeVisiable:!1,nextEndShow:!1,removeTitle:"",removeContent:"",removeCourseStatus:!1,teacherChapterName:"",lessonPreTrainingId:null,selectResourceStatus:!1,videoState:"init",videoItemRef:null,animationState:"start"}),l=reactive({isAutoPlay:!1,nowTime:0,model:!0,isAnimation:!0,timer:null,item:null});ref(!1);const c=async()=>{try{const V=await api_teacherChapterLessonCoursewareDetail(o.courseId);o.teacherChapterName=V.data.name||"",o.lessonPreTrainingId=V.data.lessonPreTrainingId;const $=V.data.chapterKnowledgeList||[],K=[],z=[];$.forEach((X,re)=>{if(!Array.isArray(X.chapterKnowledgeMaterialList))return;const se=[];X.chapterKnowledgeMaterialList.forEach(ie=>{ie.removeFlag||se.push({id:ie.id,materialId:ie.bizId,coverImg:ie.bizInfo.coverImg,type:ie.type,title:ie.bizInfo.name,dataJson:ie.dataJson,isCollect:!!ie.favoriteFlag,isSelected:ie.source==="PLATFORM",audioPlayTypeArray:ie.audioPlayTypes?ie.audioPlayTypes.split(","):[],content:ie.bizInfo.content,parentIndex:re})}),K.push({title:X.name,list:se}),z.push(...se)}),o.knowledgePointList=K,o.itemList=z==null?void 0:z.map(X=>({...X,iframeRef:null,videoEle:null,audioEle:null,autoPlay:V.data.autoPlay||!1,isprepare:!1,isRender:!1})),setTimeout(()=>{o.animationState="end"},500)}catch(V){console.log(V)}},p=ref(!1),A=ref(!1),d=ref(!1),f=V=>{var $,K,z,X,re,se,ie,pe,Se;if((($=V.data)==null?void 0:$.api)==="headerTogge"&&(l.model=V.data.show||V.data.playState!="play"),((K=V.data)==null?void 0:K.api)==="onAttendToggleMenu"&&(l.model=!l.model),((z=V.data)==null?void 0:z.api)==="api_fingerPreView"&&(clearInterval(l.timer),l.model=!V.data.state),((X=V.data)==null?void 0:X.api)==="documentBodyKeyup"&&(((re=V.data)==null?void 0:re.code)==="ArrowUp"&&(L(),P("up")),((se=V.data)==null?void 0:se.code)==="ArrowDown"&&(L(),P("down")),((ie=V.data)==null?void 0:ie.code)==="Tab"&&m()),((pe=V.data)==null?void 0:pe.api)==="callBack"&&(Z(),k.callShow=!1),((Se=V.data)==null?void 0:Se.api)==="onLogin"){const be=document;be.exitFullscreen?be.exitFullscreen():be.mozCancelFullScreen?be.mozCancelFullScreen():be.webkitExitFullscreen&&be.webkitExitFullscreen(),s.logout(),n.replace("/login")}},m=()=>{var $,K,z,X,re,se,ie,pe,Se,be,Fe,Pe;const V=o.itemList[y.activeIndex];V.type==="VIDEO"&&V.videoEle&&(($=V.videoEle)!=null&&$.paused()?(K=V.videoEle)==null||K.play():(z=V.videoEle)==null||z.pause()),V.type==="SONG"&&V.audioEle&&((X=o.audioRefs[y.activeIndex])==null||X.onToggleAudio()),V.type==="MUSIC"&&((se=(re=V.iframeRef)==null?void 0:re.contentWindow)==null||se.postMessage({api:"togglePlayState"},"*")),V.type==="LISTEN"&&(console.log(V.type,"listening"),(pe=(ie=V.iframeRef)==null?void 0:ie.contentWindow)==null||pe.postMessage({api:"startPlayState"},"*")),V.type==="RHYTHM"&&((be=(Se=V.iframeRef)==null?void 0:Se.contentWindow)==null||be.postMessage({api:"setPlayState",data:!0},"*")),V.type==="PPT"&&(console.log(V.iframeRef,"activeItem.iframeRef;"),(Fe=V.iframeRef)==null||Fe.focus(),((Pe=V.iframeRef)==null?void 0:Pe.contentWindow).postMessage({type:"focus"},"*"))};onMounted(async()=>{const V=a.query;if(o.type=e.type||V.type,o.courseId=e.courseId||V.courseId,o.instrumentId=e.instrumentId||V.instrumentId,o.detailId=e.detailId||V.detailId,o.lessonCourseId=e.lessonCourseId||V.lessonCourseId,o.classGroupId=e.classGroupId||V.classGroupId,o.classId=e.classId||V.classId,o.preStudentNum=e.preStudentNum||V.preStudentNum,window.addEventListener("message",f),o.classId){const $=await api_cousseScheduleDetail(o.classId);o.courseId=$.data.useChapterLessonCoursewareId}if(c(),b(),o.type==="preview"){const $=[2,10];let K=oe.length-1;for(;K>=0;)$.includes(oe[K].id)&&oe.splice(K,1),K--}ce(),window.addEventListener("online",E),window.addEventListener("offline",u),document.addEventListener("keydown",$=>{$.stopPropagation(),$.preventDefault(),!(o.nextEndShow||o.removeVisiable||o.selectResourceStatus||d.value||A.value||p.value||o.modelTrainStatus||o.modelAttendStatus||o.selectClassStatus||k.callShow||k.whiteboardShow||k.penShow||y.chapterOpen||y.open)&&(console.log($.code,"code"),$.code==="ArrowUp"||$.code==="PageUp"?(L(),P("up")):$.code==="ArrowDown"||$.code==="PageDown"?(L(),P("down")):$.code==="Tab"&&(console.log("Space clicked"),m()))})});const g=ref(),E=()=>{clearTimeout(g.value)},u=()=>{g.value=setTimeout(()=>{r.info("请检查网络",{showIcon:!1,render:V=>createVNode("div",{style:"background: rgba(0,0,0,.6); color: #fff; border-radius: 8px; padding: 6px 16px;"},[V.content])})},3e3)},y=reactive({open:!1,activeIndex:0,courseActiveIndex:0,toolOpen:!1,chapterOpen:!1,chapterDetails:[],courseId:null,chapterLoading:!1});watch(()=>[y.open,y.chapterOpen],V=>{setTimeout(()=>{const $=document.querySelectorAll(".n-drawer-container");V[0]||V[1]?$==null||$.forEach(K=>{K.classList.remove("n-drawer-container-relative")}):$==null||$.forEach(K=>{K.classList.add("n-drawer-container-relative")})},200)});const S=(V,$,K=[])=>{for(const z of $){if(z.knowledgeList&&z.knowledgeList.length>0){const X=S(V,z.knowledgeList,[...K,z.id]);if(X.includes(V))return X}if(z.id===V)return[...K,V]}return K},b=async()=>{try{const V=await lessonCoursewareDetail({id:o.lessonCourseId,instrumentId:o.instrumentId});y.chapterDetails=V.data.lessonList||[];const $=S(o.detailId,y.chapterDetails);o.lessonCoursewareDetailId=$[0],console.log(V.data,"data"),o.lessonCoursewareSubjectList=V.data.instrumentList||[]}catch(V){}},x=async()=>{try{if(!o.classId)return;await courseScheduleUpdate({lessonCoursewareKnowledgeDetailId:o.detailId,id:o.classId})}catch(V){}},C=computed(()=>{let V="";return y.chapterDetails.forEach($=>{var K;$.id===o.lessonCoursewareDetailId&&((K=$.knowledgeList)==null||K.forEach(z=>{z.id===o.detailId&&(V=z.name)}))}),V}),D=(V=!0)=>{var $,K,z,X,re,se,ie,pe,Se,be;for(let Fe=0;Fe<o.itemList.length;Fe++){const Pe=o.itemList[Fe];if(Pe.type==="VIDEO"&&Pe.videoEle)try{V&&(($=Pe.videoEle)==null||$.currentTime(0)),(K=Pe.videoEle)==null||K.pause()}catch(ke){}Pe.type==="SONG"&&Pe.audioEle&&((z=Pe.audioEle)==null||z.stop()),Pe.type==="MUSIC"&&((re=(X=Pe.iframeRef)==null?void 0:X.contentWindow)==null||re.postMessage({api:"setPlayState"},"*")),(Pe.type==="INSTRUMENT"||Pe.type==="MUSICIAN"||Pe.type==="MUSIC_WIKI"||Pe.type==="THEORY")&&((se=Pe.iframeRef)==null||se.handleChangeAudio("pause")),Pe.type==="RHYTHM"&&((pe=(ie=Pe.iframeRef)==null?void 0:ie.contentWindow)==null||pe.postMessage({api:"setPlayState",data:!1},"*")),Pe.type==="LISTEN"&&((be=(Se=Pe.iframeRef)==null?void 0:Se.contentWindow)==null||be.postMessage({api:"setPlayState"},"*"))}},I=V=>{const $=o.itemList.findIndex(K=>K.id==V);$>-1&&M($)},N=()=>{clearTimeout(l.timer),r.destroyAll(),l.timer=setTimeout(()=>{l.model=!1,Object.values(o.videoRefs).map(V=>V==null?void 0:V.toggleHideControl(!1)),Object.values(o.audioRefs).map(V=>V==null?void 0:V.toggleHideControl(!1))},4e3)},B=()=>{clearTimeout(l.timer),r.destroyAll(),l.model=!1,Object.values(o.videoRefs).map(V=>V==null?void 0:V.toggleHideControl(!1)),Object.values(o.audioRefs).map(V=>V==null?void 0:V.toggleHideControl(!1))},O=(V=!0)=>{l.model=V,Object.values(o.videoRefs).map($=>$==null?void 0:$.toggleHideControl(V)),Object.values(o.audioRefs).map($=>$==null?void 0:$.toggleHideControl(V))},R=V=>{if(V&&V.type==="VIDEO"){const $=V.videoEle;$&&($.paused?(r.destroyAll(),$.play()):(r.warning("已暂停"),$.pause()))}},_=ref(3),G=[{prev:{transform:"translate3d(0, 0, -800px) rotateX(180deg)"},next:{transform:"translate3d(0, 0, -800px) rotateX(-180deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px)"},next:{transform:"translate3d(100%, 0, -800px)"}},{prev:{transform:"translate3d(-50%, 0, -800px) rotateY(80deg)"},next:{transform:"translate3d(50%, 0, -800px) rotateY(-80deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px) rotateY(-120deg)"},next:{transform:"translate3d(100%, 0, -800px) rotateY(120deg)"}},{prev:{transform:"translate3d(-50%, 50%, -800px) rotateZ(-14deg)",opacity:0},next:{transform:"translate3d(50%, 50%, -800px) rotateZ(14deg)",opacity:0}},{prev:{transform:"translateZ(-800px) rotate3d(0, -1, 0, 90deg)",opacity:0},next:{transform:"translateZ(-800px) rotate3d(0, 1, 0, 90deg)",opacity:0},current:{transitionDelay:"700ms"}}],j=ref(),M=V=>{y.activeIndex!=V&&(o.animationState="start",o.videoState="init",D(),clearTimeout(j.value),l.model=!0,F(y.activeIndex,V),y.activeIndex=V,nextTick(()=>{q()}),j.value=setTimeout(()=>{const $=o.itemList[V];$&&($.type=="MUSIC"&&(l.model=!0),$.type==="SONG"&&(clearTimeout(l.timer),r.destroyAll()),$.type==="VIDEO"&&(clearTimeout(l.timer),r.destroyAll(),nextTick(()=>{var K;$.error&&((K=$.videoEle)==null||K.src($.content),$.error=!1),o.animationState="end"})),$.type)},l.isAnimation?800:0))},F=(V,$)=>{const K=o.itemList[V],z=o.itemList[$];if(z){if(z.knowledgePointId!=K.knowledgePointId){l.isAnimation=!0;return}const X=K.videoEle,re=z.videoEle;X&&X.duration<8&&V<$||re&&re.duration<8&&V>$?l.isAnimation=!1:l.isAnimation=!0}else l.isAnimation=!((K==null?void 0:K.adviseStudyTimeSecond)<8)},P=async V=>{var $,K;if(V==="up"){if(y.activeIndex>0){M(y.activeIndex-1);return}let z=y.chapterDetails.findIndex(Se=>Se.id==o.lessonCoursewareDetailId);const X=(($=y.chapterDetails[z])==null?void 0:$.knowledgeList)||[];let re=X.findIndex(Se=>Se.id==o.detailId),se=!1,ie="";for(;re>=0&&(re--,re>=0&&X[re].coursewareNum>0&&(se=!0,X[re].lessonCoursewareDetailId,ie=X[re].id),!se););if(se){y.courseId=ie,o.selectClassStatus=!0;return}let pe=!1;for(;z>=0;){z--;const Se=((K=y.chapterDetails[z])==null?void 0:K.knowledgeList)||[];let be=Se.length;for(;be>0&&(Se[be-1].coursewareNum>0&&(pe=!0,Se[be-1].lessonCoursewareDetailId,ie=Se[be-1].id),be--,!pe););if(pe)break}if(pe){y.courseId=ie,o.selectClassStatus=!0;return}}else{if(y.activeIndex<o.itemList.length-1){M(y.activeIndex+1);return}if(!ee.value)return;o.nextEndShow=!0}};function T(){var se,ie;let V=y.chapterDetails.findIndex(pe=>pe.id==o.lessonCoursewareDetailId);const $=((se=y.chapterDetails[V])==null?void 0:se.knowledgeList)||[];let K=$.findIndex(pe=>pe.id==o.detailId),z=!1,X="";for(;K<$.length-1&&(K++,K>=0&&$[K].coursewareNum>0&&(z=!0,$[K].lessonCoursewareDetailId,X=$[K].id),!z););if(z){y.courseId=X,o.selectClassStatus=!0;return}let re=!1;for(;V<=y.chapterDetails.length-1;){V++;const pe=((ie=y.chapterDetails[V])==null?void 0:ie.knowledgeList)||[];let Se=0;for(;Se<=pe.length-1&&(pe[Se].coursewareNum>0&&(re=!0,pe[Se].lessonCoursewareDetailId,X=pe[Se].id),Se++,!re););if(re)break}if(re){y.courseId=X,o.selectClassStatus=!0;return}}watch(()=>y.activeIndex,()=>{const V=o.itemList[y.activeIndex];y.courseActiveIndex=V.parentIndex});const L=(V=!0)=>{clearTimeout(l.timer),l.model=V,Object.values(o.videoRefs).map($=>$==null?void 0:$.toggleHideControl(V)),Object.values(o.audioRefs).map($=>$==null?void 0:$.toggleHideControl(V))},k=reactive({type:"",penShow:!1,whiteboardShow:!1,callShow:!1,callStudentList:[]}),Y=V=>{switch(D(!1),B(),y.toolOpen=!1,k.type=V.type,V.type){case"pen":k.penShow=!0;break;case"whiteboard":k.whiteboardShow=!0;break;case"call":k.callShow=!0;break}},Z=()=>{k.type="init",O(),N()},Q=V=>{V=="setTimeIcon"&&(d.value=!0),V=="beatIcon"&&(p.value=!0),V=="toneIcon"&&(A.value=!0)},te=computed(()=>{var re,se;if(y.activeIndex>0)return!0;let V=y.chapterDetails.findIndex(ie=>ie.id==o.lessonCoursewareDetailId);const $=((re=y.chapterDetails[V])==null?void 0:re.knowledgeList)||[];let K=$.findIndex(ie=>ie.id==o.detailId);if(V<=0&&K<=0)return!1;let z=!1;for(;K>=0;)K--,K>=0&&$[K].coursewareNum>0&&(z=!0);if(z)return!0;if(V<=0)return!1;let X=!1;for(;V>=0;){V--;const ie=((se=y.chapterDetails[V])==null?void 0:se.knowledgeList)||[];let pe=ie.length;for(;pe>0;)ie[pe-1].coursewareNum>0&&(X=!0),pe--;if(X)return!0}return!1}),ee=computed(()=>{var re,se;if(y.activeIndex<o.itemList.length-1)return!0;let V=y.chapterDetails.findIndex(ie=>ie.id==o.lessonCoursewareDetailId);const $=((re=y.chapterDetails[V])==null?void 0:re.knowledgeList)||[];let K=$.findIndex(ie=>ie.id==o.detailId);if(V>=y.chapterDetails.length-1&&K>=$.length-1)return!1;let z=!1;for(;K<$.length-1;)K++,K>=0&&$[K].coursewareNum>0&&(z=!0);if(z)return!0;if(V>=y.chapterDetails.length-1)return!1;let X=!1;for(;V<y.chapterDetails.length-1;){V++;const ie=((se=y.chapterDetails[V])==null?void 0:se.knowledgeList)||[];let pe=0;for(;pe<=ie.length-1;)ie[pe].coursewareNum>0&&(X=!0),pe++;if(X)return!0}return!1}),ne=computed(()=>{const V=o.itemList[y.activeIndex];return V&&V.type&&V.type.toLocaleUpperCase()==="VIDEO"?V:{}}),oe=reactive([{name:"上一个",icon:bottomIconPre,id:11},{name:"下一个",icon:bottomIconNext,id:12},{name:"资源列表",icon:bottomIconResource,id:14},{name:"切换章节",icon:bottomIconSwitch,id:13},{name:"曲目资源",icon:rightIconMusic,id:9},{name:"点名",icon:rightIconCall,id:10},{name:"布置作业",icon:rightIconArrange,id:2},{name:"工具箱",icon:rightIconTool,id:15},{name:"结束课程",name2:"结束预览",icon:rightIconEnd,id:1},{name:"收起",icon:leftIconPackUp,id:8}]),me=[{name:"节拍器",icon:rightIconMetronome,id:5},{name:"计时器",icon:rightIconTimer,id:7},{name:"批注",icon:rightIconPostil,id:3},{name:"白板",icon:rightIconWhiteboard,id:4}],he=ref(!0),ue=ref("left");watch(ue,()=>{var V,$;for(let K=0;K<o.itemList.length;K++){const z=o.itemList[K];["RHYTHM","MUSIC"].includes(z.type)&&(($=(V=z.iframeRef)==null?void 0:V.contentWindow)==null||$.postMessage({api:"imagePos",data:ue.value},"*"))}});const fe=async V=>{switch([8,11,12,13,14].includes(V)||D(!1),V){case 1:if(o.type==="preview")o.removeVisiable=!0,o.removeTitle="结束预览",o.removeContent="请确认是否结束预览?";else{const K=await getStudentAfterWork({courseScheduleId:o.classId,page:1,rows:99});K.data.rows&&K.data.rows.length?(o.removeContent="请确认是否结束课程?",o.removeCourseStatus=!1):(o.removeContent="本次课堂尚未布置作业,是否结束课程?",o.removeCourseStatus=!0),o.removeVisiable=!0,o.removeTitle="结束课程"}break;case 2:if(o.preStudentNum<=0)return;const $=await getStudentAfterWork({courseScheduleId:o.classId,page:1,rows:99});$.data.rows&&$.data.rows.length?(o.modalAttendMessage="本次课程已布置作业,是否继续?",o.modelAttendStatus=!0):(o.modelTrainStatus=!0,nextTick(()=>{ye()}),o.modelAttendStatus=!1);break;case 3:Y({type:"pen",icon:iconNote,name:"批注"});break;case 4:Y({type:"whiteboard",icon:iconWhite,name:"白板"});break;case 5:Q("beatIcon");break;case 6:Q("toneIcon");break;case 7:Q("setTimeIcon");break;case 8:he.value=!1;break;case 9:D(!1),o.selectResourceStatus=!0;break;case 10:if(k.callStudentList.length>0){Y({type:"call",icon:iconWhite,name:"点名"});return}break;case 11:if(!te.value)return;P("up");break;case 12:if(!ee.value)return;P("down");break;case 13:y.chapterOpen=!0;break;case 14:y.open=!0,nextTick(()=>{q()});break}},ce=async()=>{if(o.classId)try{const $=(await getStudentList$1({classGroupId:o.classGroupId,page:1,rows:999})).data||{};if(Array.isArray($.rows)&&$.rows.length>0){const K=[];$.rows.forEach(z=>{K.push({name:z.nickname,img:z.avatar})}),k.callStudentList=[...K]}}catch(V){}},q=()=>{const V=document.querySelectorAll(".drawerCardItemRef");y.activeIndex>=0&&V[y.activeIndex]&&V[y.activeIndex].scrollIntoView()},ye=()=>{const V=document.querySelector("#model-homework-height");V&&useResizeObserver(V,$=>{const K=$[0],{height:z}=K.contentRect;V.style.setProperty("--window-page-lesson-height",z+"px")})};getGuidanceShow();const ve="selCourBoxClass_drag",Ee=useDrag(["".concat(ve,">.n-card-header"),"".concat(ve," .bom_drag")],ve,toRef(o,"selectClassStatus"),s.info.id),Te="selResourBoxClass_drag",De=useDrag(["".concat(Te," .select-resource>.n-tabs>.n-tabs-nav--top.n-tabs-nav"),"".concat(Te," .bom_drag")],Te,toRef(o,"selectResourceStatus"),s.info.id),ge="removeResourBoxClass_drag",Ae=useDrag(["".concat(ge,">.n-card-header"),"".concat(ge," .bom_drag")],ge,toRef(o,"removeVisiable"),s.info.id),Ie="nextEndBoxClass_drag",we=useDrag(["".concat(Ie,">.n-card-header"),"".concat(Ie," .bom_drag")],Ie,toRef(o,"nextEndShow"),s.info.id),Ce="chapterConBoxClass_drag",Me=useDrag(["".concat(Ce,">.n-card-header"),"".concat(Ce," .bom_drag")],Ce,toRef(y,"chapterOpen"),s.info.id),xe="resourcesConBoxClass_drag",Ne=useDrag(["".concat(xe,">.n-card-header"),"".concat(xe," .bom_drag")],xe,toRef(y,"open"),s.info.id),Ve="timerMeterConBoxClass_drag",U=useDrag(["".concat(Ve," .timeBomCon .bom_drag"),"".concat(Ve," .topDragDom")],Ve,d,s.info.id),H="metronomeConBoxClass_drag",W=useDrag(["".concat(H," .topDragDom"),"".concat(H," .bom_drag")],H,p,s.info.id),J="modelTrainStatusConBoxClass_drag",ae=useDrag(["".concat(J,">.n-card-header"),"".concat(J," .bom_drag")],J,toRef(o,"modelTrainStatus"),s.info.id),le="modelTrainHomeWordConBoxClassBoxClass_drag",de=useDrag(["".concat(le,">.n-card-header"),"".concat(le," .bom_drag")],le,toRef(o,"modelAttendStatus"),s.info.id);return()=>createVNode("div",{id:"playContent",class:[styles$k.playContent,"wrap"]},[createVNode("div",{onClick:()=>{clearTimeout(l.timer),l.model=!l.model,Object.values(o.videoRefs).map(V=>V==null?void 0:V.toggleHideControl(l.model)),Object.values(o.audioRefs).map(V=>V==null?void 0:V.toggleHideControl(l.model))}},[createVNode("div",{class:styles$k.coursewarePlay,style:{width:i.width}},[y.chapterLoading?"":createVNode("div",{class:styles$k.wraps},[createVNode("div",{style:ne.value.type&&o.animationState==="end"&&o.videoState==="play"?{zIndex:15,opacity:1}:{opacity:0,zIndex:-1},class:styles$k.itemDiv},[createVNode(VideoPlay,{imagePos:ue.value,ref:V=>o.videoItemRef=V,item:ne.value,showModel:l.model,onClose:N,onLoadedmetadata:V=>{o.itemList[y.activeIndex]&&(o.itemList[y.activeIndex].videoEle=V)},onCanplay:()=>{o.videoState="play"},onPause:()=>{clearTimeout(l.timer),l.model=!0},onEnded:()=>{}},null)]),o.itemList.map((V,$)=>{const K=Math.abs(y.activeIndex-$)<2;return Math.abs(y.activeIndex-$)>4,K?createVNode("div",{key:"index"+$,class:[styles$k.itemDiv,y.activeIndex===$&&styles$k.itemActive,l.isAnimation&&styles$k.acitveAnimation,Math.abs(y.activeIndex-$)<2?styles$k.show:styles$k.hide],style:$<y.activeIndex?G[_.value].prev:$>y.activeIndex?G[_.value].next:{},onClick:z=>{if(z.stopPropagation(),clearTimeout(l.timer),Date.now()-l.nowTime<300){R(V);return}l.nowTime=Date.now(),l.timer=setTimeout(()=>{l.model=!l.model,Object.values(o.videoRefs).map(X=>X==null?void 0:X.toggleHideControl(l.model)),Object.values(o.audioRefs).map(X=>X==null?void 0:X.toggleHideControl(l.model)),l.model&&N()},300)}},[V.type==="VIDEO"?createVNode(Fragment,null,[createVNode("img",{src:V.coverImg,onLoad:()=>{V.isprepare=!0}},null),createVNode(Transition,{name:"van-fade"},{default:()=>[createVNode("div",{class:styles$k.loadWrap},[createVNode(Vue3Lottie,{animationData:playLoadData},null)])]})]):V.type==="IMG"?createVNode("img",{src:V.content},null):V.type==="SONG"?createVNode(AudioPay,{imagePos:ue.value,item:V,activeStatus:y.activeIndex===$,ref:z=>o.audioRefs[$]=z,onLoadedmetadata:z=>{V.audioEle=z,V.isprepare=!0},onTogglePlay:z=>{z||y.open?clearTimeout(l.timer):N()},onEnded:()=>{},onReset:()=>{var z;(z=V.audioEle)!=null&&z.paused||N()}},null):V.type==="PPT"?createVNode("iframe",{src:"https://view.officeapps.live.com/op/embed.aspx?src=".concat(encodeURIComponent(V.content)),onLoad:z=>{nextTick(()=>{console.log(z,"ppt",z.target),V.iframeRef=z.target})},width:"100%",height:"100%",frameborder:"1"},null):V.type==="RHYTHM"?createVNode(RhythmModal,{item:V,activeStatus:y.activeIndex===$,imagePos:ue.value,onSetIframe:z=>{V.iframeRef=z}},null):V.type==="LISTEN"?createVNode(ListenModal,{item:V,"data-vid":V.id,activeStatus:y.activeIndex===$,onSetIframe:z=>{V.iframeRef=z}},null):V.type==="INSTRUMENT"||V.type==="MUSICIAN"?createVNode(InstruemntDetail,{type:"preview",id:V.content,contentType:V.type,activeStatus:y.activeIndex===$,ref:z=>V.iframeRef=z},null):V.type==="MUSIC_WIKI"?createVNode(MusicDetail,{type:"preview",id:V.content,contentType:V.type,activeStatus:y.activeIndex===$,ref:z=>V.iframeRef=z},null):V.type==="THEORY"?createVNode(TheotyDetail,{type:"preview",id:V.content,activeStatus:y.activeIndex===$,ref:z=>V.iframeRef=z},null):createVNode(MusicScore,{activeModel:l.model,instrumentId:o.instrumentId,activeStatus:y.activeIndex===$,"data-vid":V.id,music:V,imagePos:ue.value,onSetIframe:z=>{V.iframeRef=z}},null)]):null})])])]),createVNode("div",{class:[styles$k.rightColumn,he.value&&ue.value==="right"?"":styles$k.rightColumnHide]},[oe.map(V=>createVNode("div",{class:styles$k.columnItemBox},[createVNode("div",{class:[styles$k.columnItem,V.id===2&&o.preStudentNum<=0||V.id===10&&k.callStudentList.length<=0||V.id===11&&!te.value||V.id===12&&!ee.value?styles$k.itemDisabled:""],onClick:()=>fe(V.id)},[createVNode(NTooltip,{showArrow:!1,placement:"left",show:V.id===15?void 0:!1,class:[V.id===15?"columnItemTooltip rightColumnItemTooltip":""]},{trigger:()=>createVNode("img",{src:V.id===8?rightIconPackUp:V.icon},null),default:()=>V.id===15?createVNode("div",{class:"tools"},[me.map($=>createVNode("div",{onClick:()=>fe($.id)},[createVNode("img",{src:$.icon},null),createVNode("div",{class:"tit"},[$.name])]))]):V.id===1&&o.type==="preview"?V.name2:V.name})])]))]),createVNode(NTooltip,{showArrow:!1,placement:"left",show:!1},{trigger:()=>createVNode("div",{class:[styles$k.rightHideIcon,he.value&&ue.value==="right"?"":styles$k.rightIconShow],onClick:()=>{ue.value="right",he.value=!0}},null),default:()=>"按钮镜像"}),createVNode("div",{class:[styles$k.leftColumn,he.value&&ue.value==="left"?"":styles$k.leftColumnHide]},[oe.map(V=>createVNode("div",{class:styles$k.columnItemBox},[createVNode("div",{class:[styles$k.columnItem,V.id===2&&o.preStudentNum<=0||V.id===10&&k.callStudentList.length<=0||V.id===11&&!te.value||V.id===12&&!ee.value?styles$k.itemDisabled:""],onClick:()=>fe(V.id)},[createVNode(NTooltip,{showArrow:!1,placement:"right",show:V.id===15?void 0:!1,class:[V.id===15?"columnItemTooltip":""]},{trigger:()=>createVNode("img",{src:V.icon},null),default:()=>V.id===15?createVNode("div",{class:"tools"},[me.map($=>createVNode("div",{onClick:()=>fe($.id)},[createVNode("img",{src:$.icon},null),createVNode("div",{class:"tit"},[$.name])]))]):""})])]))]),createVNode(NTooltip,{showArrow:!1,placement:"right",show:!1},{trigger:()=>createVNode("div",{class:[styles$k.leftHideIcon,he.value&&ue.value==="left"?"":styles$k.leftIconShow],onClick:()=>{ue.value="left",he.value=!0}},null),default:()=>"按钮镜像"}),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:y.open,"onUpdate:show":V=>y.open=V,preset:"card",class:["modalTitle background",styles$k.drawerContainer,xe],style:Ne.styleDrag.value,title:C.value||"资源列表"},{default:()=>[createVNode(SourceList,{teacherChapterName:o.teacherChapterName,knowledgePointList:o.knowledgePointList,courseActiveIndex:y.courseActiveIndex,activeItem:o.itemList[y.activeIndex],onConfirm:V=>{y.open=!1,I(V.id)}},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:y.chapterOpen,"onUpdate:show":V=>y.chapterOpen=V,preset:"card",class:["modalTitle background",styles$k.drawerContainer,Ce],style:Me.styleDrag.value,title:"切换章节"},{default:()=>[createVNode(Chapter,{treeList:y.chapterDetails,itemActive:o.detailId,onHandleSelect:async V=>{y.courseId=V.itemActive,o.selectClassStatus=!0}},null),createVNode(Dragbom,null,null)]}),k.penShow&&createVNode(Pen,{isDrag:!0,show:k.type==="pen",type:k.type,close:()=>Z()},null),k.whiteboardShow&&createVNode(Pen,{isDrag:!0,show:k.type==="whiteboard",type:k.type,close:()=>Z()},null),k.callShow&&createVNode(Pen,{isDrag:!0,imagePos:ue.value,callStudents:k.callStudentList,show:k.type==="call",type:k.type,close:()=>{Z(),k.callShow=!1}},null),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:o.selectClassStatus,"onUpdate:show":V=>o.selectClassStatus=V,preset:"card",class:["modalTitle background",styles$k.selectClassModal,ve],style:Ee.styleDrag.value,title:"选择课件"},{default:()=>[createVNode(SelectClass,{classId:o.classId,courseId:y.courseId,instrumentId:o.instrumentId,lessonCoursewareSubjectList:o.lessonCoursewareSubjectList,onConfirm:async V=>{y.chapterLoading=!0;try{o.selectClassStatus=!1,o.detailId=V.itemActive,o.courseId=V.chapterId;const $=S(V.itemActive,y.chapterDetails);o.lessonCoursewareDetailId=$[0],o.type!=="preview"&&await x(),await c(),y.activeIndex=0,y.chapterOpen=!1}catch($){}y.chapterLoading=!1}},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:o.modelAttendStatus,"onUpdate:show":V=>o.modelAttendStatus=V,preset:"card",title:"课后作业",style:de.styleDrag.value,class:["modalTitle",styles$k.removeVisiable,le]},{default:()=>[createVNode("div",{class:styles$k.studentRemove},[createVNode("p",null,[o.modalAttendMessage]),createVNode(NSpace,{class:styles$k.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{o.modelTrainStatus=!0,nextTick(()=>{ye()}),o.modelAttendStatus=!1}},{default:()=>[createTextVNode("布置作业")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{D(),o.modelAttendStatus=!1}},{default:()=>[createTextVNode("取消")]})]})]),createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,show:o.modelTrainStatus,"onUpdate:show":V=>o.modelTrainStatus=V,preset:"card",class:["modalTitle background",styles$k.workVisiable,J],style:ae.styleDrag.value,title:"布置作业"},{default:()=>[createVNode("div",{id:"model-homework-height",class:styles$k.workContainer},[createVNode("div",{class:styles$k.workTrain},[createVNode(Train,{from:"class",cardType:"homeworkRecord",lessonPreTraining:{title:o.lessonPreTrainingId?"":o.teacherChapterName+"-课后作业",chapterId:o.courseId,id:o.lessonPreTrainingId},coursewareKnowledgeDetailId:o.detailId,classGroupId:o.classGroupId,courseScheduleId:o.classId,onChange:async V=>{o.modelTrainStatus=V.status,V.saveWork&&o.classId&&(o.lessonPreTrainingId=V.lessonPreTrainingId)}},null)]),createVNode("div",{class:styles$k.resourceMain},[createVNode(ResourceMain,{from:"class",cardType:"homerowk-record"},null)])]),createVNode(Dragbom,null,null)]}),createVNode(MetronomeBox,{modelValue:p.value,"onUpdate:modelValue":V=>p.value=V,dragClass:H,dragStyle:W.styleDrag.value},null),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",class:["background"],show:A.value,"onUpdate:show":V=>A.value=V},{default:()=>[createVNode("div",null,[createVNode(PlaceholderTone,{onClose:()=>{A.value=!1}},null)])]}),createVNode(NModal,{maskClosable:modalClickMask,show:d.value,"onUpdate:show":V=>d.value=V,class:Ve,style:U.styleDrag.value},{default:()=>[createVNode("div",null,[createVNode("img",{class:styles$k.timerMeterClose,src:timerMeterClose,onClick:()=>{d.value=!1}},null),createVNode("div",{class:"topDragDom"},null),createVNode(TimerMeter,null,null)])]}),createVNode(NModal,{maskClosable:modalClickMask,show:o.selectResourceStatus,"onUpdate:show":V=>o.selectResourceStatus=V,class:["modalTitle",styles$k.selectMusicModal,Te],style:De.styleDrag.value,preset:"card",title:"选择资源"},{default:()=>[createVNode(SelectResources,{from:"class",instrumentId:o.instrumentId},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{maskClosable:modalClickMask,transformOrigin:"center",show:o.removeVisiable,"onUpdate:show":V=>o.removeVisiable=V,preset:"card",class:["modalTitle",styles$k.removeVisiable,ge],style:Ae.styleDrag.value,title:o.removeTitle},{default:()=>[createVNode("div",{class:styles$k.studentRemove},[createVNode("p",null,[o.removeContent]),createVNode(NSpace,{class:styles$k.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,onClick:()=>{o.removeCourseStatus?state.application?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),t("close")):window.close():o.removeVisiable=!1}},{default:()=>[o.removeCourseStatus?"结束课程":"取消"]}),createVNode(NButton,{round:!0,type:"primary",onClick:()=>{o.removeCourseStatus?(o.modelTrainStatus=!0,o.removeVisiable=!1,nextTick(()=>{ye()})):state.application?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),t("close")):(window.close(),a.query.source==="admin"&&(storage.remove(ACCESS_TOKEN_ADMIN),window.parent.postMessage({api:"iframe_exit"},"*")))}},{default:()=>[o.removeCourseStatus?"布置作业":"确定"]})]}),createVNode(Dragbom,null,null)])]}),createVNode(NModal,{maskClosable:modalClickMask,style:we.styleDrag.value,"z-index":3e3,transformOrigin:"center",show:o.nextEndShow,"onUpdate:show":V=>o.nextEndShow=V,preset:"card",title:"提示",class:["modalTitle",styles$k.removeVisiable,Ie]},{default:()=>[createVNode("div",{class:styles$k.studentRemove},[createVNode("p",null,[createTextVNode("当前课件已结束,是否进入下一章节")]),createVNode(NSpace,{class:styles$k.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{o.nextEndShow=!1}},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{o.nextEndShow=!1,T()}},{default:()=>[createTextVNode("确认")]})]}),createVNode(Dragbom,null,null)])]})])}}),index=Object.freeze(Object.defineProperty({__proto__:null,default:AttendClass},Symbol.toStringTag,{value:"Module"}));export{AttendClass as A,CoursewareType as C,Draggable as D,MetronomeBox as M,Pen as P,ResourceMain as R,TimerMeter as T,PlaceholderTone as a,Train as b,index as i};