!function(t){"use strict";function e(){var t=document.documentElement,e=document.body,n="scrollTop",i="scrollHeight";return(t[n]||e[n])/((t[i]||e[i])-t.clientHeight)*100}t.fn.awbInitLottiePlayer=function(){const n=t(this),i=n.find("lottie-player")[0],o=n.attr("data-path"),a=n.attr("data-trigger"),r=n.attr("data-scroll_relative_to"),s=n.attr("data-scroll_element"),c=n.attr("data-cursor_direction");let l=n.attr("data-start_point"),f=n.attr("data-end_point");i.load(o),t(i).off(),n.off(),t(i).on("load",function(){const o=i.getLottie(),u=o.totalFrames;if(f=f&&100>f&&f>l?parseInt(u*f/100):u,l=l?parseInt(u*l/100):0,(0<l||f<u)&&o.playSegments([l,f],!0),"none"===a)i.play();else if("click"===a)n.on("click",function(){i.play()});else if("toggle"===a)n.on("click",function(){i.togglePlay()});else if("hover"===a)n.on("mouseenter",function(){i.play()}),n.on("mouseleave",function(){i.pause()});else if("scroll"===a){if("page"===r){const n=parseInt(e());i.seek(n+"%"),t(window).on("scroll",function(){const t=parseInt(e());i.seek(t+"%")})}else if(window.LottieInteractivity){const t={player:i,mode:"scroll",actions:[{visibility:[0,1],type:"seek",frames:[l,f]}]};"element"===r&&""!==s&&(t.container=s),window.LottieInteractivity.create(t)}}else if("cursor"===a){if(window.LottieInteractivity){let t={x:[0,1],y:[-1,2]};"vertical"===c?t={x:[-1,2],y:[0,1]}:"both"===c&&(t={x:[0,1],y:[0,1]});const e={player:i,mode:"cursor",actions:[{position:t,type:"seek",frames:[l,f]}]};window.LottieInteractivity.create(e)}}else"IntersectionObserver"in window?t.each(fusion.getObserverSegmentation(n),function(e){var n=fusion.getAnimationIntersectionData(e),o=new IntersectionObserver(function(e,n){t.each(e,function(t,e){fusion.shouldObserverEntryAnimate(e,n)&&(i.play(),o.unobserve(e.target))})},n);t(this).each(function(){o.observe(this)})}):t(this).each(function(){i.play()})})},t(window).on("load fusion-element-render-fusion_lottie",function(e,n){(void 0!==n?t('div[data-cid="'+n+'"]').find(".fusion-lottie-animation"):t(".fusion-lottie-animation").not(".awb-post-card-off-canvas-content .fusion-lottie-animation")).each(function(){t(this).awbInitLottiePlayer()})}),t(window).on("fusion-dynamic-content-render",function(e,n){var i=t(n).find(".fusion-lottie-animation");0<i.length&&i.each(function(){t(this).awbInitLottiePlayer()})})}(jQuery);