function t396_init(t){var e=t396_detectResolution(),i=document.getElementById("allrecords"),o=document.getElementById("rec"+t),n=o?o.querySelector(".t396"):null,a=o?o.querySelector(".t396__artboard"):null;window.tn_window_width=document.documentElement.clientWidth,window.tn_scale_factor=parseFloat((window.tn_window_width/e).toFixed(3)),t396_initTNobj(),t396_switchResolution(e),t396_updateTNobj(),t396_artboard_build("",t);var l="ontouchend"in document;window.addEventListener("resize",function(){tn_console(">>>> t396: Window on Resize event >>>>"),t396_waitForFinalEvent(function(){(!window.t396__isMobile&&!l||document.documentElement.clientWidth!==window.tn_window_width)&&t396_doResize(t)},500,"resizeruniqueid"+t)}),window.addEventListener("orientationchange",function(){tn_console(">>>> t396: Orient change event >>>>"),t396_waitForFinalEvent(function(){t396_doResize(t)},600,"orientationuniqueid"+t)}),window.addEventListener("load",function(){t396_allelems__renderView(a);var t=a?window.getComputedStyle(a).getPropertyValue("overflow"):"";"function"==typeof t_lazyload_update&&"auto"===t&&a&&a.addEventListener("scroll",t_throttle(function(){var t=i?i.getAttribute("data-tilda-lazy"):null;"y"!==window.lazy&&"yes"!==t||t_onFuncLoad("t_lazyload_update",function(){t_lazyload_update()})},500)),""!==window.location.hash&&"visible"===t&&(a&&(a.style.overflow="hidden"),setTimeout(function(){a&&(a.style.overflow="visible")},1))}),document.querySelector(".t830")&&window.addEventListener("load",function(){["t830__allrecords_padd","t830__allrecords_padd-small"].some(function(t){return i.classList.contains(t)})?t396_doResize(t):i.addEventListener("allRecPaddingInit",function(){t396_doResize(t)})}),o&&n&&a&&"yes"===o.getAttribute("data-connect-with-tab")&&n.addEventListener("displayChanged",function(){t396_allelems__renderView(a),t396_doResize(t)}),setTimeout(function(){o&&o.closest("#allrecordstable")&&n&&a&&n.addEventListener("displayChanged",function(){t396_allelems__renderView(a),t396_doResize(t)})},1e3);var r=!!document.querySelector(".t635__textholder");o&&r&&n&&a&&n.addEventListener("animationInited",function(){t396_allelems__renderView(a),t396_doResize(t)}),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&n&&n.classList.add("t396_safari");e="window"===t396_ab__getFieldValue(a,"upscale"),r=i?"edit"===i.getAttribute("data-tilda-mode"):null;e&&!r&&t396_scaleBlock(t)}function t396_isOnlyScalableBrowser(){var t=-1!==navigator.userAgent.search("Firefox"),e=!!window.opr&&!!window.opr.addons||!!window.opera||-1!==navigator.userAgent.indexOf(" OPR/");return t||e}function t396_scaleBlock(t){var e,i,w=t396_isOnlyScalableBrowser(),m=t396_detectResolution(),o=document.getElementById("rec"+t),n=o?o.querySelectorAll(".t396__elem"):[],a=o?o.querySelector(".t396__artboard"):null;a&&(e=a.clientWidth,i=Math.floor(a.clientHeight*window.tn_scale_factor),o=t396_ab__getFieldValue(a,"height_vh"),window.tn_scale_offset=(e*window.tn_scale_factor-e)/2,o&&(e=t396_ab__getFieldValue(a,"height"),i=(o=t396_ab__getHeight(a))<=(e=e*window.tn_scale_factor)?e:o),a.classList.add("t396__artboard_scale"),i='",a.insertAdjacentHTML("beforeend",i)),Array.prototype.forEach.call(n,function(t){var e=t.querySelector(".tn-atom"),i=t396_elem__getFieldValue(t,"container"),o=t.getAttribute("data-elem-type");if("yes"===t.getAttribute("data-video-full-screen"))return t.removeAttribute("data-video-full-screen"),void(t.style.zoom=window.tn_scale_factor);if("grid"===i)if(w){e&&(a=e.parentNode,(l=document.createElement("div")).classList.add("tn-atom__scale-wrapper"),l.style.transform="scale("+window.tn_scale_factor+")",a&&a.removeChild(e),l.appendChild(e),a&&a.appendChild(l));var n=t.querySelector(".t-bgimg");n&&"fixed"===window.getComputedStyle(n).backgroundAttachment&&(t.removeChild(n.parentNode),t.appendChild(n),d=t396_elem__convertPosition__Local__toAbsolute(t,"height",d=t396_elem__getHeight(t,d=t396_elem__getFieldValue(t,"height"))),r=t396_elem__convertPosition__Local__toAbsolute(t,"width",r=t396_elem__getWidth(t,r=t396_elem__getFieldValue(t,"width"))),_=parseFloat(t396_elem__getFieldValue(t,"top")),s=parseFloat(t396_elem__getFieldValue(t,"left")),t.style.top=_*window.tn_scale_factor+"px",t.style.left=s*window.tn_scale_factor+"px",t.style.height=d*window.tn_scale_factor+"px",t.style.width=r*window.tn_scale_factor+"px",t.setAttribute("data-scale-off","yes"))}else{t.style.zoom=window.tn_scale_factor;n=/Macintosh/.test(navigator.userAgent)&&"ontouchend"in document&&744<=screen.width;"text"===o&&n&&(e.style.removeProperty("font-size"),t.style.removeProperty("zoom"),t.style.removeProperty("top"),t.style.removeProperty("left"),t.style.removeProperty("width"),u=parseInt(window.getComputedStyle(e).fontSize,10),r=t396_elem__convertPosition__Local__toAbsolute(t,"width",r=t396_elem__getWidth(t,r=t396_elem__getFieldValue(t,"width"))),_=t396_elem__convertPosition__Local__toAbsolute(t,"top",_=parseFloat(t396_elem__getFieldValue(t,"top"))),s=t396_elem__convertPosition__Local__toAbsolute(t,"left",s=parseFloat(t396_elem__getFieldValue(t,"left"))),e.style.fontSize=u*window.tn_scale_factor+"px",t.style.top=_*window.tn_scale_factor+"px",t.style.left=s*window.tn_scale_factor+"px",t.style.width=r*window.tn_scale_factor+"px",t.setAttribute("data-scale-off","yes")),"button"===o&&n&&!e.classList.contains("t396_manual-scaled-text")&&(t.style.removeProperty("zoom"),c=window.getComputedStyle(e),u=parseInt(c.fontSize,10),e.classList.add("t396_manual-scaled-text"),e.style.fontSize=u*window.tn_scale_factor+"px",t.style.zoom=window.tn_scale_factor);var a,l,r,d,_,s,n=t.querySelector("iframe"),c=t.getAttribute("data-animate-style"),u=t.getAttribute("data-animate-sbs-event");if(n&&!c&&!u){for(t.style.removeProperty("zoom"),d=t396_elem__convertPosition__Local__toAbsolute(t,"height",d=t396_elem__getHeight(t,d=t396_elem__getFieldValue(t,"height"))),r=t396_elem__convertPosition__Local__toAbsolute(t,"width",r=t396_elem__getWidth(t,r=t396_elem__getFieldValue(t,"width"))),_=t396_elem__convertPosition__Local__toAbsolute(t,"top",_=parseFloat(t396_elem__getFieldValue(t,"top"))),_*=window.tn_scale_factor,_+=(d*window.tn_scale_factor-d)/2,s=t396_elem__convertPosition__Local__toAbsolute(t,"left",s=parseFloat(t396_elem__getFieldValue(t,"left"))),s*=window.tn_scale_factor,s+=(r*window.tn_scale_factor-r)/2,t.style.top=_+"px",t.style.left=s+"px",(a=e.parentNode)&&a.classList.contains("tn-atom__scale-wrapper")&&(a=a.parentNode),(l=document.createElement("div")).classList.add("tn-atom__scale-wrapper"),l.style.transform="scale("+window.tn_scale_factor+")";a.firstChild;)a.removeChild(a.firstChild);l.appendChild(e),a&&a.appendChild(l),t.setAttribute("data-scale-off","yes")}"shape"===o&&(d=t396_elem__convertPosition__Local__toAbsolute(t,"height",d=t396_elem__getHeight(t,d=t396_elem__getFieldValue(t,"height"))),r=t396_elem__convertPosition__Local__toAbsolute(t,"width",r=t396_elem__getWidth(t,r=t396_elem__getFieldValue(t,"width"))),_=t396_elem__convertPosition__Local__toAbsolute(t,"top",_=parseFloat(t396_elem__getFieldValue(t,"top"))),s=t396_elem__convertPosition__Local__toAbsolute(t,"left",s=parseFloat(t396_elem__getFieldValue(t,"left"))),o=(l=window.getComputedStyle(e)).borderWidth,l="none"!==l.backgroundImage,c=t.getAttribute("data-animate-sbs-event"),!(d<=2||r<=2)||"0px"!==o||l||c||(t.style.removeProperty("zoom"),r=r*window.tn_scale_factor,d=d*window.tn_scale_factor,_=_*window.tn_scale_factor,s=s*window.tn_scale_factor,t.style.width=parseFloat(r)+"px",t.style.height=parseFloat(d)+"px",t.style.top=Math.round(_)+"px",t.style.left=Math.round(s)+"px",t.setAttribute("data-scale-off","yes"))),"text"===t.getAttribute("data-elem-type")&&m<1200&&e&&(e.style.webkitTextSizeAdjust="auto"),e&&(e.style.transformOrigin="center")}})}function t396_doResize(t){var e=t396_isOnlyScalableBrowser(),i=document.getElementById("rec"+t),o=document.getElementById("allrecords"),n=t396_detectResolution();t396_removeElementFromDOM(i?i.querySelector(".t396__scale-style"):null),e?(e=i?i.querySelectorAll(".tn-atom"):[],Array.prototype.forEach.call(e,function(t){var e=t.closest(".tn-atom__scale-wrapper"),i=e?e.parentNode:null;i&&i.removeChild(e),i&&i.appendChild(t)})):(a=i?i.querySelectorAll(".t396__elem"):[],Array.prototype.forEach.call(a,function(t){t.style.zoom="";t=t.querySelector(".tn-atom");t&&(t.style.transformOrigin="")}));var a=i?i.querySelector(".t396__artboard"):null,i=a?a.clientWidth:0;window.tn_window_width=window.t396__isMobile?document.documentElement.clientWidth:window.innerWidth,window.tn_scale_factor=Math.round(window.tn_window_width/n*100)/100,window.tn_scale_offset=(i*window.tn_scale_factor-i)/2,t396_switchResolution(n),t396_updateTNobj(),t396_ab__renderView(a);o=o?o.getAttribute("data-tilda-mode"):"";"window"===t396_ab__getFieldValue(a,"upscale")&&"edit"!==o&&t396_scaleBlock(t),t396_allelems__renderView(a)}function t396_detectResolution(){for(var t=window.t396__isMobile?document.documentElement.clientWidth:window.innerWidth,e=1200,i=[1200,960,640,480,320],o=0;o',"y"===a&&"y"===d&&"y"===window.lazy&&e.insertAdjacentElement("beforeend",s),"y"===a&&"y"===d&&o.click()):("edit"!==_&&"y"===a&&(g+="&autoplay=1"),"y"===window.lazy?(i.innerHTML='',e.insertAdjacentElement("beforeend",s)):i.innerHTML='')),(h=i?i.getAttribute("data-vimeoid"):"")&&(g="//player.vimeo.com/video/",g+=h+"?color=ffffff&badge=0",g+="y"===l?"&title=1&byline=1&portrait=1":"&title=0&byline=0&portrait=0","y"===r&&(g+="&loop=1"),"y"===d&&(g+="&muted=1"),"y"===n?w='':("edit"!==_&&"y"===a&&(g+="&autoplay=1"),"y"===window.lazy?(i.innerHTML='',e.insertAdjacentElement("beforeend",s)):i.innerHTML='')),"y"===n&&o&&o.addEventListener("click",function(){i.innerHTML=w,o.style.backgroundImage="none";var t=o.querySelector(".tn-atom__video-play-link");t&&(t.style.display="none")}),o.addEventListener("fullscreenchange",function(){e.setAttribute("data-video-full-screen","yes")}))}function t396_addHtml(t,e){(e=t396_getEl(e))&&(tn_console("func: addHtml"),e.setAttribute("data-fields","width,height,top,left,container,axisx,axisy,widthunits,heightunits,leftunits,topunits"),t396_elem__renderView(e))}function t396_addTooltip(t,e){var i,o,n;(e=t396_getEl(e))&&(tn_console("func: addTooltip"),n="width,height,top,left,",n+="container,axisx,axisy,widthunits,heightunits,leftunits,topunits,tipposition",e.setAttribute("data-fields","width,height,top,left,container,axisx,axisy,widthunits,heightunits,leftunits,topunits,tipposition"),t396_elem__renderView(e),i=e.querySelector(".tn-atom__pin"),o=e.querySelector(".tn-atom__tip"),n=e.getAttribute("data-field-tipopen-value"),(window.t396__isMobile||"click"===n?t396_setUpTooltip_mobile:t396_setUpTooltip_desktop)(e,i,o),setTimeout(function(){var t=document.querySelectorAll(".tn-atom__tip-img");Array.prototype.forEach.call(t,function(t){var e=t.getAttribute("data-tipimg-original");e&&(t.src=e)})},3e3))}function t396_addForm(t,e){(e=t396_getEl(e))&&(tn_console("func: addForm"),e.setAttribute("data-fields","width,top,left,inputs,container,axisx,axisy,widthunits,leftunits,topunits"),t396_elem__renderView(e))}function t396_addGallery(t,e){(e=t396_getEl(e))&&(tn_console("func: addForm"),e.setAttribute("data-fields","width,height,top,left,imgs,container,axisx,axisy,widthunits,heightunits,leftunits,topunits"),t396_elem__renderView(e))}function t396_elem__setFieldValue(t,e,i,o,n,a){(t=t396_getEl(t))&&(+(a=a||window.tn.curResolution)<1200&&"zindex"!==e?t.setAttribute("data-field-"+e+"-res-"+a+"-value",i):t.setAttribute("data-field-"+e+"-value",i),"render"===o&&elem__renderViewOneField(t,e),"updateui"===n&&panelSettings__updateUi(t,e,i))}function t396_elem__getFieldValue(n,a){if(n=t396_getEl(n)){window.tn||(window.tn={},t396_switchResolution(r=t396_detectResolution()));var l,r=window.tn.curResolution,d=[1200,960,640,480,320];return d.forEach(function(t,e){if(0===e&&t<=+r&&(l=n.getAttribute("data-field-"+a+"-value")),0>16,(65280&t)>>8,255&t]}function t396_elem__getWidth(t,e){return t=t396_getEl(t),e=e||t396_elem__getFieldValue(t,"width"),e=parseFloat(e),"%"===t396_elem__getFieldValue(t,"widthunits")&&(e="window"===t396_elem__getFieldValue(t,"container")?window.tn.window_width*e/100:window.tn.grid_width*e/100),e}function t396_elem__getHeight(t,e){t=t396_getEl(t),e=e||t396_elem__getFieldValue(t,"height"),e=parseFloat(e);var i,o,n=t.getAttribute("data-elem-type");return"shape"===n||"video"===n||"html"===n||"gallery"===n?"%"===t396_elem__getFieldValue(t,"heightunits")&&(i=(o=t.parentNode)?o.getAttribute("data-artboard-proxy-min-height"):"0",o=o?o.getAttribute("data-artboard-proxy-max-height"):"0",i=parseFloat(i),o=parseFloat(o),e="window"===t396_elem__getFieldValue(t,"container")?o*(e/100):i*(e/100)):"button"!==n&&(e=t.clientHeight),e}function t396_roundFloat(t){return t=Math.round(100*t)/100}function tn_console(t){1==+window.tn_comments&&console.log(t)}function t396_setUpTooltip_desktop(i,t,e){var o;i=t396_getEl(i),t&&(t.addEventListener("mouseover",function(){var t=document.querySelectorAll(".tn-atom__tip_visible");Array.prototype.forEach.call(t,function(t){var e=t.closest(".t396__elem");(e?e.getAttribute("data-elem-id"):"")!==i.getAttribute("data-elem-id")&&t396_hideTooltip(e,t)}),clearTimeout(o),e&&"block"===e.style.display||t396_showTooltip(i,e)}),t.addEventListener("mouseout",function(){o=setTimeout(function(){t396_hideTooltip(i,e)},300)}))}function t396_setUpTooltip_mobile(e,t,i){e=t396_getEl(e),t&&t.addEventListener("click",function(){(i&&"block"===i.style.display&&t.classList.contains("tn-atom__pin")?t396_hideTooltip:t396_showTooltip)(e,i)});var o=e.getAttribute("data-elem-id");document.addEventListener("click",function(t){if(t.target.closest(".tn-atom__pin")){t=t.target.closest(".t396__elem");if((t?t.getAttribute("data-elem-id"):"")===o)return}t396_hideTooltip(e,i)})}function t396_hideTooltip(t,e){e&&(e.style.display=""),e&&(e.style.left=""),e&&(e.style.transform=""),e&&(e.style.right=""),e&&e.classList.remove("tn-atom__tip_visible"),t&&(t.style.zIndex="")}function t396_showTooltip(t,e){var i=(t=t396_getEl(t)).closest(".t396__artboard_scale")&&!t396_isOnlyScalableBrowser(),o=(o=t.getAttribute("data-field-tipposition-value"))||"top",n=t.clientHeight;i&&(n*=window.tn_scale_factor);var a=t.getBoundingClientRect().top+window.pageYOffset,l=a+n,r=t.getBoundingClientRect().left+window.pageXOffset;i&&(r*=window.tn_scale_factor);var d=t.getBoundingClientRect().right+window.pageXOffset;i&&(d*=window.tn_scale_factor);var _=window.pageYOffset,s=document.documentElement.clientWidth,c=_+document.documentElement.clientHeight;e&&(e.style.display="block"),e&&(e.style.zIndex="-9999"),e&&(e.style.transform="translateX(-10000px)");var u=e?e.offsetHeight:0,w=e?e.offsetWidth:0;i&&(w*=window.tn_scale_factor),e&&(e.style.display=""),e&&(e.style.zIndex=""),e&&(e.style.transform="");var m,f=15;i&&(f*=window.tn_scale_factor);var g,h,p,y=t.querySelector(".tn-atom__sbs-anim-wrapper");y&&-1!==y.style.transform.indexOf("translateX")&&(g=parseInt(t.style.left),y=parseInt(t.style.left),i&&(g*=window.tn_scale_factor),i&&(y*=window.tn_scale_factor),r+=g,d-=g,a+=y,l-=y),"right"!==o&&"left"!==o||(h=d+f+w,p=r-f-w,("right"===o&&s>16,(65280&t)>>8,255&t,parseFloat(e)]}function t396_removeElementFromDOM(t){(t=t396_getEl(t))&&t.parentNode&&t.parentNode.removeChild(t)}function t396_getEl(t){return window.jQuery&&t instanceof jQuery?t.length?t.get(0):null:t}Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(Element.prototype.matches.call(e,t))return e;e=e.parentElement||e.parentNode}return null});