-1}function showPosterImage(e){return isVimeo(e)?!(STATE.overrides.videoAutoPlay||STATE.overrides.vimeoDefault):!STATE.overrides.videoAutoPlay}function getCursorAxis(e){switch(e){case"fade":case"hSlide":case"mSlide":case"hScroll":case"hScrollNC":case"grid":return"x";case"vSlide":case"vScroll":case"vScrollNC":return"y"}}function inBounds(e,t){return e.xn.perpLength?u:n.perpLength:n.perpLength=h>n.perpLength?h:n.perpLength,n.addItem(h,u)}n.layoutItems();var T="x"===o.axis?o.gap+d:0,E="x"===o.axis?0:o.gap+d,g=n.getBounds(),m="x"===o.axis?g.width-o.gap:n.perpLength,p=g.height+("x"===o.axis?0:o.gap+d);for(r=0;rlayoutCalcs.menuView.width()&&(m=f)}}o.width=m,o.height=p,o.dispatchEvent(ACCORDION_SIZE_CHANGE,{width:m,height:p})},o}function Align(e,t,i){var n=new AlignEngine({hRange:i.hRange,vRange:i.vRange,hAlign:i.hAlign,vAlign:i.vAlign,width:i.width||e.width,height:i.height||e.height,hOffset:i.hOffset,vOffset:i.vOffset}),o=i.hOrigin||0,a=i.vOrigin||0,r={x:Math.round(n.x+o),y:Math.round(n.y+a),onComplete:i.onComplete,onCompleteParams:i.onCompleteParams,onCompleteScope:i.onCompleteScope,onUpdate:i.onUpdate,onUpdateParams:i.onUpdateParams,onUpdateScope:i.onUpdateScope,onInit:i.onInit,onInitScope:i.onInitScope,onInitParams:i.onInitParams};return Tween(e,t,r),r}function AlignEngine(e){e=e||{};var t=e.hRange||0,i=e.vRange||0,n=e.width||0,o=e.height||0,a=e.hAlign||"left",r=e.vAlign||"top",l=e.hOffset||0,s=e.vOffset||0;return{set hRange(e){t=e},set vRange(e){i=e},set width(e){n=e},set height(e){o=e},set hAlign(e){a=e},set vAlign(e){r=e},set hOffset(e){l=e},set vOffset(e){s=e},get x(){return"center"===a?.5*(t-n)+l:"right"===a?t-n-l:l},get y(){return"center"===r||"middle"===r?.5*(i-o)+s:"bottom"===r?i-o-s:s}}}function Cursor(e){function t(){return{left:{arrow1:{fill:LAYOUT_MODEL.cursorColor,d:svgPaths.arrow1Left,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:0},arrow2:{fill:LAYOUT_MODEL.cursorColor,d:svgPaths.arrow2Left,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:0},arrow3:{fill:"none",d:svgPaths.arrow3Left,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:1.5},plus1:{fill:LAYOUT_MODEL.cursorColor,d:svgPaths.plus1Left,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:0},plus2:{fill:LAYOUT_MODEL.cursorColor,d:svgPaths.plus2Left,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:0},none:{fill:"none",d:"",stroke:"none",strokeWidth:0},disabled:{fill:"none",d:"",stroke:"none",strokeWidth:0}},right:{arrow1:{fill:LAYOUT_MODEL.cursorColor,d:svgPaths.arrow1Right,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:0},arrow2:{fill:LAYOUT_MODEL.cursorColor,d:svgPaths.arrow2Right,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:0},arrow3:{fill:"none",d:svgPaths.arrow3Right,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:1.5},plus1:{fill:LAYOUT_MODEL.cursorColor,d:svgPaths.plus1Right,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:0},plus2:{fill:LAYOUT_MODEL.cursorColor,d:svgPaths.plus2Right,stroke:LAYOUT_MODEL.cursorColor,strokeWidth:0},none:{fill:"none",d:"",stroke:"none",strokeWidth:0},disabled:{fill:"none",d:"",stroke:"none",strokeWidth:0}}}}function i(){var e=USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&LAYOUT_MODEL.cursorIconBlendMode?LAYOUT_MODEL.cursorIconBlendMode:"normal";g.element.style["mix-blend-mode"]=e}function n(e){C=e||"x"}function o(e){A=!/none|disabled/.test(LAYOUT_MODEL.navCursorType)&&e}function a(e){return TOUCH_DEVICE&&e.touches?e.touches[0].pageX:e.clientX}function r(e){return TOUCH_DEVICE&&e.touches?e.touches[0].pageY:e.clientY}function l(){m=new Svg,m.left=-20,m.top=-20,m.width=40,m.height=40,g.addChild(m),m.element.style["pointer-events"]="none",g.svg=m,p=new Path,p.id="icon",m.addChild(p),p.element.style["pointer-events"]="none",g.iconLeft=p,L=new Path,L.id="icon",m.addChild(L),L.element.style["pointer-events"]="none",g.iconCenter=L,g.iconCenter.d=svgPaths.cursorThumbs,f=new Path,f.id="icon",m.addChild(f),f.element.style["pointer-events"]="none",g.iconRight=f,s(),stage.addEventListener(MOUSE_MOVE,d),g.listenerAdded=!0}function s(){var e=USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&LAYOUT_MODEL.cursorIconBlendMode?LAYOUT_MODEL.cursorIconBlendMode:"normal";g.cursorIconStyle=LAYOUT_MODEL.cursorIconStyle||"arrow2";var t=O.left[g.cursorIconStyle],i=O.right[g.cursorIconStyle];g.element.style["mix-blend-mode"]=e,g.navCursorType=LAYOUT_MODEL.navCursorType,g.iconLeft.d=t.d,g.iconLeft.fill=t.fill,g.iconLeft.stroke=t.stroke,g.iconLeft.strokeWidth=t.strokeWidth,g.iconCenter.fill=LAYOUT_MODEL.cursorColor,g.iconRight.d=i.d,g.iconRight.fill=i.fill,g.iconRight.stroke=i.stroke,g.iconRight.strokeWidth=i.strokeWidth}function d(e){if(g.enabled){if(e.target!==m.element&&e.target!==p.element&&e.target!==L.element&&e.target!==f.element){var i=a(e),n=r(e),o=STATE.mediaView.x(),l=STATE.mediaView.y(),d=STATE.mediaView.width(),c=STATE.mediaView.height();g.transition=0,g.translateX=i-2,g.translateY=n-2,e.target.navigationCursor&&g.enabled?v||h(e):v&&u(e);var E=A?.333*d:.5*d,b=A?.333*c:.5*c,y="x"===C?E:b,M="x"===C?i-o:n-l,w=y,_=2*y;(LAYOUT_MODEL.cursorColor!==O.left.arrow1.fill||LAYOUT_MODEL.cursorIconStyle!==g.cursorIconStyle&&LAYOUT_MODEL.navCursorType!==g.navCursorType)&&(O=t(),s()),M
Please try again later.
If problem persists, contact support."):isSupportedBrowserForAdmin(BROWSER_NAME,BROWSER_VERSION)?me.login=new Login(e):alert("Admin not supported for this browser ["+BROWSER_NAME+" "+BROWSER_VERSION+"]. Please use latest version of Chrome, Firefox, Safari or MS Edge.")),me.events.dispatchEvent(LAYOUT_MODEL_CHANGE,{id:"layoutModelInit"}),me.events.addEventListener(NAVBAR_OVERLAY_BTN_CLICK,h),me.events.addEventListener(NAVBAR_NAV_CLICK,u),me.events.addEventListener(NAVBAR_FULLSCREEN,T),me.events.addEventListener(MENU_CLICK,g),me.events.addEventListener(FOOTER_CLICK,E),me.events.addEventListener(LOGO_CLICK,p),me.events.addEventListener(THUMB_CLICK,m),me.events.addEventListener(ADDRESS_URI_CHANGE,v),me.events.addEventListener("ADDRESS_URI_CHANGE_PASSIVE",A),me.events.addEventListener(ADMIN_LOADED,i),me.events.addEventListener(CONTACT_FORM_SUBMIT,ie),me.events.addEventListener(SHARE_FORM_SUBMIT,ne),me.events.addEventListener(INQUIRY_FORM_SUBMIT,oe),me.events.addEventListener(POP_UP,c),me.events.addEventListener("OVER_LOGO",ae),me.events.addEventListener("privateGalleryAuthCheck",F),me.events.addEventListener("passwordViewUpdate",G),me.events.addEventListener("updateAssetId",b),me.events.addEventListener("UPDATE_CONTENT_HEIGHT",function(){clearTimeout(ge),ge=setTimeout(function(){me.siteView.updatePosition()},50)}),me.events.addEventListener(PAGE_LOADED,n),me.events.addEventListener("siteAnchorCaptionUpdate",y),me.events.addEventListener("SEARCH_SUBMIT",D),me.events.addEventListener("lightboxDownloadOverlayOpen",U),me.events.addEventListener("lightboxUpdateItem",I),me.events.addEventListener("lightboxDownloadPdf",z),me.events.addEventListener("lightboxDownloadZip",k),me.events.addEventListener("attachmentDownload",H),me.events.addEventListener("MENU_DOCK_TOGGLE",S),stage.addEventListener(RESIZE_END,s),stage.addEventListener(GESTURE_END,r),stage.addEventListener(ORIENTATION_CHANGE,d),stage.addEventListener(KEY_DOWN,L),(isPod()||isPad())&&window.addEventListener("scroll",function(){clearTimeout(Ee),Le=!0,Ee=setTimeout(function(){Ee=null,Le=!1,l()&&(me.events.dispatchEvent(RESIZE_END),ve=!1)},200)}),stage.zoom>1?me.events.dispatchEvent(RESIZE_END):s(),me.events.addEventListener("cursorAxisUpdate",le),ORIENTATION=90===Math.abs(window.orientation)?"horizontal":"vertical",window.isStaging){var t=de();me.siteView.addChild(t)}STATE.cacheLightboxSection()}function i(){dx.admin.events.addEventListener(ACCOUNT_MODEL_CHANGE,W),dx.admin.events.addEventListener(FONTS_MODEL_CHANGE,Z),dx.admin.events.addEventListener(FILES_MODEL_CHANGE,X),dx.admin.events.addEventListener(LAYOUT_MODEL_CHANGE,K),dx.admin.events.addEventListener(MEDIA_MODEL_CHANGE,J),dx.admin.events.addEventListener(NAVBAR_MODEL_CHANGE,Q),dx.admin.events.addEventListener(PDF_MODEL_CHANGE,$),dx.admin.events.addEventListener(SETTINGS_MODEL_CHANGE,ee),dx.admin.events.addEventListener(SECTIONS_MODEL_CHANGE,te),dx.admin.events.addEventListener(ADMIN_MOUSE_DOWN,o),dx.admin.events.addEventListener(ADMIN_MOUSE_UP,a),me.events.addEventListener("adminPageviewImageSizes",function(e){dx.admin.events.dispatchEvent("adminPageviewImageSizes",e)})}function n(){me.events.dispatchEvent(SITE_SERVICE_GET_FILE,{name:"js"})}function o(){me.events.dispatchEvent(ADMIN_MOUSE_DOWN)}function a(){me.events.dispatchEvent(ADMIN_MOUSE_UP)}function r(){stage.zoom<=1}function l(){return(isPod()||isPad())&&ve&&window.innerHeight===document.documentElement.clientHeight}function s(e){if(/responsive/.test(LAYOUT_MODEL.menuAlignHorizontal)){var t=1;isPod()&&(t=window.devicePixelRatio||1);var i=(LAYOUT_MODEL.screenWidthBreakpoint||800)*t,n=layoutCalcs.isMenuResponsiveOverlay;layoutCalcs.isMenuResponsiveOverlay=USER_AGENT!==MOBILE&&stage.width-1)&&n&&"site"===o?(me.caption.text=plainTextToHtml(n),me.caption.show(M)):(me.caption.text="",me.caption.hide(),me.caption.scroll&&me.caption.scroll.destroy())}}function y(e){if(ce&&ce.asset&&me.caption){var e=e||ce.asset;e.overrides||(e.overrides={}),fe=e.overrides||{},me.caption.text=plainTextToHtml(getCaptionText(e));var t=isSlideshowGallery(ce.section)&&LAYOUT_MODEL.slideshowCaptions,i=firstValid(USER_AGENT!==MOBILE||LAYOUT_MODEL.captionMobileOverrides||t?void 0:"site",e.overrides.captionAnchorTo,STATE.overrides.captionAnchorTo);"site"===i&&(t||ce.mode.indexOf("caption")>-1)?me.caption.show(M):(me.caption.text="",me.caption.hide(),me.caption.scroll&&me.caption.scroll.destroy())}else me.caption&&(me.caption.text="",me.caption.hide(),me.caption.scroll&&me.caption.scroll.destroy())}function M(){USER_AGENT!==MOBILE&&(me.caption.container.position="fixed"),me.caption.container.transition=0,me.caption.container.zIndex=STATE.captionView.zIndex(),firstValid(fe.captionCloseButton,STATE.overrides.captionCloseButton)?me.caption.showCloseButton():me.caption.hideCloseButton();var e={onInit:function(){me.caption.scroll&&me.caption.scroll.hide();
},onComplete:function(){me.caption.scroll&&(me.caption.scroll.show(),me.caption.scroll.resize())}},t=USER_AGENT===MOBILE&&!LAYOUT_MODEL.captionMobileOverrides,i=firstValid(fe.captionBackgroundRectColor,STATE.overrides.captionBackgroundRectColor),n=firstValid(t?LAYOUT_MODEL.overlayAlpha:void 0,fe.captionBackgroundAlpha,STATE.overrides.captionBackgroundAlpha);me.caption.backgroundColor=toRgba(i,n),me.caption.fontFamily=fe.captionFont||STATE.overrides.captionFont,me.caption.fontSize=stage.widthi.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var n=Tile,o=e.mediaViewContainer,a=e.localEvents,r=e.mediaView;return t}function SlideTransitionHorizontal(e){function t(e,t){var t=void 0!==t?t:a;n.dispatchEvent(TRANSITION_START);var r=i.children[e];if(r){var l=r.x,s=r.y;if(Tween(i,t,{translateX:-l,translateY:-s,ease:TOUCH_DEVICE?EASE.quart.out:EASE.cubic.inOut,onComplete:function(){n.dispatchEvent(TRANSITION_END),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}}),USER_AGENT===MOBILE)for(var d=i.children,c=0;ci.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var n=Tile,o=e.mediaViewContainer,a=e.localEvents,r=e.mediaView;return t}function MobileSlideTransition(e){function t(e,t,l){var t=void 0!==t?t:r;o.dispatchEvent(TRANSITION_START);var s=EASE.quart.out,d=n.children,c=d[e-1],h=d[e],u=d[e+1];c&&setTimeout(function(){c.transition=0,"right"===l&&(c.translateX=-STATE.mediaView.width()),c.display="block",c.updateSpeed=0,c.updatePosition(),c.loaded||c.load(),Tween.defer(c,t,{translateX:-STATE.mediaView.width(),alpha:1,ease:s})},0),h&&(h.transition=0,h.display="block",h.updateSpeed=0,h.updatePosition(),h.loaded||h.load(),clearTimeout(i),i=setTimeout(function(){d.filter(function(e){return e!==h&&e!==c&&e!==u}).forEach(function(e){e.display="none"})},200),Tween.defer(h,t,{translateX:0,alpha:1,ease:s,onComplete:function(){o.dispatchEvent(TRANSITION_END),a.lazyLoader&&a.lazyLoader.update()}})),u&&setTimeout(function(){u.transition=0,"left"===l&&(u.translateX=STATE.mediaView.width()),u.display="block",u.updateSpeed=0,u.updatePosition(),u.loaded||u.load(),Tween.defer(u,t,{translateX:STATE.mediaView.width(),alpha:1,ease:s})},0)}var i,n=e.mediaViewContainer,o=e.localEvents,a=e.mediaView,r=e.transitionDuration;return t.destroy=function(){},t}function StaticVLayout(e){function t(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=STATE.mediaView.width(),o.section&&STATE.section(o.section);for(var t=0,l=r.children,s=l.length;t").replace(/\\r\\n/g,"
").replace(/\n\r/g,"
").replace(/\\n\\r/g,"
").replace(/\r/g,"
").replace(/\\r/g,"
").replace(/\n/g,"
").replace(/\\n/g,"
").replace(/\\/g,""),y.selectable=!0,y.setClass("dx_page_text ql-editor"),y.fontFamily=LAYOUT_MODEL.contactFont,y.fontSize=LAYOUT_MODEL.contactFontSize,y.fontColor=LAYOUT_MODEL.contactFontColor,y.textAlign="right",y.textWrap=!1,b.addChild(y),b.addChild(M);var n=b.element.getElementsByTagName("img"),o=n.length;if(n.length>0)for(;o--;){var a=n[o];a.addEventListener(LOAD,function(e){g()})}D>320&&(D=320,y.width=320,y.textWrap=!0,y.style["word-wrap"]="break-word");for(var o=0,l=S.length,s=0;o"+e.mediaItem.label+"
"}H=A(),A()&&L()&&(i+="
"),i+=plainTextToHtml(e.mediaItem.content);var l=M.element.getElementsByClassName("no-lazy-load");l.length||(M.text=i.replace(/src\=/g,"data-src=")),w.addChild(M),y.addChild(w),x=M.element.getElementsByClassName("responsive"),U=M.element.getElementsByClassName("responsive-width")}function a(e){return function(t){return e.replace(/[^ -~]+/g,"")===t.src}}function r(e){return e.savedOpacity=e.style.opacity,e.style.opacity=0,e.originalWidth=e.style.width,e.originalHeight=e.style.height,e}function l(e){o(),N=Math.round(STATE.mediaView.maskWidth(y.element.offsetWidth)),STATE.overrides.pageMaxWidth&&N>STATE.overrides.pageMaxWidth&&(N=STATE.overrides.pageMaxWidth),D=s(M.element),_=D.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(r),f(),v(),setTimeout(function(){f(),v()},150)}function s(e){return Array.prototype.slice.apply(e.getElementsByTagName("img")).concat(Array.prototype.slice.apply(e.getElementsByTagName("video"))).concat(Array.prototype.slice.apply(e.getElementsByTagName("iframe"))).concat(Array.prototype.slice.apply(e.getElementsByTagName("input")))}function d(e){var t=e.reduce(function(e,t){if("img"===t.img.tagName.toLowerCase()){var i=t.img.src.replace(B,"");e=e.concat({src:i,width:t.img.naturalWidth,height:t.img.naturalHeight})}return e},[]);JSON.stringify(y.mediaItem.size.pageImages)!==JSON.stringify(t)&&(y.mediaItem.size.pageImages=t,k.dispatchEvent("adminPageviewImageSizes",y.mediaItem))}function c(e){return new Promise(function(t,i){var n,o=e.getAttribute("data-src");"img"===e.tagName.toLowerCase()?(n=setInterval(function(){e.naturalWidth&&e.naturalHeight&&(e.metaLoaded=!0,clearInterval(n),t({img:e}))},10),e.addEventListener("load",function(){Tween(e,.35,{opacity:e.savedOpacity||1})}),e.addEventListener("error",function(){clearInterval(n)}),setTimeout(function(){n&&clearInterval(n)},1e4)):t({img:e}),e.src=o})}function h(e){var t=void 0===SETTINGS_MODEL.disableRightClick||SETTINGS_MODEL.disableRightClick;t&&e.preventDefault()}function u(e){return e.img.oncontextmenu=h,e.img.ondragstart=h,e}function T(e){Promise.all(e.map(c)).then(function(e){return e.map(u)}).then(d).then(v).catch(function(e){})}function E(){return"native"===STATE.overrides.pageScrollType||MAC_SCROLLBARS&&("nativeMacOs"===STATE.overrides.pageScrollType||LAYOUT_MODEL.globalSmoothScroll)}function g(){if(STATE.section(y.section),USER_AGENT!==MOBILE&&USER_AGENT!==TABLET||(w.element.style["-webkit-overflow-scrolling"]="touch"),/vScroll/.test(STATE.overrides.transitionType)&&STATE.siteView.unifiedPageScroll())w.element.style.overflow="hidden",w.element.style["-webkit-overflow-scrolling"]="touch",Tween.defer(M,UPDATE_SPEED,{alpha:1});else if(E()||/unifiedSite/.test(STATE.overrides.siteDisplayBehavior))w.element.style.overflowY="auto",w.element.style.overflowX="hidden",w.element.style["-webkit-overflow-scrolling"]="touch",Tween.defer(M,UPDATE_SPEED,{alpha:1});else{y.scroll&&y.scroll.destroy();var t=STATE.overrides.pageScrollbarWidth,i=USER_AGENT===MOBILE?-(t+5):STATE.overrides.pageScrollbarHorizontalOffset,n="right"===STATE.overrides.pageScrollbarAlignment?-i-t:i+t,o={name:"text page",types:["bar","wheel","touch"],axis:"y",align:"top",margin:STATE.overrides.pageScrollVerticalMargin,color:STATE.overrides.pageScrollbarColor,hover:STATE.overrides.pageScrollbarHover,side:STATE.overrides.pageScrollbarAlignment,alpha:STATE.overrides.pageScrollbarBgAlpha,width:t,offsetX:n,offsetY:STATE.overrides.pageScrollbarVerticalOffset,property:"translate",rounded:STATE.overrides.pageScrollbarRounded,visibility:STATE.overrides.pageScrollbarVisibility,scrollTopCheck:!0};("nativeMacOs"===STATE.overrides.pageScrollType||LAYOUT_MODEL.globalSmoothScroll)&&(o.margin=0,o.color="#000000",o.hover="#000000",o.side="right",o.alpha=0,o.width=7,o.offsetX=0,o.offsetY=0,o.rounded=!0,o.visibility="when scrolling"),y.scroll=new Scroll(M,w,o),y.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){y.scroll.percent=0,y.scroll.update(UPDATE_SPEED)})}STATE.section(y.section);var a=percentToPixels(STATE.overrides.pageMarginTop,stage.height),r=percentToPixels(STATE.overrides.pageMarginBottom,stage.height),l=a+M.element.offsetHeight+r;if(L()&&!A()){var s=RetinaResizeEngine({width:e.mediaItem.size.featuredImage.width,height:e.mediaItem.size.featuredImage.height,filename:b.dataSrc}),d=(Math.round(s.width),Math.round(s.height));l=l>a+d+r?l:a+d+r}G=l!==y.contentHeight,y.contentHeight=l,m(y.section)?(layoutCalcs._mediaMarginPrefix="page",w.height=Math.round(STATE.mediaView.maskHeight(void 0,y.section.key)),y.height=Math.round(STATE.mediaView.height(y.section.key))):(w.height=l,y.height=l),G&&setTimeout(function(){k.dispatchEvent("MEDIA_HEIGHT_CHANGE")},100),y.scroll&&y.scroll.resize(),Tween.defer(M,UPDATE_SPEED,{alpha:1})}function m(e){return STATE.section(y.section),(USER_AGENT!==MOBILE&&USER_AGENT!==TABLET||!/vScroll/.test(STATE.overrides.transitionType))&&("none"===STATE.overrides.siteDisplayBehavior||!/vScroll/.test(STATE.overrides.transitionType)&&e.media.length>1)}function p(){return STATE.section(y.section),STATE.overrides.pageTitle&&""!==e.mediaItem.label}function L(){return""!==e.mediaItem.featuredImage}function f(e){STATE.section(y.section),b&&LAYOUT_MODEL.imageRendering.optimizeQuality&&(b.style["image-rendering"]="optimizeQuality"),b&&LAYOUT_MODEL.imageRendering.webkitOptimizeContrast&&(b.style["image-rendering"]="-webkit-optimize-contrast"),b&&"Safari"===BROWSER_NAME&&LAYOUT_MODEL.imageRendering.webkitBackfaceVisibility&&(b.style["-webkit-backface-visibility"]="hidden"),M.fontFamily=STATE.overrides.pageTextFont,M.fontColor=STATE.overrides.pageTextFontColor,M.fontSize=STATE.overrides.pageTextFontSize,M.letterSpacing=STATE.overrides.pageTextKerning,Tween(y,y.updateSpeed,{backgroundColor:STATE.mediaView.backgroundColor()})}function v(e){STATE.section(y.section),layoutCalcs.activeMediaType=y.type,V=Math.round(STATE.mediaView.maskX()),I=Math.round(STATE.mediaView.maskY(y.section.key));var t=STATE.mediaView.maskWidth(y.element.offsetWidth);if(N=Math.round(STATE.mediaView.maskWidth(y.element.offsetWidth)),z=Math.round(STATE.mediaView.maskHeight(y.element.offsetHeight,y.section.key)),STATE.overrides.pageMaxWidth&&N>STATE.overrides.pageMaxWidth)switch(N=STATE.overrides.pageMaxWidth,STATE.overrides.pageMaxAlign){case"center":V+=Math.round(.5*(t-N));break;case"right":V+=Math.round(t-N)}b&&L()&&!A()&&(V+=P+R,N-=P+R,Tween(b,y.updateSpeed,{x:V-P-R,y:I})),!H&&A()?(b&&(y.removeChild(b),b=void 0),o(),D=s(M.element),_=D.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(r)):H&&!A()&&(M.text="",o(),D=s(M.element),_=D.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(r)),Tween(w,0,{x:V,y:I,width:N}),Tween(M,0,{width:N}),S(),x&&x.length>0&&((isPod()||isPad())&&(w.style.overflow="auto",w.style["-webkit-overflow-scrolling"]="touch"),Tween.defer(M,UPDATE_SPEED,{alpha:1})),g()}function S(){if(x){var e=x[0];if(e&&"iframe"===e.tagName.toLowerCase())e.style.overflow="hidden",e.style.width=N+"px",e.style.height=z+"px",e.style.border="none";else if(e){var t=Math.round(STATE.mediaView.maskHeight(M.element.offsetHeight,y.section.key)),i=Math.round(STATE.mediaView.maskHeight(void 0,y.section.key)),n=t>i?t:i;e.style.overflow="hidden",e.style.width=N-e.offsetLeft+"px",e.style.height=n-e.offsetTop+"px",e.style.border="none"}}if(U){var o=U[0];o&&(o.style.overflow="hidden",o.style.width=N-o.offsetLeft+"px",o.style.border="none")}if(_){var r=_.length;if(r>0)for(;r--;){var l=_[r],s=l.getAttribute("data-src")?l.getAttribute("data-src").replace(B,""):"";if(s&&y.mediaItem.size.pageImages){var d=window.getComputedStyle(l),c=d.getPropertyValue("max-width"),h=l.getAttribute("width"),u=l.getAttribute("height");if(l.metaLoaded)l.originalWidth?l.style.width=l.originalWidth:h?l.style.width=h+"px":l.style.removeProperty("width"),l.originalHeight?l.style.height=l.originalHeight:u?l.style.height=u+"px":l.style.removeProperty("height"),"none"===c&&(l.style.maxWidth="100%");else{var T=y.mediaItem.size.pageImages.filter(a(s)),E=T[0]||{},g=E.width||l.naturalWidth,m=E.height||l.naturalHeight,p=parseFloat(d.getPropertyValue("width"),10)||h||g,L=(p>N?N:p)||N,f=m/g;l.style.width=L+"px",l.style.height=f*L+"px"}}}}}function O(t){y.updateSpeed=0;var i=RetinaResizeEngine({width:b.element.offsetWidth,height:b.element.offsetHeight,filename:b.src});P=Math.round(i.width),Y=Math.round(i.height),b.width=P,b.height=Y,Tween(b,1,{alpha:1}),y.updateSpeed=STATE.mediaView.transitionDuration(),y.events.dispatchEvent(MEDIA_LOADED,{type:"featuredImage",id:e.mediaItem.id,width:b.width,height:b.height})}function C(e){k.removeEventListener(RESIZE,v),k.removeEventListener(LAYOUT_MODEL_CHANGE,v),k.removeEventListener("destroy",C),k.removeEventListener("showCursor",t),k.removeEventListener("hideCursor",i),b&&b.removeEventListener(LOAD,O),y.removeEventListener(CHILD_ADDED,l)}function A(){if(USER_AGENT===MOBILE)return!0;if(stage.width<(LAYOUT_MODEL.screenWidthBreakpoint||1e3))return!0;var e=250;return STATE.mediaView.maskWidth()1?(L=2*THUMB_SIZES[STATE.overrides.thumbnailSize].width+STATE.overrides.thumbnailGap,f=2*THUMB_SIZES[STATE.overrides.thumbnailSize].height+STATE.overrides.thumbnailGap,v=2*THUMB_SIZES[STATE.overrides.thumbnailSize].width+STATE.overrides.thumbnailGap,S=2*THUMB_SIZES[STATE.overrides.thumbnailSize].height+STATE.overrides.thumbnailGap):(L=THUMB_SIZES[STATE.overrides.thumbnailSize].width,f=THUMB_SIZES[STATE.overrides.thumbnailSize].height,v=THUMB_SIZES[STATE.overrides.thumbnailSize].width,S=THUMB_SIZES[STATE.overrides.thumbnailSize].height);var C=ScaleEngine({type:"fit",hRange:v,vRange:S,width:m.size.thumb.width||m.size.content.width||THUMB_SIZES[STATE.overrides.thumbnailSize].width,height:m.size.thumb.height||m.size.content.height||THUMB_SIZES[STATE.overrides.thumbnailSize].height,disableOrientationCheck:!0}),A=new AlignEngine({hRange:L,vRange:f,hAlign:STATE.overrides.thumbnailAlignHorizontal||"center",vAlign:STATE.overrides.thumbnailAlignVertical||"center",width:C.width,height:C.height});h[u].thumb.width=Math.ceil(C.width),h[u].thumb.height=Math.ceil(C.height),h[u].thumb.x=Math.round(A.x),h[u].thumb.y=Math.round(A.y),h[u].playBtn&&(h[u].playBtn.x=Math.round(.5*(L-50)),h[u].playBtn.y=Math.round(.5*(f-50))),h[u].width=L,h[u].height=f,h[u].hit.width=L,h[u].hit.height=f;var b=/hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)&&STATE.overrides.thumbnailMasonryMaintainOrder,y=!(!(g>1&&/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType))||b)&&p;r.addItem(L,f,y,m.content)}/fill|vMasonry/.test(STATE.overrides.thumbnailType)&&(r.gridWidths=getHRange(!1,STATE.overrides.thumbnailGap),r.lastColumnWidth=/vMasonry/.test(STATE.overrides.thumbnailType)&&STATE.overrides.thumbnailMasonryFill?E-(r.gridWidths+STATE.overrides.thumbnailGap)*(g-1):r.gridWidths,r.numberOfColumns=g),r.items.length&&t(),setTimeout(function(){STATE.section(e.section);var t=r.getBounds(),l=new AlignEngine({hRange:STATE.overlayView.zoneWidth(),vRange:"hPaginatedGrid"===STATE.overrides.thumbnailType?STATE.mediaView.zoneHeight(e.section.key):STATE.overlayView.zoneHeight(e.section.key),width:r.perpLength,height:t.height,hAlign:"center",vAlign:"hPaginatedGrid"===STATE.overrides.thumbnailType?"center":"top",hOffset:0,vOffset:"hPaginatedGrid"===STATE.overrides.thumbnailType?0:e.verticalMargin});if((STATE.overrides.thumbnailMasonryFill||STATE.overrides.thumbnailMasonryEvenRowHeight)&&/hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)?o.gridContainer.x=e.horizontalMargin:(o.gridContainer.x=Math.floor(l.x),a&&(a.width=r.perpLength,d=STATE.overrides.thumbnailTitleBlockTopMargin+a.element.offsetHeight,a.y=STATE.overrides.thumbnailTitleBlockTopMargin)),"hPaginatedGrid"===STATE.overrides.thumbnailType?o.gridContainer.y=Math.floor(l.y):(o.gridContainer.y=0,o.grid.y=d+e.verticalMargin),n.width=STATE.overlayView.zoneWidth(),o.width=STATE.overlayView.zoneWidth(),o.grid.width=r.perpLength,o.gridContainer.width=r.perpLength,"hPaginatedGrid"===STATE.overrides.thumbnailType){var c=STATE.mediaView.zoneHeight(e.section.key);n.height=c,o.height=c,i.height=c,o.grid.height=t.height,o.gridContainer.height=t.height,s=c}else if(/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)||(STATE.siteView.unifiedPageScroll()||/unified/.test(LAYOUT_MODEL.siteDisplayBehavior))&&/overlay/.test(e.section.displayBehavior)&&STATE.overrides.siteDisplayGalleryOnlyOverlay){var h=!isIndexSection(e.section)&&STATE.mediaView.height(e.section.key)>t.height?STATE.mediaView.height(e.section.key):t.height,u=h+e.verticalMargin;s=d+(u+e.verticalMargin),n.height=s,o.height=s,o.grid.height=u,o.gridContainer.height=s}else if(STATE.siteView.unifiedPageScroll()&&(USER_AGENT!==MOBILE&&isPod()||USER_AGENT!==TABLET&&isPad()||/native/.test(STATE.overrides.thumbnailScrollType)||LAYOUT_MODEL.globalSmoothScroll)){var u=t.height+e.verticalMargin;u=u>STATE.mediaView.height()?u:STATE.mediaView.height(),s=d+(u+e.verticalMargin),n.height=s,o.height=s,o.grid.height=u,o.gridContainer.height=s}else s=d+(t.height+e.verticalMargin),n.height=STATE.overlayView.zoneHeight(),o.height=n.height,i.height=n.height,o.grid.height=t.height+e.verticalMargin,o.gridContainer.height=s;a&&"bottom"===LAYOUT_MODEL.thumbnailTitleBlockPosition&&(a.y=t.height+e.verticalMargin+STATE.overrides.thumbnailTitleBlockTopMargin,o.grid.y=e.verticalMargin),i.totalHeight=s,e.localEvents.dispatchEvent("UPDATE_CONTENT_HEIGHT",{thumbs:s}),n.resizeThumbVideo()},20)},this.thumbLoaded=function(e){this.parent.loader&&this.parent.removeChild(this.parent.loader),"slideUp"!==LAYOUT_MODEL.thumbLoadEffect&&"slideDown"!==LAYOUT_MODEL.thumbLoadEffect||Tween(this.parent,.85,{alpha:1,translateY:0}),Tween(this,.25,{alpha:1})}}function ThumbsStrip(e){function t(){switch(a){case"top":l.axis="x",l.perpLength=THUMB_SIZES[r].height,n.height=THUMB_SIZES[r].height,o.height=THUMB_SIZES[r].height;break;case"right":l.axis="y",l.perpLength=THUMB_SIZES[r].width,n.width=THUMB_SIZES[r].width,o.width=THUMB_SIZES[r].width;break;case"bottom":l.axis="x",l.perpLength=THUMB_SIZES[r].height,n.height=THUMB_SIZES[r].height,o.height=THUMB_SIZES[r].height;break;case"left":l.axis="y",l.perpLength=THUMB_SIZES[r].width,n.width=THUMB_SIZES[r].width,o.width=THUMB_SIZES[r].width}}function i(){l.layoutItems(),items=o.grid.children;for(var t=0,i=items.length;t573?573:STATE.mediaView.width(),w=STATE.mediaView.height(y.section.key)>400?400:STATE.mediaView.height(y.section.key),T.height=T.element.offsetHeight,O.width=O.element.offsetWidth,E.y=T.height+10,SETTINGS_MODEL.inquiryInfo?(g.y=T.height+20,m.x=2,m.y=g.y+g.element.offsetHeight+10):(m.x=2,m.y=T.height+20),layoutCalcs.mediaView.width()>573?SETTINGS_MODEL.inquiryInfo?(p.x=222,p.y=g.y+g.element.offsetHeight+10):(p.x=222,p.y=m.y):(p.transition=0,p.x=U,p.width=STATE.mediaView.width()-2*U,p.y=m.y+b+10,m.x=.5*(layoutCalcs.mediaView.width()-m.width),T.x=.5*(layoutCalcs.mediaView.width()-T.element.offsetWidth),f.input.width=.5*p.width-U,v.input.width=.5*p.width,S.input.width=p.width,v.x=.5*p.width,E.alpha=0),O.x=p.element.offsetWidth-O.width,SETTINGS_MODEL.inquiryInfo?(_.x=p.x,_.y=g.y+g.element.offsetHeight+10):(_.x=p.x,_.y=40),0===y.updateSpeed?(y.width=STATE.mediaView.width(),y.height=STATE.mediaView.height(y.section.key),u.x=.5*(STATE.mediaView.width()-M),u.y=.5*(STATE.mediaView.height(y.section.key)-w),u.width=M,u.height=w):(Tween(y,y.updateSpeed,{width:STATE.mediaView.width(),height:STATE.mediaView.height(y.section.key)}),Tween(u,y.updateSpeed,{x:.5*(STATE.mediaView.width()-M),y:.5*(STATE.mediaView.height(y.section.key)-w),width:M,height:w})),C.width=STATE.mediaView.width(),C.height=STATE.mediaView.height(y.section.key),y.updateSpeed=UPDATE_SPEED},y.show=function(){y.updateSpeed=0,y.visible||(y.visible=!0,y.display="block",Tween(y,UPDATE_SPEED,{alpha:1}),Tween(p,UPDATE_SPEED,{alpha:1}),Tween(_,UPDATE_SPEED,{alpha:0})),y.updatePosition()},y.hide=function(){y.visible&&(y.visible=!1,Tween(y,UPDATE_SPEED,{alpha:0,onComplete:function(){this.display="none"}}))},y.updateInquiryInfo=function(){T.text=SETTINGS_MODEL.inquiryTitle?SETTINGS_MODEL.inquiryTitle:"Inquire about this image",SETTINGS_MODEL.inquiryInfo&&(g.text=SETTINGS_MODEL.inquiryInfo),y.updatePosition()},y.updateContent=function(e){var t=csvToArray(e.section.media);L=getMediaById(t[e.assetId]),m&&u.removeChild(m),m=new Bitmap,m.alpha=0,SETTINGS_MODEL.inquiryInfo?(m.x=2,m.y=g.y+g.element.offsetHeight+10):(m.x=2,m.y=T.height+20),m.src=getThumbQuery(200,200,L.thumb||L.featuredImage||L.content,L.demoFile),m.width=200,u.addChild(m),m.addEventListener(LOAD,i)},y.addEventListener(CHILD_ADDED,function(e){t.call(y)}),y}function ShareView(e){function t(){E=new Sprite,E.backgroundColor="#cccccc",E.alpha=0,E.addEventListener(MOUSE_DOWN,o),p.addChild(E),a=new Sprite,a.width=L,a.height=f,p.addChild(a),r=new TextField,r.text="Share this item",r.fontFamily=STATE.overrides.overlayTitleFont,r.fontColor=STATE.overrides.overlayTitleFontColor,r.fontSize=STATE.overrides.overlayTitleFontSize,a.addChild(r),r.height=r.element.offsetHeight,l=new Sprite,l.backgroundColor=toRgba(STATE.overrides.overlayTitleFontColor,.35),l.width=L,l.height=1,l.y=STATE.overrides.overlayTitleFontSize+10,a.addChild(l),s=new Bitmap,s.alpha=0,a.addChild(s),s.addEventListener(LOAD,i),d=new Sprite,d.x=222,d.y=r.height+20,d.width=L-d.x,d.height=f-d.y,a.addChild(d);var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");h=new Sprite({type:"iframe"}),h.src="https://www.facebook.com/plugins/share_button.php?href="+encodeURIComponent(e)+"&width="+O.width+"&layout="+O.layout+"&action=like&size="+O.size+"&show_faces="+O.showFaces+"&share="+O.showShareButton+"&height="+O.height,h.width=O.width,h.height=O.height,h.element.setAttribute("scrolling","no"),h.element.setAttribute("frameborder","0"),h.element.setAttribute("allowTransparency","true"),u=new Button,u.addEventListener("click",function(){var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");window.open("https://twitter.com/intent/tweet?text="+encodeURI(e),"_blank")});var t=new Bitmap;t.position="relative",t.width=20,t.height=20,t.src="https://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com/icon/twitter@2x.png",u.addChild(t),T=new Button,T.addEventListener("click",function(){var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");window.location.href="mailto:?subject=Shared item from "+window.location.host+"&body="+SETTINGS_MODEL.portfolioEmailMessage+"%0A%0A"+e});var c=new Bitmap;c.position="relative",c.width=20,c.height=20,c.src="https://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com/icon/email@2x.png",T.addChild(c),h.y=0,u.y=30,T.y=60,d.addChild(h),d.addChild(u),d.addChild(T),v.alpha=0,v.x=d.x,v.y=40,v.fontFamily=STATE.overrides.overlayTitleFont,v.fontColor=STATE.overrides.overlayTitleFontColor,v.fontSize=14,a.addChild(v),p.updateStyle(),p.updatePosition(),p.show(),S.addEventListener(SHARE_FORM_SENT,n)}function i(e){var t=RetinaResizeEngine({width:this.width,height:this.element.offsetHeight,filename:s.src}),i=Resize(null,0,{type:"fit",width:t.width,height:t.height,hRange:200,vRange:isPod()?200:300,hAlign:0,vAlign:0,disableOrientationCheck:!0});g=Math.ceil(i.scale.width),m=Math.ceil(i.scale.height),this.width=g,this.height=m,Tween(this,UPDATE_SPEED,{alpha:1}),p.updatePosition()}function n(e){v.text=e.response,Tween(d,UPDATE_SPEED,{alpha:0}),Tween(v,UPDATE_SPEED,{alpha:1}),p.addEventListener(MOUSE_DOWN,o)}function o(e){e.target===p&&p.removeEventListener(MOUSE_DOWN,o),S.dispatchEvent(NAVBAR_OVERLAY_BTN_CLICK,"share")}var a,r,l,s,d,c,h,u,T,E,g,m,p=new Sprite(e),L=573,f=400,v=new Sprite,S=e.localEvents;p.section=e.section;var O={layout:"button",size:"small",showFaces:!1,showShareButton:!0,width:67,height:20};return p.updateSpeed=0,p.backgroundColor=toRgba(LAYOUT_MODEL.overlayColor,LAYOUT_MODEL.overlayAlpha),p.zIndex=100,p.alpha=0,p.visible=!1,p.updateStyle=function(e){STATE.overrides.overlayTitleFont!==r.fontFamily&&(r.fontFamily=STATE.overrides.overlayTitleFont,h.fontFamily=STATE.overrides.overlayTitleFont,u.fontFamily=STATE.overrides.overlayTitleFont,T.fontFamily=STATE.overrides.overlayTitleFont),STATE.overrides.overlayTitleFontSize!==r.fontSize&&Tween(r,UPDATE_SPEED,{fontSize:STATE.overrides.overlayTitleFontSize,onComplete:function(){p.updatePosition(e)}}),STATE.overrides.overlayTitleFontColor!==r.fontColor&&(Tween(r,UPDATE_SPEED,{fontColor:STATE.overrides.overlayTitleFontColor}),Tween(l,UPDATE_SPEED,{backgroundColor:toRgba(STATE.overrides.overlayTitleFontColor,.35)}),Tween(h,UPDATE_SPEED,{fontColor:toRgba(LAYOUT_MODEL.overlayColor,.35),backgroundColor:toRgba(STATE.overrides.overlayTitleFontColor,.35)}),Tween(u,UPDATE_SPEED,{fontColor:toRgba(LAYOUT_MODEL.overlayColor,.35),backgroundColor:toRgba(STATE.overrides.overlayTitleFontColor,.35)}),Tween(T,UPDATE_SPEED,{fontColor:toRgba(LAYOUT_MODEL.overlayColor,.35),backgroundColor:toRgba(STATE.overrides.overlayTitleFontColor,.35)})),toRgba(LAYOUT_MODEL.overlayColor,LAYOUT_MODEL.overlayAlpha)!==p.backgroundColor&&Tween(p,UPDATE_SPEED,{backgroundColor:toRgba(LAYOUT_MODEL.overlayColor,LAYOUT_MODEL.overlayAlpha)})},p.updatePosition=function(e){STATE.section(p.section),p.x=0,p.y=0,L=STATE.mediaView.width()>573?573:STATE.mediaView.width(),f=STATE.mediaView.height(p.section.key)>400?400:STATE.mediaView.height(p.section.key),s.x=2,s.y=r.height+20,l.y=STATE.overrides.overlayTitleFontSize+10,layoutCalcs.mediaMask.width()>573?(d.x=222,d.y=r.height+20):(d.transition=0,d.x=.5*(layoutCalcs.mediaView.width()-d.width),d.y=s.y+m+10,s.x=.5*(layoutCalcs.mediaView.width()-s.width),r.x=.5*(layoutCalcs.mediaView.width()-r.element.offsetWidth),h.x=.5*(d.width-67),u.x=.5*(d.width-20),T.x=.5*(d.width-20),l.alpha=0),0===p.updateSpeed?(p.width=STATE.mediaView.width(),p.height=STATE.mediaView.height(p.section.key),a.x=.5*(STATE.mediaView.width()-L),a.y=.5*(STATE.mediaView.height(p.section.key)-f),a.width=L,a.height=f):(Tween(p,p.updateSpeed,{width:STATE.mediaView.width(),height:STATE.mediaView.height(p.section.key)}),Tween(a,p.updateSpeed,{x:.5*(STATE.mediaView.width()-L),y:.5*(STATE.mediaView.height(p.section.key)-f),width:L,height:f})),E.width=STATE.mediaView.width(),E.height=STATE.mediaView.height(p.section.key),p.updateSpeed=UPDATE_SPEED},p.show=function(){p.updateSpeed=0,p.updatePosition(),p.visible||(p.visible=!0,p.display="block",Tween(p,UPDATE_SPEED,{alpha:1}),Tween(d,UPDATE_SPEED,{alpha:1}),Tween(v,UPDATE_SPEED,{alpha:0}))},p.hide=function(e){p.visible&&(p.visible=!1,Tween(p,UPDATE_SPEED,{alpha:0,onComplete:function(){this.display="none"}}))},p.updateContent=function(e){var t=csvToArray(e.section.media);c=getMediaById(t[e.assetId]),r.text="Share this "+c.type;var n=r.element.offsetHeight;s&&a.removeChild(s),s=new Bitmap,s.alpha=0,s.x=2,s.y=n+20,s.width=200,s.src=getThumbQuery(200,200,c.thumb||c.content,c.demoFile),d.y=n+20;var o="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");h.src="https://www.facebook.com/plugins/share_button.php?href="+encodeURIComponent(o)+"&width="+O.width+"&layout="+O.layout+"&action=like&size="+O.size+"&show_faces="+O.showFaces+"&share="+O.showShareButton+"&height="+O.height,a.addChild(s),s.addEventListener(LOAD,i)},p.addEventListener(CHILD_ADDED,function(e){t.call(p)}),p}function MenuController(e){function t(e){return window.scrollY>e?e:window.scrollY<0?0:window.scrollY}function i(e){LAYOUT_MODEL.menuRevealOnInit!==!1&&b&&e<10?g.menuView.dock.toggleState()||g.menuView.dock.show():e>stage.height*LAYOUT_MODEL.menuScrollReveal?g.menuView.dock.toggleState()||g.menuView.dock.show():g.menuView.dock.toggleState()&&g.menuView.dock.hide()}function n(){g.menuView.dock.toggleState()&&g.menuView.closeDock()}function o(e){if(g.menuView.isInitUri=!1,USER_AGENT===MOBILE||USER_AGENT===TABLET){var t=e.info.isDeepLink||""===LAYOUT_MODEL.menuAutoCloseMobile||void 0===LAYOUT_MODEL.menuAutoCloseMobile||LAYOUT_MODEL.menuAutoCloseMobile;""===STATE.introFile&&""===LAYOUT_MODEL.introFile||e.path?!p&&M(e)&&g.menuView.dock.toggleState()?setTimeout(g.menuView.closeDock,200):p||t?t&&g.menuView.dock.toggleState()&&setTimeout(g.menuView.closeDock,2e3):g.menuView.dock.toggleState()&&(clearTimeout(E),E=setTimeout(g.menuView.closeDock,200)):(g.menuView.dock.toggleState()||g.menuView.openDock(),t&&setTimeout(g.menuView.closeDock,2e3))}else"overlay"===STATE.menuView.placement()?(!p&&g.menuView.dock.toggleState()&&g.menuView.closeDock(),p&&(LAYOUT_MODEL.menuOpenOverlayOnInit?g.menuView.openDock():g.menuView.closeDock())):isRevealMenuOnScrollPercent()&&i();a(e),p=!1}function a(e){(void 0===LAYOUT_MODEL.isAutoHighlightMenuOnScroll||LAYOUT_MODEL.isAutoHighlightMenuOnScroll)&&g.menuView.menuText.setActiveMenuItem(e)}function r(e){var t=csvToArray(e.value);return"media"===e.field&&"update"===e.method&&1===t.length&&"link"===getMediaById(t[0]).type}function l(e){return"media"===e.field&&"update"===e.method&&""===e.value}function s(e){setTimeout(function(){g.menuView.menuText.display="block",g.menuView.display="block",g.menuView.menuText.rebuild({model:e})},400)}function d(e){T&&clearTimeout(T),T=setTimeout(function(){e.action&&"sectionReorder"===e.action||(e.action&&"remove"===e.action?l(e)&&s(c()):e.action&&"addMediaToSection"===e.action||(e.action&&"addSelectionToSection"===e.action?r(e)&&s(c()):s(c())))},0)}function c(){var e={};for(var t in SECTIONS_MODEL)SECTIONS_MODEL[t].media&&SECTIONS_MODEL[t].mediaItems&&SECTIONS_MODEL.hasOwnProperty(t)&&(e[t]={id:SECTIONS_MODEL[t].id,key:SECTIONS_MODEL[t].key,hideFromMenu:SECTIONS_MODEL[t].hideFromMenu,customLink:SECTIONS_MODEL[t].customLink,isIndex:SECTIONS_MODEL[t].isIndex,indexLink:SECTIONS_MODEL[t].indexLink,linkTarget:SECTIONS_MODEL[t].linkTarget,isOpen:SECTIONS_MODEL[t].isOpen,hideSubs:SECTIONS_MODEL[t].hideSubs,label:SECTIONS_MODEL[t].label,alias:SECTIONS_MODEL[t].alias,media:SECTIONS_MODEL[t].media.slice(0),mediaItems:SECTIONS_MODEL[t].mediaItems.slice(0),overrides:SECTIONS_MODEL[t].overrides,password:SECTIONS_MODEL[t].password,thumb:SECTIONS_MODEL[t].thumb,visible:SECTIONS_MODEL[t].visible,isSearch:SECTIONS_MODEL[t].isSearch,isLightbox:SECTIONS_MODEL[t].isLightbox});if((USER_AGENT===MOBILE||USER_AGENT===TABLET&&LAYOUT_MODEL.footerOnMenuTablet)&&(STATE.socialLinks.forEach(function(t){var i=MEDIA_MODEL[t],n=getNextId(e);e[t]={id:n,key:i.label,label:i.label,media:[t],mediaItems:[],overrides:{},password:"",thumb:{},visible:!0},e.ROOT_SECTION.media.push(n)}),STATE.copyright)){var i=getNextId(e);e.copyright={id:i,key:"copyright",label:STATE.copyright,media:[],mediaItems:[],overrides:{},password:"",thumb:{},visible:!0},e.ROOT_SECTION.media.push(i)}return e}function h(e){if(m||e&&/menu|marginOverlap|dropdownSubMenu|sitePaddingTop|sitePaddingRight|sitePaddingBottom|sitePaddingLeft|footerIcon/.test(e.id)){g.menuView.updateStyle(),g.menuView.layoutChange();var t=c();g.menuView.menuText.display="block",g.menuView.display="block",g.menuView.menuText.rebuild({model:t}),g.menuView.menuText.updatePosition(0),g.menuView.updatePosition("layoutModelChange"),g.menuView.updateScroll(),m=!1,s(t)}}function u(e){"link"===e.type&&"Footer Links"!==e.filters&&(g.menuView.updateStyle(),g.menuView.menuText.display="block",g.menuView.display="block",g.menuView.menuText.rebuild({model:c()}),g.menuView.menuText.updatePosition(0),g.menuView.updatePosition(),g.menuView.updateScroll())}var T,E,g=new ControllerProxy({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents}),m=!0,p=!0,L=!0,f=350,v=!1,S=!1;g.updateSpeed=0,g.menuView=new e.MenuView(e),g.menuView.alpha=0,USER_AGENT===MOBILE&&STATE.overrides.menuDisplaceMobile?(stage.addChild(g.menuView),g.menuView.addChild(e.parentView),g.menuView.setClass("MenuView invertSite")):USER_AGENT===TABLET&&STATE.overrides.menuDisplaceTablet?(stage.addChild(g.menuView),g.menuView.addChild(e.parentView),g.menuView.setClass("MenuView invertSite")):(g.parentView.addChild(g.menuView),g.parentView.setClass("SiteView invertSite")),e.model=SECTIONS_MODEL,g.menuView.menuText=new MenuText(e),g.menuView.menuText.element.setAttribute("class","menuText"),
g.menuView.addContent(g.menuView.menuText),g.events.addEventListener("menuUpdatePosition",function(){g.menuView.updatePosition()}),g.events.addEventListener(LAYOUT_MODEL_CHANGE,h),g.events.addEventListener(MEDIA_MODEL_CHANGE,u),g.events.addEventListener(SECTIONS_MODEL_CHANGE,d),g.events.addEventListener(ORIENTATION_CHANGE,function(){v=!0}),g.events.addEventListener(RESIZE_END,function(){layoutCalcs.isMenuOverlayStateChange?(g.menuView.transition=0,g.menuView.alpha=0,setTimeout(function(){layoutCalcs.isMenuResponsiveOverlay&&USER_AGENT!==MOBILE?g.menuView.closeDock(0):g.menuView.openDock(0),g.menuView.menuText.display="block",g.menuView.display="block",g.menuView.menuText.rebuild({model:c()}),g.menuView.menuText.updatePosition(0),g.menuView.updatePosition(0),g.menuView.updateStyle(0),g.menuView.updateScroll(),g.menuView.dock.toggleState()&&setTimeout(function(){g.menuView.transition=0,g.menuView.alpha=1},350)},f)):(USER_AGENT===MOBILE&&(v||L)&&(g.menuView.menuText.rebuild({model:c()}),v=!1),g.menuView.menuText.updatePosition(0),g.menuView.updatePosition(),USER_AGENT===MOBILE||USER_AGENT===TABLET||g.menuView.dock.toggleState()||LAYOUT_MODEL.isMenuScrollReveal||setTimeout(function(){g.menuView.display="none"},f)),f=50,L=!1}),g.events.addEventListener(SITE_URI_CHANGE,o),g.events.addEventListener("SITE_URI_CHANGE_PASSIVE",a),g.events.addEventListener(TOUCH_NAVIGATION_END,n),g.events.addEventListener(MENU_BUILT,function(){T=setTimeout(function(){g.menuView.dock.toggleState()&&(g.menuView.menuText.display="block",g.menuView.display="block"),g.menuView.menuText.updatePosition(0),g.menuView.updatePosition()},0)}),g.events.addEventListener(MENU_SIZE_CHANGE,g.menuView.updatePosition),g.events.addEventListener("LOGO_LOADED",function(){g.menuView.menuText.display="block",g.menuView.display="block",g.menuView.menuText.updatePosition(0),g.menuView.updatePosition()});var O,C=0,A=!1,b=!0,y=void 0===LAYOUT_MODEL.menuRevealOnInit||LAYOUT_MODEL.menuRevealOnInit;LAYOUT_MODEL.menuRevealOnInit!==!1&&"overlay"!==STATE.menuView.placement()||USER_AGENT===MOBILE||USER_AGENT===TABLET||g.menuView.dock.hide(),window.addEventListener("scroll",function(){S=!1,LAYOUT_MODEL.isMenuScrollReveal&&/top/.test(STATE.menuView.placement())&&(A=!0,clearTimeout(O),O=setTimeout(function(){var e=STATE.siteView.height()-stage.height;C=t(e),LAYOUT_MODEL.menuRevealOnInit!==!0&&b?(g.menuView.dock.hide(),y=!1):isRevealMenuOnScrollPercent()?(S=!0,i(C)):LAYOUT_MODEL.isMenuScrollReveal&&(0!==C&&C>window.oldScrollY-1?g.menuView.dock.toggleState()&&!b&&(g.menuView.dock.hide(),y=!1):C0)for(var t=e.children.length;t--;)this.removeChildren(e.children[t]),e.removeChild(e.children[t])},e.prototype.childAdded=function(e){for(var t=this.children.length;t--;)"Stage"===this.children[t].topParentName&&this.children[t]===e&&this.children[t].dispatchEvent&&this.children[t].dispatchEvent(CHILD_ADDED,this.children[t])},e.prototype.moveToTop=function(e){for(var t=0,i=this.children.length;i--;)this.children[i].zIndex>=t&&!this.children[i]===e?t=this.children[i].zIndex+1:this.children[i].zIndex--;e.zIndex=t},e.prototype.event=function(e){!this.proxy._private.selectable&&!TOUCH_DEVICE&&"input"!==this.proxy.vars.type&&"textarea"!==this.proxy.vars.type&&"button"!==this.proxy.vars.type;var t={type:e.type,target:this.proxy,currentTarget:this.proxy,keyCode:e.which,detail:e.detail,pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX||e.layerX,offsetY:e.offsetY||e.layerY,mouseX:e.clientX-this.proxy.stageX,mouseY:e.clientY-this.proxy.stageY,preventDefault:function(){e.preventDefault()},stopPropagation:function(){e.stopPropagation()},dataTransfer:e.dataTransfer};e.touches&&(t.touches=e.touches),this.proxy.dispatchEvent(e.type,t)},e.prototype.hitTestPoint=function(e,t){return this._private.width||(this._private.width=this.element.offsetWidth||this.element.scrollWidth||0),"none"!==this.style.display&&e>=this.stageX&&e<=this.stageX+this._private.width&&t>=this.stageY&&t<=this.stageY+this._private.height},e.prototype.hitTestAbs=function(e,t){return"none"!==this.style.display&&e>=this.scrollAbsX&&e<=this.scrollAbsX+this._private.width&&t>=this.scrollAbsY&&t<=this.scrollAbsY+this._private.height},e.prototype.globalToLocal=function(e){return{x:e.x-this.stageX,y:e.y-this.stageY}},e.prototype.localToGlobal=function(e){return{x:e.x+this.stageX,y:e.y+this.stageY}},e.prototype.focus=function(){stage.activeFocus=this,"input"!==this.vars.type&&"textarea"!==this.vars.type&&"button"!==this.vars.type||this.element.focus()},e.prototype.blur=function(){"input"!==this.vars.type&&"textarea"!==this.vars.type&&"button"!==this.vars.type||this.element.blur()},e.prototype.getClass=function(){return this.element.className},e.prototype.setClass=function(e){return this.element.setAttribute("class",e)},i.forEach(function(i){/width|height|fontSize|src|transition/.test(i)||Object.defineProperty(e.prototype,i,{get:function(){return this._private[i]},set:function(e){this._private[i]=e,this.element.style[i]=t.indexOf(i)>-1?e+"px":e}})}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.element.style.fontFamily},set:function(e){if(e.indexOf(":")>-1){var t=e.split(":"),i=t[0],n=t[1];this.fontWeight=n,this.element.style.fontFamily=i,this._private.fontFamily=i}else this.element.style.fontFamily=e,this._private.fontFamily=e}}),Object.defineProperty(e.prototype,"scrollLeft",{get:function(){return this.element.scrollLeft},set:function(e){this.element.scrollLeft=e}}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.element.scrollTop},set:function(e){this.element.scrollTop=e}}),Object.defineProperty(e.prototype,"offsetLeft",{get:function(){return this.element.offsetLeft}}),Object.defineProperty(e.prototype,"offsetTop",{get:function(){return this.element.offsetTop}}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e}}),Object.defineProperty(e.prototype,"topParentName",{get:function(){return this.parent?this.parent.topParentName:this.topParentName}}),Object.defineProperty(e.prototype,"stageX",{get:function(){if(this.parent){var e=this.x>0?this.x:this.translateX;return this.parent.stageX+(e||0)}return this.x}}),Object.defineProperty(e.prototype,"stageY",{get:function(){if(this.parent){var e=this.y>0?this.y:this.translateY;return this.parent.stageY+(e||0)}return this.y}}),Object.defineProperty(e.prototype,"absX",{get:function(){var e=0,t=this.element;if(t.offsetParent)do{var i=new n(window.getComputedStyle(t).getPropertyValue("transform"));e+=t.offsetLeft+i.m41}while(t=t.offsetParent);return e}}),Object.defineProperty(e.prototype,"absY",{get:function(){var e=0,t=this.element;if(t.offsetParent)do{var i=new n(window.getComputedStyle(t).getPropertyValue("transform"));e+=t.offsetTop+i.m42}while(t=t.offsetParent);return e}}),Object.defineProperty(e.prototype,"scrollAbsX",{get:function(){var e=0,t=this.element;if(t.offsetParent)do{var i=new n(window.getComputedStyle(t).getPropertyValue("transform"));e+=t.offsetLeft+i.m41-t.scrollLeft}while(t=t.offsetParent);return e}}),Object.defineProperty(e.prototype,"scrollAbsY",{get:function(){var e=0,t=this.element;if(t.offsetParent)do{var i=new n(window.getComputedStyle(t).getPropertyValue("transform"));e+=t.offsetTop+i.m42-t.scrollTop}while(t=t.offsetParent);return e}}),Object.defineProperty(e.prototype,"src",{get:function(){return this._private.src},set:function(e){e&&(this._private.src=e,this.element.src=e)}}),Object.defineProperty(e.prototype,"text",{get:function(){return this._private.text},set:function(e){this._private.text=e,this.element.innerHTML=e}}),Object.defineProperty(e.prototype,"textAlignVertical",{get:function(){return this._private.textAlignVertical},set:function(e){this._private.textAlignVertical=e,"middle"!==e&&"bottom"!==e||(this.style.position="relative",this.style.display="table-cell"),this.style.verticalAlign=e}}),Object.defineProperty(e.prototype,"textWrap",{get:function(){return this._private.textWrap},set:function(e){this._private.textWrap=e,this.style.whiteSpace=e?"normal":"nowrap"}}),Object.defineProperty(e.prototype,"fontColor",{get:function(){return this._private.fontColor},set:function(e){this._private.fontColor=e,this.style.color=e}}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this._private.selectable},set:function(e){this._private.selectable=e,this._private.selectable||"input"===this.vars.type||"textarea"===this.vars.type?(this.style.cursor="auto",this.style["-webkit-touch-callout"]="text",this.style["-webkit-user-select"]="text",this.style.MozUserSelect="text",this.style["-ms-touch-callout"]="text",this.style["user-select"]="text"):(this.style.cursor="default",this.style["-webkit-touch-callout"]="none",this.style["-webkit-user-select"]="none",this.style.MozUserSelect="none",this.style["-ms-touch-callout"]="none",this.style["user-select"]="none")}}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._private.opacity},set:function(e){this._private.opacity=e,this.style.opacity=e}}),Object.defineProperty(e.prototype,"x",{get:function(){return this._private.x||0},set:function(e){this._private.x=e,this.style.left=e+"px"}}),Object.defineProperty(e.prototype,"y",{get:function(){return this._private.y||0},set:function(e){"textinputpanel"===this.name,this._private.y=e,this.style.top=e+"px"}}),Object.defineProperty(e.prototype,"translate",{get:function(){return this._private.translate},set:function(e){this._private.translate=e,this._private.translateX=e[0],this._private.translateY=e[1],this.style["-webkit-transform"]="translate("+this._private.translateX+"px,"+this._private.translateY+"px)",this.style["-ms-transform"]="translate("+this._private.translateX+"px,"+this._private.translateY+"px)",this.style.transform="translate("+this._private.translateX+"px,"+this._private.translateY+"px)"}}),Object.defineProperty(e.prototype,"translateX",{get:function(){if(isNaN(this._private.translateX)){var e=new TransformMatrix(this.element);return Number(e.x)||0}return this._private.translateX},set:function(e){this._private.translateX=e,this._private.translateY=this._private.translateY||0,this.style["-webkit-transform"]="translate("+this._private.translateX+"px,"+this._private.translateY+"px)",this.style["-ms-transform"]="translate("+this._private.translateX+"px,"+this._private.translateY+"px)",this.style.transform="translate("+this._private.translateX+"px,"+this._private.translateY+"px)"}}),Object.defineProperty(e.prototype,"translateY",{get:function(){if(this._private.translateY)return this._private.translateY;var e=new TransformMatrix(this.element);return Number(e.y)||0},set:function(e){this._private.translateY=e,this._private.translateX=this._private.translateX||0,this.style["-webkit-transform"]="translate("+this._private.translateX+"px,"+this._private.translateY+"px)",this.style["-ms-transform"]="translate("+this._private.translateX+"px,"+this._private.translateY+"px)",this.style.transform="translate("+this._private.translateX+"px,"+this._private.translateY+"px)"}}),Object.defineProperty(e.prototype,"translateZ",{get:function(){return this._private.translateZ},set:function(e){this._private.translateZ=e,this.style["-webkit-transform"]="translateZ("+e+"px)",this.style["-ms-transform"]="translateZ("+e+"px)",this.style.transform="translateZ("+e+"px)"}}),Object.defineProperty(e.prototype,"translate3d",{get:function(){if(this._private.translate3d)return this._private.translate3d;var e=new TransformMatrix(this.element);return[e.x,e.y,e.z]||0},set:function(e){this._private.translate3d=e,this._private.translateX=e[0]||0,this._private.translateY=e[1]||0,this._private.translateZ=e[2]||0,this.style["-webkit-transform"]="translate3d("+e[0]+"px,"+e[1]+"px,"+e[2]+"px)",this.style["-ms-transform"]="translate3d("+e[0]+"px,"+e[1]+"px,"+e[2]+"px)",this.style.transform="translate3d("+e[0]+"px,"+e[1]+"px,"+e[2]+"px)"}}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._private.rotate},set:function(e){this._private.rotate=e,this.style["-webkit-transform"]="rotate("+e+"deg)",this.style["-moz-transform"]="rotate("+e+"deg)",this.style["-o-transform"]="rotate("+e+"deg)",this.style.transform="rotate("+e+"deg)"}}),Object.defineProperty(e.prototype,"width",{get:function(){return this._private.width=this._private.width||0,this._private.width},set:function(e){e<0&&(e=0),this._private.width=e,this.style.width=e+"px"}}),Object.defineProperty(e.prototype,"height",{get:function(){return this._private.height=this._private.height||0,this._private.height},set:function(e){e<0&&(e=0),this._private.height=e,this.style.height=e+"px"}}),Object.defineProperty(e.prototype,"numChildren",{get:function(){return this.children.length}}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._private.fontSize},set:function(e){this._private.fontSize=e,isNaN(e)&&e.search("%")>-1?this.style.fontSize=e:isNaN(e)&&e.search("px")>-1?this.style.fontSize=e:isNaN(e)?this.style.fontSize=e:this.style.fontSize=e+"px"}}),Object.defineProperty(e.prototype,"transition",{get:function(){return this._private.transition},set:function(e){this._private.transition=e,e?(e="all "+e+"s cubic-bezier(1, 0, 0.3, 1)",this.style.WebkitTransition=e,this.style.MozTransition=e,this.style.OTransition=e,this.style.transition=e):(this.style.WebkitTransitionProperty="none",this.style.MozTransitionProperty="none",this.style.OTransitionProperty="none",this.style.transitionProperty="none")}}),Object.defineProperty(e.prototype,"isInViewport",{get:function(){var e=window.innerWidth,t=window.innerHeight,i={x:0,y:0,width:2*e,height:2*t},n=this.element.getBoundingClientRect();return n.x=n.x||n.left,n.y=n.y||n.top,isCollision(i,n)}})}(i),e}(),stage=Stage.call(Stage),svgPaths={navArrowRight:{default:"M1.4,11.984l4.244-4.242L1.4,3.5",thin:""},navArrowLeft:{default:"M6.644,3.5L2.4,7.742l4.244,4.242",thin:""},navArrowUp:{default:"m 1.4562498,8.21905 5.1000001,-5.4 5.7000001,5.4",thin:""},navArrowDown:{default:"m 1.4562498,1.44405 5.1000001,5.4 5.7000001,-5.4",thin:""},navFullscreen:{default:"M0,0h15v9H0V0z M2,2v5h11V2H2z",thin:"M1.5,1.5 L12.5,1.5 L12.5,7.5 L1.5,7.5 L1.5,1.5 z"},navShare:{default:"M9.056,5.4 L9.056,3 L14.5,7.2 L9.056,11.4 L9.056,8.94 C5.167,8.94 2.444,9.9 0.5,12 C1.278,9 3.611,6 9.056,5.4 z",thin:"M9.056,5.4 L9.056,3 L14.5,7.2 L9.056,11.4 L9.056,8.94 C5.167,8.94 2.444,9.9 0.5,12 C1.278,9 3.611,6 9.056,5.4 z"},navInfo:{default:"M0.576,10.401c0.384,0.922,0.924,1.724,1.621,2.404c2.891,2.908,7.741,2.946,10.624,0c2.904-2.923,2.905-7.705,0-10.629 c-2.88-2.92-7.736-2.881-10.624,0c-0.738,0.715-1.274,1.525-1.607,2.43C-0.192,6.534-0.197,8.465,0.576,10.401 C0.959,11.324,0.192,9.479,0.576,10.401z M1.9,5.131c0.311-0.753,0.745-1.403,1.303-1.95c2.34-2.383,6.292-2.274,8.654,0 c2.316,2.448,2.284,6.187,0,8.643c-2.387,2.29-6.288,2.39-8.654,0c-0.543-0.542-0.985-1.207-1.329-1.994 c-0.293-0.738-0.44-1.528-0.44-2.371C1.435,6.661,1.59,5.885,1.9,5.131C2.211,4.378,1.59,5.885,1.9,5.131z M4.792,7.981 c0.562,0,1.844-0.876,2.245-0.566C7.531,7.798,6.011,9.726,5.89,9.94c-0.605,1.064-0.754,2.451,0.931,2.24 c1.02-0.128,2.904-0.903,3.41-1.88c0.232-0.451-2.039,0.442-2.189,0.278C7.69,10.194,8.925,8.421,9.058,8.096 C10.812,3.81,4.583,6.318,4.792,7.981C4.796,7.981,4.792,7.981,4.792,7.981z M8.151,4.869c0.465,0.459,1.194,0.432,1.651-0.025 c0.701-0.62,0.341-1.849-0.572-2.041C8.067,2.56,7.326,4.053,8.151,4.869C8.38,5.094,7.923,4.644,8.151,4.869z",thin:"M7.5,12.5 C4.739,12.5 2.5,10.261 2.5,7.5 C2.5,4.739 4.739,2.5 7.5,2.5 C10.261,2.5 12.5,4.739 12.5,7.5 C12.5,10.261 10.261,12.5 7.5,12.5 z M7.5,5.694 L7.5,4.306 M7.5,10.37 L7.5,6.435"},navCart:{default:"M 1.248,8.985 H 3.254 V 6.989 H 1.248 V 8.985 z M 0,0 1.05,5.992 h 9.235 L 11.271,0.966 13.248,0.968 13.256,0 H 0 z m 3.25,3.981 h -1 v -1 h 1 v 1 z M 3.25,2 h -1 V 1 h 1 v 1 z m 2,2 h -1 V 3 h 1 v 1 z m 0,-2 h -1 V 1 h 1 v 1 z m 2,1.979 h -1 v -1 h 1 v 1 z M 7.25,2 h -1 V 1 h 1 v 1 z m 2,1.979 h -1 v -1 h 1 v 1 z M 9.25,2 h -1 V 1 h 1 V 2 z M 7.252,9.007 H 9.25 V 7.002 H 7.252 v 2.005 z",thin:"M3.673,7.806 C3.866,7.806 4.023,7.963 4.023,8.157 C4.023,8.35 3.866,8.507 3.673,8.507 C3.479,8.507 3.322,8.35 3.322,8.157 C3.322,7.963 3.479,7.806 3.673,7.806 z M10.034,1.526 L8.552,6.278 L2.701,6.278 L1.5,1.5 L11.542,1.5 M7.333,7.806 C7.139,7.806 6.982,7.963 6.982,8.157 C6.982,8.35 7.139,8.507 7.333,8.507 C7.527,8.507 7.684,8.35 7.684,8.157 C7.684,7.963 7.527,7.806 7.333,7.806 z"},navThumbs:{default:"M0,3h7v4H0V3z M0,8h7v4H0V8z M8,3h7v4H8V3z M8,8h7v4H8V8z",thin:"M1.5,3.5 L6.5,3.5 L6.5,6.5 L1.5,6.5 L1.5,3.5 z M8.5,3.5 L8.5,6.5 L13.5,6.5 L13.5,3.5 L8.5,3.5 z M1.5,8.5 L1.5,11.5 L6.5,11.5 L6.5,8.5 L1.5,8.5 z M8.5,8.5 L8.5,11.5 L13.5,11.5 L13.5,8.5 L8.5,8.5 z"},play:"M2,1l8,5.031L2,11V1z",pause:"M2,2h3v8H2V2z M7,2h3v8H7V2z",volume:"M2,7.5h1V10H2V7.5z M4,7h1v3H4V7z M6,6h1v4H6V6z M8,4h1v6H8V4z M10,2h1v8h-1V2z M0,8h1v2H0V8z",mute:"M2,8h1v2H2V8z M4,8h1v2H4V8z M6,8h1v2H6V8z M8,8h1v2H8V8z M10,8h1v2h-1V8z M0,8h1v2H0V8z",arrowLeft:"M 8.812269,1.1126749 2.1862736,7.2790289 8.876226,13.512325",arrowRight:"M 1.0939806,1.1126749 7.719976,7.2790289 1.0300236,13.512325",arrowUp:"M 1.1126747,8.812269 7.2790287,2.1862738 13.512325,8.876226",arrowDown:"M 1.1126747,1.0939808 7.2790287,7.719976 13.512325,1.0300238",arrowUpSmall:"M10.535,8.768L7,5.232L3.465,8.768",arrowDownSmall:"M3.465,5.232L7,8.768l3.535-3.535",arrowRightSmall:"M4.5,11.001L9.5,6l-5-5",arrowLeftSmall:"M9.5,2l-5,5.001l5,5",edit:"M4.244,7.759L9.203,2.8l2.151,2.151L6.396,9.909L2.8,11.397L4.244,7.759z",popout:"M3,8 L3,1 L12,1 L12,8 L10,8 L10,11 L0,11 L0,3 L3,3 L2,3 L2,4 L1.969,9 L10,9 L10,8 L3,8 z M10,3 L5,3 L5,6 L10,6 L10,3 z",remove:"M4,7h6 M7,2.5C4.515,2.5,2.5,4.515,2.5,7c0,2.486,2.015,4.5,4.5,4.5 c2.486,0,4.5-2.014,4.5-4.5C11.5,4.515,9.485,2.5,7,2.5z",spacer:"M12,10H2V4h10V10z",chart:"M1.844,9.188 L5.094,6.188 L7.031,8.562 L12.156,4.188",eyeSmall:"M2.613,6.95c0-1.391,2.021-2.518,4.513-2.518 c2.493,0,4.514,1.127,4.514,2.518 M7.125,5.691c-0.682,0-1.235,0.553-1.235,1.235c0,0.681,0.553,1.235,1.235,1.235 c0.681,0,1.235-0.554,1.235-1.235C8.36,6.244,7.807,5.691,7.125,5.691z",lock:"M10,9.875H4v-5h6V9.875z M9.5,4.625c0-1.381-1.119-2.5-2.5-2.5s-2.5,1.119-2.5,2.5 M5.5,4.625c0-0.828,0.672-1.5,1.5-1.5s1.5,0.672,1.5,1.5",plusSmall:"M3,7h8 M7,11V3",listSmall:"M11,4H3V3h8V4z M11,9H3v1h8V9z M11,6H3v1h8V6z",thumbXSmall:"M6,6H2V3h4V6z M12,3H8v3h4V3z M6,8H2v3h4V8z M12,8H8v3h4V8z",eyeHide:"M19.781,4.592 L21.552,6.272 L19.239,8.467 C21.488,9.601 23.362,11.298 25,13.186 C20.879,18.097 14.534,21.593 8.14,19.004 L5.219,21.776 L3.448,20.096 L5.761,17.9 C3.573,16.71 1.624,15.072 0,13.186 C2.735,10.019 6.181,7.253 10.432,6.602 C11.132,6.495 11.845,6.518 12.551,6.476 C14.03,6.531 15.436,6.958 16.838,7.386 L19.781,4.592 z M17.152,10.449 L16.088,11.458 L16.098,11.48 L11.356,15.995 L11.902,16.512 L16.432,12.199 C16.554,12.509 16.546,12.855 16.578,13.182 C16.578,15.412 14.674,17.221 12.324,17.22 C11.124,17.106 11.733,17.245 10.508,16.756 L10.108,17.135 C14.331,18.386 17.629,16.231 20.391,13.185 C19.486,12.082 18.4,11.139 17.152,10.449 z M12.357,8.854 C8.758,9.069 6.619,10.465 4.257,13.185 C5.207,14.373 6.45,15.227 7.71,16.051 L8.665,15.144 C8.045,13.746 8.2,14.412 8.07,13.182 C8.07,10.952 9.974,9.144 12.324,9.144 C13.614,9.267 12.915,9.119 14.391,9.709 L14.748,9.37 C13.149,8.884 13.947,9.051 12.357,8.854 z",minimize:"M0,11.5 L12,11.5",maximize:"M12,0 L12,12 L0,12 L0,0 L12,0 z M11,1.998 L1,1.998 L1,11.002 L11,11.002 L11,1.998 z",desktop:"M1.195,26.607 C0.561,26.543 0.018,26 -0.018,25.395 L0.018,3.755 C0.018,3.086 0.561,2.542 1.23,2.542 L30.805,2.542 C31.474,2.542 32.018,3.086 32.018,3.755 L31.982,25.394 C32.018,26 31.474,26.543 30.77,26.608 L18.932,26.607 C18.932,26.607 18.719,28.746 20.05,29.45 C20.9,29.9 20.558,30.258 20.558,30.258 L11.407,30.258 C11.407,30.258 11.09,29.93 11.95,29.5 C13.45,28.75 13.144,26.607 13.144,26.607 L1.195,26.607 z M30.237,4.404 L1.798,4.404 L1.798,20.531 L30.237,20.531 L30.237,4.404 z",tablet:"M25.638,0 C26.307,0 26.85,0.543 26.85,1.213 L26.85,30.787 C26.85,31.457 26.307,32 25.638,32 L6.362,32 C5.693,32 5.15,31.457 5.15,30.787 L5.15,1.213 C5.15,0.543 5.693,0 6.362,0 L25.638,0 z M16,29.476 C15.553,29.476 15.19,29.838 15.19,30.286 C15.19,30.733 15.553,31.095 16,31.095 C16.447,31.095 16.81,30.733 16.81,30.286 C16.81,29.838 16.447,29.476 16,29.476 z M25.188,3.231 L6.812,3.231 L6.812,28.769 L25.188,28.769 L25.188,3.231 z M15.896,1.406 C15.729,1.406 15.594,1.54 15.594,1.707 C15.594,1.874 15.729,2.009 15.896,2.009 C16.062,2.009 16.198,1.874 16.198,1.707 C16.198,1.54 16.062,1.406 15.896,1.406 z",mobile:"M21.718,0 C22.754,0 23.594,0.836 23.594,1.869 L23.594,30.131 C23.594,31.164 22.754,32 21.718,32 L10.282,32 C9.246,32 8.406,31.164 8.406,30.132 L8.406,1.868 C8.406,0.836 9.246,0 10.282,0 L21.718,0 z M16,28.5 C15.352,28.5 14.826,29.023 14.826,29.668 C14.826,30.314 15.352,30.837 16,30.837 C16.648,30.837 17.174,30.314 17.174,29.668 C17.174,29.023 16.648,28.5 16,28.5 z M22.539,4.083 L9.461,4.083 L9.461,27.345 L22.539,27.345 L22.539,4.083 z M17.287,2.563 L14.938,2.563 C14.876,2.563 14.825,2.623 14.825,2.697 L14.825,2.999 C14.825,3.073 14.875,3.133 14.938,3.133 L17.287,3.133 C17.351,3.133 17.402,3.073 17.402,2.999 L17.402,2.697 C17.402,2.623 17.351,2.563 17.287,2.563 z M16.117,1.042 C15.923,1.042 15.766,1.199 15.766,1.393 C15.766,1.586 15.923,1.743 16.117,1.743 C16.31,1.743 16.467,1.586 16.467,1.393 C16.467,1.199 16.31,1.042 16.117,1.042 z",close:"M0,0l12,12 M0,12l12-12",closeSmall:"M3,3l8,8 M3,11l8-8",plus:"M 6.5591462,0.00335385 6.5033537,13.059146",minus:"M 0.0033543,6.5033535 13.059146,6.5591465",operand:"m 0.07131516,7.5193495 14.99702684,0",
fullscreen:"M0,2h2.77v0.898H0.923v1.801H0V2z M0,8.3h0.923v1.8H2.77V11H0V8.3z M1.846,3.8h8.308v5.4H1.846V3.8z M2.77,4.699V8.3h6.46 V4.699H2.77z M9.23,2H12v2.699h-0.923V2.898H9.23V2z M9.23,10.1h1.847V8.3H12V11H9.23V10.1z",resize:"M5.795,11l5.121-5.125 M9.293,11l1.623-1.623 M2.314,10.979l8.608-8.607",arrow1Left:"M7.5,20l18.338,18.336l6.662-6.664L20.829,20L32.5,8.327l-6.662-6.663L7.5,20z",arrow1Right:"M7.5,8.329L19.172,20L7.5,31.674l6.664,6.662L32.5,20L14.164,1.665L7.5,8.329z",arrow2Left:"M9.5,20l16.792,16.151l4.208-4.046L17.913,20L30.5,7.896l-4.208-4.047L9.5,20z",arrow2Right:"M9.5,7.894L22.084,20L9.5,32.104l4.208,4.047L30.5,20L13.708,3.849L9.5,7.894z",arrow3Left:"M66.5,15 L33.5,50 L66.5,85",arrow3Right:"M33,85 L67,50 L33,15",arrow3Down:"M15,33 L50,67 L85,33",plus1Left:"M0,15v10h40V15H0z",plus1Right:"M0,15v9.999h15V40h9.998V24.999H40V15H24.998V0H15v15H0z",plus2Left:"M5,17v6h30v-6H5z",plus2Right:"M5,17.001v5.998h12V35h6V22.999H35v-5.998H23.001V5h-6v12.001H5z",cursorThumbs:"M8,12h11v7H8V12z M8,20h11v7H8V20z M20,12h11v7H20V12z M20,20h11v7H20V20z",updates:"M7,3.563v4.649 M7,1.541C3.986,1.541,1.541,3.986,1.541,7c0,3.017,2.445,5.459,5.459,5.459c3.017,0,5.459-2.442,5.459-5.459C12.459,3.986,10.014,1.541,7,1.541z M6.333,9.022L7,9.832l0.665-0.81H6.333z",menuIconMobile:"M0,0 L20,0 L20,20 L0,20 L0,20 L20,20 L20,15 L0,15 L0,12 L20,12 L20,9 L0,9 L0,6 L20,6 L20,3 L0,3 L0,0 z",bigX:"M38.5,38.5L20.5,20.5L38.5,2.5L20.5,20.5L38.5,38.5ZM2.5,2.5L20.5,20.5L2.5,38.5L20.5,20.5L2.5,2.5Z",liveBtn:"M7,11.5 C4.515,11.5 2.5,9.485 2.5,7 C2.5,4.515 4.515,2.5 7,2.5 C9.485,2.5 11.5,4.515 11.5,7 C11.5,9.485 9.485,11.5 7,11.5 z",search:"M9.216,0.017 C11.426,0.129 13.407,1.063 15,2.577 L15,2.577 C17.352,4.953 18.186,8.521 17.078,11.685 C16.691,12.792 16.082,13.715 15.347,14.616 L16.512,14.302 L17.787,15.578 L17.785,15.587 L24.981,22.783 L22.771,24.993 L15.572,17.794 L15.571,17.794 L14.295,16.518 L14.61,15.349 C14.029,15.823 13.915,15.952 13.253,16.343 C10.537,17.95 7.052,17.95 4.336,16.343 C3.693,15.962 3.128,15.5 2.589,14.988 C-0.838,11.56 -0.838,6.004 2.589,2.577 C4.537,0.698 6.547,0.017 9.216,0.017 z M8.762,2.634 C7.117,2.657 5.65,3.34 4.446,4.433 C2.044,6.835 2.044,10.729 4.446,13.131 C6.847,15.533 10.742,15.533 13.143,13.131 C15.545,10.729 15.545,6.835 13.143,4.433 C12.001,3.289 10.672,2.791 9.089,2.639 L8.762,2.634 z",cloud:"M8.279,2.576 L9.048,2.632 C10.89,2.933 12.369,3.804 13.452,5.307 C13.976,5.2 13.716,5.232 14.233,5.206 C16.032,5.236 17.521,6.473 17.878,8.229 C19.765,8.595 20.911,10.333 21.003,12.16 C20.965,14.315 19.296,16.099 17.129,16.208 L15.216,16.217 L16.412,14.939 L17.011,14.931 L14.093,14.931 L10.825,18.424 L7.557,14.931 L5.001,14.931 L5.001,14.927 L7.553,14.927 L7.551,14.925 L9.688,14.925 L9.688,10.046 L11.962,10.046 L11.962,14.925 L14.099,14.925 L14.096,14.927 L17.013,14.927 L17.013,14.931 C18.528,14.846 19.699,13.681 19.725,12.16 C19.725,10.625 18.48,9.38 16.945,9.38 L16.85,9.385 C16.907,9.219 16.861,9.362 16.893,8.938 C16.893,7.48 15.711,6.298 14.253,6.298 C13.727,6.325 13.202,6.435 12.776,6.765 C12.033,5.001 10.151,3.977 8.299,3.932 C5.544,3.932 3.31,6.173 3.31,8.938 L3.324,9.229 C2.09,9.75 1.31,10.619 1.278,12.017 C1.278,13.631 2.593,14.939 4.207,14.939 L5.237,14.939 L6.433,16.217 L3.915,16.203 C1.655,16.105 0.108,14.161 0,12.017 C0.009,10.539 0.757,9.297 1.96,8.484 C2.144,5.037 4.983,2.743 8.279,2.576 z",attachment:"M9.931,1.636 C9.583,1.288 9.177,1.017 8.724,0.833 C8.286,0.655 7.824,0.564 7.349,0.564 C6.876,0.564 6.412,0.653 5.975,0.829 C5.522,1.012 5.116,1.279 4.767,1.626 L0.846,5.538 C0.571,5.811 0.358,6.13 0.212,6.487 C0.072,6.83 -0,7.194 -0,7.568 C-0,7.94 0.071,8.302 0.21,8.646 C0.353,9.001 0.565,9.32 0.838,9.594 C1.112,9.869 1.431,10.081 1.787,10.225 C2.131,10.365 2.494,10.436 2.867,10.436 C3.24,10.436 3.603,10.365 3.947,10.227 C4.304,10.082 4.623,9.87 4.898,9.597 L8.014,6.493 C8.214,6.294 8.368,6.062 8.473,5.802 C8.575,5.552 8.626,5.287 8.626,5.016 C8.626,4.458 8.409,3.937 8.014,3.545 C7.62,3.149 7.097,2.931 6.54,2.928 C5.982,2.927 5.457,3.144 5.062,3.539 L3.122,5.48 C3.023,5.579 2.97,5.708 2.97,5.846 C2.97,5.984 3.023,6.115 3.122,6.212 L3.13,6.22 C3.331,6.423 3.66,6.423 3.863,6.221 L5.808,4.282 C6.214,3.879 6.874,3.877 7.281,4.277 C7.477,4.472 7.583,4.732 7.583,5.011 C7.583,5.293 7.474,5.557 7.276,5.754 L4.161,8.857 C4.156,8.863 4.151,8.867 4.148,8.874 C3.804,9.209 3.35,9.392 2.868,9.389 C2.383,9.387 1.928,9.198 1.587,8.857 C1.417,8.683 1.285,8.48 1.194,8.255 C1.106,8.036 1.062,7.804 1.062,7.568 C1.062,7.084 1.248,6.631 1.587,6.291 C1.592,6.287 1.596,6.284 1.6,6.28 L5.513,2.369 C5.516,2.366 5.52,2.361 5.523,2.356 C5.771,2.113 6.059,1.923 6.38,1.795 C6.693,1.67 7.021,1.607 7.36,1.607 C7.698,1.607 8.028,1.672 8.339,1.797 C8.662,1.928 8.952,2.119 9.199,2.366 C9.447,2.613 9.638,2.903 9.769,3.226 C9.895,3.537 9.959,3.867 9.959,4.205 C9.959,4.545 9.895,4.876 9.768,5.19 C9.637,5.514 9.444,5.806 9.195,6.056 L6.491,8.751 C6.393,8.85 6.338,8.979 6.338,9.118 C6.338,9.257 6.393,9.387 6.49,9.484 L6.496,9.49 C6.697,9.692 7.026,9.692 7.228,9.49 L9.929,6.796 C10.277,6.447 10.548,6.041 10.733,5.588 C10.911,5.15 11,4.688 11,4.214 C11,3.74 10.91,3.278 10.733,2.841 C10.55,2.389 10.28,1.983 9.931,1.636 z",gear:"M10.329,6.099 L9.534,5.923 C9.522,5.462 9.423,5.017 9.239,4.597 L9.857,4.097 C9.956,4.016 9.971,3.871 9.891,3.772 L9.048,2.731 C9.009,2.683 8.954,2.653 8.893,2.646 C8.832,2.64 8.771,2.658 8.723,2.696 L8.121,3.185 C7.753,2.908 7.342,2.709 6.9,2.593 L6.9,1.827 C6.9,1.699 6.796,1.596 6.669,1.596 L5.329,1.596 C5.201,1.596 5.098,1.699 5.098,1.827 L5.098,2.594 C4.646,2.713 4.228,2.918 3.853,3.205 L3.245,2.72 C3.197,2.682 3.136,2.665 3.075,2.672 C3.015,2.679 2.959,2.71 2.921,2.757 L2.086,3.806 C2.048,3.854 2.031,3.915 2.038,3.976 C2.045,4.037 2.075,4.092 2.123,4.13 L2.747,4.627 C2.568,5.047 2.473,5.493 2.465,5.953 L1.669,6.137 C1.609,6.151 1.558,6.188 1.525,6.239 C1.493,6.291 1.482,6.354 1.496,6.413 L1.798,7.72 C1.827,7.844 1.95,7.921 2.075,7.893 L2.894,7.703 C3.108,8.095 3.389,8.438 3.731,8.724 L3.362,9.497 C3.336,9.552 3.333,9.616 3.353,9.673 C3.373,9.731 3.416,9.778 3.471,9.804 L4.681,10.381 C4.712,10.396 4.746,10.404 4.78,10.404 C4.806,10.404 4.832,10.399 4.857,10.391 C4.915,10.37 4.962,10.328 4.988,10.273 L5.361,9.49 C5.792,9.569 6.239,9.567 6.666,9.486 L7.046,10.264 C7.101,10.378 7.24,10.426 7.354,10.37 L8.559,9.782 C8.614,9.755 8.656,9.708 8.676,9.65 C8.696,9.592 8.692,9.529 8.665,9.474 L8.291,8.706 C8.631,8.416 8.909,8.07 9.119,7.676 L9.939,7.858 C10.064,7.885 10.187,7.807 10.214,7.683 L10.504,6.374 C10.532,6.25 10.453,6.127 10.329,6.099 z M7.516,6.013 C7.516,6.849 6.836,7.529 6,7.529 C5.164,7.529 4.484,6.849 4.484,6.013 C4.484,5.177 5.164,4.497 6,4.497 C6.836,4.497 7.516,5.177 7.516,6.013 z"},Svg=function(e){function t(e){this.vars={};var t;for(t in e)this.vars[t]=e[t];var i=document.createElementNS("http://www.w3.org/2000/svg",this.vars.type||"svg");i.style.position="absolute",i.style.display="block",i.proxy=this,this._private={},this.element=i,this.children=[],this.style=i.style,this.name=this.vars.type||"svg",this.events=this.vars.events||globalEvents,this.listeners=this.events.listeners}var i=e.Sprite,n=["dispatchEvent","addEventListener","removeEventListener","removeAllListeners","addChild","removeChild","removeChildren","childAdded","moveToTop","event","hitTestPoint","hitTestAbs","globalToLocal","localToGlobal","focus","blur"],o=["backgroundPositionX","backgroundPositionY","backgroundRepeatX","backgroundRepeatY","baselineShift","borderBottomLeftRadius","borderBottomRightRadius","borderBottomWidth","borderImageWidth","borderLeftWidth","borderRadius","borderRightWidth","borderSpacing","borderTopLeftRadius","borderTopRightRadius","borderTopWidth","borderWidth","bottom","fontSize","height","left","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","outlineOffset","outlineWidth","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","right","strokeWidth","textIndent","textLineThroughWidth","textOverlineWidth","textUnderlineWidth","top","width","wordSpacing"],a=["cx","cy","d","points","r","rx","ry","fill","stroke","width","height"],r=["backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","border","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxShadow","boxSizing","bufferedRendering","clear","color","content","cursor","direction","display","float","font","fontFamily","fontKerning","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","height","imageRendering","left","letterSpacing","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","mask","maskType","maxHeight","maxWidth","maxZoom","minHeight","minWidth","minZoom","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","page","pageBreakAfter","paintOrder","pointerEvents","position","resize","right","size","src","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","tableLayout","textAlign","textAnchor","textDecoration","textIndent","textLineThroughColor","textLineThroughMode","textLineThroughStyle","textLineThroughWidth","textOverflow","textOverlineColor","textOverlineMode","textOverlineStyle","textOverlineWidth","textRendering","textShadow","textTransform","textUnderlineColor","textUnderlineMode","textUnderlineStyle","textUnderlineWidth","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","userZoom","verticalAlign","visibility","webkitBackfaceVisibility","webkitBoxShadow","webkitFilter","webkitFontSmoothing","webkitHighlight","webkitTransformStyle","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitUserDrag","webkitUserModify","webkitUserSelect","whiteSpace","width","wordBreak","wordSpacing","wordWrap","zIndex","zoom"];return function(e,n,a){for(var r=e.length;r--;)t.prototype[e[r]]=i.prototype[e[r]];n.forEach(function(e){/fill|stroke|strokeWidth|width|height|x|y|transition/.test(e)||Object.defineProperty(t.prototype,e,{get:function(){return this._private[e]},set:function(t){this._private[e]=t,this.element.style[e]=o.indexOf(e)>-1?t+"px":t}})}),a.forEach(function(e){Object.defineProperty(t.prototype,e,{get:function(){return this._private[e]},set:function(t){this._private[e]=t,this.element.setAttribute(e,t)}})}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._private.scale},set:function(){var e=arguments[1]?arguments[0]+","+arguments[1]:arguments[0];this._private.scale=e,this.element.setAttribute("transform","scale("+e+")")}}),Object.defineProperty(t.prototype,"fillRule",{get:function(){return this._private.fillRule},set:function(e){this._private.fillRule=e,this.element.setAttribute("fill-rule",e)}}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._private.strokeWidth},set:function(e){this._private.strokeWidth=e,this.element.setAttribute("stroke-width",e)}}),Object.defineProperty(t.prototype,"topParentName",{get:function(){return this.parent?this.parent.topParentName:this.topParentName}}),Object.defineProperty(t.prototype,"stageX",{get:function(){return this.parent?this.parent.stageX+this.x:this.x}}),Object.defineProperty(t.prototype,"stageY",{get:function(){return this.parent?this.parent.stageY+this.y:this.y}}),Object.defineProperty(t.prototype,"absX",{get:function(){var e=0,t=this.element;if(t.offsetParent)do e+=t.offsetLeft;while(t=t.offsetParent);return e}}),Object.defineProperty(t.prototype,"absY",{get:function(){var e=0,t=this.element;if(t.offsetParent)do e+=t.offsetTop;while(t=t.offsetParent);return e}}),Object.defineProperty(t.prototype,"class",{get:function(){return this.element.className},set:function(e){this.element.setAttribute("class",e)}}),Object.defineProperty(t.prototype,"selectable",{get:function(){return this._private.selectable},set:function(e){this._private.selectable=e,this._private.selectable||"input"===this.vars.type||"textarea"===this.vars.type?(this.style.cursor="auto",this.style["-webkit-touch-callout"]="auto",this.style["-webkit-user-select"]="auto",this.style["-khtml-user-select"]="auto",this.style["-moz-user-select"]="auto",this.style["-ms-touch-callout"]="auto",this.style["user-select"]="auto"):(this.style.cursor="default",this.style["-webkit-touch-callout"]="none",this.style["-webkit-user-select"]="none",this.style["-khtml-user-select"]="none",this.style["-moz-user-select"]="none",this.style["-ms-touch-callout"]="none",this.style["user-select"]="none")}}),Object.defineProperty(t.prototype,"x",{get:function(){return this._private.x||0},set:function(e){this._private.x=e,this.style.left=e+"px"}}),Object.defineProperty(t.prototype,"y",{get:function(){return this._private.y||0},set:function(e){this._private.y=e,this.style.top=e+"px"}}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._private.opacity},set:function(e){this._private.opacity=e,this.style.opacity=e}}),Object.defineProperty(t.prototype,"translate",{get:function(){return this._private.translate},set:function(e){this._private.translate=e,this._private.translateX=e[0],this._private.translateY=e[1],this.style["-webkit-transform"]="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)",this.style["-ms-transform"]="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)",this.style.transform="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)"}}),Object.defineProperty(t.prototype,"translateX",{get:function(){var e=new TransformMatrix(this.element);return e.x},set:function(e){this._private.translateX=e,this._private.translateY=this._private.translateY||0,this.style["-webkit-transform"]="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)",this.style["-ms-transform"]="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)",this.style.transform="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)"}}),Object.defineProperty(t.prototype,"translateY",{get:function(){var e=new TransformMatrix(this.element);return e.y},set:function(e){this._private.translateY=e,this._private.translateX=this._private.translateX||0,this.style["-webkit-transform"]="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)",this.style["-ms-transform"]="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)",this.style.transform="translate3d("+this._private.translateX+"px,"+this._private.translateY+"px, 0px)"}}),Object.defineProperty(t.prototype,"translateZ",{get:function(){return this._private.translateZ},set:function(e){this._private.translateZ=e,this._private.translateZ=this._private.translateZ||0,this.style["-webkit-transform"]="translate3d("+this._private.translateZ+"px,"+this._private.translateZ+"px, 0px)",this.style["-ms-transform"]="translate3d("+this._private.translateZ+"px,"+this._private.translateZ+"px, 0px)",this.style.transform="translate3d("+this._private.translateZ+"px,"+this._private.translateZ+"px, 0px)"}}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._private.rotate},set:function(e){this._private.rotate=e,this.style["-webkit-transform"]="rotate("+e+"deg)",this.style["-moz-transform"]="rotate("+e+"deg)",this.style["-o-transform"]="rotate("+e+"deg)",this.style.transform="rotate("+e+"deg)"}}),Object.defineProperty(t.prototype,"numChildren",{get:function(){return this.children.length}}),Object.defineProperty(t.prototype,"transition",{get:function(){return this._private.transition},set:function(e){this._private.transition=e,e=0===e?"none":"all "+e+"s cubic-bezier(1, 0, 0.3, 1)",this.style.WebkitTransition=e,this.style.MozTransition=e,this.style.OTransition=e,this.style.transition=e}})}(n,r,a),t}({Sprite:Sprite});VideoPlayer.playerID=0,VideoPlayer.getNextPlayerID=function(){return VideoPlayer.playerID++},VimeoPlayer.playerID=0,VimeoPlayer.getNextPlayerID=function(){return VimeoPlayer.playerID++},stage.addEventListener(LOAD,function(){dx.address=Address,dx.site=new SiteController({Sprite:Sprite,TextField:TextField,Bitmap:Bitmap,Tile:Tile,FooterController:FooterController,FooterView:FooterView,LogoController:LogoController,LogoView:LogoView,SectionController:SectionController,MediaModule:MediaModule,MenuController:MenuController,MenuView:MenuView,NavbarController:NavbarController,NavbarView:NavbarView,AddressController:AddressController,OverlayController:OverlayController,OverlayView:OverlayView,ImageView:ImageView,VideoView:VideoView,PageView:PageView,ContactView:ContactView,VideoPlayer:VideoPlayer,VimeoPlayer:VimeoPlayer,LoadingIndicator:LoadingIndicator,ThumbsModule:ThumbsModule,Cursor:Cursor,StaticNav:StaticNav,Tooltip:Tooltip,passwordInput:passwordInput,searchInput:searchInput,IntroView:IntroView,SiteService:SiteService,Popup:Popup,TouchNav:TouchNav})});var passedSections=[],layoutCalcs={_logoWidth:0,_logoHeight:0,_footerWidth:0,_footerHeight:0,_fotomotoWidth:0,_fotomotoHeight:0,_navbarHeight:0,_section:void 0,_thumbContentHeight:0,_mediaContentHeight:0,_maskView:{},_uriState:{},mobileFooterPadding:5,mediaOverlayState:"closed",isLandingMedia:!1,isMenuResponsiveOverlay:!1,_activeMediaType:void 0,_mediaMarginPrefix:void 0,_sectionStates:Object.keys(SECTIONS_MODEL).reduce(function(e,t){return"ROOT_SECTION"===t?e["/"]={}:e[t]={id:SECTIONS_MODEL[t].id,key:SECTIONS_MODEL[t].key,height:stage.height,zoneHeight:stage.height,assetId:0,mode:""},e},{landingMedia:{key:"landingMedia",zoneHeight:stage.height,height:stage.height,assetId:0,mode:""}}),get _thumbsVisible(){return this._section&&this._section.key&&this._sectionStates[this._section.key]&&/thumbs/.test(this._sectionStates[this._section.key].mode)},set activeMediaType(e){this._mediaMarginPrefix=formatMediaType(e),this._activeMediaType=e},updateSectionState:function(e,t){var i=this;i._sectionStates[e]=[t].reduce(function(e,t){return Object.keys(t).reduce(function(e,i){return e[i]=t[i],e},e)},i._sectionStates[e]||{})},resetSectionState:function(){this._sectionStates=Object.keys(SECTIONS_MODEL).reduce(function(e,t){return"ROOT_SECTION"===t?e["/"]={}:e[t]={id:SECTIONS_MODEL[t].id,key:SECTIONS_MODEL[t].key,height:stage.height,zoneHeight:stage.height,assetId:0,mode:""},e},{landingMedia:{key:"landingMedia",zoneHeight:stage.height,height:stage.height,assetId:0,mode:""}})},getSectionState:function(e){return"string"==typeof e&&this._sectionStates[e]},getMaxScrollSectionHeight:function(e){var t=e.maxScroll.length,i=e.maxScroll.position,n=STATE.menuView.menuPositionFixed(),o=getMarginOverlap()||0,a=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height),r=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height),l=percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height),s=stage.height,d=/top/.test(STATE.menuView.placement()),c=/bottom/.test(STATE.menuView.placement()),h=!LAYOUT_MODEL.isMenuScrollReveal&&(d||c),u=0;return isFillSiteSlideshow(e.section)?s=stage.height:t>1&&0===i?h?n?d?(u=r+a-o,s=stage.height-u):(u=l+a-o,s=stage.height-u-r):d?(u=r+a-o,s=stage.height-u):s=stage.height-r:s=stage.height-r:i===t-1?h?n?d?(u=r+a-o,s=stage.height-u-l):(u=l+a-o,s=stage.height-u):d?s=stage.height-l:(u=l+a-o,s=stage.height-u):s=stage.height-l:1===t?h?n?d?(u=r+a-o,s=stage.height-u-l):(u=l+a-o,s=stage.height-u-r):d?(u=r+a-o,s=stage.height-u-l):(u=l+a-o,s=stage.height-u-r):s=stage.height-r-l:h&&n?d?(u=r+a-o,s=stage.height-u):(u=l+a-o,s=stage.height-u):s=stage.height,s},navbarView:{x:function(e){var t=percentToPixels(LAYOUT_MODEL.navbarOffsetX,stage.width);if(USER_AGENT===MOBILE){var i=""===LAYOUT_MODEL.menuDisplaceMobile||void 0===LAYOUT_MODEL.menuDisplaceMobile||LAYOUT_MODEL.menuDisplaceMobile,n=i?2*stage.width:stage.width;return n-e-15}switch(LAYOUT_MODEL.navbarAlignHorizontal){case"left":return t;case"center":return USER_AGENT===TABLET?.5*(stage.width-e):.5*(stage.width-e)+t;case"right":return stage.width-e+t;default:return t}},y:function(e){e=e||layoutCalcs._navbarHeight,layoutCalcs._navbarHeight=e;var t=percentToPixels(LAYOUT_MODEL.navbarOffsetY,stage.height);if(USER_AGENT!==MOBILE)switch(LAYOUT_MODEL.navbarAlignVertical){case"top":return t;case"center":return.5*(stage.height-e)+t;case"bottom":var i=LAYOUT_MODEL.navbarPositionFixed?window.innerHeight:STATE.siteView.height();return USER_AGENT===TABLET&&layoutCalcs.isDisplace()&&"bottom"===STATE.overrides.thumbnailSide&&"horizontal"===LAYOUT_MODEL.navbarLayout?stage.height-22:i-e+t}return 15}},footerView:{x:function(e){e=e||layoutCalcs._footerWidth,layoutCalcs._footerWidth=e;var t=percentToPixels(LAYOUT_MODEL.copyrightOffsetX,stage.width);if(USER_AGENT!==MOBILE)switch(LAYOUT_MODEL.copyrightAlignHorizontal){case"left":return t;case"center":return USER_AGENT===TABLET?.5*(stage.width-e)+t:.5*(stage.width-e)+t;case"right":return USER_AGENT===TABLET?stage.width-e+t:stage.width-e+t}else if(USER_AGENT===MOBILE)return layoutCalcs.mobileFooterPadding;return 0},y:function(e){e=e||layoutCalcs._footerHeight,layoutCalcs._footerHeight=e;var t=percentToPixels(LAYOUT_MODEL.copyrightOffsetY,stage.height);if(USER_AGENT!==MOBILE)switch(LAYOUT_MODEL.copyrightAlignVertical){case"top":return t;case"center":return.5*(stage.height-e)+t;case"bottom":var i=LAYOUT_MODEL.copyrightPositionFixed?window.innerHeight:STATE.siteView.height();return USER_AGENT===TABLET&&layoutCalcs.isDisplace()&&"bottom"===STATE.overrides.thumbnailSide?stage.height-22:i-e+t}else if(USER_AGENT===MOBILE)return stage.height-e-layoutCalcs.mobileFooterPadding;return 0}},logoView:{x:function(e){e=e||layoutCalcs._logoWidth,layoutCalcs._logoWidth=e;var t=0,i="left";if(USER_AGENT===MOBILE)t=percentToPixels(LAYOUT_MODEL.mobileLogoOffsetX,stage.width),i=LAYOUT_MODEL.mobileLogoAlignHorizontal||"left";else if(USER_AGENT===TABLET){var n=""===LAYOUT_MODEL.menuDisplaceTablet||void 0===LAYOUT_MODEL.menuDisplaceTablet||LAYOUT_MODEL.menuDisplaceTablet;t=n?percentToPixels(firstValid(LAYOUT_MODEL.tabletLogoOffsetX,LAYOUT_MODEL.logoOffsetX),stage.width)-layoutCalcs.menuView.width():percentToPixels(firstValid(LAYOUT_MODEL.tabletLogoOffsetX,LAYOUT_MODEL.logoOffsetX),stage.width),i=LAYOUT_MODEL.tabletLogoAlignHorizontal||LAYOUT_MODEL.logoAlignHorizontal}else isPod()?(t=percentToPixels(firstValid(LAYOUT_MODEL.mobileLogoOffsetX,LAYOUT_MODEL.logoOffsetX,0),stage.width),i=firstValid(LAYOUT_MODEL.mobileLogoAlignHorizontal,LAYOUT_MODEL.logoAlignHorizontal,"left")):isPad()?(t=percentToPixels(firstValid(LAYOUT_MODEL.tabletLogoOffsetX,LAYOUT_MODEL.logoOffsetX,0),stage.width),i=firstValid(LAYOUT_MODEL.tabletLogoAlignHorizontal,LAYOUT_MODEL.logoAlignHorizontal,"left")):(t=percentToPixels(LAYOUT_MODEL.logoOffsetX,stage.width),i=LAYOUT_MODEL.logoAlignHorizontal);switch(i){case"left":return t||0;case"center":return.5*(stage.width-e)+t;case"right":return stage.width-e-t}return 0},y:function(e){e=e||layoutCalcs._logoHeight,layoutCalcs._logoHeight=e;var t=0;if(USER_AGENT===MOBILE)return percentToPixels(LAYOUT_MODEL.mobileLogoOffsetY||0,stage.height);if(USER_AGENT===TABLET)switch(t=percentToPixels(firstValid(LAYOUT_MODEL.tabletLogoOffsetY,LAYOUT_MODEL.logoOffsetY),stage.height),LAYOUT_MODEL.tabletLogoAlignVertical||LAYOUT_MODEL.logoAlignVertical){case"top":return t;case"center":return.5*(stage.height-e)+t;case"bottom":return stage.height-e-t}else{t=isPod()?percentToPixels(firstValid(LAYOUT_MODEL.mobileLogoOffsetY,LAYOUT_MODEL.logoOffsetY,0),stage.height):isPad()?percentToPixels(firstValid(LAYOUT_MODEL.tabletLogoOffsetY,LAYOUT_MODEL.logoOffsetY,0),stage.height):percentToPixels(LAYOUT_MODEL.logoOffsetY,stage.height);var i=isPod()?firstValid(LAYOUT_MODEL.mobileLogoAlignVertical,LAYOUT_MODEL.logoAlignVertical,"top"):isPad()?firstValid(LAYOUT_MODEL.tabletLogoAlignVertical,LAYOUT_MODEL.logoAlignVertical,"top"):LAYOUT_MODEL.logoAlignVertical;switch(i){case"top":return t;case"center":return.5*(stage.height-e)+t;case"bottom":var n=LAYOUT_MODEL.logoPositionFixed?window.innerHeight:STATE.siteView.height();return n-e-t}}return 0}},menuBullet:{updateSize:function(e){var t=getFontData(LAYOUT_MODEL.menuFont),i=document.createElement("div"),n=e?LAYOUT_MODEL.menuSubFontSize:LAYOUT_MODEL.menuFontSize;i.innerHTML=menuBullet[LAYOUT_MODEL.menuBulletType],i.setAttribute("style","margin:0; padding:0; position:absolute; display:block; white-space:nowrap; opacity:0; font-family:"+t.family+"; font-weight:"+t.weight+"; font-size:"+n+"px"),document.body.appendChild(i),layoutCalcs.menuBullet.width=parseInt(window.getComputedStyle(i,null).width,10),layoutCalcs.menuBullet.height=parseInt(window.getComputedStyle(i,null).height,10),document.body.removeChild(i),i=null}},menuText:{x:function(e){e=e||layoutCalcs._menuTextWidth,layoutCalcs._menuTextWidth=e;var t=percentToPixels(STATE.menuView.menuTextPaddingHorizontal(),stage.width),i=STATE.menuView.menuTextAlignHorizontal();if(USER_AGENT===MOBILE)return 0;switch(USER_AGENT===TABLET&&(t=firstValid(percentToPixels(LAYOUT_MODEL.menuTextPaddingHorizontalTablet,stage.width),10),i=LAYOUT_MODEL.menuTextAlignHorizontalTablet||STATE.menuView.menuTextAlignHorizontal(),/top|bottom/.test(STATE.menuView.placement())&&(i=LAYOUT_MODEL.menuTextAlignHorizontalTablet||"left")),i){case"left":return t;case"center":return.5*(layoutCalcs.menuView.width()-e);case"right":return layoutCalcs.menuView.width()-e-t}},y:function(e){if(USER_AGENT===MOBILE)return layoutCalcs.logoView.y()+layoutCalcs._logoHeight+percentToPixels(firstValid(LAYOUT_MODEL.menuTextPaddingVerticalMobile,10),stage.height);var t=USER_AGENT===TABLET?LAYOUT_MODEL.menuTextAlignVerticalTablet||STATE.menuView.menuTextAlignVertical():STATE.menuView.menuTextAlignVertical(),i=USER_AGENT===TABLET?percentToPixels(firstValid(LAYOUT_MODEL.menuTextPaddingVerticalTablet,STATE.menuView.menuTextPaddingVertical()),stage.height):percentToPixels(STATE.menuView.menuTextPaddingVertical(),stage.height);switch(t){case"top":return i;case"center":return e>layoutCalcs.menuView.height()?0:.5*(layoutCalcs.menuView.height()-e)+i;case"bottom":return layoutCalcs.menuView.height()-e-i}return 0}},menuView:{x:function(){return USER_AGENT===MOBILE||USER_AGENT===TABLET||"overlay"===STATE.menuView.placement()?0:/top|bottom/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.menuOffsetY,stage.width):"right"===STATE.menuView.placement()?percentToPixels(LAYOUT_MODEL.sitePaddingRight,stage.width)-(getMarginOverlap()||0):percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.height)-(getMarginOverlap()||0)},y:function(){return USER_AGENT===MOBILE||USER_AGENT===TABLET||"overlay"===STATE.menuView.placement()?0:/left|right/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+percentToPixels(LAYOUT_MODEL.menuOffsetY,stage.height):"bottom"===STATE.menuView.placement()?percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.width)-(getMarginOverlap()||0):percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.width)-(getMarginOverlap()||0)},width:function(){if(USER_AGENT===MOBILE||"overlay"===STATE.menuView.placement())return stage.width;var e=!layoutCalcs._menuTextWidth||layoutCalcs._menuTextWidth<150?150:layoutCalcs._menuTextWidth;return USER_AGENT===TABLET&&percentToPixels(LAYOUT_MODEL.menuWidthMobile,stage.width)?percentToPixels(LAYOUT_MODEL.menuWidthMobile,stage.width)?percentToPixels(LAYOUT_MODEL.menuWidthMobile,stage.width):e:USER_AGENT===TABLET&&/top|bottom/.test(STATE.menuView.placement())?firstValid(LAYOUT_MODEL.menuWidthMobile,e):/left|right/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.menuWidth,stage.width):stage.width-(percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.sitePaddingRight,stage.width))-percentToPixels(LAYOUT_MODEL.menuOffsetY,stage.width)},height:function(){return USER_AGENT===MOBILE||USER_AGENT===TABLET||"overlay"===STATE.menuView.placement()?stage.height:/top|bottom/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.menuWidth,stage.height):stage.height-(percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height))-percentToPixels(LAYOUT_MODEL.menuOffsetY,stage.height)}},mediaView:{x:function(){if(USER_AGENT===MOBILE||USER_AGENT===TABLET||isInMediaOverlay())return 0;var e=/left/.test(STATE.menuView.placement())?-getMarginOverlap()||0:0;return"left"===STATE.menuView.placement()?percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.menuWidth,stage.width)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.width)+e:percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+e},y:function(e){if(USER_AGENT===MOBILE||USER_AGENT===TABLET||isInMediaOverlay())return 0;var t=/top/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?-getMarginOverlap()||0:0;return"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior&&"multiple"===layoutCalcs.sectionDisplayMode?!LAYOUT_MODEL.isMenuScrollReveal&&STATE.menuView.menuPositionFixed()&&/top/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height)+t:0:/top/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height)+t:percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+t},width:function(e){var t=e||0;if(USER_AGENT===MOBILE||USER_AGENT===TABLET||isInMediaOverlay())return stage.width;if(/left|right/.test(STATE.menuView.placement())){var i=getMarginOverlap()||0;return stage.width-(percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.sitePaddingRight,stage.width)+percentToPixels(LAYOUT_MODEL.menuWidth,stage.width)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.width)+t)+i}return stage.width-(percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.sitePaddingRight,stage.width))},height:function(e,t){var i="unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior||(STATE.siteView.unifiedPageScroll()||/unified/.test(LAYOUT_MODEL.siteDisplayBehavior))&&/overlay/.test(STATE.overrides.siteDisplayBehavior)&&STATE.overrides.siteDisplayGalleryOnlyOverlay&&/thumbs/.test(layoutCalcs._uriState.mode)?t?STATE.getSectionZoneHeight(e):STATE.getSectionHeight(e):stage.height,n=layoutCalcs.getSectionState(e),o=!!n&&n.isFullTextHeight,a=/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?getMarginOverlap()||0:0,r=0,l=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height),s=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height);return t||/unifiedSiteScrollVertical/.test(STATE.overrides.siteDisplayBehavior)||!STATE.siteView.unifiedPageScroll()||(i=/vScroll/.test(STATE.overrides.transitionType)?/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?STATE.getSectionHeight(e)+(l+s)>stage.height?STATE.getSectionHeight(e):stage.height:STATE.getSectionHeight(e)>stage.height?STATE.getSectionHeight(e):stage.height:stage.height),
USER_AGENT===TABLET&&"bottom"===LAYOUT_MODEL.navbarAlignVertical&&layoutCalcs.isDisplace()&&"bottom"===STATE.overrides.thumbnailSide?i-30:USER_AGENT===MOBILE||USER_AGENT===TABLET||"overlay"===STATE.overrides.siteDisplayBehavior?i:(r="unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior&&"multiple"===layoutCalcs.sectionDisplayMode?!LAYOUT_MODEL.isMenuScrollReveal&&STATE.menuView.menuPositionFixed()&&/top|bottom/.test(STATE.menuView.placement())&&i>=stage.height-l&&!o&&!t?i-l:i:STATE.siteView.unifiedPageScroll()&&/vScroll/.test(STATE.overrides.transitionType)?i===stage.height&&/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?i-(l+s):i:/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?i-(l+s):i-s,r+a)},size:{x:function(){return/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)?0:layoutCalcs.mediaView.x()},y:function(e){return/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)?0:layoutCalcs.mediaView.y(e)},width:function(){return layoutCalcs.mediaView.width()},height:function(e){return layoutCalcs.mediaView.height(e)}}},landingMediaView:{x:function(){return 0},y:function(){return 0},width:function(){return stage.width},height:function(){return stage.height}},mediaMask:{x:function(){return"contact"===layoutCalcs._mediaMarginPrefix?0:percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginLeft"],stage.width)},y:function(e){return"contact"===layoutCalcs._mediaMarginPrefix?0:percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginTop"],stage.height)},width:function(e){return"contact"===layoutCalcs._mediaMarginPrefix?layoutCalcs.mediaView.width():(e||layoutCalcs.mediaView.width())-(percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginLeft"],stage.width)+percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginRight"],stage.width))},height:function(e,t){return"contact"===layoutCalcs._mediaMarginPrefix?layoutCalcs.mediaView.height(t):(e||layoutCalcs.mediaView.height(t))-(percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginTop"],stage.height)+percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginBottom"],stage.height))}},captionView:{size:function(e,t){layoutCalcs.captionView.currentText=e||layoutCalcs.captionView.currentText;var i=document.createElement("span"),n=getFontData(LAYOUT_MODEL.captionFont);i.innerHTML=layoutCalcs.captionView.currentText;var o="padding:"+(t||0)+"px";i.setAttribute("style","position:absolute; display:block; white-space:nowrap; opacity:1; font-family:"+n.family+"; font-weight:"+n.weight+"; font-size:"+LAYOUT_MODEL.captionFontSize+"px;"+o),document.body.appendChild(i);var a=percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginLeft"],stage.height),r=percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginRight"],stage.height),l=STATE.mediaView.width()-(a+r)-2*t;i.offsetWidth>l?(layoutCalcs.captionView.width=l+2*t,i.style.width=l+2*t+"px",i.style.whiteSpace="normal",layoutCalcs.captionView.height=i.offsetHeight):(layoutCalcs.captionView.width=i.offsetWidth,layoutCalcs.captionView.height=i.offsetHeight),document.body.removeChild(i),i=null}},isDisplace:function(){return!(USER_AGENT===MOBILE||!layoutCalcs._section||!layoutCalcs._thumbsVisible)&&(layoutCalcs._section.thumb&&"strip"===STATE.overrides.thumbnailType&&"displace"===STATE.overrides.thumbnailDock)}},STATE={get lightboxHash(){return localStorage.getItem("lightboxHash")},cacheLightboxSection:function(){var e=Object.keys(SECTIONS_MODEL).map(function(e){return SECTIONS_MODEL[e]}).filter(function(e){return e.isLightbox})[0];STATE.lightboxSection=e,e||localStorage.removeItem("lightboxHash")},lightboxButtonsEnabled:function(){return STATE.lightboxSection&&(STATE.lightboxSection.isUserEnableLightbox&&(STATE.userEnabledLightbox||STATE.lightboxSection.media.length)||!STATE.lightboxSection.isUserEnableLightbox)},setSectionHeight:function(e,t){layoutCalcs.updateSectionState(e,{height:t})},getSectionHeight:function(e){var t=layoutCalcs.getSectionState(e);return e&&t&&("unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior||STATE.siteView.unifiedPageScroll())?t.height:stage.height},getSectionZoneHeight:function(e){var t=layoutCalcs.getSectionState(e);return e&&t&&"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior?t.zoneHeight:stage.height},overrides:{logoZIndex:LAYOUT_MODEL.logoZIndex,containerColor:LAYOUT_MODEL.containerColor,transitionType:touchDeviceTransition()||LAYOUT_MODEL.transitionType,transitionDuration:LAYOUT_MODEL.transitionDuration,imageAlignHorizontal:LAYOUT_MODEL.imageAlignHorizontal,imageAlignVertical:LAYOUT_MODEL.imageAlignVertical,imageScaleType:LAYOUT_MODEL.imageScaleType,videoScaleType:LAYOUT_MODEL.videoScaleType,videoAutoPlay:LAYOUT_MODEL.videoAutoPlay,mobileAutoPlay:LAYOUT_MODEL.mobileAutoPlay,vimeoDefault:LAYOUT_MODEL.vimeoDefault,videoLoop:LAYOUT_MODEL.videoLoop,imageVideoMarginTop:LAYOUT_MODEL.imageVideoMarginTop,imageVideoMarginRight:LAYOUT_MODEL.imageVideoMarginRight,imageVideoMarginBottom:LAYOUT_MODEL.imageVideoMarginBottom,imageVideoMarginLeft:LAYOUT_MODEL.imageVideoMarginLeft,imageVideoInactiveAlpha:LAYOUT_MODEL.imageVideoInactiveAlpha,imageVideoLoaderType:LAYOUT_MODEL.imageVideoLoaderType,imageVideoScrollType:LAYOUT_MODEL.imageVideoScrollType,imageVideoScrollbarRounded:LAYOUT_MODEL.imageVideoScrollbarRounded,imageVideoScrollbarVisibility:LAYOUT_MODEL.imageVideoScrollbarVisibility,imageVideoScrollbarAlignment:LAYOUT_MODEL.imageVideoScrollbarAlignment,imageVideoScrollbarHorizontalOffset:LAYOUT_MODEL.imageVideoScrollbarHorizontalOffset,imageVideoScrollbarVerticalOffset:LAYOUT_MODEL.imageVideoScrollbarVerticalOffset,imageVideoScrollbarColor:LAYOUT_MODEL.imageVideoScrollbarColor,imageVideoScrollbarHover:LAYOUT_MODEL.imageVideoScrollbarHover,imageVideoScrollbarBgTransparency:LAYOUT_MODEL.imageVideoScrollbarBgTransparency,imageVideoScrollbarWidth:LAYOUT_MODEL.imageVideoScrollbarWidth,menuDisplaceMobile:""===LAYOUT_MODEL.menuDisplaceMobile||void 0===LAYOUT_MODEL.menuDisplaceMobile||LAYOUT_MODEL.menuDisplaceMobile,menuDisplaceTablet:""===LAYOUT_MODEL.menuDisplaceTablet||void 0===LAYOUT_MODEL.menuDisplaceTablet||LAYOUT_MODEL.menuDisplaceTablet,pageMarginTop:LAYOUT_MODEL.pageMarginTop,pageMarginRight:LAYOUT_MODEL.pageMarginRight,pageMarginBottom:LAYOUT_MODEL.pageMarginBottom,pageMarginLeft:LAYOUT_MODEL.pageMarginLeft,pageMaxWidth:LAYOUT_MODEL.pageMaxWidth,pageMaxAlign:LAYOUT_MODEL.pageMaxAlign,pageScrollVerticalMargin:LAYOUT_MODEL.pageScrollVerticalMargin,pageTextFont:LAYOUT_MODEL.pageTextFont,pageTextKerning:LAYOUT_MODEL.pageTextKerning,pageTextFontSize:LAYOUT_MODEL.pageTextFontSize,pageTextFontColor:LAYOUT_MODEL.pageTextFontColor,pageTitle:LAYOUT_MODEL.pageTitle,pageTitleFont:LAYOUT_MODEL.pageTitleFont,pageTitleKerning:LAYOUT_MODEL.pageTitleKerning,pageTitleFontSize:LAYOUT_MODEL.pageTitleFontSize,pageTitleFontColor:LAYOUT_MODEL.pageTitleFontColor,pageScrollType:LAYOUT_MODEL.pageScrollType,pageScrollbarVisibility:LAYOUT_MODEL.pageScrollbarVisibility,pageScrollbarRounded:LAYOUT_MODEL.pageScrollbarRounded,pageScrollbarAlignment:LAYOUT_MODEL.pageScrollbarAlignment,pageScrollbarHorizontalOffset:LAYOUT_MODEL.pageScrollbarHorizontalOffset,pageScrollbarVerticalOffset:LAYOUT_MODEL.pageScrollbarVerticalOffset,pageScrollbarColor:LAYOUT_MODEL.pageScrollbarColor,pageScrollbarHover:LAYOUT_MODEL.pageScrollbarHover,pageScrollbarBgAlpha:LAYOUT_MODEL.pageScrollbarBgAlpha,pageScrollbarWidth:LAYOUT_MODEL.pageScrollbarWidth,thumbnailOnly:LAYOUT_MODEL.thumbnailOnly,thumbnailFullRes:LAYOUT_MODEL.thumbnailFullRes,thumbnailDefaultOn:LAYOUT_MODEL.thumbnailDefaultOn,thumbnailPositionFixed:LAYOUT_MODEL.thumbnailPositionFixed,thumbnailMasonryType:LAYOUT_MODEL.thumbnailMasonryType,thumbnailMasonry:LAYOUT_MODEL.thumbnailMasonry,thumbnailMasonryEvenRowHeight:LAYOUT_MODEL.thumbnailMasonryEvenRowHeight,thumbnailMasonryFill:LAYOUT_MODEL.thumbnailMasonryFill,thumbnailMasonryMaintainOrder:LAYOUT_MODEL.thumbnailMasonryMaintainOrder,thumbnailMaxCols:LAYOUT_MODEL.thumbnailMaxCols,thumbnailGap:Number(LAYOUT_MODEL.thumbnailGap),thumbnailGapVertical:Number(LAYOUT_MODEL.thumbnailGapVertical),thumbnailDock:LAYOUT_MODEL.thumbnailDock,thumbnailType:LAYOUT_MODEL.thumbnailType,thumbnailSize:LAYOUT_MODEL.thumbnailSize,thumbnailRandomize:LAYOUT_MODEL.thumbnailRandomize,thumbnailRandomInterval:LAYOUT_MODEL.thumbnailRandomInterval,thumbnailCustomWidth:LAYOUT_MODEL.thumbnailCustomWidth,thumbnailCustomHeight:LAYOUT_MODEL.thumbnailCustomHeight,thumbnailSide:LAYOUT_MODEL.thumbnailSide,thumbnailHorizontalMargin:LAYOUT_MODEL.thumbnailHorizontalMargin,thumbnailVerticalMargin:LAYOUT_MODEL.thumbnailVerticalMargin,thumbnailAlignHorizontal:LAYOUT_MODEL.thumbnailAlignHorizontal,thumbnailAlignVertical:LAYOUT_MODEL.thumbnailAlignVertical,thumbnailOverlayColor:LAYOUT_MODEL.overlayColor,thumbnailOverlayAlpha:LAYOUT_MODEL.overlayAlpha,thumbnailGridColor:LAYOUT_MODEL.thumbnailGridColor,thumbnailGridTransparency:LAYOUT_MODEL.thumbnailGridTransparency,thumbnailHoverAlpha:LAYOUT_MODEL.thumbnailHoverAlpha,thumbnailHoverAlphaMobile:LAYOUT_MODEL.thumbnailHoverAlphaMobile,thumbnailHoverAlphaTablet:LAYOUT_MODEL.thumbnailHoverAlphaTablet,thumbnailHoverColor:LAYOUT_MODEL.thumbnailHoverColor,thumbnailLoaderType:LAYOUT_MODEL.thumbnailLoaderType,thumbnailTitleFont:LAYOUT_MODEL.thumbnailTitleFont,thumbnailTitleFontSize:LAYOUT_MODEL.thumbnailTitleFontSize,thumbnailTitleFontColor:LAYOUT_MODEL.thumbnailTitleFontColor,thumbnailLabelVerticalOffset:LAYOUT_MODEL.thumbnailLabelVerticalOffset,thumbnailLabelColorMobile:LAYOUT_MODEL.thumbnailLabelColorMobile,thumbnailLabelColorTablet:LAYOUT_MODEL.thumbnailLabelColorTablet,thumbnailLabelPosition:LAYOUT_MODEL.thumbnailLabelPosition,thumbnailLabelJustification:LAYOUT_MODEL.thumbnailLabelJustification,thumbnailLabelPositionMobile:LAYOUT_MODEL.thumbnailLabelPositionMobile,thumbnailLabelPositionTablet:LAYOUT_MODEL.thumbnailLabelPositionTablet,thumbnailStdLabelPosition:LAYOUT_MODEL.thumbnailStdLabelPosition,thumbnailStdLabelPositionMobile:LAYOUT_MODEL.thumbnailStdLabelPositionMobile,thumbnailStdLabelPositionTablet:LAYOUT_MODEL.thumbnailStdLabelPositionTablet,thumbnailVideoPlayIcon:LAYOUT_MODEL.thumbnailVideoPlayIcon!==!1,thumbnailScrollbarAlignment:LAYOUT_MODEL.thumbnailScrollbarAlignment,thumbnailScrollbarColor:LAYOUT_MODEL.thumbnailScrollbarColor,thumbnailScrollbarHover:LAYOUT_MODEL.thumbnailScrollbarHover,thumbnailSelectedColor:LAYOUT_MODEL.thumbnailSelectedColor,thumbnailSelectedAlpha:LAYOUT_MODEL.thumbnailSelectedAlpha,thumbnailScrollbarHorizontalOffset:LAYOUT_MODEL.thumbnailScrollbarHorizontalOffset,thumbnailScrollbarVerticalOffset:LAYOUT_MODEL.thumbnailScrollbarVerticalOffset,thumbnailScrollType:LAYOUT_MODEL.thumbnailScrollType,thumbnailScrollbarBgAlpha:LAYOUT_MODEL.thumbnailScrollbarBgAlpha,thumbnailScrollbarWidth:LAYOUT_MODEL.thumbnailScrollbarWidth,thumbnailScrollbarVisibility:LAYOUT_MODEL.thumbnailScrollbarVisibility,thumbnailScrollbarRounded:LAYOUT_MODEL.thumbnailScrollbarRounded,captionAutoPosition:LAYOUT_MODEL.captionAutoPosition,captionDefault:LAYOUT_MODEL.captionDefault,captionUseTitle:LAYOUT_MODEL.captionUseTitle,captionCloseButton:LAYOUT_MODEL.captionCloseButton,captionBackgroundAlpha:LAYOUT_MODEL.captionBackgroundAlpha,captionBackgroundRectColor:LAYOUT_MODEL.captionBackgroundRectColor,captionFont:LAYOUT_MODEL.captionFont,captionFontColor:LAYOUT_MODEL.captionFontColor,captionFontSize:LAYOUT_MODEL.captionFontSize,captionFontSizeBreakpoint:LAYOUT_MODEL.captionFontSizeBreakpoint,captionWidth:LAYOUT_MODEL.captionWidth,captionHeight:LAYOUT_MODEL.captionHeight,captionAlignHorizontal:LAYOUT_MODEL.captionAlignHorizontal,captionAlignVertical:LAYOUT_MODEL.captionAlignVertical,captionOffsetX:LAYOUT_MODEL.captionOffsetX,captionOffsetY:LAYOUT_MODEL.captionOffsetY,captionTextAlign:LAYOUT_MODEL.captionTextAlign,captionTextAlignVertical:LAYOUT_MODEL.captionTextAlignVertical,captionPaddingTop:LAYOUT_MODEL.captionPaddingTop,captionPaddingRight:LAYOUT_MODEL.captionPaddingRight,captionPaddingBottom:LAYOUT_MODEL.captionPaddingBottom,captionPaddingLeft:LAYOUT_MODEL.captionPaddingLeft,captionScrollType:LAYOUT_MODEL.captionScrollType,captionScrollbarWidth:LAYOUT_MODEL.captionScrollbarWidth,captionScrollbarAlignment:LAYOUT_MODEL.captionScrollbarAlignment,captionScrollbarColor:LAYOUT_MODEL.captionScrollbarColor,captionScrollbarHover:LAYOUT_MODEL.captionScrollbarHover,captionScrollbarHorizontalOffset:LAYOUT_MODEL.captionScrollbarHorizontalOffset,captionScrollbarVerticalOffset:LAYOUT_MODEL.captionScrollbarVerticalOffset,captionScrollbarBgAlpha:LAYOUT_MODEL.captionScrollbarBgAlpha,captionAnchorTo:LAYOUT_MODEL.captionAnchorTo,slideshowRandomize:LAYOUT_MODEL.landingMediaRandomize,slideshowTransitionType:LAYOUT_MODEL.landingMediaTransitionType,slideshowSpeed:LAYOUT_MODEL.landingMediaSpeed,slideshowTransitionDuration:LAYOUT_MODEL.landingMediaTransitionDuration,slideshowAlignHorizontal:LAYOUT_MODEL.landingMediaAlignHorizontal,slideshowAlignVertical:LAYOUT_MODEL.landingMediaAlignVertical,slideshowScaleType:LAYOUT_MODEL.landingMediaScaleType,slideshowScrollDownIcon:LAYOUT_MODEL.slideshowScrollDownIcon,siteDisplayBehavior:LAYOUT_MODEL.siteDisplayBehavior,siteDisplayGalleryOnlyOverlay:LAYOUT_MODEL.siteDisplayGalleryOnlyOverlay},section:function(e){if(!e)return!1;var t=e.overrides||{},i=e.thumb||{};layoutCalcs.isLandingMedia=isSlideshowGallery(e),layoutCalcs._section=e,STATE.overrides={get containerColor(){return firstValid(t.containerColor,LAYOUT_MODEL.containerColor)},get transitionType(){if(layoutCalcs.isLandingMedia)return firstValid(t.transitionType,LAYOUT_MODEL.landingMediaTransitionType);var i=firstValid(touchDeviceTransition(),t.transitionType,LAYOUT_MODEL.transitionType);return!isPod()&&!isPad()||/vScroll/.test(i)||(i="mSlide"),TOUCH_DEVICE&&"hSlide"===i&&(i="mSlide"),isSingleTextPage(e)&&(i="vScrollStatic"),i},get transitionDuration(){return firstValid(t.transitionDuration,LAYOUT_MODEL.transitionDuration)},get imageAlignHorizontal(){return firstValid(t.imageAlignHorizontal,LAYOUT_MODEL.imageAlignHorizontal)},get imageAlignVertical(){return firstValid(t.imageAlignVertical,LAYOUT_MODEL.imageAlignVertical)},get imageScaleType(){return firstValid(t.imageScaleType,LAYOUT_MODEL.imageScaleType)},get videoScaleType(){return firstValid(t.videoScaleType,LAYOUT_MODEL.videoScaleType)},get mobileAutoPlay(){return LAYOUT_MODEL.mobileAutoPlay},get videoAutoPlay(){return!!layoutCalcs.isLandingMedia||firstValid(t.videoAutoPlay,LAYOUT_MODEL.videoAutoPlay)},get vimeoDefault(){var e=""===LAYOUT_MODEL.vimeoDefault||void 0===LAYOUT_MODEL.vimeoDefault||LAYOUT_MODEL.vimeoDefault,t=LAYOUT_MODEL.vimeoDefaultMobile,i=LAYOUT_MODEL.vimeoDefaultTablet;return isPod()?firstValid(t,e):isPad()?firstValid(i,e):e},get videoLoop(){return firstValid(t.videoLoop,LAYOUT_MODEL.videoLoop)},get imageVideoMarginTop(){return USER_AGENT!==MOBILE||/vScroll/.test(STATE.overrides.transitionType)?firstValid(t.imageVideoMarginTop,LAYOUT_MODEL.imageVideoMarginTop):0},get imageVideoMarginRight(){return USER_AGENT===MOBILE?0:firstValid(t.imageVideoMarginRight,LAYOUT_MODEL.imageVideoMarginRight)},get imageVideoMarginBottom(){return USER_AGENT!==MOBILE||/vScroll/.test(STATE.overrides.transitionType)?firstValid(t.imageVideoMarginBottom,LAYOUT_MODEL.imageVideoMarginBottom):0},get imageVideoMarginLeft(){return USER_AGENT===MOBILE?0:firstValid(t.imageVideoMarginLeft,LAYOUT_MODEL.imageVideoMarginLeft)},get pageMarginTop(){var e=firstValid(t.pageMarginTop,LAYOUT_MODEL.pageMarginTop);return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.pageMarginTopMobile,50):isPod()?firstValid(LAYOUT_MODEL.pageMarginTopMobile,e):e},get pageMarginRight(){var e=firstValid(t.pageMarginRight,LAYOUT_MODEL.pageMarginRight);return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.pageMarginRightMobile,0):isPod()?firstValid(LAYOUT_MODEL.pageMarginRightMobile,e):e},get pageMarginBottom(){var e=firstValid(t.pageMarginBottom,LAYOUT_MODEL.pageMarginBottom);return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.pageMarginBottomMobile,0):isPod()?firstValid(LAYOUT_MODEL.pageMarginBottomMobile,e):e},get pageMarginLeft(){var e=firstValid(t.pageMarginLeft,LAYOUT_MODEL.pageMarginLeft);return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.pageMarginLeftMobile,0):isPod()?firstValid(LAYOUT_MODEL.pageMarginLeftMobile,e):e},get pageMaxWidth(){return percentToPixels(firstValid(t.pageMaxWidth,LAYOUT_MODEL.pageMaxWidth),stage.width)},get pageMaxAlign(){return firstValid(t.pageMaxAlign,LAYOUT_MODEL.pageMaxAlign)},get pageScrollVerticalMargin(){return firstValid(t.pageScrollVerticalMargin,LAYOUT_MODEL.pageScrollVerticalMargin)},get pageTextFont(){return firstValid(t.pageTextFont,LAYOUT_MODEL.pageTextFont)},get pageTextKerning(){return firstValid(t.pageTextKerning,LAYOUT_MODEL.pageTextKerning)},get pageTextFontSize(){return t.pageTextFontSize||LAYOUT_MODEL.pageTextFontSize},get pageTextFontColor(){return firstValid(t.pageTextFontColor,LAYOUT_MODEL.pageTextFontColor)},get pageTitle(){return firstValid(t.pageTitle,LAYOUT_MODEL.pageTitle)},get pageTitleFont(){return firstValid(t.pageTitleFont,LAYOUT_MODEL.pageTitleFont)},get pageTitleKerning(){return firstValid(t.pageTitleKerning,LAYOUT_MODEL.pageTitleKerning)},get pageTitleFontSize(){return t.pageTitleFontSize||LAYOUT_MODEL.pageTitleFontSize},get pageTitleFontColor(){return firstValid(t.pageTitleFontColor,LAYOUT_MODEL.pageTitleFontColor)},get pageScrollType(){return firstValid(t.pageScrollType,LAYOUT_MODEL.pageScrollType)},get pageScrollbarVisibility(){return firstValid(t.pageScrollbarVisibility,LAYOUT_MODEL.pageScrollbarVisibility)},get pageScrollbarRounded(){return firstValid(t.pageScrollbarRounded,LAYOUT_MODEL.pageScrollbarRounded)},get pageScrollbarAlignment(){return firstValid(t.pageScrollbarAlignment,LAYOUT_MODEL.pageScrollbarAlignment)},get pageScrollbarHorizontalOffset(){return firstValid(t.pageScrollbarHorizontalOffset,LAYOUT_MODEL.pageScrollbarHorizontalOffset)},get pageScrollbarVerticalOffset(){return firstValid(t.pageScrollbarVerticalOffset,LAYOUT_MODEL.pageScrollbarVerticalOffset)},get pageScrollbarColor(){return firstValid(t.pageScrollbarColor,LAYOUT_MODEL.pageScrollbarColor)},get pageScrollbarHover(){return firstValid(t.pageScrollbarHover,LAYOUT_MODEL.pageScrollbarHover)},get pageScrollbarBgAlpha(){return firstValid(t.pageScrollbarBgAlpha,LAYOUT_MODEL.pageScrollbarBgAlpha)},get pageScrollbarWidth(){return firstValid(t.pageScrollbarWidth,LAYOUT_MODEL.pageScrollbarWidth)},get imageVideoScrollType(){var e=""===t.imageVideoScrollType?"scrollbar":t.imageVideoScrollType;return firstValid(e,LAYOUT_MODEL.imageVideoScrollType)},get imageVideoScrollbarRounded(){return firstValid(t.imageVideoScrollbarRounded,LAYOUT_MODEL.imageVideoScrollbarRounded)},get imageVideoScrollbarVisibility(){return firstValid(t.imageVideoScrollbarVisibility,LAYOUT_MODEL.imageVideoScrollbarVisibility)},get imageVideoInactiveAlpha(){return firstValid(t.imageVideoInactiveAlpha,LAYOUT_MODEL.imageVideoInactiveAlpha)},get imageVideoLoaderType(){return firstValid(t.imageVideoLoaderType,LAYOUT_MODEL.imageVideoLoaderType)},get imageVideoScrollbarAlignment(){return firstValid(t.imageVideoScrollbarAlignment,LAYOUT_MODEL.imageVideoScrollbarAlignment)},get imageVideoScrollbarHorizontalOffset(){return firstValid(t.imageVideoScrollbarHorizontalOffset,LAYOUT_MODEL.imageVideoScrollbarHorizontalOffset)},get imageVideoScrollbarVerticalOffset(){return firstValid(t.imageVideoScrollbarVerticalOffset,LAYOUT_MODEL.imageVideoScrollbarVerticalOffset)},get imageVideoScrollbarColor(){return firstValid(t.imageVideoScrollbarColor,LAYOUT_MODEL.imageVideoScrollbarColor)},get imageVideoScrollbarHover(){return firstValid(t.imageVideoScrollbarHover,LAYOUT_MODEL.imageVideoScrollbarHover)},get imageVideoScrollbarBgTransparency(){return firstValid(t.imageVideoScrollbarBgTransparency,LAYOUT_MODEL.imageVideoScrollbarBgTransparency)},get imageVideoScrollbarWidth(){return firstValid(t.imageVideoScrollbarWidth,LAYOUT_MODEL.imageVideoScrollbarWidth)},get menuDisplaceMobile(){return""===LAYOUT_MODEL.menuDisplaceMobile||void 0===LAYOUT_MODEL.menuDisplaceMobile||LAYOUT_MODEL.menuDisplaceMobile},get menuDisplaceTablet(){return""===LAYOUT_MODEL.menuDisplaceTablet||void 0===LAYOUT_MODEL.menuDisplaceTablet||LAYOUT_MODEL.menuDisplaceTablet},get overlayTitleFont(){return firstValid(LAYOUT_MODEL.overlayTitleFont,LAYOUT_MODEL.thumbnailTitleFont)},get overlayTitleFontSize(){return LAYOUT_MODEL.overlayTitleFontSize||LAYOUT_MODEL.thumbnailTitleFontSize},get overlayTitleFontColor(){return firstValid(LAYOUT_MODEL.overlayTitleFontColor,LAYOUT_MODEL.thumbnailTitleFontColor)},get thumbnailOnly(){return firstValid(i.only,LAYOUT_MODEL.thumbnailOnly)},get thumbnailFullRes(){return firstValid(i.fullRes,LAYOUT_MODEL.thumbnailFullRes)},get thumbnailDefaultOn(){return USER_AGENT===MOBILE?i.only||LAYOUT_MODEL.thumbnailOnly||firstValid(LAYOUT_MODEL.thumbnailDefaultOnMobile,i.defaultOn,LAYOUT_MODEL.thumbnailDefaultOn):i.only||LAYOUT_MODEL.thumbnailOnly||firstValid(i.defaultOn,LAYOUT_MODEL.thumbnailDefaultOn)},get thumbnailPositionFixed(){return USER_AGENT!==MOBILE&&firstValid(i.positionFixed,LAYOUT_MODEL.thumbnailPositionFixed)},get thumbnailMasonry(){if(USER_AGENT===MOBILE)return!0;var e=firstValid(i.type,LAYOUT_MODEL.thumbnailType);switch(e){case"vMasonry":return!0;case"hMasonry":return!0;default:return!1}},get thumbnailMasonryType(){return firstValid(i.masonryType,LAYOUT_MODEL.thumbnailMasonryType)},get thumbnailMasonryFill(){if(USER_AGENT===MOBILE)return!0;var e=firstValid(i.masonryFill,LAYOUT_MODEL.thumbnailMasonryFill),t=firstValid(i.type,LAYOUT_MODEL.thumbnailType);if(void 0===t)return e;switch(t){case"vMasonry":return e;case"hMasonry":return e;default:return!1}},get thumbnailMasonryEvenRowHeight(){if(USER_AGENT===MOBILE)return!1;var e=firstValid(i.type,LAYOUT_MODEL.thumbnailType);switch(e){case"vMasonry":return!1;case"hMasonry":return!0;default:return!1}},get thumbnailMasonryMaintainOrder(){return firstValid(i.masonryMaintainOrder,LAYOUT_MODEL.thumbnailMasonryMaintainOrder)},get thumbnailMaxCols(){return firstValid(i.maxCols,LAYOUT_MODEL.thumbnailMaxCols)},get thumbnailGap(){return USER_AGENT===MOBILE?Number(LAYOUT_MODEL.thumbnailGapMobile||0):isPod()?Number(firstValid(LAYOUT_MODEL.thumbnailGapMobile,i.gap,LAYOUT_MODEL.thumbnailGap)):Number(firstValid(i.gap,LAYOUT_MODEL.thumbnailGap))},get thumbnailGapVertical(){return USER_AGENT===MOBILE?Number(LAYOUT_MODEL.thumbnailGapVerticalMobile||0):isPod()?Number(firstValid(LAYOUT_MODEL.thumbnailGapVerticalMobile,i.gapVertical,LAYOUT_MODEL.thumbnailGapVertical)):Number(firstValid(i.gapVertical,LAYOUT_MODEL.thumbnailGapVertical))},get thumbnailDock(){return firstValid(i.dock,LAYOUT_MODEL.thumbnailDock)},get thumbnailType(){if(USER_AGENT===MOBILE)return"none"===firstValid(i.type,LAYOUT_MODEL.thumbnailType)?"none":"vMasonry";var e=firstValid(i.masonry,LAYOUT_MODEL.thumbnailMasonry),t=i.type&&"default"!==i.type?firstValid(i.type,LAYOUT_MODEL.thumbnailType):LAYOUT_MODEL.thumbnailType,n="fill"===t&&e?"vMasonry":t;return n},get thumbnailRandomize(){return firstValid(i.randomize,LAYOUT_MODEL.thumbnailRandomize)},get thumbnailRandomInterval(){return firstValid(i.randomizeInterval,LAYOUT_MODEL.thumbnailRandomInterval,24)},get thumbnailSize(){return USER_AGENT===MOBILE?(THUMB_SIZES=updateCustomThumbSize(LAYOUT_MODEL.thumbnailCustomWidthMobile,LAYOUT_MODEL.thumbnailCustomHeightMobile),LAYOUT_MODEL.thumbnailSizeMobile||"xLarge"):isPod()?(THUMB_SIZES=updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthMobile,i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightMobile,i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)),firstValid(LAYOUT_MODEL.thumbnailSizeMobile,i.size,LAYOUT_MODEL.thumbnailSize)):isPad()?(THUMB_SIZES=updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthTablet,i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightTablet,i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)),firstValid(LAYOUT_MODEL.thumbnailSizeTablet,i.size,LAYOUT_MODEL.thumbnailSize)):(THUMB_SIZES=updateCustomThumbSize(firstValid(i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)),firstValid(i.size,LAYOUT_MODEL.thumbnailSize))},get thumbnailCustomWidth(){return THUMB_SIZES=isPod()?updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthMobile,i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightMobile,i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)):isPad()?updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthTablet,i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightTablet,i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)):updateCustomThumbSize(firstValid(i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)),THUMB_SIZES.custom.width},get thumbnailCustomHeight(){return THUMB_SIZES=isPod()?updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthMobile,i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightMobile,i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)):isPad()?updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthTablet,i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightTablet,i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)):updateCustomThumbSize(firstValid(i.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(i.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)),THUMB_SIZES.custom.height},get thumbnailSide(){return firstValid(i.side,LAYOUT_MODEL.thumbnailSide)},get thumbnailHorizontalMargin(){return USER_AGENT===MOBILE?LAYOUT_MODEL.thumbnailHorizontalMarginMobile||0:isPod()?firstValid(LAYOUT_MODEL.thumbnailHorizontalMarginMobile,i.horizontalMargin,LAYOUT_MODEL.thumbnailHorizontalMargin):firstValid(i.horizontalMargin,LAYOUT_MODEL.thumbnailHorizontalMargin)},get thumbnailVerticalMargin(){return USER_AGENT===MOBILE?LAYOUT_MODEL.thumbnailVerticalMarginMobile||0:isPod()?firstValid(LAYOUT_MODEL.thumbnailVerticalMarginMobile,i.verticalMargin,LAYOUT_MODEL.thumbnailVerticalMargin):firstValid(i.verticalMargin,LAYOUT_MODEL.thumbnailVerticalMargin)},get thumbnailAlignHorizontal(){return firstValid(i.alignHorizontal,LAYOUT_MODEL.thumbnailAlignHorizontal)},get thumbnailAlignVertical(){return firstValid(i.alignVertical,LAYOUT_MODEL.thumbnailAlignVertical)},get thumbnailOverlayColor(){return firstValid(i.overlayColor,LAYOUT_MODEL.overlayColor)},get thumbnailOverlayAlpha(){return firstValid(i.overlayAlpha,LAYOUT_MODEL.overlayAlpha)},get thumbnailGridColor(){return firstValid(i.gridColor,LAYOUT_MODEL.thumbnailGridColor)},get thumbnailGridTransparency(){return firstValid(i.gridTransparency,LAYOUT_MODEL.thumbnailGridTransparency)},get thumbnailHoverAlpha(){return firstValid(i.hoverAlpha,LAYOUT_MODEL.thumbnailHoverAlpha)},get thumbnailHoverAlphaMobile(){return LAYOUT_MODEL.thumbnailHoverAlphaMobile},get thumbnailHoverAlphaTablet(){return LAYOUT_MODEL.thumbnailHoverAlphaTablet},get thumbnailHoverColor(){return firstValid(i.hoverColor,LAYOUT_MODEL.thumbnailHoverColor)},get thumbnailLoaderType(){return firstValid(i.loaderType,LAYOUT_MODEL.thumbnailLoaderType,"spinner")},get thumbnailTitleFont(){return isPod()?firstValid(LAYOUT_MODEL.thumbnailTitleFontMobile,LAYOUT_MODEL.thumbnailTitleFont):isPad()?firstValid(LAYOUT_MODEL.thumbnailTitleFontTablet,LAYOUT_MODEL.thumbnailTitleFont):firstValid(i.titleFont,LAYOUT_MODEL.thumbnailTitleFont)},get thumbnailTitleFontSize(){return isPod()?LAYOUT_MODEL.thumbnailTitleFontSizeMobile||i.titleFontSize||LAYOUT_MODEL.thumbnailTitleFontSize:isPad()?LAYOUT_MODEL.thumbnailTitleFontSizeTablet||i.titleFontSize||LAYOUT_MODEL.thumbnailTitleFontSize:i.titleFontSize||LAYOUT_MODEL.thumbnailTitleFontSize},get thumbnailTitleFontColor(){return isPod()?firstValid(LAYOUT_MODEL.thumbnailTitleFontColorMobile,LAYOUT_MODEL.thumbnailLabelColorMobile,i.titleFontColor,LAYOUT_MODEL.thumbnailTitleFontColor):isPad()?firstValid(LAYOUT_MODEL.thumbnailTitleFontColorTablet,LAYOUT_MODEL.thumbnailLabelColorTablet,i.titleFontColor,LAYOUT_MODEL.thumbnailTitleFontColor):firstValid(i.titleFontColor,LAYOUT_MODEL.thumbnailTitleFontColor)},get thumbnailLabelVerticalOffset(){return firstValid(i.labelVerticalOffset,LAYOUT_MODEL.thumbnailLabelVerticalOffset)},get thumbnailLabelColorMobile(){return LAYOUT_MODEL.thumbnailLabelColorMobile},get thumbnailLabelColorTablet(){return LAYOUT_MODEL.thumbnailLabelColorTablet},get thumbnailLabelPosition(){return firstValid(i.labelPosition,LAYOUT_MODEL.thumbnailLabelPosition)},get thumbnailLabelJustification(){return firstValid(i.labelJustification,LAYOUT_MODEL.thumbnailLabelJustification)},get thumbnailStdLabelPosition(){return i.stdLabelPosition},get thumbnailStdLabelJustification(){return i.stdLabelJustification},get thumbnailLabelPositionMobile(){var e=/^hover/.test(i.labelPosition)?"bottom":i.labelPosition,t=/^hover/.test(LAYOUT_MODEL.thumbnailLabelPosition)?"bottom":LAYOUT_MODEL.thumbnailLabelPosition;return firstValid(LAYOUT_MODEL.thumbnailLabelPositionMobile,e,t,void 0)},get thumbnailStdLabelPositionMobile(){var e=/^hover/.test(i.stdLabelPositionMobile)?"over":i.stdLabelPositionMobile,t=/^hover/.test(LAYOUT_MODEL.thumbnailStdLabelPositionMobile)?"over":LAYOUT_MODEL.thumbnailStdLabelPositionMobile;return firstValid(e,t,void 0)},get thumbnailLabelPositionTablet(){var e=/^hover/.test(i.labelPosition)?"bottom":i.labelPosition,t=/^hover/.test(LAYOUT_MODEL.thumbnailLabelPosition)?"bottom":LAYOUT_MODEL.thumbnailLabelPosition;return firstValid(LAYOUT_MODEL.thumbnailLabelPositionTablet,e,t,void 0)},get thumbnailStdLabelPositionTablet(){var e=/^hover/.test(i.stdLabelPositionTablet)?"over":i.stdLabelPositionTablet,t=/^hover/.test(LAYOUT_MODEL.thumbnailStdLabelPositionTablet)?"over":LAYOUT_MODEL.thumbnailStdLabelPositionTablet;return firstValid(e,t,void 0)},get thumbnailVideoPlayIcon(){return firstValid(i.videoPlayIcon,LAYOUT_MODEL.thumbnailVideoPlayIcon!==!1)},get thumbnailScrollbarAlignment(){return firstValid(i.scrollbarAlignment,LAYOUT_MODEL.thumbnailScrollbarAlignment)},get thumbnailScrollbarColor(){return firstValid(i.scrollbarColor,LAYOUT_MODEL.thumbnailScrollbarColor)},get thumbnailScrollbarHover(){return firstValid(i.scrollbarHover,LAYOUT_MODEL.thumbnailScrollbarHover)},get thumbnailSelectedColor(){return firstValid(i.selectedColor,LAYOUT_MODEL.thumbnailSelectedColor)},get thumbnailSelectedAlpha(){return firstValid(i.selectedAlpha,LAYOUT_MODEL.thumbnailSelectedAlpha,LAYOUT_MODEL.thumbnailHoverAlpha)},get thumbnailScrollbarHorizontalOffset(){return firstValid(i.scrollbarHorizontalOffset,LAYOUT_MODEL.thumbnailScrollbarHorizontalOffset)},get thumbnailScrollbarVerticalOffset(){return firstValid(i.scrollbarVerticalOffset,LAYOUT_MODEL.thumbnailScrollbarVerticalOffset)},get thumbnailScrollType(){var e=firstValid(i.scrollType,LAYOUT_MODEL.thumbnailScrollType);return"mouse cursor"===e&&(e="nativeMacOs"),e},get thumbnailScrollbarBgAlpha(){return firstValid(i.scrollbarBgAlpha,LAYOUT_MODEL.thumbnailScrollbarBgAlpha)},get thumbnailScrollbarWidth(){return firstValid(i.scrollbarWidth,LAYOUT_MODEL.thumbnailScrollbarWidth)},get thumbnailScrollbarVisibility(){return firstValid(i.scrollbarVisibility,LAYOUT_MODEL.thumbnailScrollbarVisibility)},get thumbnailScrollbarRounded(){return firstValid(i.scrollbarRounded,LAYOUT_MODEL.thumbnailScrollbarRounded)},get thumbnailTitleBlockTopMargin(){return isPod()?firstValid(LAYOUT_MODEL.thumbnailTitleBlockTopMarginMobile,LAYOUT_MODEL.thumbnailTitleBlockTopMargin)||0:LAYOUT_MODEL.thumbnailTitleBlockTopMargin||0},get captionAutoPosition(){return USER_AGENT===MOBILE&&LAYOUT_MODEL.captionMobileOverrides||firstValid(t.captionAutoPosition,LAYOUT_MODEL.captionAutoPosition)},get captionDefault(){return firstValid(t.captionDefault,LAYOUT_MODEL.captionDefault);
},get captionUseTitle(){return firstValid(t.captionUseTitle,LAYOUT_MODEL.captionUseTitle)},get captionCloseButton(){return firstValid(t.captionCloseButton,LAYOUT_MODEL.captionCloseButton)},get captionBackgroundAlpha(){return firstValid(t.captionBackgroundAlpha,LAYOUT_MODEL.captionBackgroundAlpha)},get captionBackgroundRectColor(){return firstValid(t.captionBackgroundRectColor,LAYOUT_MODEL.captionBackgroundRectColor)},get captionFont(){return firstValid(t.captionFont,LAYOUT_MODEL.captionFont)},get captionFontColor(){return firstValid(t.captionFontColor,LAYOUT_MODEL.captionFontColor)},get captionFontSize(){return t.captionFontSize||LAYOUT_MODEL.captionFontSize},get captionFontSizeBreakpoint(){return t.captionFontSizeBreakpoint||LAYOUT_MODEL.captionFontSizeBreakpoint||t.captionFontSize||LAYOUT_MODEL.captionFontSize},get captionWidth(){return percentToPixels(firstValid(t.captionWidth,LAYOUT_MODEL.captionWidth),stage.width)},get captionHeight(){return percentToPixels(firstValid(t.captionHeight,LAYOUT_MODEL.captionHeight),stage.height)},get captionAlignHorizontal(){return firstValid(t.captionAlignHorizontal,LAYOUT_MODEL.captionAlignHorizontal)},get captionAlignVertical(){return firstValid(t.captionAlignVertical,LAYOUT_MODEL.captionAlignVertical)},get captionMobileOverrides(){return USER_AGENT===MOBILE&&LAYOUT_MODEL.captionMobileOverrides},get captionOffsetX(){return percentToPixels(firstValid(t.captionOffsetX,LAYOUT_MODEL.captionOffsetX),stage.width)},get captionOffsetY(){return percentToPixels(firstValid(t.captionOffsetY,LAYOUT_MODEL.captionOffsetY),stage.height)},get captionTextAlign(){return firstValid(t.captionTextAlign,LAYOUT_MODEL.captionTextAlign)},get captionTextAlignVertical(){return firstValid(t.captionTextAlignVertical,LAYOUT_MODEL.captionTextAlignVertical)},get captionPaddingTop(){return percentToPixels(firstValid(t.captionPaddingTop,LAYOUT_MODEL.captionPaddingTop),stage.height)},get captionPaddingRight(){return percentToPixels(firstValid(t.captionPaddingRight,LAYOUT_MODEL.captionPaddingRight),stage.width)},get captionPaddingBottom(){return percentToPixels(firstValid(t.captionPaddingBottom,LAYOUT_MODEL.captionPaddingBottom),stage.height)},get captionPaddingLeft(){return percentToPixels(firstValid(t.captionPaddingLeft,LAYOUT_MODEL.captionPaddingLeft),stage.width)},get captionScrollType(){return firstValid(t.captionScrollType,LAYOUT_MODEL.captionScrollType)},get captionScrollbarWidth(){return firstValid(t.captionScrollbarWidth,LAYOUT_MODEL.captionScrollbarWidth)},get captionScrollbarAlignment(){return firstValid(t.captionScrollbarAlignment,LAYOUT_MODEL.captionScrollbarAlignment)},get captionScrollbarColor(){return firstValid(t.captionScrollbarColor,LAYOUT_MODEL.captionScrollbarColor)},get captionScrollbarHover(){return firstValid(t.captionScrollbarHover,LAYOUT_MODEL.captionScrollbarHover)},get captionScrollbarHorizontalOffset(){return firstValid(t.captionScrollbarHorizontalOffset,LAYOUT_MODEL.captionScrollbarHorizontalOffset)},get captionScrollbarVerticalOffset(){return firstValid(t.captionScrollbarVerticalOffset,LAYOUT_MODEL.captionScrollbarVerticalOffset)},get captionScrollbarBgAlpha(){return firstValid(t.captionScrollbarBgAlpha,LAYOUT_MODEL.captionScrollbarBgAlpha)},get captionAnchorTo(){return firstValid(t.captionAnchorTo,LAYOUT_MODEL.captionAnchorTo)},get slideshowRandomize(){return firstValid(t.slideshowRandomize,LAYOUT_MODEL.landingMediaRandomize)},get slideshowTransitionType(){return firstValid(t.slideshowTransitionType,LAYOUT_MODEL.landingMediaTransitionType)},get slideshowSpeed(){return firstValid(t.slideshowSpeed,LAYOUT_MODEL.landingMediaSpeed)},get slideshowTransitionDuration(){return firstValid(t.slideshowTransitionDuration,LAYOUT_MODEL.landingMediaTransitionDuration)},get slideshowAlignHorizontal(){return firstValid(t.slideshowAlignHorizontal,LAYOUT_MODEL.landingMediaAlignHorizontal)},get slideshowAlignVertical(){return firstValid(t.slideshowAlignVertical,LAYOUT_MODEL.landingMediaAlignVertical)},get slideshowScaleType(){var e=firstValid(t.slideshowScaleType,LAYOUT_MODEL.landingMediaScaleType);return isPod()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeMobile,"fit"):isPad()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeTablet,e):e},get slideshowScrollDownIcon(){return firstValid(e.scrollDownIcon,LAYOUT_MODEL.slideshowScrollDownIcon)},get siteDisplayBehavior(){if(USER_AGENT===MOBILE||USER_AGENT===TABLET)return"none";var t=(LAYOUT_MODEL.unifiedPageScrolling||/unified/.test(LAYOUT_MODEL.siteDisplayBehavior))&&/overlay/.test(e.displayBehavior)&&STATE.overrides.siteDisplayGalleryOnlyOverlay&&isThumbsFirst(e)&&/thumbs/.test(layoutCalcs._uriState.mode)?LAYOUT_MODEL.siteDisplayBehavior:e.displayBehavior;return firstValid(t,LAYOUT_MODEL.siteDisplayBehavior,LAYOUT_MODEL.unifiedPageScrolling?"unifiedPageScrolling":"none")},get siteDisplayGalleryOnlyOverlay(){return USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&e.displayGalleryOnlyOverlay},get logoViewZIndex(){return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.mobileLogoZIndex,LAYOUT_MODEL.logoZIndex,"overlay"===STATE.menuView.placement()?5:8):isPod()?firstValid(t.logoZIndex,LAYOUT_MODEL.mobileLogoZIndex,LAYOUT_MODEL.logoZIndex,"overlay"===STATE.menuView.placement()?5:8):firstValid(t.logoZIndex,LAYOUT_MODEL.logoZIndex,"overlay"===STATE.menuView.placement()?5:8)}}},get backgroundImages(){var e=[];return e=window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingBackgroundImages")?SETTINGS_MODEL.stagingBackgroundImages||e:SETTINGS_MODEL.backgroundImages.length?SETTINGS_MODEL.backgroundImages:DX_MODEL.designSettings.backgroundImages||e,e.filter(function(e){return getMediaById(e)})},get socialLinks(){var e=[];return e=window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingSocialLinks")?SETTINGS_MODEL.stagingSocialLinks||e:SETTINGS_MODEL.socialLinks.length?SETTINGS_MODEL.socialLinks:DX_MODEL.designSettings.socialLinks||e,e.filter(function(e){return getMediaById(e)})},get podUseDesktop(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingPodUseDesktop")?SETTINGS_MODEL.stagingPodUseDesktop||!1:firstValid(SETTINGS_MODEL.podUseDesktop,DX_MODEL.designSettings.podUseDesktop)||!1},get padUseDesktop(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingPadUseDesktop")?SETTINGS_MODEL.stagingPadUseDesktop||!1:firstValid(SETTINGS_MODEL.padUseDesktop,DX_MODEL.designSettings.padUseDesktop)||!1},get copyright(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingCopyright")?SETTINGS_MODEL.stagingCopyright||"":firstValid(SETTINGS_MODEL.copyright,DX_MODEL.designSettings.copyright)||""},get logoFile(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingLogoFile")?SETTINGS_MODEL.stagingLogoFile||"":firstValid(SETTINGS_MODEL.logoFile,DX_MODEL.designSettings.logoFile)||""},get logoHtml(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingLogoHtml")?SETTINGS_MODEL.stagingLogoHtml||"":firstValid(SETTINGS_MODEL.logoHtml,DX_MODEL.designSettings.logoHtml)||""},get logoText(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingLogoText")?SETTINGS_MODEL.stagingLogoText||"":firstValid(SETTINGS_MODEL.logoText,DX_MODEL.designSettings.logoText)||""},get introFile(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingIntroFile")?SETTINGS_MODEL.stagingIntroFile||"":firstValid(SETTINGS_MODEL.introFile,DX_MODEL.designSettings.introFile)||""},get blogSectionId(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingBlogSectionId")?SETTINGS_MODEL.stagingBlogSectionId||"":firstValid(SETTINGS_MODEL.blogSectionId,DX_MODEL.designSettings.blogSectionId)||""},footerView:{zIndex:function(){return LAYOUT_MODEL.copyrightZIndex?LAYOUT_MODEL.copyrightZIndex:"overlay"===STATE.menuView.placement()?5:8}},introView:{zIndex:500},mediaView:{zIndex:1,zoneX:function(){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.x():layoutCalcs.mediaView.x()},zoneY:function(e){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.y():layoutCalcs.mediaView.y(e)},zoneWidth:function(){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.width():layoutCalcs.mediaView.width()},zoneHeight:function(e){return"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior&&"multiple"===layoutCalcs.sectionDisplayMode?isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e,!0):isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e)},contentHeight:function(){return STATE.siteView.unifiedPageScroll()&&layoutCalcs._mediaContentHeight>STATE.mediaView.height()?layoutCalcs._mediaContentHeight:STATE.mediaView.height()},x:function(){var e=isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.x():layoutCalcs.mediaView.x();return layoutCalcs.isDisplace()&&"left"===STATE.overrides.thumbnailSide?e+percentToPixels(STATE.overrides.thumbnailHorizontalMargin,stage.width)+THUMB_SIZES[STATE.overrides.thumbnailSize].width:e},y:function(e){var t=isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.y():layoutCalcs.mediaView.y(e);return layoutCalcs.isDisplace()&&"top"===STATE.overrides.thumbnailSide?t+percentToPixels(STATE.overrides.thumbnailVerticalMargin,stage.height)+THUMB_SIZES[STATE.overrides.thumbnailSize].height:t},width:function(){var e=isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.width():layoutCalcs.mediaView.width();return!layoutCalcs.isDisplace()||"left"!==STATE.overrides.thumbnailSide&&"right"!==STATE.overrides.thumbnailSide?e:e-percentToPixels(STATE.overrides.thumbnailHorizontalMargin,stage.width)-THUMB_SIZES[STATE.overrides.thumbnailSize].width},height:function(e){var t=isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e),i=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height),n=/unifiedSite/.test(STATE.overrides.siteDisplayBehavior)&&/top|bottom/.test(STATE.menuView.placement())?stage.height-i:stage.height;return!(t>=n)&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior)||!layoutCalcs.isDisplace()||"top"!==STATE.overrides.thumbnailSide&&"bottom"!==STATE.overrides.thumbnailSide?t:t-percentToPixels(STATE.overrides.thumbnailVerticalMargin,stage.height)-THUMB_SIZES[STATE.overrides.thumbnailSize].height},maskX:function(){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.x():layoutCalcs.mediaMask.x()},maskY:function(e){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.y():layoutCalcs.mediaMask.y(e)},maskWidth:function(e){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.width():layoutCalcs.mediaMask.width(e)},maskHeight:function(e,t){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaMask.height(e,t)},hAlign:function(){return USER_AGENT===MOBILE?layoutCalcs.isLandingMedia?firstValid(LAYOUT_MODEL.landingMediaAlignHorizontalMobile,STATE.overrides.slideshowAlignHorizontal):STATE.overrides.imageAlignHorizontal:layoutCalcs.isLandingMedia?STATE.overrides.slideshowAlignHorizontal:STATE.overrides.imageAlignHorizontal},vAlign:function(){return USER_AGENT===MOBILE?layoutCalcs.isLandingMedia?firstValid(LAYOUT_MODEL.landingMediaAlignVerticalMobile,STATE.overrides.slideshowAlignVertical):STATE.overrides.imageAlignVertical:layoutCalcs.isLandingMedia?STATE.overrides.slideshowAlignVertical:STATE.overrides.imageAlignVertical},transitionDuration:function(e){return e?STATE.overrides.slideshowTransitionDuration:STATE.overrides.transitionDuration},imageScaleType:function(){return layoutCalcs.isLandingMedia?isPod()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeMobile,STATE.overrides.slideshowScaleType):isPad()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeTablet,STATE.overrides.slideshowScaleType):STATE.overrides.slideshowScaleType:STATE.overrides.imageScaleType},videoScaleType:function(e){return layoutCalcs.isLandingMedia?isPod()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeMobile,STATE.overrides.slideshowScaleType):isPad()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeTablet,STATE.overrides.slideshowScaleType):STATE.overrides.slideshowScaleType:e&&"fill"===STATE.overrides.videoScaleType?"fit":STATE.overrides.videoScaleType},videoAutoPlay:function(){return STATE.overrides.videoAutoPlay},backgroundColor:function(){return isFillSite()&&layoutCalcs.isLandingMedia?LAYOUT_MODEL.siteBackgroundColor:STATE.overrides.containerColor}},menuView:{placement:function(){var e;switch(LAYOUT_MODEL.menuAlignHorizontal){case"top-responsive":e=layoutCalcs.isMenuResponsiveOverlay?"overlay":"top";break;case"right-responsive":e=layoutCalcs.isMenuResponsiveOverlay?"overlay":"right";break;case"bottom-responsive":e=layoutCalcs.isMenuResponsiveOverlay?"overlay":"bottom";break;case"left-responsive":e=layoutCalcs.isMenuResponsiveOverlay?"overlay":"left";break;default:e=LAYOUT_MODEL.menuAlignHorizontal}return USER_AGENT===MOBILE||USER_AGENT===TABLET?"left":e},zIndex:6,menuPositionFixed:function(){return!!/bottom/.test(STATE.menuView.placement())||LAYOUT_MODEL.menuPositionFixed},menuFontSize:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayFontSize||LAYOUT_MODEL.menuFontSize:LAYOUT_MODEL.menuFontSize},menuSubFontSize:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlaySubFontSize||LAYOUT_MODEL.menuSubFontSize:LAYOUT_MODEL.menuSubFontSize},menuBgColor:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayBgColor||LAYOUT_MODEL.menuBgColor:LAYOUT_MODEL.menuBgColor},menuBgAlpha:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayBgAlpha||LAYOUT_MODEL.menuBgAlpha:LAYOUT_MODEL.menuBgAlpha},menuFontColor:function(){var e=LAYOUT_MODEL.menuFontColor;return USER_AGENT===MOBILE&&(e=LAYOUT_MODEL.menuFontColorMobile||e),USER_AGENT===TABLET&&(e=LAYOUT_MODEL.menuFontColorTablet||e),"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayFontColor||e:e},menuFontColorHover:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayFontColorHover||LAYOUT_MODEL.menuFontColorHover:LAYOUT_MODEL.menuFontColorHover},menuFontColorSelected:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayFontColorSelected||LAYOUT_MODEL.menuFontColorSelected:LAYOUT_MODEL.menuFontColorSelected},menuTextAlignHorizontal:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayTextAlignHorizontal||LAYOUT_MODEL.menuTextAlignHorizontal:LAYOUT_MODEL.menuTextAlignHorizontal},menuTextAlignVertical:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayTextAlignVertical||LAYOUT_MODEL.menuTextAlignVertical:LAYOUT_MODEL.menuTextAlignVertical},menuTextPaddingHorizontal:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayTextPaddingHorizontal||LAYOUT_MODEL.menuTextPaddingHorizontal:LAYOUT_MODEL.menuTextPaddingHorizontal},menuTextPaddingVertical:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayTextPaddingVertical||LAYOUT_MODEL.menuTextPaddingVertical:LAYOUT_MODEL.menuTextPaddingVertical},menuTextGap:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlayTextGap||LAYOUT_MODEL.menuTextGap:LAYOUT_MODEL.menuTextGap},menuSubTextAlignHorizontal:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlaySubTextAlignHorizontal||LAYOUT_MODEL.menuSubTextAlignHorizontal:LAYOUT_MODEL.menuSubTextAlignHorizontal},menuSubTextGap:function(){return"overlay"===STATE.menuView.placement()?LAYOUT_MODEL.menuOverlaySubTextGap||LAYOUT_MODEL.menuSubTextGap:LAYOUT_MODEL.menuSubTextGap},menuIconOverlayColor:function(){return LAYOUT_MODEL.menuIconOverlayColor||LAYOUT_MODEL.menuOverlayFontColor||"#333333"}},navbarView:{zIndex:function(){return/^overlay/.test(STATE.overrides.siteDisplayBehavior)?101:USER_AGENT===MOBILE||"overlay"===STATE.menuView.placement()?3:7}},overlayView:{x:function(){return STATE.mediaView.zoneX()},y:function(e){return/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)||isInMediaOverlay()?0:STATE.mediaView.zoneY(e)},zoneWidth:function(){return isInMediaOverlay()?stage.width:isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.width():layoutCalcs.mediaView.width()},zoneHeight:function(e){if(isInMediaOverlay())return stage.height;if(!/unifiedPageScroll/.test(STATE.overrides.siteDisplayBehavior)||USER_AGENT===HTML&&isPod()||USER_AGENT===HTML&&isPad()||/native/.test(STATE.overrides.thumbnailScrollType)||LAYOUT_MODEL.globalSmoothScroll){if(STATE.siteView.unifiedPageScroll()){var t=isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e);return layoutCalcs._thumbsVisible&&/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)&&layoutCalcs._thumbContentHeight>t?layoutCalcs._thumbContentHeight:t}return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e)}return STATE.mediaView.zoneHeight()},zIndex:4,size:{x:function(){return isInMediaOverlay()?0:STATE.overlayView.x()},y:function(e){return isInMediaOverlay()?0:STATE.overlayView.y(e)},width:function(){return STATE.overlayView.zoneWidth()},height:function(e){return STATE.overlayView.zoneHeight(e)}}},captionView:{zIndex:function(){return USER_AGENT===MOBILE||"overlay"===STATE.menuView.placement()?2:7}},siteView:{unifiedPageScroll:function(){return"overlay"!==STATE.overrides.siteDisplayBehavior&&(!/none/.test(STATE.overrides.siteDisplayBehavior)&&(/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)?/^vScroll/.test(STATE.overrides.transitionType)||layoutCalcs._thumbsVisible&&/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)||isSingleTextPage(layoutCalcs._section):/^unifiedPage/.test(STATE.overrides.siteDisplayBehavior)?/^vScroll/.test(STATE.overrides.transitionType)||layoutCalcs._thumbsVisible&&/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)||isSingleTextPage(layoutCalcs._section):LAYOUT_MODEL.unifiedPageScrolling))},width:function(){return stage.width},height:function(){if("single"===layoutCalcs.sectionDisplayMode&&isFillSite()&&layoutCalcs.isLandingMedia)return layoutCalcs.landingMediaView.height();if(USER_AGENT===MOBILE||USER_AGENT===TABLET)return stage.height;if("unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior&&"multiple"===layoutCalcs.sectionDisplayMode){var e=getMarginOverlap()||0,t=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height),i=percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height),n=layoutCalcs.mediaModules&&layoutCalcs.mediaModules[0],o=n&&n.controller.section;o&&STATE.section(o);var a=0,r=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height);return o&&isFillSiteSlideshow(o)?layoutCalcs.mediaViewsHeight+i:/top/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?(a=t+r-e,a+layoutCalcs.mediaViewsHeight+i):/bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?(a=i+r-e,t+layoutCalcs.mediaViewsHeight+a):t+layoutCalcs.mediaViewsHeight+i}if(STATE.siteView.unifiedPageScroll()||/unified/.test(LAYOUT_MODEL.siteDisplayBehavior)&&/overlay/.test(STATE.overrides.siteDisplayBehavior)&&STATE.overrides.siteDisplayGalleryOnlyOverlay){var l=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height),s=/top/.test(STATE.menuView.placement()),d=/bottom/.test(STATE.menuView.placement()),c=!LAYOUT_MODEL.isMenuScrollReveal&&(s||d);if(c){var e=getMarginOverlap()||0,r=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height),t=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height),i=percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height),a=(stage.height,r-e||0);l+=a}if(/thumbs/.test(layoutCalcs._uriState.mode)&&/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)&&(isPod()||isPad()||/native/.test(STATE.overrides.thumbnailScrollType)||LAYOUT_MODEL.globalSmoothScroll))l+=layoutCalcs._thumbContentHeight>STATE.mediaView.zoneHeight()?layoutCalcs._thumbContentHeight:STATE.mediaView.zoneHeight();else{var h=layoutCalcs._section&&layoutCalcs._section.key;l+=STATE.mediaView.height(h)>STATE.mediaView.zoneHeight()?STATE.mediaView.height(h):STATE.mediaView.zoneHeight()}return l+=percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height)}return stage.height}},setPassedSection:function(e){passedSections.push(e)},getPassedSection:function(e){return passedSections.indexOf(e)>-1}};layoutCalcs.sectionDisplayMode=/unifiedSiteScroll/.test(STATE.overrides.siteDisplayBehavior)?"multiple":"single";var Address={url:"",path:"",query:"",fragment:"",listeners:[],onUriChange:function(){},init:function(){this.url=window.location.pathname+window.location.search,window.onpopstate=Address.fireListeners,window.onhashchange=Address.fireListeners,setTimeout(function(){window.history.pushState({value:Address.url},"",Address.url),Address.fireListeners()},0)},fireListeners:function(e,t){e&&e.state&&e.state.value&&(Address.url=e.state.value),Address.onChange(decodeURIComponent(Address.url)||"/",t),Address.onUriChange(Address.url,t)},setValue:function(e,t,i){if(0===e.indexOf("http"))window.location=e;else{var n=e.split("?"),o=i?"pushState":"replaceState";this.path=this.addDashes(this.trim(n[0])),this.query=n[1]?"?"+n[1]:"",this.url="/"+this.path+this.query,window.history[o]({value:this.url},"",this.url),this.fireListeners({},t)}"function"!=typeof window.ga||isAdmin||ga("send",{hitType:"pageview",page:window.location.pathname})},back:function(){history.back()},setLocation:function(e){window.location=e},setMetaDescription:function(e){var t=document.head.querySelector("meta[name='description']");e&&t&&t.setAttribute("content",e)},getMetaDescription:function(){var e=document.head.querySelector("meta[name='description']");return e?e.content:""},getQuery:function(){return window.location.search},setTitle:function(e){document.title=e},getTitle:function(){return document.title},getHost:function(){return window.location.host},addDashes:function(e){return e.replace(/ /g,"-").replace(/%20/g,"-")},trim:function(e){return e.replace(/^\s+|\s+$/g,"").replace(/^\/|\/$/g,"")}},MediaController=function(){function e(e,i){function n(){V.dispatchEvent(PAUSE_MEDIA)}function o(e){I.dispatchEvent(ADDRESS_ASSET_CHANGE,e)}function a(){I.dispatchEvent(PAGE_LOADED)}function r(e){V.dispatchEvent(LAYOUT_MODEL_CHANGE,e),x.section&&"layoutModelInit"!==e.id&&(P.test(e.id)||Y.test(e.id)||R.test(e.id)||N.test(e.id))&&(V.dispatchEvent("SectionMediaFactory/buildItems",{section:x.section,media:removeLinksFromMedia(x.section.media)}),V.dispatchEvent("assetReset")),t(x)}function l(e){return/page/.test(e)}function s(e){return/imageVideo|caption/.test(e)}function d(e,t){return/thumb/.test(t)&&"strip"!==e}function c(e){if(x.section&&(STATE.section(x.section),V.dispatchEvent(SECTIONS_MODEL_CHANGE,e),"update"===e.method&&e.id===x.section.id&&!d(STATE.overrides.thumbnailType,x.state.mode))){if("media"===e.field)V.dispatchEvent("SectionMediaFactory/buildItems",{section:x.section,media:e.value?removeLinksFromMedia(e.value):[]}),V.dispatchEvent("assetReset");else if("overrides"===e.field){var i=JSON.stringify(e.value);l(i)&&"html"===layoutCalcs._activeMediaType?(V.dispatchEvent("SectionMediaFactory/buildItems",{section:x.section,media:removeLinksFromMedia(x.section.media)}),V.dispatchEvent("assetReset")):s(i)&&/image|video/.test(layoutCalcs._activeMediaType)&&(V.dispatchEvent("SectionMediaFactory/buildItems",{section:x.section,media:removeLinksFromMedia(x.section.media)}),V.dispatchEvent("assetReset"))}else if(V.dispatchEvent("SectionMediaFactory/buildItems",{section:x.section,media:removeLinksFromMedia(x.section.media)}),V.dispatchEvent("assetReset"),"slideshow"===e.field){var n=e.value?"landingMedia":"mediaView";U=n,x.mediaViewBehavior=x.behavior.navigationModeChange(n);var o=x.state;o.isLandingMedia=e.value,o.info.mediaViewState=n,x.mediaViewBehavior.uriChange(o)}t(x)}}function h(e){V.dispatchEvent(SETTINGS_MODEL_CHANGE,e),"update"===e.method&&x.section&&("landingMedia"===x.section.id||x.section.isIntroGallery)&&"backgroundImages"===e.id&&I.dispatchEvent("resetUriChange",e)}function u(e){V.dispatchEvent(MEDIA_MODEL_CHANGE,e),"update"===e.method&&x.section&&x.section.media.indexOf(e.id)>-1&&(V.dispatchEvent("SectionMediaFactory/buildItems",{section:x.section,media:removeLinksFromMedia(x.section.media)}),V.dispatchEvent("assetReset")),t(x)}function T(e){V.dispatchEvent("MediaView/ContentReady",e.media)}function E(){V.dispatchEvent("layoutMediaView",{section:x.section}),z&&I.addEventListener(RESIZE_END,g),z=!1,"landingMedia"===U||x.mediaToRender.length<2?V.dispatchEvent("hideCursor"):V.dispatchEvent("showCursor")}function g(){V.dispatchEvent(RESIZE),STATE.section(x.section),x.staticNav&&x.staticNav.resize({x:0,y:0,width:STATE.mediaView.zoneWidth(),height:x.getTotalHeight()})}function m(){V.dispatchEvent(ORIENTATION_CHANGE)}function p(e){x.state&&x.state.assetId!==e.id&&(x.state.assetId=e.id,I.dispatchEvent("updateAssetId",e))}function L(e){x.section.key===e.section.key&&(x.state.mode=e.mode,V.dispatchEvent("checkCaption",e))}function f(e){/video|vimeo/.test(e.type)&&V.dispatchEvent("mediaSizeUpdate",e)}function v(){I.dispatchEvent(TRANSITION_START)}function S(){I.dispatchEvent(TRANSITION_END)}function O(e){x.cursorAxis=e,I.dispatchEvent("cursorAxisUpdate",e)}function C(e){I.dispatchEvent(CONTACT_FORM_SUBMIT,e)}function A(e){I.dispatchEvent(SHARE_FORM_SUBMIT,e)}function b(e){I.dispatchEvent(INQUIRY_FORM_SUBMIT,e)}function y(e){V.dispatchEvent(CONTACT_FORM_SENT,e)}function M(e){V.dispatchEvent(SHARE_FORM_SENT,e)}function w(e){V.dispatchEvent(INQUIRY_FORM_SENT,e)}function _(e){I.dispatchEvent(NAVBAR_OVERLAY_BTN_CLICK,e)}function D(e){I.dispatchEvent(TOUCH_NAVIGATION_END,e)}var U,x=this,V=e,I=i,P=/contactTitleFont|contactTitleFontSize|contactTitleShow|contactFont|contactFontSize|contactFontColor|contactFieldRectColor/,Y=/attachmentGallery|containerColor|transitionType|imageAlignHorizontal|imageAlignVertical|imageScaleType|videoScaleType|imageVideoInactiveAlpha|imageVideoMarginTop|imageVideoMarginRight|imageVideoMarginBottom|imageVideoMarginLeft|imageVideoScrollType|imageVideoScrollbarRounded|imageVideoScrollVisibility|imageVideoScrollbarHorizontalOffset|imageVideoScrollbarVerticalOffset/,R=/pageMarginTop|pageMarginRight|pageMarginBottom|pageMarginLeft|pageScrollVerticalMargin|pageTextFont|pageTextKerning|pageTextFontSize|pageTextFontColor|pageTitle|pageTitleFont|pageTitleKerning|pageTitleFontSize|pageTitleFontColor|pageScrollbarAlignment|pageScrollbarHorizontalOffset|pageScrollbarVerticalOffset|pageScrollbarColor|pageScrollbarHover|pageScrollbarBgAlpha|pageScrollbarWidth/,N=/landingMediaRandomize|landingMediaTransitionType|landingMediaSpeed|landingMediaTransitionDuration|landingMediaAlignHorizontal|landingMediaAlignVertical|landingMediaScaleType/,z=!0;I.addEventListener(ORIENTATION_CHANGE,m),I.addEventListener(LAYOUT_MODEL_CHANGE,r),I.addEventListener(SECTIONS_MODEL_CHANGE,c),I.addEventListener(SETTINGS_MODEL_CHANGE,h),I.addEventListener(MEDIA_MODEL_CHANGE,u),I.addEventListener(PAUSE_MEDIA,n),I.addEventListener(CONTACT_FORM_SENT,y),I.addEventListener(SHARE_FORM_SENT,M),I.addEventListener(INQUIRY_FORM_SENT,w),I.addEventListener("thumbStripDisplaceChange",g),I.addEventListener(MENU_DOCK_CLOSE,function(e){V.dispatchEvent(MENU_DOCK_CLOSE,e)}),I.addEventListener(MENU_DOCK_OPEN,function(e){V.dispatchEvent(MENU_DOCK_OPEN,e)}),I.addEventListener("SITE_URI_CHANGE_PASSIVE",L),V.addEventListener("SectionMediaFactory/mediaBuilt",T),V.addEventListener("MediaView/ContentAdded",E),V.addEventListener("ScrollTransition/updateAssetId",p),V.addEventListener(MEDIA_LOADED,f),V.addEventListener(TRANSITION_START,v),V.addEventListener(TRANSITION_END,S),V.addEventListener("cursorAxisUpdate",O),V.addEventListener(ADDRESS_ASSET_CHANGE,o),V.addEventListener(CONTACT_FORM_SUBMIT,C),V.addEventListener(SHARE_FORM_SUBMIT,A),V.addEventListener(INQUIRY_FORM_SUBMIT,b),V.addEventListener(NAVBAR_OVERLAY_BTN_CLICK,_),V.addEventListener(TOUCH_NAVIGATION_END,D),V.addEventListener(PAGE_LOADED,a),V.addEventListener("siteAnchorCaptionUpdate",function(e){I.dispatchEvent("siteAnchorCaptionUpdate",e)}),V.addEventListener("mediaOverlayClose",function(){n(),I.dispatchEvent("mediaOverlayClose")}),V.addEventListener("adminPageviewImageSizes",function(e){I.dispatchEvent("adminPageviewImageSizes",e)}),V.addEventListener("lightboxDownloadOverlayOpen",function(){I.dispatchEvent("lightboxDownloadOverlayOpen")}),V.addEventListener("lightboxUpdateItem",function(e){I.dispatchEvent("lightboxUpdateItem",e)}),V.addEventListener("attachmentDownload",function(e){I.dispatchEvent("attachmentDownload",e)}),I.addEventListener(RESIZE_END,function(e){STATE.section(x.section),(STATE.overrides.thumbnailOnly||isThumbsFirst(x.section))&&x.overlayController.resize()}),V.addEventListener("UPDATE_CONTENT_HEIGHT",function(e){STATE.section(x.section),e.thumbs&&x.thumbsTotalHeight!==e.thumbs?(/strip/.test(STATE.overrides.thumbnailType)&&/thumbs/.test(x.state.mode)?/top|bottom/.test(STATE.overrides.thumbnailSide)?x.thumbsTotalHeight=Math.round(e.thumbs+x.totalHeight):x.thumbsTotalHeight=Math.round(x.totalHeight):x.thumbsTotalHeight=Math.round(e.thumbs),/^overlay/.test(STATE.overrides.siteDisplayBehavior)&&!isClosedGalleryOnlyOverlay()||(layoutCalcs._thumbContentHeight=Math.round(e.thumbs))):e.gallery&&(x.totalHeight=Math.round(e.gallery),x.overlayController.resize());var t;/thumbs/.test(x.state.mode)&&(t=/strip/.test(STATE.overrides.thumbnailType)&&x.totalHeight>0&&x.totalHeight>x.thumbsTotalHeight?x.totalHeight:x.thumbsTotalHeight);var i=/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?getMarginOverlap()||0:0;i&&(t-=i);var n={height:x.totalHeight};x.mediaView.container.children[0]&&(n.isFullTextHeight=allowPageContentHeight(x.mediaView.container.children[0],x.mediaView.container.children.length)),t&&(n.zoneHeight=t),layoutCalcs.updateSectionState(x.section.key,n),x.staticNav&&x.staticNav.resize({x:0,y:0,width:STATE.mediaView.zoneWidth(),height:x.getTotalHeight()}),I.dispatchEvent("UPDATE_CONTENT_HEIGHT")}),x.getTotalHeight=function(){if(STATE.section(x.section),"none"===STATE.overrides.siteDisplayBehavior)return STATE.mediaView.zoneHeight();if(isIndexSection(x.section)&&/thumbs/.test(x.state.mode))return x.thumbsTotalHeight?x.thumbsTotalHeight:STATE.mediaView.zoneHeight(x.section.key);if(isSlideshowGallery(x.section)||/none/.test(STATE.overrides.thumbnailType)||!/thumbs/.test(x.state.mode)){if(/unifiedSiteScrollVertical/.test(STATE.overrides.siteDisplayBehavior)){var e=x.mediaView.container.boundsHeight,t=layoutCalcs.getMaxScrollSectionHeight(x.mediaView);return/vScroll/.test(STATE.overrides.transitionType)?e:e&&e