'use strict';(d=>{let e=!1;const f=function(){if(!1===e){e=!0;const b=this.style.animationName,a=this.getAttribute("data-tf-animation_hover");b&&(this.style.animationIterationCount=this.style.animationDelay=this.style.animationName="",this.classList.remove(b));this.addEventListener("animationend",function(c){this.classList.remove("animated","tb_hover_animate",c.animationName);this.style.animationName="";e=!1},{passive:!0,once:!0});this.style.animationName=a;this.classList.add("animated","tb_hover_animate",
a)}},h=b=>{const a=[d.isTouch?"touchstart":"mouseenter","tf_custom_animate"];for(let c=a.length-1;-1<c;--c)b.removeEventListener(a[c],f,{passive:!0}),b.addEventListener(a[c],f,{passive:!0})},k=function(b){d.imagesLoad(b,a=>{a.style.visibility="visible";if(a.hasAttribute("data-tf-animation")){a.hasAttribute("data-tf-animation_repeat")&&(a.style.animationIterationCount=a.getAttribute("data-tf-animation_repeat"));a.hasAttribute("data-tf-animation_delay")&&(a.style.animationDelay=a.getAttribute("data-tf-animation_delay")+
"s");const c=a.getAttribute("data-tf-animation");a.classList.add(c);a.style.animationName=c;a.addEventListener("animationend",function(){this.style.animationIterationCount=this.style.animationDelay="";this.classList.remove("animated",c);this.removeAttribute("data-tf-animation")},{passive:!0,once:!0});a.classList.add("animated")}a.classList.contains("hover-wow")&&h(a)})},l=new IntersectionObserver((b,a)=>{for(let c=b.length-1;-1<c;--c)!0===b[c].isIntersecting&&(a.unobserve(b[c].target),k(b[c].target))},
{threshold:.01}),g=b=>{b instanceof jQuery&&(b=b.get());for(let a=b.length-1;-1<a;--a)l.observe(b[a])};d.on("tf_wow_init",b=>{d.cssLazy.animate?g(b):d.loadAnimateCss(()=>{g(b)})})})(Themify);
