(($,o,t)=>{"use strict";const r=$("#footerwrap"),c=$(".back-top.back-top-float"),a="sticky"===r.css("position"),e=r.find("#footer"),i=$("#body");let s,n="#fff",f=r.innerHeight();const p=()=>{f=r.innerHeight(),!a&&r.parent().css("padding-bottom",f)},l=()=>{const t=i.get(0).getBoundingClientRect(),c=o.h-t.bottom;r.toggleClass("active-revealing",t.top<0),c>=0&&c<=f?e.css("opacity",c/f+.2):c>f&&e.css("opacity",1)};i.length&&(s=i.parents(),s.length&&i.add(s).each((function(){let o=$(this).css("background-color");if(o&&"transparent"!==o&&"rgba(0, 0, 0, 0)"!==o)return n=o,!0})),i.css("background-color",n),a||document.body.classList.add("no-css-sticky"),p(),l(),o.on("tfsmartresize",p),t.tfOn("scroll",l,{passive:!0}),c.length&&$("#footerwrap").before(c))})(jQuery,Themify,window);