function t396_scaleBlock(e){var t,u,m,l,g=t396_isOnlyScalableBrowser(),h=t396_detectResolution(e),a=document.getElementById("rec"+e);a&&(t=t396_scale__getElementsToScale(a),(u=a.querySelector(".t396__artboard"))&&0!==t.length&&(m=(m=window.tn&&window.tn["ab"+e]&&window.tn["ab"+e].scaleFactor)||window.tn_scale_factor,a=u.clientWidth,e=t396_ab__getFieldValue(u,"height"),e=Math.floor(e*m),l=t396_ab__getFieldValue(u,"height_vh"),window.tn_scale_offset=(a*m-a)/2,l&&(a=t396_ab__getFieldValue(u,"height"),e=(l=t396_ab__getHeight(u))<=(a=a*m)?a:l),t396_scale__updateArtboardState(u,e),t.forEach(function(e){var t=e.querySelector(".tn-molecule, .tn-atom"),l=t396_scale__getElementType(e),a=t396_elem__getFieldValue(e,"container");if(a||"group"!==l||(a="grid"),t&&"grid"===a)if(g){a=t.closest(".tn-atom__scale-wrapper");a||(t396_scale__wrapElement(t,m,"tn-atom__scale-wrapper"),a=t.closest(".tn-atom__scale-wrapper")),t396_scale__processBackdropFilter(e,t,a),t396_scale__processBackgroundForShape(e,t,l,m)}else{var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o=("text"!==l&&"button"!==l||!a||(r=t396_elem__getCorrectStylesForSafari(e,"fontSize"),o=t.style.webkitTextSizeAdjust,t.style.webkitTextSizeAdjust="none",e.style.zoom=m,_=parseFloat(getComputedStyle(t).fontSize),_=Math.round(_),_=Math.abs(r-_),t.style.webkitTextSizeAdjust=o,1<=_&&(t.style.fontSize=r*m+"px",t.style.webkitTextSizeAdjust="none")),e.style.zoom=m,e.querySelector("iframe")),_=e.getAttribute("data-animate-style"),r=e.getAttribute("data-animate-sbs-event"),i=u.classList.contains("t396_resizechange");if("video"!==l&&o&&!_&&!r&&!i){e.style.removeProperty("zoom");var s=t396_elem__getFieldValue(e,"height"),n=(s=t396_elem__getHeight(e,s),s=t396_elem__convertPosition__Local__toAbsolute(e,"height",s),t396_elem__getFieldValue(e,"width")),c=(n=t396_elem__getWidth(e,n),n=t396_elem__convertPosition__Local__toAbsolute(e,"width",n),parseFloat(t396_elem__getFieldValue(e,"top"))),d=(c=(c=t396_elem__convertPosition__Local__toAbsolute(e,"top",c))*m+(s*m-s)/2,parseFloat(t396_elem__getFieldValue(e,"left"))),p=(d=(d=t396_elem__convertPosition__Local__toAbsolute(e,"left",d))*m+(n*m-n)/2,e.style.top=c+"px",e.style.left=d+"px",t.parentNode),o=(p&&p.classList.contains("tn-atom__scale-wrapper")&&(p=p.parentNode),document.createElement("div"));for(o.classList.add("tn-atom__scale-wrapper"),o.style.transform="scale("+m+")";p.firstChild;)p.removeChild(p.firstChild);o.appendChild(t),p&&p.appendChild(o),e.setAttribute("data-scale-off","yes")}"shape"===l&&(s=t396_elem__getFieldValue(e,"height"),s=t396_elem__getHeight(e,s),s=t396_elem__convertPosition__Local__toAbsolute(e,"height",s),n=t396_elem__getFieldValue(e,"width"),n=t396_elem__getWidth(e,n),n=t396_elem__convertPosition__Local__toAbsolute(e,"width",n),c=parseFloat(t396_elem__getFieldValue(e,"top")),c=t396_elem__convertPosition__Local__toAbsolute(e,"top",c),d=parseFloat(t396_elem__getFieldValue(e,"left")),d=t396_elem__convertPosition__Local__toAbsolute(e,"left",d),i=(r=window.getComputedStyle(t)).borderWidth,o="none"!==r.backgroundImage,_=e.getAttribute("data-animate-sbs-event"),!(s<=2||n<=2)||"0px"!==i||o||_||(e.style.removeProperty("zoom"),r=n*m,i=s*m,o=c*m,_=d*m,e.style.width=parseFloat(r)+"px",e.style.height=parseFloat(i)+"px",e.style.top=Math.round(o)+"px",e.style.left=Math.round(_)+"px",e.setAttribute("data-scale-off","yes"))),"text"===l&&h<1200&&t&&!a&&(t.style.webkitTextSizeAdjust="auto"),t&&(t.style.transformOrigin="center")}})))}function t396_scale__getElementsToScale(e){e=Array.prototype.slice.call(e.querySelectorAll(".t396__elem"));if(!e.length)return[];var t=[];return(e=e.filter(function(e){e=e.closest('.t396__group[data-group-type-value="physical"]');return!e||(-1===t.indexOf(e)&&t.push(e),!1)})).concat(t)}function t396_scale__updateArtboardState(e,t){e.classList.add("t396__artboard_scale");var l=e.getAttribute("data-artboard-recid");e.insertAdjacentHTML("beforeend",'")}function t396_scale__wrapElement(e,t,l){var a,o;!e||(a=e.parentNode)&&((o=document.createElement("div")).classList.add(l),o.style.transform="scale("+t+")",o.appendChild(e),a.appendChild(o))}function t396_scale__processBackdropFilter(e,t,l){"none"===e.style.backdropFilter&&(e.style.backdropFilter="");var a=getComputedStyle(e).backdropFilter;a&&(e.style.backdropFilter="none",l.style.backdropFilter=a,"0px"!==(e=getComputedStyle(t).borderRadius)&&(l.style.borderRadius=e))}function t396_scale__processBackgroundForShape(e,t,l,a){var o,_;"shape"===l&&(l=t&&getComputedStyle(t))&&(l&&l.backgroundImage||t.getAttribute("data-original"))&&"fixed"===l.backgroundAttachment&&(e.removeChild(t.parentNode),e.appendChild(t),l=t396_elem__getFieldValue(e,"height"),l=t396_elem__getHeight(e,l),l=t396_elem__convertPosition__Local__toAbsolute(e,"height",l),t=t396_elem__getFieldValue(e,"width"),t=t396_elem__getWidth(e,t),t=t396_elem__convertPosition__Local__toAbsolute(e,"width",t),o=parseFloat(t396_elem__getFieldValue(e,"top")),_=parseFloat(t396_elem__getFieldValue(e,"left")),e.style.top=o*a+"px",e.style.left=_*a+"px",e.style.height=l*a+"px",e.style.width=t*a+"px",e.setAttribute("data-scale-off","yes"))}function t396_scale__getElementType(e){var t=e.getAttribute("data-elem-type");return t=!t&&e.classList.contains("tn-group")?"group":t}window.t396_initialScale||(window.t396_initialScale=function(){});