").replace(/\\/g,""),k.selectable=!0,k.setClass("dx_page_text ql-editor"),k.fontFamily=Pi.contactFont,k.fontSize=Pi.contactFontSize,k.fontColor=Pi.contactFontColor,k.textAlign="right",k.textWrap=!1,z.addChild(k),z.addChild(O);var n=z.element.getElementsByTagName("img"),o=n.length;if(n.length>0)for(;o--;){var a=n[o];a.addEventListener(en,function(e){g()})}A>320&&(A=320,k.width=320,k.textWrap=!0,k.style["word-wrap"]="break-word");for(var o=0,r=L.length,s=0;oO.height?y+=k.element.offsetHeight+t:(y+=O.height,y+=M.element.offsetHeight+5+t),z.height=y}function r(){if(Ma.section(T.section),Wi===Xi||Wi===Ni)T.element.style.overflowY="scroll",T.element.style.overflowX="hidden",T.element.style["-webkit-overflow-scrolling"]="touch";else if(Ma.siteView.unifiedPageScroll()&&/vScroll/.test(Ma.overrides.transitionType))a(),setTimeout(function(){Ma.section(T.section);var e=y;e=e>Ma.mediaView.height()?e:Ma.mediaView.height();var t=e!==T.contentHeight;T.contentHeight=e,T.height=e,t&&F.dispatchEvent("MEDIA_HEIGHT_CHANGE")},30);else if("native"===Pi.pageScrollType)T.element.style.overflowY="scroll",T.element.style.overflowX="hidden";else if("Macintosh"===aa&&"nativeMacOs"===Pi.pageScrollType)T.element.style.overflowY="scroll",T.element.style.overflowX="hidden";else{T.scroll&&T.scroll.destroy();var e=Pi.pageScrollbarWidth,t=Wi===Xi?-(e+5):Pi.pageScrollbarHorizontalOffset,i="right"===Pi.pageScrollbarAlignment?-t-e:t+e,n={name:"text page",types:["bar","wheel","touch"],axis:"y",align:"top",margin:Pi.pageScrollVerticalMargin,color:Pi.pageScrollbarColor,hover:Pi.pageScrollbarHover,side:Pi.pageScrollbarAlignment,alpha:Pi.pageScrollbarBgAlpha,width:e,offsetX:i,offsetY:Pi.pageScrollbarVerticalOffset,property:"translate",rounded:Pi.pageScrollbarRounded,visibility:Pi.pageScrollbarVisibility,scrollTopCheck:!0,parent:T};"nativeMacOs"===Pi.pageScrollType&&(n.margin=0,n.color="#000000",n.hover="#000000",n.side="right",n.alpha=0,n.width=7,n.offsetX=0,n.offsetY=0,n.rounded=!0,n.visibility="when scrolling"),T.scroll=new Re(z,T,n),T.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){T.scroll.percent=0,T.scroll.update(Lo)})}}function l(e){function t(e){F.removeEventListener("destroy",t),o.removeEventListener(on,s),o.removeEventListener(an,d)}var i=new Ca;i.width=300;var n=new lt;n.fontFamily=Pi.contactTitleFont,n.fontColor=Pi.contactFontColor,n.fontSize=11,n.text=e,n.selectable=!1,i.addChild(n);var o="Comments"===e?new rt:new et;return o.backgroundColor=V(Pi.contactFieldRectColor,.1),o.border="1px solid "+V(Pi.contactFieldRectColor,.3),o.fontFamily=Pi.contactTitleFont,o.fontColor=Pi.contactFontColor,o.fontSize=16,o.height="Comments"===e?150:20,o.width=300,o.y=17,o.addEventListener(on,s),o.addEventListener(an,d),F.addEventListener("destroy",t),i.addChild(o),i.id=e,i.input=o,i}function s(e){qe(this,Lo,{backgroundColor:V(Pi.contactFieldRectColor,.2),border:"1px solid "+V(Pi.contactFieldRectColor,.7)})}function d(e){qe(this,Lo,{backgroundColor:V(Pi.contactFieldRectColor,.1),border:"1px solid "+V(Pi.contactFieldRectColor,.3)})}function c(e){qe(this,Lo,{backgroundColor:V(Pi.contactFieldRectColor,.8)})}function h(e){qe(this,Lo,{backgroundColor:V(Pi.contactFieldRectColor,1)})}function u(e){I.text=e.response,I.x=A+17,qe(O,Lo,{alpha:0,onComplete:function(e){O.display="none"}}),qe(I,Lo,{alpha:1})}function p(e){var t=Hi[T.id],i=[].slice.apply(O.children).filter(function(e){return e.id}).reduce(function(e,t){if(e){if(e[t.id]=t.input.value||"","Name"===t.id&&""===t.input.value)return ke("Name field cannot be blank."),!1;if("Email"===t.id&&(t.input.value.indexOf("@")===-1||t.input.value.indexOf(".")===-1))return ke("Please enter valid email address."),!1;if("Comments"===t.id&&""===t.input.value)return ke("Comments field cannot be blank."),!1}return e},{});i.Title=t.label,i.toEmail=t.content.contactFormEmail,i.subject=t.content.contactFormSubject,i&&F.dispatchEvent(ko,i)}function m(e){Ma.section(T.section),qe(T,T.updateSpeed,{backgroundColor:Ma.mediaView.backgroundColor()})}function v(){return Ma.section(T.section),Wi===Xi||z.width+16>Ma.mediaView.width()}function g(e){Ma.section(T.section),xa.activeMediaType=T.type,A=k.element.offsetWidth,A>320&&(A=320,k.width=320,k.textWrap=!0,k.style["word-wrap"]="break-word"),z.width=A+O.width+18,v()?(k.x=8,O.x=-8,Pi.contactTitleShow?(x&&(x.x=8,x.y=E(Pi.contactTitleFontSize,100)),k.y=x.y+E(Pi.contactTitleFontSize,100)+16,O.y=k.y+k.element.offsetHeight+16):(k.y=0,O.y=k.element.offsetHeight),T.scroll&&(T.scroll.align="top"),O.borderLeft="1px solid "+V(Pi.contactFieldRectColor,0),k.textAlign="left"):(k.x=0,k.y=0,O.x=A+16,O.y=44,O.borderLeft="1px solid "+V(Pi.contactFieldRectColor,.3),k.textAlign="right",Pi.contactTitleShow&&x&&(x.textWrap=!0,x.x=A+32,x.y=E(Pi.contactTitleFontSize,100)-33),T.scroll&&(T.scroll.align="top")),w&&!w.contactFormExtra&&(T.scroll&&(T.scroll.align="top"),O.borderLeft="1px solid "+V(Pi.contactFieldRectColor,0),O.x=-8,x&&(x.x=8)),z.transition=0,a(),qe.defer(z,T.updateSpeed,{x:f(),y:b(),onComplete:function(){T.scroll&&T.scroll.resize(),qe(z,Lo,{alpha:1})}}),T.updateSpeed=Lo,isInit=!1,r()}function f(){if(Ma.section(T.section),xa._activeView="contact",z.width+16>Ma.mediaView.width()){var e=Math.round(.5*(Ma.mediaView.width()-O.width));return e}var e=Math.round(.5*(Ma.mediaView.width()-z.width));return e}function b(){return Ma.section(T.section),xa._activeView="contact",y>Ma.mediaView.height()?Wi===Xi||Wi===Ni?40:22:Math.round(.5*(Ma.mediaView.height()-y))}function C(e){F.removeEventListener(tn,g),F.removeEventListener(_n,g),F.removeEventListener("destroy",C),F.removeEventListener("showCursor",t),F.removeEventListener("hideCursor",n),F.removeEventListener(Io,u),T.removeEventListener(So,o)}var w,y,L,x,M,T=new Ca({events:e.events}),z=new Ca,k=new Ca,O=new Ca,I=new Ca,F=e.localEvents,A=0;return T.section=e.section,T.alpha=0,z.alpha=0,z.selectable=!0,T.updateSpeed=0,T.id=e.mediaItem.id,T.type=e.mediaItem.type,T.dims=e.size.content,T.element.navigationCursor=!i(T.section),T.mediaItem=e.mediaItem,T.addEventListener(So,o),F.addEventListener(tn,g),F.addEventListener(_n,g),F.addEventListener("destroy",C),F.addEventListener("showCursor",t),F.addEventListener("hideCursor",n),T.load=function(){T.loaded=!0},T.unload=function(){},T.show=function(){T.display="block",qe(T,Lo,{alpha:1})},T.hide=function(){qe(T,Lo,{alpha:0,onComplete:function(){T.display="none"}})},T.updatePosition=g,T}function Kt(e){function t(){return Ma.lightboxSection&&!Pi.lightboxGalleryBtnDisable&&!Pi.lightboxImageDisable}function n(){i(w.section)||(w.element.navigationCursor=!0,x.element.navigationCursor=!0,M.element.navigationCursor=!0),x.element.addEventListener("contextmenu",o),x.element.addEventListener("dragstart",o),w.element.style["user-select"]="none",M.element.style["user-select"]="none",x.element.style["user-select"]="none",w.addChild(M),M.addChild(x),"spinner"===Ma.overrides.imageVideoLoaderType&&(L=new tt({color:e.loaderColor}),M.addChild(L)),l(),v()}function o(e){var t=void 0===Bi.disableRightClick||Bi.disableRightClick;t&&e.preventDefault()}function a(){i(w.section)||(w.element.navigationCursor=!0,x.element.navigationCursor=!0,M.element.navigationCursor=!0)}function r(){w.element.navigationCursor=!1,x.element.navigationCursor=!1,M.element.navigationCursor=!1}function l(){Ma.section(w.section),x&&Pi.imageRendering.optimizeQuality&&(x.style["image-rendering"]="optimizeQuality"),x&&Pi.imageRendering.webkitOptimizeContrast&&(x.style["image-rendering"]="-webkit-optimize-contrast"),x&&"Safari"===ra&&Pi.imageRendering.webkitBackfaceVisibility&&(x.element.style["-webkit-backface-visibility"]="hidden"),x&&Wi===Xi&&(x.element.style["-webkit-backface-visibility"]="hidden"),Wi===Xi?qe(w,w.updateSpeed,{backgroundColor:Pi.containerColorMobile||Ma.mediaView.backgroundColor()}):Wi===Ni?qe(w,w.updateSpeed,{backgroundColor:Pi.containerColorTablet||Ma.mediaView.backgroundColor()}):qe(w,w.updateSpeed,{backgroundColor:Ma.mediaView.backgroundColor()}),p(_)}function s(){if(/media/.test(S.captionAnchorTo)||/media/.test(Ma.overrides.captionAnchorTo)){Ma.section(w.section),xa.activeMediaType=w.type,y.container.transition=0,K(S.captionCloseButton,Ma.overrides.captionCloseButton)?y.showCloseButton():y.hideCloseButton();var t={onInit:function(){y.scroll&&y.scroll.hide()},onComplete:function(){y.scroll&&(y.scroll.show(),y.scroll.resize())}},n=S.captionBackgroundRectColor||Ma.overrides.captionBackgroundRectColor,o=K(S.captionBackgroundAlpha,Ma.overrides.captionBackgroundAlpha);if(y.backgroundColor=V(n,o),y.fontFamily=S.captionFont||Ma.overrides.captionFont,y.fontSize=wa.width-1)&&y.show(s)}}function m(){var e=i(w.section)&&Pi.slideshowCaptions;e||y.hide()}function v(){Ma.section(w.section),xa.activeMediaType=w.type,D=Ma.mediaView.maskWidth(w.width),R=Ma.mediaView.maskHeight(w.height,w.section.key),qe(M,w.updateSpeed,{x:Ma.mediaView.maskX(),y:Ma.mediaView.maskY(w.section.key),width:D,height:R}),b(),B&&f(),p(_)}function g(){w.updateSpeed=0,B=!0,this.width&&T!==this.width&&(T=this.width),this.height&&z!==this.height&&(z=this.height),L&&(L.removeLoader(),M.removeChild(L)),v(),p(_),w.dispatchEvent(yo,{type:"image",id:e.mediaItem.id,width:this.width,height:this.height}),w.events.dispatchEvent(yo,{type:"image",id:e.mediaItem.id,width:this.width,height:this.height}),w.updateSpeed=Lo,"Safari"===ra&&/hScroll/.test(Ma.overrides.transitionType)&&x.element.setAttribute("nopin","nopin")}function f(){Ma.section(w.section);var e=Pe(null,0,{type:Ma.mediaView.imageScaleType(),width:T,height:z,hRange:D,vRange:R,hAlign:Ma.mediaView.hAlign(),vAlign:Ma.mediaView.vAlign(),disableOrientationCheck:F()});O=Math.ceil(e.scale.width),I=Math.ceil(e.scale.height),P=Math.floor(e.align.x),H=Math.floor(e.align.y),qe(x,w.updateSpeed,{x:P,y:H,width:O,height:I,onComplete:function(){setTimeout(function(){qe(x,Ma.mediaView.transitionDuration(),{alpha:1,ease:"cubic-bezier(0.7, 0, 0.3, 1)"})},0)}}),p(_)}function b(){L&&(L.x=.5*(D-L.width),L.y=.5*(R-L.height))}function C(){j.removeEventListener("destroy",C),j.removeEventListener(tn,v),j.removeEventListener(_n,v),j.removeEventListener("showCursor",a),j.removeEventListener("hideCursor",r),x.removeEventListener(en,g),w.removeEventListener(So,n)}var w=new Ca({events:e.localEvents});w.alpha=0,w.updateSpeed=0,w.overflow="hidden",w.id=e.mediaItem.id,w.type=e.mediaItem.type,w.dims=e.size.content,w.section=e.section,w.state=e.state,w.mediaItem=e.mediaItem;var y,L,S,x=new Ke,M=new Ca,T=e.size.content.width,z=e.size.content.height,O=0,I=0,P=0,H=0,D=0,R=0,B=!1,j=e.localEvents,_=e.state;if(t()&&Ma.lightboxButtonsEnabled()){var W=Ma.lightboxSection.media.indexOf(w.mediaItem.id);if(!w.mediaItem.disableLightbox){var N=we({alignHorizontal:Pi.lightboxGalleryBtnAlignHorizontal||"left",alignVertical:Pi.lightboxGalleryBtnAlignVertical||"top",horizontalOffset:E(Pi.lightboxGalleryBtnHorizontalOffset,wa.height),verticalOffset:E(Pi.lightboxGalleryBtnVerticalOffset,wa.height),blendMode:Pi.lightboxGalleryBtnBlendMode||"difference",font:Pi.lightboxGalleryBtnFont||"Helvetica",fontSize:Pi.lightboxGalleryBtnFontSize||12,fontColor:Pi.lightboxGalleryBtnFontColor||"#999999"});if(N.zIndex=1,N.text=W>-1?Pi.lightboxGalleryBtnRemoveText||"- Lightbox":Pi.lightboxGalleryBtnAddText||"+ Lightbox",N.addEventListener("click",function(e){var t,i=Ma.lightboxSection.media.indexOf(w.mediaItem.id);i>-1?(N.text=Pi.lightboxGalleryBtnAddText||"+ Lightbox",t="remove"):(N.text=Pi.lightboxGalleryBtnRemoveText||"- Lightbox",t="add"),w.events.dispatchEvent("lightboxUpdateItem",{action:t,id:w.mediaItem.id}),N.cursor="pointer"}),w.addChild(N),e.section.isLightbox&&!Pi.lightboxGalleryDownloadBtnDisable){var X=we({alignHorizontal:Pi.lightboxDownloadBtnAlignHorizontal||"right",alignVertical:Pi.lightboxDownloadBtnAlignVertical||"top",horizontalOffset:E(Pi.lightboxDownloadBtnHorizontalOffset,wa.height),verticalOffset:E(Pi.lightboxDownloadBtnVerticalOffset,wa.height),blendMode:Pi.lightboxDownloadBtnBlendMode||"difference",font:Pi.lightboxDownloadBtnFont||"Helvetica",fontSize:Pi.lightboxDownloadBtnFontSize||12,fontColor:Pi.lightboxDownloadBtnFontColor||"#999999"});X.zIndex=1,X.text=Pi.lightboxDownloadBtnText||"↓",X.addEventListener("click",function(e){w.events.dispatchEvent("lightboxDownloadOverlayOpen")}),w.addChild(X)}}}x.alpha=0,x.selectable=!1,M.overflow="hidden",j.addEventListener(tn,v),j.addEventListener(_n,v),j.addEventListener("destroy",C),j.addEventListener("showCursor",a),j.addEventListener("hideCursor",r),w.addEventListener(So,n);var Y=k(e.mediaItem);return y||""===Y||(y=new za,S=e.mediaItem.overrides||{},j.addEventListener("showCaption",p),j.addEventListener("hideCaption",m),j.addEventListener("checkCaption",c),h(Y)),w.load=function(){w.loaded=!0,x.addEventListener(en,g),x.src=d(e.mediaItem.content,e.mediaItem.demoFile),""!==Y&&(w.addChild(y.container),s())},w.unload=function(){},w.hide=function(){1===w.alpha&&qe(w,Lo,{alpha:0,onComplete:function(){w.display="none"}})},w.show=function(){0===w.alpha&&(w.display="block",qe(w,Lo,{alpha:1}))},w.updatePosition=v,w}function Jt(e){function t(e){i(H.section)||(H.element.navigationCursor=!0,V&&(V.element.navigationCursor=!0),R.element.navigationCursor=!0)}function n(e){H.element.navigationCursor=!1,V&&(V.element.navigationCursor=!1),R.element.navigationCursor=!1}function o(e){/page|imageRendering/.test(e.id)&&(y(),L())}function a(){Ma.section(H.section),e.mediaItem.content=ue(e.mediaItem.content),H.loaded=!1;var t=He({width:B,height:j,filename:e.mediaItem.featuredImage});B=Math.round(t.width),j=Math.round(t.height),w()&&!T()?(V=new Ke,V.dataSrc=d(e.mediaItem.featuredImage,e.mediaItem.demoFile),i(H.section)||(V.element.navigationCursor=!0,R.element.navigationCursor=!0),V.addEventListener(en,x),V.alpha=0,H.addChild(V)):(H.events.dispatchEvent(yo,{}),setTimeout(function(){H.updateSpeed=Ma.mediaView.transitionDuration()},0));var n="";if(C()){var o=Ma.overrides.pageTitleFont.split(":"),a=o[0],r=o[1],l=E(Ma.overrides.pageTitleFontSize,22);n+="