!function(){if(void 0!==window.vceResetFullWidthElements)return;let t,e=!1,n=1;function o(){const e=[],n=[];if(t=Array.prototype.slice.call(document.querySelectorAll('[data-vce-full-width="true"]:not([data-vcv-do-helper-clone]),[data-vce-full-width-section="true"]:not([data-vcv-do-helper-clone])')),t.forEach((function(t){t.offsetHeight&&t.offsetWidth?e.push(t):n.push(t)})),e.length&&c(),n.length){const t={root:document.documentElement},e=(t,e)=>{t.forEach((function(t){t.intersectionRatio>0&&c()}))};n.forEach((function(n){new window.IntersectionObserver(e,t).observe(n)}))}}function c(){t.length&&(e||"number"==typeof n&&1!==n||t.forEach((function(t){const e=document.body,n=document.querySelector(".vce-layouts-wp-content-area-container"),o=t.parentElement,c=t.querySelector('[data-vce-element-content="true"]'),i=parseInt(window.getComputedStyle(t,null)["margin-left"],10),l=parseInt(window.getComputedStyle(t,null)["margin-right"],10);let d,s;if(!t.closest("[data-vce-element-content]")&&(t.closest(".vcv-content--header-footer")||t.closest(".vcv-content--blank")))return void(t.getAttribute("data-vce-stretch-content")||t.getAttribute("data-vce-section-stretch-content")||(c.style["padding-left"]="",c.style["padding-right"]=""));if(!t.closest("[data-vce-element-content]")&&(t.closest('[data-vcv-layout-zone="header"]')||t.closest('[data-vcv-layout-zone="footer"]')||t.closest(".vcv-editor-theme-hf")))return;let a=t.closest(".vce-full-width-custom-container");if(a?(d=0-o.getBoundingClientRect().left-i+a.getBoundingClientRect().left,s=a.getBoundingClientRect().width):(d=0-o.getBoundingClientRect().left-i,s=document.documentElement.getBoundingClientRect().width),t.style.width=s+"px",e.classList.contains("rtl")?t.style.right=d+"px":t.style.left=d+"px",n?.closest("[data-vce-element-content]")||t.getAttribute("data-vce-stretch-content")||t.getAttribute("data-vce-section-stretch-content"))c.style["padding-left"]="",c.style["padding-right"]="";else{let t=-1*d;t<0&&(t=0);let e=s-t-o.getBoundingClientRect().width+i+l;e<0&&(e=0),c.style["padding-left"]=t+"px",c.style["padding-right"]=e+"px"}})))}o(),window.addEventListener("touchstart",(function(t){2===t.touches.length&&(e=!0)}),!1),window.addEventListener("touchend",(function(t){e&&(e=!1,n=window.visualViewport&&window.visualViewport.scale)}),!1),window.addEventListener("resize",((t,e)=>{let n,o;return function(){const c=this,i=arguments;o?(clearTimeout(n),n=setTimeout((function(){Date.now()-o>=e&&(t.apply(c,i),o=Date.now())}),e-(Date.now()-o))):(t.apply(c,i),o=Date.now())}})(c,50)),window.vceResetFullWidthElements=o,window.vcv.on("ready",(function(){window.vceResetFullWidthElements&&window.vceResetFullWidthElements()}))}();