$$WPUtil.guaranteeExistence($$WP,"Containers"),$$WPContain.Positions={None:function WPContain$Positions$None(){},InsideCentered:function WPContain$Positions$InsideCentered(t,e){var i,o,s,l,n,a,r,$,f,h,c,d,p=t.data;isNaN(p)||(p=$$WPComp.getInstance(p)),s=p.$container,i=$afe.jq(window),o=$$WPContain.Positions.getOffset.apply(p,[e]),l=i.height()-s.outerHeight(),r=$$WPUtil.getScrollTop(),$=$$WPUtil.getScrollLeft(),window.visualViewport&&Math.round(window.visualViewport.width)!==i.innerWidth()&&($=0),this._IsWindowScrollDisabled?(h=$$WPUtil.cssValueToPixels($afe.select("body").css("margin-top")),l>0?a=(i.height()-s.outerHeight())/2-h:(this._IsWindowScrollDisabled=!1,$afe.select("body").removeClass("scrollDisabled"))):(o.y<0&&(o.y=0),a=r+(i.height()-s.outerHeight())/2-o.y),null==a&&(a=0),c=Math.max(r+35,a),n=window.frameElement,isDataTile()&&null!=n&&(s.hasClass("small")?(d=(c=$$WPUtil.getDataTileScrollTop(n)+35)+s.outerHeight()-n.scrollHeight)>0&&(c-=d):c=0),(f=$+(i.width()-s.outerWidth())/2-o.x)<0&&(f=0),$afe.select("html").hasClass("mobile")&&i.scrollTop(0),s.css({top:c+"px",left:f+"px",right:f+"px"})},InsideNearTop:function WPContain$Positions$InsideNearTop(t,e){var i,o,s,l,n,a,r=t.data;"number"==typeof r&&(r=$$WPComp.Instances[r]),s=r.$container,i=$afe.jq(window),o=$$WPContain.Positions.getOffset.apply(r,[e]),l=$afe.select("#header").outerHeight()||null,n=$afe.select("body").hasClass("scrollDisabled")?l-$$WPUtil.cssValueToPixels($afe.select("body").css("margin-top"))+10+"px":$afe.select("html").hasClass("mobile")?l+10+"px":l+$$WPUtil.getScrollTop()+10+"px",scrollLeft=$$WPUtil.getScrollLeft(),window.visualViewport&&Math.round(window.visualViewport.width)!==i.innerWidth()&&(scrollLeft=0),(a=scrollLeft+(i.width()-s.outerWidth())/2-o.x)<0&&(a=0),$afe.select("html").hasClass("mobile")&&i.scrollTop(0),s.css({left:a,top:n,right:a})},getOffset:function WPContain$Positions$getOffset(t){var e,i,o;return this.origOffset&&!t||(this.$container.css({position:"absolute",top:0,left:0,right:0}),e=this.$container.offset(),"rtl"===$afe.select("html").safeAttr("dir")?(i=$afe.jq(window).width(),o=this.$container.outerWidth(),this.origOffset={x:i-(e.left+o),y:e.top}):this.origOffset={x:e.left,y:e.top}),this.origOffset}};