"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["417"],{2458:function(t,e,i){var n=i(3949),r="w-condition-invisible",o="."+r;function a(t){return!!(t.$el&&t.$el.closest(o).length)}function l(t,e){for(var i=t;i>=0;i--)if(!a(e[i]))return i;return -1}function h(t,e){for(var i=t;i<=e.length-1;i++)if(!a(e[i]))return i;return -1}function s(t,e){t.attr("aria-label")||t.attr("aria-label",e)}n.define("lightbox",t.exports=function(t){var e,i,o,c={},d=n.env(),u=function(t,e,i,n){var o,c,d,u=i.tram,p=Array.isArray,g=/(^|\s+)/g,f=[],m=[];function x(t,e){return f=p(t)?t:[t],c||x.build(),f.filter(function(t){return!a(t)}).length>1&&(c.items=c.empty,f.forEach(function(t,e){var i=j("thumbnail"),n=j("item").prop("tabIndex",0).attr("aria-controls","w-lightbox-view").attr("role","tab").append(i);s(n,`show item ${e+1} of ${f.length}`),a(t)&&n.addClass(r),c.items=c.items.add(n),A(t.thumbnailUrl||t.url,function(t){t.prop("width")>t.prop("height")?P(t,"wide"):P(t,"tall"),i.append(P(t,"thumbnail-image"))})}),c.strip.empty().append(c.items),P(c.content,"group")),u(S(c.lightbox,"hide").trigger("focus")).add("opacity .3s").start({opacity:1}),P(c.html,"noscroll"),x.show(e||0)}function w(t){return function(e){this===e.target&&(e.stopPropagation(),e.preventDefault(),t())}}x.build=function(){return x.destroy(),(c={html:i(e.documentElement),empty:i()}).arrowLeft=j("control left inactive").attr("role","button").attr("aria-hidden",!0).attr("aria-controls","w-lightbox-view"),c.arrowRight=j("control right inactive").attr("role","button").attr("aria-hidden",!0).attr("aria-controls","w-lightbox-view"),c.close=j("control close").attr("role","button"),s(c.arrowLeft,"previous image"),s(c.arrowRight,"next image"),s(c.close,"close lightbox"),c.spinner=j("spinner").attr("role","progressbar").attr("aria-live","polite").attr("aria-hidden",!1).attr("aria-busy",!0).attr("aria-valuemin",0).attr("aria-valuemax",100).attr("aria-valuenow",0).attr("aria-valuetext","Loading image"),c.strip=j("strip").attr("role","tablist"),d=new O(c.spinner,D("hide")),c.content=j("content").append(c.spinner,c.arrowLeft,c.arrowRight,c.close),c.container=j("container").append(c.content,c.strip),c.lightbox=j("backdrop hide").append(c.container),c.strip.on("click",N("item"),I),c.content.on("swipe",k).on("click",N("left"),v).on("click",N("right"),b).on("click",N("close"),y).on("click",N("image, caption"),b),c.container.on("click",N("view"),y).on("dragstart",N("img"),C),c.lightbox.on("keydown",R).on("focusin",L),i(n).append(c.lightbox),x},x.destroy=function(){c&&(S(c.html,"noscroll"),c.lightbox.remove(),c=void 0)},x.show=function(t){if(t!==o){var e,n=f[t];if(!n)return x.hide();if(a(n)){if(t-1?r:t}else{var s=h(t+1,f);t=s>-1?s:t}n=f[t]}var p=o;return o=t,c.spinner.attr("aria-hidden",!1).attr("aria-busy",!0).attr("aria-valuenow",0).attr("aria-valuetext","Loading image"),d.show(),A(n.html&&(e=n.width,"data:image/svg+xml;charset=utf-8,"+encodeURI(''))||n.url,function(e){if(t===o){var r,a,s=j("figure","figure").append(P(e,"image")),g=j("frame").append(s),m=j("view").prop("tabIndex",0).attr("id","w-lightbox-view").append(g);n.html&&((a=(r=i(n.html)).is("iframe"))&&r.on("load",x),s.append(P(r,"embed"))),n.caption&&s.append(j("caption","figcaption").text(n.caption)),c.spinner.before(m),a||x()}function x(){if(c.spinner.attr("aria-hidden",!0).attr("aria-busy",!1).attr("aria-valuenow",100).attr("aria-valuetext","Loaded image"),d.hide(),t!==o)return void m.remove();let e=-1===l(t-1,f);W(c.arrowLeft,"inactive",e),M(c.arrowLeft,e),e&&c.arrowLeft.is(":focus")&&c.arrowRight.focus();let i=-1===h(t+1,f);if(W(c.arrowRight,"inactive",i),M(c.arrowRight,i),i&&c.arrowRight.is(":focus")&&c.arrowLeft.focus(),c.view?(u(c.view).add("opacity .3s").start({opacity:0}).then((n=c.view,function(){n.remove()})),u(m).add("opacity .3s").add("transform .3s").set({x:t>p?"80px":"-80px"}).start({opacity:1,x:0})):m.css("opacity",1),c.view=m,c.view.prop("tabIndex",0),c.items){S(c.items,"active"),c.items.removeAttr("aria-selected");var n,r,a,s,g,x,w,v,b,y=c.items.eq(t);P(y,"active"),y.attr("aria-selected",!0),a=y.get(0),s=c.strip.get(0),g=a.offsetLeft,x=a.clientWidth,w=s.scrollLeft,v=s.clientWidth,b=s.scrollWidth-v,gv+w&&(r=Math.min(g,b)),null!=r&&u(c.strip).add("scroll-left 500ms").start({"scroll-left":r})}}}),c.close.prop("tabIndex",0),i(":focus").addClass("active-lightbox"),0===m.length&&(i("body").children().each(function(){i(this).hasClass("w-lightbox-backdrop")||i(this).is("script")||(m.push({node:i(this),hidden:i(this).attr("aria-hidden"),tabIndex:i(this).attr("tabIndex")}),i(this).attr("aria-hidden",!0).attr("tabIndex",-1))}),c.close.focus()),x}},x.hide=function(){return u(c.lightbox).add("opacity .3s").start({opacity:0}).then($),x},x.prev=function(){var t=l(o-1,f);t>-1&&x.show(t)},x.next=function(){var t=h(o+1,f);t>-1&&x.show(t)};var v=w(x.prev),b=w(x.next),y=w(x.hide),I=function(t){var e=i(this).index();t.preventDefault(),x.show(e)},k=function(t,e){t.preventDefault(),"left"===e.direction?x.next():"right"===e.direction&&x.prev()},L=function(){this.focus()};function C(t){t.preventDefault()}function R(t){var e=t.keyCode;27===e||E(e,"close")?x.hide():37===e||E(e,"left")?x.prev():39===e||E(e,"right")?x.next():E(e,"item")&&i(":focus").click()}function E(t,e){if(13!==t&&32!==t)return!1;var n=i(":focus").attr("class"),r=D(e).trim();return n.includes(r)}function $(){c&&(c.strip.scrollLeft(0).empty(),S(c.html,"noscroll"),P(c.lightbox,"hide"),c.view&&c.view.remove(),S(c.content,"group"),P(c.arrowLeft,"inactive"),P(c.arrowRight,"inactive"),o=c.view=void 0,m.forEach(function(t){var e=t.node;e&&(t.hidden?e.attr("aria-hidden",t.hidden):e.removeAttr("aria-hidden"),t.tabIndex?e.attr("tabIndex",t.tabIndex):e.removeAttr("tabIndex"))}),m=[],i(".active-lightbox").removeClass("active-lightbox").focus())}function A(t,e){var i=j("img","img");return i.one("load",function(){e(i)}),i.attr("src",t),i}function O(t,e,i){this.$element=t,this.className=e,this.delay=i||200,this.hide()}function D(t,e){return t.replace(g,(e?" .":" ")+"w-lightbox-")}function N(t){return D(t,!0)}function P(t,e){return t.addClass(D(e))}function S(t,e){return t.removeClass(D(e))}function W(t,e,i){return t.toggleClass(D(e),i)}function M(t,e){return t.attr("aria-hidden",e).attr("tabIndex",e?-1:0)}function j(t,n){return P(i(e.createElement(n||"div")),t)}O.prototype.show=function(){var t=this;t.timeoutId||(t.timeoutId=setTimeout(function(){t.$element.removeClass(t.className),delete t.timeoutId},t.delay))},O.prototype.hide=function(){if(this.timeoutId){clearTimeout(this.timeoutId),delete this.timeoutId;return}this.$element.addClass(this.className)};var B=t.navigator.userAgent,J=B.match(/(iPhone|iPad|iPod);[^OS]*OS (\d)/);if(B.indexOf("Android ")>-1&&-1===B.indexOf("Chrome")||J&&!(J[2]>7)){var T=e.createElement("style");e.head.appendChild(T),t.addEventListener("resize",U,!0),U()}function U(){var e=t.innerHeight,i=t.innerWidth,n=".w-lightbox-content, .w-lightbox-view, .w-lightbox-view:before {height:"+e+"px}.w-lightbox-view {width:"+i+"px}.w-lightbox-group, .w-lightbox-group .w-lightbox-view, .w-lightbox-group .w-lightbox-view:before {height:"+.86*e+"px}.w-lightbox-image {max-width:"+i+"px;max-height:"+e+"px}.w-lightbox-group .w-lightbox-image {max-height:"+.86*e+"px}.w-lightbox-strip {padding: 0 "+.01*e+"px}.w-lightbox-item {width:"+.1*e+"px;padding:"+.02*e+"px "+.01*e+"px}.w-lightbox-thumbnail {height:"+.1*e+"px}@media (min-width: 768px) {.w-lightbox-content, .w-lightbox-view, .w-lightbox-view:before {height:"+.96*e+"px}.w-lightbox-content {margin-top:"+.02*e+"px}.w-lightbox-group, .w-lightbox-group .w-lightbox-view, .w-lightbox-group .w-lightbox-view:before {height:"+.84*e+"px}.w-lightbox-image {max-width:"+.96*i+"px;max-height:"+.96*e+"px}.w-lightbox-group .w-lightbox-image {max-width:"+.823*i+"px;max-height:"+.84*e+"px}}";T.textContent=n}return x}(window,document,t,d?"#lightbox-mountpoint":"body"),p=t(document),g=".w-lightbox";function f(t){var e,i,n,r=t.el.children(".w-json").html();if(!r){t.items=[];return}try{r=JSON.parse(r)}catch(t){console.error("Malformed lightbox JSON configuration.",t)}(e=r).images&&(e.images.forEach(function(t){t.type="image"}),e.items=e.images),e.embed&&(e.embed.type="video",e.items=[e.embed]),e.groupId&&(e.group=e.groupId),r.items.forEach(function(e){e.$el=t.el}),(i=r.group)?((n=o[i])||(n=o[i]=[]),t.items=n,r.items.length&&(t.index=n.length,n.push.apply(n,r.items))):(t.items=r.items,t.index=0)}return c.ready=c.design=c.preview=function(){i=d&&n.env("design"),u.destroy(),o={},(e=p.find(g)).webflowLightBox(),e.each(function(){s(t(this),"open lightbox"),t(this).attr("aria-haspopup","dialog")})},jQuery.fn.extend({webflowLightBox:function(){t.each(this,function(e,n){var r,o=t.data(n,g);o||(o=t.data(n,g,{el:t(n),mode:"images",images:[],embed:""})),o.el.off(g),f(o),i?o.el.on("setting"+g,f.bind(null,o)):o.el.on("click"+g,(r=o,function(){r.items.length&&u(r.items,r.index||0)})).on("click"+g,function(t){t.preventDefault()})})}}),c})}}]);