index-a155a642-1714037397871.js 613 KB

12345678910111213
  1. import{bL as BaseTransition,bM as BaseTransitionPropsValidators,bN as Comment,bO as EffectScope,F as Fragment,bP as KeepAlive,bQ as ReactiveEffect,bR as Static,bS as Suspense,bT as Teleport,bU as Text,_ as Transition,bE as TransitionGroup,bV as VueElement,bW as assertNumber,bX as callWithAsyncErrorHandling,bY as callWithErrorHandling,bZ as camelize,b_ as capitalize,a4 as cloneVNode,b$ as compatUtils,S as computed,c0 as createApp,c1 as createBlock,c2 as createCommentVNode,bt as createElementBlock,bu as createBaseVNode,c3 as createHydrationRenderer,c4 as createPropsRestProxy,c5 as createRenderer,c6 as createSSRApp,c7 as createSlots,c8 as createStaticVNode,k as createTextVNode,f as createVNode,c9 as customRef,ca as defineAsyncComponent,d as defineComponent,cb as defineCustomElement,cc as defineEmits,cd as defineExpose,ce as defineModel,cf as defineOptions,cg as defineProps,ch as defineSSRCustomElement,ci as defineSlots,cj as devtools,ck as effect,cl as effectScope,cm as getCurrentInstance,cn as getCurrentScope,co as getTransitionRawChildren,cp as guardReactiveProps,ab as h$1,cq as handleError,cr as hasInjectionContext,cs as hydrate,ct as initCustomFormatter,cu as initDirectivesForSSR,a6 as inject,cv as isMemoSame,cw as isProxy,bh as isReactive,cx as isReadonly,cy as isRef,cz as isRuntimeOnly,cA as isShallow,B as isVNode,cB as markRaw,cC as mergeDefaults,cD as mergeModels,x as mergeProps,Q as nextTick,cE as normalizeClass,cF as normalizeProps,as as normalizeStyle,cG as onActivated,cH as onBeforeMount,o as onBeforeUnmount,aa as onBeforeUpdate,cI as onDeactivated,cJ as onErrorCaptured,p as onMounted,cK as onRenderTracked,cL as onRenderTriggered,cM as onScopeDispose,cN as onServerPrefetch,R as onUnmounted,al as onUpdated,bs as openBlock,cO as popScopeId,a5 as provide,cP as proxyRefs,cQ as pushScopeId,cR as queuePostFlushCb,e as reactive,cS as readonly,r as ref,cT as registerRuntimeCompiler,cU as render,cV as renderList,cW as renderSlot,Z as resolveComponent,cX as resolveDirective,cY as resolveDynamicComponent,cZ as resolveFilter,c_ as resolveTransitionHooks,c$ as setBlockTracking,d0 as setDevtoolsHook,d1 as setTransitionHooks,d2 as shallowReactive,d3 as shallowReadonly,d4 as shallowRef,d5 as ssrContextKey,d6 as ssrUtils,d7 as stop,d8 as toDisplayString,d9 as toHandlerKey,da as toHandlers,db as toRaw,aj as toRef,bI as toRefs,dc as toValue,dd as transformVNodeArgs,de as triggerRef,bw as unref,df as useAttrs,dg as useCssModule,dh as useCssVars,di as useModel,dj as useSSRContext,dk as useSlots,dl as useTransitionState,dm as vModelCheckbox,dn as vModelDynamic,dp as vModelRadio,dq as vModelSelect,X as vModelText,ar as vShow,dr as version$1,ds as warn,y as watch,ak as watchEffect,dt as watchPostEffect,du as watchSyncEffect,dv as withAsyncContext,dw as withCtx,dx as withDefaults,W as withDirectives,dy as withKeys,dz as withMemo,dA as withModifiers,dB as withScopeId,a as useRoute,dC as NInputNumber,w as NSpace,j as NButton,v as NImage,dD as getSecond,M as dayjs,c as useUserStore,D as iframeDislableKeyboard,dE as NSkeleton,bF as commonjsGlobal,bG as getDefaultExportFromCjs,l as NModal,b as useMessage,N as NForm,g as NFormItem,az as NPopselect,C as NSpin,A as eventGlobal,q as NTabs,t as NTabPane,T as NTooltip,U as NPopover,G as NSelect,dF as getAugmentedNamespace,m as NCheckbox,aw as NCheckboxGroup,aJ as NAvatar,h as NInput,aG as NDatePicker,aH as request$1,n as useDialog,u as useRouter,$ as px2vw,s as storage,dG as ACCESS_TOKEN_ADMIN}from"./index-f9fea9d9-1714037397871.js";import{a as vaildMusicScoreUrl,v as vaildUrl}from"./urlUtils-ae95598a-1714037397871.js";import{T as TCPlayer,r as iconSpeed,u as iconplay,v as iconpause,w as useDrag,D as Dragbom,x as tickMp3,y as iconReplay$2,V as Vudio,C as CardPreview,i as teacherChapterLessonCoursewareList,g as gradeToCN,q as lessonTrainingAdd,o as evaluateDifficult,z as lessonPreTrainingV2Detail,A as lessonPreTrainingDelete,B as lessonPreTrainingV2Save,c as lessonCoursewareDetail,L as ListenModal,I as InstruemntDetail,M as MusicDetail,E as TheotyDetail,d as api_teacherChapterLessonCoursewareDetail,F as courseScheduleUpdate}from"./index-526c68fe-1714037397871.js";import{N as NSlider}from"./Slider-a0eb707c-1714037397871.js";import{d as dingPng$1,m as moveTop}from"./ding-8e9054d5-1714037397871.js";import{s as state}from"./state-35acd904-1714037397871.js";import{N as NScrollbar}from"./Scrollbar-38dc678b-1714037397871.js";import{r as resourceTypeArray}from"./searchArray-22e913b5-1714037397871.js";import{u as useCatchStore}from"./catchData-30c07abc-1714037397871.js";import{T as TheSearch}from"./index-310792c5-1714037397871.js";import{i as isCollaose,C as CardType,m as materialQueryPage,f as favorite}from"./api-4e0645e9-1714037397871.js";import{a as useThrottleFn,u as useDebounceFn}from"./index-a57bc807-1714037397871.js";import{T as TheEmpty}from"./index-c133eda4-1714037397871.js";import{u as usePrepareStore,T as TrainUpdate,S as SelectMusic$1}from"./index-2be6fc69-1714037397871.js";import{u as useResizeObserver}from"./index-d1495c81-1714037397871.js";import{g as getStudentList$1,b as getStudentAfterWork}from"./api-c10c06f2-1714037397871.js";import{T as TrainType}from"./index-565d79c3-1714037397871.js";import{g as getGradeYearList,c as classGroupList}from"./api-681dc748-1714037397871.js";import{d as defultHeade}from"./teacherIcon-b8e3946d-1714037397871.js";import{S as SearchInput}from"./index-6e88413c-1714037397871.js";import{i as getStudentList}from"./api-db4b912a-1714037397871.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"})),timerWrap="_timerWrap_1ilvi_1",timerTop="_timerTop_1ilvi_8",timerTopPane="_timerTopPane_1ilvi_19",timerTopPaneActive="_timerTopPaneActive_1ilvi_25",timerItemInfo="_timerItemInfo_1ilvi_30",timerItemInset="_timerItemInset_1ilvi_38",timerItemInfoTop="_timerItemInfoTop_1ilvi_43",dot="_dot_1ilvi_50",dotTop="_dotTop_1ilvi_58",timerItemTopCore="_timerItemTopCore_1ilvi_62",nowTimerWrap="_nowTimerWrap_1ilvi_74",btnGroupModal$4="_btnGroupModal_1ilvi_86",palyIcon="_palyIcon_1ilvi_93",playText="_playText_1ilvi_97",countInput="_countInput_1ilvi_100",dotBtm="_dotBtm_1ilvi_120",chioseWrap="_chioseWrap_1ilvi_124",add$1="_add_1ilvi_144",minus$1="_minus_1ilvi_149",chioseHidden="_chioseHidden_1ilvi_154",numberWrap="_numberWrap_1ilvi_157",styles$n={timerWrap,timerTop,timerTopPane,timerTopPaneActive,timerItemInfo,timerItemInset,timerItemInfoTop,dot,dotTop,timerItemTopCore,nowTimerWrap,btnGroupModal:btnGroupModal$4,palyIcon,playText,countInput,dotBtm,chioseWrap,add:add$1,minus:minus$1,chioseHidden,numberWrap},flipper_vue_vue_type_style_index_0_lang="",_export_sfc$1=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},_sfc_main$1={name:"FlipClock",data(){return{isFlipping:!1,flipType:"down",frontTextFromData:0,backTextFromData:1}},props:{frontText:{type:[Number,String],default:0},backText:{type:[Number,String],default:1},duration:{type:Number,default:600}},methods:{_textClass(e){return"number"+e},_flip(e,t,r){console.log(e,t,r,"=====>"),this.frontTextFromData=t,this.backTextFromData=r,this.flipType=e,this.isFlipping=!0,setTimeout(()=>{this.isFlipping=!1,this.frontTextFromData=r},this.duration)},flipDown(e,t){this._flip("down",e,t)},flipUp(e,t){this._flip("up",e,t)},setFront(e){this.frontTextFromData=e},setBack(e){this.backTextFromData=e}},created(){this.frontTextFromData=this.frontText,this.backTextFromData=this.backText}};function _sfc_render$1(e,t,r,a,n,s){return openBlock(),createElementBlock("div",{class:normalizeClass(["M-Flipper",[n.flipType,{go:n.isFlipping}]])},[createBaseVNode("div",{class:normalizeClass(["digital front",s._textClass(n.frontTextFromData)])},null,2),createBaseVNode("div",{class:normalizeClass(["digital back",s._textClass(n.backTextFromData)])},null,2)],2)}const Flipper=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1]]),playIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAcCAYAAABlL09dAAAAAXNSR0IArs4c6QAAAR1JREFUSEvV1rFOwlAYxfH/eQx2VgcfBJ+AOMqCE5uB6OITyAPwCPogKBMOOhITQuLkaq45iU1KKL2X9nbgWzq0/X03/dpzKzoqhRAE3AAD4BNYSFq17Wf4HngoQb/AEzCT9NO0geEvoFcBbICxpJcmuOEQufEZuJXkRsmVAhvzI5kCc0l+VNFKhQtoCYwk+Vhbp8LGkobbBC5WWjvcNnDRoHK4OeDK4eaCy8O9lrTODbvBN3DRBWx8clbwDrjMveJXYCjpPRfsLJk5bossyQE7Vh2ve+nXBjbkOPWXd1BNYIfQ3DFat8OcCmePzYPh5MjjyuGkwB9A/8hmenQ4KfAd8Fi6MGmHiMK+IIQwAq6A7f9L/ha7MXbef0Gd1B+5cJ8q7osJlgAAAABJRU5ErkJggg==",suspend="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAAAXNSR0IArs4c6QAAAMlJREFUSEvtlj0OwUEQxX+voXARtZBwAgWVA2hVOgfQ6FQ0DkLCBSioxRncgObJikr+X4msaqfaZF/ey8zO7BsRORT4bQ+AOdAEbuEsaVdV23YDWAAjoA4cgJmkuz7k2wyyYVUR23ug/8VxBVpB4Ay0MwQukjplWdjuAccc3DgIPIBaBuApKaRbGLYnwCYHtAwCzmOQ9H6jorA9BVY5mHUSCC2eSpS6KA1amoP0m/7FD6Jb5q+m3wVORaYfdqJ4a0v0xausz3+9fwE+w+v3NO9E8gAAAABJRU5ErkJggg==",add="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAJhJREFUWEftlzEOQEAURPffgwOhRkPrUFoa1NaBuMeXLyTqsQmS2X7mT95uMvvFgaeffOLUtYdcXFPl6YJYCSIyTT/6VVWjY77IVhVpjHjBAbph1vvAuswgL0hkgxmABEiABEggGIGr1a5iQQoF0ViBWYvKvdUQoycaC/GBAOfH4rUrQBEGe4QMQAIkQAIk8FsCry+nodbzHQqVmosCTFkgAAAAAElFTkSuQmCC",minus="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAECAYAAADvRz3UAAAAAXNSR0IArs4c6QAAADNJREFUKFNjXLJ6myfDf4ZZ////l2GgI2BkZHzCwMiQxrhk1bbH9LYc5k+QIwaBAwY4CgCYmB5vQGvODAAAAABJRU5ErkJggg==",soundWav=""+new URL("timer-ee5a21d4.wav",import.meta.url).href,Countdown=defineComponent({name:"timer-countdown",setup(){ref("positive"),useRoute();const e=ref(),t=ref(),r=ref(),a=ref(),n=ref(null),s=ref(null),i=ref(new Date);s.value=setInterval(()=>{i.value=new Date},1e3);const o=ref(0),l=ref(0),c=ref(0),u=ref(!1),m=ref([e,t,r,a]),f=()=>{const C="0000";l.value=0,c.value=0;for(let x=0;x<m.value.length;x++)m.value[x].value.setFront(C[x])},p=new Audio(soundWav),d=()=>{u.value=!0,n.value=setInterval(()=>{const C=getSecond(o.value);if(o.value==4&&p.play(),o.value<=0){E();return}o.value--;const x=getSecond(o.value);for(let F=0;F<m.value.length;F++)C[F]!==x[F]&&m.value[F].value.flipDown(C[F],x[F])},1e3)},g=()=>{setTimeout(()=>{u.value=!1,p.currentTime=0,p.pause(),n.value&&(clearInterval(n.value),n.value=null)},600)},E=()=>{u.value?(g(),o.value=0,p.currentTime=0,p.pause(),setTimeout(()=>{f()},600)):(o.value=0,f())};onMounted(()=>{nextTick(()=>{f()})}),onUnmounted(()=>{p.pause()});const S=C=>{const x=getSecond(o.value);o.value+=C,o.value>3599?o.value=3599:o.value;const F=getSecond(o.value);for(let N=0;N<m.value.length;N++)x[N]!==F[N]&&m.value[N].value.flipDown(x[N],F[N]);l.value=Math.floor(o.value/60),c.value=Math.floor(o.value%60)},b=C=>{const x=getSecond(o.value);o.value-=C,o.value<0?o.value=0:o.value;const F=getSecond(o.value);for(let N=0;N<m.value.length;N++)x[N]!==F[N]&&m.value[N].value.flipUp(x[N],F[N]);l.value=Math.floor(o.value/60),c.value=Math.floor(o.value%60)},A=C=>{let x=parseInt(C.target.value);Number.isNaN(x)&&(x=0),x>59&&(x=59),l.value=x;const F=getSecond(o.value);console.log(l.value),o.value=l.value*60+c.value;const N=getSecond(o.value);console.log(N,F);for(let V=0;V<m.value.length;V++)F[V]!==N[V]&&m.value[V].value.flipUp(F[V],N[V])},y=C=>{let x=parseInt(C.target.value);Number.isNaN(x)&&(x=0),x>59&&(x=59),c.value=x;const F=getSecond(o.value);o.value=l.value*60+c.value;const N=getSecond(o.value);for(let V=0;V<m.value.length;V++)F[V]!==N[V]&&m.value[V].value.flipUp(F[V],N[V])};return watch(()=>o.value,C=>{l.value=Math.floor(C/60),c.value=Math.floor(C%60)}),()=>createVNode("div",{class:styles$n.timerItemWrap},[createVNode("div",{class:styles$n.timerItemInfo},[createVNode("div",{class:styles$n.timerItemInset},[createVNode("div",{class:styles$n.timerItemInfoTop},[createVNode("div",{class:styles$n.timerItemTopCore},[createVNode("h4",null,[createTextVNode(" 分")]),createVNode("div",{class:styles$n.FlipClock},[createVNode("div",{class:styles$n.numberWrap},[createVNode(Flipper,{ref:e},null),createVNode(Flipper,{ref:t},null)]),createVNode("div",{class:[styles$n.chioseWrap,u.value?styles$n.chioseHidden:""]},[createVNode("img",{src:add,class:styles$n.add,alt:"",onClick:()=>S(60)},null),createVNode(NInputNumber,{class:styles$n.countInput,min:0,max:59,"show-button":!1,onInput:A,value:l.value,"onUpdate:value":C=>l.value=C},null),createVNode("img",{src:minus,class:styles$n.minus,alt:"",onClick:()=>b(60)},null)])])]),createVNode("div",{class:styles$n.timerItemTopCore},[createVNode("div",{class:styles$n.dot},null),createVNode("div",{class:styles$n.dot},null),createVNode("h4",{class:styles$n.dotBtm},null)]),createVNode("div",{class:styles$n.timerItemTopCore},[createVNode("h4",null,[createTextVNode(" 秒 ")]),createVNode("div",{class:styles$n.FlipClock},[createVNode("div",{class:styles$n.numberWrap},[createVNode(Flipper,{ref:r},null),createVNode(Flipper,{ref:a},null)]),createVNode("div",{class:[styles$n.chioseWrap,u.value?styles$n.chioseHidden:""]},[createVNode("img",{src:add,class:styles$n.add,alt:"",onClick:()=>S(1)},null),createVNode(NInputNumber,{class:styles$n.countInput,min:0,max:59,"show-button":!1,value:c.value,"onUpdate:value":C=>c.value=C,onInput:y},null),createVNode("img",{src:minus,class:styles$n.minus,alt:"",onClick:()=>b(1)},null)])])])])])]),createVNode(NSpace,{class:styles$n.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,onClick:()=>E()},{default:()=>[createTextVNode("重置")]}),u.value?createVNode(NButton,{round:!0,type:"primary","icon-placement":"right",onClick:()=>g()},{default:()=>createVNode("p",{class:styles$n.playText},[createTextVNode("暂停")]),icon:()=>createVNode(NImage,{previewDisabled:!0,class:styles$n.palyIcon,src:suspend},null)}):createVNode(NButton,{round:!0,type:"primary",disabled:o.value==0,"icon-placement":"right",onClick:()=>d()},{default:()=>createVNode("p",{class:styles$n.playText},[createTextVNode("开始")]),icon:()=>createVNode(NImage,{previewDisabled:!0,class:styles$n.palyIcon,src:playIcon},null)})]})])}}),Positive=defineComponent({name:"timer-positive",setup(){ref("positive"),useRoute();const e=ref(),t=ref(),r=ref(),a=ref(),n=ref(null),s=ref(null),i=ref(new Date);s.value=setInterval(()=>{i.value=new Date},1e3);const o=ref(0),l=ref(!1),c=ref([e,t,r,a]),u=()=>{const d="0000";for(let g=0;g<c.value.length;g++)c.value[g].value.setFront(d[g])},m=()=>{l.value=!0,n.value=setInterval(()=>{const d=getSecond(o.value);o.value++;const g=getSecond(o.value);for(let E=0;E<c.value.length;E++)d[E]!==g[E]&&c.value[E].value.flipDown(d[E],g[E])},1e3)},f=()=>{l.value=!1,n.value&&(clearInterval(n.value),n.value=null)},p=()=>{f(),o.value=0,setTimeout(()=>{u()},600)};return onMounted(()=>{nextTick(()=>{u()})}),()=>createVNode("div",{class:styles$n.timerItemWrap},[createVNode("div",{class:styles$n.timerItemInfo},[createVNode("div",{class:styles$n.timerItemInset},[createVNode("div",{class:styles$n.timerItemInfoTop},[createVNode("div",{class:styles$n.timerItemTopCore},[createVNode("h4",null,[createTextVNode(" 分")]),createVNode("div",{class:styles$n.FlipClock},[createVNode("div",{class:styles$n.numberWrap},[createVNode(Flipper,{ref:e},null),createVNode(Flipper,{ref:t},null)])])]),createVNode("div",{class:styles$n.timerItemTopCore},[createVNode("h4",{class:styles$n.dotTop},null),createVNode("div",{class:styles$n.dot},null),createVNode("div",{class:styles$n.dot},null)]),createVNode("div",{class:styles$n.timerItemTopCore},[createVNode("h4",null,[createTextVNode(" 秒")]),createVNode("div",{class:styles$n.FlipClock},[createVNode("div",{class:styles$n.numberWrap},[createVNode(Flipper,{ref:r},null),createVNode(Flipper,{ref:a},null)])])])]),createVNode("div",{class:styles$n.nowTimerWrap},[dayjs(i.value).format("YYYY年MM月DD日 HH:mm:ss")])])]),createVNode(NSpace,{class:styles$n.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,onClick:()=>p()},{default:()=>[createTextVNode("重置")]}),l.value?createVNode(NButton,{round:!0,type:"primary","icon-placement":"right",onClick:()=>f()},{default:()=>createVNode("p",{class:styles$n.playText},[createTextVNode("暂停")]),icon:()=>createVNode(NImage,{previewDisabled:!0,class:styles$n.palyIcon,src:suspend},null)}):createVNode(NButton,{round:!0,type:"primary","icon-placement":"right",onClick:()=>m()},{default:()=>createVNode("p",{class:styles$n.playText},[createTextVNode("开始")]),icon:()=>createVNode(NImage,{previewDisabled:!0,class:styles$n.palyIcon,src:playIcon},null)})]})])}}),TimerMeter=defineComponent({name:"data-module",setup(){const e=ref("positive");useRoute();const t=r=>{e.value=r};return()=>createVNode("div",null,[createVNode("div",{class:styles$n.timerWrap},[createVNode("div",{class:styles$n.timerTop},[createVNode("div",{class:[styles$n.timerTopPane,e.value=="positive"?styles$n.timerTopPaneActive:""],onClick:()=>{t("positive")}},[createTextVNode("正计时")]),createVNode("div",{class:[styles$n.timerTopPane,e.value=="countdown"?styles$n.timerTopPaneActive:""],onClick:()=>{t("countdown")}},[createTextVNode("倒计时")])]),e.value=="positive"?createVNode(Positive,null,null):createVNode(Countdown,null,null)])])}}),downMove="_downMove_137wx_1",downMoveBg="_downMoveBg_137wx_9",dingPng="_dingPng_137wx_16",closeAble="_closeAble_137wx_25",submitAppBtn="_submitAppBtn_137wx_53",styles$m={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$m.downMove},[createVNode("img",{src:dingPng$1,class:styles$m.dingPng,alt:""},null),createVNode("img",{src:moveTop,class:styles$m.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$m.submitAppBtn,round:!0,type:"primary",onClick:()=>{t("close")}}),{default:()=>[createTextVNode("我知道了")]})]})])])}}),playContent="_playContent_17nqu_1",assignHomeworkClose="_assignHomeworkClose_17nqu_10",coursewarePlay="_coursewarePlay_17nqu_23",playModel="_playModel_17nqu_29",headerContainer="_headerContainer_17nqu_38",backBtn="_backBtn_17nqu_58",headRight="_headRight_17nqu_70",rightBtn="_rightBtn_17nqu_79",menu$1="_menu_17nqu_91",tabsContent="_tabsContent_17nqu_102",wraps="_wraps_17nqu_113",itemDiv="_itemDiv_17nqu_119",itemActive="_itemActive_17nqu_132",acitveAnimation="_acitveAnimation_17nqu_135",show="_show_17nqu_138",hide$2="_hide_17nqu_141",rightFixedBtns="_rightFixedBtns_17nqu_154",fullBtn="_fullBtn_17nqu_161",point="_point_17nqu_166",iconUp="_iconUp_17nqu_176",iconDown="_iconDown_17nqu_177",btnsDisabled="_btnsDisabled_17nqu_180",loadWrap="_loadWrap_17nqu_210",drawerContainer="_drawerContainer_17nqu_221",sectionAnimate$2="_sectionAnimate_17nqu_235",sectionAnimateUp="_sectionAnimateUp_17nqu_241",switchDisplaySection="_switchDisplaySection_17nqu_247",switchSpace="_switchSpace_17nqu_261",btnItem$1="_btnItem_17nqu_264",attendClassModal="_attendClassModal_17nqu_286",modelAttendContent="_modelAttendContent_17nqu_310",modelAttendBtnGroup="_modelAttendBtnGroup_17nqu_316",trainClassModal="_trainClassModal_17nqu_324",workContainer="_workContainer_17nqu_330",toolboxImg="_toolboxImg_17nqu_334",isDragIng="_isDragIng_17nqu_343",toolClassImg="_toolClassImg_17nqu_347",booxToolWrap="_booxToolWrap_17nqu_362",booxToolItem="_booxToolItem_17nqu_373",setTimeImage="_setTimeImage_17nqu_390",beatImage="_beatImage_17nqu_396",changePwdModal="_changePwdModal_17nqu_402",imChatModal="_imChatModal_17nqu_405",modeWrap="_modeWrap_17nqu_408",showModalTone="_showModalTone_17nqu_413",studentRemove$3="_studentRemove_17nqu_416",dragbom$3="_dragbom_17nqu_428",removeVisiable$2="_removeVisiable_17nqu_433",btnGroupModal$3="_btnGroupModal_17nqu_457",iframePpt="_iframePpt_17nqu_464",pptBox="_pptBox_17nqu_469",rightColumn="_rightColumn_17nqu_478",leftColumn="_leftColumn_17nqu_479",columnItemBox="_columnItemBox_17nqu_492",columnItem="_columnItem_17nqu_492",active$1="_active_17nqu_511",itemDisabled="_itemDisabled_17nqu_525",rightColumnHide="_rightColumnHide_17nqu_571",leftColumnHide="_leftColumnHide_17nqu_574",rightHideIcon$1="_rightHideIcon_17nqu_577",leftHideIcon$1="_leftHideIcon_17nqu_578",rightIconShow="_rightIconShow_17nqu_592",rightIn="_rightIn_17nqu_1",leftIconShow="_leftIconShow_17nqu_596",leftIn="_leftIn_17nqu_1",instrumentContainer="_instrumentContainer_17nqu_616",selectMusicModal$1="_selectMusicModal_17nqu_632",selectClassModal="_selectClassModal_17nqu_645",workVisiable="_workVisiable_17nqu_648",workTrain="_workTrain_17nqu_655",resourceMain="_resourceMain_17nqu_668",styles$l={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$3,dragbom:dragbom$3,removeVisiable:removeVisiable$2,btnGroupModal:btnGroupModal$3,iframePpt,pptBox,rightColumn,leftColumn,columnItemBox,columnItem,active:active$1,itemDisabled,rightColumnHide,leftColumnHide,rightHideIcon:rightHideIcon$1,leftHideIcon:leftHideIcon$1,rightIconShow,rightIn,leftIconShow,leftIn,instrumentContainer,selectMusicModal:selectMusicModal$1,selectClassModal,workVisiable,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$k={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},activeStatus:{type:Boolean}},emits:["setIframe"],setup(e,{emit:t}){const r=useUserStore(),a=ref(!1),n=usePageVisibility();watch(n,m=>{console.log("🚀 ~ value:",m),m=="hidden"&&(a.value=!1)});const s=ref(),i=ref(!1),o=ref(!1),l=ref(!1),c="".concat(vaildMusicScoreUrl(),"/instrument/?v=").concat(+new Date,"&showGuide=true&platform=pc&zoom=1.2&modelType=practise&id=").concat(e.music.content,"&Authorization=").concat(r.getToken),u=()=>{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&&u())}),watch(()=>e.activeModel,()=>{s.value.contentWindow&&e.activeStatus&&s.value.contentWindow.postMessage({api:"attendClassBarStatus",hideMenu:!e.activeModel},"*")}),()=>createVNode("div",{class:styles$k.musicScore},[createVNode("iframe",{ref:s,onLoad:m=>{t("setIframe",s.value),i.value=!0,iframeDislableKeyboard(m.target)},class:[styles$k.container,"musicIframe"],frameborder:"0",src:c},null),i.value&&createVNode("div",{class:styles$k.skeletonWrap},[createVNode("div",null,[createVNode(NSkeleton,{text:!0,repeat:8},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,u;switch(i=Math.floor(e*6),o=e*6-i,l=r*(1-t),c=r*(1-o*t),u=r*(1-(1-o)*t),i%6){case 0:a=r,n=u,s=l;break;case 1:a=c,n=r,s=l;break;case 2:a=l,n=r,s=u;break;case 3:a=l,n=c,s=r;break;case 4:a=u,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(p){r({data:p})}},s={postMessage:function(p){n.onmessage({data:p})}};function i(f){if(window.Worker&&window.Blob&&getWebWorker()){var p=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),d=URL.createObjectURL(p);return new Worker(d)}return r=f,n}function o(){a||(a=i(function(p){function d(){function E(H,I){var D,T,P=H.length,k,R,X,Z;for(T=0;T<P;T+=1)if(D=H[T],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var q=D.masksProperties;for(R=q.length,k=0;k<R;k+=1)if(q[k].pt.k.i)C(q[k].pt.k);else for(Z=q[k].pt.k.length,X=0;X<Z;X+=1)q[k].pt.k[X].s&&C(q[k].pt.k[X].s[0]),q[k].pt.k[X].e&&C(q[k].pt.k[X].e[0])}D.ty===0?(D.layers=A(D.refId,I),E(D.layers,I)):D.ty===4?y(D.shapes):D.ty===5&&j(D)}}function S(H,I){if(H){var D=0,T=H.length;for(D=0;D<T;D+=1)H[D].t===1&&(H[D].data.layers=A(H[D].data.refId,I),E(H[D].data.layers,I))}}function b(H,I){for(var D=0,T=I.length;D<T;){if(I[D].id===H)return I[D];D+=1}return null}function A(H,I){var D=b(H,I);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function y(H){var I,D=H.length,T,P;for(I=D-1;I>=0;I-=1)if(H[I].ty==="sh")if(H[I].ks.k.i)C(H[I].ks.k);else for(P=H[I].ks.k.length,T=0;T<P;T+=1)H[I].ks.k[T].s&&C(H[I].ks.k[T].s[0]),H[I].ks.k[T].e&&C(H[I].ks.k[T].e[0]);else H[I].ty==="gr"&&y(H[I].it)}function C(H){var I,D=H.i.length;for(I=0;I<D;I+=1)H.i[I][0]+=H.v[I][0],H.i[I][1]+=H.v[I][1],H.o[I][0]+=H.v[I][0],H.o[I][1]+=H.v[I][1]}function x(H,I){var D=I?I.split("."):[100,100,100];return H[0]>D[0]?!0:D[0]>H[0]?!1:H[1]>D[1]?!0:D[1]>H[1]?!1:H[2]>D[2]?!0:D[2]>H[2]?!1:null}var F=function(){var H=[4,4,14];function I(T){var P=T.t.d;T.t.d={k:[{s:P,t:0}]}}function D(T){var P,k=T.length;for(P=0;P<k;P+=1)T[P].ty===5&&I(T[P])}return function(T){if(x(H,T.v)&&(D(T.layers),T.assets)){var P,k=T.assets.length;for(P=0;P<k;P+=1)T.assets[P].layers&&D(T.assets[P].layers)}}}(),N=function(){var H=[4,7,99];return function(I){if(I.chars&&!x(H,I.v)){var D,T=I.chars.length;for(D=0;D<T;D+=1){var P=I.chars[D];P.data&&P.data.shapes&&(y(P.data.shapes),P.data.ip=0,P.data.op=99999,P.data.st=0,P.data.sr=1,P.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}},I.chars[D].t||(P.data.shapes.push({ty:"no"}),P.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"})))}}}}(),V=function(){var H=[5,7,15];function I(T){var P=T.t.p;typeof P.a=="number"&&(P.a={a:0,k:P.a}),typeof P.p=="number"&&(P.p={a:0,k:P.p}),typeof P.r=="number"&&(P.r={a:0,k:P.r})}function D(T){var P,k=T.length;for(P=0;P<k;P+=1)T[P].ty===5&&I(T[P])}return function(T){if(x(H,T.v)&&(D(T.layers),T.assets)){var P,k=T.assets.length;for(P=0;P<k;P+=1)T.assets[P].layers&&D(T.assets[P].layers)}}}(),_=function(){var H=[4,1,9];function I(T){var P,k=T.length,R,X;for(P=0;P<k;P+=1)if(T[P].ty==="gr")I(T[P].it);else if(T[P].ty==="fl"||T[P].ty==="st")if(T[P].c.k&&T[P].c.k[0].i)for(X=T[P].c.k.length,R=0;R<X;R+=1)T[P].c.k[R].s&&(T[P].c.k[R].s[0]/=255,T[P].c.k[R].s[1]/=255,T[P].c.k[R].s[2]/=255,T[P].c.k[R].s[3]/=255),T[P].c.k[R].e&&(T[P].c.k[R].e[0]/=255,T[P].c.k[R].e[1]/=255,T[P].c.k[R].e[2]/=255,T[P].c.k[R].e[3]/=255);else T[P].c.k[0]/=255,T[P].c.k[1]/=255,T[P].c.k[2]/=255,T[P].c.k[3]/=255}function D(T){var P,k=T.length;for(P=0;P<k;P+=1)T[P].ty===4&&I(T[P].shapes)}return function(T){if(x(H,T.v)&&(D(T.layers),T.assets)){var P,k=T.assets.length;for(P=0;P<k;P+=1)T.assets[P].layers&&D(T.assets[P].layers)}}}(),$=function(){var H=[4,4,18];function I(T){var P,k=T.length,R,X;for(P=k-1;P>=0;P-=1)if(T[P].ty==="sh")if(T[P].ks.k.i)T[P].ks.k.c=T[P].closed;else for(X=T[P].ks.k.length,R=0;R<X;R+=1)T[P].ks.k[R].s&&(T[P].ks.k[R].s[0].c=T[P].closed),T[P].ks.k[R].e&&(T[P].ks.k[R].e[0].c=T[P].closed);else T[P].ty==="gr"&&I(T[P].it)}function D(T){var P,k,R=T.length,X,Z,q,ne;for(k=0;k<R;k+=1){if(P=T[k],P.hasMask){var re=P.masksProperties;for(Z=re.length,X=0;X<Z;X+=1)if(re[X].pt.k.i)re[X].pt.k.c=re[X].cl;else for(ne=re[X].pt.k.length,q=0;q<ne;q+=1)re[X].pt.k[q].s&&(re[X].pt.k[q].s[0].c=re[X].cl),re[X].pt.k[q].e&&(re[X].pt.k[q].e[0].c=re[X].cl)}P.ty===4&&I(P.shapes)}}return function(T){if(x(H,T.v)&&(D(T.layers),T.assets)){var P,k=T.assets.length;for(P=0;P<k;P+=1)T.assets[P].layers&&D(T.assets[P].layers)}}}();function L(H){H.__complete||(_(H),F(H),N(H),V(H),$(H),E(H.layers,H.assets),S(H.chars,H.assets),H.__complete=!0)}function j(H){H.t.a.length===0&&"m"in H.t.p}var z={};return z.completeData=L,z.checkColors=_,z.checkChars=N,z.checkPathProperties=V,z.checkShapes=$,z.completeLayers=E,z}if(s.dataManager||(s.dataManager=d()),s.assetLoader||(s.assetLoader=function(){function E(b){var A=b.getResponseHeader("content-type");return A&&b.responseType==="json"&&A.indexOf("json")!==-1||b.response&&_typeof$5(b.response)==="object"?b.response:b.response&&typeof b.response=="string"?JSON.parse(b.response):b.responseText?JSON.parse(b.responseText):null}function S(b,A,y,C){var x,F=new XMLHttpRequest;try{F.responseType="json"}catch(N){}F.onreadystatechange=function(){if(F.readyState===4)if(F.status===200)x=E(F),y(x);else try{x=E(F),y(x)}catch(N){C&&C(N)}};try{F.open(["G","E","T"].join(""),b,!0)}catch(N){F.open(["G","E","T"].join(""),A+"/"+b,!0)}F.send()}return{load:S}}()),p.data.type==="loadAnimation")s.assetLoader.load(p.data.path,p.data.fullPath,function(E){s.dataManager.completeData(E),s.postMessage({id:p.data.id,payload:E,status:"success"})},function(){s.postMessage({id:p.data.id,status:"error"})});else if(p.data.type==="complete"){var g=p.data.animation;s.dataManager.completeData(g),s.postMessage({id:p.data.id,payload:g,status:"success"})}else p.data.type==="loadData"&&s.assetLoader.load(p.data.path,p.data.fullPath,function(E){s.postMessage({id:p.data.id,payload:E,status:"success"})},function(){s.postMessage({id:p.data.id,status:"error"})})}),a.onmessage=function(f){var p=f.data,d=p.id,g=t[d];t[d]=null,p.status==="success"?g.onComplete(p.payload):g.onError&&g.onError()})}function l(f,p){e+=1;var d="processId_"+e;return t[d]={onComplete:f,onError:p},d}function c(f,p,d){o();var g=l(p,d);a.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function u(f,p,d){o();var g=l(p,d);a.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:g})}function m(f,p,d){o();var g=l(p,d);a.postMessage({type:"complete",animation:f,id:g})}return{loadAnimation:c,loadData:u,completeAnimation:m}}(),ImagePreloader=function(){var e=function(){var S=createTag("canvas");S.width=1,S.height=1;var b=S.getContext("2d");return b.fillStyle="rgba(0,0,0,0)",b.fillRect(0,0,1,1),S}();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(S,b,A){var y="";if(S.e)y=S.p;else if(b){var C=S.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),y=b+C}else y=A,y+=S.u?S.u:"",y+=S.p;return y}function n(S){var b=0,A=setInterval((function(){var y=S.getBBox();(y.width||b>500)&&(this._imageLoaded(),clearInterval(A)),b+=1}).bind(this),50)}function s(S){var b=a(S,this.assetsPath,this.path),A=createNS("image");isSafari?this.testImageLoaded(A):A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),A.setAttributeNS("http://www.w3.org/1999/xlink","href",b),this._elementHelper.append?this._elementHelper.append(A):this._elementHelper.appendChild(A);var y={img:A,assetData:S};return y}function i(S){var b=a(S,this.assetsPath,this.path),A=createTag("img");A.crossOrigin="anonymous",A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),A.src=b;var y={img:A,assetData:S};return y}function o(S){var b={assetData:S},A=a(S,this.assetsPath,this.path);return dataManager.loadData(A,(function(y){b.img=y,this._footageLoaded()}).bind(this),(function(){b.img={},this._footageLoaded()}).bind(this)),b}function l(S,b){this.imagesLoadedCb=b;var A,y=S.length;for(A=0;A<y;A+=1)S[A].layers||(!S[A].t||S[A].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(S[A]))):S[A].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(S[A]))))}function c(S){this.path=S||""}function u(S){this.assetsPath=S||""}function m(S){for(var b=0,A=this.images.length;b<A;){if(this.images[b].assetData===S)return this.images[b].img;b+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function p(){return this.totalImages===this.loadedAssets}function d(){return this.totalFootages===this.loadedFootagesCount}function g(S,b){S==="svg"?(this._elementHelper=b,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:u,setPath:c,loadedImages:p,loadedFootages:d,destroy:f,getAsset:m,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(I){for(var D=0,T=I.target;D<a;)t[D].animation===T&&(t.splice(D,1),D-=1,a-=1,T.isPaused||m()),D+=1}function l(I,D){if(!I)return null;for(var T=0;T<a;){if(t[T].elem===I&&t[T].elem!==null)return t[T].animation;T+=1}var P=new AnimationItem;return f(P,I),P.setData(I,D),P}function c(){var I,D=t.length,T=[];for(I=0;I<D;I+=1)T.push(t[I].animation);return T}function u(){n+=1,_()}function m(){n-=1}function f(I,D){I.addEventListener("destroy",o),I.addEventListener("_active",u),I.addEventListener("_idle",m),t.push({elem:D,animation:I}),a+=1}function p(I){var D=new AnimationItem;return f(D,null),D.setParams(I),D}function d(I,D){var T;for(T=0;T<a;T+=1)t[T].animation.setSpeed(I,D)}function g(I,D){var T;for(T=0;T<a;T+=1)t[T].animation.setDirection(I,D)}function E(I){var D;for(D=0;D<a;D+=1)t[D].animation.play(I)}function S(I){var D=I-r,T;for(T=0;T<a;T+=1)t[T].animation.advanceTime(D);r=I,n&&!i?window.requestAnimationFrame(S):s=!0}function b(I){r=I,window.requestAnimationFrame(S)}function A(I){var D;for(D=0;D<a;D+=1)t[D].animation.pause(I)}function y(I,D,T){var P;for(P=0;P<a;P+=1)t[P].animation.goToAndStop(I,D,T)}function C(I){var D;for(D=0;D<a;D+=1)t[D].animation.stop(I)}function x(I){var D;for(D=0;D<a;D+=1)t[D].animation.togglePause(I)}function F(I){var D;for(D=a-1;D>=0;D-=1)t[D].animation.destroy(I)}function N(I,D,T){var P=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),k,R=P.length;for(k=0;k<R;k+=1)T&&P[k].setAttribute("data-bm-type",T),l(P[k],I);if(D&&R===0){T||(T="svg");var X=document.getElementsByTagName("body")[0];X.innerText="";var Z=createTag("div");Z.style.width="100%",Z.style.height="100%",Z.setAttribute("data-bm-type",T),X.appendChild(Z),l(Z,I)}}function V(){var I;for(I=0;I<a;I+=1)t[I].animation.resize()}function _(){!i&&n&&s&&(window.requestAnimationFrame(b),s=!1)}function $(){i=!0}function L(){i=!1,_()}function j(I,D){var T;for(T=0;T<a;T+=1)t[T].animation.setVolume(I,D)}function z(I){var D;for(D=0;D<a;D+=1)t[D].animation.mute(I)}function H(I){var D;for(D=0;D<a;D+=1)t[D].animation.unmute(I)}return e.registerAnimation=l,e.loadAnimation=p,e.setSpeed=d,e.setDirection=g,e.play=E,e.pause=A,e.stop=C,e.togglePause=x,e.searchAnimations=N,e.resize=V,e.goToAndStop=y,e.destroy=F,e.freeze=$,e.unfreeze=L,e.setVolume=j,e.mute=z,e.unmute=H,e.getRegisteredAnimations=c,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var t={};function r(b,A,y,C,x){var F=x||("bez_"+b+"_"+A+"_"+y+"_"+C).replace(/\./g,"p");if(t[F])return t[F];var N=new S([b,A,y,C]);return t[F]=N,N}var a=4,n=.001,s=1e-7,i=10,o=11,l=1/(o-1),c=typeof Float32Array=="function";function u(b,A){return 1-3*A+3*b}function m(b,A){return 3*A-6*b}function f(b){return 3*b}function p(b,A,y){return((u(A,y)*b+m(A,y))*b+f(A))*b}function d(b,A,y){return 3*u(A,y)*b*b+2*m(A,y)*b+f(A)}function g(b,A,y,C,x){var F,N,V=0;do N=A+(y-A)/2,F=p(N,C,x)-b,F>0?y=N:A=N;while(Math.abs(F)>s&&++V<i);return N}function E(b,A,y,C){for(var x=0;x<a;++x){var F=d(A,y,C);if(F===0)return A;var N=p(A,y,C)-b;A-=N/F}return A}function S(b){this._p=b,this._mSampleValues=c?new Float32Array(o):new Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return S.prototype={get:function(A){var y=this._p[0],C=this._p[1],x=this._p[2],F=this._p[3];return this._precomputed||this._precompute(),y===C&&x===F?A:A===0?0:A===1?1:p(this._getTForX(A),C,F)},_precompute:function(){var A=this._p[0],y=this._p[1],C=this._p[2],x=this._p[3];this._precomputed=!0,(A!==y||C!==x)&&this._calcSampleValues()},_calcSampleValues:function(){for(var A=this._p[0],y=this._p[2],C=0;C<o;++C)this._mSampleValues[C]=p(C*l,A,y)},_getTForX:function(A){for(var y=this._p[0],C=this._p[2],x=this._mSampleValues,F=0,N=1,V=o-1;N!==V&&x[N]<=A;++N)F+=l;--N;var _=(A-x[N])/(x[N+1]-x[N]),$=F+_*l,L=d($,y,C);return L>=n?E(A,$,y,C):L===0?$:g(A,F,F+l,y,C)}},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(f,p,d,g,E,S){var b=f*g+p*E+d*S-E*g-S*f-d*p;return b>-.001&&b<.001}function r(f,p,d,g,E,S,b,A,y){if(d===0&&S===0&&y===0)return t(f,p,g,E,b,A);var C=e.sqrt(e.pow(g-f,2)+e.pow(E-p,2)+e.pow(S-d,2)),x=e.sqrt(e.pow(b-f,2)+e.pow(A-p,2)+e.pow(y-d,2)),F=e.sqrt(e.pow(b-g,2)+e.pow(A-E,2)+e.pow(y-S,2)),N;return C>x?C>F?N=C-x-F:N=F-x-C:F>x?N=F-x-C:N=x-C-F,N>-1e-4&&N<1e-4}var a=function(){return function(f,p,d,g){var E=getDefaultCurveSegments(),S,b,A,y,C,x=0,F,N=[],V=[],_=bezierLengthPool.newElement();for(A=d.length,S=0;S<E;S+=1){for(C=S/(E-1),F=0,b=0;b<A;b+=1)y=bmPow(1-C,3)*f[b]+3*bmPow(1-C,2)*C*d[b]+3*(1-C)*bmPow(C,2)*g[b]+bmPow(C,3)*p[b],N[b]=y,V[b]!==null&&(F+=bmPow(N[b]-V[b],2)),V[b]=N[b];F&&(F=bmSqrt(F),x+=F),_.percents[S]=C,_.lengths[S]=x}return _.addedLength=x,_}}();function n(f){var p=segmentsLengthPool.newElement(),d=f.c,g=f.v,E=f.o,S=f.i,b,A=f._length,y=p.lengths,C=0;for(b=0;b<A-1;b+=1)y[b]=a(g[b],g[b+1],E[b],S[b+1]),C+=y[b].addedLength;return d&&A&&(y[b]=a(g[b],g[0],E[b],S[0]),C+=y[b].addedLength),p.totalLength=C,p}function s(f){this.segmentLength=0,this.points=new Array(f)}function i(f,p){this.partialLength=f,this.point=p}var o=function(){var f={};return function(p,d,g,E){var S=(p[0]+"_"+p[1]+"_"+d[0]+"_"+d[1]+"_"+g[0]+"_"+g[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!f[S]){var b=getDefaultCurveSegments(),A,y,C,x,F,N=0,V,_,$=null;p.length===2&&(p[0]!==d[0]||p[1]!==d[1])&&t(p[0],p[1],d[0],d[1],p[0]+g[0],p[1]+g[1])&&t(p[0],p[1],d[0],d[1],d[0]+E[0],d[1]+E[1])&&(b=2);var L=new s(b);for(C=g.length,A=0;A<b;A+=1){for(_=createSizedArray(C),F=A/(b-1),V=0,y=0;y<C;y+=1)x=bmPow(1-F,3)*p[y]+3*bmPow(1-F,2)*F*(p[y]+g[y])+3*(1-F)*bmPow(F,2)*(d[y]+E[y])+bmPow(F,3)*d[y],_[y]=x,$!==null&&(V+=bmPow(_[y]-$[y],2));V=bmSqrt(V),N+=V,L.points[A]=new i(V,_),$=_}L.segmentLength=N,f[S]=L}return f[S]}}();function l(f,p){var d=p.percents,g=p.lengths,E=d.length,S=bmFloor((E-1)*f),b=f*p.addedLength,A=0;if(S===E-1||S===0||b===g[S])return d[S];for(var y=g[S]>b?-1:1,C=!0;C;)if(g[S]<=b&&g[S+1]>b?(A=(b-g[S])/(g[S+1]-g[S]),C=!1):S+=y,S<0||S>=E-1){if(S===E-1)return d[S];C=!1}return d[S]+(d[S+1]-d[S])*A}function c(f,p,d,g,E,S){var b=l(E,S),A=1-b,y=e.round((A*A*A*f[0]+(b*A*A+A*b*A+A*A*b)*d[0]+(b*b*A+A*b*b+b*A*b)*g[0]+b*b*b*p[0])*1e3)/1e3,C=e.round((A*A*A*f[1]+(b*A*A+A*b*A+A*A*b)*d[1]+(b*b*A+A*b*b+b*A*b)*g[1]+b*b*b*p[1])*1e3)/1e3;return[y,C]}var u=createTypedArray("float32",8);function m(f,p,d,g,E,S,b){E<0?E=0:E>1&&(E=1);var A=l(E,b);S=S>1?1:S;var y=l(S,b),C,x=f.length,F=1-A,N=1-y,V=F*F*F,_=A*F*F*3,$=A*A*F*3,L=A*A*A,j=F*F*N,z=A*F*N+F*A*N+F*F*y,H=A*A*N+F*A*y+A*F*y,I=A*A*y,D=F*N*N,T=A*N*N+F*y*N+F*N*y,P=A*y*N+F*y*y+A*N*y,k=A*y*y,R=N*N*N,X=y*N*N+N*y*N+N*N*y,Z=y*y*N+N*y*y+y*N*y,q=y*y*y;for(C=0;C<x;C+=1)u[C*4]=e.round((V*f[C]+_*d[C]+$*g[C]+L*p[C])*1e3)/1e3,u[C*4+1]=e.round((j*f[C]+z*d[C]+H*g[C]+I*p[C])*1e3)/1e3,u[C*4+2]=e.round((D*f[C]+T*d[C]+P*g[C]+k*p[C])*1e3)/1e3,u[C*4+3]=e.round((R*f[C]+X*d[C]+Z*g[C]+q*p[C])*1e3)/1e3;return u}return{getSegmentsLength:n,getNewSegment:m,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,u;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)}u=this.keyframesMetadata[s]||{};var m,f,p,d,g,E,S=c.t-r,b=l.t-r,A;if(l.to){u.bezierData||(u.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var y=u.bezierData;if(e>=S||e<b){var C=e>=S?y.points.length-1:0;for(f=y.points[C].point.length,m=0;m<f;m+=1)a[m]=y.points[C].point[m]}else{u.__fnct?E=u.__fnct:(E=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,u.__fnct=E),p=E((e-b)/(S-b));var x=y.segmentLength*p,F,N=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastAddedLength:0;for(g=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastPoint:0,o=!0,d=y.points.length;o;){if(N+=y.points[g].partialLength,x===0||p===0||g===y.points.length-1){for(f=y.points[g].point.length,m=0;m<f;m+=1)a[m]=y.points[g].point[m];break}else if(x>=N&&x<N+y.points[g+1].partialLength){for(F=(x-N)/y.points[g+1].partialLength,f=y.points[g].point.length,m=0;m<f;m+=1)a[m]=y.points[g].point[m]+(y.points[g+1].point[m]-y.points[g].point[m])*F;break}g<d-1?g+=1:o=!1}t._lastPoint=g,t._lastAddedLength=N-y.points[g].partialLength,t._lastKeyframeIndex=s}}else{var V,_,$,L,j;if(i=l.s.length,A=c.s||l.e,this.sh&&l.h!==1)if(e>=S)a[0]=A[0],a[1]=A[1],a[2]=A[2];else if(e<=b)a[0]=l.s[0],a[1]=l.s[1],a[2]=l.s[2];else{var z=createQuaternion(l.s),H=createQuaternion(A),I=(e-b)/(S-b);quaternionToEuler(a,slerp(z,H,I))}else for(s=0;s<i;s+=1)l.h!==1&&(e>=S?p=1:e<b?p=0:(l.o.x.constructor===Array?(u.__fnct||(u.__fnct=[]),u.__fnct[s]?E=u.__fnct[s]:(V=l.o.x[s]===void 0?l.o.x[0]:l.o.x[s],_=l.o.y[s]===void 0?l.o.y[0]:l.o.y[s],$=l.i.x[s]===void 0?l.i.x[0]:l.i.x[s],L=l.i.y[s]===void 0?l.i.y[0]:l.i.y[s],E=BezierFactory.getBezierEasing(V,_,$,L).get,u.__fnct[s]=E)):u.__fnct?E=u.__fnct:(V=l.o.x,_=l.o.y,$=l.i.x,L=l.i.y,E=BezierFactory.getBezierEasing(V,_,$,L).get,l.keyframeMetadata=E),p=E((e-b)/(S-b)))),A=c.s||l.e,j=l.h===1?l.s[s]:l.s[s]+(A[s]-l.s[s])*p,this.propType==="multidimensional"?a[s]=j:a=j}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],u=t[2],m=t[3],f,p,d,g,E;return p=n*l+s*c+i*u+o*m,p<0&&(p=-p,l=-l,c=-c,u=-u,m=-m),1-p>1e-6?(f=Math.acos(p),d=Math.sin(f),g=Math.sin((1-r)*f)/d,E=Math.sin(r*f)/d):(g=1-r,E=r),a[0]=g*n+E*l,a[1]=g*s+E*c,a[2]=g*i+E*u,a[3]=g*o+E*m,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),u=n*s*i-o*l*c,m=o*l*i+n*s*c,f=o*s*i+n*l*c,p=n*l*i-o*s*c;return[m,f,p,u]}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 u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),n=0;n<u;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},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(S,b,A){var y=A.lastIndex,C,x,F,N,V,_,$,L,j,z=this.keyframes;if(S<z[0].t-this.offsetTime)C=z[0].s[0],F=!0,y=0;else if(S>=z[z.length-1].t-this.offsetTime)C=z[z.length-1].s?z[z.length-1].s[0]:z[z.length-2].e[0],F=!0;else{for(var H=y,I=z.length-1,D=!0,T,P,k;D&&(T=z[H],P=z[H+1],!(P.t-this.offsetTime>S));)H<I-1?H+=1:D=!1;if(k=this.keyframesMetadata[H]||{},F=T.h===1,y=H,!F){if(S>=P.t-this.offsetTime)L=1;else if(S<T.t-this.offsetTime)L=0;else{var R;k.__fnct?R=k.__fnct:(R=BezierFactory.getBezierEasing(T.o.x,T.o.y,T.i.x,T.i.y).get,k.__fnct=R),L=R((S-(T.t-this.offsetTime))/(P.t-this.offsetTime-(T.t-this.offsetTime)))}x=P.s?P.s[0]:T.e[0]}C=T.s[0]}for(_=b._length,$=C.i[0].length,A.lastIndex=y,N=0;N<_;N+=1)for(V=0;V<$;V+=1)j=F?C.i[N][V]:C.i[N][V]+(x.i[N][V]-C.i[N][V])*L,b.i[N][V]=j,j=F?C.o[N][V]:C.o[N][V]+(x.o[N][V]-C.o[N][V])*L,b.o[N][V]=j,j=F?C.v[N][V]:C.v[N][V]+(x.v[N][V]-C.v[N][V])*L,b.v[N][V]=j}function r(){var S=this.comp.renderedFrame-this.offsetTime,b=this.keyframes[0].t-this.offsetTime,A=this.keyframes[this.keyframes.length-1].t-this.offsetTime,y=this._caching.lastFrame;return y!==e&&(y<b&&S<b||y>A&&S>A)||(this._caching.lastIndex=y<S?this._caching.lastIndex:0,this.interpolateShape(S,this.pv,this._caching)),this._caching.lastFrame=S,this.pv}function a(){this.paths=this.localShapeCollection}function n(S,b){if(S._length!==b._length||S.c!==b.c)return!1;var A,y=S._length;for(A=0;A<y;A+=1)if(S.v[A][0]!==b.v[A][0]||S.v[A][1]!==b.v[A][1]||S.o[A][0]!==b.o[A][0]||S.o[A][1]!==b.o[A][1]||S.i[A][0]!==b.i[A][0]||S.i[A][1]!==b.i[A][1])return!1;return!0}function s(S){n(this.v,S)||(this.v=shapePool.clone(S),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 S;this.kf?S=this.pv:this.data.ks?S=this.data.ks.k:S=this.data.pt.k;var b,A=this.effectsSequence.length;for(b=0;b<A;b+=1)S=this.effectsSequence[b](S);this.setVValue(S),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(S,b,A){this.propType="shape",this.comp=S.comp,this.container=S,this.elem=S,this.data=b,this.k=!1,this.kf=!1,this._mdf=!1;var y=A===3?b.pt.k:b.ks.k;this.v=shapePool.clone(y),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(S){this.effectsSequence.push(S),this.container.addDynamicProperty(this)}o.prototype.interpolateShape=t,o.prototype.getValue=i,o.prototype.setVValue=s,o.prototype.addEffect=l;function c(S,b,A){this.propType="shape",this.comp=S.comp,this.elem=S,this.container=S,this.offsetTime=S.data.st,this.keyframes=A===3?b.pt.k:b.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var y=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,y),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 u=function(){var S=roundCorner;function b(A,y){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=y.d,this.elem=A,this.comp=A.comp,this.frameId=-1,this.initDynamicPropertyContainer(A),this.p=PropertyFactory.getProp(A,y.p,1,0,this),this.s=PropertyFactory.getProp(A,y.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return b.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 y=this.p.v[0],C=this.p.v[1],x=this.s.v[0]/2,F=this.s.v[1]/2,N=this.d!==3,V=this.v;V.v[0][0]=y,V.v[0][1]=C-F,V.v[1][0]=N?y+x:y-x,V.v[1][1]=C,V.v[2][0]=y,V.v[2][1]=C+F,V.v[3][0]=N?y-x:y+x,V.v[3][1]=C,V.i[0][0]=N?y-x*S:y+x*S,V.i[0][1]=C-F,V.i[1][0]=N?y+x:y-x,V.i[1][1]=C-F*S,V.i[2][0]=N?y+x*S:y-x*S,V.i[2][1]=C+F,V.i[3][0]=N?y-x:y+x,V.i[3][1]=C+F*S,V.o[0][0]=N?y+x*S:y-x*S,V.o[0][1]=C-F,V.o[1][0]=N?y+x:y-x,V.o[1][1]=C+F*S,V.o[2][0]=N?y-x*S:y+x*S,V.o[2][1]=C+F,V.o[3][0]=N?y-x:y+x,V.o[3][1]=C-F*S}},extendPrototype([DynamicPropertyContainer],b),b}(),m=function(){function S(b,A){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=b,this.comp=b.comp,this.data=A,this.frameId=-1,this.d=A.d,this.initDynamicPropertyContainer(b),A.sy===1?(this.ir=PropertyFactory.getProp(b,A.ir,0,0,this),this.is=PropertyFactory.getProp(b,A.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(b,A.pt,0,0,this),this.p=PropertyFactory.getProp(b,A.p,1,0,this),this.r=PropertyFactory.getProp(b,A.r,0,degToRads,this),this.or=PropertyFactory.getProp(b,A.or,0,0,this),this.os=PropertyFactory.getProp(b,A.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 S.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 A=Math.floor(this.pt.v)*2,y=Math.PI*2/A,C=!0,x=this.or.v,F=this.ir.v,N=this.os.v,V=this.is.v,_=2*Math.PI*x/(A*2),$=2*Math.PI*F/(A*2),L,j,z,H,I=-Math.PI/2;I+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,L=0;L<A;L+=1){j=C?x:F,z=C?N:V,H=C?_:$;var T=j*Math.cos(I),P=j*Math.sin(I),k=T===0&&P===0?0:P/Math.sqrt(T*T+P*P),R=T===0&&P===0?0:-T/Math.sqrt(T*T+P*P);T+=+this.p.v[0],P+=+this.p.v[1],this.v.setTripleAt(T,P,T-k*H*z*D,P-R*H*z*D,T+k*H*z*D,P+R*H*z*D,L,!0),C=!C,I+=y*D}},convertPolygonToPath:function(){var A=Math.floor(this.pt.v),y=Math.PI*2/A,C=this.or.v,x=this.os.v,F=2*Math.PI*C/(A*4),N,V=-Math.PI*.5,_=this.data.d===3?-1:1;for(V+=this.r.v,this.v._length=0,N=0;N<A;N+=1){var $=C*Math.cos(V),L=C*Math.sin(V),j=$===0&&L===0?0:L/Math.sqrt($*$+L*L),z=$===0&&L===0?0:-$/Math.sqrt($*$+L*L);$+=+this.p.v[0],L+=+this.p.v[1],this.v.setTripleAt($,L,$-j*F*x*_,L-z*F*x*_,$+j*F*x*_,L+z*F*x*_,N,!0),V+=y*_}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],S),S}(),f=function(){function S(b,A){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=b,this.comp=b.comp,this.frameId=-1,this.d=A.d,this.initDynamicPropertyContainer(b),this.p=PropertyFactory.getProp(b,A.p,1,0,this),this.s=PropertyFactory.getProp(b,A.s,1,0,this),this.r=PropertyFactory.getProp(b,A.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return S.prototype={convertRectToPath:function(){var A=this.p.v[0],y=this.p.v[1],C=this.s.v[0]/2,x=this.s.v[1]/2,F=bmMin(C,x,this.r.v),N=F*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(A+C,y-x+F,A+C,y-x+F,A+C,y-x+N,0,!0),this.v.setTripleAt(A+C,y+x-F,A+C,y+x-N,A+C,y+x-F,1,!0),F!==0?(this.v.setTripleAt(A+C-F,y+x,A+C-F,y+x,A+C-N,y+x,2,!0),this.v.setTripleAt(A-C+F,y+x,A-C+N,y+x,A-C+F,y+x,3,!0),this.v.setTripleAt(A-C,y+x-F,A-C,y+x-F,A-C,y+x-N,4,!0),this.v.setTripleAt(A-C,y-x+F,A-C,y-x+N,A-C,y-x+F,5,!0),this.v.setTripleAt(A-C+F,y-x,A-C+F,y-x,A-C+N,y-x,6,!0),this.v.setTripleAt(A+C-F,y-x,A+C-N,y-x,A+C-F,y-x,7,!0)):(this.v.setTripleAt(A-C,y+x,A-C+N,y+x,A-C,y+x,2),this.v.setTripleAt(A-C,y-x,A-C,y-x+N,A-C,y-x,3))):(this.v.setTripleAt(A+C,y-x+F,A+C,y-x+N,A+C,y-x+F,0,!0),F!==0?(this.v.setTripleAt(A+C-F,y-x,A+C-F,y-x,A+C-N,y-x,1,!0),this.v.setTripleAt(A-C+F,y-x,A-C+N,y-x,A-C+F,y-x,2,!0),this.v.setTripleAt(A-C,y-x+F,A-C,y-x+F,A-C,y-x+N,3,!0),this.v.setTripleAt(A-C,y+x-F,A-C,y+x-N,A-C,y+x-F,4,!0),this.v.setTripleAt(A-C+F,y+x,A-C+F,y+x,A-C+N,y+x,5,!0),this.v.setTripleAt(A+C-F,y+x,A+C-N,y+x,A+C-F,y+x,6,!0),this.v.setTripleAt(A+C,y+x-F,A+C,y+x-F,A+C,y+x-N,7,!0)):(this.v.setTripleAt(A-C,y-x,A-C+N,y-x,A-C,y-x,1,!0),this.v.setTripleAt(A-C,y+x,A-C,y+x-N,A-C,y+x,2,!0),this.v.setTripleAt(A+C,y+x,A+C-N,y+x,A+C,y+x,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],S),S}();function p(S,b,A){var y;if(A===3||A===4){var C=A===3?b.pt:b.ks,x=C.k;x.length?y=new c(S,b,A):y=new o(S,b,A)}else A===5?y=new f(S,b):A===6?y=new u(S,b):A===7&&(y=new m(S,b));return y.k&&S.addDynamicProperty(y),y}function d(){return o}function g(){return c}var E={};return E.getShapeProp=p,E.getConstructorFunction=d,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(T){if(T===0)return this;var P=e(T),k=t(T);return this._t(P,-k,0,0,k,P,0,0,0,0,1,0,0,0,0,1)}function i(T){if(T===0)return this;var P=e(T),k=t(T);return this._t(1,0,0,0,0,P,-k,0,0,k,P,0,0,0,0,1)}function o(T){if(T===0)return this;var P=e(T),k=t(T);return this._t(P,0,k,0,0,1,0,0,-k,0,P,0,0,0,0,1)}function l(T){if(T===0)return this;var P=e(T),k=t(T);return this._t(P,-k,0,0,k,P,0,0,0,0,1,0,0,0,0,1)}function c(T,P){return this._t(1,P,T,1,0,0)}function u(T,P){return this.shear(r(T),r(P))}function m(T,P){var k=e(P),R=t(P);return this._t(k,R,0,0,-R,k,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(T),1,0,0,0,0,1,0,0,0,0,1)._t(k,-R,0,0,R,k,0,0,0,0,1,0,0,0,0,1)}function f(T,P,k){return!k&&k!==0&&(k=1),T===1&&P===1&&k===1?this:this._t(T,0,0,0,0,P,0,0,0,0,k,0,0,0,0,1)}function p(T,P,k,R,X,Z,q,ne,re,se,ce,fe,he,ue,de,oe){return this.props[0]=T,this.props[1]=P,this.props[2]=k,this.props[3]=R,this.props[4]=X,this.props[5]=Z,this.props[6]=q,this.props[7]=ne,this.props[8]=re,this.props[9]=se,this.props[10]=ce,this.props[11]=fe,this.props[12]=he,this.props[13]=ue,this.props[14]=de,this.props[15]=oe,this}function d(T,P,k){return k=k||0,T!==0||P!==0||k!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,T,P,k,1):this}function g(T,P,k,R,X,Z,q,ne,re,se,ce,fe,he,ue,de,oe){var J=this.props;if(T===1&&P===0&&k===0&&R===0&&X===0&&Z===1&&q===0&&ne===0&&re===0&&se===0&&ce===1&&fe===0)return J[12]=J[12]*T+J[15]*he,J[13]=J[13]*Z+J[15]*ue,J[14]=J[14]*ce+J[15]*de,J[15]*=oe,this._identityCalculated=!1,this;var Ce=J[0],ve=J[1],ge=J[2],Ae=J[3],Ie=J[4],pe=J[5],me=J[6],Ee=J[7],Te=J[8],ye=J[9],Pe=J[10],Se=J[11],we=J[12],Me=J[13],G=J[14],O=J[15];return J[0]=Ce*T+ve*X+ge*re+Ae*he,J[1]=Ce*P+ve*Z+ge*se+Ae*ue,J[2]=Ce*k+ve*q+ge*ce+Ae*de,J[3]=Ce*R+ve*ne+ge*fe+Ae*oe,J[4]=Ie*T+pe*X+me*re+Ee*he,J[5]=Ie*P+pe*Z+me*se+Ee*ue,J[6]=Ie*k+pe*q+me*ce+Ee*de,J[7]=Ie*R+pe*ne+me*fe+Ee*oe,J[8]=Te*T+ye*X+Pe*re+Se*he,J[9]=Te*P+ye*Z+Pe*se+Se*ue,J[10]=Te*k+ye*q+Pe*ce+Se*de,J[11]=Te*R+ye*ne+Pe*fe+Se*oe,J[12]=we*T+Me*X+G*re+O*he,J[13]=we*P+Me*Z+G*se+O*ue,J[14]=we*k+Me*q+G*ce+O*de,J[15]=we*R+Me*ne+G*fe+O*oe,this._identityCalculated=!1,this}function E(T){var P=T.props;return this.transform(P[0],P[1],P[2],P[3],P[4],P[5],P[6],P[7],P[8],P[9],P[10],P[11],P[12],P[13],P[14],P[15])}function S(){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 b(T){for(var P=0;P<16;){if(T.props[P]!==this.props[P])return!1;P+=1}return!0}function A(T){var P;for(P=0;P<16;P+=1)T.props[P]=this.props[P];return T}function y(T){var P;for(P=0;P<16;P+=1)this.props[P]=T[P]}function C(T,P,k){return{x:T*this.props[0]+P*this.props[4]+k*this.props[8]+this.props[12],y:T*this.props[1]+P*this.props[5]+k*this.props[9]+this.props[13],z:T*this.props[2]+P*this.props[6]+k*this.props[10]+this.props[14]}}function x(T,P,k){return T*this.props[0]+P*this.props[4]+k*this.props[8]+this.props[12]}function F(T,P,k){return T*this.props[1]+P*this.props[5]+k*this.props[9]+this.props[13]}function N(T,P,k){return T*this.props[2]+P*this.props[6]+k*this.props[10]+this.props[14]}function V(){var T=this.props[0]*this.props[5]-this.props[1]*this.props[4],P=this.props[5]/T,k=-this.props[1]/T,R=-this.props[4]/T,X=this.props[0]/T,Z=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/T,q=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/T,ne=new Matrix;return ne.props[0]=P,ne.props[1]=k,ne.props[4]=R,ne.props[5]=X,ne.props[12]=Z,ne.props[13]=q,ne}function _(T){var P=this.getInverseMatrix();return P.applyToPointArray(T[0],T[1],T[2]||0)}function $(T){var P,k=T.length,R=[];for(P=0;P<k;P+=1)R[P]=_(T[P]);return R}function L(T,P,k){var R=createTypedArray("float32",6);if(this.isIdentity())R[0]=T[0],R[1]=T[1],R[2]=P[0],R[3]=P[1],R[4]=k[0],R[5]=k[1];else{var X=this.props[0],Z=this.props[1],q=this.props[4],ne=this.props[5],re=this.props[12],se=this.props[13];R[0]=T[0]*X+T[1]*q+re,R[1]=T[0]*Z+T[1]*ne+se,R[2]=P[0]*X+P[1]*q+re,R[3]=P[0]*Z+P[1]*ne+se,R[4]=k[0]*X+k[1]*q+re,R[5]=k[0]*Z+k[1]*ne+se}return R}function j(T,P,k){var R;return this.isIdentity()?R=[T,P,k]:R=[T*this.props[0]+P*this.props[4]+k*this.props[8]+this.props[12],T*this.props[1]+P*this.props[5]+k*this.props[9]+this.props[13],T*this.props[2]+P*this.props[6]+k*this.props[10]+this.props[14]],R}function z(T,P){if(this.isIdentity())return T+","+P;var k=this.props;return Math.round((T*k[0]+P*k[4]+k[12])*100)/100+","+Math.round((T*k[1]+P*k[5]+k[13])*100)/100}function H(){for(var T=0,P=this.props,k="matrix3d(",R=1e4;T<16;)k+=a(P[T]*R)/R,k+=T===15?")":",",T+=1;return k}function I(T){var P=1e4;return T<1e-6&&T>0||T>-1e-6&&T<0?a(T*P)/P:T}function D(){var T=this.props,P=I(T[0]),k=I(T[1]),R=I(T[4]),X=I(T[5]),Z=I(T[12]),q=I(T[13]);return"matrix("+P+","+k+","+R+","+X+","+Z+","+q+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=i,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=m,this.shear=c,this.scale=f,this.setTransform=p,this.translate=d,this.transform=g,this.multiply=E,this.applyToPoint=C,this.applyToX=x,this.applyToY=F,this.applyToZ=N,this.applyToPointArray=j,this.applyToTriplePoints=L,this.applyToPointStringified=z,this.toCSS=H,this.to2dCSS=D,this.clone=A,this.cloneFromProps=y,this.equals=b,this.inversePoints=$,this.inversePoint=_,this.getInverseMatrix=V,this._t=this.transform,this.isIdentity=S,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 u,m;c.s*n<=a?u=0:u=(c.s*n-a)/r,c.e*n>=a+r?m=1:m=(c.e*n-a)/r,i.push([u,m])}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,u,m,f,p=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 d=[],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,f=0,!g.shape._mdf&&g.pathsData.length)f=g.totalShapeLength;else{for(u=this.releasePathsData(g.pathsData),l=0;l<c;l+=1)m=bez.getSegmentsLength(s.shapes[l]),u.push(m),f+=m.totalLength;g.totalShapeLength=f,g.pathsData=u}p+=f,g.shape._mdf=!0}var S=t,b=r,A=0,y;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?(y=this.calculateShapeEdges(t,r,g.totalShapeLength,A,p),A+=g.totalShapeLength):y=[[S,b]],c=y.length,l=0;l<c;l+=1){S=y[l][0],b=y[l][1],d.length=0,b<=1?d.push({s:g.totalShapeLength*S,e:g.totalShapeLength*b}):S>=1?d.push({s:g.totalShapeLength*(S-1),e:g.totalShapeLength*(b-1)}):(d.push({s:g.totalShapeLength*S,e:g.totalShapeLength}),d.push({s:0,e:g.totalShapeLength*(b-1)}));var C=this.addShapes(g,d[0]);if(d[0].s!==d[0].e){if(d.length>1){var x=g.shape.paths.shapes[g.shape.paths._length-1];if(x.c){var F=C.pop();this.addPaths(C,E),C=this.addShapes(g,d[1],F)}else this.addPaths(C,E),C=this.addShapes(g,d[1])}this.addPaths(C,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,u,m,f,p,d=[],g,E=!0;for(r?(m=r._length,g=r._length):(r=shapePool.newElement(),m=0,g=0),d.push(r),s=0;s<i;s+=1){for(f=a[s].lengths,r.c=n[s].c,l=n[s].c?f.length:f.length+1,o=1;o<l;o+=1)if(u=f[o-1],c+u.addedLength<t.s)c+=u.addedLength,r.c=!1;else if(c>t.e){r.c=!1;break}else t.s<=c&&t.e>=c+u.addedLength?(this.addSegment(n[s].v[o-1],n[s].o[o-1],n[s].i[o],n[s].v[o],r,m,E),E=!1):(p=bez.getNewSegment(n[s].v[o-1],n[s].v[o],n[s].o[o-1],n[s].i[o],(t.s-c)/u.addedLength,(t.e-c)/u.addedLength,f[o-1]),this.addSegmentFromArray(p,r,m,E),E=!1,r.c=!1),c+=u.addedLength,m+=1;if(n[s].c&&f.length){if(u=f[o-1],c<=t.e){var S=f[o-1].addedLength;t.s<=c&&t.e>=c+S?(this.addSegment(n[s].v[o-1],n[s].o[o-1],n[s].i[0],n[s].v[0],r,m,E),E=!1):(p=bez.getNewSegment(n[s].v[o-1],n[s].v[0],n[s].o[o-1],n[s].i[0],(t.s-c)/S,(t.e-c)/S,f[o-1]),this.addSegmentFromArray(p,r,m,E),E=!1,r.c=!1)}else r.c=!1;c+=u.addedLength,m+=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,d.push(r),m=0)}return d};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,u,m,f;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,u=e.o[s][1]+(a[1]-e.o[s][1])*-r,m=e.i[s][0]+(a[0]-e.i[s][0])*-r,f=e.i[s][1]+(a[1]-e.i[s][1])*-r,i.setTripleAt(o,l,c,u,m,f,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 u,m;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?(u=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),m=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?(u=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),m=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(u=this.p.pv,m=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){u=[],m=[];var f=this.px,p=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(u[0]=f.getValueAtTime((f.keyframes[0].t+.01)/c,0),u[1]=p.getValueAtTime((p.keyframes[0].t+.01)/c,0),m[0]=f.getValueAtTime(f.keyframes[0].t/c,0),m[1]=p.getValueAtTime(p.keyframes[0].t/c,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(u[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/c,0),u[1]=p.getValueAtTime(p.keyframes[p.keyframes.length-1].t/c,0),m[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/c,0),m[1]=p.getValueAtTime((p.keyframes[p.keyframes.length-1].t-.01)/c,0)):(u=[f.pv,p.pv],m[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/c,f.offsetTime),m[1]=p.getValueAtTime((p._caching.lastFrame+p.offsetTime-.01)/c,p.offsetTime))}else m=e,u=m;this.v.rotate(-Math.atan2(u[1]-m[1],u[0]-m[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,u){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(u||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 m,f=c.or.k.length;for(m=0;m<f;m+=1)c.or.k[m].to=null,c.or.k[m].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,u){return new i(l,c,u)}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 u=this.elemsData[a].it,m=u[u.length-1];m.transform.op.v!==0?(m.transform.op._mdf=!0,m.transform.op.v=0):m.transform.op._mdf=!1}s+=1}this._currentCopies=o;var f=this.o.v,p=f%1,d=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,E=this.rMatrix.props,S=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b=0;if(f>0){for(;b<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),b+=p)}else if(f<0){for(;b>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),b-=p)}a=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;for(var A,y;s;){if(t=this.elemsData[a].it,r=t[t.length-1].transform.mProps.v.props,y=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)),b!==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(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[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]),A=0;A<y;A+=1)r[A]=this.matrix.props[A];this.matrix.reset()}else for(this.matrix.reset(),A=0;A<y;A+=1)r[A]=this.matrix.props[A];b+=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,u,m=0,f,p,d,g,E,S;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],m),m+=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)),u=c?Math.min(c/2,t)/c:0,E=s[0]+(l[0]-s[0])*u,f=E,S=s[1]-(s[1]-l[1])*u,p=S,d=f-(f-s[0])*roundCorner,g=p-(p-s[1])*roundCorner,r.setTripleAt(f,p,d,g,E,S,m),m+=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)),u=c?Math.min(c/2,t)/c:0,d=s[0]+(l[0]-s[0])*u,f=d,g=s[1]+(l[1]-s[1])*u,p=g,E=f-(f-s[0])*roundCorner,S=p-(p-s[1])*roundCorner,r.setTripleAt(f,p,d,g,E,S,m),m+=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],m),m+=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,u=t[1]-Math.sin(r)*a*n;e.setTripleAt(c,u,c+Math.cos(o)*s,u-Math.sin(o)*s,c+Math.cos(l)*i,u-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],u=t.v[(r+1)%t._length],m=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,f=s===2?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],o,i,a,f/((n+1)*2),m/((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),u=t.point(o);setPoint(e,u,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,u;for(r=0;r<a;r+=1){if(c=this.shapes[r],u=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(u.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)u.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 u=lineIntersection(i,o,n,s);return u===null&&(u=i),new PolynomialBezier(r,c,u,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)),u=c?pointDistance(c,s):pointDistance(s,i)/2,m=polarOffset(s,o,2*u*roundCorner);return e.setXYAt(m[0],m[1],"o",e.length()-1),m=polarOffset(i,l,2*u*roundCorner),e.setTripleAt(i[0],i[1],i[0],i[1],m[0],m[1],e.length()),i}var f=pointEqual(s,t.points[2])?t.points[0]:t.points[2],p=pointEqual(i,r.points[1])?r.points[3]:r.points[1],d=lineIntersection(f,s,i,p);return d&&pointDistance(d,s)<n?(e.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],e.length()),d):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 u=null,m=null;for(i=0;i<c.length;i+=1){var f=c[i];for(m&&(u=joinLines(n,m,f[0],r,a)),m=f[f.length-1],o=0;o<f.length;o+=1)l=f[o],u&&pointEqual(l.points[0],u)?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()),u=l.points[3]}return c.length&&joinLines(n,m,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,u;for(r=0;r<a;r+=1){if(c=this.shapes[r],u=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(u.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)u.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,u=127487,m=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(I){var D=I.split(","),T,P=D.length,k=[];for(T=0;T<P;T+=1)D[T]!=="sans-serif"&&D[T]!=="monospace"&&k.push(D[T]);return k.join(",")}function p(I,D){var T=createTag("span");T.setAttribute("aria-hidden",!0),T.style.fontFamily=D;var P=createTag("span");P.innerText="giItT1WQy@!-/#",T.style.position="absolute",T.style.left="-10000px",T.style.top="-10000px",T.style.fontSize="300px",T.style.fontVariant="normal",T.style.fontStyle="normal",T.style.fontWeight="normal",T.style.letterSpacing="0",T.appendChild(P),document.body.appendChild(T);var k=P.offsetWidth;return P.style.fontFamily=f(I)+", "+D,{node:P,w:k,parent:T}}function d(){var I,D=this.fonts.length,T,P,k=D;for(I=0;I<D;I+=1)this.fonts[I].loaded?k-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(T=this.fonts[I].monoCase.node,P=this.fonts[I].monoCase.w,T.offsetWidth!==P?(k-=1,this.fonts[I].loaded=!0):(T=this.fonts[I].sansCase.node,P=this.fonts[I].sansCase.w,T.offsetWidth!==P&&(k-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));k!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(I,D){var T=document.body&&D?"svg":"canvas",P,k=getFontProperties(I);if(T==="svg"){var R=createNS("text");R.style.fontSize="100px",R.setAttribute("font-family",I.fFamily),R.setAttribute("font-style",k.style),R.setAttribute("font-weight",k.weight),R.textContent="1",I.fClass?(R.style.fontFamily="inherit",R.setAttribute("class",I.fClass)):R.style.fontFamily=I.fFamily,D.appendChild(R),P=R}else{var X=new OffscreenCanvas(500,500).getContext("2d");X.font=k.style+" "+k.weight+" 100px "+I.fFamily,P=X}function Z(q){return T==="svg"?(P.textContent=q,P.getComputedTextLength()):P.measureText(q).width}return{measureText:Z}}function E(I,D){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(ce){ce.helper=g(ce),ce.cache={}}),this.fonts=I.list;return}var T=I.list,P,k=T.length,R=k;for(P=0;P<k;P+=1){var X=!0,Z,q;if(T[P].loaded=!1,T[P].monoCase=p(T[P].fFamily,"monospace"),T[P].sansCase=p(T[P].fFamily,"sans-serif"),!T[P].fPath)T[P].loaded=!0,R-=1;else if(T[P].fOrigin==="p"||T[P].origin===3){if(Z=document.querySelectorAll('style[f-forigin="p"][f-family="'+T[P].fFamily+'"], style[f-origin="3"][f-family="'+T[P].fFamily+'"]'),Z.length>0&&(X=!1),X){var ne=createTag("style");ne.setAttribute("f-forigin",T[P].fOrigin),ne.setAttribute("f-origin",T[P].origin),ne.setAttribute("f-family",T[P].fFamily),ne.type="text/css",ne.innerText="@font-face {font-family: "+T[P].fFamily+"; font-style: normal; src: url('"+T[P].fPath+"');}",D.appendChild(ne)}}else if(T[P].fOrigin==="g"||T[P].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(T[P].fPath)!==-1&&(X=!1);if(X){var re=createTag("link");re.setAttribute("f-forigin",T[P].fOrigin),re.setAttribute("f-origin",T[P].origin),re.type="text/css",re.rel="stylesheet",re.href=T[P].fPath,document.body.appendChild(re)}}else if(T[P].fOrigin==="t"||T[P].origin===2){for(Z=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),q=0;q<Z.length;q+=1)T[P].fPath===Z[q].src&&(X=!1);if(X){var se=createTag("link");se.setAttribute("f-forigin",T[P].fOrigin),se.setAttribute("f-origin",T[P].origin),se.setAttribute("rel","stylesheet"),se.setAttribute("href",T[P].fPath),D.appendChild(se)}}T[P].helper=g(T[P],D),T[P].cache={},this.fonts.push(T[P])}R===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function S(I){if(I){this.chars||(this.chars=[]);var D,T=I.length,P,k=this.chars.length,R;for(D=0;D<T;D+=1){for(P=0,R=!1;P<k;)this.chars[P].style===I[D].style&&this.chars[P].fFamily===I[D].fFamily&&this.chars[P].ch===I[D].ch&&(R=!0),P+=1;R||(this.chars.push(I[D]),k+=1)}}}function b(I,D,T){for(var P=0,k=this.chars.length;P<k;){if(this.chars[P].ch===I&&this.chars[P].style===D&&this.chars[P].fFamily===T)return this.chars[P];P+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,D,T)),t}function A(I,D,T){var P=this.getFontByName(D),k=I;if(!P.cache[k]){var R=P.helper;if(I===" "){var X=R.measureText("|"+I+"|"),Z=R.measureText("||");P.cache[k]=(X-Z)/100}else P.cache[k]=R.measureText(I)/100}return P.cache[k]*T}function y(I){for(var D=0,T=this.fonts.length;D<T;){if(this.fonts[D].fName===I)return this.fonts[D];D+=1}return this.fonts[0]}function C(I){var D=0,T=I.charCodeAt(0);if(T>=55296&&T<=56319){var P=I.charCodeAt(1);P>=56320&&P<=57343&&(D=(T-55296)*1024+P-56320+65536)}return D}function x(I,D){var T=I.toString(16)+D.toString(16);return m.indexOf(T)!==-1}function F(I){return I===l}function N(I){return I===o}function V(I){var D=C(I);return D>=c&&D<=u}function _(I){return V(I.substr(0,2))&&V(I.substr(2,2))}function $(I){return r.indexOf(I)!==-1}function L(I,D){var T=C(I.substr(D,2));if(T!==a)return!1;var P=0;for(D+=2;P<5;){if(T=C(I.substr(D,2)),T<s||T>i)return!1;P+=1,D+=2}return C(I.substr(D,2))===n}function j(){this.isLoaded=!0}var z=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)};z.isModifier=x,z.isZeroWidthJoiner=F,z.isFlagEmoji=_,z.isRegionalCode=V,z.isCombinedCharacter=$,z.isRegionalFlag=L,z.isVariationSelector=N,z.BLACK_FLAG_CODE_POINT=a;var H={addChars:S,addFonts:E,getCharData:b,getFontByName:y,measureText:A,checkLoadedFonts:d,setIsLoaded:j};return z.prototype=H,z}();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=[],u,m,f=createElementID(),p,d,g,E,S="clipPath",b="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)&&(S="mask",b="mask"),(o[n].mode==="s"||o[n].mode==="i")&&l===0?(p=createNS("rect"),p.setAttribute("fill","#ffffff"),p.setAttribute("width",this.element.comp.data.w||0),p.setAttribute("height",this.element.comp.data.h||0),c.push(p)):p=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 A;if(o[n].x.k!==0?(S="mask",b="mask",E=PropertyFactory.getProp(this.element,o[n].x,0,null,this.element),A=createElementID(),d=createNS("filter"),d.setAttribute("id",A),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),d.appendChild(g),a.appendChild(d),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:A,lastRadius:0},o[n].mode==="i"){m=c.length;var y=createNS("g");for(u=0;u<m;u+=1)y.appendChild(c[u]);var C=createNS("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",f+"_"+l),C.appendChild(i),a.appendChild(C),y.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),c.length=0,c.push(y)}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:p},this.viewData[n].prop.k||this.drawPath(o[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(S),s=c.length,n=0;n<s;n+=1)this.maskElement.appendChild(c[n]);l>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+f+")"),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 u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),n.appendChild(u);var m=createNS("feFuncA");m.setAttribute("type","table"),m.setAttribute("tableValues","1.0 0.0"),u.appendChild(m),this.globalData.defs.appendChild(n);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),c.appendChild(f),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(f),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 u=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),u.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=u,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(m){switch(m.ty){case"fl":return o;case"gf":return c;case"gs":return l;case"st":return u;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return s;default:return null}}function n(m,f,p){(p||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(p||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function s(){}function i(m,f,p){var d,g,E,S,b,A,y=f.styles.length,C=f.lvl,x,F,N,V;for(A=0;A<y;A+=1){if(S=f.sh._mdf||p,f.styles[A].lvl<C){for(F=t.reset(),N=C-f.styles[A].lvl,V=f.transformers.length-1;!S&&N>0;)S=f.transformers[V].mProps._mdf||S,N-=1,V-=1;if(S)for(N=C-f.styles[A].lvl,V=f.transformers.length-1;N>0;)F.multiply(f.transformers[V].mProps.v),N-=1,V-=1}else F=e;if(x=f.sh.paths,g=x._length,S){for(E="",d=0;d<g;d+=1)b=x.shapes[d],b&&b._length&&(E+=buildShapeString(b,b._length,b.c,F));f.caches[A]=E}else E=f.caches[A];f.styles[A].d+=m.hd===!0?"":E,f.styles[A]._mdf=S||f.styles[A]._mdf}}function o(m,f,p){var d=f.style;(f.c._mdf||p)&&d.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||p)&&d.pElem.setAttribute("fill-opacity",f.o.v)}function l(m,f,p){c(m,f,p),u(m,f,p)}function c(m,f,p){var d=f.gf,g=f.g._hasOpacity,E=f.s.v,S=f.e.v;if(f.o._mdf||p){var b=m.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(b,f.o.v)}if(f.s._mdf||p){var A=m.t===1?"x1":"cx",y=A==="x1"?"y1":"cy";d.setAttribute(A,E[0]),d.setAttribute(y,E[1]),g&&!f.g._collapsable&&(f.of.setAttribute(A,E[0]),f.of.setAttribute(y,E[1]))}var C,x,F,N;if(f.g._cmdf||p){C=f.cst;var V=f.g.c;for(F=C.length,x=0;x<F;x+=1)N=C[x],N.setAttribute("offset",V[x*4]+"%"),N.setAttribute("stop-color","rgb("+V[x*4+1]+","+V[x*4+2]+","+V[x*4+3]+")")}if(g&&(f.g._omdf||p)){var _=f.g.o;for(f.g._collapsable?C=f.cst:C=f.ost,F=C.length,x=0;x<F;x+=1)N=C[x],f.g._collapsable||N.setAttribute("offset",_[x*2]+"%"),N.setAttribute("stop-opacity",_[x*2+1])}if(m.t===1)(f.e._mdf||p)&&(d.setAttribute("x2",S[0]),d.setAttribute("y2",S[1]),g&&!f.g._collapsable&&(f.of.setAttribute("x2",S[0]),f.of.setAttribute("y2",S[1])));else{var $;if((f.s._mdf||f.e._mdf||p)&&($=Math.sqrt(Math.pow(E[0]-S[0],2)+Math.pow(E[1]-S[1],2)),d.setAttribute("r",$),g&&!f.g._collapsable&&f.of.setAttribute("r",$)),f.e._mdf||f.h._mdf||f.a._mdf||p){$||($=Math.sqrt(Math.pow(E[0]-S[0],2)+Math.pow(E[1]-S[1],2)));var L=Math.atan2(S[1]-E[1],S[0]-E[0]),j=f.h.v;j>=1?j=.99:j<=-1&&(j=-.99);var z=$*j,H=Math.cos(L+f.a.v)*z+E[0],I=Math.sin(L+f.a.v)*z+E[1];d.setAttribute("fx",H),d.setAttribute("fy",I),g&&!f.g._collapsable&&(f.of.setAttribute("fx",H),f.of.setAttribute("fy",I))}}}function u(m,f,p){var d=f.style,g=f.d;g&&(g._mdf||p)&&g.dashStr&&(d.pElem.setAttribute("stroke-dasharray",g.dashStr),d.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),f.c&&(f.c._mdf||p)&&d.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||p)&&d.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||p)&&(d.pElem.setAttribute("stroke-width",f.w.v),d.msElem&&d.msElem.setAttribute("stroke-width",f.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,u,m,f=[],p=[],d,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),f.push(t[l].style);else if(e[l].ty==="gr"){if(!E)t[l]=this.createGroupElement(e[l]);else for(m=t[l].it.length,u=0;u<m;u+=1)t[l].prevViewData[u]=t[l].it[u];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)),d=t[l].transform,o.push(d)):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)),p.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),p.push(g));this.addProcessedElement(e[l],l+1)}for(c=f.length,l=0;l<c;l+=1)f[l].closed=!0;for(c=p.length,l=0;l<c;l+=1)p[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,u=0,m=0,f=0,p=[],d=0,g=0,E,S,b=t.getFontByName(e.f),A,y=0,C=getFontProperties(b);e.fWeight=C.weight,e.fStyle=C.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),s=e.finalText.length,e.finalLineHeight=e.lh;var x=e.tr/1e3*e.finalSize,F;if(e.sz)for(var N=!0,V=e.sz[0],_=e.sz[1],$,L;N;){L=this.buildFinalText(e.t),$=0,d=0,s=L.length,x=e.tr/1e3*e.finalSize;var j=-1;for(n=0;n<s;n+=1)F=L[n].charCodeAt(0),i=!1,L[n]===" "?j=n:(F===13||F===3)&&(d=0,i=!0,$+=e.finalLineHeight||e.finalSize*1.2),t.chars?(A=t.getCharData(L[n],b.fStyle,b.fFamily),y=i?0:A.w*e.finalSize/100):y=t.measureText(L[n],e.f,e.finalSize),d+y>V&&L[n]!==" "?(j===-1?s+=1:n=j,$+=e.finalLineHeight||e.finalSize*1.2,L.splice(n,j===n?1:0,"\r"),j=-1,d=0):(d+=y,d+=x);$+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&_<$?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=L,s=e.finalText.length,N=!1)}d=-x,y=0;var z=0,H;for(n=0;n<s;n+=1)if(i=!1,H=e.finalText[n],F=H.charCodeAt(0),F===13||F===3?(z=0,p.push(d),g=d>g?d:g,d=-2*x,l="",i=!0,f+=1):l=H,t.chars?(A=t.getCharData(H,b.fStyle,t.getFontByName(e.f).fFamily),y=i?0:A.w*e.finalSize/100):y=t.measureText(l,e.f,e.finalSize),H===" "?z+=y+x:(d+=y+x+z,z=0),a.push({l:y,an:y,add:u,n:i,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),c==2){if(u+=y,l===""||l===" "||n===s-1){for((l===""||l===" ")&&(u-=y);m<=n;)a[m].an=u,a[m].ind=o,a[m].extra=y,m+=1;o+=1,u=0}}else if(c==3){if(u+=y,l===""||n===s-1){for(l===""&&(u-=y);m<=n;)a[m].an=u,a[m].ind=o,a[m].extra=y,m+=1;u=0,o+=1}}else a[o].ind=o,a[o].extra=0,o+=1;if(e.l=a,g=d>g?d:g,p.push(d),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=p;var I=r.a,D,T;S=I.length;var P,k,R=[];for(E=0;E<S;E+=1){for(D=I[E],D.a.sc&&(e.strokeColorAnim=!0),D.a.sw&&(e.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(e.fillColorAnim=!0),k=0,P=D.s.b,n=0;n<s;n+=1)T=a[n],T.anIndexes[E]=k,(P==1&&T.val!==""||P==2&&T.val!==""&&T.val!==" "||P==3&&(T.n||T.val==" "||n==s-1)||P==4&&(T.n||n==s-1))&&(D.s.rn===1&&R.push(k),k+=1);r.a[E].s.totalChars=k;var X=-1,Z;if(D.s.rn===1)for(n=0;n<s;n+=1)T=a[n],X!=T.anIndexes[E]&&(X=T.anIndexes[E],Z=R.splice(Math.floor(Math.random()*R.length),1)[0]),T.anIndexes[E]=Z}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=b.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,u=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:u=1+this.xe.v/100;var m=BezierFactory.getBezierEasing(o,l,c,u).get,f=0,p=this.finalS,d=this.finalE,g=this.data.sh;if(g===2)d===p?f=i>=d?1:0:f=e(0,t(.5/(d-p)+(i-p)/(d-p),1)),f=m(f);else if(g===3)d===p?f=i>=d?0:1:f=1-e(0,t(.5/(d-p)+(i-p)/(d-p),1)),f=m(f);else if(g===4)d===p?f=0:(f=e(0,t(.5/(d-p)+(i-p)/(d-p),1)),f<.5?f*=2:f=1-2*(f-.5)),f=m(f);else if(g===5){if(d===p)f=0;else{var E=d-p;i=t(e(0,i+.5-p),d-p);var S=-E/2+i,b=E/2;f=Math.sqrt(1-S*S/(b*b))}f=m(f)}else g===6?(d===p?f=0:(i=t(e(0,i+.5-p),d-p),f=(1+Math.cos(Math.PI+Math.PI*2*i/(d-p)))/2),f=m(f)):(i>=r(p)&&(i-p<0?f=e(0,t(t(d,1)-(p-i),1)):f=e(0,t(d-i,1))),f=m(f));if(this.sm.v!==100){var A=this.sm.v*.01;A===0&&(A=1e-8);var y=.5-A*.5;f<y?f=0:(f=(f-y)/A,f>1&&(f=1))}return f*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,u=this.e.v/o+l;if(c>u){var m=c;c=u,u=m}this.finalS=c,this.finalE=u}},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,u,m,f=e.l,p,d,g,E,S,b,A,y,C,x,F,N,V,_,$;if(this._hasMaskedPath){if($=this._pathData.m,!this._pathData.n||this._pathData._mdf){var L=$.v;this._pathData.r.v&&(L=L.reverse()),p={tLength:0,segments:[]},m=L._length-1;var j;for(N=0,u=0;u<m;u+=1)j=bez.buildBezierData(L.v[u],L.v[u+1],[L.o[u][0]-L.v[u][0],L.o[u][1]-L.v[u][1]],[L.i[u+1][0]-L.v[u+1][0],L.i[u+1][1]-L.v[u+1][1]]),p.tLength+=j.segmentLength,p.segments.push(j),N+=j.segmentLength;u=m,$.v.c&&(j=bez.buildBezierData(L.v[u],L.v[0],[L.o[u][0]-L.v[u][0],L.o[u][1]-L.v[u][1]],[L.i[0][0]-L.v[0][0],L.i[0][1]-L.v[0][1]]),p.tLength+=j.segmentLength,p.segments.push(j),N+=j.segmentLength),this._pathData.pi=p}if(p=this._pathData.pi,d=this._pathData.f.v,A=0,b=1,E=0,S=!0,x=p.segments,d<0&&$.v.c)for(p.tLength<Math.abs(d)&&(d=-Math.abs(d)%p.tLength),A=x.length-1,C=x[A].points,b=C.length-1;d<0;)d+=C[b].partialLength,b-=1,b<0&&(A-=1,C=x[A].points,b=C.length-1);C=x[A].points,y=C[b-1],g=C[b],F=g.partialLength}m=f.length,l=0,c=0;var z=e.finalSize*1.2*.714,H=!0,I,D,T,P,k;P=a.length;var R,X=-1,Z,q,ne,re=d,se=A,ce=b,fe=-1,he,ue,de,oe,J,Ce,ve,ge,Ae="",Ie=this.defaultPropsArray,pe;if(e.j===2||e.j===1){var me=0,Ee=0,Te=e.j===2?-.5:-1,ye=0,Pe=!0;for(u=0;u<m;u+=1)if(f[u].n){for(me&&(me+=Ee);ye<u;)f[ye].animatorJustifyOffset=me,ye+=1;me=0,Pe=!0}else{for(T=0;T<P;T+=1)I=a[T].a,I.t.propType&&(Pe&&e.j===2&&(Ee+=I.t.v*Te),D=a[T].s,R=D.getMult(f[u].anIndexes[T],n.a[T].s.totalChars),R.length?me+=I.t.v*R[0]*Te:me+=I.t.v*R*Te);Pe=!1}for(me&&(me+=Ee);ye<u;)f[ye].animatorJustifyOffset=me,ye+=1}for(u=0;u<m;u+=1){if(s.reset(),he=1,f[u].n)l=0,c+=e.yOffset,c+=H?1:0,d=re,H=!1,this._hasMaskedPath&&(A=se,b=ce,C=x[A].points,y=C[b-1],g=C[b],F=g.partialLength,E=0),Ae="",ge="",Ce="",pe="",Ie=this.defaultPropsArray;else{if(this._hasMaskedPath){if(fe!==f[u].line){switch(e.j){case 1:d+=N-e.lineWidths[f[u].line];break;case 2:d+=(N-e.lineWidths[f[u].line])/2;break}fe=f[u].line}X!==f[u].ind&&(f[X]&&(d+=f[X].extra),d+=f[u].an/2,X=f[u].ind),d+=r[0]*f[u].an*.005;var Se=0;for(T=0;T<P;T+=1)I=a[T].a,I.p.propType&&(D=a[T].s,R=D.getMult(f[u].anIndexes[T],n.a[T].s.totalChars),R.length?Se+=I.p.v[0]*R[0]:Se+=I.p.v[0]*R),I.a.propType&&(D=a[T].s,R=D.getMult(f[u].anIndexes[T],n.a[T].s.totalChars),R.length?Se+=I.a.v[0]*R[0]:Se+=I.a.v[0]*R);for(S=!0,this._pathData.a.v&&(d=f[0].an*.5+(N-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*X/(m-1),d+=this._pathData.f.v);S;)E+F>=d+Se||!C?(V=(d+Se-E)/g.partialLength,q=y.point[0]+(g.point[0]-y.point[0])*V,ne=y.point[1]+(g.point[1]-y.point[1])*V,s.translate(-r[0]*f[u].an*.005,-(r[1]*z)*.01),S=!1):C&&(E+=g.partialLength,b+=1,b>=C.length&&(b=0,A+=1,x[A]?C=x[A].points:$.v.c?(b=0,A=0,C=x[A].points):(E-=g.partialLength,C=null)),C&&(y=g,g=C[b],F=g.partialLength));Z=f[u].an/2-f[u].add,s.translate(-Z,0,0)}else Z=f[u].an/2-f[u].add,s.translate(-Z,0,0),s.translate(-r[0]*f[u].an*.005,-r[1]*z*.01,0);for(T=0;T<P;T+=1)I=a[T].a,I.t.propType&&(D=a[T].s,R=D.getMult(f[u].anIndexes[T],n.a[T].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?R.length?d+=I.t.v*R[0]:d+=I.t.v*R:R.length?l+=I.t.v*R[0]:l+=I.t.v*R));for(e.strokeWidthAnim&&(de=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&&(oe=[e.fc[0],e.fc[1],e.fc[2]]),T=0;T<P;T+=1)I=a[T].a,I.a.propType&&(D=a[T].s,R=D.getMult(f[u].anIndexes[T],n.a[T].s.totalChars),R.length?s.translate(-I.a.v[0]*R[0],-I.a.v[1]*R[1],I.a.v[2]*R[2]):s.translate(-I.a.v[0]*R,-I.a.v[1]*R,I.a.v[2]*R));for(T=0;T<P;T+=1)I=a[T].a,I.s.propType&&(D=a[T].s,R=D.getMult(f[u].anIndexes[T],n.a[T].s.totalChars),R.length?s.scale(1+(I.s.v[0]-1)*R[0],1+(I.s.v[1]-1)*R[1],1):s.scale(1+(I.s.v[0]-1)*R,1+(I.s.v[1]-1)*R,1));for(T=0;T<P;T+=1){if(I=a[T].a,D=a[T].s,R=D.getMult(f[u].anIndexes[T],n.a[T].s.totalChars),I.sk.propType&&(R.length?s.skewFromAxis(-I.sk.v*R[0],I.sa.v*R[1]):s.skewFromAxis(-I.sk.v*R,I.sa.v*R)),I.r.propType&&(R.length?s.rotateZ(-I.r.v*R[2]):s.rotateZ(-I.r.v*R)),I.ry.propType&&(R.length?s.rotateY(I.ry.v*R[1]):s.rotateY(I.ry.v*R)),I.rx.propType&&(R.length?s.rotateX(I.rx.v*R[0]):s.rotateX(I.rx.v*R)),I.o.propType&&(R.length?he+=(I.o.v*R[0]-he)*R[0]:he+=(I.o.v*R-he)*R),e.strokeWidthAnim&&I.sw.propType&&(R.length?de+=I.sw.v*R[0]:de+=I.sw.v*R),e.strokeColorAnim&&I.sc.propType)for(J=0;J<3;J+=1)R.length?ue[J]+=(I.sc.v[J]-ue[J])*R[0]:ue[J]+=(I.sc.v[J]-ue[J])*R;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(J=0;J<3;J+=1)R.length?oe[J]+=(I.fc.v[J]-oe[J])*R[0]:oe[J]+=(I.fc.v[J]-oe[J])*R;I.fh.propType&&(R.length?oe=addHueToRGB(oe,I.fh.v*R[0]):oe=addHueToRGB(oe,I.fh.v*R)),I.fs.propType&&(R.length?oe=addSaturationToRGB(oe,I.fs.v*R[0]):oe=addSaturationToRGB(oe,I.fs.v*R)),I.fb.propType&&(R.length?oe=addBrightnessToRGB(oe,I.fb.v*R[0]):oe=addBrightnessToRGB(oe,I.fb.v*R))}}for(T=0;T<P;T+=1)I=a[T].a,I.p.propType&&(D=a[T].s,R=D.getMult(f[u].anIndexes[T],n.a[T].s.totalChars),this._hasMaskedPath?R.length?s.translate(0,I.p.v[1]*R[0],-I.p.v[2]*R[1]):s.translate(0,I.p.v[1]*R,-I.p.v[2]*R):R.length?s.translate(I.p.v[0]*R[0],I.p.v[1]*R[1],-I.p.v[2]*R[2]):s.translate(I.p.v[0]*R,I.p.v[1]*R,-I.p.v[2]*R));if(e.strokeWidthAnim&&(Ce=de<0?0:de),e.strokeColorAnim&&(ve="rgb("+Math.round(ue[0]*255)+","+Math.round(ue[1]*255)+","+Math.round(ue[2]*255)+")"),e.fillColorAnim&&e.fc&&(ge="rgb("+Math.round(oe[0]*255)+","+Math.round(oe[1]*255)+","+Math.round(oe[2]*255)+")"),this._hasMaskedPath){if(s.translate(0,-e.ls),s.translate(0,r[1]*z*.01+c,0),this._pathData.p.v){_=(g.point[1]-y.point[1])/(g.point[0]-y.point[0]);var we=Math.atan(_)*180/Math.PI;g.point[0]<y.point[0]&&(we+=180),s.rotate(-we*Math.PI/180)}s.translate(q,ne,0),d-=r[0]*f[u].an*.005,f[u+1]&&X!==f[u+1].ind&&(d+=f[u].an/2,d+=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(f[u].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[u].line]),0,0);break;case 2:s.translate(f[u].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[u].line])/2,0,0);break}s.translate(0,-e.ls),s.translate(Z,0,0),s.translate(r[0]*f[u].an*.005,r[1]*z*.01,0),l+=f[u].l+e.tr*.001*e.finalSize}i==="html"?Ae=s.toCSS():i==="svg"?Ae=s.to2dCSS():Ie=[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]],pe=he}o<=u?(k=new LetterProps(pe,Ce,ve,ge,Ae,Ie),this.renderedLetters.push(k),o+=1,this.lettersChangedFlag=!0):(k=this.renderedLetters[u],this.lettersChangedFlag=k.update(pe,Ce,ve,ge,Ae,Ie)||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,u="",m=this.data.singleShape,f=0,p=0,d=!0,g=r.tr*.001*r.finalSize;if(m&&!o&&!r.sz){var E=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start";break}E.setAttribute("text-anchor",S),E.setAttribute("letter-spacing",g);var b=this.buildTextContents(r.finalText);for(t=b.length,p=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)l=this.textSpans[e].span||createNS("tspan"),l.textContent=b[e],l.setAttribute("x",0),l.setAttribute("y",p),l.style.display="inherit",E.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,p+=r.finalLineHeight;this.layerElement.appendChild(E)}else{var A=this.textSpans.length,y;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!o||!m||e===0){if(l=A>e?this.textSpans[e].span:createNS(o?"g":"text"),A<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,o){var C=createNS("g");l.appendChild(C),this.textSpans[e].childSpan=C}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(c.reset(),m&&(i[e].n&&(f=-g,p+=r.yOffset,p+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(r,c,i[e].line,f,p),f+=i[e].l||0,f+=g),o){y=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var x;if(y.t===1)x=new SVGCompElement(y.data,this.globalData,this);else{var F=emptyShapeData;y.data&&y.data.shapes&&(F=this.buildShapeData(y.data,r.finalSize)),x=new SVGShapeElement(F,this.globalData,this)}if(this.textSpans[e].glyph){var N=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(N.layerElement),N.destroy()}this.textSpans[e].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[e].childSpan.appendChild(x.layerElement),y.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else m&&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")}m&&l&&l.setAttribute("d",u)}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"),u=createNS("feColorMatrix");return c.setAttribute("id",t),u.setAttribute("type","matrix"),u.setAttribute("color-interpolation-filters","sRGB"),u.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(u),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=[],u=[],m,f,p,d=[].concat(n);for(s=i;s>=0;s-=1){if(m=this.searchProcessedElement(e[s]),m?t[s]=r[m-1]:e[s]._shouldRender=a,e[s].ty==="fl"||e[s].ty==="st"||e[s].ty==="gf"||e[s].ty==="gs")m?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],d),c.push(t[s].style);else if(e[s].ty==="gr"){if(!m)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,d)}else e[s].ty==="tr"?(m||(p=this.createTransformElement(e[s]),t[s]=p),d.push(t[s]),this.addTransformToStyleList(t[s])):e[s].ty==="sh"||e[s].ty==="rc"||e[s].ty==="el"||e[s].ty==="sr"?m||(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"?(m?(f=t[s],f.closed=!1):(f=ShapeModifiers.getModifier(e[s].ty),f.init(this,e[s]),t[s]=f,this.shapeModifiers.push(f)),u.push(f)):e[s].ty==="rp"&&(m?(f=t[s],f.closed=!0):(f=ShapeModifiers.getModifier(e[s].ty),t[s]=f,f.init(this,e,s,t),this.shapeModifiers.push(f),a=!1),u.push(f));this.addProcessedElement(e[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),i=u.length,s=0;s<i;s+=1)u[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,u,m;for(e=0;e<t;e+=1)if(m=this.stylesList[e],u=m.type,!((u==="st"||u==="gs")&&m.wi===0||!m.data._shouldRender||m.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),i=m.elements,u==="st"||u==="gs"?(l.ctxStrokeStyle(u==="st"?m.co:m.grd),l.ctxLineWidth(m.wi),l.ctxLineCap(m.lc),l.ctxLineJoin(m.lj),l.ctxMiterLimit(m.ml||0)):l.ctxFillStyle(u==="fl"?m.co:m.grd),l.ctxOpacity(m.coOp),u!=="st"&&u!=="gs"&&c.beginPath(),l.ctxTransform(m.preTransforms.finalTransform.props),a=i.length,r=0;r<a;r+=1){for((u==="st"||u==="gs")&&(c.beginPath(),m.da&&(c.setLineDash(m.da),c.lineDashOffset=m.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();(u==="st"||u==="gs")&&(l.ctxStroke(),m.da&&c.setLineDash(this.dashResetter))}u!=="st"&&u!=="gs"&&this.globalData.renderer.ctxFill(m.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]),u=t.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var m=l*u,f=Math.cos(c+t.a.v)*m+i[0],p=Math.sin(c+t.a.v)*m+i[1];n=s.createRadialGradient(f,p,0,i[0],i[1],l)}var d,g=e.g.p,E=t.g.c,S=1;for(d=0;d<g;d+=1)t.g._hasOpacity&&t.g._collapsable&&(S=t.g.o[d*2+1]),n.addColorStop(E[d*4]/100,"rgba("+E[d*4+1]+","+E[d*4+2]+","+E[d*4+3]+","+S+")");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,u,m,f,p,d,g,E,S,b=this.data.singleShape,A=e.tr*.001*e.finalSize,y=0,C=0,x=!0,F=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(),b&&i[n].n&&(y=-A,C+=e.yOffset,C+=x?1:0,x=!1),f=c.shapes?c.shapes[0].it:[],d=f.length,o.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,o,i[n].line,y,C),E=createSizedArray(d-1);var N=0;for(p=0;p<d;p+=1)if(f[p].ty==="sh"){for(m=f[p].ks.k.i.length,g=f[p].ks.k,S=[],u=1;u<m;u+=1)u===1&&S.push(o.applyToX(g.v[0][0],g.v[0][1],0),o.applyToY(g.v[0][0],g.v[0][1],0)),S.push(o.applyToX(g.o[u-1][0],g.o[u-1][1],0),o.applyToY(g.o[u-1][0],g.o[u-1][1],0),o.applyToX(g.i[u][0],g.i[u][1],0),o.applyToY(g.i[u][0],g.i[u][1],0),o.applyToX(g.v[u][0],g.v[u][1],0),o.applyToY(g.v[u][0],g.v[u][1],0));S.push(o.applyToX(g.o[u-1][0],g.o[u-1][1],0),o.applyToY(g.o[u-1][0],g.o[u-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[N]=S,N+=1}b&&(y+=i[n].l,y+=A),this.textSpans[F]?this.textSpans[F].elem=E:this.textSpans[F]={elem:E},F+=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,u=null,m=null,f=null,p,d,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?u!==c.fc&&(g.ctxFillStyle(c.fc),u=c.fc):u!==this.values.fill&&(u=this.values.fill,g.ctxFillStyle(this.values.fill)),p=this.textSpans[t].elem,n=p.length,this.globalData.canvasContext.beginPath(),a=0;a<n;a+=1)for(d=p[a],i=d.length,this.globalData.canvasContext.moveTo(d[0],d[1]),s=2;s<i;s+=6)this.globalData.canvasContext.bezierCurveTo(d[s],d[s+1],d[s+2],d[s+3],d[s+4],d[s+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(c&&c.sw?f!==c.sw&&(f=c.sw,g.ctxLineWidth(c.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),c&&c.sc?m!==c.sc&&(m=c.sc,g.ctxStrokeStyle(c.sc)):m!==this.values.stroke&&(m=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),p=this.textSpans[t].elem,n=p.length,this.globalData.canvasContext.beginPath(),a=0;a<n;a+=1)for(d=p[a],i=d.length,this.globalData.canvasContext.moveTo(d[0],d[1]),s=2;s<i;s+=6)this.globalData.canvasContext.bezierCurveTo(d[s],d[s+1],d[s+2],d[s+3],d[s+4],d[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),u=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,u==="YMid"&&(s>n&&o==="meet"||s<n&&o==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:u==="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,u,m,f=0;f<2;++f)i=6*e[f]-12*t[f]+6*r[f],s=-3*e[f]+9*t[f]-9*r[f]+3*a[f],o=3*t[f]-3*e[f],i|=0,s|=0,o|=0,s===0&&i===0||(s===0?(l=-o/i,l>0&&l<1&&n[f].push(this.calculateF(l,e,t,r,a,f))):(c=i*i-4*o*s,c>=0&&(u=(-i+bmSqrt(c))/(2*s),u>0&&u<1&&n[f].push(this.calculateF(u,e,t,r,a,f)),m=(-i-bmSqrt(c))/(2*s),m>0&&m<1&&n[f].push(this.calculateF(m,e,t,r,a,f)))));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,u,m,f=this.mHelper,p,d="",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]?(u=this.textSpans[g],m=u.children[0]):(u=createTag("div"),u.style.lineHeight=0,m=createNS("svg"),m.appendChild(c),styleDiv(u)))):this.isMasked?c=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(u=this.textSpans[g],c=this.textPaths[g]):(u=createTag("span"),styleDiv(u),c=createTag("span"),styleDiv(c),u.appendChild(c)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(e.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),S;if(E?S=E.data:S=null,f.reset(),S&&S.shapes&&S.shapes.length&&(p=S.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),d=this.createPathShape(f,p),c.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(u),S&&S.shapes){document.body.appendChild(m);var b=m.getBBox();m.setAttribute("width",b.width+2),m.setAttribute("height",b.height+2),m.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var A=m.style,y="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";A.transform=y,A.webkitTransform=y,l[i].yOffset=b.y-1}else m.setAttribute("width",1),m.setAttribute("height",1);u.appendChild(m)}}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(u);var C=c.style,x="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=x,C.webkitTransform=x}this.isMasked?this.textSpans[g]=c:this.textSpans[g]=u,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 u=this.innerElem.getBBox();this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height));var m=1;if(this.currentBBox.w!==u.width+m*2||this.currentBBox.h!==u.height+m*2||this.currentBBox.x!==u.x-m||this.currentBBox.y!==u.y-m){this.currentBBox.w=u.width+m*2,this.currentBBox.h=u.height+m*2,this.currentBBox.x=u.x-m,this.currentBBox.y=u.y-m,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}};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 u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var m,f,p;for(t=0;t<r;t+=1)if(m=this.comp.threeDElements[t],m.type==="3d"){if(u){var d=this.mat.toCSS();p=m.container.style,p.transform=d,p.webkitTransform=d}this.pe._mdf&&(f=m.perspectiveElem.style,f.perspective=this.pe.v+"px",f.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,u=a-1,m;function f(A,y,C){var x=[];y=y===!0?{entropy:!0}:y||{};var F=E(g(y.entropy?[A,b(e)]:A===null?S():A,3),x),N=new p(x),V=function(){for(var $=N.g(n),L=o,j=0;$<l;)$=($+j)*a,L*=a,j=N.g(1);for(;$>=c;)$/=2,L/=2,j>>>=1;return($+j)/L};return V.int32=function(){return N.g(4)|0},V.quick=function(){return N.g(4)/4294967296},V.double=V,E(b(N.S),e),(y.pass||C||function(_,$,L,j){return j&&(j.S&&d(j,N),_.state=function(){return d(N,{})}),L?(t[i]=_,$):_})(V,F,"global"in y?y.global:this==t,y.state)}t["seed"+i]=f;function p(A){var y,C=A.length,x=this,F=0,N=x.i=x.j=0,V=x.S=[];for(C||(A=[C++]);F<a;)V[F]=F++;for(F=0;F<a;F++)V[F]=V[N=u&N+A[F%C]+(y=V[F])],V[N]=y;x.g=function(_){for(var $,L=0,j=x.i,z=x.j,H=x.S;_--;)$=H[j=u&j+1],L=L*a+H[u&(H[j]=H[z=u&z+$])+(H[z]=$)];return x.i=j,x.j=z,L}}function d(A,y){return y.i=A.i,y.j=A.j,y.S=A.S.slice(),y}function g(A,y){var C=[],x=_typeof$2(A),F;if(y&&x=="object")for(F in A)try{C.push(g(A[F],y-1))}catch(N){}return C.length?C:x=="string"?A:A+"\0"}function E(A,y){for(var C=A+"",x,F=0;F<C.length;)y[u&F]=u&(x^=y[u&F]*19)+C.charCodeAt(F++);return b(y)}function S(){try{var A=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(A),b(A)}catch(x){var y=r.navigator,C=y&&y.plugins;return[+new Date,r,C,r.screen,b(e)]}}function b(A){return String.fromCharCode.apply(0,A)}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),u=createTypedArray("float32",s);if(s>1){for(n=0;n<s;n+=1)u[n]=this.pv[n]+i[n]+(-r+r*2*BMMath.random())*c;return u}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,u=n.length;for(c=0;c<u;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 u="";"s"in o.keyframes[c-1]?u=o.keyframes[c-1].s:"e"in o.keyframes[c-2]?u=o.keyframes[c-2].e:u=o.keyframes[c-2].s;var m=l==="unidimensional"?new Number(u):Object.assign({},u);return m.time=o.keyframes[c-1].t/o.elem.comp.globalData.frameRate,m.value=l==="unidimensional"?u[0]:u,m},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),u=createTypedArray("float32",l);return c.value=u,r(c,i,"multidimensional"),function(){i.k&&i.getValue();for(var m=0;m<l;m+=1)u[m]=i.v[m]*o,c[m]=u[m];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 u=new Matrix;if(c!==void 0){var m=this._elem.finalTransform.mProp.getValueAtTime(c);m.clone(u)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(u)}return u}function t(c,u){var m=this.getMatrix(u);return m.props[12]=0,m.props[13]=0,m.props[14]=0,this.applyPoint(m,c)}function r(c,u){var m=this.getMatrix(u);return this.applyPoint(m,c)}function a(c,u){var m=this.getMatrix(u);return m.props[12]=0,m.props[13]=0,m.props[14]=0,this.invertPoint(m,c)}function n(c,u){var m=this.getMatrix(u);return this.invertPoint(m,c)}function s(c,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var m,f=this._elem.hierarchy.length;for(m=0;m<f;m+=1)this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(u[0],u[1],u[2]||0)}function i(c,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var m,f=this._elem.hierarchy.length;for(m=0;m<f;m+=1)this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(u)}function o(c){var u=new Matrix;if(u.reset(),this._elem.finalTransform.mProp.applyToMatrix(u),this._elem.hierarchy&&this._elem.hierarchy.length){var m,f=this._elem.hierarchy.length;for(m=0;m<f;m+=1)this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(u);return u.inversePoint(c)}return u.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var u;function m(g){p.mask=new MaskManagerInterface(g,c)}function f(g){p.effect=g}function p(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=i,p.applyPoint=s,p.toWorld=r,p.toWorldVec=t,p.fromWorld=n,p.fromWorldVec=a,p.toComp=r,p.fromComp=o,p.sampleImage=l,p.sourceRectAtTime=c.sourceRectAtTime.bind(c),p._elem=c,u=TransformExpressionInterface(c.finalTransform.mProp);var d=getDescriptor(u,"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),p.startTime=c.data.st,p.index=c.data.ind,p.source=c.data.refId,p.height=c.data.ty===0?c.data.h:100,p.width=c.data.ty===0?c.data.w:100,p.inPoint=c.data.ip/c.comp.globalData.frameRate,p.outPoint=c.data.op/c.comp.globalData.frameRate,p._name=c.data.nm,p.registerMaskInterface=m,p.registerEffectsInterface=f,p}}(),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 u=n.data.ef||[],m=function(p){for(l=0,c=u.length;l<c;){if(p===u[l].nm||p===u[l].mn||p===u[l].ix)return i[l];l+=1}return null};return Object.defineProperty(m,"numProperties",{get:function(){return u.length}}),m}return null}function r(n,s,i,o){function l(p){for(var d=n.ef,g=0,E=d.length;g<E;){if(p===d[g].nm||p===d[g].mn||p===d[g].ix)return d[g].ty===5?u[g]:u[g]();g+=1}throw new Error}var c=propertyGroupFactory(l,i),u=[],m,f=n.ef.length;for(m=0;m<f;m+=1)n.ef[m].ty===5?u.push(r(n.ef[m],s.effectElements[m],s.effectElements[m].propertyGroup,o)):u.push(a(s.effectElements[m],n.ef[m].ty,o,c));return n.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return u[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(d,g,E){var S=[],b,A=d?d.length:0;for(b=0;b<A;b+=1)d[b].ty==="gr"?S.push(r(d[b],g[b],E)):d[b].ty==="fl"?S.push(a(d[b],g[b],E)):d[b].ty==="st"?S.push(i(d[b],g[b],E)):d[b].ty==="tm"?S.push(o(d[b],g[b],E)):d[b].ty==="tr"||(d[b].ty==="el"?S.push(c(d[b],g[b],E)):d[b].ty==="sr"?S.push(u(d[b],g[b],E)):d[b].ty==="sh"?S.push(ShapePathInterface(d[b],g[b],E)):d[b].ty==="rc"?S.push(m(d[b],g[b],E)):d[b].ty==="rd"?S.push(f(d[b],g[b],E)):d[b].ty==="rp"?S.push(p(d[b],g[b],E)):d[b].ty==="gf"?S.push(n(d[b],g[b],E)):S.push(s(d[b],g[b])));return S}function t(d,g,E){var S,b=function(C){for(var x=0,F=S.length;x<F;){if(S[x]._name===C||S[x].mn===C||S[x].propertyIndex===C||S[x].ix===C||S[x].ind===C)return S[x];x+=1}return typeof C=="number"?S[C-1]:null};b.propertyGroup=propertyGroupFactory(b,E),S=e(d.it,g.it,b.propertyGroup),b.numProperties=S.length;var A=l(d.it[d.it.length-1],g.it[g.it.length-1],b.propertyGroup);return b.transform=A,b.propertyIndex=d.cix,b._name=d.nm,b}function r(d,g,E){var S=function(C){switch(C){case"ADBE Vectors Group":case"Contents":case 2:return S.content;default:return S.transform}};S.propertyGroup=propertyGroupFactory(S,E);var b=t(d,g,S.propertyGroup),A=l(d.it[d.it.length-1],g.it[g.it.length-1],S.propertyGroup);return S.content=b,S.transform=A,Object.defineProperty(S,"_name",{get:function(){return d.nm}}),S.numProperties=d.np,S.propertyIndex=d.ix,S.nm=d.nm,S.mn=d.mn,S}function a(d,g,E){function S(b){return b==="Color"||b==="color"?S.color:b==="Opacity"||b==="opacity"?S.opacity:null}return Object.defineProperties(S,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:d.nm},mn:{value:d.mn}}),g.c.setGroupProperty(PropertyInterface("Color",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),S}function n(d,g,E){function S(b){return b==="Start Point"||b==="start point"?S.startPoint:b==="End Point"||b==="end point"?S.endPoint:b==="Opacity"||b==="opacity"?S.opacity:null}return Object.defineProperties(S,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:d.nm},mn:{value:d.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",E)),g.e.setGroupProperty(PropertyInterface("End Point",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),S}function s(){function d(){return null}return d}function i(d,g,E){var S=propertyGroupFactory(F,E),b=propertyGroupFactory(x,S);function A(N){Object.defineProperty(x,d.d[N].nm,{get:ExpressionPropertyInterface(g.d.dataProps[N].p)})}var y,C=d.d?d.d.length:0,x={};for(y=0;y<C;y+=1)A(y),g.d.dataProps[y].p.setGroupProperty(b);function F(N){return N==="Color"||N==="color"?F.color:N==="Opacity"||N==="opacity"?F.opacity:N==="Stroke Width"||N==="stroke width"?F.strokeWidth:null}return Object.defineProperties(F,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return x}},_name:{value:d.nm},mn:{value:d.mn}}),g.c.setGroupProperty(PropertyInterface("Color",S)),g.o.setGroupProperty(PropertyInterface("Opacity",S)),g.w.setGroupProperty(PropertyInterface("Stroke Width",S)),F}function o(d,g,E){function S(A){return A===d.e.ix||A==="End"||A==="end"?S.end:A===d.s.ix?S.start:A===d.o.ix?S.offset:null}var b=propertyGroupFactory(S,E);return S.propertyIndex=d.ix,g.s.setGroupProperty(PropertyInterface("Start",b)),g.e.setGroupProperty(PropertyInterface("End",b)),g.o.setGroupProperty(PropertyInterface("Offset",b)),S.propertyIndex=d.ix,S.propertyGroup=E,Object.defineProperties(S,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:d.nm}}),S.mn=d.mn,S}function l(d,g,E){function S(A){return d.a.ix===A||A==="Anchor Point"?S.anchorPoint:d.o.ix===A||A==="Opacity"?S.opacity:d.p.ix===A||A==="Position"?S.position:d.r.ix===A||A==="Rotation"||A==="ADBE Vector Rotation"?S.rotation:d.s.ix===A||A==="Scale"?S.scale:d.sk&&d.sk.ix===A||A==="Skew"?S.skew:d.sa&&d.sa.ix===A||A==="Skew Axis"?S.skewAxis:null}var b=propertyGroupFactory(S,E);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",b)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",b)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",b)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",b)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",b)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",b)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",b))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",b)),Object.defineProperties(S,{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:d.nm}}),S.ty="tr",S.mn=d.mn,S.propertyGroup=E,S}function c(d,g,E){function S(y){return d.p.ix===y?S.position:d.s.ix===y?S.size:null}var b=propertyGroupFactory(S,E);S.propertyIndex=d.ix;var A=g.sh.ty==="tm"?g.sh.prop:g.sh;return A.s.setGroupProperty(PropertyInterface("Size",b)),A.p.setGroupProperty(PropertyInterface("Position",b)),Object.defineProperties(S,{size:{get:ExpressionPropertyInterface(A.s)},position:{get:ExpressionPropertyInterface(A.p)},_name:{value:d.nm}}),S.mn=d.mn,S}function u(d,g,E){function S(y){return d.p.ix===y?S.position:d.r.ix===y?S.rotation:d.pt.ix===y?S.points:d.or.ix===y||y==="ADBE Vector Star Outer Radius"?S.outerRadius:d.os.ix===y?S.outerRoundness:d.ir&&(d.ir.ix===y||y==="ADBE Vector Star Inner Radius")?S.innerRadius:d.is&&d.is.ix===y?S.innerRoundness:null}var b=propertyGroupFactory(S,E),A=g.sh.ty==="tm"?g.sh.prop:g.sh;return S.propertyIndex=d.ix,A.or.setGroupProperty(PropertyInterface("Outer Radius",b)),A.os.setGroupProperty(PropertyInterface("Outer Roundness",b)),A.pt.setGroupProperty(PropertyInterface("Points",b)),A.p.setGroupProperty(PropertyInterface("Position",b)),A.r.setGroupProperty(PropertyInterface("Rotation",b)),d.ir&&(A.ir.setGroupProperty(PropertyInterface("Inner Radius",b)),A.is.setGroupProperty(PropertyInterface("Inner Roundness",b))),Object.defineProperties(S,{position:{get:ExpressionPropertyInterface(A.p)},rotation:{get:ExpressionPropertyInterface(A.r)},points:{get:ExpressionPropertyInterface(A.pt)},outerRadius:{get:ExpressionPropertyInterface(A.or)},outerRoundness:{get:ExpressionPropertyInterface(A.os)},innerRadius:{get:ExpressionPropertyInterface(A.ir)},innerRoundness:{get:ExpressionPropertyInterface(A.is)},_name:{value:d.nm}}),S.mn=d.mn,S}function m(d,g,E){function S(y){return d.p.ix===y?S.position:d.r.ix===y?S.roundness:d.s.ix===y||y==="Size"||y==="ADBE Vector Rect Size"?S.size:null}var b=propertyGroupFactory(S,E),A=g.sh.ty==="tm"?g.sh.prop:g.sh;return S.propertyIndex=d.ix,A.p.setGroupProperty(PropertyInterface("Position",b)),A.s.setGroupProperty(PropertyInterface("Size",b)),A.r.setGroupProperty(PropertyInterface("Rotation",b)),Object.defineProperties(S,{position:{get:ExpressionPropertyInterface(A.p)},roundness:{get:ExpressionPropertyInterface(A.r)},size:{get:ExpressionPropertyInterface(A.s)},_name:{value:d.nm}}),S.mn=d.mn,S}function f(d,g,E){function S(y){return d.r.ix===y||y==="Round Corners 1"?S.radius:null}var b=propertyGroupFactory(S,E),A=g;return S.propertyIndex=d.ix,A.rd.setGroupProperty(PropertyInterface("Radius",b)),Object.defineProperties(S,{radius:{get:ExpressionPropertyInterface(A.rd)},_name:{value:d.nm}}),S.mn=d.mn,S}function p(d,g,E){function S(y){return d.c.ix===y||y==="Copies"?S.copies:d.o.ix===y||y==="Offset"?S.offset:null}var b=propertyGroupFactory(S,E),A=g;return S.propertyIndex=d.ix,A.c.setGroupProperty(PropertyInterface("Copies",b)),A.o.setGroupProperty(PropertyInterface("Offset",b)),Object.defineProperties(S,{copies:{get:ExpressionPropertyInterface(A.c)},offset:{get:ExpressionPropertyInterface(A.o)},_name:{value:d.nm}}),S.mn=d.mn,S}return function(d,g,E){var S;function b(y){if(typeof y=="number")return y=y===void 0?1:y,y===0?E:S[y-1];for(var C=0,x=S.length;C<x;){if(S[C]._name===y)return S[C];C+=1}return null}function A(){return E}return b.propertyGroup=propertyGroupFactory(b,A),S=e(d,g,b.propertyGroup),b.numProperties=S.length,b._name="Contents",b}}(),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 u=parseInt(l.substr(c+n.length),10);return s=s[u],_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),u=0;if(l.length){var m;for(m=0;m<l.length;m+=1)u+=Math.pow(c[m]-l[m],2);u=Math.sqrt(u)*100}else u=0;return u}function a(i){if(this.vel!==void 0)return this.vel;var o=-.001,l=this.getValueAtTime(i),c=this.getValueAtTime(i+o),u;if(l.length){u=createTypedArray("float32",l.length);var m;for(m=0;m<l.length;m+=1)u[m]=(c[m]-l[m])/o}else u=(c-l)/o;return u}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(f,p,d){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,S=E[E.length-1].t;if(g<=S)return this.pv;var b,A;d?(p?b=Math.abs(S-this.elem.comp.globalData.frameRate*p):b=Math.max(0,S-this.elem.data.ip),A=S-b):((!p||p>E.length-1)&&(p=E.length-1),A=E[E.length-1-p].t,b=S-A);var y,C,x;if(f==="pingpong"){var F=Math.floor((g-A)/b);if(F%2!==0)return this.getValueAtTime((b-(g-A)%b+A)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var N=this.getValueAtTime(A/this.comp.globalData.frameRate,0),V=this.getValueAtTime(S/this.comp.globalData.frameRate,0),_=this.getValueAtTime(((g-A)%b+A)/this.comp.globalData.frameRate,0),$=Math.floor((g-A)/b);if(this.pv.length){for(x=new Array(N.length),C=x.length,y=0;y<C;y+=1)x[y]=(V[y]-N[y])*$+_[y];return x}return(V-N)*$+_}else if(f==="continue"){var L=this.getValueAtTime(S/this.comp.globalData.frameRate,0),j=this.getValueAtTime((S-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(x=new Array(L.length),C=x.length,y=0;y<C;y+=1)x[y]=L[y]+(L[y]-j[y])*((g-S)/this.comp.globalData.frameRate)/5e-4;return x}return L+(L-j)*((g-S)/.001)}return this.getValueAtTime(((g-A)%b+A)/this.comp.globalData.frameRate,0)}function t(f,p,d){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,S=E[0].t;if(g>=S)return this.pv;var b,A;d?(p?b=Math.abs(this.elem.comp.globalData.frameRate*p):b=Math.max(0,this.elem.data.op-S),A=S+b):((!p||p>E.length-1)&&(p=E.length-1),A=E[p].t,b=A-S);var y,C,x;if(f==="pingpong"){var F=Math.floor((S-g)/b);if(F%2===0)return this.getValueAtTime(((S-g)%b+S)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var N=this.getValueAtTime(S/this.comp.globalData.frameRate,0),V=this.getValueAtTime(A/this.comp.globalData.frameRate,0),_=this.getValueAtTime((b-(S-g)%b+S)/this.comp.globalData.frameRate,0),$=Math.floor((S-g)/b)+1;if(this.pv.length){for(x=new Array(N.length),C=x.length,y=0;y<C;y+=1)x[y]=_[y]-(V[y]-N[y])*$;return x}return _-(V-N)*$}else if(f==="continue"){var L=this.getValueAtTime(S/this.comp.globalData.frameRate,0),j=this.getValueAtTime((S+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(x=new Array(L.length),C=x.length,y=0;y<C;y+=1)x[y]=L[y]+(L[y]-j[y])*(S-g)/.001;return x}return L+(L-j)*(S-g)/.001}return this.getValueAtTime((b-((S-g)%b+S))/this.comp.globalData.frameRate,0)}function r(f,p){if(!this.k)return this.pv;if(f=(f||.4)*.5,p=Math.floor(p||5),p<=1)return this.pv;var d=this.comp.renderedFrame/this.comp.globalData.frameRate,g=d-f,E=d+f,S=p>1?(E-g)/(p-1):1,b=0,A=0,y;this.pv.length?y=createTypedArray("float32",this.pv.length):y=0;for(var C;b<p;){if(C=this.getValueAtTime(g+b*S),this.pv.length)for(A=0;A<this.pv.length;A+=1)y[A]+=C[A];else y+=C;b+=1}if(this.pv.length)for(A=0;A<this.pv.length;A+=1)y[A]/=p;else y/=p;return y}function a(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var p=this._transformCachingAtTime.v;if(p.cloneFromProps(this.pre.props),this.appliedTransformations<1){var d=this.a.getValueAtTime(f);p.translate(-d[0]*this.a.mult,-d[1]*this.a.mult,d[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(f);p.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(f),S=this.sa.getValueAtTime(f);p.skewFromAxis(-E*this.sk.mult,S*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var b=this.r.getValueAtTime(f);p.rotate(-b*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var A=this.rz.getValueAtTime(f),y=this.ry.getValueAtTime(f),C=this.rx.getValueAtTime(f),x=this.or.getValueAtTime(f);p.rotateZ(-A*this.rz.mult).rotateY(y*this.ry.mult).rotateX(C*this.rx.mult).rotateZ(-x[2]*this.or.mult).rotateY(x[1]*this.or.mult).rotateX(x[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var F=this.px.getValueAtTime(f),N=this.py.getValueAtTime(f);if(this.data.p.z){var V=this.pz.getValueAtTime(f);p.translate(F*this.px.mult,N*this.py.mult,-V*this.pz.mult)}else p.translate(F*this.px.mult,N*this.py.mult,0)}else{var _=this.p.getValueAtTime(f);p.translate(_[0]*this.p.mult,_[1]*this.p.mult,-_[2]*this.p.mult)}return p}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,p,d){var g=s(f,p,d);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(f,p,d,g,E){var S=i(f,p,d,g,E);S.kf?S.getValueAtTime=expressionHelpers.getValueAtTime.bind(S):S.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(S),S.setGroupProperty=expressionHelpers.setGroupProperty,S.loopOut=e,S.loopIn=t,S.smooth=r,S.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(S),S.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(S),S.numKeys=p.a===1?p.k.length:0,S.propertyIndex=p.ix;var b=0;return d!==0&&(b=createTypedArray("float32",p.a===1?p.k[0].s.length:p.k.length)),S._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:b},expressionHelpers.searchExpressions(f,p,S),S.k&&E.addDynamicProperty(S),S};function o(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(p,d){this.k&&this.getValue();var g=this.v;d!==void 0&&(g=this.getValueAtTime(d,0));var E,S=g._length,b=g[p],A=g.v,y=createSizedArray(S);for(E=0;E<S;E+=1)p==="i"||p==="o"?y[E]=[b[E][0]-A[E][0],b[E][1]-A[E][1]]:y[E]=[b[E][0],b[E][1]];return y},points:function(p){return this.vertices("v",p)},inTangents:function(p){return this.vertices("i",p)},outTangents:function(p){return this.vertices("o",p)},isClosed:function(){return this.v.c},pointOnPath:function(p,d){var g=this.v;d!==void 0&&(g=this.getValueAtTime(d,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var E=this._segmentsLength,S=E.lengths,b=E.totalLength*p,A=0,y=S.length,C=0,x;A<y;){if(C+S[A].addedLength>b){var F=A,N=g.c&&A===y-1?0:A+1,V=(b-C)/S[A].addedLength;x=bez.getPointInSegment(g.v[F],g.v[N],g.o[F],g.i[N],V,S[A]);break}else C+=S[A].addedLength;A+=1}return x||(x=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),x},vectorOnPath:function(p,d,g){p==1?p=this.v.c:p==0&&(p=.999);var E=this.pointOnPath(p,d),S=this.pointOnPath(p+.001,d),b=S[0]-E[0],A=S[1]-E[1],y=Math.sqrt(Math.pow(b,2)+Math.pow(A,2));if(y===0)return[0,0];var C=g==="tangent"?[b/y,A/y]:[-A/y,b/y];return C},tangentOnPath:function(p,d){return this.vectorOnPath(p,d,"tangent")},normalOnPath:function(p,d){return this.vectorOnPath(p,d,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],l),extendPrototype([u],c),c.prototype.getValueAtTime=o,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var m=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,p,d,g,E){var S=m(f,p,d,g,E);return S.propertyIndex=p.ix,S.lock=!1,d===3?expressionHelpers.searchExpressions(f,p.pt,S):d===4&&expressionHelpers.searchExpressions(f,p.ks,S),S.k&&f.addDynamicProperty(S),S}}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),u=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,m=Math.floor(c/u),f;for(f=0;f<m;f+=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 p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(p[0]*255)+","+bmFloor(p[1]*255)+","+bmFloor(p[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),u=Array.call(null,{length:i}),m,f=0,p=n-a,d=t-e;s<=256;)o=s/256,o<=l?m=d<0?n:a:o>=c?m=d<0?a:n:m=a+p*Math.pow((o-e)/d,1/r),u[f]=m,f+=1,s+=256/(i-1);return u.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 u=createNS("feComposite");u.setAttribute("in",a+"_drop_shadow_3"),u.setAttribute("in2",a+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(u);var m=this.createMergeNode(a,[a+"_drop_shadow_4",n]);e.appendChild(m)}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=getNative(root$1,"DataView"),DataView$1=DataView,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),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$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 u=isArray$1(e);if(u){if(i=initCloneArray(e),!o)return copyArray(e,i)}else{var m=getTag$1(e),f=m==funcTag||m==genTag;if(isBuffer$1(e))return cloneBuffer(e,o);if(m==objectTag$1||m==argsTag$1||f&&!n){if(i=l||f?{}:initCloneObject(e),!o)return l?copySymbolsIn(e,baseAssignIn(i,e)):copySymbols(e,baseAssign(i,e))}else{if(!cloneableTags[m])return n?e:{};i=initCloneByTag(e,m,o)}}s||(s=new Stack);var p=s.get(e);if(p)return p;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,S){i.set(S,baseClone(E,t,r,S,e,s))});var d=c?l?getAllKeysIn:getAllKeys:l?keysIn:keys,g=u?void 0:d(e);return arrayEach(g||e,function(E,S){g&&(S=E,E=e[S]),assignValue(i,S,baseClone(E,t,r,S,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),u=s.get(t);if(c&&u)return c==t&&u==e;var m=-1,f=!0,p=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(s.set(e,t),s.set(t,e);++m<o;){var d=e[m],g=t[m];if(a)var E=i?a(g,d,m,t,e,s):a(d,g,m,e,t,s);if(E!==void 0){if(E)continue;f=!1;break}if(p){if(!arraySome(t,function(S,b){if(!cacheHas(p,b)&&(d===S||n(d,S,r,a,s)))return p.push(b)})){f=!1;break}}else if(!(d===g||n(d,g,r,a,s))){f=!1;break}}return s.delete(e),s.delete(t),f}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 u=equalArrays(o(e),o(t),a,n,s,i);return i.delete(e),u;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),u=c.length;if(l!=u&&!i)return!1;for(var m=l;m--;){var f=o[m];if(!(i?f in t:hasOwnProperty$1.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var g=!0;s.set(e,t),s.set(t,e);for(var E=i;++m<l;){f=o[m];var S=e[f],b=t[f];if(a)var A=i?a(b,S,f,t,e,s):a(S,b,f,e,t,s);if(!(A===void 0?S===b||n(S,b,r,a,s):A)){g=!1;break}E||(E=f=="constructor")}if(g&&!E){var y=e.constructor,C=t.constructor;y!=C&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof C=="function"&&C instanceof C)&&(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 u=l==objectTag,m=c==objectTag,f=l==c;if(f&&isBuffer$1(e)){if(!isBuffer$1(t))return!1;i=!0,u=!1}if(f&&!u)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 p=u&&hasOwnProperty.call(e,"__wrapped__"),d=m&&hasOwnProperty.call(t,"__wrapped__");if(p||d){var g=p?e.value():e,E=d?t.value():t;return s||(s=new Stack),n(g,E,r,a,s)}}return f?(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=N=>document.querySelector('[data-id="'.concat(N,'"]'))!==null,i=async N=>{let V=e.autoPlay;e.playOnHover&&(V=!1);let _={};if(isEqual(e.animationData,{})===!1&&(_=cloneDeep(e.animationData)),e.animationLink!="")try{_=await(await fetch(e.animationLink)).json()}catch(j){console.error(j);return}let $=e.loop;typeof $=="number"&&$>0&&($=$-1),e.delay>0&&(V=!1);const L={container:N,renderer:e.renderer,loop:$,autoplay:V,animationData:_,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(L.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(L),setTimeout(()=>{V=e.autoPlay,e.playOnHover?r.pause():V?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 N=e.width,V=e.height;return typeof e.width=="number"&&(N="".concat(e.width,"px")),typeof e.height=="number"&&(V="".concat(e.height,"px")),{"--lottie-animation-container-width":N,"--lottie-animation-container-height":V,"--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 u=()=>{r&&r.play()},m=()=>{r&&r.pause()},f=()=>{r&&r.stop()},p=()=>{r&&r.destroy()},d=(N=1)=>{if(N<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(N)},g=N=>{r&&(N==="forward"?r.setDirection(1):N==="reverse"&&r.setDirection(-1))},E=(N,V=!0)=>{r&&r.goToAndStop(N,V)},S=(N,V=!0)=>{r&&r.goToAndPlay(N,V)},b=(N,V=!1)=>{r&&r.playSegments(N,V)},A=(N=!0)=>{r&&r.setSubframe(N)},y=(N=!0)=>{if(r)return r.getDuration(N)},C=(N,V=0)=>{r&&r.renderer.elements[V].updateDocumentData(N)},x=N=>{for(var V="",_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",$=_.length,L=0;L<N;L++)V+=_.charAt(Math.floor(Math.random()*$));return V},F=N=>{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 V=setInterval(()=>{if(s(N)){clearInterval(V);const _=document.querySelector('[data-id="'.concat(N,'" ]'));_&&i(_)}},0)};return onMounted(async()=>{a.value=x(20),F(a.value)}),{elementid:a,hoverEnded:c,hoverStarted:l,getCurrentStyle:o,play:u,pause:m,stop:f,destroy:p,setSpeed:d,setDirection:g,goToAndStop:E,goToAndPlay:S,playSegments:b,setSubFrame:A,getDuration:y,updateDocumentData:C}}}),_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/qeV7K2CqE4d4bv/lETvOjIPcLPGe0YnzIlmktoymzgsgMXDGk3lbhyEyE+FlKZq6tQmwg1RcphbBi4lxO6Yf22/03n5H72U2/qq8W0sxPukNCRAjyzF1WLDtJDn7Z3TN+KA9A9FoYSA7uvXHV36Hha0jGZ0qjlZEYCqg1JFQtF0xh3Z7KrTB1Ev18v9DMlqnQwcTI9WKbNPdzHRbFIFkA2/S72syC1KZPU6+ir1cIyEBukin+7i6PftUlrQewxNBbYSA5dd/qVR9vmuYFACptnUppWWAEQ6s/39K2hnFSOXO9m9HbblVyY6p+FfSL/pdCVGvwFk3pErQ8ztpaJcEFYjxhi7cVh5B3NAMcu/tj//h7WMIYLHYHhuG+67/5wabhC0SykU9KGQTZGOZkDCBhGMG4IsosypjJpVDtGVyb2HJ8bwQkauGsXwNjMpMJdZJqkSQPIllzQ10aAGxKbW8Z1o5ZwgCUTCpENmDR/9xWsmDqglk6af7ynBDcZUA5f8MlH9l74gf0AEQvheG+6y94CgWvslpSH3jW2qVRSwyfHGuJz9q4R1Yb1zBuB1AKh7YZGCtbjczxtdXKFsPGBDmWSA1UXcj+fym0+Vq2GtX4C7cv98mOu7AuguKVbB684b6NH0vu6BJE74SB5KDB9JmdPJutf+vhZsVoNL7RuLF665MVDm1P/9quDyGmXijfJA2c6CczZoJXy9haTobQb/U19yG5fKjGb01L6gOGj19drMbQJ5545/f+4RmdpJcAeicM969e9WSCDy0UZx3UqpUoilRPHkhlWgKjnyrhqu7aBjKd2B9RsYjuEdnkivGvyBKJmKxSdmUK+qaDkv6xoiHJAtbJgi6Lp6ndYvwqLJLL2PoN+MethpYIeicMDfkiMDM9gOyGWLfEal4biCavIufgRdckigxOTrGqK5EagaEfGmhpasuU1j3SekE5s6JvGzArA7TjYNEOTJn258pdM+9UCEVymTLTlgXABvkgnnzXZWftiiWI3gkDIY/KcaiqNiRNHPzueBslk9qHqgo6+832ThV3GAHSEkVEa1yyIgtj1hMQ4wmtK8aNyf2yMQ3ytfgh6//abc+JAFPdLPYNGX/sH+P8xQk0bdZxB0FSNq/ffBCWIHonDALsnzS2ai7VakU8AHMtfJIoAS2NV/nrNigtV5CrBTvTj9Lft+1Y+mLoR+GwgXgqafR3R2BMNrGd1M12vKF1qgC7mLfW+I3VsePXPkUrMuDmh2MJonfCQDYPjm9aWn50Nig1ED+2Y4iy3bbjY7VuQT/6+9kqFKq9oFtbmYwcYHfkkQx9w9ySa4rmuYp2peyDukz1POkEVu3W0bW231C2a3VxCWDZYnegBdKY8rb2VyeiuB59eyFvIHDOsoF8FVNYvd203HE/sHIzmodLw+Ma4rkAVsLEEEXa0bTVzdRd7hGyBbBtitHySU6sIFRpV5Rt5uko4xzlf40ZYPqf6YveKuYpp45jWePKjVQ0SwT9E4aIFHzqBQFAzc6g1GoDWSeQkx904O7/KPKYTVVT6wBcB+B83rrqTetvX/9GkG9CNXaaf/WdqOtVeUidmaeakVKALIBkF8gyYR5X6UYBmcELK6IxQGWZugxgu0WjRlTf5CClIwRfeuinMDBrypRC1X+SylMG4/XLttnmuG33f/IV45qVPY5eD+Btd1/5pVVsNp8LYNfWYlSin42UdV0i0coqGQtQaNh0IX1K7lDy6xvkVeLch2SxxNyjbbMpLZi1AMx0bQq6a5tJaRW05PS4qXxAoncxQ7bipQtjbiEH0rhtsHzqSZMIgsVOBx+3ClNTzxBgY2LMFJgY+lDPJFyss0/xInT/j8YVRUxi3L6WpgdgV7XtXVqFkEnp3fJFrYiJbdSlKhb17D2NU4oyXT1cOuifMESXIQWPkrVe6coIZEpesv3+T71hNmRWHHT8RSJ4sy6IRf8n+92BROF324xM6Ir1+7U6UbB2lCgNvMtUqxFEmyVj9u1tfFAo72IvFVK7VJdLDH2TQco7rCTTT3PfjlmWEnonDDaoY8WYthSE39zhgGO/PBdaOxx84BkYyOrEmDCuielD4d9bB9v0qbAG2h4zE2btnkvWFi/RE2Xa/LkgRJtUsO22BbVFP1K3cUs9/vkCL3nPDrdd8N59eM0Z285bowuI3sUMlmlSvr4jozRo8ME505JHblx3xXkfIZtT1ZdXTZrWHqwboerfaPvk5kg7y5THk4NWm9fPYYf68pGokoDSByyTJ/qmzVDU7JCNbRVBu1pdlIF4XkQsuj4r3Hbh6Yc0wpcBPGHNXc2+kAZrfr4Jv7jgb34iIp9aubN8QH7tL+6ZG5WFQe8sA1BpZMsoESK4f/udB1+bD1qybPB5JMbMbkqbfr4fLuTsTKyUBYG5nmW07KpkN8WO2dZJlsMwei4cr1TWsgj0bTCtgmpK1ptm6+0eMwH56am1337fM9dc+J5vTKO5jGxeT3Lf1C4AAR9FTp966x2bL7v1gtMOmxWhBUbvhCGv2jI/NGaXARCwwQ2y11PnRbvs+PDjr4RgWqJZCNpWEk/nsw3Gv1cXxLCX2eVQuU9S8Fi2FA3UrUljluwmpnjEzIWNL2iFD9WuWeMyJSGMf7oto1yRL923SXH3D85Yufai009ee9FNNxDTn6XgmDTKZKDseQ5ABPsRPP+2C967zwxIbRH0Thjyfv7qoSWXoAHQ3Dx/9GRaiDVAdmFAI4TqK6E8j9B5niAJi3a5Y2GPiUtaYy4zRyqEWduX5znKcSRX0vh3KsDapTx/1uXMFqiS46FY+5/vO2Ltd07/+L33bPofEqcS3IdpEmK7JqjP5zlUMLFyMza+ZQJSWxS9ixkK/7jQU8YPH8j280oT3D47PcbVKAsVfahXbQUAparHkmmLFo0bkzJXlcbu6GhJHxX91K6xWHaUHY3ZY6HaXr2BDwB4zRnb3rZm03NJvIYNHxvkPlun5IaxQ9DiR5YDOHb4QBcHvRMGRWAuqR5uAIlfni86vOX8He6+bf3ORdYIVTCcVKYAbIyWLYWjVqt1mSRsLMtofZu1snJV3GMQuuLUnKVftC3ZRZL6tgmw1SXtsAu3X/yBfZv7mlet/cWmlwPYvRQ+pnnJFi+3L+pKUsckYNNoDNM7N6mHwmACvwQpNBjIfe67+ksP2+4Rx10/V2obbr/3t4sVY6qJz31Rk68xdGsfj2HE5FSpxlS2IVEeqGxng+wUFEwkdvwd+5iMK9llsVrbOGKdlFkqLDHRkLL2Pz/wRDTTr27ub36Xwikr61morVumY7IbHrPVs+svAMCmmcQj26LooTDUGkx9ZDETTWyGPBvAe+ZKa5rTJySatcuRyGe6dntD6zwBCN0iJ+ZaWTZLjU1lFvSz258ItM9RV4wsAJtyp2s3/TSonMrV9uNpPSHfSzQ7hqJN0b8ybrGC1Hb5kLpfbhOfUZS+BdG7ABrIJt/un2lpYvL/8tZVO86Fzn3XfO4AsHmRugm6X8HS1cRIrVXTfRvgAkgugxjvijZ1a7JCxo+umap4hXE3oO0Y7RwvWZdLX21mqm7fBu05UQCQQRA0pG7Pv2knWaj6PEcWntb4eioNvRQGAABLLad/ZqL33HDHPe+effMcbNrYfIjANimDBBQMZ7dEDD1PEF9qS1aUExhV3T7PYN0v6/okLatNSMWUdjyt8Nj4NeXAh2SMquupOuOep47x2+SAEcr8uYjCxtBffPRPGKqHrb4mkTW1ZjuapvnTe67+0itmQ+buKz5zesPmqTaDUq8eJ1+Xdp0jM4m6EFa7FulR7XP8SxbBWIWW+9E1/vSn7WbGCj0ZQ9+0FW7kOCanfc1Kf8Xkdg5y9dzXEDpISV9QjakW5P5Zh/4JQ0SYv7ynP2hGQINEIFxsmub/3X3FF/6K5ERj4Q2rtlt32Wc+jgavSxcr3zfQZ6av2tlsjst1TWCZI/yS+dN9dUMqoUNLBqAqQOmmHactpioDW9NAu1zlRrXptT+rRSiNWwd9IwQ6oDrD1Dl/PUJPhcEEqoKklbszKATAt62/6vPfv+eqLzxtmFDwmn/f9q7LP/PidRtuvxLgi5OvXrhHpYuSy2AMfXtf+912BlS721Xp7FcbrayammU9m2HK0mPopyuVi2Qsk7UixfiL+KMqo//R9NHOg8ZVVayTy6CiX6aF+4LeuW/rr/4KkwmHPnsaHqiY0Zh7AIDIGpBfB5rVgsEdIFcSPJDAk0DuZF0L1G2iahMo6FoBsarcugZQpuxo09ZLLl9BPzVYujBi5ESdxlSldI3S2GqXpBKi7PK1LVhJP9PtnqtKoPRfNkqwmq9Mf69j3tYr/utharXL743Xgfx0DOOVC2RcCeAFoYaePzYPtxIC80gTw6j2DuWyRcjGgylXWfr72pRxD1QromCN7GNbl8HGAMm1yG23VrjTXKm6aAtqHhqLFe50BiJ/SPXJbNiSAKa5KvvLoowhWAYeRpjC/a5V7sVG79ykFMwC2TQXSQm1yalGulw2hPQQAOtXZx2mDyS5uYVFsK6ZljIBQqffXrkRJm4o/HojRK0uG6bJ9FsNoGBKMa6e5eQu+iluMdmi2K6tXtK3tCWTtvurzAjSaEx9jTxGxS2Ljd4JQxGM6QU7cYbZyiyOlZn8ITFfvKzMZh9UHSymera95J603TPVsDnLk1tIQb+yuhGCwuWL1zPTFhOQykCFgyjHb6yJtUx512+mmcJY6zKpwY1zK3YiUj/N/LOaf6BT2+cumfHnSeoVeicMQNTKhmkBlBNoTH1ZK5ZhZtqcji1KtB4cqzpZwRr6xfOrdvIUWrR0ObS09aKG7jpN9Ief51DOrYZfCpfxzbX/efxV5seUU4Zt08909UKtsErhNuNCjj90drr2QS02eicMaaLU45D8GK3LZPPuydSnBjLjpW+XiH/ZKtTnCbR6zu6oP67ucJGvUReM+rClkBjSMIGxKolOYxnGuG+kGbPZSg51+bJVMMMvhcuMudiyUVsl7RbsdeNKoXSrsryE+esal1qOJASQjudUuV89Qe+EIfmxhiE1qi3OE9SaHShMeHafqn1FRQxg3lkXClkTpjSlaSfft/Qtt2QhLLJSiT6N4JQMovuFOs9zwJ6nqOgXvJWF0KYyi5SmiZCtK1O4qZW1KzcA1pbVzn+2REVWDGY8/TMM/csmtV0Nye9ZlrOTm0rZeAPlnJe6qO1GFA9Li7S4DlE2K/rSRd9aLJb0VYPSCmC9Cm4Yx85LFLRwuTF1bXuqsROrt+kDrc19Valy3EX1WjgAVuOpLVYX/T6hd5YBQPTxE3tm6wAkl8HGAOFy249O2rEVdxi3Ad1MkHxqq50TrSx82oAVCr2Wv0KGJpgtOle4R5a6pMa66FsrFYi1LYakXaWMOf8UAyR3syOYt+OP85XcU2MtSyuLDvpqCTvusS7ZD/TOMqgFsG6P3b4NdGnwzNx2sShp5vjgas2U7U5bS2V3Jm9QSy4cyv6hYIqyTWVqxkNBxrQkt2xU4BvaGDZ+wgwWiVFN/4JwSjl+0blCi6mt5dO+WDdn6PxLUT3HTEbYmVzDfqKXliFpcGW0lt9flYsf9OGqFswOlvXRDZ3sQbRcLiNFSYNTX2Ml/eIARWIYKd2uwrKZAVi/u14QNK1CNXhmdGVSbSsL0CjNXJq0HBcpzczANfmafjV/9fih44+WKQ/QjK5/QtFLYVCdrUyUGJq5BOprqgWNy9AKP1JRpuvqAnSZfBomy5qSqeHav1cXqcjfJ4Yz7Zs6rb6aem36xfBh08FgqYWHWs9i/DkjlxSGVPMnSR5abVFviNLv7n9yzTqsXp/QS2EAkCdXspZpmfRQEIGpcj11F+oYItxuPwgpXi1zxevR32+5VKbxQvAMneH0rRsUPtffjZT7ZX4fojSLxj0pKrTpF7nT8prKa4opjDXS+9bSdYHVu5aVTeSbzvp9QP9iBvuwVMtXDJSYMlkOG9DlvTqFb43Sjal95qJN4/60sztS0Ert6jWtbpmX0NaR2a9K+3bSKq1YiqFSu9mq2cP/2v3ijIKho0xfpF2LMUlJv4qNir1YHfOnma32/CNnt3poHXprGYpV6KSZsxtgkTVrro3atUB+EF3arW1vzKIXsnWyrk1BX2XYuMSFFhezL6fDurToGx40TZT9N32zlsyOoOynGX8RXFR9QrUKrdZ5yPxVRioJbqYTVYDktvuI/lkGID1YZtVtwoVSS9XZo/RvKqNaPnngsIffuzSY+t+WaYhMs5u+akq7Mm76bHpg3Y1O/95aOrVilr7pOJktYRnLaBmr5au2h8xfsm7GSNk4JxAePn/sasD0a5S7tZjon2Uw2k/Mwza3CjVq3RyBVGUiI0guK3UDMEyXC1T0c/14M7ZRlrHWq3B3kgbv3pHTaamSkOQ2Wxvh4r3i9yFsH61CsMOz5MTSF3Mtu6PWOpZjy4ytliPPP8vX4j5RP4M+oH+WIWrBlCLVQ/Cs89Rtv9u20dlmVp6Fj201fSjesSrLwu5AOabO66Mo01HOasciRrG+tXFPkrtlrIM6/mmu7MmxNMD4ml3GMn3b9e3mZvx2lmlGnoYvZbs04y8sqOknDP1asHuA3lmGNGkEyKblHxeLA4qk8aqHa+KGsnrpD+uNei9Ne41Am46Ma55nqTWTeUnuWCajurH28XP369+HKP17MYpVisvFnJCAmb8s3KPol8qlldJNJO082/Eb5WLnXy2CeU5Dt30sInonDDqppeJgYgDr61p/WzVk3VhSTvpv0nrmQUcu1BQmbFtWa2dujW8tfdtn60aYH2VEqXUL+rG+QPtiJqQrVgCTexTmwrpoKORX76vvnxiysgrDz3NoGbMuUisOmNSwEdTiRF+yJNJHL6mHblJiHBtEIzFFoWErJqF5b59LfCyFuRcIKDTV2/t0rIuQhCJqvXKfUQf9PJqkFS0j2eo6ZjF1WvRTz5GNUtGJmr5xuapxtV2rbiEtp1jK+VcfztC042m1Wyzm1cquH+idZVAXGsgPzfBAKtTeT2/cJ2U8o7lVsxXpPY1FkOsnzQWr7a3LJclC5f4YSxI6XclJZtiWVbBjliyoagyttcseW+3ClLtjkacs5fx1qrJV6Ph9iDjqliuZYhYjeDRzqPOXXDXzFZgap+jzGJHeXmz0ThhKBVy6MpaxOn/5xronkrdxFAtrrRgku2YpTRlfrVuW2ixikFIDJjNU+N25XnmeoByz0tJ6otbGMryxLqPPc1j3qN7XZcXUvEuuTimEzI1VAXBBPjN8LNV9nqOfXxGj6J2bVGQuhsG6HJVJt+YelTku2tT6DY1A6MPOaxJ1eet+hH5ogBzcLhuTZE1o2yw7kzVoKXytAJNlf1rjVyp2/Ch9/7LFdv2iXR3zEHemc/4T/W6LZZw0M5/9Qe8sg0LSP3Xmga0HDrQfKlAKiGkuuTJaRrVom4mMSZf0sXLftEyZNQJM8Fhbk0rbF1vUI53iUI7V5smt056Y8UvH+FtzYyyoGVadXUp9qayjdj8nGLRbxmLoGDDsPIf6hf1Cb4Uh+6PmC2/rwNYEtKleelUXBbAxgFHJLe2m1/O17JJYL0yq+8k9MjSsi2JjAEMoyUSR1dE4xo5X/W5U46/6bOWsoN9yuZCESntdQ9dWVDAzfbaeh9Xy6i7mDBOM1bME3DJMhNKbLc2w/ZaJIpmCDu0umSlydJrdluIXRNFtXXLgl7VnuXCUTE2ndaEKSGTI2Kjpf5vBC60bVGvl99fzhKSdrcItzxPYXun8dI9/IFhnLkb6+ccfhy2cFdbNtFkIezEP/UIvhSH741lLM/nMWcWQyBNrGLEVLFsthrrd7MnWJj/1A22tmu4X9LNblZkm+Sp19aQ9A/1kXkDz7d551Na0mDqWvuR22+M3LXWNv2TQNw4GchSAc0WwuWRoHUBpvYDsIhX0C99Ue+/CMCHaD9e4ofVDK/z4NPHWh7UNwD4gFO0nYTIMNxH9WKB+wJl+pNeRUpT0ymK8afwxCFBXq8wG2RZKVgv/shVDDKdvX8P9lUeefMGeR735OYPl2F8GeKeI/KI1ftN4Frx6/N30Tfa5N+hlNsmmTUvfPD9gtQoyELJprhkAl5DcAAQJp+Sf7pP4ABpR6RegARp1bwAMRNCgKSNHxBfGik3s20CAJh5SEUEDYiCD0F7DSB+7gzic5F7F2LL5ylZB3Q/182smq90rlJYiuW9Un15/TKucv8KNYWmBk0uXDRQAYPfHv+VnAN7Gyz79rltvvfo5Ar4akN9otSvmmQja5zkMnUjg550MsIjonTCodqpThuEhVl/WK/J9kcFLVvzqiZctRl8nwR3fO/NZDfkPAPawv+1stXHgoVKTFqvQquGZ909Zhq3bCg20nRFdtbfVbdQTPlfSoNcfeeJGAGcDOHvNhac+enrz5tcAeD6I7bJBZv4RRxpraS1xvD4gzhsxbYuCHrpJAUUQiZJhwrTLj1cM8PidHnlCbwUBAHY54lWf3QZTvwXw3mIRjKVWjR+S2bMui83ORDOSNH62LlX8US+wpDbQpp+JTDSmlUe++Qd7HfP2P3zQDsv3JnESBrI6WRXY52TGFccekwCXL1ux/OTJZnDLobfCYJlGH1bOrRPbYPCyqK16jxW//oqrReQdaceChV2Vlayv1V20wpIzNe0t1imu0HbrDI5Y+aD5Q0l/Bvn/Fb9+8m0PedIpf7vn0ThABoNnDAbytYGgDr5SmyHukR8OZPnxuz3ulHUTE9pC6J2bBFgBqLQYwjMeiKzZ4dATLl6s/s0Kg8GXsXnzaXY7Q86QxVcbA5hFwZS7l2w8UuRg/P2EDs2cnB99b6xL9q80tprZoX2RUxoAXwDwhTXffOdB4KaXNoJnCvFwggMBbqHwsoFMfWyPJ77jbBGZzARtYfROGHIwVgbNsMqTzZWL1b/ZYped97n69ttuSNo+Zb8sD9s4oQqaS7+7nVGzP0SSMgxUwULaYJrXXtBqQwPgqTmMc+Uxb70KwF8C+Evy01Nrv3PDg1Y+4aS7c4l3zqH1hUXvhCEHY5LSg1ZrRWF5xOL1cHa4484bDwQqYU/8rtZCzPuK55N1rDcsmveq7VXSxG4OrNYetE0jXNkNmx+InDgN4O6xBXuCXsYMumpbup7GOSD2vOeycw9bnN7NDpxujq1TqcV9k0FTza1uDQDjd+vH4b8P0ZVOtSv3qZ0ixs4BeNPfrzZaUPROGAjdPm1z7jFzYnKCmzZv+ih58TaL2NWJced/f/hhEJySkzwE2ahfksacgmEto7FDlTmymRnNAtmNfe3vUGqXSxYkLQNk+oPeccWWQe+GrcFg6xAITTAZ/ODD1l16zYXrrvjXXrtMt3/3w0+fnua3Se4AMeMxatmurXSe5zDp1tEruznOsOeobZiRDvVkf9TQD0KxVC1D72KGYq9QYdhZfIzlHoeNvPzOH599+YD4UUPcG+52PU0WL1omPPgGAwzCCrQt3yCrixaHNGV7kePYxHPJkN0AHt6Q+9eZxjgAWOFQt6Uc/xDYclWMYTNxxepa3aLWbxojEMYyL0H0ThhEhARj0qRMHwKAphjzQXNMgTi0IQ/NUWdO06TtDFJnaZC0LRC2YrQCUyHQ0DBIvTJu2mpyJiexs7o3sUshEcaU94cZV7IKQG5ftJlyN6xqcEs/9yuPPf8+gw2200Qbt0nnuIcbhrYgeucmAbxZGcBmWbr385v0a3xNK7PMQjRsP325YxRITrQykAqRlIyXBKHKBqW3sf8pFlCrwZJ5ad4n8vZanTFKWaGyf7aiHVMxfhtzVP0p0riBxj1YguihMMjqasUtatC4a6ZwLewCBIoAW5GyJAXTZCFT5m9ZDTFFjb9eaO+aEVUSbJamzulLLmK7mgNdtAsDKQYY9/sQdXUmpo9lbSrVHAgpxr8Ml2IJon/CIPwOKo2VGDo961L76aXWEU5jMVraG5ZRkBnGFLCp0EJ7VylQvdE6wpmaLIUwa2+grZ2RNH6x76jrPqvxY8j4K7PY1S4RKw/k3j12PfgKLEH0TxiWDf4JQPanJT/kcj9/1mjhk2Fm5IcrRamS6aR4rc5VMweSyuStOMHk+nO3jJtVUB5HP/ejGL8Zu6ASCqTlB2P90A7MzRs7f+3zHAIh/mVr2fM13+idMKw46IQrIfJV/aza12qx/M1tWdOmbQ6tYDPHFtmHNlYlMU739mhtM+f1kbdEmBNp9oipHspJbRsBSdobVisPsQB6LcVASDFMbaFK+qa+WtQUw0RXy1i7MGYByGbZsmUfmMnzeiChd8IAAMsFr6TI3WkV2mhmoO0bD9Ps2fbHckY71lq5y9Kw0p4jfx/CWLLklmg5bUPXTkxf602idoy5n5KE2FodmL5VoUoxJi1l2x6yE/a03Y48+fJWM0sEvRSG7R954k1TkJeLJvOtZi60eaVVrU+efPXMmDTasStWyP537XMbTd7hz2tsmtusBqSamerMmfMIhqbNapXnOZjbN/FO8Yocv7SzU5mWtSK2rIAXrRwcecqQR7Ik0EthAICdDj3xnCnI74OYznwhLfVnGaxBs5gAABImSURBVLvI0FiOTNuh27ozcHKTi1nrIZUVyWajuJYXvsRoWrQK55igkpbC/cuCWQTDRf9LobULb10HhVDXLw0GQKwaLN/+d+Toozd3TNCSQRd39ArrL/3Xp2xm81E03BsVcwLMz9wyGYHiiXdYhNbhehNYqgtt65bxCRDNU263I9uV3ieL0EE/DyDVS2OMzFyvT9R9yzxfJheK8VcWIbZPkGftIfv+mRz90vuwxNF7YQAAXvfpndet3/TXEHkpyW0Ds9jgUUqmSQFuZMJKQ5Y+vxWCwNB2D5Th4sS0liGzcNbBL+P/VSxTl6vaBczh+uQWiul/GSTb9nOyQMvbHFtWFFFxXD4lg1evPPqt3xo190sJW4UwKNZf+sk9N7H5kwHlhU3THICklQMk+c2lhrTasLXa2j44kF6tP5/udmhYjRvK9lEwJKp6Zbtd11LN1E6m331GQWwd05Zx4+4F+XVM4UN7HPmWr/f1xNliYasSBosNl3xi703EURAe0FBWCqdXArIcaMAGkBgNsbFatEl8Z4UoMH7TzdC652iAGM7nDXtNukzA/r5xsafP8lu12S/RaVL1FkMPrRPoDgA0rU2EQfwEuIvk2oHg5kbwX3vs/oiLl+oagsPhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOB4okHEFSK4EsFZEuAX64+g5SA4A7Bg/bhSR+xapH8v0vYhsXmhizyP5XZINyScuKLE5gOSxJK+Nf89b7P4oSP4ZyVXx71GL3Z9hILmc5Mb4d94E5Q9hxt9V7Zy4sL0t+nFX7MNd89XmshH31gE4Ir7/YwDfGNGxnQAcNce+XCIiN82i3g4ADojvV3QVILkzgCNn27EK/yEi905Q7kDkOdl5nmgvFLaJr1MTlJ0276cAgORhAM4G8CskHyoifzPP/dsiGCUMXwHwEwCPAvAMkg8RkZuHlN0fwBfm2JdXAPjIHNsYhodj7v1TPBTA6nlqa2tESxgA3AJgp/j+NJJXi8jntmy35o6hwiAiJPkeAP8cy70cwDu2VMdqRB9RzfhFIvLXi9WXrQ0kXwdgmKs7MO+PIPmlIeUuE5GT0CEMInIzyeMBfBshnvgEyceLyCVz7PoWxSjLAACfAvAuAPsAeDnJU0VkekydCwD8y4T0nwJgUj9TADw9vh/mphxM8pjq2m0AbgDwghFtvwyZWd4D4Icjyq4Z088+4v8gz90o7DGinLp6XZYBIvIjki9AUFgPAvCvJA8XkQ2z6O+iIAkDyUcCeHRHmUsQhGEdgD8iqYPbKCLndJS/QkQ+Ognx6MvPZ9D1uvhn8WUROQ5BsIf1wwbe54jI9+exTzMCySkEZpoJNorI/SPur0FQCF0QBDcXCErmliHlfh5fbfZo26IhkS9Gb+IkAAcD+ACCR7FVwFqG4wCMcj0OAXCm+XwngC5h2Bqxn3n/00XrRcARAP5zhnX+GsCbht0UkTcAeEPXPZLLAaggfUNEjh9Dy1rlLqF9K4AnIyhWkhyISDOmzV5gnJs0Z5A8DsH1AICTFziw+hcAF1bXJslQ7RtfNwG4dV579MCDdXtawiAim0i+EMBBIvL5cY2RvBnAXnPozwqSs1kDWyciRZbPCsPnAFw7poEdAZwV6/3XhERXIJhMYOFTjBeJyFnDbpJ8GoDdqsvbANglvl8P4IVD5vbnIvLNjja/DOBXOspbOv9GctTi1NNF5IqO6z8EcNmQOrsBeNqINhcEIjJNciOA5RjizonIlQCu3KIdmwfYVbyrAVw9qjDJk0yd94wq21O8E8DhI+7vguHB/9cAtIQBwC8jpFtH4SFj7i8fcv2cYTl7kodjjDBEDf1rY2jbtYVDSP7tmPIWB05Y/mIR+fSYMhvRtuqjcDRC36cBrJpBvd8EsH3XjYndpLiw9hfx4w+7tOQSxU+RtydYrEReBPwZysCzvr9QW12OB/DcGZR/GPIzngQPmbD8xwCME4bbReTJkxKOK88rANwzw3rXIYyzhZnEDG9ANv1bzCrEAG9n5FVSANg27pkCStdrJ3Pd4vYqJbwWwHMmIC/otga5QMhUtUDynwC8NH58ep1zJ/lhhJX9hQSxMIJm97RN0v4DJ4COJlmzFZcC+LcF61EbxyCshlscj+5A9/T4V+NQhNV0xf0i8q1xhEmO3cg4AruY97d33LfuyYJYBhF5PoDnd92LG+5WisgvZtouya8DeBKCi7J8a8kWjcNgXAGSDwLwCQTNPA3gDxd8l+AWBskjSL4q/u0xT83uat53CYOd+8VgpicCuIXkzST/ZIZ1dc1hCuU4AcxZiSwaJrEMpyNng04XkYtnSMM+9NlowJ8D+OQs6lncOeb+7wJ4c3z/A8xPelUtw0YRuafj/oJbhjH4/fi6F0avuHfB7lHbE8HtBACQfDiAz5N8L4CzxywG9gojhYHkq5H92isBnDILGtaHXzfTyiLyYwAvnAXdxYYKQ5dVAEphWDDLQHJvhB0EFssAPDO+vzWW+40xTU2LyPfi+5+b63ugTP8+DWGB9qMInsQ/z6Lbi4KhwkDyWQDOMJc+O8uDHDateMcs6o9E3EP/9vjxlSJy0XzTmCXGCcOWcpNeitEbLPfAZCveGxC2ywOlMOxZlfud+DoNYNimv16iUxhIPgFhf7p9YCeT3BXAn4vIxhnQWFBhQGC6Q+L7IsVJcmqCjYXzjpgBU8a5bUgxaxm2thjMLs6mNCXJ7ZHPcFwoIsPG3ku0hIHkbwL4IoDtOsq/CsCjSZ4gIv8zIQ0rDMO05EQgeSiA0xDOPXx5VCBPci8A15H8EYBTReTf50J7hphkzHbuF1Jgz0a5W+DpAP48vj8TwGcnbMf28Yr4eQrAI8z1o5D5Zus+z0DyWACfQV5m32De/whhK/ARAH5A8vki8h8T0Pil+Ho/SvM6GzwT4WE+HSEbMmoN4NkIfX88ZhGrzBF2lXvYtgS7brJgwiAi1wO4HgBIbgPgQ/HWzwC8YUhwP67N+0leC+AglMJgdyBvvcJA8rkIWxH0IZ2FsFfntfHzqwG8BOFE2u4Azif5VhF59xgaqiWvmgeX5ffi61qEcxOjoA/mFxjvE1vG3DSLftU4wrz/7pAyVhHNB81J8AqE46gA8JcqCDGdrJb+cyIyyVnynyAIw8Gxjd0AaL3/FpGZ7v5dSfKaGZRXl3jHGdarkwkJy4CQZ0dIX2qM8H4ReX1MjymmReSVJO8E8MZY9gmjqJLcE8CD48eujWgTg+S+AA6LH88bJVgkH2L6dt4Ei0J7m/eTun+j8FjzfpgwzLcAjgTJ/QCcGj/+F4L7pBDk/VG2X6PwPQTruwvJAxEUlbpIk7peFlMIx3NnisEs67Wg2ula5Fz3X4nIKcMqiMhJUSBOQtA0o/BM8/7S2XYy4sXm/WfGlH02smBPYq51o916EVk7suQYxAWnx8SPPxWRYa6hZbqZJCRm06cphIXTnRGe85/Pw1f/2C+IeDxyCn4DglcxU0xjZopoPwQhJoAbZ1BvbwxJHC0DABG5neT/RzCR7xvXmoicRvJTxhTegLA8DwRfVPFs837bGMwCwFtE5EsAzkU4SQeMsBxxv9Eb48c7MPqbOrZDcOkA4C6M2VsUocKweoKy43AQ8ga8YVYBKIVhoRemHobSin+12qZuV4yPJ9kV9H9cRF5rPv8QITmwK8JWHZ3Df5ylQlkjIuN2/yaYjXp3z7DeRBv1niciP+sq1AURWW3er0fFoDENe1T8uBbAdcjbiXeJ9W7CZIdvTkFmsPeLyCi34lTkFfNPjimrwqO58mFHI2eCx5n3o4RBtxE34/o4V4jINSTXICyACsp9UzW2GXJ/B/tBRBqS3wLwLAQFAASh3hq39gMozzNMLAgT4hmm/fMxy4wJyd2Rz9H+FN0b8RRHIQf8tyBvsRiFY5A143wIg10tH3UASv3rLfWNdK9BGRtZ7IS8u+BShC3XNbrc3G8gCIPiYyPcwmF4OcJcbMl52AEdazsLeezTMsVHMCKKHwURWRsPqXwcwJs7vsDrPxB2Zu4E4O+RY4U/FZFJFvnsNupxGaqRiIGkfsvGjQC+M6K4Wob1c6E5KUYdromJjlPix2smcZUjbJZuM4DiIBLJhwE4JLrEw/q1RVepRaTeAZ2wIMIQmVeZ4ocicgHJF42psw2Ah4nIVfU9Efk3klcD+HHHvetI/g9CWli/reE8ETm3g8xzELTQ5khzP+TtAzcC+Hy8/iwA3xeRG0nq6vYk+fhXIluZM8dksdTt2CLCMFfUq/kxKD/NFLlWRGrL+miEI68XAThhNtvFtyTmXRgig/29uTTpVw3uDeBKklei44sDhn0hVUyjnouQ0QBC0Ny5JbnjYb0e2ZJ8MJ7vfRmAf0TY3vy0uFFwLEhuC+AP4sf7MT6jon75uB21WwI2HtiP5OsRviRhH/N6FYDfNuXeC+BY8/lgko8TEesaaqD6BCxwxmw+MK/CENcCvon8oD875LuVuqDnCA7GhHljko9DSLPqKvcGAC8a8TWYtu7bAfxZ/HgPgLNiWvRYBAH5JQAXkvy9SQ4CIVgdPQn46VEZFZIrkK3Ygu7fIflQBDdy1/i3W8d7m9k6HN3nxNPCFslXIG/pAIK/vx1CvGYX7B4ZX6+d0GXtL0i+lxm/PqbsISRvMOV/Flcl9f6LzL0Xd9R/lrk/css2yQHDQZz7TZ2bST52VL1YV0i+jyXeYe5Pkfxnc+++6DaNanMnktfNYK6eZsr+U3XvN8y9huT0iD/FaSNoHcHZ4R6Sl5P8CskzSb4ktvdUhm/sVrye5NtMf3/b0L4sXj97WP9mCy7At3CPIzhWGBiY609J3mvK3sLsa2s5Kwz1t96B5PvN/cfU92OZFSRfy5LxSPJSBqs0bjyHkvx8VbeVCoxj+rAps5Hha2aGtfsxU/bbE/TjfFP+ZdU9KwyTYpQw7GbKbWJQGj8m+Q2SnyJ5Bsm/MWW+xpDBq9uZIvl2kptN2XfFezsyPHOSvIrk9iT3ZRAOMgrSfIJ9EwaSjyf5rerB3Eyy9T1CDBpFcTXJPyB5XPw7lUETkUHbP6iqewDJD5Bc18EIX2VwO0aN4zEkzzMPR/HOGYx/A8nf6ijzHFPmLoYMit7bPzLFrgzW4zCS55jy0wyHb2x7VhiuIPnFIX8XmnJDhSG2eVDsQ+dxTJJ7mrZaq/skf5nt5/yhqszx5t6VzAJ/77jnMxuwL8LAoG2+wja+wrB1uqutvVhaj2FobbVm0GI1LmZgxJHnuFlqPcVdJF87ql6sKyQ/WdU7zNzfm+Tt5v4Lq/pnjRnrX3XQtMJw0oi+HW7KjRSGCcY5VBhI/hLJteb+NMl3d807ydM6xrggJ93YI2EQlprpDpKvmaC9l3O0QFzKyr2K9Q5i8N1J8uskn9TV/hCahzL7uLczmPoHj6+Z6m9L8jux/mqS+5t7R5JcH+99vKPuiUPGuYHDGapXwhDvnxvv3cBw8GtUW+9kdqVuYYfLNR/gAgjDyG8xIPk2hAM9AHCciPzA3DsEYZHqQwhbJCbqVGTEX0H+cQsgrE7fCOD6Ybl5hi3m187mG7JJvhEhc/ZBEZnx2QaGvVHnIHwzyOrq3mMQvm36WBG5u7q3M8LB+50RthzfgbAt5SIR6fy2a4ZtLPorQ5eJSOf25DiPR8WPV4vI5TMdV0VTLfIqEXlTdX8lwhcKv7ke45D2DkZYY/h3EVmQ1DHz3qTWd6bOFnP6Sg+Sy2d4BNThmBcwxKVTCEcL5nQ8wOFwOBwOh8PhcDgcDofD4XA4HLPG/wL++QhYbLqZPgAAAABJRU5ErkJggg==",e:1},{id:"image_1",w:1080,h:3,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAAECAYAAABr549KAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAQPklEQVR4nO2bW44cx5WGvz8yq9gtkbQ1tmDIkAFiYMwDX7UBbcLrEbgebYIb0CsfBoJBwMIIguwZXXjprs44vx/ikpFZ1RQHMPykAJuVGXHucT0n44hfy7+12FZ/efZMfAE8gy+fPtVfAOp/z58/1+fAc+BzgEePxGfw4sVf9bSif318qD/X55fztXj5kidPnvDNt9/r0z/Bt99dF15/hPT9UQBp/lGaHnQZfj8dBPB/P74SH33ER8APP70SgKaD+A3o1Rs95jE/pzcFLxUcpbfl/c1c36faPgteI63vb4APlfT25iSA6wp7k05qcFdccaPSLk3idCeugNtU6Sehu9qedAROWsSptJ+U9IATpKTTXdLxAHdKOgBaFqGkOy2CIwctEgXvThJL1uFw4G7JkhbBAZRFhWFZxOGAliwkwQJKWiouwEFJzMAicSi/C0sxtKoOWWJemBeJQ1JrXlRokFPvG5HXsSIV2jlq3QytPQOEYEZacRYNtHIWU5UjF6ZT001SLkQKrUkrXsQqA6U+k5k0D7KFyBmYakXDmQjFKuM0jP1oPHLRbYe35QvQcBNZ1jQ2KdTEH+VkggivfACYReQzOHKls6GSBLn9Y6p2yVE1TcCG/gQRWgnWMklEVAQIvNONitfgmzxWkzGAFBWU0tZl6DLtbcZg51irCJImFdxo/1Z7jODyyn/TFNq8d/064k6W2DxO07Y9iI6dBrk71frQnyev/OPcnnH2UMvk0hcp3YPQGGZt9OmCJPZEpQv9+c4yzpX6HgHMWtvG310ZO6NVRWyrJG37fOy/Up/OaralaRqBOsC5+gOH9ywRVZhhBL0P+jjgEqSE3w34S/TSSs/2vn4cj+W3zd8YbLcRqeI3Wr8gx2iDcUxWW9ipyxQ7cc8oJ/kyv60GWPfY7HxKkOQiS9raZ6dCdP4rnR1XcrYvdeBa8k7+xGasJbvPmZxhqtCevdJs/M91DNutV7d9Je8tmil2nxLkyExMZMvjbElddnu1zSB/an23zuPETtZLfTHqCUCByVWeor49AUxTlSC8GZONd186qnxpqs/r+tNtlTNUvRvdsz7vsNHlal3ktI7VKdkZIKdhTo02Ks/TiLfh38Qe8G33+rzayGmVcaLwnRpgssvenVZchwHM1PHmFG62siczr3CVsqGcuDyF89JsM8MM3tgpDDPz1OgvcBde5vJuT4YFnDx3AWzugHmVyZ1/5VPEKHV3VUZgJlzFMY12k9dh5tk4fFd1Pxxm+1Rp2z558rHy9xzGs0+cOB5nc4LbQ/joMLfA8eCjZ5+4xT642/IYvnL4BiAOhfYt+Jh95aNvBn2uIpuro4nsjZ7xwPAaX1+ZN0AspT2uDK/hg8X8/BB/mE3cGeDRww/MT8DDxT/+CH5U6vkB/PihAT6qsH/P5df5seF7YvmNAeLjk/kf+OQPbw2f8s3fvmH55GMDPFneGuBr4M+nVwZ4ATx9+p/mK+Dnn/2c4p89Bz7//PvC/0vgxQvzRXXu+KL3q3T/+vtr+dcXbRzu9ynNKecLePYMvgC+fKp3OubAi+tzx/zlXBzwJwDzA3373T/0yR8/Ab6FdNR330Gaj9L0k2B1xouD/RE//PQ36T9+r98AP6XX0qtZpLeChyi91cOH8Or1JL2dxMNJenvbHPf0Nt3qmmvQSVLSjZK4PenqCm5vk0iTkHSlOxXnNOl0V54fqDjap1MSWsTxgFIk7iSUJak4xpJYFqGsRVM6QD14Zi06Fsf4kMUyI0UiSwtZM3N3rtWcP0UihzLSBGRJSJpz1jKHlGdR9+AJCYUySCFBVKc8isMkJ5iIcJpEqYtQdcQUFb/UF7xpmhThCudETGIKRRSchBQVHyRJStR2ORW+CCzZqTqHKSQlrAgEk1DlkSRZCSxkhZVSCkVYiUkoJCRcaRsVx1FClkIJWSSKDnIiJMsSStgiWW48HCJNRTaKnFiVJpJJCGEnqejiQIiKj0SFwbTASLgGHGpYBoNAzXEs9i3nyCRqnbGKh+jqKAqwcnE0Gq0yg1fnowcKAIdAuDrTogbXJGTjDlzajSksXbwGq/IPcBGZ5k80OdsbBg+Onlu9CHuArw1e8aNpg6Uib33tQrcgTDsXrbR6AKcdGJv9ql3UzmhlkHslusrZeseuJt3Yo/x6o+8eflV/ALBdTe069HfBTRqXLe1qaMImla4aAdTYVrm6bbfiuFkMrzoOtryg+14ul5Wnnd2q+dexdO5bNvac02tcPfLd8KvmbgRKN6jbcdV95a0N/oao+1joLdUYG3NUoLO+azpshnzlawmZrfoNSBdtuQ7ZLc0R5lyDOv629t/y25Bwnf8b2XQOWzgNdj3rlta3q601ot7Tv71xJ9Zm0Jzp1/n1cc34X1ejtY1khoW1tI0KDW3b50GfJpjHFa4Pm27zcbk9L7r4uFZcGvDrktbKao21B8UawelzW7buo3suY+8+1SV1lKrb1aA0LkV7+2mltVZXGQe6g/1dN7jNMrNyhbqc6EyVXuFB0DK1Rr0Y4UvdufrawfZ6b0EqPhsedTpXew/bzzjLBQSUg1eR0WO8ZJ2AG+HWBawu5tZ+W60TtEEONh8E3Om2Bg86n23/d75thRx4DjZJW7p9saj9MoowMBydtygzmjQ4/5Y2u1lqpyFc5U5NkK0OUgukbGypYROycNdl7MZy1Km7R5vPVQ411LbjVEQNNnSB3Q6/QQ65bUdmDblXvYbFUrJXeQ01vteDXB7w3bYaY4OTazSP1Ow/9r1to0Bysh3C2FHnUBQr2KQpJEdkSHJgmSRbDhY7TSmiHD6dqJE7K0hF9hK3VAlsJBkrqrBGKnFOO0pg1A4li4hwMtgp4TCRUnJyRJAM2SWQK5NwsYejjJvkEqSycxlPTlKAC2wZAU6O6LAk55xNarjJCZd3R2TsKSXnjFOFn5KCbJPsnGFKKRbK+0RypgSPphbMnMGOKAG4yfjOCzAzFZPZxor5avKyLODJnm3uCixzePZkKt0727Pr56spooRja8BqzuEWxLXNYQo7Sh+c4OiDbw9LlObwlY92ZN84fPUg/NZHXzmMj+bqle0HNYAU9vUD8yrb19kPP8x+9Qoc1z349Ojh4h/jQzsW88MP/PbxQ/PbO/O/8Pff3pl//A7XwFEsp/LbA0a/M8utX9Yh+mR56zFQRAsSwSZQxOefG74sQSKAv7xwiRF9wT5Y9D7lPT91/Fr+lWXRfiuuTvC8NIgRGoav8gAcpBYoAUm5BiEAhq+426/gLbhRv4xG6OLXwQtlmiYufmL7BfQS3NjIMLQWOdpXlXJAsAhKcEP1C63rF8ROZQZFCdyMDqMqsVTf2m9ADF+he0mWAkHlkyZB5V/4KlLZpVTCGGo7Yz2zq3ogdSeT1i/uSeGscFanULZ/9W21C9T3yvGktnNMAjZfibWeuO4JbmxWgdDKwZdcgaZDYd6OinYJ3Aw21iBn1d3IBWmQTUG9qTDoJaMWLAjQGty46Imcl0ZLTfbCpb6cnyAvELiv5QzSlKDVemwWa99X83f77OQf9E4l+Gb1MVnItpNTUUttcg5E+mmNzcPofN4v/vbV53VtLFwgYu/H34Z/HeOsf97pr2F+NHusWg14rn/a2Q+VwJylfhrtvoA4Wz9pzVt5KqV7dBn/9gZoqu7gLtrlMs02LqxhjKhMlTpHmo4Xcdv4O5PVbZyk9c/teQPX1bmgWnNsL8ei9vYYNOyRtPfD2TmmA6kSZPF+4p5JvI70zr4tvbyjN96ll3Yw2veBi01NUjnFFtu6fxBqI+vd/df6f9fe+tSuNHyx/R69Gr0N3Xv07/v9Fu7SyBjGnM9CBT2WcWGeXphLdVtounijV9dusJ13MqoQ8a6trBcbDQYdtjK/e1xfXD/Oagb3e0d4Azv2l0BK6z7hqGeG8dZeQiTVerZrYueyrhsedRz3m7b/nE2hy+v6RtOu2KUNIHT5SpVgF6Tf2Wa1Q3PXJUVdr2VJXs+DYRQezw11nd/OgX7OS/Q1sY0Q9aiGh/HZbTIouhnTQ4yw/mzm3AjbDqEtKjfA9n7RVndIIs7tWmejUhUs2tlUVgn3WDg6ZF08tufKQNFh+8cfqaxZVYaoUhWYcNszo35IXD8sdQUShK31xme9QTXsteVmlol2G3n0HquvEf3cszqXqWnP4HAOH1zVfIR6XfDecuat1ruk0/tsSCPPpnSn0z/uThOUU3vWFFLOIXJoUvG1yo1tyk1soEBLMJdLNXP9k7Qsud/Q1tJ8uJlfy7+vvN/A+LX8S0r/gltvwTx7VgJTX365pqc8f/7x5gbMV4/+W5/xGXwGvPhrwX8KX399np4yP/hQn/6p1H373bX4Y3ke01PgY9qNGLg/RUW1XlNJT+HxT/z8qqYltBSV12/FI85SVN6kWR98AHp7ozc39fnmVlxf8/bmpDE9BUCadAXcKIkb0PWd4Iqr0125WQMo3QkegO6k9uX+tIgH0NM/Tqm83y2CpLsl6XAALYtODUZJl9JTOMBhSVq0aObAUusgq6ScHJBygV2SOMwlrWTJXZ6ZrBKA+YXUlFaUtNTGXldTVC6mp0BNUanpKT3A1OqgpagsGupaegr0jailp2SVwFiu2J1lSGsES1tZOtt9SsSF1BRgs/lfTE3Z4hb+F1JUpjSkbtClRtrZYuqktukLVacYYSlXctsGTZT0m1wJTlKO4XpwwLRPMRl1amXcdINdWkr9HhUD/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_y7fw1_1",videoPop="_videoPop_y7fw1_6",sectionAnimate$1="_sectionAnimate_y7fw1_14",controls$1="_controls_y7fw1_20",time$1="_time_y7fw1_35",line$1="_line_y7fw1_48",tools$1="_tools_y7fw1_55",actions$1="_actions_y7fw1_61",actionWrap$1="_actionWrap_y7fw1_69",actionBtn$1="_actionBtn_y7fw1_73",actionBtnSpeed="_actionBtnSpeed_y7fw1_83",iconReplay$1="_iconReplay_y7fw1_94",slider$1="_slider_y7fw1_105",sliderPopup="_sliderPopup_y7fw1_113",iconAdd$1="_iconAdd_y7fw1_127",iconCut="_iconCut_y7fw1_128",disabled$1="_disabled_y7fw1_137",sliderPoint="_sliderPoint_y7fw1_145",styles$j={videoWrap,videoPop,sectionAnimate:sectionAnimate$1,controls:controls$1,time:time$1,line:line$1,tools:tools$1,actions:actions$1,actionWrap:actionWrap$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,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=y=>{if(y>0){const C=Math.floor(y/60),x=y%60;return(C<10?"0"+C:C)+":"+(x<10?"0"+x:x)}else return"00:00"},u=()=>{o.value&&(o.value.src(a.value.content),t("reset"))},m=y=>{s.showBar=y,s.speedControl=!1},f=()=>{s.speedControl=!1,o.value&&o.value.currentTime(0)},p=y=>{y==null||y.stopPropagation(),s.paused?(o.value.play(),s.paused=!1):(o.value.pause(),s.paused=!0),t("togglePlay",s.paused)},d=null;let g=0;const E=()=>{g>5||(clearTimeout(d),nextTick(()=>{var y;(y=o.value)==null||y.play().catch(C=>{})}),g++)},S=()=>{o.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 y;s.currentTime=c(Math.round(((y=o.value)==null?void 0:y.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",y=>{s.duration=c(Math.round(o.value.duration())),s.durationNum=o.value.duration(),t("canplay")}),o.value.on("error",y=>{t("error"),console.log(y,"error")}))};onMounted(()=>{o.value=TCPlayer(l.value,{appID:"",controls:!1}),S()});const b=()=>{o.value.currentTime(0),o.value.pause()},A=()=>{o.value.pause()};return onUnmounted(()=>{o.value&&(o.value.pause(),o.value.src(""),o.value.dispose())}),watch(()=>e.item,()=>{var y;o.value.pause(),o.value.currentTime(0),(y=a.value)!=null&&y.id&&(S(),s.paused=!0)}),watch(()=>e.showModel,()=>{s.showAction=e.showModel,s.speedControl=!1}),r({onPlay:u,stop:b,pause:A,toggleHideControl:m}),()=>createVNode("div",{class:styles$j.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$j.videoPop},null),createVNode("div",{class:[styles$j.controls,s.showAction?"":styles$j.sectionAnimate],onClick:y=>{y.stopPropagation(),!o.value.paused()&&(t("close"),t("reset"))}},[createVNode("div",{class:styles$j.slider},[createVNode(NSlider,{value:s.currentTimeNum,step:.01,max:s.durationNum,tooltip:!1,"onUpdate:value":y=>{s.speedControl=!1,o.value.currentTime(y),s.currentTimeNum=y,s.currentTime=c(Math.round(y||0))}},null)]),createVNode("div",{class:styles$j.tools},[e.imagePos==="right"?createVNode(Fragment,null,[createVNode("div",{class:styles$j.actions},[createVNode("div",{class:styles$j.actionWrap},[createVNode("div",{class:styles$j.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[s.currentTime]),createVNode("span",{class:styles$j.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[s.duration])])])]),createVNode("div",{class:styles$j.actions},[createVNode("div",{class:styles$j.actionWrap},[createVNode("div",{class:styles$j.actionBtnSpeed,onClick:y=>{y.stopPropagation(),s.speedControl=!s.speedControl}},[createVNode("img",{src:iconSpeed},null),createVNode("div",{style:{display:s.speedControl?"block":"none"}},[createVNode("div",{class:styles$j.sliderPopup,onClick:y=>{y.stopPropagation()}},[createVNode("i",{class:styles$j.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":y=>{s.defaultSpeed=y,o.value&&o.value.playbackRate(s.defaultSpeed)}},{thumb:()=>createVNode("div",{class:styles$j.sliderPoint},[s.defaultSpeed,createVNode("span",null,[createTextVNode("x")])])}),createVNode("i",{class:[styles$j.iconCut],onClick:()=>{s.defaultSpeed<=.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10-1)/10,o.value.playbackRate(s.defaultSpeed))}},null)])])]),createVNode("button",{class:styles$j.iconReplay,onClick:f},[createVNode("img",{src:iconLoop},null)]),createVNode("div",{class:styles$j.actionBtn,onClick:()=>{s.speedControl=!1,p()}},[s.paused?createVNode("img",{class:styles$j.playIcon,src:iconplay},null):createVNode("img",{class:styles$j.playIcon,src:iconpause},null)])])])]):createVNode(Fragment,null,[createVNode("div",{class:styles$j.actions},[createVNode("div",{class:styles$j.actionWrap},[createVNode("div",{class:styles$j.actionBtn,onClick:()=>{s.speedControl=!1,p()}},[s.paused?createVNode("img",{class:styles$j.playIcon,src:iconplay},null):createVNode("img",{class:styles$j.playIcon,src:iconpause},null)]),createVNode("button",{class:styles$j.iconReplay,onClick:f},[createVNode("img",{src:iconLoop},null)]),createVNode("div",{class:styles$j.actionBtnSpeed,onClick:y=>{y.stopPropagation(),s.speedControl=!s.speedControl}},[createVNode("img",{src:iconSpeed},null),createVNode("div",{style:{display:s.speedControl?"block":"none"}},[createVNode("div",{class:styles$j.sliderPopup,onClick:y=>{y.stopPropagation()}},[createVNode("i",{class:styles$j.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":y=>{s.defaultSpeed=y,o.value&&o.value.playbackRate(s.defaultSpeed)}},{thumb:()=>createVNode("div",{class:styles$j.sliderPoint},[s.defaultSpeed,createVNode("span",null,[createTextVNode("x")])])}),createVNode("i",{class:[styles$j.iconCut],onClick:()=>{s.defaultSpeed<=.5||o.value&&(s.defaultSpeed=(s.defaultSpeed*10-1)/10,o.value.playbackRate(s.defaultSpeed))}},null)])])])])]),createVNode("div",{class:styles$j.actions},[createVNode("div",{class:styles$j.actionWrap},[createVNode("div",{class:styles$j.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[s.currentTime]),createVNode("span",{class:styles$j.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[s.duration])])])])])])])])}}),pen="_pen_zpu5r_1",open="_open_zpu5r_9",whiteboard="_whiteboard_zpu5r_12",hide$1="_hide_zpu5r_15",iframe="_iframe_zpu5r_18",dely="_dely_zpu5r_24",rightItem="_rightItem_zpu5r_27",img="_img_zpu5r_42",removeVisiable$1="_removeVisiable_zpu5r_50",studentRemove$2="_studentRemove_zpu5r_62",btnGroupModal$2="_btnGroupModal_zpu5r_74",styles$i={pen,open,whiteboard,hide:hide$1,iframe,dely,rightItem,img,removeVisiable:removeVisiable$1,studentRemove:studentRemove$2,btnGroupModal:btnGroupModal$2},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,"/roll-call/index.html?t=").concat(+new Date,"&platform=modal&imagePos=").concat(e.imagePos));let l,c;if(e.isDrag){const u=useUserStore();c="penBoxClass_drag",l=useDrag(["".concat(c,">.n-card-header"),"".concat(c," .bom_drag")],c,toRef(n,"status"),u.info.id)}return()=>createVNode("div",{class:[styles$i.pen,r.value==="whiteboard"?styles$i.whiteboard:"",s.value?styles$i.dely:"",t.value?styles$i.open:styles$i.hide]},[createVNode("iframe",{class:styles$i.iframe,id:a,frameborder:"0",width:"100vw",height:"100vh",src:o,onLoad:u=>{if(s.value=!1,e.type==="call"){const m=document.getElementById(a);m&&m.contentWindow.renderData&&m.contentWindow.renderData(e.callStudents)}iframeDislableKeyboard(u.target)}},null),e.type!=="call"&&createVNode("div",{class:styles$i.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,{style:e.isDrag?l.styleDrag.value:{},"z-index":3e3,transformOrigin:"center",show:n.status,"onUpdate:show":u=>n.status=u,preset:"card",title:n.title,class:["modalTitle",styles$i.removeVisiable,c]},{default:()=>[createVNode("div",{class:styles$i.studentRemove},[createVNode("p",null,[n.content]),createVNode(NSpace,{class:styles$i.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_lif5l_1",audioContainer="_audioContainer_lif5l_6",audio="_audio_lif5l_1",tempVudio="_tempVudio_lif5l_22",sectionAnimate="_sectionAnimate_lif5l_34",controls="_controls_lif5l_40",time="_time_lif5l_55",line="_line_lif5l_68",tools="_tools_lif5l_75",actions="_actions_lif5l_81",actionWrap="_actionWrap_lif5l_89",actionBtn="_actionBtn_lif5l_93",iconReplay="_iconReplay_lif5l_103",slider="_slider_lif5l_114",styles$h={audioWrap,audioContainer,audio,tempVudio,sectionAnimate,controls,time,line,tools,actions,actionWrap,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,currentTimeNum:0,currentTime:"00:00",durationNum:0,duration:"00:00",showBar:!0,afterMa3:!0,count:0}),n=ref(),s=ref();let i=null;const o=g=>{var E,S,b;g==null||g.stopPropagation(),s.value.paused?(s.value.play(),a.afterMa3=!1):(E=s.value)==null||E.pause(),a.paused=(S=s.value)==null?void 0:S.paused,(b=g==null?void 0:g.target)==null||b.focus(),t("togglePlay",a.paused)},l=(g,E)=>{i||(i=new Vudio(g,E,{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=g=>{if(g>0){const E=Math.floor(g/60),S=g%60;return(E<10?"0"+E:E)+":"+(S<10?"0"+S:S)}else return"00:00"},u=g=>{a.showBar=g},m=()=>{s.value&&(s.value.currentTime=0)};let f=null;const p=ref(),d=ref();return nextTick(()=>{f=new Vudio(d.value,p.value,{effect:"waveform",accuracy:256,width:1024,height:600,waveform:{maxHeight:200,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),f.dance()}),watch(()=>e.activeStatus,g=>{a.count=0,g&&e.item.autoPlay?(i=null,o()):s.value.pause()}),r({toggleHideControl:u}),()=>createVNode("div",{class:styles$h.audioWrap},[createVNode("div",{class:styles$h.audioContainer},[createVNode("audio",{ref:s,crossorigin:"anonymous",src:e.item.content+"?time=1",onEnded:()=>{a.paused=!0,t("ended")},onTimeupdate:()=>{var g,E;a.currentTime=c(Math.round(((g=s.value)==null?void 0:g.currentTime)||0)),a.currentTimeNum=((E=s.value)==null?void 0:E.currentTime)||0,a.count<=1&&(a.count+=1,l(s.value,n.value))},onLoadedmetadata:()=>{var g,E;a.duration=c(Math.round((g=s.value)==null?void 0:g.duration)),a.durationNum=(E=s.value)==null?void 0:E.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)}},null),createVNode("canvas",{ref:n},null),a.afterMa3&&createVNode("div",{class:styles$h.tempVudio},[createVNode("audio",{ref:d,src:tickMp3},null),createVNode("canvas",{ref:p},null)])]),createVNode("div",{class:[styles$h.controls,a.showBar?"":styles$h.sectionAnimate],onClick:g=>{g.stopPropagation(),t("reset")}},[createVNode("div",{class:styles$h.slider},[createVNode(NSlider,{value:a.currentTimeNum,step:.01,max:a.durationNum,tooltip:!1,"onUpdate:value":g=>{s.value.currentTime=g,a.currentTimeNum=g,a.currentTime=c(Math.round(g||0))}},null)]),createVNode("div",{class:styles$h.tools},[e.imagePos==="right"?createVNode(Fragment,null,[createVNode("div",{class:styles$h.actions},[createVNode("div",{class:styles$h.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[a.currentTime]),createVNode("span",{class:styles$h.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[a.duration])])]),createVNode("div",{class:styles$h.actions},[createVNode("div",{class:styles$h.actionWrap},[createVNode("button",{class:styles$h.iconReplay,onClick:m},[createVNode("img",{src:iconReplay$2},null)]),createVNode("div",{class:styles$h.actionBtn,onClick:o},[a.paused?createVNode("img",{class:styles$h.playIcon,src:iconplay},null):createVNode("img",{class:styles$h.playIcon,src:iconpause},null)])])])]):createVNode(Fragment,null,[createVNode("div",{class:styles$h.actions},[createVNode("div",{class:styles$h.actionWrap},[createVNode("div",{class:styles$h.actionBtn,onClick:o},[a.paused?createVNode("img",{class:styles$h.playIcon,src:iconplay},null):createVNode("img",{class:styles$h.playIcon,src:iconpause},null)]),createVNode("button",{class:styles$h.iconReplay,onClick:m},[createVNode("img",{src:iconReplay$2},null)])])]),createVNode("div",{class:styles$h.actions},[createVNode("div",{class:styles$h.time},[createVNode("div",{class:"plyr__time plyr__time--current","aria-label":"Current time"},[a.currentTime]),createVNode("span",{class:styles$h.line},[createTextVNode("/")]),createVNode("div",{class:"plyr__time plyr__time--duration","aria-label":"Duration"},[a.duration])])])])])])])}}),chapterBox="_chapterBox_1xh4v_1",scrollBar="_scrollBar_1xh4v_5",treeBox$1="_treeBox_1xh4v_9",listSectionLeft$1="_listSectionLeft_1xh4v_17",listSectionRight$1="_listSectionRight_1xh4v_24",treeParentSelect="_treeParentSelect_1xh4v_30",treeChild="_treeChild_1xh4v_34",treeItem="_treeItem_1xh4v_37",childItem="_childItem_1xh4v_44",titleName="_titleName_1xh4v_44",title="_title_1xh4v_44",dir="_dir_1xh4v_54",name$2="_name_1xh4v_63",titleSelect="_titleSelect_1xh4v_69",childSelect="_childSelect_1xh4v_88",styles$g={chapterBox,scrollBar,treeBox:treeBox$1,listSectionLeft:listSectionLeft$1,listSectionRight:listSectionRight$1,treeParentSelect,treeChild,treeItem,childItem,titleName,title,dir,name:name$2,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(),{treeList:a,itemActive:n}=toRefs(e),s=(o,l,c=[])=>{for(const u of l){if(u.knowledgeList&&u.knowledgeList.length>0){const m=s(o,u.knowledgeList,[...c,u.id]);if(m.includes(o))return m}if(u.id===o)return[...c,o]}return c};watch(()=>e.itemActive,()=>{const o=s(n.value,a.value);o.length>0&&a.value.forEach(l=>{l.id==o[0]?l.selected=!0:l.selected=!1})}),onMounted(()=>{const o=s(n.value,a.value);o.length>0&&a.value.forEach(l=>{l.id==o[0]&&(l.selected=!0)})});const i=computed(()=>a.value.find(o=>o.selected));return()=>{let o;return createVNode("div",{class:styles$g.chapterBox},[createVNode("div",{class:styles$g.treeBox},[createVNode("div",{class:[styles$g.listSectionLeft]},[createVNode(NScrollbar,{class:styles$g.scrollBar},_isSlot$4(o=a.value.map((l,c)=>createVNode("div",{class:[l.selected?styles$g.treeParentSelect:""],key:"parent"+c},[createVNode("div",{class:[styles$g.treeItem,styles$g.parentItem],onClick:()=>{a.value.forEach(u=>{l.id!==u.id&&(u.selected=!1)}),l.selected=!0}},[createVNode("p",{class:[styles$g.title,l.selected?styles$g.titleSelect:""]},[createVNode("span",{class:[styles$g.dir,l.selected?styles$g.dirSelect:""]},null),createVNode("div",{class:styles$g.name},[l.name])])])])))?o:{default:()=>[o]})]),createVNode("div",{class:styles$g.listSectionRight},[createVNode(NScrollbar,{class:styles$g.scrollBar},{default:()=>[i.value&&i.value.knowledgeList&&i.value.knowledgeList.map((l,c)=>createVNode("div",{key:"child"+c,class:[styles$g.treeItem,styles$g.childItem,n.value===l.id?styles$g.childSelect:""],onClick:()=>{if(n.value!=l.id){if(l.coursewareNum<=0){r.error("该章节暂无课件");return}t("handleSelect",{itemActive:l.id,itemName:l.name})}}},[createVNode("div",{class:styles$g.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/Cu6L1RntdcPgoCx8nCW4DGbeB/YYwjmZ/dYliSfgxH0x3gFwZQje9pAfdCG70y9D3dMh5N4zPPhm1mpdwaU32i9a+DTa3mCg+5eoL1s7EAw+kmnCmw6jwpxdv5bpGNaNZDbNLBpK8301R/qDfU0d4uCBYGjqe+s1r6YknZTQMEU37G9HLedz8RfgAbXLkEKXQ24vK48nbfu4MvOOoB0UJCiKGycMNnmAPDcQsXJDDx2+BtS5GVJuMPl6aXH53K10UHn6h2MMZWKpbTM0uw1hrCtkO1H8fVumS796RLamsTSdKFdDrWLY7ibEN7A1WQ1aQsad/tVfEe6QFHU+Ekxs71EwGRHNjYqen8d9DsyMUyepWHJmwGyVwp1uElMw2gAiz66mf8/wW/0L0jSYHaHC2xAD373mZKtEYRi8Yx01MLiQ3yrc5C20xzH0jDJl6QB9YFBzqiwukLKJ2focR1gUDHuIZQlXjHg9rGC9IDDPaNfc9HSXDjIlpXyunfLgoa84oI0oAHwyBoZCGFDXnGktMVwyIQazRgtDQ7j6H6UhRkm2EXrClgSc21ATEEdUvKKG7KnWr0Cl4yRFbfZmi6Gew1ssnRauEOyn8ZwvwGfsvHAqBFjiQHRPJDW5tpUczvGCtIBARXSvF+ojOhgBemBhBxZnraUxTR1kRdQIAvw8OMWSAOagwyLajE6RJHoYQXpgowG1UStdV/oA2vSGGSYZJs4CnbtAWlAdJtYiyC4UMTNhzXCSbkg5qfjghSLfJjpBa3DCdFThT/MGAmpYJuxmUftnOSFgku0NKIm0Q+kRZlgz9ZttpQivakwO9TfzmzdU8mTwqPAF1yv9N6onELIxtB479LuE7ZMVE2iN4aQKiXYRrW2o75w1hCBqt7cowVRTTPpQRSuye1LLbinpjcSxUmoSRKCtvpJcwnRSIZuQbvKh+1MHlnMZ76cYGyyP6rI+I3hinGMsIss52//L1gHJS92XIJmkXcUNB7EFNI6+7Cr129God8LPuxCLDghFnlgGT+X5JFs/CTuzuPQ+XTH6uczOHCa0YjzGv6If7zl/AZ44h1ROs8hrPjGzM53kC6eUcHzHoY8etzzNwy0Rh3ZLV/9pqFk+dj1bxws//+j80gpGfxyQFKSBvLXH+4/X3+4j/D6wz82EbmlhUaaogAAAABJRU5ErkJggg==",iconWhite="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAulBMVEUAAADk9P/k8//l9f/n9f/l9P/l9P/m8//m9P/o+P/q///k9P/k8//l8//l9P/l9P/l8//k9P/k8//m8//m9P/l9P/l9P/l9f/n9v/o8//o8//n+f/p9P/////l9P/k8/8wmP/Y7f+Fw//d8P+t1/9/v/8+n/9otf95vf8zmv+Bwv9st/+k0/9cr/9Dov/U6//D4/9zuv/N6P9Op/83nP9ptv+dz/+QyP/g8v+WzP+94P+13P+73v+33f9oZhavAAAAH3RSTlMA+cdMSc62gnAgDNHu7OLfxr+Yl4yLiWpUQiwqFwWpuFocwwAAA9RJREFUaN681otO6kAUheE9pVfKVS4CgmsKqQHTQtETMcbz/q910kOJhhntdFrme4E/Tbp2hqoJbH/kDsJ+l7FuPxy4I98O6Eba9thhkGDO2G5TwxaexfALZnkLaszSd6DA8ZfUhLnLoIi5c6qrZaESq0V1zEJU5sxI18MQWoYPejOYMmhiU42Z2D3U0LOpmtUENU1WVEFgoTYrqLCFDhrQUV7IPRpyT0o8NMYjBXdo0B2VekSjHpW+z+A3emicp/x/GvhXW7iJH/cYdHATnYCkVhZUfcbb7Xb9AkWW/K5O1Hs7nttHUDQhCRvKjvwsgSqbBO0elL0WwRiqem0hOIWyza4IplA2Fd4vDMo+eOEPlLHrd84QModkHYtSfnGMBevkAJnh1XtQmjtyLUdpckbfhRBle65pn0EUlt20Q97TLR5KLpwlH5u+I0TWV28OUbTjNewiiOZ04UKUnJeWbSrK0h+PkEuFJYPoxHMZKst47gQRW9KZD4k1z0WoLOK5NSR8OnNMBZ1zbwFTQSwo55kLepSzTAWLKbaZuSBrC2dNGtxcRP+9awaL8zYuCyb76zOSvugGx8IoxGC244JUPSgOg5UET1xioxlkRAFKggkXPUEziIDssuD7Kxe8aQdt8suC2Lw9x/HzN6cPaAd9GgHmdgiMyDUbdGlgNjig0GwwpL7ZYJ+6ZoNdYqXBz3T/9Jv0b4UgKw/+q97sdhqGYSjcsQ46dsUFaHATN9tYq0K7td2g7P3fix9PQkJ2PNMuyr4HqKsojuJzTuoWBNpaUVBe0g5EOsWSyptmDyJ7xaaR2yItQaBMNW0hN35l13/Z/VAgNtU0vvejzf/hnfgtmESx34JxNPVbcBpFI58FR3hN9FdwIl+EJfQX4bHPgjE7zKQFjupLNXiPLVJ6mOHGtS6HnuQdq5zckMJAfzbcQPpEShj9eaNHbrIxLAyAJZoCSXwVTFhhqG7yHHqR501NC0MofQkUgBwMQQZIYQSuCXGPZtEex0Jyul8C0i6Mm0dGvuQ/uXX+DiyNk6vTTaet+4sF8T+SBTUzDt6f3Wv2Ar8rzjMhRHaGAyA7g7Ba7sE4mBM2AkMmOT9rQDLDc6cwSkpeVkb2gJRGMEpOs4I+RDWogiO82vCgMLusrJW8AmIVZlcUS15aZVg6QBrDEGsMy0bW1+rWXfBeZcluVtkXtnJ2TvbNquYs2TBM5/PZ6uEEB84TjQgr/DF8vCW8AM+wEaUwQ1jDxczCDdINExUMOwzZO+55CYHW/0Z2Z/NLCiXrY9eXGCz3EJ2nuR3zjwPGijbw/fzhE7HYtyzsXc6MAAAAAElFTkSuQmCC",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/REx9MFGOgqvMUpHHkYblFMpiJk+XFrnErCa2GmNB2UlCo8+uBE+6cRB4cOC7dRqF7vENLnwjG+pflA6DZD6esn+PpWEWK6CE7WAWJRu+tecUALuoJbqiUMV6gXicFt3ViEOw37NZaJzxDTzmte4qrxeC0dZ975TM8Sd+thYAM6BKmyGs7ZwGBPOFVmcYq7fl/2l97jEw/MMLsrXct8Ib429x3VBzLkgXWDZKicfsCXxi0DXfJdPmt2AvpC7doMzVgpduIv5yk4OypMijVOhvHt5v1H4kLYy4bnyAAAAAElFTkSuQmCC",rightIconPostil="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAt1BMVEUAAADr9f/s9f/s9f/t9//////r9v/r9f/r9f/r9v/s9v/r9v/s9f/r9f/s9v/t9v/w+f/r+P/r9f/k8v/m///////r9f/r9f+Ag4Xa4+yFiYzo8vyDh4mkqq/l7/nd5u/V3ubg6fPq9P67wsmus7mLj5KIjI7j7fbIz9fEzNO+xs25wMaWm5+RlZiOkpXM1NyxuL2nrbKhpqvQ2OGcoaXBydC0u8GanqOTmJvY4eqeo6eqsLWboKTKw0foAAAAF3RSTlMA6+CDTgT48/DfzcGrmpVxNSYaEwoH6fJyRRQAAAOESURBVGjevNRJCsJQEIThelPmySRaunBauRK9/+kEBYkmaoh5/V2gaPhpDHFVmaexCjhRoOI0LyuHUZzNIs4iyuzvzcYozkiZBt+0JuTMQtPiI6vpgbYYtizoSbHEgDqhN0mNnoWmR3rR21vRq9XbYq3pma5feknoXdItp6CAAk+WIuzzv2iK0C0eDIUY3DUhhYSNwIH9E52iGOUEEu2FmlFQBriIgiKHiqIqlBRVIqeoHClFpYj5l93hcjmcOFoMxen21/P67nzdcByFgFMdt+uO7Z5jBOBUN1rLLbdBGIiiy7hu7PIwJIFAIAkkJFX3v65Gc1tMRamqajgfSPjDhzGjO2535hubEn/h38LMzMgQUBeWY2HN0c2M+sKOEpcnFkBy+nxNQNSF+60I6hgg8SALjQXWEPqLbN9bjFguZVAXhoY5RpgQHaVEv4YwcSxwjymtLCbaQtZCth2myHK1gvBsRk4WgVwCR19YGjLpU3I1TwZ1YbwR020zC7RCvkBbaGv6ENeGnCOQg3nyri08iWSwgL0Z0iQQctErC9n7u5T5tqXRVR6Al7dMV5hyJBUg+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/DNwauEgnE1JhoTCgfpys6LywAAAqxJREFUaN7tm2tzqjAQhgmI90ut7UYFDgS5KWpr//+PO4NyHGsUTCB7bIfnq7M+OrMbneyLdgtzMjb6RG+DJG2d9I3xxNQewmwNulAL3UGr3Pk60qFG9NFroW427EDNdIaz+74WAQWQ1h3dmwGKMN5u+aY9UEZvyvteCCiEvHC+d1DK+5VxSkAxZPqtX3qgnN5l5xiAgHExf4DCeR5nBFAgs1w4BCSG+XndASQ6p5N8BGiMMp+pAxq6idCiXKMOAJGBppldQKRrahNAZaKNAZWxZgAqhtYHVPoaASk+0tVqFSUgCtHkxj6JacYniKJrbZBhTY8EDARpayBFSk94IIqk8CsXzoGnupDZHNtcuOReYVWFSepQIZw0qSL0YypM7MsLNwGVINhICx0qhSMrDKkkoaRwlxW7GxBg42Y1O0nhISuOQIgoqzlIChcSwz3PahaNsBGiC8O9+40vS63Qote4iVJhRDk8pcI15wtspUJYXvvmqrvU9i7ZJL9uLBrhzxf6C+c+C692oRXQIra22qONZ632aOPx6hbCodC3U9Cl1p9b+Efs3zAWjbARNsITbO5mxfulEPusxp0zcSHb0wrsmbAwpJUIhYVRNWH0/EJrW8W3tSS61P6wzngBPbK2OJb/7p+sMx+2QJcWtlDMgMMvaBN5Yf41lsDDYu41WSH/pmHBh4lZjUI/bwVWNLF+jcIdLbjGZ3k/72oUuhd/QHk+6RG3PqGXd35SuFWgXm3ClNKiX50kH9IUSnlwUeKUbA0WpTfBOe0HV0Fx6dXFkRjK0B9cdvmrjPD+mEarjPK5IOjrPPSFJfpKFn3pjL5Wxw4OoEcj0MMf2PEW9AAPdkQJPYSFHTPDDtKhRwWxw5DYcU/sQOv/j+yqDSU/R+xaWbD8maLzCA8HoD/+8BeqVA6ikn7rYgAAAABJRU5ErkJggg==",rightIconMetronome="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAsVBMVEUAAADr9f/r9f/s9v/s9f/t9//x///////r9v/s9f/s9v/r9v/s9f/r9f/s9v/t9v/w+f/r+P/r9f/k8v/r9f+Ag4Wbn6O5wMemrLHFzdTp8vyChoiPk5aIi46+xcyxt72FiYvf6fKts7nc5e+pr7Tk7vfByNDm7/nU3ebS2uKZnaKMj5Pi7PXI0Niip6ySl5ra4+zO19/Dy9KgpaqWmp+3vcSdoqe0u8HX4OnL09ursbZ/eBLlAAAAFHRSTlMA6/Lfg04IBPjgzcGrmpVxNSYaE1L/1wUAAAQ8SURBVGjezZtpe6JADIDBY7W113YzWkFFDou3rXf7/3/YSmQNtA6lG8nu+0nUx5eZCcn4EIxz1B7ubxtlsw5/Sd0sN27vH2pGLmrVmxJchNJN9Wvnr4oJF8Ss/MrU/aiU4MKUKj/0vuoVFMBVVTe8OyiIu7ODfLyGwrh+/Oz7WYYCKf/85DOhUMwPxscyFEz5MRUv11A418nIuQMB7shXBRGqpwm9AhGu/kxqBYSoxPm6BEKUfgkOkIZYM0EMsyYXohSoNyDIzWFGSyBIqWY8gCgPxj2Icm/cgii3RgO+wb4VrJopVkHvBb5Bw8hfCMNeR51l3YbclA0TcjLsKC3j3KM0jTrk41ll0X2FfNQNlo+wR5CPnMKhrZCF89xO0fMm8RjdSwqt4/p1zk7csosfzi8pXKqIZghn8Y+nMwRkML2AcIHjG4AGv68OPOFrR6m5xRX6KuINtGwwbiLPmzrQ4wp7OEDQM8CYCgFgrA68c4UB/YoGTym1AoCRilhyhWt14DkzjDdbJ1riuTow4a6hZVMQ6rDa845tH6/JFjCF+zgkMmij6kh/wBUuMcdkDc9TCRYhV+jEV5mWd5VixRU2aWHyJfYNU4i5Ul9/wm5chn1/tsWXtssSuipimp0WlAdICw8clhCz1eSLGW9CzBNmJZZw80Ug2KkZf4nngyHE7LGDFKPA8+HIFA1WesX3HCFWuxkkGUYlfppcYjgxwbTEEA5UhP8hV1NytfDzlw9fZwhHmK4ASUVGKzkDTipm+xZDiL8wzhA6yV3bS1z8GcIArzKNkOLSblkAVryhemUIqRjqhBAopL8edxWyBYaQiqFWOFioFBOXIaRiqBfiPpHo7oEhpGKoFWJgEWMXGEIqhpnC0wjt7Yyz86ZimC2coaw367Vc3lafimG2cH2c9pmt+iOWkIqhXkibUauLWo6QimGmcIXfsUI6N4aQiuEXmaZFs88QUjHMEAZ/NqNbfJchpGKYJXRtrBZ0BTGEVN0yhM5pn9bG7QxDSMUwQxhiPQpoMUOGkIqhXthKFHx0jxhCKoZaoTVJhPEYEw5DSMVQK1yqxKg8nF2WsIvFMEOIpXCd/JMx5ggtFeHqhW+KLpv4qFOosJlSvPKEFHda4VBRmNCUsoNmpxVi4utalAfZQeNgIQg1Qj/999O3cUE5wnjOHI3Qwzw0BSRO3jYv00CTVumTcNpPpgXrXcWHLOFQIU/uGeEumdn3TUXjZQjBU4i92izbJ8Z4EpgVFtHx8w7fwazEFVpb9Q08YAshnOf3OcAQEhs7n67bBpaQcAM7h243AK6QGMyceVPPNti9WpALow6i1A0TRDGNMohSNhogSkP8hqX4LVnxm87it9WlGwfEWyPEmz+k21vEG3ikW5TEm7Ck28ykG+nEWwWlmyGl2z2lG1r/fctusU3J/0fbdWGN5f9T67zAwwHijz/8BtEpv8l4E9bQAAAAAElFTkSuQmCC",rightIconTimer="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAt1BMVEUAAADs9v/r9f/x///////r9v/r9f/r9f/s9v/r9v/s9f/r9f/s9v/s9f/r9f/t9v/s9f/u+P/w+f/r+P/r9f/k8v/r9f/r9f+Ag4Xo8vyrsbfm8PnQ2eHL09qQlJjY4eq1vMKfpKi4v8WChYjq9P7U3eWVmp2EiIrj7PaNkZWHio2Tl5uKjpHIz9e/xs2lq7C7wsmxt72boKTEzNTCydGutLrN1d3g6vPc5e6ip6zd5/Cpr7SXnKBGT7TZAAAAF3RSTlMA4OsIBPjz8M3Bq5qVhIJxT001JhoT6cvhyTQAAAQcSURBVGje7ZvZdtowEIZtGpIQsjVN+8sYMN6IAZudAIH3f65iyaw2YFWy2ot+V5zA4cvIMyMde9CyuHl7qVb0Uhl/SLmkV6ovbzdaLm5eH+4ghbuH1+vOn88lSKT0/POi7tvTLSRz+/TtvO+7jgLQv58L7xEF8ZgZ5Ps9CuP+Pe37oaNA9B8p3y8Uyq8T47uOgtHfj/LlHoVzf5g5j1DA40H9QQnfdwuqQwn6dlGfoIinpF/fQhG3rJM/QxnPdP8rQRmleH98hUJeN8IHKORhs6J3UMjdjfYGpbxpL1DKi1YFD9GsdszQBBdVrQIORiRFzwAPFY2nj3ofJE0dPOgaT9l7XWFhSSuDg2HaN/bAQ1kDF3WntcGOTc1WzMQAH1TISz8W2sjkv5BXaPjOoMeqo2OPGqmylyv06quTwnDHk52zv6zLFRqTJsmg2wq2JeM2ZArriS7NxzCuDb+7MU6lCc0BuUDPAtCIXw0lCf19eOtRZAWGESw+HftjF+QU8w59tZAibGy/uTmc4wAjsrfKWS9OXOJ+yRBO3EQXeenYqZIxDdZTSBA2mM9tGdlvh4lvKKkO/aTOfZwhSIJ05AiDDkvE+YUKXTGjnMJfMl+AS8xITBhIEDbYes6vND1WpjVxoUEX1PWPvz4aWjjGZIXqCwv7WemwCcf9xDEWTWVbVGh0Mo6CC3qWyT5C+oLCiMScRFOnTSDVbenOtRITshRtI48QLdpUTSGh6dKOlU84px+OhIQN9k/nE8KmlSEkHLHMyyns078LCce0J+cVLkiMKSIMaYfMKwTt8r6A0CQx80xh2NhSN5DQjt+YCAi/qBBp4THN+WER9QWEFj0GZufunn1m0g7uiArD68IlGCtR4YKWYfrShifCyWGEQwFhQGKMdOR22GvvGE+PqmgqIPRos7KQlw7t9AJC9FLd8XoVfYkIBywHc/JJL7nHJeTvjunOKyK09rv4dbwOrQohIUuDGceKEktMyHbxAHkYs9OBmJB10xGusO+wfUEhy1PXwlUMWkKhKSpkabM2cI1WcoAVFaJGYmb5MqZjiAuDbp5rY7FPCdzFSG1G04s+tn+sIEOIGTM63vkEZfH1TDlCw2ZGO0AmnkMo4QJyhDDXhNKdekjjt5N3LcgSwhwTRm9inOqWhBFakCeEMSAJ3dmneXBnsUkSmguICNP0XbLFbS5ro9ZssP4gOwYmJAthjclZwgiQLoQ3aWbrui0T0oVMGWVE2XEC8KCBi6/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",rightHideIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAB4CAMAAACQAMFAAAAAaVBMVEUAAADFxcUAAAChoaGRkZG/v79KSkpkZGRzc3MAAAAAAAAAAAAAAAAAAAA+Pj4uLi5/f39sbGy0tLSrq6ubm5uKiop6enoZGRkAAAAAAAAAAAAAAAAAAADAwMC9vb27u7u4uLiVlZVcXFxJorRlAAAAI3RSTlNNpgCIf6BgaW9GSzUtB1xYdW2XkIZ6c1JAKSUbEaKenJqBZjLafDQAAAEuSURBVFjD7dnJboNAEEXR12FyNzNm8ADG+P8/Mi2syEQOcvspYmHV3aIjNZtaVOHrV/0pPmgDh5YwPWq492CJAQh41gADE4CCMTgYg4MJOHgGB1NNwgQcTA0JjyChJmEPshMLYxYeWKhZaCBJkiR9WFGRYaW8LdddqZS6+iGeCpvKfipWoa/mLnWERbdpVHPeK2gbvLK7P74OlM0Z2irY9ureWJeDK1Q3IFO2wGszAIEzjIDQvi+EjYA7CBQo8J9h84BvToBhX2RvwUsH4Poz93a5IxynHLbct9R9ylXNYihnTfUSFspmf+l5/M9j0sdqvtfm+LOu9KYOkiRJ0qdkWKg3X3bFmy/0evBLy63XpKkBvQrml88br7vJx/IrfULyZwv+UMKfZvhjEH1++gbDqw7/SRzSEQAAAABJRU5ErkJggg==",leftHideIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAB4CAMAAACQAMFAAAAAb1BMVEUAAADFxcUAAAChoaGRkZG/v79kZGRKSkp0dHQAAAAAAAAAAAAAAAAAAAB9fX1ubm65ubmbm5tBQUEZGRkAAAAAAAAAAAAAAADAwMC9vb22traysrKqqqqVlZWGhoZcXFw6OjoyMjIoKCiMjIy7u7u2fyjuAAAAJXRSTlNNpgCIf6BpYG9JQjUtB3Vum4ZdUiklGxGin5iVj4F5ZltZVnudNeNqwQAAASdJREFUWMPt2d1ugkAQhuFvC4ILy/IrKAoi9v6vsSwG08YSYNJsPZj3lDwcziYzWJOUQXioPn6E9QVFRIEmqSISNLQkQZOiQoQTJEoQUlSIkgplRIRQVCgjIkRBhQEVoqLCAxWGVBhQoaRDjuM47t2K9Q0zZdqbd1oIUd99vOS7yfBpXjpiLGmu+JaXnsSYuwBNu/Tx+zx2jmJoER7jNBGPLhg6T2gJ7gB02tmJoQ64ii3Q5DtC+IC3GWLPkCHDv4YtBWb6YgZNtmkC9PE002ozq05r4bPE7TF0az63wHOb4Zl/rxehO47F12ega8cxqWdh3jhxjl/r944LjuM4jvuvDVJAhaH1hV5le2lZ2F7MKtvL59Lygj20fERQVg8lUkUWjkFz56cvTEAO4oxj2g0AAAAASUVORK5CYII=",selectMusic="_selectMusic_7wci3_1",close="_close_7wci3_37",styles$f={selectMusic,close},searchGroup$4="_searchGroup_6st40_1",btnType$3="_btnType_6st40_5",inputSearch$3="_inputSearch_6st40_41",searchCatatory$1="_searchCatatory_6st40_62",addTrain$1="_addTrain_6st40_69",spaceSection$1="_spaceSection_6st40_81",collapseWrap$1="_collapseWrap_6st40_87",collaoseBtn$1="_collaoseBtn_6st40_93",isStart$1="_isStart_6st40_98",isHidden$1="_isHidden_6st40_101",hideButton$1="_hideButton_6st40_105",popSelect$1="_popSelect_6st40_110",spaceSection2$1="_spaceSection2_6st40_120",textBtn$1="_textBtn_6st40_125",iconArrow$1="_iconArrow_6st40_137",textBtnActive$1="_textBtnActive_6st40_146",styles$e={searchGroup:searchGroup$4,btnType:btnType$3,inputSearch:inputSearch$3,searchCatatory:searchCatatory$1,addTrain:addTrain$1,spaceSection:spaceSection$1,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 ResourceSearchGroup$2=defineComponent({name:"resource-search-group",props:{type:{type:String,default:"shareResources"},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,bookVersionId:null}),s=reactive({tempSubjectId:null}),i=ref([]),o=()=>{t("search",n)},l=useThrottleFn(()=>o(),500),c=ref(),u=ref([]),m=ref(0),f=ref(0),p=ref(0),d=ref(!1),g=ref(!1),E=y=>{y!=null&&y.selfElRef&&u.value.push(y.selfElRef.parentNode)},S=y=>{d.value=y,b()},b=()=>{try{u.value=[...new Set(u.value)];let y=-1;u.value.forEach((C,x)=>{x===0?(p.value=1,y=C.offsetLeft):C.offsetLeft===y&&x!=0&&p.value++,d.value?C.style.display="block":p.value>1?C.style.display="none":C.style.display="block"}),g.value=!0}catch(y){}},A=y=>{const C={};return y==null||y.forEach(x=>{x.id===n.subjectId&&(C.selected=!0,C.name=x.name)}),C};return onMounted(async()=>{var y,C;resourceTypeArray.forEach(x=>{i.value.push(x)}),await a.getMusicSheetCategory(),await a.getSubjects(),n.subjectId=null,n.type==="MUSIC"&&(m.value=(y=c.value)==null?void 0:y.offsetHeight,f.value=((C=c.value)==null?void 0:C.offsetHeight)/p.value,b())}),()=>{let y,C;return createVNode("div",{class:styles$e.searchGroup},[createVNode("div",{class:styles$e.searchCatatory},[createVNode(NSpace,{size:"small",class:styles$e.btnType},_isSlot$3(y=i.value.map(x=>createVNode(NButton,{type:n.type===x.value?"primary":"default",secondary:n.type!==x.value,round:!0,size:"small",focusable:!1,onClick:()=>{n.type=x.value,n.subjectId=null,o();try{nextTick(()=>{var F,N;n.type==="MUSIC"?(m.value=(F=c.value)==null?void 0:F.offsetHeight,f.value=((N=c.value)==null?void 0:N.offsetHeight)/p.value,b()):u.value=[]})}catch(F){}}},{default:()=>[x.label]})))?y:{default:()=>[y]}),createVNode(TheSearch,{class:styles$e.inputSearch,round:!0,onSearch:x=>{n.name=x,l()}},null)]),createVNode(NForm,{labelAlign:"left",labelPlacement:"left"},{default:()=>[n.type==="MUSIC"&&e.type==="shareResources"&&createVNode("div",{class:styles$e.collapsSection},[createVNode(NFormItem,{label:"教材:"},{default:()=>[createVNode("div",{class:[styles$e.collapseWrap,g.value?"":styles$e.hideButton,d.value?"":styles$e.isHidden],ref:c},[createVNode(NSpace,{class:[styles$e.spaceSection]},{default:()=>[a.getAllMusicCategories.map(x=>createVNode(NButton,{ref:E,secondary:n.bookVersionId===x.id,quaternary:n.bookVersionId!==x.id,strong:!0,focusable:!1,type:n.bookVersionId===x.id?"primary":"default",onClick:()=>{n.bookVersionId=x.id,o()}},{default:()=>[x.name]})),p.value>1&&createVNode("div",{style:{height:"var(--n-blank-height)",position:"absolute",display:"flex",alignItems:"center"},onClick:()=>{S(!d.value)}},[createVNode(NImage,{previewDisabled:!0,src:isCollaose,class:[styles$e.collaoseBtn,d.value?styles$e.isStart:""]},null)])]})])]})]),createVNode(NFormItem,{label:"声部:"},{default:()=>[createVNode(NSpace,{class:styles$e.spaceSection2},_isSlot$3(C=a.getSubjectInstruments.map(x=>x.instruments&&x.instruments.length>1&&n.type==="MUSIC"?createVNode(NPopselect,{options:x.instruments,trigger:"hover",value:s.tempSubjectId,"onUpdate:value":[F=>s.tempSubjectId=F,()=>{n.type==="MUSIC"&&(n.subjectId=s.tempSubjectId),o()}],key:x.value,class:[styles$e.popSelect]},{default:()=>[createVNode("span",{class:[styles$e.textBtn,A(x.instruments).selected&&styles$e.textBtnActive]},[A(x.instruments).name||x.name,createVNode("i",{class:styles$e.iconArrow},null)])]}):createVNode("span",{class:[styles$e.textBtn,(n.type==="MUSIC"?n.subjectId===x.value:n.subjectId===x.id)&&styles$e.textBtnActive],onClick:()=>{n.type==="MUSIC"?n.subjectId=x.value:n.subjectId=x.id,s.tempSubjectId=null,o()}},[x.name])))?C:{default:()=>[C]})]})]})])}}}),listContainer$3="_listContainer_l62rt_1",emptySection$3="_emptySection_l62rt_5",list$4="_list_l62rt_1",itemWrap$1="_itemWrap_l62rt_18",itemWrapBox$1="_itemWrapBox_l62rt_23",styles$d={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$c={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:""}},emits:["search"],setup(e,{emit:t}){const r=toRef(e.subjectId),a=useCatchStore(),n=reactive({type:"MUSIC",name:"",subjectId:r.value,bookVersionId:null}),s=ref([]),i=()=>{t("search",n)},o=useThrottleFn(()=>i(),500),l=c=>{const u={};return c==null||c.forEach(m=>{m.id===n.subjectId&&(u.selected=!0,u.name=m.name)}),u};return onMounted(async()=>{resourceTypeArray.forEach(c=>{s.value.push(c)}),await a.getMusicSheetCategory(),await a.getSubjects(),a.getSubjectInstruments.forEach(c=>{c.id==e.subjectId&&(c.instruments.length>0?n.subjectId=c.instruments[0].value:n.subjectId=c.value)})}),()=>{let c;return createVNode("div",{class:styles$c.searchGroup},[createVNode(NForm,{labelAlign:"left",labelPlacement:"left"},{default:()=>[createVNode(NFormItem,{label:"声部:"},{default:()=>[createVNode(NSpace,{class:[styles$c.spaceSection,styles$c.spaceSection2]},_isSlot$2(c=a.getSubjectInstruments.map(u=>u.instruments&&u.instruments.length>1?createVNode(NPopselect,{options:u.instruments,trigger:"hover",value:n.subjectId,"onUpdate:value":[m=>n.subjectId=m,()=>{i()}],key:u.value,class:[styles$c.popSelect]},{default:()=>[createVNode("span",{class:[styles$c.textBtn,l(u.instruments).selected&&styles$c.textBtnActive]},[l(u.instruments).name||u.name,createVNode("i",{class:styles$c.iconArrow},null)])]}):createVNode("span",{class:[styles$c.textBtn,n.subjectId===u.value&&styles$c.textBtnActive],onClick:()=>{n.subjectId=u.value,i()}},[u.name])))?c:{default:()=>[c]})]}),createVNode(TheSearch,{class:styles$c.inputSearch,round:!0,onSearch:u=>{n.name=u,o()}},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"},from:{type:String,default:""}},setup(e){const t=usePrepareStore(),r=useCatchStore();useMessage();const{type:a}=toRefs(e),n="resourceSearchGroup"+ +new Date,s=reactive({searchHeight:"0px",loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,sourceType:formatType$2(a.value),musicalInstrumentId:null,enableFlag:!0},tableList:[],show:!1,item:{}}),i=async()=>{try{s.pagination.page===1&&(s.loading=!0);const{data:u}=await materialQueryPage({...s.searchGroup,...s.pagination,lessonCoursewareKnowledgeId:e.type==="relateResources"||e.type==="shareResources"?t.getSelectKey:null});s.loading=!1;const m=u.rows||[],f=[];m.forEach(p=>{f.push({id:p.id,coverImg:p.coverImg,type:p.type,title:p.name,isCollect:!!p.favoriteFlag,isSelected:p.sourceFrom==="PLATFORM",content:p.content})}),s.tableList.push(...f),s.finshed=u.pages<=u.current}catch(u){s.loading=!1}},o=useDebounceFn(u=>{if(s.pagination.page=1,s.tableList=[],u.type==="MUSIC"){const{subjectId:m,...f}=u;s.searchGroup=Object.assign(s.searchGroup,{...f,musicalInstrumentId:m,subjectId:null})}else s.searchGroup=Object.assign(s.searchGroup,{...u,musicalInstrumentId:null});i()},500),l=async u=>{try{eventGlobal.emit("onPrepareAddItem",{materialId:u.id,coverImg:u.coverImg,type:u.type,title:u.title,isCollect:u.isCollect,isSelected:u.isSelected,content:u.content,removeFlag:!1})}catch(m){}},c=async u=>{try{await favorite({materialId:u.id,favoriteFlag:u.isCollect?0:1,type:u.type}),u.isCollect=!u.isCollect}catch(m){}};return onMounted(async()=>{await r.getSubjects(),i(),useResizeObserver(document.querySelector("."+n),u=>{const m=u[0],{height:f}=m.contentRect;s.searchHeight=f+"px"})}),()=>createVNode("div",null,[createVNode("div",{class:n},[e.from==="class"?createVNode(ClassSearchGroup,{type:e.type,subjectId:t.getSubjectId,onSearch:u=>o(u)},null):createVNode(ResourceSearchGroup$2,{type:e.type,onSearch:u=>o(u)},null)]),createVNode(NScrollbar,{class:[styles$d.listContainer,"list_container"],style:{"max-height":"calc(var(--listContainerHeight) - var(--modal-lesson-tab-height) - ".concat(s.searchHeight,") ")},onScroll:u=>{var d,g,E;const m=(d=u.target)==null?void 0:d.clientHeight,f=(g=u.target)==null?void 0:g.scrollTop,p=(E=u.target)==null?void 0:E.scrollHeight;m+f+20>=p&&!s.finshed&&!s.loading&&(s.pagination.page=s.pagination.page+1,i())}},{default:()=>[createVNode(NSpin,{show:s.loading,size:"small"},{default:()=>[createVNode("div",{style:{"min-height":"calc(var(--listContainerHeight) - var(--modal-lesson-tab-height) - ".concat(s.searchHeight,")")},class:[styles$d.listSection,!s.loading&&s.tableList.length<=0?styles$d.emptySection:""]},[s.tableList.length>0&&createVNode("div",{class:styles$d.list},[s.tableList.map(u=>createVNode("div",{class:[styles$d.itemWrap,"selresources_item_Wrap"]},[createVNode("div",{class:styles$d.itemWrapBox},[createVNode(CardType,{isShowAdd:e.from!=="class",item:u,isShowCollect:!0,onAdd:m=>l(m),disabledMouseHover:!1,onCollect:m=>c(m),onClick:()=>{u.type!=="IMG"&&(s.show=!0,s.item=u)}},null)])]))]),!s.loading&&s.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{size:e.from==="class"?"large":"default",show:s.show,"onUpdate:show":u=>s.show=u,from:e.from,item:s.item},null)])}}),SelectResources=defineComponent({name:"select-resources",props:{type:{type:String,default:"myResources"},from:{type:String,default:""}},emits:["select"],setup(e){const{type:t}=toRefs(e),r=ref(t.value);return onMounted(()=>{useResizeObserver(document.querySelector(".select-resource .n-tabs-nav--top"),a=>{const n=a[0],{height:s}=n.contentRect;console.log(s,"height - 11"),document.documentElement.style.setProperty("--modal-lesson-tab-height",s+"px")})}),()=>createVNode("div",{class:[styles$f.selectMusic,"select-resource"]},[createVNode(NTabs,{animated:!0,value:r.value,paneClass:styles$f.paneTitle,justifyContent:"center",paneWrapperClass:styles$f.paneWrapperContainer,"onUpdate:value":a=>{r.value=a}},{default:()=>[e.from!=="class"&&createVNode(NTabPane,{name:"relateResources",tab:"相关资源"},{default:()=>[createVNode(SelectItem,{type:"relateResources"},null)]}),createVNode(NTabPane,{name:"shareResources",tab:e.from==="class"?"共享曲目":"共享资源"},{default:()=>[createVNode(SelectItem,{type:"shareResources",from:e.from},null)]}),createVNode(NTabPane,{name:"myResources",tab:e.from==="class"?"我的曲目":"我的资源"},{default:()=>[createVNode(SelectItem,{type:"myResources",from:e.from},null)]}),createVNode(NTabPane,{name:"myCollect",tab:"我的收藏"},{default:()=>[createVNode(SelectItem,{type:"myCollect",from:e.from},null)]})]})])}}),selectClass="_selectClass_r6xt9_1",selectClassScroll="_selectClassScroll_r6xt9_4",searchGroup$2="_searchGroup_r6xt9_8",list$3="_list_r6xt9_11",listEmpty="_listEmpty_r6xt9_20",itemWrap="_itemWrap_r6xt9_25",itemWrapBox="_itemWrapBox_r6xt9_28",styles$b={selectClass,selectClassScroll,searchGroup:searchGroup$2,list:list$3,listEmpty,itemWrap,itemWrapBox},coursewareType="_coursewareType_1hpyc_1",footer="_footer_1hpyc_13",coursewareTypeHover="_coursewareTypeHover_1hpyc_18",addBtn="_addBtn_1hpyc_18",coursewareTypeHocoursewareTypeShow="_coursewareTypeHocoursewareTypeShow_1hpyc_22",cover="_cover_1hpyc_44",defaultLook="_defaultLook_1hpyc_58",isShowAdd="_isShowAdd_1hpyc_82",iconNoWork="_iconNoWork_1hpyc_90",status="_status_1hpyc_100",hideP="_hideP_1hpyc_121",preview="_preview_1hpyc_124",previewBtn="_previewBtn_1hpyc_144",coursewareText="_coursewareText_1hpyc_151",name$1="_name_1hpyc_154",iconEditName="_iconEditName_1hpyc_169",subjectName="_subjectName_1hpyc_176",editName="_editName_1hpyc_182",operationBottom="_operationBottom_1hpyc_201",actionClass="_actionClass_1hpyc_221",actionWork="_actionWork_1hpyc_239",menu="_menu_1hpyc_249",iconEdit="_iconEdit_1hpyc_169",iconDelete="_iconDelete_1hpyc_273",popoverItem="_popoverItem_1hpyc_286",iconLook="_iconLook_1hpyc_320",iconAdd="_iconAdd_1hpyc_321",styles$a={coursewareType,footer,coursewareTypeHover,addBtn,coursewareTypeHocoursewareTypeShow,cover,defaultLook,isShowAdd,function:"_function_1hpyc_85",iconNoWork,status,hideP,preview,previewBtn,coursewareText,name:name$1,iconEditName,subjectName,editName,operationBottom,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}},emits:["add","editName","edit","delete","startClass","click","work","look"],setup(e,{emit:t}){return()=>createVNode("div",{class:[styles$a.coursewareType,e.isHoverShowAdd?styles$a.coursewareTypeHover:styles$a.coursewareTypeHocoursewareTypeShow]},[createVNode("div",{class:[styles$a.cover,e.isShowPreviewBtn&&styles$a.hideP,e.isShowAdd&&styles$a.isShowAdd],onClick:()=>t("click")},[e.item.openFlag&&e.isShowOpenFlag&&createVNode("span",{class:styles$a.status},[createTextVNode("公开")]),createVNode(NImage,{objectFit:"cover",previewDisabled:!0,src:e.item.coverImg},null),createVNode("i",{class:styles$a.defaultLook},null),e.isShowPreviewBtn&&createVNode("div",{class:styles$a.preview},[createVNode(NButton,{strong:!0,secondary:!0,class:styles$a.previewBtn},{default:()=>[createTextVNode("使用课件")]})]),e.item.isNotWork&&createVNode("i",{class:styles$a.iconNoWork},null),e.isShowAdd&&createVNode("div",{class:styles$a.function},[createVNode(NTooltip,{showArrow:!1,duration:30,animated:!1},{trigger:()=>createVNode("i",{class:styles$a.iconLook,onClick:()=>t("look")},null),default:()=>"预览课件"}),createVNode(NTooltip,{showArrow:!1,duration:30,animated:!1},{trigger:()=>createVNode("i",{class:styles$a.iconAdd,onClick:()=>t("add")},null),default:()=>"添加到我的课件"})])]),createVNode("div",{class:styles$a.operationBottom},[createVNode("div",{class:styles$a.coursewareText},[createVNode("div",{class:[styles$a.name]},[createVNode("span",null,[e.item.name])]),createVNode("div",{class:styles$a.subjectName},[e.item.subjectNames])]),e.operate&&createVNode("div",{class:styles$a.footer},[createVNode("div",{class:styles$a.actionClass,onClick:()=>t("startClass")},[createTextVNode("开始上课")]),createVNode(NSpace,null,{default:()=>[createVNode("div",{class:[styles$a.actionClass,styles$a.actionWork],onClick:()=>t("work")},[createTextVNode("作业")]),createVNode(NPopover,{trigger:"hover",showArrow:!1,to:!1,duration:50},{trigger:()=>createVNode("div",{class:[styles$a.menu]},null),default:()=>createVNode("div",{class:styles$a.popoverList},[createVNode("div",{class:styles$a.popoverItem,onClick:()=>t("edit")},[createVNode("i",{class:styles$a.iconEdit},null),createVNode("span",null,[createTextVNode("编辑课件")])]),createVNode("div",{class:styles$a.popoverItem,onClick:()=>t("delete")},[createVNode("i",{class:styles$a.iconDelete},null),createVNode("span",null,[createTextVNode("删除课件")])])])})]})])])])}}),SelectClass=defineComponent({name:"select-class",props:{courseId:{type:String,default:""},subjectId:{type:String,default:""},lessonCoursewareSubjectList:{type:Array,default:()=>[]},classId:{type:String,default:""}},emits:["confirm","close"],setup(e,{emit:t}){const r=reactive({loading:!1,subjectId:e.subjectId?Number(e.subjectId):"",tableList:[]}),a=async()=>{r.loading=!0;try{const{data:n}=await teacherChapterLessonCoursewareList({coursewareDetailKnowledgeId:e.courseId,subjectId:e.classId?r.subjectId: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(e.subjectId){const n=Number(e.subjectId);let s=!1;e.lessonCoursewareSubjectList.forEach(i=>{i.id===n&&(s=!0)}),s||(r.subjectId="")}a()}),()=>createVNode("div",{class:styles$b.selectClass},[e.classId&&createVNode("div",{class:styles$b.searchGroup},[createVNode(NSelect,{options:[{id:"",name:"全部声部"},...e.lessonCoursewareSubjectList],valueField:"id",labelField:"name",style:{width:"220px"},placeholder:"请选择声部",value:r.subjectId,"onUpdate:value":[n=>r.subjectId=n,()=>{a()}]},null)]),createVNode(NSpin,{show:r.loading},{default:()=>[createVNode(NScrollbar,{class:styles$b.selectClassScroll},{default:()=>[createVNode("div",{class:[styles$b.list,!r.loading&&r.tableList.length<=0&&styles$b.listEmpty]},[r.tableList.map(n=>createVNode("div",{class:[styles$b.itemWrap,styles$b.itemBlock,"row-nav"]},[createVNode("div",{class:styles$b.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_1c0h5_1",treeBox="_treeBox_1c0h5_5",listSectionLeft="_listSectionLeft_1c0h5_10",leftscrollBar="_leftscrollBar_1c0h5_14",className$1="_className_1c0h5_20",classNameIcon="_classNameIcon_1c0h5_27",classNameContent="_classNameContent_1c0h5_35",treeParent="_treeParent_1c0h5_43",parentSelect="_parentSelect_1c0h5_54",listSectionRight="_listSectionRight_1c0h5_60",rightscrollBar="_rightscrollBar_1c0h5_64",cardContainer="_cardContainer_1c0h5_69",styles$9={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$9.sourcelistBox},[createVNode("div",{class:styles$9.treeBox},[createVNode("div",{class:[styles$9.listSectionLeft]},[createVNode(NScrollbar,{class:styles$9.leftscrollBar},{default:()=>[e.teacherChapterName&&createVNode("div",{class:styles$9.className},[createVNode("i",{class:styles$9.classNameIcon},null),createVNode("p",{class:styles$9.classNameContent},[e.teacherChapterName])]),e.knowledgePointList.map((n,s)=>createVNode("div",{class:[styles$9.treeParent,r.value===s&&styles$9.parentSelect],key:"parent"+s,onClick:()=>{r.value=s}},[n.title]))]})]),createVNode("div",{class:[styles$9.listSectionRight]},[createVNode(NScrollbar,{class:styles$9.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$9.cardContainer,"drawerCardItemRef"]},[createVNode(CardType,{item:s,isActive:a.value===i&&r.value===e.courseActiveIndex,isCollect:!1,isShowCollect:!1,onClick:()=>{t("confirm",s)}},null)]))]}})])])])}}),musicScore="_musicScore_17kro_1",styles$8={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$8.musicScore},[createVNode("iframe",{ref:a,onLoad:i=>{t("setIframe",a.value),n.value=!0,iframeDislableKeyboard(i.target)},class:[styles$8.container,"musicIframe"],frameborder:"0",src:s},null)])}}),btnGroup$1="_btnGroup_1he4z_1",dragbom$2="_dragbom_1he4z_48",tipsContainer="_tipsContainer_1he4z_53",tipsLeft="_tipsLeft_1he4z_65",tips="_tips_1he4z_53",iconTips="_iconTips_1he4z_74",btnNoTips="_btnNoTips_1he4z_79",btnItem="_btnItem_1he4z_85",btnTitle="_btnTitle_1he4z_89",btnGroupClass="_btnGroupClass_1he4z_98",listContainer$2="_listContainer_1he4z_101",listSection$2="_listSection_1he4z_105",listContainerDrag="_listContainerDrag_1he4z_108",emptySection$2="_emptySection_1he4z_114",list$2="_list_1he4z_101",itemBlock="_itemBlock_1he4z_128",trainEditModal$2="_trainEditModal_1he4z_131",assignHomework="_assignHomework_1he4z_134",assignHomeworkContainer="_assignHomeworkContainer_1he4z_137",updateBtnGroup="_updateBtnGroup_1he4z_140",active="_active_1he4z_152",studentSection$1="_studentSection_1he4z_156",selectStudentBtn="_selectStudentBtn_1he4z_160",disabled="_disabled_1he4z_169",firstName="_firstName_1he4z_173",studentList="_studentList_1he4z_176",studentItem$1="_studentItem_1he4z_184",removeVisiable="_removeVisiable_1he4z_202",studentRemove$1="_studentRemove_1he4z_208",btnGroupModal$1="_btnGroupModal_1he4z_220",removeVisiable1="_removeVisiable1_1he4z_227",styles$7={btnGroup:btnGroup$1,dragbom:dragbom$2,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,updateBtnGroup,switch:"_switch_1he4z_148",active,studentSection:studentSection$1,selectStudentBtn,disabled,firstName,studentList,studentItem:studentItem$1,removeVisiable,studentRemove:studentRemove$1,btnGroupModal:btnGroupModal$1,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,u,m;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()?(s=e.getBoundingClientRect(),i=s.top,o=s.left,l=s.bottom,c=s.right,u=s.height,m=s.width):(i=0,o=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,m=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 f=n.getBoundingClientRect();i-=f.top+parseInt(css(n,"border-top-width")),o-=f.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 p=matrix(n||e),d=p&&p.a,g=p&&p.d;p&&(i/=g,o/=d,m/=d,u/=g,l=i+u,c=o+m)}return{top:i,left:o,bottom:l,right:c,width:m,height:u}}}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,u=c.fromRect,m=getRect(c),f=c.prevFromRect,p=c.prevToRect,d=o.rect,g=matrix(c,!0);g&&(m.top-=g.f,m.left-=g.e),c.toRect=m,c.thisAnimationDuration&&isRectEqual(f,m)&&!isRectEqual(u,m)&&(d.top-m.top)/(d.left-m.left)===(u.top-m.top)/(u.left-m.left)&&(l=calculateRealTime(d,f,p,n.options)),isRectEqual(m,u)||(c.prevFromRect=u,c.prevToRect=m,l||(l=n.options.animation),n.animate(c,d,m,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,u=(n.left-s.left)/(l||1),m=(n.top-s.top)/(c||1);a.animatingX=!!u,a.animatingY=!!m,css(a,"transform","translate3d("+u+"px,"+m+"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,u=e.oldDraggableIndex,m=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,d=e.extraEventProperties;if(t=t||r&&r[expando],!!t){var g,E=t.options,S="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=u,g.newDraggableIndex=m,g.originalEvent=f,g.pullMode=p?p.lastPutMode:void 0;var b=_objectSpread2(_objectSpread2({},d),PluginManager.getEventProperties(a,t));for(var A in b)g[A]=b[A];r&&r.dispatchEvent(g),E[S]&&E[S].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,u=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 m=o.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===m)?"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+u>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,u){var m=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(s==null&&(i||m))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,u),i)(o,l,c,u);var f=(i?o:l).options.group.name;return s===!0||typeof s=="string"&&s===f||s.join&&s.indexOf(f)>-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,u=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 u=="function"){if(u.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(u&&(u=u.split(",").some(function(m){if(m=closest(c,m.trim(),a,!1),m)return _dispatchEvent({sortable:r,rootEl:m,name:"filter",targetEl:l,fromEl:a,toEl:a}),pluginEvent("filter",r,{evt:t}),!0}),u)){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(u){find(dragEl,u.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),u=(s.clientX-tapEvt.clientX+n.x)/(o||1)+(c?c[0]-ghostRelativeParentInitialScroll[0]:0)/(o||1),m=(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+=u-(lastDx||0),i.f+=m-(lastDy||0)):i={a:1,b:0,c:0,d:1,e:u,f:m};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");css(ghostEl,"webkitTransform",f),css(ghostEl,"mozTransform",f),css(ghostEl,"msTransform",f),css(ghostEl,"transform",f),lastDx=u,lastDy=m,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,u=activeGroup===l,m=o.sort,f=putSortable||c,p,d=this,g=!1;if(_silent)return;function E(T,P){pluginEvent(T,d,_objectSpread2({evt:t,isOwner:u,axis:p?"vertical":"horizontal",revert:i,dragRect:n,targetRect:s,canSort:m,fromSortable:f,target:a,completed:b,onMove:function(R,X){return _onMove(rootEl,r,dragEl,n,R,getRect(R),t,X)},changed:A},P))}function S(){E("dragOverAnimationCapture"),d.captureAnimationState(),d!==f&&f.captureAnimationState()}function b(T){return E("dragOverCompleted",{insertion:T}),T&&(u?c._hideClone():c._showClone(d),d!==f&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,!1),toggleClass(dragEl,o.ghostClass,!0)),putSortable!==d&&d!==Sortable.active?putSortable=d:d===Sortable.active&&putSortable&&(putSortable=null),f===d&&(d._ignoreWhileAnimating=a),d.animateAll(function(){E("dragOverAnimationComplete"),d._ignoreWhileAnimating=null}),d!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===dragEl&&!dragEl.animated||a===r&&!a.animated)&&(lastTarget=null),!o.dragoverBubble&&!t.rootEl&&a!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(t.target),!T&&nearestEmptyInsertDetectEvent(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function A(){newIndex=index$1(dragEl),newDraggableIndex=index$1(dragEl,o.draggable),_dispatchEvent({sortable:d,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||d._ignoreWhileAnimating===a)return b(!1);if(ignoreNextClick=!1,c&&!o.disabled&&(u?m||(i=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&l.checkPut(this,c,dragEl,t))){if(p=this._getDirection(t,a)==="vertical",n=getRect(dragEl),E("dragOverValid"),Sortable.eventCanceled)return g;if(i)return parentEl=rootEl,S(),this._hideClone(),E("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),b(!0);var y=lastChild(r,o.draggable);if(!y||_ghostIsLast(t,p,this)&&!y.animated){if(y===dragEl)return b(!1);if(y&&r===t.target&&(a=y),a&&(s=getRect(a)),_onMove(rootEl,r,dragEl,n,a,s,t,!!a)!==!1)return S(),r.appendChild(dragEl),parentEl=r,A(),b(!0)}else if(y&&_ghostIsFirst(t,p,this)){var C=getChild(r,0,o,!0);if(C===dragEl)return b(!1);if(a=C,s=getRect(a),_onMove(rootEl,r,dragEl,n,a,s,t,!1)!==!1)return S(),r.insertBefore(dragEl,C),parentEl=r,A(),b(!0)}else if(a.parentNode===r){s=getRect(a);var x=0,F,N=dragEl.parentNode!==r,V=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||n,a.animated&&a.toRect||s,p),_=p?"top":"left",$=isScrolledPast(a,"top","top")||isScrolledPast(dragEl,"top","top"),L=$?$.scrollTop:void 0;lastTarget!==a&&(F=s[_],pastFirstInvertThresh=!1,isCircumstantialInvert=!V&&o.invertSwap||N),x=_getSwapDirection(t,a,s,p,V?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,isCircumstantialInvert,lastTarget===a);var j;if(x!==0){var z=index$1(dragEl);do z-=x,j=parentEl.children[z];while(j&&(css(j,"display")==="none"||j===ghostEl))}if(x===0||j===a)return b(!1);lastTarget=a,lastDirection=x;var H=a.nextElementSibling,I=!1;I=x===1;var D=_onMove(rootEl,r,dragEl,n,a,s,t,I);if(D!==!1)return(D===1||D===-1)&&(I=D===1),_silent=!0,setTimeout(_unsilent,30),S(),I&&!H?r.appendChild(dragEl):a.parentNode.insertBefore(dragEl,I?H:a),$&&scrollBy($,0,L-$.scrollTop),parentEl=dragEl.parentNode,F!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(F-getRect(a)[_])),A(),b(!0)}if(r.contains(dragEl))return b(!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],u=c.options.onMove,m;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),u&&(m=u.call(c,l,i)),m}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,u=a?r.top:r.left,m=a?r.bottom:r.right,f=!1;if(!i){if(o&&targetMoveDistance<c*n){if(!pastFirstInvertThresh&&(lastDirection===1?l>u+c*s/2:l<m-c*s/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)f=!0;else if(lastDirection===1?l<u+targetMoveDistance:l>m-targetMoveDistance)return-lastDirection}else if(l>u+c*(1-n)/2&&l<m-c*(1-n)/2)return _getInsertDirection(t)}return f=f||i,f&&(l<u+c*s/2||l>m-c*s/2)?l>u+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,u;scrollRootEl!==r&&(scrollRootEl=r,clearAutoScrolls(),scrollEl=t.scroll,u=t.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(r,!0)));var m=0,f=scrollEl;do{var p=f,d=getRect(p),g=d.top,E=d.bottom,S=d.left,b=d.right,A=d.width,y=d.height,C=void 0,x=void 0,F=p.scrollWidth,N=p.scrollHeight,V=css(p),_=p.scrollLeft,$=p.scrollTop;p===l?(C=A<F&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),x=y<N&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(C=A<F&&(V.overflowX==="auto"||V.overflowX==="scroll"),x=y<N&&(V.overflowY==="auto"||V.overflowY==="scroll"));var L=C&&(Math.abs(b-n)<=i&&_+A<F)-(Math.abs(S-n)<=i&&!!_),j=x&&(Math.abs(E-s)<=i&&$+y<N)-(Math.abs(g-s)<=i&&!!$);if(!autoScrolls[m])for(var z=0;z<=m;z++)autoScrolls[z]||(autoScrolls[z]={});(autoScrolls[m].vx!=L||autoScrolls[m].vy!=j||autoScrolls[m].el!==p)&&(autoScrolls[m].el=p,autoScrolls[m].vx=L,autoScrolls[m].vy=j,clearInterval(autoScrolls[m].pid),(L!=0||j!=0)&&(c=!0,autoScrolls[m].pid=setInterval((function(){a&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var H=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*o:0,I=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*o:0;typeof u=="function"&&u.call(Sortable.dragged.parentNode[expando],I,H,e,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,I,H)}).bind({layer:m}),24))),m++}while(t.bubbleScroll&&f!==l&&(f=getParentAutoScrollElement(f,!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 u=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,m=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(m)&&(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,u=this.options;if(n&&n!==c){var m=lastSwapEl;s(n)!==!1?(toggleClass(n,u.swapClass,!0),lastSwapEl=n):lastSwapEl=null,m&&m!==lastSwapEl&&toggleClass(m,u.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 u=getRect(dragEl$1,!1,!0,!0);multiDragElements.forEach(function(f){f!==dragEl$1&&(setRect(f,u),o.appendChild(f))}),folding=!0}if(!n)if(folding||removeMultiDragElements(),multiDragElements.length>1){var m=clonesHidden;i._showClone(a),i.options.animation&&!clonesHidden&&m&&multiDragClones.forEach(function(f){i.addAnimationState({target:f,rect:clonesFromRect}),f.fromRect=clonesFromRect,f.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,u=c||this.sortable;if(a){var m=this.options,f=s.children;if(!dragStarted)if(m.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),toggleClass(dragEl$1,m.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 p=index$1(lastMultiDragSelect),d=index$1(dragEl$1);if(~p&&~d&&p!==d){var g,E;for(d>p?(E=p,g=d):(E=d,g=p+1);E<g;E++)~multiDragElements.indexOf(f[E])||(toggleClass(f[E],m.selectedClass,!0),multiDragElements.push(f[E]),dispatchEvent({sortable:i,rootEl:n,name:"select",targetEl:f[E],originalEvt:a}))}}else lastMultiDragSelect=dragEl$1;multiDragSortable=u}if(dragStarted&&this.isMultiDrag){if(folding=!1,(s[expando].options.sort||s!==n)&&multiDragElements.length>1){var S=getRect(dragEl$1),b=index$1(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&m.animation&&(dragEl$1.thisAnimationDuration=null),u.captureAnimationState(),!initialFolding&&(m.animation&&(dragEl$1.fromRect=S,multiDragElements.forEach(function(y){if(y.thisAnimationDuration=null,y!==dragEl$1){var C=folding?getRect(y):S;y.fromRect=C,u.addAnimationState({target:y,rect:C})}})),removeMultiDragElements(),multiDragElements.forEach(function(y){f[b]?s.insertBefore(y,f[b]):s.appendChild(y),b++}),l===index$1(dragEl$1))){var A=!1;multiDragElements.forEach(function(y){if(y.sortableIndex!==index$1(y)){A=!0;return}}),A&&o("update")}multiDragElements.forEach(function(y){unsetRect(y)}),u.animateAll()}multiDragSortable=u}(n===s||c&&c.lastPutMode!=="clone")&&multiDragClones.forEach(function(y){y.parentNode&&y.parentNode.removeChild(y)})}},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 u in o)i.d(c,u,(function(m){return o[m]}).bind(null,u));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,u){if(o(l),c===void 0)return l;switch(u){case 0:return function(){return l.call(c)};case 1:return function(m){return l.call(c,m)};case 2:return function(m,f){return l.call(c,m,f)};case 3:return function(m,f,p){return l.call(c,m,f,p)}}return function(){return l.apply(c,arguments)}}},"057f":function(n,s,i){var o=i("fc6a"),l=i("241c").f,c={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(f){try{return l(f)}catch(p){return u.slice()}};n.exports.f=function(p){return u&&c.call(p)=="[object Window]"?m(p):l(o(p))}},"06cf":function(n,s,i){var o=i("83ab"),l=i("d1e7"),c=i("5c6c"),u=i("fc6a"),m=i("c04e"),f=i("5135"),p=i("0cfb"),d=Object.getOwnPropertyDescriptor;s.f=o?d:function(E,S){if(E=u(E),S=m(S,!0),p)try{return d(E,S)}catch(b){}if(f(E,S))return c(!l.f.call(E,S),E[S])}},"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"),u=i("ae40"),m=c("reduce"),f=u("reduce",{1:0});o({target:"Array",proto:!0,forced:!m||!f},{reduce:function(d){return l(this,d,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,u){var m=c.exec;if(typeof m=="function"){var f=m.call(c,u);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(o(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,u)}},"159b":function(n,s,i){var o=i("da84"),l=i("fdbc"),c=i("17c2"),u=i("9112");for(var m in l){var f=o[m],p=f&&f.prototype;if(p&&p.forEach!==c)try{u(p,"forEach",c)}catch(d){p.forEach=c}}},"17c2":function(n,s,i){var o=i("b727").forEach,l=i("a640"),c=i("ae40"),u=l("forEach"),m=c("forEach");n.exports=!u||!m?function(p){return o(this,p,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 u=0,m={next:function(){return{done:!!u++}},return:function(){c=!0}};m[l]=function(){return this},Array.from(m,function(){throw 2})}catch(f){}n.exports=function(f,p){if(!p&&!c)return!1;var d=!1;try{var g={};g[l]=function(){return{next:function(){return{done:d=!0}}}},f(g)}catch(E){}return d}},"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"),u=l("species");n.exports=function(m){return c>=51||!o(function(){var f=[],p=f.constructor={};return p[u]=function(){return{foo:1}},f[m](Boolean).foo!==1})}},"23cb":function(n,s,i){var o=i("a691"),l=Math.max,c=Math.min;n.exports=function(u,m){var f=o(u);return f<0?l(f+m,0):c(f,m)}},"23e7":function(n,s,i){var o=i("da84"),l=i("06cf").f,c=i("9112"),u=i("6eeb"),m=i("ce4e"),f=i("e893"),p=i("94ca");n.exports=function(d,g){var E=d.target,S=d.global,b=d.stat,A,y,C,x,F,N;if(S?y=o:b?y=o[E]||m(E,{}):y=(o[E]||{}).prototype,y)for(C in g){if(F=g[C],d.noTargetGet?(N=l(y,C),x=N&&N.value):x=y[C],A=p(S?C:E+(b?".":"#")+C,d.forced),!A&&x!==void 0){if(typeof F==typeof x)continue;f(F,x)}(d.sham||x&&x.sham)&&c(F,"sham",!0),u(y,C,F,d)}}},"241c":function(n,s,i){var o=i("ca84"),l=i("7839"),c=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(m){return o(m,c)}},"25f0":function(n,s,i){var o=i("6eeb"),l=i("825a"),c=i("d039"),u=i("ad6d"),m="toString",f=RegExp.prototype,p=f[m],d=c(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),g=p.name!=m;(d||g)&&o(RegExp.prototype,m,function(){var S=l(this),b=String(S.source),A=S.flags,y=String(A===void 0&&S instanceof RegExp&&!("flags"in f)?u.call(S):A);return"/"+b+"/"+y},{unsafe:!0})},"2ca0":function(n,s,i){var o=i("23e7"),l=i("06cf").f,c=i("50c4"),u=i("5a34"),m=i("1d80"),f=i("ab13"),p=i("c430"),d="".startsWith,g=Math.min,E=f("startsWith"),S=!p&&!E&&!!function(){var b=l(String.prototype,"startsWith");return b&&!b.writable}();o({target:"String",proto:!0,forced:!S&&!E},{startsWith:function(A){var y=String(m(this));u(A);var C=c(g(arguments.length>1?arguments[1]:void 0,y.length)),x=String(A);return d?d.call(y,x,C):y.slice(C,C+x.length)===x}})},"2d00":function(n,s,i){var o=i("da84"),l=i("342f"),c=o.process,u=c&&c.versions,m=u&&u.v8,f,p;m?(f=m.split("."),p=f[0]+f[1]):l&&(f=l.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=l.match(/Chrome\/(\d+)/),f&&(p=f[1]))),n.exports=p&&+p},"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"),u=c("iterator");n.exports=function(m){if(m!=null)return m[u]||m["@@iterator"]||l[o(m)]}},"37e8":function(n,s,i){var o=i("83ab"),l=i("9bf2"),c=i("825a"),u=i("df75");n.exports=o?Object.defineProperties:function(f,p){c(f);for(var d=u(p),g=d.length,E=0,S;g>E;)l.f(f,S=d[E++],p[S]);return f}},"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"),u="String Iterator",m=l.set,f=l.getterFor(u);c(String,"String",function(p){m(this,{type:u,string:String(p),index:0})},function(){var d=f(this),g=d.string,E=d.index,S;return E>=g.length?{value:void 0,done:!0}:(S=o(g,E),d.index+=S.length,{value:S,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(u){return l(u)=="String"?c.call(u,""):Object(u)}:Object},"44d2":function(n,s,i){var o=i("b622"),l=i("7c73"),c=i("9bf2"),u=o("unscopables"),m=Array.prototype;m[u]==null&&c.f(m,u,{configurable:!0,value:l(null)}),n.exports=function(f){m[u][f]=!0}},"44e7":function(n,s,i){var o=i("861d"),l=i("c6b6"),c=i("b622"),u=c("match");n.exports=function(m){var f;return o(m)&&((f=m[u])!==void 0?!!f:l(m)=="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"),u=function(m){return function(f,p,d){var g=o(f),E=l(g.length),S=c(d,E),b;if(m&&p!=p){for(;E>S;)if(b=g[S++],b!=b)return!0}else for(;E>S;S++)if((m||S in g)&&g[S]===p)return m||S||0;return!m&&-1}};n.exports={includes:u(!0),indexOf:u(!1)}},"4de4":function(n,s,i){var o=i("23e7"),l=i("b727").filter,c=i("1dde"),u=i("ae40"),m=c("filter"),f=u("filter");o({target:"Array",proto:!0,forced:!m||!f},{filter:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,s,i){var o=i("0366"),l=i("7b0b"),c=i("9bdd"),u=i("e95a"),m=i("50c4"),f=i("8418"),p=i("35a1");n.exports=function(g){var E=l(g),S=typeof this=="function"?this:Array,b=arguments.length,A=b>1?arguments[1]:void 0,y=A!==void 0,C=p(E),x=0,F,N,V,_,$,L;if(y&&(A=o(A,b>2?arguments[2]:void 0,2)),C!=null&&!(S==Array&&u(C)))for(_=C.call(E),$=_.next,N=new S;!(V=$.call(_)).done;x++)L=y?c(_,A,[V.value,x],!0):V.value,f(N,x,L);else for(F=m(E.length),N=new S(F);F>x;x++)L=y?A(E[x],x):E[x],f(N,x,L);return N.length=x,N}},"4fad":function(n,s,i){var o=i("23e7"),l=i("6f53").entries;o({target:"Object",stat:!0},{entries:function(u){return l(u)}})},"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"),u=i("50c4"),m=i("a691"),f=i("1d80"),p=i("8aa5"),d=i("14c3"),g=Math.max,E=Math.min,S=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,A=/\$([$&'`]|\d\d?)/g,y=function(C){return C===void 0?C:String(C)};o("replace",2,function(C,x,F,N){var V=N.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,_=N.REPLACE_KEEPS_$0,$=V?"$":"$0";return[function(z,H){var I=f(this),D=z==null?void 0:z[C];return D!==void 0?D.call(z,I,H):x.call(String(I),z,H)},function(j,z){if(!V&&_||typeof z=="string"&&z.indexOf($)===-1){var H=F(x,j,this,z);if(H.done)return H.value}var I=l(j),D=String(this),T=typeof z=="function";T||(z=String(z));var P=I.global;if(P){var k=I.unicode;I.lastIndex=0}for(var R=[];;){var X=d(I,D);if(X===null||(R.push(X),!P))break;var Z=String(X[0]);Z===""&&(I.lastIndex=p(D,u(I.lastIndex),k))}for(var q="",ne=0,re=0;re<R.length;re++){X=R[re];for(var se=String(X[0]),ce=g(E(m(X.index),D.length),0),fe=[],he=1;he<X.length;he++)fe.push(y(X[he]));var ue=X.groups;if(T){var de=[se].concat(fe,ce,D);ue!==void 0&&de.push(ue);var oe=String(z.apply(void 0,de))}else oe=L(se,D,ce,fe,ue,z);ce>=ne&&(q+=D.slice(ne,ce)+oe,ne=ce+se.length)}return q+D.slice(ne)}];function L(j,z,H,I,D,T){var P=H+j.length,k=I.length,R=A;return D!==void 0&&(D=c(D),R=b),x.call(T,R,function(X,Z){var q;switch(Z.charAt(0)){case"$":return"$";case"&":return j;case"`":return z.slice(0,H);case"'":return z.slice(P);case"<":q=D[Z.slice(1,-1)];break;default:var ne=+Z;if(ne===0)return X;if(ne>k){var re=S(ne/10);return re===0?X:re<=k?I[re-1]===void 0?Z.charAt(1):I[re-1]+Z.charAt(1):X}q=I[ne-1]}return q===void 0?"":q})}})},5692:function(n,s,i){var o=i("c430"),l=i("c6cd");(n.exports=function(c,u){return l[c]||(l[c]=u!==void 0?u:{})})("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"),u=i("825a");n.exports=o("Reflect","ownKeys")||function(f){var p=l.f(u(f)),d=c.f;return d?p.concat(d(f)):p}},"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"),u=i("50c4"),m=i("1c0b"),f=i("65f0");o({target:"Array",proto:!0},{flatMap:function(d){var g=c(this),E=u(g.length),S;return m(d),S=f(g,0),S.length=l(S,g,g,E,0,1,d,arguments.length>1?arguments[1]:void 0),S}})},6547:function(n,s,i){var o=i("a691"),l=i("1d80"),c=function(u){return function(m,f){var p=String(l(m)),d=o(f),g=p.length,E,S;return d<0||d>=g?u?"":void 0:(E=p.charCodeAt(d),E<55296||E>56319||d+1===g||(S=p.charCodeAt(d+1))<56320||S>57343?u?p.charAt(d):E:u?p.slice(d,d+2):(E-55296<<10)+(S-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"),u=c("species");n.exports=function(m,f){var p;return l(m)&&(p=m.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:o(p)&&(p=p[u],p===null&&(p=void 0))),new(p===void 0?Array:p)(f===0?0:f)}},"69f3":function(n,s,i){var o=i("7f9a"),l=i("da84"),c=i("861d"),u=i("9112"),m=i("5135"),f=i("f772"),p=i("d012"),d=l.WeakMap,g,E,S,b=function(V){return S(V)?E(V):g(V,{})},A=function(V){return function(_){var $;if(!c(_)||($=E(_)).type!==V)throw TypeError("Incompatible receiver, "+V+" required");return $}};if(o){var y=new d,C=y.get,x=y.has,F=y.set;g=function(V,_){return F.call(y,V,_),_},E=function(V){return C.call(y,V)||{}},S=function(V){return x.call(y,V)}}else{var N=f("state");p[N]=!0,g=function(V,_){return u(V,N,_),_},E=function(V){return m(V,N)?V[N]:{}},S=function(V){return m(V,N)}}n.exports={set:g,get:E,has:S,enforce:b,getterFor:A}},"6eeb":function(n,s,i){var o=i("da84"),l=i("9112"),c=i("5135"),u=i("ce4e"),m=i("8925"),f=i("69f3"),p=f.get,d=f.enforce,g=String(String).split("String");(n.exports=function(E,S,b,A){var y=A?!!A.unsafe:!1,C=A?!!A.enumerable:!1,x=A?!!A.noTargetGet:!1;if(typeof b=="function"&&(typeof S=="string"&&!c(b,"name")&&l(b,"name",S),d(b).source=g.join(typeof S=="string"?S:"")),E===o){C?E[S]=b:u(S,b);return}else y?!x&&E[S]&&(C=!0):delete E[S];C?E[S]=b:l(E,S,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||m(this)})},"6f53":function(n,s,i){var o=i("83ab"),l=i("df75"),c=i("fc6a"),u=i("d1e7").f,m=function(f){return function(p){for(var d=c(p),g=l(d),E=g.length,S=0,b=[],A;E>S;)A=g[S++],(!o||u.call(d,A))&&b.push(f?[A,d[A]]:d[A]);return b}};n.exports={entries:m(!0),values:m(!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"),u=i("9bf2").f;n.exports=function(m){var f=o.Symbol||(o.Symbol={});l(f,m)||u(f,m,{value:c.f(m)})}},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"),u=i("d012"),m=i("1be4"),f=i("cc12"),p=i("f772"),d=">",g="<",E="prototype",S="script",b=p("IE_PROTO"),A=function(){},y=function(V){return g+S+d+V+g+"/"+S+d},C=function(V){V.write(y("")),V.close();var _=V.parentWindow.Object;return V=null,_},x=function(){var V=f("iframe"),_="java"+S+":",$;return V.style.display="none",m.appendChild(V),V.src=String(_),$=V.contentWindow.document,$.open(),$.write(y("document.F=Object")),$.close(),$.F},F,N=function(){try{F=document.domain&&new ActiveXObject("htmlfile")}catch(_){}N=F?C(F):x();for(var V=c.length;V--;)delete N[E][c[V]];return N()};u[b]=!0,n.exports=Object.create||function(_,$){var L;return _!==null?(A[E]=o(_),L=new A,A[E]=null,L[b]=_):L=N(),$===void 0?L:l(L,$)}},"7dd0":function(n,s,i){var o=i("23e7"),l=i("9ed3"),c=i("e163"),u=i("d2bb"),m=i("d44e"),f=i("9112"),p=i("6eeb"),d=i("b622"),g=i("c430"),E=i("3f8c"),S=i("ae93"),b=S.IteratorPrototype,A=S.BUGGY_SAFARI_ITERATORS,y=d("iterator"),C="keys",x="values",F="entries",N=function(){return this};n.exports=function(V,_,$,L,j,z,H){l($,_,L);var I=function(re){if(re===j&&R)return R;if(!A&&re in P)return P[re];switch(re){case C:return function(){return new $(this,re)};case x:return function(){return new $(this,re)};case F:return function(){return new $(this,re)}}return function(){return new $(this)}},D=_+" Iterator",T=!1,P=V.prototype,k=P[y]||P["@@iterator"]||j&&P[j],R=!A&&k||I(j),X=_=="Array"&&P.entries||k,Z,q,ne;if(X&&(Z=c(X.call(new V)),b!==Object.prototype&&Z.next&&(!g&&c(Z)!==b&&(u?u(Z,b):typeof Z[y]!="function"&&f(Z,y,N)),m(Z,D,!0,!0),g&&(E[D]=N))),j==x&&k&&k.name!==x&&(T=!0,R=function(){return k.call(this)}),(!g||H)&&P[y]!==R&&f(P,y,R),E[_]=R,j)if(q={values:I(x),keys:z?R:I(C),entries:I(F)},H)for(ne in q)(A||T||!(ne in P))&&p(P,ne,q[ne]);else o({target:_,proto:!0,forced:A||T},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(u,m,f){var p=o(m);p in u?l.f(u,p,c(0,f)):u[p]=f}},"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(u,m){l=[],o=m,c=typeof o=="function"?o.apply(s,l):o,c!==void 0&&(n.exports=c)})(typeof self<"u"?self:this,function(){function u(){var m=Object.getOwnPropertyDescriptor(document,"currentScript");if(!m&&"currentScript"in document&&document.currentScript||m&&m.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(F){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,d=f.exec(F.stack)||p.exec(F.stack),g=d&&d[1]||!1,E=d&&d[2]||!1,S=document.location.href.replace(document.location.hash,""),b,A,y,C=document.getElementsByTagName("script");g===S&&(b=document.documentElement.outerHTML,A=new RegExp("(?:[^\\n]+?\\n){0,"+(E-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),y=b.replace(A,"$1").trim());for(var x=0;x<C.length;x++)if(C[x].readyState==="interactive"||C[x].src===g||g===S&&C[x].innerHTML&&C[x].innerHTML.trim()===y)return C[x];return null}}return u})},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,u){return c+(u?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(u,m,f){return l.f(u,m,c(1,f))}:function(u,m,f){return u[m]=f,u}},9263:function(n,s,i){var o=i("ad6d"),l=i("9f7f"),c=RegExp.prototype.exec,u=String.prototype.replace,m=c,f=function(){var E=/a/,S=/b*/g;return c.call(E,"a"),c.call(S,"a"),E.lastIndex!==0||S.lastIndex!==0}(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,d=/()??/.exec("")[1]!==void 0,g=f||d||p;g&&(m=function(S){var b=this,A,y,C,x,F=p&&b.sticky,N=o.call(b),V=b.source,_=0,$=S;return F&&(N=N.replace("y",""),N.indexOf("g")===-1&&(N+="g"),$=String(S).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&S[b.lastIndex-1]!=="\n")&&(V="(?: "+V+")",$=" "+$,_++),y=new RegExp("^(?:"+V+")",N)),d&&(y=new RegExp("^"+V+"$(?!\\s)",N)),f&&(A=b.lastIndex),C=c.call(F?y:b,$),F?C?(C.input=C.input.slice(_),C[0]=C[0].slice(_),C.index=b.lastIndex,b.lastIndex+=C[0].length):b.lastIndex=0:f&&C&&(b.lastIndex=b.global?C.index+C[0].length:A),d&&C&&C.length>1&&u.call(C[0],y,function(){for(x=1;x<arguments.length-2;x++)arguments[x]===void 0&&(C[x]=void 0)}),C}),n.exports=m},"94ca":function(n,s,i){var o=i("d039"),l=/#|\.prototype\./,c=function(d,g){var E=m[u(d)];return E==p?!0:E==f?!1:typeof g=="function"?o(g):!!g},u=c.normalize=function(d){return String(d).replace(l,".").toLowerCase()},m=c.data={},f=c.NATIVE="N",p=c.POLYFILL="P";n.exports=c},"99af":function(n,s,i){var o=i("23e7"),l=i("d039"),c=i("e8b5"),u=i("861d"),m=i("7b0b"),f=i("50c4"),p=i("8418"),d=i("65f0"),g=i("1dde"),E=i("b622"),S=i("2d00"),b=E("isConcatSpreadable"),A=9007199254740991,y="Maximum allowed index exceeded",C=S>=51||!l(function(){var V=[];return V[b]=!1,V.concat()[0]!==V}),x=g("concat"),F=function(V){if(!u(V))return!1;var _=V[b];return _!==void 0?!!_:c(V)},N=!C||!x;o({target:"Array",proto:!0,forced:N},{concat:function(_){var $=m(this),L=d($,0),j=0,z,H,I,D,T;for(z=-1,I=arguments.length;z<I;z++)if(T=z===-1?$:arguments[z],F(T)){if(D=f(T.length),j+D>A)throw TypeError(y);for(H=0;H<D;H++,j++)H in T&&p(L,j,T[H])}else{if(j>=A)throw TypeError(y);p(L,j++,T)}return L.length=j,L}})},"9bdd":function(n,s,i){var o=i("825a");n.exports=function(l,c,u,m){try{return m?c(o(u)[0],u[1]):c(u)}catch(p){var f=l.return;throw f!==void 0&&o(f.call(l)),p}}},"9bf2":function(n,s,i){var o=i("83ab"),l=i("0cfb"),c=i("825a"),u=i("c04e"),m=Object.defineProperty;s.f=o?m:function(p,d,g){if(c(p),d=u(d,!0),c(g),l)try{return m(p,d,g)}catch(E){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(p[d]=g.value),p}},"9ed3":function(n,s,i){var o=i("ae93").IteratorPrototype,l=i("7c73"),c=i("5c6c"),u=i("d44e"),m=i("3f8c"),f=function(){return this};n.exports=function(p,d,g){var E=d+" Iterator";return p.prototype=l(o,{next:c(1,g)}),u(p,E,!1,!0),m[E]=f,p}},"9f7f":function(n,s,i){var o=i("d039");function l(c,u){return RegExp(c,u)}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"),u=function(m,f,p,d,g,E,S,b){for(var A=g,y=0,C=S?c(S,b,3):!1,x;y<d;){if(y in p){if(x=C?C(p[y],y,f):p[y],E>0&&o(x))A=u(m,f,x,l(x.length),A,E-1)-1;else{if(A>=9007199254740991)throw TypeError("Exceed the acceptable array length");m[A]=x}A++}y++}return A};n.exports=u},a352:function(n,s){n.exports=a},a434:function(n,s,i){var o=i("23e7"),l=i("23cb"),c=i("a691"),u=i("50c4"),m=i("7b0b"),f=i("65f0"),p=i("8418"),d=i("1dde"),g=i("ae40"),E=d("splice"),S=g("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,A=Math.min,y=9007199254740991,C="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!E||!S},{splice:function(F,N){var V=m(this),_=u(V.length),$=l(F,_),L=arguments.length,j,z,H,I,D,T;if(L===0?j=z=0:L===1?(j=0,z=_-$):(j=L-2,z=A(b(c(N),0),_-$)),_+j-z>y)throw TypeError(C);for(H=f(V,z),I=0;I<z;I++)D=$+I,D in V&&p(H,I,V[D]);if(H.length=z,j<z){for(I=$;I<_-z;I++)D=I+z,T=I+j,D in V?V[T]=V[D]:delete V[T];for(I=_;I>_-z+j;I--)delete V[I-1]}else if(j>z)for(I=_-z;I>$;I--)D=I+z-1,T=I+j-1,D in V?V[T]=V[D]:delete V[T];for(I=0;I<j;I++)V[I+$]=arguments[I+2];return V.length=_-z+j,H}})},a4d3:function(n,s,i){var o=i("23e7"),l=i("da84"),c=i("d066"),u=i("c430"),m=i("83ab"),f=i("4930"),p=i("fdbf"),d=i("d039"),g=i("5135"),E=i("e8b5"),S=i("861d"),b=i("825a"),A=i("7b0b"),y=i("fc6a"),C=i("c04e"),x=i("5c6c"),F=i("7c73"),N=i("df75"),V=i("241c"),_=i("057f"),$=i("7418"),L=i("06cf"),j=i("9bf2"),z=i("d1e7"),H=i("9112"),I=i("6eeb"),D=i("5692"),T=i("f772"),P=i("d012"),k=i("90e3"),R=i("b622"),X=i("e538"),Z=i("746f"),q=i("d44e"),ne=i("69f3"),re=i("b727").forEach,se=T("hidden"),ce="Symbol",fe="prototype",he=R("toPrimitive"),ue=ne.set,de=ne.getterFor(ce),oe=Object[fe],J=l.Symbol,Ce=c("JSON","stringify"),ve=L.f,ge=j.f,Ae=_.f,Ie=z.f,pe=D("symbols"),me=D("op-symbols"),Ee=D("string-to-symbol-registry"),Te=D("symbol-to-string-registry"),ye=D("wks"),Pe=l.QObject,Se=!Pe||!Pe[fe]||!Pe[fe].findChild,we=m&&d(function(){return F(ge({},"a",{get:function(){return ge(this,"a",{value:7}).a}})).a!=7})?function(te,Y,Q){var ae=ve(oe,Y);ae&&delete oe[Y],ge(te,Y,Q),ae&&te!==oe&&ge(oe,Y,ae)}:ge,Me=function(te,Y){var Q=pe[te]=F(J[fe]);return ue(Q,{type:ce,tag:te,description:Y}),m||(Q.description=Y),Q},G=p?function(te){return typeof te=="symbol"}:function(te){return Object(te)instanceof J},O=function(Y,Q,ae){Y===oe&&O(me,Q,ae),b(Y);var le=C(Q,!0);return b(ae),g(pe,le)?(ae.enumerable?(g(Y,se)&&Y[se][le]&&(Y[se][le]=!1),ae=F(ae,{enumerable:x(0,!1)})):(g(Y,se)||ge(Y,se,x(1,{})),Y[se][le]=!0),we(Y,le,ae)):ge(Y,le,ae)},U=function(Y,Q){b(Y);var ae=y(Q),le=N(ae).concat(ee(ae));return re(le,function(xe){(!m||B.call(ae,xe))&&O(Y,xe,ae[xe])}),Y},M=function(Y,Q){return Q===void 0?F(Y):U(F(Y),Q)},B=function(Y){var Q=C(Y,!0),ae=Ie.call(this,Q);return this===oe&&g(pe,Q)&&!g(me,Q)?!1:ae||!g(this,Q)||!g(pe,Q)||g(this,se)&&this[se][Q]?ae:!0},W=function(Y,Q){var ae=y(Y),le=C(Q,!0);if(!(ae===oe&&g(pe,le)&&!g(me,le))){var xe=ve(ae,le);return xe&&g(pe,le)&&!(g(ae,se)&&ae[se][le])&&(xe.enumerable=!0),xe}},K=function(Y){var Q=Ae(y(Y)),ae=[];return re(Q,function(le){!g(pe,le)&&!g(P,le)&&ae.push(le)}),ae},ee=function(Y){var Q=Y===oe,ae=Ae(Q?me:y(Y)),le=[];return re(ae,function(xe){g(pe,xe)&&(!Q||g(oe,xe))&&le.push(pe[xe])}),le};if(f||(J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor");var Y=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Q=k(Y),ae=function(le){this===oe&&ae.call(me,le),g(this,se)&&g(this[se],Q)&&(this[se][Q]=!1),we(this,Q,x(1,le))};return m&&Se&&we(oe,Q,{configurable:!0,set:ae}),Me(Q,Y)},I(J[fe],"toString",function(){return de(this).tag}),I(J,"withoutSetter",function(te){return Me(k(te),te)}),z.f=B,j.f=O,L.f=W,V.f=_.f=K,$.f=ee,X.f=function(te){return Me(R(te),te)},m&&(ge(J[fe],"description",{configurable:!0,get:function(){return de(this).description}}),u||I(oe,"propertyIsEnumerable",B,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:J}),re(N(ye),function(te){Z(te)}),o({target:ce,stat:!0,forced:!f},{for:function(te){var Y=String(te);if(g(Ee,Y))return Ee[Y];var Q=J(Y);return Ee[Y]=Q,Te[Q]=Y,Q},keyFor:function(Y){if(!G(Y))throw TypeError(Y+" is not a symbol");if(g(Te,Y))return Te[Y]},useSetter:function(){Se=!0},useSimple:function(){Se=!1}}),o({target:"Object",stat:!0,forced:!f,sham:!m},{create:M,defineProperty:O,defineProperties:U,getOwnPropertyDescriptor:W}),o({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:K,getOwnPropertySymbols:ee}),o({target:"Object",stat:!0,forced:d(function(){$.f(1)})},{getOwnPropertySymbols:function(Y){return $.f(A(Y))}}),Ce){var ie=!f||d(function(){var te=J();return Ce([te])!="[null]"||Ce({a:te})!="{}"||Ce(Object(te))!="{}"});o({target:"JSON",stat:!0,forced:ie},{stringify:function(Y,Q,ae){for(var le=[Y],xe=1,be;arguments.length>xe;)le.push(arguments[xe++]);if(be=Q,!(!S(Q)&&Y===void 0||G(Y)))return E(Q)||(Q=function(Fe,Ne){if(typeof be=="function"&&(Ne=be.call(this,Fe,Ne)),!G(Ne))return Ne}),le[1]=Q,Ce.apply(null,le)}})}J[fe][he]||H(J[fe],he,J[fe].valueOf),q(J,ce),P[se]=!0},a630:function(n,s,i){var o=i("23e7"),l=i("4df4"),c=i("1c7e"),u=!c(function(m){Array.from(m)});o({target:"Array",stat:!0,forced:u},{from:l})},a640:function(n,s,i){var o=i("d039");n.exports=function(l,c){var u=[][l];return!!u&&o(function(){u.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 u=/./;try{"/./"[c](u)}catch(m){try{return u[l]=!1,"/./"[c](u)}catch(f){}}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"),u=Object.defineProperty,m={},f=function(p){throw p};n.exports=function(p,d){if(c(m,p))return m[p];d||(d={});var g=[][p],E=c(d,"ACCESSORS")?d.ACCESSORS:!1,S=c(d,0)?d[0]:f,b=c(d,1)?d[1]:void 0;return m[p]=!!g&&!l(function(){if(E&&!o)return!0;var A={length:-1};E?u(A,1,{enumerable:!0,get:f}):A[1]=1,g.call(A,S,b)})}},ae93:function(n,s,i){var o=i("e163"),l=i("9112"),c=i("5135"),u=i("b622"),m=i("c430"),f=u("iterator"),p=!1,d=function(){return this},g,E,S;[].keys&&(S=[].keys(),"next"in S?(E=o(o(S)),E!==Object.prototype&&(g=E)):p=!0),g==null&&(g={}),!m&&!c(g,f)&&l(g,f,d),n.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:p}},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,u=c.toString,m=/^\s*function ([^ (]*)/,f="name";o&&!(f in c)&&l(c,f,{configurable:!0,get:function(){try{return u.call(this).match(m)[1]}catch(p){return""}}})},b622:function(n,s,i){var o=i("da84"),l=i("5692"),c=i("5135"),u=i("90e3"),m=i("4930"),f=i("fdbf"),p=l("wks"),d=o.Symbol,g=f?d:d&&d.withoutSetter||u;n.exports=function(E){return c(p,E)||(m&&c(d,E)?p[E]=d[E]:p[E]=g("Symbol."+E)),p[E]}},b64b:function(n,s,i){var o=i("23e7"),l=i("7b0b"),c=i("df75"),u=i("d039"),m=u(function(){c(1)});o({target:"Object",stat:!0,forced:m},{keys:function(p){return c(l(p))}})},b727:function(n,s,i){var o=i("0366"),l=i("44ad"),c=i("7b0b"),u=i("50c4"),m=i("65f0"),f=[].push,p=function(d){var g=d==1,E=d==2,S=d==3,b=d==4,A=d==6,y=d==5||A;return function(C,x,F,N){for(var V=c(C),_=l(V),$=o(x,F,3),L=u(_.length),j=0,z=N||m,H=g?z(C,L):E?z(C,0):void 0,I,D;L>j;j++)if((y||j in _)&&(I=_[j],D=$(I,j,V),d)){if(g)H[j]=D;else if(D)switch(d){case 3:return!0;case 5:return I;case 6:return j;case 2:f.call(H,I)}else if(b)return!1}return A?-1:S||b?b:H}};n.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(n,s,i){var o=i("861d");n.exports=function(l,c){if(!o(l))return l;var u,m;if(c&&typeof(u=l.toString)=="function"&&!o(m=u.call(l))||typeof(u=l.valueOf)=="function"&&!o(m=u.call(l))||!c&&typeof(u=l.toString)=="function"&&!o(m=u.call(l)))return m;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__",u=o[c]||l(c,{});n.exports=u},c740:function(n,s,i){var o=i("23e7"),l=i("b727").findIndex,c=i("44d2"),u=i("ae40"),m="findIndex",f=!0,p=u(m);m in[]&&Array(1)[m](function(){f=!1}),o({target:"Array",proto:!0,forced:f||!p},{findIndex:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}}),c(m)},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"),u=i("ae40"),m=[].indexOf,f=!!m&&1/[1].indexOf(1,-0)<0,p=c("indexOf"),d=u("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:f||!p||!d},{indexOf:function(E){return f?m.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,u=i("d012");n.exports=function(m,f){var p=l(m),d=0,g=[],E;for(E in p)!o(u,E)&&o(p,E)&&g.push(E);for(;f.length>d;)o(p,E=f[d++])&&(~c(g,E)||g.push(E));return g}},caad:function(n,s,i){var o=i("23e7"),l=i("4d64").includes,c=i("44d2"),u=i("ae40"),m=u("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!m},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(n,s,i){var o=i("da84"),l=i("861d"),c=o.document,u=l(c)&&l(c.createElement);n.exports=function(m){return u?c.createElement(m):{}}},ce4e:function(n,s,i){var o=i("da84"),l=i("9112");n.exports=function(c,u){try{l(o,c,u)}catch(m){o[c]=u}return u}},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(u){return typeof u=="function"?u:void 0};n.exports=function(u,m){return arguments.length<2?c(o[u])||c(l[u]):o[u]&&o[u][m]||l[u]&&l[u][m]}},d1e7:function(n,s,i){var o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!o.call({1:2},1);s.f=c?function(m){var f=l(this,m);return!!f&&f.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,u={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(u,[]),c=u instanceof Array}catch(f){}return function(p,d){return o(p),l(d),c?m.call(p,d):p.__proto__=d,p}}():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"),u=c("toStringTag");n.exports=function(m,f,p){m&&!l(m=p?m:m.prototype,u)&&o(m,u,{configurable:!0,value:f})}},d58f:function(n,s,i){var o=i("1c0b"),l=i("7b0b"),c=i("44ad"),u=i("50c4"),m=function(f){return function(p,d,g,E){o(d);var S=l(p),b=c(S),A=u(S.length),y=f?A-1:0,C=f?-1:1;if(g<2)for(;;){if(y in b){E=b[y],y+=C;break}if(y+=C,f?y<0:A<=y)throw TypeError("Reduce of empty array with no initial value")}for(;f?y>=0:A>y;y+=C)y in b&&(E=d(E,b[y],y,S));return E}};n.exports={left:m(!1),right:m(!0)}},d784:function(n,s,i){i("ac1f");var o=i("6eeb"),l=i("d039"),c=i("b622"),u=i("9263"),m=i("9112"),f=c("species"),p=!l(function(){var b=/./;return b.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(b,"$<a>")!=="7"}),d=function(){return"a".replace(/./,"$0")==="$0"}(),g=c("replace"),E=function(){return/./[g]?/./[g]("a","$0")==="":!1}(),S=!l(function(){var b=/(?:)/,A=b.exec;b.exec=function(){return A.apply(this,arguments)};var y="ab".split(b);return y.length!==2||y[0]!=="a"||y[1]!=="b"});n.exports=function(b,A,y,C){var x=c(b),F=!l(function(){var j={};return j[x]=function(){return 7},""[b](j)!=7}),N=F&&!l(function(){var j=!1,z=/a/;return b==="split"&&(z={},z.constructor={},z.constructor[f]=function(){return z},z.flags="",z[x]=/./[x]),z.exec=function(){return j=!0,null},z[x](""),!j});if(!F||!N||b==="replace"&&!(p&&d&&!E)||b==="split"&&!S){var V=/./[x],_=y(x,""[b],function(j,z,H,I,D){return z.exec===u?F&&!D?{done:!0,value:V.call(z,H,I)}:{done:!0,value:j.call(H,z,I)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:E}),$=_[0],L=_[1];o(String.prototype,b,$),o(RegExp.prototype,x,A==2?function(j,z){return L.call(j,this,z)}:function(j){return L.call(j,this)})}C&&m(RegExp.prototype[x],"sham",!0)}},d81d:function(n,s,i){var o=i("23e7"),l=i("b727").map,c=i("1dde"),u=i("ae40"),m=c("map"),f=u("map");o({target:"Array",proto:!0,forced:!m||!f},{map:function(d){return l(this,d,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"),u=i("fc6a"),m=i("06cf"),f=i("8418");o({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(d){for(var g=u(d),E=m.f,S=c(g),b={},A=0,y,C;S.length>A;)C=E(g,y=S[A++]),C!==void 0&&f(b,y,C);return b}})},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"),u=i("9112"),m=i("b622"),f=m("iterator"),p=m("toStringTag"),d=c.values;for(var g in l){var E=o[g],S=E&&E.prototype;if(S){if(S[f]!==d)try{u(S,f,d)}catch(A){S[f]=d}if(S[p]||u(S,p,g),l[g]){for(var b in c)if(S[b]!==c[b])try{u(S,b,c[b])}catch(A){S[b]=c[b]}}}}},df75:function(n,s,i){var o=i("ca84"),l=i("7839");n.exports=Object.keys||function(u){return o(u,l)}},e01a:function(n,s,i){var o=i("23e7"),l=i("83ab"),c=i("da84"),u=i("5135"),m=i("861d"),f=i("9bf2").f,p=i("e893"),d=c.Symbol;if(l&&typeof d=="function"&&(!("description"in d.prototype)||d().description!==void 0)){var g={},E=function(){var x=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),F=this instanceof E?new d(x):x===void 0?d():d(x);return x===""&&(g[F]=!0),F};p(E,d);var S=E.prototype=d.prototype;S.constructor=E;var b=S.toString,A=String(d("test"))=="Symbol(test)",y=/^Symbol\((.*)\)[^)]+$/;f(S,"description",{configurable:!0,get:function(){var x=m(this)?this.valueOf():this,F=b.call(x);if(u(g,x))return"";var N=A?F.slice(7,-1):F.replace(y,"$1");return N===""?void 0:N}}),o({global:!0,forced:!0},{Symbol:E})}},e163:function(n,s,i){var o=i("5135"),l=i("7b0b"),c=i("f772"),u=i("e177"),m=c("IE_PROTO"),f=Object.prototype;n.exports=u?Object.getPrototypeOf:function(p){return p=l(p),o(p,m)?p[m]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?f: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"),u=i("69f3"),m=i("7dd0"),f="Array Iterator",p=u.set,d=u.getterFor(f);n.exports=m(Array,"Array",function(g,E){p(this,{type:f,target:o(g),index:0,kind:E})},function(){var g=d(this),E=g.target,S=g.kind,b=g.index++;return!E||b>=E.length?(g.target=void 0,{value:void 0,done:!0}):S=="keys"?{value:b,done:!1}:S=="values"?{value:E[b],done:!1}:{value:[b,E[b]],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"),u=i("06cf").f,m=i("83ab"),f=l(function(){u(1)}),p=!m||f;o({target:"Object",stat:!0,forced:p,sham:!m},{getOwnPropertyDescriptor:function(g,E){return u(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"),u=i("9bf2");n.exports=function(m,f){for(var p=l(f),d=u.f,g=c.f,E=0;E<p.length;E++){var S=p[E];o(m,S)||d(m,S,g(f,S))}}},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"),u=Array.prototype;n.exports=function(m){return m!==void 0&&(l.Array===m||u[c]===m)}},f5df:function(n,s,i){var o=i("00ee"),l=i("c6b6"),c=i("b622"),u=c("toStringTag"),m=l(function(){return arguments}())=="Arguments",f=function(p,d){try{return p[d]}catch(g){}};n.exports=o?l:function(p){var d,g,E;return p===void 0?"Undefined":p===null?"Null":typeof(g=f(d=Object(p),u))=="string"?g:m?l(d):(E=l(d))=="Object"&&typeof d.callee=="function"?"Arguments":E}},f772:function(n,s,i){var o=i("5692"),l=i("90e3"),c=o("keys");n.exports=function(u){return c[u]||(c[u]=l(u))}},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 u(G,O,U){return O in G?Object.defineProperty(G,O,{value:U,enumerable:!0,configurable:!0,writable:!0}):G[O]=U,G}function m(G,O){var U=Object.keys(G);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(G);O&&(M=M.filter(function(B){return Object.getOwnPropertyDescriptor(G,B).enumerable})),U.push.apply(U,M)}return U}function f(G){for(var O=1;O<arguments.length;O++){var U=arguments[O]!=null?arguments[O]:{};O%2?m(Object(U),!0).forEach(function(M){u(G,M,U[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(U)):m(Object(U)).forEach(function(M){Object.defineProperty(G,M,Object.getOwnPropertyDescriptor(U,M))})}return G}function p(G){if(Array.isArray(G))return G}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function d(G,O){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(G)))){var U=[],M=!0,B=!1,W=void 0;try{for(var K=G[Symbol.iterator](),ee;!(M=(ee=K.next()).done)&&(U.push(ee.value),!(O&&U.length===O));M=!0);}catch(ie){B=!0,W=ie}finally{try{!M&&K.return!=null&&K.return()}finally{if(B)throw W}}return U}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function g(G,O){(O==null||O>G.length)&&(O=G.length);for(var U=0,M=new Array(O);U<O;U++)M[U]=G[U];return M}function E(G,O){if(G){if(typeof G=="string")return g(G,O);var U=Object.prototype.toString.call(G).slice(8,-1);if(U==="Object"&&G.constructor&&(U=G.constructor.name),U==="Map"||U==="Set")return Array.from(G);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return g(G,O)}}function S(){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 b(G,O){return p(G)||d(G,O)||E(G,O)||S()}function A(G){if(Array.isArray(G))return g(G)}function y(G){if(typeof Symbol<"u"&&Symbol.iterator in Object(G))return Array.from(G)}function C(){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 x(G){return A(G)||y(G)||E(G)||C()}var F=i("a352"),N=i.n(F);function V(G){G.parentElement!==null&&G.parentElement.removeChild(G)}function _(G,O,U){var M=U===0?G.children[0]:G.children[U-1].nextSibling;G.insertBefore(O,M)}var $=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function L(G){var O=Object.create(null);return function(M){var B=O[M];return B||(O[M]=G(M))}}var j=/-(\w)/g,z=L(function(G){return G.replace(j,function(O,U){return U.toUpperCase()})});i("5db7"),i("73d9");var H=["Start","Add","Remove","Update","End"],I=["Choose","Unchoose","Sort","Filter","Clone"],D=["Move"],T=[D,H,I].flatMap(function(G){return G}).map(function(G){return"on".concat(G)}),P={manage:D,manageAndEmit:H,emit:I};function k(G){return T.indexOf(G)!==-1}i("caad"),i("2ca0");var R=["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 X(G){return R.includes(G)}function Z(G){return["transition-group","TransitionGroup"].includes(G)}function q(G){return["id","class","role","style"].includes(G)||G.startsWith("data-")||G.startsWith("aria-")||G.startsWith("on")}function ne(G){return G.reduce(function(O,U){var M=b(U,2),B=M[0],W=M[1];return O[B]=W,O},{})}function re(G){var O=G.$attrs,U=G.componentData,M=U===void 0?{}:U,B=ne(Object.entries(O).filter(function(W){var K=b(W,2),ee=K[0];return K[1],q(ee)}));return f(f({},B),M)}function se(G){var O=G.$attrs,U=G.callBackBuilder,M=ne(ce(O));Object.entries(U).forEach(function(W){var K=b(W,2),ee=K[0],ie=K[1];P[ee].forEach(function(te){M["on".concat(te)]=ie(te)})});var B="[data-draggable]".concat(M.draggable||"");return f(f({},M),{},{draggable:B})}function ce(G){return Object.entries(G).filter(function(O){var U=b(O,2),M=U[0];return U[1],!q(M)}).map(function(O){var U=b(O,2),M=U[0],B=U[1];return[z(M),B]}).filter(function(O){var U=b(O,2),M=U[0];return U[1],!k(M)})}i("c740");function fe(G,O){if(!(G instanceof O))throw new TypeError("Cannot call a class as a function")}function he(G,O){for(var U=0;U<O.length;U++){var M=O[U];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(G,M.key,M)}}function ue(G,O,U){return O&&he(G.prototype,O),U&&he(G,U),G}var de=function(O){var U=O.el;return U},oe=function(O,U){return O.__draggable_context=U},J=function(O){return O.__draggable_context},Ce=function(){function G(O){var U=O.nodes,M=U.header,B=U.default,W=U.footer,K=O.root,ee=O.realList;fe(this,G),this.defaultNodes=B,this.children=[].concat(x(M),x(B),x(W)),this.externalComponent=K.externalComponent,this.rootTransition=K.transition,this.tag=K.tag,this.realList=ee}return ue(G,[{key:"render",value:function(U,M){var B=this.tag,W=this.children,K=this._isRootComponent,ee=K?{default:function(){return W}}:W;return U(B,M,ee)}},{key:"updated",value:function(){var U=this.defaultNodes,M=this.realList;U.forEach(function(B,W){oe(de(B),{element:M[W],index:W})})}},{key:"getUnderlyingVm",value:function(U){return J(U)}},{key:"getVmIndexFromDomIndex",value:function(U,M){var B=this.defaultNodes,W=B.length,K=M.children,ee=K.item(U);if(ee===null)return W;var ie=J(ee);if(ie)return ie.index;if(W===0)return 0;var te=de(B[0]),Y=x(K).findIndex(function(Q){return Q===te});return U<Y?0:W}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),G}(),ve=i("8bbf");function ge(G,O){var U=G[O];return U?U():[]}function Ae(G){var O=G.$slots,U=G.realList,M=G.getKey,B=U||[],W=["header","footer"].map(function(Q){return ge(O,Q)}),K=b(W,2),ee=K[0],ie=K[1],te=O.item;if(!te)throw new Error("draggable element must have an item slot");var Y=B.flatMap(function(Q,ae){return te({element:Q,index:ae}).map(function(le){return le.key=M(Q),le.props=f(f({},le.props||{}),{},{"data-draggable":!0}),le})});if(Y.length!==B.length)throw new Error("Item slot must have only one child");return{header:ee,footer:ie,default:Y}}function Ie(G){var O=Z(G),U=!X(G)&&!O;return{transition:O,externalComponent:U,tag:U?Object(ve.resolveComponent)(G):O?ve.TransitionGroup:G}}function pe(G){var O=G.$slots,U=G.tag,M=G.realList,B=G.getKey,W=Ae({$slots:O,realList:M,getKey:B}),K=Ie(U);return new Ce({nodes:W,root:K,realList:M})}function me(G,O){var U=this;Object(ve.nextTick)(function(){return U.$emit(G.toLowerCase(),O)})}function Ee(G){var O=this;return function(U,M){if(O.realList!==null)return O["onDrag".concat(G)](U,M)}}function Te(G){var O=this,U=Ee.call(this,G);return function(M,B){U.call(O,M,B),me.call(O,G,M)}}var ye=null,Pe={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(O){return O}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Se=["update:modelValue","change"].concat(x([].concat(x(P.manageAndEmit),x(P.emit)).map(function(G){return G.toLowerCase()}))),we=Object(ve.defineComponent)({name:"draggable",inheritAttrs:!1,props:Pe,emits:Se,data:function(){return{error:!1}},render:function(){try{this.error=!1;var O=this.$slots,U=this.$attrs,M=this.tag,B=this.componentData,W=this.realList,K=this.getKey,ee=pe({$slots:O,tag:M,realList:W,getKey:K});this.componentStructure=ee;var ie=re({$attrs:U,componentData:B});return ee.render(ve.h,ie)}catch(te){return this.error=!0,Object(ve.h)("pre",{style:{color:"red"}},te.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&$.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var O=this;if(!this.error){var U=this.$attrs,M=this.$el,B=this.componentStructure;B.updated();var W=se({$attrs:U,callBackBuilder:{manageAndEmit:function(ie){return Te.call(O,ie)},emit:function(ie){return me.bind(O,ie)},manage:function(ie){return Ee.call(O,ie)}}}),K=M.nodeType===1?M:M.parentElement;this._sortable=new N.a(K,W),this.targetDomElement=K,K.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var O=this.list;return O||this.modelValue},getKey:function(){var O=this.itemKey;return typeof O=="function"?O:function(U){return U[O]}}},watch:{$attrs:{handler:function(O){var U=this._sortable;U&&ce(O).forEach(function(M){var B=b(M,2),W=B[0],K=B[1];U.option(W,K)})},deep:!0}},methods:{getUnderlyingVm:function(O){return this.componentStructure.getUnderlyingVm(O)||null},getUnderlyingPotencialDraggableComponent:function(O){return O.__draggable_component__},emitChanges:function(O){var U=this;Object(ve.nextTick)(function(){return U.$emit("change",O)})},alterList:function(O){if(this.list){O(this.list);return}var U=x(this.modelValue);O(U),this.$emit("update:modelValue",U)},spliceList:function(){var O=arguments,U=function(B){return B.splice.apply(B,x(O))};this.alterList(U)},updatePosition:function(O,U){var M=function(W){return W.splice(U,0,W.splice(O,1)[0])};this.alterList(M)},getRelatedContextFromMoveEvent:function(O){var U=O.to,M=O.related,B=this.getUnderlyingPotencialDraggableComponent(U);if(!B)return{component:B};var W=B.realList,K={list:W,component:B};if(U!==M&&W){var ee=B.getUnderlyingVm(M)||{};return f(f({},ee),K)}return K},getVmIndexFromDomIndex:function(O){return this.componentStructure.getVmIndexFromDomIndex(O,this.targetDomElement)},onDragStart:function(O){this.context=this.getUnderlyingVm(O.item),O.item._underlying_vm_=this.clone(this.context.element),ye=O.item},onDragAdd:function(O){var U=O.item._underlying_vm_;if(U!==void 0){V(O.item);var M=this.getVmIndexFromDomIndex(O.newIndex);this.spliceList(M,0,U);var B={element:U,newIndex:M};this.emitChanges({added:B})}},onDragRemove:function(O){if(_(this.$el,O.item,O.oldIndex),O.pullMode==="clone"){V(O.clone);return}var U=this.context,M=U.index,B=U.element;this.spliceList(M,1);var W={element:B,oldIndex:M};this.emitChanges({removed:W})},onDragUpdate:function(O){V(O.item),_(O.from,O.item,O.oldIndex);var U=this.context.index,M=this.getVmIndexFromDomIndex(O.newIndex);this.updatePosition(U,M);var B={element:this.context.element,oldIndex:U,newIndex:M};this.emitChanges({moved:B})},computeFutureIndex:function(O,U){if(!O.element)return 0;var M=x(U.to.children).filter(function(ee){return ee.style.display!=="none"}),B=M.indexOf(U.related),W=O.component.getVmIndexFromDomIndex(B),K=M.indexOf(ye)!==-1;return K||!U.willInsertAfter?W:W+1},onDragMove:function(O,U){var M=this.move,B=this.realList;if(!M||!B)return!0;var W=this.getRelatedContextFromMoveEvent(O),K=this.computeFutureIndex(W,O),ee=f(f({},this.context),{},{futureIndex:K}),ie=f(f({},O),{},{relatedContext:W,draggedContext:ee});return M(ie,U)},onDragEnd:function(){ye=null}}}),Me=we;s.default=Me},fb6a:function(n,s,i){var o=i("23e7"),l=i("861d"),c=i("e8b5"),u=i("23cb"),m=i("50c4"),f=i("fc6a"),p=i("8418"),d=i("b622"),g=i("1dde"),E=i("ae40"),S=g("slice"),b=E("slice",{ACCESSORS:!0,0:0,1:2}),A=d("species"),y=[].slice,C=Math.max;o({target:"Array",proto:!0,forced:!S||!b},{slice:function(F,N){var V=f(this),_=m(V.length),$=u(F,_),L=u(N===void 0?_:N,_),j,z,H;if(c(V)&&(j=V.constructor,typeof j=="function"&&(j===Array||c(j.prototype))?j=void 0:l(j)&&(j=j[A],j===null&&(j=void 0)),j===Array||j===void 0))return y.call(V,$,L);for(z=new(j===void 0?Array:j)(C(L-$,0)),H=0;$<L;$++,H++)$ in V&&p(z,H,V[$]);return z.length=H,z}})},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_1x76e_1",studentListGroup="_studentListGroup_1x76e_4",selectStudentGroup="_selectStudentGroup_1x76e_5",searchSection="_searchSection_1x76e_11",searchSpace="_searchSpace_1x76e_14",studentSection="_studentSection_1x76e_21",checkboxAll="_checkboxAll_1x76e_24",nums="_nums_1x76e_34",student="_student_1x76e_4",loadingSection="_loadingSection_1x76e_43",studentItem="_studentItem_1x76e_46",studentInfo="_studentInfo_1x76e_58",studentImg="_studentImg_1x76e_63",studentValue="_studentValue_1x76e_69",userInfo="_userInfo_1x76e_72",name="_name_1x76e_76",iconMember="_iconMember_1x76e_87",className="_className_1x76e_95",phone="_phone_1x76e_106",selectCount="_selectCount_1x76e_112",hide="_hide_1x76e_141",iconClose="_iconClose_1x76e_144",btnGroup="_btnGroup_1x76e_167",styles$6={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||"",subjectId:"",keyword:""},pagination:{page:1,rows:20,pageTotal:0},tableList:[],checkboxIds:[],selectStudents:[],selectKeyword:"",popSelectYearList:[]}),n=async()=>{try{const{data:f}=await getGradeYearList(),p=f||[];p.forEach(d=>{d.name=d.name+"学年"}),a.popSelectYearList=p||[],p.length>0&&!a.searchFrom.gradeYear&&(a.searchFrom.gradeYear=p[0].id)}catch(f){}},s=async()=>{try{a.pagination.page===1&&(a.loading=!0,a.tableList=[]);const{data:f}=await getStudentList({...a.searchFrom,...a.pagination});a.loading=!1;const p=f.rows||[];a.tableList.push(...p),a.finshed=f.pages<=f.current,c()}catch(f){a.loading=!1}},i=()=>{a.pagination.page=1,s()},o=computed(()=>{let f=!0;return a.selectStudents.forEach(p=>{p.hide||(f=!1)}),f}),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 f=0;a.tableList.forEach(p=>{a.checkboxIds.includes(p.id)&&(f++,a.selectStudents.findIndex(g=>g.id===p.id)===-1&&a.selectStudents.push(p))}),f>=a.tableList.length?(a.checkAllStatus=!0,a.indeterminate=!1):(a.checkAllStatus=!1,a.indeterminate=!0)},u=f=>{const p=a.checkboxIds.findIndex(d=>d===f.id);if(p!==-1){a.checkboxIds.splice(p,1);const d=a.selectStudents.findIndex(g=>g.id===f.id);d!==-1&&a.selectStudents.splice(d,1),c()}},m=()=>{const f=[];a.selectStudents.forEach(p=>{f.push({id:p.id,name:p.nickname,avatar:p.avatar})}),t("confirm",f)};return onMounted(async()=>{var f;a.checkboxIds=e.selectIds||[],a.loading=!0,await r.getSubjects(),await n(),await s(),a.selectStudents=(f=e.studentList)==null?void 0:f.map(p=>({...p,nickname:p.name}))}),()=>{let f;return createVNode("div",{class:styles$6.assignStudent},[createVNode("div",{class:styles$6.studentListGroup},[createVNode("div",{class:styles$6.searchSection},[createVNode("div",{class:styles$6.searchSpace},[createVNode(NSelect,{placeholder:"全部班级",disabled:!!e.classGroupId,value:a.searchFrom.classGroupId,"onUpdate:value":[p=>a.searchFrom.classGroupId=p,()=>i()],options:[{label:"全部班级",value:""},...e.classList]},null),createVNode(NSelect,{options:[{label:"全部声部",value:""},...r.getSubjectList],placeholder:"全部声部",value:a.searchFrom.subjectId,"onUpdate:value":[p=>a.searchFrom.subjectId=p,()=>i()]},null)]),createVNode(SearchInput,mergeProps({placeholder:"请输入学生姓名/手机号"},{class:styles$6.searchInput,searchWord:a.searchFrom.keyword,onChangeValue:p=>{a.searchFrom.keyword=p},onClear:()=>{a.searchFrom.keyword="",i()},onKeyup:p=>{p.code==="Enter"&&i()}}),null)]),createVNode("div",{class:styles$6.studentSection},[createVNode("div",{class:styles$6.checkboxAll},[createVNode(NCheckbox,{checked:a.checkAllStatus,"onUpdate:checked":[p=>a.checkAllStatus=p,p=>{if(p){const d=[];a.tableList.forEach(g=>{d.push(g.id)}),a.checkboxIds=d}else a.checkboxIds=[],a.selectStudents=[],a.indeterminate=!1;c()}],indeterminate:a.indeterminate},null),createVNode("p",null,[createTextVNode("全选 "),createVNode("span",{class:styles$6.nums},[createTextVNode("("),a.tableList.length,createTextVNode(")")])," ",createTextVNode(":")])])]),createVNode(NScrollbar,{class:styles$6.student,onScroll:p=>{var S,b,A;const d=(S=p.target)==null?void 0:S.clientHeight,g=(b=p.target)==null?void 0:b.scrollTop,E=(A=p.target)==null?void 0:A.scrollHeight;d+g+20>=E&&!a.finshed&&!a.loading&&l()}},{default:()=>[createVNode(NSpin,{show:a.loading,class:styles$6.loadingSection},{default:()=>[createVNode(NCheckboxGroup,{value:a.checkboxIds,"onUpdate:value":[p=>a.checkboxIds=p,()=>{a.selectStudents=[],c()}]},_isSlot$1(f=a.tableList.map(p=>createVNode(NCheckbox,{value:p.id,class:[styles$6.studentItem]},{default:()=>[createVNode("div",{class:styles$6.studentInfo},[createVNode(NAvatar,{src:p.avatar||defultHeade,class:styles$6.studentImg},null),createVNode("div",{class:styles$6.studentValue},[createVNode("div",{class:styles$6.userInfo},[createVNode("span",{class:styles$6.name},[p.nickname]),p.membership&&createVNode("i",{class:styles$6.iconMember},null),p.classGroupName&&createVNode("span",{class:styles$6.className},[p.classGroupName])]),createVNode("div",{class:styles$6.phone},[p.phone])])])]})))?f:{default:()=>[f]}),a.tableList.length<=0&&!a.loading&&createVNode(TheEmpty,null,null)]})]})]),createVNode("div",{class:styles$6.selectStudentGroup},[createVNode("div",{class:styles$6.selectCount},[createTextVNode("当前选中 "),createVNode("span",null,[createTextVNode("("),a.selectStudents.length,createTextVNode(") ")]),createTextVNode(":")]),createVNode("div",{class:styles$6.searchSection},[createVNode(SearchInput,mergeProps({placeholder:"请输入学生姓名"},{class:styles$6.searchInput,searchWord:a.selectKeyword,onChangeValue:p=>{a.selectKeyword=p,a.selectStudents.forEach(d=>{var g;((g=d.nickname)==null?void 0:g.indexOf(p))===-1?d.hide=!0:d.hide=!1})}}),null)]),createVNode(NScrollbar,{class:styles$6.student},{default:()=>[a.selectStudents.map(p=>createVNode("div",{class:[styles$6.studentItem,p.hide&&styles$6.hide]},[createVNode("div",{class:styles$6.studentInfo},[createVNode(NAvatar,{src:p.avatar||defultHeade,class:styles$6.studentImg},null),createVNode("span",{class:styles$6.name},[p.nickname])]),createVNode("i",{class:styles$6.iconClose,onClick:()=>u(p)},null)])),o.value&&createVNode(TheEmpty,null,null)]}),createVNode(NSpace,{justify:"end",class:styles$6.btnGroup},{default:()=>[createVNode(NButton,{type:"default",onClick:()=>t("close")},{default:()=>[createTextVNode("取消")]}),createVNode(NButton,{type:"primary",onClick:m},{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"}},emits:["close","confirm"],setup(e,{emit:t}){const r=useMessage(),a=usePrepareStore(),n=reactive({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=async()=>{try{const c=e.classGroupId||a.getClassGroupId,{data:u}=await classGroupList({upgradeFlag:!0}),m=u||[],f=[];m.forEach(p=>{const d=[];p.classGroupList.forEach(g=>{d.push({label:g.currentClass+"班",value:g.id,lastStudy:g.lastStudy,preStudentNum:g.preStudentNum}),g.id===c&&(n.currentGradeNum=g.currentGradeNum,n.classGroupId=[g.id])}),f.push({label:gradeToCN[p.currentGradeNum],value:p.currentGradeNum,childrens:d})}),n.gradeList=f,n.currentGradeNum&&o()}catch(c){}},o=async()=>{try{n.gradeList.forEach(c=>{c.value===n.currentGradeNum&&(n.classList=c.childrens)})}catch(c){}},l=async()=>{var c;(c=s.value)==null||c.validate(async u=>{if(!u){n.uploading=!0;try{const m=e.item.lessonPreTrainingDetails||[],f=[];m.forEach(d=>{f.push({trainingType:d.trainingType,musicId:d.musicId,trainingConfigJsonObject:d.trainingConfigJson})});const p={name:n.title,homeworkObj:n.homeworkObj,homeworkType:n.homeworkType,lessonTrainingDetails:f,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"){p.classGroupId="";const d=[];n.studentList.forEach(g=>{d.push(g.id)}),p.studentIds=d.join(",")}await lessonTrainingAdd(p),r.success("布置成功"),t("close"),t("confirm")}catch(m){}n.uploading=!1}})};return onMounted(async()=>{await i()}),()=>createVNode("div",{class:styles$7.assignHomeworkContainer},[createVNode(NForm,{ref:s,model:n,labelAlign:"right",labelWidth:"auto",labelPlacement:"left"},{default:()=>[createVNode(NFormItem,{label:"布置方式",path:"homeworkObj",rule:[{required:!0,message:"请选择布置方式"}]},{default:()=>[createVNode(NSpace,null,{default:()=>[createVNode(NButton,{secondary:!0,class:[styles$7.switch,n.homeworkObj==="CLASS"?styles$7.active:""],onClick:()=>n.homeworkObj="CLASS"},{default:()=>[createTextVNode("按班级布置")]}),createVNode(NButton,{secondary:!0,class:[styles$7.switch,n.homeworkObj==="PERSON"?styles$7.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":c=>n.title=c,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":[c=>n.currentGradeNum=c,()=>{n.classGroupId=null,o()}],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":c=>n.classGroupId=c,placeholder:"请选择班级",clearable:!0,multiple:!0},null)]}):createVNode(NFormItem,{label:"学生",path:"studentList",rule:[{required:!0,message:"请选择学生",trigger:"change",type:"array"}],class:styles$7.studentSection},{default:()=>[createVNode("span",{class:[styles$7.selectStudentBtn,!n.currentGradeNum&&styles$7.disabled],onClick:()=>{if(!n.currentGradeNum)return;const c=[];n.studentList.forEach(u=>{c.push(u.id)}),n.selectIds=c,n.workVisiable=!0}},[createTextVNode("选择学生")]),n.studentList.length>0&&createVNode(NScrollbar,{class:styles$7.studentList},{default:()=>[createVNode("span",{class:styles$7.firstName},[createTextVNode("当前选中("),n.studentList.length||0,createTextVNode("):")]),n.studentList.map((c,u)=>createVNode("span",{class:styles$7.studentItem},[c.name," ",createVNode("i",{class:styles$7.iconDelete,onClick:()=>{n.studentList.splice(u,1)}},null)]))]})]}),createVNode(NFormItem,{label:"截止时间",path:"expireDate",rule:[{required:!0,message:"请选择截止时间",trigger:"change"}]},{default:()=>[createVNode(NDatePicker,{"formatted-value":n.expireDate,"onUpdate:formatted-value":c=>n.expireDate=c,type:"datetime",clearable:!0,format:"yyyy-MM-dd HH:mm",style:{width:"100%"},isDateDisabled:c=>c<n.currentTime},null)]}),createVNode(NSpace,{class:styles$7.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:l},{default:()=>[createTextVNode("确认布置")]})]})]}),createVNode(NModal,{show:n.workVisiable,"onUpdate:show":c=>n.workVisiable=c,preset:"card",showIcon:!1,class:["modalTitle background"],title:"选择学生",style:{width:"640px"},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:c=>{n.studentList=c||[],n.workVisiable=!1}},null)]})])}}),searchGroup$1="_searchGroup_5ue74_1",searchSelect$1="_searchSelect_5ue74_4",inputSearch$1="_inputSearch_5ue74_18",searchBtn$1="_searchBtn_5ue74_22",btnType$1="_btnType_5ue74_28",styles$5={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=reactive({name:"",musicSheetCategoriesId:null}),n=()=>{t("search",a)},s=useThrottleFn(()=>n(),500);return onMounted(async()=>{await r.getMusicSheetCategory(),await r.getSubjects()}),()=>createVNode(Fragment,null,[createVNode("div",{class:styles$5.searchGroup},[e.type!=="myMusic"&&createVNode("div",{class:styles$5.searchSelect},[createVNode(NSelect,{placeholder:"全部教材",options:[{name:"全部教材",id:null},...r.getMusicCategories],clearable:!0,labelField:"name",valueField:"id",value:a.musicSheetCategoriesId,"onUpdate:value":[i=>a.musicSheetCategoriesId=i,()=>{n()}]},null)]),createVNode(NInput,{type:"text",placeholder:"请输入搜索关键词",clearable:!0,value:a.name,"onUpdate:value":i=>a.name=i,class:styles$5.inputSearch,onKeyup:i=>{i.code==="Enter"&&s()},onClear:()=>{a.name="",s()}},{prefix:()=>createVNode("span",{class:"icon-search-input",onClick:()=>s()},null)})])])}}),listContainer$1="_listContainer_1jhb0_1",listNoMusic$1="_listNoMusic_1jhb0_5",listSection$1="_listSection_1jhb0_8",emptySection$1="_emptySection_1jhb0_14",list$1="_list_1jhb0_1",trainEditModal$1="_trainEditModal_1jhb0_28",dragbom$1="_dragbom_1jhb0_31",styles$4={listContainer:listContainer$1,listNoMusic:listNoMusic$1,listSection:listSection$1,emptySection:emptySection$1,list:list$1,trainEditModal:trainEditModal$1,dragbom:dragbom$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:"",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:u}=await materialQueryPage({...r.searchGroup,...r.pagination});r.loading=!1;const m=u.rows||[],f=[];m.forEach(p=>{const d=t.getTrainList.findIndex(g=>g.musicId===p.id);f.push({id:p.id,coverImg:p.coverImg||p.musicSvg,type:"MUSIC",title:p.name,isCollect:!!p.favoriteFlag,isSelected:p.sourceFrom==="PLATFORM",content:p.id,xmlFileUrl:p.xmlFileUrl})}),r.tableList.push(...f),r.finshed=u.pages<=u.current}catch(u){r.loading=!1}},n=async u=>{r.pagination.page=1,r.tableList=[],r.searchGroup=Object.assign(r.searchGroup,u),a()};watch(()=>t.getSubjectId,()=>{n(r.searchGroup)});const s=useThrottleFn(()=>{r.pagination.page=r.pagination.page+1,a()},500),i=async u=>{var p;let m="init",f=null;try{const d=await request$1.get(u.xmlFileUrl,{mode:"cors"});f=(p=new DOMParser().parseFromString(d,"text/xml").getElementsByTagName("part")[0])==null?void 0:p.getElementsByTagName("measure"),m="success"}catch(d){m="error"}m=="success"?u.practiceChapterMax=f.length:u.practiceChapterMax=0,u.coursewareKnowledgeDetailId=t.getSelectKey,u.subjectId=t.getSubjectId,r.editItem=u,r.editStatus=!0},o=async u=>{try{await favorite({materialId:u.id,favoriteFlag:u.isCollect?0:1,type:u.type}),u.isCollect=!u.isCollect}catch(m){}};onMounted(()=>{a(),eventGlobal.on("onTrainDragItem",(u,m)=>{i(u)})});let l,c;if(e.from==="class"){const u=useUserStore();c="workSetingBoxClass_drag",l=useDrag(["".concat(c,">.n-card-header"),"".concat(c," .bom_drag")],c,toRef(r,"editStatus"),u.info.id)}return()=>createVNode("div",null,[createVNode(ResourceSearchGroup$1,{type:e.type,onSearch:u=>n(u)},null),createVNode(NScrollbar,{class:[styles$4.listContainer,e.type==="myMusic"?styles$4.listNoMusic:""],onScroll:u=>{var d,g,E;const m=(d=u.target)==null?void 0:d.clientHeight,f=(g=u.target)==null?void 0:g.scrollTop,p=(E=u.target)==null?void 0:E.scrollHeight;m+f+20>=p&&!r.finshed&&!r.loading&&s()}},{default:()=>[createVNode(NSpin,{show:r.loading,size:"small"},{default:()=>[createVNode("div",{class:[styles$4.listSection,!r.loading&&r.tableList.length<=0?styles$4.emptySection:""]},[r.tableList.length>0&&createVNode("div",{class:styles$4.list},[r.tableList.map(u=>createVNode(CardType,{isShowAdd:!0,item:u,draggable:!0,isShowCollect:!0,disabledMouseHover:!1,onClick:()=>{u.type!=="IMG"&&(r.show=!0,r.item=u)},onAdd:m=>i(m),onCollect:m=>o(m)},null))]),!r.loading&&r.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{from:e.from,show:r.show,"onUpdate:show":u=>r.show=u,item:r.item},null),createVNode(NModal,{show:r.editStatus,"onUpdate:show":u=>r.editStatus=u,style:l.styleDrag.value,class:["modalTitle background",styles$4.trainEditModal,c],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:r.editItem,type:"homework",onClose:()=>r.editStatus=!1,onConfirm:u=>{const m=typeFormat(u.trainingType,u.trainingConfigJson),f={...u,id:null,musicName:r.editItem.title,typeList:m};eventGlobal.emit("onTrainAddItem",f)}},null),e.from==="class"&&createVNode(Dragbom,{class:styles$4.dragbom},null)]})])}}),studentRemove="_studentRemove_rji4n_1",btnGroupModal="_btnGroupModal_rji4n_13",styles$3={studentRemove,btnGroupModal},TheMessageDialog=defineComponent({name:"the-message-dialog",props:{cancelButtonText:{type:String,default:"取消"},confirmButtonText:{type:String,default:"确定"},content:{type:String,default:""},contentDirection:{type:String,default:"center"},loading:{type:Boolean,default:!1}},emits:["close","confirm"],setup(e,{emit:t}){return()=>createVNode("div",{class:styles$3.studentRemove},[createVNode("p",{style:{textAlign:e.contentDirection},innerHTML:e.content},null),createVNode(NSpace,{class:styles$3.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,onClick:()=>t("close")},{default:()=>[e.cancelButtonText]}),createVNode(NButton,{round:!0,type:"primary",loading:e.loading,disabled:e.loading,onClick:()=>{t("confirm")}},{default:()=>[e.confirmButtonText]})]})])}}),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 A;console.log(e.courseScheduleId,"courseScheduleId"),useCatchStore();const r=usePrepareStore(),a=useDialog(),n=useMessage(),s=reactive({title:(A=e.lessonPreTraining)==null?void 0:A.title,preBtnLoading:!1,showAttendClass:!1,list:[],drag:!0,loadingStatus:!1,trainList:[],assignHomeworkStatus:!1,editStatus:!1,editItem:{},removeIds:[],removeVisiable1:!1,preSaveVisiable:!1}),i=async()=>{var y,C;s.loadingStatus=!0;try{if(!((y=e.lessonPreTraining)!=null&&y.id))return s.loadingStatus=!1;const{data:x}=await lessonPreTrainingV2Detail({id:(C=e.lessonPreTraining)==null?void 0:C.id}),F=x.lessonPreTrainingDetails||[],N=[];s.title=x.title,F.forEach(_=>{let $=[];const L=_.trainingConfigJson;_.trainingType==="EVALUATION"?$=["".concat(evaluateDifficult[L.evaluateDifficult]),L.practiceChapterBegin||L.practiceChapterEnd?"".concat(L.practiceChapterBegin,"-").concat(L.practiceChapterEnd,"小节"):"全部小节","".concat(L.trainingTimes,"分合格")]:$=["".concat(L.practiceChapterBegin,"-").concat(L.practiceChapterEnd,"小节"),"速度".concat(L.practiceSpeed),"".concat(L.trainingTimes,"分钟")],N.push({typeList:$||[],..._})}),r.setTrainList(N||[]);const V=[];N.forEach(_=>{s.removeIds.includes(_.id)||V.push(_)}),s.trainList=V||[]}catch(x){}s.loadingStatus=!1};watch(()=>r.getSelectKey,()=>{eventGlobal.emit("teacher-slideshow",!1),t("change",{status:!1}),s.trainList=[],i()});const o=y=>{s.removeIds.push(y.id);const C=s.trainList.findIndex(x=>x.id===y.id);s.trainList.splice(C,1)},l=async y=>{try{a.warning({title:"提示",content:"该训练已下架,是否删除?",positiveText:"确定",negativeText:"取消",onPositiveClick:async()=>{s.removeIds.push(y.id),await lessonPreTrainingDelete({ids:y.id}),n.success("删除成功"),i()}})}catch(C){}},c=async()=>{var y,C;s.preBtnLoading=!0;try{const x=[];s.trainList.forEach(F=>{x.push({trainingType:F.trainingType,musicId:F.musicId,trainingConfigJson:F.trainingConfigJson,musicName:F.musicName})}),await lessonPreTrainingV2Save({title:s.title,id:(y=e.lessonPreTraining)==null?void 0:y.id,coursewareKnowledgeDetailId:e.coursewareKnowledgeDetailId||r.getSelectKey,lessonPreTrainingDetails:x,chapterLessonCoursewareId:(C=e.lessonPreTraining)==null?void 0:C.chapterId}),n.success("保存成功"),r.setIsEditTrain(!1),s.removeIds=[],t("change",{status:!1})}catch(x){}s.preBtnLoading=!1},u=()=>{const y=document.querySelector("#model-homework-height");y&&useResizeObserver(y,C=>{const x=C[0],{height:F}=x.contentRect;y.style.setProperty("--window-page-lesson-height",F+"px")})};onMounted(async()=>{u(),await i(),eventGlobal.on("onTrainAddItem",y=>{s.drag=!0,y.id=y.id||new Date().getTime()+"__tmp",s.trainList.push(y),r.setTrainList(s.trainList)})}),onUnmounted(()=>{s.trainList=[],r.setTrainList([])});let m,f;if(e.from==="class"){const y=useUserStore();f="workSetingBoxClass_drag",m=useDrag(["".concat(f,">.n-card-header"),"".concat(f," .bom_drag")],f,toRef(s,"editStatus"),y.info.id)}let p,d;if(e.from==="class"){const y=useUserStore();d="workClearBoxClass_drag",p=useDrag(["".concat(d,">.n-card-header"),"".concat(d," .bom_drag")],d,toRef(s,"removeVisiable1"),y.info.id)}let g,E;if(e.from==="class"){const y=useUserStore();E="workSaveBoxClass_drag",g=useDrag(["".concat(E,">.n-card-header"),"".concat(E," .bom_drag")],E,toRef(s,"preSaveVisiable"),y.info.id)}let S,b;if(e.from==="class"){const y=useUserStore();b="workArrangeImmediatelyBoxClass_drag",S=useDrag(["".concat(b,">.n-card-header"),"".concat(b," .bom_drag")],b,toRef(s,"assignHomeworkStatus"),y.info.id)}return()=>createVNode("div",{class:styles$7.coursewareModal},[createVNode("div",{class:styles$7.btnGroup},[createVNode(NSpace,null,{default:()=>[createVNode("div",{class:styles$7.btnItem},[createVNode("span",{class:styles$7.btnTitle},[createVNode("i",{style:{color:"#ea4132",fontStyle:"normal"}},[createTextVNode("*")]),createTextVNode("标题:")]),createVNode(NInput,{placeholder:"请输入标题",value:s.title,"onUpdate:value":y=>s.title=y,maxlength:100},null)])]}),createVNode("div",{class:styles$7.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",disabled:s.trainList.length<=0,onClick:()=>{if(!s.title){n.error("请输入标题");return}let y=0;if(s.trainList.forEach(C=>{C.removeFlag||y++}),y<=0){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 y=0;if(s.trainList.forEach(C=>{C.removeFlag||y++}),y<=0){n.error("作业内容不能为空");return}s.assignHomeworkStatus=!0}},{default:()=>[createTextVNode("立即布置")]})])]),createVNode(NScrollbar,{class:[styles$7.listContainer,"train-container"]},{default:()=>[createVNode(NSpin,{show:s.loadingStatus},{default:()=>[createVNode("div",{class:[styles$7.listSection,"train-listSection",!s.loadingStatus&&r.getTrainList.length<=0?styles$7.emptySection:""],onDragenter:y=>{y.preventDefault()},onDragover:y=>{y.preventDefault()},onDrop:y=>{let C=y.dataTransfer.getData("text");console.log(C,"dropItem",C),C=C?JSON.parse(C):{},C.id&&eventGlobal.emit("onTrainDragItem",C)}},[s.trainList.length>0&&createVNode(Fragment,null,[createVNode(Draggable,{modelValue:s.trainList,"onUpdate:modelValue":y=>s.trainList=y,itemKey:"id",componentData:{itemKey:"id",tag:"div",animation:200,group:"description",disabled:!1},class:styles$7.list},{item:y=>{const C=y.element;return createVNode("div",{"data-id":C.musicId,class:styles$7.itemBlock},[createVNode(TrainType,{from:e.from,item:C,isDelete:!0,type:"prepare",onDelete:x=>o(x),offShelf:!!C.removeFlag,onOffShelf:()=>l(C),onEdit:x=>{const{trainingConfigJson:F,id:N,musicId:V,..._}=x;s.editItem={..._,id:V,trainId:N,...F},s.editStatus=!0}},null)])}})]),!s.loadingStatus&&r.getTrainList.length<=0&&createVNode(TheEmpty,{description:"暂无作业"},null)])]})]}),createVNode(NModal,{style:e.from==="class"?m.styleDrag.value:{},show:s.editStatus,"onUpdate:show":y=>s.editStatus=y,class:["modalTitle background",styles$7.trainEditModal,f],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:s.editItem,onClose:()=>s.editStatus=!1,onConfirm:y=>{s.editItem={};const C=typeFormat(y.trainingType,y.trainingConfigJson),x={...y,typeList:C};s.trainList.forEach(F=>{F.id===x.id&&(F.trainingConfigJson=x.trainingConfigJson,F.trainingType=x.trainingType,F.typeList=x.typeList)}),r.setTrainList(s.trainList)}},null),e.from==="class"&&createVNode(Dragbom,{class:styles$7.dragbom},null)]}),createVNode(NModal,{style:e.from==="class"?S.styleDrag.value:{},show:s.assignHomeworkStatus,"onUpdate:show":y=>s.assignHomeworkStatus=y,preset:"card",showIcon:!1,class:["modalTitle background",styles$7.assignHomework,b],title:"布置作业",blockScroll:!1},{default:()=>[createVNode(AssignHomework,{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,{class:styles$7.dragbom},null)]}),createVNode(NModal,{style:e.from==="class"?p.styleDrag.value:{},show:s.removeVisiable1,"onUpdate:show":y=>s.removeVisiable1=y,preset:"card",class:["modalTitle",styles$7.removeVisiable1,d],title:"清空资源"},{default:()=>[createVNode("div",{class:styles$7.studentRemove},[createVNode("p",null,[createTextVNode("请确认是否要清空作业?")]),createVNode(NSpace,{class:styles$7.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{round:!0,type:"primary",onClick:()=>{s.trainList.forEach(y=>{s.removeIds.push(y.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,{class:styles$7.dragbom},null)]}),createVNode(NModal,{style:e.from==="class"?g.styleDrag.value:{},show:s.preSaveVisiable,"onUpdate:show":y=>s.preSaveVisiable=y,preset:"card",class:["modalTitle",styles$7.removeVisiable1,E],title:"保存"},{default:()=>[createVNode(TheMessageDialog,{content:"是否保存当前页面编辑内容?",cancelButtonText:"取消",confirmButtonText:"保存",onClose:()=>s.preSaveVisiable=!1,onConfirm:()=>c()},null),e.from==="class"&&createVNode(Dragbom,{class:styles$7.dragbom},null)]})])}}),iconScreen="_iconScreen_1pcd4_40",homerowkTabs="_homerowkTabs_1pcd4_51",dragbom="_dragbom_1pcd4_61",selectMusicModal="_selectMusicModal_1pcd4_66",trainEditModal="_trainEditModal_1pcd4_79",styles$2={"resource-main":"_resource-main_1pcd4_1",iconScreen,homerowkTabs,dragbom,selectMusicModal,trainEditModal},searchGroup="_searchGroup_1vu4z_1",searchSelect="_searchSelect_1vu4z_4",inputSearch="_inputSearch_1vu4z_21",searchBtn="_searchBtn_1vu4z_28",btnType="_btnType_1vu4z_34",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=reactive({type:"MUSIC",name:"",bookVersionId:null}),n=ref([]),s=()=>{t("search",a)},i=useThrottleFn(()=>s(),500);return onMounted(async()=>{await r.getMusicSheetCategory(),resourceTypeArray.forEach(o=>{n.value.push(o)})}),()=>{let o;return createVNode(Fragment,null,[createVNode("div",{class:styles$1.searchGroup},[createVNode(NSpace,{size:"small",class:styles$1.btnType},_isSlot(o=n.value.map(l=>createVNode(NButton,{type:a.type===l.value?"primary":"default",secondary:a.type!==l.value,round:!0,size:"small",focusable:!1,onClick:()=>{a.type=l.value,i()}},{default:()=>[l.label]})))?o:{default:()=>[o]}),a.type==="MUSIC"&&e.type==="shareResources"&&createVNode("div",{class:styles$1.searchSelect},[createVNode(NSelect,{placeholder:"全部教材",options:[{name:"全部教材",id:null},...r.getMusicCategories],clearable:!0,labelField:"name",valueField:"id",value:a.bookVersionId,"onUpdate:value":[l=>a.bookVersionId=l,()=>{s()}]},null)]),createVNode(NInput,{type:"text",placeholder:"请输入搜索关键词",clearable:!0,value:a.name,"onUpdate:value":l=>a.name=l,class:styles$1.inputSearch,onKeyup:l=>{l.code==="Enter"&&i()},onClear:()=>{a.name="",i()}},{prefix:()=>createVNode("span",{class:"icon-search-input",onClick:()=>i()},null)})])])}}}),listContainer="_listContainer_15hpr_1",listNoMusic="_listNoMusic_15hpr_5",listSection="_listSection_15hpr_8",emptySection="_emptySection_15hpr_14",list="_list_15hpr_1",styles={listContainer,listNoMusic,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){const t=usePrepareStore();useMessage(),useDialog();const r=reactive({loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{type:"MUSIC",name:"",bookVersionId:null,subjectId:null,sourceType:formatType(e.type),enableFlag:!0},tableList:[],show:!1,item:{}}),a=async()=>{try{r.pagination.page===1&&(r.loading=!0);const{data:c}=await materialQueryPage({...r.searchGroup,...r.pagination,lessonCoursewareKnowledgeId:e.type==="relateResources"||e.type==="shareResources"?t.getSelectKey:null});r.loading=!1;const u=c.rows||[],m=[];u.forEach(f=>{const p=t.getCoursewareList.findIndex(d=>d.materialId===f.id);m.push({id:f.id,coverImg:f.coverImg,type:f.type,title:f.name,isCollect:!!f.favoriteFlag,isSelected:f.sourceFrom==="PLATFORM",content:f.content})}),r.pagination.page===1?r.tableList=m:r.tableList.push(...m),r.finshed=c.pages<=c.current}catch(c){r.loading=!1}},n=async c=>{r.pagination.page=1,r.tableList=[],r.searchGroup=Object.assign(r.searchGroup,c),a()},s=useDebounceFn(c=>{r.pagination.page=r.pagination.page+1,r.pagination.page=1,r.tableList=[],r.searchGroup=Object.assign(r.searchGroup,c),a()},500);watch(()=>t.getSubjectId,()=>{n(r.searchGroup)});const i=useThrottleFn(()=>{r.pagination.page=r.pagination.page+1,a()},500),o=async c=>{try{eventGlobal.emit("onPrepareAddItem",{materialId:c.id,coverImg:c.coverImg,type:c.type,title:c.title,isCollect:c.isCollect,isSelected:c.isSelected,content:c.content,removeFlag:!1})}catch(u){}},l=async c=>{try{await favorite({materialId:c.id,favoriteFlag:c.isCollect?0:1,type:c.type}),c.isCollect=!c.isCollect}catch(u){}};return onMounted(()=>{a()}),()=>createVNode("div",null,[createVNode(ResourceSearchGroup,{type:e.type,onSearch:c=>{r.searchGroup=Object.assign(r.searchGroup,c),s(c)}},null),createVNode(NScrollbar,{class:[styles.listContainer,"listContainerResource",r.searchGroup.type!=="MUSIC"||["myResources","myCollect","relateResources"].includes(e.type)?[styles.listNoMusic,"listNoMusicResource"]:""],onScroll:c=>{var p,d,g;const u=(p=c.target)==null?void 0:p.clientHeight,m=(d=c.target)==null?void 0:d.scrollTop,f=(g=c.target)==null?void 0:g.scrollHeight;u+m+20>=f&&!r.finshed&&!r.loading&&i()}},{default:()=>[createVNode(NSpin,{show:r.loading,size:"small"},{default:()=>[createVNode("div",{class:[styles.listSection,"listSectionResource",!r.loading&&r.tableList.length<=0?[styles.emptySection,"emptySectionResource"]:""]},[r.tableList.length>0&&createVNode("div",{class:styles.list},[r.tableList.map(c=>createVNode(CardType,{isShowAdd:!0,item:c,isShowCollect:!0,draggable:!0,disabledMouseHover:!1,onClick:()=>{c.type!=="IMG"&&(r.show=!0,r.item=c)},onCollect:u=>l(u),onAdd:u=>o(u)},null))]),!r.loading&&r.tableList.length<=0&&createVNode(TheEmpty,null,null)])]})]}),createVNode(CardPreview,{show:r.show,"onUpdate:show":c=>r.show=c,item:r.item},null)])}}),ResourceMain=defineComponent({name:"resource-main",props:{cardType:{type:String,default:""},from:{type:String,default:""}},setup(e,{expose:t}){const r=usePrepareStore(),a=reactive({tabType:"relateResources",tabWorkType:"myMusic",selectMusicStatus:!1,selectResourceStatus:!1,editStatus:!1,editItem:{}}),n=ref(),s=ref(),i=async f=>{var g;let p="init",d=null;try{const E=await request$1.get(f.xmlFileUrl,{mode:"cors"});d=(g=new DOMParser().parseFromString(E,"text/xml").getElementsByTagName("part")[0])==null?void 0:g.getElementsByTagName("measure"),p="success"}catch(E){p="error"}p=="success"?f.practiceChapterMax=d.length:f.practiceChapterMax=0,f.coursewareKnowledgeDetailId=r.getSelectKey,f.subjectId=r.getSubjectId,a.editItem=f,a.editStatus=!0},o=()=>{nextTick(()=>{var f,p;(f=n.value)==null||f.syncBarPosition(),(p=s.value)==null||p.syncBarPosition()})};onMounted(()=>{o()});let l,c;if(e.from==="class"){const f=useUserStore();c="selectResourceStatusAddBoxClass_drag",l=useDrag(["".concat(c," .select-resource>.n-tabs>.n-tabs-nav--top.n-tabs-nav"),"".concat(c," .bom_drag")],c,toRef(a,"selectMusicStatus"),f.info.id)}let u,m;if(e.from==="class"){const f=useUserStore();m="workSetingBoxClass_drag",u=useDrag(["".concat(m,">.n-card-header"),"".concat(m," .bom_drag")],m,toRef(a,"editStatus"),f.info.id)}return t({resetTabPosition:o}),()=>createVNode("div",{class:[styles$2["resource-main"],a.selectMusicStatus||a.selectResourceStatus?styles$2.resourceClose:""]},[r.getTabType==="courseware"&&!["homerowk-record","prepare"].includes(e.cardType)?createVNode(NTabs,{ref:n,animated:!0,class:styles$2.homerowkTabs,value:a.tabType,paneClass:styles$2.paneTitle,paneWrapperClass:styles$2.paneWrapperContainer,"onUpdate:value":f=>{a.tabType=f}},{suffix:()=>createVNode("div",{class:styles$2.iconScreen,onClick:()=>{a.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"},null)]}),createVNode(NTabPane,{name:"shareResources",tab:"共享资源"},{default:()=>[createVNode(ResourceItem,{type:"shareResources"},null)]}),createVNode(NTabPane,{name:"myResources",tab:"我的资源"},{default:()=>[createVNode(ResourceItem,{type:"myResources"},null)]}),createVNode(NTabPane,{name:"myCollect",tab:"我的收藏"},{default:()=>[createVNode(ResourceItem,{type:"myCollect"},null)]})])}):createVNode(NTabs,{ref:s,animated:!0,value:a.tabWorkType,paneClass:styles$2.paneTitle,paneWrapperClass:styles$2.paneWrapperContainer,"onUpdate:value":f=>{a.tabWorkType=f}},{suffix:()=>createVNode("div",{class:styles$2.iconScreen,onClick:()=>{a.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,{show:a.selectResourceStatus,"onUpdate:show":[f=>a.selectResourceStatus=f,f=>{f||r.setSelectResourceStatus(f)}],class:["modalTitle",styles$2.selectMusicModal],preset:"card",title:"选择资源"},{default:()=>[createVNode(SelectResources,{type:a.tabType},null)]}),createVNode(NModal,{style:e.from==="class"?l.styleDrag.value:{},show:a.selectMusicStatus,"onUpdate:show":[f=>a.selectMusicStatus=f,f=>{f||r.setSelectMusicStatus(f)}],class:["modalTitle",styles$2.selectMusicModal,c],preset:"card",title:"选择曲目"},{default:()=>[createVNode(SelectMusic$1,{from:e.from,onAdd:f=>i(f)},null),e.from==="class"&&createVNode(Dragbom,{class:styles$2.dragbom},null)]}),createVNode(NModal,{style:e.from==="class"?u.styleDrag.value:{},show:a.editStatus,"onUpdate:show":f=>a.editStatus=f,class:["modalTitle background",styles$2.trainEditModal,m],preset:"card",title:"作业设置"},{default:()=>[createVNode(TrainUpdate,{item:a.editItem,onClose:()=>a.editStatus=!1,onConfirm:f=>{const p=typeFormat(f.trainingType,f.trainingConfigJson),d={...f,id:null,musicName:a.editItem.title,typeList:p};eventGlobal.emit("onTrainAddItem",d)}},null),e.from==="class"&&createVNode(Dragbom,{class:styles$2.dragbom},null)]})])}}),AttendClass=defineComponent({name:"CoursewarePlay",props:{type:{type:String,default:""},courseId:{type:String,default:""},subjectId:{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(()=>{});const o=reactive({type:"class",courseId:"",subjectId:"",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 M=await api_teacherChapterLessonCoursewareDetail(o.courseId);o.teacherChapterName=M.data.name||"",o.lessonPreTrainingId=M.data.lessonPreTrainingId;const B=M.data.chapterKnowledgeList||[],W=[],K=[];B.forEach((ee,ie)=>{if(!Array.isArray(ee.chapterKnowledgeMaterialList))return;const te=[];ee.chapterKnowledgeMaterialList.forEach(Y=>{Y.removeFlag||te.push({id:Y.id,materialId:Y.bizId,coverImg:Y.bizInfo.coverImg,type:Y.type,title:Y.bizInfo.name,dataJson:Y.dataJson,isCollect:!!Y.favoriteFlag,isSelected:Y.source==="PLATFORM",content:Y.bizInfo.content,parentIndex:ie})}),W.push({title:ee.name,list:te}),K.push(...te)}),console.log(W,"temp",B),o.knowledgePointList=W,o.itemList=K==null?void 0:K.map(ee=>({...ee,iframeRef:null,videoEle:null,audioEle:null,autoPlay:M.data.autoPlay||!1,isprepare:!1,isRender:!1})),setTimeout(()=>{o.animationState="end"},500)}catch(M){console.log(M)}},u=ref(!1),m=ref(!1),f=ref(!1),p=M=>{var B,W,K,ee,ie,te,Y,Q;if(((B=M.data)==null?void 0:B.api)==="headerTogge"&&(l.model=M.data.show||M.data.playState!="play"),((W=M.data)==null?void 0:W.api)==="onAttendToggleMenu"&&(l.model=!l.model),((K=M.data)==null?void 0:K.api)==="api_fingerPreView"&&(clearInterval(l.timer),l.model=!M.data.state),((ee=M.data)==null?void 0:ee.api)==="documentBodyKeyup"&&(((ie=M.data)==null?void 0:ie.code)==="ArrowLeft"&&(I(),z("up")),((te=M.data)==null?void 0:te.code)==="ArrowRight"&&(I(),z("down"))),((Y=M.data)==null?void 0:Y.api)==="callBack"&&P(),((Q=M.data)==null?void 0:Q.api)==="onLogin"){const ae=document;ae.exitFullscreen?ae.exitFullscreen():ae.mozCancelFullScreen?ae.mozCancelFullScreen():ae.webkitExitFullscreen&&ae.webkitExitFullscreen(),s.logout(),n.replace("/login")}};onMounted(()=>{const M=a.query;if(o.type=e.type||M.type,o.courseId=e.courseId||M.courseId,o.subjectId=e.subjectId||M.subjectId,o.detailId=e.detailId||M.detailId,o.lessonCourseId=e.lessonCourseId||M.lessonCourseId,o.classGroupId=e.classGroupId||M.classGroupId,o.classId=e.classId||M.classId,o.preStudentNum=e.preStudentNum||M.preStudentNum,window.addEventListener("message",p),c(),E(),o.type==="preview"){const B=[2,10];let W=q.length-1;for(;W>=0;)B.includes(q[W].id)&&(console.log(W),q.splice(W,1)),W--}fe()});const d=reactive({open:!1,activeIndex:0,courseActiveIndex:0,toolOpen:!1,chapterOpen:!1,chapterDetails:[],courseId:null,chapterLoading:!1});watch(()=>[d.open,d.chapterOpen],M=>{setTimeout(()=>{const B=document.querySelectorAll(".n-drawer-container");M[0]||M[1]?B==null||B.forEach(W=>{W.classList.remove("n-drawer-container-relative")}):B==null||B.forEach(W=>{W.classList.add("n-drawer-container-relative")})},200)});const g=(M,B,W=[])=>{for(const K of B){if(K.knowledgeList&&K.knowledgeList.length>0){const ee=g(M,K.knowledgeList,[...W,K.id]);if(ee.includes(M))return ee}if(K.id===M)return[...W,M]}return W},E=async()=>{try{const M=await lessonCoursewareDetail({id:o.lessonCourseId,subjectId:o.subjectId});d.chapterDetails=M.data.lessonList||[];const B=g(o.detailId,d.chapterDetails);o.lessonCoursewareDetailId=B[0],o.lessonCoursewareSubjectList=M.data.subjectList||[]}catch(M){}},S=async()=>{try{if(!o.classId)return;await courseScheduleUpdate({lessonCoursewareKnowledgeDetailId:o.detailId,id:o.classId})}catch(M){}},b=computed(()=>{let M="";return d.chapterDetails.forEach(B=>{var W;B.id===o.lessonCoursewareDetailId&&((W=B.knowledgeList)==null||W.forEach(K=>{K.id===o.detailId&&(M=K.name)}))}),M}),A=(M=!0)=>{var B,W,K,ee,ie,te,Y,Q,ae,le;for(let xe=0;xe<o.itemList.length;xe++){const be=o.itemList[xe];if(be.type==="VIDEO"&&be.videoEle)try{M&&((B=be.videoEle)==null||B.currentTime(0)),(W=be.videoEle)==null||W.pause()}catch(Fe){}be.type==="SONG"&&be.audioEle&&((K=be.audioEle)==null||K.stop()),be.type==="MUSIC"&&((ie=(ee=be.iframeRef)==null?void 0:ee.contentWindow)==null||ie.postMessage({api:"setPlayState"},"*")),(be.type==="INSTRUMENT"||be.type==="MUSICIAN"||be.type==="MUSIC_WIKI")&&((te=be.iframeRef)==null||te.handleChangeAudio("pause")),be.type==="RHYTHM"&&((Q=(Y=be.iframeRef)==null?void 0:Y.contentWindow)==null||Q.postMessage({api:"setPlayState",data:!1},"*")),be.type==="LISTEN"&&((le=(ae=be.iframeRef)==null?void 0:ae.contentWindow)==null||le.postMessage({api:"setPlayState"},"*"))}},y=M=>{const B=o.itemList.findIndex(W=>W.id==M);B>-1&&L(B)},C=()=>{clearTimeout(l.timer),r.destroyAll(),l.timer=setTimeout(()=>{l.model=!1,Object.values(o.videoRefs).map(M=>M==null?void 0:M.toggleHideControl(!1)),Object.values(o.audioRefs).map(M=>M==null?void 0:M.toggleHideControl(!1))},4e3)},x=()=>{clearTimeout(l.timer),r.destroyAll(),l.model=!1,Object.values(o.videoRefs).map(M=>M==null?void 0:M.toggleHideControl(!1)),Object.values(o.audioRefs).map(M=>M==null?void 0:M.toggleHideControl(!1))},F=(M=!0)=>{l.model=M,Object.values(o.videoRefs).map(B=>B==null?void 0:B.toggleHideControl(M)),Object.values(o.audioRefs).map(B=>B==null?void 0:B.toggleHideControl(M))},N=M=>{if(M&&M.type==="VIDEO"){const B=M.videoEle;B&&(B.paused?(r.destroyAll(),B.play()):(r.warning("已暂停"),B.pause()))}},V=ref(3),_=[{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"}}],$=ref(),L=M=>{d.activeIndex!=M&&(o.animationState="start",o.videoState="init",A(),clearTimeout($.value),l.model=!0,j(d.activeIndex,M),d.activeIndex=M,nextTick(()=>{he()}),$.value=setTimeout(()=>{const B=o.itemList[M];B&&(B.type=="MUSIC"&&(l.model=!0),B.type==="SONG"&&(clearTimeout(l.timer),r.destroyAll()),B.type==="VIDEO"&&(clearTimeout(l.timer),r.destroyAll(),nextTick(()=>{var W;B.error&&((W=B.videoEle)==null||W.src(B.content),B.error=!1),o.animationState="end"})),B.type)},l.isAnimation?800:0))},j=(M,B)=>{const W=o.itemList[M],K=o.itemList[B];if(K){if(K.knowledgePointId!=W.knowledgePointId){l.isAnimation=!0;return}const ee=W.videoEle,ie=K.videoEle;ee&&ee.duration<8&&M<B||ie&&ie.duration<8&&M>B?l.isAnimation=!1:l.isAnimation=!0}else l.isAnimation=!((W==null?void 0:W.adviseStudyTimeSecond)<8)},z=async M=>{var B,W;if(M==="up"){if(d.activeIndex>0){L(d.activeIndex-1);return}let K=d.chapterDetails.findIndex(ae=>ae.id==o.lessonCoursewareDetailId);const ee=((B=d.chapterDetails[K])==null?void 0:B.knowledgeList)||[];let ie=ee.findIndex(ae=>ae.id==o.detailId),te=!1,Y="";for(;ie>=0&&(ie--,ie>=0&&ee[ie].coursewareNum>0&&(te=!0,ee[ie].lessonCoursewareDetailId,Y=ee[ie].id),!te););if(te){d.courseId=Y,o.selectClassStatus=!0;return}let Q=!1;for(;K>=0;){K--;const ae=((W=d.chapterDetails[K])==null?void 0:W.knowledgeList)||[];let le=ae.length;for(;le>0&&(ae[le-1].coursewareNum>0&&(Q=!0,ae[le-1].lessonCoursewareDetailId,Y=ae[le-1].id),le--,!Q););if(Q)break}if(Q){d.courseId=Y,o.selectClassStatus=!0;return}}else{if(d.activeIndex<o.itemList.length-1){L(d.activeIndex+1);return}o.nextEndShow=!0}};function H(){var te,Y;let M=d.chapterDetails.findIndex(Q=>Q.id==o.lessonCoursewareDetailId);const B=((te=d.chapterDetails[M])==null?void 0:te.knowledgeList)||[];let W=B.findIndex(Q=>Q.id==o.detailId),K=!1,ee="";for(;W<B.length-1&&(W++,W>=0&&B[W].coursewareNum>0&&(K=!0,B[W].lessonCoursewareDetailId,ee=B[W].id),!K););if(K){d.courseId=ee,o.selectClassStatus=!0;return}let ie=!1;for(;M<=d.chapterDetails.length-1;){M++;const Q=((Y=d.chapterDetails[M])==null?void 0:Y.knowledgeList)||[];let ae=0;for(;ae<=Q.length-1&&(Q[ae].coursewareNum>0&&(ie=!0,Q[ae].lessonCoursewareDetailId,ee=Q[ae].id),ae++,!ie););if(ie)break}if(ie){d.courseId=ee,o.selectClassStatus=!0;return}}document.body.addEventListener("keyup",M=>{M.code==="ArrowUp"?(I(),z("up")):M.code==="ArrowDown"?(I(),z("down")):M.code}),watch(()=>d.activeIndex,()=>{const M=o.itemList[d.activeIndex];d.courseActiveIndex=M.parentIndex});const I=(M=!0)=>{clearTimeout(l.timer),l.model=M,Object.values(o.videoRefs).map(B=>B==null?void 0:B.toggleHideControl(M)),Object.values(o.audioRefs).map(B=>B==null?void 0:B.toggleHideControl(M))},D=reactive({type:"",penShow:!1,whiteboardShow:!1,callShow:!1,callStudentList:[]}),T=M=>{switch(A(!1),x(),d.toolOpen=!1,D.type=M.type,M.type){case"pen":D.penShow=!0;break;case"whiteboard":D.whiteboardShow=!0;break;case"call":D.callShow=!0;break}},P=()=>{D.type="init",F(),C()},k=M=>{M=="setTimeIcon"&&(f.value=!0),M=="beatIcon"&&(u.value=!0),M=="toneIcon"&&(m.value=!0)},R=computed(()=>{var ie,te;if(d.activeIndex>0)return!0;let M=d.chapterDetails.findIndex(Y=>Y.id==o.lessonCoursewareDetailId);const B=((ie=d.chapterDetails[M])==null?void 0:ie.knowledgeList)||[];let W=B.findIndex(Y=>Y.id==o.detailId);if(M<=0&&W<=0)return!1;let K=!1;for(;W>=0;)W--,W>=0&&B[W].coursewareNum>0&&(K=!0);if(K)return!0;if(M<=0)return!1;let ee=!1;for(;M>=0;){M--;const Y=((te=d.chapterDetails[M])==null?void 0:te.knowledgeList)||[];let Q=Y.length;for(;Q>0;)Y[Q-1].coursewareNum>0&&(ee=!0),Q--;if(ee)return!0}return!1}),X=computed(()=>{var ie,te;if(d.activeIndex<o.itemList.length-1)return!0;let M=d.chapterDetails.findIndex(Y=>Y.id==o.lessonCoursewareDetailId);const B=((ie=d.chapterDetails[M])==null?void 0:ie.knowledgeList)||[];let W=B.findIndex(Y=>Y.id==o.detailId);if(M>=d.chapterDetails.length-1&&W>=B.length-1)return!1;let K=!1;for(;W<B.length-1;)W++,W>=0&&B[W].coursewareNum>0&&(K=!0);if(K)return!0;if(M>=d.chapterDetails.length-1)return!1;let ee=!1;for(;M<d.chapterDetails.length-1;){M++;const Y=((te=d.chapterDetails[M])==null?void 0:te.knowledgeList)||[];let Q=0;for(;Q<=Y.length-1;)Y[Q].coursewareNum>0&&(ee=!0),Q++;if(ee)return!0}return!1}),Z=computed(()=>{const M=o.itemList[d.activeIndex];return M&&M.type&&M.type.toLocaleUpperCase()==="VIDEO"?M:{}}),q=reactive([{name:"上一张",icon:bottomIconPre,id:11},{name:"下一张",icon:bottomIconNext,id:12},{name:"切换章节",icon:bottomIconSwitch,id:13},{name:"资源列表",icon:bottomIconResource,id:14},{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}]),ne=[{name:"节拍器",icon:rightIconMetronome,id:5},{name:"计时器",icon:rightIconTimer,id:7},{name:"批注",icon:rightIconPostil,id:3},{name:"白板",icon:rightIconWhiteboard,id:4}],re=ref(!0),se=ref("left");watch(se,()=>{var M,B;for(let W=0;W<o.itemList.length;W++){const K=o.itemList[W];["RHYTHM","MUSIC"].includes(K.type)&&((B=(M=K.iframeRef)==null?void 0:M.contentWindow)==null||B.postMessage({api:"imagePos",data:se.value},"*"))}});const ce=async M=>{switch([8,11,12,13,14].includes(M)||A(!1),M){case 1:if(o.type==="preview")o.removeVisiable=!0,o.removeTitle="结束预览",o.removeContent="请确认是否结束预览?";else{const W=await getStudentAfterWork({courseScheduleId:o.classId,page:1,rows:99});W.data.rows&&W.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 B=await getStudentAfterWork({courseScheduleId:o.classId,page:1,rows:99});B.data.rows&&B.data.rows.length?(o.modalAttendMessage="本次课程已布置作业,是否继续?",o.modelAttendStatus=!0):(o.modelTrainStatus=!0,nextTick(()=>{ue()}),o.modelAttendStatus=!1);break;case 3:T({type:"pen",icon:iconNote,name:"批注"});break;case 4:T({type:"whiteboard",icon:iconWhite,name:"白板"});break;case 5:k("beatIcon");break;case 6:k("toneIcon");break;case 7:k("setTimeIcon");break;case 8:re.value=!1;break;case 9:A(!1),o.selectResourceStatus=!0;break;case 10:if(D.callStudentList.length>0){T({type:"call",icon:iconWhite,name:"点名"});return}break;case 11:if(!R.value)return;z("up");break;case 12:if(!X.value)return;z("down");break;case 13:d.chapterOpen=!0;break;case 14:d.open=!0,nextTick(()=>{he()});break}},fe=async()=>{if(o.classId)try{const B=(await getStudentList$1({classGroupId:o.classGroupId,page:1,rows:999})).data||{};if(Array.isArray(B.rows)&&B.rows.length>0){const W=[];B.rows.forEach(K=>{W.push({name:K.nickname,img:K.avatar})}),D.callStudentList=[...W]}}catch(M){}},he=()=>{const M=document.querySelectorAll(".drawerCardItemRef");d.activeIndex>=0&&M[d.activeIndex]&&M[d.activeIndex].scrollIntoView()},ue=()=>{const M=document.querySelector("#model-homework-height");M&&useResizeObserver(M,B=>{const W=B[0],{height:K}=W.contentRect;M.style.setProperty("--window-page-lesson-height",K+"px")})},de="selCourBoxClass_drag",oe=useDrag(["".concat(de,">.n-card-header"),"".concat(de," .bom_drag")],de,toRef(o,"selectClassStatus"),s.info.id),J="selResourBoxClass_drag",Ce=useDrag(["".concat(J," .select-resource>.n-tabs>.n-tabs-nav--top.n-tabs-nav"),"".concat(J," .bom_drag")],J,toRef(o,"selectResourceStatus"),s.info.id),ve="removeResourBoxClass_drag",ge=useDrag(["".concat(ve,">.n-card-header"),"".concat(ve," .bom_drag")],ve,toRef(o,"removeVisiable"),s.info.id),Ae="nextEndBoxClass_drag",Ie=useDrag(["".concat(Ae,">.n-card-header"),"".concat(Ae," .bom_drag")],Ae,toRef(o,"nextEndShow"),s.info.id),pe="chapterConBoxClass_drag",me=useDrag(["".concat(pe,">.n-card-header"),"".concat(pe," .bom_drag")],pe,toRef(d,"chapterOpen"),s.info.id),Ee="resourcesConBoxClass_drag",Te=useDrag(["".concat(Ee,">.n-card-header"),"".concat(Ee," .bom_drag")],Ee,toRef(d,"open"),s.info.id),ye="timerMeterConBoxClass_drag",Pe=useDrag(["".concat(ye,">.n-card-header"),"".concat(ye," .bom_drag")],ye,f,s.info.id),Se="metronomeConBoxClass_drag",we=useDrag(["".concat(Se,">.n-card-header"),"".concat(Se," .bom_drag")],Se,u,s.info.id),Me="modelTrainStatusConBoxClass_drag",G=useDrag(["".concat(Me,">.n-card-header"),"".concat(Me," .bom_drag")],Me,toRef(o,"modelTrainStatus"),s.info.id),O="modelTrainHomeWordConBoxClassBoxClass_drag",U=useDrag(["".concat(O,">.n-card-header"),"".concat(O," .bom_drag")],O,toRef(o,"modelAttendStatus"),s.info.id);return()=>createVNode("div",{id:"playContent",class:[styles$l.playContent,"wrap"]},[createVNode("div",{onClick:()=>{clearTimeout(l.timer),l.model=!l.model,Object.values(o.videoRefs).map(M=>M==null?void 0:M.toggleHideControl(l.model)),Object.values(o.audioRefs).map(M=>M==null?void 0:M.toggleHideControl(l.model))}},[createVNode("div",{class:styles$l.coursewarePlay,style:{width:i.width}},[d.chapterLoading?"":createVNode("div",{class:styles$l.wraps},[createVNode("div",{style:Z.value.type&&o.animationState==="end"&&o.videoState==="play"?{zIndex:15,opacity:1}:{opacity:0,zIndex:-1},class:styles$l.itemDiv},[createVNode(VideoPlay,{imagePos:se.value,ref:M=>o.videoItemRef=M,item:Z.value,showModel:l.model,onClose:C,onLoadedmetadata:M=>{o.itemList[d.activeIndex]&&(o.itemList[d.activeIndex].videoEle=M)},onCanplay:()=>{o.videoState="play"},onPause:()=>{clearTimeout(l.timer),l.model=!0},onEnded:()=>{}},null)]),o.itemList.map((M,B)=>{const W=Math.abs(d.activeIndex-B)<2;return Math.abs(d.activeIndex-B)>4,W?createVNode("div",{key:"index"+B,class:[styles$l.itemDiv,d.activeIndex===B&&styles$l.itemActive,l.isAnimation&&styles$l.acitveAnimation,Math.abs(d.activeIndex-B)<2?styles$l.show:styles$l.hide],style:B<d.activeIndex?_[V.value].prev:B>d.activeIndex?_[V.value].next:{},onClick:K=>{if(K.stopPropagation(),clearTimeout(l.timer),Date.now()-l.nowTime<300){N(M);return}l.nowTime=Date.now(),l.timer=setTimeout(()=>{l.model=!l.model,Object.values(o.videoRefs).map(ee=>ee==null?void 0:ee.toggleHideControl(l.model)),Object.values(o.audioRefs).map(ee=>ee==null?void 0:ee.toggleHideControl(l.model)),l.model&&C()},300)}},[M.type==="VIDEO"?createVNode(Fragment,null,[createVNode("img",{src:M.coverImg,onLoad:()=>{M.isprepare=!0}},null),createVNode(Transition,{name:"van-fade"},{default:()=>[createVNode("div",{class:styles$l.loadWrap},[createVNode(Vue3Lottie,{animationData:playLoadData},null)])]})]):M.type==="IMG"?createVNode("img",{src:M.content},null):M.type==="SONG"?createVNode(AudioPay,{imagePos:se.value,item:M,activeStatus:d.activeIndex===B,ref:K=>o.audioRefs[B]=K,onLoadedmetadata:K=>{M.audioEle=K,M.isprepare=!0},onTogglePlay:K=>{K||d.open?clearTimeout(l.timer):C()},onEnded:()=>{},onReset:()=>{var K;(K=M.audioEle)!=null&&K.paused||C()}},null):M.type==="PPT"?createVNode("iframe",{src:"https://view.officeapps.live.com/op/embed.aspx?src=".concat(encodeURIComponent(M.content)),width:"100%",height:"100%",frameborder:"1"},null):M.type==="RHYTHM"?createVNode(RhythmModal,{item:M,activeStatus:d.activeIndex===B,imagePos:se.value,onSetIframe:K=>{M.iframeRef=K}},null):M.type==="LISTEN"?createVNode(ListenModal,{item:M,"data-vid":M.id,activeStatus:d.activeIndex===B,onSetIframe:K=>{M.iframeRef=K}},null):M.type==="INSTRUMENT"||M.type==="MUSICIAN"?createVNode(InstruemntDetail,{type:"preview",id:M.content,contentType:M.type,activeStatus:d.activeIndex===B,ref:K=>M.iframeRef=K},null):M.type==="MUSIC_WIKI"?createVNode(MusicDetail,{type:"preview",id:M.content,contentType:M.type,activeStatus:d.activeIndex===B,ref:K=>M.iframeRef=K},null):M.type==="THEORY"?createVNode(TheotyDetail,{type:"preview",id:M.content,activeStatus:d.activeIndex===B,ref:K=>M.iframeRef=K},null):createVNode(MusicScore,{activeModel:l.model,activeStatus:d.activeIndex===B,"data-vid":M.id,music:M,onSetIframe:K=>{M.iframeRef=K}},null)]):null})])])]),createVNode("div",{class:[styles$l.rightColumn,re.value&&se.value==="right"?"":styles$l.rightColumnHide]},[q.map(M=>createVNode("div",{class:styles$l.columnItemBox},[createVNode("div",{class:[styles$l.columnItem,M.id===2&&o.preStudentNum<=0||M.id===10&&D.callStudentList.length<=0||M.id===11&&!R.value||M.id===12&&!X.value?styles$l.itemDisabled:""],onClick:()=>ce(M.id)},[createVNode(NTooltip,{showArrow:!1,placement:"left",class:[M.id===15?"columnItemTooltip rightColumnItemTooltip":""]},{trigger:()=>createVNode("img",{src:M.id===8?rightIconPackUp:M.icon},null),default:()=>M.id===15?createVNode("div",{class:"tools"},[ne.map(B=>createVNode("div",{onClick:()=>ce(B.id)},[createVNode("img",{src:B.icon},null),createVNode("div",{class:"tit"},[B.name])]))]):M.id===1&&o.type==="preview"?M.name2:M.name})])]))]),createVNode("img",{class:[styles$l.rightHideIcon,re.value&&se.value==="right"?"":styles$l.rightIconShow],src:rightHideIcon,onClick:()=>{se.value="right",re.value=!0}},null),createVNode("div",{class:[styles$l.leftColumn,re.value&&se.value==="left"?"":styles$l.leftColumnHide]},[q.map(M=>createVNode("div",{class:styles$l.columnItemBox},[createVNode("div",{class:[styles$l.columnItem,M.id===2&&o.preStudentNum<=0||M.id===10&&D.callStudentList.length<=0||M.id===11&&!R.value||M.id===12&&!X.value?styles$l.itemDisabled:""],onClick:()=>ce(M.id)},[createVNode(NTooltip,{showArrow:!1,placement:"right",class:[M.id===15?"columnItemTooltip":""]},{trigger:()=>createVNode("img",{src:M.icon},null),default:()=>M.id===15?createVNode("div",{class:"tools"},[ne.map(B=>createVNode("div",{onClick:()=>ce(B.id)},[createVNode("img",{src:B.icon},null),createVNode("div",{class:"tit"},[B.name])]))]):M.id===1&&o.type==="preview"?M.name2:M.name})])]))]),createVNode("img",{class:[styles$l.leftHideIcon,re.value&&se.value==="left"?"":styles$l.leftIconShow],src:leftHideIcon,onClick:()=>{se.value="left",re.value=!0}},null),createVNode(NModal,{transformOrigin:"center",show:d.open,"onUpdate:show":M=>d.open=M,preset:"card",class:["modalTitle background",styles$l.drawerContainer,Ee],style:Te.styleDrag.value,title:b.value||"资源列表"},{default:()=>[createVNode(SourceList,{teacherChapterName:o.teacherChapterName,knowledgePointList:o.knowledgePointList,courseActiveIndex:d.courseActiveIndex,activeItem:o.itemList[d.activeIndex],onConfirm:M=>{d.open=!1,y(M.id)}},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{transformOrigin:"center",show:d.chapterOpen,"onUpdate:show":M=>d.chapterOpen=M,preset:"card",class:["modalTitle background",styles$l.drawerContainer,pe],style:me.styleDrag.value,title:"切换章节"},{default:()=>[createVNode(Chapter,{treeList:d.chapterDetails,itemActive:o.detailId,onHandleSelect:async M=>{d.courseId=M.itemActive,o.selectClassStatus=!0}},null),createVNode(Dragbom,null,null)]}),D.penShow&&createVNode(Pen,{isDrag:!0,show:D.type==="pen",type:D.type,close:()=>P()},null),D.whiteboardShow&&createVNode(Pen,{isDrag:!0,show:D.type==="whiteboard",type:D.type,close:()=>P()},null),D.callShow&&createVNode(Pen,{isDrag:!0,imagePos:se.value,callStudents:D.callStudentList,show:D.type==="call",type:D.type,close:()=>P()},null),createVNode(NModal,{transformOrigin:"center",show:o.selectClassStatus,"onUpdate:show":M=>o.selectClassStatus=M,preset:"card",class:["modalTitle background",styles$l.selectClassModal,de],style:oe.styleDrag.value,title:"选择课件"},{default:()=>[createVNode(SelectClass,{classId:o.classId,courseId:d.courseId,subjectId:o.subjectId,lessonCoursewareSubjectList:o.lessonCoursewareSubjectList,onConfirm:async M=>{d.chapterLoading=!0;try{o.selectClassStatus=!1,o.detailId=M.itemActive,o.courseId=M.chapterId;const B=g(M.itemActive,d.chapterDetails);o.lessonCoursewareDetailId=B[0],o.type!=="preview"&&await S(),await c(),d.activeIndex=0,d.chapterOpen=!1}catch(B){}d.chapterLoading=!1}},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{transformOrigin:"center",show:o.modelAttendStatus,"onUpdate:show":M=>o.modelAttendStatus=M,preset:"card",title:"课后作业",style:U.styleDrag.value,class:["modalTitle",styles$l.removeVisiable,O]},{default:()=>[createVNode("div",{class:styles$l.studentRemove},[createVNode("p",null,[o.modalAttendMessage]),createVNode(NSpace,{class:styles$l.btnGroupModal,justify:"center"},{default:()=>[createVNode(NButton,{type:"default",round:!0,onClick:()=>{o.modelTrainStatus=!0,nextTick(()=>{ue()}),o.modelAttendStatus=!1}},{default:()=>[createTextVNode("布置作业")]}),createVNode(NButton,{type:"primary",round:!0,onClick:()=>{A(),o.modelAttendStatus=!1}},{default:()=>[createTextVNode("取消")]})]})]),createVNode(Dragbom,{class:styles$l.dragbom},null)]}),createVNode(NModal,{show:o.modelTrainStatus,"onUpdate:show":M=>o.modelTrainStatus=M,preset:"card",class:["modalTitle background",styles$l.workVisiable,Me],style:G.styleDrag.value,title:"布置作业"},{default:()=>[createVNode("div",{id:"model-homework-height",class:styles$l.workContainer},[createVNode("div",{class:styles$l.workTrain},[createVNode(Train,{from:"class",cardType:"homeworkRecord",lessonPreTraining:{title:o.lessonPreTrainingId?"":o.teacherChapterName+"-课后作业",chapterId:o.courseId,id:o.lessonPreTrainingId},classGroupId:o.classGroupId,courseScheduleId:o.classId,onChange:M=>{o.modelTrainStatus=M.status}},null)]),createVNode("div",{class:styles$l.resourceMain},[createVNode(ResourceMain,{from:"class",cardType:"homerowk-record"},null)])]),createVNode(Dragbom,{class:styles$l.dragbom},null)]}),createVNode(NModal,{transformOrigin:"center",class:["modalTitle background",Se],title:"节拍器",preset:"card",show:u.value,"onUpdate:show":M=>u.value=M,style:{width:"687px",...we.styleDrag.value}},{default:()=>[createVNode("div",{class:styles$l.modeWrap},[createVNode("iframe",{src:"".concat(vaildUrl(),"/metronome/?id=").concat(new Date().getTime()),scrolling:"no",frameborder:"0",width:"100%",onLoad:M=>{iframeDislableKeyboard(M.target)},height:"650px"},null),createVNode(Dragbom,{class:styles$l.dragbom},null)])]}),createVNode(NModal,{transformOrigin:"center",class:["background"],show:m.value,"onUpdate:show":M=>m.value=M},{default:()=>[createVNode("div",null,[createVNode(PlaceholderTone,{onClose:()=>{m.value=!1}},null)])]}),createVNode(NModal,{transformOrigin:"center",show:f.value,"onUpdate:show":M=>f.value=M,class:["modalTitle background",ye],title:"计时器",preset:"card",style:{width:px2vw(772),...Pe.styleDrag.value}},{default:()=>[createVNode("div",null,[createVNode(TimerMeter,null,null),createVNode(Dragbom,{class:styles$l.dragbom},null)])]}),createVNode(NModal,{show:o.selectResourceStatus,"onUpdate:show":M=>o.selectResourceStatus=M,class:["modalTitle",styles$l.selectMusicModal,J],style:Ce.styleDrag.value,preset:"card",title:"选择资源"},{default:()=>[createVNode(SelectResources,{from:"class"},null),createVNode(Dragbom,null,null)]}),createVNode(NModal,{transformOrigin:"center",show:o.removeVisiable,"onUpdate:show":M=>o.removeVisiable=M,preset:"card",class:["modalTitle",styles$l.removeVisiable,ve],style:ge.styleDrag.value,title:o.removeTitle},{default:()=>[createVNode("div",{class:styles$l.studentRemove},[createVNode("p",null,[o.removeContent]),createVNode(NSpace,{class:styles$l.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(()=>{ue()})):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,{style:Ie.styleDrag.value,"z-index":3e3,transformOrigin:"center",show:o.nextEndShow,"onUpdate:show":M=>o.nextEndShow=M,preset:"card",title:"提示",class:["modalTitle",styles$l.removeVisiable,Ae]},{default:()=>[createVNode("div",{class:styles$l.studentRemove},[createVNode("p",null,[createTextVNode("当前课件已结束,是否进入下一章节")]),createVNode(NSpace,{class:styles$l.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,H()}},{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,Pen as P,ResourceMain as R,TimerMeter as T,PlaceholderTone as a,TheMessageDialog as b,Train as c,index as i};