import{aA as inject,aE as provide,e as computed,av as onBeforeUnmount,r as ref,aR as onBeforeUpdate,d as defineComponent,aD as toRef,w as watch,ax as h$1,T as Transition,z as nextTick,R as browser,U as useRoute,G as storage,J as ACCESS_TOKEN,al as listenerMessage,a as createVNode,M as state,V as Popup,a5 as postMessage,D as request,ai as commonjsGlobal,ah as getDefaultExportFromCjs,y as onMounted,aS as openBlock,aT as createElementBlock,aH as normalizeStyle,aU as toRefs,x as reactive,aV as getSecondRPM,A as createTextVNode,F as Fragment,E as showToast,a1 as isVNode,aW as usePageVisibility,a7 as onUnmounted,I as Icon,aX as closeToast}from"./index-f1aa8576.js";/* empty css             */import{q as queryString}from"./base-aba1ba3e.js";import{T as TheVip}from"./index-00217e9c.js";import{S as Skeleton}from"./index-a55b374f.js";import{a7 as createInjectionKey,G as commonLight,F as c,E as cB,I as cM,J as cE,a8 as fadeInScaleUpTransition,ab as insideModal,ac as insidePopover,L as useConfig,K as useTheme,_ as useMergedState,N as useThemeClass,Z as isMounted,V as useAdjustedTo,a2 as VBinder,a1 as VTarget,ad as resolveSlot,W as VFollower,o as on,a as off,a4 as call}from"./fade-in-scale-up.cssr-1e4c62f1.js";import{C as Collapse,a as CollapseItem}from"./index-5a71a7d1.js";import{I as Image$1}from"./index-289931be.js";import{h as api_lessonCoursewareDetail}from"./api-f01ad7c1.js";import"./index-2e59479e.js";const formItemInjectionKey=createInjectionKey("n-form-item");function useFormItem(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:n}={}){const s=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const a=computed(r?()=>r(s):()=>{const{size:p}=e;if(p)return p;if(s){const{mergedSize:d}=s;if(d.value!==void 0)return d.value}return t}),l=computed(n?()=>n(s):()=>{const{disabled:p}=e;return p!==void 0?p:s?s.disabled.value:!1}),u=computed(()=>{const{status:p}=e;return p||(s==null?void 0:s.mergedValidationStatus.value)});return onBeforeUnmount(()=>{s&&s.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:u,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}const sizeVariables={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},self$1=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:s,baseColor:a,cardColor:l,modalColor:u,popoverColor:p,borderRadius:d,fontSize:m,opacityDisabled:b}=e;return Object.assign(Object.assign({},sizeVariables),{fontSize:m,markFontSize:m,railColor:n,railColorHover:n,fillColor:s,fillColorHover:s,opacityDisabled:b,handleColor:"#FFF",dotColor:l,dotColorModal:u,dotColorPopover:p,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:a,indicatorBorderRadius:d,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${s}`,dotBoxShadow:""})},sliderLight={name:"Slider",common:commonLight,self:self$1},sliderLight$1=sliderLight;function isTouchEvent(e){return window.TouchEvent&&e instanceof window.TouchEvent}function useRefs(){const e=ref(new Map),t=r=>n=>{e.value.set(r,n)};return onBeforeUpdate(()=>{e.value.clear()}),[e,t]}const style=c([cB("slider",`
 display: block;
 padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
 position: relative;
 z-index: 0;
 width: 100%;
 cursor: pointer;
 user-select: none;
 -webkit-user-select: none;
 `,[cM("reverse",[cB("slider-handles",[cB("slider-handle-wrapper",`
 transform: translate(50%, -50%);
 `)]),cB("slider-dots",[cB("slider-dot",`
 transform: translateX(50%, -50%);
 `)]),cM("vertical",[cB("slider-handles",[cB("slider-handle-wrapper",`
 transform: translate(-50%, -50%);
 `)]),cB("slider-marks",[cB("slider-mark",`
 transform: translateY(calc(-50% + var(--n-dot-height) / 2));
 `)]),cB("slider-dots",[cB("slider-dot",`
 transform: translateX(-50%) translateY(0);
 `)])])]),cM("vertical",`
 padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
 width: var(--n-rail-width-vertical);
 height: 100%;
 `,[cB("slider-handles",`
 top: calc(var(--n-handle-size) / 2);
 right: 0;
 bottom: calc(var(--n-handle-size) / 2);
 left: 0;
 `,[cB("slider-handle-wrapper",`
 top: unset;
 left: 50%;
 transform: translate(-50%, 50%);
 `)]),cB("slider-rail",`
 height: 100%;
 `,[cE("fill",`
 top: unset;
 right: 0;
 bottom: unset;
 left: 0;
 `)]),cM("with-mark",`
 width: var(--n-rail-width-vertical);
 margin: 0 32px 0 8px;
 `),cB("slider-marks",`
 top: calc(var(--n-handle-size) / 2);
 right: unset;
 bottom: calc(var(--n-handle-size) / 2);
 left: 22px;
 font-size: var(--n-mark-font-size);
 `,[cB("slider-mark",`
 transform: translateY(50%);
 white-space: nowrap;
 `)]),cB("slider-dots",`
 top: calc(var(--n-handle-size) / 2);
 right: unset;
 bottom: calc(var(--n-handle-size) / 2);
 left: 50%;
 `,[cB("slider-dot",`
 transform: translateX(-50%) translateY(50%);
 `)])]),cM("disabled",`
 cursor: not-allowed;
 opacity: var(--n-opacity-disabled);
 `,[cB("slider-handle",`
 cursor: not-allowed;
 `)]),cM("with-mark",`
 width: 100%;
 margin: 8px 0 32px 0;
 `),c("&:hover",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cM("active",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cB("slider-marks",`
 position: absolute;
 top: 18px;
 left: calc(var(--n-handle-size) / 2);
 right: calc(var(--n-handle-size) / 2);
 `,[cB("slider-mark",`
 position: absolute;
 transform: translateX(-50%);
 white-space: nowrap;
 `)]),cB("slider-rail",`
 width: 100%;
 position: relative;
 height: var(--n-rail-height);
 background-color: var(--n-rail-color);
 transition: background-color .3s var(--n-bezier);
 border-radius: calc(var(--n-rail-height) / 2);
 `,[cE("fill",`
 position: absolute;
 top: 0;
 bottom: 0;
 border-radius: calc(var(--n-rail-height) / 2);
 transition: background-color .3s var(--n-bezier);
 background-color: var(--n-fill-color);
 `)]),cB("slider-handles",`
 position: absolute;
 top: 0;
 right: calc(var(--n-handle-size) / 2);
 bottom: 0;
 left: calc(var(--n-handle-size) / 2);
 `,[cB("slider-handle-wrapper",`
 outline: none;
 position: absolute;
 top: 50%;
 transform: translate(-50%, -50%);
 cursor: pointer;
 display: flex;
 `,[cB("slider-handle",`
 height: var(--n-handle-size);
 width: var(--n-handle-size);
 border-radius: 50%;
 overflow: hidden;
 transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
 background-color: var(--n-handle-color);
 box-shadow: var(--n-handle-box-shadow);
 `,[c("&:hover",`
 box-shadow: var(--n-handle-box-shadow-hover);
 `)]),c("&:focus",[cB("slider-handle",`
 box-shadow: var(--n-handle-box-shadow-focus);
 `,[c("&:hover",`
 box-shadow: var(--n-handle-box-shadow-active);
 `)])])])]),cB("slider-dots",`
 position: absolute;
 top: 50%;
 left: calc(var(--n-handle-size) / 2);
 right: calc(var(--n-handle-size) / 2);
 `,[cM("transition-disabled",[cB("slider-dot","transition: none;")]),cB("slider-dot",`
 transition:
 border-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
 position: absolute;
 transform: translate(-50%, -50%);
 height: var(--n-dot-height);
 width: var(--n-dot-width);
 border-radius: var(--n-dot-border-radius);
 overflow: hidden;
 box-sizing: border-box;
 border: var(--n-dot-border);
 background-color: var(--n-dot-color);
 `,[cM("active","border: var(--n-dot-border-active);")])])]),cB("slider-handle-indicator",`
 font-size: var(--n-font-size);
 padding: 6px 10px;
 border-radius: var(--n-indicator-border-radius);
 color: var(--n-indicator-text-color);
 background-color: var(--n-indicator-color);
 box-shadow: var(--n-indicator-box-shadow);
 `,[fadeInScaleUpTransition()]),cB("slider-handle-indicator",`
 font-size: var(--n-font-size);
 padding: 6px 10px;
 border-radius: var(--n-indicator-border-radius);
 color: var(--n-indicator-text-color);
 background-color: var(--n-indicator-color);
 box-shadow: var(--n-indicator-box-shadow);
 `,[cM("top",`
 margin-bottom: 12px;
 `),cM("right",`
 margin-left: 12px;
 `),cM("bottom",`
 margin-top: 12px;
 `),cM("left",`
 margin-right: 12px;
 `),fadeInScaleUpTransition()]),insideModal(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-modal);")])),insidePopover(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-popover);")]))]),eventButtonLeft=0,sliderProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),NSlider=defineComponent({name:"Slider",props:sliderProps,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:n}=useConfig(e),s=useTheme("Slider","-slider",style,sliderLight$1,e,t),a=ref(null),[l,u]=useRefs(),[p,d]=useRefs(),m=ref(new Set),b=useFormItem(e),{mergedDisabledRef:g}=b,y=computed(()=>{const{step:W}=e;if(Number(W)<=0||W==="mark")return 0;const Y=W.toString();let X=0;return Y.includes(".")&&(X=Y.length-Y.indexOf(".")-1),X}),f=ref(e.defaultValue),_=toRef(e,"value"),E=useMergedState(_,f),S=computed(()=>{const{value:W}=E;return(e.range?W:[W]).map(G)}),k=computed(()=>S.value.length>2),A=computed(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),I=computed(()=>{const{marks:W}=e;return W?Object.keys(W).map(parseFloat):null}),R=ref(-1),C=ref(-1),x=ref(-1),P=ref(!1),O=ref(!1),V=computed(()=>{const{vertical:W,reverse:Y}=e;return W?Y?"top":"bottom":Y?"right":"left"}),H=computed(()=>{if(k.value)return;const W=S.value,Y=q(e.range?Math.min(...W):e.min),X=q(e.range?Math.max(...W):W[0]),{value:ee}=V;return e.vertical?{[ee]:`${Y}%`,height:`${X-Y}%`}:{[ee]:`${Y}%`,width:`${X-Y}%`}}),F=computed(()=>{const W=[],{marks:Y}=e;if(Y){const X=S.value.slice();X.sort((ae,ge)=>ae-ge);const{value:ee}=V,{value:re}=k,{range:oe}=e,me=re?()=>!1:ae=>oe?ae>=X[0]&&ae<=X[X.length-1]:ae<=X[0];for(const ae of Object.keys(Y)){const ge=Number(ae);W.push({active:me(ge),label:Y[ae],style:{[ee]:`${q(ge)}%`}})}}return W});function U(W,Y){const X=q(W),{value:ee}=V;return{[ee]:`${X}%`,zIndex:Y===R.value?1:0}}function K(W){return e.showTooltip||x.value===W||R.value===W&&P.value}function z(W){return P.value?!(R.value===W&&C.value===W):!0}function L(W){var Y;~W&&(R.value=W,(Y=l.value.get(W))===null||Y===void 0||Y.focus())}function j(){p.value.forEach((W,Y)=>{K(Y)&&W.syncPosition()})}function M(W){const{"onUpdate:value":Y,onUpdateValue:X}=e,{nTriggerFormInput:ee,nTriggerFormChange:re}=b;X&&call(X,W),Y&&call(Y,W),f.value=W,ee(),re()}function D(W){const{range:Y}=e;if(Y){if(Array.isArray(W)){const{value:X}=S;W.join()!==X.join()&&M(W)}}else Array.isArray(W)||S.value[0]!==W&&M(W)}function N(W,Y){if(e.range){const X=S.value.slice();X.splice(Y,1,W),D(X)}else D(W)}function B(W,Y,X){const ee=X!==void 0;X||(X=W-Y>0?1:-1);const re=I.value||[],{step:oe}=e;if(oe==="mark"){const ge=te(W,re.concat(Y),ee?X:void 0);return ge?ge.value:Y}if(oe<=0)return Y;const{value:me}=y;let ae;if(ee){const ge=Number((Y/oe).toFixed(me)),Te=Math.floor(ge),Ce=ge>Te?Te:Te-1,Ee=ge<Te?Te:Te+1;ae=te(Y,[Number((Ce*oe).toFixed(me)),Number((Ee*oe).toFixed(me)),...re],X)}else{const ge=Z(W);ae=te(W,[...re,ge])}return ae?G(ae.value):Y}function G(W){return Math.min(e.max,Math.max(e.min,W))}function q(W){const{max:Y,min:X}=e;return(W-X)/(Y-X)*100}function Q(W){const{max:Y,min:X}=e;return X+(Y-X)*W}function Z(W){const{step:Y,min:X}=e;if(Number(Y)<=0||Y==="mark")return W;const ee=Math.round((W-X)/Y)*Y+X;return Number(ee.toFixed(y.value))}function te(W,Y=I.value,X){if(!(Y!=null&&Y.length))return null;let ee=null,re=-1;for(;++re<Y.length;){const oe=Y[re]-W,me=Math.abs(oe);(X===void 0||oe*X>0)&&(ee===null||me<ee.distance)&&(ee={index:re,distance:me,value:Y[re]})}return ee}function ne(W){const Y=a.value;if(!Y)return;const X=isTouchEvent(W)?W.touches[0]:W,ee=Y.getBoundingClientRect();let re;return e.vertical?re=(ee.bottom-X.clientY)/ee.height:re=(X.clientX-ee.left)/ee.width,e.reverse&&(re=1-re),Q(re)}function se(W){if(g.value||!e.keyboard)return;const{vertical:Y,reverse:X}=e;switch(W.key){case"ArrowUp":W.preventDefault(),de(Y&&X?-1:1);break;case"ArrowRight":W.preventDefault(),de(!Y&&X?-1:1);break;case"ArrowDown":W.preventDefault(),de(Y&&X?1:-1);break;case"ArrowLeft":W.preventDefault(),de(!Y&&X?1:-1);break}}function de(W){const Y=R.value;if(Y===-1)return;const{step:X}=e,ee=S.value[Y],re=Number(X)<=0||X==="mark"?ee:ee+X*W;N(B(re,ee,W>0?1:-1),Y)}function ue(W){var Y,X;if(g.value||!isTouchEvent(W)&&W.button!==eventButtonLeft)return;const ee=ne(W);if(ee===void 0)return;const re=S.value.slice(),oe=e.range?(X=(Y=te(ee,re))===null||Y===void 0?void 0:Y.index)!==null&&X!==void 0?X:-1:0;oe!==-1&&(W.preventDefault(),L(oe),le(),N(B(ee,S.value[oe]),oe))}function le(){P.value||(P.value=!0,on("touchend",document,J),on("mouseup",document,J),on("touchmove",document,ie),on("mousemove",document,ie))}function he(){P.value&&(P.value=!1,off("touchend",document,J),off("mouseup",document,J),off("touchmove",document,ie),off("mousemove",document,ie))}function ie(W){const{value:Y}=R;if(!P.value||Y===-1){he();return}const X=ne(W);N(B(X,S.value[Y]),Y)}function J(){he()}function _e(W){R.value=W,g.value||(x.value=W)}function Se(W){R.value===W&&(R.value=-1,he()),x.value===W&&(x.value=-1)}function be(W){x.value=W}function ye(W){x.value===W&&(x.value=-1)}watch(R,(W,Y)=>void nextTick(()=>C.value=Y)),watch(E,()=>{if(e.marks){if(O.value)return;O.value=!0,nextTick(()=>{O.value=!1})}nextTick(j)}),onBeforeUnmount(()=>{he()});const ve=computed(()=>{const{self:{markFontSize:W,railColor:Y,railColorHover:X,fillColor:ee,fillColorHover:re,handleColor:oe,opacityDisabled:me,dotColor:ae,dotColorModal:ge,handleBoxShadow:Te,handleBoxShadowHover:Ce,handleBoxShadowActive:Ee,handleBoxShadowFocus:we,dotBorder:Ae,dotBoxShadow:Pe,railHeight:ke,railWidthVertical:xe,handleSize:Ie,dotHeight:Re,dotWidth:Me,dotBorderRadius:De,fontSize:Oe,dotBorderActive:Le,dotColorPopover:Be},common:{cubicBezierEaseInOut:Fe}}=s.value;return{"--n-bezier":Fe,"--n-dot-border":Ae,"--n-dot-border-active":Le,"--n-dot-border-radius":De,"--n-dot-box-shadow":Pe,"--n-dot-color":ae,"--n-dot-color-modal":ge,"--n-dot-color-popover":Be,"--n-dot-height":Re,"--n-dot-width":Me,"--n-fill-color":ee,"--n-fill-color-hover":re,"--n-font-size":Oe,"--n-handle-box-shadow":Te,"--n-handle-box-shadow-active":Ee,"--n-handle-box-shadow-focus":we,"--n-handle-box-shadow-hover":Ce,"--n-handle-color":oe,"--n-handle-size":Ie,"--n-opacity-disabled":me,"--n-rail-color":Y,"--n-rail-color-hover":X,"--n-rail-height":ke,"--n-rail-width-vertical":xe,"--n-mark-font-size":W}}),pe=n?useThemeClass("slider",void 0,ve,e):void 0,ce=computed(()=>{const{self:{fontSize:W,indicatorColor:Y,indicatorBoxShadow:X,indicatorTextColor:ee,indicatorBorderRadius:re}}=s.value;return{"--n-font-size":W,"--n-indicator-border-radius":re,"--n-indicator-box-shadow":X,"--n-indicator-color":Y,"--n-indicator-text-color":ee}}),fe=n?useThemeClass("slider-indicator",void 0,ce,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:f,mergedValue:E,mergedDisabled:g,mergedPlacement:A,isMounted:isMounted(),adjustedTo:useAdjustedTo(e),dotTransitionDisabled:O,markInfos:F,isShowTooltip:K,shouldKeepTooltipTransition:z,handleRailRef:a,setHandleRefs:u,setFollowerRefs:d,fillStyle:H,getHandleStyle:U,activeIndex:R,arrifiedValues:S,followerEnabledIndexSet:m,handleRailMouseDown:ue,handleHandleFocus:_e,handleHandleBlur:Se,handleHandleMouseEnter:be,handleHandleMouseLeave:ye,handleRailKeyDown:se,indicatorCssVars:n?void 0:ce,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:n?void 0:ve,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h$1("div",{class:[`${t}-slider`,r,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},h$1("div",{class:`${t}-slider-rail`},h$1("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?h$1("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(s=>h$1("div",{key:s.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:s.active}],style:s.style}))):null,h$1("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((s,a)=>{const l=this.isShowTooltip(a);return h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1("div",{ref:this.setHandleRefs(a),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(s,a),onFocus:()=>{this.handleHandleFocus(a)},onBlur:()=>{this.handleHandleBlur(a)},onMouseenter:()=>{this.handleHandleMouseEnter(a)},onMouseleave:()=>{this.handleHandleMouseLeave(a)}},resolveSlot(this.$slots.thumb,()=>[h$1("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&h$1(VFollower,{ref:this.setFollowerRefs(a),show:l,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(a),teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>h$1(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(a),onEnter:()=>{this.followerEnabledIndexSet.add(a)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(a)}},{default:()=>{var u;return l?((u=this.indicatorOnRender)===null||u===void 0||u.call(this),h$1("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof n=="function"?n(s):s)):null}})})]})})),this.marks?h$1("div",{class:`${t}-slider-marks`},this.markInfos.map(s=>h$1("div",{key:s.label,class:`${t}-slider-mark`,style:s.style},s.label))):null))}}),iconBack=""+new URL("back-137ab198.svg",import.meta.url).href,playContent="_playContent_3dolj_1",coursewarePlay="_coursewarePlay_3dolj_9",playModel="_playModel_3dolj_15",headerContainer="_headerContainer_3dolj_24",backBtn="_backBtn_3dolj_42",headRight="_headRight_3dolj_55",rightBtn="_rightBtn_3dolj_64",menu="_menu_3dolj_76",tabsContent="_tabsContent_3dolj_86",wraps="_wraps_3dolj_97",itemDiv="_itemDiv_3dolj_104",itemActive$2="_itemActive_3dolj_117",acitveAnimation="_acitveAnimation_3dolj_120",show="_show_3dolj_123",hide$2="_hide_3dolj_126",rightFixedBtns="_rightFixedBtns_3dolj_139",fullBtn="_fullBtn_3dolj_146",btnsDisabled="_btnsDisabled_3dolj_165",popup="_popup_3dolj_169",overlayClass="_overlayClass_3dolj_173",loadWrap="_loadWrap_3dolj_201",styles$5={playContent,coursewarePlay,playModel,headerContainer,backBtn,headRight,rightBtn,menu,tabsContent,wraps,itemDiv,itemActive:itemActive$2,acitveAnimation,show,hide:hide$2,rightFixedBtns,fullBtn,btnsDisabled,popup,overlayClass,loadWrap},musicScore="_musicScore_1dh20_1",container$2="_container_1dh20_8",musicModel="_musicModel_1dh20_16",errorModel="_errorModel_1dh20_23",startBtn="_startBtn_1dh20_35",loading="_loading_1dh20_44",skeletonWrap="_skeletonWrap_1dh20_50",skeleton="_skeleton_1dh20_50",styles$4={musicScore,container:container$2,musicModel,errorModel,startBtn,loading,skeletonWrap,skeleton},iconStart=""+new URL("icon-start-4118ae28.svg",import.meta.url).href,MusicScore=defineComponent({name:"musicScore",props:{pageVisibility:{type:String,default:""},show:{type:Boolean,default:!1},music:{type:Object,default:()=>{}},activeModel:{type:Boolean}},emits:["setIframe"],setup(e,{emit:t}){const r=browser();useRoute();const n=ref(!1);watch(()=>e.pageVisibility,_=>{var E,S;_=="hidden"&&(n.value=!1),_=="hidden"&&e.show&&((S=(E=s.value)==null?void 0:E.contentWindow)==null||S.postMessage({api:"setPlayState"},"*"))}),watch(()=>e.show,_=>{var E,S;_||(S=(E=s.value)==null?void 0:E.contentWindow)==null||S.postMessage({api:"setPlayState"},"*")});const s=ref(),a=ref(!1),l=ref(!1),u=ref(!1),p=ref(!1),d=storage.get(ACCESS_TOKEN),m=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;let b=queryString.stringifyUrl({url:m+"/instrument",query:{id:e.music.content,modelType:"practise",Authorization:d,showGuide:!0}});const g=()=>{fetch(b).then(()=>{u.value=!0,l.value=!1}).catch(_=>{l.value=!0})};watch(e.music,()=>{u.value||(l.value=!1,e.music.display&&g())});const y=()=>{var k;if(!((k=state.user.data)!=null&&k.vipMember)||n.value)return;r.ios||(n.value=!0);const _=storage.get(ACCESS_TOKEN),E=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;let S=queryString.stringifyUrl({url:E+"/instrument",query:{id:e.music.content,Authorization:_,showGuide:!0}});postMessage({api:"openAccompanyWebView",content:{url:S,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,c_orientation:0}},()=>{r.ios&&(n.value=!0)})},f=async()=>{const _=await request.get("/edu-app/user/getUserInfo",{initRequest:!0,requestType:"form",hideLoading:!0});(_==null?void 0:_.code)===200&&(state.user.data.vipMember=_.data.vipMember)};return listenerMessage("webViewOnResume",()=>{n.value=!1,f()}),()=>{var _;return createVNode("div",{class:styles$4.musicScore},[createVNode("iframe",{ref:s,onLoad:E=>{t("setIframe",s.value),a.value=!0},class:[styles$4.container,"musicIframe"],frameborder:"0",src:b},null),a.value&&createVNode("div",{style:{display:e.activeModel||!((_=state.user.data)!=null&&_.vipMember)?"":"none"},class:styles$4.startBtn,onClick:E=>{E.stopPropagation(),y()}},[createVNode("img",{src:iconStart},null)]),createVNode("div",{class:styles$4.skeletonWrap},[createVNode(Skeleton,{class:styles$4.skeleton,row:8},null)]),createVNode(Popup,{teleport:"body",class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:p.value,"onUpdate:show":E=>p.value=E},{default:()=>[createVNode(TheVip,{onClose:E=>{E&&postMessage({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),p.value=!1}},null)]})])}}}),iconMenu=""+new URL("icon-menu-107c1ebd.svg",import.meta.url).href,iconChange=""+new URL("icon-change-4e3ae26f.svg",import.meta.url).href,iconUp=""+new URL("icon-up-44f779eb.svg",import.meta.url).href,iconDown=""+new URL("icon-down-254707d8.svg",import.meta.url).href,container$1="_container_eyzhy_1",pointHead$1="_pointHead_eyzhy_12",content$3="_content_eyzhy_24",item$1="_item_eyzhy_34",cover="_cover_eyzhy_41",title="_title_eyzhy_50",tag="_tag_eyzhy_59",itemActive$1="_itemActive_eyzhy_75",styles$3={container:container$1,pointHead:pointHead$1,content:content$3,item:item$1,cover,title,tag,itemActive:itemActive$1},iconMulv=""+new URL("icon-mulv-62ebfce7.svg",import.meta.url).href,Points=defineComponent({name:"points",props:{data:{type:Array,default:()=>[]},itemActive:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){const r=useRoute(),n={SONG:"音频",VIDEO:"视频",IMG:"图片",MUSIC:"乐谱"};return()=>createVNode("div",{class:styles$3.container},[createVNode("div",{class:styles$3.pointHead},[createVNode("img",{src:iconMulv},null),r.query.name]),createVNode("div",{class:styles$3.content},[e.data.map((s,a)=>createVNode("div",{class:[styles$3.item,e.itemActive==s.id?styles$3.itemActive:""],onClick:()=>{t("handleSelect",{itemActive:s.id})}},[createVNode("div",{class:styles$3.cover},[createVNode("img",{src:s.url},null)]),createVNode("div",{class:styles$3.title},[createVNode("div",{class:styles$3.tag},[n[s.type]]),createVNode("div",null,[s.name])])]))])])}});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,n=e.length,s;for(r=0;r<n;r+=1){s=e[r].prototype;for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t.prototype[a]=s[a])}}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,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].pause()},resume:function(){var r,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].resume()},setRate:function(r){var n,s=this.audios.length;for(n=0;n<s;n+=1)this.audios[n].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,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(r,n){var s=0,a=[],l;switch(r){case"int16":case"uint8c":l=1;break;default:l=1.1;break}for(s=0;s<n;s+=1)a.push(l);return a}function t(r,n){return r==="float32"?new Float32Array(n):r==="int16"?new Int16Array(n):r==="uint8c"?new Uint8ClampedArray(n):e(r,n)}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),n,s=e.length;for(n=0;n<s;n+=1)r[n]=Math.abs(e[n]);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,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<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 n,s,a,l,u,p,d,m;switch(l=Math.floor(e*6),u=e*6-l,p=r*(1-t),d=r*(1-u*t),m=r*(1-(1-u)*t),l%6){case 0:n=r,s=m,a=p;break;case 1:n=d,s=r,a=p;break;case 2:n=p,s=r,a=m;break;case 3:n=p,s=d,a=r;break;case 4:n=m,s=p,a=r;break;case 5:n=r,s=p,a=d;break}return[n,s,a]}function RGBtoHSV(e,t,r){var n=Math.max(e,t,r),s=Math.min(e,t,r),a=n-s,l,u=n===0?0:a/n,p=n/255;switch(n){case s:l=0;break;case e:l=t-r+a*(t<r?6:0),l/=6*a;break;case t:l=r-e+a*2,l/=6*a;break;case r:l=e-t+a*4,l/=6*a;break}return[l,u,p]}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(n,s,a){return n<0&&(n=0),s<0&&(s=0),a<0&&(a=0),"#"+e[n]+e[s]+e[a]}}(),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,n,s={onmessage:function(){},postMessage:function(y){r({data:y})}},a={postMessage:function(y){s.onmessage({data:y})}};function l(g){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",g.toString()],{type:"text/javascript"}),f=URL.createObjectURL(y);return new Worker(f)}return r=g,s}function u(){n||(n=l(function(y){function f(){function E(z,L){var j,M,D=z.length,N,B,G,q;for(M=0;M<D;M+=1)if(j=z[M],"ks"in j&&!j.completed){if(j.completed=!0,j.hasMask){var Q=j.masksProperties;for(B=Q.length,N=0;N<B;N+=1)if(Q[N].pt.k.i)R(Q[N].pt.k);else for(q=Q[N].pt.k.length,G=0;G<q;G+=1)Q[N].pt.k[G].s&&R(Q[N].pt.k[G].s[0]),Q[N].pt.k[G].e&&R(Q[N].pt.k[G].e[0])}j.ty===0?(j.layers=A(j.refId,L),E(j.layers,L)):j.ty===4?I(j.shapes):j.ty===5&&U(j)}}function S(z,L){if(z){var j=0,M=z.length;for(j=0;j<M;j+=1)z[j].t===1&&(z[j].data.layers=A(z[j].data.refId,L),E(z[j].data.layers,L))}}function k(z,L){for(var j=0,M=L.length;j<M;){if(L[j].id===z)return L[j];j+=1}return null}function A(z,L){var j=k(z,L);return j?j.layers.__used?JSON.parse(JSON.stringify(j.layers)):(j.layers.__used=!0,j.layers):null}function I(z){var L,j=z.length,M,D;for(L=j-1;L>=0;L-=1)if(z[L].ty==="sh")if(z[L].ks.k.i)R(z[L].ks.k);else for(D=z[L].ks.k.length,M=0;M<D;M+=1)z[L].ks.k[M].s&&R(z[L].ks.k[M].s[0]),z[L].ks.k[M].e&&R(z[L].ks.k[M].e[0]);else z[L].ty==="gr"&&I(z[L].it)}function R(z){var L,j=z.i.length;for(L=0;L<j;L+=1)z.i[L][0]+=z.v[L][0],z.i[L][1]+=z.v[L][1],z.o[L][0]+=z.v[L][0],z.o[L][1]+=z.v[L][1]}function C(z,L){var j=L?L.split("."):[100,100,100];return z[0]>j[0]?!0:j[0]>z[0]?!1:z[1]>j[1]?!0:j[1]>z[1]?!1:z[2]>j[2]?!0:j[2]>z[2]?!1:null}var x=function(){var z=[4,4,14];function L(M){var D=M.t.d;M.t.d={k:[{s:D,t:0}]}}function j(M){var D,N=M.length;for(D=0;D<N;D+=1)M[D].ty===5&&L(M[D])}return function(M){if(C(z,M.v)&&(j(M.layers),M.assets)){var D,N=M.assets.length;for(D=0;D<N;D+=1)M.assets[D].layers&&j(M.assets[D].layers)}}}(),P=function(){var z=[4,7,99];return function(L){if(L.chars&&!C(z,L.v)){var j,M=L.chars.length;for(j=0;j<M;j+=1){var D=L.chars[j];D.data&&D.data.shapes&&(I(D.data.shapes),D.data.ip=0,D.data.op=99999,D.data.st=0,D.data.sr=1,D.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}},L.chars[j].t||(D.data.shapes.push({ty:"no"}),D.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"})))}}}}(),O=function(){var z=[5,7,15];function L(M){var D=M.t.p;typeof D.a=="number"&&(D.a={a:0,k:D.a}),typeof D.p=="number"&&(D.p={a:0,k:D.p}),typeof D.r=="number"&&(D.r={a:0,k:D.r})}function j(M){var D,N=M.length;for(D=0;D<N;D+=1)M[D].ty===5&&L(M[D])}return function(M){if(C(z,M.v)&&(j(M.layers),M.assets)){var D,N=M.assets.length;for(D=0;D<N;D+=1)M.assets[D].layers&&j(M.assets[D].layers)}}}(),V=function(){var z=[4,1,9];function L(M){var D,N=M.length,B,G;for(D=0;D<N;D+=1)if(M[D].ty==="gr")L(M[D].it);else if(M[D].ty==="fl"||M[D].ty==="st")if(M[D].c.k&&M[D].c.k[0].i)for(G=M[D].c.k.length,B=0;B<G;B+=1)M[D].c.k[B].s&&(M[D].c.k[B].s[0]/=255,M[D].c.k[B].s[1]/=255,M[D].c.k[B].s[2]/=255,M[D].c.k[B].s[3]/=255),M[D].c.k[B].e&&(M[D].c.k[B].e[0]/=255,M[D].c.k[B].e[1]/=255,M[D].c.k[B].e[2]/=255,M[D].c.k[B].e[3]/=255);else M[D].c.k[0]/=255,M[D].c.k[1]/=255,M[D].c.k[2]/=255,M[D].c.k[3]/=255}function j(M){var D,N=M.length;for(D=0;D<N;D+=1)M[D].ty===4&&L(M[D].shapes)}return function(M){if(C(z,M.v)&&(j(M.layers),M.assets)){var D,N=M.assets.length;for(D=0;D<N;D+=1)M.assets[D].layers&&j(M.assets[D].layers)}}}(),H=function(){var z=[4,4,18];function L(M){var D,N=M.length,B,G;for(D=N-1;D>=0;D-=1)if(M[D].ty==="sh")if(M[D].ks.k.i)M[D].ks.k.c=M[D].closed;else for(G=M[D].ks.k.length,B=0;B<G;B+=1)M[D].ks.k[B].s&&(M[D].ks.k[B].s[0].c=M[D].closed),M[D].ks.k[B].e&&(M[D].ks.k[B].e[0].c=M[D].closed);else M[D].ty==="gr"&&L(M[D].it)}function j(M){var D,N,B=M.length,G,q,Q,Z;for(N=0;N<B;N+=1){if(D=M[N],D.hasMask){var te=D.masksProperties;for(q=te.length,G=0;G<q;G+=1)if(te[G].pt.k.i)te[G].pt.k.c=te[G].cl;else for(Z=te[G].pt.k.length,Q=0;Q<Z;Q+=1)te[G].pt.k[Q].s&&(te[G].pt.k[Q].s[0].c=te[G].cl),te[G].pt.k[Q].e&&(te[G].pt.k[Q].e[0].c=te[G].cl)}D.ty===4&&L(D.shapes)}}return function(M){if(C(z,M.v)&&(j(M.layers),M.assets)){var D,N=M.assets.length;for(D=0;D<N;D+=1)M.assets[D].layers&&j(M.assets[D].layers)}}}();function F(z){z.__complete||(V(z),x(z),P(z),O(z),H(z),E(z.layers,z.assets),S(z.chars,z.assets),z.__complete=!0)}function U(z){z.t.a.length===0&&"m"in z.t.p}var K={};return K.completeData=F,K.checkColors=V,K.checkChars=P,K.checkPathProperties=O,K.checkShapes=H,K.completeLayers=E,K}if(a.dataManager||(a.dataManager=f()),a.assetLoader||(a.assetLoader=function(){function E(k){var A=k.getResponseHeader("content-type");return A&&k.responseType==="json"&&A.indexOf("json")!==-1||k.response&&_typeof$5(k.response)==="object"?k.response:k.response&&typeof k.response=="string"?JSON.parse(k.response):k.responseText?JSON.parse(k.responseText):null}function S(k,A,I,R){var C,x=new XMLHttpRequest;try{x.responseType="json"}catch(P){}x.onreadystatechange=function(){if(x.readyState===4)if(x.status===200)C=E(x),I(C);else try{C=E(x),I(C)}catch(P){R&&R(P)}};try{x.open(["G","E","T"].join(""),k,!0)}catch(P){x.open(["G","E","T"].join(""),A+"/"+k,!0)}x.send()}return{load:S}}()),y.data.type==="loadAnimation")a.assetLoader.load(y.data.path,y.data.fullPath,function(E){a.dataManager.completeData(E),a.postMessage({id:y.data.id,payload:E,status:"success"})},function(){a.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var _=y.data.animation;a.dataManager.completeData(_),a.postMessage({id:y.data.id,payload:_,status:"success"})}else y.data.type==="loadData"&&a.assetLoader.load(y.data.path,y.data.fullPath,function(E){a.postMessage({id:y.data.id,payload:E,status:"success"})},function(){a.postMessage({id:y.data.id,status:"error"})})}),n.onmessage=function(g){var y=g.data,f=y.id,_=t[f];t[f]=null,y.status==="success"?_.onComplete(y.payload):_.onError&&_.onError()})}function p(g,y){e+=1;var f="processId_"+e;return t[f]={onComplete:g,onError:y},f}function d(g,y,f){u();var _=p(y,f);n.postMessage({type:"loadAnimation",path:g,fullPath:window.location.origin+window.location.pathname,id:_})}function m(g,y,f){u();var _=p(y,f);n.postMessage({type:"loadData",path:g,fullPath:window.location.origin+window.location.pathname,id:_})}function b(g,y,f){u();var _=p(y,f);n.postMessage({type:"complete",animation:g,id:_})}return{loadAnimation:d,loadData:m,completeAnimation:b}}(),ImagePreloader=function(){var e=function(){var S=createTag("canvas");S.width=1,S.height=1;var k=S.getContext("2d");return k.fillStyle="rgba(0,0,0,0)",k.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 n(S,k,A){var I="";if(S.e)I=S.p;else if(k){var R=S.p;R.indexOf("images/")!==-1&&(R=R.split("/")[1]),I=k+R}else I=A,I+=S.u?S.u:"",I+=S.p;return I}function s(S){var k=0,A=setInterval(function(){var I=S.getBBox();(I.width||k>500)&&(this._imageLoaded(),clearInterval(A)),k+=1}.bind(this),50)}function a(S){var k=n(S,this.assetsPath,this.path),A=createNS("image");isSafari?this.testImageLoaded(A):A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",function(){I.img=e,this._imageLoaded()}.bind(this),!1),A.setAttributeNS("http://www.w3.org/1999/xlink","href",k),this._elementHelper.append?this._elementHelper.append(A):this._elementHelper.appendChild(A);var I={img:A,assetData:S};return I}function l(S){var k=n(S,this.assetsPath,this.path),A=createTag("img");A.crossOrigin="anonymous",A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",function(){I.img=e,this._imageLoaded()}.bind(this),!1),A.src=k;var I={img:A,assetData:S};return I}function u(S){var k={assetData:S},A=n(S,this.assetsPath,this.path);return dataManager.loadData(A,function(I){k.img=I,this._footageLoaded()}.bind(this),function(){k.img={},this._footageLoaded()}.bind(this)),k}function p(S,k){this.imagesLoadedCb=k;var A,I=S.length;for(A=0;A<I;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 d(S){this.path=S||""}function m(S){this.assetsPath=S||""}function b(S){for(var k=0,A=this.images.length;k<A;){if(this.images[k].assetData===S)return this.images[k].img;k+=1}return null}function g(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function f(){return this.totalFootages===this.loadedFootagesCount}function _(S,k){S==="svg"?(this._elementHelper=k,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=s.bind(this),this.createFootageData=u.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:p,setAssetsPath:m,setPath:d,loadedImages:y,loadedFootages:f,destroy:g,getAsset:b,createImgData:l,createImageData:a,imageLoaded:t,footageLoaded:r,setCacheType:_},E}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var n=this._cbs[t],s=0;s<n.length;s+=1)n[s](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 n=0,s=this._cbs[t].length;n<s;)this._cbs[t][n]===r&&(this._cbs[t].splice(n,1),n-=1,s-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var r=t.split(`\r
`),n={},s,a=0,l=0;l<r.length;l+=1)s=r[l].split(":"),s.length===2&&(n[s[0]]=s[1].trim(),a+=1);if(a===0)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var s=t[n],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[n].cm)}catch(l){try{a.payload=e(t[n].cm)}catch(u){a.payload={name:t[n].cm}}}r.push(a)}return r}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var n=0,s=this.compositions.length;n<s;){if(this.compositions[n].data&&this.compositions[n].data.nm===r)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=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},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var a=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;r.autoplay=a!=="false",r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var l=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";l==="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,n=t.length,s=e.layers,a,l=s.length;for(a=0;a<l;a+=1)for(r=0;r<n;){if(t[r].id===s[a].id){t[r]=s[a];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(n=e.assets.length,r=0;r<n;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,n=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,n)},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 n=Number(e);if(isNaN(n)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.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 n=Number(e);if(isNaN(n)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(n,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,n=e.length;for(r=0;r<n;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 n=this.renderer.getElementByPath(e);n.updateDocumentData(t,r)}catch(s){}},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,n=0,s=0,a=!0,l=!1;function u(L){for(var j=0,M=L.target;j<n;)t[j].animation===M&&(t.splice(j,1),j-=1,n-=1,M.isPaused||b()),j+=1}function p(L,j){if(!L)return null;for(var M=0;M<n;){if(t[M].elem===L&&t[M].elem!==null)return t[M].animation;M+=1}var D=new AnimationItem;return g(D,L),D.setData(L,j),D}function d(){var L,j=t.length,M=[];for(L=0;L<j;L+=1)M.push(t[L].animation);return M}function m(){s+=1,V()}function b(){s-=1}function g(L,j){L.addEventListener("destroy",u),L.addEventListener("_active",m),L.addEventListener("_idle",b),t.push({elem:j,animation:L}),n+=1}function y(L){var j=new AnimationItem;return g(j,null),j.setParams(L),j}function f(L,j){var M;for(M=0;M<n;M+=1)t[M].animation.setSpeed(L,j)}function _(L,j){var M;for(M=0;M<n;M+=1)t[M].animation.setDirection(L,j)}function E(L){var j;for(j=0;j<n;j+=1)t[j].animation.play(L)}function S(L){var j=L-r,M;for(M=0;M<n;M+=1)t[M].animation.advanceTime(j);r=L,s&&!l?window.requestAnimationFrame(S):a=!0}function k(L){r=L,window.requestAnimationFrame(S)}function A(L){var j;for(j=0;j<n;j+=1)t[j].animation.pause(L)}function I(L,j,M){var D;for(D=0;D<n;D+=1)t[D].animation.goToAndStop(L,j,M)}function R(L){var j;for(j=0;j<n;j+=1)t[j].animation.stop(L)}function C(L){var j;for(j=0;j<n;j+=1)t[j].animation.togglePause(L)}function x(L){var j;for(j=n-1;j>=0;j-=1)t[j].animation.destroy(L)}function P(L,j,M){var D=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),N,B=D.length;for(N=0;N<B;N+=1)M&&D[N].setAttribute("data-bm-type",M),p(D[N],L);if(j&&B===0){M||(M="svg");var G=document.getElementsByTagName("body")[0];G.innerText="";var q=createTag("div");q.style.width="100%",q.style.height="100%",q.setAttribute("data-bm-type",M),G.appendChild(q),p(q,L)}}function O(){var L;for(L=0;L<n;L+=1)t[L].animation.resize()}function V(){!l&&s&&a&&(window.requestAnimationFrame(k),a=!1)}function H(){l=!0}function F(){l=!1,V()}function U(L,j){var M;for(M=0;M<n;M+=1)t[M].animation.setVolume(L,j)}function K(L){var j;for(j=0;j<n;j+=1)t[j].animation.mute(L)}function z(L){var j;for(j=0;j<n;j+=1)t[j].animation.unmute(L)}return e.registerAnimation=p,e.loadAnimation=y,e.setSpeed=f,e.setDirection=_,e.play=E,e.pause=A,e.stop=R,e.togglePause=C,e.searchAnimations=P,e.resize=O,e.goToAndStop=I,e.destroy=x,e.freeze=H,e.unfreeze=F,e.setVolume=U,e.mute=K,e.unmute=z,e.getRegisteredAnimations=d,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var t={};function r(k,A,I,R,C){var x=C||("bez_"+k+"_"+A+"_"+I+"_"+R).replace(/\./g,"p");if(t[x])return t[x];var P=new S([k,A,I,R]);return t[x]=P,P}var n=4,s=.001,a=1e-7,l=10,u=11,p=1/(u-1),d=typeof Float32Array=="function";function m(k,A){return 1-3*A+3*k}function b(k,A){return 3*A-6*k}function g(k){return 3*k}function y(k,A,I){return((m(A,I)*k+b(A,I))*k+g(A))*k}function f(k,A,I){return 3*m(A,I)*k*k+2*b(A,I)*k+g(A)}function _(k,A,I,R,C){var x,P,O=0;do P=A+(I-A)/2,x=y(P,R,C)-k,x>0?I=P:A=P;while(Math.abs(x)>a&&++O<l);return P}function E(k,A,I,R){for(var C=0;C<n;++C){var x=f(A,I,R);if(x===0)return A;var P=y(A,I,R)-k;A-=P/x}return A}function S(k){this._p=k,this._mSampleValues=d?new Float32Array(u):new Array(u),this._precomputed=!1,this.get=this.get.bind(this)}return S.prototype={get:function(A){var I=this._p[0],R=this._p[1],C=this._p[2],x=this._p[3];return this._precomputed||this._precompute(),I===R&&C===x?A:A===0?0:A===1?1:y(this._getTForX(A),R,x)},_precompute:function(){var A=this._p[0],I=this._p[1],R=this._p[2],C=this._p[3];this._precomputed=!0,(A!==I||R!==C)&&this._calcSampleValues()},_calcSampleValues:function(){for(var A=this._p[0],I=this._p[2],R=0;R<u;++R)this._mSampleValues[R]=y(R*p,A,I)},_getTForX:function(A){for(var I=this._p[0],R=this._p[2],C=this._mSampleValues,x=0,P=1,O=u-1;P!==O&&C[P]<=A;++P)x+=p;--P;var V=(A-C[P])/(C[P+1]-C[P]),H=x+V*p,F=f(H,I,R);return F>=s?E(A,H,I,R):F===0?H:_(A,x,x+p,I,R)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,r){var n=0,s=e,a=createSizedArray(s),l={newElement:u,release:p};function u(){var d;return n?(n-=1,d=a[n]):d=t(),d}function p(d){n===s&&(a=pooling.double(a),s*=2),r&&r(d),a[n]=d,n+=1}return l}}(),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 n,s=r.lengths.length;for(n=0;n<s;n+=1)bezierLengthPool.release(r.lengths[n]);r.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(g,y,f,_,E,S){var k=g*_+y*E+f*S-E*_-S*g-f*y;return k>-.001&&k<.001}function r(g,y,f,_,E,S,k,A,I){if(f===0&&S===0&&I===0)return t(g,y,_,E,k,A);var R=e.sqrt(e.pow(_-g,2)+e.pow(E-y,2)+e.pow(S-f,2)),C=e.sqrt(e.pow(k-g,2)+e.pow(A-y,2)+e.pow(I-f,2)),x=e.sqrt(e.pow(k-_,2)+e.pow(A-E,2)+e.pow(I-S,2)),P;return R>C?R>x?P=R-C-x:P=x-C-R:x>C?P=x-C-R:P=C-R-x,P>-1e-4&&P<1e-4}var n=function(){return function(g,y,f,_){var E=getDefaultCurveSegments(),S,k,A,I,R,C=0,x,P=[],O=[],V=bezierLengthPool.newElement();for(A=f.length,S=0;S<E;S+=1){for(R=S/(E-1),x=0,k=0;k<A;k+=1)I=bmPow(1-R,3)*g[k]+3*bmPow(1-R,2)*R*f[k]+3*(1-R)*bmPow(R,2)*_[k]+bmPow(R,3)*y[k],P[k]=I,O[k]!==null&&(x+=bmPow(P[k]-O[k],2)),O[k]=P[k];x&&(x=bmSqrt(x),C+=x),V.percents[S]=R,V.lengths[S]=C}return V.addedLength=C,V}}();function s(g){var y=segmentsLengthPool.newElement(),f=g.c,_=g.v,E=g.o,S=g.i,k,A=g._length,I=y.lengths,R=0;for(k=0;k<A-1;k+=1)I[k]=n(_[k],_[k+1],E[k],S[k+1]),R+=I[k].addedLength;return f&&A&&(I[k]=n(_[k],_[0],E[k],S[0]),R+=I[k].addedLength),y.totalLength=R,y}function a(g){this.segmentLength=0,this.points=new Array(g)}function l(g,y){this.partialLength=g,this.point=y}var u=function(){var g={};return function(y,f,_,E){var S=(y[0]+"_"+y[1]+"_"+f[0]+"_"+f[1]+"_"+_[0]+"_"+_[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!g[S]){var k=getDefaultCurveSegments(),A,I,R,C,x,P=0,O,V,H=null;y.length===2&&(y[0]!==f[0]||y[1]!==f[1])&&t(y[0],y[1],f[0],f[1],y[0]+_[0],y[1]+_[1])&&t(y[0],y[1],f[0],f[1],f[0]+E[0],f[1]+E[1])&&(k=2);var F=new a(k);for(R=_.length,A=0;A<k;A+=1){for(V=createSizedArray(R),x=A/(k-1),O=0,I=0;I<R;I+=1)C=bmPow(1-x,3)*y[I]+3*bmPow(1-x,2)*x*(y[I]+_[I])+3*(1-x)*bmPow(x,2)*(f[I]+E[I])+bmPow(x,3)*f[I],V[I]=C,H!==null&&(O+=bmPow(V[I]-H[I],2));O=bmSqrt(O),P+=O,F.points[A]=new l(O,V),H=V}F.segmentLength=P,g[S]=F}return g[S]}}();function p(g,y){var f=y.percents,_=y.lengths,E=f.length,S=bmFloor((E-1)*g),k=g*y.addedLength,A=0;if(S===E-1||S===0||k===_[S])return f[S];for(var I=_[S]>k?-1:1,R=!0;R;)if(_[S]<=k&&_[S+1]>k?(A=(k-_[S])/(_[S+1]-_[S]),R=!1):S+=I,S<0||S>=E-1){if(S===E-1)return f[S];R=!1}return f[S]+(f[S+1]-f[S])*A}function d(g,y,f,_,E,S){var k=p(E,S),A=1-k,I=e.round((A*A*A*g[0]+(k*A*A+A*k*A+A*A*k)*f[0]+(k*k*A+A*k*k+k*A*k)*_[0]+k*k*k*y[0])*1e3)/1e3,R=e.round((A*A*A*g[1]+(k*A*A+A*k*A+A*A*k)*f[1]+(k*k*A+A*k*k+k*A*k)*_[1]+k*k*k*y[1])*1e3)/1e3;return[I,R]}var m=createTypedArray("float32",8);function b(g,y,f,_,E,S,k){E<0?E=0:E>1&&(E=1);var A=p(E,k);S=S>1?1:S;var I=p(S,k),R,C=g.length,x=1-A,P=1-I,O=x*x*x,V=A*x*x*3,H=A*A*x*3,F=A*A*A,U=x*x*P,K=A*x*P+x*A*P+x*x*I,z=A*A*P+x*A*I+A*x*I,L=A*A*I,j=x*P*P,M=A*P*P+x*I*P+x*P*I,D=A*I*P+x*I*I+A*P*I,N=A*I*I,B=P*P*P,G=I*P*P+P*I*P+P*P*I,q=I*I*P+P*I*I+I*P*I,Q=I*I*I;for(R=0;R<C;R+=1)m[R*4]=e.round((O*g[R]+V*f[R]+H*_[R]+F*y[R])*1e3)/1e3,m[R*4+1]=e.round((U*g[R]+K*f[R]+z*_[R]+L*y[R])*1e3)/1e3,m[R*4+2]=e.round((j*g[R]+M*f[R]+D*_[R]+N*y[R])*1e3)/1e3,m[R*4+3]=e.round((B*g[R]+G*f[R]+q*_[R]+Q*y[R])*1e3)/1e3;return m}return{getSegmentsLength:s,getNewSegment:b,getPointInSegment:d,buildBezierData:u,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,n;this.propType==="multidimensional"&&(n=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,a=s,l=this.keyframes.length-1,u=!0,p,d,m;u;){if(p=this.keyframes[a],d=this.keyframes[a+1],a===l-1&&e>=d.t-r){p.h&&(p=d),s=0;break}if(d.t-r>e){s=a;break}a<l-1?a+=1:(s=0,u=!1)}m=this.keyframesMetadata[a]||{};var b,g,y,f,_,E,S=d.t-r,k=p.t-r,A;if(p.to){m.bezierData||(m.bezierData=bez.buildBezierData(p.s,d.s||p.e,p.to,p.ti));var I=m.bezierData;if(e>=S||e<k){var R=e>=S?I.points.length-1:0;for(g=I.points[R].point.length,b=0;b<g;b+=1)n[b]=I.points[R].point[b]}else{m.__fnct?E=m.__fnct:(E=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y,p.n).get,m.__fnct=E),y=E((e-k)/(S-k));var C=I.segmentLength*y,x,P=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastAddedLength:0;for(_=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastPoint:0,u=!0,f=I.points.length;u;){if(P+=I.points[_].partialLength,C===0||y===0||_===I.points.length-1){for(g=I.points[_].point.length,b=0;b<g;b+=1)n[b]=I.points[_].point[b];break}else if(C>=P&&C<P+I.points[_+1].partialLength){for(x=(C-P)/I.points[_+1].partialLength,g=I.points[_].point.length,b=0;b<g;b+=1)n[b]=I.points[_].point[b]+(I.points[_+1].point[b]-I.points[_].point[b])*x;break}_<f-1?_+=1:u=!1}t._lastPoint=_,t._lastAddedLength=P-I.points[_].partialLength,t._lastKeyframeIndex=a}}else{var O,V,H,F,U;if(l=p.s.length,A=d.s||p.e,this.sh&&p.h!==1)if(e>=S)n[0]=A[0],n[1]=A[1],n[2]=A[2];else if(e<=k)n[0]=p.s[0],n[1]=p.s[1],n[2]=p.s[2];else{var K=createQuaternion(p.s),z=createQuaternion(A),L=(e-k)/(S-k);quaternionToEuler(n,slerp(K,z,L))}else for(a=0;a<l;a+=1)p.h!==1&&(e>=S?y=1:e<k?y=0:(p.o.x.constructor===Array?(m.__fnct||(m.__fnct=[]),m.__fnct[a]?E=m.__fnct[a]:(O=p.o.x[a]===void 0?p.o.x[0]:p.o.x[a],V=p.o.y[a]===void 0?p.o.y[0]:p.o.y[a],H=p.i.x[a]===void 0?p.i.x[0]:p.i.x[a],F=p.i.y[a]===void 0?p.i.y[0]:p.i.y[a],E=BezierFactory.getBezierEasing(O,V,H,F).get,m.__fnct[a]=E)):m.__fnct?E=m.__fnct:(O=p.o.x,V=p.o.y,H=p.i.x,F=p.i.y,E=BezierFactory.getBezierEasing(O,V,H,F).get,p.keyframeMetadata=E),y=E((e-k)/(S-k)))),A=d.s||p.e,U=p.h===1?p.s[a]:p.s[a]+(A[a]-p.s[a])*y,this.propType==="multidimensional"?n[a]=U:n=U}return t.lastIndex=s,n}function slerp(e,t,r){var n=[],s=e[0],a=e[1],l=e[2],u=e[3],p=t[0],d=t[1],m=t[2],b=t[3],g,y,f,_,E;return y=s*p+a*d+l*m+u*b,y<0&&(y=-y,p=-p,d=-d,m=-m,b=-b),1-y>1e-6?(g=Math.acos(y),f=Math.sin(g),_=Math.sin((1-r)*g)/f,E=Math.sin(r*g)/f):(_=1-r,E=r),n[0]=_*s+E*p,n[1]=_*a+E*d,n[2]=_*l+E*m,n[3]=_*u+E*b,n}function quaternionToEuler(e,t){var r=t[0],n=t[1],s=t[2],a=t[3],l=Math.atan2(2*n*a-2*r*s,1-2*n*n-2*s*s),u=Math.asin(2*r*n+2*s*a),p=Math.atan2(2*r*a-2*n*s,1-2*r*r-2*s*s);e[0]=l/degToRads,e[1]=u/degToRads,e[2]=p/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(r/2),l=Math.cos(n/2),u=Math.sin(t/2),p=Math.sin(r/2),d=Math.sin(n/2),m=s*a*l-u*p*d,b=u*p*l+s*a*d,g=u*a*l+s*p*d,y=s*p*l-u*a*d;return[b,g,y,m]}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 n=this.interpolateValue(e,this._caching);this.pv=n}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,n=this.v.length;r<n;)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,n){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=n,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,n){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){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=n,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,n){this.propType="multidimensional";var s,a=t.k.length,l,u,p,d;for(s=0;s<a-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(l=t.k[s].s,u=t.k[s+1].s,p=t.k[s].to,d=t.k[s].ti,(l.length===2&&!(l[0]===u[0]&&l[1]===u[1])&&bez.pointOnLine2D(l[0],l[1],u[0],u[1],l[0]+p[0],l[1]+p[1])&&bez.pointOnLine2D(l[0],l[1],u[0],u[1],u[0]+d[0],u[1]+d[1])||l.length===3&&!(l[0]===u[0]&&l[1]===u[1]&&l[2]===u[2])&&bez.pointOnLine3D(l[0],l[1],l[2],u[0],u[1],u[2],l[0]+p[0],l[1]+p[1],l[2]+p[2])&&bez.pointOnLine3D(l[0],l[1],l[2],u[0],u[1],u[2],u[0]+d[0],u[1]+d[1],u[2]+d[2]))&&(t.k[s].to=null,t.k[s].ti=null),l[0]===u[0]&&l[1]===u[1]&&p[0]===0&&p[1]===0&&d[0]===0&&d[1]===0&&(l.length===2||l[2]===u[2]&&p[2]===0&&d[2]===0)&&(t.k[s].to=null,t.k[s].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=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var m=t.k[0].s.length;for(this.v=createTypedArray("float32",m),this.pv=createTypedArray("float32",m),s=0;s<m;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",m)},this.addEffect=addEffect}var PropertyFactory=function(){function e(r,n,s,a,l){n.sid&&(n=r.globalData.slotManager.getProp(n));var u;if(!n.k.length)u=new ValueProperty(r,n,a,l);else if(typeof n.k[0]=="number")u=new MultiDimensionalProperty(r,n,a,l);else switch(s){case 0:u=new KeyframedValueProperty(r,n,a,l);break;case 1:u=new KeyframedMultidimensionalProperty(r,n,a,l);break}return u.effectsSequence.length&&l.addDynamicProperty(u),u}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,n,s){var a;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[n]||a[n]&&!s)&&(a[n]=pointPool.newElement()),a[n][0]=e,a[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,s,a,l,u){this.setXYAt(e,t,"v",l,u),this.setXYAt(r,n,"o",l,u),this.setXYAt(s,a,"i",l,u)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),s=1);var a=this._length-1,l=this._length,u;for(u=s;u<l;u+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],u,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(s){var a=s._length,l;for(l=0;l<a;l+=1)pointPool.release(s.v[l]),pointPool.release(s.i[l]),pointPool.release(s.o[l]),s.v[l]=null,s.i[l]=null,s.o[l]=null;s._length=0,s.c=!1}function r(s){var a=n.newElement(),l,u=s._length===void 0?s.v.length:s._length;for(a.setLength(u),a.c=s.c,l=0;l<u;l+=1)a.setTripleAt(s.v[l][0],s.v[l][1],s.o[l][0],s.o[l][1],s.i[l][0],s.i[l][1],l);return a}var n=poolFactory(4,e,t);return n.clone=r,n}();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:s,release:a},t=0,r=4,n=createSizedArray(r);function s(){var l;return t?(t-=1,l=n[t]):l=new ShapeCollection,l}function a(l){var u,p=l._length;for(u=0;u<p;u+=1)shapePool.release(l.shapes[u]);l._length=0,t===r&&(n=pooling.double(n),r*=2),n[t]=l,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(S,k,A){var I=A.lastIndex,R,C,x,P,O,V,H,F,U,K=this.keyframes;if(S<K[0].t-this.offsetTime)R=K[0].s[0],x=!0,I=0;else if(S>=K[K.length-1].t-this.offsetTime)R=K[K.length-1].s?K[K.length-1].s[0]:K[K.length-2].e[0],x=!0;else{for(var z=I,L=K.length-1,j=!0,M,D,N;j&&(M=K[z],D=K[z+1],!(D.t-this.offsetTime>S));)z<L-1?z+=1:j=!1;if(N=this.keyframesMetadata[z]||{},x=M.h===1,I=z,!x){if(S>=D.t-this.offsetTime)F=1;else if(S<M.t-this.offsetTime)F=0;else{var B;N.__fnct?B=N.__fnct:(B=BezierFactory.getBezierEasing(M.o.x,M.o.y,M.i.x,M.i.y).get,N.__fnct=B),F=B((S-(M.t-this.offsetTime))/(D.t-this.offsetTime-(M.t-this.offsetTime)))}C=D.s?D.s[0]:M.e[0]}R=M.s[0]}for(V=k._length,H=R.i[0].length,A.lastIndex=I,P=0;P<V;P+=1)for(O=0;O<H;O+=1)U=x?R.i[P][O]:R.i[P][O]+(C.i[P][O]-R.i[P][O])*F,k.i[P][O]=U,U=x?R.o[P][O]:R.o[P][O]+(C.o[P][O]-R.o[P][O])*F,k.o[P][O]=U,U=x?R.v[P][O]:R.v[P][O]+(C.v[P][O]-R.v[P][O])*F,k.v[P][O]=U}function r(){var S=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,A=this.keyframes[this.keyframes.length-1].t-this.offsetTime,I=this._caching.lastFrame;return I!==e&&(I<k&&S<k||I>A&&S>A)||(this._caching.lastIndex=I<S?this._caching.lastIndex:0,this.interpolateShape(S,this.pv,this._caching)),this._caching.lastFrame=S,this.pv}function n(){this.paths=this.localShapeCollection}function s(S,k){if(S._length!==k._length||S.c!==k.c)return!1;var A,I=S._length;for(A=0;A<I;A+=1)if(S.v[A][0]!==k.v[A][0]||S.v[A][1]!==k.v[A][1]||S.o[A][0]!==k.o[A][0]||S.o[A][1]!==k.o[A][1]||S.i[A][0]!==k.i[A][0]||S.i[A][1]!==k.i[A][1])return!1;return!0}function a(S){s(this.v,S)||(this.v=shapePool.clone(S),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function l(){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 k,A=this.effectsSequence.length;for(k=0;k<A;k+=1)S=this.effectsSequence[k](S);this.setVValue(S),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function u(S,k,A){this.propType="shape",this.comp=S.comp,this.container=S,this.elem=S,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var I=A===3?k.pt.k:k.ks.k;this.v=shapePool.clone(I),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function p(S){this.effectsSequence.push(S),this.container.addDynamicProperty(this)}u.prototype.interpolateShape=t,u.prototype.getValue=l,u.prototype.setVValue=a,u.prototype.addEffect=p;function d(S,k,A){this.propType="shape",this.comp=S.comp,this.elem=S,this.container=S,this.offsetTime=S.data.st,this.keyframes=A===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var I=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,I),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}d.prototype.getValue=l,d.prototype.interpolateShape=t,d.prototype.setVValue=a,d.prototype.addEffect=p;var m=function(){var S=roundCorner;function k(A,I){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=I.d,this.elem=A,this.comp=A.comp,this.frameId=-1,this.initDynamicPropertyContainer(A),this.p=PropertyFactory.getProp(A,I.p,1,0,this),this.s=PropertyFactory.getProp(A,I.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return k.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var I=this.p.v[0],R=this.p.v[1],C=this.s.v[0]/2,x=this.s.v[1]/2,P=this.d!==3,O=this.v;O.v[0][0]=I,O.v[0][1]=R-x,O.v[1][0]=P?I+C:I-C,O.v[1][1]=R,O.v[2][0]=I,O.v[2][1]=R+x,O.v[3][0]=P?I-C:I+C,O.v[3][1]=R,O.i[0][0]=P?I-C*S:I+C*S,O.i[0][1]=R-x,O.i[1][0]=P?I+C:I-C,O.i[1][1]=R-x*S,O.i[2][0]=P?I+C*S:I-C*S,O.i[2][1]=R+x,O.i[3][0]=P?I-C:I+C,O.i[3][1]=R+x*S,O.o[0][0]=P?I+C*S:I-C*S,O.o[0][1]=R-x,O.o[1][0]=P?I+C:I-C,O.o[1][1]=R+x*S,O.o[2][0]=P?I-C*S:I+C*S,O.o[2][1]=R+x,O.o[3][0]=P?I-C:I+C,O.o[3][1]=R-x*S}},extendPrototype([DynamicPropertyContainer],k),k}(),b=function(){function S(k,A){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=A,this.frameId=-1,this.d=A.d,this.initDynamicPropertyContainer(k),A.sy===1?(this.ir=PropertyFactory.getProp(k,A.ir,0,0,this),this.is=PropertyFactory.getProp(k,A.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(k,A.pt,0,0,this),this.p=PropertyFactory.getProp(k,A.p,1,0,this),this.r=PropertyFactory.getProp(k,A.r,0,degToRads,this),this.or=PropertyFactory.getProp(k,A.or,0,0,this),this.os=PropertyFactory.getProp(k,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:n,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,I=Math.PI*2/A,R=!0,C=this.or.v,x=this.ir.v,P=this.os.v,O=this.is.v,V=2*Math.PI*C/(A*2),H=2*Math.PI*x/(A*2),F,U,K,z,L=-Math.PI/2;L+=this.r.v;var j=this.data.d===3?-1:1;for(this.v._length=0,F=0;F<A;F+=1){U=R?C:x,K=R?P:O,z=R?V:H;var M=U*Math.cos(L),D=U*Math.sin(L),N=M===0&&D===0?0:D/Math.sqrt(M*M+D*D),B=M===0&&D===0?0:-M/Math.sqrt(M*M+D*D);M+=+this.p.v[0],D+=+this.p.v[1],this.v.setTripleAt(M,D,M-N*z*K*j,D-B*z*K*j,M+N*z*K*j,D+B*z*K*j,F,!0),R=!R,L+=I*j}},convertPolygonToPath:function(){var A=Math.floor(this.pt.v),I=Math.PI*2/A,R=this.or.v,C=this.os.v,x=2*Math.PI*R/(A*4),P,O=-Math.PI*.5,V=this.data.d===3?-1:1;for(O+=this.r.v,this.v._length=0,P=0;P<A;P+=1){var H=R*Math.cos(O),F=R*Math.sin(O),U=H===0&&F===0?0:F/Math.sqrt(H*H+F*F),K=H===0&&F===0?0:-H/Math.sqrt(H*H+F*F);H+=+this.p.v[0],F+=+this.p.v[1],this.v.setTripleAt(H,F,H-U*x*C*V,F-K*x*C*V,H+U*x*C*V,F+K*x*C*V,P,!0),O+=I*V}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],S),S}(),g=function(){function S(k,A){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=A.d,this.initDynamicPropertyContainer(k),this.p=PropertyFactory.getProp(k,A.p,1,0,this),this.s=PropertyFactory.getProp(k,A.s,1,0,this),this.r=PropertyFactory.getProp(k,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],I=this.p.v[1],R=this.s.v[0]/2,C=this.s.v[1]/2,x=bmMin(R,C,this.r.v),P=x*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(A+R,I-C+x,A+R,I-C+x,A+R,I-C+P,0,!0),this.v.setTripleAt(A+R,I+C-x,A+R,I+C-P,A+R,I+C-x,1,!0),x!==0?(this.v.setTripleAt(A+R-x,I+C,A+R-x,I+C,A+R-P,I+C,2,!0),this.v.setTripleAt(A-R+x,I+C,A-R+P,I+C,A-R+x,I+C,3,!0),this.v.setTripleAt(A-R,I+C-x,A-R,I+C-x,A-R,I+C-P,4,!0),this.v.setTripleAt(A-R,I-C+x,A-R,I-C+P,A-R,I-C+x,5,!0),this.v.setTripleAt(A-R+x,I-C,A-R+x,I-C,A-R+P,I-C,6,!0),this.v.setTripleAt(A+R-x,I-C,A+R-P,I-C,A+R-x,I-C,7,!0)):(this.v.setTripleAt(A-R,I+C,A-R+P,I+C,A-R,I+C,2),this.v.setTripleAt(A-R,I-C,A-R,I-C+P,A-R,I-C,3))):(this.v.setTripleAt(A+R,I-C+x,A+R,I-C+P,A+R,I-C+x,0,!0),x!==0?(this.v.setTripleAt(A+R-x,I-C,A+R-x,I-C,A+R-P,I-C,1,!0),this.v.setTripleAt(A-R+x,I-C,A-R+P,I-C,A-R+x,I-C,2,!0),this.v.setTripleAt(A-R,I-C+x,A-R,I-C+x,A-R,I-C+P,3,!0),this.v.setTripleAt(A-R,I+C-x,A-R,I+C-P,A-R,I+C-x,4,!0),this.v.setTripleAt(A-R+x,I+C,A-R+x,I+C,A-R+P,I+C,5,!0),this.v.setTripleAt(A+R-x,I+C,A+R-P,I+C,A+R-x,I+C,6,!0),this.v.setTripleAt(A+R,I+C-x,A+R,I+C-x,A+R,I+C-P,7,!0)):(this.v.setTripleAt(A-R,I-C,A-R+P,I-C,A-R,I-C,1,!0),this.v.setTripleAt(A-R,I+C,A-R,I+C-P,A-R,I+C,2,!0),this.v.setTripleAt(A+R,I+C,A+R-P,I+C,A+R,I+C,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],S),S}();function y(S,k,A){var I;if(A===3||A===4){var R=A===3?k.pt:k.ks,C=R.k;C.length?I=new d(S,k,A):I=new u(S,k,A)}else A===5?I=new g(S,k):A===6?I=new m(S,k):A===7&&(I=new b(S,k));return I.k&&S.addDynamicProperty(I),I}function f(){return u}function _(){return d}var E={};return E.getShapeProp=y,E.getConstructorFunction=f,E.getKeyframedConstructorFunction=_,E}();/*!
 Transformation Matrix v2.0
 (c) Epistemex 2014-2015
 www.epistemex.com
 By Ken Fyrstenberg
 Contributions by leeoniya.
 License: MIT, header required.
 */var Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function s(){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 a(M){if(M===0)return this;var D=e(M),N=t(M);return this._t(D,-N,0,0,N,D,0,0,0,0,1,0,0,0,0,1)}function l(M){if(M===0)return this;var D=e(M),N=t(M);return this._t(1,0,0,0,0,D,-N,0,0,N,D,0,0,0,0,1)}function u(M){if(M===0)return this;var D=e(M),N=t(M);return this._t(D,0,N,0,0,1,0,0,-N,0,D,0,0,0,0,1)}function p(M){if(M===0)return this;var D=e(M),N=t(M);return this._t(D,-N,0,0,N,D,0,0,0,0,1,0,0,0,0,1)}function d(M,D){return this._t(1,D,M,1,0,0)}function m(M,D){return this.shear(r(M),r(D))}function b(M,D){var N=e(D),B=t(D);return this._t(N,B,0,0,-B,N,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(M),1,0,0,0,0,1,0,0,0,0,1)._t(N,-B,0,0,B,N,0,0,0,0,1,0,0,0,0,1)}function g(M,D,N){return!N&&N!==0&&(N=1),M===1&&D===1&&N===1?this:this._t(M,0,0,0,0,D,0,0,0,0,N,0,0,0,0,1)}function y(M,D,N,B,G,q,Q,Z,te,ne,se,de,ue,le,he,ie){return this.props[0]=M,this.props[1]=D,this.props[2]=N,this.props[3]=B,this.props[4]=G,this.props[5]=q,this.props[6]=Q,this.props[7]=Z,this.props[8]=te,this.props[9]=ne,this.props[10]=se,this.props[11]=de,this.props[12]=ue,this.props[13]=le,this.props[14]=he,this.props[15]=ie,this}function f(M,D,N){return N=N||0,M!==0||D!==0||N!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,M,D,N,1):this}function _(M,D,N,B,G,q,Q,Z,te,ne,se,de,ue,le,he,ie){var J=this.props;if(M===1&&D===0&&N===0&&B===0&&G===0&&q===1&&Q===0&&Z===0&&te===0&&ne===0&&se===1&&de===0)return J[12]=J[12]*M+J[15]*ue,J[13]=J[13]*q+J[15]*le,J[14]=J[14]*se+J[15]*he,J[15]*=ie,this._identityCalculated=!1,this;var _e=J[0],Se=J[1],be=J[2],ye=J[3],ve=J[4],pe=J[5],ce=J[6],fe=J[7],W=J[8],Y=J[9],X=J[10],ee=J[11],re=J[12],oe=J[13],me=J[14],ae=J[15];return J[0]=_e*M+Se*G+be*te+ye*ue,J[1]=_e*D+Se*q+be*ne+ye*le,J[2]=_e*N+Se*Q+be*se+ye*he,J[3]=_e*B+Se*Z+be*de+ye*ie,J[4]=ve*M+pe*G+ce*te+fe*ue,J[5]=ve*D+pe*q+ce*ne+fe*le,J[6]=ve*N+pe*Q+ce*se+fe*he,J[7]=ve*B+pe*Z+ce*de+fe*ie,J[8]=W*M+Y*G+X*te+ee*ue,J[9]=W*D+Y*q+X*ne+ee*le,J[10]=W*N+Y*Q+X*se+ee*he,J[11]=W*B+Y*Z+X*de+ee*ie,J[12]=re*M+oe*G+me*te+ae*ue,J[13]=re*D+oe*q+me*ne+ae*le,J[14]=re*N+oe*Q+me*se+ae*he,J[15]=re*B+oe*Z+me*de+ae*ie,this._identityCalculated=!1,this}function E(M){var D=M.props;return this.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15])}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 k(M){for(var D=0;D<16;){if(M.props[D]!==this.props[D])return!1;D+=1}return!0}function A(M){var D;for(D=0;D<16;D+=1)M.props[D]=this.props[D];return M}function I(M){var D;for(D=0;D<16;D+=1)this.props[D]=M[D]}function R(M,D,N){return{x:M*this.props[0]+D*this.props[4]+N*this.props[8]+this.props[12],y:M*this.props[1]+D*this.props[5]+N*this.props[9]+this.props[13],z:M*this.props[2]+D*this.props[6]+N*this.props[10]+this.props[14]}}function C(M,D,N){return M*this.props[0]+D*this.props[4]+N*this.props[8]+this.props[12]}function x(M,D,N){return M*this.props[1]+D*this.props[5]+N*this.props[9]+this.props[13]}function P(M,D,N){return M*this.props[2]+D*this.props[6]+N*this.props[10]+this.props[14]}function O(){var M=this.props[0]*this.props[5]-this.props[1]*this.props[4],D=this.props[5]/M,N=-this.props[1]/M,B=-this.props[4]/M,G=this.props[0]/M,q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/M,Q=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/M,Z=new Matrix;return Z.props[0]=D,Z.props[1]=N,Z.props[4]=B,Z.props[5]=G,Z.props[12]=q,Z.props[13]=Q,Z}function V(M){var D=this.getInverseMatrix();return D.applyToPointArray(M[0],M[1],M[2]||0)}function H(M){var D,N=M.length,B=[];for(D=0;D<N;D+=1)B[D]=V(M[D]);return B}function F(M,D,N){var B=createTypedArray("float32",6);if(this.isIdentity())B[0]=M[0],B[1]=M[1],B[2]=D[0],B[3]=D[1],B[4]=N[0],B[5]=N[1];else{var G=this.props[0],q=this.props[1],Q=this.props[4],Z=this.props[5],te=this.props[12],ne=this.props[13];B[0]=M[0]*G+M[1]*Q+te,B[1]=M[0]*q+M[1]*Z+ne,B[2]=D[0]*G+D[1]*Q+te,B[3]=D[0]*q+D[1]*Z+ne,B[4]=N[0]*G+N[1]*Q+te,B[5]=N[0]*q+N[1]*Z+ne}return B}function U(M,D,N){var B;return this.isIdentity()?B=[M,D,N]:B=[M*this.props[0]+D*this.props[4]+N*this.props[8]+this.props[12],M*this.props[1]+D*this.props[5]+N*this.props[9]+this.props[13],M*this.props[2]+D*this.props[6]+N*this.props[10]+this.props[14]],B}function K(M,D){if(this.isIdentity())return M+","+D;var N=this.props;return Math.round((M*N[0]+D*N[4]+N[12])*100)/100+","+Math.round((M*N[1]+D*N[5]+N[13])*100)/100}function z(){for(var M=0,D=this.props,N="matrix3d(",B=1e4;M<16;)N+=n(D[M]*B)/B,N+=M===15?")":",",M+=1;return N}function L(M){var D=1e4;return M<1e-6&&M>0||M>-1e-6&&M<0?n(M*D)/D:M}function j(){var M=this.props,D=L(M[0]),N=L(M[1]),B=L(M[4]),G=L(M[5]),q=L(M[12]),Q=L(M[13]);return"matrix("+D+","+N+","+B+","+G+","+q+","+Q+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=l,this.rotateY=u,this.rotateZ=p,this.skew=m,this.skewFromAxis=b,this.shear=d,this.scale=g,this.setTransform=y,this.translate=f,this.transform=_,this.multiply=E,this.applyToPoint=R,this.applyToX=C,this.applyToY=x,this.applyToZ=P,this.applyToPointArray=U,this.applyToTriplePoints=F,this.applyToPointStringified=K,this.toCSS=z,this.to2dCSS=j,this.clone=A,this.cloneFromProps=I,this.equals=k,this.inversePoints=H,this.inversePoint=V,this.getInverseMatrix=O,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 n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[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=n;function r(s,a){t[s]||(t[s]=a)}function n(s,a,l){return new t[s](a,l)}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,n,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var l=[],u,p=a.length,d;for(u=0;u<p;u+=1)if(d=a[u],!(d.e*s<n||d.s*s>n+r)){var m,b;d.s*s<=n?m=0:m=(d.s*s-n)/r,d.e*s>=n+r?b=1:b=(d.e*s-n)/r,l.push([m,b])}return l.length||l.push([0,0]),l},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 n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?t=1+n:this.s.v<0?t=0+n:t=this.s.v+n,this.e.v>1?r=1+n:this.e.v<0?r=0+n:r=this.e.v+n,t>r){var s=t;t=r,r=s}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 a,l,u=this.shapes.length,p,d,m,b,g,y=0;if(r===t)for(l=0;l<u;l+=1)this.shapes[l].localShapeCollection.releaseShapes(),this.shapes[l].shape._mdf=!0,this.shapes[l].shape.paths=this.shapes[l].localShapeCollection,this._mdf&&(this.shapes[l].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(l=0;l<u;l+=1)this.shapes[l].pathsData.length=0,this.shapes[l].shape._mdf=!0}else{var f=[],_,E;for(l=0;l<u;l+=1)if(_=this.shapes[l],!_.shape._mdf&&!this._mdf&&!e&&this.m!==2)_.shape.paths=_.localShapeCollection;else{if(a=_.shape.paths,d=a._length,g=0,!_.shape._mdf&&_.pathsData.length)g=_.totalShapeLength;else{for(m=this.releasePathsData(_.pathsData),p=0;p<d;p+=1)b=bez.getSegmentsLength(a.shapes[p]),m.push(b),g+=b.totalLength;_.totalShapeLength=g,_.pathsData=m}y+=g,_.shape._mdf=!0}var S=t,k=r,A=0,I;for(l=u-1;l>=0;l-=1)if(_=this.shapes[l],_.shape._mdf){for(E=_.localShapeCollection,E.releaseShapes(),this.m===2&&u>1?(I=this.calculateShapeEdges(t,r,_.totalShapeLength,A,y),A+=_.totalShapeLength):I=[[S,k]],d=I.length,p=0;p<d;p+=1){S=I[p][0],k=I[p][1],f.length=0,k<=1?f.push({s:_.totalShapeLength*S,e:_.totalShapeLength*k}):S>=1?f.push({s:_.totalShapeLength*(S-1),e:_.totalShapeLength*(k-1)}):(f.push({s:_.totalShapeLength*S,e:_.totalShapeLength}),f.push({s:0,e:_.totalShapeLength*(k-1)}));var R=this.addShapes(_,f[0]);if(f[0].s!==f[0].e){if(f.length>1){var C=_.shape.paths.shapes[_.shape.paths._length-1];if(C.c){var x=R.pop();this.addPaths(R,E),R=this.addShapes(_,f[1],x)}else this.addPaths(R,E),R=this.addShapes(_,f[1])}this.addPaths(R,E)}}_.shape.paths=E}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,s,a,l){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(r[0],r[1],"i",a+1),l&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(n[0],n[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&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 n=e.pathsData,s=e.shape.paths.shapes,a,l=e.shape.paths._length,u,p,d=0,m,b,g,y,f=[],_,E=!0;for(r?(b=r._length,_=r._length):(r=shapePool.newElement(),b=0,_=0),f.push(r),a=0;a<l;a+=1){for(g=n[a].lengths,r.c=s[a].c,p=s[a].c?g.length:g.length+1,u=1;u<p;u+=1)if(m=g[u-1],d+m.addedLength<t.s)d+=m.addedLength,r.c=!1;else if(d>t.e){r.c=!1;break}else t.s<=d&&t.e>=d+m.addedLength?(this.addSegment(s[a].v[u-1],s[a].o[u-1],s[a].i[u],s[a].v[u],r,b,E),E=!1):(y=bez.getNewSegment(s[a].v[u-1],s[a].v[u],s[a].o[u-1],s[a].i[u],(t.s-d)/m.addedLength,(t.e-d)/m.addedLength,g[u-1]),this.addSegmentFromArray(y,r,b,E),E=!1,r.c=!1),d+=m.addedLength,b+=1;if(s[a].c&&g.length){if(m=g[u-1],d<=t.e){var S=g[u-1].addedLength;t.s<=d&&t.e>=d+S?(this.addSegment(s[a].v[u-1],s[a].o[u-1],s[a].i[0],s[a].v[0],r,b,E),E=!1):(y=bez.getNewSegment(s[a].v[u-1],s[a].v[0],s[a].o[u-1],s[a].i[0],(t.s-d)/S,(t.e-d)/S,g[u-1]),this.addSegmentFromArray(y,r,b,E),E=!1,r.c=!1)}else r.c=!1;d+=m.addedLength,b+=1}if(r._length&&(r.setXYAt(r.v[_][0],r.v[_][1],"i",_),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>t.e)break;a<l-1&&(r=shapePool.newElement(),E=!0,f.push(r),b=0)}return f};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,n=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)n[0]+=e.v[a][0],n[1]+=e.v[a][1];n[0]/=s,n[1]/=s;var l=shapePool.newElement();l.c=e.c;var u,p,d,m,b,g;for(a=0;a<s;a+=1)u=e.v[a][0]+(n[0]-e.v[a][0])*r,p=e.v[a][1]+(n[1]-e.v[a][1])*r,d=e.o[a][0]+(n[0]-e.o[a][0])*-r,m=e.o[a][1]+(n[1]-e.o[a][1])*-r,b=e.i[a][0]+(n[0]-e.i[a][0])*-r,g=e.i[a][1]+(n[1]-e.i[a][1])*-r,l.setTripleAt(u,p,d,m,b,g,a);return l},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n=this.shapes.length,s,a,l=this.amount.v;if(l!==0){var u,p;for(r=0;r<n;r+=1){if(u=this.shapes[r],p=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(p.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)p.addShape(this.processPath(t[s],l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(p){var d=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||d,this.a&&p.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&p.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&p.skewFromAxis(-this.sk.v,this.sa.v),this.r?p.rotate(-this.r.v):p.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?p.translate(this.px.v,this.py.v,-this.pz.v):p.translate(this.px.v,this.py.v,0):p.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(p){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||p){var d;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 m,b;if(d=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(m=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/d,0),b=this.p.getValueAtTime(this.p.keyframes[0].t/d,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(m=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),b=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(m=this.p.pv,b=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){m=[],b=[];var g=this.px,y=this.py;g._caching.lastFrame+g.offsetTime<=g.keyframes[0].t?(m[0]=g.getValueAtTime((g.keyframes[0].t+.01)/d,0),m[1]=y.getValueAtTime((y.keyframes[0].t+.01)/d,0),b[0]=g.getValueAtTime(g.keyframes[0].t/d,0),b[1]=y.getValueAtTime(y.keyframes[0].t/d,0)):g._caching.lastFrame+g.offsetTime>=g.keyframes[g.keyframes.length-1].t?(m[0]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/d,0),m[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/d,0),b[0]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/d,0),b[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/d,0)):(m=[g.pv,y.pv],b[0]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/d,g.offsetTime),b[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/d,y.offsetTime))}else b=e,m=b;this.v.rotate(-Math.atan2(m[1]-b[1],m[0]-b[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 n(){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 s(){}function a(p){this._addDynamicProperty(p),this.elem.addDynamicProperty(p),this._isDirty=!0}function l(p,d,m){if(this.elem=p,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(m||p),d.p&&d.p.s?(this.px=PropertyFactory.getProp(p,d.p.x,0,0,this),this.py=PropertyFactory.getProp(p,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(p,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(p,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(p,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(p,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(p,d.rz,0,degToRads,this),d.or.k[0].ti){var b,g=d.or.k.length;for(b=0;b<g;b+=1)d.or.k[b].to=null,d.or.k[b].ti=null}this.or=PropertyFactory.getProp(p,d.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(p,d.r||{k:0},0,degToRads,this);d.sk&&(this.sk=PropertyFactory.getProp(p,d.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(p,d.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(p,d.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(p,d.s||{k:[100,100,100]},1,.01,this),d.o?this.o=PropertyFactory.getProp(p,d.o,0,.01,p):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}l.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:n,autoOrient:s},extendPrototype([DynamicPropertyContainer],l),l.prototype.addDynamicProperty=a,l.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function u(p,d,m){return new l(p,d,m)}return{getTransformProperty:u}}();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,n,s,a){var l=a?-1:1,u=n.s.v[0]+(1-n.s.v[0])*(1-s),p=n.s.v[1]+(1-n.s.v[1])*(1-s);e.translate(n.p.v[0]*l*s,n.p.v[1]*l*s,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*l*s),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(a?1/u:u,a?1/p:p),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,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,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,s,a,l=!1;if(this._mdf||e){var u=Math.ceil(this.c.v);if(this._groups.length<u){for(;this._groups.length<u;){var p={it:this.cloneElements(this._elements),ty:"gr"};p.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,p),this._groups.splice(0,0,p),this._currentCopies+=1}this.elem.reloadShapes(),l=!0}a=0;var d;for(n=0;n<=this._groups.length-1;n+=1){if(d=a<u,this._groups[n]._render=d,this.changeGroupRender(this._groups[n].it,d),!d){var m=this.elemsData[n].it,b=m[m.length-1];b.transform.op.v!==0?(b.transform.op._mdf=!0,b.transform.op.v=0):b.transform.op._mdf=!1}a+=1}this._currentCopies=u;var g=this.o.v,y=g%1,f=g>0?Math.floor(g):Math.ceil(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 k=0;if(g>0){for(;k<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),k+=y)}else if(g<0){for(;k>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),k-=y)}n=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var A,I;a;){if(t=this.elemsData[n].it,r=t[t.length-1].transform.mProps.v.props,I=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)*(n/(this._currentCopies-1)),k!==0){for((n!==0&&s===1||n!==this._currentCopies-1&&s===-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(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),A=0;A<I;A+=1)r[A]=this.matrix.props[A];this.matrix.reset()}else for(this.matrix.reset(),A=0;A<I;A+=1)r[A]=this.matrix.props[A];k+=1,a-=1,n+=s}}else for(a=this._currentCopies,n=0,s=1;a;)t=this.elemsData[n].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,a-=1,n+=s;return l},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 n,s=e._length,a,l,u,p,d,m,b=0,g,y,f,_,E,S;for(n=0;n<s;n+=1)a=e.v[n],u=e.o[n],l=e.i[n],a[0]===u[0]&&a[1]===u[1]&&a[0]===l[0]&&a[1]===l[1]?(n===0||n===s-1)&&!e.c?(r.setTripleAt(a[0],a[1],u[0],u[1],l[0],l[1],b),b+=1):(n===0?p=e.v[s-1]:p=e.v[n-1],d=Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2)),m=d?Math.min(d/2,t)/d:0,E=a[0]+(p[0]-a[0])*m,g=E,S=a[1]-(a[1]-p[1])*m,y=S,f=g-(g-a[0])*roundCorner,_=y-(y-a[1])*roundCorner,r.setTripleAt(g,y,f,_,E,S,b),b+=1,n===s-1?p=e.v[0]:p=e.v[n+1],d=Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2)),m=d?Math.min(d/2,t)/d:0,f=a[0]+(p[0]-a[0])*m,g=f,_=a[1]+(p[1]-a[1])*m,y=_,E=g-(g-a[0])*roundCorner,S=y-(y-a[1])*roundCorner,r.setTripleAt(g,y,f,_,E,S,b),b+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],b),b+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n=this.shapes.length,s,a,l=this.rd.v;if(l!==0){var u,p;for(r=0;r<n;r+=1){if(u=this.shapes[r],p=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(p.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)p.addShape(this.processPath(t[s],l));u.shape.paths=u.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 n=t*t-4*e*r;if(n<0)return[];var s=-t/(2*e);if(n===0)return[s];var a=Math.sqrt(n)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,r,n){return[-e+3*t-3*r+n,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,n,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),s&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var a=polynomialCoefficients(e[0],t[0],r[0],n[0]),l=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[a[0],l[0]],this.b=[a[1],l[1]],this.c=[a[2],l[2]],this.d=[a[3],l[3]],this.points=[e,t,r,n]}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 n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter(function(s){return s>0&&s<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),n=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,r,e),a=lerpPoint(r,n,e),l=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,l,!0),new PolynomialBezier(l,a,n,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var s=n;n=r,r=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),l=0;l<a.length;l+=1)if(a[l]>0&&a[l]<1){var u=e.point(a[l])[t];u<r?r=u:u>n&&(n=u)}return{min:r,max:n}}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 n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.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,n,s,a){if(boxIntersect(e,t)){if(r>=a||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n){s.push([e.t,t.t]);return}var l=splitData(e),u=splitData(t);intersectsImpl(l[0],u[0],r+1,n,s,a),intersectsImpl(l[0],u[1],r+1,n,s,a),intersectsImpl(l[1],u[0],r+1,n,s,a),intersectsImpl(l[1],u[1],r+1,n,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},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,n){var s=[e[0],e[1],1],a=[t[0],t[1],1],l=[r[0],r[1],1],u=[n[0],n[1],1],p=crossProduct(crossProduct(s,a),crossProduct(l,u));return floatZero(p[2])?null:[p[0]/p[2],p[1]/p[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,n,s,a,l){var u=r-Math.PI/2,p=r+Math.PI/2,d=t[0]+Math.cos(r)*n*s,m=t[1]-Math.sin(r)*n*s;e.setTripleAt(d,m,d+Math.cos(u)*a,m-Math.sin(u)*a,d+Math.cos(p)*l,m-Math.sin(p)*l,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=-Math.PI*.5,s=[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]];return s}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,n=(t+1)%e.length(),s=e.v[r],a=e.v[n],l=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(l[1],l[0])}function zigZagCorner(e,t,r,n,s,a,l){var u=getProjectingAngle(t,r),p=t.v[r%t._length],d=t.v[r===0?t._length-1:r-1],m=t.v[(r+1)%t._length],b=a===2?Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)):0,g=a===2?Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)):0;setPoint(e,t.v[r%t._length],u,l,n,g/((s+1)*2),b/((s+1)*2))}function zigZagSegment(e,t,r,n,s,a){for(var l=0;l<n;l+=1){var u=(l+1)/(n+1),p=s===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,d=t.normalAngle(u),m=t.point(u);setPoint(e,m,d,a,r,p/((n+1)*2),p/((n+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,r,n){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var l=-1,u=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,r,n,l);for(var p=0;p<s;p+=1)l=zigZagSegment(a,u,t,r,n,-l),p===s-1&&!e.c?u=null:u=PolynomialBezier.shapeSegment(e,(p+1)%s),zigZagCorner(a,e,p+1,t,r,n,l);return a},ZigZagModifier.prototype.processShapes=function(e){var t,r,n=this.shapes.length,s,a,l=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(l!==0){var d,m;for(r=0;r<n;r+=1){if(d=this.shapes[r],m=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(m.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,a=d.shape.paths._length,s=0;s<a;s+=1)m.addShape(this.processPath(t[s],l,u,p));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,s,a,l,u,p;p=linearOffset(e.points[0],e.points[1],t),r=p[0],n=p[1],p=linearOffset(e.points[1],e.points[2],t),s=p[0],a=p[1],p=linearOffset(e.points[2],e.points[3],t),l=p[0],u=p[1];var d=lineIntersection(r,n,s,a);d===null&&(d=n);var m=lineIntersection(l,u,s,a);return m===null&&(m=l),new PolynomialBezier(r,d,m,u)}function joinLines(e,t,r,n,s){var a=t.points[3],l=r.points[0];if(n===3||pointEqual(a,l))return a;if(n===2){var u=-t.tangentAngle(1),p=-r.tangentAngle(0)+Math.PI,d=lineIntersection(a,polarOffset(a,u+Math.PI/2,100),l,polarOffset(l,u+Math.PI/2,100)),m=d?pointDistance(d,a):pointDistance(a,l)/2,b=polarOffset(a,u,2*m*roundCorner);return e.setXYAt(b[0],b[1],"o",e.length()-1),b=polarOffset(l,p,2*m*roundCorner),e.setTripleAt(l[0],l[1],l[0],l[1],b[0],b[1],e.length()),l}var g=pointEqual(a,t.points[2])?t.points[0]:t.points[2],y=pointEqual(l,r.points[1])?r.points[3]:r.points[1],f=lineIntersection(g,a,l,y);return f&&pointDistance(f,a)<s?(e.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],e.length()),f):a}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(),n=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(r[e.length-1]=e[e.length-1].split(s[0])[0],n[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,n]}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(),n,s,a,l;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return a=e.split(r[0]),n=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(s,t)];a=e.split(r[0]),n=a[0];var u=(r[1]-r[0])/(1-r[0]);return a=a[1].split(u),l=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(l,t),offsetSegment(s,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,n){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var l,u,p,d=[];for(l=0;l<a;l+=1)p=PolynomialBezier.shapeSegment(e,l),d.push(offsetSegmentSplit(p,t));if(!e.c)for(l=a-1;l>=0;l-=1)p=PolynomialBezier.shapeSegmentInverted(e,l),d.push(offsetSegmentSplit(p,t));d=pruneIntersections(d);var m=null,b=null;for(l=0;l<d.length;l+=1){var g=d[l];for(b&&(m=joinLines(s,b,g[0],r,n)),b=g[g.length-1],u=0;u<g.length;u+=1)p=g[u],m&&pointEqual(p.points[0],m)?s.setXYAt(p.points[1][0],p.points[1][1],"o",s.length()-1):s.setTripleAt(p.points[0][0],p.points[0][1],p.points[1][0],p.points[1][1],p.points[0][0],p.points[0][1],s.length()),s.setTripleAt(p.points[3][0],p.points[3][1],p.points[3][0],p.points[3][1],p.points[2][0],p.points[2][1],s.length()),m=p.points[3]}return d.length&&joinLines(s,b,d[0][0],r,n),s},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n=this.shapes.length,s,a,l=this.amount.v,u=this.miterLimit.v,p=this.lineJoin;if(l!==0){var d,m;for(r=0;r<n;r+=1){if(d=this.shapes[r],m=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(m.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,a=d.shape.paths._length,s=0;s<a;s+=1)m.addShape(this.processPath(t[s],l,p,u));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",s=t.length,a,l=0;l<s;l+=1)switch(a=t[l].toLowerCase(),a){case"italic":n="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:n,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 n=127988,s=917631,a=917601,l=917626,u=65039,p=8205,d=127462,m=127487,b=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function g(L){var j=L.split(","),M,D=j.length,N=[];for(M=0;M<D;M+=1)j[M]!=="sans-serif"&&j[M]!=="monospace"&&N.push(j[M]);return N.join(",")}function y(L,j){var M=createTag("span");M.setAttribute("aria-hidden",!0),M.style.fontFamily=j;var D=createTag("span");D.innerText="giItT1WQy@!-/#",M.style.position="absolute",M.style.left="-10000px",M.style.top="-10000px",M.style.fontSize="300px",M.style.fontVariant="normal",M.style.fontStyle="normal",M.style.fontWeight="normal",M.style.letterSpacing="0",M.appendChild(D),document.body.appendChild(M);var N=D.offsetWidth;return D.style.fontFamily=g(L)+", "+j,{node:D,w:N,parent:M}}function f(){var L,j=this.fonts.length,M,D,N=j;for(L=0;L<j;L+=1)this.fonts[L].loaded?N-=1:this.fonts[L].fOrigin==="n"||this.fonts[L].origin===0?this.fonts[L].loaded=!0:(M=this.fonts[L].monoCase.node,D=this.fonts[L].monoCase.w,M.offsetWidth!==D?(N-=1,this.fonts[L].loaded=!0):(M=this.fonts[L].sansCase.node,D=this.fonts[L].sansCase.w,M.offsetWidth!==D&&(N-=1,this.fonts[L].loaded=!0)),this.fonts[L].loaded&&(this.fonts[L].sansCase.parent.parentNode.removeChild(this.fonts[L].sansCase.parent),this.fonts[L].monoCase.parent.parentNode.removeChild(this.fonts[L].monoCase.parent)));N!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function _(L,j){var M=document.body&&j?"svg":"canvas",D,N=getFontProperties(L);if(M==="svg"){var B=createNS("text");B.style.fontSize="100px",B.setAttribute("font-family",L.fFamily),B.setAttribute("font-style",N.style),B.setAttribute("font-weight",N.weight),B.textContent="1",L.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",L.fClass)):B.style.fontFamily=L.fFamily,j.appendChild(B),D=B}else{var G=new OffscreenCanvas(500,500).getContext("2d");G.font=N.style+" "+N.weight+" 100px "+L.fFamily,D=G}function q(Q){return M==="svg"?(D.textContent=Q,D.getComputedTextLength()):D.measureText(Q).width}return{measureText:q}}function E(L,j){if(!L){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=L.list;return}if(!document.body){this.isLoaded=!0,L.list.forEach(function(se){se.helper=_(se),se.cache={}}),this.fonts=L.list;return}var M=L.list,D,N=M.length,B=N;for(D=0;D<N;D+=1){var G=!0,q,Q;if(M[D].loaded=!1,M[D].monoCase=y(M[D].fFamily,"monospace"),M[D].sansCase=y(M[D].fFamily,"sans-serif"),!M[D].fPath)M[D].loaded=!0,B-=1;else if(M[D].fOrigin==="p"||M[D].origin===3){if(q=document.querySelectorAll('style[f-forigin="p"][f-family="'+M[D].fFamily+'"], style[f-origin="3"][f-family="'+M[D].fFamily+'"]'),q.length>0&&(G=!1),G){var Z=createTag("style");Z.setAttribute("f-forigin",M[D].fOrigin),Z.setAttribute("f-origin",M[D].origin),Z.setAttribute("f-family",M[D].fFamily),Z.type="text/css",Z.innerText="@font-face {font-family: "+M[D].fFamily+"; font-style: normal; src: url('"+M[D].fPath+"');}",j.appendChild(Z)}}else if(M[D].fOrigin==="g"||M[D].origin===1){for(q=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Q=0;Q<q.length;Q+=1)q[Q].href.indexOf(M[D].fPath)!==-1&&(G=!1);if(G){var te=createTag("link");te.setAttribute("f-forigin",M[D].fOrigin),te.setAttribute("f-origin",M[D].origin),te.type="text/css",te.rel="stylesheet",te.href=M[D].fPath,document.body.appendChild(te)}}else if(M[D].fOrigin==="t"||M[D].origin===2){for(q=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Q=0;Q<q.length;Q+=1)M[D].fPath===q[Q].src&&(G=!1);if(G){var ne=createTag("link");ne.setAttribute("f-forigin",M[D].fOrigin),ne.setAttribute("f-origin",M[D].origin),ne.setAttribute("rel","stylesheet"),ne.setAttribute("href",M[D].fPath),j.appendChild(ne)}}M[D].helper=_(M[D],j),M[D].cache={},this.fonts.push(M[D])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function S(L){if(L){this.chars||(this.chars=[]);var j,M=L.length,D,N=this.chars.length,B;for(j=0;j<M;j+=1){for(D=0,B=!1;D<N;)this.chars[D].style===L[j].style&&this.chars[D].fFamily===L[j].fFamily&&this.chars[D].ch===L[j].ch&&(B=!0),D+=1;B||(this.chars.push(L[j]),N+=1)}}}function k(L,j,M){for(var D=0,N=this.chars.length;D<N;){if(this.chars[D].ch===L&&this.chars[D].style===j&&this.chars[D].fFamily===M)return this.chars[D];D+=1}return(typeof L=="string"&&L.charCodeAt(0)!==13||!L)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",L,j,M)),t}function A(L,j,M){var D=this.getFontByName(j),N=L;if(!D.cache[N]){var B=D.helper;if(L===" "){var G=B.measureText("|"+L+"|"),q=B.measureText("||");D.cache[N]=(G-q)/100}else D.cache[N]=B.measureText(L)/100}return D.cache[N]*M}function I(L){for(var j=0,M=this.fonts.length;j<M;){if(this.fonts[j].fName===L)return this.fonts[j];j+=1}return this.fonts[0]}function R(L){var j=0,M=L.charCodeAt(0);if(M>=55296&&M<=56319){var D=L.charCodeAt(1);D>=56320&&D<=57343&&(j=(M-55296)*1024+D-56320+65536)}return j}function C(L,j){var M=L.toString(16)+j.toString(16);return b.indexOf(M)!==-1}function x(L){return L===p}function P(L){return L===u}function O(L){var j=R(L);return j>=d&&j<=m}function V(L){return O(L.substr(0,2))&&O(L.substr(2,2))}function H(L){return r.indexOf(L)!==-1}function F(L,j){var M=R(L.substr(j,2));if(M!==n)return!1;var D=0;for(j+=2;D<5;){if(M=R(L.substr(j,2)),M<a||M>l)return!1;D+=1,j+=2}return R(L.substr(j,2))===s}function U(){this.isLoaded=!0}var K=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)};K.isModifier=C,K.isZeroWidthJoiner=x,K.isFlagEmoji=V,K.isRegionalCode=O,K.isCombinedCharacter=H,K.isRegionalFlag=F,K.isVariationSelector=P,K.BLACK_FLAG_CODE_POINT=n;var z={addChars:S,addFonts:E,getCharData:k,getFontByName:I,measureText:A,checkLoadedFonts:f,setIsLoaded:U};return K.prototype=z,K}();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 n,s=r.length,a;for(n=0;n<s;n+=1)a=new GroupEffect(r[n],t),this.effectElements.push(a)}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,n=this.data.ef.length,s,a=this.data.ef;for(r=0;r<n;r+=1){switch(s=null,a[r].ty){case 0:s=new SliderEffect(a[r],t,this);break;case 1:s=new AngleEffect(a[r],t,this);break;case 2:s=new ColorEffect(a[r],t,this);break;case 3:s=new PointEffect(a[r],t,this);break;case 4:case 7:s=new CheckboxEffect(a[r],t,this);break;case 10:s=new LayerIndexEffect(a[r],t,this);break;case 11:s=new MaskIndexEffect(a[r],t,this);break;case 5:s=new EffectsManager(a[r],t);break;default:s=new NoValueEffect(a[r]);break}s&&this.effectElements.push(s)}};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"),n=t("effects"),s=t("shape"),a=t("text"),l=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var u=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(u),this.data.ty===0||this.data.xt?this.compInterface=l(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(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,n){this.globalData=r,this.comp=n,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 n,s=this.dynamicProperties.length;for(n=0;n<s;n+=1)(r||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._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 n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),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,n;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t],n.ip-n.st<=e-this.layers[t].st&&n.op-n.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,n,s=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<s;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=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 n=this.elements,s=this.layers,a=0,l=s.length;a<l;)s[a].ind==t&&(!n[a]||n[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(r.push(n[a]),n[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,r):e.setHierarchy(r))),a+=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 n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},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 n,s=this.elements.length;for(n=0;n<s;n+=1)if(this.elements[n].data.nm===t){r=this.elements[n];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,n=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<s;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),n=0;n<s;n+=1)r.multiply(this.hierarchy[n].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 n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),t=1;t<r;t+=1){var s=this.localTransforms[t].matrix;n.multiply(s)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)a*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=a}}},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,n=t.length;for(r=0;r<n;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var n=!0,s=this.comp;n;)s.finalTransform?(s.data.hasMask&&r.splice(0,0,s.finalTransform),s=s.comp):n=!1;var a,l=r.length,u;for(a=0;a<l;a+=1)u=r[a].mat.applyToPointArray(0,0,0),t=[t[0]-u[0],t[1]-u[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 n=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var l,u=this.masksProperties,p=0,d=[],m,b,g=createElementID(),y,f,_,E,S="clipPath",k="clip-path";for(s=0;s<a;s+=1)if((u[s].mode!=="a"&&u[s].mode!=="n"||u[s].inv||u[s].o.k!==100||u[s].o.x)&&(S="mask",k="mask"),(u[s].mode==="s"||u[s].mode==="i")&&p===0?(y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),d.push(y)):y=null,l=createNS("path"),u[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,u[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[s],3),elem:l,lastPath:""},n.appendChild(l);else{p+=1,l.setAttribute("fill",u[s].mode==="s"?"#000000":"#ffffff"),l.setAttribute("clip-rule","nonzero");var A;if(u[s].x.k!==0?(S="mask",k="mask",E=PropertyFactory.getProp(this.element,u[s].x,0,null,this.element),A=createElementID(),f=createNS("filter"),f.setAttribute("id",A),_=createNS("feMorphology"),_.setAttribute("operator","erode"),_.setAttribute("in","SourceGraphic"),_.setAttribute("radius","0"),f.appendChild(_),n.appendChild(f),l.setAttribute("stroke",u[s].mode==="s"?"#000000":"#ffffff")):(_=null,E=null),this.storedData[s]={elem:l,x:E,expan:_,lastPath:"",lastOperator:"",filterId:A,lastRadius:0},u[s].mode==="i"){b=d.length;var I=createNS("g");for(m=0;m<b;m+=1)I.appendChild(d[m]);var R=createNS("mask");R.setAttribute("mask-type","alpha"),R.setAttribute("id",g+"_"+p),R.appendChild(l),n.appendChild(R),I.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+p+")"),d.length=0,d.push(I)}else d.push(l);u[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:l,lastPath:"",op:PropertyFactory.getProp(this.element,u[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[s],3),invRect:y},this.viewData[s].prop.k||this.drawPath(u[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(S),a=d.length,s=0;s<a;s+=1)this.maskElement.appendChild(d[s]);p>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(k,"url("+getLocationHref()+"#"+g+")"),n.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,n=this.masksProperties.length;for(r=0;r<n;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 s=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+")")),s.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 n=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==n){var l="";r.elem&&(t.c&&(l=e.inv?this.solidPath+n:n),r.elem.setAttribute("d",l)),r.lastPath=n}},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(n,s){var a=createNS("filter");return a.setAttribute("id",n),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function r(){var n=createNS("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),n}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",n=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),l=0;this.filters=[];var u;for(t=0;t<n;t+=1){u=null;var p=e.data.ef[t].ty;if(registeredEffects$1[p]){var d=registeredEffects$1[p].effect;u=new d(a,e.effectsManager.effectElements[t],e,idPrefix+l,r),r=idPrefix+l,registeredEffects$1[p].countsAsEffect&&(l+=1)}u&&this.filters.push(u)}l&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),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,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};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 n=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(n.setAttribute("id",a),n.appendChild(s),this.globalData.defs.appendChild(n),this.checkMasks()){var l=createNS("g");l.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),l.appendChild(this.layerElement),this.transformedElement=l,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}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,n,s,a,l;if(t===1||t===3){var u=createNS("mask");u.setAttribute("id",r),u.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(a),this.globalData.defs.appendChild(u),!featureSupport.maskType&&t===1&&(u.setAttribute("mask-type","luminance"),n=createElementID(),s=filtersFactory.createFilter(n),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),l=createNS("g"),l.appendChild(a),u.appendChild(l),l.setAttribute("filter","url("+getLocationHref()+"#"+n+")"))}else if(t===2){var p=createNS("mask");p.setAttribute("id",r),p.setAttribute("mask-type","alpha");var d=createNS("g");p.appendChild(d),n=createElementID(),s=filtersFactory.createFilter(n);var m=createNS("feComponentTransfer");m.setAttribute("in","SourceGraphic"),s.appendChild(m);var b=createNS("feFuncA");b.setAttribute("type","table"),b.setAttribute("tableValues","1.0 0.0"),m.appendChild(b),this.globalData.defs.appendChild(s);var g=createNS("rect");g.setAttribute("width",this.comp.data.w),g.setAttribute("height",this.comp.data.h),g.setAttribute("x","0"),g.setAttribute("y","0"),g.setAttribute("fill","#ffffff"),g.setAttribute("opacity","0"),d.setAttribute("filter","url("+getLocationHref()+"#"+n+")"),d.appendChild(g),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),d.appendChild(a),featureSupport.maskType||(p.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),l=createNS("g"),d.appendChild(g),l.appendChild(this.layerElement),d.appendChild(l)),this.globalData.defs.appendChild(p)}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,n,s){this.initFrame(),this.initBaseData(r,n,s),this.initTransform(r,n,s),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,n=this.shapeModifiers.length;for(r=0;r<n;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,n=this.shapeModifiers.length;r<n;)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 n;for(t=r-1;t>=0&&(n=this.shapeModifiers[t].processShapes(this._isFirstFrame),!n);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,n=0,s=r.length;n<s;){if(r[n].elem===t)return r[n].pos;n+=1}return 0},addProcessedElement:function(t,r){for(var n=this.processedElements,s=n.length;s;)if(s-=1,n[s].elem===t){n[s].pos=r;return}n.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 n=0,s=e.length;n<s;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=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,n){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(n);var s,a=t.length||0,l;for(s=0;s<a;s+=1)l=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=l.k||this.k,this.dataProps[s]={n:t[s].n,p:l};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 n=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",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,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,n=this.o.length/2,s;r<n;){if(s=Math.abs(e[r*4]-e[t*4+r*2]),s>.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,n,s;for(t=0;t<r;t+=1)n=t%4===0?100:255,s=Math.round(this.prop.v[t]*n),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)n=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,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(),n=createNS(t.t===1?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,l,u;for(u=t.g.p*4,l=0;l<u;l+=4)a=createNS("stop"),n.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,s,a=createNS("mask"),l=createNS("path");a.appendChild(l);var u=createElementID(),p=createElementID();a.setAttribute("id",p);var d=createNS(e.t===1?"linearGradient":"radialGradient");d.setAttribute("id",u),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var m=this.stops;for(n=e.g.p*4;n<s;n+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(r),m.push(r);l.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+u+")"),e.ty==="gs"&&(l.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),l.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&l.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=a,this.ost=m,this.maskId=p,t.msElem=l}},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,n,s){if(r===0)return"";var a=t.o,l=t.i,u=t.v,p,d=" M"+s.applyToPointStringified(u[0][0],u[0][1]);for(p=1;p<r;p+=1)d+=" C"+s.applyToPointStringified(a[p-1][0],a[p-1][1])+" "+s.applyToPointStringified(l[p][0],l[p][1])+" "+s.applyToPointStringified(u[p][0],u[p][1]);return n&&r&&(d+=" C"+s.applyToPointStringified(a[p-1][0],a[p-1][1])+" "+s.applyToPointStringified(l[0][0],l[0][1])+" "+s.applyToPointStringified(u[0][0],u[0][1]),d+="z"),d},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:n};function n(b){switch(b.ty){case"fl":return u;case"gf":return d;case"gs":return p;case"st":return m;case"sh":case"el":case"rc":case"sr":return l;case"tr":return s;case"no":return a;default:return null}}function s(b,g,y){(y||g.transform.op._mdf)&&g.transform.container.setAttribute("opacity",g.transform.op.v),(y||g.transform.mProps._mdf)&&g.transform.container.setAttribute("transform",g.transform.mProps.v.to2dCSS())}function a(){}function l(b,g,y){var f,_,E,S,k,A,I=g.styles.length,R=g.lvl,C,x,P,O;for(A=0;A<I;A+=1){if(S=g.sh._mdf||y,g.styles[A].lvl<R){for(x=t.reset(),P=R-g.styles[A].lvl,O=g.transformers.length-1;!S&&P>0;)S=g.transformers[O].mProps._mdf||S,P-=1,O-=1;if(S)for(P=R-g.styles[A].lvl,O=g.transformers.length-1;P>0;)x.multiply(g.transformers[O].mProps.v),P-=1,O-=1}else x=e;if(C=g.sh.paths,_=C._length,S){for(E="",f=0;f<_;f+=1)k=C.shapes[f],k&&k._length&&(E+=buildShapeString(k,k._length,k.c,x));g.caches[A]=E}else E=g.caches[A];g.styles[A].d+=b.hd===!0?"":E,g.styles[A]._mdf=S||g.styles[A]._mdf}}function u(b,g,y){var f=g.style;(g.c._mdf||y)&&f.pElem.setAttribute("fill","rgb("+bmFloor(g.c.v[0])+","+bmFloor(g.c.v[1])+","+bmFloor(g.c.v[2])+")"),(g.o._mdf||y)&&f.pElem.setAttribute("fill-opacity",g.o.v)}function p(b,g,y){d(b,g,y),m(b,g,y)}function d(b,g,y){var f=g.gf,_=g.g._hasOpacity,E=g.s.v,S=g.e.v;if(g.o._mdf||y){var k=b.ty==="gf"?"fill-opacity":"stroke-opacity";g.style.pElem.setAttribute(k,g.o.v)}if(g.s._mdf||y){var A=b.t===1?"x1":"cx",I=A==="x1"?"y1":"cy";f.setAttribute(A,E[0]),f.setAttribute(I,E[1]),_&&!g.g._collapsable&&(g.of.setAttribute(A,E[0]),g.of.setAttribute(I,E[1]))}var R,C,x,P;if(g.g._cmdf||y){R=g.cst;var O=g.g.c;for(x=R.length,C=0;C<x;C+=1)P=R[C],P.setAttribute("offset",O[C*4]+"%"),P.setAttribute("stop-color","rgb("+O[C*4+1]+","+O[C*4+2]+","+O[C*4+3]+")")}if(_&&(g.g._omdf||y)){var V=g.g.o;for(g.g._collapsable?R=g.cst:R=g.ost,x=R.length,C=0;C<x;C+=1)P=R[C],g.g._collapsable||P.setAttribute("offset",V[C*2]+"%"),P.setAttribute("stop-opacity",V[C*2+1])}if(b.t===1)(g.e._mdf||y)&&(f.setAttribute("x2",S[0]),f.setAttribute("y2",S[1]),_&&!g.g._collapsable&&(g.of.setAttribute("x2",S[0]),g.of.setAttribute("y2",S[1])));else{var H;if((g.s._mdf||g.e._mdf||y)&&(H=Math.sqrt(Math.pow(E[0]-S[0],2)+Math.pow(E[1]-S[1],2)),f.setAttribute("r",H),_&&!g.g._collapsable&&g.of.setAttribute("r",H)),g.e._mdf||g.h._mdf||g.a._mdf||y){H||(H=Math.sqrt(Math.pow(E[0]-S[0],2)+Math.pow(E[1]-S[1],2)));var F=Math.atan2(S[1]-E[1],S[0]-E[0]),U=g.h.v;U>=1?U=.99:U<=-1&&(U=-.99);var K=H*U,z=Math.cos(F+g.a.v)*K+E[0],L=Math.sin(F+g.a.v)*K+E[1];f.setAttribute("fx",z),f.setAttribute("fy",L),_&&!g.g._collapsable&&(g.of.setAttribute("fx",z),g.of.setAttribute("fy",L))}}}function m(b,g,y){var f=g.style,_=g.d;_&&(_._mdf||y)&&_.dashStr&&(f.pElem.setAttribute("stroke-dasharray",_.dashStr),f.pElem.setAttribute("stroke-dashoffset",_.dashoffset[0])),g.c&&(g.c._mdf||y)&&f.pElem.setAttribute("stroke","rgb("+bmFloor(g.c.v[0])+","+bmFloor(g.c.v[1])+","+bmFloor(g.c.v[2])+")"),(g.o._mdf||y)&&f.pElem.setAttribute("stroke-opacity",g.o.v),(g.w._mdf||y)&&(f.pElem.setAttribute("stroke-width",g.w.v),f.msElem&&f.msElem.setAttribute("stroke-width",g.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,n,s=this.stylesList.length,a,l=[],u=!1;for(n=0;n<s;n+=1){for(a=this.stylesList[n],u=!1,l.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(a)!==-1&&(l.push(r),u=r._isAnimated||u);l.length>1&&u&&this.setShapesAsAnimated(l)}},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,n=new SVGStyleData(e,t),s=n.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,n);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new a(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),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),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var s=ShapePropertyFactory.getShapeProp(this,e,n,this),a=new SVGShapeData(t,r,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){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,n=this.stylesList.length;for(r=0;r<n;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,n,s,a,l){var u=[].concat(a),p,d=e.length-1,m,b,g=[],y=[],f,_,E;for(p=d;p>=0;p-=1){if(E=this.searchProcessedElement(e[p]),E?t[p]=r[E-1]:e[p]._render=l,e[p].ty==="fl"||e[p].ty==="st"||e[p].ty==="gf"||e[p].ty==="gs"||e[p].ty==="no")E?t[p].style.closed=!1:t[p]=this.createStyleElement(e[p],s),e[p]._render&&t[p].style.pElem.parentNode!==n&&n.appendChild(t[p].style.pElem),g.push(t[p].style);else if(e[p].ty==="gr"){if(!E)t[p]=this.createGroupElement(e[p]);else for(b=t[p].it.length,m=0;m<b;m+=1)t[p].prevViewData[m]=t[p].it[m];this.searchShapes(e[p].it,t[p].it,t[p].prevViewData,t[p].gr,s+1,u,l),e[p]._render&&t[p].gr.parentNode!==n&&n.appendChild(t[p].gr)}else e[p].ty==="tr"?(E||(t[p]=this.createTransformElement(e[p],n)),f=t[p].transform,u.push(f)):e[p].ty==="sh"||e[p].ty==="rc"||e[p].ty==="el"||e[p].ty==="sr"?(E||(t[p]=this.createShapeElement(e[p],u,s)),this.setElementStyles(t[p])):e[p].ty==="tm"||e[p].ty==="rd"||e[p].ty==="ms"||e[p].ty==="pb"||e[p].ty==="zz"||e[p].ty==="op"?(E?(_=t[p],_.closed=!1):(_=ShapeModifiers.getModifier(e[p].ty),_.init(this,e[p]),t[p]=_,this.shapeModifiers.push(_)),y.push(_)):e[p].ty==="rp"&&(E?(_=t[p],_.closed=!0):(_=ShapeModifiers.getModifier(e[p].ty),t[p]=_,_.init(this,e,p,t),this.shapeModifiers.push(_),l=!1),y.push(_));this.addProcessedElement(e[p],p+1)}for(d=g.length,p=0;p<d;p+=1)g[p].closed=!0;for(d=y.length,p=0;p<d;p+=1)y[p].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,n,s,a){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,n,s,a){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 l=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,l=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,l=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,l=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,l=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,l=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,l=!0),l};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 n,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(n=0;n<s;n+=1)r!==this.keysIndex?a=this.effectsSequence[n](a,a.t):a=this.effectsSequence[n](this.currentData,a.t);t!==a&&this.setCurrentData(a),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,n=e.length;r<=n-1&&!(r===n-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,n=e.length,s,a,l=!1,u=!1,p="";r<n;)l=u,u=!1,s=e.charCodeAt(r),p=e.charAt(r),FontManager.isCombinedCharacter(s)?l=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,r)?p=e.substr(r,14):(a=e.charCodeAt(r+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(p=e.substr(r,2),l=!0):FontManager.isFlagEmoji(e.substr(r,4))?p=e.substr(r,4):p=e.substr(r,2))):s>56319?(a=e.charCodeAt(r+1),FontManager.isVariationSelector(s)&&(l=!0)):FontManager.isZeroWidthJoiner(s)&&(l=!0,u=!0),l?(t[t.length-1]+=p,l=!1):t.push(p),r+=p.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,n=[],s,a,l,u=0,p,d=r.m.g,m=0,b=0,g=0,y=[],f=0,_=0,E,S,k=t.getFontByName(e.f),A,I=0,R=getFontProperties(k);e.fWeight=R.weight,e.fStyle=R.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var C=e.tr/1e3*e.finalSize,x;if(e.sz)for(var P=!0,O=e.sz[0],V=e.sz[1],H,F;P;){F=this.buildFinalText(e.t),H=0,f=0,a=F.length,C=e.tr/1e3*e.finalSize;var U=-1;for(s=0;s<a;s+=1)x=F[s].charCodeAt(0),l=!1,F[s]===" "?U=s:(x===13||x===3)&&(f=0,l=!0,H+=e.finalLineHeight||e.finalSize*1.2),t.chars?(A=t.getCharData(F[s],k.fStyle,k.fFamily),I=l?0:A.w*e.finalSize/100):I=t.measureText(F[s],e.f,e.finalSize),f+I>O&&F[s]!==" "?(U===-1?a+=1:s=U,H+=e.finalLineHeight||e.finalSize*1.2,F.splice(s,U===s?1:0,"\r"),U=-1,f=0):(f+=I,f+=C);H+=k.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&V<H?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=F,a=e.finalText.length,P=!1)}f=-C,I=0;var K=0,z;for(s=0;s<a;s+=1)if(l=!1,z=e.finalText[s],x=z.charCodeAt(0),x===13||x===3?(K=0,y.push(f),_=f>_?f:_,f=-2*C,p="",l=!0,g+=1):p=z,t.chars?(A=t.getCharData(z,k.fStyle,t.getFontByName(e.f).fFamily),I=l?0:A.w*e.finalSize/100):I=t.measureText(p,e.f,e.finalSize),z===" "?K+=I+C:(f+=I+C+K,K=0),n.push({l:I,an:I,add:m,n:l,anIndexes:[],val:p,line:g,animatorJustifyOffset:0}),d==2){if(m+=I,p===""||p===" "||s===a-1){for((p===""||p===" ")&&(m-=I);b<=s;)n[b].an=m,n[b].ind=u,n[b].extra=I,b+=1;u+=1,m=0}}else if(d==3){if(m+=I,p===""||s===a-1){for(p===""&&(m-=I);b<=s;)n[b].an=m,n[b].ind=u,n[b].extra=I,b+=1;m=0,u+=1}}else n[u].ind=u,n[u].extra=0,u+=1;if(e.l=n,_=f>_?f:_,y.push(f),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=_,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var L=r.a,j,M;S=L.length;var D,N,B=[];for(E=0;E<S;E+=1){for(j=L[E],j.a.sc&&(e.strokeColorAnim=!0),j.a.sw&&(e.strokeWidthAnim=!0),(j.a.fc||j.a.fh||j.a.fs||j.a.fb)&&(e.fillColorAnim=!0),N=0,D=j.s.b,s=0;s<a;s+=1)M=n[s],M.anIndexes[E]=N,(D==1&&M.val!==""||D==2&&M.val!==""&&M.val!==" "||D==3&&(M.n||M.val==" "||s==a-1)||D==4&&(M.n||s==a-1))&&(j.s.rn===1&&B.push(N),N+=1);r.a[E].s.totalChars=N;var G=-1,q;if(j.s.rn===1)for(s=0;s<a;s+=1)M=n[s],G!=M.anIndexes[E]&&(G=M.anIndexes[E],q=B.splice(Math.floor(Math.random()*B.length),1)[0]),M.anIndexes[E]=q}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=k.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 n(a,l){this._currentTextLength=-1,this.k=!1,this.data=l,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,l.s||{k:0},0,0,this),"e"in l?this.e=PropertyFactory.getProp(a,l.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,l.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,l.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,l.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,l.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,l.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(l){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var u=0,p=0,d=1,m=1;this.ne.v>0?u=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?d=1-this.xe.v/100:m=1+this.xe.v/100;var b=BezierFactory.getBezierEasing(u,p,d,m).get,g=0,y=this.finalS,f=this.finalE,_=this.data.sh;if(_===2)f===y?g=l>=f?1:0:g=e(0,t(.5/(f-y)+(l-y)/(f-y),1)),g=b(g);else if(_===3)f===y?g=l>=f?0:1:g=1-e(0,t(.5/(f-y)+(l-y)/(f-y),1)),g=b(g);else if(_===4)f===y?g=0:(g=e(0,t(.5/(f-y)+(l-y)/(f-y),1)),g<.5?g*=2:g=1-2*(g-.5)),g=b(g);else if(_===5){if(f===y)g=0;else{var E=f-y;l=t(e(0,l+.5-y),f-y);var S=-E/2+l,k=E/2;g=Math.sqrt(1-S*S/(k*k))}g=b(g)}else _===6?(f===y?g=0:(l=t(e(0,l+.5-y),f-y),g=(1+Math.cos(Math.PI+Math.PI*2*l/(f-y)))/2),g=b(g)):(l>=r(y)&&(l-y<0?g=e(0,t(t(f,1)-(y-l),1)):g=e(0,t(f-l,1))),g=b(g));if(this.sm.v!==100){var A=this.sm.v*.01;A===0&&(A=1e-8);var I=.5-A*.5;g<I?g=0:(g=(g-I)/A,g>1&&(g=1))}return g*this.a.v},getValue:function(l){this.iterateDynamicProperties(),this._mdf=l||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,l&&this.data.r===2&&(this.e.v=this._currentTextLength);var u=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/u,d=this.s.v/u+p,m=this.e.v/u+p;if(d>m){var b=d;d=m,m=b}this.finalS=d,this.finalE=m}},extendPrototype([DynamicPropertyContainer],n);function s(a,l,u){return new n(a,l)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,r):n,rx:a.rx?s(e,a.rx,0,degToRads,r):n,ry:a.ry?s(e,a.ry,0,degToRads,r):n,sk:a.sk?s(e,a.sk,0,degToRads,r):n,sa:a.sa?s(e,a.sa,0,degToRads,r):n,s:a.s?s(e,a.s,1,.01,r):n,a:a.a?s(e,a.a,1,0,r):n,o:a.o?s(e,a.o,0,.01,r):n,p:a.p?s(e,a.p,1,0,r):n,sw:a.sw?s(e,a.sw,0,0,r):n,sc:a.sc?s(e,a.sc,1,0,r):n,fc:a.fc?s(e,a.fc,1,0,r):n,fh:a.fh?s(e,a.fh,0,0,r):n,fs:a.fs?s(e,a.fs,0,.01,r):n,fb:a.fb?s(e,a.fb,0,.01,r):n,t:a.t?s(e,a.t,0,0,r):n},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,n=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:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(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=n(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,n=this._animatorsData,s=this._textData,a=this.mHelper,l=this._renderType,u=this.renderedLetters.length,p,d,m,b,g=e.l,y,f,_,E,S,k,A,I,R,C,x,P,O,V,H;if(this._hasMaskedPath){if(H=this._pathData.m,!this._pathData.n||this._pathData._mdf){var F=H.v;this._pathData.r.v&&(F=F.reverse()),y={tLength:0,segments:[]},b=F._length-1;var U;for(P=0,m=0;m<b;m+=1)U=bez.buildBezierData(F.v[m],F.v[m+1],[F.o[m][0]-F.v[m][0],F.o[m][1]-F.v[m][1]],[F.i[m+1][0]-F.v[m+1][0],F.i[m+1][1]-F.v[m+1][1]]),y.tLength+=U.segmentLength,y.segments.push(U),P+=U.segmentLength;m=b,H.v.c&&(U=bez.buildBezierData(F.v[m],F.v[0],[F.o[m][0]-F.v[m][0],F.o[m][1]-F.v[m][1]],[F.i[0][0]-F.v[0][0],F.i[0][1]-F.v[0][1]]),y.tLength+=U.segmentLength,y.segments.push(U),P+=U.segmentLength),this._pathData.pi=y}if(y=this._pathData.pi,f=this._pathData.f.v,A=0,k=1,E=0,S=!0,C=y.segments,f<0&&H.v.c)for(y.tLength<Math.abs(f)&&(f=-Math.abs(f)%y.tLength),A=C.length-1,R=C[A].points,k=R.length-1;f<0;)f+=R[k].partialLength,k-=1,k<0&&(A-=1,R=C[A].points,k=R.length-1);R=C[A].points,I=R[k-1],_=R[k],x=_.partialLength}b=g.length,p=0,d=0;var K=e.finalSize*1.2*.714,z=!0,L,j,M,D,N;D=n.length;var B,G=-1,q,Q,Z,te=f,ne=A,se=k,de=-1,ue,le,he,ie,J,_e,Se,be,ye="",ve=this.defaultPropsArray,pe;if(e.j===2||e.j===1){var ce=0,fe=0,W=e.j===2?-.5:-1,Y=0,X=!0;for(m=0;m<b;m+=1)if(g[m].n){for(ce&&(ce+=fe);Y<m;)g[Y].animatorJustifyOffset=ce,Y+=1;ce=0,X=!0}else{for(M=0;M<D;M+=1)L=n[M].a,L.t.propType&&(X&&e.j===2&&(fe+=L.t.v*W),j=n[M].s,B=j.getMult(g[m].anIndexes[M],s.a[M].s.totalChars),B.length?ce+=L.t.v*B[0]*W:ce+=L.t.v*B*W);X=!1}for(ce&&(ce+=fe);Y<m;)g[Y].animatorJustifyOffset=ce,Y+=1}for(m=0;m<b;m+=1){if(a.reset(),ue=1,g[m].n)p=0,d+=e.yOffset,d+=z?1:0,f=te,z=!1,this._hasMaskedPath&&(A=ne,k=se,R=C[A].points,I=R[k-1],_=R[k],x=_.partialLength,E=0),ye="",be="",_e="",pe="",ve=this.defaultPropsArray;else{if(this._hasMaskedPath){if(de!==g[m].line){switch(e.j){case 1:f+=P-e.lineWidths[g[m].line];break;case 2:f+=(P-e.lineWidths[g[m].line])/2;break}de=g[m].line}G!==g[m].ind&&(g[G]&&(f+=g[G].extra),f+=g[m].an/2,G=g[m].ind),f+=r[0]*g[m].an*.005;var ee=0;for(M=0;M<D;M+=1)L=n[M].a,L.p.propType&&(j=n[M].s,B=j.getMult(g[m].anIndexes[M],s.a[M].s.totalChars),B.length?ee+=L.p.v[0]*B[0]:ee+=L.p.v[0]*B),L.a.propType&&(j=n[M].s,B=j.getMult(g[m].anIndexes[M],s.a[M].s.totalChars),B.length?ee+=L.a.v[0]*B[0]:ee+=L.a.v[0]*B);for(S=!0,this._pathData.a.v&&(f=g[0].an*.5+(P-this._pathData.f.v-g[0].an*.5-g[g.length-1].an*.5)*G/(b-1),f+=this._pathData.f.v);S;)E+x>=f+ee||!R?(O=(f+ee-E)/_.partialLength,Q=I.point[0]+(_.point[0]-I.point[0])*O,Z=I.point[1]+(_.point[1]-I.point[1])*O,a.translate(-r[0]*g[m].an*.005,-(r[1]*K)*.01),S=!1):R&&(E+=_.partialLength,k+=1,k>=R.length&&(k=0,A+=1,C[A]?R=C[A].points:H.v.c?(k=0,A=0,R=C[A].points):(E-=_.partialLength,R=null)),R&&(I=_,_=R[k],x=_.partialLength));q=g[m].an/2-g[m].add,a.translate(-q,0,0)}else q=g[m].an/2-g[m].add,a.translate(-q,0,0),a.translate(-r[0]*g[m].an*.005,-r[1]*K*.01,0);for(M=0;M<D;M+=1)L=n[M].a,L.t.propType&&(j=n[M].s,B=j.getMult(g[m].anIndexes[M],s.a[M].s.totalChars),(p!==0||e.j!==0)&&(this._hasMaskedPath?B.length?f+=L.t.v*B[0]:f+=L.t.v*B:B.length?p+=L.t.v*B[0]:p+=L.t.v*B));for(e.strokeWidthAnim&&(he=e.sw||0),e.strokeColorAnim&&(e.sc?le=[e.sc[0],e.sc[1],e.sc[2]]:le=[0,0,0]),e.fillColorAnim&&e.fc&&(ie=[e.fc[0],e.fc[1],e.fc[2]]),M=0;M<D;M+=1)L=n[M].a,L.a.propType&&(j=n[M].s,B=j.getMult(g[m].anIndexes[M],s.a[M].s.totalChars),B.length?a.translate(-L.a.v[0]*B[0],-L.a.v[1]*B[1],L.a.v[2]*B[2]):a.translate(-L.a.v[0]*B,-L.a.v[1]*B,L.a.v[2]*B));for(M=0;M<D;M+=1)L=n[M].a,L.s.propType&&(j=n[M].s,B=j.getMult(g[m].anIndexes[M],s.a[M].s.totalChars),B.length?a.scale(1+(L.s.v[0]-1)*B[0],1+(L.s.v[1]-1)*B[1],1):a.scale(1+(L.s.v[0]-1)*B,1+(L.s.v[1]-1)*B,1));for(M=0;M<D;M+=1){if(L=n[M].a,j=n[M].s,B=j.getMult(g[m].anIndexes[M],s.a[M].s.totalChars),L.sk.propType&&(B.length?a.skewFromAxis(-L.sk.v*B[0],L.sa.v*B[1]):a.skewFromAxis(-L.sk.v*B,L.sa.v*B)),L.r.propType&&(B.length?a.rotateZ(-L.r.v*B[2]):a.rotateZ(-L.r.v*B)),L.ry.propType&&(B.length?a.rotateY(L.ry.v*B[1]):a.rotateY(L.ry.v*B)),L.rx.propType&&(B.length?a.rotateX(L.rx.v*B[0]):a.rotateX(L.rx.v*B)),L.o.propType&&(B.length?ue+=(L.o.v*B[0]-ue)*B[0]:ue+=(L.o.v*B-ue)*B),e.strokeWidthAnim&&L.sw.propType&&(B.length?he+=L.sw.v*B[0]:he+=L.sw.v*B),e.strokeColorAnim&&L.sc.propType)for(J=0;J<3;J+=1)B.length?le[J]+=(L.sc.v[J]-le[J])*B[0]:le[J]+=(L.sc.v[J]-le[J])*B;if(e.fillColorAnim&&e.fc){if(L.fc.propType)for(J=0;J<3;J+=1)B.length?ie[J]+=(L.fc.v[J]-ie[J])*B[0]:ie[J]+=(L.fc.v[J]-ie[J])*B;L.fh.propType&&(B.length?ie=addHueToRGB(ie,L.fh.v*B[0]):ie=addHueToRGB(ie,L.fh.v*B)),L.fs.propType&&(B.length?ie=addSaturationToRGB(ie,L.fs.v*B[0]):ie=addSaturationToRGB(ie,L.fs.v*B)),L.fb.propType&&(B.length?ie=addBrightnessToRGB(ie,L.fb.v*B[0]):ie=addBrightnessToRGB(ie,L.fb.v*B))}}for(M=0;M<D;M+=1)L=n[M].a,L.p.propType&&(j=n[M].s,B=j.getMult(g[m].anIndexes[M],s.a[M].s.totalChars),this._hasMaskedPath?B.length?a.translate(0,L.p.v[1]*B[0],-L.p.v[2]*B[1]):a.translate(0,L.p.v[1]*B,-L.p.v[2]*B):B.length?a.translate(L.p.v[0]*B[0],L.p.v[1]*B[1],-L.p.v[2]*B[2]):a.translate(L.p.v[0]*B,L.p.v[1]*B,-L.p.v[2]*B));if(e.strokeWidthAnim&&(_e=he<0?0:he),e.strokeColorAnim&&(Se="rgb("+Math.round(le[0]*255)+","+Math.round(le[1]*255)+","+Math.round(le[2]*255)+")"),e.fillColorAnim&&e.fc&&(be="rgb("+Math.round(ie[0]*255)+","+Math.round(ie[1]*255)+","+Math.round(ie[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,r[1]*K*.01+d,0),this._pathData.p.v){V=(_.point[1]-I.point[1])/(_.point[0]-I.point[0]);var re=Math.atan(V)*180/Math.PI;_.point[0]<I.point[0]&&(re+=180),a.rotate(-re*Math.PI/180)}a.translate(Q,Z,0),f-=r[0]*g[m].an*.005,g[m+1]&&G!==g[m+1].ind&&(f+=g[m].an/2,f+=e.tr*.001*e.finalSize)}else{switch(a.translate(p,d,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(g[m].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[g[m].line]),0,0);break;case 2:a.translate(g[m].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[g[m].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(q,0,0),a.translate(r[0]*g[m].an*.005,r[1]*K*.01,0),p+=g[m].l+e.tr*.001*e.finalSize}l==="html"?ye=a.toCSS():l==="svg"?ye=a.to2dCSS():ve=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],pe=ue}u<=m?(N=new LetterProps(pe,_e,Se,be,ye,ve),this.renderedLetters.push(N),u+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[m],this.lettersChangedFlag=N.update(pe,_e,Se,be,ye,ve)||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,n=t.length,s,a="";for(r=0;r<n;r+=1)t[r].ty==="sh"&&(s=t[r].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},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,n,s){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(n,s,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,n=[],s="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(s),s=""):s+=e[t],t+=1;return n.push(s),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.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 n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var s=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var l=r.l||[],u=!!this.globalData.fontManager.chars;t=l.length;var p,d=this.mHelper,m="",b=this.data.singleShape,g=0,y=0,f=!0,_=r.tr*.001*r.finalSize;if(b&&!u&&!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",_);var k=this.buildTextContents(r.finalText);for(t=k.length,y=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)p=this.textSpans[e].span||createNS("tspan"),p.textContent=k[e],p.setAttribute("x",0),p.setAttribute("y",y),p.style.display="inherit",E.appendChild(p),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=p,y+=r.finalLineHeight;this.layerElement.appendChild(E)}else{var A=this.textSpans.length,I;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!u||!b||e===0){if(p=A>e?this.textSpans[e].span:createNS(u?"g":"text"),A<=e){if(p.setAttribute("stroke-linecap","butt"),p.setAttribute("stroke-linejoin","round"),p.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=p,u){var R=createNS("g");p.appendChild(R),this.textSpans[e].childSpan=R}this.textSpans[e].span=p,this.layerElement.appendChild(p)}p.style.display="inherit"}if(d.reset(),b&&(l[e].n&&(g=-_,y+=r.yOffset,y+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(r,d,l[e].line,g,y),g+=l[e].l||0,g+=_),u){I=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var C;if(I.t===1)C=new SVGCompElement(I.data,this.globalData,this);else{var x=emptyShapeData;I.data&&I.data.shapes&&(x=this.buildShapeData(I.data,r.finalSize)),C=new SVGShapeElement(x,this.globalData,this)}if(this.textSpans[e].glyph){var P=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(P.layerElement),P.destroy()}this.textSpans[e].glyph=C,C._debug=!0,C.prepareFrame(0),C.renderFrame(),this.textSpans[e].childSpan.appendChild(C.layerElement),I.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else b&&p.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),p.textContent=l[e].val,p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}b&&p&&p.setAttribute("d",m)}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,n=this.textProperty.currentData.l;t=n.length;var s,a,l;for(e=0;e<t;e+=1)n[e].n||(s=r[e],a=this.textSpans[e].span,l=this.textSpans[e].glyph,l&&l.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.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"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),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 n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(r);else{var s=t[n],a=s.getMatte(this.layers[e].tt);r.setMatte(a)}}}},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 n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[n],a=s.getMatte(this.layers[t].tt);e.setMatte(a);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 n=0,s;n<t;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(r,s):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,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-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 n=createNS("title"),s=createElementID();n.setAttribute("id",s),n.textContent=t.title,this.svgElement.appendChild(n),r+=s}if(t&&t.description){var a=createNS("desc"),l=createElementID();a.setAttribute("id",l),a.textContent=t.description,this.svgElement.appendChild(a),r+=" "+l}r&&this.svgElement.setAttribute("aria-labelledby",r);var u=createNS("defs");this.svgElement.appendChild(u);var p=createNS("g");this.svgElement.appendChild(p),this.layerElement=p,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:u,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,n=t.length,s="_";for(r=0;r<n;r+=1)s+=t[r].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,r){for(var n=0,s=t.transforms.length,a=r;n<s&&!r;){if(t.transforms[n].transform.mProps._mdf){a=!0;break}n+=1}if(a)for(t.finalTransform.reset(),n=s-1;n>=0;n-=1)t.finalTransform.multiply(t.transforms[n].transform.mProps.v);t._mdf=a},processSequences:function(t){var r,n=this.sequenceList.length;for(r=0;r<n;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,n=null,s=null;function a(){var p=createNS("svg"),d=createNS("filter"),m=createNS("feColorMatrix");return d.setAttribute("id",t),m.setAttribute("type","matrix"),m.setAttribute("color-interpolation-filters","sRGB"),m.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"),d.appendChild(m),p.appendChild(d),p.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(p.style.display="none"),p}function l(){r||(s=a(),document.body.appendChild(s),r=createTag("canvas"),n=r.getContext("2d"),n.filter="url(#"+t+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}function u(p){return r||l(),r.width=p.width,r.height=p.height,n.filter="url(#"+t+")",r}return{load:l,get:u}};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 n;for(t=0;t<r;t+=1){n=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var a=registeredEffects[s].effect;n=new a(e.effectsManager.effectElements[t],e)}n&&this.filters.push(n)}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,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};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,n=this.masksProperties.length,s=!1;for(r=0;r<n;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,n=this.masksProperties.length,s,a,l;for(t.beginPath(),r=0;r<n;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)),l=this.viewData[r].v,s=e.applyToPointArray(l.v[0][0],l.v[0][1],0),t.moveTo(s[0],s[1]);var u,p=l._length;for(u=1;u<p;u+=1)a=e.applyToTriplePoints(l.o[u-1],l.i[u],l.v[u]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(l.o[u-1],l.i[0],l.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[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 n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n),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 n=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(n.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,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,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,l=r.length,u;for(a=0;a<l;a+=1)r[a].closed||(u={transforms:n.addTransformSequence(r[a].transforms),trNodes:[]},this.styledShapes.push(u),r[a].elements.push(u))}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},n={};if(e.ty==="fl"||e.ty==="st"?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.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),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);n.d=s,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},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,n,s){var a,l=e.length-1,u,p,d=[],m=[],b,g,y,f=[].concat(s);for(a=l;a>=0;a-=1){if(b=this.searchProcessedElement(e[a]),b?t[a]=r[b-1]:e[a]._shouldRender=n,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")b?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],f),d.push(t[a].style);else if(e[a].ty==="gr"){if(!b)t[a]=this.createGroupElement(e[a]);else for(p=t[a].it.length,u=0;u<p;u+=1)t[a].prevViewData[u]=t[a].it[u];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,n,f)}else e[a].ty==="tr"?(b||(y=this.createTransformElement(e[a]),t[a]=y),f.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?b||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(b?(g=t[a],g.closed=!1):(g=ShapeModifiers.getModifier(e[a].ty),g.init(this,e[a]),t[a]=g,this.shapeModifiers.push(g)),m.push(g)):e[a].ty==="rp"&&(b?(g=t[a],g.closed=!0):(g=ShapeModifiers.getModifier(e[a].ty),t[a]=g,g.init(this,e,a,t),this.shapeModifiers.push(g),n=!1),m.push(g));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),l=m.length,a=0;a<l;a+=1)m[a].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,n,s,a,l,u,p=this.globalData.renderer,d=this.globalData.canvasContext,m,b;for(e=0;e<t;e+=1)if(b=this.stylesList[e],m=b.type,!((m==="st"||m==="gs")&&b.wi===0||!b.data._shouldRender||b.coOp===0||this.globalData.currentGlobalAlpha===0)){for(p.save(),l=b.elements,m==="st"||m==="gs"?(p.ctxStrokeStyle(m==="st"?b.co:b.grd),p.ctxLineWidth(b.wi),p.ctxLineCap(b.lc),p.ctxLineJoin(b.lj),p.ctxMiterLimit(b.ml||0)):p.ctxFillStyle(m==="fl"?b.co:b.grd),p.ctxOpacity(b.coOp),m!=="st"&&m!=="gs"&&d.beginPath(),p.ctxTransform(b.preTransforms.finalTransform.props),n=l.length,r=0;r<n;r+=1){for((m==="st"||m==="gs")&&(d.beginPath(),b.da&&(d.setLineDash(b.da),d.lineDashOffset=b.do)),u=l[r].trNodes,a=u.length,s=0;s<a;s+=1)u[s].t==="m"?d.moveTo(u[s].p[0],u[s].p[1]):u[s].t==="c"?d.bezierCurveTo(u[s].pts[0],u[s].pts[1],u[s].pts[2],u[s].pts[3],u[s].pts[4],u[s].pts[5]):d.closePath();(m==="st"||m==="gs")&&(p.ctxStroke(),b.da&&d.setLineDash(this.dashResetter))}m!=="st"&&m!=="gs"&&this.globalData.renderer.ctxFill(b.r),p.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var s,a=t.length-1,l;for(l=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(l=r[s].transform,this.renderShapeTransform(e,l)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],l):t[s].ty==="st"?this.renderStroke(t[s],r[s],l):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],l):t[s].ty==="gr"?this.renderShape(l,t[s].it,r[s].it):t[s].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,n=t.paths,s,a,l,u=n._length;r.length=0;var p=e.transforms.finalTransform;for(l=0;l<u;l+=1){var d=n.shapes[l];if(d&&d.v){for(a=d._length,s=1;s<a;s+=1)s===1&&r.push({t:"m",p:p.applyToPointArray(d.v[0][0],d.v[0][1],0)}),r.push({t:"c",pts:p.applyToTriplePoints(d.o[s-1],d.i[s],d.v[s])});a===1&&r.push({t:"m",p:p.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&a&&(r.push({t:"c",pts:p.applyToTriplePoints(d.o[s-1],d.i[0],d.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n=t.style,s;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,l=t.s.v,u=t.e.v;if(e.t===1)s=a.createLinearGradient(l[0],l[1],u[0],u[1]);else{var p=Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)),d=Math.atan2(u[1]-l[1],u[0]-l[0]),m=t.h.v;m>=1?m=.99:m<=-1&&(m=-.99);var b=p*m,g=Math.cos(d+t.a.v)*b+l[0],y=Math.sin(d+t.a.v)*b+l[1];s=a.createRadialGradient(g,y,0,l[0],l[1],p)}var f,_=e.g.p,E=t.g.c,S=1;for(f=0;f<_;f+=1)t.g._hasOpacity&&t.g._collapsable&&(S=t.g.o[f*2+1]),s.addColorStop(E[f*4]/100,"rgba("+E[f*4+1]+","+E[f*4+2]+","+E[f*4+3]+","+S+")");n.grd=s}n.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(n.da=s.dashArray,n.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.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 n=this.globalData.fontManager.getFontByName(e.f),s,a,l=e.l,u=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var p,d,m,b,g,y,f,_,E,S,k=this.data.singleShape,A=e.tr*.001*e.finalSize,I=0,R=0,C=!0,x=0;for(s=0;s<a;s+=1){p=this.globalData.fontManager.getCharData(e.finalText[s],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),d=p&&p.data||{},u.reset(),k&&l[s].n&&(I=-A,R+=e.yOffset,R+=C?1:0,C=!1),g=d.shapes?d.shapes[0].it:[],f=g.length,u.scale(e.finalSize/100,e.finalSize/100),k&&this.applyTextPropertiesToMatrix(e,u,l[s].line,I,R),E=createSizedArray(f-1);var P=0;for(y=0;y<f;y+=1)if(g[y].ty==="sh"){for(b=g[y].ks.k.i.length,_=g[y].ks.k,S=[],m=1;m<b;m+=1)m===1&&S.push(u.applyToX(_.v[0][0],_.v[0][1],0),u.applyToY(_.v[0][0],_.v[0][1],0)),S.push(u.applyToX(_.o[m-1][0],_.o[m-1][1],0),u.applyToY(_.o[m-1][0],_.o[m-1][1],0),u.applyToX(_.i[m][0],_.i[m][1],0),u.applyToY(_.i[m][0],_.i[m][1],0),u.applyToX(_.v[m][0],_.v[m][1],0),u.applyToY(_.v[m][0],_.v[m][1],0));S.push(u.applyToX(_.o[m-1][0],_.o[m-1][1],0),u.applyToY(_.o[m-1][0],_.o[m-1][1],0),u.applyToX(_.i[0][0],_.i[0][1],0),u.applyToY(_.i[0][0],_.i[0][1],0),u.applyToX(_.v[0][0],_.v[0][1],0),u.applyToY(_.v[0][0],_.v[0][1],0)),E[P]=S,P+=1}k&&(I+=l[s].l,I+=A),this.textSpans[x]?this.textSpans[x].elem=E:this.textSpans[x]={elem:E},x+=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,n,s,a,l,u=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;r=p.length;var d,m=null,b=null,g=null,y,f,_=this.globalData.renderer;for(t=0;t<r;t+=1)if(!p[t].n){if(d=u[t],d&&(_.save(),_.ctxTransform(d.p),_.ctxOpacity(d.o)),this.fill){for(d&&d.fc?m!==d.fc&&(_.ctxFillStyle(d.fc),m=d.fc):m!==this.values.fill&&(m=this.values.fill,_.ctxFillStyle(this.values.fill)),y=this.textSpans[t].elem,s=y.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(f=y[n],l=f.length,this.globalData.canvasContext.moveTo(f[0],f[1]),a=2;a<l;a+=6)this.globalData.canvasContext.bezierCurveTo(f[a],f[a+1],f[a+2],f[a+3],f[a+4],f[a+5]);this.globalData.canvasContext.closePath(),_.ctxFill()}if(this.stroke){for(d&&d.sw?g!==d.sw&&(g=d.sw,_.ctxLineWidth(d.sw)):g!==this.values.sWidth&&(g=this.values.sWidth,_.ctxLineWidth(this.values.sWidth)),d&&d.sc?b!==d.sc&&(b=d.sc,_.ctxStrokeStyle(d.sc)):b!==this.values.stroke&&(b=this.values.stroke,_.ctxStrokeStyle(this.values.stroke)),y=this.textSpans[t].elem,s=y.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(f=y[n],l=f.length,this.globalData.canvasContext.moveTo(f[0],f[1]),a=2;a<l;a+=6)this.globalData.canvasContext.bezierCurveTo(f[a],f[a+1],f[a+2],f[a+3],f[a+4],f[a+5]);this.globalData.canvasContext.closePath(),_.ctxStroke()}d&&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,n=this.img.height,s=r/n,a=this.assetData.w/this.assetData.h,l,u,p=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&p==="xMidYMid slice"||s<a&&p!=="xMidYMid slice"?(u=n,l=u*a):(l=r,u=l/a),t.drawImage(this.img,(r-l)/2,(n-u)/2,l,u,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,n){this.canvasContext.fillRect(e,t,r,n)},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,n;e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr);var s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var l=this.renderConfig.preserveAspectRatio.split(" "),u=l[1]||"meet",p=l[0]||"xMidYMid",d=p.substr(0,4),m=p.substr(4);s=r/n,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&u==="meet"||a<s&&u==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),d==="xMid"&&(a<s&&u==="meet"||a>s&&u==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:d==="xMax"&&(a<s&&u==="meet"||a>s&&u==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,m==="YMid"&&(a>s&&u==="meet"||a<s&&u==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:m==="YMax"&&(a>s&&u==="meet"||a<s&&u==="slice")?this.transformCanvas.ty=(n-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=n/(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,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-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=n-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,n,s=this.cTr.props;for(n=0;n<16;n+=1)s[n]=r[n];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.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],n;for(n=0;n<16;n+=1)r.transform[n]=t[n];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=r.opacity,s.fillStyle=r.fillStyle,s.strokeStyle=r.strokeStyle,s.lineWidth=r.lineWidth,s.lineCap=r.lineCap,s.lineJoin=r.lineJoin,s.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,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},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,n=e.length;for(r=0;r<n;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,n=e.transformers,s,a=r._length,l,u,p,d;if(!(a<=1)){for(s=0;s<a-1;s+=1)l=this.getTransformedPoint(n,r.v[s]),u=this.getTransformedPoint(n,r.o[s]),p=this.getTransformedPoint(n,r.i[s+1]),d=this.getTransformedPoint(n,r.v[s+1]),this.checkBounds(l,u,p,d,t);r.c&&(l=this.getTransformedPoint(n,r.v[s]),u=this.getTransformedPoint(n,r.o[s]),p=this.getTransformedPoint(n,r.i[0]),d=this.getTransformedPoint(n,r.v[0]),this.checkBounds(l,u,p,d,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,s){this.getBoundsOfCurve(e,t,r,n);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.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,n){for(var s=[[e[0],n[0]],[e[1],n[1]]],a,l,u,p,d,m,b,g=0;g<2;++g)l=6*e[g]-12*t[g]+6*r[g],a=-3*e[g]+9*t[g]-9*r[g]+3*n[g],u=3*t[g]-3*e[g],l|=0,a|=0,u|=0,a===0&&l===0||(a===0?(p=-u/l,p>0&&p<1&&s[g].push(this.calculateF(p,e,t,r,n,g))):(d=l*l-4*u*a,d>=0&&(m=(-l+bmSqrt(d))/(2*a),m>0&&m<1&&s[g].push(this.calculateF(m,e,t,r,n,g)),b=(-l-bmSqrt(d))/(2*a),b>0&&b<1&&s[g].push(this.calculateF(b,e,t,r,n,g)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*r[a]+3*(1-e)*bmPow(e,2)*n[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;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 n=0;n<e.keyframes.length;n+=1){var s=e.keyframes[n].s;s>r&&(r=s)}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 n=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=s,n.webkitTransform=s}}};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 n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var l,u,p=e.l;u=p.length;var d,m,b,g=this.mHelper,y,f="",_=0;for(l=0;l<u;l+=1){if(this.globalData.fontManager.chars?(this.textPaths[_]?d=this.textPaths[_]:(d=createNS("path"),d.setAttribute("stroke-linecap",lineCapEnum[1]),d.setAttribute("stroke-linejoin",lineJoinEnum[2]),d.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[_]?(m=this.textSpans[_],b=m.children[0]):(m=createTag("div"),m.style.lineHeight=0,b=createNS("svg"),b.appendChild(d),styleDiv(m)))):this.isMasked?d=this.textPaths[_]?this.textPaths[_]:createNS("text"):this.textSpans[_]?(m=this.textSpans[_],d=this.textPaths[_]):(m=createTag("span"),styleDiv(m),d=createTag("span"),styleDiv(d),m.appendChild(d)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(e.finalText[l],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),S;if(E?S=E.data:S=null,g.reset(),S&&S.shapes&&S.shapes.length&&(y=S.shapes[0].it,g.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(g,y),d.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(d);else{if(this.innerElem.appendChild(m),S&&S.shapes){document.body.appendChild(b);var k=b.getBBox();b.setAttribute("width",k.width+2),b.setAttribute("height",k.height+2),b.setAttribute("viewBox",k.x-1+" "+(k.y-1)+" "+(k.width+2)+" "+(k.height+2));var A=b.style,I="translate("+(k.x-1)+"px,"+(k.y-1)+"px)";A.transform=I,A.webkitTransform=I,p[l].yOffset=k.y-1}else b.setAttribute("width",1),b.setAttribute("height",1);m.appendChild(b)}}else if(d.textContent=p[l].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(d);else{this.innerElem.appendChild(m);var R=d.style,C="translate3d(0,"+-e.finalSize/1.2+"px,0)";R.transform=C,R.webkitTransform=C}this.isMasked?this.textSpans[_]=d:this.textSpans[_]=m,this.textSpans[_].style.display="block",this.textPaths[_]=d,_+=1}for(;_<this.textSpans.length;)this.textSpans[_].style.display="none",_+=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,n,s=0,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;n=l.length;var u,p,d;for(r=0;r<n;r+=1)l[r].n?s+=1:(p=this.textSpans[r],d=this.textPaths[r],u=a[s],s+=1,u._mdf.m&&(this.isMasked?p.setAttribute("transform",u.m):(p.style.webkitTransform=u.m,p.style.transform=u.m)),p.style.opacity=u.o,u.sw&&u._mdf.sw&&d.setAttribute("stroke-width",u.sw),u.sc&&u._mdf.sc&&d.setAttribute("stroke",u.sc),u.fc&&u._mdf.fc&&(d.setAttribute("fill",u.fc),d.style.color=u.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var m=this.innerElem.getBBox();this.currentBBox.w!==m.width&&(this.currentBBox.w=m.width,this.svgElement.setAttribute("width",m.width)),this.currentBBox.h!==m.height&&(this.currentBBox.h=m.height,this.svgElement.setAttribute("height",m.height));var b=1;if(this.currentBBox.w!==m.width+b*2||this.currentBBox.h!==m.height+b*2||this.currentBBox.x!==m.x-b||this.currentBBox.y!==m.y-b){this.currentBBox.w=m.width+b*2,this.currentBBox.h=m.height+b*2,this.currentBBox.x=m.x-b,this.currentBBox.y=m.y-b,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var g="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=g,e.webkitTransform=g}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(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,n,s;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){n=r.perspectiveElem.style,s=r.container.style;var a=this.pe.v+"px",l="0px 0px 0px",u="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=a,n.webkitPerspective=a,s.transformOrigin=l,s.mozTransformOrigin=l,s.webkitTransformOrigin=l,n.transform=u,n.webkitTransform=u}},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 n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.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 s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),l=[s[0]/a,s[1]/a,s[2]/a],u=Math.sqrt(l[2]*l[2]+l[0]*l[0]),p=Math.atan2(l[1],u),d=Math.atan2(l[0],-l[2]);this.mat.rotateY(d).rotateX(-p)}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 m=!this._prevMat.equals(this.mat);if((m||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var b,g,y;for(t=0;t<r;t+=1)if(b=this.comp.threeDElements[t],b.type==="3d"){if(m){var f=this.mat.toCSS();y=b.container.style,y.transform=f,y.webkitTransform=f}this.pe._mdf&&(g=b.perspectiveElem.style,g.perspective=this.pe.v+"px",g.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 n=this.layers[t];if(!n.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var s=0,a,l,u;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(l=this.elements[s],u=this.layers[s].ddd?this.getThreeDContainerByPos(s):l.getBaseElement(),a=u||a),s+=1;a?(!n.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,a):(!n.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"),n,s;styleDiv(r);var a=createTag("div");if(styleDiv(a),t==="3d"){n=r.style,n.width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var l="50% 50%";n.webkitTransformOrigin=l,n.mozTransformOrigin=l,n.transformOrigin=l,s=a.style;var u="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=u,s.webkitTransform=u}r.appendChild(a);var p={container:a,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(p),p},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,n="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(n!=="3d"&&(n="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(n!=="2d"&&(n="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,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var s=this.threeDElements[r].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[r].container.insertBefore(e,a):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,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,n=this.globalData.compSize.w/this.globalData.compSize.h,s,a,l,u;n>r?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,l=0,u=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,l=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,u=0);var p=this.resizerElem.style;p.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+l+","+u+",0,1)",p.transform=p.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,n=this.threeDElements.length;for(r=0;r<n;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var s=this.createComp(e[t],n,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};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,n;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):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 n=0,s=e.layers.length;n<s;){if(e.layers[n].nm===r||e.layers[n].ind===r)return e.elements[n].layerInterface;n+=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,n=256,s=6,a=52,l="random",u=t.pow(n,s),p=t.pow(2,a),d=p*2,m=n-1,b;function g(A,I,R){var C=[];I=I===!0?{entropy:!0}:I||{};var x=E(_(I.entropy?[A,k(e)]:A===null?S():A,3),C),P=new y(C),O=function(){for(var H=P.g(s),F=u,U=0;H<p;)H=(H+U)*n,F*=n,U=P.g(1);for(;H>=d;)H/=2,F/=2,U>>>=1;return(H+U)/F};return O.int32=function(){return P.g(4)|0},O.quick=function(){return P.g(4)/4294967296},O.double=O,E(k(P.S),e),(I.pass||R||function(V,H,F,U){return U&&(U.S&&f(U,P),V.state=function(){return f(P,{})}),F?(t[l]=V,H):V})(O,x,"global"in I?I.global:this==t,I.state)}t["seed"+l]=g;function y(A){var I,R=A.length,C=this,x=0,P=C.i=C.j=0,O=C.S=[];for(R||(A=[R++]);x<n;)O[x]=x++;for(x=0;x<n;x++)O[x]=O[P=m&P+A[x%R]+(I=O[x])],O[P]=I;C.g=function(V){for(var H,F=0,U=C.i,K=C.j,z=C.S;V--;)H=z[U=m&U+1],F=F*n+z[m&(z[U]=z[K=m&K+H])+(z[K]=H)];return C.i=U,C.j=K,F}}function f(A,I){return I.i=A.i,I.j=A.j,I.S=A.S.slice(),I}function _(A,I){var R=[],C=_typeof$2(A),x;if(I&&C=="object")for(x in A)try{R.push(_(A[x],I-1))}catch(P){}return R.length?R:C=="string"?A:A+"\0"}function E(A,I){for(var R=A+"",C,x=0;x<R.length;)I[m&x]=m&(C^=I[m&x]*19)+R.charCodeAt(x++);return k(I)}function S(){try{var A=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(A),k(A)}catch(C){var I=r.navigator,R=I&&I.plugins;return[+new Date,r,R,r.screen,k(e)]}}function k(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,n=e.length,s=[];for(r=0;r<n;r+=1)s[r]=-e[r];return s}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),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||r==="string"||n==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,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 s=0,a=e.length,l=t.length,u=[];s<a||s<l;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?u[s]=e[s]+t[s]:u[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return u}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return r==="string"&&(e=parseInt(e,10)),n==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,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 s=0,a=e.length,l=t.length,u=[];s<a||s<l;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?u[s]=e[s]-t[s]:u[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return u}return 0}function mul(e,t){var r=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(n,t))return e*t;var a,l;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(l=e.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e[a]*t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(l=t.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var r=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(n,t))return e/t;var a,l;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(l=e.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e[a]/t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(l=t.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e/t[a];return s}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 n=r;r=t,t=n}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,n=Math.min(e.length,t.length),s=0;for(r=0;r<n;r+=1)s+=Math.pow(t[r]-e[r],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],n=e[2],s=Math.max(t,r,n),a=Math.min(t,r,n),l,u,p=(s+a)/2;if(s===a)l=0,u=0;else{var d=s-a;switch(u=p>.5?d/(2-s-a):d/(s+a),s){case t:l=(r-n)/d+(r<n?6:0);break;case r:l=(n-t)/d+2;break;case n:l=(t-r)/d+4;break}l/=6}return[l,u,p,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],n=e[2],s,a,l;if(r===0)s=n,l=n,a=n;else{var u=n<.5?n*(1+r):n+r-n*r,p=2*n-u;s=hue2rgb(p,u,t+1/3),a=hue2rgb(p,u,t),l=hue2rgb(p,u,t-1/3)}return[s,a,l,e[3]]}function linear(e,t,r,n,s){if((n===void 0||s===void 0)&&(n=t,s=r,t=0,r=1),r<t){var a=r;r=t,t=a}if(e<=t)return n;if(e>=r)return s;var l=r===t?0:(e-t)/(r-t);if(!n.length)return n+(s-n)*l;var u,p=n.length,d=createTypedArray("float32",p);for(u=0;u<p;u+=1)d[u]=n[u]+(s[u]-n[u])*l;return d}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var s=createTypedArray("float32",n),a=BMMath.random();for(r=0;r<n;r+=1)s[r]=e[r]+a*(t[r]-e[r]);return s}e===void 0&&(e=0);var l=BMMath.random();return e+l*(t-e)}function createPath(e,t,r,n){var s,a=e.length,l=shapePool.newElement();l.setPathData(!!n,a);var u=[0,0],p,d;for(s=0;s<a;s+=1)p=t&&t[s]?t[s]:u,d=r&&r[s]?r[s]:u,l.setTripleAt(e[s][0],e[s][1],d[0]+e[s][0],d[1]+e[s][1],p[0]+e[s][0],p[1]+e[s][1],s,!0);return l}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 n,s,a=this.pv.length?this.pv.length:1,l=createTypedArray("float32",a);t=5;var u=Math.floor(time*t);for(n=0,s=0;n<u;){for(s=0;s<a;s+=1)l[s]+=-r+r*2*BMMath.random();n+=1}var p=time*t,d=p-Math.floor(p),m=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)m[s]=this.pv[s]+l[s]+(-r+r*2*BMMath.random())*d;return m}return this.pv+l[0]+(-r+r*2*BMMath.random())*d}.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]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,s=-Math.atan2(r[1],r[2])/degToRads;return[s,n,0]}function easeOut(e,t,r,n,s){return applyEase(easeOutBez,e,t,r,n,s)}function easeIn(e,t,r,n,s){return applyEase(easeInBez,e,t,r,n,s)}function ease(e,t,r,n,s){return applyEase(easeInOutBez,e,t,r,n,s)}function applyEase(e,t,r,n,s,a){s===void 0?(s=r,a=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var l=e(t);if($bm_isInstanceOfArray(s)){var u,p=s.length,d=createTypedArray("float32",p);for(u=0;u<p;u+=1)d[u]=(a[u]-s[u])*l+s[u];return d}return(a-s)*l+s}function nearestKey(e){var t,r=data.k.length,n,s;if(!data.k.length||typeof data.k[0]=="number")n=0,s=0;else if(n=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)n=1,s=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){n=t+1,s=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?(n=t+2,s=data.k[t+1].t):(n=t+1,s=data.k[t].t);break}n===-1&&(n=t+1,s=data.k[t].t)}var a={};return a.index=n,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,r,n;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 s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=s.length,r=0;r<n;r+=1)t[r]=s[r],t.value[r]=s[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 n=0,s=[];function a(){n+=1}function l(){n-=1,n===0&&p()}function u(d){s.indexOf(d)===-1&&s.push(d)}function p(){var d,m=s.length;for(d=0;d<m;d+=1)s[d].release();s.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=a,r.renderer.globalData.popExpression=l,r.renderer.globalData.registerExpressionProperty=u}return e}(),MaskManagerInterface=function(){function e(r,n){this._mask=r,this._data=n}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(n){var s=createSizedArray(n.viewData.length),a,l=n.viewData.length;for(a=0;a<l;a+=1)s[a]=new e(n.viewData[a],n.masksProperties[a]);var u=function(d){for(a=0;a<l;){if(n.masksProperties[a].nm===d)return s[a];a+=1}return null};return u};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(l,u,p){Object.defineProperty(l,"velocity",{get:function(){return u.getVelocityAtTime(u.comp.currentFrame)}}),l.numKeys=u.keyframes?u.keyframes.length:0,l.key=function(d){if(!l.numKeys)return 0;var m="";"s"in u.keyframes[d-1]?m=u.keyframes[d-1].s:"e"in u.keyframes[d-2]?m=u.keyframes[d-2].e:m=u.keyframes[d-2].s;var b=p==="unidimensional"?new Number(m):Object.assign({},m);return b.time=u.keyframes[d-1].t/u.elem.comp.globalData.frameRate,b.value=p==="unidimensional"?m[0]:m,b},l.valueAtTime=u.getValueAtTime,l.speedAtTime=u.getSpeedAtTime,l.velocityAtTime=u.getVelocityAtTime,l.propertyGroup=u.propertyGroup}function n(l){(!l||!("pv"in l))&&(l=e);var u=1/l.mult,p=l.pv*u,d=new Number(p);return d.value=p,r(d,l,"unidimensional"),function(){return l.k&&l.getValue(),p=l.v*u,d.value!==p&&(d=new Number(p),d.value=p,r(d,l,"unidimensional")),d}}function s(l){(!l||!("pv"in l))&&(l=t);var u=1/l.mult,p=l.data&&l.data.l||l.pv.length,d=createTypedArray("float32",p),m=createTypedArray("float32",p);return d.value=m,r(d,l,"multidimensional"),function(){l.k&&l.getValue();for(var b=0;b<p;b+=1)m[b]=l.v[b]*u,d[b]=m[b];return d}}function a(){return e}return function(l){return l?l.propType==="unidimensional"?n(l):s(l):a}}(),TransformExpressionInterface=function(){return function(e){function t(l){switch(l){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,n,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[r(),n(),s?s():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(d){var m=new Matrix;if(d!==void 0){var b=this._elem.finalTransform.mProp.getValueAtTime(d);b.clone(m)}else{var g=this._elem.finalTransform.mProp;g.applyToMatrix(m)}return m}function t(d,m){var b=this.getMatrix(m);return b.props[12]=0,b.props[13]=0,b.props[14]=0,this.applyPoint(b,d)}function r(d,m){var b=this.getMatrix(m);return this.applyPoint(b,d)}function n(d,m){var b=this.getMatrix(m);return b.props[12]=0,b.props[13]=0,b.props[14]=0,this.invertPoint(b,d)}function s(d,m){var b=this.getMatrix(m);return this.invertPoint(b,d)}function a(d,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var b,g=this._elem.hierarchy.length;for(b=0;b<g;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(d)}return d.applyToPointArray(m[0],m[1],m[2]||0)}function l(d,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var b,g=this._elem.hierarchy.length;for(b=0;b<g;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(d)}return d.inversePoint(m)}function u(d){var m=new Matrix;if(m.reset(),this._elem.finalTransform.mProp.applyToMatrix(m),this._elem.hierarchy&&this._elem.hierarchy.length){var b,g=this._elem.hierarchy.length;for(b=0;b<g;b+=1)this._elem.hierarchy[b].finalTransform.mProp.applyToMatrix(m);return m.inversePoint(d)}return m.inversePoint(d)}function p(){return[1,1,1,1]}return function(d){var m;function b(_){y.mask=new MaskManagerInterface(_,d)}function g(_){y.effect=_}function y(_){switch(_){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return m;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=e,y.invertPoint=l,y.applyPoint=a,y.toWorld=r,y.toWorldVec=t,y.fromWorld=s,y.fromWorldVec=n,y.toComp=r,y.fromComp=u,y.sampleImage=p,y.sourceRectAtTime=d.sourceRectAtTime.bind(d),y._elem=d,m=TransformExpressionInterface(d.finalTransform.mProp);var f=getDescriptor(m,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(m,"rotation"),scale:getDescriptor(m,"scale"),position:getDescriptor(m,"position"),opacity:getDescriptor(m,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return m}},active:{get:function(){return d.isInRange}}}),y.startTime=d.data.st,y.index=d.data.ind,y.source=d.data.refId,y.height=d.data.ty===0?d.data.h:100,y.width=d.data.ty===0?d.data.w:100,y.inPoint=d.data.ip/d.comp.globalData.frameRate,y.outPoint=d.data.op/d.comp.globalData.frameRate,y._name=d.data.nm,y.registerMaskInterface=b,y.registerEffectsInterface=g,y}}(),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 n(s){return s=s===void 0?1:s,s<=0?r:t(s-1)}return n}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var l=[],u=s.data.ef,p,d=s.effectsManager.effectElements.length;for(p=0;p<d;p+=1)l.push(r(u[p],s.effectsManager.effectElements[p],a,s));var m=s.data.ef||[],b=function(y){for(p=0,d=m.length;p<d;){if(y===m[p].nm||y===m[p].mn||y===m[p].ix)return l[p];p+=1}return null};return Object.defineProperty(b,"numProperties",{get:function(){return m.length}}),b}return null}function r(s,a,l,u){function p(y){for(var f=s.ef,_=0,E=f.length;_<E;){if(y===f[_].nm||y===f[_].mn||y===f[_].ix)return f[_].ty===5?m[_]:m[_]();_+=1}throw new Error}var d=propertyGroupFactory(p,l),m=[],b,g=s.ef.length;for(b=0;b<g;b+=1)s.ef[b].ty===5?m.push(r(s.ef[b],a.effectElements[b],a.effectElements[b].propertyGroup,u)):m.push(n(a.effectElements[b],s.ef[b].ty,u,d));return s.mn==="ADBE Color Control"&&Object.defineProperty(p,"color",{get:function(){return m[0]()}}),Object.defineProperties(p,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:d}}),p.enabled=s.en!==0,p.active=p.enabled,p}function n(s,a,l,u){var p=ExpressionPropertyInterface(s.p);function d(){return a===10?l.comp.compInterface(s.p.v):p()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",u)),d}return e}(),ShapePathInterface=function(){return function(t,r,n){var s=r.sh;function a(u){return u==="Shape"||u==="shape"||u==="Path"||u==="path"||u==="ADBE Vector Shape"||u===2?a.path:null}var l=propertyGroupFactory(a,n);return s.setGroupProperty(PropertyInterface("Path",l)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:n}}),a}}(),ShapeExpressionInterface=function(){function e(f,_,E){var S=[],k,A=f?f.length:0;for(k=0;k<A;k+=1)f[k].ty==="gr"?S.push(r(f[k],_[k],E)):f[k].ty==="fl"?S.push(n(f[k],_[k],E)):f[k].ty==="st"?S.push(l(f[k],_[k],E)):f[k].ty==="tm"?S.push(u(f[k],_[k],E)):f[k].ty==="tr"||(f[k].ty==="el"?S.push(d(f[k],_[k],E)):f[k].ty==="sr"?S.push(m(f[k],_[k],E)):f[k].ty==="sh"?S.push(ShapePathInterface(f[k],_[k],E)):f[k].ty==="rc"?S.push(b(f[k],_[k],E)):f[k].ty==="rd"?S.push(g(f[k],_[k],E)):f[k].ty==="rp"?S.push(y(f[k],_[k],E)):f[k].ty==="gf"?S.push(s(f[k],_[k],E)):S.push(a(f[k],_[k])));return S}function t(f,_,E){var S,k=function(R){for(var C=0,x=S.length;C<x;){if(S[C]._name===R||S[C].mn===R||S[C].propertyIndex===R||S[C].ix===R||S[C].ind===R)return S[C];C+=1}return typeof R=="number"?S[R-1]:null};k.propertyGroup=propertyGroupFactory(k,E),S=e(f.it,_.it,k.propertyGroup),k.numProperties=S.length;var A=p(f.it[f.it.length-1],_.it[_.it.length-1],k.propertyGroup);return k.transform=A,k.propertyIndex=f.cix,k._name=f.nm,k}function r(f,_,E){var S=function(R){switch(R){case"ADBE Vectors Group":case"Contents":case 2:return S.content;default:return S.transform}};S.propertyGroup=propertyGroupFactory(S,E);var k=t(f,_,S.propertyGroup),A=p(f.it[f.it.length-1],_.it[_.it.length-1],S.propertyGroup);return S.content=k,S.transform=A,Object.defineProperty(S,"_name",{get:function(){return f.nm}}),S.numProperties=f.np,S.propertyIndex=f.ix,S.nm=f.nm,S.mn=f.mn,S}function n(f,_,E){function S(k){return k==="Color"||k==="color"?S.color:k==="Opacity"||k==="opacity"?S.opacity:null}return Object.defineProperties(S,{color:{get:ExpressionPropertyInterface(_.c)},opacity:{get:ExpressionPropertyInterface(_.o)},_name:{value:f.nm},mn:{value:f.mn}}),_.c.setGroupProperty(PropertyInterface("Color",E)),_.o.setGroupProperty(PropertyInterface("Opacity",E)),S}function s(f,_,E){function S(k){return k==="Start Point"||k==="start point"?S.startPoint:k==="End Point"||k==="end point"?S.endPoint:k==="Opacity"||k==="opacity"?S.opacity:null}return Object.defineProperties(S,{startPoint:{get:ExpressionPropertyInterface(_.s)},endPoint:{get:ExpressionPropertyInterface(_.e)},opacity:{get:ExpressionPropertyInterface(_.o)},type:{get:function(){return"a"}},_name:{value:f.nm},mn:{value:f.mn}}),_.s.setGroupProperty(PropertyInterface("Start Point",E)),_.e.setGroupProperty(PropertyInterface("End Point",E)),_.o.setGroupProperty(PropertyInterface("Opacity",E)),S}function a(){function f(){return null}return f}function l(f,_,E){var S=propertyGroupFactory(x,E),k=propertyGroupFactory(C,S);function A(P){Object.defineProperty(C,f.d[P].nm,{get:ExpressionPropertyInterface(_.d.dataProps[P].p)})}var I,R=f.d?f.d.length:0,C={};for(I=0;I<R;I+=1)A(I),_.d.dataProps[I].p.setGroupProperty(k);function x(P){return P==="Color"||P==="color"?x.color:P==="Opacity"||P==="opacity"?x.opacity:P==="Stroke Width"||P==="stroke width"?x.strokeWidth:null}return Object.defineProperties(x,{color:{get:ExpressionPropertyInterface(_.c)},opacity:{get:ExpressionPropertyInterface(_.o)},strokeWidth:{get:ExpressionPropertyInterface(_.w)},dash:{get:function(){return C}},_name:{value:f.nm},mn:{value:f.mn}}),_.c.setGroupProperty(PropertyInterface("Color",S)),_.o.setGroupProperty(PropertyInterface("Opacity",S)),_.w.setGroupProperty(PropertyInterface("Stroke Width",S)),x}function u(f,_,E){function S(A){return A===f.e.ix||A==="End"||A==="end"?S.end:A===f.s.ix?S.start:A===f.o.ix?S.offset:null}var k=propertyGroupFactory(S,E);return S.propertyIndex=f.ix,_.s.setGroupProperty(PropertyInterface("Start",k)),_.e.setGroupProperty(PropertyInterface("End",k)),_.o.setGroupProperty(PropertyInterface("Offset",k)),S.propertyIndex=f.ix,S.propertyGroup=E,Object.defineProperties(S,{start:{get:ExpressionPropertyInterface(_.s)},end:{get:ExpressionPropertyInterface(_.e)},offset:{get:ExpressionPropertyInterface(_.o)},_name:{value:f.nm}}),S.mn=f.mn,S}function p(f,_,E){function S(A){return f.a.ix===A||A==="Anchor Point"?S.anchorPoint:f.o.ix===A||A==="Opacity"?S.opacity:f.p.ix===A||A==="Position"?S.position:f.r.ix===A||A==="Rotation"||A==="ADBE Vector Rotation"?S.rotation:f.s.ix===A||A==="Scale"?S.scale:f.sk&&f.sk.ix===A||A==="Skew"?S.skew:f.sa&&f.sa.ix===A||A==="Skew Axis"?S.skewAxis:null}var k=propertyGroupFactory(S,E);return _.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",k)),_.transform.mProps.p.setGroupProperty(PropertyInterface("Position",k)),_.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",k)),_.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",k)),_.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",k)),_.transform.mProps.sk&&(_.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",k)),_.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",k))),_.transform.op.setGroupProperty(PropertyInterface("Opacity",k)),Object.defineProperties(S,{opacity:{get:ExpressionPropertyInterface(_.transform.mProps.o)},position:{get:ExpressionPropertyInterface(_.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(_.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(_.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(_.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(_.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(_.transform.mProps.sa)},_name:{value:f.nm}}),S.ty="tr",S.mn=f.mn,S.propertyGroup=E,S}function d(f,_,E){function S(I){return f.p.ix===I?S.position:f.s.ix===I?S.size:null}var k=propertyGroupFactory(S,E);S.propertyIndex=f.ix;var A=_.sh.ty==="tm"?_.sh.prop:_.sh;return A.s.setGroupProperty(PropertyInterface("Size",k)),A.p.setGroupProperty(PropertyInterface("Position",k)),Object.defineProperties(S,{size:{get:ExpressionPropertyInterface(A.s)},position:{get:ExpressionPropertyInterface(A.p)},_name:{value:f.nm}}),S.mn=f.mn,S}function m(f,_,E){function S(I){return f.p.ix===I?S.position:f.r.ix===I?S.rotation:f.pt.ix===I?S.points:f.or.ix===I||I==="ADBE Vector Star Outer Radius"?S.outerRadius:f.os.ix===I?S.outerRoundness:f.ir&&(f.ir.ix===I||I==="ADBE Vector Star Inner Radius")?S.innerRadius:f.is&&f.is.ix===I?S.innerRoundness:null}var k=propertyGroupFactory(S,E),A=_.sh.ty==="tm"?_.sh.prop:_.sh;return S.propertyIndex=f.ix,A.or.setGroupProperty(PropertyInterface("Outer Radius",k)),A.os.setGroupProperty(PropertyInterface("Outer Roundness",k)),A.pt.setGroupProperty(PropertyInterface("Points",k)),A.p.setGroupProperty(PropertyInterface("Position",k)),A.r.setGroupProperty(PropertyInterface("Rotation",k)),f.ir&&(A.ir.setGroupProperty(PropertyInterface("Inner Radius",k)),A.is.setGroupProperty(PropertyInterface("Inner Roundness",k))),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:f.nm}}),S.mn=f.mn,S}function b(f,_,E){function S(I){return f.p.ix===I?S.position:f.r.ix===I?S.roundness:f.s.ix===I||I==="Size"||I==="ADBE Vector Rect Size"?S.size:null}var k=propertyGroupFactory(S,E),A=_.sh.ty==="tm"?_.sh.prop:_.sh;return S.propertyIndex=f.ix,A.p.setGroupProperty(PropertyInterface("Position",k)),A.s.setGroupProperty(PropertyInterface("Size",k)),A.r.setGroupProperty(PropertyInterface("Rotation",k)),Object.defineProperties(S,{position:{get:ExpressionPropertyInterface(A.p)},roundness:{get:ExpressionPropertyInterface(A.r)},size:{get:ExpressionPropertyInterface(A.s)},_name:{value:f.nm}}),S.mn=f.mn,S}function g(f,_,E){function S(I){return f.r.ix===I||I==="Round Corners 1"?S.radius:null}var k=propertyGroupFactory(S,E),A=_;return S.propertyIndex=f.ix,A.rd.setGroupProperty(PropertyInterface("Radius",k)),Object.defineProperties(S,{radius:{get:ExpressionPropertyInterface(A.rd)},_name:{value:f.nm}}),S.mn=f.mn,S}function y(f,_,E){function S(I){return f.c.ix===I||I==="Copies"?S.copies:f.o.ix===I||I==="Offset"?S.offset:null}var k=propertyGroupFactory(S,E),A=_;return S.propertyIndex=f.ix,A.c.setGroupProperty(PropertyInterface("Copies",k)),A.o.setGroupProperty(PropertyInterface("Offset",k)),Object.defineProperties(S,{copies:{get:ExpressionPropertyInterface(A.c)},offset:{get:ExpressionPropertyInterface(A.o)},_name:{value:f.nm}}),S.mn=f.mn,S}return function(f,_,E){var S;function k(I){if(typeof I=="number")return I=I===void 0?1:I,I===0?E:S[I-1];for(var R=0,C=S.length;R<C;){if(S[R]._name===I)return S[R];R+=1}return null}function A(){return E}return k.propertyGroup=propertyGroupFactory(k,A),S=e(f,_,k.propertyGroup),k.numProperties=S.length,k._name="Contents",k}}(),TextExpressionInterface=function(){return function(e){var t;function r(n){switch(n){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),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(n){var s="",a=n.getFootageData();function l(){return s="",a=n.getFootageData(),u}function u(p){if(a[p])return s=p,a=a[p],_typeof(a)==="object"?u:a;var d=p.indexOf(s);if(d!==-1){var m=parseInt(p.substr(d+s.length),10);return a=a[m],_typeof(a)==="object"?u:a}return""}return l},t=function(n){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(n),s};return function(r){function n(s){return s==="Data"?n.dataInterface:null}return n._name="Data",n.dataInterface=t(r),n}}(),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(l,u,p){u.x&&(p.k=!0,p.x=!0,p.initiateExpression=ExpressionManager.initiateExpression,p.effectsSequence.push(p.initiateExpression(l,u,p).bind(p)))}function t(l){return l*=this.elem.globalData.frameRate,l-=this.offsetTime,l!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<l?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(l,this._cachingAtTime),this._cachingAtTime.lastFrame=l),this._cachingAtTime.value}function r(l){var u=-.01,p=this.getValueAtTime(l),d=this.getValueAtTime(l+u),m=0;if(p.length){var b;for(b=0;b<p.length;b+=1)m+=Math.pow(d[b]-p[b],2);m=Math.sqrt(m)*100}else m=0;return m}function n(l){if(this.vel!==void 0)return this.vel;var u=-.001,p=this.getValueAtTime(l),d=this.getValueAtTime(l+u),m;if(p.length){m=createTypedArray("float32",p.length);var b;for(b=0;b<p.length;b+=1)m[b]=(d[b]-p[b])/u}else m=(d-p)/u;return m}function s(){return this.pv}function a(l){this.propertyGroup=l}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:n,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}}();function addPropertyDecorator(){function e(g,y,f){if(!this.k||!this.keyframes)return this.pv;g=g?g.toLowerCase():"";var _=this.comp.renderedFrame,E=this.keyframes,S=E[E.length-1].t;if(_<=S)return this.pv;var k,A;f?(y?k=Math.abs(S-this.elem.comp.globalData.frameRate*y):k=Math.max(0,S-this.elem.data.ip),A=S-k):((!y||y>E.length-1)&&(y=E.length-1),A=E[E.length-1-y].t,k=S-A);var I,R,C;if(g==="pingpong"){var x=Math.floor((_-A)/k);if(x%2!==0)return this.getValueAtTime((k-(_-A)%k+A)/this.comp.globalData.frameRate,0)}else if(g==="offset"){var P=this.getValueAtTime(A/this.comp.globalData.frameRate,0),O=this.getValueAtTime(S/this.comp.globalData.frameRate,0),V=this.getValueAtTime(((_-A)%k+A)/this.comp.globalData.frameRate,0),H=Math.floor((_-A)/k);if(this.pv.length){for(C=new Array(P.length),R=C.length,I=0;I<R;I+=1)C[I]=(O[I]-P[I])*H+V[I];return C}return(O-P)*H+V}else if(g==="continue"){var F=this.getValueAtTime(S/this.comp.globalData.frameRate,0),U=this.getValueAtTime((S-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(C=new Array(F.length),R=C.length,I=0;I<R;I+=1)C[I]=F[I]+(F[I]-U[I])*((_-S)/this.comp.globalData.frameRate)/5e-4;return C}return F+(F-U)*((_-S)/.001)}return this.getValueAtTime(((_-A)%k+A)/this.comp.globalData.frameRate,0)}function t(g,y,f){if(!this.k)return this.pv;g=g?g.toLowerCase():"";var _=this.comp.renderedFrame,E=this.keyframes,S=E[0].t;if(_>=S)return this.pv;var k,A;f?(y?k=Math.abs(this.elem.comp.globalData.frameRate*y):k=Math.max(0,this.elem.data.op-S),A=S+k):((!y||y>E.length-1)&&(y=E.length-1),A=E[y].t,k=A-S);var I,R,C;if(g==="pingpong"){var x=Math.floor((S-_)/k);if(x%2===0)return this.getValueAtTime(((S-_)%k+S)/this.comp.globalData.frameRate,0)}else if(g==="offset"){var P=this.getValueAtTime(S/this.comp.globalData.frameRate,0),O=this.getValueAtTime(A/this.comp.globalData.frameRate,0),V=this.getValueAtTime((k-(S-_)%k+S)/this.comp.globalData.frameRate,0),H=Math.floor((S-_)/k)+1;if(this.pv.length){for(C=new Array(P.length),R=C.length,I=0;I<R;I+=1)C[I]=V[I]-(O[I]-P[I])*H;return C}return V-(O-P)*H}else if(g==="continue"){var F=this.getValueAtTime(S/this.comp.globalData.frameRate,0),U=this.getValueAtTime((S+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(C=new Array(F.length),R=C.length,I=0;I<R;I+=1)C[I]=F[I]+(F[I]-U[I])*(S-_)/.001;return C}return F+(F-U)*(S-_)/.001}return this.getValueAtTime((k-((S-_)%k+S))/this.comp.globalData.frameRate,0)}function r(g,y){if(!this.k)return this.pv;if(g=(g||.4)*.5,y=Math.floor(y||5),y<=1)return this.pv;var f=this.comp.renderedFrame/this.comp.globalData.frameRate,_=f-g,E=f+g,S=y>1?(E-_)/(y-1):1,k=0,A=0,I;this.pv.length?I=createTypedArray("float32",this.pv.length):I=0;for(var R;k<y;){if(R=this.getValueAtTime(_+k*S),this.pv.length)for(A=0;A<this.pv.length;A+=1)I[A]+=R[A];else I+=R;k+=1}if(this.pv.length)for(A=0;A<this.pv.length;A+=1)I[A]/=y;else I/=y;return I}function n(g){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var f=this.a.getValueAtTime(g);y.translate(-f[0]*this.a.mult,-f[1]*this.a.mult,f[2]*this.a.mult)}if(this.appliedTransformations<2){var _=this.s.getValueAtTime(g);y.scale(_[0]*this.s.mult,_[1]*this.s.mult,_[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var E=this.sk.getValueAtTime(g),S=this.sa.getValueAtTime(g);y.skewFromAxis(-E*this.sk.mult,S*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var k=this.r.getValueAtTime(g);y.rotate(-k*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var A=this.rz.getValueAtTime(g),I=this.ry.getValueAtTime(g),R=this.rx.getValueAtTime(g),C=this.or.getValueAtTime(g);y.rotateZ(-A*this.rz.mult).rotateY(I*this.ry.mult).rotateX(R*this.rx.mult).rotateZ(-C[2]*this.or.mult).rotateY(C[1]*this.or.mult).rotateX(C[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var x=this.px.getValueAtTime(g),P=this.py.getValueAtTime(g);if(this.data.p.z){var O=this.pz.getValueAtTime(g);y.translate(x*this.px.mult,P*this.py.mult,-O*this.pz.mult)}else y.translate(x*this.px.mult,P*this.py.mult,0)}else{var V=this.p.getValueAtTime(g);y.translate(V[0]*this.p.mult,V[1]*this.p.mult,-V[2]*this.p.mult)}return y}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(g,y,f){var _=a(g,y,f);return _.dynamicProperties.length?_.getValueAtTime=n.bind(_):_.getValueAtTime=s.bind(_),_.setGroupProperty=expressionHelpers.setGroupProperty,_};var l=PropertyFactory.getProp;PropertyFactory.getProp=function(g,y,f,_,E){var S=l(g,y,f,_,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=y.a===1?y.k.length:0,S.propertyIndex=y.ix;var k=0;return f!==0&&(k=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length)),S._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:k},expressionHelpers.searchExpressions(g,y,S),S.k&&E.addDynamicProperty(S),S};function u(g){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),g*=this.elem.globalData.frameRate,g-=this.offsetTime,g!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<g?this._caching.lastIndex:0,this._cachingAtTime.lastTime=g,this.interpolateShape(g,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var p=ShapePropertyFactory.getConstructorFunction(),d=ShapePropertyFactory.getKeyframedConstructorFunction();function m(){}m.prototype={vertices:function(y,f){this.k&&this.getValue();var _=this.v;f!==void 0&&(_=this.getValueAtTime(f,0));var E,S=_._length,k=_[y],A=_.v,I=createSizedArray(S);for(E=0;E<S;E+=1)y==="i"||y==="o"?I[E]=[k[E][0]-A[E][0],k[E][1]-A[E][1]]:I[E]=[k[E][0],k[E][1]];return I},points:function(y){return this.vertices("v",y)},inTangents:function(y){return this.vertices("i",y)},outTangents:function(y){return this.vertices("o",y)},isClosed:function(){return this.v.c},pointOnPath:function(y,f){var _=this.v;f!==void 0&&(_=this.getValueAtTime(f,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(_));for(var E=this._segmentsLength,S=E.lengths,k=E.totalLength*y,A=0,I=S.length,R=0,C;A<I;){if(R+S[A].addedLength>k){var x=A,P=_.c&&A===I-1?0:A+1,O=(k-R)/S[A].addedLength;C=bez.getPointInSegment(_.v[x],_.v[P],_.o[x],_.i[P],O,S[A]);break}else R+=S[A].addedLength;A+=1}return C||(C=_.c?[_.v[0][0],_.v[0][1]]:[_.v[_._length-1][0],_.v[_._length-1][1]]),C},vectorOnPath:function(y,f,_){y==1?y=this.v.c:y==0&&(y=.999);var E=this.pointOnPath(y,f),S=this.pointOnPath(y+.001,f),k=S[0]-E[0],A=S[1]-E[1],I=Math.sqrt(Math.pow(k,2)+Math.pow(A,2));if(I===0)return[0,0];var R=_==="tangent"?[k/I,A/I]:[-A/I,k/I];return R},tangentOnPath:function(y,f){return this.vectorOnPath(y,f,"tangent")},normalOnPath:function(y,f){return this.vectorOnPath(y,f,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([m],p),extendPrototype([m],d),d.prototype.getValueAtTime=u,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var b=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(g,y,f,_,E){var S=b(g,y,f,_,E);return S.propertyIndex=y.ix,S.lock=!1,f===3?expressionHelpers.searchExpressions(g,y.pt,S):f===4&&expressionHelpers.searchExpressions(g,y.ks,S),S.k&&g.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 n=this.calculateExpression(r);if(t.t!==n){var s={};return this.copyData(s,t),s.t=n.toString(),s.__complete=!1,s}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 n=createNS("feMerge");n.setAttribute("result",t);var s,a;for(a=0;a<r.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",r[a]),n.appendChild(s),n.appendChild(s);return n}};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,n,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",n+"_tint_1"),e.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",n+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var l=this.createMergeNode(n,[s,n+"_tint_1",n+"_tint_2"]);e.appendChild(l)}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,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 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,n){this.filterManager=t;var 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",n),e.appendChild(s),this.matrixFilter=s}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,n,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,n=0):(n=this.filterManager.effectElements[0].p.v-1,s=n+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),n;n<s;n+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:n});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),l=createElementID();a.setAttribute("id",l),a.setAttribute("mask-type","alpha"),a.appendChild(r),this.elem.globalData.defs.appendChild(a);var u=createNS("g");for(u.setAttribute("mask","url("+getLocationHref()+"#"+l+")");e[0];)u.appendChild(e[0]);this.elem.layerElement.appendChild(u),this.masker=a,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,n,s;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(n=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&s.setAttribute("d",n.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||n.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var l=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,u=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,p=s.getTotalLength();a="0 0 0 "+p*l+" ";var d=p*(u-l),m=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,b=Math.floor(d/m),g;for(g=0;g<b;g+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+p*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}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 y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}};function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),this.matrixFilter=a;var l=createNS("feFuncR");l.setAttribute("type","table"),a.appendChild(l),this.feFuncR=l;var u=createNS("feFuncG");u.setAttribute("type","table"),a.appendChild(u),this.feFuncG=u;var p=createNS("feFuncB");p.setAttribute("type","table"),a.appendChild(p),this.feFuncB=p,e.appendChild(a)}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,n=this.filterManager.effectElements[2].p.v,s=n[0]+" "+r[0]+" "+t[0],a=n[1]+" "+r[1]+" "+t[1],l=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",l)}};function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}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,n,s){for(var a=0,l=256,u,p=Math.min(e,t),d=Math.max(e,t),m=Array.call(null,{length:l}),b,g=0,y=s-n,f=t-e;a<=256;)u=a/256,u<=p?b=f<0?s:n:u>=d?b=f<0?n:s:b=n+y*Math.pow((u-e)/f,1/r),m[g]=b,g+=1,a+=256/(l-1);return m.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,n,s){var a=t.container.globalData.renderConfig.filterSize,l=t.data.fs||a;e.setAttribute("x",l.x||a.x),e.setAttribute("y",l.y||a.y),e.setAttribute("width",l.width||a.width),e.setAttribute("height",l.height||a.height),this.filterManager=t;var u=createNS("feGaussianBlur");u.setAttribute("in","SourceAlpha"),u.setAttribute("result",n+"_drop_shadow_1"),u.setAttribute("stdDeviation","0"),this.feGaussianBlur=u,e.appendChild(u);var p=createNS("feOffset");p.setAttribute("dx","25"),p.setAttribute("dy","0"),p.setAttribute("in",n+"_drop_shadow_1"),p.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=p,e.appendChild(p);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=d,e.appendChild(d);var m=createNS("feComposite");m.setAttribute("in",n+"_drop_shadow_3"),m.setAttribute("in2",n+"_drop_shadow_2"),m.setAttribute("operator","in"),m.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(m);var b=this.createMergeNode(n,[n+"_drop_shadow_4",s]);e.appendChild(b)}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,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(n),a=r*Math.sin(n);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};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 n=r.children,s=0,a=n.length;s<a&&n[s]!==e.layerElement;)s+=1;var l;s<=a-2&&(l=n[s+1]);var u=createNS("use");u.setAttribute("href","#"+t),l?r.insertBefore(u,l):r.appendChild(u)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(n);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(t,r),a.appendChild(t.layerElement),s.appendChild(a);var l=createNS("use");l.setAttribute("href","#"+r),n.appendChild(l),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,n=t.length;r<n;)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,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",n),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,n=this.filterManager.effectElements[1].p.v,s=n==3?0:r,a=n==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var l=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",l)}};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,n=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,l=s?a:t[4].p.v,u=t[5].p.v,p=t[6].p.v,d=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(l*.01,a*.01,1),this.matrix.rotate(-d*degToRads),this.matrix.skewFromAxis(-u*degToRads,(p+90)*degToRads),this.matrix.translate(n[0],n[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 n=!0}catch(a){}var s=nativeObjectToString$1.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),s}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,n=e.length;for(t||(t=Array(n));++r<n;)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,n=e==null?0:e.length;++r<n&&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 n=e[t];(!(hasOwnProperty$9.call(e,t)&&eq(n,r))||r===void 0&&!(t in e))&&baseAssignValue(e,t,r)}function copyObject(e,t,r,n){var s=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var u=t[a],p=n?n(r[u],e[u],u,r,e):void 0;p===void 0&&(p=e[u]),s?baseAssignValue(r,u,p):assignValue(r,u,p)}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,n=Array(e);++r<e;)n[r]=t(r);return n}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),n=!r&&isArguments$1(e),s=!r&&!n&&isBuffer$1(e),a=!r&&!n&&!s&&isTypedArray$1(e),l=r||n||s||a,u=l?baseTimes(e.length,String):[],p=u.length;for(var d in e)(t||hasOwnProperty$7.call(e,d))&&!(l&&(d=="length"||s&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||isIndex(d,p)))&&u.push(d);return u}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 n in e)n=="constructor"&&(t||!hasOwnProperty$5.call(e,n))||r.push(n);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 n=e[t];this.set(n[0],n[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 n=t.length-1;return r==n?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__,n=assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map"),Map$1$1=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1$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),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[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,n=t.length,s=e.length;++r<n;)e[s+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 n=r.__data__;if(!Map$1$1||n.length<LARGE_ARRAY_SIZE-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(n)}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,n=allocUnsafe?allocUnsafe(r):new e.constructor(r);return e.copy(n),n}function arrayFilter(e,t){for(var r=-1,n=e==null?0:e.length,s=0,a=[];++r<n;){var l=e[r];t(l,r,e)&&(a[s++]=l)}return a}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 n=t(e);return isArray$1(e)?n:arrayPush(n,r(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols$1)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,getSymbolsIn$1)}var DataView$1=getNative(root$1,"DataView"),DataView$1$1=DataView$1,Promise$1=getNative(root$1,"Promise"),Promise$2=Promise$1,Set$1=getNative(root$1,"Set"),Set$1$1=Set$1,mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1$1),mapCtorString=toSource(Map$1$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1$1&&getTag(new DataView$1$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1$1&&getTag(new Map$1$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,n=r?toSource(r):"";if(n)switch(n){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 n=e.constructor;switch(t){case arrayBufferTag$2:return cloneArrayBuffer(e);case boolTag$2:case dateTag$2:return new n(+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 n;case numberTag$2:case stringTag$2:return new n(e);case regexpTag$2:return cloneRegExp(e);case setTag$3:return new n;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,n,s,a){var l,u=t&CLONE_DEEP_FLAG$1,p=t&CLONE_FLAT_FLAG,d=t&CLONE_SYMBOLS_FLAG$1;if(r&&(l=s?r(e,n,s,a):r(e)),l!==void 0)return l;if(!isObject(e))return e;var m=isArray$1(e);if(m){if(l=initCloneArray(e),!u)return copyArray(e,l)}else{var b=getTag$1(e),g=b==funcTag||b==genTag;if(isBuffer$1(e))return cloneBuffer(e,u);if(b==objectTag$1||b==argsTag$1||g&&!s){if(l=p||g?{}:initCloneObject(e),!u)return p?copySymbolsIn(e,baseAssignIn(l,e)):copySymbols(e,baseAssign(l,e))}else{if(!cloneableTags[b])return s?e:{};l=initCloneByTag(e,b,u)}}a||(a=new Stack);var y=a.get(e);if(y)return y;a.set(e,l),isSet$1(e)?e.forEach(function(E){l.add(baseClone(E,t,r,E,e,a))}):isMap$1(e)&&e.forEach(function(E,S){l.set(S,baseClone(E,t,r,S,e,a))});var f=d?p?getAllKeysIn:getAllKeys:p?keysIn:keys,_=m?void 0:f(e);return arrayEach(_||e,function(E,S){_&&(S=E,E=e[S]),assignValue(l,S,baseClone(E,t,r,S,e,a))}),l}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,n=e==null?0:e.length;++r<n;)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,n,s,a){var l=r&COMPARE_PARTIAL_FLAG$3,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var b=-1,g=!0,y=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++b<u;){var f=e[b],_=t[b];if(n)var E=l?n(_,f,b,t,e,a):n(f,_,b,e,t,a);if(E!==void 0){if(E)continue;g=!1;break}if(y){if(!arraySome(t,function(S,k){if(!cacheHas(y,k)&&(f===S||s(f,S,r,n,a)))return y.push(k)})){g=!1;break}}else if(!(f===_||s(f,_,r,n,a))){g=!1;break}}return a.delete(e),a.delete(t),g}function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r}function setToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),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,n,s,a,l){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||!a(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 u=mapToArray;case setTag:var p=n&COMPARE_PARTIAL_FLAG$2;if(u||(u=setToArray),e.size!=t.size&&!p)return!1;var d=l.get(e);if(d)return d==t;n|=COMPARE_UNORDERED_FLAG,l.set(e,t);var m=equalArrays(u(e),u(t),n,s,a,l);return l.delete(e),m;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,n,s,a){var l=r&COMPARE_PARTIAL_FLAG$1,u=getAllKeys(e),p=u.length,d=getAllKeys(t),m=d.length;if(p!=m&&!l)return!1;for(var b=p;b--;){var g=u[b];if(!(l?g in t:hasOwnProperty$1.call(t,g)))return!1}var y=a.get(e),f=a.get(t);if(y&&f)return y==t&&f==e;var _=!0;a.set(e,t),a.set(t,e);for(var E=l;++b<p;){g=u[b];var S=e[g],k=t[g];if(n)var A=l?n(k,S,g,t,e,a):n(S,k,g,e,t,a);if(!(A===void 0?S===k||s(S,k,r,n,a):A)){_=!1;break}E||(E=g=="constructor")}if(_&&!E){var I=e.constructor,R=t.constructor;I!=R&&"constructor"in e&&"constructor"in t&&!(typeof I=="function"&&I instanceof I&&typeof R=="function"&&R instanceof R)&&(_=!1)}return a.delete(e),a.delete(t),_}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,n,s,a){var l=isArray$1(e),u=isArray$1(t),p=l?arrayTag:getTag$1(e),d=u?arrayTag:getTag$1(t);p=p==argsTag?objectTag:p,d=d==argsTag?objectTag:d;var m=p==objectTag,b=d==objectTag,g=p==d;if(g&&isBuffer$1(e)){if(!isBuffer$1(t))return!1;l=!0,m=!1}if(g&&!m)return a||(a=new Stack),l||isTypedArray$1(e)?equalArrays(e,t,r,n,s,a):equalByTag(e,t,p,r,n,s,a);if(!(r&COMPARE_PARTIAL_FLAG)){var y=m&&hasOwnProperty.call(e,"__wrapped__"),f=b&&hasOwnProperty.call(t,"__wrapped__");if(y||f){var _=y?e.value():e,E=f?t.value():t;return a||(a=new Stack),s(_,E,r,n,a)}}return g?(a||(a=new Stack),equalObjects(e,t,r,n,s,a)):!1}function baseIsEqual(e,t,r,n,s){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,r,n,baseIsEqual,s)}function isEqual(e,t){return baseIsEqual(e,t)}var _export_sfc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;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 n=ref("");let s=1;const a=P=>document.querySelector(`[data-id="${P}"]`)!==null,l=async P=>{let O=e.autoPlay;e.playOnHover&&(O=!1);let V={};if(isEqual(e.animationData,{})===!1&&(V=cloneDeep(e.animationData)),e.animationLink!="")try{V=await(await fetch(e.animationLink)).json()}catch(U){console.error(U);return}let H=e.loop;typeof H=="number"&&H>0&&(H=H-1),e.delay>0&&(O=!1);const F={container:P,renderer:e.renderer,loop:H,autoplay:O,animationData:V,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(F.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(F),setTimeout(()=>{O=e.autoPlay,e.playOnHover?r.pause():O?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(),s=s*-1,r.setDirection(s),r.play()),t("onLoopComplete")}),r.addEventListener("complete",()=>{t("onComplete")}),r.addEventListener("enterFrame",()=>{t("onEnterFrame")}),r.addEventListener("segmentStart",()=>{t("onSegmentStart")})},u=computed(()=>{let P=e.width,O=e.height;return typeof e.width=="number"&&(P=`${e.width}px`),typeof e.height=="number"&&(O=`${e.height}px`),{"--lottie-animation-container-width":P,"--lottie-animation-container-height":O,"--lottie-animation-container-background-color":e.backgroundColor}}),p=()=>{r&&e.pauseOnHover&&r.pause(),r&&e.playOnHover&&r.play()},d=()=>{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 m=()=>{r&&r.play()},b=()=>{r&&r.pause()},g=()=>{r&&r.stop()},y=()=>{r&&r.destroy()},f=(P=1)=>{if(P<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(P)},_=P=>{r&&(P==="forward"?r.setDirection(1):P==="reverse"&&r.setDirection(-1))},E=(P,O=!0)=>{r&&r.goToAndStop(P,O)},S=(P,O=!0)=>{r&&r.goToAndPlay(P,O)},k=(P,O=!1)=>{r&&r.playSegments(P,O)},A=(P=!0)=>{r&&r.setSubframe(P)},I=(P=!0)=>{if(r)return r.getDuration(P)},R=(P,O=0)=>{r&&r.renderer.elements[O].updateDocumentData(P)},C=P=>{for(var O="",V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",H=V.length,F=0;F<P;F++)O+=V.charAt(Math.floor(Math.random()*H));return O},x=P=>{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 O=setInterval(()=>{if(a(P)){clearInterval(O);const V=document.querySelector(`[data-id="${P}" ]`);V&&l(V)}},0)};return onMounted(async()=>{n.value=C(20),x(n.value)}),{elementid:n,hoverEnded:d,hoverStarted:p,getCurrentStyle:u,play:m,pause:b,stop:g,destroy:y,setSpeed:f,setDirection:_,goToAndStop:E,goToAndPlay:S,playSegments:k,setSubFrame:A,getDuration:I,updateDocumentData:R}}}),_hoisted_1=["data-id"];function _sfc_render(e,t,r,n,s,a){return openBlock(),createElementBlock("div",{"data-id":e.elementid,class:"lottie-animation-container",style:normalizeStyle(e.getCurrentStyle),onMouseenter:t[0]||(t[0]=(...l)=>e.hoverStarted&&e.hoverStarted(...l)),onMouseleave:t[1]||(t[1]=(...l)=>e.hoverEnded&&e.hoverEnded(...l))},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,[encoded data, 17304 characters]",e:1},{id:"image_1",w:1080,h:3,u:"",p:"data:image/png;base64,[encoded data, 5712 characters]",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$1="_videoWrap_74f01_1",content$2="_content_74f01_6",contentWrap$1="_contentWrap_74f01_10",controls$1="_controls_74f01_17",hide$1="_hide_74f01_29",time$1="_time_74f01_32",slider$1="_slider_74f01_40",actions$1="_actions_74f01_53",actionWrap$1="_actionWrap_74f01_61",actionBtn$1="_actionBtn_74f01_64",playIcon$1="_playIcon_74f01_79",btnPlay$1="_btnPlay_74f01_82",btnPause$1="_btnPause_74f01_85",loopBtn$1="_loopBtn_74f01_92",active$1="_active_74f01_98",styles$2={videoWrap:videoWrap$1,content:content$2,contentWrap:contentWrap$1,controls:controls$1,hide:hide$1,time:time$1,slider:slider$1,actions:actions$1,actionWrap:actionWrap$1,actionBtn:actionBtn$1,playIcon:playIcon$1,btnPlay:btnPlay$1,btnPause:btnPause$1,loopBtn:loopBtn$1,active:active$1},iconLoop$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAkFBMVEUAAAD4///4///4///////4///////3///4///4///4///4///3///////////3///4///5///3///4///5///6///5///4///3///4///4///5///5///5///////4///4///3///4///6///4///5///4///3///7///6///3///7///////4///4///3//+Qo/yLAAAAL3RSTlMAdPLYCCAOpnD27NGjEwvFvybptHpdTULl4Kp/d1QczJiHZiz6nYmDPDiGORfTldnaPncAAAG2SURBVEjH3VXZYoIwEIRwS1DkqCjibT1qy///XbOIOIHE9tl92zOzs+xivKc4Po8txqzYM6d/R0dlWINY29XLcDtjdU+Cq6uP/yhqhYxyXfzyHnCIzdnUtZ1zvmjf+1TD4fd6SxdsldUY07EigTfVT33XbtRkaPAkMwXLDW3bQb9knSs5HKfkq3oNFAR/qiF7TU6Z3YyKzLqIXsYqEd6TNF/i7/iAEAYbdwg4uIGhpDejVsmpm173E2G7gh7idMyaRH7ki74rYI4i9pgweIQG+OTEF9rakBPoERjiVuhmp3lC+xkm4CMXoXqdFgttBwlPyR5GVyixBLCCBBDnYWXYNSNXeLooEvZQlHUJQetNeOVCAsKWE2DRNpgQ+ORVQPruQjhCmhDxyqY9CYGJ5ZFWDoNDxCaWx8E9K+zv8Yt2Kal8N1Vg3gEV4o3bCMrDxxfi/kgMRkT+8PMu5QU6ol+18SxCS6m+VbiimdKlPwKFrfTpz8yHxqs7ZEutX30quRZumpjR8BhzXQMu8X1I/fNqjOdej2dRK6R41a+f9MNZZr/mPJ9geFhG/+AxP67nAf12fcd4S/kFWWxhMWHsl5QAAAAASUVORK5CYII=",iconLoopActive$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAwCAMAAABpN6nPAAAA0lBMVEUAAAD4//84x/8drfH////4//8crPH4//8crfL3//8ervL5///////////3//8drfEervMcrfL////4///4///3///4///5//8drfL4//8crfL3///3///5///5///5///5///////////4///4///4///5///4//8drPP5///4//8gr//4//8drfH4///4///4///4///5///3///6//8esvP////////3///4///3///4///3///4///4///6//8erfEerfIcrfIhsfT3//8crPGbp5AlAAAARHRSTlMAdATdCPbz8dmlingOCuqlVVET4NHFcWCql+rkqX5TPyobBPrXq52JaSYiENrMy7+1a1hCNyseF+y8oY+DTEQxpHljLmZMFBAAAAIbSURBVEjH5ZTZetowEIVtvGDHCwRvBQwGwtKmFEhCoUmzx37/V4okS2iF5Do5N/4sza8Zn9FY+x66TN31tNlcJrP01+eIziAuGUWL/YeI6TVLQdaic5p56JcKNYenGK8Ouljrxcg3d9ssx3n/T46W5qKA0POZxespWrw1j0CIubgPhOUMZZudqC28UXRgBXe6Sg+QwWNl3bdwb6jYgL79G2lKBQnY7Pvq4orDEWLHQ2ihdA/g187JwbHVFY69hh6JtQ9gcR0mInrkAzZgzRMgeN8W5EUvofhkBVhZCq7CqBELSclgk7cclIKVWOMglCzgnbqSLkNXhsqI9voGO0W1hsfIEPvxPnhZcdASd1yGyh1ZHQcB7zm6k/H9VoKoPbIsHBHeDX0ecuuARrvl2LbTajcoxAxsl4WstN4/Nyos45zpLdEdW16Cf0ZnFaMzajlbjU7TUEamUszk2AicBtdWCcIVPtXMbFIPOEyja1gNQ4QM7MaUYbR9CNMQtTng5a1XVW06Gi6dLrY5LZb5iRK3DkM419RyQKz93CPMD/BwyBQutCOykWF/e5SpbCFEDTm/AUUYGVKXV/0B1CtmaHmyqBGYIgw0QtCETCu1HFOEIZZTmZtQ79DXYHhobs/gm0vlJ/AHt0mLcWBeFllulZnqGvHKS1GRL19YQZOrUKRcaTRkmVnCIv3BXhxCtXbZfBVZVhjn3pMmjftX1TvZ0b81Ol2EMAAAAABJRU5ErkJggg==",iconplay$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAACQklEQVRoBe2ZzysEYRjHd/1IKSclDtRGodxcKWWduCkX5R+QkM2FAykX8k+sk9ysk5xozxyQInEhDkr5FVqfp7w1jd3Zmdmdmfeteerb++7zzvu+n+87s7sz7yQSccQrEK+A0SuQ9ENfKBSa6dePvlE+mUx++Bkn9D6A16BV9IVUPFKZRrWhA3mdEMh5RV2kPCE34HXMUI8H8KkIuD2VJdEWKpibyYBqt5M6fH6hbQHVuxk7lGOA6XEALtV0TsNwKIDlJvFpQBnbodJRbo5A2ys0IEZe0RJqCBS01OBM7OcSotu/uCIzWmoer/karx2qcHwnY+QwsYekXlFEYUABj1E5w8QaalTJwEomqdYlxFD/4pbMuB/4KM+AlVd+oXYxcYB6rQ3l6roYUJxpKqeY2EBNKulU6mZAWOXfO4MuMTEpCafQ0YDilfupbUwcoZRK2kudDShWucPNY6JLJaylCQaEtxWtSMUephgQ7hE7vHw2yUCd6Qb2TTZwA/yyqQaOAR9i5+PONAP3AE8BPlgKXgzp+CX+gmsLdQOeFUinKPrNduoQcNsh488AfuF2Hl3OgFzfE4CnvcCLyajPwCcMm2gd8DcB8hpRGpDf9VnAr71CW4+PwoAAzwGes4IEXudusNJHStlWWUZGbqvI46KRG1uytZgO/PJwMwEgKeQ2ZHM3g7Ta3K0D6NmFA3kM1G97Xc4SYIsOBvR/wfFnQnbS3i1GHqhH9orJ70u+Fsz0Ibnxkpd8P2IujngF4hWIV8DzCvwCJiXIZfS6dB4AAAAASUVORK5CYII=",iconpause$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAABJElEQVRoBe1ZQQ6DMAyD/YuPsV/xjr2DvWLrHAkOLaAGOdWEcKRoa4md1OZUuk4hBaSAFLiEAimlATkh5yXt/8AObxzIcN5sLjQYkV9kGR9sjFnxiYVhkeG82QhoYArZoEdhz047YRhkOG82vC3QxOytxbQBVjZA2IR30xaN7J2vxbwBVjZAGMLbV/qYA6lWY897hKdurYnifayEV/3VAf7tnByQA6QCeoVIAWm4HKAlJAnkACkgDZcDtIQkgRwgBaThcoCWkCSQA6SANFwO0BKSBHKAFJCG38KBt0MmT01J48FUazwOvMrOO2tPTQnzYDw1JW++xh1mk2vwVrz59MsKzZ7Ivbt822M+cDThPTqEORH+KQicTXh3D6FNKSAFpEC4Aj8w8BfWLCtJSQAAAABJRU5ErkJggg==";var vudio={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){var r={effect:"waveform",accuracy:128,width:256,height:100,waveform:{maxHeight:80,minHeight:1,spacing:1,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle",prettify:!0},lighting:{maxHeight:80,lineWidth:0,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle"}};function n(a,l,u){if(["[object HTMLAudioSource]","[object HTMLAudioElement]","[object MediaStream]"].indexOf(Object.prototype.toString.call(a))===-1)throw new TypeError("Invaild Audio Source");if(Object.prototype.toString.call(l)!=="[object HTMLCanvasElement]")throw new TypeError("Invaild Canvas Element");this.audioSrc=a,this.canvasEle=l,this.option=s(r,u),this.meta={},this.stat=0,this.freqByteData=null,this.__init()}function s(){var a={};return Array.prototype.forEach.call(arguments,function(l){var u;for(u in l)Object.prototype.hasOwnProperty.call(l,u)&&(Object.prototype.toString.call(l[u])==="[object Object]"?a[u]=s(a[u],l[u]):a[u]=l[u])}),a}return n.prototype={__init:function(){var a=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext),l=Object.prototype.toString.call(this.audioSrc)!=="[object MediaStream]"?a.createMediaElementSource(this.audioSrc):a.createMediaStreamSource(this.audioSrc),u=window.devicePixelRatio||1;this.analyser=a.createAnalyser(),this.meta.spr=a.sampleRate,l.connect(this.analyser),this.analyser.fftSize=this.option.accuracy*2,this.analyser.connect(a.destination),this.freqByteData=new Uint8Array(this.analyser.frequencyBinCount),this.context2d=this.canvasEle.getContext("2d"),this.width=this.option.width,this.height=this.option.height,this.context2d.canvas.width=this.width*u,this.context2d.canvas.height=this.height*u,this.context2d.scale(u,u)},__rebuildData:function(a,l){var u;return l==="center"?u=[].concat(Array.from(a).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(a).splice(0,this.option.accuracy/2)):l==="left"?u=a:l==="right"?u=Array.from(a).reverse():u=[].concat(Array.from(a).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(a).splice(0,this.option.accuracy/2)),u},__animate:function(){this.stat===1&&(this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData),requestAnimationFrame(this.__animate.bind(this)))},__testFrame:function(){this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData)},__effects:function(){var a=this;return{lighting:function(l){var u=a.option.lighting,p=a.__rebuildData(l,u.horizontalAlign),d=u.maxHeight/2,m=!0,b,g;u.horizontalAlign,a.context2d.clearRect(0,0,a.width,a.height),a.context2d.lineWidth=u.lineWidth,a.context2d.strokeStyle=u.color,a.context2d.beginPath(),p.forEach(function(y,f){b=a.width/a.option.accuracy*f,g=y/256*d,u.verticalAlign==="middle"?g=(a.height-y)/2-d/2:u.verticalAlign==="bottom"?g=a.height-y:u.verticalAlign==="top"?g=y:g=(a.height-y)/2-d/2,m?(a.context2d.moveTo(b,g),m=!1):a.context2d.lineTo(b,g)}),a.context2d.stroke()},waveform:function(l){var u=a.option.waveform,p=u.fadeSide,d=u.prettify,m=a.__rebuildData(l,u.horizontalAlign),b,g,y,f,_,E,S,k;u.horizontalAlign!=="center"&&(p=!1,d=!1),a.context2d.clearRect(0,0,a.width,a.height),m.forEach(function(A,I){g=(a.width-a.option.accuracy*u.spacing)/a.option.accuracy,f=I*(g+u.spacing),u.spacing!==1&&(f+=u.spacing/2),d?I<=a.option.accuracy/2?b=(1-(a.option.accuracy/2-1-I)/(a.option.accuracy/2))*u.maxHeight:b=(1-(I-a.option.accuracy/2)/(a.option.accuracy/2))*u.maxHeight:b=u.maxHeight,y=A/256*b,y=y<u.minHeight?u.minHeight:y,u.verticalAlign==="middle"?_=(a.height-y)/2:u.verticalAlign==="top"?_=0:u.verticalAlign==="bottom"?_=a.height-y:_=(a.height-y)/2,E=u.color,E instanceof Array?(S=a.context2d.createLinearGradient(f,_,f,_+y),E.forEach(function(R,C){R instanceof Array?(k=R[0],R=R[1]):C===0||C===E.length-1?k=C/(E.length-1):k=C/E.length+.5/E.length,S.addColorStop(k,R)}),a.context2d.fillStyle=S):a.context2d.fillStyle=E,u.shadowBlur>0&&(a.context2d.shadowBlur=u.shadowBlur,a.context2d.shadowColor=u.shadowColor),p?I<=a.option.accuracy/2?a.context2d.globalAlpha=1-(a.option.accuracy/2-1-I)/(a.option.accuracy/2):a.context2d.globalAlpha=1-(I-a.option.accuracy/2)/(a.option.accuracy/2):a.context2d.globalAlpha=1,a.context2d.fillRect(f,_,g,y)})}}},dance:function(){return this.stat===0&&(this.stat=1,this.__animate()),this},pause:function(){return this.stat=0,this},setOption:function(a){this.option=s(this.option,a)}},n})})(vudio);var vudioExports=vudio.exports;const Vudio=getDefaultExportFromCjs(vudioExports),AudioItem=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},pageVisibility:{type:String,default:""},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset","close"],setup(e,{emit:t}){const{item:r,isEmtry:n}=toRefs(e),s=reactive({timer:null,currentTime:0,duration:0,loop:!1,playState:"pause",vudio:null}),a=ref(),l=ref(),u=ref();watch(()=>e.show,y=>{y||(l.value.pause(),s.playState="pause")}),watch(()=>e.pageVisibility,y=>{y==="hidden"&&e.show&&(l.value.pause(),s.playState="pause")});const p=()=>{l.value.paused?(d(l.value,a.value),l.value.play(),s.playState="play"):(l.value.pause(),s.playState="pause")},d=(y,f)=>{if(!s.vudio){const _=u.value.getBoundingClientRect()||{width:200,height:200};s.vudio=new Vudio(y,f,{effect:"waveform",accuracy:128,width:_.width,height:_.height,waveform:{maxHeight:160,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),s.vudio.dance()}},m=()=>{s.duration=l.value.duration},b=y=>{s.currentTime=y,clearTimeout(s.timer),s.timer=setTimeout(()=>{l.value.currentTime=y,s.timer=null},300)},g=()=>{s.playState="pause"};return()=>createVNode("div",{class:styles$2.videoWrap},[createVNode("div",{class:styles$2.content},[createVNode("div",{ref:u,class:styles$2.contentWrap},[createVNode("canvas",{ref:a},null),createVNode("audio",{src:n.value?"":r.value.content,ref:l,loop:s.loop,onLoadedmetadata:m,onTimeupdate:()=>{s.timer&&s.playState==="pause"||(s.currentTime=l.value.currentTime)},onEnded:g,crossorigin:"anonymous",playsinline:"false"},null)])]),createVNode("div",{class:[styles$2.controls,e.showModel?"":styles$2.hide],onClick:y=>{y.stopPropagation()},onTouchmove:y=>{t("close")}},[createVNode("div",{class:styles$2.time},[createVNode("div",null,[getSecondRPM(s.currentTime)]),createVNode("div",null,[getSecondRPM(s.duration)])]),createVNode("div",{class:styles$2.slider},[createVNode(NSlider,{tooltip:!1,step:.01,class:styles$2.timeProgress,value:s.currentTime,max:s.duration,"onUpdate:value":y=>b(y)},null)]),createVNode("div",{class:styles$2.actions,onClick:()=>t("close")},[createVNode("div",{class:styles$2.actionBtn,onClick:()=>p()},[createVNode("img",{src:s.playState==="pause"?iconplay$1:iconpause$1},null)]),createVNode("div",{class:styles$2.actionBtn,onClick:()=>s.loop=!s.loop},[createVNode("img",{src:s.loop?iconLoopActive$1:iconLoop$1},null)])])])])}}),api_lessonCoursewareKnowledgeDetailDetail=e=>request.post("/edu-app/lessonCoursewareKnowledgeDetail/detail",{data:e}),api_classLessonCoursewareQuery=e=>request.post("/edu-app/classLessonCourseware/queryCourseware",{data:e}),videoWrap="_videoWrap_18c5q_1",content$1="_content_18c5q_6",contentWrap="_contentWrap_18c5q_10",videoSection="_videoSection_18c5q_17",controls="_controls_18c5q_24",hide="_hide_18c5q_36",time="_time_18c5q_39",slider="_slider_18c5q_47",actions="_actions_18c5q_60",actionWrap="_actionWrap_18c5q_68",actionBtn="_actionBtn_18c5q_71",playIcon="_playIcon_18c5q_86",btnPlay="_btnPlay_18c5q_89",btnPause="_btnPause_18c5q_92",loopBtn="_loopBtn_18c5q_99",active="_active_18c5q_105",styles$1={videoWrap,content:content$1,contentWrap,videoSection,controls,hide,time,slider,actions,actionWrap,actionBtn,playIcon,btnPlay,btnPause,loopBtn,active};var tcplayer_v4_8_0_min={exports:{}};(function(module,exports){(function(e,t){module.exports=t()})(commonjsGlobal,function(){function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}function each(e,t){keys(e).forEach(function(r){return t(e[r],r)})}function reduce(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return keys(e).reduce(function(n,s){return t(n,e[s],s)},r)}function assign(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[e].concat(r)):(r.forEach(function(s){s&&each(s,function(a,l){e[l]=a})}),e)}function isObject$1(e){return!!e&&(e===void 0?"undefined":_typeof(e))==="object"}function isPlain(e){return isObject$1(e)&&toString.call(e)==="[object Object]"&&e.constructor===Object}function isFunction(e){return typeof e=="function"&&typeof e.nodeType!="number"}function clean(e){return e.replace(/\n\r?\s*/g,"")}function computedStyle(e,t){if(!e||!t)return"";if(typeof window_1.getComputedStyle=="function"){var r=window_1.getComputedStyle(e);return r?r[t]:""}return e.currentStyle[t]||""}function isNonBlankString(e){return typeof e=="string"&&/\S/.test(e)}function throwIfWhitespace(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function classRegExp(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function isReal(){return document_1===window_1.document&&typeof document_1.createElement<"u"}function isEl(e){return isObject$1(e)&&e.nodeType===1}function isInFrame(){try{return window_1.parent!==window_1.self}catch(e){return!0}}function createQuerier(e){return function(t,r){if(!isNonBlankString(t))return document_1[e](null);isNonBlankString(r)&&(r=document_1.querySelector(r));var n=isEl(r)?r:document_1;return n[e]&&n[e](t)}}function createEl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments[3],s=document_1.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(a){var l=t[a];a.indexOf("aria-")!==-1||a==="role"||a==="type"?(log$2.warn(tsml(_templateObject,a,l)),s.setAttribute(a,l)):a==="textContent"?textContent(s,l):s[a]=l}),Object.getOwnPropertyNames(r).forEach(function(a){s.setAttribute(a,r[a])}),n&&appendContent(s,n),s}function textContent(e,t){return typeof e.textContent>"u"?e.innerText=t:e.textContent=t,e}function prependTo(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function hasClass(e,t){return throwIfWhitespace(t),e.classList?e.classList.contains(t):classRegExp(t).test(e.className)}function addClass(e,t){return e.classList?e.classList.add(t):hasClass(e,t)||(e.className=(e.className+" "+t).trim()),e}function removeClass(e,t){return e.classList?e.classList.remove(t):(throwIfWhitespace(t),e.className=e.className.split(/\s+/).filter(function(r){return r!==t}).join(" ")),e}function toggleClass(e,t,r){var n=hasClass(e,t);if(typeof r=="function"&&(r=r(e,t)),typeof r!="boolean"&&(r=!n),r!==n)return r?addClass(e,t):removeClass(e,t),e}function setAttributes(e,t){Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n==null||n===!1?e.removeAttribute(r):e.setAttribute(r,n===!0?"":n)})}function getAttributes(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,n=r.length-1;n>=0;n--){var s=r[n].name,a=r[n].value;typeof e[s]!="boolean"&&",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+",")===-1||(a=a!==null),t[s]=a}return t}function getAttribute(e,t){return e.getAttribute(t)}function setAttribute(e,t,r){e.setAttribute(t,r)}function removeAttribute(e,t){e.removeAttribute(t)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),r={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(r[n]=t[n])}),r.height||(r.height=parseFloat(computedStyle(e,"height"))),r.width||(r.width=parseFloat(computedStyle(e,"width"))),r}}function findPosition(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var r=document_1.documentElement,n=document_1.body,s=r.clientLeft||n.clientLeft||0,a=window_1.pageXOffset||n.scrollLeft,l=t.left+a-s,u=r.clientTop||n.clientTop||0,p=window_1.pageYOffset||n.scrollTop,d=t.top+p-u;return{left:Math.round(l),top:Math.round(d)}}function getPointerPosition(e,t){var r={},n=findPosition(e),s=e.offsetWidth,a=e.offsetHeight,l=n.top,u=n.left,p=t.pageY,d=t.pageX;return t.changedTouches&&(d=t.changedTouches[0].pageX,p=t.changedTouches[0].pageY),r.y=Math.max(0,Math.min(1,(l-p+a)/a)),r.x=Math.max(0,Math.min(1,(d-u)/s)),r}function isTextNode(e){return isObject$1(e)&&e.nodeType===3}function emptyEl(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function normalizeContent(e){return typeof e=="function"&&(e=e()),(Array.isArray(e)?e:[e]).map(function(t){return typeof t=="function"&&(t=t()),isEl(t)||isTextNode(t)?t:typeof t=="string"&&/\S/.test(t)?document_1.createTextNode(t):void 0}).filter(function(t){return t})}function appendContent(e,t){return normalizeContent(t).forEach(function(r){return e.appendChild(r)}),e}function insertContent(e,t){return appendContent(emptyEl(e),t)}function isSingleLeftClick(e){return e.button===void 0&&e.buttons===void 0||e.button===0&&e.buttons===void 0||IE_VERSION===9||e.button===0&&e.buttons===1}function newGUID(){return _guid++}function getData(e){var t=e[elIdAttr];return t||(t=e[elIdAttr]=newGUID()),elData[t]||(elData[t]={}),elData[t]}function hasData(e){var t=e[elIdAttr];return!!t&&!!Object.getOwnPropertyNames(elData[t]).length}function removeData(e){var t=e[elIdAttr];if(t){delete elData[t];try{delete e[elIdAttr]}catch(r){e.removeAttribute?e.removeAttribute(elIdAttr):e[elIdAttr]=null}}}function _cleanUpEvents(e,t){var r=getData(e);r.handlers[t].length===0&&(delete r.handlers[t],e.removeEventListener?e.removeEventListener(t,r.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,r.dispatcher)),Object.getOwnPropertyNames(r.handlers).length<=0&&(delete r.handlers,delete r.dispatcher,delete r.disabled),Object.getOwnPropertyNames(r).length===0&&removeData(e)}function _handleMultipleEvents(e,t,r,n){r.forEach(function(s){e(t,s,n)})}function fixEvent(e){function t(){return!0}function r(){return!1}if(!e||!e.isPropagationStopped){var n=e||window_1.event;e={};for(var s in n)s!=="layerX"&&s!=="layerY"&&s!=="keyLocation"&&s!=="webkitMovementX"&&s!=="webkitMovementY"&&(s==="returnValue"&&n.preventDefault||(e[s]=n[s]));if(e.target||(e.target=e.srcElement||document_1),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=r,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=r,e.clientX!==null&&e.clientX!==void 0){var a=document_1.documentElement,l=document_1.body;e.pageX=e.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!==null&&e.button!==void 0&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}function on(e,t,r){if(Array.isArray(t))return _handleMultipleEvents(on,e,t,r);var n=getData(e);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),r.guid||(r.guid=newGUID()),n.handlers[t].push(r),n.dispatcher||(n.disabled=!1,n.dispatcher=function(a,l){if(!n.disabled){a=fixEvent(a);var u=n.handlers[a.type];if(u)for(var p=u.slice(0),d=0,m=p.length;d<m&&!a.isImmediatePropagationStopped();d++)try{p[d].call(e,a,l)}catch(b){log$2.error(b)}}}),n.handlers[t].length===1)if(e.addEventListener){var s=!1;_supportsPassive&&passiveEvents.indexOf(t)>-1&&(s={passive:!0}),e.addEventListener(t,n.dispatcher,s)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function off(e,t,r){if(hasData(e)){var n=getData(e);if(n.handlers){if(Array.isArray(t))return _handleMultipleEvents(off,e,t,r);var s=function(p,d){n.handlers[d]=[],_cleanUpEvents(p,d)};if(t!==void 0){var a=n.handlers[t];if(a){if(!r)return void s(e,t);if(r.guid)for(var l=0;l<a.length;l++)a[l].guid===r.guid&&a.splice(l--,1);_cleanUpEvents(e,t)}}else for(var u in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},u)&&s(e,u)}}}function trigger(e,t,r){var n=hasData(e)?getData(e):{},s=e.parentNode||e.ownerDocument;if(typeof t=="string"&&(t={type:t,target:e}),t=fixEvent(t),n.dispatcher&&n.dispatcher.call(e,t,r),s&&!t.isPropagationStopped()&&t.bubbles===!0)trigger.call(null,s,t,r);else if(!s&&!t.defaultPrevented){var a=getData(t.target);t.target[t.type]&&(a.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function one(e,t,r){if(Array.isArray(t))return _handleMultipleEvents(one,e,t,r);var n=function s(){off(e,t,s),r.apply(this,arguments)};n.guid=r.guid=r.guid||newGUID(),on(e,t,n)}function autoSetupTimeout(e,t){t&&(videojs$2=t),window_1.setTimeout(autoSetup,e)}function evented(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.eventBusKey;if(r){if(!e[r].nodeName)throw new Error('The eventBusKey "'+r+'" does not refer to an element.');e.eventBusEl_=e[r]}else e.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(e,EventedMixin),e.on("dispose",function(){e.off(),window_1.setTimeout(function(){e.eventBusEl_=null},0)}),e}function stateful(e,t){return assign(e,StatefulMixin),e.state=assign({},e.state,t),typeof e.handleStateChanged=="function"&&isEvented(e)&&e.on("statechanged",e.handleStateChanged),e}function toTitleCase(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}function titleCaseEquals(e,t){return toTitleCase(e)===toTitleCase(t)}function mergeOptions(){for(var e={},t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(s){s&&each(s,function(a,l){if(!isPlain(a))return void(e[l]=a);isPlain(e[l])||(e[l]={}),e[l]=mergeOptions(e[l],a)})}),e}function extend(){var e,t,r,n,s,a,l=arguments[0]||{},u=1,p=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[u]||{},u++),(l===void 0?"undefined":_typeof(l))==="object"||isFunction(l)||(l={}),u===p&&(l=this,u--);u<p;u++)if((e=arguments[u])!=null)for(t in e)r=l[t],n=e[t],l!==n&&(d&&n&&(isPlain(n)||(s=Array.isArray(n)))?(s?(s=!1,a=r&&Array.isArray(r)?r:[]):a=r&&isPlain(r)?r:{},l[t]=extend(d,a,n)):n!==void 0&&(l[t]=n));return l}function getParams(e,t){var r=t.split("?")[1];if(r){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),s=r.match(n);return s!=null?decodeURIComponent(s[2]):null}}function guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function unifyProtocol(e){e=e.replace(/^(http|https):/,"");var t=window.location.protocol;return t!="http:"&&t!="https:"&&(t="https:"),e=t+e}function replaceHost(e,t){var r=/^http(s)?:\/\/(.*?)\//,n=e.match(r);return e.replace(n[2],t)}function getViewportSize(){var e=document,t=e.documentElement,r=e.body;return{width:t&&t.clientWidth||r&&r.offsetWidth||window.innerWidth||0,height:t&&t.clientHeight||r&&r.offsetHeight||window.innerHeight||0}}function getTimeStamp(){return new Date().getTime()}function getTimeStampBySecond(){return Date.parse(new Date)/1e3}function loadScript(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3],s=document.createElement("script");if(s.onload=s.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof t=="function"&&t(),s.onload=s.onreadystatechange=null,s.parentNode&&!n&&s.parentNode.removeChild(s))},r){for(var a in r)if(r.hasOwnProperty(a)){var l=r[a];l===null?s.removeAttribute(l):s.setAttribute(a,l)}}s.src=e,document.getElementsByTagName("head")[0].appendChild(s)}function serializeParams(e){var t=[],r=function(n,s){s=typeof s=="function"?s():s,s=s===null||s===void 0?"":s,t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(s)};return function n(s,a){var l=void 0,u=void 0,p=void 0;if(s)if(Array.isArray(a))for(l=0,u=a.length;l<u;l++)n(s+"["+(_typeof(a[l])==="object"&&a[l]?l:"")+"]",a[l]);else if(String(a)==="[object Object]")for(p in a)n(s+"["+p+"]",a[p]);else r(s,a);else if(Array.isArray(a))for(l=0,u=a.length;l<u;l++)r(a[l].name,a[l].value);else for(p in a)n(p,a[p]);return t}("",e).join("&")}function encodeHTML(e){return e.length?String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;").replace(/\//g,"&#x2F;"):""}function isWebrtcUrl(e){return/webrtc:\/\//.test(e)||/\.sdp/.test(e)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function rangeCheck(e,t,r){if(typeof t!="number"||t<0||t>r)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+r+").")}function getRange(e,t,r,n){return rangeCheck(e,n,r.length-1),r[n][t]}function createTimeRangesObj(e){return e===void 0||e.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:getRange.bind(null,"start",0,e),end:getRange.bind(null,"end",1,e)}}function createTimeRanges(e,t){return Array.isArray(e)?createTimeRangesObj(e):e===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[e,t]])}function bufferedPercent(e,t){var r=0,n=void 0,s=void 0;if(!t)return 0;e&&e.length||(e=createTimeRanges(0,0));for(var a=0;a<e.length;a++)n=e.start(a),s=e.end(a),s>t&&(s=t),r+=s-n;return r/t}function MediaError(e){if(e instanceof MediaError)return e;typeof e=="number"?this.code=e:typeof e=="string"?this.message=e:isObject$1(e)&&(typeof e.code=="number"&&(this.code=e.code),assign(this,e)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(e,t){var r,n=null;try{r=JSON.parse(e,t)}catch(s){n=s}return[n,r]}function isPromise(e){return e!==void 0&&typeof e.then=="function"}function silencePromise(e){isPromise(e)&&e.then(null,function(t){})}function isFunction$1(e){if(!e)return!1;var t=toString$1.call(e);return t==="[object Function]"||typeof e=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}function extend$1(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}function forEachArray(e,t){for(var r=0;r<e.length;r++)t(e[r])}function isEmpty(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function initParams(e,t,r){var n=e;return isFunction_1(t)?(r=t,typeof e=="string"&&(n={uri:e})):n=immutable(t,{uri:e}),n.callback=r,n}function createXHR(e,t,r){return t=initParams(e,t,r),_createXHR(t)}function _createXHR(e){function t(){u.readyState===4&&setTimeout(s,0)}function r(){var k=void 0;if(k=u.response?u.response:u.responseText||getXml(u),E)try{k=JSON.parse(k)}catch(A){}return k}function n(k){return clearTimeout(m),k instanceof Error||(k=new Error(""+(k||"Unknown XMLHttpRequest Error"))),k.statusCode=0,l(k,S)}function s(){if(!d){var k;clearTimeout(m),k=e.useXDR&&u.status===void 0?200:u.status===1223?204:u.status;var A=S,I=null;return k!==0?(A={body:r(),statusCode:k,method:g,headers:{},url:b,rawRequest:u},u.getAllResponseHeaders&&(A.headers=parseHeaders(u.getAllResponseHeaders()))):I=new Error("Internal XMLHttpRequest Error"),l(I,A,A.body)}}if(typeof e.callback>"u")throw new Error("callback argument missing");var a=!1,l=function(k,A,I){a||(a=!0,e.callback(k,A,I))},u=e.xhr||null;u||(u=e.cors||e.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var p,d,m,b=u.url=e.uri||e.url,g=u.method=e.method||"GET",y=e.body||e.data,f=u.headers=e.headers||{},_=!!e.sync,E=!1,S={body:void 0,headers:{},statusCode:0,method:g,url:b,rawRequest:u};if("json"in e&&e.json!==!1&&(E=!0,f.accept||f.Accept||(f.Accept="application/json"),g!=="GET"&&g!=="HEAD"&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),y=JSON.stringify(e.json===!0?y:e.json))),u.onreadystatechange=t,u.onload=s,u.onerror=n,u.onprogress=function(){},u.onabort=function(){d=!0},u.ontimeout=n,u.open(g,b,!_,e.username,e.password),_||(u.withCredentials=!!e.withCredentials),!_&&e.timeout>0&&(m=setTimeout(function(){if(!d){d=!0,u.abort("timeout");var k=new Error("XMLHttpRequest timeout");k.code="ETIMEDOUT",n(k)}},e.timeout)),u.setRequestHeader)for(p in f)f.hasOwnProperty(p)&&u.setRequestHeader(p,f[p]);else if(e.headers&&!isEmpty(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&typeof e.beforeSend=="function"&&e.beforeSend(u),u.send(y||null),u}function getXml(e){if(e.responseType==="document")return e.responseXML;var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";return e.responseType!==""||t?null:e.responseXML}function noop(){}function ParsingError(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function parseTimeStamp(e){function t(n,s,a,l){return 3600*(0|n)+60*(0|s)+(0|a)+(0|l)/1e3}var r=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return r?r[3]?t(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?t(r[1],r[2],0,r[4]):t(0,r[1],r[2],r[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(e,t,r,n){var s=n?e.split(n):[e];for(var a in s)if(typeof s[a]=="string"){var l=s[a].split(r);if(l.length===2){var u=l[0],p=l[1];t(u,p)}}}function parseCue(e,t,r){function n(){var l=parseTimeStamp(e);if(l===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+a);return e=e.replace(/^[^\sa-zA-Z-]+/,""),l}function s(){e=e.replace(/^\s+/,"")}var a=e;if(s(),t.startTime=n(),s(),e.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+a);e=e.substr(3),s(),t.endTime=n(),s(),function(l,u){var p=new Settings;parseOptions(l,function(d,m){switch(d){case"region":for(var b=r.length-1;b>=0;b--)if(r[b].id===m){p.set(d,r[b].region);break}break;case"vertical":p.alt(d,m,["rl","lr"]);break;case"line":var g=m.split(","),y=g[0];p.integer(d,y),p.percent(d,y)&&p.set("snapToLines",!1),p.alt(d,y,["auto"]),g.length===2&&p.alt("lineAlign",g[1],["start","middle","end"]);break;case"position":g=m.split(","),p.percent(d,g[0]),g.length===2&&p.alt("positionAlign",g[1],["start","middle","end"]);break;case"size":p.percent(d,m);break;case"align":p.alt(d,m,["start","middle","end","left","right"])}},/:/,/\s/),u.region=p.get("region",null),u.vertical=p.get("vertical",""),u.line=p.get("line","auto"),u.lineAlign=p.get("lineAlign","start"),u.snapToLines=p.get("snapToLines",!0),u.size=p.get("size",100),u.align=p.get("align","middle"),u.position=p.get("position",{start:0,left:0,middle:50,end:100,right:100},u.align),u.positionAlign=p.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},u.align)}(e,t)}function parseContent(e,t){function r(m){return ESCAPE[m]}for(var n,s=e.document.createElement("div"),a=s,l=[];(n=function(){if(!t)return null;var m=t.match(/^([^<]*)(<[^>]+>?)?/);return function(b){return t=t.substr(b.length),b}(m[1]?m[1]:m[2])}())!==null;)if(n[0]!=="<")a.appendChild(e.document.createTextNode(function(m){for(;d=m.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)m=m.replace(d[0],r);return m}(n)));else{if(n[1]==="/"){l.length&&l[l.length-1]===n.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var u,p=parseTimeStamp(n.substr(1,n.length-2));if(p){u=e.document.createProcessingInstruction("timestamp",p),a.appendChild(u);continue}var d=n.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!d||!(u=function(m,b){var g=TAG_NAME[m];if(!g)return null;var y=e.document.createElement(g);y.localName=g;var f=TAG_ANNOTATION[m];return f&&b&&(y[f]=b.trim()),y}(d[1],d[3]))||!function(m,b){return!NEEDS_PARENT[b.localName]||NEEDS_PARENT[b.localName]===m.localName}(a,u))continue;d[2]&&(u.className=d[2].substr(1).replace("."," ")),l.push(d[1]),a.appendChild(u),a=u}return s}function isStrongRTLChar(e){for(var t=0;t<strongRTLRanges.length;t++){var r=strongRTLRanges[t];if(e>=r[0]&&e<=r[1])return!0}return!1}function determineBidi(e){function t(u,p){for(var d=p.childNodes.length-1;d>=0;d--)u.push(p.childNodes[d])}function r(u){if(!u||!u.length)return null;var p=u.pop(),d=p.textContent||p.innerText;if(d){var m=d.match(/^.*(\n|\r)/);return m?(u.length=0,m[0]):d}return p.tagName==="ruby"?r(u):p.childNodes?(t(u,p),r(u)):void 0}var n,s=[],a="";if(!e||!e.childNodes)return"ltr";for(t(s,e);a=r(s);)for(var l=0;l<a.length;l++)if(n=a.charCodeAt(l),isStrongRTLChar(n))return"rtl";return"ltr"}function computeLinePos(e){if(typeof e.line=="number"&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,r=t.textTrackList,n=0,s=0;s<r.length&&r[s]!==t;s++)r[s].mode==="showing"&&n++;return-1*++n}function StyleBox(){}function CueStyleBox(e,t,r){var n=/MSIE\s8\.0/.test(navigator.userAgent),s="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";n&&(s="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),StyleBox.call(this),this.cue=t,this.cueDiv=parseContent(e,t.text);var l={color:s,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(l.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",l.unicodeBidi="plaintext"),this.applyStyles(l,this.cueDiv),this.div=e.document.createElement("div"),l={textAlign:t.align==="middle"?"center":t.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},n||(l.direction=determineBidi(this.cueDiv),l.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(l),this.div.appendChild(this.cueDiv);var u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}t.vertical===""?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(p){this.applyStyles({top:this.formatStyle(p.top,"px"),bottom:this.formatStyle(p.bottom,"px"),left:this.formatStyle(p.left,"px"),right:this.formatStyle(p.right,"px"),height:this.formatStyle(p.height,"px"),width:this.formatStyle(p.width,"px")})}}function BoxPosition(e){var t,r,n,s,a=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){r=e.div.offsetHeight,n=e.div.offsetWidth,s=e.div.offsetTop;var l=(l=e.div.childNodes)&&(l=l[0])&&l.getClientRects&&l.getClientRects();e=e.div.getBoundingClientRect(),t=l?Math.max(l[0]&&l[0].height||0,e.height/l.length):0}this.left=e.left,this.right=e.right,this.top=e.top||s,this.height=e.height||r,this.bottom=e.bottom||s+(e.height||r),this.width=e.width||n,this.lineHeight=t!==void 0?t:e.lineHeight,a&&!this.lineHeight&&(this.lineHeight=13)}function moveBoxToLinePosition(e,t,r,n){var s=new BoxPosition(t),a=t.cue,l=computeLinePos(a),u=[];if(a.snapToLines){var p;switch(a.vertical){case"":u=["+y","-y"],p="height";break;case"rl":u=["+x","-x"],p="width";break;case"lr":u=["-x","+x"],p="width"}var d=s.lineHeight,m=d*Math.round(l),b=r[p]+d,g=u[0];Math.abs(m)>b&&(m=m<0?-1:1,m*=Math.ceil(b/d)*d),l<0&&(m+=a.vertical===""?r.height:r.width,u=u.reverse()),s.move(g,m)}else{var y=s.lineHeight/r.height*100;switch(a.lineAlign){case"middle":l-=y/2;break;case"end":l-=y}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(l,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(l,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(l,"%")})}u=["+y","-x","+x","-y"],s=new BoxPosition(t)}var f=function(_,E){for(var S,k=new BoxPosition(_),A=1,I=0;I<E.length;I++){for(;_.overlapsOppositeAxis(r,E[I])||_.within(r)&&_.overlapsAny(n);)_.move(E[I]);if(_.within(r))return _;var R=_.intersectPercentage(r);A>R&&(S=new BoxPosition(_),A=R),_=new BoxPosition(k)}return S||k}(s,u);t.move(f.toCSSCompatValues(r))}function WebVTT$1(){}function findDirectionSetting(e){return typeof e=="string"&&!!directionSetting[e.toLowerCase()]&&e.toLowerCase()}function findAlignSetting(e){return typeof e=="string"&&!!alignSetting[e.toLowerCase()]&&e.toLowerCase()}function extend$2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}function VTTCue(e,t,r){var n=this,s=/MSIE\s8\.0/.test(navigator.userAgent),a={};s?n=document.createElement("custom"):a.enumerable=!0,n.hasBeenReset=!1;var l="",u=!1,p=e,d=t,m=r,b=null,g="",y=!0,f="auto",_="start",E=50,S="middle",k=50,A="middle";if(Object.defineProperty(n,"id",extend$2({},a,{get:function(){return l},set:function(I){l=""+I}})),Object.defineProperty(n,"pauseOnExit",extend$2({},a,{get:function(){return u},set:function(I){u=!!I}})),Object.defineProperty(n,"startTime",extend$2({},a,{get:function(){return p},set:function(I){if(typeof I!="number")throw new TypeError("Start time must be set to a number.");p=I,this.hasBeenReset=!0}})),Object.defineProperty(n,"endTime",extend$2({},a,{get:function(){return d},set:function(I){if(typeof I!="number")throw new TypeError("End time must be set to a number.");d=I,this.hasBeenReset=!0}})),Object.defineProperty(n,"text",extend$2({},a,{get:function(){return m},set:function(I){m=""+I,this.hasBeenReset=!0}})),Object.defineProperty(n,"region",extend$2({},a,{get:function(){return b},set:function(I){b=I,this.hasBeenReset=!0}})),Object.defineProperty(n,"vertical",extend$2({},a,{get:function(){return g},set:function(I){var R=findDirectionSetting(I);if(R===!1)throw new SyntaxError("An invalid or illegal string was specified.");g=R,this.hasBeenReset=!0}})),Object.defineProperty(n,"snapToLines",extend$2({},a,{get:function(){return y},set:function(I){y=!!I,this.hasBeenReset=!0}})),Object.defineProperty(n,"line",extend$2({},a,{get:function(){return f},set:function(I){if(typeof I!="number"&&I!==autoKeyword)throw new SyntaxError("An invalid number or illegal string was specified.");f=I,this.hasBeenReset=!0}})),Object.defineProperty(n,"lineAlign",extend$2({},a,{get:function(){return _},set:function(I){var R=findAlignSetting(I);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");_=R,this.hasBeenReset=!0}})),Object.defineProperty(n,"position",extend$2({},a,{get:function(){return E},set:function(I){if(I<0||I>100)throw new Error("Position must be between 0 and 100.");E=I,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",extend$2({},a,{get:function(){return S},set:function(I){var R=findAlignSetting(I);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");S=R,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",extend$2({},a,{get:function(){return k},set:function(I){if(I<0||I>100)throw new Error("Size must be between 0 and 100.");k=I,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",extend$2({},a,{get:function(){return A},set:function(I){var R=findAlignSetting(I);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");A=R,this.hasBeenReset=!0}})),n.displayState=void 0,s)return n}function findScrollSetting(e){return typeof e=="string"&&!!scrollSetting[e.toLowerCase()]&&e.toLowerCase()}function isValidPercentValue(e){return typeof e=="number"&&e>=0&&e<=100}function VTTRegion(){var e=100,t=3,r=0,n=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(u){if(!isValidPercentValue(u))throw new Error("Width must be between 0 and 100.");e=u}},lines:{enumerable:!0,get:function(){return t},set:function(u){if(typeof u!="number")throw new TypeError("Lines must be set to a number.");t=u}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorX must be between 0 and 100.");n=u}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorY must be between 0 and 100.");r=u}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorY must be between 0 and 100.");a=u}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorX must be between 0 and 100.");s=u}},scroll:{enumerable:!0,get:function(){return l},set:function(u){var p=findScrollSetting(u);if(p===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=p}}})}function createTrackHelper(e,t,r,n){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=e.textTracks();s.kind=t,r&&(s.label=r),n&&(s.language=n),s.tech=e;var l=new ALL.text.TrackClass(s);return a.addTrack(l),l}function use(e,t){middlewares[e]=middlewares[e]||[],middlewares[e].push(t)}function setSource(e,t,r){e.setTimeout(function(){return setSourceHelper(t,middlewares[t.type],r,e)},1)}function setTech(e,t){e.forEach(function(r){return r.setTech&&r.setTech(t)})}function get$1(e,t,r){return e.reduceRight(middlewareIterator(r),t[r]())}function set$1(e,t,r,n){return t[r](e.reduce(middlewareIterator(r),n))}function middlewareIterator(e){return function(t,r){return r[e]?r[e](t):t}}function setSourceHelper(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments[2],n=arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],l=t[0],u=t.slice(1);if(typeof l=="string")setSourceHelper(e,middlewares[l],r,n,s,a);else if(l){var p=l(n);p.setSource(assign({},e),function(d,m){if(d)return setSourceHelper(e,u,r,n,s,a);s.push(p),setSourceHelper(m,e.type===m.type?u:middlewares[m.type],r,n,s,a)})}else u.length?setSourceHelper(e,u,r,n,s,a):a?r(e,s):setSourceHelper(e,middlewares["*"],r,n,s,!0)}function constructColor(e,t){return"rgba("+parseInt(e[1]+e[1],16)+","+parseInt(e[2]+e[2],16)+","+parseInt(e[3]+e[3],16)+","+t+")"}function tryUpdateStyle(e,t,r){try{e.style[t]=r}catch(n){return}}function formatTime(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;e=e<0?0:e;var r=Math.floor(e%60),n=Math.floor(e/60%60),s=Math.floor(e/3600),a=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(s=n=r="-"),s=s>0||l>0?s+":":"",n=((s||a>=10)&&n<10?"0"+n:n)+":",r=r<10?"0"+r:r,s+n+r}function parseOptionValue(e,t){if(t&&(e=t(e)),e&&e!=="none")return e}function getSelectedOptionValue(e,t){return parseOptionValue(e.options[e.options.selectedIndex].value,t)}function setSelectedOption(e,t,r){if(t){for(var n=0;n<e.options.length;n++)if(parseOptionValue(e.options[n].value,r)===t){e.selectedIndex=n;break}}}function videojs(e,t,r){var n=void 0;if(typeof e=="string"){var s=videojs.getPlayers();if(e.indexOf("#")===0&&(e=e.slice(1)),s[e])return t&&log$2.warn('Player "'+e+'" is already initialised. Options will not be applied.'),r&&s[e].ready(r),s[e];n=$("#"+e)}else n=e;if(!n||!n.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(n.player||Player.players[n.playerId])return n.player||Player.players[n.playerId];isEl(n)&&!document_1.body.contains(n)&&log$2.warn("The element supplied is not included in the DOM"),t=t||{},videojs.hooks("beforesetup").forEach(function(u){var p=u(n,mergeOptions(t));if(!isObject$1(p)||Array.isArray(p))return void log$2.error("please return an object in beforesetup hooks");t=mergeOptions(t,p)});var a=Component.getComponent("Player"),l=new a(n,t,r);return videojs.hooks("setup").forEach(function(u){return u(l)}),l}function toObject(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if(Object.getOwnPropertyNames(t).map(function(s){return t[s]}).join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(s){n[s]=s}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}function decodeComponents(e,t){try{return decodeURIComponent(e.join(""))}catch(s){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],decodeComponents(r),decodeComponents(n))}function decode(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(singleMatcher),r=1;r<t.length;r++)e=decodeComponents(t,r).join(""),t=e.match(singleMatcher);return e}}function customDecodeURIComponent(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=multiMatcher.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(u){var n=decode(r[0]);n!==r[0]&&(t[r[0]]=n)}r=multiMatcher.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var l=s[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}function encoderForArrayFormat(e){switch(e.arrayFormat){case"index":return function(t,r,n){return r===null?[encode(t,e),"[",n,"]"].join(""):[encode(t,e),"[",encode(n,e),"]=",encode(r,e)].join("")};case"bracket":return function(t,r){return r===null?encode(t,e):[encode(t,e),"[]=",encode(r,e)].join("")};default:return function(t,r){return r===null?encode(t,e):[encode(t,e),"=",encode(r,e)].join("")}}}function parserForArrayFormat(e){var t;switch(e.arrayFormat){case"index":return function(r,n,s){if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t)return void(s[r]=n);s[r]===void 0&&(s[r]={}),s[r][t[1]]=n};case"bracket":return function(r,n,s){return t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),t?s[r]===void 0?void(s[r]=[n]):void(s[r]=[].concat(s[r],n)):void(s[r]=n)};default:return function(r,n,s){if(s[r]===void 0)return void(s[r]=n);s[r]=[].concat(s[r],n)}}}function encode(e,t){return t.encode?t.strict?strictUriEncode(e):encodeURIComponent(e):e}function keysSorter(e){return Array.isArray(e)?e.sort():typeof e=="object"?keysSorter(Object.keys(e)).sort(function(t,r){return Number(t)-Number(r)}).map(function(t){return e[t]}):e}function extract(e){var t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function parse(e,t){t=objectAssign({arrayFormat:"none"},t);var r=parserForArrayFormat(t),n=Object.create(null);return typeof e!="string"?n:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach(function(s){var a=s.replace(/\+/g," ").split("="),l=a.shift(),u=a.length>0?a.join("="):void 0;u=u===void 0?null:decodeUriComponent(u),r(decodeUriComponent(l),u,n)}),Object.keys(n).sort().reduce(function(s,a){var l=n[a];return l&&typeof l=="object"&&!Array.isArray(l)?s[a]=keysSorter(l):s[a]=l,s},Object.create(null))):n}function jsonp(e,t,r){function n(){d.parentNode&&d.parentNode.removeChild(d),window[u]="",m&&clearTimeout(m)}function s(){window[u]&&n()}typeof t=="function"&&(r=t,t={}),t||(t={});var a,l=t.prefix||"__jp",u=t.name||l+count++,p=t.funcKey||"callback";a=_typeof(t.param)=="object"?queryString.stringify(t.param):t.param;var d,m,b=t.timeout!=null?t.timeout:6e3,g=encodeURIComponent,y=document.getElementsByTagName("script")[0]||document.head;return b&&(m=setTimeout(function(){n(),r&&r(new Error("Timeout"))},b)),window[u]=function(f){n(),r&&r(null,f)},e+=(~e.indexOf("?")?"&":"?")+a+"&"+p+"="+g(u),e=e.replace("?&","?"),d=document.createElement("script"),d.setAttribute("src",e),d.setAttribute("async",!0),d.onload=function(f){},d.onreadystatechange=function(){this.readyState==="loaded"&&window[u]&&(n(),r&&r(new Error("ServerError")))},d.onerror=function(f){n(),r&&r(new Error("ServerError"))},y.parentNode.insertBefore(d,y),s}function mountHlsProvider(e){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(videojs.browser.IS_ENABLED_MSE&&(!videojs.browser.IS_MAC||!videojs.browser.IS_SAFARI)||videojs.browser.IS_SIMULATOR||e)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(HlsSourceHandler,0)}catch(r){}}function handlePlaybackMetadataLoaded(e,t){function r(d){return"dash-audio-"+d}function n(d,m){return d.find(function(b){return r(b.index)===m.id})}var s=e.dash.mediaPlayer,a=s.getTracksFor("audio"),l=e.audioTracks();l.length&&t.clearTracks(["audio"]);var u=s.getCurrentTrackFor("audio");a.forEach(function(d){var m=d.lang;d.roles&&d.roles.length&&(m+=" ("+d.roles.join(", ")+")"),l.addTrack(new videojs.AudioTrack({enabled:d===u,id:r(d.index),kind:d.kind||"main",label:m,language:d.lang}))});var p=function(){for(var d=0;d<l.length;d++){var m=l[d];if(m.enabled){var b=n(a,m);s.setCurrentTrack(b)}}};l.addEventListener("change",p),e.dash.mediaPlayer.on(window.dashjs.MediaPlayer.events.STREAM_TEARDOWN_COMPLETE,function(){l.removeEventListener("change",p)})}function setupAudioTracks(e,t){e.dash.mediaPlayer.on(window.dashjs.MediaPlayer.events.PLAYBACK_METADATA_LOADED,handlePlaybackMetadataLoaded.bind(null,e,t))}function find(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function attachDashTextTracksToVideojs(e,t,r){function n(){for(var l=e.dash.mediaPlayer,u=e.textTracks(),p=-1,d=0;d<u.length;d+=1)(function(m){var b=u[m];if(b.mode==="showing"){var g=find(s,function(f){return f.textTrack===b}),y=g?g.dashTrack:null;y&&(p=r.indexOf(y))}})(d);p!==l.getCurrentTextTrackIndex()&&l.setTextTrack(p)}var s=[],a=r.map(function(l){return{dashTrack:l,trackConfig:{label:l.lang,language:l.lang,srclang:l.lang,kind:l.kind}}}).map(function(l){var u=l.trackConfig,p=l.dashTrack,d=e.addRemoteTextTrack(u,!1);return s.push({textTrack:d.track,dashTrack:p}),d});return e.textTracks().on("change",n),e.dash.mediaPlayer.on(window_1.dashjs.MediaPlayer.events.STREAM_TEARDOWN_COMPLETE,function(){e.textTracks().off("change",n)}),n(),a}function setupTextTracks(e,t,r){function n(){a.forEach(e.removeRemoteTextTrack.bind(e)),a=[]}function s(u){var p=(u.index,u.tracks);l.off(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s),n(),p.length&&(a=attachDashTextTracksToVideojs(e,t,p))}window_1.VTTCue&&!/\[native code\]/.test(window_1.VTTCue.toString())&&(window_1.VTTCue=!1);var a=[];if(t.featuresNativeTextTracks)return void videojs.log.error("You must pass {html: {nativeCaptions: false}} in the videojs constructor to use text tracks in videojs-contrib-dash");var l=e.dash.mediaPlayer;l.on(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s),l.on(window_1.dashjs.MediaPlayer.events.CAN_PLAY,function(){l.off(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s)})}function mountDashProvider(e){(window_1.MediaSource||e)&&videojs.getTech("Html5").registerSourceHandler(videojs.DashSourceHandler(),0)}function getTemplate(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fill",r=e,n="draw-"+t;return[`<svg height="100%" width="100%" viewBox="0 0 484 348">
      <path class="`+n+`" transform="translate(4 4)" d="M383,124C350-42,122.3-40.5,90.6,123.5c-110.4,18.5-131,185,.6,216.5H381.6C519.7,310.7,494.1,137.8,383,124Z"/>
      <path transform="translate(4 4)" d="M200.4,110.2c-9.4-5.8-19.6,2.7-19.4,11.7V256.2c0,8,10.4,16.7,19.4,10.8,2.2-1.4,111.8-65.9,114-67.3,7.4-4,10.1-15.8,0-22.2Z" style="fill:#fff ;"/>
    </svg>`,`<svg height="100%" width="100%" viewBox="0 0 476 340">
      <path class="`+n+`" d="M383,124C350-42,122.3-40.5,90.6,123.5c-110.4,18.5-131,185,.6,216.5H381.6C519.7,310.7,494.1,137.8,383,124Z"/>
      <path d="M200.4,110.2c-9.4-5.8-19.6,2.7-19.4,11.7V256.2c0,8,10.4,16.7,19.4,10.8,2.2-1.4,111.8-65.9,114-67.3,7.4-4,10.1-15.8,0-22.2Z" style="fill:#fff ;"/>
    </svg>`,`<svg height="100%" width="100%" viewBox="0 14 96 68">
      <path class="`+n+`" d="M96,44.3v7.3c-0.1,7.7-1,15.5-1,15.5s-0.9,6.6-3.8,9.5c-3.6,3.8-7.7,3.8-9.6,4c-13.4,1-33.5,0.9-33.5,0.9 c-0.8,0-25-0.2-32.5-0.9c-2.1-0.4-6.9-0.3-10.6-4.1c-2.9-2.9-3.8-9.5-3.8-9.5s-1-7.7-1.1-15.5v-7.3c0.2-7.8,1.1-15.5,1.1-15.5 s0.9-6.6,3.8-9.5c3.6-3.8,7.7-3.8,9.6-4.1c13.4-1,33.5-0.9,33.5-0.9s20.1-0.1,33.5,0.9c1.9,0.2,5.9,0.2,9.6,4.1 c2.9,2.9,3.8,9.5,3.8,9.5S95.9,36.6,96,44.3z M38.3,61.4L64,47.9L38.3,34.4V61.4z"/>
      <polygon points="64,47.9 38.3,61.4 38.3,34.4" fill="#fff"/>
    </svg>`][r]}function isObject$2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function trimmedEndIndex(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}function baseTrim(e){return e&&e.slice(0,_trimmedEndIndex(e)+1).replace(reTrimStart,"")}function getRawTag(e){var t=hasOwnProperty$2.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(a){}var s=nativeObjectToString.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),s}function objectToString(e){return nativeObjectToString$1.call(e)}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"}function isSymbol(e){return typeof e=="symbol"||isObjectLike_1(e)&&_baseGetTag(e)==symbolTag}function toNumber(e){if(typeof e=="number")return e;if(isSymbol_1(e))return NAN;if(isObject_1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject_1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}function debounce(e,t,r){function n(C){var x=g,P=y;return g=y=void 0,k=C,_=e.apply(P,x)}function s(C){return k=C,E=setTimeout(u,t),A?n(C):_}function a(C){var x=C-S,P=C-k,O=t-x;return I?nativeMin(O,f-P):O}function l(C){var x=C-S,P=C-k;return S===void 0||x>=t||x<0||I&&P>=f}function u(){var C=now_1();if(l(C))return p(C);E=setTimeout(u,a(C))}function p(C){return E=void 0,R&&g?n(C):(g=y=void 0,_)}function d(){E!==void 0&&clearTimeout(E),k=0,g=S=y=E=void 0}function m(){return E===void 0?_:p(now_1())}function b(){var C=now_1(),x=l(C);if(g=arguments,y=this,S=C,x){if(E===void 0)return s(S);if(I)return clearTimeout(E),E=setTimeout(u,t),n(S)}return E===void 0&&(E=setTimeout(u,t)),_}var g,y,f,_,E,S,k=0,A=!1,I=!1,R=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return t=toNumber_1(t)||0,isObject_1(r)&&(A=!!r.leading,I="maxWait"in r,f=I?nativeMax(toNumber_1(r.maxWait)||0,t):f,R="trailing"in r?!!r.trailing:R),b.cancel=d,b.flush=m,b}function throttle$1(e,t,r){var n=!0,s=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject_1(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),debounce_1(e,t,{leading:n,maxWait:t,trailing:s})}function mountFlvProvider(e){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(!videojs.browser.IS_TBS&&!videojs.browser.IS_MQQB&&(!IS_IOS||!videojs.browser.IS_SAFARI)&&!videojs.browser.IE_VERSION||e)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(FlvSourceHandler,0)}catch(r){}}function mountWebRTCProvider(e){if(!videojs.browser.isWebRTCSupported())return!1;try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(sourceHandler,0)}catch(r){}}function FlashRtmpDecorator(e){return e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},e.streamFromParts=function(t,r){return t+"&"+r},e.streamToParts=function(t){var r={connection:"",stream:""};if(!t)return r;var n=t.search(/&(?!\w+=)/),s=void 0;return n!==-1?s=n+1:(n=s=t.lastIndexOf("/")+1)===0&&(n=s=t.length),r.connection=t.substring(0,n),r.stream=t.substring(s,t.length),r},e.isStreamingType=function(t){return t in e.streamingFormats},e.RTMP_RE=/^rtmp[set]?:\/\//i,e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)},e.rtmpSourceHandler={},e.rtmpSourceHandler.canPlayType=function(t){return e.isStreamingType(t)?"maybe":""},e.rtmpSourceHandler.canHandleSource=function(t,r){var n=e.rtmpSourceHandler.canPlayType(t.type);return n||(e.isStreamingSrc(t.src)?"maybe":"")},e.rtmpSourceHandler.handleSource=function(t,r,n){var s=e.streamToParts(t.src);r.setRtmpConnection(s.connection),r.setRtmpStream(s.stream)},e.registerSourceHandler(e.rtmpSourceHandler),e}function _createSetter(e){var t=e.charAt(0).toUpperCase()+e.slice(1);_api["set"+t]=function(r){return this.el_.vjs_setProperty(e,r)}}function _createGetter(e){_api[e]=function(){return this.el_.vjs_getProperty(e)}}function TCPlayer(e,t,r){var n=void 0,s=new Date().getTime(),a=videojs.dom;if(typeof e=="string")n=document.querySelector("#"+e);else{if(!e||!e.nodeName)throw new TypeError("The ID or element supplied is not valid.");n=e}if(n.nodeName.toLowerCase()!="video"&&n.nodeName.toLowerCase()!="audio")throw new TypeError("The element type must be <video>.");a.hasClass(n,"tcplayer")||a.addClass(n,"tcplayer"),a.hasClass(n,"video-js")||a.addClass(n,"video-js"),videojs.browser.IE_VERSION&&(n.style.width||n.offsetWidth&&n.offsetWidth!==300)&&(window_1.VIDEOJS_NO_DYNAMIC_STYLE=!0);var l={controls:!0,language:"zh-CN",playbackRates:[.5,1,1.25,1.5,2],controlBar:{volumePanel:{inline:n.nodeName.toLowerCase()!="video"},fullscreenToggle:n.nodeName.toLowerCase()=="video",QualitySwitcherMenuButton:!0},plugins:{Skin:"",VID:"",QualitySwitcher:{},MultiResolution:{},Errors:{},Reporter:{},ContextMenu:{},LevelSwitch:{},VttThumbnail:{},PlayerMetrics:{}}};t=videojs.mergeOptions(l,t),videojs.browser.IE_VERSION&&videojs.browser.IE_VERSION<11&&window_1.top,t.autoplay&&videojs.browser.IS_ANDROID&&videojs.browser.IS_WECHAT&&(t.autoplay=!1),log("player initializing",t),videojs.getComponent("player").prototype.options_.children.splice(1,0,"logoImage");var u=videojs(e,t,r);return u.PlayerMetrics(t).setTimingData({initStart:s}),log("player initialized",t),Enc.elemManage(u),u}var version="4.8.0",commonjsGlobal$1=typeof window<"u"?window:typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:{},win;win=typeof window<"u"?window:commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof self<"u"?self:{};var window_1=win,empty={},empty$1=(Object.freeze||Object)({default:empty}),minDoc=empty$1&&empty||empty$1,topLevel=commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof window<"u"?window:{},doccy;typeof document<"u"?doccy=document:(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"])||(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"]=minDoc);var document_1=doccy,USER_AGENT=window_1.navigator&&window_1.navigator.userAgent||"",VENDOR=window_1.navigator&&window_1.navigator.vendor||"",webkitVersionMap=/AppleWebKit\/([\d.]+)/i.exec(USER_AGENT),appleWebkitVersion=webkitVersionMap?parseFloat(webkitVersionMap.pop()):null,IS_IPAD=/iPad/i.test(USER_AGENT),IS_IPHONE=/iPhone/i.test(USER_AGENT)&&!IS_IPAD,IS_IPOD=/iPod/i.test(USER_AGENT),IS_IOS=IS_IPHONE||IS_IPAD||IS_IPOD,IOS_VERSION=function(){var e=USER_AGENT.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),IOS_VERSION_ARRAY=function(){var e=USER_AGENT.match(/OS (\d+)_(\d+)_?(\d+)?/i);return e&&[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]||[]}(),IS_ANDROID=/Android/i.test(USER_AGENT),ANDROID_VERSION=function(){var e=USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),r=e[2]&&parseFloat(e[2]);return t&&r?parseFloat(e[1]+"."+e[2]):t||null}(),IS_TBS=/TBS\/\d+/i.test(USER_AGENT),TBS_VERSION=function(){var e=USER_AGENT.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),IS_MQQB=!IS_TBS&&/MQQBrowser\/\d+/i.test(USER_AGENT),IS_QQB=!IS_TBS&&/ QQBrowser\/\d+/i.test(USER_AGENT),IS_PC_WECHAT=/windowswechat/i.test(USER_AGENT),IS_WECHAT=/(micromessenger|webbrowser)/i.test(USER_AGENT),IS_MQQ=/ QQ\/\d+/i.test(USER_AGENT)||/MQQBrowser\/\d+/i.test(USER_AGENT),IS_OLD_ANDROID=IS_ANDROID&&/webkit/i.test(USER_AGENT)&&ANDROID_VERSION<2.3,IS_NATIVE_ANDROID=IS_ANDROID&&ANDROID_VERSION<5&&appleWebkitVersion<537,IS_FIREFOX=/Firefox/i.test(USER_AGENT),IS_EDGE=/Edge/i.test(USER_AGENT),IS_EDG=/Edg/i.test(USER_AGENT),IS_EDGA=/EdgA/i.test(USER_AGENT),EDG_VERSION=IS_EDG&&function(){var e=USER_AGENT.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),EDGA_VERSION=IS_EDGA&&function(){var e=USER_AGENT.match(/EdgA\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),IS_CHROME=function(){return!(IS_EDGE||!/Chrome/i.test(USER_AGENT))||!(!/Safari/i.test(USER_AGENT)||!/CriOS/i.test(USER_AGENT))}()&&!IS_WECHAT&&!IS_MQQB&&!IS_QQB,CHROME_VERSION=function(){var e=USER_AGENT.match(/Chrome\/(\d+)/),t=USER_AGENT.match(/CriOS\/(\d+)/);return e&&e[1]?parseFloat(e[1]):t&&t[1]?parseFloat(t[1]):null}(),IS_IE8=/MSIE\s8\.0/.test(USER_AGENT),IE_VERSION=function(){var e=/MSIE\s(\d+)\.\d/.exec(USER_AGENT),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(USER_AGENT)&&/rv:11.0/.test(USER_AGENT)&&(t=11),t}(),IS_SAFARI=/Safari/i.test(USER_AGENT)&&!IS_CHROME&&!IS_ANDROID&&!IS_EDGE&&!IS_MQQB&&!IS_QQB&&!IS_PC_WECHAT,IS_ANY_SAFARI=IS_SAFARI||IS_IOS,IS_SIMULATOR=IS_SAFARI&&VENDOR==="Google Inc.",IS_UC=/UCBrowser\/(\d+)\./i.test(USER_AGENT),TOUCH_ENABLED=isReal()&&("ontouchstart"in window_1||window_1.DocumentTouch&&window_1.document instanceof window_1.DocumentTouch),BACKGROUND_SIZE_SUPPORTED=isReal()&&"backgroundSize"in window_1.document.createElement("video").style,IS_WIN=/Windows/i.test(USER_AGENT),IS_MAC=/MAC OS X/i.test(USER_AGENT),WIN_VER=function(){return RegExp.$1}(),MAC_VER=function(){return RegExp.$1}(),QQ_VER=function(){return RegExp.$1}(),EDGE_VER=function(){return RegExp.$1}(),SAFARI_VER=function(){return RegExp.$1}(),FIREFOX_VER=function(){return RegExp.$1}(),CHROME_VER=function(){return RegExp.$1}(),IS_HUAWEI=/HUAWEI|honor|HMA/i.test(USER_AGENT),IS_XIAOMI=/HM|RedMi|Mi/i.test(USER_AGENT)&&!IS_HUAWEI,IS_OPPO=/OPPO/i.test(USER_AGENT),IS_VIVO=/VIVO/i.test(USER_AGENT),IS_SX=/GT-|SM-|SCH-/i.test(USER_AGENT),IS_ONE=/ONE/i.test(USER_AGENT),IS_CP=/Coolpad/i.test(USER_AGENT),IS_ZX=/ZTE/i.test(USER_AGENT),isWebRTCAPISupported=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter(function(e){return e in window_1}).length>0},isWebRTCSupported=function(){return!IS_UC&&!IS_EDGE&&!(IS_EDG&&EDG_VERSION<80&&IS_EDGA&&EDGA_VERSION<80)&&!(IS_FIREFOX&&FIREFOX_VER<56)&&!(!IS_TBS&&IS_SAFARI&&IS_IOS&&(IOS_VERSION_ARRAY.length===0||IOS_VERSION_ARRAY[0]<11||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]<1||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]===1&&IOS_VERSION_ARRAY[2]<2))&&isWebRTCAPISupported()},IS_ENABLED_MSE=function(){var e=window_1.MediaSource=window_1.MediaSource||window_1.WebKitMediaSource,t=window_1.SourceBuffer=window_1.SourceBuffer||window_1.WebKitSourceBuffer,r=e&&typeof e.isTypeSupported=="function"&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function";return IS_IOS?void 0:r&&n}(),browser=(Object.freeze||Object)({USER_AGENT,IS_IPAD,IS_IPHONE,IS_IPOD,IS_IOS,IOS_VERSION,IOS_VERSION_ARRAY,IS_ANDROID,ANDROID_VERSION,IS_TBS,TBS_VERSION,IS_MQQB,IS_QQB,IS_PC_WECHAT,IS_WECHAT,IS_MQQ,IS_OLD_ANDROID,IS_NATIVE_ANDROID,IS_FIREFOX,IS_EDGE,IS_EDG,IS_EDGA,EDG_VERSION,EDGA_VERSION,IS_CHROME,CHROME_VERSION,IS_IE8,IE_VERSION,IS_SAFARI,IS_ANY_SAFARI,IS_SIMULATOR,IS_UC,TOUCH_ENABLED,BACKGROUND_SIZE_SUPPORTED,IS_WIN,IS_MAC,WIN_VER,MAC_VER,QQ_VER,EDGE_VER,SAFARI_VER,FIREFOX_VER,CHROME_VER,IS_HUAWEI,IS_XIAOMI,IS_OPPO,IS_VIVO,IS_SX,IS_ONE,IS_CP,IS_ZX,isWebRTCAPISupported,isWebRTCSupported,IS_ENABLED_MSE}),_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},inherits=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t},taggedTemplateLiteralLoose=function(e,t){return e.raw=t,e},toString=Object.prototype.toString,keys=function(e){return isObject$1(e)?Object.keys(e):[]},log$1=void 0,level="info",history=[],logByType=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!!IE_VERSION&&IE_VERSION<11,n=log$1.levels[level],s=new RegExp("^("+n+")$");if(e!=="log"&&t.unshift(e.toUpperCase()+":"),history&&history.push([].concat(t)),(log$1.enableLog||e!="log")&&(t.unshift("TCPlayer:"),window_1.console)){var a=window_1.console[e];a||e!=="debug"||(a=window_1.console.info||window_1.console.log),a&&n&&s.test(e)&&(r&&(t=t.map(function(l){if(isObject$1(l)||Array.isArray(l))try{return JSON.stringify(l)}catch(u){return String(l)}return String(l)}).join(" ")),a.apply?a[Array.isArray(t)?"apply":"call"](window_1.console,t):a(t))}};log$1=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];logByType("log",t)},log$1.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:level},log$1.level=function(e){if(typeof e=="string"){if(!log$1.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');level=e}return level},log$1.history=function(){return history?[].concat(history):[]},log$1.history.clear=function(){history&&(history.length=0)},log$1.history.disable=function(){history!==null&&(history.length=0,history=null)},log$1.history.enable=function(){history===null&&(history=[])},log$1.enableLog=!1,log$1.error=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return logByType("error",t)},log$1.warn=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return logByType("warn",t)},log$1.debug=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return logByType("debug",t)};var log$2=log$1,tsml=function(e){for(var t="",r=0;r<arguments.length;r++)t+=clean(e[r])+(arguments[r+1]||"");return t},_templateObject=taggedTemplateLiteralLoose([`Setting attributes in the second argument of createEl()
                has been deprecated. Use the third argument instead.
                createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl()
                has been deprecated. Use the third argument instead.
                createEl(type, properties, attributes). Attempting to set `," to ","."]),$=createQuerier("querySelector"),$$=createQuerier("querySelectorAll"),Dom=(Object.freeze||Object)({isReal,isEl,isInFrame,createEl,textContent,prependTo,hasClass,addClass,removeClass,toggleClass,setAttributes,getAttributes,getAttribute,setAttribute,removeAttribute,blockTextSelection,unblockTextSelection,getBoundingClientRect,findPosition,getPointerPosition,isTextNode,emptyEl,normalizeContent,appendContent,insertContent,isSingleLeftClick,$,$$}),_guid=1,elData={},elIdAttr="vdata"+new Date().getTime(),_supportsPassive=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){_supportsPassive=!0}});window_1.addEventListener("test",null,e),window_1.removeEventListener("test",null,e)}catch(t){}})();var passiveEvents=["touchstart","touchmove"],Events=(Object.freeze||Object)({fixEvent,on,off,trigger,one}),_windowLoaded=!1,videojs$2=void 0,autoSetup=function(){if(isReal()){var e=document_1.getElementsByTagName("video"),t=document_1.getElementsByTagName("audio"),r=document_1.getElementsByTagName("video-js"),n=[];if(e&&e.length>0)for(var s=0,a=e.length;s<a;s++)n.push(e[s]);if(t&&t.length>0)for(var l=0,u=t.length;l<u;l++)n.push(t[l]);if(r&&r.length>0)for(var p=0,d=r.length;p<d;p++)n.push(r[p]);if(n&&n.length>0)for(var m=0,b=n.length;m<b;m++){var g=n[m];if(!g||!g.getAttribute){autoSetupTimeout(1);break}if(g.player===void 0){var y=g.getAttribute("data-setup");y!==null&&videojs$2(g)}}else _windowLoaded||autoSetupTimeout(1)}};isReal()&&document_1.readyState==="complete"?_windowLoaded=!0:one(window_1,"load",function(){_windowLoaded=!0});var createStyleElement=function(e){var t=document_1.createElement("style");return t.className=e,t},setTextContent=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},bind=function(e,t,r){t.guid||(t.guid=newGUID());var n=function(){return t.apply(e,arguments)};return n.guid=r?r+"_"+t.guid:t.guid,n},throttle=function(e,t){var r=Date.now();return function(){var n=Date.now();n-r>=t&&(e.apply(void 0,arguments),r=n)}},EventTarget=function(){};EventTarget.prototype.allowedEvents_={},EventTarget.prototype.on=function(e,t){var r=this.addEventListener;this.addEventListener=function(){},on(this,e,t),this.addEventListener=r},EventTarget.prototype.addEventListener=EventTarget.prototype.on,EventTarget.prototype.off=function(e,t){off(this,e,t)},EventTarget.prototype.removeEventListener=EventTarget.prototype.off,EventTarget.prototype.one=function(e,t){var r=this.addEventListener;this.addEventListener=function(){},one(this,e,t),this.addEventListener=r},EventTarget.prototype.trigger=function(e){var t=e.type||e;typeof e=="string"&&(e={type:t}),e=fixEvent(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),trigger(this,e)},EventTarget.prototype.dispatchEvent=EventTarget.prototype.trigger;var isEvented=function(e){return e instanceof EventTarget||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return typeof e[t]=="function"})},isValidEventType=function(e){return typeof e=="string"&&/\S/.test(e)||Array.isArray(e)&&!!e.length},validateTarget=function(e){if(!e.nodeName&&!isEvented(e))throw new Error("Invalid target; must be a DOM node or evented object.")},validateEventType=function(e){if(!isValidEventType(e))throw new Error("Invalid event type; must be a non-empty string or array.")},validateListener=function(e){if(typeof e!="function")throw new Error("Invalid listener; must be a function.")},normalizeListenArgs=function(e,t){var r=t.length<3||t[0]===e||t[0]===e.eventBusEl_,n=void 0,s=void 0,a=void 0;return r?(n=e.eventBusEl_,t.length>=3&&t.shift(),s=t[0],a=t[1]):(n=t[0],s=t[1],a=t[2]),validateTarget(n),validateEventType(s),validateListener(a),a=bind(e,a),{isTargetingSelf:r,target:n,type:s,listener:a}},listen=function(e,t,r,n){validateTarget(e),e.nodeName?Events[t](e,r,n):e[t](r,n)},EventedMixin={on:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var s=normalizeListenArgs(this,r),a=s.isTargetingSelf,l=s.target,u=s.type,p=s.listener;if(listen(l,"on",u,p),!a){var d=function(){return e.off(l,u,p)};d.guid=p.guid;var m=function(){return e.off("dispose",d)};m.guid=p.guid,listen(this,"on","dispose",d),listen(l,"on","dispose",m)}},one:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var s=normalizeListenArgs(this,r),a=s.isTargetingSelf,l=s.target,u=s.type,p=s.listener;if(a)listen(l,"one",u,p);else{var d=function m(){for(var b=arguments.length,g=Array(b),y=0;y<b;y++)g[y]=arguments[y];e.off(l,u,m),p.apply(null,g)};d.guid=p.guid,listen(l,"one",u,d)}},off:function(e,t,r){if(!e||isValidEventType(e))isValidEventType(t)?off(this.eventBusEl_,t,r):off(this.eventBusEl_,e,t);else{var n=e,s=t;validateTarget(n),validateEventType(s),validateListener(r),r=bind(this,r),this.off("dispose",r),n.nodeName?(off(n,s,r),off(n,"dispose",r)):isEvented(n)&&(n.off(s,r),n.off("dispose",r))}},trigger:function(e,t){return trigger(this.eventBusEl_,e,t)}},StatefulMixin={state:{},setState:function(e){var t=this;typeof e=="function"&&(e=e());var r=void 0;return each(e,function(n,s){t.state[s]!==n&&(r=r||{},r[s]={from:t.state[s],to:n}),t.state[s]=n}),r&&isEvented(this)&&this.trigger({changes:r,type:"statechanged"}),r}},Component=function(){function e(t,r,n){if(classCallCheck(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=extend(!0,{},this.options_),r=this.options_=mergeOptions(this.options_,r),this.id_=r.id||r.el&&r.el.id,!this.id_){var s=t&&t.id&&t.id()||"no_player";this.id_=s+"_component_"+newGUID()}this.name_=r.name||null,r.el?this.el_=r.el:r.createEl!==!1&&(this.el_=this.createEl()),r.evented!==!1&&evented(this,{eventBusKey:this.el_?"el_":null}),stateful(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},r.initChildren!==!1&&this.initChildren(),this.ready(n),r.reportTouchActivity!==!1&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),removeData(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(t){return log$2.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=mergeOptions(this.options_,t),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(t,r,n){return createEl(t,r,n)},e.prototype.localize=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,s=this.player_.language&&this.player_.language(),a=this.player_.languages&&this.player_.languages(),l=a&&a[s],u=s&&s.split("-")[0],p=a&&a[u],d=n;return l&&l[t]?d=l[t]:p&&p[t]&&(d=p[t]),r&&(d=d.replace(/\{(\d+)\}/g,function(m,b){var g=r[b-1],y=g;return g===void 0&&(y=m),y})),d},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(t){return this.childIndex_[t]},e.prototype.getChild=function(t){if(t)return t=toTitleCase(t),this.childNameIndex_[t]},e.prototype.addChild=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.children_.length,s=void 0,a=void 0;if(typeof t=="string"){a=toTitleCase(t);var l=r.componentClass||a;r.name=a;var u=e.getComponent(l);if(!u)throw new Error("Component "+l+" does not exist");if(typeof u!="function")return null;s=new u(this.player_||this,r)}else s=t;if(this.children_.splice(n,0,s),typeof s.id=="function"&&(this.childIndex_[s.id()]=s),a=a||s.name&&toTitleCase(s.name()),a&&(this.childNameIndex_[a]=s),typeof s.el=="function"&&s.el()){var p=this.contentEl().children,d=p[n]||null;this.contentEl().insertBefore(s.el(),d)}return s},e.prototype.removeChild=function(t){if(typeof t=="string"&&(t=this.getChild(t)),t&&this.children_){for(var r=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){r=!0,this.children_.splice(n,1);break}if(r){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var s=t.el();s&&s.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.prototype.initChildren=function(){var t=this,r=this.options_.children;if(r){var n=this.options_,s=function(u){var p=u.name,d=u.opts;if(n[p]!==void 0&&(d=n[p]),d!==!1){d===!0&&(d={}),d.playerOptions=t.options_.playerOptions;var m=t.addChild(p,d);m&&(t[p]=m)}},a=void 0,l=e.getComponent("Tech");a=Array.isArray(r)?r:Object.keys(r),a.concat(Object.keys(this.options_).filter(function(u){return!a.some(function(p){return typeof p=="string"?u===p:u===p.name})})).map(function(u){var p=void 0,d=void 0;return typeof u=="string"?(p=u,d=r[p]||t.options_[p]||{}):(p=u.name,d=u),{name:p,opts:d}}).filter(function(u){var p=e.getComponent(u.opts.componentClass||toTitleCase(u.name));return p&&!l.isTech(p)}).forEach(s)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(t){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t)return this.isReady_?void(r?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(r){r.call(this)},this),this.trigger("ready")},1)},e.prototype.$=function(t,r){return $(t,r||this.contentEl())},e.prototype.$$=function(t,r){return $$(t,r||this.contentEl())},e.prototype.hasClass=function(t){return hasClass(this.el_,t)},e.prototype.addClass=function(t){addClass(this.el_,t)},e.prototype.removeClass=function(t){removeClass(this.el_,t)},e.prototype.toggleClass=function(t,r){toggleClass(this.el_,t,r)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(t){return getAttribute(this.el_,t)},e.prototype.setAttribute=function(t,r){setAttribute(this.el_,t,r)},e.prototype.removeAttribute=function(t){removeAttribute(this.el_,t)},e.prototype.width=function(t,r){return this.dimension("width",t,r)},e.prototype.height=function(t,r){return this.dimension("height",t,r)},e.prototype.dimensions=function(t,r){this.width(t,!0),this.height(r)},e.prototype.dimension=function(t,r,n){if(r!==void 0)return r!==null&&r===r||(r=0),(""+r).indexOf("%")!==-1||(""+r).indexOf("px")!==-1?this.el_.style[t]=r:this.el_.style[t]=r==="auto"?"":r+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var s=this.el_.style[t],a=s.indexOf("px");return parseInt(a!==-1?s.slice(0,a):this.el_["offset"+toTitleCase(t)],10)},e.prototype.currentDimension=function(t){var r=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(typeof window_1.getComputedStyle=="function"){var n=window_1.getComputedStyle(this.el_);r=n.getPropertyValue(t)||n[t]}if((r=parseFloat(r))===0){var s="offset"+toTitleCase(t);r=this.el_[s]}return r},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var t=0,r=null,n=void 0;this.on("touchstart",function(a){a.touches.length===1&&(r={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},t=new Date().getTime(),n=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)n=!1;else if(r){var l=a.touches[0].pageX-r.pageX,u=a.touches[0].pageY-r.pageY,p=Math.sqrt(l*l+u*u);p>10&&(n=!1)}});var s=function(){n=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",function(a){r=null,n===!0&&new Date().getTime()-t<200&&(a.preventDefault(),this.trigger("tap"))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=bind(this.player(),this.player().reportUserActivity),r=void 0;this.on("touchstart",function(){t(),this.clearInterval(r),r=this.setInterval(t,250)});var n=function(s){t(),this.clearInterval(r)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(t,r){var n=this;t=bind(this,t);var s=window_1.setTimeout(t,r),a=function(){return n.clearTimeout(s)};return a.guid="vjs-timeout-"+s,this.on("dispose",a),s},e.prototype.clearTimeout=function(t){window_1.clearTimeout(t);var r=function(){};return r.guid="vjs-timeout-"+t,this.off("dispose",r),t},e.prototype.setInterval=function(t,r){var n=this;t=bind(this,t);var s=window_1.setInterval(t,r),a=function(){return n.clearInterval(s)};return a.guid="vjs-interval-"+s,this.on("dispose",a),s},e.prototype.clearInterval=function(t){window_1.clearInterval(t);var r=function(){};return r.guid="vjs-interval-"+t,this.off("dispose",r),t},e.prototype.requestAnimationFrame=function(t){var r=this;if(this.supportsRaf_){t=bind(this,t);var n=window_1.requestAnimationFrame(t),s=function(){return r.cancelAnimationFrame(n)};return s.guid="vjs-raf-"+n,this.on("dispose",s),n}return this.setTimeout(t,1e3/60)},e.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){window_1.cancelAnimationFrame(t);var r=function(){};return r.guid="vjs-raf-"+t,this.off("dispose",r),t}return this.clearTimeout(t)},e.registerComponent=function(t,r){if(typeof t!="string"||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=e.getComponent("Tech"),s=n&&n.isTech(r),a=e===r||e.prototype.isPrototypeOf(r.prototype);if(s||!a){var l=void 0;throw l=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+l+".")}t=toTitleCase(t),e.components_||(e.components_={});var u=e.getComponent("Player");if(t==="Player"&&u&&u.players){var p=u.players,d=Object.keys(p);if(p&&d.length>0&&d.map(function(m){return p[m]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=r,r},e.getComponent=function(t){if(t)return t=toTitleCase(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();Component.prototype.supportsRaf_=typeof window_1.requestAnimationFrame=="function"&&typeof window_1.cancelAnimationFrame=="function",Component.registerComponent("Component",Component);for(var EXT_MIME={m3u8:"application/x-mpegURL",flv:"video/flv",mp4:"video/mp4",webm:"video/webm",rtmp:"rtmp/flv",mpd:"application/dash+xml",mp3:"audio/mpeg"},SERVER_PATH="//playvideo.qcloud.com",SERVER_PATH_V3="//playvideo.qcloud.com",SERVER_PATH_V4="//playvideo.qcloud.com",SERVER_PATH_BACKUP="//bkplayvideo.qcloud.com",LICENSE_PATH="https://drm.vod2.myqcloud.com/getlicense/v1",HLS_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/hls.min.1.1.6.js",FLV_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/flv.min.1.6.3.js",WEBRTC_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/TXLivePlayer-1.3.0.min.js",DASH_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/dash.all.min.v3.1.3.js",XP2P_HLS_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/hlsp2p.min.1.6.28.js",XP2P_FLV_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/qvbp2p_common.min.1.8.29.js",parseUrl=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],r=document_1.createElement("a");r.href=e;var n=r.host===""&&r.protocol!=="file:",s=void 0;n&&(s=document_1.createElement("div"),s.innerHTML='<a href="'+e+'"></a>',r=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),document_1.body.appendChild(s));for(var a={},l=0;l<t.length;l++)a[t[l]]=r[t[l]];return a.protocol==="http:"&&(a.host=a.host.replace(/:80$/,"")),a.protocol==="https:"&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=window_1.location.protocol),n&&document_1.body.removeChild(s),a},getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var t=document_1.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},getFileExtension=function(e){if(typeof e=="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,r=t.exec(e);if(r)return r.pop().toLowerCase()}return""},isCrossOrigin=function(e){var t=window_1.location,r=parseUrl(e);return(r.protocol===":"?t.protocol:r.protocol)+r.host!==t.protocol+t.host},Url=(Object.freeze||Object)({parseUrl,getAbsoluteURL,getFileExtension,isCrossOrigin}),FullscreenApi={},apiMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],specApi=apiMap[0],browserApi=void 0,prefixedAPI=!1,i$1=0;i$1<apiMap.length;i$1++)if(apiMap[i$1][1]in document_1){browserApi=apiMap[i$1];break}if(browserApi){for(var _i=0;_i<browserApi.length;_i++)FullscreenApi[specApi[_i]]=browserApi[_i];prefixedAPI=browserApi[0]===specApi[0]}MediaError.prototype.code=0,MediaError.prototype.message="",MediaError.prototype.status=null,MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],MediaError.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var errNum=0;errNum<MediaError.errorTypes.length;errNum++)MediaError[MediaError.errorTypes[errNum]]=errNum,MediaError.prototype[MediaError.errorTypes[errNum]]=errNum;var tuple=SafeParseTuple,trackToJson_=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,r,n){return e[r]&&(t[r]=e[r]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},textTracksToJson=function(e){var t=e.$$("track"),r=Array.prototype.map.call(t,function(n){return n.track});return Array.prototype.map.call(t,function(n){var s=trackToJson_(n.track);return n.src&&(s.src=n.src),s}).concat(Array.prototype.filter.call(e.textTracks(),function(n){return r.indexOf(n)===-1}).map(trackToJson_))},jsonToTextTracks=function(e,t){return e.forEach(function(r){var n=t.addRemoteTextTrack(r).track;!r.src&&r.cues&&r.cues.forEach(function(s){return n.addCue(s)})}),t.textTracks()},textTrackConverter={textTracksToJson,jsonToTextTracks,trackToJson_},MODAL_CLASS_NAME="vjs-modal-dialog",ESC=27,ModalDialog=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.opened_=s.hasBeenOpened_=s.hasBeenFilled_=!1,s.closeable(!s.options_.uncloseable),s.content(s.options_.content),s.contentEl_=createEl("div",{className:MODAL_CLASS_NAME+"-content"},{role:"document"}),s.descEl_=createEl("p",{className:MODAL_CLASS_NAME+"-description vjs-control-text",id:s.el().getAttribute("aria-describedby")}),textContent(s.descEl_,s.description()),s.el_.appendChild(s.descEl_),s.el_.appendChild(s.contentEl_),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return MODAL_CLASS_NAME+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(r){r.which===ESC&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var r=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(r+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),r},t.prototype.open=function(){if(!this.opened_){var r=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!r.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&r.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_=r.controls(),r.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(r){return typeof r=="boolean"&&this[r?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var r=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&r.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_&&r.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(r){if(typeof r=="boolean"){var n=this.closeable_=!!r,s=this.getChild("closeButton");if(n&&!s){var a=this.contentEl_;this.contentEl_=this.el_,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=a,this.on(s,"close",this.close)}!n&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(r){var n=this.contentEl(),s=n.parentNode,a=n.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,s.removeChild(n),this.empty(),insertContent(n,r),this.trigger("modalfill"),a?s.insertBefore(n,a):s.appendChild(n);var l=this.getChild("closeButton");l&&s.appendChild(l.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),emptyEl(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(r){return r!==void 0&&(this.content_=r),this.content_},t.prototype.conditionalFocus_=function(){var r=document_1.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,(n.contains(r)||n===r)&&(this.previouslyActiveEl_=r,this.focus(),this.on(document_1,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(document_1,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(r){if(r.which===9){for(var n=this.focusableEls_(),s=this.el_.querySelector(":focus"),a=void 0,l=0;l<n.length;l++)if(s===n[l]){a=l;break}document_1.activeElement===this.el_&&(a=0),r.shiftKey&&a===0?(n[n.length-1].focus(),r.preventDefault()):r.shiftKey||a!==n.length-1||(n[0].focus(),r.preventDefault())}},t.prototype.focusableEls_=function(){var r=this.el_.querySelectorAll("*");return Array.prototype.filter.call(r,function(n){return(n instanceof window_1.HTMLAnchorElement||n instanceof window_1.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof window_1.HTMLInputElement||n instanceof window_1.HTMLSelectElement||n instanceof window_1.HTMLTextAreaElement||n instanceof window_1.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof window_1.HTMLIFrameElement||n instanceof window_1.HTMLObjectElement||n instanceof window_1.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable")})},t}(Component);ModalDialog.prototype.options_={pauseOnOpen:!0,temporary:!0},Component.registerComponent("ModalDialog",ModalDialog);var TrackList=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this));if(!s&&(s=a,IS_IE8)){s=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(s[l]=t.prototype[l])}s.tracks_=[],Object.defineProperty(s,"length",{get:function(){return this.tracks_.length}});for(var u=0;u<n.length;u++)s.addTrack(n[u]);return r=s,possibleConstructorReturn(a,r)}return inherits(t,e),t.prototype.addTrack=function(r){var n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),this.tracks_.indexOf(r)===-1&&(this.tracks_.push(r),this.trigger({track:r,type:"addtrack"}))},t.prototype.removeTrack=function(r){for(var n=void 0,s=0,a=this.length;s<a;s++)if(this[s]===r){n=this[s],n.off&&n.off(),this.tracks_.splice(s,1);break}n&&this.trigger({track:n,type:"removetrack"})},t.prototype.getTrackById=function(r){for(var n=null,s=0,a=this.length;s<a;s++){var l=this[s];if(l.id===r){n=l;break}}return n},t}(EventTarget);TrackList.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var event$1 in TrackList.prototype.allowedEvents_)TrackList.prototype["on"+event$1]=null;var disableOthers=function(e,t){for(var r=0;r<e.length;r++)Object.keys(e[r]).length&&t.id!==e[r].id&&(e[r].enabled=!1)},AudioTrackList=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,l=s.length-1;l>=0;l--)if(s[l].enabled){disableOthers(s,s[l]);break}if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var p in t.prototype)p!=="constructor"&&(a[p]=t.prototype[p])}return a=r=possibleConstructorReturn(this,e.call(this,s,a)),a.changing_=!1,n=a,possibleConstructorReturn(r,n)}return inherits(t,e),t.prototype.addTrack=function(r){var n=this;r.enabled&&disableOthers(this,r),e.prototype.addTrack.call(this,r),r.addEventListener&&r.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,disableOthers(n,r),n.changing_=!1,n.trigger("change"))})},t}(TrackList),disableOthers$1=function(e,t){for(var r=0;r<e.length;r++)Object.keys(e[r]).length&&t.id!==e[r].id&&(e[r].selected=!1)},VideoTrackList=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,l=s.length-1;l>=0;l--)if(s[l].selected){disableOthers$1(s,s[l]);break}if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var p in t.prototype)p!=="constructor"&&(a[p]=t.prototype[p])}return a=r=possibleConstructorReturn(this,e.call(this,s,a)),a.changing_=!1,Object.defineProperty(a,"selectedIndex",{get:function(){for(var d=0;d<this.length;d++)if(this[d].selected)return d;return-1},set:function(){}}),n=a,possibleConstructorReturn(r,n)}return inherits(t,e),t.prototype.addTrack=function(r){var n=this;r.selected&&disableOthers$1(this,r),e.prototype.addTrack.call(this,r),r.addEventListener&&r.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,disableOthers$1(n,r),n.changing_=!1,n.trigger("change"))})},t}(TrackList),TextTrackList=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);var a=void 0;if(IS_IE8){a=document_1.createElement("custom");for(var l in TrackList.prototype)l!=="constructor"&&(a[l]=TrackList.prototype[l]);for(var u in t.prototype)u!=="constructor"&&(a[u]=t.prototype[u])}return a=r=possibleConstructorReturn(this,e.call(this,s,a)),n=a,possibleConstructorReturn(r,n)}return inherits(t,e),t.prototype.addTrack=function(r){if(r.mode==="disabled"&&!r.label)return!1;e.prototype.addTrack.call(this,r),r.addEventListener("modechange",bind(this,function(){this.trigger("change")})),["metadata","chapters"].indexOf(r.kind)===-1&&r.addEventListener("modechange",bind(this,function(){this.trigger("selectedlanguagechange")}))},t}(TrackList),HtmlTrackElementList=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,e);var r=this;if(IS_IE8){r=document_1.createElement("custom");for(var n in e.prototype)n!=="constructor"&&(r[n]=e.prototype[n])}r.trackElements_=[],Object.defineProperty(r,"length",{get:function(){return this.trackElements_.length}});for(var s=0,a=t.length;s<a;s++)r.addTrackElement_(t[s]);if(IS_IE8)return r}return e.prototype.addTrackElement_=function(t){var r=this.trackElements_.length;""+r in this||Object.defineProperty(this,r,{get:function(){return this.trackElements_[r]}}),this.trackElements_.indexOf(t)===-1&&this.trackElements_.push(t)},e.prototype.getTrackElementByTrack_=function(t){for(var r=void 0,n=0,s=this.trackElements_.length;n<s;n++)if(t===this.trackElements_[n].track){r=this.trackElements_[n];break}return r},e.prototype.removeTrackElement_=function(t){for(var r=0,n=this.trackElements_.length;r<n;r++)if(t===this.trackElements_[r]){this.trackElements_.splice(r,1);break}},e}(),TextTrackCueList=function(){function e(t){classCallCheck(this,e);var r=this;if(IS_IE8){r=document_1.createElement("custom");for(var n in e.prototype)n!=="constructor"&&(r[n]=e.prototype[n])}if(e.prototype.setCues_.call(r,t),Object.defineProperty(r,"length",{get:function(){return this.length_}}),IS_IE8)return r}return e.prototype.setCues_=function(t){var r=this.length||0,n=0,s=t.length;this.cues_=t,this.length_=t.length;var a=function(l){""+l in this||Object.defineProperty(this,""+l,{get:function(){return this.cues_[l]}})};if(r<s)for(n=r;n<s;n++)a.call(this,n)},e.prototype.getCueById=function(t){for(var r=null,n=0,s=this.length;n<s;n++){var a=this[n];if(a.id===t){r=a;break}}return r},e}(),VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"},Track=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this)),a=s;if(IS_IE8){a=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}var u={id:n.id||(n.id===0?0:"vjs_track_"+newGUID()),kind:n.kind||"",label:n.label||"",language:n.language||""};for(var p in u)(function(d){Object.defineProperty(a,d,{get:function(){return u[d]},set:function(){}})})(p);return r=a,possibleConstructorReturn(s,r)}return inherits(t,e),t}(EventTarget),isFunction_1=isFunction$1,toString$1=Object.prototype.toString,trim=function(e){return e.replace(/^\s+|\s+$/g,"")},isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"},parseHeaders=function(e){if(!e)return{};for(var t={},r=trim(e).split(`
`),n=0;n<r.length;n++){var s=r[n],a=s.indexOf(":"),l=trim(s.slice(0,a)).toLowerCase(),u=trim(s.slice(a+1));typeof t[l]>"u"?t[l]=u:isArray(t[l])?t[l].push(u):t[l]=[t[l],u]}return t},immutable=extend$1,hasOwnProperty=Object.prototype.hasOwnProperty,xhr=createXHR;createXHR.XMLHttpRequest=window_1.XMLHttpRequest||noop,createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:window_1.XDomainRequest,forEachArray(["get","put","post","patch","head","delete"],function(e){createXHR[e==="delete"?"del":e]=function(t,r,n){return r=initParams(t,r,n),r.method=e.toUpperCase(),_createXHR(r)}});var parseCues=function(e,t){var r=new window_1.WebVTT.Parser(window_1,window_1.vttjs,window_1.WebVTT.StringDecoder()),n=[];r.oncue=function(s){t.addCue(s)},r.onparsingerror=function(s){n.push(s)},r.onflush=function(){t.trigger({type:"loadeddata",target:t})},r.parse(e),n.length>0&&(window_1.console&&window_1.console.groupCollapsed&&window_1.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(s){return log$2.error(s)}),window_1.console&&window_1.console.groupEnd&&window_1.console.groupEnd()),r.flush()},loadTrack=function(e,t){var r={uri:e},n=isCrossOrigin(e);n&&(r.cors=n),xhr(r,bind(this,function(s,a,l){if(s)return log$2.error(s,a);if(t.loaded_=!0,typeof window_1.WebVTT!="function"){if(t.tech_){var u=function(){return parseCues(l,t)};t.tech_.on("vttjsloaded",u),t.tech_.on("vttjserror",function(){log$2.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",u)})}}else parseCues(l,t)}))},TextTrack=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(classCallCheck(this,t),!s.tech)throw new Error("A tech was not provided.");var a=mergeOptions(s,{kind:TextTrackKind[s.kind]||s.kind||"subtitles",language:s.language||s.srclang||""}),l=TextTrackMode[a.mode]||"disabled",u=a.default;a.kind!=="metadata"&&a.kind!=="chapters"||(l="hidden");var p=r=possibleConstructorReturn(this,e.call(this,a));if(p.tech_=a.tech,IS_IE8)for(var d in t.prototype)d!=="constructor"&&(p[d]=t.prototype[d]);p.cues_=[],p.activeCues_=[];var m=new TextTrackCueList(p.cues_),b=new TextTrackCueList(p.activeCues_),g=!1,y=bind(p,function(){this.activeCues,g&&(this.trigger("cuechange"),g=!1)});return l!=="disabled"&&p.tech_.ready(function(){p.tech_.on("timeupdate",y)},!0),Object.defineProperty(p,"default",{get:function(){return u},set:function(){}}),Object.defineProperty(p,"mode",{get:function(){return l},set:function(f){var _=this;TextTrackMode[f]&&(l=f,l==="showing"&&this.tech_.ready(function(){_.tech_.on("timeupdate",y)},!0),this.trigger("modechange"))}}),Object.defineProperty(p,"cues",{get:function(){return this.loaded_?m:null},set:function(){}}),Object.defineProperty(p,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return b;for(var f=this.tech_.currentTime(),_=[],E=0,S=this.cues.length;E<S;E++){var k=this.cues[E];(k.startTime<=f&&k.endTime>=f||k.startTime===k.endTime&&k.startTime<=f&&k.startTime+.5>=f)&&_.push(k)}if(g=!1,_.length!==this.activeCues_.length)g=!0;else for(var A=0;A<_.length;A++)this.activeCues_.indexOf(_[A])===-1&&(g=!0);return this.activeCues_=_,b.setCues_(this.activeCues_),b},set:function(){}}),a.src?(p.src=a.src,loadTrack(a.src,p)):p.loaded_=!0,n=p,possibleConstructorReturn(r,n)}return inherits(t,e),t.prototype.addCue=function(r){var n=r;if(window_1.vttjs&&!(r instanceof window_1.vttjs.VTTCue)){n=new window_1.vttjs.VTTCue(r.startTime,r.endTime,r.text);for(var s in r)s in n||(n[s]=r[s]);n.id=r.id,n.originalCue_=r}for(var a=this.tech_.textTracks(),l=0;l<a.length;l++)a[l]!==this&&a[l].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(r){for(var n=this.cues_.length;n--;){var s=this.cues_[n];if(s===r||s.originalCue_&&s.originalCue_===r){this.cues_.splice(n,1),this.cues.setCues_(this.cues_);break}}},t}(Track);TextTrack.prototype.allowedEvents_={cuechange:"cuechange"};var AudioTrack=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:AudioTrackKind[s.kind]||""}),l=r=possibleConstructorReturn(this,e.call(this,a)),u=!1;if(IS_IE8)for(var p in t.prototype)p!=="constructor"&&(l[p]=t.prototype[p]);return Object.defineProperty(l,"enabled",{get:function(){return u},set:function(d){typeof d=="boolean"&&d!==u&&(u=d,this.trigger("enabledchange"))}}),a.enabled&&(l.enabled=a.enabled),l.loaded_=!0,n=l,possibleConstructorReturn(r,n)}return inherits(t,e),t}(Track),VideoTrack=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:VideoTrackKind[s.kind]||""}),l=r=possibleConstructorReturn(this,e.call(this,a)),u=!1;if(IS_IE8)for(var p in t.prototype)p!=="constructor"&&(l[p]=t.prototype[p]);return Object.defineProperty(l,"selected",{get:function(){return u},set:function(d){typeof d=="boolean"&&d!==u&&(u=d,this.trigger("selectedchange"))}}),a.selected&&(l.selected=a.selected),n=l,possibleConstructorReturn(r,n)}return inherits(t,e),t}(Track),NONE=0,LOADING=1,LOADED=2,ERROR=3,HTMLTrackElement=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var n=possibleConstructorReturn(this,e.call(this)),s=void 0,a=n;if(IS_IE8){a=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}var u=new TextTrack(r);if(a.kind=u.kind,a.src=u.src,a.srclang=u.language,a.label=u.label,a.default=u.default,Object.defineProperty(a,"readyState",{get:function(){return s}}),Object.defineProperty(a,"track",{get:function(){return u}}),s=NONE,u.addEventListener("loadeddata",function(){s=LOADED,a.trigger({type:"load",target:a})}),IS_IE8){var p;return p=a,possibleConstructorReturn(n,p)}return n}return inherits(t,e),t}(EventTarget);HTMLTrackElement.prototype.allowedEvents_={load:"load"},HTMLTrackElement.NONE=NONE,HTMLTrackElement.LOADING=LOADING,HTMLTrackElement.LOADED=LOADED,HTMLTrackElement.ERROR=ERROR;var NORMAL={audio:{ListClass:AudioTrackList,TrackClass:AudioTrack,capitalName:"Audio"},video:{ListClass:VideoTrackList,TrackClass:VideoTrack,capitalName:"Video"},text:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"Text"}};Object.keys(NORMAL).forEach(function(e){NORMAL[e].getterName=e+"Tracks",NORMAL[e].privateName=e+"Tracks_"});var REMOTE={remoteText:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:HtmlTrackElementList,TrackClass:HTMLTrackElement,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ALL=mergeOptions(NORMAL,REMOTE);REMOTE.names=Object.keys(REMOTE),NORMAL.names=Object.keys(NORMAL),ALL.names=[].concat(REMOTE.names).concat(NORMAL.names);var _objCreate=Object.create||function(){function e(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();ParsingError.prototype=_objCreate(Error.prototype),ParsingError.prototype.constructor=ParsingError,ParsingError.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Settings.prototype={set:function(e,t){this.get(e)||t===""||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var ESCAPE={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},TAG_NAME={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},TAG_ANNOTATION={v:"title",lang:"lang"},NEEDS_PARENT={rt:"ruby"},strongRTLRanges=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];StyleBox.prototype.applyStyles=function(e,t){t=t||this.div;for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r])},StyleBox.prototype.formatStyle=function(e,t){return e===0?0:e+t},CueStyleBox.prototype=_objCreate(StyleBox.prototype),CueStyleBox.prototype.constructor=CueStyleBox,BoxPosition.prototype.move=function(e,t){switch(t=t!==void 0?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},BoxPosition.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},BoxPosition.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},BoxPosition.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},BoxPosition.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},BoxPosition.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},BoxPosition.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},BoxPosition.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,r=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e,{left:e.left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||r}},WebVTT$1.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},WebVTT$1.convertCueToDOMTree=function(e,t){return e&&t?parseContent(e,t):null},WebVTT$1.processCues=function(e,t,r){if(!e||!t||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(d){for(var m=0;m<d.length;m++)if(d[m].hasBeenReset||!d[m].displayState)return!0;return!1}(t)){var s=[],a=BoxPosition.getSimpleBoxPosition(n),l=Math.round(.05*a.height*100)/100,u={font:l+"px sans-serif"};(function(){for(var d,m,b=0;b<t.length;b++)m=t[b],d=new CueStyleBox(e,m,u),n.appendChild(d.div),moveBoxToLinePosition(e,d,a,s),m.displayState=d.div,s.push(BoxPosition.getSimpleBoxPosition(d))})()}else for(var p=0;p<t.length;p++)n.appendChild(t[p].displayState)},WebVTT$1.Parser=function(e,t,r){r||(r=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},WebVTT$1.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof ParsingError))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){function t(){for(var d=s.buffer,m=0;m<d.length&&d[m]!=="\r"&&d[m]!==`
`;)++m;var b=d.substr(0,m);return d[m]==="\r"&&++m,d[m]===`
`&&++m,s.buffer=d.substr(m),b}function r(d){var m=new Settings;if(parseOptions(d,function(g,y){switch(g){case"id":m.set(g,y);break;case"width":m.percent(g,y);break;case"lines":m.integer(g,y);break;case"regionanchor":case"viewportanchor":var f=y.split(",");if(f.length!==2)break;var _=new Settings;if(_.percent("x",f[0]),_.percent("y",f[1]),!_.has("x")||!_.has("y"))break;m.set(g+"X",_.get("x")),m.set(g+"Y",_.get("y"));break;case"scroll":m.alt(g,y,["up"])}},/=/,/\s/),m.has("id")){var b=new(s.vttjs.VTTRegion||s.window.VTTRegion);b.width=m.get("width",100),b.lines=m.get("lines",3),b.regionAnchorX=m.get("regionanchorX",0),b.regionAnchorY=m.get("regionanchorY",100),b.viewportAnchorX=m.get("viewportanchorX",0),b.viewportAnchorY=m.get("viewportanchorY",100),b.scroll=m.get("scroll",""),s.onregion&&s.onregion(b),s.regionList.push({id:m.get("id"),region:b})}}function n(d){var m=new Settings;parseOptions(d,function(b,g){switch(b){case"MPEGT":m.integer(b+"S",g);break;case"LOCA":m.set(b+"L",parseTimeStamp(g))}},/[^\d]:/,/,/),s.ontimestampmap&&s.ontimestampmap({MPEGTS:m.get("MPEGTS"),LOCAL:m.get("LOCAL")})}var s=this;e&&(s.buffer+=s.decoder.decode(e,{stream:!0}));try{var a;if(s.state==="INITIAL"){if(!/\r\n|\n/.test(s.buffer))return this;a=t();var l=a.match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new ParsingError(ParsingError.Errors.BadSignature);s.state="HEADER"}for(var u=!1;s.buffer;){if(!/\r\n|\n/.test(s.buffer))return this;switch(u?u=!1:a=t(),s.state){case"HEADER":/:/.test(a)?function(d){d.match(/X-TIMESTAMP-MAP/)?parseOptions(d,function(m,b){switch(m){case"X-TIMESTAMP-MAP":n(b)}},/=/):parseOptions(d,function(m,b){switch(m){case"Region":r(b)}},/:/)}(a):a||(s.state="ID");continue;case"NOTE":a||(s.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){s.state="NOTE";break}if(!a)continue;if(s.cue=new(s.vttjs.VTTCue||s.window.VTTCue)(0,0,""),s.state="CUE",a.indexOf("-->")===-1){s.cue.id=a;continue}case"CUE":try{parseCue(a,s.cue,s.regionList)}catch(d){s.reportOrThrowError(d),s.cue=null,s.state="BADCUE";continue}s.state="CUETEXT";continue;case"CUETEXT":var p=a.indexOf("-->")!==-1;if(!a||p&&(u=!0)){s.oncue&&s.oncue(s.cue),s.cue=null,s.state="ID";continue}s.cue.text&&(s.cue.text+=`
`),s.cue.text+=a;continue;case"BADCUE":a||(s.state="ID");continue}}}catch(d){s.reportOrThrowError(d),s.state==="CUETEXT"&&s.cue&&s.oncue&&s.oncue(s.cue),s.cue=null,s.state=s.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||e.state==="HEADER")&&(e.buffer+=`

`,e.parse()),e.state==="INITIAL")throw new ParsingError(ParsingError.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var vtt$1=WebVTT$1,autoKeyword="auto",directionSetting={"":!0,lr:!0,rl:!0},alignSetting={start:!0,middle:!0,end:!0,left:!0,right:!0};VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var vttcue=VTTCue,scrollSetting={"":!0,up:!0},vttregion=VTTRegion,browserIndex=createCommonjsModule(function(e){var t=e.exports={WebVTT:vtt$1,VTTCue:vttcue,VTTRegion:vttregion};window_1.vttjs=t,window_1.WebVTT=t.WebVTT;var r=t.VTTCue,n=t.VTTRegion,s=window_1.VTTCue,a=window_1.VTTRegion;t.shim=function(){window_1.VTTCue=r,window_1.VTTRegion=n},t.restore=function(){window_1.VTTCue=s,window_1.VTTRegion=a},window_1.VTTCue||t.shim()}),Tech=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};classCallCheck(this,t),n.reportTouchActivity=!1;var a=possibleConstructorReturn(this,e.call(this,r,n,s));return a.hasStarted_=!1,a.on("playing",function(){this.hasStarted_=!0}),a.on("loadstart",function(){this.hasStarted_=!1}),ALL.names.forEach(function(l){var u=ALL[l];n&&n[u.getterName]&&(a[u.privateName]=n[u.getterName])}),a.featuresProgressEvents||a.manualProgressOn(),a.featuresTimeupdateEvents||a.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(l){n["native"+l+"Tracks"]===!1&&(a["featuresNative"+l+"Tracks"]=!1)}),n.nativeCaptions===!1||n.nativeTextTracks===!1?a.featuresNativeTextTracks=!1:n.nativeCaptions!==!0&&n.nativeTextTracks!==!0||(a.featuresNativeTextTracks=!0),a.featuresNativeTextTracks||a.emulateTextTracks(),a.autoRemoteTextTracks_=new ALL.text.ListClass,a.initTrackListeners(),n.nativeControlsForTouch||a.emitTapEvents(),a.constructor&&(a.name_=a.constructor.name||"Unknown Tech"),a}return inherits(t,e),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(r){this.stopTrackingProgress(),this.progressInterval=this.setInterval(bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress"),this.bufferedPercent_=n,n===1&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(r){this.duration_=this.duration()},t.prototype.buffered=function(){return createTimeRanges(0,0)},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(NORMAL.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(r){var n=this;r=[].concat(r),r.forEach(function(s){for(var a=n[s+"Tracks"]()||[],l=a.length;l--;){var u=a[l];s==="text"&&n.removeRemoteTextTrack(u),a.removeTrack(u)}})},t.prototype.cleanupAutoTextTracks=function(){for(var r=this.autoRemoteTextTracks_||[],n=r.length;n--;){var s=r[n];this.removeRemoteTextTrack(s)}},t.prototype.reset=function(){},t.prototype.error=function(r){return r!==void 0&&(this.error_=new MediaError(r),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?createTimeRanges(0,0):createTimeRanges()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var r=this;NORMAL.names.forEach(function(n){var s=NORMAL[n],a=function(){r.trigger(n+"trackchange")},l=r[s.getterName]();l.addEventListener("removetrack",a),l.addEventListener("addtrack",a),r.on("dispose",function(){l.removeEventListener("removetrack",a),l.removeEventListener("addtrack",a)})})},t.prototype.addWebVttScript_=function(){var r=this;if(!window_1.WebVTT)if(document_1.body.contains(this.el())){if(!this.options_["vtt.js"]&&isPlain(browserIndex)&&Object.keys(browserIndex).length>0)return void this.trigger("vttjsloaded");var n=document_1.createElement("script");n.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",n.onload=function(){r.trigger("vttjsloaded")},n.onerror=function(){r.trigger("vttjserror")},this.on("dispose",function(){n.onload=null,n.onerror=null}),window_1.WebVTT=!0,this.el().parentNode.appendChild(n)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var r=this,n=this.textTracks(),s=this.remoteTextTracks(),a=function(d){return n.addTrack(d.track)},l=function(d){return n.removeTrack(d.track)};s.on("addtrack",a),s.on("removetrack",l),this.addWebVttScript_();var u=function(){return r.trigger("texttrackchange")},p=function(){u();for(var d=0;d<n.length;d++){var m=n[d];m.removeEventListener("cuechange",u),m.mode==="showing"&&m.addEventListener("cuechange",u)}};p(),n.addEventListener("change",p),n.addEventListener("addtrack",p),n.addEventListener("removetrack",p),this.on("dispose",function(){s.off("addtrack",a),s.off("removetrack",l),n.removeEventListener("change",p),n.removeEventListener("addtrack",p),n.removeEventListener("removetrack",p);for(var d=0;d<n.length;d++)n[d].removeEventListener("cuechange",u)})},t.prototype.addTextTrack=function(r,n,s){if(!r)throw new Error("TextTrack kind is required but was not provided");return createTrackHelper(this,r,n,s)},t.prototype.createRemoteTextTrack=function(r){var n=mergeOptions(r,{tech:this});return new REMOTE.remoteTextEl.TrackClass(n)},t.prototype.addRemoteTextTrack=function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.createRemoteTextTrack(n);return s!==!0&&s!==!1&&(log$2.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),s=!0),this.remoteTextTrackEls().addTrackElement_(a),this.remoteTextTracks().addTrack(a.track),s!==!0&&this.ready(function(){return r.autoRemoteTextTracks_.addTrack(a.track)}),a},t.prototype.addAudioTrack=function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=mergeOptions(n,{tech:this}),l=new NORMAL.audio.TrackClass(a);return this.audioTracks_.addTrack(l),s!==!0&&this.ready(function(){return r.audioTracks_.addTrack(l)}),l},t.prototype.removeRemoteTextTrack=function(r){var n=this.remoteTextTrackEls().getTrackElementByTrack_(r);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack(r),this.autoRemoteTextTracks_.removeTrack(r)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(r,n){return t.canPlayType(r.type)},t.isTech=function(r){return r.prototype instanceof t||r instanceof t||r===t},t.registerTech=function(r,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+r+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return r=toTitleCase(r),t.techs_[r]=n,r!=="Tech"&&t.defaultTechOrder_.push(r),n},t.getTech=function(r){if(r)return r=toTitleCase(r),t.techs_&&t.techs_[r]?t.techs_[r]:window_1&&window_1.videojs&&window_1.videojs[r]?(log$2.warn("The "+r+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window_1.videojs[r]):void 0},t}(Component);ALL.names.forEach(function(e){var t=ALL[e];Tech.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Tech.prototype.featuresVolumeControl=!0,Tech.prototype.featuresMuteControl=!0,Tech.prototype.featuresFullscreenResize=!1,Tech.prototype.featuresPlaybackRate=!1,Tech.prototype.featuresProgressEvents=!1,Tech.prototype.featuresTimeupdateEvents=!1,Tech.prototype.featuresNativeTextTracks=!1,Tech.withSourceHandlers=function(e){e.registerSourceHandler=function(t,r){var n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),r===void 0&&(r=n.length),n.splice(r,0,t)},e.canPlayType=function(t){for(var r=e.sourceHandlers||[],n=void 0,s=0;s<r.length;s++)if(n=r[s].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,r){for(var n=e.sourceHandlers||[],s=0;s<n.length;s++)if(n[s].canHandleSource(t,r))return n[s];return null},e.canPlaySource=function(t,r){var n=e.selectSourceHandler(t,r);return n?n.canHandleSource(t,r):""},["seekable","duration"].forEach(function(t){var r=this[t];typeof r=="function"&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):r.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var r=e.selectSourceHandler(t,this.options_);r||(e.nativeSourceHandler?r=e.nativeSourceHandler:log$2.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),r!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=r.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Component.registerComponent("Tech",Tech),Tech.registerTech("Tech",Tech),Tech.defaultTechOrder_=[];var middlewares={},allowedGetters={buffered:1,currentTime:1,duration:1,seekable:1,played:1},allowedSetters={setCurrentTime:1},MimetypesKind={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},getMimetype=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=getFileExtension(e);return MimetypesKind[t.toLowerCase()]||""},filterSource=function e(t){if(Array.isArray(t)){var r=[];t.forEach(function(n){n=e(n),Array.isArray(n)?r=r.concat(n):isObject$1(n)&&r.push(n)}),t=r}else t=typeof t=="string"&&t.trim()?[fixSource({src:t})]:isObject$1(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?[fixSource(t)]:[];return t},fixSource=function(e){if(!e.type){var t=getMimetype(e.src);t&&(e.type=t)}return e},MediaLoader=function(e){function t(r,n,s){classCallCheck(this,t);var a=mergeOptions({createEl:!1},n),l=possibleConstructorReturn(this,e.call(this,r,a,s));if(n.playerOptions.sources&&n.playerOptions.sources.length!==0)r.src(n.playerOptions.sources);else for(var u=0,p=n.playerOptions.techOrder;u<p.length;u++){var d=toTitleCase(p[u]),m=Tech.getTech(d);if(d||(m=Component.getComponent(d)),m&&m.isSupported()){r.loadTech_(d);break}}return l}return inherits(t,e),t}(Component);Component.registerComponent("MediaLoader",MediaLoader);var ClickableComponent=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.emitTapEvents(),s.enable(),s}return inherits(t,e),t.prototype.createEl=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),r==="button"&&log$2.error("Creating a ClickableComponent with an HTML element of "+r+" is not supported; use a Button instead."),s=assign({role:"button","aria-live":"polite"},s),this.tabIndex_=n.tabIndex;var a=e.prototype.createEl.call(this,r,n,s);return this.createControlTextEl(a),a},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(r){return this.controlTextEl_=createEl("span",{className:"vjs-control-text"}),r&&r.appendChild(this.controlTextEl_),this.controlText(this.controlText_,r),this.controlTextEl_},t.prototype.controlText=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.el();if(r===void 0)return this.controlText_||"Need Text";var s=this.localize(r);this.controlText_=r,textContent(this.controlTextEl_,s),this.nonIconControl||n.setAttribute("title",s)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(r){},t.prototype.handleFocus=function(r){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(r){r.which===32||r.which===13?(r.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,r)},t.prototype.handleBlur=function(r){off(document_1,"keydown",bind(this,this.handleKeyPress))},t}(Component);Component.registerComponent("ClickableComponent",ClickableComponent);var PosterImage=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.update(),r.on("posterchange",bind(s,s.update)),s}return inherits(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var r=createEl("div",{className:"vjs-poster",tabIndex:-1});if(!BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=createEl("img");var n=this.player().height()||parseInt(this.player().el().style.height);this.player().width()||parseInt(this.player().el().style.width),this.fallbackImg_.onload=function(){this.width,this.height>n&&(this.style.maxHeight=n+"px",this.style.width="auto")};var s=createEl("div"),a=createEl("span");a.appendChild(this.fallbackImg_),s.appendChild(a),r.appendChild(s)}return r},t.prototype.update=function(r){var n=this.player().poster();this.setSrc(n),n?this.show():this.hide()},t.prototype.setSrc=function(r){if(this.fallbackImg_)this.fallbackImg_.src=r;else{var n="";r&&(n='url("'+r+'")'),this.el_.style.backgroundImage=n}},t.prototype.handleClick=function(r){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},t}(ClickableComponent);Component.registerComponent("PosterImage",PosterImage);var darkGray="#222",lightGray="#ccc",fontMap={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},TextTrackDisplay=function(e){function t(r,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this,r,n,s));return r.on("loadstart",bind(a,a.toggleDisplay)),r.on("texttrackchange",bind(a,a.updateDisplay)),r.on("loadstart",bind(a,a.preselectTrack)),r.ready(bind(a,function(){if(r.tech_&&r.tech_.featuresNativeTextTracks)return void this.hide();r.on("fullscreenchange",bind(this,this.updateDisplay));for(var l=this.options_.playerOptions.tracks||[],u=0;u<l.length;u++)this.player_.addRemoteTextTrack(l[u],!0);this.preselectTrack()})),a}return inherits(t,e),t.prototype.preselectTrack=function(){for(var r={captions:1,subtitles:1},n=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=void 0,l=void 0,u=void 0,p=0;p<n.length;p++){var d=n[p];s&&s.enabled&&s.language===d.language?d.kind===s.kind?u=d:u||(u=d):s&&!s.enabled?(u=null,a=null,l=null):d.default&&(d.kind!=="descriptions"||a?d.kind in r&&!l&&(l=d):a=d)}u?u.mode="showing":l?l.mode="showing":a&&(a.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){typeof window_1.WebVTT=="function"&&window_1.WebVTT.processCues(window_1,[],this.el_)},t.prototype.updateDisplay=function(){var r=this.player_.textTracks();this.clearDisplay();for(var n=null,s=null,a=r.length;a--;){var l=r[a];l.mode==="showing"&&(l.kind==="descriptions"?n=l:s=l)}s?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):n&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(n))},t.prototype.updateForTrack=function(r){if(typeof window_1.WebVTT=="function"&&r.activeCues){for(var n=this.player_.textTrackSettings.getValues(),s=[],a=0;a<r.activeCues.length;a++)s.push(r.activeCues[a]);window_1.WebVTT.processCues(window_1,s,this.el_);for(var l=s.length;l--;){var u=s[l];if(u){var p=u.displayState;if(n.color&&(p.firstChild.style.color=n.color),n.textOpacity&&tryUpdateStyle(p.firstChild,"color",constructColor(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(p.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&tryUpdateStyle(p.firstChild,"backgroundColor",constructColor(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?tryUpdateStyle(p,"backgroundColor",constructColor(n.windowColor,n.windowOpacity)):p.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?p.firstChild.style.textShadow="2px 2px 3px "+darkGray+", 2px 2px 4px "+darkGray+", 2px 2px 5px "+darkGray:n.edgeStyle==="raised"?p.firstChild.style.textShadow="1px 1px "+darkGray+", 2px 2px "+darkGray+", 3px 3px "+darkGray:n.edgeStyle==="depressed"?p.firstChild.style.textShadow="1px 1px "+lightGray+", 0 1px "+lightGray+", -1px -1px "+darkGray+", 0 -1px "+darkGray:n.edgeStyle==="uniform"&&(p.firstChild.style.textShadow="0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray)),n.fontPercent&&n.fontPercent!==1){var d=window_1.parseFloat(p.style.fontSize);p.style.fontSize=d*n.fontPercent+"px",p.style.height="auto",p.style.top="auto",p.style.bottom="2px"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?p.firstChild.style.fontVariant="small-caps":p.firstChild.style.fontFamily=fontMap[n.fontFamily])}}}},t}(Component);Component.registerComponent("TextTrackDisplay",TextTrackDisplay);var LoadingSpinner=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(Component);Component.registerComponent("LoadingSpinner",LoadingSpinner);var Button=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};r="button",n=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},n),s=assign({type:"button","aria-live":"polite"},s);var a=Component.prototype.createEl.call(this,r,n,s);return this.createControlTextEl(a),a},t.prototype.addChild=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.constructor.name;return log$2.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Component.prototype.addChild.call(this,r,n)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(r){r.which!==32&&r.which!==13&&e.prototype.handleKeyPress.call(this,r)},t}(ClickableComponent);Component.registerComponent("Button",Button);var BigPlayButton=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.mouseused_=!1,s.on("mousedown",s.handleMouseDown),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(r){var n=this.player_.play();if(!(this.mouseused_&&r.clientX&&r.clientY)){var s=this.player_.getChild("controlBar"),a=s&&s.getChild("playToggle");if(!a)return void this.player_.focus();var l=function(){return a.focus()};isPromise(n)?n.then(l,function(){}):this.setTimeout(l,1)}},t.prototype.handleKeyPress=function(r){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,r)},t.prototype.handleMouseDown=function(r){this.mouseused_=!0},t}(Button);BigPlayButton.prototype.controlText_="Play Video",Component.registerComponent("BigPlayButton",BigPlayButton);var CloseButton=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.controlText(n&&n.controlText||s.localize("Close")),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(r){this.trigger({type:"close",bubbles:!1})},t}(Button);Component.registerComponent("CloseButton",CloseButton);var PlayToggle=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"play",s.handlePlay),s.on(r,"pause",s.handlePause),s.on(r,"ended",s.handleEnded),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(r){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(r){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(r):this.handlePlay(r)},t.prototype.handlePlay=function(r){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(r){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(r){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Button);PlayToggle.prototype.controlText_="Play",Component.registerComponent("PlayToggle",PlayToggle);var TimeDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.throttledUpdateContent=throttle(bind(s,s.updateContent),25),s.on(r,"timeupdate",s.throttledUpdateContent),s}return inherits(t,e),t.prototype.createEl=function(r){var n=this.buildCSSClass(),s=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control"});return this.contentEl_=createEl("div",{className:n+"-display"},{"aria-live":"off"},createEl("span",{className:"vjs-control-text",textContent:this.localize(this.controlText_)})),this.updateTextNode_(),s.appendChild(this.contentEl_),s},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=document_1.createTextNode(this.formattedTime_||"0:00"),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(r){return formatTime(r)},t.prototype.updateFormattedTime_=function(r){var n=this.formatTime_(r);n!==this.formattedTime_&&(this.formattedTime_=n,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(r){},t}(Component);TimeDisplay.prototype.controlText_="Time",Component.registerComponent("TimeDisplay",TimeDisplay);var CurrentTimeDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"ended",s.handleEnded),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(r){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(n)},t.prototype.handleEnded=function(r){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(TimeDisplay);CurrentTimeDisplay.prototype.controlText_="Current Time",Component.registerComponent("CurrentTimeDisplay",CurrentTimeDisplay);var DurationDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"durationchange",s.updateContent),s.on(r,"loadedmetadata",s.throttledUpdateContent),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(r){var n=this.player_.duration();n&&this.duration_!==n&&(this.duration_=n,this.updateFormattedTime_(n))},t}(TimeDisplay);DurationDisplay.prototype.controlText_="Duration Time",Component.registerComponent("DurationDisplay",DurationDisplay);var TimeDivider=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(Component);Component.registerComponent("TimeDivider",TimeDivider);var RemainingTimeDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"durationchange",s.throttledUpdateContent),s.on(r,"ended",s.handleEnded),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(r){return"-"+e.prototype.formatTime_.call(this,r)},t.prototype.updateContent=function(r){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(r){this.player_.duration()&&this.updateFormattedTime_(0)},t}(TimeDisplay);RemainingTimeDisplay.prototype.controlText_="Remaining Time",Component.registerComponent("RemainingTimeDisplay",RemainingTimeDisplay);var LiveDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.isLoadedMetaData=!1,s.hide(),s.on(s.player(),"durationchange",s.onDurationChange),s.on(s.player(),"loadedmetadata",s.onLoadMetadata),r.on("loadnewvideo",videojs.bind(s,s.resetStatus)),s}return inherits(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),r.appendChild(this.contentEl_),r},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.resetStatus=function(){this.setStatus(!1)},t.prototype.onDurationChange=function(){this.isLoadedMetaData&&this.update()},t.prototype.onLoadMetadata=function(){this.setStatus(!0),this.update()},t.prototype.setStatus=function(r){this.isLoadedMetaData=r},t.prototype.update=function(){this.player().duration()===1/0?this.show():this.hide()},t}(Component);Component.registerComponent("LiveDisplay",LiveDisplay);var Slider=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.bar=s.getChild(s.options_.barName),s.vertical(!!s.options_.vertical),s.enable(),s}return inherits(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var r=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(r,"mousemove",this.handleMouseMove),this.off(r,"mouseup",this.handleMouseUp),this.off(r,"touchmove",this.handleMouseMove),this.off(r,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n.className=n.className+" vjs-slider",n=assign({tabIndex:0},n),s=assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},s),e.prototype.createEl.call(this,r,n,s)},t.prototype.handleMouseDown=function(r){var n=this.bar.el_.ownerDocument;r.preventDefault(),blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchmove",this.handleMouseMove),this.on(n,"touchend",this.handleMouseUp),this.handleMouseMove(r)},t.prototype.handleMouseMove=function(r){},t.prototype.handleMouseUp=function(){var r=this.bar.el_.ownerDocument;unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(r,"mousemove",this.handleMouseMove),this.off(r,"mouseup",this.handleMouseUp),this.off(r,"touchmove",this.handleMouseMove),this.off(r,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var r=this.getPercent(),n=this.bar;if(n){(typeof r!="number"||r!==r||r<0||r===1/0)&&(r=0);var s=(100*r).toFixed(2)+"%",a=n.el().style;return this.vertical()?a.height=s:a.width=s,r}}},t.prototype.calculateDistance=function(r){var n=getPointerPosition(this.el_,r);return this.vertical()?n.y:n.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(r){r.which===37||r.which===40?(r.preventDefault(),this.stepBack()):r.which!==38&&r.which!==39||(r.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(r){r.stopImmediatePropagation(),r.preventDefault()},t.prototype.vertical=function(r){if(r===void 0)return this.vertical_||!1;this.vertical_=!!r,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Component);Component.registerComponent("Slider",Slider);var LoadProgressBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.partEls_=[],s.on(r,"progress",s.update),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(r){var n=this.player_.buffered(),s=this.player_.duration(),a=this.player_.bufferedEnd(),l=this.partEls_,u=function(y,f){var _=y/f||0;return 100*(_>=1?1:_)+"%"};this.el_.style.width=u(a,s);for(var p=0;p<n.length;p++){var d=n.start(p),m=n.end(p),b=l[p];b||(b=this.el_.appendChild(createEl()),l[p]=b),b.style.left=u(d,a),b.style.width=u(m-d,a)}for(var g=l.length;g>n.length;g--)this.el_.removeChild(l[g-1]);l.length=n.length},t}(Component);Component.registerComponent("LoadProgressBar",LoadProgressBar);var TimeTooltip=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(r,n,s){var a=getBoundingClientRect(this.el_),l=getBoundingClientRect(this.player_.el()),u=r.width*n;if(l&&a){var p=r.left-l.left+u,d=r.width-u+(l.right-r.right),m=a.width/2;p<m?m+=m-p:d<m&&(m=d),m<0?m=0:m>a.width&&(m=a.width),this.el_.style.right="-"+m+"px",textContent(this.el_,s)}},t}(Component);Component.registerComponent("TimeTooltip",TimeTooltip);var PlayProgressBar=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(r,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.scrubbing()?s.player_.getCache().currentTime:s.player_.currentTime(),l=formatTime(a,s.player_.duration()),u=s.getChild("timeTooltip");u&&u.update(r,n,l)})},t}(Component);PlayProgressBar.prototype.options_={children:[]},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||PlayProgressBar.prototype.options_.children.push("timeTooltip"),Component.registerComponent("PlayProgressBar",PlayProgressBar);var MouseTimeDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.update=throttle(bind(s,s.update),25),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(r,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.duration(),l=formatTime(n*a,a);s.el_.style.left=r.width*n+"px",s.getChild("timeTooltip").update(r,n,l)})},t}(Component);MouseTimeDisplay.prototype.options_={children:["timeTooltip"]},Component.registerComponent("MouseTimeDisplay",MouseTimeDisplay);var STEP_SECONDS=5,UPDATE_REFRESH_INTERVAL=30,SeekBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.update=throttle(bind(s,s.update),UPDATE_REFRESH_INTERVAL),s.on(r,"timeupdate",s.update),s.on(r,"ended",s.handleEnded),s.updateInterval=null,s.on(r,["playing"],function(){s.clearInterval(s.updateInterval),s.updateInterval=s.setInterval(function(){s.requestAnimationFrame(function(){s.update()})},UPDATE_REFRESH_INTERVAL)}),s.on(r,["ended","pause","waiting"],function(){s.clearInterval(s.updateInterval)}),s.on(r,["timeupdate","ended"],s.update),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(r,n){var s=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[formatTime(r,s),formatTime(s,s)],"{1} of {2}")),this.bar.update(getBoundingClientRect(this.el_),n)},t.prototype.update=function(r){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(r){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var r=this.getCurrentTime_()/this.player_.duration();return r>=1?1:r},t.prototype.handleMouseDown=function(r){isSingleLeftClick(r)&&(this.player_.trigger("beforeseek"),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,r))},t.prototype.handleMouseMove=function(r){if(isSingleLeftClick(r)){var n=this.calculateDistance(r)*this.player_.duration();n===this.player_.duration()&&(n-=.1),this.player_.currentTime(n)}},t.prototype.enable=function(){e.prototype.enable.call(this);var r=this.getChild("mouseTimeDisplay");r&&r.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var r=this.getChild("mouseTimeDisplay");r&&r.hide()},t.prototype.handleMouseUp=function(r){e.prototype.handleMouseUp.call(this,r),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&silencePromise(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+STEP_SECONDS)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-STEP_SECONDS)},t.prototype.handleAction=function(r){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(r){r.which===32||r.which===13?(r.preventDefault(),this.handleAction(r)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,r)},t}(Slider);SeekBar.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||SeekBar.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),SeekBar.prototype.playerEvent="timeupdate",Component.registerComponent("SeekBar",SeekBar);var ProgressControl=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.handleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.throttledHandleMouseSeek=throttle(bind(s,s.handleMouseSeek),25),s.enable(),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(r){var n=this.getChild("seekBar"),s=n.getChild("mouseTimeDisplay"),a=n.el(),l=getBoundingClientRect(a),u=getPointerPosition(a,r).x;u>1?u=1:u<0&&(u=0),s&&s.update(l,u)},t.prototype.handleMouseSeek=function(r){this.getChild("seekBar").handleMouseMove(r)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach(function(r){return r.disable&&r.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach(function(r){return r.enable&&r.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(r){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(r){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseSeek),this.off(n,"touchmove",this.throttledHandleMouseSeek),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t}(Component);ProgressControl.prototype.options_={children:["seekBar"]},Component.registerComponent("ProgressControl",ProgressControl);var FullscreenToggle=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"fullscreenchange",s.handleFullscreenChange),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(r){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(r){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Button);FullscreenToggle.prototype.controlText_="Fullscreen",Component.registerComponent("FullscreenToggle",FullscreenToggle);var checkVolumeSupport=function(e,t){!t.tech_||t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_&&t.tech_.featuresVolumeControl&&e.addClass("enable-volume-control"):e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_.featuresVolumeControl&&(e.removeClass("vjs-hidden"),e.addClass("enable-volume-control")):e.addClass("vjs-hidden")})},VolumeLevel=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(Component);Component.registerComponent("VolumeLevel",VolumeLevel);var VolumeBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on("slideractive",s.updateLastVolume_),s.on(r,"volumechange",s.updateARIAAttributes),r.ready(function(){return s.updateARIAAttributes()}),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(r){isSingleLeftClick(r)&&e.prototype.handleMouseDown.call(this,r)},t.prototype.handleMouseMove=function(r){isSingleLeftClick(r)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(r)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(r){var n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var r=this,n=this.player_.volume();this.one("sliderinactive",function(){r.player_.volume()===0&&r.player_.lastVolume_(n)})},t}(Slider);VolumeBar.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},VolumeBar.prototype.playerEvent="volumechange",Component.registerComponent("VolumeBar",VolumeBar);var VolumeControl=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||isPlain(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var s=possibleConstructorReturn(this,e.call(this,r,n));return checkVolumeSupport(s,r),s.throttledHandleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.on("mousedown",s.handleMouseDown),s.on("touchstart",s.handleMouseDown),s.on(s.volumeBar,["focus","slideractive"],function(){s.volumeBar.addClass("vjs-slider-active"),s.addClass("vjs-slider-active"),s.trigger("slideractive")}),s.on(s.volumeBar,["blur","sliderinactive"],function(){s.volumeBar.removeClass("vjs-slider-active"),s.removeClass("vjs-slider-active"),s.trigger("sliderinactive")}),s}return inherits(t,e),t.prototype.createEl=function(){var r="vjs-volume-horizontal";return this.options_.vertical&&(r="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+r})},t.prototype.handleMouseDown=function(r){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(r){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(r){this.volumeBar.handleMouseMove(r)},t}(Component);VolumeControl.prototype.options_={children:["volumeBar"]},Component.registerComponent("VolumeControl",VolumeControl);var MuteToggle=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return checkVolumeSupport(s,r),s.on(r,["loadstart","volumechange"],s.update),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(r){var n=this.player_.volume(),s=this.player_.lastVolume_();if(n===0){var a=s<.1?.1:s;this.player_.volume(a),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(r){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var r=this.player_.volume(),n=3;r===0||this.player_.muted()?n=0:r<.33?n=1:r<.67&&(n=2);for(var s=0;s<4;s++)removeClass(this.el_,"vjs-vol-"+s);addClass(this.el_,"vjs-vol-"+n)},t.prototype.updateControlText_=function(){var r=this.player_.muted()||this.player_.volume()===0,n=r?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)},t}(Button);MuteToggle.prototype.controlText_="Mute",Component.registerComponent("MuteToggle",MuteToggle);var VolumePanel=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||isPlain(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var s=possibleConstructorReturn(this,e.call(this,r,n));return checkVolumeSupport(s,r),s.on(s.volumeControl,["slideractive"],s.sliderActive_),s.on(s.muteToggle,"focus",s.sliderActive_),s.on(s.volumeControl,["sliderinactive"],s.sliderInactive_),s.on(s.muteToggle,"blur",s.sliderInactive_),s}return inherits(t,e),t.prototype.sliderActive_=function(){IS_ANDROID||IS_IOS||this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){IS_ANDROID||IS_IOS||this.removeClass("vjs-slider-active")},t.prototype.createEl=function(){var r="vjs-volume-panel-horizontal";return this.options_.inline||(r="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+r})},t}(Component);VolumePanel.prototype.options_={children:["muteToggle","volumeControl"]},Component.registerComponent("VolumePanel",VolumePanel);var Menu=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return n&&(s.menuButton_=n.menuButton),s.focusedChild_=-1,s.on("keydown",s.handleKeyPress),s}return inherits(t,e),t.prototype.addItem=function(r){this.addChild(r),r.on("click",bind(this,function(n){this.menuButton_&&(this.menuButton_.unpressButton(),r.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus())}))},t.prototype.createEl=function(){var r=this.options_.contentElType||"ul";this.contentEl_=createEl(r,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),on(n,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(r){r.which===37||r.which===40?(r.preventDefault(),this.stepForward()):r.which!==38&&r.which!==39||(r.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var r=0;this.focusedChild_!==void 0&&(r=this.focusedChild_+1),this.focus(r)},t.prototype.stepBack=function(){var r=0;this.focusedChild_!==void 0&&(r=this.focusedChild_-1),this.focus(r)},t.prototype.focus=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=this.children().slice();n.length&&n[0].className&&/vjs-menu-title/.test(n[0].className)&&n.shift(),n.length>0&&(r<0?r=0:r>=n.length&&(r=n.length-1),this.focusedChild_=r,n[r].el_.focus())},t}(Component);Component.registerComponent("Menu",Menu);var MenuButton=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));s.menuButton_=new Button(r,n),s.menuButton_.controlText(s.controlText_),s.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Button.prototype.buildCSSClass();return s.menuButton_.el_.className=s.buildCSSClass()+" "+a,s.menuButton_.removeClass("vjs-control"),s.addChild(s.menuButton_),s.update(),s.enabled_=!0,s.on(s.menuButton_,"tap",s.handleClick),s.on(s.menuButton_,"click",s.handleClick),s.on(s.menuButton_,"focus",s.handleFocus),s.on(s.menuButton_,"blur",s.handleBlur),s.on("keydown",s.handleSubmenuKeyPress),s}return inherits(t,e),t.prototype.update=function(){var r=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=r,this.addChild(r),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var r=new Menu(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var n=createEl("li",{className:"vjs-menu-title",innerHTML:toTitleCase(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,r.children_.unshift(n),prependTo(n,r.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)r.addItem(this.items[s]);return r},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var r="vjs-menu-button";return this.options_.inline===!0?r+="-inline":r+="-popup","vjs-menu-button "+r+" "+Button.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var r="vjs-menu-button";return this.options_.inline===!0?r+="-inline":r+="-popup","vjs-menu-button "+r+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(r,n)},t.prototype.handleClick=function(r){this.one(this.menu.contentEl(),"mouseleave",bind(this,function(n){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleBlur=function(){off(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(r){r.which===27||r.which===9?(this.buttonPressed_&&this.unpressButton(),r.which!==9&&(r.preventDefault(),this.menuButton_.el_.focus())):r.which!==38&&r.which!==40||this.buttonPressed_||(this.pressButton(),r.preventDefault())},t.prototype.handleSubmenuKeyPress=function(r){r.which!==27&&r.which!==9||(this.buttonPressed_&&this.unpressButton(),r.which!==9&&(r.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),IS_IOS&&isInFrame())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Component);Component.registerComponent("MenuButton",MenuButton);var TrackButton=function(e){function t(r,n){classCallCheck(this,t);var s=n.tracks,a=possibleConstructorReturn(this,e.call(this,r,n));if(a.items.length<=1&&a.hide(),!s)return possibleConstructorReturn(a);var l=bind(a,a.update);return s.addEventListener("removetrack",l),s.addEventListener("addtrack",l),a.player_.on("ready",l),a.player_.on("dispose",function(){s.removeEventListener("removetrack",l),s.removeEventListener("addtrack",l)}),a}return inherits(t,e),t}(MenuButton);Component.registerComponent("TrackButton",TrackButton);var MenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.selectable=n.selectable,s.selected(n.selected),s.selectable?s.el_.setAttribute("role","menuitemcheckbox"):s.el_.setAttribute("role","menuitem"),s}return inherits(t,e),t.prototype.createEl=function(r,n,s){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",assign({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),s)},t.prototype.handleClick=function(r){this.selected(!0)},t.prototype.selected=function(r){this.selectable&&(r?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText("")))},t}(ClickableComponent);Component.registerComponent("MenuItem",MenuItem);var TextTrackMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=n.track,a=r.textTracks();n.label=s.label||s.language||"Unknown",n.selected=s.mode==="showing";var l=possibleConstructorReturn(this,e.call(this,r,n));l.track=s;var u=function(){for(var m=arguments.length,b=Array(m),g=0;g<m;g++)b[g]=arguments[g];l.handleTracksChange.apply(l,b)},p=function(){for(var m=arguments.length,b=Array(m),g=0;g<m;g++)b[g]=arguments[g];l.handleSelectedLanguageChange.apply(l,b)};if(r.on(["loadstart","texttrackchange"],u),a.addEventListener("change",u),a.addEventListener("selectedlanguagechange",p),l.on("dispose",function(){r.off(["loadstart","texttrackchange"],u),a.removeEventListener("change",u),a.removeEventListener("selectedlanguagechange",p)}),a.onchange===void 0){var d=void 0;l.on(["tap","click"],function(){if(_typeof(window_1.Event)!=="object")try{d=new window_1.Event("change")}catch(m){}d||(d=document_1.createEvent("Event"),d.initEvent("change",!0,!0)),a.dispatchEvent(d)})}return l.handleTracksChange(),l}return inherits(t,e),t.prototype.handleClick=function(r){var n=this.track.kind,s=this.track.kinds,a=this.player_.textTracks();if(s||(s=[n]),e.prototype.handleClick.call(this,r),a)for(var l=0;l<a.length;l++){var u=a[l];u===this.track&&s.indexOf(u.kind)>-1?u.mode!=="showing"&&(u.mode="showing"):u.mode!=="disabled"&&(u.mode="disabled")}},t.prototype.handleTracksChange=function(r){this.selected(this.track.mode==="showing")},t.prototype.handleSelectedLanguageChange=function(r){if(this.track.mode==="showing"){var n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(MenuItem);Component.registerComponent("TextTrackMenuItem",TextTrackMenuItem);var OffTextTrackMenuItem=function(e){function t(r,n){return classCallCheck(this,t),n.track={player:r,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.handleTracksChange=function(r){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a<l;a++){var u=n[a];if(this.options_.kinds.indexOf(u.kind)>-1&&u.mode==="showing"){s=!1;break}}this.selected(s)},t.prototype.handleSelectedLanguageChange=function(r){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a<l;a++){var u=n[a];if(["captions","descriptions","subtitles"].indexOf(u.kind)>-1&&u.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(TextTrackMenuItem);Component.registerComponent("OffTextTrackMenuItem",OffTextTrackMenuItem);var TextTrackButton=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=r.textTracks(),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:TextTrackMenuItem,s=void 0;this.label_&&(s=this.label_+" off"),r.push(new OffTextTrackMenuItem(this.player_,{kinds:this.kinds_,kind:this.kind_,label:s})),this.hideThreshold_+=1;var a=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var l=0;l<a.length;l++){var u=a[l];if(this.kinds_.indexOf(u.kind)>-1){var p=new n(this.player_,{track:u,selectable:!0});p.addClass("vjs-"+u.kind+"-menu-item"),r.push(p)}}return r},t}(TrackButton);Component.registerComponent("TextTrackButton",TextTrackButton);var ChaptersTrackMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=n.track,a=n.cue,l=r.currentTime();n.selectable=!0,n.label=a.text,n.selected=a.startTime<=l&&l<a.endTime;var u=possibleConstructorReturn(this,e.call(this,r,n));return u.track=s,u.cue=a,s.addEventListener("cuechange",bind(u,u.update)),u}return inherits(t,e),t.prototype.handleClick=function(r){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(r){var n=this.cue,s=this.player_.currentTime();this.selected(n.startTime<=s&&s<n.endTime)},t}(MenuItem);Component.registerComponent("ChaptersTrackMenuItem",ChaptersTrackMenuItem);var ChaptersButton=function(e){function t(r,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n,s))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(r){this.track_&&(!r||r.type!=="addtrack"&&r.type!=="removetrack")||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(r){if(this.track_!==r){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=r,this.track_){this.track_.mode="hidden";var s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var r=this.player_.textTracks()||[],n=r.length-1;n>=0;n--){var s=r[n];if(s.kind===this.kind_)return s}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(toTitleCase(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var r=[];if(!this.track_)return r;var n=this.track_.cues;if(!n)return r;for(var s=0,a=n.length;s<a;s++){var l=n[s],u=new ChaptersTrackMenuItem(this.player_,{track:this.track_,cue:l});r.push(u)}return r},t}(TextTrackButton);ChaptersButton.prototype.kind_="chapters",ChaptersButton.prototype.controlText_="Chapters",Component.registerComponent("ChaptersButton",ChaptersButton);var DescriptionsButton=function(e){function t(r,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this,r,n,s)),l=r.textTracks(),u=bind(a,a.handleTracksChange);return l.addEventListener("change",u),a.on("dispose",function(){l.removeEventListener("change",u)}),a}return inherits(t,e),t.prototype.handleTracksChange=function(r){for(var n=this.player().textTracks(),s=!1,a=0,l=n.length;a<l;a++){var u=n[a];if(u.kind!==this.kind_&&u.mode==="showing"){s=!0;break}}s?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(TextTrackButton);DescriptionsButton.prototype.kind_="descriptions",DescriptionsButton.prototype.controlText_="Descriptions",Component.registerComponent("DescriptionsButton",DescriptionsButton);var SubtitlesButton=function(e){function t(r,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n,s))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(TextTrackButton);SubtitlesButton.prototype.kind_="subtitles",SubtitlesButton.prototype.controlText_="Subtitles",Component.registerComponent("SubtitlesButton",SubtitlesButton);var CaptionSettingsMenuItem=function(e){function t(r,n){classCallCheck(this,t),n.track={player:r,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem";var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("vjs-texttrack-settings"),s.controlText(", opens "+n.kind+" settings dialog"),s}return inherits(t,e),t.prototype.handleClick=function(r){this.player().getChild("textTrackSettings").open()},t}(TextTrackMenuItem);Component.registerComponent("CaptionSettingsMenuItem",CaptionSettingsMenuItem);var CaptionsButton=function(e){function t(r,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n,s))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var r=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(r.push(new CaptionSettingsMenuItem(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,r)},t}(TextTrackButton);CaptionsButton.prototype.kind_="captions",CaptionsButton.prototype.controlText_="Captions",Component.registerComponent("CaptionsButton",CaptionsButton);var SubsCapsMenuItem=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(r,n,s){var a='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return this.options_.track.kind==="captions"&&(a+=`
        <span aria-hidden="true" class="vjs-icon-placeholder"></span>
        <span class="vjs-control-text"> `+this.localize("Captions")+`</span>
      `),a+="</span>",e.prototype.createEl.call(this,r,assign({innerHTML:a},n),s)},t}(TextTrackMenuItem);Component.registerComponent("SubsCapsMenuItem",SubsCapsMenuItem);var SubsCapsButton=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(s.player_.language_)>-1&&(s.label_="captions"),s.menuButton_.controlText(toTitleCase(s.label_)),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var r=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(r.push(new CaptionSettingsMenuItem(this.player_,{kind:this.label_})),this.hideThreshold_+=1),r=e.prototype.createItems.call(this,r,SubsCapsMenuItem)},t}(TextTrackButton);SubsCapsButton.prototype.kinds_=["captions","subtitles"],SubsCapsButton.prototype.controlText_="Subtitles",Component.registerComponent("SubsCapsButton",SubsCapsButton);var AudioTrackMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=n.track,a=r.audioTracks();n.label=s.label||s.language||"Unknown",n.selected=s.enabled;var l=possibleConstructorReturn(this,e.call(this,r,n));l.track=s;var u=function(){for(var p=arguments.length,d=Array(p),m=0;m<p;m++)d[m]=arguments[m];l.handleTracksChange.apply(l,d)};return l.changeHandler=u,a.addEventListener("change",u),a.addEventListener("enabledchange",u),l.on("dispose",function(){a.removeEventListener("change",u),a.removeEventListener("enabledchange",u)}),l}return inherits(t,e),t.prototype.handleClick=function(r){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,r),this.player_.tech_.hlsProvider.hls.audioTrack=this.track.id;for(var s=0;s<n.length;s++){var a=n[s];a.enabled=a===this.track}},t.prototype.handleTracksChange=function(r){this.selected(this.track.enabled)},t}(MenuItem);Component.registerComponent("AudioTrackMenuItem",AudioTrackMenuItem);var AudioTrackButton=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=r.audioTracks(),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.hideThreshold_=1;for(var n=this.player_.audioTracks(),s=0;s<n.length;s++){var a=n[s];r.push(new AudioTrackMenuItem(this.player_,{track:a,selectable:!0}))}return r},t}(TrackButton);AudioTrackButton.prototype.controlText_="Audio Track",Component.registerComponent("AudioTrackButton",AudioTrackButton);var PlaybackRateMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=n.rate,a=parseFloat(s,10);n.label=s,n.selected=a===1,n.selectable=!0;var l=possibleConstructorReturn(this,e.call(this,r,n));return l.label=s,l.rate=a,l.on(r,"ratechange",l.update),l}return inherits(t,e),t.prototype.handleClick=function(r){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(r){this.selected(this.player().playbackRate()===this.rate)},t}(MenuItem);PlaybackRateMenuItem.prototype.contentElType="button",Component.registerComponent("PlaybackRateMenuItem",PlaybackRateMenuItem);var PlaybackRateMenuButton=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.updateVisibility(),s.updateLabel(),s.on(r,"loadstart",s.updateVisibility),s.on(r,"ratechange",s.updateLabel),s}return inherits(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this);return this.labelEl_=createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),r.appendChild(this.labelEl_),r},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var r=new Menu(this.player()),n=this.playbackRates();if(n)for(var s=n.length-1;s>=0;s--)r.addChild(new PlaybackRateMenuItem(this.player(),{rate:n[s]+"x"}));return r},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(r){for(var n=this.player().playbackRate(),s=this.playbackRates(),a=s[0],l=0;l<s.length;l++)if(s[l]>n){a=s[l];break}this.player().playbackRate(a)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(r){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(r){var n=this.player().playbackRate();if(n===1.1)return!1;this.playbackRateSupported()&&(this.labelEl_.innerHTML=n+"x")},t}(MenuButton);PlaybackRateMenuButton.prototype.controlText_="Playback Rate",Component.registerComponent("PlaybackRateMenuButton",PlaybackRateMenuButton);var Spacer=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(Component);Component.registerComponent("Spacer",Spacer);var CustomControlSpacer=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var r=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return r.innerHTML=" ",r},t}(Spacer);Component.registerComponent("CustomControlSpacer",CustomControlSpacer);var ControlBar=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(Component);if(ControlBar.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","audioTrackButton","fullscreenToggle"]},IS_ENABLED_MSE&&!IS_SAFARI){var controlChildren=ControlBar.prototype.options_.children;controlChildren.splice(controlChildren.length-2,0,"subsCapsButton")}Component.registerComponent("ControlBar",ControlBar);var ErrorDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"error",s.open),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var r=this.player().error();return r?this.localize(r.message):""},t}(ModalDialog);ErrorDisplay.prototype.options_=mergeOptions(ModalDialog.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Component.registerComponent("ErrorDisplay",ErrorDisplay);var LOCAL_STORAGE_KEY="vjs-text-track-settings",COLOR_BLACK=["#000","Black"],COLOR_BLUE=["#00F","Blue"],COLOR_CYAN=["#0FF","Cyan"],COLOR_GREEN=["#0F0","Green"],COLOR_MAGENTA=["#F0F","Magenta"],COLOR_RED=["#F00","Red"],COLOR_WHITE=["#FFF","White"],COLOR_YELLOW=["#FF0","Yellow"],OPACITY_OPAQUE=["1","Opaque"],OPACITY_SEMI=["0.5","Semi-Transparent"],OPACITY_TRANS=["0","Transparent"],selectConfigs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[COLOR_BLACK,COLOR_WHITE,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI,OPACITY_TRANS]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[COLOR_WHITE,COLOR_BLACK,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return e==="1.00"?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[OPACITY_TRANS,OPACITY_SEMI,OPACITY_OPAQUE]}};selectConfigs.windowColor.options=selectConfigs.backgroundColor.options;var TextTrackSettings=function(e){function t(r,n){classCallCheck(this,t),n.temporary=!1;var s=possibleConstructorReturn(this,e.call(this,r,n));return s.updateDisplay=bind(s,s.updateDisplay),s.fill(),s.hasBeenOpened_=s.hasBeenFilled_=!0,s.endDialog=createEl("p",{className:"vjs-control-text",textContent:s.localize("End of dialog window.")}),s.el().appendChild(s.endDialog),s.setDefaults(),n.persistTextTrackSettings===void 0&&(s.options_.persistTextTrackSettings=s.options_.playerOptions.persistTextTrackSettings),s.on(s.$(".vjs-done-button"),"click",function(){s.saveSettings(),s.close()}),s.on(s.$(".vjs-default-button"),"click",function(){s.setDefaults(),s.updateDisplay()}),each(selectConfigs,function(a){s.on(s.$(a.selector),"change",s.updateDisplay)}),s.options_.persistTextTrackSettings&&s.restoreSettings(),s}return inherits(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=function(r){var n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"label",l=selectConfigs[r],u=l.id.replace("%s",this.id_);return["<"+a+' id="'+u+'" class="'+(a==="label"?"vjs-label":"")+'">',this.localize(l.label),"</"+a+">",'<select aria-labelledby="'+(s!==""?s+" ":"")+u+'">'].concat(l.options.map(function(p){var d=u+"-"+p[1];return['<option id="'+d+'" value="'+p[0]+'" ','aria-labelledby="'+(s!==""?s+" ":"")+u+" "+d+'">',n.localize(p[1]),"</option>"].join("")})).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var r="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+r+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",r),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",r),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var r="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+r+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",r),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",r),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var r="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+r+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",r),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",r),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return createEl("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return createEl("div",{className:'vjs-track-settings-font">',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.prototype.createElControls_=function(){var r=this.localize("restore all settings to the default values");return createEl("div",{className:"vjs-track-settings-controls",innerHTML:['<button class="vjs-default-button" title="'+r+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+r+"</span>","</button>",'<button class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var r=this;return reduce(selectConfigs,function(n,s,a){var l=getSelectedOptionValue(r.$(s.selector),s.parser);return l!==void 0&&(n[a]=l),n},{})},t.prototype.setValues=function(r){var n=this;each(selectConfigs,function(s,a){setSelectedOption(n.$(s.selector),r[a],s.parser)})},t.prototype.setDefaults=function(){var r=this;each(selectConfigs,function(n){var s=n.hasOwnProperty("default")?n.default:0;r.$(n.selector).selectedIndex=s})},t.prototype.restoreSettings=function(){var r=void 0;try{r=JSON.parse(window_1.localStorage.getItem(LOCAL_STORAGE_KEY))}catch(n){log$2.warn(n)}r&&this.setValues(r)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var r=this.getValues();try{Object.keys(r).length?window_1.localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify(r)):window_1.localStorage.removeItem(LOCAL_STORAGE_KEY)}catch(n){log$2.warn(n)}}},t.prototype.updateDisplay=function(){var r=this.player_.getChild("textTrackDisplay");r&&r.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(document_1,"keydown",this.handleKeyDown);var r=this.player_.controlBar,n=r&&r.subsCapsButton,s=r&&r.captionsButton;n?n.focus():s&&s.focus()},t}(ModalDialog);Component.registerComponent("TextTrackSettings",TextTrackSettings);var _templateObject$2=taggedTemplateLiteralLoose([`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
            This may prevent text tracks from loading.`],[`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
            This may prevent text tracks from loading.`]),Html5=function(e){function t(r,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this,r,n,s)),l=n.source,u=!1;if(l&&(a.el_.currentSrc!==l.src||n.tag&&n.tag.initNetworkState_===3)?a.setSource(l):a.handleLateInit_(a.el_),a.el_.hasChildNodes()){for(var p=a.el_.childNodes,d=p.length,m=[];d--;){var b=p[d];b.nodeName.toLowerCase()==="track"&&(a.featuresNativeTextTracks?(a.remoteTextTrackEls().addTrackElement_(b),a.remoteTextTracks().addTrack(b.track),a.textTracks().addTrack(b.track),u||a.el_.hasAttribute("crossorigin")||!isCrossOrigin(b.src)||(u=!0)):m.push(b))}for(var g=0;g<m.length;g++)a.el_.removeChild(m[g])}return a.proxyNativeTracks_(),a.featuresNativeTextTracks&&u&&log$2.warn(tsml(_templateObject$2)),a.restoreMetadataTracksInIOSNativePlayer_(),(TOUCH_ENABLED||IS_IPHONE||IS_NATIVE_ANDROID)&&n.nativeControlsForTouch===!0&&a.setControls(!0),a.proxyWebkitFullscreen_(),a.triggerReady(),a}return inherits(t,e),t.prototype.dispose=function(){t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var r=this.textTracks(),n=void 0,s=function(){n=[];for(var l=0;l<r.length;l++){var u=r[l];u.kind==="metadata"&&n.push({track:u,storedMode:u.mode})}};s(),r.addEventListener("change",s),this.on("dispose",function(){return r.removeEventListener("change",s)});var a=function l(){for(var u=0;u<n.length;u++){var p=n[u];p.track.mode==="disabled"&&p.track.mode!==p.storedMode&&(p.track.mode=p.storedMode)}r.removeEventListener("change",l)};this.on("webkitbeginfullscreen",function(){r.removeEventListener("change",s),r.removeEventListener("change",a),r.addEventListener("change",a)}),this.on("webkitendfullscreen",function(){r.removeEventListener("change",s),r.addEventListener("change",s),r.removeEventListener("change",a)})},t.prototype.proxyNativeTracks_=function(){var r=this;NORMAL.names.forEach(function(n){var s=NORMAL[n],a=r.el()[s.getterName],l=r[s.getterName]();if(r["featuresNative"+s.capitalName+"Tracks"]&&a&&a.addEventListener){var u={change:function(d){l.trigger({type:"change",target:l,currentTarget:l,srcElement:l})},addtrack:function(d){l.addTrack(d.track)},removetrack:function(d){l.removeTrack(d.track)}},p=function(){for(var d=[],m=0;m<l.length;m++){for(var b=!1,g=0;g<a.length;g++)if(a[g]===l[m]){b=!0;break}b||d.push(l[m])}for(;d.length;)l.removeTrack(d.shift())};Object.keys(u).forEach(function(d){var m=u[d];a.addEventListener(d,m),r.on("dispose",function(b){return a.removeEventListener(d,m)})}),r.on("loadstart",p),r.on("dispose",function(d){return r.off("loadstart",p)})}})},t.prototype.createEl=function(){var r=this.options_.tag;if(!r||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(r){var n=r.cloneNode(!0);r.parentNode&&r.parentNode.insertBefore(n,r),t.disposeMediaElement(r),r=n}else{r=document_1.createElement("video");var s=this.options_.tag&&getAttributes(this.options_.tag),a=mergeOptions({},s);TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete a.controls,setAttributes(r,assign(a,{id:this.options_.techId,class:"vjs-tech"}))}r.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&setAttribute(r,"preload",this.options_.preload);for(var l=["loop","muted","playsinline","autoplay"],u=0;u<l.length;u++){var p=l[u],d=this.options_[p];d!==void 0&&(d?setAttribute(r,p,p):removeAttribute(r,p),r[p]=d)}return r},t.prototype.handleLateInit_=function(r){if(r.networkState!==0&&r.networkState!==3){if(r.readyState===0){var n=!1,s=function(){n=!0};this.on("loadstart",s);var a=function(){n||this.trigger("loadstart")};return this.on("loadedmetadata",a),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",a),n||this.trigger("loadstart")})}var l=["loadstart"];l.push("loadedmetadata"),r.readyState>=2&&l.push("loadeddata"),r.readyState>=3&&l.push("canplay"),r.readyState>=4&&l.push("canplaythrough"),this.ready(function(){l.forEach(function(u){this.trigger(u)},this)})}},t.prototype.setCurrentTime=function(r){try{this.el_.currentTime=r}catch(n){log$2(n,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var r=this;if(this.el_.duration===1/0&&IS_ANDROID&&IS_CHROME&&this.el_.currentTime===0){var n=function s(){r.el_.currentTime>0&&(r.el_.duration===1/0&&r.trigger("durationchange"),r.off("timeupdate",s))};return this.on("timeupdate",n),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var r=this;if("webkitDisplayingFullscreen"in this.el_){var n=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",n),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){r.off("webkitbeginfullscreen",s),r.off("webkitendfullscreen",n)})}},t.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var r=window_1.navigator&&window_1.navigator.userAgent||"";if(/Android/.test(r)||!/Chrome|Mac OS X 10.5/.test(r))return!0}return!1},t.prototype.enterFullScreen=function(){var r=this.el_;r.paused&&r.networkState<=r.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){r.pause(),r.webkitEnterFullScreen()},0)):r.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(r){if(r===void 0)return this.el_.src;this.setSrc(r)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(r){this.el_.controls=!!r},t.prototype.addTextTrack=function(r,n,s){return this.featuresNativeTextTracks?this.el_.addTextTrack(r,n,s):e.prototype.addTextTrack.call(this,r,n,s)},t.prototype.createRemoteTextTrack=function(r){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,r);var n=document_1.createElement("track");return r.kind&&(n.kind=r.kind),r.label&&(n.label=r.label),(r.language||r.srclang)&&(n.srclang=r.language||r.srclang),r.default&&(n.default=r.default),r.id&&(n.id=r.id),r.src&&(n.src=r.src),n},t.prototype.addRemoteTextTrack=function(r,n){var s=e.prototype.addRemoteTextTrack.call(this,r,n);return this.featuresNativeTextTracks&&this.el().appendChild(s),s},t.prototype.removeRemoteTextTrack=function(r){if(e.prototype.removeRemoteTextTrack.call(this,r),this.featuresNativeTextTracks)for(var n=this.$$("track"),s=n.length;s--;)r!==n[s]&&r!==n[s].track||this.el().removeChild(n[s])},t.prototype.getVideoPlaybackQuality=function(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();var r={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(r.droppedVideoFrames=this.el().webkitDroppedFrameCount,r.totalVideoFrames=this.el().webkitDecodedFrameCount),window_1.performance&&typeof window_1.performance.now=="function"?r.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(r.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),r},t}(Tech);if(isReal()){Html5.TEST_VID=document_1.createElement("video");var track=document_1.createElement("track");track.kind="captions",track.srclang="en",track.label="English",Html5.TEST_VID.appendChild(track)}Html5.isSupported=function(){try{Html5.TEST_VID.volume=.5}catch(e){return!1}return!(!Html5.TEST_VID||!Html5.TEST_VID.canPlayType)},Html5.canPlayType=function(e){return Html5.TEST_VID.canPlayType(e)},Html5.canPlaySource=function(e,t){return Html5.canPlayType(e.type)},Html5.canControlVolume=function(){try{var e=Html5.TEST_VID.volume;return Html5.TEST_VID.volume=e/2+.1,e!==Html5.TEST_VID.volume}catch(t){return!1}},Html5.canControlMute=function(){try{var e=Html5.TEST_VID.muted;return Html5.TEST_VID.muted=!0,e!==Html5.TEST_VID.muted}catch(t){return!1}},Html5.canControlPlaybackRate=function(){if(IS_ANDROID&&IS_CHROME&&CHROME_VERSION<58)return!1;try{var e=Html5.TEST_VID.playbackRate;return Html5.TEST_VID.playbackRate=e/2+.1,e!==Html5.TEST_VID.playbackRate}catch(t){return!1}},Html5.supportsNativeTextTracks=function(){return IS_ANY_SAFARI},Html5.supportsNativeVideoTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.videoTracks)},Html5.supportsNativeAudioTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.audioTracks)},Html5.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Html5.prototype.featuresVolumeControl=Html5.canControlVolume(),Html5.prototype.featuresMuteControl=Html5.canControlMute(),Html5.prototype.featuresPlaybackRate=Html5.canControlPlaybackRate(),Html5.prototype.movingMediaElementInDOM=!IS_IOS,Html5.prototype.featuresFullscreenResize=!0,Html5.prototype.featuresProgressEvents=!0,Html5.prototype.featuresTimeupdateEvents=!0,Html5.prototype.featuresNativeTextTracks=Html5.supportsNativeTextTracks(),Html5.prototype.featuresNativeVideoTracks=Html5.supportsNativeVideoTracks(),Html5.prototype.featuresNativeAudioTracks=Html5.supportsNativeAudioTracks();var canPlayType=Html5.TEST_VID&&Html5.TEST_VID.constructor.prototype.canPlayType,mpegurlRE=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,mp4RE=/^video\/mp4/i;Html5.patchCanPlayType=function(){ANDROID_VERSION>=4&&!IS_FIREFOX?Html5.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&mpegurlRE.test(e)?"maybe":canPlayType.call(this,e)}:IS_OLD_ANDROID&&(Html5.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&mp4RE.test(e)?"maybe":canPlayType.call(this,e)})},Html5.unpatchCanPlayType=function(){var e=Html5.TEST_VID.constructor.prototype.canPlayType;return Html5.TEST_VID.constructor.prototype.canPlayType=canPlayType,e},Html5.patchCanPlayType(),Html5.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch(t){}}()}},Html5.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),r=t.length;r--;)e.removeChild(t[r]);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch(n){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Html5.prototype["set"+toTitleCase(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){Html5.prototype["set"+toTitleCase(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]()}}),Tech.withSourceHandlers(Html5),Html5.nativeSourceHandler={},Html5.nativeSourceHandler.canPlayType=function(e){setTimeout(function(){},2e3);try{return Html5.TEST_VID.canPlayType(e)}catch(t){return""}},Html5.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Html5.nativeSourceHandler.canPlayType(e.type);if(e.src){var r=getFileExtension(e.src);return Html5.nativeSourceHandler.canPlayType("video/"+r)}return""},Html5.nativeSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)},Html5.nativeSourceHandler.dispose=function(){},Html5.registerSourceHandler(Html5.nativeSourceHandler),Tech.registerTech("Html5",Html5);var _templateObject$1=taggedTemplateLiteralLoose([`
        Using the tech directly can be dangerous. I hope you know what you're doing.
        See https://github.com/videojs/video.js/issues/2617 for more info.
      `],[`
        Using the tech directly can be dangerous. I hope you know what you're doing.
        See https://github.com/videojs/video.js/issues/2617 for more info.
      `]),preventScroll=function(e){e.preventDefault()},TECH_EVENTS_RETRIGGER=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","resize","volumechange","texttrackchange"],Player=function(e){function t(r,n,s){if(classCallCheck(this,t),r.id=r.id||"vjs_video_"+newGUID(),n=assign(t.getTagSettings(r),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if(typeof r.closest=="function"){var a=r.closest("[lang]");a&&a.getAttribute&&(n.language=a.getAttribute("lang"))}else for(var l=r;l&&l.nodeType===1;){if(getAttributes(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}var u=possibleConstructorReturn(this,e.call(this,null,n,s));if(u.isReady_=!1,u.hasStarted_=!1,u.userActive_=!1,!u.options_||!u.options_.techOrder||!u.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(u.tag=r,u.tagAttributes=r&&getAttributes(r),u.language(u.options_.language),n.languages){var p={};Object.getOwnPropertyNames(n.languages).forEach(function(b){p[b.toLowerCase()]=n.languages[b]}),u.languages_=p}else u.languages_=t.prototype.options_.languages;u.cache_={},u.poster_=n.poster||"",u.controls_=!!n.controls,u.cache_.lastVolume=1,r.controls=!1,r.removeAttribute("controls"),u.scrubbing_=!1,u.el_=u.createEl(),evented(u,{eventBusKey:"el_"});var d=mergeOptions(u.options_);if(n.plugins){var m=n.plugins;Object.keys(m).forEach(function(b){if(typeof this[b]!="function")throw new Error('plugin "'+b+'" does not exist');this[b](m[b])},u)}return u.options_.playerOptions=d,u.middleware_=[],u.initChildren(),u.isAudio(r.nodeName.toLowerCase()==="audio"),u.controls()?u.addClass("vjs-controls-enabled"):u.addClass("vjs-controls-disabled"),u.el_.setAttribute("role","region"),u.isAudio()?u.el_.setAttribute("aria-label",u.localize("Audio Player")):u.el_.setAttribute("aria-label",u.localize("Video Player")),u.isAudio()&&u.addClass("vjs-audio"),u.flexNotSupported_()&&u.addClass("vjs-no-flex"),IS_IOS||IS_ANDROID||u.addClass("vjs-workinghover"),t.players[u.id_]=u,u.userActive(!0),u.reportUserActivity(),u.listenForUserActivity_(),u.on("fullscreenchange",u.handleFullscreenChange_),u.on("stageclick",u.handleStageClick_),u.changingSrc_=!1,u.playWaitingForReady_=!1,u.playOnLoadstart_=null,u.forceAutoplayInChrome_(),u}return inherits(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var r=this.tag,n=void 0,s=this.playerElIngest_=r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player"),a=this.tag.tagName.toLowerCase()==="video-js";s?n=this.el_=r.parentNode:a||(n=this.el_=e.prototype.createEl.call(this,"div"));var l=getAttributes(r);if(a){for(n=this.el_=r,r=this.tag=document_1.createElement("video");n.children.length;)r.appendChild(n.firstChild);hasClass(n,"video-js")||addClass(n,"video-js"),n.appendChild(r),s=this.playerElIngest_=n}if(r.setAttribute("tabindex","-1"),r.removeAttribute("width"),r.removeAttribute("height"),Object.getOwnPropertyNames(l).forEach(function(y){y==="class"?(n.className+=" "+l[y],a&&(r.className+=" "+l[y])):(n.setAttribute(y,l[y]),a&&r.setAttribute(y,l[y]))}),r.playerId=r.id,r.id+="_html5_api",r.className="vjs-tech",r.player=n.player=this,this.addClass("vjs-paused"),window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=createStyleElement("vjs-styles-dimensions");var u=$(".vjs-styles-defaults"),p=$("head");p.insertBefore(this.styleEl_,u?u.nextSibling:p.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var d=r.getElementsByTagName("a"),m=0;m<d.length;m++){var b=d.item(m);addClass(b,"vjs-hidden"),b.setAttribute("hidden","hidden")}r.initNetworkState_=r.networkState,r.parentNode&&!s&&r.parentNode.insertBefore(n,r),prependTo(r,n),this.children_.unshift(r),this.el_.setAttribute("lang",this.language_);var g=document_1.createElement("div");return addClass(g,"safe-check-element"),n.appendChild(g),this.el_=n,n},t.prototype.width=function(r,n){return this.dimension("width",r,n)},t.prototype.height=function(r,n){return this.dimension("height",r,n)},t.prototype.dimension=function(r,n,s){var a=r+"_";if(n===void 0)return this[a]||0;if(n==="")return this[a]=void 0,void this.updateStyleEl_();var l=parseFloat(n);if(isNaN(l))return void log$2.error('Improper value "'+n+'" supplied for for '+r);this[a]=l,this.updateStyleEl_(),this.isReady_&&!s&&this.trigger("playerresize")},t.prototype.fluid=function(r){if(r===void 0)return!!this.fluid_;this.fluid_=!!r,r?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.aspectRatio=function(r){if(r===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(r))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=r,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(window_1.VIDEOJS_NO_DYNAMIC_STYLE===!0){var r=typeof this.width_=="number"?this.width_:this.options_.width,n=typeof this.height_=="number"?this.height_:this.options_.height,s=this.tech_&&this.tech_.el();return void(s&&(r>=0&&(s.width=r),n>=0&&(s.height=n)))}var a=void 0,l=void 0,u=void 0,p=void 0;u=this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var d=u.split(":"),m=d[1]/d[0];a=this.width_!==void 0?this.width_:this.height_!==void 0?this.height_/m:this.videoWidth()||300,l=this.height_!==void 0?this.height_:a*m,p=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(p),setTextContent(this.styleEl_,`
      .`+p+` {
        width: `+a+`px;
        height: `+l+`px;
      }

      .`+p+`.vjs-fluid {
        padding-top: `+100*m+`%;
      }
    `)},t.prototype.loadTech_=function(r,n){var s=this;this.tech_&&this.unloadTech_();var a=toTitleCase(r),l=r.charAt(0).toLowerCase()+r.slice(1);a!=="Html5"&&this.tag&&(Tech.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var u={source:n,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],swf:this.options_.swf,hlsConfig:this.options_.hlsConfig,dashConfig:this.options_.dashConfig,flvConfig:this.options_.flvConfig,webrtcConfig:this.options_.webrtcConfig,xp2pConfig:this.options_.xp2pConfig};ALL.names.forEach(function(d){var m=ALL[d];u[m.getterName]=s[m.privateName]}),assign(u,this.options_[a]),assign(u,this.options_[l]),assign(u,this.options_[r.toLowerCase()]),this.tag&&(u.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(u.startTime=this.cache_.currentTime);var p=Tech.getTech(r);if(!p)throw new Error("No Tech named '"+a+"' exists! '"+a+"' should be registered using videojs.registerTech()'");this.tech_=new p(this,u),this.tech_.ready(bind(this,this.handleTechReady_),!0),textTrackConverter.jsonToTextTracks(this.textTracksJson_||[],this.tech_),TECH_EVENTS_RETRIGGER.forEach(function(d){s.on(s.tech_,d,s["handleTech"+toTitleCase(d)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"x5videoexitfullscreen",this.handleX5ExitFullscreen_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||a==="Html5"&&this.tag||prependTo(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var r=this;ALL.names.forEach(function(n){var s=ALL[n];r[s.privateName]=r[s.getterName]()}),this.textTracksJson_=textTrackConverter.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},t.prototype.tech=function(r){return r===void 0&&log$2.warn(tsml(_templateObject$1)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.tech_&&(this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_))},t.prototype.removeTechControlsListeners_=function(){this.tech_&&(this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_))},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(r){log$2("deleting tag.poster throws in some browsers",r)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(r){if(r===void 0)return this.hasStarted_;r!==this.hasStarted_&&(this.hasStarted_=r,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechWaiting_=function(){var r=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return r.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(log$2.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(r){isSingleLeftClick(r)&&this.controls_&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(r){r.preventDefault()},t.prototype.handleFullscreenChange_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.toggleFullscreenClass_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.documentFullscreenChange_=function(r){var n=FullscreenApi;this.isFullscreen(document_1[n.fullscreenElement]),this.isFullscreen()===!1&&off(document_1,n.fullscreenchange,bind(this,this.documentFullscreenChange_)),prefixedAPI||this.trigger("fullscreenchange")},t.prototype.handleTechFullscreenChange_=function(r,n){n&&this.isFullscreen(n.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var r=this.tech_.error();this.error(r)},t.prototype.handleTechTextData_=function(){var r=null;arguments.length>1&&(r=arguments[1]),this.trigger("textdata",r)},t.prototype.handleX5ExitFullscreen_=function(){this.removeClass("vjs-fullscreen"),this.isFullscreen_=!this.isFullscreen_},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(r,n){this.ready(function(){if(r in allowedSetters)return set$1(this.middleware_,this.tech_,r,n);try{this.tech_&&this.tech_[r](n)}catch(s){throw log$2(s),s}},!0)},t.prototype.techGet_=function(r){if(this.tech_&&this.tech_.isReady_){if(r in allowedGetters)return get$1(this.middleware_,this.tech_,r);try{return this.tech_[r]()}catch(n){throw this.tech_[r]===void 0?(log$2("Video.js: "+r+" method not defined for "+this.techName_+" playback technology.",n),n):n.name==="TypeError"?(log$2("Video.js: "+r+" unavailable on "+this.techName_+" playback technology element.",n),this.tech_.isReady_=!1,n):(log$2(n),n)}}},t.prototype.play=function(){var r=this;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return this.techGet_("play");this.playOnLoadstart_=function(){r.playOnLoadstart_=null,silencePromise(r.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){r.playWaitingForReady_=!1,silencePromise(r.play())})}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return this.techGet_("paused")!==!1},t.prototype.played=function(){return this.techGet_("played")||createTimeRanges(0,0)},t.prototype.scrubbing=function(r){if(r===void 0)return this.scrubbing_;this.scrubbing_=!!r,r?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(r){if(r!==void 0)return r<0&&(r=0),void this.techCall_("setCurrentTime",r);try{return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime}catch(n){return 0}},t.prototype.duration=function(r){if(r===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;r=parseFloat(r),r<=0&&(r=1/0),r!==this.cache_.duration&&(this.cache_.duration=r,r===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var r=this.techGet_("buffered");return r&&r.length||(r=createTimeRanges(0,0)),r},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var r=this.buffered(),n=this.duration(),s=r.end(r.length-1);return s>n&&(s=n),s},t.prototype.volume=function(r){var n=void 0;return r!==void 0?(n=Math.max(0,Math.min(1,parseFloat(r))),this.cache_.volume=n,this.techCall_("setVolume",n),void(n>0&&this.lastVolume_(n))):(n=parseFloat(this.techGet_("volume")),isNaN(n)?1:n)},t.prototype.muted=function(r){return r!==void 0?void this.techCall_("setMuted",r):this.techGet_("muted")||!1},t.prototype.defaultMuted=function(r){return r!==void 0?this.techCall_("setDefaultMuted",r):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(r){return r!==void 0&&r!==0?void(this.cache_.lastVolume=r):this.cache_.lastVolume},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(r){return r!==void 0?(this.isFullscreen_=!!r,void this.toggleFullscreenClass_()):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var r=FullscreenApi;if(this.isFullscreen(!0),this.options_.fakeFullscreen){var n=this;return IS_IOS?(n.el_.style.width="100vw",n.el_.style.height="100vh",n.el_.style.position="fixed",n.el_.style.zIndex="999",n.el_.style.top="0",document_1.body.style.overflowY="hidden",document_1.addEventListener("touchmove",preventScroll,{passive:!1}),this.trigger("fullscreenchange")):(this.enterFullWindow(),this.trigger("fullscreenchange")),!1}r.requestFullscreen?(on(document_1,r.fullscreenchange,bind(this,this.documentFullscreenChange_)),this.el_[r.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var r=FullscreenApi;if(this.isFullscreen(!1),this.options_.fakeFullscreen)return IS_IOS?(this.el_.removeAttribute("style"),document_1.removeEventListener("touchmove",preventScroll,{passive:!1}),document_1.body.style.overflowY="",this.trigger("fullscreenchange")):(this.exitFullWindow(),this.trigger("fullscreenchange")),!1;r.requestFullscreen?document_1[r.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=document_1.documentElement.style.overflow,on(document_1,"keydown",bind(this,this.fullWindowOnEscKey)),document_1.documentElement.style.overflow="hidden",addClass(document_1.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(r){r.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,off(document_1,"keydown",this.fullWindowOnEscKey),document_1.documentElement.style.overflow=this.docOrigOverflow,removeClass(document_1.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(r){for(var n=void 0,s=0,a=this.options_.techOrder;s<a.length;s++){var l=a[s],u=Tech.getTech(l);if(u||(u=Component.getComponent(l)),u){if(u.isSupported()&&(n=u.canPlayType(r)))return n}else log$2.error('The "'+l+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(r){var n=this,s=this.options_.techOrder.map(function(u){return[u,Tech.getTech(u)]}).filter(function(u){var p=u[0],d=u[1];return d?d.isSupported():(log$2.error('The "'+p+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),a=function(u,p,d){var m=void 0;return u.some(function(b){return p.some(function(g){if(m=d(b,g))return!0})}),m},l=function(u,p){var d=u[0];if(u[1].canPlaySource(p,n.options_[d.toLowerCase()]))return{source:p,tech:d}};return(this.options_.sourceOrder?a(r,s,function(u){return function(p,d){return u(d,p)}}(l)):a(s,r,l))||!1},t.prototype.src=function(r){var n=this;if(r===void 0)return this.cache_.src||this.techGet_("src");var s=filterSource(r);if(!s.length)return void this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);if(this.cache_.source&&isWebrtcUrl(this.cache_.source.src)&&isWebrtcUrl(s[0].src)&&this.cache_.source.src!==s[0].src){var a=this.tech_.webrtcProvider;if(a&&a.webrtcPlayer&&a.webrtcPlayer.switchStream)return this.tech_.webrtcProvider.webrtcPlayer.switchStream(s[0].src),this.cache_.sources=s,this.cache_.source=s[0],!1}this.cache_.sources=s,this.changingSrc_=!0,this.cache_.source=s[0];try{this.cache_.source&&!isWebrtcUrl(this.cache_.source.src)&&this.options_.autoplay&&setTimeout(function(){var l=n.play&&n.play();isPromise(l)&&l.then().catch(function(){n.trigger("blocked")})},1e3)}catch(l){}setSource(this,s[0],function(l,u){if(n.middleware_=u,n.src_(l)){if(s.length>1){var p=s.slice(1),d=p[0].qualityLabelList;return d&&n.QualitySwitcher().setOptions({qualityLabelList:{video:d.slice(1)}}),n.src(p)}return n.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void n.triggerReady()}n.changingSrc_=!1,n.cache_.src=l.src,setTech(u,n.tech_)})},t.prototype.src_=function(r){var n=this.selectSource([r]);return!n||(window_1.performance&&typeof window_1.performance.mark=="function"&&window_1.performance.mark("firstFrameStart"),titleCaseEquals(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",r):this.techCall_("src",r.src),this.options_.preload==="auto"&&this.load()},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var r=this.currentSource(),n=[];return Object.keys(r).length!==0&&n.push(r),this.cache_.sources||n},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(r){return r!==void 0?(this.techCall_("setPreload",r),void(this.options_.preload=r)):this.techGet_("preload")},t.prototype.autoplay=function(r){return r!==void 0?(this.techCall_("setAutoplay",r),this.options_.autoplay=r,void this.ready(this.forceAutoplayInChrome_)):this.techGet_("autoplay",r)},t.prototype.forceAutoplayInChrome_=function(){this.paused()&&(this.autoplay()||this.options_.autoplay)&&IS_CHROME&&!IS_ANDROID&&this.play()},t.prototype.playsinline=function(r){return r!==void 0?(this.techCall_("setPlaysinline",r),this.options_.playsinline=r,this):this.techGet_("playsinline")},t.prototype.loop=function(r){return r!==void 0?(this.techCall_("setLoop",r),void(this.options_.loop=r)):this.techGet_("loop")},t.prototype.poster=function(r){if(r===void 0)return this.poster_;r||(r=""),this.poster_=r,this.trigger("posterchange")},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(r){if(r===void 0)return!!this.controls_;r=!!r,this.controls_!==r&&(this.controls_=r,this.usingNativeControls()&&this.techCall_("setControls",r),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(r){if(r===void 0)return!!this.usingNativeControls_;r=!!r,this.usingNativeControls_!==r&&(this.usingNativeControls_=r,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(r){return r===void 0?this.error_||null:r===null?(this.error_=r,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new MediaError(r),this.addClass("vjs-error"),log$2.error("(CODE:"+this.error_.code+" "+MediaError.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger({type:"error",data:this.error_}))},t.prototype.reportUserActivity=function(r){this.userActivity_=!0},t.prototype.userActive=function(r){if(r===void 0)return this.userActive_;if((r=!!r)!==this.userActive_){if(this.userActive_=r,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation(),n.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var r=void 0,n=void 0,s=void 0,a=bind(this,this.reportUserActivity),l=function(m){m.screenX===n&&m.screenY===s||(n=m.screenX,s=m.screenY,a())},u=function(){a(),this.clearInterval(r),r=this.setInterval(a,250)},p=function(m){a(),this.clearInterval(r)};this.on("mousedown",u),this.on("mousemove",l),this.on("mouseup",p),this.on("keydown",a),this.on("keyup",a);var d=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(d);var m=this.options_.inactivityTimeout;m<=0||(d=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},m))}},250)},t.prototype.playbackRate=function(r){return r!==void 0?void this.techCall_("setPlaybackRate",r):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.defaultPlaybackRate=function(r){return r!==void 0?this.techCall_("setDefaultPlaybackRate",r):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(r){return r!==void 0?void(this.isAudio_=!!r):!!this.isAudio_},t.prototype.addTextTrack=function(r,n,s){if(this.tech_)return this.tech_.addTextTrack(r,n,s)},t.prototype.addRemoteTextTrack=function(r,n){if(this.tech_)return this.tech_.addRemoteTextTrack(r,n)},t.prototype.removeRemoteTextTrack=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.track,s=n===void 0?arguments[0]:n;if(this.tech_)return this.tech_.removeRemoteTextTrack(s)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(r){if(r===void 0)return this.language_;this.language_=String(r).toLowerCase()},t.prototype.languages=function(){return mergeOptions(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var r=mergeOptions(this.options_),n=r.tracks;r.tracks=[];for(var s=0;s<n.length;s++){var a=n[s];a=mergeOptions(a),a.player=void 0,r.tracks[s]=a}return r},t.prototype.createModal=function(r,n){var s=this;n=n||{},n.content=r||"";var a=new ModalDialog(this,n);return this.addChild(a),a.on("dispose",function(){s.removeChild(a)}),a.open(),a},t.getTagSettings=function(r){var n={sources:[],tracks:[]},s=getAttributes(r),a=s["data-setup"];if(hasClass(r,"vjs-fluid")&&(s.fluid=!0),a!==null){var l=tuple(a||"{}"),u=l[0],p=l[1];u&&log$2.error(u),assign(s,p)}if(assign(n,s),r.hasChildNodes())for(var d=r.childNodes,m=0,b=d.length;m<b;m++){var g=d[m],y=g.nodeName.toLowerCase();y==="source"?n.sources.push(getAttributes(g)):y==="track"&&n.tracks.push(getAttributes(g))}return n},t.prototype.flexNotSupported_=function(){var r=document_1.createElement("i");return!("flexBasis"in r.style||"webkitFlexBasis"in r.style||"mozFlexBasis"in r.style||"msFlexBasis"in r.style||"msFlexOrder"in r.style)},t}(Component);ALL.names.forEach(function(e){var t=ALL[e];Player.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Player.players={};var navigator$1=window_1.navigator;Player.prototype.options_={techOrder:Tech.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings","videoStatisticPanel"],language:navigator$1&&(navigator$1.languages&&navigator$1.languages[0]||navigator$1.userLanguage||navigator$1.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Player.prototype[e]=function(){return this.techGet_(e)}}),TECH_EVENTS_RETRIGGER.forEach(function(e){Player.prototype["handleTech"+toTitleCase(e)+"_"]=function(){return this.trigger(e)}}),Component.registerComponent("Player",Player);var BASE_PLUGIN_NAME="plugin",PLUGIN_CACHE_KEY="activePlugins_",pluginStorage={},pluginExists=function(e){return pluginStorage.hasOwnProperty(e)},getPlugin=function(e){return pluginExists(e)?pluginStorage[e]:void 0},markPluginAsActive=function(e,t){e[PLUGIN_CACHE_KEY]=e[PLUGIN_CACHE_KEY]||{},e[PLUGIN_CACHE_KEY][t]=!0},triggerSetupEvent=function(e,t,r){var n=(r?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)},createBasicPlugin=function(e,t){var r=function(){triggerSetupEvent(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return markPluginAsActive(this,e),triggerSetupEvent(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(n){r[n]=t[n]}),r},createPluginFactory=function(e,t){return t.prototype.name=e,function(){triggerSetupEvent(this,{name:e,plugin:t,instance:null},!0);for(var r=arguments.length,n=Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(n))));return this[e]=function(){return a},triggerSetupEvent(this,a.getEventHash()),a}},Plugin=function(){function e(t){if(classCallCheck(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,evented(this),delete this.trigger,stateful(this,this.constructor.defaultState),markPluginAsActive(t,this.name),this.dispose=bind(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.prototype.trigger=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return trigger(this.eventBusEl_,t,this.getEventHash(r))},e.prototype.handleStateChanged=function(t){},e.prototype.dispose=function(){var t=this.name,r=this.player;this.trigger("dispose"),this.off(),r.off("dispose",this.dispose),r[PLUGIN_CACHE_KEY][t]=!1,this.player=this.state=null,r[t]=createPluginFactory(t,pluginStorage[t])},e.isBasic=function(t){var r=typeof t=="string"?getPlugin(t):t;return typeof r=="function"&&!e.prototype.isPrototypeOf(r.prototype)},e.registerPlugin=function(t,r){if(typeof t!="string")throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(t===void 0?"undefined":_typeof(t))+".");if(pluginExists(t))log$2.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Player.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if(typeof r!="function")throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(r===void 0?"undefined":_typeof(r))+".");return pluginStorage[t]=r,t!==BASE_PLUGIN_NAME&&(e.isBasic(r)?Player.prototype[t]=createBasicPlugin(t,r):Player.prototype[t]=createPluginFactory(t,r)),r},e.deregisterPlugin=function(t){if(t===BASE_PLUGIN_NAME)throw new Error("Cannot de-register base plugin.");pluginExists(t)&&(delete pluginStorage[t],delete Player.prototype[t])},e.getPlugins=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Object.keys(pluginStorage),r=void 0;return t.forEach(function(n){var s=getPlugin(n);s&&(r=r||{},r[n]=s)}),r},e.getPluginVersion=function(t){var r=getPlugin(t);return r&&r.VERSION||""},e}();Plugin.getPlugin=getPlugin,Plugin.BASE_PLUGIN_NAME=BASE_PLUGIN_NAME,Plugin.registerPlugin(BASE_PLUGIN_NAME,Plugin),Player.prototype.usingPlugin=function(e){return!!this[PLUGIN_CACHE_KEY]&&this[PLUGIN_CACHE_KEY][e]===!0},Player.prototype.hasPlugin=function(e){return!!pluginExists(e)};var _inherits=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(t===void 0?"undefined":_typeof(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)},extendFn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(){e.apply(this,arguments)},n={};(t===void 0?"undefined":_typeof(t))==="object"?(t.constructor!==Object.prototype.constructor&&(r=t.constructor),n=t):typeof t=="function"&&(r=t),_inherits(r,e);for(var s in n)n.hasOwnProperty(s)&&(r.prototype[s]=n[s]);return r};if(typeof HTMLVideoElement>"u"&&isReal()&&(document_1.createElement("video"),document_1.createElement("audio"),document_1.createElement("track"),document_1.createElement("video-js")),videojs.hooks_={},videojs.hooks=function(e,t){return videojs.hooks_[e]=videojs.hooks_[e]||[],t&&(videojs.hooks_[e]=videojs.hooks_[e].concat(t)),videojs.hooks_[e]},videojs.hook=function(e,t){videojs.hooks(e,t)},videojs.hookOnce=function(e,t){videojs.hooks(e,[].concat(t).map(function(r){return function n(){return videojs.removeHook(e,n),r.apply(void 0,arguments)}}))},videojs.removeHook=function(e,t){var r=videojs.hooks(e).indexOf(t);return!(r<=-1)&&(videojs.hooks_[e]=videojs.hooks_[e].slice(),videojs.hooks_[e].splice(r,1),!0)},window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&isReal()){var style=$(".vjs-styles-defaults");if(!style){style=createStyleElement("vjs-styles-defaults");var head=$("head");head&&head.insertBefore(style,head.firstChild),setTextContent(style,`
      .video-js {
        width: 300px;
        height: 150px;
      }

      .vjs-fluid {
        padding-top: 56.25%
      }
    `)}}autoSetupTimeout(1,videojs),videojs.VERSION=version,videojs.options=Player.prototype.options_,videojs.getPlayers=function(){return Player.players},videojs.players=Player.players,videojs.getComponent=Component.getComponent,videojs.registerComponent=function(e,t){Tech.isTech(t)&&log$2.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Component.registerComponent.call(Component,e,t)},videojs.getTech=Tech.getTech,videojs.registerTech=Tech.registerTech,videojs.use=use,videojs.browser=browser,videojs.TOUCH_ENABLED=TOUCH_ENABLED,videojs.extend=extendFn,videojs.mergeOptions=mergeOptions,videojs.bind=bind,videojs.registerPlugin=Plugin.registerPlugin,videojs.plugin=function(e,t){return log$2.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Plugin.registerPlugin(e,t)},videojs.getPlugins=Plugin.getPlugins,videojs.getPlugin=Plugin.getPlugin,videojs.getPluginVersion=Plugin.getPluginVersion,videojs.addLanguage=function(e,t){var r;return e=(""+e).toLowerCase(),videojs.options.languages=mergeOptions(videojs.options.languages,(r={},r[e]=t,r)),videojs.options.languages[e]},videojs.log=log$2,videojs.createTimeRange=videojs.createTimeRanges=createTimeRanges,videojs.formatTime=formatTime,videojs.parseUrl=parseUrl,videojs.isCrossOrigin=isCrossOrigin,videojs.EventTarget=EventTarget,videojs.on=on,videojs.one=one,videojs.off=off,videojs.trigger=trigger,videojs.xhr=xhr,videojs.TextTrack=TextTrack,videojs.AudioTrack=AudioTrack,videojs.VideoTrack=VideoTrack,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){videojs[e]=function(){return log$2.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Dom[e].apply(null,arguments)}}),videojs.computedStyle=computedStyle,videojs.dom=Dom,videojs.url=Url;var enc=createCommonjsModule(function(module,exports){(function(e,t){module.exports=t()})(self,function(){return function(){function __webpack_require__(e){var t=__webpack_module_cache__[e];if(t!==void 0)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}var __webpack_modules__={"./node_modules/@tencent/js-armor-loader/dist/runtime.js":function node_modulesTencentJsArmorLoaderDistRuntimeJs(module){function T(e,t,r,n,s,a,l,u){function p(){return function(E,S,k){return new(Function.bind.apply(E,S))}.apply(null,arguments)}var d=!n;e=+e,t=t||[0],n=n||[[this],[{}]],s=s||{};var m,b=[],g=null;Function.prototype.bind||(m=[].slice,Function.prototype.bind=function(E){if(typeof this!="function")throw new TypeError("bind101");var S=m.call(arguments,1),k=S.length,A=this,I=function(){},R=function(){return S.length=k,S.push.apply(S,arguments),A.apply(I.prototype.isPrototypeOf(this)?this:E,S)};return this.prototype&&(I.prototype=this.prototype),R.prototype=new I,R});var y=[function(){n[n.length-1].length?n.push(n[n.length-1].shift(),!0):n.push(void 0,!1)},function(){n[n.length-2]=n[n.length-2]in n.pop()},function(){n.push(~n.pop())},function(){return!0},function(){var E=n[n.length-2],S=Object.getOwnPropertyDescriptor(E[0],E[1])||{configurable:!0,enumerable:!0};S.set=n[n.length-1],Object.defineProperty(E[0],E[1],S)},function(){n[n.length-2]=n[n.length-2]instanceof n.pop()},function(){n[n.length-2]=n[n.length-2]/n.pop()},function(){b.push([t[e++],n.length,t[e++]])},function(){n[n.length-2]=n[n.length-2]>=n.pop()},function(){n.push("")},function(){n[n.length-2]=n[n.length-2]+n.pop()},function(){n.push(_typeof(n.pop()))},function(){n[n.length-1]=r[n[n.length-1]]},function(){var E,S=[];for(E in n.pop())S.push(E);n.push(S)},function(){n[n.length-1]=t[e++]},function(){n.pop()},function(){n.push(n[t[e++]][0])},function(){n[n.length-2]=n[n.length-2]>>n.pop()},function(){var E=n[n.length-2];E[0][E[1]]=n[n.length-1]},function(){n[n.length-2]=n[n.length-2]-n.pop()},function(){n[n.length-2]=n[n.length-2]==n.pop()},function(){n.push(n[n.length-1])},function(){n[n.length-2]=n[n.length-2]===n.pop()},function(){for(var E=t[e++],S=[],k=t[e++],A=t[e++],I=[],R=0;R<k;R++)S[t[e++]]=n[t[e++]];for(R=0;R<A;R++)I[R]=t[e++];n.push(function C(){var x=S.slice(0);x[0]=[this],x[1]=[arguments],x[2]=[C];for(var P=0;P<I.length&&P<arguments.length;P++)0<I[P]&&(x[I[P]]=[arguments[P]]);return T(E,t,r,x,s)})},function(){e=t[e++]},function(){var E=n.pop();n.push([n[n.pop()][0],E])},function(){n[n.length-1]+=String.fromCharCode(t[e++])},function(){n.push([r,n.pop()])},function(){n[n.length-2]=n[n.length-2]|n.pop()},function(){n.push(void 0)},function(){var E=t[e++];n[n.length-1]&&(e=E)},function(){n[n.length-2]=n[n.length-2]<=n.pop()},function(){n[n.length-2]=n[n.length-2]*n.pop()},function(){n[n.length-2]=n[n.length-2]>n.pop()},function(){throw n[n.length-1]},function(){n[n[n.length-1][0]]=n[n[n.length-1][0]]===void 0?[]:n[n[n.length-1][0]]},function(){},function(){n.push(null)},function(){n.length-=t[e++]},function(){g=null},function(){var E=t[e++],S=n[n.length-2-E];n[n.length-2-E]=n.pop(),n.push(S)},function(){var E=n.pop();s[E]||(r[E]=r[E](),s[E]=1),n.push([r,E])},function(){var E=t[e++],S=E?n.slice(-E):[];n.length-=E,S.unshift(null),n.push(p(n.pop(),S))},function(){n[n.length-2]=n[n.length-2]<n.pop()},function(){var E=n.pop();s[E]||(r[E]=r[E](),s[E]=1),n.push(r[E])},function(){n.push([t[e++]])},function(){var E=t[e++],S=E?n.slice(-E):[];n.length-=E,E=n.pop(),n.push(E[0][E[1]].apply(E[0],S))},function(){n.push(n[n.pop()[0]][0])},function(){n[n[n.length-2][0]][0]=n[n.length-1]},function(){n[n.length-2]=n[n.length-2]^n.pop()},function(){n.push(!1)},function(){n[n.length-2]=n[n.length-2]&n.pop()},function(){var E=t[e++];n[E]=n[E]===void 0?[]:n[E]},function(){var E=n.pop();n.push(E[0][E[1]])},function(){var E=n.pop(),S=n.pop();n.push([S[0][S[1]],E])},function(){var E=n[n.length-2],S=Object.getOwnPropertyDescriptor(E[0],E[1])||{configurable:!0,enumerable:!0};S.get=n[n.length-1],Object.defineProperty(E[0],E[1],S)},function(){for(var E=n.pop(),S=t[e++],k=[],A=t[e++],I=t[e++],R=[],C=0;C<A;C++)k[t[e++]]=n[t[e++]];for(C=0;C<I;C++)R[C]=t[e++];var x=function P(){var O=k.slice(0);O[0]=[this],O[1]=[arguments],O[2]=[P];for(var V=0;V<R.length&&V<arguments.length;V++)0<R[V]&&(O[R[V]]=[arguments[V]]);return T(S,t,r,O,s)};x.toString=function(){return E},n.push(x)},function(){n[n.length-2]=n[n.length-2]<<n.pop()},function(){var E=t[e++],S=E?n.slice(-E):[];n.length-=E,n.push(n.pop().apply(r,S))},function(){var E=t[e++],S=E?n.slice(-E):[];n.length-=E,S.unshift(null),E=n.pop(),n.push(p(E[0][E[1]],S))},function(){return!!g},function(){var E=n.pop();n.push(delete E[0][E[1]])},function(){n.length=t[e++]},function(){n.push(!0)},function(){b.pop()},function(){n.push(t[e++])},function(){n.push(!n.pop())},function(){n.push([n.pop(),n.pop()].reverse())},function(){n[n.length-2]=n[n.length-2]%n.pop()},function(){n[n.length-2]=n[n.length-2]>>>n.pop()}];for(0;;)try{for(var f=!1;!f;)f=y[t[e++]]();if(g)throw g;return d?(n.pop(),n.slice(3+T.v)):n.pop()}catch(E){var _=b.pop();if(_===void 0)throw E;g=E,e=_[0],n.length=_[1],_[2]&&(n[_[2]][0]=g)}}function arrayIndexOf(e,t,r){if(typeof Array.prototype.indexOf=="function")return Array.prototype.indexOf.call(e,t,r);var n,s=o.length;if(s===0)return-1;var a=0|r;if(a>=s)return-1;for(n=Math.max(a>=0?a:s-Math.abs(a),0);n<s;n++)if(n in o&&o[n]===t)return n;return-1}function base64Decode(e){for(var t,r,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),s=String(e).replace(/[=]+$/,""),a=0,l=0,u="";r=s.charAt(l++);~r&&(t=a%4?64*t+r:r,a++%4)?u+=String.fromCharCode(255&t>>(-2*a&6)):0)r=arrayIndexOf(n,r);return u}T.v=0,module.exports.r=function(symbols){for(var result=[],i=0;i<symbols.length;i++)try{result.push(eval(symbols[i]))}catch(e){result.push(void 0)}return result},module.exports.d=function(e){function t(){for(;p===l;)s.push(u),p++,l=n.shift(),u=n.shift()}if(typeof e[1]!="object")return e;for(var r=e[0],n=e[1],s=[],a=base64Decode(r),l=n.shift(),u=n.shift(),p=0,d=0;d<a.length;d++){var m=a.charAt(d).charCodeAt(0);t(),s.push(m),p++}return t(),s},module.exports.g=function(e){return e.shift()[0]},module.exports.v=T},"./aes.js":function(e,t,r){function n(M){return parseInt(M)===M}function s(M){if(!n(M.length))return!1;for(var D=0;D<M.length;D++)if(!n(M[D])||M[D]<0||M[D]>255)return!1;return!0}function a(M,D){if(M.buffer&&M.name==="Uint8Array")return D&&(M=M.slice?M.slice():Array.prototype.slice.call(M)),M;if(Array.isArray(M)){if(!s(M))throw new Error("Array contains invalid value: "+M);return new Uint8Array(M)}if(n(M.length)&&s(M))return new Uint8Array(M);throw new Error("unsupported array-like object")}function l(M){return new Uint8Array(M)}function u(M,D,N,B,G){B==null&&G==null||(M=M.slice?M.slice(B,G):Array.prototype.slice.call(M,B,G)),D.set(M,N)}function p(M){for(var D=[],N=0;N<M.length;N+=4)D.push(M[N]<<24|M[N+1]<<16|M[N+2]<<8|M[N+3]);return D}function d(M){M=a(M,!0);var D=16-M.length%16,N=l(M.length+D);u(M,N);for(var B=M.length;B<N.length;B++)N[B]=D;return N}function m(M){if(M=a(M,!0),M.length<16)throw new Error("PKCS#7 invalid length");var D=M[M.length-1];if(D>16)throw new Error("PKCS#7 padding byte out of range");for(var N=M.length-D,B=0;B<D;B++)if(M[N+B]!==D)throw new Error("PKCS#7 invalid padding byte");var G=l(N);return u(M,G,0,0,N),G}r.r(t),r.d(t,{default:function(){return j}});var b=function(){function M(N){var B=[],G=0;for(N=encodeURI(N);G<N.length;){var q=N.charCodeAt(G++);q===37?(B.push(parseInt(N.substr(G,2),16)),G+=2):B.push(q)}return a(B)}function D(N){for(var B=[],G=0;G<N.length;){var q=N[G];q<128?(B.push(String.fromCharCode(q)),G++):q>191&&q<224?(B.push(String.fromCharCode((31&q)<<6|63&N[G+1])),G+=2):(B.push(String.fromCharCode((15&q)<<12|(63&N[G+1])<<6|63&N[G+2])),G+=3)}return B.join("")}return{toBytes:M,fromBytes:D}}(),g=function(){function M(B){for(var G=[],q=0;q<B.length;q+=2)G.push(parseInt(B.substr(q,2),16));return G}function D(B){for(var G=[],q=0;q<B.length;q++){var Q=B[q];G.push(N[(240&Q)>>4]+N[15&Q])}return G.join("")}var N="0123456789abcdef";return{toBytes:M,fromBytes:D}}(),y={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],_=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],E=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],S=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],k=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],A=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],I=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],R=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],C=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],x=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],P=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],O=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],V=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],H=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],F=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925],U=function M(D){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:a(D,!0)}),this._prepare()};U.prototype._prepare=function(){var M=y[this.key.length];if(M==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var D=0;D<=M;D++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var N,B=4*(M+1),G=this.key.length/4,q=p(this.key),D=0;D<G;D++)N=D>>2,this._Ke[N][D%4]=q[D],this._Kd[M-N][D%4]=q[D];for(var Q,Z=0,te=G;te<B;){if(Q=q[G-1],q[0]^=_[Q>>16&255]<<24^_[Q>>8&255]<<16^_[255&Q]<<8^_[Q>>24&255]^f[Z]<<24,Z+=1,G!=8)for(var D=1;D<G;D++)q[D]^=q[D-1];else{for(var D=1;D<G/2;D++)q[D]^=q[D-1];Q=q[G/2-1],q[G/2]^=_[255&Q]^_[Q>>8&255]<<8^_[Q>>16&255]<<16^_[Q>>24&255]<<24;for(var D=G/2+1;D<G;D++)q[D]^=q[D-1]}for(var ne,se,D=0;D<G&&te<B;)ne=te>>2,se=te%4,this._Ke[ne][se]=q[D],this._Kd[M-ne][se]=q[D++],te++}for(var ne=1;ne<M;ne++)for(var se=0;se<4;se++)Q=this._Kd[ne][se],this._Kd[ne][se]=O[Q>>24&255]^V[Q>>16&255]^H[Q>>8&255]^F[255&Q]},U.prototype.encrypt=function(M){if(M.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var D=this._Ke.length-1,N=[0,0,0,0],B=p(M),G=0;G<4;G++)B[G]^=this._Ke[0][G];for(var q=1;q<D;q++){for(var G=0;G<4;G++)N[G]=S[B[G]>>24&255]^k[B[(G+1)%4]>>16&255]^A[B[(G+2)%4]>>8&255]^I[255&B[(G+3)%4]]^this._Ke[q][G];B=N.slice()}for(var Q,Z=l(16),G=0;G<4;G++)Q=this._Ke[D][G],Z[4*G]=255&(_[B[G]>>24&255]^Q>>24),Z[4*G+1]=255&(_[B[(G+1)%4]>>16&255]^Q>>16),Z[4*G+2]=255&(_[B[(G+2)%4]>>8&255]^Q>>8),Z[4*G+3]=255&(_[255&B[(G+3)%4]]^Q);return Z},U.prototype.decrypt=function(M){if(M.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var D=this._Kd.length-1,N=[0,0,0,0],B=p(M),G=0;G<4;G++)B[G]^=this._Kd[0][G];for(var q=1;q<D;q++){for(var G=0;G<4;G++)N[G]=R[B[G]>>24&255]^C[B[(G+3)%4]>>16&255]^x[B[(G+2)%4]>>8&255]^P[255&B[(G+1)%4]]^this._Kd[q][G];B=N.slice()}for(var Q,Z=l(16),G=0;G<4;G++)Q=this._Kd[D][G],Z[4*G]=255&(E[B[G]>>24&255]^Q>>24),Z[4*G+1]=255&(E[B[(G+3)%4]>>16&255]^Q>>16),Z[4*G+2]=255&(E[B[(G+2)%4]>>8&255]^Q>>8),Z[4*G+3]=255&(E[255&B[(G+1)%4]]^Q);return Z};var K=function M(D,N){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",N){if(N.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)")}else N=l(16);this._lastCipherblock=a(N,!0),this._aes=new U(D)};K.prototype.encrypt=function(M){if(M=a(M),M.length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var D=l(M.length),N=l(16),B=0;B<M.length;B+=16){u(M,N,0,B,B+16);for(var G=0;G<16;G++)N[G]^=this._lastCipherblock[G];this._lastCipherblock=this._aes.encrypt(N),u(this._lastCipherblock,D,B)}return D},K.prototype.decrypt=function(M){if(M=a(M),M.length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var D=l(M.length),N=l(16),B=0;B<M.length;B+=16){u(M,N,0,B,B+16),N=this._aes.decrypt(N);for(var G=0;G<16;G++)D[B+G]=N[G]^this._lastCipherblock[G];u(M,this._lastCipherblock,0,B,B+16)}return D};var z=function M(D){if(!(this instanceof M))throw Error("Counter must be instanitated with `new`");D===0||D||(D=1),typeof D=="number"?(this._counter=l(16),this.setValue(D)):this.setBytes(D)};z.prototype.setValue=function(M){if(typeof M!="number"||parseInt(M)!=M)throw new Error("invalid counter value (must be an integer)");if(M>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var D=15;D>=0;--D)this._counter[D]=M%256,M=parseInt(M/256)},z.prototype.setBytes=function(M){if(M=a(M,!0),M.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=M},z.prototype.increment=function(){for(var M=15;M>=0;M--){if(this._counter[M]!==255){this._counter[M]++;break}this._counter[M]=0}};var L={AES:U,Counter:z,modeOfOperation:{cbc:K},utils:{hex:g,utf8:b},padding:{pkcs7:{pad:d,strip:m}},_arrayTest:{coerceArray:a,createArray:l,copyArray:u}},j=L},"./utils.js":function(e,t,r){function n(){for(var p="",d=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],m=0;m<32;m++)p+=d[s(0,15)];return p}function s(p,d){return Math.floor(Math.random()*(d-p+1)+p)}function a(p){return u.g(u.v(0,u.d(["PgQ0AjQDGA4+CjQCNAM0BDQFNAY0BzQINAlBACwLCRpzGnQachppGm4aZxZCHjQPGDc+Dx0DLQNBASwqADAPDy0EQRkwDw8tBUF7MA8PLQZBADAPDy0GL0EAKQkabBplGm4aZxp0Gmg2NQhCHnMPGOg7Dy0HQQApCRpjGmgaYRpyGkMabxpkGmUaQRp0NhAGLgEwDw8tBxAHQQEgEAUxMA8PLQctBwkadBpvGlMadBpyGmkabhpnGRAELgEwDw8tAwkacBp1GnMaaBkQBy4BDy0GFS8VKAEoAEEBCjAPDgAoABwPGFY0LQhBAikJGmYachpvGm0aQxpoGmEachpDGm8aZBplNhAEQWEKLgEwDw8tCS0DCRpqGm8aaRpuGRAILgEwDw8QCQMtAxcJAAAwDw8dAw==",[7,297]]),[function(){return p===void 0?void 0:p},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String}])).call(this)}function l(p){return u.g(u.v(0,u.d(["PgQ0AjQDGDQ+DDQCNAM0BDQFNAY0BzQINAk0CjQLQQAsCwkacxp0GnIaaRpuGmcWQh44Dxg7Pg8dAy0DQQEsKgAwDw8tBEEBLCoAMA8PLQVBGTAPDy0GQXswDw8tB0ECKQkaZhpyGm8abRpDGmgaYRpyGkMabxpkGmU2EAVBYQouATAPDy0DQQApCRpzGnAabBppGnQ2EAcuATAPDy0IQQAwDw8tCC8tAwkabBplGm4aZxp0GmgZNQhCHsEPGDsPLQlBAyktAxAIGTUQBS4CMA8PLQkQCUEBIBAGMTAPDy0KQQIpCRpmGnIabxptGkMaaBphGnIaQxpvGmQaZTYQCS4BMA8PLQQJGnAadRpzGmgZEAouAQ8tCBUvFSgBKABBAQowDw4AKAAcDxilGC0LLQQJGmoabxppGm4ZCS4BMA8PEAsDLQMXCQAAMA8PHQM=",[7,326,191,303]]),[function(){return p===void 0?void 0:p},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String},function(){return typeof parseInt>"u"?void 0:parseInt}])).call(this)}var u=r("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(t,"__esModule",{value:!0}),t.genOverlay=n,t.getRandomInt=s,t.encrypto=a,t.decrypto=l},"./node_modules/charenc/charenc.js":function(e){var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],s=0;s<r.length;s++)n.push(255&r.charCodeAt(s));return n},bytesToString:function(r){for(var n=[],s=0;s<r.length;s++)n.push(String.fromCharCode(r[s]));return n.join("")}}};e.exports=t},"./node_modules/crypt/crypt.js":function(e){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,s){return n<<s|n>>>32-s},rotr:function(n,s){return n<<32-s|n>>>s},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var s=0;s<n.length;s++)n[s]=r.endian(n[s]);return n},randomBytes:function(n){for(var s=[];n>0;n--)s.push(Math.floor(256*Math.random()));return s},bytesToWords:function(n){for(var s=[],a=0,l=0;a<n.length;a++,l+=8)s[l>>>5]|=n[a]<<24-l%32;return s},wordsToBytes:function(n){for(var s=[],a=0;a<32*n.length;a+=8)s.push(n[a>>>5]>>>24-a%32&255);return s},bytesToHex:function(n){for(var s=[],a=0;a<n.length;a++)s.push((n[a]>>>4).toString(16)),s.push((15&n[a]).toString(16));return s.join("")},hexToBytes:function(n){for(var s=[],a=0;a<n.length;a+=2)s.push(parseInt(n.substr(a,2),16));return s},bytesToBase64:function(n){for(var s=[],a=0;a<n.length;a+=3)for(var l=n[a]<<16|n[a+1]<<8|n[a+2],u=0;u<4;u++)8*a+6*u<=8*n.length?s.push(t.charAt(l>>>6*(3-u)&63)):s.push("=");return s.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var s=[],a=0,l=0;a<n.length;l=++a%4)l!=0&&s.push((t.indexOf(n.charAt(a-1))&Math.pow(2,-2*l+8)-1)<<2*l|t.indexOf(n.charAt(a))>>>6-2*l);return s}};e.exports=r})()},"./node_modules/is-buffer/index.js":function(e){function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function r(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}e.exports=function(n){return n!=null&&(t(n)||r(n)||!!n._isBuffer)}},"./node_modules/jsencrypt/lib/JSEncrypt.js":function(e,t,r){r.r(t),r.d(t,{JSEncrypt:function(){return l}});var n=r("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),s=r("./node_modules/jsencrypt/lib/JSEncryptRSAKey.js"),a=r("./node_modules/jsencrypt/lib/version.json"),l=function(){function u(p){p=p||{},this.default_key_size=p.default_key_size?parseInt(p.default_key_size,10):1024,this.default_public_exponent=p.default_public_exponent||"010001",this.log=p.log||!1,this.key=null}return u.prototype.setKey=function(p){this.log&&this.key,this.key=new s.JSEncryptRSAKey(p)},u.prototype.setPrivateKey=function(p){this.setKey(p)},u.prototype.setPublicKey=function(p){this.setKey(p)},u.prototype.decrypt=function(p){try{return this.getKey().decrypt((0,n.b64tohex)(p))}catch(d){return!1}},u.prototype.encrypt=function(p){try{return(0,n.hex2b64)(this.getKey().encrypt(p))}catch(d){return!1}},u.prototype.sign=function(p,d,m){try{return(0,n.hex2b64)(this.getKey().sign(p,d,m))}catch(b){return!1}},u.prototype.verify=function(p,d,m){try{return this.getKey().verify(p,(0,n.b64tohex)(d),m)}catch(b){return!1}},u.prototype.getKey=function(p){if(!this.key){if(this.key=new s.JSEncryptRSAKey,p&&{}.toString.call(p)==="[object Function]")return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,p);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},u.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},u.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},u.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},u.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},u.version=a.version,u}()},"./node_modules/jsencrypt/lib/JSEncryptRSAKey.js":function(e,t,r){r.r(t),r.d(t,{JSEncryptRSAKey:function(){return b}});var n=r("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),s=r("./node_modules/jsencrypt/lib/lib/asn1js/hex.js"),a=r("./node_modules/jsencrypt/lib/lib/asn1js/base64.js"),l=r("./node_modules/jsencrypt/lib/lib/asn1js/asn1.js"),u=r("./node_modules/jsencrypt/lib/lib/jsbn/rsa.js"),p=r("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),d=r("./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js"),m=function(){var g=function(y,f){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,E){_.__proto__=E}||function(_,E){for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(_[S]=E[S])})(y,f)};return function(y,f){function _(){this.constructor=y}if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");g(y,f),y.prototype=f===null?Object.create(f):(_.prototype=f.prototype,new _)}}(),b=function(g){function y(f){var _=g.call(this)||this;return f&&(typeof f=="string"?_.parseKey(f):(y.hasPrivateKeyProperty(f)||y.hasPublicKeyProperty(f))&&_.parsePropertiesFrom(f)),_}return m(y,g),y.prototype.parseKey=function(f){try{var _=0,E=0,S=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,k=S.test(f)?s.Hex.decode(f):a.Base64.unarmor(f),A=l.ASN1.decode(k);if(A.sub.length===3&&(A=A.sub[2].sub[0]),A.sub.length===9){_=A.sub[1].getHexStringValue(),this.n=(0,p.parseBigInt)(_,16),E=A.sub[2].getHexStringValue(),this.e=parseInt(E,16);var I=A.sub[3].getHexStringValue();this.d=(0,p.parseBigInt)(I,16);var R=A.sub[4].getHexStringValue();this.p=(0,p.parseBigInt)(R,16);var C=A.sub[5].getHexStringValue();this.q=(0,p.parseBigInt)(C,16);var x=A.sub[6].getHexStringValue();this.dmp1=(0,p.parseBigInt)(x,16);var P=A.sub[7].getHexStringValue();this.dmq1=(0,p.parseBigInt)(P,16);var O=A.sub[8].getHexStringValue();this.coeff=(0,p.parseBigInt)(O,16)}else{if(A.sub.length!==2)return!1;var V=A.sub[1],H=V.sub[0];_=H.sub[0].getHexStringValue(),this.n=(0,p.parseBigInt)(_,16),E=H.sub[1].getHexStringValue(),this.e=parseInt(E,16)}return!0}catch(F){return!1}},y.prototype.getPrivateBaseKey=function(){var f={array:[new d.KJUR.asn1.DERInteger({int:0}),new d.KJUR.asn1.DERInteger({bigint:this.n}),new d.KJUR.asn1.DERInteger({int:this.e}),new d.KJUR.asn1.DERInteger({bigint:this.d}),new d.KJUR.asn1.DERInteger({bigint:this.p}),new d.KJUR.asn1.DERInteger({bigint:this.q}),new d.KJUR.asn1.DERInteger({bigint:this.dmp1}),new d.KJUR.asn1.DERInteger({bigint:this.dmq1}),new d.KJUR.asn1.DERInteger({bigint:this.coeff})]};return new d.KJUR.asn1.DERSequence(f).getEncodedHex()},y.prototype.getPrivateBaseKeyB64=function(){return(0,n.hex2b64)(this.getPrivateBaseKey())},y.prototype.getPublicBaseKey=function(){var f=new d.KJUR.asn1.DERSequence({array:[new d.KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new d.KJUR.asn1.DERNull]}),_=new d.KJUR.asn1.DERSequence({array:[new d.KJUR.asn1.DERInteger({bigint:this.n}),new d.KJUR.asn1.DERInteger({int:this.e})]}),E=new d.KJUR.asn1.DERBitString({hex:"00"+_.getEncodedHex()});return new d.KJUR.asn1.DERSequence({array:[f,E]}).getEncodedHex()},y.prototype.getPublicBaseKeyB64=function(){return(0,n.hex2b64)(this.getPublicBaseKey())},y.wordwrap=function(f,_){if(_=_||64,!f)return f;var E="(.{1,"+_+`})( +|$
?)|(.{1,`+_+"})";return f.match(RegExp(E,"g")).join(`
`)},y.prototype.getPrivateKey=function(){var f=`-----BEGIN RSA PRIVATE KEY-----
`;return f+=y.wordwrap(this.getPrivateBaseKeyB64())+`
`,f+="-----END RSA PRIVATE KEY-----"},y.prototype.getPublicKey=function(){var f=`-----BEGIN PUBLIC KEY-----
`;return f+=y.wordwrap(this.getPublicBaseKeyB64())+`
`,f+="-----END PUBLIC KEY-----"},y.hasPublicKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")},y.hasPrivateKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")&&f.hasOwnProperty("d")&&f.hasOwnProperty("p")&&f.hasOwnProperty("q")&&f.hasOwnProperty("dmp1")&&f.hasOwnProperty("dmq1")&&f.hasOwnProperty("coeff")},y.prototype.parsePropertiesFrom=function(f){this.n=f.n,this.e=f.e,f.hasOwnProperty("d")&&(this.d=f.d,this.p=f.p,this.q=f.q,this.dmp1=f.dmp1,this.dmq1=f.dmq1,this.coeff=f.coeff)},y}(u.RSAKey)},"./node_modules/jsencrypt/lib/index.js":function(e,t,r){r.r(t),r.d(t,{JSEncrypt:function(){return n.JSEncrypt},default:function(){return s}});var n=r("./node_modules/jsencrypt/lib/JSEncrypt.js"),s=n.JSEncrypt},"./node_modules/jsencrypt/lib/lib/asn1js/asn1.js":function(e,t,r){function n(b,g){return b.length>g&&(b=b.substring(0,g)+a),b}r.r(t),r.d(t,{Stream:function(){return p},ASN1:function(){return d},ASN1Tag:function(){return m}});var s=r("./node_modules/jsencrypt/lib/lib/asn1js/int10.js"),a="…",l=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,u=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,p=function(){function b(g,y){this.hexDigits="0123456789ABCDEF",g instanceof b?(this.enc=g.enc,this.pos=g.pos):(this.enc=g,this.pos=y)}return b.prototype.get=function(g){if(g===void 0&&(g=this.pos++),g>=this.enc.length)throw new Error("Requesting byte offset "+g+" on a stream of length "+this.enc.length);return typeof this.enc=="string"?this.enc.charCodeAt(g):this.enc[g]},b.prototype.hexByte=function(g){return this.hexDigits.charAt(g>>4&15)+this.hexDigits.charAt(15&g)},b.prototype.hexDump=function(g,y,f){for(var _="",E=g;E<y;++E)if(_+=this.hexByte(this.get(E)),f!==!0)switch(15&E){case 7:_+="  ";break;case 15:_+=`
`;break;default:_+=" "}return _},b.prototype.isASCII=function(g,y){for(var f=g;f<y;++f){var _=this.get(f);if(_<32||_>176)return!1}return!0},b.prototype.parseStringISO=function(g,y){for(var f="",_=g;_<y;++_)f+=String.fromCharCode(this.get(_));return f},b.prototype.parseStringUTF=function(g,y){for(var f="",_=g;_<y;){var E=this.get(_++);f+=E<128?String.fromCharCode(E):E>191&&E<224?String.fromCharCode((31&E)<<6|63&this.get(_++)):String.fromCharCode((15&E)<<12|(63&this.get(_++))<<6|63&this.get(_++))}return f},b.prototype.parseStringBMP=function(g,y){for(var f,_,E="",S=g;S<y;)f=this.get(S++),_=this.get(S++),E+=String.fromCharCode(f<<8|_);return E},b.prototype.parseTime=function(g,y,f){var _=this.parseStringISO(g,y),E=(f?l:u).exec(_);return E?(f&&(E[1]=+E[1],E[1]+=+E[1]<70?2e3:1900),_=E[1]+"-"+E[2]+"-"+E[3]+" "+E[4],E[5]&&(_+=":"+E[5],E[6]&&(_+=":"+E[6],E[7]&&(_+="."+E[7]))),E[8]&&(_+=" UTC",E[8]!="Z"&&(_+=E[8],E[9]&&(_+=":"+E[9]))),_):"Unrecognized time: "+_},b.prototype.parseInteger=function(g,y){for(var f,_=this.get(g),E=_>127,S=E?255:0,k="";_==S&&++g<y;)_=this.get(g);if((f=y-g)===0)return E?-1:0;if(f>4){for(k=_,f<<=3;!(128&(+k^S));)k=+k<<1,--f;k="("+f+` bit)
`}E&&(_-=256);for(var A=new s.Int10(_),I=g+1;I<y;++I)A.mulAdd(256,this.get(I));return k+A.toString()},b.prototype.parseBitString=function(g,y,f){for(var _=this.get(g),E=(y-g-1<<3)-_,S="("+E+` bit)
`,k="",A=g+1;A<y;++A){for(var I=this.get(A),R=A==y-1?_:0,C=7;C>=R;--C)k+=I>>C&1?"1":"0";if(k.length>f)return S+n(k,f)}return S+k},b.prototype.parseOctetString=function(g,y,f){if(this.isASCII(g,y))return n(this.parseStringISO(g,y),f);var _=y-g,E="("+_+` byte)
`;f/=2,_>f&&(y=g+f);for(var S=g;S<y;++S)E+=this.hexByte(this.get(S));return _>f&&(E+=a),E},b.prototype.parseOID=function(g,y,f){for(var _="",E=new s.Int10,S=0,k=g;k<y;++k){var A=this.get(k);if(E.mulAdd(128,127&A),S+=7,!(128&A)){if(_==="")if((E=E.simplify())instanceof s.Int10)E.sub(80),_="2."+E.toString();else{var I=E<80?E<40?0:1:2;_=I+"."+(E-40*I)}else _+="."+E.toString();if(_.length>f)return n(_,f);E=new s.Int10,S=0}}return S>0&&(_+=".incomplete"),_},b}(),d=function(){function b(g,y,f,_,E){if(!(_ instanceof m))throw new Error("Invalid tag value.");this.stream=g,this.header=y,this.length=f,this.tag=_,this.sub=E}return b.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},b.prototype.content=function(g){if(this.tag===void 0)return null;g===void 0&&(g=1/0);var y=this.posContent(),f=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(y,y+f,g);switch(this.tag.tagNumber){case 1:return this.stream.get(y)===0?"false":"true";case 2:return this.stream.parseInteger(y,y+f);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(y,y+f,g);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(y,y+f,g);case 6:return this.stream.parseOID(y,y+f,g);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return n(this.stream.parseStringUTF(y,y+f),g);case 18:case 19:case 20:case 21:case 22:case 26:return n(this.stream.parseStringISO(y,y+f),g);case 30:return n(this.stream.parseStringBMP(y,y+f),g);case 23:case 24:return this.stream.parseTime(y,y+f,this.tag.tagNumber==23)}return null},b.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},b.prototype.toPrettyString=function(g){g===void 0&&(g="");var y=g+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(y+="+"),y+=this.length,this.tag.tagConstructed?y+=" (constructed)":!this.tag.isUniversal()||this.tag.tagNumber!=3&&this.tag.tagNumber!=4||this.sub===null||(y+=" (encapsulates)"),y+=`
`,this.sub!==null){g+="  ";for(var f=0,_=this.sub.length;f<_;++f)y+=this.sub[f].toPrettyString(g)}return y},b.prototype.posStart=function(){return this.stream.pos},b.prototype.posContent=function(){return this.stream.pos+this.header},b.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},b.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},b.decodeLength=function(g){var y=g.get(),f=127&y;if(f==y)return f;if(f>6)throw new Error("Length over 48 bits not supported at position "+(g.pos-1));if(f===0)return null;y=0;for(var _=0;_<f;++_)y=256*y+g.get();return y},b.prototype.getHexStringValue=function(){var g=this.toHexString(),y=2*this.header,f=2*this.length;return g.substr(y,f)},b.decode=function(g){var y;y=g instanceof p?g:new p(g,0);var f=new p(y),_=new m(y),E=b.decodeLength(y),S=y.pos,k=S-f.pos,A=null,I=function(){var C=[];if(E!==null){for(var x=S+E;y.pos<x;)C[C.length]=b.decode(y);if(y.pos!=x)throw new Error("Content size is not correct for container starting at offset "+S)}else try{for(;;){var P=b.decode(y);if(P.tag.isEOC())break;C[C.length]=P}E=S-y.pos}catch(O){throw new Error("Exception while decoding undefined length content: "+O)}return C};if(_.tagConstructed)A=I();else if(_.isUniversal()&&(_.tagNumber==3||_.tagNumber==4))try{if(_.tagNumber==3&&y.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");A=I();for(var R=0;R<A.length;++R)if(A[R].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(C){A=null}if(A===null){if(E===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+S);y.pos=S+Math.abs(E)}return new b(f,k,E,_,A)},b}(),m=function(){function b(g){var y=g.get();if(this.tagClass=y>>6,this.tagConstructed=(32&y)!=0,this.tagNumber=31&y,this.tagNumber==31){var f=new s.Int10;do y=g.get(),f.mulAdd(128,127&y);while(128&y);this.tagNumber=f.simplify()}}return b.prototype.isUniversal=function(){return this.tagClass===0},b.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},b}()},"./node_modules/jsencrypt/lib/lib/asn1js/base64.js":function(e,t,r){r.r(t),r.d(t,{Base64:function(){return s}});var n,s={decode:function(a){var l;if(n===void 0){var u=`= \f
\r	 \u2028\u2029`;for(n=Object.create(null),l=0;l<64;++l)n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l)]=l;for(n["-"]=62,n._=63,l=0;l<u.length;++l)n[u.charAt(l)]=-1}var p=[],d=0,m=0;for(l=0;l<a.length;++l){var b=a.charAt(l);if(b=="=")break;if((b=n[b])!=-1){if(b===void 0)throw new Error("Illegal character at offset "+l);d|=b,++m>=4?(p[p.length]=d>>16,p[p.length]=d>>8&255,p[p.length]=255&d,d=0,m=0):d<<=6}}switch(m){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:p[p.length]=d>>10;break;case 3:p[p.length]=d>>16,p[p.length]=d>>8&255}return p},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(a){var l=s.re.exec(a);if(l)if(l[1])a=l[1];else{if(!l[2])throw new Error("RegExp out of sync");a=l[2]}return s.decode(a)}}},"./node_modules/jsencrypt/lib/lib/asn1js/hex.js":function(e,t,r){r.r(t),r.d(t,{Hex:function(){return s}});var n,s={decode:function(a){var l;if(n===void 0){var u="0123456789ABCDEF",p=` \f
\r	 \u2028\u2029`;for(n={},l=0;l<16;++l)n[u.charAt(l)]=l;for(u=u.toLowerCase(),l=10;l<16;++l)n[u.charAt(l)]=l;for(l=0;l<p.length;++l)n[p.charAt(l)]=-1}var d=[],m=0,b=0;for(l=0;l<a.length;++l){var g=a.charAt(l);if(g=="=")break;if((g=n[g])!=-1){if(g===void 0)throw new Error("Illegal character at offset "+l);m|=g,++b>=2?(d[d.length]=m,m=0,b=0):m<<=4}}if(b)throw new Error("Hex encoding incomplete: 4 bits missing");return d}}},"./node_modules/jsencrypt/lib/lib/asn1js/int10.js":function(e,t,r){r.r(t),r.d(t,{Int10:function(){return n}});var n=function(){function s(a){this.buf=[+a||0]}return s.prototype.mulAdd=function(a,l){var u,p,d=this.buf,m=d.length;for(u=0;u<m;++u)p=d[u]*a+l,p<1e13?l=0:(l=0|p/1e13,p-=1e13*l),d[u]=p;l>0&&(d[u]=l)},s.prototype.sub=function(a){var l,u,p=this.buf,d=p.length;for(l=0;l<d;++l)u=p[l]-a,u<0?(u+=1e13,a=1):a=0,p[l]=u;for(;p[p.length-1]===0;)p.pop()},s.prototype.toString=function(a){if((a||10)!=10)throw new Error("only base 10 is supported");for(var l=this.buf,u=l[l.length-1].toString(),p=l.length-2;p>=0;--p)u+=(1e13+l[p]).toString().substring(1);return u},s.prototype.valueOf=function(){for(var a=this.buf,l=0,u=a.length-1;u>=0;--u)l=1e13*l+a[u];return l},s.prototype.simplify=function(){var a=this.buf;return a.length==1?a[0]:this},s}()},"./node_modules/jsencrypt/lib/lib/jsbn/base64.js":function(e,t,r){function n(d){var m,b,g="";for(m=0;m+3<=d.length;m+=3)b=parseInt(d.substring(m,m+3),16),g+=u.charAt(b>>6)+u.charAt(63&b);for(m+1==d.length?(b=parseInt(d.substring(m,m+1),16),g+=u.charAt(b<<2)):m+2==d.length&&(b=parseInt(d.substring(m,m+2),16),g+=u.charAt(b>>2)+u.charAt((3&b)<<4));(3&g.length)>0;)g+=p;return g}function s(d){var m,b="",g=0,y=0;for(m=0;m<d.length&&d.charAt(m)!=p;++m){var f=u.indexOf(d.charAt(m));f<0||(g==0?(b+=(0,l.int2char)(f>>2),y=3&f,g=1):g==1?(b+=(0,l.int2char)(y<<2|f>>4),y=15&f,g=2):g==2?(b+=(0,l.int2char)(y),b+=(0,l.int2char)(f>>2),y=3&f,g=3):(b+=(0,l.int2char)(y<<2|f>>4),b+=(0,l.int2char)(15&f),g=0))}return g==1&&(b+=(0,l.int2char)(y<<2)),b}function a(d){var m,b=s(d),g=[];for(m=0;2*m<b.length;++m)g[m]=parseInt(b.substring(2*m,2*m+2),16);return g}r.r(t),r.d(t,{hex2b64:function(){return n},b64tohex:function(){return s},b64toBA:function(){return a}});var l=r("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="="},"./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js":function(e,t,r){function n(){return new g(null)}function s(R,C){return new g(R,C)}function a(R,C){var x=I[R.charCodeAt(C)];return x==null?-1:x}function l(R){var C=n();return C.fromInt(R),C}function u(R){var C,x=1;return(C=R>>>16)!=0&&(R=C,x+=16),(C=R>>8)!=0&&(R=C,x+=8),(C=R>>4)!=0&&(R=C,x+=4),(C=R>>2)!=0&&(R=C,x+=2),(C=R>>1)!=0&&(R=C,x+=1),x}r.r(t),r.d(t,{BigInteger:function(){return g},nbi:function(){return n},parseBigInt:function(){return s},intAt:function(){return a},nbv:function(){return l},nbits:function(){return u}});var p,d=r("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),m=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],b=(1<<26)/m[m.length-1],g=function(){function R(C,x,P){C!=null&&(typeof C=="number"?this.fromNumber(C,x,P):x==null&&typeof C!="string"?this.fromString(C,256):this.fromString(C,x))}return R.prototype.toString=function(C){if(this.s<0)return"-"+this.negate().toString(C);var x;if(C==16)x=4;else if(C==8)x=3;else if(C==2)x=1;else if(C==32)x=5;else{if(C!=4)return this.toRadix(C);x=2}var P,O=(1<<x)-1,V=!1,H="",F=this.t,U=this.DB-F*this.DB%x;if(F-- >0)for(U<this.DB&&(P=this[F]>>U)>0&&(V=!0,H=(0,d.int2char)(P));F>=0;)U<x?(P=(this[F]&(1<<U)-1)<<x-U,P|=this[--F]>>(U+=this.DB-x)):(P=this[F]>>(U-=x)&O,U<=0&&(U+=this.DB,--F)),P>0&&(V=!0),V&&(H+=(0,d.int2char)(P));return V?H:"0"},R.prototype.negate=function(){var C=n();return R.ZERO.subTo(this,C),C},R.prototype.abs=function(){return this.s<0?this.negate():this},R.prototype.compareTo=function(C){var x=this.s-C.s;if(x!=0)return x;var P=this.t;if((x=P-C.t)!=0)return this.s<0?-x:x;for(;--P>=0;)if((x=this[P]-C[P])!=0)return x;return 0},R.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+u(this[this.t-1]^this.s&this.DM)},R.prototype.mod=function(C){var x=n();return this.abs().divRemTo(C,null,x),this.s<0&&x.compareTo(R.ZERO)>0&&C.subTo(x,x),x},R.prototype.modPowInt=function(C,x){var P;return P=C<256||x.isEven()?new f(x):new _(x),this.exp(C,P)},R.prototype.clone=function(){var C=n();return this.copyTo(C),C},R.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},R.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},R.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},R.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},R.prototype.toByteArray=function(){var C=this.t,x=[];x[0]=this.s;var P,O=this.DB-C*this.DB%8,V=0;if(C-- >0)for(O<this.DB&&(P=this[C]>>O)!=(this.s&this.DM)>>O&&(x[V++]=P|this.s<<this.DB-O);C>=0;)O<8?(P=(this[C]&(1<<O)-1)<<8-O,P|=this[--C]>>(O+=this.DB-8)):(P=this[C]>>(O-=8)&255,O<=0&&(O+=this.DB,--C)),128&P&&(P|=-256),V==0&&(128&this.s)!=(128&P)&&++V,(V>0||P!=this.s)&&(x[V++]=P);return x},R.prototype.equals=function(C){return this.compareTo(C)==0},R.prototype.min=function(C){return this.compareTo(C)<0?this:C},R.prototype.max=function(C){return this.compareTo(C)>0?this:C},R.prototype.and=function(C){var x=n();return this.bitwiseTo(C,d.op_and,x),x},R.prototype.or=function(C){var x=n();return this.bitwiseTo(C,d.op_or,x),x},R.prototype.xor=function(C){var x=n();return this.bitwiseTo(C,d.op_xor,x),x},R.prototype.andNot=function(C){var x=n();return this.bitwiseTo(C,d.op_andnot,x),x},R.prototype.not=function(){for(var C=n(),x=0;x<this.t;++x)C[x]=this.DM&~this[x];return C.t=this.t,C.s=~this.s,C},R.prototype.shiftLeft=function(C){var x=n();return C<0?this.rShiftTo(-C,x):this.lShiftTo(C,x),x},R.prototype.shiftRight=function(C){var x=n();return C<0?this.lShiftTo(-C,x):this.rShiftTo(C,x),x},R.prototype.getLowestSetBit=function(){for(var C=0;C<this.t;++C)if(this[C]!=0)return C*this.DB+(0,d.lbit)(this[C]);return this.s<0?this.t*this.DB:-1},R.prototype.bitCount=function(){for(var C=0,x=this.s&this.DM,P=0;P<this.t;++P)C+=(0,d.cbit)(this[P]^x);return C},R.prototype.testBit=function(C){var x=Math.floor(C/this.DB);return x>=this.t?this.s!=0:(this[x]&1<<C%this.DB)!=0},R.prototype.setBit=function(C){return this.changeBit(C,d.op_or)},R.prototype.clearBit=function(C){return this.changeBit(C,d.op_andnot)},R.prototype.flipBit=function(C){return this.changeBit(C,d.op_xor)},R.prototype.add=function(C){var x=n();return this.addTo(C,x),x},R.prototype.subtract=function(C){var x=n();return this.subTo(C,x),x},R.prototype.multiply=function(C){var x=n();return this.multiplyTo(C,x),x},R.prototype.divide=function(C){var x=n();return this.divRemTo(C,x,null),x},R.prototype.remainder=function(C){var x=n();return this.divRemTo(C,null,x),x},R.prototype.divideAndRemainder=function(C){var x=n(),P=n();return this.divRemTo(C,x,P),[x,P]},R.prototype.modPow=function(C,x){var P,O,V=C.bitLength(),H=l(1);if(V<=0)return H;P=V<18?1:V<48?3:V<144?4:V<768?5:6,O=V<8?new f(x):x.isEven()?new E(x):new _(x);var F=[],U=3,K=P-1,z=(1<<P)-1;if(F[1]=O.convert(this),P>1){var L=n();for(O.sqrTo(F[1],L);U<=z;)F[U]=n(),O.mulTo(L,F[U-2],F[U]),U+=2}var j,M,D=C.t-1,N=!0,B=n();for(V=u(C[D])-1;D>=0;){for(V>=K?j=C[D]>>V-K&z:(j=(C[D]&(1<<V+1)-1)<<K-V,D>0&&(j|=C[D-1]>>this.DB+V-K)),U=P;!(1&j);)j>>=1,--U;if((V-=U)<0&&(V+=this.DB,--D),N)F[j].copyTo(H),N=!1;else{for(;U>1;)O.sqrTo(H,B),O.sqrTo(B,H),U-=2;U>0?O.sqrTo(H,B):(M=H,H=B,B=M),O.mulTo(B,F[j],H)}for(;D>=0&&!(C[D]&1<<V);)O.sqrTo(H,B),M=H,H=B,B=M,--V<0&&(V=this.DB-1,--D)}return O.revert(H)},R.prototype.modInverse=function(C){var x=C.isEven();if(this.isEven()&&x||C.signum()==0)return R.ZERO;for(var P=C.clone(),O=this.clone(),V=l(1),H=l(0),F=l(0),U=l(1);P.signum()!=0;){for(;P.isEven();)P.rShiftTo(1,P),x?(V.isEven()&&H.isEven()||(V.addTo(this,V),H.subTo(C,H)),V.rShiftTo(1,V)):H.isEven()||H.subTo(C,H),H.rShiftTo(1,H);for(;O.isEven();)O.rShiftTo(1,O),x?(F.isEven()&&U.isEven()||(F.addTo(this,F),U.subTo(C,U)),F.rShiftTo(1,F)):U.isEven()||U.subTo(C,U),U.rShiftTo(1,U);P.compareTo(O)>=0?(P.subTo(O,P),x&&V.subTo(F,V),H.subTo(U,H)):(O.subTo(P,O),x&&F.subTo(V,F),U.subTo(H,U))}return O.compareTo(R.ONE)!=0?R.ZERO:U.compareTo(C)>=0?U.subtract(C):U.signum()<0?(U.addTo(C,U),U.signum()<0?U.add(C):U):U},R.prototype.pow=function(C){return this.exp(C,new y)},R.prototype.gcd=function(C){var x=this.s<0?this.negate():this.clone(),P=C.s<0?C.negate():C.clone();if(x.compareTo(P)<0){var O=x;x=P,P=O}var V=x.getLowestSetBit(),H=P.getLowestSetBit();if(H<0)return x;for(V<H&&(H=V),H>0&&(x.rShiftTo(H,x),P.rShiftTo(H,P));x.signum()>0;)(V=x.getLowestSetBit())>0&&x.rShiftTo(V,x),(V=P.getLowestSetBit())>0&&P.rShiftTo(V,P),x.compareTo(P)>=0?(x.subTo(P,x),x.rShiftTo(1,x)):(P.subTo(x,P),P.rShiftTo(1,P));return H>0&&P.lShiftTo(H,P),P},R.prototype.isProbablePrime=function(C){var x,P=this.abs();if(P.t==1&&P[0]<=m[m.length-1]){for(x=0;x<m.length;++x)if(P[0]==m[x])return!0;return!1}if(P.isEven())return!1;for(x=1;x<m.length;){for(var O=m[x],V=x+1;V<m.length&&O<b;)O*=m[V++];for(O=P.modInt(O);x<V;)if(O%m[x++]==0)return!1}return P.millerRabin(C)},R.prototype.copyTo=function(C){for(var x=this.t-1;x>=0;--x)C[x]=this[x];C.t=this.t,C.s=this.s},R.prototype.fromInt=function(C){this.t=1,this.s=C<0?-1:0,C>0?this[0]=C:C<-1?this[0]=C+this.DV:this.t=0},R.prototype.fromString=function(C,x){var P;if(x==16)P=4;else if(x==8)P=3;else if(x==256)P=8;else if(x==2)P=1;else if(x==32)P=5;else{if(x!=4)return void this.fromRadix(C,x);P=2}this.t=0,this.s=0;for(var O=C.length,V=!1,H=0;--O>=0;){var F=P==8?255&+C[O]:a(C,O);F<0?C.charAt(O)=="-"&&(V=!0):(V=!1,H==0?this[this.t++]=F:H+P>this.DB?(this[this.t-1]|=(F&(1<<this.DB-H)-1)<<H,this[this.t++]=F>>this.DB-H):this[this.t-1]|=F<<H,(H+=P)>=this.DB&&(H-=this.DB))}P==8&&128&+C[0]&&(this.s=-1,H>0&&(this[this.t-1]|=(1<<this.DB-H)-1<<H)),this.clamp(),V&&R.ZERO.subTo(this,this)},R.prototype.clamp=function(){for(var C=this.s&this.DM;this.t>0&&this[this.t-1]==C;)--this.t},R.prototype.dlShiftTo=function(C,x){var P;for(P=this.t-1;P>=0;--P)x[P+C]=this[P];for(P=C-1;P>=0;--P)x[P]=0;x.t=this.t+C,x.s=this.s},R.prototype.drShiftTo=function(C,x){for(var P=C;P<this.t;++P)x[P-C]=this[P];x.t=Math.max(this.t-C,0),x.s=this.s},R.prototype.lShiftTo=function(C,x){for(var P=C%this.DB,O=this.DB-P,V=(1<<O)-1,H=Math.floor(C/this.DB),F=this.s<<P&this.DM,U=this.t-1;U>=0;--U)x[U+H+1]=this[U]>>O|F,F=(this[U]&V)<<P;for(var U=H-1;U>=0;--U)x[U]=0;x[H]=F,x.t=this.t+H+1,x.s=this.s,x.clamp()},R.prototype.rShiftTo=function(C,x){x.s=this.s;var P=Math.floor(C/this.DB);if(P>=this.t)return void(x.t=0);var O=C%this.DB,V=this.DB-O,H=(1<<O)-1;x[0]=this[P]>>O;for(var F=P+1;F<this.t;++F)x[F-P-1]|=(this[F]&H)<<V,x[F-P]=this[F]>>O;O>0&&(x[this.t-P-1]|=(this.s&H)<<V),x.t=this.t-P,x.clamp()},R.prototype.subTo=function(C,x){for(var P=0,O=0,V=Math.min(C.t,this.t);P<V;)O+=this[P]-C[P],x[P++]=O&this.DM,O>>=this.DB;if(C.t<this.t){for(O-=C.s;P<this.t;)O+=this[P],x[P++]=O&this.DM,O>>=this.DB;O+=this.s}else{for(O+=this.s;P<C.t;)O-=C[P],x[P++]=O&this.DM,O>>=this.DB;O-=C.s}x.s=O<0?-1:0,O<-1?x[P++]=this.DV+O:O>0&&(x[P++]=O),x.t=P,x.clamp()},R.prototype.multiplyTo=function(C,x){var P=this.abs(),O=C.abs(),V=P.t;for(x.t=V+O.t;--V>=0;)x[V]=0;for(V=0;V<O.t;++V)x[V+P.t]=P.am(0,O[V],x,V,0,P.t);x.s=0,x.clamp(),this.s!=C.s&&R.ZERO.subTo(x,x)},R.prototype.squareTo=function(C){for(var x=this.abs(),P=C.t=2*x.t;--P>=0;)C[P]=0;for(P=0;P<x.t-1;++P){var O=x.am(P,x[P],C,2*P,0,1);(C[P+x.t]+=x.am(P+1,2*x[P],C,2*P+1,O,x.t-P-1))>=x.DV&&(C[P+x.t]-=x.DV,C[P+x.t+1]=1)}C.t>0&&(C[C.t-1]+=x.am(P,x[P],C,2*P,0,1)),C.s=0,C.clamp()},R.prototype.divRemTo=function(C,x,P){var O=C.abs();if(!(O.t<=0)){var V=this.abs();if(V.t<O.t)return x!=null&&x.fromInt(0),void(P!=null&&this.copyTo(P));P==null&&(P=n());var H=n(),F=this.s,U=C.s,K=this.DB-u(O[O.t-1]);K>0?(O.lShiftTo(K,H),V.lShiftTo(K,P)):(O.copyTo(H),V.copyTo(P));var z=H.t,L=H[z-1];if(L!=0){var j=L*(1<<this.F1)+(z>1?H[z-2]>>this.F2:0),M=this.FV/j,D=(1<<this.F1)/j,N=1<<this.F2,B=P.t,G=B-z,q=x==null?n():x;for(H.dlShiftTo(G,q),P.compareTo(q)>=0&&(P[P.t++]=1,P.subTo(q,P)),R.ONE.dlShiftTo(z,q),q.subTo(H,H);H.t<z;)H[H.t++]=0;for(;--G>=0;){var Q=P[--B]==L?this.DM:Math.floor(P[B]*M+(P[B-1]+N)*D);if((P[B]+=H.am(0,Q,P,G,0,z))<Q)for(H.dlShiftTo(G,q),P.subTo(q,P);P[B]<--Q;)P.subTo(q,P)}x!=null&&(P.drShiftTo(z,x),F!=U&&R.ZERO.subTo(x,x)),P.t=z,P.clamp(),K>0&&P.rShiftTo(K,P),F<0&&R.ZERO.subTo(P,P)}}},R.prototype.invDigit=function(){if(this.t<1)return 0;var C=this[0];if(!(1&C))return 0;var x=3&C;return x=x*(2-(15&C)*x)&15,x=x*(2-(255&C)*x)&255,x=x*(2-((65535&C)*x&65535))&65535,x=x*(2-C*x%this.DV)%this.DV,x>0?this.DV-x:-x},R.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},R.prototype.exp=function(C,x){if(C>4294967295||C<1)return R.ONE;var P=n(),O=n(),V=x.convert(this),H=u(C)-1;for(V.copyTo(P);--H>=0;)if(x.sqrTo(P,O),(C&1<<H)>0)x.mulTo(O,V,P);else{var F=P;P=O,O=F}return x.revert(P)},R.prototype.chunkSize=function(C){return Math.floor(Math.LN2*this.DB/Math.log(C))},R.prototype.toRadix=function(C){if(C==null&&(C=10),this.signum()==0||C<2||C>36)return"0";var x=this.chunkSize(C),P=Math.pow(C,x),O=l(P),V=n(),H=n(),F="";for(this.divRemTo(O,V,H);V.signum()>0;)F=(P+H.intValue()).toString(C).substr(1)+F,V.divRemTo(O,V,H);return H.intValue().toString(C)+F},R.prototype.fromRadix=function(C,x){this.fromInt(0),x==null&&(x=10);for(var P=this.chunkSize(x),O=Math.pow(x,P),V=!1,H=0,F=0,U=0;U<C.length;++U){var K=a(C,U);K<0?C.charAt(U)=="-"&&this.signum()==0&&(V=!0):(F=x*F+K,++H>=P&&(this.dMultiply(O),this.dAddOffset(F,0),H=0,F=0))}H>0&&(this.dMultiply(Math.pow(x,H)),this.dAddOffset(F,0)),V&&R.ZERO.subTo(this,this)},R.prototype.fromNumber=function(C,x,P){if(typeof x=="number")if(C<2)this.fromInt(1);else for(this.fromNumber(C,P),this.testBit(C-1)||this.bitwiseTo(R.ONE.shiftLeft(C-1),d.op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(x);)this.dAddOffset(2,0),this.bitLength()>C&&this.subTo(R.ONE.shiftLeft(C-1),this);else{var O=[],V=7&C;O.length=1+(C>>3),x.nextBytes(O),V>0?O[0]&=(1<<V)-1:O[0]=0,this.fromString(O,256)}},R.prototype.bitwiseTo=function(C,x,P){var O,V,H=Math.min(C.t,this.t);for(O=0;O<H;++O)P[O]=x(this[O],C[O]);if(C.t<this.t){for(V=C.s&this.DM,O=H;O<this.t;++O)P[O]=x(this[O],V);P.t=this.t}else{for(V=this.s&this.DM,O=H;O<C.t;++O)P[O]=x(V,C[O]);P.t=C.t}P.s=x(this.s,C.s),P.clamp()},R.prototype.changeBit=function(C,x){var P=R.ONE.shiftLeft(C);return this.bitwiseTo(P,x,P),P},R.prototype.addTo=function(C,x){for(var P=0,O=0,V=Math.min(C.t,this.t);P<V;)O+=this[P]+C[P],x[P++]=O&this.DM,O>>=this.DB;if(C.t<this.t){for(O+=C.s;P<this.t;)O+=this[P],x[P++]=O&this.DM,O>>=this.DB;O+=this.s}else{for(O+=this.s;P<C.t;)O+=C[P],x[P++]=O&this.DM,O>>=this.DB;O+=C.s}x.s=O<0?-1:0,O>0?x[P++]=O:O<-1&&(x[P++]=this.DV+O),x.t=P,x.clamp()},R.prototype.dMultiply=function(C){this[this.t]=this.am(0,C-1,this,0,0,this.t),++this.t,this.clamp()},R.prototype.dAddOffset=function(C,x){if(C!=0){for(;this.t<=x;)this[this.t++]=0;for(this[x]+=C;this[x]>=this.DV;)this[x]-=this.DV,++x>=this.t&&(this[this.t++]=0),++this[x]}},R.prototype.multiplyLowerTo=function(C,x,P){var O=Math.min(this.t+C.t,x);for(P.s=0,P.t=O;O>0;)P[--O]=0;for(var V=P.t-this.t;O<V;++O)P[O+this.t]=this.am(0,C[O],P,O,0,this.t);for(var V=Math.min(C.t,x);O<V;++O)this.am(0,C[O],P,O,0,x-O);P.clamp()},R.prototype.multiplyUpperTo=function(C,x,P){--x;var O=P.t=this.t+C.t-x;for(P.s=0;--O>=0;)P[O]=0;for(O=Math.max(x-this.t,0);O<C.t;++O)P[this.t+O-x]=this.am(x-O,C[O],P,0,0,this.t+O-x);P.clamp(),P.drShiftTo(1,P)},R.prototype.modInt=function(C){if(C<=0)return 0;var x=this.DV%C,P=this.s<0?C-1:0;if(this.t>0)if(x==0)P=this[0]%C;else for(var O=this.t-1;O>=0;--O)P=(x*P+this[O])%C;return P},R.prototype.millerRabin=function(C){var x=this.subtract(R.ONE),P=x.getLowestSetBit();if(P<=0)return!1;var O=x.shiftRight(P);(C=C+1>>1)>m.length&&(C=m.length);for(var V=n(),H=0;H<C;++H){V.fromInt(m[Math.floor(Math.random()*m.length)]);var F=V.modPow(O,this);if(F.compareTo(R.ONE)!=0&&F.compareTo(x)!=0){for(var U=1;U++<P&&F.compareTo(x)!=0;)if(F=F.modPowInt(2,this),F.compareTo(R.ONE)==0)return!1;if(F.compareTo(x)!=0)return!1}}return!0},R.prototype.square=function(){var C=n();return this.squareTo(C),C},R.prototype.gcda=function(C,x){var P=this.s<0?this.negate():this.clone(),O=C.s<0?C.negate():C.clone();if(P.compareTo(O)<0){var V=P;P=O,O=V}var H=P.getLowestSetBit(),F=O.getLowestSetBit();if(F<0)return void x(P);H<F&&(F=H),F>0&&(P.rShiftTo(F,P),O.rShiftTo(F,O));var U=function K(){(H=P.getLowestSetBit())>0&&P.rShiftTo(H,P),(H=O.getLowestSetBit())>0&&O.rShiftTo(H,O),P.compareTo(O)>=0?(P.subTo(O,P),P.rShiftTo(1,P)):(O.subTo(P,O),O.rShiftTo(1,O)),P.signum()>0?setTimeout(K,0):(F>0&&O.lShiftTo(F,O),setTimeout(function(){x(O)},0))};setTimeout(U,10)},R.prototype.fromNumberAsync=function(C,x,P,O){if(typeof x=="number")if(C<2)this.fromInt(1);else{this.fromNumber(C,P),this.testBit(C-1)||this.bitwiseTo(R.ONE.shiftLeft(C-1),d.op_or,this),this.isEven()&&this.dAddOffset(1,0);var V=this,H=function K(){V.dAddOffset(2,0),V.bitLength()>C&&V.subTo(R.ONE.shiftLeft(C-1),V),V.isProbablePrime(x)?setTimeout(function(){O()},0):setTimeout(K,0)};setTimeout(H,0)}else{var F=[],U=7&C;F.length=1+(C>>3),x.nextBytes(F),U>0?F[0]&=(1<<U)-1:F[0]=0,this.fromString(F,256)}},R}(),y=function(){function R(){}return R.prototype.convert=function(C){return C},R.prototype.revert=function(C){return C},R.prototype.mulTo=function(C,x,P){C.multiplyTo(x,P)},R.prototype.sqrTo=function(C,x){C.squareTo(x)},R}(),f=function(){function R(C){this.m=C}return R.prototype.convert=function(C){return C.s<0||C.compareTo(this.m)>=0?C.mod(this.m):C},R.prototype.revert=function(C){return C},R.prototype.reduce=function(C){C.divRemTo(this.m,null,C)},R.prototype.mulTo=function(C,x,P){C.multiplyTo(x,P),this.reduce(P)},R.prototype.sqrTo=function(C,x){C.squareTo(x),this.reduce(x)},R}(),_=function(){function R(C){this.m=C,this.mp=C.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<C.DB-15)-1,this.mt2=2*C.t}return R.prototype.convert=function(C){var x=n();return C.abs().dlShiftTo(this.m.t,x),x.divRemTo(this.m,null,x),C.s<0&&x.compareTo(g.ZERO)>0&&this.m.subTo(x,x),x},R.prototype.revert=function(C){var x=n();return C.copyTo(x),this.reduce(x),x},R.prototype.reduce=function(C){for(;C.t<=this.mt2;)C[C.t++]=0;for(var x=0;x<this.m.t;++x){var P=32767&C[x],O=P*this.mpl+((P*this.mph+(C[x]>>15)*this.mpl&this.um)<<15)&C.DM;for(P=x+this.m.t,C[P]+=this.m.am(0,O,C,x,0,this.m.t);C[P]>=C.DV;)C[P]-=C.DV,C[++P]++}C.clamp(),C.drShiftTo(this.m.t,C),C.compareTo(this.m)>=0&&C.subTo(this.m,C)},R.prototype.mulTo=function(C,x,P){C.multiplyTo(x,P),this.reduce(P)},R.prototype.sqrTo=function(C,x){C.squareTo(x),this.reduce(x)},R}(),E=function(){function R(C){this.m=C,this.r2=n(),this.q3=n(),g.ONE.dlShiftTo(2*C.t,this.r2),this.mu=this.r2.divide(C)}return R.prototype.convert=function(C){if(C.s<0||C.t>2*this.m.t)return C.mod(this.m);if(C.compareTo(this.m)<0)return C;var x=n();return C.copyTo(x),this.reduce(x),x},R.prototype.revert=function(C){return C},R.prototype.reduce=function(C){for(C.drShiftTo(this.m.t-1,this.r2),C.t>this.m.t+1&&(C.t=this.m.t+1,C.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);C.compareTo(this.r2)<0;)C.dAddOffset(1,this.m.t+1);for(C.subTo(this.r2,C);C.compareTo(this.m)>=0;)C.subTo(this.m,C)},R.prototype.mulTo=function(C,x,P){C.multiplyTo(x,P),this.reduce(P)},R.prototype.sqrTo=function(C,x){C.squareTo(x),this.reduce(x)},R}(),S=typeof navigator<"u";S&&navigator.appName=="Microsoft Internet Explorer"?(g.prototype.am=function(R,C,x,P,O,V){for(var H=32767&C,F=C>>15;--V>=0;){var U=32767&this[R],K=this[R++]>>15,z=F*U+K*H;U=H*U+((32767&z)<<15)+x[P]+(1073741823&O),O=(U>>>30)+(z>>>15)+F*K+(O>>>30),x[P++]=1073741823&U}return O},p=30):S&&navigator.appName!="Netscape"?(g.prototype.am=function(R,C,x,P,O,V){for(;--V>=0;){var H=C*this[R++]+x[P]+O;O=Math.floor(H/67108864),x[P++]=67108863&H}return O},p=26):(g.prototype.am=function(R,C,x,P,O,V){for(var H=16383&C,F=C>>14;--V>=0;){var U=16383&this[R],K=this[R++]>>14,z=F*U+K*H;U=H*U+((16383&z)<<14)+x[P]+O,O=(U>>28)+(z>>14)+F*K,x[P++]=268435455&U}return O},p=28),g.prototype.DB=p,g.prototype.DM=(1<<p)-1,g.prototype.DV=1<<p,g.prototype.FV=Math.pow(2,52),g.prototype.F1=52-p,g.prototype.F2=2*p-52;var k,A,I=[];for(k="0".charCodeAt(0),A=0;A<=9;++A)I[k++]=A;for(k="a".charCodeAt(0),A=10;A<36;++A)I[k++]=A;for(k="A".charCodeAt(0),A=10;A<36;++A)I[k++]=A;g.ZERO=l(0),g.ONE=l(1)},"./node_modules/jsencrypt/lib/lib/jsbn/prng4.js":function(e,t,r){function n(){return new s}r.r(t),r.d(t,{Arcfour:function(){return s},prng_newstate:function(){return n},rng_psize:function(){return a}});var s=function(){function l(){this.i=0,this.j=0,this.S=[]}return l.prototype.init=function(u){var p,d,m;for(p=0;p<256;++p)this.S[p]=p;for(d=0,p=0;p<256;++p)d=d+this.S[p]+u[p%u.length]&255,m=this.S[p],this.S[p]=this.S[d],this.S[d]=m;this.i=0,this.j=0},l.prototype.next=function(){var u;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,u=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=u,this.S[u+this.S[this.i]&255]},l}(),a=256},"./node_modules/jsencrypt/lib/lib/jsbn/rng.js":function(e,t,r){function n(){if(s==null){for(s=(0,l.prng_newstate)();a<l.rng_psize;){var y=Math.floor(65536*Math.random());u[a++]=255&y}for(s.init(u),a=0;a<u.length;++a)u[a]=0;a=0}return s.next()}r.r(t),r.d(t,{SecureRandom:function(){return g}});var s,a,l=r("./node_modules/jsencrypt/lib/lib/jsbn/prng4.js"),u=null;if(u==null){u=[],a=0;var p=void 0;if(window.crypto&&window.crypto.getRandomValues){var d=new Uint32Array(256);for(window.crypto.getRandomValues(d),p=0;p<d.length;++p)u[a++]=255&d[p]}var m=0,b=function y(f){if((m=m||0)>=256||a>=l.rng_psize)return void(window.removeEventListener?window.removeEventListener("mousemove",y,!1):window.detachEvent&&window.detachEvent("onmousemove",y));try{var _=f.x+f.y;u[a++]=255&_,m+=1}catch(E){}};window.addEventListener?window.addEventListener("mousemove",b,!1):window.attachEvent&&window.attachEvent("onmousemove",b)}var g=function(){function y(){}return y.prototype.nextBytes=function(f){for(var _=0;_<f.length;++_)f[_]=n()},y}()},"./node_modules/jsencrypt/lib/lib/jsbn/rsa.js":function(e,t,r){function n(g,y){if(y<g.length+22)return null;for(var f=y-g.length-6,_="",E=0;E<f;E+=2)_+="ff";var S="0001"+_+"00"+g;return(0,p.parseBigInt)(S,16)}function s(g,y){if(y<g.length+11)return null;for(var f=[],_=g.length-1;_>=0&&y>0;){var E=g.charCodeAt(_--);E<128?f[--y]=E:E>127&&E<2048?(f[--y]=63&E|128,f[--y]=E>>6|192):(f[--y]=63&E|128,f[--y]=E>>6&63|128,f[--y]=E>>12|224)}f[--y]=0;for(var S=new d.SecureRandom,k=[];y>2;){for(k[0]=0;k[0]==0;)S.nextBytes(k);f[--y]=k[0]}return f[--y]=2,f[--y]=0,new p.BigInteger(f)}function a(g,y){for(var f=g.toByteArray(),_=0;_<f.length&&f[_]==0;)++_;if(f.length-_!=y-1||f[_]!=2)return null;for(++_;f[_]!=0;)if(++_>=f.length)return null;for(var E="";++_<f.length;){var S=255&f[_];S<128?E+=String.fromCharCode(S):S>191&&S<224?(E+=String.fromCharCode((31&S)<<6|63&f[_+1]),++_):(E+=String.fromCharCode((15&S)<<12|(63&f[_+1])<<6|63&f[_+2]),_+=2)}return E}function l(g){return b[g]||""}function u(g){for(var y in b)if(b.hasOwnProperty(y)){var f=b[y],_=f.length;if(g.substr(0,_)==f)return g.substr(_)}return g}r.r(t),r.d(t,{RSAKey:function(){return m}});var p=r("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),d=r("./node_modules/jsencrypt/lib/lib/jsbn/rng.js"),m=function(){function g(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return g.prototype.doPublic=function(y){return y.modPowInt(this.e,this.n)},g.prototype.doPrivate=function(y){if(this.p==null||this.q==null)return y.modPow(this.d,this.n);for(var f=y.mod(this.p).modPow(this.dmp1,this.p),_=y.mod(this.q).modPow(this.dmq1,this.q);f.compareTo(_)<0;)f=f.add(this.p);return f.subtract(_).multiply(this.coeff).mod(this.p).multiply(this.q).add(_)},g.prototype.setPublic=function(y,f){y!=null&&f!=null&&y.length>0&&f.length>0&&(this.n=(0,p.parseBigInt)(y,16),this.e=parseInt(f,16))},g.prototype.encrypt=function(y){var f=this.n.bitLength()+7>>3,_=s(y,f);if(_==null)return null;var E=this.doPublic(_);if(E==null)return null;for(var S=E.toString(16),k=S.length,A=0;A<2*f-k;A++)S="0"+S;return S},g.prototype.setPrivate=function(y,f,_){y!=null&&f!=null&&y.length>0&&f.length>0&&(this.n=(0,p.parseBigInt)(y,16),this.e=parseInt(f,16),this.d=(0,p.parseBigInt)(_,16))},g.prototype.setPrivateEx=function(y,f,_,E,S,k,A,I){y!=null&&f!=null&&y.length>0&&f.length>0&&(this.n=(0,p.parseBigInt)(y,16),this.e=parseInt(f,16),this.d=(0,p.parseBigInt)(_,16),this.p=(0,p.parseBigInt)(E,16),this.q=(0,p.parseBigInt)(S,16),this.dmp1=(0,p.parseBigInt)(k,16),this.dmq1=(0,p.parseBigInt)(A,16),this.coeff=(0,p.parseBigInt)(I,16))},g.prototype.generate=function(y,f){var _=new d.SecureRandom,E=y>>1;this.e=parseInt(f,16);for(var S=new p.BigInteger(f,16);;){for(;this.p=new p.BigInteger(y-E,1,_),this.p.subtract(p.BigInteger.ONE).gcd(S).compareTo(p.BigInteger.ONE)!=0||!this.p.isProbablePrime(10););for(;this.q=new p.BigInteger(E,1,_),this.q.subtract(p.BigInteger.ONE).gcd(S).compareTo(p.BigInteger.ONE)!=0||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var k=this.p;this.p=this.q,this.q=k}var A=this.p.subtract(p.BigInteger.ONE),I=this.q.subtract(p.BigInteger.ONE),R=A.multiply(I);if(R.gcd(S).compareTo(p.BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=S.modInverse(R),this.dmp1=this.d.mod(A),this.dmq1=this.d.mod(I),this.coeff=this.q.modInverse(this.p);break}}},g.prototype.decrypt=function(y){var f=(0,p.parseBigInt)(y,16),_=this.doPrivate(f);return _==null?null:a(_,this.n.bitLength()+7>>3)},g.prototype.generateAsync=function(y,f,_){var E=new d.SecureRandom,S=y>>1;this.e=parseInt(f,16);var k=new p.BigInteger(f,16),A=this,I=function R(){var C=function(){if(A.p.compareTo(A.q)<=0){var O=A.p;A.p=A.q,A.q=O}var V=A.p.subtract(p.BigInteger.ONE),H=A.q.subtract(p.BigInteger.ONE),F=V.multiply(H);F.gcd(k).compareTo(p.BigInteger.ONE)==0?(A.n=A.p.multiply(A.q),A.d=k.modInverse(F),A.dmp1=A.d.mod(V),A.dmq1=A.d.mod(H),A.coeff=A.q.modInverse(A.p),setTimeout(function(){_()},0)):setTimeout(R,0)},x=function O(){A.q=(0,p.nbi)(),A.q.fromNumberAsync(S,1,E,function(){A.q.subtract(p.BigInteger.ONE).gcda(k,function(V){V.compareTo(p.BigInteger.ONE)==0&&A.q.isProbablePrime(10)?setTimeout(C,0):setTimeout(O,0)})})},P=function O(){A.p=(0,p.nbi)(),A.p.fromNumberAsync(y-S,1,E,function(){A.p.subtract(p.BigInteger.ONE).gcda(k,function(V){V.compareTo(p.BigInteger.ONE)==0&&A.p.isProbablePrime(10)?setTimeout(x,0):setTimeout(O,0)})})};setTimeout(P,0)};setTimeout(I,0)},g.prototype.sign=function(y,f,_){var E=l(_),S=E+f(y).toString(),k=n(S,this.n.bitLength()/4);if(k==null)return null;var A=this.doPrivate(k);if(A==null)return null;var I=A.toString(16);return 1&I.length?"0"+I:I},g.prototype.verify=function(y,f,_){var E=(0,p.parseBigInt)(f,16),S=this.doPublic(E);return S==null?null:u(S.toString(16).replace(/^1f+00/,""))==_(y).toString()},g}(),b={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"}},"./node_modules/jsencrypt/lib/lib/jsbn/util.js":function(e,t,r){function n(b){return m.charAt(b)}function s(b,g){return b&g}function a(b,g){return b|g}function l(b,g){return b^g}function u(b,g){return b&~g}function p(b){if(b==0)return-1;var g=0;return!(65535&b)&&(b>>=16,g+=16),!(255&b)&&(b>>=8,g+=8),!(15&b)&&(b>>=4,g+=4),!(3&b)&&(b>>=2,g+=2),!(1&b)&&++g,g}function d(b){for(var g=0;b!=0;)b&=b-1,++g;return g}r.r(t),r.d(t,{int2char:function(){return n},op_and:function(){return s},op_or:function(){return a},op_xor:function(){return l},op_andnot:function(){return u},lbit:function(){return p},cbit:function(){return d}});var m="0123456789abcdefghijklmnopqrstuvwxyz"},"./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js":function(e,t,r){r.r(t),r.d(t,{KJUR:function(){return a}});var n=r("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),s=r("./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js"),a={};typeof a.asn1<"u"&&a.asn1||(a.asn1={}),a.asn1.ASN1Util=new function(){this.integerToByteHex=function(l){var u=l.toString(16);return u.length%2==1&&(u="0"+u),u},this.bigIntToMinTwosComplementsHex=function(l){var u=l.toString(16);if(u.substr(0,1)!="-")u.length%2==1?u="0"+u:u.match(/^[0-7]/)||(u="00"+u);else{var p=u.substr(1),d=p.length;d%2==1?d+=1:u.match(/^[0-7]/)||(d+=2);for(var m="",b=0;b<d;b++)m+="f";u=new n.BigInteger(m,16).xor(l).add(n.BigInteger.ONE).toString(16).replace(/^-/,"")}return u},this.getPEMStringFromHex=function(l,u){return hextopem(l,u)},this.newObject=function(l){var u=a,p=u.asn1,d=p.DERBoolean,m=p.DERInteger,b=p.DERBitString,g=p.DEROctetString,y=p.DERNull,f=p.DERObjectIdentifier,_=p.DEREnumerated,E=p.DERUTF8String,S=p.DERNumericString,k=p.DERPrintableString,A=p.DERTeletexString,I=p.DERIA5String,R=p.DERUTCTime,C=p.DERGeneralizedTime,x=p.DERSequence,P=p.DERSet,O=p.DERTaggedObject,V=p.ASN1Util.newObject,H=Object.keys(l);if(H.length!=1)throw"key of param shall be only one.";var F=H[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+F+":")==-1)throw"undefined key: "+F;if(F=="bool")return new d(l[F]);if(F=="int")return new m(l[F]);if(F=="bitstr")return new b(l[F]);if(F=="octstr")return new g(l[F]);if(F=="null")return new y(l[F]);if(F=="oid")return new f(l[F]);if(F=="enum")return new _(l[F]);if(F=="utf8str")return new E(l[F]);if(F=="numstr")return new S(l[F]);if(F=="prnstr")return new k(l[F]);if(F=="telstr")return new A(l[F]);if(F=="ia5str")return new I(l[F]);if(F=="utctime")return new R(l[F]);if(F=="gentime")return new C(l[F]);if(F=="seq"){for(var U=l[F],K=[],z=0;z<U.length;z++){var L=V(U[z]);K.push(L)}return new x({array:K})}if(F=="set"){for(var U=l[F],K=[],z=0;z<U.length;z++){var L=V(U[z]);K.push(L)}return new P({array:K})}if(F=="tag"){var j=l[F];if(Object.prototype.toString.call(j)==="[object Array]"&&j.length==3){var M=V(j[2]);return new O({tag:j[0],explicit:j[1],obj:M})}var D={};if(j.explicit!==void 0&&(D.explicit=j.explicit),j.tag!==void 0&&(D.tag=j.tag),j.obj===void 0)throw"obj shall be specified for 'tag'.";return D.obj=V(j.obj),new O(D)}},this.jsonToASN1HEX=function(l){return this.newObject(l).getEncodedHex()}},a.asn1.ASN1Util.oidHexToInt=function(l){for(var m="",u=parseInt(l.substr(0,2),16),p=Math.floor(u/40),d=u%40,m=p+"."+d,b="",g=2;g<l.length;g+=2){var y=parseInt(l.substr(g,2),16),f=("00000000"+y.toString(2)).slice(-8);b+=f.substr(1,7),f.substr(0,1)=="0"&&(m=m+"."+new n.BigInteger(b,2).toString(10),b="")}return m},a.asn1.ASN1Util.oidIntToHex=function(l){var u=function(g){var y=g.toString(16);return y.length==1&&(y="0"+y),y};if(!l.match(/^[0-9.]+$/))throw"malformed oid string: "+l;var p="",d=l.split("."),m=40*parseInt(d[0])+parseInt(d[1]);p+=u(m),d.splice(0,2);for(var b=0;b<d.length;b++)p+=function(g){var y="",f=new n.BigInteger(g,10),_=f.toString(2),E=7-_.length%7;E==7&&(E=0);for(var S="",k=0;k<E;k++)S+="0";_=S+_;for(var k=0;k<_.length-1;k+=7){var A=_.substr(k,7);k!=_.length-7&&(A="1"+A),y+=u(parseInt(A,2))}return y}(d[b]);return p},a.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var l=this.hV.length/2,u=l.toString(16);if(u.length%2==1&&(u="0"+u),l<128)return u;var p=u.length/2;if(p>15)throw"ASN.1 length too long to represent by 8x: n = "+l.toString(16);return(128+p).toString(16)+u},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},a.asn1.DERAbstractString=function(l){a.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(this.s)},this.setStringHex=function(u){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"?this.setString(l):typeof l.str<"u"?this.setString(l.str):typeof l.hex<"u"&&this.setStringHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DERAbstractString,a.asn1.ASN1Object),a.asn1.DERAbstractTime=function(l){a.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(u){return utc=u.getTime()+6e4*u.getTimezoneOffset(),new Date(utc)},this.formatDate=function(u,p,d){var m=this.zeroPadding,b=this.localDateToUTC(u),g=String(b.getFullYear());p=="utc"&&(g=g.substr(2,2));var y=m(String(b.getMonth()+1),2),f=m(String(b.getDate()),2),_=m(String(b.getHours()),2),E=m(String(b.getMinutes()),2),S=m(String(b.getSeconds()),2),k=g+y+f+_+E+S;if(d===!0){var A=b.getMilliseconds();if(A!=0){var I=m(String(A),3);I=I.replace(/[0]+$/,""),k=k+"."+I}}return k+"Z"},this.zeroPadding=function(u,p){return u.length>=p?u:new Array(p-u.length+1).join("0")+u},this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(u)},this.setByDateValue=function(u,p,d,m,b,g){var y=new Date(Date.UTC(u,p-1,d,m,b,g,0));this.setByDate(y)},this.getFreshValueHex=function(){return this.hV}},s.YAHOO.lang.extend(a.asn1.DERAbstractTime,a.asn1.ASN1Object),a.asn1.DERAbstractStructured=function(l){a.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array=u},this.appendASN1Object=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array.push(u)},this.asn1Array=new Array,l!==void 0&&typeof l.array<"u"&&(this.asn1Array=l.array)},s.YAHOO.lang.extend(a.asn1.DERAbstractStructured,a.asn1.ASN1Object),a.asn1.DERBoolean=function(){a.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},s.YAHOO.lang.extend(a.asn1.DERBoolean,a.asn1.ASN1Object),a.asn1.DERInteger=function(l){a.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var p=new n.BigInteger(String(u),10);this.setByBigInteger(p)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.bigint<"u"?this.setByBigInteger(l.bigint):typeof l.int<"u"?this.setByInteger(l.int):typeof l=="number"?this.setByInteger(l):typeof l.hex<"u"&&this.setValueHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DERInteger,a.asn1.ASN1Object),a.asn1.DERBitString=function(l){if(l!==void 0&&typeof l.obj<"u"){var u=a.asn1.ASN1Util.newObject(l.obj);l.hex="00"+u.getEncodedHex()}a.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(p){this.hTLV=null,this.isModified=!0,this.hV=p},this.setUnusedBitsAndHexValue=function(p,d){if(p<0||7<p)throw"unused bits shall be from 0 to 7: u = "+p;var m="0"+p;this.hTLV=null,this.isModified=!0,this.hV=m+d},this.setByBinaryString=function(p){p=p.replace(/0+$/,"");var d=8-p.length%8;d==8&&(d=0);for(var m=0;m<=d;m++)p+="0";for(var b="",m=0;m<p.length-1;m+=8){var g=p.substr(m,8),y=parseInt(g,2).toString(16);y.length==1&&(y="0"+y),b+=y}this.hTLV=null,this.isModified=!0,this.hV="0"+d+b},this.setByBooleanArray=function(p){for(var d="",m=0;m<p.length;m++)p[m]==1?d+="1":d+="0";this.setByBinaryString(d)},this.newFalseArray=function(p){for(var d=new Array(p),m=0;m<p;m++)d[m]=!1;return d},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"&&l.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(l):typeof l.hex<"u"?this.setHexValueIncludingUnusedBits(l.hex):typeof l.bin<"u"?this.setByBinaryString(l.bin):typeof l.array<"u"&&this.setByBooleanArray(l.array))},s.YAHOO.lang.extend(a.asn1.DERBitString,a.asn1.ASN1Object),a.asn1.DEROctetString=function(l){if(l!==void 0&&typeof l.obj<"u"){var u=a.asn1.ASN1Util.newObject(l.obj);l.hex=u.getEncodedHex()}a.asn1.DEROctetString.superclass.constructor.call(this,l),this.hT="04"},s.YAHOO.lang.extend(a.asn1.DEROctetString,a.asn1.DERAbstractString),a.asn1.DERNull=function(){a.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},s.YAHOO.lang.extend(a.asn1.DERNull,a.asn1.ASN1Object),a.asn1.DERObjectIdentifier=function(l){var u=function(d){var m=d.toString(16);return m.length==1&&(m="0"+m),m},p=function(d){var m="",b=new n.BigInteger(d,10),g=b.toString(2),y=7-g.length%7;y==7&&(y=0);for(var f="",_=0;_<y;_++)f+="0";g=f+g;for(var _=0;_<g.length-1;_+=7){var E=g.substr(_,7);_!=g.length-7&&(E="1"+E),m+=u(parseInt(E,2))}return m};a.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(d){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=d},this.setValueOidString=function(d){if(!d.match(/^[0-9.]+$/))throw"malformed oid string: "+d;var m="",b=d.split("."),g=40*parseInt(b[0])+parseInt(b[1]);m+=u(g),b.splice(0,2);for(var y=0;y<b.length;y++)m+=p(b[y]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=m},this.setValueName=function(d){var m=a.asn1.x509.OID.name2oid(d);if(m==="")throw"DERObjectIdentifier oidName undefined: "+d;this.setValueOidString(m)},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"?l.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(l):this.setValueName(l):l.oid!==void 0?this.setValueOidString(l.oid):l.hex!==void 0?this.setValueHex(l.hex):l.name!==void 0&&this.setValueName(l.name))},s.YAHOO.lang.extend(a.asn1.DERObjectIdentifier,a.asn1.ASN1Object),a.asn1.DEREnumerated=function(l){a.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var p=new n.BigInteger(String(u),10);this.setByBigInteger(p)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.int<"u"?this.setByInteger(l.int):typeof l=="number"?this.setByInteger(l):typeof l.hex<"u"&&this.setValueHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DEREnumerated,a.asn1.ASN1Object),a.asn1.DERUTF8String=function(l){a.asn1.DERUTF8String.superclass.constructor.call(this,l),this.hT="0c"},s.YAHOO.lang.extend(a.asn1.DERUTF8String,a.asn1.DERAbstractString),a.asn1.DERNumericString=function(l){a.asn1.DERNumericString.superclass.constructor.call(this,l),this.hT="12"},s.YAHOO.lang.extend(a.asn1.DERNumericString,a.asn1.DERAbstractString),a.asn1.DERPrintableString=function(l){a.asn1.DERPrintableString.superclass.constructor.call(this,l),this.hT="13"},s.YAHOO.lang.extend(a.asn1.DERPrintableString,a.asn1.DERAbstractString),a.asn1.DERTeletexString=function(l){a.asn1.DERTeletexString.superclass.constructor.call(this,l),this.hT="14"},s.YAHOO.lang.extend(a.asn1.DERTeletexString,a.asn1.DERAbstractString),a.asn1.DERIA5String=function(l){a.asn1.DERIA5String.superclass.constructor.call(this,l),this.hT="16"},s.YAHOO.lang.extend(a.asn1.DERIA5String,a.asn1.DERAbstractString),a.asn1.DERUTCTime=function(l){a.asn1.DERUTCTime.superclass.constructor.call(this,l),this.hT="17",this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},l!==void 0&&(l.str!==void 0?this.setString(l.str):typeof l=="string"&&l.match(/^[0-9]{12}Z$/)?this.setString(l):l.hex!==void 0?this.setStringHex(l.hex):l.date!==void 0&&this.setByDate(l.date))},s.YAHOO.lang.extend(a.asn1.DERUTCTime,a.asn1.DERAbstractTime),a.asn1.DERGeneralizedTime=function(l){a.asn1.DERGeneralizedTime.superclass.constructor.call(this,l),this.hT="18",this.withMillis=!1,this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},l!==void 0&&(l.str!==void 0?this.setString(l.str):typeof l=="string"&&l.match(/^[0-9]{14}Z$/)?this.setString(l):l.hex!==void 0?this.setStringHex(l.hex):l.date!==void 0&&this.setByDate(l.date),l.millis===!0&&(this.withMillis=!0))},s.YAHOO.lang.extend(a.asn1.DERGeneralizedTime,a.asn1.DERAbstractTime),a.asn1.DERSequence=function(l){a.asn1.DERSequence.superclass.constructor.call(this,l),this.hT="30",this.getFreshValueHex=function(){for(var u="",p=0;p<this.asn1Array.length;p++)u+=this.asn1Array[p].getEncodedHex();return this.hV=u,this.hV}},s.YAHOO.lang.extend(a.asn1.DERSequence,a.asn1.DERAbstractStructured),a.asn1.DERSet=function(l){a.asn1.DERSet.superclass.constructor.call(this,l),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var u=new Array,p=0;p<this.asn1Array.length;p++){var d=this.asn1Array[p];u.push(d.getEncodedHex())}return this.sortFlag==1&&u.sort(),this.hV=u.join(""),this.hV},l!==void 0&&typeof l.sortflag<"u"&&l.sortflag==0&&(this.sortFlag=!1)},s.YAHOO.lang.extend(a.asn1.DERSet,a.asn1.DERAbstractStructured),a.asn1.DERTaggedObject=function(l){a.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(u,p,d){this.hT=p,this.isExplicit=u,this.asn1Object=d,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=d.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,p),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.tag<"u"&&(this.hT=l.tag),typeof l.explicit<"u"&&(this.isExplicit=l.explicit),typeof l.obj<"u"&&(this.asn1Object=l.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},s.YAHOO.lang.extend(a.asn1.DERTaggedObject,a.asn1.ASN1Object)},"./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js":function(e,t,r){r.r(t),r.d(t,{YAHOO:function(){return n}});var n={};n.lang={extend:function(s,a,l){if(!a||!s)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var u=function(){};if(u.prototype=a.prototype,s.prototype=new u,s.prototype.constructor=s,s.superclass=a.prototype,a.prototype.constructor==Object.prototype.constructor&&(a.prototype.constructor=a),l){var p;for(p in l)s.prototype[p]=l[p];var d=function(){},m=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(d=function(b,g){for(p=0;p<m.length;p+=1){var y=m[p],f=g[y];typeof f=="function"&&f!=Object.prototype[y]&&(b[y]=f)}})}catch(b){}d(s.prototype,l)}}}},"./node_modules/jsencrypt/lib/version.json":function(e){e.exports={version:"3.2.0"}},"./node_modules/md5/md5.js":function(e,t,r){(function(){var n=r("./node_modules/crypt/crypt.js"),s=r("./node_modules/charenc/charenc.js").utf8,a=r("./node_modules/is-buffer/index.js"),l=r("./node_modules/charenc/charenc.js").bin,u=function p(d,m){d.constructor==String?d=m&&m.encoding==="binary"?l.stringToBytes(d):s.stringToBytes(d):a(d)?d=Array.prototype.slice.call(d,0):Array.isArray(d)||d.constructor===Uint8Array||(d=d.toString());for(var b=n.bytesToWords(d),g=8*d.length,y=1732584193,f=-271733879,_=-1732584194,E=271733878,S=0;S<b.length;S++)b[S]=16711935&(b[S]<<8|b[S]>>>24)|4278255360&(b[S]<<24|b[S]>>>8);b[g>>>5]|=128<<g%32,b[14+(g+64>>>9<<4)]=g;for(var k=p._ff,A=p._gg,I=p._hh,R=p._ii,S=0;S<b.length;S+=16){var C=y,x=f,P=_,O=E;y=k(y,f,_,E,b[S+0],7,-680876936),E=k(E,y,f,_,b[S+1],12,-389564586),_=k(_,E,y,f,b[S+2],17,606105819),f=k(f,_,E,y,b[S+3],22,-1044525330),y=k(y,f,_,E,b[S+4],7,-176418897),E=k(E,y,f,_,b[S+5],12,1200080426),_=k(_,E,y,f,b[S+6],17,-1473231341),f=k(f,_,E,y,b[S+7],22,-45705983),y=k(y,f,_,E,b[S+8],7,1770035416),E=k(E,y,f,_,b[S+9],12,-1958414417),_=k(_,E,y,f,b[S+10],17,-42063),f=k(f,_,E,y,b[S+11],22,-1990404162),y=k(y,f,_,E,b[S+12],7,1804603682),E=k(E,y,f,_,b[S+13],12,-40341101),_=k(_,E,y,f,b[S+14],17,-1502002290),f=k(f,_,E,y,b[S+15],22,1236535329),y=A(y,f,_,E,b[S+1],5,-165796510),E=A(E,y,f,_,b[S+6],9,-1069501632),_=A(_,E,y,f,b[S+11],14,643717713),f=A(f,_,E,y,b[S+0],20,-373897302),y=A(y,f,_,E,b[S+5],5,-701558691),E=A(E,y,f,_,b[S+10],9,38016083),_=A(_,E,y,f,b[S+15],14,-660478335),f=A(f,_,E,y,b[S+4],20,-405537848),y=A(y,f,_,E,b[S+9],5,568446438),E=A(E,y,f,_,b[S+14],9,-1019803690),_=A(_,E,y,f,b[S+3],14,-187363961),f=A(f,_,E,y,b[S+8],20,1163531501),y=A(y,f,_,E,b[S+13],5,-1444681467),E=A(E,y,f,_,b[S+2],9,-51403784),_=A(_,E,y,f,b[S+7],14,1735328473),f=A(f,_,E,y,b[S+12],20,-1926607734),y=I(y,f,_,E,b[S+5],4,-378558),E=I(E,y,f,_,b[S+8],11,-2022574463),_=I(_,E,y,f,b[S+11],16,1839030562),f=I(f,_,E,y,b[S+14],23,-35309556),y=I(y,f,_,E,b[S+1],4,-1530992060),E=I(E,y,f,_,b[S+4],11,1272893353),_=I(_,E,y,f,b[S+7],16,-155497632),f=I(f,_,E,y,b[S+10],23,-1094730640),y=I(y,f,_,E,b[S+13],4,681279174),E=I(E,y,f,_,b[S+0],11,-358537222),_=I(_,E,y,f,b[S+3],16,-722521979),f=I(f,_,E,y,b[S+6],23,76029189),y=I(y,f,_,E,b[S+9],4,-640364487),E=I(E,y,f,_,b[S+12],11,-421815835),_=I(_,E,y,f,b[S+15],16,530742520),f=I(f,_,E,y,b[S+2],23,-995338651),y=R(y,f,_,E,b[S+0],6,-198630844),E=R(E,y,f,_,b[S+7],10,1126891415),_=R(_,E,y,f,b[S+14],15,-1416354905),f=R(f,_,E,y,b[S+5],21,-57434055),y=R(y,f,_,E,b[S+12],6,1700485571),E=R(E,y,f,_,b[S+3],10,-1894986606),_=R(_,E,y,f,b[S+10],15,-1051523),f=R(f,_,E,y,b[S+1],21,-2054922799),y=R(y,f,_,E,b[S+8],6,1873313359),E=R(E,y,f,_,b[S+15],10,-30611744),_=R(_,E,y,f,b[S+6],15,-1560198380),f=R(f,_,E,y,b[S+13],21,1309151649),y=R(y,f,_,E,b[S+4],6,-145523070),E=R(E,y,f,_,b[S+11],10,-1120210379),_=R(_,E,y,f,b[S+2],15,718787259),f=R(f,_,E,y,b[S+9],21,-343485551),y=y+C>>>0,f=f+x>>>0,_=_+P>>>0,E=E+O>>>0}return n.endian([y,f,_,E])};u._ff=function(p,d,m,b,g,y,f){var _=p+(d&m|~d&b)+(g>>>0)+f;return(_<<y|_>>>32-y)+d},u._gg=function(p,d,m,b,g,y,f){var _=p+(d&b|m&~b)+(g>>>0)+f;return(_<<y|_>>>32-y)+d},u._hh=function(p,d,m,b,g,y,f){var _=p+(d^m^b)+(g>>>0)+f;return(_<<y|_>>>32-y)+d},u._ii=function(p,d,m,b,g,y,f){var _=p+(m^(d|~b))+(g>>>0)+f;return(_<<y|_>>>32-y)+d},u._blocksize=16,u._digestsize=16,e.exports=function(p,d){if(p==null)throw new Error("Illegal argument "+p);var m=n.wordsToBytes(u(p,d));return d&&d.asBytes?m:d&&d.asString?l.bytesToString(m):n.bytesToHex(m)}})()}},__webpack_module_cache__={};(function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){function e(y){return y&&y.__esModule?y:{default:y}}function t(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function r(y,f){for(var _=0;_<f.length;_++){var E=f[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}function n(y,f,_){return f&&r(y.prototype,f),_&&r(y,_),y}function s(y,f,_){return f in y?Object.defineProperty(y,f,{value:_,enumerable:!0,configurable:!0,writable:!0}):y[f]=_,y}var a=__webpack_exports__,l=__webpack_require__("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=e(__webpack_require__("./node_modules/jsencrypt/lib/index.js")),p=__webpack_require__("./utils.js"),d=e(__webpack_require__("./aes.js")),m=e(__webpack_require__("./node_modules/md5/md5.js")),b=function(){function y(){t(this,y),s(this,"handleWatermarkElementAdd",function(f){f.options.keep?f.waterMarkWillAdd||(f.waterMarkWillAdd=!0,setTimeout(function(){f.player&&f.player.el()&&f.player.el().appendChild(f.containerElement),f.waterMarkWillAdd=!1,f.isFirstShow=!1},1e3*(f.isFirstShow?f.ghostCycle.firstShow:f.ghostCycle.ghostOff))):f.player.$(".tcp-dynamic-watermark-container")?f.player.$(".tcp-dynamic-watermark-content")||f.containerElement.appendChild(f.markContentElement):f.player.el()&&f.player.el().appendChild(f.containerElement)})}return n(y,[{key:"base64ToHex",value:function(f){for(var _=atob(f),E="",S=0;S<_.length;S++){var k=_.charCodeAt(S).toString(16);E+=k.length===2?k:"0"+k}return E}},{key:"checkEnvironment",value:function(){return!(!Hls||!Hls.isSupported())}},{key:"checksum",value:function(f,_){return l.g(l.v(0,l.d(["PgQ0AjQDGDo+BTQCNAM0BC0DQQApCRpnGmUadBpSGmUacxpwGm8abhpzGmUaSBplGmEaZBplGnI2CRpYGi0aVhpvGmQaLRpDGmgaZRpjGmsacxp1Gm0uATAPDy0EQQAOASkJGmQaZRpmGmEadRpsGnQ2NUEADgIpCRpkGmUaYxpyGnkacBp0Gm82NS0ACRpvGnYaZRpyGmwaYRp5GksaZRp5GTU6AUEADgIpCRpkGmUaYxpyGnkacBp0Gm82NS0ACRpvGnYaZRpyGmwaYRp5Gkkadhk1OgEKQQMpCRp0GnIaaRptNi4ACjoBMA8PEAMe9Rj8Gg8QBBADFkIeDxgODzIDPwMtAxcJAAAwDw8dAw==",[7,263,253,258,256,261]]),[function(){return f===void 0?void 0:f},function(){return m===void 0?void 0:m},function(){return p===void 0?void 0:p},function(){return _===void 0?void 0:_}])).call(this)}},{key:"generatePlayCgiUrl",value:function(f,_){return l.g(l.v(0,l.d(["PgQ0AjQDGDg+CTQCNAM0BDQFNAY0BzQILQNBAA4AKQkaZxplGm4aTxp2GmUachpsGmEaeTY1OgAwDw8tBEEADgApCRpnGmUabhpPGnYaZRpyGmwaYRp5NjU6ADAPDy0FQQEpCRpkGmUaZhphGnUabBp0NjsAMA8PLQYJGk0aSRpHGmYaTRpBGjAaRxpDGlMacRpHGlMaSRpiGjMaRBpRGkUaQhpBGlEaVRpBGkEaNBpHGk4aQRpEGkMaQhppGlEaSxpCGmcaURpDGjMacBpEGkEaNxpHGlQaeBpPGnYaThpiGlgaUhpHGk0aaRo5GlEaUxpJGnoaURpFGkkaKxpFGk0aRBoxGkgaYxpVGlAaShpTGlEaUxpGGnUaUhprGloaaxpXGm8aNBpWGlEaRRpDGnUaUBpSGmcaLxp4GlYaahpxGncaWBoxGnkaVRpyGkgaVRp2GkcaURpKGnMaQhp3GlQaUxovGjYaTBpJGmMaURppGlMadxpZGnMaTxpxGmYaKxo4GlQaVxp4GkcaURpPGkoaeRpXGjQaNhpnGlAaUBpRGlYaehpUGmoaThpUGmkaVRpvGnEaNBozGjUaURpCGjAadhoxGjEabBpOGngadhpLGlcaQhpRGkkaWhpMGm0aYRpjGlUaWhoyGnIaMRpBGlAadBphGjcaaRovGk0aWRo0GkwaeBo5GlgabBpaGlYaTRpaGk4aVRpkGlUaeRp3GkkaRBpBGlEaQRpCMA8PLQUJGnMaZRp0GlAadRpiGmwaaRpjGksaZRp5GRAGLgEPLQctAAkaYhphGnMaZRo2GjQaVBpvGkgaZRp4GS0FCRplGm4aYxpyGnkacBp0GRADLgEuATAPDy0ILQAJGmIaYRpzGmUaNho0GlQabxpIGmUaeBktBQkaZRpuGmMachp5GnAadBkQBC4BLgEwDw4CKQkaTRplGmQaaRphGlMabxp1GnIaYxplNjUeDxgeD0ECKQkaTRplGmQaaRphGlMabxp1GnIaYxplNgkacBpyGm8adBpvGnQaeRpwGmU2CRplGm4aZBpPGmYaUxp0GnIaZRphGm02CRp0Gm8aUxp0GnIaaRpuGmc2LgAJGnIaZRpwGmwaYRpjGmVDQQMsCRpcGnMJGmc6AgkuAgkaZhp1Gm4aYxp0GmkabxpuGmUabhpkGk8aZhpTGnQachplGmEabRooGikaexpbGm4aYRp0GmkadhplGmMabxpkGmUaXRp9FkIeDgIpCRpNGmUaZBppGmEaUxpvGnUachpjGmU2CRpwGnIabxp0Gm8adBp5GnAaZTYJGmEaZBpkGlMabxp1GnIaYxplGkIadRpmGmYaZRpyNgkadBpvGlMadBpyGmkabhpnNi4ACRpyGmUacBpsGmEaYxplQ0EDLAkaXBpzCRpnOgIJLgIJGmYadRpuGmMadBppGm8abhphGmQaZBpTGm8adRpyGmMaZRpCGnUaZhpmGmUachooGikaexpbGm4aYRp0GmkadhplGmMabxpkGmUaXRp9FkIeDxgtDy0HLQAJGmIaYRpzGmUaNho0GlQabxpIGmUaeBktBQkaZRpuGmMachp5GnAadBlBAA4AKQkaZxplGm4aTxp2GmUachpsGmEaeTY1OgAuAS4BMA8PLQgtAAkaYhphGnMaZRo2GjQaVBpvGkgaZRp4GS0FCRplGm4aYxpyGnkacBp0GUEADgApCRpnGmUabhpPGnYaZRpyGmwaYRp5NjU6AC4BLgEwDw9BBCkVNQkaJhpjGmkacBpoGmUachplGmQaTxp2GmUachpsGmEaeRpLGmUaeRo9CRpjGm8abhpjGmEadEMQBwkaJhpjGmkacBpoGmUachplGmQaTxp2GmUachpsGmEaeRpJGnYaPS4CCRpjGm8abhpjGmEadEMQCAkaJhprGmUaeRpJGmQaPRoxLgIKEigADw4FKQkaSRpTGl8aRRpOGkEaQhpMGkUaRBpfGk0aUxpFNjUeGC4PQQUpCRpJGlMaXxpUGkIaUzY1Qh4YNA9BBSkJGkkaUxpfGk0aURpRGkI2NUIeGCYPQQUpCRpJGlMaXxpTGkEaRhpBGlIaSTY1Qh4YLQ9BBSkJGkkaRRpfGlYaRRpSGlMaSRpPGk42NR4YLg9BBSkJGkkaRRpfGlYaRRpSGlMaSRpPGk42NUELCEJCQh4PGBAPQQQpFTUJGiYabRpzGmUaPRpvGmYaZgoSKAAPDgQpFTUJGiYacRpzGmkaZxpuGj1BAA4GKQkaZBplGmYaYRp1GmwadDY1CRpvGnYaZRpyGmwaYRp5GksaZRp5Gj0JGmMabxpuGmMaYRp0QxADCRomGm8adhplGnIabBphGnkaSRp2Gj0uAgkaYxpvGm4aYxphGnRDEAQJGiYabRpzGmUaPRpvGmYaZi4COgEKChIPDy0ACRpvGnYaZRpyGmwaYRp5GksaZRp5GUEADgApCRplGm4aYxpyGnkacBp0Gm82NRADOgESDw8tAAkabxp2GmUachpsGmEaeRpJGnYZQQAOACkJGmUabhpjGnIaeRpwGnQabzY1EAQ6ARIoAA8OBCwDLQMXCQAAMA8PHQM=",[7,1944,730,735,733,1319,933,1146,1147,1152,1150,1319,1497,1501,1499,1521,1522,1526,1524,1548,1549,1553,1551,1579,1580,1584,1582,1648,1612,1616,1614,1647,1650,1655,1653,1831]]),[function(){return p===void 0?void 0:p},function(){return u===void 0?void 0:u},function(){return typeof window>"u"?void 0:window},function(){return typeof RegExp>"u"?void 0:RegExp},function(){return f===void 0?void 0:f},function(){return _===void 0?void 0:_},function(){return m===void 0?void 0:m}])).call(this)}},{key:"generateKey",value:function(f){var _,E=new Uint8Array(f);if(this.overlayKey&&this.overlayIv){for(var S=[],k=[],A=0;A<16;A++){var I=this.overlayKey.substring(2*A,2*A+2),R=this.overlayIv.substring(2*A,2*A+2);S.push(parseInt(I,16)),k.push(parseInt(R,16))}_=new d.default.modeOfOperation.cbc(S,k).decrypt(E)}return _||E}},{key:"calculateGhost",value:function(f){var _,E=f/4;_=E<=15?f/2:E<=450?f/4:450;var S=_/4,k=_-S;return{firstShow:localStorage.getItem("ghostWatermarkFirstShow")||Math.random()*k+.01,ghostOn:S,ghostOff:k}}}],[{key:"elemManage",value:function(f){var _=this,E=this;f.on("dispose",function(){clearInterval(E.timer)}),this.timer=setInterval(function(){var S=document.querySelector(".safe-check-element");S&&S.style.display!=="none"||(clearInterval(_.timer),f.dispose())},5e3)}}]),y}(),g=b;a.default=g}(),__webpack_exports__=__webpack_exports__.default}()})}),Enc=unwrapExports(enc),strictUriEncode=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})},getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty$1=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable,objectAssign=shouldUseNative()?Object.assign:function(e,t){for(var r,n,s=toObject(e),a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var l in r)hasOwnProperty$1.call(r,l)&&(s[l]=r[l]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(r);for(var u=0;u<n.length;u++)propIsEnumerable.call(r,n[u])&&(s[n[u]]=r[n[u]])}}return s},token="%[a-f0-9]{2}",singleMatcher=new RegExp(token,"gi"),multiMatcher=new RegExp("("+token+")+","gi"),decodeUriComponent=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}},extract_1=extract,parse_1=parse,stringify=function(e,t){t=objectAssign({encode:!0,strict:!0,arrayFormat:"none"},t),t.sort===!1&&(t.sort=function(){});var r=encoderForArrayFormat(t);return e?Object.keys(e).sort(t.sort).map(function(n){var s=e[n];if(s===void 0)return"";if(s===null)return encode(n,t);if(Array.isArray(s)){var a=[];return s.slice().forEach(function(l){l!==void 0&&a.push(r(n,l,a.length))}),a.join("&")}return encode(n,t)+"="+encode(s,t)}).filter(function(n){return n.length>0}).join("&"):""},parseUrl$1=function(e,t){return{url:e.split("?")[0]||"",query:parse(extract(e),t)}},queryString={extract:extract_1,parse:parse_1,stringify,parseUrl:parseUrl$1},count=0,MediaAsyncLoader=function(e){function t(r,n,s){classCallCheck(this,t),log$2("MediaAsyncLoader initializing");var a=mergeOptions({createEl:!1},n),l=possibleConstructorReturn(this,e.call(this,r,a,s));l.enModule=new Enc;var u=a.playerOptions||a;return l.getInfo(u),r.loadVideoByID=bind(l,l.loadVideoByID),log$2("MediaAsyncLoader initialized"),l}return inherits(t,e),t.prototype.getInfo=function(r){r&&r.fileID&&r.appID&&(performance&&typeof performance.mark=="function"&&performance.mark("firstFrameStart"),r.playDefinition?this.getInfoV3(r):r.sign||r.ssign?this.getInfoV2(r):this.getInfoV4(r))},t.prototype.getInfoV2=function(r){var n=this.player(),s=this.assemblyPath("getplayinfo",r.appID,r.fileID),a=r.t,l=r.us,u=r.exper,p=r.sign,d={};r.ssign?d.super_sign=r.ssign:p&&(d={t:a,sign:p},(l||l==0)&&(d.us=l),(u||u==0)&&(d.exper=u,n.trigger({type:"feature",data:"exper"})),n.trigger({type:"feature",data:"key"})),r.playerID&&(d.playerid=r.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi loading");var m=queryString.stringify(d);m&&(s+=(~s.indexOf("?")?"&":"?")+m,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(b){b&&(s=s.replace(SERVER_PATH,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:d,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResult)):xhr({url:s,timeout:3e3},bind(this,this.onResult))},this.getInfoRequest()},t.prototype.onResult=function(r,n,s){try{s?n=JSON.parse(s):r||n||(r=new Error("ServerError"))}catch(m){r=new Error("ServerError")}var a=this.player();if(r){if(log$2("playcgi loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}});var l=12;switch(r.message){case"XMLHttpRequest timeout":case"Timeout":l=10;break;case"ServerError":l=11}this.player().error({code:l})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}}),n.code!=0)return log$2("playcgi loaded failure"),void this.player().error({code:n.code});log$2("playcgi loaded success");var u=n.coverInfo,p=n.videoInfo,d=n.playerInfo;this.setPoster(u),this.setLogo(d),this.setSrc(n),this.setPatch(d),this.setVttThumbnail(n),this.setDots(n),this.setOriginDuration(p),this.setPlayList(d)}},t.prototype.getInfoV3=function(r){var n=this.player(),s=this.assemblyPathV3("getplayinfo",r.appID,r.fileID,r.playDefinition),a=r.t,l=r.us,u=r.rlimit,p=r.sign,d={};r.ssign?d.super_sign=r.ssign:p&&(d={t:a,sign:p},(l||l==0)&&(d.us=l),u&&(d.rlimit=u),n.trigger({type:"feature",data:"key"})),r.playerID&&(d.playerid=r.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v3 loading");var m=queryString.stringify(d);m&&(s+=(~s.indexOf("?")?"&":"?")+m,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(b){b&&(s=s.replace(SERVER_PATH_V3,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:d,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV3)):xhr({url:s,timeout:3e3},bind(this,this.onResultV3))},this.getInfoRequest()},t.prototype.onResultV3=function(r,n,s){try{s?n=JSON.parse(s):r||n.body||(r=new Error("ServerError"))}catch(d){r=new Error("ServerError")}var a=this.player();if(r){if(log$2("playcgi v3 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}});var l=12;switch(r.message){case"XMLHttpRequest timeout":case"Timeout":l=10;break;case"ServerError":l=11}this.player().error({code:l})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}}),n.code!=0)return log$2("playcgi v3 loaded failure"),void this.player().error({code:n.code});log$2("playcgi v3 loaded success");var u=n.mediaInfo,p=n.playerInfo;this.setPoster({coverUrl:u.basicInfo.coverUrl}),this.setLogo(p),this.setSrcV3(u),this.setPatch(p),this.setVttThumbnail(u),this.setDots(u)}},t.prototype.setSrcV3=function(r,n){var s=this,a=this.player(),l=a.options_.plugins,u=a.DRM().options||l.DRM,p=void 0,d=void 0,m=void 0,b=[],g={},y={};if(n=n||(u?u.skipPlan:""),r.previewStreamingInfo&&r.previewStreamingInfo.previewStreamingList.length>0)r.previewStreamingInfo.previewStreamingList.forEach(function(E,S){E.mineType=s.getMIMEType(E.url),g[getFileExtension(E.url)]=E});else{if(!(r.dynamicStreamingInfo.adaptiveStreamingInfoList&&r.dynamicStreamingInfo.adaptiveStreamingInfoList.length>0))return void this.player().error({code:13,message:"no video stream"});if(r.dynamicStreamingInfo.adaptiveStreamingInfoList.forEach(function(E,S){E.mineType=s.getMIMEType(E.url),y[E.drmType.toLowerCase()||getFileExtension(E.url)]=E}),u&&u.token?(p=u.token,m=u.certificateUri,n=IS_SAFARI&&!m?"fairplay":n,d=window_1.encodeURIComponent(p)):n="all",(IS_CHROME||IS_FIREFOX)&&window_1.navigator.requestMediaKeySystemAccess&&y.widevine&&n!="widevine"&&n!="all"?(b.push({src:unifyProtocol(y.widevine.url),type:this.getMIMEType(y.widevine.url),keySystems:{"com.widevine.alpha":{serverURL:LICENSE_PATH+"?token="+d+"&drmType="+y.widevine.drmType}}}),log$2("DRM source widevine",b)):IS_SAFARI&&!IS_MQQB&&y.fairplay&&n!="fairplay"&&n!="all"&&(b.push({src:unifyProtocol(y.fairplay.url),type:this.getMIMEType(y.fairplay.url),keySystems:{"com.apple.fps.1_0":{certificateUri:m,licenseUri:LICENSE_PATH+"?token="+d+"&drmType="+y.fairplay.drmType}}}),log$2("DRM source fairplay",b)),y.simpleaes&&n!="all"){var f=y.simpleaes.url.split("/");f[f.length-1]="voddrm.token."+d+"."+f[f.length-1],b.push({src:unifyProtocol(f.join("/")),type:this.getMIMEType(y.simpleaes.url)}),log$2("DRM source simpleaes",b)}y.m3u8&&b.push({src:unifyProtocol(y.m3u8.url),type:this.getMIMEType(y.m3u8.url)}),y.mpd&&b.push({src:unifyProtocol(y.mpd.url),type:this.getMIMEType(y.mpd.url)})}if(!(b.length>0))return void this.player().error({code:4});a.src(b);var _=function(E){return log$2("DRM init Error",b),E.data.code!==5&&E.data.code!==2||!b[0].keySystems["com.widevine.alpha"]?E.data.code===3&&b[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV3(r,"fairplay"):E.data.code===14||E.data.code===3?void s.setSrcV3(r,"all"):void 0:void s.setSrcV3(r,"widevine")};n!=="all"&&(window_1.setTimeout(function(){a.one("error",_)},0),a.one("playing",function(E){}))},t.prototype.getInfoV4=function(r){var n=this.player(),s=this.assemblyPathV4("getplayinfo",r.appID,r.fileID),a=r.t,l=r.us,u=r.rlimit,p=r.psign,d=r.exper,m={};r.ssign?m.super_sign=r.ssign:p&&(m={t:a,psign:p},(l||l==0)&&(m.us=l),u&&(m.rlimit=u),d&&(m.exper=d)),r.playerConfig&&(m.pcfg=r.playerConfig),r.playerID&&(m.playerid=r.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v4 loading");var b=queryString.stringify(m);b?(s+=(~s.indexOf("?")?"&":"?")+b,s=s.replace("?&","?")):s+=~s.indexOf("?")?"":"?",s=this.enModule.generatePlayCgiUrl(s,browser),this.getInfoRetryTimes=0,this.getInfoRequest=function(g){g&&(s=s.replace(SERVER_PATH_V4,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:m,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV4)):xhr({url:s,timeout:3e3},bind(this,this.onResultV4))},this.getInfoRequest()},t.prototype.onResultV4=function(r,n,s){var a=n,l=a.rawRequest;try{s?n=JSON.parse(s):r||n.body||(r=new Error("ServerError"))}catch(y){r=new Error("ServerError")}var u=this.player();if(r){if(log$2("playcgi v4 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});u.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}});var p=12;switch(r.message){case"XMLHttpRequest timeout":case"Timeout":p=10;break;case"ServerError":p=11}this.player().error({code:p})}else{if(u.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}}),n.code!=0){if(log$2("playcgi v4 loaded failure"),n.code>=2e3&&n.code<3e3){if(this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0})}return void this.player().error({code:n.code})}if(log$2("playcgi v4 loaded success",n),!this.enModule.checksum(l,s))return this.player().error({code:1012}),!1;if(n.version===4){var d=n.media;this.setPoster({coverUrl:d.basicInfo.coverUrl}),this.setSrcV4(d),this.setVttThumbnailV4(d),this.setDots(d),this.setOriginDurationV4(d),this.setGhostContent(d.ghostWatermarkInfo)}else if(n.version===2){var m=n.coverInfo,b=n.videoInfo,g=n.playerInfo;this.setPoster(m),this.setLogo(g),this.setSrc(n),this.setPatch(g),this.setVttThumbnail(n),this.setDots(n),this.setOriginDuration(b)}}},t.prototype.setSrcV4=function(r,n){var s=this,a=this.player(),l=a.options_,u=void 0,p=a.options_.plugins,d=a.DRM().options||p.DRM,m=[],b="plain";n=n||(d?d.skipPlan:"");var g=[],y=[];if(r.audioVideoType==="Original"||r.audioVideoType==="Transcode")return this.setSrc(r),!1;if(!r.streamingInfo)return void this.player().error({code:13,message:"no stream info"});if(r.streamingInfo){if(r.streamingInfo.drmOutput&&Array.isArray(r.streamingInfo.drmOutput)){for(var f=r.streamingInfo.drmOutput,_=0;_<f.length;_++)y.push(f[_].type);if(IS_ANY_SAFARI&&!IS_MQQB&&y.indexOf("FairPlay")!==-1&&n!="fairplay"&&n!="all"){var E=y.indexOf("FairPlay"),S=f[E].subStreams;m.push(S),g.push({src:unifyProtocol(f[E].url),type:this.getMIMEType(f[E].url),qualityLabelList:S,keySystems:{"com.apple.fps.1_0":{certificateUri:r.streamingInfo.fairPlayCertificateUrl||(d||{}).certificateUri,licenseUri:r.streamingInfo.fairplayLicenseUrl}}}),log$2("DRM source fairplay",u)}else if(window_1.navigator.requestMediaKeySystemAccess&&y.indexOf("Widevine")!==-1&&!IS_SAFARI&&n!=="widevine"&&n!=="all"){var k=y.indexOf("Widevine"),A=f[k].subStreams,I=A[A.length-1];(I.type==="audio"||I.width===0&&I.height===0)&&A.pop(),m.push(A),g.push({src:unifyProtocol(f[k].url),type:this.getMIMEType(f[k].url),qualityLabelList:A,keySystems:{"com.widevine.alpha":{serverURL:r.streamingInfo.widevineLicenseUrl}}}),log$2("DRM source widevine",u)}if(y.indexOf("SimpleAES")!==-1&&n!="all"){var R,C=y.indexOf("SimpleAES");b="SimpleAES";var x=f[C].url.split("/");x[x.length-1]="voddrm.token."+r.streamingInfo.drmToken+"."+x[x.length-1],u=x.join("/");var P=f[C].subStreams;m.push(f[C].subStreams),u&&g.push({src:unifyProtocol(u),type:EXT_MIME.m3u8,qualityLabelList:P,keySystems:(R={},R[b]={},R)})}}else if(r.streamingInfo.plainOutput){var O;u=r.streamingInfo.plainOutput.url;var V=r.streamingInfo.plainOutput.subStreams;m.push(r.streamingInfo.plainOutput.subStreams),u&&g.push({src:unifyProtocol(u),type:EXT_MIME.m3u8,qualityLabelList:V,keySystems:(O={},O[b]={},O)})}this.setHlsConfig(l,m[0],!1),g.length>0?a.src(g):y.length!==0?!n&&this.player().error({code:18}):this.player().error({code:13,message:"no stream info"}),this.setQualityLabelList(m[0])}var H=function(F){return log$2("DRM init Error",g),g[0].keySystems["com.widevine.alpha"]?void s.setSrcV4(r,"widevine"):g[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV4(r,"fairplay"):F.data.code===14||F.data.code===3?void s.setSrcV4(r,"all"):void 0};n!=="all"&&window_1.setTimeout(function(){a.one("error",H)},0)},t.prototype.setHlsConfig=function(r,n,s){var a={};!IS_ENABLED_MSE||IS_TBS||IS_MQQB||IS_SAFARI||IE_VERSION&&IE_VERSION<11||(a={overlayKey:this.enModule&&this.enModule.overlayKey,overlayIv:this.enModule&&this.enModule.overlayIv}),r.hlsConfig?(r.hlsConfig.qualityLabelList=n,r.hlsConfig.startLevel||(r.hlsConfig.startLevel=n?n.length-1:5)):r.hlsConfig={qualityLabelList:n,startLevel:n?n.length-1:5},Object.assign(r.hlsConfig,a,{forbid:s})},t.prototype.setQualityLabelList=function(r){this.player().QualitySwitcher().setOptions({qualityLabelList:{video:r}})},t.prototype.setLogo=function(r){var n=this.player();r.logoPic?(n.logoImage.update({img:{url:unifyProtocol(r.logoPic),position:r.logoLocation},link:unifyProtocol(r.logoUrl)}),n.trigger({type:"feature",data:"logo"})):n.logoImage.reset()},t.prototype.setPoster=function(r){var n=this.player();r&&r.coverUrl?n.poster(unifyProtocol(r.coverUrl)):n.options_.playerOptions.poster||n.poster("")},t.prototype.setDots=function(r){var n=this.player();if(n.options_.dots=null,r.keyFrameDescInfo&&r.keyFrameDescInfo.keyFrameDescList&&r.keyFrameDescInfo.keyFrameDescList.length>0){var s=r.keyFrameDescInfo.keyFrameDescList;n.options_.dots=s}var a=n.options_.plugins;a&&a.ProgressMarker&&a.ProgressMarker.markers&&a.ProgressMarker.markers.length>0&&(n.options_.dots=n.options_.dots.concat(a.ProgressMarker.markers)),n.ProgressMarker().init()},t.prototype.setSrc=function(r){var n=this.player(),s=r.videoInfo||{};if(r.audioVideoType==="Original"&&(s.sourceVideo=r.originalInfo),r.audioVideoType==="Transcode"&&(s.sourceVideo=r.transcodeInfo),(n.options_.definition!=null||n.options_.definition!=null)&&s.transcodeList&&s.transcodeList.length>0){n.trigger({type:"feature",data:"definition"});var a=this.getSrcByDefinition(s,n.options_.definition);if(a)return n.src({src:unifyProtocol(a.url),type:this.getMIMEType(a.url)}),!0}if(n.MultiResolution().reset(),s.masterPlayList){n.src(this.getMasterSouces(s));var l=n.options_.hlsConfig;l?l.forbid=!0:Object.assign(n.options_,{hlsConfig:{forbid:!0}}),this.setQualityLabelList([]),n.MultiResolution().store(this.getMultiResolutionData(r))}else if(s.transcodeList&&s.transcodeList.length>0){var u=this.getMultiResolutionData(r);if(u.showOrder.length>0)n.MultiResolution().init(u);else{var p=s.transcodeList[0].url;n.src({src:unifyProtocol(p),type:this.getMIMEType(p)})}}else s.sourceVideo&&this.getMIMEType(s.sourceVideo.url)?n.src({src:unifyProtocol(s.sourceVideo.url),type:this.getMIMEType(s.sourceVideo.url)}):this.player().error({code:13})},t.prototype.setPatch=function(r){var n=this.player();r.patchInfo?n.ImagePatch().init(r.patchInfo):n.ImagePatch().reset()},t.prototype.setVttThumbnail=function(r){var n=this.player();r.imageSpriteInfo&&r.imageSpriteInfo.imageSpriteList?n.ready(bind(this,function(){n.VttThumbnail().init({vttUrl:unifyProtocol(r.imageSpriteInfo.imageSpriteList[0].webVttUrl)})})):n.VttThumbnail().reset()},t.prototype.setVttThumbnailV4=function(r){var n=this.player();r.imageSpriteInfo&&r.imageSpriteInfo.webVttUrl?n.ready(bind(this,function(){n.VttThumbnail().init({vttUrl:unifyProtocol(r.imageSpriteInfo.webVttUrl)})})):n.VttThumbnail().reset()},t.prototype.setOriginDuration=function(r){var n=this.player();if(n.options_.exper>0){var s=r.sourceVideo?r.sourceVideo.floatDuration:r.transcodeList[0].floatDuration;n.one("play",function(){n.duration(s)})}},t.prototype.setOriginDurationV4=function(r){var n=this,s=this.player();s.cache_.originDuration=r.basicInfo.duration,s.off("durationchange",this.keepOriginDuration),s.one("durationchange",function(a){(!s.duration()||s.duration()>0&&Math.floor(s.cache_.originDuration)!==Math.floor(s.duration()))&&(n.keepOriginDuration(a),s.on("durationchange",n.keepOriginDuration))})},t.prototype.setGhostContent=function(r){if(r){var n=this.player(),s=n&&n.DynamicWatermark();s.options.content=r.text,s.options.keep=!0,s.init()}},t.prototype.keepOriginDuration=function(r){var n=this.player(),s=n.cache_.originDuration;Math.floor(s)!==Math.floor(n.duration())&&(log$2("试看视频"),n.duration(Math.round(s)))},t.prototype.getMasterSouces=function(r){var n=r.masterPlayList,s=[];return s.push({src:unifyProtocol(n.url),type:EXT_MIME.m3u8}),s},t.prototype.getMultiResolutionData=function(r){var n={sources:{},labels:{},showOrder:[],defaultRes:""},s=[],a=r.videoInfo.transcodeList,l=this;return r.playerInfo.videoClassification.forEach(function(u,p){a.length>0&&(a=a.filter(function(d){if(!(u.definitionList.indexOf(d.definition)>-1))return!0;s[u.id]||(n.showOrder.push(u.id),n.labels[u.id]=u.name,s[u.id]=[]),s[u.id].push({src:unifyProtocol(d.url),type:l.getMIMEType(d.url)})}))}),n.sources=s,n.defaultRes=r.playerInfo.defaultVideoClassification||Object.keys(s)[0],n},t.prototype.getSrcByDefinition=function(r,n){var s=r.transcodeList,a=r.sourceVideo;if(n==0)return a;for(var l=0;l<s.length;l++)if(s[l].definition==n)return s[l]},t.prototype.getMIMEType=function(r){var n=EXT_MIME[getFileExtension(r)];return n||(log$2.error("MIME type no found! Ext = "+getFileExtension(r)),"")},t.prototype.assemblyPath=function(r,n,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),""+a+SERVER_PATH+"/"+r+"/v2/"+n+"/"+s},t.prototype.assemblyPathV3=function(r,n,s,a){var l=window_1.location.protocol;return l!="http:"&&l!="https:"&&(l="https:"),""+l+SERVER_PATH_V3+"/"+r+"/v3/"+n+"/"+s+"/"+a},t.prototype.assemblyPathV4=function(r,n,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),""+a+SERVER_PATH_V4+"/"+r+"/v4/"+n+"/"+s},t.prototype.customHost=function(r){var n=this.player();n.options_.customHost&&/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/.test(n.options_.customHost)&&(r.masterPlayList&&(r.masterPlayList.url=replaceHost(r.masterPlayList.url,n.options_.customHost)),r.sourceVideo&&(r.sourceVideo.url=replaceHost(r.sourceVideo.url,n.options_.customHost)),r.transcodeList.length>0&&r.transcodeList.forEach(function(s,a){s.url=replaceHost(s.url,n.options_.customHost)}),n.trigger({type:"feature",data:"customHost"}))},t.prototype.loadVideoByID=function(r){var n=this.player();n.trigger({type:"loadnewvideo"}),n.hasStarted(!1),this.getInfo(r),n.duration(0),n.playbackRate(1),n.options_.appID=r.appID,n.options_.fileID=r.fileID,n.options_.psign=r.psign,r.definition&&(n.options_.definition=r.definition),n.bigPlayButton&&n.bigPlayButton.show(),n.options_.plugins.ContinuePlay&&n.ContinuePlay().init()},t.prototype.setPlayList=function(r){this.player().options_.plugins.PlayList||r.playlist&&r.playlist.data instanceof Array&&r.playlist.data.length>0&&this.player_.PlayList(r.playlist)},t}(Component);Component.registerComponent("MediaAsyncLoader",MediaAsyncLoader),videojs.getComponent("Component");var ClickableComponent$2=videojs.getComponent("ClickableComponent"),positionMap=["left-top","left-bottom","right-top","right-bottom"],LogoImage=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return r.on("logochange",videojs.bind(s,function(a){this.update(a.data)})),n.img&&s.update(n),s}return inherits(t,e),t.prototype.createEl=function(){var r=videojs.dom.createEl("div",{className:"tcp-logo vjs-hidden"}),n=videojs.dom.createEl("a",{className:"tcp-logo-link",target:"_blank"}),s=videojs.dom.createEl("img",{className:"tcp-logo-img"});return this.linkEl_=n,this.imgEl_=s,n.appendChild(s),r.appendChild(n),r},t.prototype.update=function(r){var n=r.img,s=r.link;this.setImg(n),this.setHref(s),this.options_=videojs.mergeOptions(this.options_,r),this.show()},t.prototype.setImg=function(r){if(this.imgEl_){this.imgEl_.src=r.url;var n=positionMap[r.position]||r.position||"left-top";videojs.dom.addClass(this.el_,n)}},t.prototype.setHref=function(r){this.linkEl_&&r&&(this.linkEl_.href=r)},t.prototype.reset=function(){this.hide(),this.imgEl_.removeAttribute("src"),this.linkEl_.removeAttribute("href")},t}(ClickableComponent$2);videojs.registerComponent("LogoImage",LogoImage);var Component$3=videojs.getComponent("Component"),Button$2=videojs.getComponent("Button"),ContinuePlayTips=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.init(n),s}return inherits(t,e),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-continue-play-tips"})},t.prototype.close=function(){this.hide()},t.prototype.init=function(r){var n=this.addChild("closeButton",{controlText:"Close"});this.on(n,"close",this.close),this.addChild("ContinuePlayTipsContent",r);var s=this.addChild("ContinuePlayButton",r);this.on(s,["tap","click"],this.close),this.setTimeout(function(){this.close()},3500)},t}(Component$3);videojs.registerComponent("ContinuePlayTips",ContinuePlayTips);var ContinuePlayTipsContent=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createEl=function(){var r=videojs.dom.createEl("span",{className:"tcp-continue-play-tips-content"}),n=videojs.dom.createEl("span",{className:"tcp-text",textContent:this.localize(this.options_.text||"Last time play at ")}),s=videojs.dom.createEl("span",{className:"tcp-time",textContent:videojs.formatTime(this.options_.time)});return this.textEl_=n,this.timeEl_=s,r.appendChild(n),r.appendChild(s),r},t}(Component$3);videojs.registerComponent("ContinuePlayTipsContent",ContinuePlayTipsContent);var ContinuePlayButton=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"button",{className:"tcp-continue-play-buttom",textContent:this.localize(this.options_.btnText||"Resume play")})},t.prototype.handleClick=function(){this.options_.resumeCallback.call()},t}(Button$2);videojs.registerComponent("ContinuePlayButton",ContinuePlayButton);var Component$4=videojs.getComponent("Component"),LevelSwitchTips=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.playing=!1,s.timeoutID=void 0,s.levelSwitch=r.options_.plugins.ContextMenu.levelSwitch,s.init(),r.on("playing",videojs.bind(s,function(){s.playing=!0})),r.on("resolutionswitching",videojs.bind(s,function(a){if(s.playing)if(a.data.label)s.switchHandler(s.createSwitching(a.data.label),2e3);else{var l=s.player().QualitySwitcher().options.qualityData;if(l){var u=l.video.filter(function(p){return a.data.newQuality===p.id})[0];s.switchHandler(s.createSwitching(u.label),2e3)}}})),r.on("resolutionswitched",videojs.bind(s,function(){s.playing&&s.switchHandler(s.createSwitched(),2e3)})),r.on("levelSwitchError",videojs.bind(s,function(){s.switchHandler(s.createSwitchError(),2e3)})),s}return inherits(t,e),t.prototype.switchHandler=function(r,n){var s=this;this.timeoutID&&clearTimeout(this.timeoutID),this.textNode.innerText=r,this.show(),this.timeoutID=setTimeout(function(){s.hide()},n)},t.prototype.createEl=function(){var r=videojs.dom.createEl("div",{className:"tcp-switch vjs-hidden"});return this.textNode=videojs.dom.createEl("div",{innerText:""}),r.appendChild(this.textNode),r},t.prototype.init=function(){var r=this.addChild("closeButton",{controlText:"Close"});this.on(r,"close",this.hide)},t.prototype.createSwitching=function(r){return this.levelSwitch.switchingText?this.levelSwitch.switchingText+r:"正在为您切换至"+r},t.prototype.createSwitched=function(){return this.levelSwitch.switchedText?this.levelSwitch.switchedText:"切换成功"},t.prototype.createSwitchError=function(){return this.levelSwitch.switchErrorText?this.levelSwitch.switchErrorText:"切换失败"},t.prototype.show=function(){e.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){e.prototype.hide.call(this),this.popped=!1},t}(Component$4);videojs.registerComponent("LevelSwitchTips",LevelSwitchTips);var Component$7=videojs.getComponent("Component"),mapKey={fileID:"file ID",requestID:"request ID",mediaType:"media type",mimeType:"mime type",provider:"provider",resolution:"resolution",rate:"rate",frames:"frames",buffer:"buffer",connectionSpeed:"connection speed",info:"info"},VideoTextItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.display=!1,s.displayData="loading",s}return inherits(t,e),t.prototype.createEl=function(){var r=videojs.dom.createEl("div",{className:"tcp-statistic-line vjs-hidden"}),n=videojs.dom.createEl("span",{className:"tcp-statistic-title",innerText:mapKey[this.options_.key]+":"}),s=videojs.dom.createEl("span",{className:"tcp-statistic-data",innerText:this.options_.data});return r.appendChild(n),r.appendChild(s),r},t.prototype.updateTextNode_=function(){for(var r=this.el_.lastChild;r.firstChild;)r.removeChild(r.firstChild);this.displayData&&this.show(),this.textNode_=document_1.createTextNode(this.displayData||""),r.appendChild(this.textNode_)},t.prototype.updateContent=function(r){r!==this.displayData&&(this.displayData=r,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.isDisplay=function(){return this.display},t.prototype.show=function(){e.prototype.show.call(this),this.display=!0,this.popped=!0},t.prototype.hide=function(){e.prototype.hide.call(this),this.display=!1,this.popped=!1},t.prototype.reset=function(){e.prototype.hide.call(this),this.display=!1,this.displayData=""},t}(Component$7);videojs.registerComponent("VideoTextItem",VideoTextItem);var defaultConfig={enableRecoverMediaError:!0,recoverMediaErrorMaxRetry:5,fragLoadingMaxRetry:3},Html5HlsJS=function(){function e(t,r,n){var s=this;classCallCheck(this,e);var a={};t.keySystems&&t.keySystems["com.widevine.alpha"]&&t.keySystems["com.widevine.alpha"].serverURL?(n.hlsConfig.widevineLicenseUrl=t.keySystems["com.widevine.alpha"].serverURL,n.hlsConfig.enableWorker=!0,n.hlsConfig.emeEnabled=!0,n.hlsConfig.startLevel=(n.hlsConfig.qualityLabelList||[]).length-1,a=n.hlsConfig):a=r.player_.options_.hlsConfig||n.hlsConfig||{},a.forbid&&(delete a.overlayKey,delete a.overlayIv),this.drmBackup=n.hlsConfig&&n.hlsConfig.drmBackup;var l=function(){var u=window.Hls,p=new u(videojs.mergeOptions(defaultConfig,a)),d=r.el();s.Hls=u,s.tech=r,s.hls=p,s.switchStatus="",s.manifests=[],s.subtitlesLoadedCount=0,s.audioTrackLoadedCount=0,s.subtitles=[],s.audioTracks=[],s.hlsjsErrorHandler=s.errorHandlerFactory(),p.on(u.Events.ERROR,s.onError.bind(s)),p.on(u.Events.MANIFEST_PARSED,videojs.bind(s,s.onMetaData)),p.on(u.Events.MANIFEST_LOADED,s.loadSubtiles.bind(s)),p.on(u.Events.MANIFEST_LOADED,s.loadAudioTracks.bind(s)),p.on(u.Events.LEVEL_LOADED,s.onLevelLoaded.bind(s));var m=s.tech.player();m.on("ready",s.addHlsSubtitles.bind(s));for(var b in u.Events)p.on(u.Events[b],videojs.bind(s,s.onEvent));p.attachMedia(d),p.loadSource(t.src),window.Hls&&n.xp2pConfig&&n.xp2pConfig.useXP2P&&m.XP2PHlsjsPlugin&&m.XP2PHlsjsPlugin().startHLSP2P(s.hls,window.HLSP2P,function(g){})};Promise.all([function(){return n.xp2pConfig&&n.xp2pConfig.useXP2P&&n.xp2pConfig.format==="hls"&&!window.HLSP2P?new Promise(function(u){loadScript(XP2P_HLS_PATH,function(){u()})}):Promise.resolve()}(),function(){return window.Hls?Promise.resolve():new Promise(function(u){loadScript(HLS_PATH,function(){u()})})}()]).then(function(){l()})}return e.prototype.switchQuality=function(t){t.id!=this.hls.currentLevel&&(this.switchStatus="switching",this.switchData=t,this.tech.trigger({type:"hlsresolutionswitching",data:this.switchData}),this.hls.nextLevel=t.id)},e.prototype.dispose=function(){this.hls.destroy()},e.prototype.onSubtitleLoaded=function(t,r){var n=this,s=this.tech.player(),a=this.subtitlesLoadedCount,l=this.hls.subtitleTracks;this.subtitles[a].url=r.details.fragments[0].url,++this.subtitlesLoadedCount<l.length?this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:l[this.subtitlesLoadedCount].url,id:l[this.subtitlesLoadedCount].id}):s.ready(function(){n.addHlsSubtitles()})},e.prototype.onAudioTrackLoaded=function(t,r){var n=this,s=this.tech.player(),a=this.audioTrackLoadedCount,l=this.hls.audioTracks;this.audioTracks[a].url=r.details.fragments[0].url,++this.audioTrackLoadedCount<l.length?this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:l[this.audioTrackLoadedCount].url,id:l[this.audioTrackLoadedCount].id}):s.ready(function(){n.addAudioTracks()})},e.prototype.loadAudioTracks=function(){var t=this,r=this.hls.audioTracks;if(r.length){r.forEach(function(s){t.audioTracks.push({id:s.id,name:s.name,lang:s.lang,loaded:!1,default:s.default})});var n=r[0];this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:n.url,id:n.id}),this.hls.on(this.Hls.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded.bind(this))}},e.prototype.loadSubtiles=function(){var t=this,r=this.hls.subtitleTracks;if(r.length){r.forEach(function(s){t.subtitles.push({name:s.name,lang:s.lang,loaded:!1})});var n=r[0];this.hls.on(this.Hls.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleLoaded.bind(this)),this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:n.url,id:n.id})}},e.prototype.addAudioTracks=function(){var t=this;this.audioTracks.length&&this.audioTracks.some(function(r){return!r.loaded})&&this.audioTracks.forEach(function(r){var n=t.tech.addAudioTrack({id:r.id,src:r.url,kind:"audio",srclang:r.lang,label:r.name,enabled:r.default},!0);n.addEventListener("load",function(){r.loaded=!0})})},e.prototype.addHlsSubtitles=function(){var t=this;this.subtitles.length&&this.subtitles.some(function(r){return!r.loaded})&&this.subtitles.forEach(function(r){var n=t.tech.addRemoteTextTrack({src:r.url,kind:"subtitles",srclang:r.lang,label:r.name},!0);n.addEventListener("load",function(){r.loaded=!0})})},e.prototype.onEvent=function(t,r){this.tech.trigger({type:t,data:r});var n=this.tech.player();switch(t){case this.Hls.Events.MANIFEST_LOADED:this.manifests.push(r.networkDetails.response||r.networkDetails.responseText);break;case this.Hls.Events.LEVEL_SWITCHING:break;case this.Hls.Events.LEVEL_SWITCHED:this.switchStatus=="switching"&&(this.switchStatus="switched",this.tech.trigger({type:"hlsresolutionswitched",data:this.switchData}),this.switchData=null);break;case this.Hls.Events.LEVEL_SWITCH_ERROR:n.trigger({type:"levelSwitchError"})}},e.prototype.onMetaData=function(t,r){var n=[],s=this.hls,a=this;if(r.levels.length>1){var l={id:-1,label:"auto",selected:s.manualLevel===-1};n.push(l),r.levels.forEach(function(p,d){var m={};m.id=d,m.selected=d===s.manualLevel,m.label=a.getLevelLabel(p),n.push(m)});var u={qualityData:{video:n},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:u})},1)}},e.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},e.prototype.onLevelLoaded=function(t,r){this._duration=r.details.live?1/0:r.details.totalduration},e.prototype.onError=function(t,r){var n=this.tech.player();if(r.fatal)switch(r.type){case this.Hls.ErrorTypes.NETWORK_ERROR:n.error({code:14,source:r});break;case this.Hls.ErrorTypes.MEDIA_ERROR:this.hls.config.enableRecoverMediaError?this.hlsjsErrorHandler(r):n.error({code:15,source:r});break;case this.Hls.ErrorTypes.MUX_ERROR:n.error({code:16,source:r});break;case this.Hls.ErrorTypes.OTHER_ERROR:default:n.error({code:17,source:r}),this.drmBackup&&r.type==="keySystemError"&&n.error(null)}else switch(r.details){case this.Hls.ErrorDetails.KEY_LOAD_ERROR:}},e.prototype.errorHandlerFactory=function(){var t=this.hls,r=this.tech.player(),n=null,s=null,a=0;return function(l){var u=Date.now();a==t.config.recoverMediaErrorMaxRetry?r.error({code:15,source:l}):(!n||u-n>2e3?(n=u,t.recoverMediaError()):(!s||u-s>2e3)&&(s=u,t.swapAudioCodec(),t.recoverMediaError()),a++)}},e.prototype.duration=function(){return this._duration},e}(),hlsTypeRE=/^application\/(x-mpegURL|vnd\.apple\.mpegURL)$/i,hlsExtRE=/.m3u8(?![^?])/i,HlsSourceHandler={name:"hlsSourceHandler",canHandleSource:function(e){return e.skipHlsJs||e.keySystems&&e.keySystems["com.apple.fps.1_0"]?"":hlsTypeRE.test(e.type)&&hlsExtRE.test(e.src)?"probably":hlsExtRE.test(e.src)?"maybe":""},handleSource:function(e,t,r){return t.hlsProvider?(t.hlsProvider.dispose(),t.hlsProvider=null):r.hlsConfig&&r.hlsConfig.autoStartLoad===!1&&t.on("play",function(){this.player().hasStarted()||this.hlsProvider.hls.startLoad()}),t.hlsProvider=new Html5HlsJS(e,t,r),t.hlsProvider},canPlayType:function(e){return hlsTypeRE.test(e)?"probably":""}};TCPlayer.mountHlsProvider=mountHlsProvider,mountHlsProvider();var Html5DashJS=function(){function e(t,r,n){var s=this;classCallCheck(this,e);var a=function(){var l=window_1.dashjs;if(s.dashjs=l,n=n||r.options_,s.player=videojs(n.playerId),s.player.dash=s.player.dash||{},s.tech_=r,s.el_=r.el(),s.elParent_=s.el_.parentNode,s.hasFiniteDuration_=!1,t.src){r.isReady_=!1,e.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),t=e.updateSourceData(t)),e.hooks("updatesource").forEach(function(p){t=p(t)});var u=t.src;s.keySystemOptions_=e.buildDashJSProtData(t.keySystemOptions||t.keySystems),s.player.dash.mediaPlayer=l.MediaPlayer().create(),s.mediaPlayer_=s.player.dash.mediaPlayer,e.useVideoJSDebug&&(videojs.log.warn('useVideoJSDebug has been deprecated. Please switch to using hook("beforeinitialize", callback).'),e.useVideoJSDebug(s.mediaPlayer_)),e.beforeInitialize&&(videojs.log.warn('beforeInitialize has been deprecated. Please switch to using hook("beforeinitialize", callback).'),e.beforeInitialize(s.player,s.mediaPlayer_)),e.hooks("beforeinitialize").forEach(function(p){p(s.player,s.mediaPlayer_)}),s.mediaPlayer_.initialize(),s.retriggerError_=function(p){if(p.error==="capability"&&p.event==="mediasource")s.player.error({code:4,message:"The media cannot be played because it requires a feature that your browser does not support."});else if(p.error!=="manifestError"||p.event.id!=="createParser"&&p.event.id!=="codec"&&p.event.id!=="nostreams"&&p.event.id!=="nostreamscomposed"&&p.event.id!=="parse"&&p.event.id!=="multiplexedrep")if(p.error==="mediasource")p.event.match("MEDIA_ERR_ABORTED")?s.player.error({code:1,message:p.event}):p.event.match("MEDIA_ERR_NETWORK")?s.player.error({code:2,message:p.event}):p.event.match("MEDIA_ERR_DECODE")?s.player.error({code:3,message:p.event}):p.event.match("MEDIA_ERR_SRC_NOT_SUPPORTED")?s.player.error({code:4,message:p.event}):p.event.match("MEDIA_ERR_ENCRYPTED")?s.player.error({code:5,message:p.event}):(p.event.match("UNKNOWN"),s.player.error({code:4,message:p.event}));else if(p.error==="capability"&&p.event==="encryptedmedia")s.player.error({code:5,message:"The media cannot be played because it requires encryption features that your browser does not support."});else if(p.error==="key_session")s.player.error({code:5,message:p.event});else if(p.error==="download")s.player.error({code:2,message:"The media playback was aborted because too many consecutive download errors occurred."});else{if(p.error!=="mssError")return;s.player.error({code:3,message:p.event})}else s.player.error({code:4,message:p.event.message});setTimeout(function(){s.mediaPlayer_.reset()},10)},s.mediaPlayer_.on(l.MediaPlayer.events.ERROR,s.retriggerError_),s.getDuration_=function(p){var d=p.data.Period_asArray,m=s.hasFiniteDuration_;p.data.mediaPresentationDuration||d[d.length-1].duration?s.hasFiniteDuration_=!0:s.hasFiniteDuration_=!1,s.hasFiniteDuration_!==m&&s.player.trigger("durationchange")},s.mediaPlayer_.on(l.MediaPlayer.events.MANIFEST_LOADED,s.getDuration_),s.mediaPlayer_.on(l.MediaPlayer.events.STREAM_INITIALIZED,videojs.bind(s,s.onMetaData)),s.currentQuality={video:"",audio:""},Object.keys(l.MediaPlayer.events).forEach(function(p){s.mediaPlayer_.on(l.MediaPlayer.events[p],videojs.bind(s,s.onEvent))}),n.dashConfig&&Object.keys(n.dashConfig).forEach(function(p){var d,m="set"+p.charAt(0).toUpperCase()+p.slice(1),b=n.dashConfig[p];if(s.mediaPlayer_.hasOwnProperty(m)&&(videojs.log.warn("Using dash options in videojs-contrib-dash without the set prefix has been deprecated. Change '"+p+"' to '"+m+"'"),p=m),!s.mediaPlayer_.hasOwnProperty(p))return void videojs.log.warn("Warning: dash configuration option unrecognized: "+p);Array.isArray(b)||(b=[b]),(d=s.mediaPlayer_)[p].apply(d,b)}),s.mediaPlayer_.attachView(s.el_),s.mediaPlayer_.setAutoPlay(!1),setupAudioTracks.call(null,s.player,r),setupTextTracks.call(null,s.player,r,n),s.mediaPlayer_.setProtectionData(s.keySystemOptions_),s.mediaPlayer_.attachSource(u),s.tech_.triggerReady()}};window_1.dashjs?a():loadScript(DASH_PATH,function(){a()})}return e.buildDashJSProtData=function(t){var r={};if(!t)return null;if(Array.isArray(t))for(var n=0;n<t.length;n++){var s=t[n],a=videojs.mergeOptions({},s.options);a.licenseUrl&&(a.serverURL=a.licenseUrl,delete a.licenseUrl),r[s.name]=a}else r=t;return r},e.prototype.dispose=function(){var t=this;this.mediaPlayer_&&(this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.ERROR,this.retriggerError_),this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.MANIFEST_LOADED,this.getDuration_),Object.keys(this.dashjs.MediaPlayer.events).forEach(function(r){t.mediaPlayer_.off(t.dashjs.MediaPlayer.events[r],videojs.bind(t,t.onEvent))}),this.mediaPlayer_.reset()),this.player.dash&&delete this.player.dash},e.prototype.duration=function(){return this.mediaPlayer_?this.mediaPlayer_.isDynamic()&&!this.hasFiniteDuration_?1/0:this.mediaPlayer_.duration():0},e.hooks=function(t,r){return e.hooks_[t]=e.hooks_[t]||[],r&&(e.hooks_[t]=e.hooks_[t].concat(r)),e.hooks_[t]},e.hook=function(t,r){e.hooks(t,r)},e.removeHook=function(t,r){var n=e.hooks(t).indexOf(r);return n!==-1&&(e.hooks_[t]=e.hooks_[t].slice(),e.hooks_[t].splice(n,1),!0)},e.prototype.onMetaData=function(t){var r=this,n=this.mediaPlayer_,s=n.getBitrateInfoListFor("video"),a=n.getSettings(),l=a.streaming.abr.autoSwitchBitrate.video,u=[];if(s.length>0){u.push({id:-1,label:"auto",selected:l}),s.forEach(function(d,m){u.push({id:m,label:r.getLevelLabel(d),selected:!l&&r.currentQuality.video===m})});var p={qualityData:{video:u},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech_.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:p})},1)}},e.prototype.switchQuality=function(t){var r=this.mediaPlayer_;t.id===-1?r.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}}):t.id!=this.currentQuality[t.trackType]&&(r.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),r.setQualityFor(t.trackType,t.id))},e.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},e.prototype.onEvent=function(t){switch(this.tech_.trigger({type:"dash_"+t.type,data:t}),t.type){case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_REQUESTED:this.tech_.trigger({type:"dashqualityswitching",data:t});break;case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_RENDERED:this.tech_.trigger({type:"dashqualityswitched",data:t}),this.currentQuality[t.mediaType]=t.newQuality}},e}();Html5DashJS.hooks_={};var canHandleKeySystems=function(e){e=JSON.parse(JSON.stringify(e)),Html5DashJS.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),e=Html5DashJS.updateSourceData(e)),Html5DashJS.hooks("updatesource").forEach(function(r){e=r(e)});var t=document_1.createElement("video");return!(e.keySystemOptions&&!window_1.navigator.requestMediaKeySystemAccess&&!t.msSetMediaKeys)};videojs.DashSourceHandler=function(){return{name:"dashSourceHandler",canHandleSource:function(e){var t=/\.mpd/i;return canHandleKeySystems(e)?videojs.DashSourceHandler.canPlayType(e.type)?"probably":t.test(e.src)?"maybe":"":""},handleSource:function(e,t,r){return new Html5DashJS(e,t,r)},canPlayType:function(e){return videojs.DashSourceHandler.canPlayType(e)}}},videojs.DashSourceHandler.canPlayType=function(e){return/^application\/dash\+xml/i.test(e)?"probably":""},TCPlayer.mountDashProvider=mountDashProvider,mountDashProvider(),videojs.Html5DashJS=Html5DashJS;var Component$6=videojs.getComponent("Component"),hlsOption=["fileID","requestID","mediaType","mimeType","provider","resolution","rate","frames","buffer","connectionSpeed"],mp4Option=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer"],dashOption=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer","provider","connectionSpeed"],infoOption=["info"],VideoStatisticWrapper=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.nodelist={},s.status={fileID:"",requestID:"",mediaType:"",mimeType:"",provider:"",resolution:"",rate:"",frames:"",buffer:"",connectionSpeed:"",info:""},r.on("playcgiend",function(){clearTimeout(s.timeoutID),Object.keys(s.status).forEach(function(a){s.nodelist[a].reset()})}),r.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.tick():s.clearTimeout(s.timeoutID)})),s.init(),s}return inherits(t,e),t.prototype.tick=function(){var r=this;this.timeoutID=setTimeout(videojs.bind(this,function(){r.tick()}),1e3),this.updatePanel()},t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-statistic-wrapper"})},t.prototype.init=function(){var r=this;Object.keys(this.status).forEach(function(n){var s=new VideoTextItem(r,{key:n,data:r.status[n]});r.nodelist[n]=s,r.addChild(s)})},t.prototype.updatePanel=function(){var r=this;if(this.player().techName_==="Html5")switch(this.getStatus(),this.status.mediaType){case"m3u8":hlsOption.forEach(function(n){r.nodelist[n].updateContent(r.status[n])});break;case"mp4":mp4Option.forEach(function(n){r.nodelist[n].updateContent(r.status[n])});break;case"mpd":dashOption.forEach(function(n){r.nodelist[n].updateContent(r.status[n])})}else this.player().techName_==="Flash"&&(this.getFlashStatus(),infoOption.forEach(function(n){n==="info"&&r.nodelist[n].updateContent(r.status[n])}))},t.prototype.getStatus=function(){this.getFileID(),this.getRequestID(),this.getMediaType(),this.getMIMEType(),this.getResolution(),this.getRate(),this.getProvider(),this.getBuffer(),this.status.mediaType==="m3u8"&&(this.getFrames(),this.getConnectionSpeed()),this.status.mediaType==="mpd"&&this.getConnectionSpeed()},t.prototype.getFlashStatus=function(){this.status.mediaType="flash",this.getSupport()},t.prototype.getFileID=function(){var r=this.player().options_.fileID||"";return this.status.fileID=r,r},t.prototype.getRequestID=function(){var r=this.player().PlayerMetrics().playStatus;if(r){var n=r.requestID;return this.status.requestID=n,n}},t.prototype.getMediaType=function(){this.player_.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player_.src());var r=RegExp.$2||RegExp.$4||"";return this.status.mediaType=r,r},t.prototype.getMIMEType=function(){var r=this.player().src(),n=EXT_MIME[getFileExtension(r)]||"";return this.status.mimeType=n,n},t.prototype.getResolution=function(){var r=this.player_.tech_.el_.videoHeight||0,n=this.player_.tech_.el_.videoWidth||0,s=n+" x "+r;return this.status.resolution=s,s},t.prototype.getRate=function(){var r=this.player().playbackRate()||1;return this.status.rate=r+"x",r},t.prototype.getBuffer=function(){var r=this.player_.bufferedEnd().toFixed(1)||0,n=this.player_.duration().toFixed(1)||0,s=(r/n*100).toFixed(1)+"%",a=r+" / "+n+" ("+s+")";return this.status.buffer=a,a},t.prototype.getSupport=function(){var r=void 0;return r=this.status.mediaType!=="m3u8"&&this.status.mediaType!=="mp4"&&this.status.mediaType!=="dash"?"视频统计功能不支持当前视频格式":"",this.status.info=r,r},t.prototype.getProvider=function(){var r=this.player_.tech_.sourceHandler_;return r instanceof Html5HlsJS?(this.status.provider="HlsJS","HlsJS"):r instanceof Html5DashJS?(this.status.provider="DashJS","DashJS"):""},t.prototype.getFrames=function(){var r=this.player_.getVideoPlaybackQuality(),n=(r.droppedVideoFrames||0)+" dropped of "+(r.totalVideoFrames||0);return this.status.frames=n,n},t.prototype.getConnectionSpeed=function(){var r=void 0;if(this.status.mediaType==="m3u8"){var n=this.player_.tech_.hlsProvider.hls.abrController._bwEstimator;r=n&&n.getEstimate()?(125e-6*n.getEstimate()).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=r}if(this.status.mediaType==="mpd"){var s=this.player_.dash.mediaPlayer,a=s.getDashMetrics(),l=s.getDashAdapter(),u=s.getActiveStream().getStreamInfo(),p=u.index,d=a.getCurrentRepresentationSwitch("video").to,m=l.getBandwidthForRepresentation(d,p);r=m?(125e-6*m).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=r}return r},t}(Component$6);videojs.registerComponent("VideoStatisticWrapper",VideoStatisticWrapper);var Component$5=videojs.getComponent("Component"),VideoStatisticPanel=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return r.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.show():s.hide()})),r.on("playcgistart",function(){r.trigger({type:"statistic",data:{action:"close"}})}),s.init(),s}return inherits(t,e),t.prototype.createEl=function(){var r=this,n=videojs.dom.createEl("div",{className:"tcp-statistic vjs-hidden"}),s=videojs.dom.createEl("div",{className:"tcp-statistic-close",innerText:"[X]"});return s.addEventListener("click",function(){r.hide(),r.player().trigger({type:"statistic",data:{action:"close"}})}),n.appendChild(s),n},t.prototype.init=function(){this.addChild("VideoStatisticWrapper")},t.prototype.show=function(){e.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){e.prototype.hide.call(this),this.popped=!1},t}(Component$5);videojs.registerComponent("VideoStatisticPanel",VideoStatisticPanel);var MenuItem$3=videojs.getComponent("MenuItem"),MirrorMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("tc-menu-list"),s.open=!1,s.hasOpen=!1,s.player=r,s.setup(),s}return inherits(t,e),t.prototype.setup=function(){var r=this;this.on(["tap","click"],function(){var n=r.player.tech().el();r.hasOpen||(window.MtaH5&&MtaH5.clickStat("mirror",{appid:r.player.options_.appID,fileid:r.player.options_.fileID}),r.player.trigger({type:"feature",data:"mirror"})),r.open?(videojs.dom.removeClass(n,"tcp-mirror"),videojs.dom.removeClass(r.el_,"tcp-menu-item-select")):(videojs.dom.addClass(n,"tcp-mirror"),videojs.dom.addClass(r.el_,"tcp-menu-item-select"),r.hasOpen=!0),r.open=!r.open})},t}(MenuItem$3);videojs.registerComponent("MirrorMenuItem",MirrorMenuItem);var MenuItem$4=videojs.getComponent("MenuItem"),PoweredByMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("tc-menu-list"),s}return inherits(t,e),t}(MenuItem$4);videojs.registerComponent("PoweredByMenuItem",PoweredByMenuItem);var MenuItem$5=videojs.getComponent("MenuItem"),StatusMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("tc-menu-list"),s.hasOpen=!1,s.player=r,r.on("statistic",videojs.bind(s,function(a){a.data.action==="close"&&(videojs.dom.removeClass(s.el_,"tcp-menu-item-select"),s.hasOpen=!1)})),s.setup(),s}return inherits(t,e),t.prototype.setup=function(){var r=this;this.on(["tap","click"],function(){r.hasOpen?(videojs.dom.removeClass(r.el_,"tcp-menu-item-select"),r.player.trigger({type:"statistic",data:{action:"close"}}),r.hasOpen=!1):(videojs.dom.addClass(r.el_,"tcp-menu-item-select"),r.player.trigger({type:"statistic",data:{action:"open"}}),r.hasOpen=!0,window.MtaH5&&MtaH5.clickStat("mirror",{appid:r.player.options_.appID,fileid:r.player.options_.fileID}),r.player.trigger({type:"feature",data:"statistic"}))})},t}(MenuItem$5);videojs.registerComponent("StatusMenuItem",StatusMenuItem),videojs.getComponent("Component");var Menu$2=videojs.getComponent("Menu");videojs.getComponent("MenuItem");var RightClickPopupMenu=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));s.hide(),s.addChild("PoweredByMenuItem",{label:"Powered by Tencent Cloud."}),!n.statistic||IS_IOS||IS_ANDROID||s.addChild("StatusMenuItem",{label:"Video statistic"}),n.mirror&&s.addChild("MirrorMenuItem",{label:"Mirror"}),r.on("contextmenu",videojs.bind(s,s.onContextmenu)),r.on(["tap","click"],videojs.bind(s,function(l){if(this.popped)return this.hide(),l.stopPropagation(),l.preventDefault(),!1})),videojs.on(document,["tap","click"],videojs.bind(s,function(l){this.popped&&this.hide()}));var a=s;return s.children().forEach(function(l){l.on(["tap","click"],function(){a.hide()})}),s}return inherits(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this);return videojs.dom.addClass(r,"tcp-right-click-popup-menu"),r},t.prototype.show=function(){e.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){e.prototype.hide.call(this),this.popped=!1},t.prototype.onContextmenu=function(r){r.preventDefault(),this.show();var n=this.el(),s=r.clientX,a=r.clientY,l=getViewportSize(),u=l.width,p=l.height,d=s+n.offsetWidth-u+5;d=Math.max(0,d);var m=a+n.offsetHeight-p+5;m=Math.max(0,m);var b=this.player().el().getBoundingClientRect();n.style.left=Math.max(0,s-b.left-d)+"px",n.style.top=Math.max(0,a-b.top-m)+"px"},t}(Menu$2);videojs.registerComponent("RightClickPopupMenu",RightClickPopupMenu);var clickableComponent=videojs.getComponent("ClickableComponent"),TimeTooltip$2=videojs.getComponent("TimeTooltip"),Component$9=videojs.getComponent("Component"),dom=videojs.dom,formatTime$2=videojs.formatTime,COMMENT_WIDTH=140,COMMENT_HEIGHT_SINGLE_LINE=23,COMMENT_SHOW_ON_THE_LEFT={POPUP_CONTAINER_OFFSET:-130,POPUP_CONTAINER_OFFSET_WITHOUTGIT:-100,TRIANGLE_OFFEST:96,TRIANGLE_OFFEST_WITHOUTGIF:95},COMMENT_SHOW_ON_THE_RIGHT={TRIANGLE_OFFEST:6,POPUP_CONTAINER_OFFSET:0},ProgressMarkerGenerator=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.duration=0,s.registerListener(),s}return inherits(t,e),t.prototype.registerListener=function(){this.player_.one("canplay",videojs.bind(this,this.resetDotsElement))},t.prototype.resetDotsElement=function(){var r=this.player_;this.duration=r.duration(),dom.emptyEl(this.el_),this.resetEl()},t.prototype.resetEl=function(){this.setUpEl()},t.prototype.dotMouseLeave=function(){var r=event.currentTarget,n=r.getAttribute("container-id");this.getChildById(n).hide()},t.prototype.dotHover=function(){var r=event.currentTarget.parentElement.offsetWidth,n=event.currentTarget.offsetLeft+COMMENT_WIDTH,s=this.getChildById(event.currentTarget.getAttribute("container-id")),a=s.getAttribute("class").search("tcp-without-gif")>=0,l=s.el_.querySelector(".tcp-triangle-both")||s.el_.querySelector(".tcp-triangle");n>r?a?(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET_WITHOUTGIT+"px",l.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST_WITHOUTGIF+"%"):(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET+"px",l.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST+"%"):event.currentTarget.offsetLeft<=COMMENT_WIDTH&&!a&&(s.el_.style.left=COMMENT_SHOW_ON_THE_RIGHT.POPUP_CONTAINER_OFFSET+"px",l.style.left=COMMENT_SHOW_ON_THE_RIGHT.TRIANGLE_OFFEST+"px");var u=s.getChild("DotImage");if(u){var p=u.el_.getElementsByClassName("tcp-dot-timestamp")[0],d=event.currentTarget.getAttribute("dotinsecond"),m=formatTime$2(d);p.innerHTML=m}s.show()},t.prototype.setChildInTheContainer=function(r,n){var s=r.content&&r.content!==""?decodeURIComponent(r.content.replace(/\+/g," ")):"";if(s!==""){var a=n.addChild("DotComment");a.el_.innerHTML=encodeHTML(s)}if(r.img){n.el_.querySelector(".tcp-triangle").setAttribute("class","tcp-triangle-both");var l=n.addChild("DotImage");l.el_.firstChild.setAttribute("src",r.img),s==""?(n.addClass("tcp-only-gif"),l.el_.firstChild.className="tcp-image-in-container-only-image"):this.countContentSize(s)<=20&&(n.addClass("tcp-single-line"),a.el_.style.height=COMMENT_HEIGHT_SINGLE_LINE+"px")}else if(s!==""){var u=this.countContentSize(s);u<=14?n.addClass("tcp-single-line"):u<=28&&n.addClass("tcp-two-lines"),n.addClass("tcp-without-gif"),a.addClass("tcp-large-comment")}},t.prototype.markSetUp=function(r){var n=r.timeOffset>0?r.timeOffset/1e3:0,s=this.duration?this.duration:0;if(!(typeof n!="number"||n>s)){var a=document.createElement("div");a.className="tcp-dot-basic-style",a.setAttribute("dotinsecond",n.toString()),r.class&&(a.className+=" "+r.class);var l=this.addChild("PopUpContainer");return a.setAttribute("container-id",l.id_),this.setChildInTheContainer(r,l),a.appendChild(l.el_),a.style.left=n/s*100+"%",a.addEventListener("mouseover",videojs.bind(this,this.dotHover)),a.addEventListener("mouseleave",videojs.bind(this,this.dotMouseLeave)),a}},t.prototype.setUpEl=function(){var r=this,n=this.player_.options_.dots||0,s=this.el_||e.prototype.createEl.call(this);return videojs.dom.addClass(s,"tcp-dot-component"),n&&n instanceof Array&&n.length>0&&n.forEach(function(a){var l=a.content||"";if(l&&l!=""||a.img){var u=r.markSetUp(a);u&&s.appendChild(u)}}),s},t.prototype.countContentSize=function(r){for(var n=0,s=r.length,a=-1,l=0;l<s;l++)a=r.charCodeAt(l),n+=a>=0&&a<=128?1:2;return n},t.prototype.createEl=function(){return this.setUpEl()},t}(clickableComponent);videojs.registerComponent("ProgressMarkerGenerator",ProgressMarkerGenerator);var DotComment=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("tcp-dot-comment"),s}return inherits(t,e),t}(Component$9);videojs.registerComponent("DotComment",DotComment);var DotImage=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));s.addClass("tcp-dot-image");var a=s.el_||e.prototype.createEl.call(s),l=dom.createEl("img");l.className="tcp-image-in-container",a.appendChild(l);var u=dom.createEl("span");return u.className="tcp-dot-timestamp",u.innerHTML="",a.appendChild(u),s}return inherits(t,e),t}(Component$9);videojs.registerComponent("DotImage",DotImage);var PopUpContainer=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));s.addClass("tcp-popup-container");var a=dom.createEl("div");return a.setAttribute("class","tcp-triangle"),s.el_.appendChild(a),s.hide(),s}return inherits(t,e),t}(TimeTooltip$2);videojs.registerComponent("PopUpContainer",PopUpContainer);var Plugin$2=videojs.getPlugin("plugin"),SpeedUp=function(e){function t(r){classCallCheck(this,t);var n=possibleConstructorReturn(this,e.call(this,r));return n.TARGET_LANTENCY=1,n.MAX_LATENCY=3,n.RATEVALUE=1.1,r.ready(videojs.bind(n,n.init)),n}return inherits(t,e),t.prototype.checkLatency=function(){var r=this.player.bufferedEnd()-this.player.currentTime();r>this.MAX_LATENCY&&this.player.playbackRate(this.RATEVALUE),r<this.TARGET_LANTENCY&&this.player.playbackRate(1)},t.prototype.init=function(){var r=this,n=this.player,s=void 0;n.on("playing",function(){n.duration()===1/0&&(s=setInterval(r.checkLatency.bind(r),1e3))}),n.on("waiting",function(){r.reset(s)}),n.on("pause",function(){r.reset(s)})},t.prototype.reset=function(r){this.player.playbackRate(1),clearInterval(r)},t}(Plugin$2);videojs.registerPlugin("SpeedUp",SpeedUp);var Button$3=videojs.getComponent("Button"),BigPlayButton$2=videojs.getComponent("BigPlayButton");BigPlayButton$2.prototype.createEl=function(){var e=Button$3.prototype.createEl.call(this),t=getTemplate();return(this.options_.shapeType||this.options_.styleType)&&(t=getTemplate(this.options_.shapeType,this.options_.styleType)),e.appendChild(videojs.dom.createEl("div",{className:"vjs-button-icon",innerHTML:t})),e},BigPlayButton$2.prototype.controlText_="Play";var Component$10=videojs.getComponent("Component"),VideoStatisticWrapper$1=videojs.getComponent("VideoStatisticWrapper"),LoadingSpinner$2=videojs.getComponent("LoadingSpinner");LoadingSpinner$2.prototype.createEl=function(){function e(s,a){var l=new VideoStatisticWrapper$1(s);if(l.getMediaType(),(l.getBuffer()||"").indexOf("100.0%")>-1)return a.innerText="",!1;a.innerText=l.getConnectionSpeed()}var t=this,r=Component$10.prototype.createEl.call(this,"div",{className:"tcp-loading-spinner",dir:"ltr"});if(!this.player_.options_.loadingSpeed)return r;var n=null;return this.player_.on("waiting",function(){n=setInterval(function(){e(t.player_,r)},100)}),this.player_.on("timeupdate",function(){n&&clearInterval(n)}),r};var Plugin$3=videojs.getPlugin("plugin"),log$3=videojs.log,Skin=function(e){function t(r,n){classCallCheck(this,t),log$3("Skin initializing");var s=possibleConstructorReturn(this,e.call(this,r));return s.player.addClass("tcp-skin"),log$3("Skin initialized"),s}return inherits(t,e),t}(Plugin$3);videojs.registerPlugin("Skin",Skin);var Plugin$4=videojs.getPlugin("plugin"),log$4=videojs.log,VID=function(e){function t(r,n){classCallCheck(this,t),log$4("VID initializing");var s=possibleConstructorReturn(this,e.call(this,r));return s.init(s.player.options_),log$4("VID initialized"),s}return inherits(t,e),t.prototype.init=function(r){var n=(this.player,r.sources);r&&r.appID&&r.fileID||r.plugins.DRM&&n.length==0?r.children.splice(0,r.children[0]=="mediaLoader"?1:0,"mediaAsyncLoader"):r.children[0]!="mediaLoader"&&r.children.unshift("mediaLoader")},t}(Plugin$4);videojs.registerPlugin("VID",VID);var isObject_1=isObject$2,freeGlobal=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=_freeGlobal||freeSelf||Function("return this")(),_root=root,now=function(){return _root.Date.now()},now_1=now,reWhitespace=/\s/,_trimmedEndIndex=trimmedEndIndex,reTrimStart=/^\s+/,_baseTrim=baseTrim,Symbol$1=_root.Symbol,_Symbol=Symbol$1,objectProto=Object.prototype,hasOwnProperty$2=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0,_getRawTag=getRawTag,objectProto$1=Object.prototype,nativeObjectToString$1=objectProto$1.toString,_objectToString=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0,_baseGetTag=baseGetTag,isObjectLike_1=isObjectLike,symbolTag="[object Symbol]",isSymbol_1=isSymbol,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,toNumber_1=toNumber,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min,debounce_1=debounce,FUNC_ERROR_TEXT="Expected a function",throttle_1=throttle$1,Component$11=videojs.getComponent("Component"),DvrProgressControl=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on("mousemove",s.handleMouseMove),s.on("mouseup",s.handleMouseUp),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control tcp-dvr-progress-control"})},t.prototype.update=function(r){this.getChild("DvrSeekBar").update(r)},t.prototype.handleMouseMove=function(r){var n=this.getChild("DvrSeekBar"),s=n.calculateDistance(r),a=n.getChild("DvrMouseTimeDisplay");a&&a.update(videojs.dom.getBoundingClientRect(n.el()),s)},t.prototype.handleMouseUp=function(r){this.getChild("DvrSeekBar").handleMouseUp(r)},t}(Component$11);DvrProgressControl.prototype.options_={children:["DvrSeekBar"]},videojs.registerComponent("DvrProgressControl",DvrProgressControl);var Slider$2=videojs.getComponent("Slider"),DvrSeekBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.percent_=1,s.update=throttle_1(videojs.bind(s,s.update),50),s.on(r,"seekToLive",videojs.bind(s,function(a){this.update(a.data)})),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update=function(r){r!=null&&(this.percent_=r,this.bar.update(videojs.dom.getBoundingClientRect(this.el_),r),this.updateAriaAttributes(r))},t.prototype.handleMouseDown=function(r){e.prototype.handleMouseDown.call(this,r),this.isMouseDown=!0},t.prototype.handleMouseMove=function(r){var n=this.calculateDistance(r);this.update(n)},t.prototype.handleMouseUp=function(r){e.prototype.handleMouseUp.call(this);var n=this.calculateDistance(r);this.update(n),this.player().Dvr().timeShift(n)},t.prototype.stepBack=function(){},t.prototype.stepForward=function(){},t.prototype.updateAriaAttributes=function(r){this.el().setAttribute("aria-valuenow",(100*r).toFixed(2))},t.prototype.getPercent=function(){return this.percent_},t}(Slider$2);DvrSeekBar.prototype.options_={children:["DvrMouseTimeDisplay","DvrTimeShiftBar"],barName:"DvrTimeShiftBar"},videojs.registerComponent("DvrSeekBar",DvrSeekBar);var DvrTimeShiftBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.el_.style.width="100%",s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar tcp-dvr-time-shift",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 100%</span>"})},t.prototype.update=function(r,n){var s=(100*n).toFixed(2)+"%";this.el_.style.width=s},t}(Component$11);videojs.registerComponent("DvrTimeShiftBar",DvrTimeShiftBar);var MouseTimeDisplay$2=videojs.getComponent("MouseTimeDisplay"),DvrMouseTimeDisplay=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.update=function(r,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player().Dvr().dvrData.maxTimeShift,l=videojs.formatTime((1-n)*a,a);s.el_.style.left=r.width*n+"px",s.getChild("timeTooltip").update(r,n,l)})},t}(MouseTimeDisplay$2);videojs.registerComponent("DvrMouseTimeDisplay",DvrMouseTimeDisplay);var Button$4=videojs.getComponent("Button"),LiveButton=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){var r=Button$4.prototype.createEl.call(this,"button",{className:"vjs-live-control vjs-control"});return this.contentEl_=videojs.dom.createEl("div",{className:"vjs-live-display",innerHTML:this.localize("LIVE")},{"aria-live":"off"}),r.appendChild(this.contentEl_),r},t.prototype.update=function(){},t.prototype.updateControlText=function(r){this.controlText(r?"直播中":"返回直播")},t.prototype.handleClick=function(r){this.player().Dvr().seekToLive()},t}(Button$4);LiveButton.prototype.controlText_="返回直播",videojs.registerComponent("LiveButton",LiveButton);var Plugin$5=videojs.getPlugin("plugin"),Dvr=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));s.isInit=!1,s.options=n;var a=s;return r.ready(function(){var l=r.tech(!0),u=l&&l.hlsProvider;if(u&&u.Hls){var p=u.Hls;l.one(p.Events.MANIFEST_LOADED,function(d){}),l.one(p.Events.LEVEL_LOADED,function(d){}),r.one("loadedmetadata",function(d){l.el_.setAttribute("poster",""),a.init(),a.options.liveURL&&a.seekToLive()})}}),s}return inherits(t,e),t.prototype.init=function(){var r=this.player,n=r.tech(!0).hlsProvider;if(this.parseM3u8(n.manifests[0]),!this.dvrData.startTime&&!this.isInit)return void r.one("loadedmetadata",videojs.bind(this,function(s){this.init()}));this.initControl(),this.delay=getParams("delay",r.tech_.currentSource_.src)||0,this.updateControl(!this.isLive()),r.on("loadedmetadata",videojs.bind(this,function(){this.parseM3u8(n.manifests[0]),this.delay=getParams("delay",r.tech_.currentSource_.src)||0,this.updateControl()})),this.isInit=!0},t.prototype.initControl=function(){var r=this.player;r.addClass("vjs-dvr"),r.controlBar.getChild("ProgressControl").hide(),r.controlBar.getChild("LiveDisplay").hide(),r.controlBar.addChild("DvrProgressControl",{},5),r.controlBar.addChild("liveButton",{},6)},t.prototype.updateControl=function(r){var n=this.player,s=n.controlBar.getChild("ProgressControl"),a=n.controlBar.getChild("LiveDisplay"),l=n.controlBar.getChild("DvrProgressControl"),u=n.controlBar.getChild("LiveButton");n.toggleClass("vjs-dvr-live",this.isLive()),u.updateControlText(this.isLive()),r&&l.update(1-this.delay/this.dvrData.maxTimeShift),this.dvrData.startTime?(l.show(),u.show(),s.hide(),a.hide()):(l.hide(),u.hide(),s.show(),a.show())},t.prototype.seekToLive=function(){this.isLive()||(this.timeShift(1),this.player.trigger({type:"seekToLive",data:1}))},t.prototype.isLive=function(){return!(this.delay>0)},t.prototype.timeShift=function(r){var n=this.player,s=(n.getChild("ControlBar").getChild("LiveButton"),n.tech_.currentSource_),a=Math.floor(this.dvrData.maxTimeShift*(1-r));this.delay=a,a==0&&this.options.liveURL?n.src(this.options.liveURL):(s.src=(this.options.shiftURL||s.src).replace(/delay=*(\d+)/,"delay="+a),n.src(n.tech_.currentSource_.src)),n.bigPlayButton.hide(),n.posterImage.hide(),n.tech_.one("hlsManifestParsed",videojs.bind(this,function(){n.play()}))},t.prototype.parseM3u8=function(r){this.dvrData={};for(var n=new RegExp([/#EXT-TX-TS-START-TIME:*(.+)/.source,/|#EXT-TX-TS-DURATION:*(.+)/.source].join(""),"g"),s=void 0;(s=n.exec(r))!==null;)s[1]?this.dvrData.startTime=s[1]:s[2]&&(this.dvrData.duration=s[2]);this.dvrData.startTime&&(this.dvrData.maxTimeShift=Math.min(Math.floor(new Date().getTime()/1e3-this.dvrData.startTime),this.dvrData.duration))},t}(Plugin$5);videojs.registerPlugin("Dvr",Dvr);var Menu$4=videojs.getComponent("Menu"),QualitySwitcherMenu=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.addItem=function(r){e.prototype.addItem.call(this,r)},t}(Menu$4),MenuItem$6=videojs.getComponent("MenuItem"),QualitySwitcherMenuItem=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.handleClick=function(r){if(e.prototype.handleClick.call(this,r),this.updateItems(),this.options_.callback(this.options_),this.options_.trackType=="video"){var n=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton");n.updateLabel(this.options_),n.unpressButton()}},t.prototype.updateItems=function(){for(var r=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton"),n=r.getChild(this.options_.trackType+"QualitySwitcherMenu"),s=n.children(),a=0;a<s.length;a++){var l=s[a];this!==l?(l.selected(!1),l.options_.selected=!1):l.options_.selected=!0}},t}(MenuItem$6),MenuButton$2=videojs.getComponent("MenuButton");videojs.getComponent("Menu");var QualitySwitcherMenuButton=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this);return this.labelEl_=videojs.dom.createEl("div",{className:"tcp-quality-switcher-value",innerHTML:""}),r.appendChild(this.labelEl_),r},t.prototype.createMenu=function(){for(var r=this.options_.qualityList,n=new QualitySwitcherMenu(this.player(),{name:this.options_.trackType+"QualitySwitcherMenu"}),s=void 0,a=r.length-1;a>-1;a--){var l=r[a];s=videojs.mergeOptions(l,{trackType:this.options_.trackType,callback:this.options_.callback,selectable:!0}),n.addItem(new QualitySwitcherMenuItem(this.player(),s)),l.selected&&this.updateLabel(l)}return n},t.prototype.updateLabel=function(r){this.labelEl_.innerHTML="<p>"+this.localize(r.label)+"</p>"},t}(MenuButton$2),Plugin$6=videojs.getPlugin("plugin"),TRACK_TYPES=["video","audio","subtitle"],TRACK_CLASS={video:"tcp-video-quality-switcher",audio:"tcp-audio-quality-switcher",subtitle:"tcp-subtitle-quality-switcher"},log$5=videojs.log,QualitySwitcher=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,r.on("qualitydataloaded",videojs.bind(s,s.init)),s}return inherits(t,e),t.prototype.init=function(r){log$5("QualitySwitcher initializing",r);var n=this.player,s=r.data.qualityData,a=r.data.callbacks;if(this.setOptions({qualityData:s,callbacks:a}),!n.controlBar)return void log$5("QualitySwitcher can not initialize without control bar");for(var l=0;l<TRACK_TYPES.length;l++){var u=TRACK_TYPES[l],p=u+"QualitySwitcherMenuButton",d=n.controlBar.getChild(p);s[u]&&s[u].length>0&&n.controlBar.options_.QualitySwitcherMenuButton&&(d&&d.el()&&(d.dispose(),n.controlBar.removeChild(d)),this.repleaceLabel(u,s),d=new QualitySwitcherMenuButton(n,{name:p,qualityList:s[u],callback:a[u],trackType:u}),d.addClass(TRACK_CLASS[u]),n.controlBar.addChild(d,{},10))}log$5("QualitySwitcher initialized",r,this)},t.prototype.setOptions=function(r){this.options=videojs.mergeOptions(this.options,r)},t.prototype.setVideoQuality=function(r){if(this.options.qualityData&&this.options.callbacks.video){for(var n=this.options.qualityData.video,s=0;s<n.length;s++)n[s].selected&&(n[s].selected=!1),n[s].id===r.id&&(n[s].selected=!0);this.options.callbacks.video(r)}},t.prototype.getVideoQualityData=function(){return this.options.qualityData?this.options.qualityData.video:void 0},t.prototype.repleaceLabel=function(r,n){if(this.options.qualityLabelList){var s=this.options.qualityLabelList[r],a=n[r];if(a&&a.length>0&&s&&s.length>0)for(var l=0;l<a.length;l++){var u=a[l].label;u=u.slice(0,u.length-1);for(var p=0;p<s.length;p++)if(s[p].height==u){a[l].label=s[p].resolutionName;break}}}},t.prototype.reset=function(){for(var r=this.player,n=0;n<TRACK_TYPES.length;n++){var s=TRACK_TYPES[n],a=r.controlBar&&r.controlBar.getChild(s+"QualitySwitcherMenuButton");a&&a.el()&&(a.dispose(),r.controlBar.removeChild(a))}},t}(Plugin$6);videojs.registerPlugin("QualitySwitcher",QualitySwitcher);var Plugin$7=videojs.getPlugin("plugin"),log$6=videojs.log,defaultOptions={labels:{FLU:"流畅",SD:"标清",HD:"高清",FHD:"超清"},showOrder:["FLU","SD","HD","FHD"],defaultRes:"SD"},MultiResolution=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,n.useManualOption&&(s.manualOptions=extend({},n)),s.hasInit=!1,r.on("multiresolutionchange",videojs.bind(s,function(a){a.data&&this.update(data)})),r.on(["resolutionswitching","resolutionswitched"],videojs.bind(s,function(a){a.type=="resolutionswitching"?this.player.addClass("tcp-res-switching"):this.player.removeClass("tcp-res-switching")})),r.ready(videojs.bind(s,function(){var a=r.tech(!0);a&&(a.on("masterplaylistchange",videojs.bind(this,this.onMasterPlaylistChange)),a.on("hlsresolutionswitching",videojs.bind(this,this.onHlsLevelChange)),a.on("hlsresolutionswitched",videojs.bind(this,this.onHlsLevelChange)),a.on("dashqualityswitching",videojs.bind(this,this.onDashQualityChange)),a.on("dashqualityswitched",videojs.bind(this,this.onDashQualityChange))),this.hasInit=!0})),s.init(s.player.options_.multiResolution),s}return inherits(t,e),t.prototype.init=function(r){var n={};this.player.options_.label&&(n.label=this.player.options_.label),this.player.options_.showOrder&&(n.showOrder=this.player.options_.showOrder),this.player.options_.defaultRes&&(n.defaultRes=this.player.options_.defaultRes);var s=this.player,a=extend({},defaultOptions,r,this.manualOptions,n),l=a&&a.sources;if(this.options=a,l){log$6("MultiResolution initializing",a);var u=void 0;if(this.currentID=a.defaultRes=l[a.defaultRes]?a.defaultRes:Object.keys(l).shift(),u=l[this.currentID],s.options_.children[0]!="mediaLoader"||this.hasInit)s.src(u);else{var p;(p=s.options_.sources).push.apply(p,u)}this.hasInit||(this.hasInit=!0),s.ready(videojs.bind(this,function(){s.trigger({type:"qualitydataloaded",data:this.initQualityData(a)}),s.one("loadedmetadata",function(){var d=this.tech(!0);d.name_!="flash"&&d.el_.getAttribute("poster")&&(d.el_.removeAttribute("poster"),delete d.el_.poster)})})),log$6("MultiResolution initialized")}},t.prototype.reset=function(){this.player.QualitySwitcher().reset()},t.prototype.update=function(r){this.init(r)},t.prototype.store=function(r){if(!r)return this.options;this.options=videojs.mergeOptions(defaultOptions,this.options,r)},t.prototype.onMasterPlaylistChange=function(r){this.player.trigger({type:"qualitydataloaded",data:r.data})},t.prototype.onHlsLevelChange=function(r){r.type=="hlsresolutionswitching"?this.player.trigger({type:"resolutionswitching",data:r.data}):r.type=="hlsresolutionswitched"&&this.player.trigger({type:"resolutionswitched",data:r.data})},t.prototype.onDashQualityChange=function(r){r.type=="dashqualityswitching"?this.player.trigger({type:"resolutionswitching",data:r.data}):r.type=="dashqualityswitched"&&this.player.trigger({type:"resolutionswitched",data:r.data})},t.prototype.switchResolution=function(r){if(this.currentID!=r.id){var n=this.player,s=n.currentTime(),a=(n.paused(),n.duration()===1/0);if(n.trigger({type:"resolutionswitching",data:r}),a)n.bigPlayButton&&n.bigPlayButton.hide(),n.posterImage&&n.posterImage.hide(),n.one("loadstart",function(){n.play(),n.trigger({type:"resolutionswitched",data:r})});else{var l=n.ended(),u=n.playbackRate(),p=n.controlBar&&n.controlBar.progressControl&&n.controlBar.progressControl.seekBar.playProgressBar.el().style.width||0,d=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata";n.one(d,function(){n.controlBar&&n.controlBar.progressControl&&(n.controlBar.progressControl.seekBar.playProgressBar.el().style.width=p),l||n.currentTime(s),n.techName_=="Flash"?(n.play(),n.tech(!0).trigger("seeked")):(n.play(),n.playbackRate()!=u&&n.playbackRate(u)),n.trigger({type:"resolutionswitched",data:r})}),n.bigPlayButton&&n.bigPlayButton.hide(),n.posterImage&&n.posterImage.hide(),n.options_.preload=="none"&&n.one("suspend",function(){n.load()})}n.src(this.options.sources[r.id]),a&&setTimeout(function(){n.play(),setTimeout(function(){n.play()},900)},100),this.currentID=r.id}},t.prototype.initQualityData=function(r){var n=[],s=(r.sources,r.labels),a=r.showOrder;return a.length>0&&a.forEach(function(l,u){var p={};p.id=l,p.selected=r.defaultRes===l,p.label=s[l]||l,n.push(p)}),{qualityData:{video:n},callbacks:{video:videojs.bind(this,this.switchResolution)}}},t.prototype.sortSourceOrder=function(r){return[]},t}(Plugin$7);videojs.registerPlugin("MultiResolution",MultiResolution),videojs.getComponent("Flash");var defaultDismiss=!videojs.browser.IS_IPHONE,registerPlugin=videojs.registerPlugin||videojs.plugin,defaults$1={header:"",code:"",message:"",timeout:45e3,dismiss:defaultDismiss,progressDisabled:!1,errors:{1:{type:"MEDIA_ERR_ABORTED"},2:{type:"MEDIA_ERR_NETWORK"},3:{type:"MEDIA_ERR_DECODE"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED"},5:{type:"MEDIA_ERR_ENCRYPTED"},unknown:{type:"MEDIA_ERR_UNKNOWN"},"-1":{type:"PLAYER_ERR_NO_SRC",message:"No video has been loaded."},"-2":{type:"PLAYER_ERR_TIMEOUT",message:"Could not download the video."},10:{type:"SERVER_ERR",message:"Request timed out."},11:{type:"SERVER_ERR",message:"Server is not respond."},12:{type:"DATA_ERR",message:"Server respond error data."},13:{type:"DATA_ERR",message:"No video transcoding information found."},14:{type:"HLS_NETWORK_ERR",message:"A network error caused the media download to fail part-way."},15:{type:"HLS_MEDIA_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},16:{type:"HLS_MUX_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},17:{type:"HLS_OTHER_ERR",message:"Rise an internal exception when playing HLS."},18:{type:"DRM_ERR",message:"Current browser not support DRM."},403:{type:"SERVER_ERR",message:"Authentication failed."},500:{type:"SERVER_ERR",message:"Server failed."},1001:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},1002:{type:"SERVER_ERR",message:"The trial duration is illegal. The trial duration must be within the video duration."},1003:{type:"SERVER_ERR",message:"Param pcfg is not unique."},1004:{type:"SERVER_ERR",message:"The license has expired. Please check whether the expiration time setting is reasonable."},1005:{type:"SERVER_ERR",message:"Did not find an adaptive stream that can be played."},1006:{type:"SERVER_ERR",message:"Invalid request format, please check the request format."},1007:{type:"SERVER_ERR",message:"AppID is not exist, Please check if the AppID is correct."},1008:{type:"SERVER_ERR",message:"Without anti-leech information."},1009:{type:"SERVER_ERR",message:"psign check failed."},1010:{type:"SERVER_ERR",message:"Other errors."},1021:{type:"SERVER_ERR",message:"qsign invalid."},1012:{type:"DATA_ERR",message:"Response data verification failed."},2001:{type:"SERVER_ERR",message:"Internal error."},10008:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},"-2001":{type:"SERVER_ERR",message:"Current browser not support play this stream, please select another one."},"-2002":{type:"SERVER_ERR",message:"Server respond error data.(eg. stream not exist)"},"-2003":{type:"SERVER_ERR",message:"Video play failed, please refresh to start play again."},"-2004":{type:"SERVER_ERR",message:"Connection to the server has failed and the number of connection retries has exceeded the set value."},"-2005":{type:"SERVER_ERR",message:"Video decoding failure."},PLAYER_ERR_DOMAIN_RESTRICTED:{message:"This video is restricted from playing on your current domain."},PLAYER_ERR_IP_RESTRICTED:{message:"This video is restricted at your current IP address."},PLAYER_ERR_GEO_RESTRICTED:{message:"This video is restricted from playing in your current geographic region."}}},initPlugin=function e(t,r){var n=void 0,s=void 0,a=void 0,l=[];videojs.getComponent("ErrorDisplay").prototype.options_.fillAlways=!1;var u=function(_){r.errors=videojs.mergeOptions(r.errors,_),Object.keys(r.errors).forEach(function(E){var S=r.errors[E];S.type||(S.type=E)})};u();var p=function(){t.clearTimeout(s),a&&(a=!1,t.removeClass("vjs-waiting")),s=t.setTimeout(function(){t.error()||t.paused()||t.ended()||(a=!0,t.addClass("vjs-waiting"))},1e3),t.clearTimeout(n),n=t.setTimeout(function(){t.error()||t.paused()||t.ended()||t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},r.timeout),t.error()&&t.error().code===-2&&t.error(null)},d=function(){for(var _=void 0;l.length;)_=l.shift(),t.off(_[0],_[1]);t.clearTimeout(n),t.clearTimeout(s)},m=function(_,E){var S=function(){if(!t.error()){var k=t.$(".vjs-tech");if(k&&k.type==="application/x-shockwave-flash"&&!k.vjs_getProperty)return void t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});if(t.paused()||t.ended())return p()}E.call(this)};t.on(_,S),l.push([_,S])},b=function(){var _=0;d(),p(),m(["timeupdate","adtimeupdate"],function(){var E=t.currentTime();E!==_&&(_=E,p())}),r.progressDisabled||m("progress",p)},g=function(_){var E="",S=t.error(),k=document_1.createElement("div"),A="";if(S){S=videojs.mergeOptions(S,r.errors[S.code||0]),S.message&&(E='<div class="vjs-errors-message">'+t.localize(S.message)+"</div>"),S.code&&(E+='<div class="vjs-errors-code">'+this.localize("Error Code")+" : "+S.code+"</div>"),S.type&&(E+='<div class="vjs-errors-type">'+this.localize("Error Type")+" : "+S.type+"</div>"),S.code!="10"&&S.code!="11"||(E+='<a href="https://ping.huatuo.qq.com/playvideo.qcloud.com" target="_blank" class="vjs-error-check-network">诊断网络</a>'),k.className="vjs-errors-dialog",A=`<div class="vjs-errors-content-container">
        `+E+`
      </div>`;var I=t.getChild("errorDisplay");I.closeable(!("dismiss"in S)||S.dismiss)?(k.innerHTML=A,I.fillWith(k),I.contentEl().firstChild.appendChild(I.getChild("closeButton").el())):(k.innerHTML=A,I.fillWith(k)),I.one("modalclose",function(){return t.error(null)})}},y=function _(){d(),t.removeClass("vjs-errors"),t.off("dispose",_),t.off(["aderror","error"],g)},f=function(_){y(),e(t,videojs.mergeOptions(defaults$1,_))};f.extend=function(_){return u(_)},f.getAll=function(){return videojs.mergeOptions(r.errors)},f.disableProgress=function(_){r.progressDisabled=_,b()},t.on("dispose",y),t.on(["aderror","error"],g),t.ready(function(){t.addClass("vjs-errors")}),t.errors=f},errors=function(e){initPlugin(this,videojs.mergeOptions(defaults$1,e))};["extend","getAll","disableProgress"].forEach(function(e){errors[e]=function(){videojs.log.warn("The errors."+e+"() method is not available until the plugin has been initialized!")}}),registerPlugin("Errors",errors);var Plugin$8=videojs.getPlugin("plugin"),cgiSeq={},STATUS_CODE_REPORT_URL="//report.huatuo.qq.com/code.cgi",log$7=videojs.log,Reporter=function(e){function t(r,n){classCallCheck(this,t),log$7("Reporter initilaizing");var s=possibleConstructorReturn(this,e.call(this,r));if(!r.options_.plugins.Reporter){var a;return a=!1,possibleConstructorReturn(s,a)}return s.reportContent={status:"idle"},s.mtaReportCache=[],log$7("Reporter initilaized"),s}return inherits(t,e),t.prototype.setStorage=function(r,n){localStorage.setItem(r,n)},t.prototype.getStorage=function(r){localStorage.getItem(r)},t.prototype.sender=function(r){var n=new Image;n.onload=n.onerror=n.onabort=function(){n.onload=n.onerror=n.onabort=null,n=null},n.src=r},t.prototype.initPlayCgiCodeReport=function(){var r=this.player;r.on("playcgistart",videojs.bind(this,this.onPlayCgiStart)),r.on("playcgiend",videojs.bind(this,this.onPlayCgiEnd))},t.prototype.onPlayCgiStart=function(r){cgiSeq[r.data.time]=cgiSeq[r.data.time]||{},cgiSeq[r.data.time].startTime=r.data.time,cgiSeq[r.data.time].url=r.data.url},t.reportPlayMetrics=function(r,n){xhr.post("https://datacenter.live.qcloud.com",{body:JSON.stringify(r)},function(){n&&n()})},t.prototype.onPlayCgiEnd=function(r){if(cgiSeq[r.data.startTime]){var n=r.data,s=void 0,a=void 0,l=void 0;if(n.error)switch(a=2,n.error.message){case"Timeout":s=10;break;case"ServerError":s=11}else n.result.code==0?(a=1,s=0):(a=3,s=n.result.code),l=n.result.requestId;this.reportPlayCgiToISD("","",a,s,r.data.time-cgiSeq[r.data.startTime].startTime,l,void 0,void 0)}},t.prototype.reportPlayCgiToISD=function(r,n,s,a,l,u,p,d){var m={domain:r||"playvideo.qcloud.com",cgi:n||"/getplayinfo/v2",type:s,code:a,time:l,appid:20370,platform:videojs.browser.IS_IOS?"ios":videojs.browser.IS_ANDROID?"android":"pc",expansion1:u,expansion2:p,expansion3:d};this.sender(unifyProtocol(STATUS_CODE_REPORT_URL)+"?"+serializeParams(m))},t.prototype.reportMTA=function(r,n){window.MtaH5?(this.mtaReportCache.length>0&&(this.mtaReportCache.forEach(function(s){s.call()}),this.mtaReportCache=0),MtaH5.clickStat(r,n)):this.mtaReportCache.push(function(){MtaH5.clickStat(r,n)})},t}(Plugin$8);videojs.registerPlugin("Reporter",Reporter);var store2=createCommonjsModule(function(e){(function(t,r){var n={version:"2.12.0",areas:{},apis:{},inherit:function(a,l){for(var u in a)l.hasOwnProperty(u)||Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(a,u));return l},stringify:function(a){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a)},parse:function(a,l){try{return JSON.parse(a,l||n.revive)}catch(u){return a}},fn:function(a,l){n.storeAPI[a]=l;for(var u in n.apis)n.apis[u][a]=l},get:function(a,l){return a.getItem(l)},set:function(a,l,u){a.setItem(l,u)},remove:function(a,l){a.removeItem(l)},key:function(a,l){return a.key(l)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,l,u){var p=n.inherit(n.storeAPI,function(d,m,b){return arguments.length===0?p.getAll():typeof m=="function"?p.transact(d,m,b):m!==void 0?p.set(d,m,b):typeof d=="string"||typeof d=="number"?p.get(d):typeof d=="function"?p.each(d):d?p.setAll(d,m):p.clear()});p._id=a;try{l.setItem("__store2_test","ok"),p._area=l,l.removeItem("__store2_test")}catch(d){p._area=n.storage("fake")}return p._ns=u||"",n.areas[a]||(n.areas[a]=p._area),n.apis[p._ns+p._id]||(n.apis[p._ns+p._id]=p),p},storeAPI:{area:function(a,l){var u=this[a];return u&&u.area||(u=n.Store(a,l,this._ns),this[a]||(this[a]=u)),u},namespace:function(a,l){if(!a)return this._ns?this._ns.substring(0,this._ns.length-1):"";var u=a,p=this[u];if(!(p&&p.namespace||(p=n.Store(this._id,this._area,this._ns+u+"."),this[u]||(this[u]=p),l)))for(var d in n.areas)p.area(d,n.areas[d]);return p},isFake:function(){return this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,l){for(var u=0,p=n.length(this._area);u<p;u++){var d=this._out(n.key(this._area,u));if(d!==void 0&&a.call(this,d,this.get(d),l)===!1)break;p>n.length(this._area)&&(p--,u--)}return l||this},keys:function(a){return this.each(function(l,u,p){p.push(l)},a||[])},get:function(a,l){var u,p=n.get(this._area,this._in(a));return typeof l=="function"&&(u=l,l=null),p!==null?n.parse(p,u):l!=null?l:p},getAll:function(a){return this.each(function(l,u,p){p[l]=u},a||{})},transact:function(a,l,u){var p=this.get(a,u),d=l(p);return this.set(a,d===void 0?p:d),this},set:function(a,l,u){var p=this.get(a);return p!=null&&u===!1?l:n.set(this._area,this._in(a),n.stringify(l),u)||p},setAll:function(a,l){var u,p;for(var d in a)p=a[d],this.set(d,p,l)!==p&&(u=!0);return u},add:function(a,l){var u=this.get(a);if(u instanceof Array)l=u.concat(l);else if(u!==null){var p=typeof u;if(p===typeof l&&p==="object"){for(var d in l)u[d]=l[d];l=u}else l=u+l}return n.set(this._area,this._in(a),n.stringify(l)),l},remove:function(a,l){var u=this.get(a,l);return n.remove(this._area,this._in(a)),u},clear:function(){return this._ns?this.each(function(a){n.remove(this._area,this._in(a))},1):n.clear(this._area),this},clearAll:function(){var a=this._area;for(var l in n.areas)n.areas.hasOwnProperty(l)&&(this._area=n.areas[l],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=n.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return n.inherit(n.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var l=0;for(var u in this.items)if(this.has(u)&&a===l++)return u},setItem:function(a,l){this.has(a)||this.length++,this.items[a]=l},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},s=n.Store("local",function(){try{return localStorage}catch(a){}}());s.local=s,s._=n,s.area("session",function(){try{return sessionStorage}catch(a){}}()),s.area("page",n.storage("page")),typeof r=="function"&&r.amd!==void 0?r("store2",[],function(){return s}):e.exports?e.exports=s:(t.store&&(n.conflict=t.store),t.store=s)})(commonjsGlobal$1,commonjsGlobal$1&&commonjsGlobal$1.define)}),Plugin$9=videojs.getPlugin("plugin"),log$8=videojs.log,ContinuePlay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,s.init(),s}return inherits(t,e),t.prototype.init=function(){var r=this.player,n=r.options_,s=void 0;r.ready(videojs.bind(this,function(){s=n&&n.appID&&n.fileID?n.fileID:this.options.playID,this.playID=s,r.cache_&&r.cache_.source&&r.cache_.source.src&&(this.source=r.cache_.source.src.split("?")[0]),(s||this.source)&&(log$8("ContinuePlay initializing"),this.lastTime=store2.get(this.getStoreKey()),r.off("timeupdate",videojs.bind(this,this.onTimeUpdate)),r.on("timeupdate",videojs.bind(this,this.onTimeUpdate)),r.one(this.getTriggerEvent(),videojs.bind(this,this.onPlay)),!this.options.auto&&r.getChild("ContinuePlayTips")&&r.getChild("ContinuePlayTips").close(),log$8("ContinuePlay initialized"),r.trigger({type:"feature",data:"continue"}))}))},t.prototype.onTimeUpdate=function(r){store2.set(this.getStoreKey(),this.player.currentTime())},t.prototype.onPlay=function(r){var n=this.player;Math.round(this.lastTime)>1&&this.player.duration()>1&&this.player.duration()!==1/0&&Math.round(this.lastTime)!=Math.round(this.player.duration())?this.options.auto?this.start():n.addChild("ContinuePlayTips",videojs.mergeOptions(this.options,{time:this.lastTime,resumeCallback:videojs.bind(this,this.start)})):n.techName_=="Flash"&&Math.round(this.lastTime)>1&&Math.round(this.lastTime)!=Math.round(this.player.duration())&&this.player.duration()!==1/0&&!this.player.duration()&&n.one("loadedmetadata",videojs.bind(this,this.onPlay))},t.prototype.start=function(){var r=this.player;r.currentTime(this.lastTime),r.techName_=="Flash"&&r.tech(!0).trigger("seeked"),r.trigger({type:"continueplay",data:{lastTime:this.lastTime}})},t.prototype.generatePlayID=function(){},t.prototype.getStoreKey=function(){return"tcplayer-lpt-"+(this.playID||this.source)},t.prototype.getTriggerEvent=function(){var r=this.player,n=r.options_;return n.autoplay&&r.techName_=="Flash"?"loadedmetadata":"playing"},t}(Plugin$9);videojs.registerPlugin("ContinuePlay",ContinuePlay);var defaults$2={align:"top-left",className:"",content:"",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[]},Component$12=videojs.getComponent("Component"),dom$1=videojs.dom||videojs,registerPlugin$1=videojs.registerPlugin||videojs.plugin,isNumber=function(e){return typeof e=="number"&&e===e},hasNoWhitespace=function(e){return typeof e=="string"&&/^\S+$/.test(e)},Overlay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return["start","end"].forEach(function(a){var l=s.options_[a];if(isNumber(l))s[a+"Event_"]="timeupdate";else if(hasNoWhitespace(l))s[a+"Event_"]=l;else if(a==="start")throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(a){s[a]=function(l){return t.prototype[a].call(s,l)}}),s.startEvent_==="timeupdate"&&s.on(r,"timeupdate",s.rewindListener_),s.debug('created, listening to "'+s.startEvent_+'" for "start" and "'+(s.endEvent_||"nothing")+'" for "end"'),s.hide(),s}return inherits(t,e),t.prototype.createEl=function(){var r=this.options_,n=r.content,s=r.showBackground?"tcp-overlay-background":"tcp-overlay-no-background",a=dom$1.createEl("div",{className:`
        tcp-overlay
        tcp-overlay-`+r.align+`
        `+r.className+`
        `+s+`
        vjs-hidden
      `});return typeof n=="string"?a.innerHTML=n:videojs.browser.IS_IE8||n instanceof window_1.DocumentFragment?a.appendChild(n):dom$1.appendContent(a,n),a},t.prototype.debug=function(){if(this.options_.debug){for(var r=videojs.log,n=r,s=arguments.length,a=Array(s),l=0;l<s;l++)a[l]=arguments[l];r.hasOwnProperty(a[0])&&typeof r[a[0]]=="function"&&(n=r[a.shift()]),n.apply(void 0,["overlay#"+this.id()+": "].concat(a))}},t.prototype.hide=function(){return e.prototype.hide.call(this),this.debug("hidden"),this.debug('bound `startListener_` to "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('unbound `endListener_` from "'+this.endEvent_+'"'),this.off(this.player(),this.endEvent_,this.endListener_)),this.options_.once?(videojs.browser.IS_IOS&&videojs.browser.IS_WECHAT?this.player().hasStarted()||this.player().ready(videojs.bind(this,function(){this.startListener_({type:this.startEvent_})})):this.player().hasStarted()||this.on(this.player(),this.startEvent_,this.startListener_),this):(this.startEvent_==="pause"?this.on(this.player(),this.startEvent_,this.startOnPause_):this.on(this.player(),this.startEvent_,this.startListener_),this)},t.prototype.startOnPause_=function(r){var n=this.player();r.type==="pause"?n.seeking()||n.ended()||this.startListener_({type:"pause"}):n.paused()&&this.startListener_({type:"pause"})},t.prototype.shouldHide_=function(r,n){var s=this.options_.end;return isNumber(s)?r>=s:s===n},t.prototype.show=function(){return e.prototype.show.call(this),this.startEvent_==="pause"&&this.off(this.player(),this.startEvent_,this.startOnPause_),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug('unbound `startListener_` from "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('bound `endListener_` to "'+this.endEvent_+'"'),this.on(this.player(),this.endEvent_,this.endListener_)),this},t.prototype.shouldShow_=function(r,n){var s=this.options_.start,a=this.options_.end;return isNumber(s)?isNumber(a)?r>=s&&r<a:this.hasShownSinceSeek_?Math.floor(r)===s:(this.hasShownSinceSeek_=!0,r>=s):s===n},t.prototype.startListener_=function(r){var n=this.player().currentTime();this.shouldShow_(n,r.type)&&this.show()},t.prototype.endListener_=function(r){var n=this.player().currentTime();this.shouldHide_(n,r.type)&&this.hide()},t.prototype.rewindListener_=function(r){var n=this.player().currentTime(),s=this.previousTime_,a=this.options_.start,l=this.options_.end;n<s&&(this.debug("rewind detected"),isNumber(l)&&!this.shouldShow_(n)?(this.debug("hiding; "+l+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):hasNoWhitespace(l)&&n<a&&(this.debug("hiding; show point ("+a+") is before now ("+n+") and end point ("+l+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=n},t}(Component$12);videojs.registerComponent("Overlay",Overlay);var plugin=function(e){var t=this,r=videojs.mergeOptions(defaults$2,e);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(s){t.removeChild(s),t.controlBar&&t.controlBar.removeChild(s),s.dispose()});var n=r.overlays;delete r.overlays,this.overlays_=n.map(function(s){var a=videojs.mergeOptions(r,s);return a.attachToControlBar&&t.controlBar&&a.align.indexOf("bottom")!==-1?t.controlBar.addChild("overlay",a):t.addChild("overlay",a)})};registerPlugin$1("Patch",plugin);var Plugin$10=videojs.getPlugin("plugin"),log$9=videojs.log,locations=["start","pause","ended"],startEvent=["loadstart","pause","ended"],endEvent=["play","play","play"],ImagePatch=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.hasInit=!1,s.init(n),s}return inherits(t,e),t.prototype.init=function(r){var n=this,s=this.player,a={showBackground:!1,overlays:[]};Array.isArray(r)&&r.length>0&&(log$9("ImagePatch initializing"),r.forEach(function(l){var u=void 0,p=void 0,d=void 0,m=void 0,b=document.createDocumentFragment();d=document.createElement("a"),d.className="tcp-overlay-link",d.target="_blank",l.link&&(d.href=l.link),l.url&&(m=n.loadImg(unifyProtocol(l.url),videojs.bind(n,n.onImgLoaded)),m.className="tcp-overlay-img",d.appendChild(m),videojs.browser.IS_IE8?(u=document.createElement("div"),u.className="tcp-overlay-table",p=document.createElement("div"),p.className="tcp-overlay-cell",p.appendChild(d),u.appendChild(p),b.appendChild(u)):b.appendChild(d),a.overlays.push({content:b,className:"tcp-image-patch tcp-image-patch-"+locations[l.location],start:startEvent[l.location],end:endEvent[l.location],once:l.location==0,align:"center"}))}),a.overlays.length>0?(s.Patch(a),s.trigger({type:"feature",data:"patch"}),this.hasInit=!0):this.reset(),log$9("ImagePatch initialized"))},t.prototype.loadImg=function(r,n){var s,a,l,u,p,d=new Image;return d.src=r,d.complete?(n&&n.call(n,d),d):(a=d.width,l=d.height,d.onerror=function(){s.end=!0,d=d.onload=d.onerror=null},s=function(){u=d.width,p=d.height,(u!==a||p!==l||u*p>1024)&&(n&&n.call(n,d),s.end=!0)},s(),d.onload=function(){!s.end&&s(),d=d.onload=d.onerror=null},d)},t.prototype.onImgLoaded=function(r){if(videojs.browser.IE_VERSION){var n=parseInt(this.player.el().currentStyle.width),s=parseInt(this.player.el().currentStyle.height);if(r.width>n||r.height>s){var a=n/(r.width/r.height);r.width/r.height>n/s||(r.style.marginTop=(s-a)/2+"px"),r.style.width="100%",r.style.height="auto"}}},t.prototype.reset=function(){this.hasInit&&(log$9("ImagePatch reset"),this.player.Patch(),this.hasInit=!1)},t}(Plugin$10);videojs.registerPlugin("ImagePatch",ImagePatch);var Plugin$11=videojs.getPlugin("plugin"),log$10=videojs.log,ContextMenu=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,log$10("ContextMenu initializing"),s.init(),log$10("ContextMenu initialized"),s}return inherits(t,e),t.prototype.init=function(){this.player.addChild("RightClickPopupMenu",this.options)},t}(Plugin$11);videojs.registerPlugin("ContextMenu",ContextMenu);var Plugin$12=videojs.getPlugin("plugin"),LevelSwitch=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,s.init(),s}return inherits(t,e),t.prototype.init=function(){var r=this.player,n=r.options_.plugins.ContextMenu;n&&n.levelSwitch&&n.levelSwitch.open&&r.addChild("LevelSwitchTips",this.options)},t}(Plugin$12);videojs.registerPlugin("LevelSwitch",LevelSwitch);var Plugin$13=videojs.getPlugin("plugin"),log$12=videojs.log,defaults$3={width:0,height:0,basePath:""},VttThumbnail=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.hasInit=!1,n.vttUrl&&r.ready(videojs.bind(s,function(){this.init(n)})),s}return inherits(t,e),t.prototype.loadTrackFile=function(r){var n=this,s=this.player,a=s.addRemoteTextTrack({src:r.vttUrl,kind:"metadata"},!0);a&&a.addEventListener("load",function(){n.trackInfo=a})},t.prototype.init=function(r){if(!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID&&this.player.controlBar&&this.player.controlBar.progressControl){if(log$12("VttThumbnail initializing",r),!this.player.controlBar)return void log$12("VttThumbnail can not initialize without control bar");this.options=r;var n=this.player,s=n.controlBar.progressControl;this.loadTrackFile(r),defaults$3.basePath=parseBasePath(r.vttUrl),this.initUI(),s.on("mouseenter",videojs.bind(this,this.onMouseEnter)),s.on("mousemove",videojs.bind(this,this.onMouseMove)),s.on("mouseleave",videojs.bind(this,this.onMouseOut)),this.hasInit=!0,log$12("VttThumbnail initialized"),n.trigger({type:"feature",data:"thumbnail"})}},t.prototype.initTrackFile=function(r){r.track,this.trackInfo=r},t.prototype.initUI=function(){var r=videojs.dom.createEl("div",{className:"tcp-vtt-thumbnail-container"}),n=videojs.dom.createEl("img",{className:"tcp-vtt-thumbnail-img"});r.appendChild(n),this.containerEl=r,this.imgEl=n,this.player.controlBar.progressControl.el().appendChild(r)},t.prototype.onMouseEnter=function(){this.containerEl.style.display="block"},t.prototype.onMouseMove=function(r){if(!this.trackInfo)return!1;var n=void 0,s=void 0,a=void 0,l=void 0,u=void 0,p=void 0,d=void 0,m=void 0,b=0,g=void 0,y=void 0,f=void 0,_=void 0;for(a=this.player.controlBar.progressControl,l=this.player.controlBar.progressControl.seekBar,u=offsetParent(a.el()).getBoundingClientRect(),p=offsetParent(l.el()).getBoundingClientRect(),n=r.clientX,m=this.player.duration(),d=((n-p.left)/l.width()*m).toFixed(3),g=this.trackInfo.track||this.trackInfo;b<g.cues.length;){if(y=g.cues[b],y.startTime<=d&&y.endTime>=d){f=parseImageLink(y.text);break}b++}if(!f)return this.onMouseOut(),!1;_=n-p.left+f.w/2-l.width(),_=Math.max(0,_),s=n-u.left-f.w/2-_,s=Math.max(l.el().offsetLeft,s),f.left=s,this.setView(f)},t.prototype.onMouseOut=function(){this.containerEl.style.display="none"},t.prototype.setView=function(r){var n=this.containerEl,s=this.imgEl,a=this.options;n.style.width==r.w&&n.style.height==r.h||(n.style.width=r.w+"px",n.style.height=r.h+"px"),n.style.left=r.left+"px",a.imgUrl&&s.src!=a.imgUrl?s.src=a.imgUrl:s.src=r.src,s.style.left=-r.x+"px",s.style.top=-r.y+"px",s.style.clip="rect("+r.y+"px,"+(r.w+r.x)+"px,"+(r.y+r.h)+"px,"+r.x+"px)"},t.prototype.reset=function(){if(this.hasInit){log$12("VttThumbnail reset");var r=this.player,n=r.controlBar.progressControl;n.off("mousemove",videojs.bind(this,this.onMouseMove)),n.off("mouseleave",videojs.bind(this,this.onMouseOut)),this.hasInit=!1}},t}(Plugin$13),getComputedStyle=function(e,t){return function(r){return window.getComputedStyle?window.getComputedStyle(e,t)[r]:e.currentStyle[r]}},offsetParent=function e(t){return t.nodeName!=="HTML"&&getComputedStyle(t)("position")==="static"?e(t.offsetParent):t},parseImageLink=function(e){var t=void 0,r=void 0,n=void 0;if((r=e.indexOf("#"))===-1)return{src:e,w:0,h:0,x:0,y:0};if(t=e.substring(0,r),/^(http:|https:|\/\/)/.test(t)||(t=defaults$3.basePath+t),n=e.substring(r+1),n.substring(0,5)!=="xywh=")return{src:t,w:0,h:0,x:0,y:0};var s=n.substring(5).split(",");return{src:t,w:parseInt(s[2]),h:parseInt(s[3]),x:parseInt(s[0]),y:parseInt(s[1])}},parseBasePath=function(e){/^(\/\/)/.test(e)&&(e="https:"+e);var t=/(\w+):\/\/([^\:|\/]+)(\:\d*)?(.*\/)([^#|\?|\n]+)?(#.*)?(\?.*)?/i,r=e.match(t);if(r&&r[2]&&r[4])return"//"+r[2]+r[4]};videojs.registerPlugin("VttThumbnail",VttThumbnail);var Plugin$14=videojs.getPlugin("plugin"),log$13=videojs.log,PlayerMetrics=function(e){function t(r,n){classCallCheck(this,t),log$13("PlayerMetrics initializing");var s=possibleConstructorReturn(this,e.call(this,r));if(r.options_.reportable===!1){var a;return a=!1,possibleConstructorReturn(s,a)}return s.player=r,s.checkPrevData(),s.initData(),s.registerListener(),log$13("PlayerMetrics initialized"),s}return inherits(t,e),t.prototype.checkPrevData=function(){var r=localStorage.getItem("tcplayer_data");if(r){var n=JSON.parse(r);Reporter.reportPlayMetrics(n,function(){localStorage.removeItem("tcplayer_data")})}},t.prototype.initData=function(){this.bytes_token=guid(),this.vodBaseData={uint32_service:2,uint32_platform:3,bytes_version:String(version),uint64_appid:0,bytes_bizid:this.guid("dev_uuid"),bytes_stream_id:"",uint32_module_id:1011,uint32_data_type:1,uint32_command:40303,uint64_data_time:0,bytes_token:this.bytes_token,token:this.bytes_token,dev_uuid:this.guid("dev_uuid"),str_app_name:"",str_app_version:"",str_stream_url:"",str_brand_type:this.getDevice(),str_device_resolution:screen.width+"_"+screen.height,str_device_type:"",str_package_name:"",str_sdk_name:"TCPlayer",str_user_id:this.guid("dev_uuid"),sys_type:this.getSystem(),sys_version:String(this.getSystemVer()),str_user_agent:USER_AGENT,str_browser_version:String(this.getBrowserVer()),str_browser_model:String(this.getBrowser()),u32_app_id:String(this.player.options_.appID),str_fileid:String(this.player.options_.fileID),u32_network_type:this.getNetworkType()},this.liveBaseData={str_user_id:this.guid("dev_uuid"),dev_uuid:this.guid("dev_uuid"),str_session_id:this.bytes_token,bytes_token:this.bytes_token,str_device_type:"",str_os_info:this.getSystem(),str_package_name:"",u32_network_type:this.getNetworkType()!=="0xFF"?this.getNetworkType():"",u32_server_ip:"",str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_link_type:1,u32_channel_type:1,str_app_version:"",platform:3,uint32_platform:3,str_browser_version:this.getBrowserVer(),str_browser_model:this.getBrowser(),str_user_agent:USER_AGENT,u32_video_drop:"",u32_drop_usage:"",float64_rtt:""},this.features=[],this.afterCanplay=!1,this.videoDuration=0,this.consumeDuration=0,this.playScene=2,this.timing={},this.playStatus={isFirstPlay:!1,pauseDuration:0},this.contentComputTimePoint=[],this.firstFrameDuration=0,this.firstIFrameDuration=0,this.blockInterval=5e3,this.bufferBlock=[],this.u32_drm_type="plain",this.resetLagStatus(),this.resetBlockData()},t.prototype.getComsumeDuration=function(r){var n=getTimeStamp()-this.timing.firstPlaying;this.consumeDuration=n-this.lagStatus.lagDuration-this.playStatus.pauseDuration,r&&this.consumeDuration<0&&(this.consumeDuration=n>0?n:0)},t.prototype.registerListener=function(){var r=this.player;r.on("loadedmetadata",videojs.bind(this,this.onLoadedmetadata)),r.one("canplay",videojs.bind(this,this.oneCanplay)),r.one("play",videojs.bind(this,this.onePlay)),r.on("play",videojs.bind(this,this.onPlay)),r.on("playing",videojs.bind(this,this.onPlaying)),r.on("seeking",videojs.bind(this,this.onSeeking)),r.on("seeked",videojs.bind(this,this.onSeeked)),r.on("error",videojs.bind(this,this.onError)),r.on("resolutionswitching",videojs.bind(this,this.onResolutionSwitching)),r.on("pause",videojs.bind(this,this.onPause)),r.on("playcgiend",videojs.bind(this,this.onPlaycgiend)),r.on("ended",videojs.bind(this,this.onEnded)),r.on("feature",videojs.bind(this,this.onFeature)),r.on("dispose",videojs.bind(this,this.onDispose)),document.addEventListener("visibilitychange",videojs.bind(this,this.onVisibilityChange)),window.addEventListener("pagehide",videojs.bind(this,this.onPageHide))},t.prototype.onPageHide=function(){this.saveData()},t.prototype.onVisibilityChange=function(){document.visibilityState==="hidden"&&this.saveData()},t.prototype.saveData=function(){this.bytes_token&&this.playScene!==3&&this.player&&(this.getComsumeDuration(),this.report(this.playScene===2?40304:40102,{},function(r){localStorage.setItem("tcplayer_data",JSON.stringify(r))}))},t.prototype.onLoadedmetadata=function(){this.player.tech_.webrtcProvider?this.playScene=3:this.playScene=this.player.duration()===1/0?1:2,this.videoDuration=parseInt(this.player.duration())||0,videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===2&&this.report(40303)},t.prototype.oneCanplay=function(){videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===1&&this.report(40101)},t.prototype.calculateFirstFrameDuration=function(){var r=getperformance();r.mark&&r.measure&&r.getEntriesByName&&(r.mark("firstIFrameEnd"),r.measure("firstIFrame","firstFrameStart","firstIFrameEnd"),this.firstIFrameDuration=r.getEntriesByName("firstIFrame")[0].duration)},t.prototype.onePlay=function(){var r=this;this.setTimingData({firstPlay:getTimeStamp()});var n=this.player.el_.firstChild;this.bufferStart=n&&n.buffered&&n.buffered.length>0?n.buffered.start(n.buffered.length-1):0,this.bufferBlock=[this.bufferStart];var s=this.player.getVideoPlaybackQuality();this.recvFrames=s.totalVideoFrames,this.renderedFrames=s.totalVideoFrames-s.droppedVideoFrames,this.blockStartTime=getTimeStamp(),this.blockTimer=setInterval(function(){if(r.playScene===2)return!1;if(r.lagStatus.lagging&&r.lagStatus.lagStart){var a=getTimeStamp()-r.lagStatus.lagStart;a>r.blockInterval?r.blockData.lagBlockDuration=r.blockInterval:r.blockData.lagBlockDuration+=a}r.blockStartTime=getTimeStamp();var l=n&&n.buffered&&n.buffered.length>0?n.buffered.end(n.buffered.length-1):0,u=r.player.getVideoPlaybackQuality(),p=u.totalVideoFrames,d=u.totalVideoFrames-u.droppedVideoFrames;Object.assign(r.blockData,{buffer_avg:parseInt(1e3*(l-r.bufferStart)),recv_frames:p-r.recvFrames,render_frames:d-r.renderedFrames}),r.bufferBlock.push(r.blockData.buffer_avg),r.bufferStart=l,r.recvFrames=p,r.renderedFrames=d,r.report(40100)},this.blockInterval)},t.prototype.onDispose=function(){clearInterval(this.blockTimer)},t.prototype.onPlay=function(){this.playStatus.pauseTime&&(this.playStatus.pauseDuration=this.playStatus.pauseDuration+getTimeStamp()-this.playStatus.pauseTime,this.playStatus.pauseTime=0)},t.prototype.onPlaying=function(){var r=this;if(!this.playStatus.isFirstPlay&&(this.playStatus.isFirstPlay=!0,this.setTimingData({firstPlaying:getTimeStamp()}),this.player.on("waiting",function(){r.lagStatus.lagging||r.player.seeking()||r.lagStatus.skip||(r.lagStatus.lagging=!0,r.lagStatus.lagStart=getTimeStamp())}),this.player.currentSource().keySystems)){var n=this.player.currentSource().keySystems;n.plain&&(this.u32_drm_type="plain"),n.SimpleAES&&(this.u32_drm_type="SimpleAES")}this.lagStatus.lagging&&(this.lagStatus.lagEnd=getTimeStamp())-this.lagStatus.lagStart>this.lagStatus.lagInterval&&(this.lagStatus.lagging=!1,this.lagStatus.lagCount++,this.lagStatus.lagAvg.push(this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart,this.lagStatus.lagStart<this.blockStartTime&&(this.blockData.lagBlockDuration=this.lagStatus.lagEnd-this.blockStartTime),this.lagStatus.lagStart>=this.blockStartTime&&(this.blockData.lagBlockDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagEnd=this.lagStatus.lagStart=0,this.lagStatus.isFirstLag||(this.lagStatus.isFirstLag=!0,this.setTimingData({firstLag:getTimeStamp()}))),[60,200,500,1e3].forEach(function(s){r.lagStatus.lagging&&(r.lagStatus.lagEnd=getTimeStamp())-r.lagStatus.lagStart>s&&r.blockData["lagCount_"+s]++}),this.lagStatus.skip=!1},t.prototype.onSeeking=function(){this.contentComputTimePoint.push({type:"end",time:this.player.currentTime()})},t.prototype.onSeeked=function(){this.contentComputTimePoint.push({type:"start",time:this.player.currentTime()})},t.prototype.onError=function(r){this.getComsumeDuration(!0);var n={u64_err_code:r.data.code,str_err_info:r.data.message||(defaults$1.errors[r.data.code]||{}).message},s=(this.player.cache_.src||"").indexOf("vod")>-1||this.player.options_.fileID;r&&r.data&&r.data.code&&(this.playScene===2&&s?this.report(40304,n):this.afterCanplay?this.report(40102,n):this.report(40101,n))},t.prototype.onResolutionSwitching=function(){this.lagStatus.skip=!0},t.prototype.onPause=function(){this.playStatus.pauseTime=getTimeStamp(),this.lagStatus.lagging&&(this.lagStatus.skip=!0)},t.prototype.onPlaycgiend=function(r){var n=this,s=r.data;s.result&&s.result.code==0&&(this.playStatus.requestID=s.result.requestId,setTimeout(function(){if(n.player.currentSources().length>0&&n.player.currentSources()[0].keySystems){var a=n.player.currentSources()[0].keySystems;a["com.widevine.alpha"]&&n.reportMTA("drm",{initialized:"Widevine"}),a["com.apple.fps.1_0"]&&n.reportMTA("drm",{initialized:"FairPlay"})}else n.player.options_.plugins.DRM&&n.player.options_.plugins.DRM.token&&n.reportMTA("drm",{initialized:"SimpleAES"})},0)),this.setTimingData({cgiStart:r.data.startTime,cgiEnd:r.data.time})},t.prototype.onEnded=function(){this.getComsumeDuration(),this.playScene===1?this.report(40102):this.report(40304)},t.prototype.onFeature=function(r){this.features.indexOf(r.data)==-1&&this.features.push(r.data)},t.prototype.guid=function(r){var n=localStorage.getItem(r);return n||(n=guid(),localStorage.setItem(r,n)),n},t.prototype.report=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2];if(this.playScene===3)return!1;r&&this["report_"+r](n,s)},t.prototype.report_40101=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.player)return!1;var n={uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_dns_time:"",u32_connect_server_time:parseInt(this.firstFrameDuration),u32_video_decode_type:0,u32_first_frame_down:parseInt(this.firstFrameDuration),u32_first_video_decode_time:parseInt(this.firstIFrameDuration),u32_first_i_frame:parseInt(this.firstIFrameDuration),u32_first_audio_frame_down:parseInt(this.firstFrameDuration),u32_first_audio_render_time:parseInt(this.firstIFrameDuration),u64_err_code:r.u64_err_code||"",str_err_info:r.str_err_info||""},s={app_id:0,data:[Object.assign({},this.liveBaseData,n,r)],module_id:1005,command:40101};Reporter.reportPlayMetrics(s)},t.prototype.report_40100=function(r){var n=this,s=this.player||{};this.blockData=this.blockData||{};var a={u32_cpu_usage:"",u32_app_cpu_usage:"",u32_avg_memory:"",u32_avg_cpu_usage:"",str_stream_url:s.cache_&&s.cache_.src,uint64_data_time:getTimeStampBySecond(),u32_recv_av_diff_time:0,u32_play_av_diff_time:0,u64_playtime:getTimeStamp()-this.timing.firstPlaying,u32_audio_decode_type:2,u32_audio_block_count:this.blockData.lagCount_500,u32_audio_cache_time:this.blockData.buffer_avg,u32_audio_drop:"",u32_video_decode_type:0,u32_video_recv_fps:this.blockData.recv_frames,u32_fps:this.blockData.render_frames,u32_video_cache_time:this.blockData.buffer_avg,u32_avg_cache_count:0,u32_video_block_count:this.blockData.lagCount_1000,u32_avg_net_speed:"",u32_video_light_block_count:this.blockData.lagCount_200,u32_video_large_block_count:this.blockData.lagCount_500,u32_audio_jitter_60ms_count:this.blockData.lagCount_60,u32_video_decode_fail:"",u32_audio_decode_fail:"",u32_avg_video_bitrate:0,u32_avg_audio_bitrate:0,u32_block_usage:1e3*parseInt(this.blockData.lagBlockDuration/this.blockInterval)},l={app_id:0,data:[Object.assign({},this.liveBaseData,a,r)],module_id:1005,command:40100};Reporter.reportPlayMetrics(l,function(){n.resetBlockData()})},t.prototype.report_40102=function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.player||{},l=0,u=0,p=0;JSON.stringify(a)!=="{}"?(l=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(b,g){return b+g},0)/this.lagStatus.lagAvg.length:0,u=this.bufferBlock.length>0?this.bufferBlock.reduce(function(b,g){return b+g},0)/this.bufferBlock.length:0,p=(a.getVideoPlaybackQuality&&a.getVideoPlaybackQuality()||{}).totalVideoFrames/n.duration):this.resetLagStatus();var d={uint64_data_time:getTimeStampBySecond(),str_stream_url:a.cache_&&a.cache_.src,u64_timestamp:getTimeStamp(),u32_avg_cpu_usage:"",u32_avg_memory:"",u64_begin_timestamp:a.startTime,u32_result:this.consumeDuration,u64_err_code:n.u64_err_code,u32_speed_cnt:0,u32_avg_cache_time:u,u32_max_load:Math.max.apply(Math,this.lagStatus.lagAvg),u32_audio_block_time:this.lagStatus.lagDuration,u32_avg_load:l,u32_load_cnt:this.lagStatus.lagAvg.length||0,u32_nodata_cnt:this.lagStatus.lagAvg.length||0,u32_first_i_frame:this.firstIFrameDuration,u32_video_width:a.width_,u32_video_height:a.height_,u32_video_avg_fps:p,u32_avg_block_time:l,u64_block_count:this.lagStatus.lagAvg.length||0,u32_video_block_time:this.lagStatus.lagDuration,u64_jitter_cache_max:0,u64_block_duration_max:Math.max.apply(Math,this.lagStatus.lagAvg),u64_jitter_cache_avg:0,u32_ip_count_quic:"",u32_connect_count_quic:"",u32_connect_count_tcp:"",u32_is_real_time:"",u32_first_frame_black:"",u32_delay_report:0},m={app_id:0,data:[Object.assign({},this.liveBaseData,d,n)],module_id:1005,command:40102};return n.u32_delay_report?(localStorage.setItem("tcplayer_data",JSON.stringify(m)),!1):s?(m.data.u32_delay_report=1,s(m)):void Reporter.reportPlayMetrics(m,function(){r.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.report_40303=function(){this.setTimingData({initEnd:getTimeStamp()});var r={msg_client_ip:{uint32_ip:""},uint32_service:this.playScene,uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,uint32_command:40303},n={app_id:0,data:[Object.assign({},this.vodBaseData,r)],module_id:1011,command:40303};Reporter.reportPlayMetrics(n)},t.prototype.report_40304=function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(p,d){return p+d},0)/this.lagStatus.lagAvg.length:0,l={uint64_data_time:getTimeStampBySecond(),uint32_command:40304,str_stream_url:this.player.cache_.src,u32_timeuse:String(parseInt(this.consumeDuration/1e3)||0),u32_videotime:String(this.videoDuration),u32_avg_load:String(a),u32_load_cnt:String(this.lagStatus.lagCount),u32_max_load:this.lagStatus.lagAvg.length>0?String(Math.max.apply(Math,this.lagStatus.lagAvg)):String(0),u32_avg_block_time:String(this.lagStatus.lagDuration),u32_player_type:String(4),u32_dns_time:"",u32_tcp_did_connect:"",u32_first_video_packet:String(parseInt(this.firstFrameDuration)),u32_first_i_frame:String(parseInt(this.firstIFrameDuration)),u32_server_ip:"",u32_drm_type:this.u32_drm_type,u32_playmode:String(1),u64_err_code:String(n.u64_err_code||""),str_err_info:String(n.str_err_info||""),u32_video_decode_type:String(0),u32_speed:this.player&&String(100*this.player.playbackRate())||"1000"},u={app_id:0,data:[Object.assign({},this.vodBaseData,l)],module_id:1011,command:40304};if(s)return s(u);Reporter.reportPlayMetrics(u,function(){r.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.setTimingData=function(r){this.timing=videojs.mergeOptions(this.timing,r)},t.prototype.reset=function(){this.playStatus={isFirstPlay:!1}},t.prototype.resetLagStatus=function(){this.lagStatus={lagCount:0,lagging:!1,lagStart:0,lagEnd:0,lagInterval:500,lagDuration:0,lagAvg:[],isFirstLag:!1,skip:!1}},t.prototype.resetBlockData=function(){this.blockData={lagCount_60:0,lagCount_200:0,lagCount_500:0,lagCount_1000:0,lagBlockDuration:0,buffer_avg:0,recv_frames:0,render_frames:0}},t.prototype.reportMTA=function(r,n){},t.prototype.getSystem=function(){return IS_IOS?"ios":IS_ANDROID?"android":IS_WIN?"win":IS_MAC?"mac":"other"},t.prototype.getSystemVer=function(){var r=this.getSystem();return r=="ios"?IOS_VERSION:r=="android"?ANDROID_VERSION:r=="win"?WIN_VER:r=="mac"?MAC_VER:void 0},t.prototype.getBrowser=function(){return IS_FIREFOX?"firefox":IS_EDGE?"edge":IS_MQQB?"mqq":IS_QQB?"qq":IS_TBS?"tbs":IS_CHROME?"chrome":IE_VERSION?"ie":IS_SAFARI?"safari":"other"},t.prototype.getBrowserVer=function(){var r=this.getBrowser();return r=="firefox"?FIREFOX_VER:r=="edge"?EDGE_VER:r=="chrome"?CHROME_VER:r=="ie"?IE_VERSION:r=="safari"?SAFARI_VER:r=="qq"||r=="mqq"?QQ_VER:r=="tbs"?TBS_VERSION:"other"},t.prototype.getDevice=function(){return IS_IOS?"IPHONE":IS_HUAWEI?"HUAWEI":IS_XIAOMI?"XIAOMI":IS_OPPO?"OPPO":IS_VIVO?"VIVO":IS_SX?"SUMSUNG":IS_CP?"COOLPAD":IS_ONE?"ONEPLUS":IS_ZX?"ZTE":"OTHER"},t.prototype.getMediaType=function(){return this.player.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player.src()),RegExp.$2||RegExp.$4},t.prototype.getNetworkType=function(){var r=navigator.userAgent,n=r.match(/NetType\/\w+/)?r.match(/NetType\/\w+/)[0]:"NetType/other";n=n.toLowerCase().replace("nettype/","");var s;switch(n){case"wifi":s="1";break;case"4g":s="2";break;case"3g":case"3gnet":s="3";break;case"2g":s="4";break;default:s="0xFF"}return s},t}(Plugin$14);videojs.registerPlugin("PlayerMetrics",PlayerMetrics);var Plugin$15=videojs.getPlugin("plugin"),log$14=videojs.log,ProgressMarker=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return r.ready(videojs.bind(s,s.init)),s}return inherits(t,e),t.prototype.init=function(){function r(){Array.isArray(n.options_.dots)&&n.options_.dots.length>0&&(n.options_.dots.forEach(function(a){!a.emitted&&a.timeOffset-1e3*(n.currentTime()||0)<500&&(a.emitted=!0,n.trigger("marker",a.content))}),n.options_.dots[n.options_.dots.length-1].emitted||window.requestAnimationFrame(r))}var n=this.player;if(n.options_.dots){if(window.requestAnimationFrame(r),IS_IOS||IS_ANDROID)return!1;if(!n.controlBar||!this.player.controlBar.progressControl)return void log$14("ProgressMarker can not initialize without control bar or progress control");log$14("ProgressMarker initializing");var s=n.controlBar.getChild("ProgressControl").getChild("SeekBar");s.getChild("ProgressMarkerGenerator")&&s.removeChild("ProgressMarkerGenerator"),n.options_.plugins.ProgressMarker&&(s.addChild("ProgressMarkerGenerator"),log$14("ProgressMarker initialized"),n.trigger({type:"feature",data:"marker"}))}},t}(Plugin$15);videojs.registerPlugin("ProgressMarker",ProgressMarker);var Component$15=videojs.getComponent("Component"),PlayListItem=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createEl=function(){var r=this.options_,n=videojs.dom.createEl("div",{className:"tcp-playlist-item"}),s=videojs.dom.createEl("div",{className:"tcp-playlist-item-video",innerHTML:r.img?'<img src="'+r.img+'" class="tcp-playlist-item-img">':'<img src="https://imgcache.qq.com/open_proj/proj_qcloud_v2/mc_2014/video/console/v2/css/img/vod/default-cover.png" height="100" class="tcp-playlist-item-img">'}),a=videojs.dom.createEl("div",{className:"tcp-playlist-item-duration",textContent:this.timeFormat(r.duration)});s.appendChild(a);var l=videojs.dom.createEl("div",{className:"tcp-playlist-item-desc",textContent:r.text});return n.appendChild(s),n.appendChild(l),this.bindEvent(n),n},t.prototype.bindEvent=function(r){var n=this;videojs.on(r,["click"],function(){n.player_.trigger({type:"playItem",data:n.options_})})},t.prototype.timeFormat=function(r){var n="",s=Math.floor(r/3600);s!=0&&(r-=3600*s,s<10&&(s="0"+s),n+=s+":");var a=Math.floor(r/60);return a<10&&(a="0"+a),r-=60*a,r<10&&(r="0"+r),n+=a+":"+r},t}(Component$15);videojs.registerComponent("PlayListItem",PlayListItem);var Component$16=videojs.getComponent("Component"),PlayListTitle=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createEl=function(){var r=this.options_;return videojs.dom.createEl("div",{className:"tcp-playlist-title",textContent:r.title})},t}(Component$16);videojs.registerComponent("PlayListTitle",PlayListTitle);var Component$14=videojs.getComponent("Component"),PlayListBox=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.init(),s.activeIndex=-1,s}return inherits(t,e),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist-box"})},t.prototype.init=function(){var r=this,n=this.options_.data;this.addChild("PlayListTitle",{title:this.options_.title}),n.forEach(function(s,a){s.index=a,r.addChild("PlayListItem",s)}),this.player_.on("ready",function(){r.options_.loop&&(r.activeIndex=0,r.player_.on("ended",videojs.bind(r,function(){r.player_.trigger({type:"playItem"})})))}),this.player_.on("playItem",function(s){var a=s.data,l=void 0;r.activeIndex=a?a.index:(r.activeIndex+1)%n.length,l=n[r.activeIndex],r.player_.loadVideoByID({fileID:l.fileID,appID:l.appID,psign:l.psign}),r.player_.one("loadedmetadata",videojs.bind(r,function(){r.player_.play()})),document.querySelectorAll(".tcp-playlist-item").forEach(function(p){videojs.dom.removeClass(p,"tcp-playlist-item-active")});var u=document.querySelectorAll(".tcp-playlist-item")[r.activeIndex];videojs.dom.addClass(u,"tcp-playlist-item-active")})},t}(Component$14);videojs.registerComponent("PlayListBox",PlayListBox);var Component$17=videojs.getComponent("Component"),PlayListToggle=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.status=0,s}return inherits(t,e),t.prototype.createEl=function(){var r=videojs.dom.createEl("div",{className:"tcp-playlist-toggle",textContent:"<"});return this.bindEvent(r),r},t.prototype.bindEvent=function(r){var n=this;videojs.on(r,["click"],function(s){n.status=!n.status;var a=document.querySelector(".tcp-playlist");n.status?(r.textContent=">",videojs.dom.addClass(a,"tcp-playlist-open"),videojs.dom.removeClass(a,"tcp-playlist-close")):(videojs.dom.addClass(a,"tcp-playlist-close"),videojs.dom.removeClass(a,"tcp-playlist-open"),r.textContent="<")})},t}(Component$17);videojs.registerComponent("PlayListToggle",PlayListToggle);var Component$13=videojs.getComponent("Component"),PlayList$1=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.init(),s}return inherits(t,e),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist tcp-playlist-close"})},t.prototype.init=function(){this.addChild("PlayListToggle"),this.addChild("PlayListBox",this.options_)},t}(Component$13);videojs.registerComponent("PlayList",PlayList$1);var Button$5=videojs.getComponent("Button"),PlayNextButton=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass(),s}return inherits(t,e),t.prototype.addClass=function(){videojs.dom.addClass(this.el_,"vjs-play-next")},t.prototype.update=function(){},t.prototype.handleClick=function(r){this.player_.trigger({type:"playItem"})},t}(Button$5);PlayNextButton.prototype.controlText_="Play Next",videojs.registerComponent("PlayNextButton",PlayNextButton);var Plugin$16=videojs.getPlugin("plugin"),log$15=videojs.log,PlayList=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return IS_IOS||IS_ANDROID?possibleConstructorReturn(s):(s.options=n,n&&n.data instanceof Array&&n.data.length>0&&r.ready(videojs.bind(s,s.init)),s)}return inherits(t,e),t.prototype.init=function(){log$15("PlayList initializing"),this.player.addChild("PlayList",this.options),this.player.controlBar.addChild("PlayNextButton",{},1),log$15("PlayList initialized"),this.player.trigger({type:"feature",data:"playlist"})},t}(Plugin$16);videojs.registerPlugin("PlayList",PlayList);var Plugin$17=videojs.getPlugin("plugin"),log$16=videojs.log,HLSToken=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return log$16("HLSToken",r,n),s.init(n),s}return inherits(t,e),t.prototype.init=function(r){log$16("HLSToken init",r,this.player);var n=this.player;r.token&&(this.options=r,n.on("playcgiend",videojs.bind(this,function(s){this.modifyData(s.data)})))},t.prototype.modifyData=function(r){var n=this;if(log$16("HLSToken modifyData",r),r.result.code===0){var s=r.result.videoInfo;if(s.masterPlayList){var a=s.masterPlayList.url.split("/");a[a.length-1]="voddrm.token."+this.options.token+"."+a[a.length-1],s.masterPlayList.url=a.join("/")}s.transcodeList&&s.transcodeList.length>0&&(s.transcodeList=s.transcodeList.map(function(l){var u=l.url.split("/");return u[u.length-1]="voddrm.token."+n.options.token+"."+u[u.length-1],l.url=u.join("/"),l}))}},t}(Plugin$17);videojs.registerPlugin("HLSToken",HLSToken);var getMessageContents=function(e){var t=new window_1.DOMParser().parseFromString(String.fromCharCode.apply(null,new Uint16Array(e)),"application/xml"),r=t.getElementsByTagName("HttpHeaders")[0],n={};if(r)for(var s=r.getElementsByTagName("name"),a=r.getElementsByTagName("value"),l=0;l<s.length;l++)n[s[l].childNodes[0].nodeValue]=a[l].childNodes[0].nodeValue;var u=t.getElementsByTagName("Challenge")[0],p=void 0;return u&&(p=window_1.atob(u.childNodes[0].nodeValue)),{headers:n,message:p}},requestPlayreadyLicense=function(e,t,r){var n=getMessageContents(t),s=n.headers,a=n.message;videojs.xhr({uri:e,method:"post",headers:s,body:a,responseType:"arraybuffer"},r)},getSupportedKeySystem=function(e){var t=void 0;return Object.keys(e).forEach(function(r){var n={},s=e[r].audioContentType,a=e[r].videoContentType;s&&(n.audioCapabilities=[{contentType:s}]),a&&(n.videoCapabilities=[{contentType:a}]),t=t?t.catch(function(l){return window_1.navigator.requestMediaKeySystemAccess(r,[n])}):window_1.navigator.requestMediaKeySystemAccess(r,[n])}),t},makeNewRequest=function(e){var t=e.mediaKeys,r=e.initDataType,n=e.initData,s=e.options,a=e.getLicense,l=e.removeSession,u=e.eventBus,p=t.createSession();p.addEventListener("message",function(d){a(s,d.message).then(function(m){return p.update(m)}).catch(videojs.log.error.bind(videojs.log.error,"failed to get and set license"))},!1),p.addEventListener("keystatuseschange",function(d){var m=!1;p.keyStatuses.forEach(function(b,g){switch(u.trigger({keyId:g,status:b,target:p,type:"keystatuschange"}),b){case"expired":m=!0;break;case"internal-error":videojs.log.warn(`Key status reported as "internal-error." Leaving the session open since we don't have enough details to know if this error is fatal.`,d)}}),m&&p.close().then(function(){l(n)})},!1),p.generateRequest(r,n).catch(videojs.log.error.bind(videojs.log.error,"Unable to create or initialize key session"))},addSession=function(e){var t=e.video,r=e.initDataType,n=e.initData,s=e.options,a=e.getLicense,l=e.removeSession,u=e.eventBus;t.mediaKeysObject?makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:r,initData:n,options:s,getLicense:a,removeSession:l,eventBus:u}):t.pendingSessionData.push({initDataType:r,initData:n})},setMediaKeys=function(e){var t=e.video,r=e.certificate,n=e.createdMediaKeys,s=e.options,a=e.getLicense,l=e.removeSession,u=e.eventBus;t.mediaKeysObject=n,r&&n.setServerCertificate(r);for(var p=0;p<t.pendingSessionData.length;p++){var d=t.pendingSessionData[p];makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:d.initDataType,initData:d.initData,options:s,getLicense:a,removeSession:l,eventBus:u})}return t.pendingSessionData=[],t.setMediaKeys(n)},defaultPlayreadyGetLicense=function(e){return function(t,r,n){requestPlayreadyLicense(e,r,function(s,a,l){if(s)return void n(s);n(null,l)})}},defaultGetLicense=function(e){return function(t,r,n){videojs.xhr({uri:e,method:"POST",responseType:"arraybuffer",body:r,headers:{"Content-type":"application/octet-stream"}},function(s,a,l){if(s)return void n(s);n(null,l)})}},promisifyGetLicense=function(e,t){return function(r,n){return new Promise(function(s,a){e(r,n,function(l,u){t&&t.trigger("licenserequestattempted"),l&&a(l),s(u)})})}},standardizeKeySystemOptions=function(e,t){if(typeof t=="string"&&(t={url:t}),!t.url&&!t.getLicense)throw new Error("Neither URL nor getLicense function provided to get license");return t.url&&!t.getLicense&&(t.getLicense=e==="com.microsoft.playready"?defaultPlayreadyGetLicense(t.url):defaultGetLicense(t.url)),t},standard5July2016=function(e){var t=e.video,r=e.initDataType,n=e.initData,s=e.options,a=e.removeSession,l=e.eventBus,u=Promise.resolve();if(typeof t.mediaKeysObject>"u"){t.mediaKeysObject=null,t.pendingSessionData=[];var p=void 0,d=void 0;if(!(u=getSupportedKeySystem(s.keySystems)))return videojs.log.error("No supported key system found"),Promise.resolve();u=u.then(function(m){return new Promise(function(b,g){if(t.keySystem=m.keySystem,d=standardizeKeySystemOptions(m.keySystem,s.keySystems[m.keySystem]),!d.getCertificate)return void b(m);d.getCertificate(s,function(y,f){if(y)return void g(y);p=f,b(m)})})}).then(function(m){return m.createMediaKeys()}).then(function(m){return setMediaKeys({video:t,certificate:p,createdMediaKeys:m,options:s,getLicense:promisifyGetLicense(d.getLicense,l),removeSession:a,eventBus:l})}).catch(videojs.log.error.bind(videojs.log.error,"Failed to create and initialize a MediaKeys object"))}return u.then(function(){addSession({video:t,initDataType:r,initData:n,options:s,getLicense:t.keySystem?promisifyGetLicense(standardizeKeySystemOptions(t.keySystem,s.keySystems[t.keySystem]).getLicense,l):null,removeSession:a,eventBus:l})})},stringToUint16Array=function(e){for(var t=new ArrayBuffer(2*e.length),r=new Uint16Array(t),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r},uint8ArrayToString=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},getHostnameFromUri=function(e){var t=document_1.createElement("a");return e=e.match(/.*(skd\:\/\/.+)/i)[1],t.href=e,t.hostname},arrayBuffersEqual=function(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var r=new DataView(e),n=new DataView(t),s=0;s<r.byteLength;s++)if(r.getUint8(s)!==n.getUint8(s))return!1;return!0},arrayBufferFrom=function(e){return e instanceof Uint8Array||e instanceof Uint16Array?e.buffer:e},FAIRPLAY_KEY_SYSTEM="com.apple.fps.1_0",concatInitDataIdAndCertificate=function(e){var t=e.initData,r=e.id,n=e.cert;typeof r=="string"&&(r=stringToUint16Array(r));var s=0,a=new ArrayBuffer(t.byteLength+4+r.byteLength+4+n.byteLength),l=new DataView(a);new Uint8Array(a,s,t.byteLength).set(t),s+=t.byteLength,l.setUint32(s,r.byteLength,!0),s+=4;var u=new Uint16Array(a,s,r.length);return u.set(r),s+=u.byteLength,l.setUint32(s,n.byteLength,!0),s+=4,new Uint8Array(a,s,n.byteLength).set(n),new Uint8Array(a,0,a.byteLength)},addKey=function(e){var t=e.video,r=e.contentId,n=e.initData,s=e.cert,a=e.options,l=e.getLicense,u=e.eventBus;return new Promise(function(p,d){if(t.webkitKeys||t.webkitSetMediaKeys(new window_1.WebKitMediaKeys(FAIRPLAY_KEY_SYSTEM)),!t.webkitKeys)return void d("Could not create MediaKeys");var m=t.webkitKeys.createSession("video/mp4",concatInitDataIdAndCertificate({id:r,initData:n,cert:s}));if(!m)return void d("Could not create key session");m.contentId=r,m.addEventListener("webkitkeymessage",function(b){l(a,r,b,function(g,y){if(u&&u.trigger("licenserequestattempted"),g)return void d(g);m.update(new Uint8Array(y))})}),m.addEventListener("webkitkeyadded",function(b){p(b)}),m.addEventListener("webkitkeyerror",function(b){d(b)})})},defaultGetCertificate=function(e){return function(t,r){videojs.xhr({uri:e,responseType:"arraybuffer"},function(n,s,a){if(n)return void r(n);r(null,new Uint8Array(a))})}},defaultGetContentId=function(e,t){return getHostnameFromUri(uint8ArrayToString(t))},defaultGetLicense$1=function(e){return function(t,r,n,s){videojs.xhr({uri:e,method:"POST",responseType:"arraybuffer",body:n.message,headers:{"Content-type":"application/x-www-form-urlencoded"}},function(a,l,u){if(a)return void s(a);s(null,u)})}},fairplay=function(e){var t=e.video,r=e.initData,n=e.options,s=e.eventBus,a=n.keySystems[FAIRPLAY_KEY_SYSTEM],l=a.getCertificate||defaultGetCertificate(a.certificateUri),u=a.getContentId||defaultGetContentId,p=a.getLicense||defaultGetLicense$1(a.licenseUri);return new Promise(function(d,m){l(n,function(b,g){if(b)return void m(b);d(g)})}).then(function(d){return addKey({video:t,cert:d,initData:r,getLicense:p,options:n,contentId:u(n,r),eventBus:s})}).catch(function(d){s.player_.error({code:3,message:d})})},PLAYREADY_KEY_SYSTEM="com.microsoft.playready",addKeyToSession=function(e,t,r,n){var s=e.keySystems[PLAYREADY_KEY_SYSTEM];if(typeof s.getKey=="function")return void s.getKey(e,r.destinationURL,r.message.buffer,function(l,u){if(l)return void videojs.log.error("Unable to get key: "+l);t.update(u)});typeof s=="string"&&(s={url:s});var a=s.url||r.destinationURL;requestPlayreadyLicense(a,r.message.buffer,function(l,u){if(n&&n.trigger("licenserequestattempted"),l)return void videojs.log.error("Unable to request key from url: "+a);t.update(new Uint8Array(u.body))})},createSession=function(e,t,r,n){var s=e.msKeys.createSession("video/mp4",t);if(!s)return void videojs.log.error("Could not create key session.");s.addEventListener("mskeymessage",function(a){addKeyToSession(r,s,a,n)}),s.addEventListener("mskeyerror",function(a){videojs.log.error("Unexpected key error from key session with code: "+s.error.code+" and systemCode: "+s.error.systemCode)})},msPrefixed=function(e){var t=e.video,r=e.initData,n=e.options,s=e.eventBus;t.msKeys&&delete t.msKeys;try{t.msSetMediaKeys(new window_1.MSMediaKeys(PLAYREADY_KEY_SYSTEM))}catch(a){return void videojs.log.error("Unable to create media keys for PlayReady key system. Error: "+a.message)}createSession(t,r,n,s)},Plugin$18=videojs.getPlugin("plugin"),hasSession=function(e,t){for(var r=0;r<e.length;r++)if(e[r].initData){var n=arrayBufferFrom(e[r].initData),s=arrayBufferFrom(t);if(arrayBuffersEqual(n,s))return!0}return!1},removeSession=function(e,t){for(var r=0;r<e.length;r++)if(e[r].initData===t)return void e.splice(r,1)},handleEncryptedEvent=function(e,t,r,n){if(!t||!t.keySystems||t.src&&t.src.indexOf("m3u8")>-1)return Promise.resolve();var s=e.initData;return getSupportedKeySystem(t.keySystems).then(function(a){var l=a.keySystem;if(t.keySystems[l]&&t.keySystems[l].pssh&&(s=t.keySystems[l].pssh),!hasSession(r,s)&&s)return r.push({initData:s}),standard5July2016({video:e.target,initDataType:e.initDataType,initData:s,options:t,removeSession:removeSession.bind(null,r),eventBus:n})})},handleWebKitNeedKeyEvent=function(e,t,r){if(t.keySystems&&t.keySystems[FAIRPLAY_KEY_SYSTEM]&&e.initData)return fairplay({video:e.target,initData:e.initData,options:t,eventBus:r})},handleMsNeedKeyEvent=function(e,t,r,n){if(t.keySystems&&t.keySystems[PLAYREADY_KEY_SYSTEM]&&!r.reduce(function(a,l){return a||l.playready},!1)){var s=e.initData;t.keySystems[PLAYREADY_KEY_SYSTEM]&&t.keySystems[PLAYREADY_KEY_SYSTEM].pssh&&(s=t.keySystems[PLAYREADY_KEY_SYSTEM].pssh),s&&(r.push({playready:!0,initData:s}),msPrefixed({video:e.target,initData:s,options:t,eventBus:n}))}},getOptions=function(e){return videojs.mergeOptions(e.currentSource(),e.eme.options)},setupSessions=function(e){var t=e.src();t!==e.eme.activeSrc&&(e.eme.activeSrc=t,e.eme.sessions=[])},onPlayerReady=function(e){e.$(".vjs-tech").tagName.toLowerCase()==="video"&&e.tech_&&(setupSessions(e),e.tech_.el_.addEventListener("encrypted",function(t){if(e.currentSource().keySystems&&e.currentSource().keySystems["com.widevine.alpha"]&&e.currentSource().type==="application/dash+xml")return!1;setupSessions(e),handleEncryptedEvent(t,getOptions(e),e.eme.sessions,e.tech_)}),e.tech_.el_.addEventListener("webkitneedkey",function(t){setupSessions(e),handleWebKitNeedKeyEvent(t,getOptions(e),e.tech_)}),videojs.browser.IS_EDGE||e.tech_.el_.addEventListener("msneedkey",function(t){setupSessions(e),handleMsNeedKeyEvent(t,getOptions(e),e.eme.sessions,e.tech_)}))},DRM=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,r.ready(function(){return onPlayerReady(r)}),r.eme={initializeMediaKeys:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},u=videojs.mergeOptions(r.currentSource(),n,a),p={initDataType:"cenc",initData:null,target:r.tech_.el_};setupSessions(r),r.tech_.el_.setMediaKeys?handleEncryptedEvent(p,u,r.eme.sessions,r.tech_).then(function(){return l()}).catch(function(d){return l(d)}):r.tech_.el_.msSetMediaKeys&&(handleMsNeedKeyEvent(p,u,r.eme.sessions,r.tech_),l())},options:n},s}return inherits(t,e),t.prototype.setOptions=function(r){this.options=r,this.player.options_.plugins.DRM=r},t}(Plugin$18),registerPlugin$2=videojs.registerPlugin||videojs.plugin;registerPlugin$2("DRM",DRM);var Plugin$19=videojs.getPlugin("plugin"),dom$2=videojs.dom;if(!window.requestAnimationFrame){var lastTime=0;window.requestAnimationFrame=function(e){var t=new Date().getTime(),r=Math.max(0,16.7-(t-lastTime)),n=window.setTimeout(function(){e(t+r)},r);return lastTime=t+r,n}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)});var DynamicWatermark=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n||{},s.options.content&&s.init(),s}return inherits(t,e),t.prototype.dispose=function(){this.stopAnimation(),this.player.$(".tcp-dynamic-watermark-container")&&this.player.el().removeChild(this.containerElement),e.prototype.dispose.call(this)},t.prototype.init=function(){var r=this,n=this.player;this.isFirstShow=!0,this.initUI(),this.initStyle(),this.initSpeed(),n.on("loadedmetadata",function(){r.calculateStyle(),r.setStyle(),dom$2.removeClass(r.containerElement,"vjs-hidden")}),n.one("play",function(){r.encModule=new Enc,r.ghostCycle=r.encModule.calculateGhost(r.player.duration()),r.startAnimation()}),n.on(["fullscreenchange","playerresize"],function(){setTimeout(function(){r.calculateStyle()},200)})},t.prototype.initUI=function(){var r=this.player,n=dom$2.createEl("div",{className:"tcp-dynamic-watermark-container vjs-hidden"}),s=dom$2.createEl("div",{innerHTML:encodeHTML(this.options.content),className:"tcp-dynamic-watermark-content"});if(n.appendChild(s),this.options.keep||r.el().appendChild(n),this.containerElement=n,this.markContentElement=s,this.options.type==="image"){var a=document.createElement("img");this.options.width&&(a.style.width=this.options.width),this.options.height&&(a.style.height=this.options.height),a.setAttribute("src",this.options.content),this.markContentElement.innerHTML="",this.markContentElement.appendChild(a)}},t.prototype.initStyle=function(){this.style={containerWidth:"",containerHeight:"",containerLeft:"",containerTop:"",contentLeft:80*Math.random(),contentTop:80*Math.random(),margin:0,padding:0,display:"block",visibility:"visible",opacity:.5,position:"absolute",color:"rgba(255, 255, 255)"}},t.prototype.initSpeed=function(){this.speed=this.options.keep&&this.options.speed===0?.2:this.options.speed},t.prototype.calculateStyle=function(){var r=this.player,n=this.style,s=r.videoWidth(),a=r.videoHeight(),l=dom$2.getBoundingClientRect(r.el()),u=l.width,p=l.height,d=(u/p).toFixed(2),m=(s/a).toFixed(2),b=void 0,g=void 0;m<d?(g=p,b=g*m):m>d?(b=u,g=b/m):m==d&&(b=u,g=p),n.containerLeft=(u-b)/2/u*100,n.containerTop=(p-g)/2/p*100,n.containerWidth=b/u*100,n.containerHeight=g/p*100},t.prototype.setStyle=function(){var r=this.containerElement,n=this.markContentElement,s=this.style;r.style.left=s.containerLeft+"%",r.style.top=s.containerTop+"%",r.style.width=s.containerWidth+"%",r.style.height=s.containerHeight+"%",r.style.display=n.style.display=s.display,r.style.visibility=n.style.visibility=s.visibility,r.style.opacity=n.style.opacity=s.opacity,r.style.position=n.style.position=s.position,r.style.margin=n.style.margin=s.margin,r.style.padding=n.style.padding=s.padding,n.style.left=this.options.left||s.contentLeft+"%",n.style.top=this.options.top||s.contentTop+"%",this.options.right&&(n.style.right=this.options.right),this.options.bottom&&(n.style.bottom=this.options.bottom),n.style.color=this.options.color||s.color,this.options.keep||(r.style.opacity=n.style.opacity=this.options.opacity||s.opacity),this.options.type==="text"&&(n.style.fontSize=this.options.fontSize||"12px",n.innerHTML=encodeHTML(this.options.content))},t.prototype.setContent=function(r){this.options.content=r},t.prototype.startAnimation=function(){var r=this;if(!this.rafID){var n=this.player,s=this.style,a=this.containerElement,l=this.markContentElement,u=1,p=1,d=Math.random(),m=function b(){try{if(!r.isPauseAnimation){var g=Math.min(1,r.speed===0?0:r.speed?r.speed:.2),y=dom$2.getBoundingClientRect(a),f=dom$2.getBoundingClientRect(l),_=f.left-y.left,E=f.top-y.top;_+=g*u*d,E+=g*p*(1-d),_+f.width>y.width?(u=-1,d=Math.random()):_<0&&(u=1,d=Math.random()),E+f.height>y.height?(p=-1,d=Math.random()):E<0&&(p=1,d=Math.random()),_=Math.min(y.width-f.width,_),E=Math.min(y.height-f.height,E),s.contentLeft=_/y.width*100,s.contentTop=E/y.height*100,r.setStyle(),r.options.keep&&(r.waterMarkWillRemove||(r.waterMarkWillRemove=!0,setTimeout(function(){n.el()&&n.el().removeChild(a),r.waterMarkWillRemove=!1},1e3*r.ghostCycle.ghostOn)))}}catch(S){r.player&&r.encModule.handleWatermarkElementAdd(r)}if(r.isStopAnimation)return r.isStopAnimation=!1,cancelAnimationFrame(r.rafID),void(r.rafID=null);r.speed!==0&&requestAnimationFrame(b)};this.rafID=requestAnimationFrame(m)}},t.prototype.resumeAnimation=function(){this.isPauseAnimation=!1},t.prototype.pauseAnimation=function(){this.isPauseAnimation=!0},t.prototype.stopAnimation=function(){this.isStopAnimation=!0},t}(Plugin$19);videojs.registerPlugin("DynamicWatermark",DynamicWatermark);var Plugin$20=videojs.getPlugin("plugin"),XP2PHlsjsPlugin=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,s.hlsp2p=null,s}return inherits(t,e),t.prototype.startHLSP2P=function(r,n,s){var a=this,l=this.player.tech_,u=l.options_,p=u.xp2pConfig;if(n.isSupported()&&!window.hlsp2p){for(var d=["videoType","xp2pPackage","xp2pAppId","tencentCloudAppId"],g=d,m=Array.isArray(g),b=0,g=m?g:g[Symbol.iterator]();;){var y;if(m){if(b>=g.length)break;y=g[b++]}else{if(b=g.next(),b.done)break;y=b.value}var f=y;if(p[f]===void 0)return}var _={videoId:u.playerId+"_html5_api",url:u.source.src,videoType:p.videoType,cloudAppId:p.tencentCloudAppId,domain:p.xp2pPackage,xp2pAppId:p.xp2pAppId,p2pStartDelay:1e3},E=HLSP2P.create(r,Object.assign(_,p));E.on(HLSP2P.Events.Rollback,function(S){a.destroy(),s&&s(S)}),this.hlsp2p=E}},t.prototype.destroy=function(){this.hlsp2p&&(this.hlsp2p.destroy(),this.hlsp2p=null,window.hlsp2p=void 0)},t.prototype.dispose=function(){this.destroy()},t}(Plugin$20);videojs.registerPlugin("XP2PHlsjsPlugin",XP2PHlsjsPlugin);var Plugin$21=videojs.getPlugin("plugin"),XP2PFlvjsPlugin=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,s}return inherits(t,e),t.prototype.createLoader=function(r,n,s){var a=this.player.tech();return function(l){function u(p,d){classCallCheck(this,u);var m=possibleConstructorReturn(this,l.call(this));return m._qvbp2p=null,m._receivedLength=0,m._config=d,m}return inherits(u,l),u.isSupported=function(){return n&&n.isSupported()},u.prototype.destroy=function(){this._destroyQVBP2P(),l.prototype.destroy.call(this)},u.prototype.open=function(p){this._createQVBP2P(),this._qvbp2p.on(n.ComEvents.STATE_CHANGE,this._onQVBP2PStateChange.bind(this)),this._qvbp2p.setMediaElement(a.el());var d={src:p.url};this._qvbp2p.loadSource(d)},u.prototype.abort=function(){this._destroyQVBP2P()},u.prototype._onQVBP2PStateChange=function(p,d){var m=n.ComCodes;switch(d.code){case m.RECEIVE_BUFFER:this._receiveBuffer(d.payload);break;case m.ROLLBACK:this._rollback(d)}},u.prototype._receiveBuffer=function(p){var d=this._receivedLength;this._receivedLength+=p.byteLength,this._onDataArrival&&this._onDataArrival(p,d,this._receivedLength)},u.prototype._rollback=function(p){s&&s(p)},u.prototype._createQVBP2P=function(){this._qvbp2p&&this._destroyQVBP2P(),this._qvbp2p=n.create(this._config.xp2pConfig),window.qvbp2p=this._qvbp2p},u.prototype._destroyQVBP2P=function(){this._qvbp2p&&(this._qvbp2p.destroy(),this._qvbp2p=null,window.qvbp2p=null)},u}(r.BaseLoader)},t}(Plugin$21);videojs.registerPlugin("XP2PFlvjsPlugin",XP2PFlvjsPlugin);var defaultConfig$1={enableStashBuffer:!1},Html5FlvJS=function(){function e(t,r,n){var s=this;classCallCheck(this,e);var a=function(){var l=window.flvjs;s.flvjs=l;var u=videojs.mergeOptions(defaultConfig$1,n.flvConfig,{xp2pConfig:n.xp2pConfig}),p=r.player();if(window.QVBP2P&&n.xp2pConfig&&n.xp2pConfig.useXP2P&&p.XP2PFlvjsPlugin){var d=p.XP2PFlvjsPlugin().createLoader(l,window.QVBP2P,function(g){s.dispose(),n.xp2pConfig.useXP2P=!1;var y=s.tech.player(),f=s.tech.currentSource_.src;y.src(f)});s.xp2pFlvLoader=d,u.customLoader=d}var m=new l.createPlayer({isLive:!1,url:t.src,type:"flv"},u);s.tech=r,m.on(l.Events.ERROR,videojs.bind(s,s.onError));for(var b in l.Events)(function(g){m.on(l.Events[g],videojs.bind(s,function(y){this.onEvent(g,y)}))})(b);s.flv=m,s._id=new Date().getTime(),r.el().srcObject&&(r.el().srcObject=null),m.attachMediaElement(r.el()),m.load()};Promise.all([function(){return n.xp2pConfig&&n.xp2pConfig.useXP2P&&n.xp2pConfig.format==="flv"&&!window.QVBP2P?new Promise(function(l){loadScript(XP2P_FLV_PATH,function(){l()})}):Promise.resolve()}(),function(){return window.flvjs?Promise.resolve():new Promise(function(l){loadScript(FLV_PATH,function(){l()})})}()]).then(function(){a()})}return e.prototype.onError=function(t,r,n){var s=this.tech.player();t===this.flvjs.ErrorTypes.NETWORK_ERROR&&s.error({code:2,source:n}),t===this.flvjs.ErrorTypes.MEDIA_ERROR&&s.error({code:3,source:n})},e.prototype.onEvent=function(t,r){this.tech.player().trigger({type:"FLVJS_EVENT",data:{type:t,data:r}})},e.prototype.dispose=function(){if(this.tech.player().pause(),this.tech.flvProvider)try{this.flv.destroy()}catch(t){}this.tech.flvProvider=null},e}(),flvTypeRE=/^video\/flv$/i,flvExtRE=/.flv(?![^?])/i,flvProtoRE=/^(ws:\/\/)/i,FlvSourceHandler={name:"flvSourceHandler",canHandleSource:function(e){return flvTypeRE.test(e.type)?"probably":flvExtRE.test(e.src)||flvProtoRE.test(e.src)?"maybe":""},handleSource:function(e,t,r){return t.flvProvider&&t.flvProvider.dispose(),t.flvProvider=new Html5FlvJS(e,t,r),t.flvProvider},canPlayType:function(e){if(flvTypeRE.test(e))return"probably"}};TCPlayer.mountFlvProvider=mountFlvProvider,mountFlvProvider();var defaultConfig$2={receiveVideo:!0,receiveAudio:!0,showLog:!1},WebRTCProvider=function(){function e(t,r,n){var s=this;classCallCheck(this,e);var a=function(){s.tech=r,s.player=s.tech.player(),s.playerMetrics=s.player.PlayerMetrics(),s.report=s.player.options_.reportable;var l=window.TXLivePlayer;s.TXLivePlayer=l;var u=videojs.mergeOptions(defaultConfig$2,n.webrtcConfig);n.xp2pConfig&&n.xp2pConfig.format==="webrtc"&&n.xp2pConfig.useXP2P&&Object.assign(u,{p2pEnable:n.xp2pConfig.useXP2P,p2pConfig:{cloudAppid:n.xp2pConfig.tencentCloudAppId,xp2pAppid:n.xp2pConfig.xp2pAppId,appKey:n.xp2pConfig.xp2pAppKey,xp2pDomain:n.xp2pConfig.xp2pPackage}});var p=new l;p.setPlayerView(r.el()),p.setConfig(u),p.setPlayListener({onPlayEvent:videojs.bind(s,s.onPlayEvent),onPlayStats:videojs.bind(s,s.onPlayStats),onPlayReport:videojs.bind(s,s.onPlayReport)}),p.startPlay(t.src),s.webrtcPlayer=p};window.TXLivePlayer?a():loadScript(WEBRTC_PATH,function(){a()})}return e.prototype.onPlayStats=function(t){this.tech.player().trigger({type:"webrtcstats",data:t})},e.prototype.onPlayEvent=function(t,r){var n=this.tech.player();if(t<-2e3){if(t===-2003&&r&&r.videoActive&&(n.trigger("blocked"),n.trigger({type:"webrtcevent",data:{code:2005}})),t===-2003)return!1;if(t===-2005||t===-2001||t===-2004){var s=n.options_.webrtcConfig;if(!s||s.fallback!==!1)return this.switchPlaySource(),!1}return n.error({code:t,source:r}),!1}n.trigger({type:"webrtcevent",data:{code:t,data:r}})},e.prototype.onPlayReport=function(t){if(this.report===!1)return!1;t.uint32_command===40101&&this.playerMetrics.report_40101(t),t.uint32_command===40100&&this.playerMetrics.report_40100(t),t.uint32_command===40102&&this.playerMetrics.report_40102(t)},e.prototype.dispose=function(){this.webrtcPlayer&&(this.webrtcPlayer.setPlayListener({onPlayEvent:function(){},onPlayStats:function(){}}),this.webrtcPlayer.stopPlay(),this.webrtcPlayer.setPlayerView(videojs.dom.createEl("video"))),this.webrtcPlayer=null},e.prototype.setSource=function(t){var r=this;this.webrtcPlayer.startPlay(t.src),this.tech.player().one("webrtcevent",function(n){n.data.code===-1002&&r.tech.player().play()})},e.prototype.recovery=function(){var t=this,r=this.tech.player(),n=void 0;r.one("waiting",function(){n=setTimeout(function(){r.one("webrtcevent",function(s){if(s.data.code===1004){t.webrtcPlayer&&t.webrtcPlayer.startPlay(r.src()),r.play();var a=function l(u){u.data.code===1002&&(r.play(),r.off("webrtcevent",l))};r.on("webrtcevent",a)}}),t.webrtcPlayer&&t.webrtcPlayer.stopPlay()},2e3)}),r.one("playing",function(){n&&clearTimeout(n)})},e.prototype.switchPlaySource=function(){var t=this.tech.player(),r=this.tech.currentSource_.src,n=this.convertProtocol(r);t.bigPlayButton&&t.bigPlayButton.hide(),t.posterImage&&t.posterImage.hide(),t.src(n);var s=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata",a=function l(){t.play(),t.one("progress",function(){t.play(),t.off(s,l)})};t.on(s,a)},e.prototype.convertProtocol=function(t){var r=[];if(t.indexOf(".sdp")>-1)t=t.replace(".sdp",".flv"),r.push(t.replace(".sdp",".m3u8"));else{var n=t.replace("webrtc://","https://").replace("?",".flv?");n.indexOf("?")===-1&&n.indexOf(".flv")===-1&&(n+=".flv"),hlsSrc=t.replace("webrtc://","https://").replace("?",".m3u8?"),hlsSrc.indexOf("?")===-1&&hlsSrc.indexOf(".m3u8")===-1&&(hlsSrc+=".m3u8"),r.push(hlsSrc)}return r},e}(),webrtcTypeRE=/^webrtc/i,webrtcExtRE=/\.sdp/i,webrtcProtoRE=/^(webrtc:\/\/)/i,sourceHandler={name:"webrtcSourceHandler",canHandleSource:function(e){return webrtcTypeRE.test(e.type)?"probably":webrtcExtRE.test(e.src)||webrtcProtoRE.test(e.src)?"maybe":""},handleSource:function(e,t,r){return t.webrtcProvider&&t.webrtcProvider.dispose(),t.webrtcProvider=new WebRTCProvider(e,t,r),t.webrtcProvider},canPlayType:function(e){if(webrtcTypeRE.test(e))return"probably"}};mountWebRTCProvider();for(var Tech$2=videojs.getComponent("Tech"),Dom$1=videojs.dom,Url$1=videojs.url,createTimeRange=videojs.createTimeRange,mergeOptions$1=videojs.mergeOptions,navigator$2=window_1&&window_1.navigator||{},Flash=function(e){function t(r,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this,r,n,s));return n.source&&a.ready(function(){this.setSource(n.source)},!0),n.startTime&&a.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),window_1.videojs=window_1.videojs||{},window_1.videojs.Flash=window_1.videojs.Flash||{},window_1.videojs.Flash.onReady=t.onReady,window_1.videojs.Flash.onEvent=t.onEvent,window_1.videojs.Flash.onError=t.onError,a.on("seeked",function(){this.lastSeekTarget_=void 0}),a}return inherits(t,e),t.prototype.createEl=function(){var r=this.options_;r.swf||(r.swf=unifyProtocol("//imgcache.qq.com/open/qcloud/video/tcplayer/player.swf"));var n=r.techId,s=mergeOptions$1({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:r.autoplay,preload:r.preload,loop:r.loop,muted:r.muted},r.flashVars),a=mergeOptions$1({wmode:"opaque",bgcolor:"#000000"},r.params),l=mergeOptions$1({id:n,name:n,class:"vjs-tech"},r.attributes);return this.el_=t.embed(r.swf,s,a,l),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(r){return r===void 0?this.currentSrc():this.setSrc(r)},t.prototype.setSrc=function(r){var n=this;r=Url$1.getAbsoluteURL(r),this.el_.vjs_src(r),this.autoplay()&&this.setTimeout(function(){return n.play()},0)},t.prototype.seeking=function(){return this.lastSeekTarget_!==void 0},t.prototype.setCurrentTime=function(r){var n=this.seekable();n.length&&(r=r>n.start(0)?r:n.start(0),r=r<n.end(n.length-1)?r:n.end(n.length-1),this.lastSeekTarget_=r,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",r),e.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(this.readyState()===0)return NaN;var r=this.el_.vjs_getProperty("duration");return r>=0?r:1/0},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var r=this.duration();return r===0?createTimeRange():createTimeRange(0,r)},t.prototype.buffered=function(){var r=this.el_.vjs_getProperty("buffered");return r.length===0?createTimeRange():createTimeRange(r[0][0],r[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t.prototype.getVideoPlaybackQuality=function(){var r=this.el_.vjs_getProperty("getVideoPlaybackQuality");return window_1.performance&&typeof window_1.performance.now=="function"?r.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(r.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),r},t}(Tech$2),_readWrite=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"],_readOnly=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"],_api=Flash.prototype,i$2=0;i$2<_readWrite.length;i$2++)_createGetter(_readWrite[i$2]),_createSetter(_readWrite[i$2]);for(var _i$1=0;_i$1<_readOnly.length;_i$1++)_createGetter(_readOnly[_i$1]);Flash.isSupported=function(){return Flash.version()[0]>=10},Tech$2.withSourceHandlers(Flash),Flash.nativeSourceHandler={},Flash.nativeSourceHandler.canPlayType=function(e){return e in Flash.formats?"maybe":""},Flash.nativeSourceHandler.canHandleSource=function(e,t){var r=void 0;return r=e.type?e.type.replace(/;.*/,"").toLowerCase():function(n){var s=Url$1.getFileExtension(n);return s?"video/"+s:""}(e.src),Flash.nativeSourceHandler.canPlayType(r)},Flash.nativeSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)},Flash.nativeSourceHandler.dispose=function(){},Flash.registerSourceHandler(Flash.nativeSourceHandler),Flash.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},Flash.onReady=function(e){var t=Dom$1.$("#"+e),r=t&&t.tech;r&&r.el()&&Flash.checkReady(r)},Flash.checkReady=function(e){e.el()&&(e.el().vjs_getProperty?e.triggerReady():this.setTimeout(function(){Flash.checkReady(e)},50))},Flash.onEvent=function(e,t){var r=Dom$1.$("#"+e).tech,n=Array.prototype.slice.call(arguments,2);r.setTimeout(function(){r.trigger(t,n)},1)},Flash.onError=function(e,t){var r=Dom$1.$("#"+e).tech;if(t==="srcnotfound")return r.error(4);r.error("FLASH: "+t)},Flash.version=function(){var e="0,0,0";try{e=new window_1.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{navigator$2.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=(navigator$2.plugins["Shockwave Flash 2.0"]||navigator$2.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(r){}}return e.split(",")},Flash.embed=function(e,t,r,n){var s=Flash.getEmbedCode(e,t,r,n);return Dom$1.createEl("div",{innerHTML:s}).childNodes[0]},Flash.getEmbedCode=function(e,t,r,n){var s="",a="",l="";return t&&Object.getOwnPropertyNames(t).forEach(function(u){s+=u+"="+t[u]+"&amp;"}),r=mergeOptions$1({movie:e,flashvars:s,allowScriptAccess:"always",allowNetworking:"all"},r),Object.getOwnPropertyNames(r).forEach(function(u){a+='<param name="'+u+'" value="'+r[u]+'" />'}),n=mergeOptions$1({data:e,width:"100%",height:"100%"},n),Object.getOwnPropertyNames(n).forEach(function(u){l+=u+'="'+n[u]+'" '}),'<object type="application/x-shockwave-flash" '+l+">"+a+"</object>"},FlashRtmpDecorator(Flash),Tech$2.getTech("Flash")?(videojs.log.warn("Not using videojs-flash as it appears to already be registered"),videojs.log.warn("videojs-flash should only be used with video.js@6 and above")):videojs.registerTech("Flash",Flash);var FlashlsSourceHandler={},mpegurlRE$1=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;FlashlsSourceHandler.canPlayType=function(e){return mpegurlRE$1.test(e)?"maybe":""},FlashlsSourceHandler.canHandleSource=function(e,t){return FlashlsSourceHandler.canPlayType(e.type)==="maybe"},FlashlsSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)},FlashlsSourceHandler.dispose=function(){},videojs.getTech("Flash").registerSourceHandler(FlashlsSourceHandler,0),FlashlsSourceHandler.VERSION="__VERSION__";var Play="播放",Pause="暂停",LIVE="直播",Loaded="加载完毕",Progress="进度",Fullscreen="全屏",Mute="静音",Unmute="取消静音",Subtitles="字幕",Captions="内嵌字幕",Chapters="节目段落",Descriptions="描述",Close="关闭",Replay="重播",Text="文字",White="白",Black="黑",Red="红",Green="绿",Blue="蓝",Yellow="黄",Magenta="紫红",Cyan="青",Background="背景",Window="视窗",Transparent="透明",Opaque="不透明",None="无",Raised="浮雕",Depressed="压低",Uniform="均匀",Dropshadow="下阴影",Casual="舒适",Script="手写体",Reset="重启",Done="完成",auto="自动",Mirror="镜像",CN={Play,Pause,LIVE,Loaded,Progress,Fullscreen,Mute,Unmute,Subtitles,Captions,Chapters,Descriptions,Close,Replay,Text,White,Black,Red,Green,Blue,Yellow,Magenta,Cyan,Background,Window,Transparent,Opaque,None,Raised,Depressed,Uniform,Dropshadow,Casual,Script,Reset,Done,auto,Mirror,"Current Time":"当前时间","Duration Time":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","Non-Fullscreen":"退出全屏","Playback Rate":"播放速度","subtitles off":"关闭字幕","captions off":"关闭内嵌字幕","Close Modal Dialog":"关闭弹窗","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能，播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源或者当前环境无法播放该视频。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密，无法解密。","Play Video":"播放视频","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Progress Bar":"进度小节","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Semi-Transparent":"半透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Small Caps":"小型大写字体","restore all settings to the default values":"恢复全部设定至预设值","Caption Settings Dialog":"字幕设定视窗","Beginning of dialog window. Escape will cancel and close the window.":"开始对话视窗。离开会取消及关闭视窗","End of dialog window.":"结束对话视窗","Request timed out.":"请求超时，请稍后再试。","Could not download the video.":"无法加载视频，请检查网络。","Server is not respond.":"服务器请求失败，请稍后再试。","Server respond error data.":"服务器返回数据有误，请稍后再试。","Last time play at ":"上次看到 ","Resume play":"恢复播放","Powered by Tencent Cloud.":"腾讯云提供技术支持","Rise an internal exception when playing HLS.":"播放 HLS 时出现内部异常。","Authentication failed.":"防盗链参数鉴权失败。","Server failed.":"媒体服务器错误。","Get file error.":"媒体服务器获取文件错误。","The media file does not exist. Please check if the fileID is correct.":"媒体文件不存在，请检查 fileID 是否正确。","No video transcoding information found.":"没有找到视频转码信息。","Current browser not support DRM.":"浏览器不支持当前 DRM 方案。","The trial duration is illegal. The trial duration must be within the video duration.":"试看时长不合法，试看时长要在视频时长范围内。","Param pcfg is not unique.":"pcfg 不唯一。","The license has expired. Please check whether the expiration time setting is reasonable.":"license 过期，请检查过期时间设置是否合理。","Did not find an adaptive stream that can be played.":"没有找到可以播放的自适应码流，<a href='https://cloud.tencent.com/document/product/266/34071' style='color: white;' target='_blank'>查看文档</a>。","Invalid request format, please check the request format.":"请求格式不合法，请检查请求格式。","AppID is not exist, Please check if the AppID is correct.":"AppID 不存在，请检查 AppID 是否正确。","Without anti-leech information.":"没带防盗链检测。","qsign invalid.":"播放参数 qsign 校验失败","psign check failed.":"播放参数 psign 校验失败，<a href='https://cloud.tencent.com/document/product/266/45554' style='color: white' target='_blank'>查看文档</a>。","Other errors.":"其他错误。","Internal error.":"内部错误。","Response data verification failed.":"响应数据校验失败","Video statistic":"视频统计信息","Play Next":"下一个","Current browser not support play this stream, please select another one.":"无法找到此视频兼容的源或者当前环境无法播放该视频，请选择其他视频播放。","Server respond error data.(eg. stream not exist)":"媒体服务器获取数据异常，可能该视频不存在，请选择其他视频播放。","Video play failed, please refresh to start play again.":"视频播放器失败，请刷新并重新播放。","Connection to the server has failed and the number of connection retries has exceeded the set value.":"媒体服务器连接异常，并达到最大重试次数，请检查网络是否正常并刷新重试","Video decoding failure.":"视频解码失败，请选择其他视频播放。"},log=videojs.log;if(Function.prototype.bind&&(typeof console>"u"?"undefined":_typeof(console))=="object"&&_typeof(console.log)=="object")for(var logFns=["log","info","warn","error","assert","dir","clear","profile","profileEnd"],i=0;i<logFns.length;i++){var method=logFns[i];console[method]=Function.prototype.call.bind(console[method],console)}return videojs.addLanguage("zh-CN",CN),Object.keys(videojs).forEach(function(e){TCPlayer[e]=videojs[e]}),TCPlayer})})(tcplayer_v4_8_0_min);var tcplayer_v4_8_0_minExports=tcplayer_v4_8_0_min.exports;const TCPlayer=getDefaultExportFromCjs(tcplayer_v4_8_0_minExports),tcplayer_min="",iconLoop=""+new URL("icon-loop-d829c914.svg",import.meta.url).href,iconLoopActive=""+new URL("icon-loop-active-cd128045.svg",import.meta.url).href,iconplay=""+new URL("icon-play-6bc42262.svg",import.meta.url).href,iconpause=""+new URL("icon-pause-fe805220.svg",import.meta.url).href,VideoItem=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},pageVisibility:{type:String,default:""},show:{type:Boolean,default:!1},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset","close","error"],setup(e,{emit:t,expose:r}){const n="video"+Date.now()+Math.floor(Math.random()*100),s=ref(),{item:a,isEmtry:l}=toRefs(e),u=reactive({timer:null,currentTime:0,duration:0,loop:!1,playState:"pause",vudio:null,reload:!1}),p=ref();watch(()=>e.show,f=>{m("pause")}),watch(()=>e.pageVisibility,f=>{f==="hidden"&&e.show&&m("pause")});let d=null;const m=f=>{var _;clearTimeout(d),f==="play"?d=setTimeout(()=>{var E;(E=s.value)==null||E.play(),u.playState="play"},100):((_=s.value)==null||_.pause(),u.playState="pause"),t("togglePlay",u.playState)},b=()=>{s.value&&(s.value.src(a.value.content),t("reset"))},g=f=>{u.currentTime=f,clearTimeout(u.timer),u.timer=setTimeout(()=>{s.value.currentTime(f),u.timer=null},300)},y=()=>{s.value=TCPlayer(n,{appID:"",controls:!1}),s.value&&(console.log(s.value),s.value.poster(e.item.coverImg),s.value.src(l.value?"":a.value.content),s.value.one("loadedmetadata",f=>{console.log(" Loading metadata",f),u.reload=!1,u.duration=s.value.duration(),t("loadedmetadata",s.value)}),s.value.on("timeupdate",()=>{u.timer||(u.currentTime=s.value.currentTime())}),s.value.on("ended",()=>{u.playState="pause",t("ended")}),s.value.on("pause",()=>{u.playState="pause"}),s.value.on("playing",()=>{u.playState="play"}),s.value.on("canplay",f=>{console.log("canplay",f)}),s.value.on("error",f=>{t("error"),console.log(f,"error")}))};return onMounted(()=>{y()}),r({onPlay:b}),()=>createVNode("div",{class:styles$1.videoWrap},[createVNode("div",{class:styles$1.content},[createVNode("div",{ref:p,class:styles$1.contentWrap},[!u.reload&&createVNode("video",{style:{width:"100%",height:"100%"},poster:e.item.coverImg,src:l.value?"":a.value.content,id:n,preload:"auto",playsinline:!0,"webkit-playsinline":!0},null)]),createVNode("div",{class:styles$1.videoSection},null)]),createVNode("div",{class:[styles$1.controls,e.showModel?"":styles$1.hide],onClick:f=>{f.stopPropagation()},onTouchmove:f=>{t("close")}},[createVNode("div",{class:styles$1.time},[createVNode("div",null,[getSecondRPM(u.currentTime)]),createVNode("div",null,[getSecondRPM(u.duration)])]),createVNode("div",{class:styles$1.slider},[createVNode(NSlider,{tooltip:!1,step:.01,class:styles$1.timeProgress,value:u.currentTime,max:u.duration,"onUpdate:value":f=>g(f)},null)]),createVNode("div",{class:styles$1.actions,onClick:()=>t("close")},[createVNode("div",{class:styles$1.actionBtn,onClick:()=>m(u.playState==="pause"?"play":"pause")},[createVNode("img",{src:u.playState==="pause"?iconplay:iconpause},null)]),createVNode("div",{class:styles$1.actionBtn,onClick:()=>u.loop=!u.loop},[createVNode("img",{src:u.loop?iconLoopActive:iconLoop},null)])])])])}}),container="_container_1l0gk_1",pointHead="_pointHead_1l0gk_12",content="_content_1l0gk_24",collapse="_collapse_1l0gk_34",collapseItem="_collapseItem_1l0gk_34",item="_item_1l0gk_49",arrow="_arrow_1l0gk_58",itemImage="_itemImage_1l0gk_63",activeItem="_activeItem_1l0gk_68",itemActive="_itemActive_1l0gk_76",styles={container,pointHead,content,collapse,collapseItem,item,arrow,itemImage,activeItem,itemActive},iconMenuChapter=""+new URL("icon-menu-chapter-bd664df8.svg",import.meta.url).href,chapterDown=""+new URL("chapter-down-arrow-ed70546b.svg",import.meta.url).href,chapterDefault=""+new URL("chapter-default-arrow-a8515aa3.svg",import.meta.url).href,chapterVideo=""+new URL("chapter-video-91c7709a.svg",import.meta.url).href;function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const Chapter=defineComponent({name:"chapter",props:{detail:{type:Object,default:()=>[]},itemActive:{type:String,default:""},active:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){const{detail:r,itemActive:n,active:s}=toRefs(e),a=reactive({active:s.value});return()=>{let l;return createVNode("div",{class:styles.container},[createVNode("div",{class:styles.pointHead},[createVNode("img",{src:iconMenuChapter},null),createTextVNode("切换章节")]),createVNode("div",{class:styles.content},[createVNode(Collapse,{class:styles.collapse,modelValue:a.active,"onUpdate:modelValue":u=>{a.active=u},border:!1,accordion:!0},_isSlot(l=r.value.map(u=>createVNode(CollapseItem,{center:!0,class:[styles.collapseItem,a.active===u.id?styles.activeItem:""],border:!1,isLink:!1,title:u.name,titleClass:"van-ellipsis",titleStyle:{width:"80%"},name:u.id},{default:()=>createVNode(Fragment,null,[u.knowledgeList.map(p=>createVNode("div",{class:[styles.item,n.value==p.id?styles.itemActive:""],onClick:()=>{var m,b,g,y;if(n.value==p.id)return;if(!p.containMaterial){showToast("该章节暂无课件");return}t("handleSelect",{itemActive:p.id,itemName:p.name,tabActive:u.id,tabName:u.name});const d="lastTime"+((y=(g=(b=(m=state)==null?void 0:m.user)==null?void 0:b.data)==null?void 0:g.phone)!=null?y:"");localStorage.setItem(d,p.id)}},[createVNode(Image$1,{src:chapterVideo,class:styles.itemImage},null),createVNode("span",{style:{width:"80%"},class:"van-ellipsis"},[p.name])]))]),icon:()=>createVNode("img",{class:styles.arrow,src:a.active===u.id?chapterDown:chapterDefault},null)})))?l:{default:()=>[l]})])])}}}),index=defineComponent({name:"CoursewarePlay",setup(){const e=usePageVisibility(),t=reactive({width:"100vw"}),r=()=>{let P=Math.min(screen.width,screen.height),O=Math.max(screen.width,screen.height),V=P*(16/9);if(V>O){t.width="100vw";return}else t.width=V+"px"},n=(P=0)=>{r(),postMessage({api:"setStatusBarVisibility",content:{isVisibility:P}}),postMessage({api:"keepScreenLongLight",content:{isOpenLight:!!P}})};n(),onUnmounted(()=>{n(1),window.removeEventListener("message",b)});const s=async()=>{var P;try{const O=await api_lessonCoursewareDetail(a.query.lessonCoursewareId);(O==null?void 0:O.code)==200&&Array.isArray((P=O==null?void 0:O.data)==null?void 0:P.lessonList)&&(p.courseDetails=O.data.lessonList||[])}catch(O){}},a=useRoute(),l=ref(),u=ref(!1),p=reactive({knowledgePointList:[],courseDetails:[],itemList:[],videoRefs:{}}),d=reactive({isAutoPlay:!0,lessonCoursewareId:a.query.lessonCoursewareId,lessonCoursewareDetailId:a.query.lessonCoursewareDetailId,coursewareDetailKnowledgeId:a.query.id,nowTime:0,model:!0,isAnimation:!0,videoBtns:!0,currentTime:0,duration:0,timer:null,item:null}),m=async()=>{let P=[];if(a.query.tab=="course"){const O=await api_classLessonCoursewareQuery({coursewareDetailKnowledgeId:d.coursewareDetailKnowledgeId,page:1,rows:-1});(O==null?void 0:O.code)===200&&Array.isArray(O.data.rows)&&(O.data.rows||[]).forEach(H=>{P.push({content:H.content,coverImg:H.coverImg,id:H.id,materialId:H.materialId,name:H.materialName,relOrder:0,sourceFrom:H.source,type:H.materialType})})}else{const O=await api_lessonCoursewareKnowledgeDetailDetail({lessonCoursewareKnowledgeDetailId:d.coursewareDetailKnowledgeId});(O==null?void 0:O.code)===200&&Array.isArray(O.data)&&(P=O.data||[])}P.length>0&&(p.knowledgePointList=P.map(O=>({...O,url:O.type==="SONG"?"https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687916228530.png":O.coverImg}))),p.itemList=p.knowledgePointList.map((O,V)=>(f.itemActive||(f.itemActive=O.id,f.itemName=O.name),{...O,iframeRef:null,videoEle:null,autoPlay:!1,isprepare:!1,isRender:!1}))},b=P=>{var O,V;((O=P.data)==null?void 0:O.api)==="headerTogge"&&(d.model=P.data.show||P.data.playState!="play"),((V=P.data)==null?void 0:V.api)==="api_fingerPreView"&&(clearInterval(d.timer),d.model=!P.data.state)};onMounted(()=>{postMessage({api:"courseLoading",content:{show:!1,type:"fullscreen"}}),m(),s(),window.addEventListener("message",b)});const g=ref(),y=()=>{var P;try{(P=g.value)==null||P.handleOut()}catch(O){}postMessage({api:"goBack"})},f=reactive({open:!1,activeIndex:0,itemActive:"",itemName:"",chapterOpen:!1}),_=P=>{const O=p.itemList.findIndex(V=>V.id==P);O>-1&&R(O)},E=()=>{clearTimeout(d.timer),closeToast(),d.model=!d.model,d.timer=setTimeout(()=>{d.model=!1},4e3)},S=P=>{P&&["VIDEO"].includes(P.type)&&console.log("双击")},k=ref(3),A=[{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)",opacity:0},next:{transform:"translate3d(100%, 0, -800px) rotateY(120deg)",opacity:0}},{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"}}],I=ref(),R=P=>{if(f.activeIndex==P)return;clearTimeout(I.value);const O=p.itemList[P];f.activeIndex=P,f.itemActive=O.id,f.itemName=O.name,O.type=="MUSIC"?d.model=!0:O.type=="VIDEO"&&O.error&&p.videoRefs[P].onPlay()},C=P=>{R(P==="up"?f.activeIndex-1:f.activeIndex+1)},x=()=>{};return()=>createVNode("div",{id:"playContent",class:styles$5.playContent},[!u.value&&createVNode("div",null,[createVNode("div",{class:styles$5.coursewarePlay,style:{width:t.width},onClick:()=>E()},[createVNode("div",{class:styles$5.wraps},[p.itemList.map((P,O)=>{const V=P.isRender||Math.abs(f.activeIndex-O)<2,H=Math.abs(f.activeIndex-O)>4;return V&&(P.isRender=!0),V?createVNode("div",{key:"index"+O,class:[styles$5.itemDiv,f.activeIndex===O&&styles$5.itemActive,d.isAnimation&&styles$5.acitveAnimation,Math.abs(f.activeIndex-O)<2?styles$5.show:styles$5.hide],style:O<f.activeIndex?A[k.value].prev:O>f.activeIndex?A[k.value].next:{},onClick:F=>{if(Date.now()-d.nowTime<300){S(P);return}d.nowTime=Date.now()}},[P.type==="IMG"&&createVNode("img",{src:P.content},null),P.type==="VIDEO"&&createVNode(VideoItem,{ref:F=>p.videoRefs[O]=F,item:P,show:f.activeIndex===O,pageVisibility:e.value,showModel:d.model,isEmtry:H,onLoadedmetadata:()=>{P.isprepare=!0,P.error=!1},onEnded:()=>{const F=f.activeIndex+1;F<p.itemList.length&&R(F)},onReset:()=>{P.error=!1},onError:()=>{P.isprepare=!0,P.error=!0}},null),P.type==="SONG"&&createVNode(AudioItem,{item:P,show:f.activeIndex===O,pageVisibility:e.value,showModel:d.model,isEmtry:H,onEnded:()=>{const F=f.activeIndex+1;F<p.itemList.length&&R(F)},onClose:()=>{clearTimeout(d.timer),d.timer=setTimeout(()=>{d.model=!1},4e3)}},null),P.type==="MUSIC"&&createVNode(MusicScore,{pageVisibility:e.value,show:f.activeIndex===O,activeModel:d.model,"data-vid":P.id,music:P},null),P.type==="VIDEO"&&createVNode(Transition,{name:"van-fade"},{default:()=>[!P.isprepare&&createVNode("div",{class:styles$5.loadWrap},[createVNode(Vue3Lottie,{style:{width:"100%",height:"100%"},animationData:playLoadData},null)])]})]):createVNode("div",{key:"index"+O,class:[styles$5.itemDiv,f.activeIndex===O&&styles$5.itemActive,d.isAnimation&&styles$5.acitveAnimation,Math.abs(f.activeIndex-O)<2?styles$5.show:styles$5.hide],style:O<f.activeIndex?A[k.value].prev:O>f.activeIndex?A[k.value].next:{}},null)})]),createVNode(Transition,{name:"right"},{default:()=>[d.model&&createVNode("div",{class:styles$5.rightFixedBtns,onClick:P=>{P.stopPropagation(),clearTimeout(d.timer)}},[createVNode("div",{class:[styles$5.fullBtn,styles$5.point],onClick:()=>f.chapterOpen=!0},[createVNode("img",{src:iconChange},null),createVNode("span",null,[createTextVNode("切换")])]),createVNode("div",{class:[styles$5.fullBtn,styles$5.point],onClick:()=>f.open=!0},[createVNode("img",{src:iconMenu},null),createVNode("span",null,[createTextVNode("课件")])]),createVNode("div",{class:[styles$5.fullBtn,f.activeIndex==0&&styles$5.btnsDisabled],onClick:()=>C("up")},[createVNode("img",{src:iconUp},null),createVNode("span",{style:{textAlign:"center"}},[createTextVNode("上一个")])]),createVNode("div",{class:[styles$5.fullBtn,f.activeIndex==p.itemList.length-1&&styles$5.btnsDisabled],onClick:()=>C("down")},[createVNode("span",{style:{textAlign:"center"}},[createTextVNode("下一个")]),createVNode("img",{src:iconDown},null)])])]})])]),createVNode("div",{style:{transform:d.model?"":"translateY(-100%)"},class:styles$5.headerContainer,ref:l},[createVNode("div",{class:styles$5.backBtn,onClick:()=>y()},[createVNode(Icon,{name:iconBack},null),createTextVNode("返回")]),createVNode("div",{class:styles$5.menu},[f.itemName])]),createVNode(Popup,{class:styles$5.popup,style:{background:"rgba(0,0,0, 0.75)"},overlayClass:styles$5.overlayClass,position:"right",round:!0,show:f.open,"onUpdate:show":P=>f.open=P,onClose:x},{default:()=>[createVNode(Points,{data:p.knowledgePointList,itemActive:f.itemActive,onHandleSelect:P=>{f.open=!1,_(P.itemActive)}},null)]}),createVNode(Popup,{class:styles$5.popup,style:{background:"rgba(0,0,0, 0.75)"},overlayClass:styles$5.overlayClass,position:"right",round:!0,show:f.chapterOpen,"onUpdate:show":P=>f.chapterOpen=P,onClose:x},{default:()=>[createVNode(Chapter,{detail:p.courseDetails,itemActive:d.coursewareDetailKnowledgeId,active:d.lessonCoursewareDetailId,onHandleSelect:async P=>{console.log(P,"item"),u.value=!0,d.coursewareDetailKnowledgeId=P.itemActive,d.lessonCoursewareDetailId=P.tabActive,await m(),f.activeIndex=0,f.itemActive=P.itemActive,f.itemName=P.itemName,f.chapterOpen=!1,u.value=!1}},null)]})])}});export{index as default};
