(function ($){ 'use strict'; /** * All of the code for your public-facing JavaScript source * should reside in this file. * * Note that this assume you're going to use jQuery, so it prepares * the $ function reference to be used within the scope of this * function. * * From here, you're able to define handlers for when the DOM is * ready: * * $(function(){ * * }); * * Or when the window is loaded: * * $(window).load(function(){ * * }); * * ...and so on. * * Remember that ideally, we should not attach any more than a single DOM-ready or window-load handler * for any particular page. Though other scripts in WordPress core, other plugins, and other themes may * be doing this, we should try to minimize doing that in our own work. */ function resizeColumns(){ let columns=$('.dc-elementor-hidden-column'); columns.each(function (index, column){ column=$(column); let hiddenSize=parseFloat(column.data('size')), row=column.closest('.elementor-row'), children=row.find('> .elementor-column'), rowSize=0; if(children.length===0){ return; } children.each(function (cIndex, child){ child=$(child); rowSize +=parseFloat(child.width() / row.width() * 100); }); children.each(function (cIndex, child){ child=$(child); let childSize=parseFloat(child.width() / row.width() * 100), newSize=childSize + (hiddenSize * (childSize / rowSize)); if(childSize < 100){ child.css({width: newSize + '%'}); }}); }); } function resetColumns(){ let columns=$('.dc-elementor-hidden-column'); columns.each(function (index, column){ column=$(column); let row=column.closest('.elementor-row'), children=row.find('> .elementor-column'); children.css({width: ''}); }); } $(window).on('resize', function (){ resetColumns(); resizeColumns(); }); $(window).on('elementor/frontend/init', function (){ resetColumns(); resizeColumns(); }); })(jQuery); !function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(e,t,n,o){var i={features:null,bind:function(e,t,n,o){var i=(o?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a0&&(a=parseInt(a[1],10))>=1&&a<8&&(n.isOldIOSPhone=!0)}var r=o.match(/Android\s([0-9\.]*)/),l=r?r[1]:0;(l=parseFloat(l))>=1&&(l<4.4&&(n.isOldAndroid=!0),n.androidVersion=l),n.isMobileOpera=/opera mini|opera mobi/i.test(o)}for(var s,u,c=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=d[p];for(var m=0;m<3;m++)s=c[m],u=t+(t?s.charAt(0).toUpperCase()+s.slice(1):s),!n[s]&&u in e&&(n[s]=u);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!n.raf){var f=0;n.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-f)),o=window.setTimeout(function(){e(t+n)},n);return f=t+n,o},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,i.features=n,n}};i.detectFeatures(),i.features.oldIE&&(i.bind=function(e,t,n,o){t=t.split(" ");for(var i,a=(o?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;lt-1?e-t:e<0?t+e:e},Ce={},_e=function(e,t){return Ce[e]||(Ce[e]=[]),Ce[e].push(t)},Te=function(e){var t=Ce[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;oa.currItem.fitRatio?ye||(jt(a.currItem,!1,!0),ye=!0):ye&&(jt(a.currItem),ye=!1)),Oe(te,de.x,de.y,w))},De=function(e){e.container&&Oe(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},ke=function(e,t){t[O]=v+e+"px, 0px"+b},Me=function(e,t){if(!r.loop&&t){var n=c+(he.x*me-e)/he.x,o=Math.round(e-ct.x);(n<0&&o>0||n>=Ht()-1&&o<0)&&(e=ct.x+o*r.mainScrollEndFriction)}ct.x=e,ke(e,d)},Fe=function(e,t){var n=dt[e]-fe[e];return ce[e]+ue[e]+n-n*(t/g)},Re=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Le=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Pe=null,ze=function(){Pe&&(i.unbind(document,"mousemove",ze),i.addClass(e,"pswp--has_mouse"),r.mouseUsed=!0,Te("mouseUsed")),Pe=setTimeout(function(){Pe=null},100)},Ze=function(e,t){var n=qt(a.currItem,pe,e);return t&&(ee=n),n},Ne=function(e){return e||(e=a.currItem),e.initialZoomLevel},Ue=function(e){return e||(e=a.currItem),e.w>0?r.maxSpreadZoom:1},He=function(e,t,n,o){return o===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Fe(e,o),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]=o)return Ye(e),a(n),void(r&&r());a((n-t)*i(l/o)+t),Ge[e].raf=k(u)}};u()},$e={shout:Te,listen:_e,viewportSize:pe,options:r,isMainScrollAnimating:function(){return ne},getZoomLevel:function(){return w},getCurrentIndex:function(){return c},isDragging:function(){return G},isZooming:function(){return J},setScrollOffset:function(e,t){fe.x=e,P=fe.y=t,Te("updateScrollOffset",fe)},applyZoomPan:function(e,t,n,o){de.x=t,de.y=n,w=e,Ae(o)},init:function(){if(!l&&!s){var n;a.framework=i,a.template=e,a.bg=i.getChildByClass(e,"pswp__bg"),F=e.className,l=!0,z=i.detectFeatures(),k=z.raf,M=z.caf,O=z.transform,L=z.oldIE,a.scrollWrap=i.getChildByClass(e,"pswp__scroll-wrap"),a.container=i.getChildByClass(a.scrollWrap,"pswp__container"),d=a.container.style,a.itemHolders=I=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],I[0].el.style.display=I[2].el.style.display="none",function(){if(O){var t=z.perspective&&!D;return v="translate"+(t?"3d(":"("),void(b=z.perspective?", 0px)":")")}O="left",i.addClass(e,"pswp--ie"),ke=function(e,t){t.left=e+"px"},De=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,o=t*e.w,i=t*e.h;n.width=o+"px",n.height=i+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Ae=function(){if(te){var e=te,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,o=n*t.w,i=n*t.h;e.width=o+"px",e.height=i+"px",e.left=de.x+"px",e.top=de.y+"px"}}}(),h={resize:a.updateSize,orientationchange:function(){clearTimeout(Z),Z=setTimeout(function(){pe.x!==a.scrollWrap.clientWidth&&a.updateSize()},500)},scroll:We,keydown:Be,click:Ke};var o=z.isOldIOSPhone||z.isOldAndroid||z.isMobileOpera;for(z.animationName&&z.transform&&!o||(r.showAnimationDuration=r.hideAnimationDuration=0),n=0;n=Ht())&&(c=0),a.currItem=Ut(c),(z.isOldIOSPhone||z.isOldAndroid)&&(ge=!1),e.setAttribute("aria-hidden","false"),r.modal&&(ge?e.style.position="fixed":(e.style.position="absolute",e.style.top=i.getScrollY()+"px")),void 0===P&&(Te("initialLayout"),P=R=i.getScrollY());var u="pswp--open ";for(r.mainClass&&(u+=r.mainClass+" "),r.showHideOpacity&&(u+="pswp--animate_opacity "),u+=D?"pswp--touch":"pswp--notouch",u+=z.animationName?" pswp--css_animation":"",u+=z.svg?" pswp--svg":"",i.addClass(e,u),a.updateSize(),p=-1,we=null,n=0;n<3;n++)ke((n+p)*he.x,I[n].el.style);L||i.bind(a.scrollWrap,f,a),_e("initialZoomInEnd",function(){a.setContent(I[0],c-1),a.setContent(I[2],c+1),I[0].el.style.display=I[2].el.style.display="block",r.focus&&e.focus(),i.bind(document,"keydown",a),z.transform&&i.bind(a.scrollWrap,"click",a),r.mouseUsed||i.bind(document,"mousemove",ze),i.bind(window,"resize scroll orientationchange",a),Te("bindEvents")}),a.setContent(I[1],c),a.updateCurrItem(),Te("afterInit"),ge||(y=setInterval(function(){qe||G||J||w!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),i.addClass(e,"pswp--visible")}},close:function(){l&&(l=!1,s=!0,Te("close"),i.unbind(window,"resize scroll orientationchange",a),i.unbind(window,"scroll",h.scroll),i.unbind(document,"keydown",a),i.unbind(document,"mousemove",ze),z.transform&&i.unbind(a.scrollWrap,"click",a),G&&i.unbind(window,m,a),clearTimeout(Z),Te("unbindEvents"),Bt(a.currItem,null,!0,a.destroy))},destroy:function(){Te("destroy"),Pt&&clearTimeout(Pt),e.setAttribute("aria-hidden","true"),e.className=F,y&&clearInterval(y),i.unbind(a.scrollWrap,f,a),i.unbind(window,"scroll",a),ft(),Xe(),Ce=null},panTo:function(e,t,n){n||(e>ee.min.x?e=ee.min.x:eee.min.y?t=ee.min.y:t=3&&(p+=we+(we>0?-3:3),n=3);for(var o=0;o0?(t=I.shift(),I[2]=t,ke((++p+2)*he.x,t.el.style),a.setContent(t,c-n+o+1+1)):(t=I.pop(),I.unshift(t),ke(--p*he.x,t.el.style),a.setContent(t,c+n-o-1-1));if(te&&1===Math.abs(we)){var i=Ut(C);i.initialZoomLevel!==w&&(qt(i,pe),jt(i),De(i))}we=0,a.updateCurrZoomItem(),C=c,Te("afterChange")}}},updateSize:function(t){if(!ge&&r.modal){var n=i.getScrollY();if(P!==n&&(e.style.top=n+"px",P=n),!t&&be.x===window.innerWidth&&be.y===window.innerHeight)return;be.x=window.innerWidth,be.y=window.innerHeight,e.style.height=be.y+"px"}if(pe.x=a.scrollWrap.clientWidth,pe.y=a.scrollWrap.clientHeight,We(),he.x=pe.x+Math.round(pe.x*r.spacing),he.y=pe.y,Me(he.x*me),Te("beforeResize"),void 0!==p){for(var o,l,s,u=0;u<3;u++)o=I[u],ke((u+p)*he.x,o.el.style),s=c+u-1,r.loop&&Ht()>2&&(s=Ie(s)),(l=Ut(s))&&(x||l.needsUpdate||!l.bounds)?(a.cleanSlide(l),a.setContent(o,s),1===u&&(a.currItem=l,a.updateCurrZoomItem(!0)),l.needsUpdate=!1):-1===o.index&&s>=0&&a.setContent(o,s),l&&l.container&&(qt(l,pe),jt(l),De(l));x=!1}g=w=a.currItem.initialZoomLevel,(ee=a.currItem.bounds)&&(de.x=ee.center.x,de.y=ee.center.y,Ae(!0)),Te("resize")},zoomTo:function(e,t,n,o,a){t&&(g=w,dt.x=Math.abs(t.x)-de.x,dt.y=Math.abs(t.y)-de.y,Re(ce,de));var r=Ze(e,!1),l={};He("x",r,l,e),He("y",r,l,e);var s=w,u=de.x,c=de.y;Le(l);var d=function(t){1===t?(w=e,de.x=l.x,de.y=l.y):(w=(e-s)*t+s,de.x=(l.x-u)*t+u,de.y=(l.y-c)*t+c),a&&a(t),Ae(1===t)};n?je("customZoomTo",0,1,n,o||i.easing.sine.inOut,d):d(1)}},Je={},Qe={},et={},tt={},nt={},ot=[],it={},at=[],rt={},lt=0,st={x:0,y:0},ut=0,ct={x:0,y:0},dt={x:0,y:0},pt={x:0,y:0},mt=function(e,t){return rt.x=Math.abs(e.x-t.x),rt.y=Math.abs(e.y-t.y),Math.sqrt(rt.x*rt.x+rt.y*rt.y)},ft=function(){X&&(M(X),X=null)},ht=function(){G&&(X=k(ht),At())},wt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:wt(e.parentNode,t))},gt={},vt=function(e,t){return gt.prevent=!wt(e.target,r.isClickableElement),Te("preventDragEvent",e,t,gt),gt.prevent},bt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},yt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},xt=function(){var e=de.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(pe.y/2))},It={},Ct={},_t=[],Tt=function(e){for(;_t.length>0;)_t.pop();return A?(se=0,ot.forEach(function(e){0===se?_t[0]=e:1===se&&(_t[1]=e),se++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(_t[0]=bt(e.touches[0],It),e.touches.length>1&&(_t[1]=bt(e.touches[1],Ct))):(It.x=e.pageX,It.y=e.pageY,It.id="",_t[0]=It),_t},Et=function(e,t){var n,o,i,l,s=de[e]+t[e],u=t[e]>0,c=ct.x+t.x,d=ct.x-it.x;if(n=s>ee.min[e]||see.min[e]&&(n=r.panEndFriction,ee.min[e],o=ee.min[e]-ce[e]),(o<=0||d<0)&&Ht()>1?(l=c,d<0&&c>it.x&&(l=it.x)):ee.min.x!==ee.max.x&&(i=s)):(s0)&&Ht()>1?(l=c,d>0&&ca.currItem.fitRatio&&(de[e]+=t[e]*n)},St=function(e){if(!("mousedown"===e.type&&e.button>0))if(Nt)e.preventDefault();else if(!W||"mousedown"!==e.type){if(vt(e,!0)&&e.preventDefault(),Te("pointerDown"),A){var t=i.arraySearch(ot,e.pointerId,"id");t<0&&(t=ot.length),ot[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Tt(e),o=n.length;$=null,Xe(),G&&1!==o||(G=ie=!0,i.bind(window,m,a),B=le=ae=K=j=V=q=Y=!1,oe=null,Te("firstTouchStart",n),Re(ce,de),ue.x=ue.y=0,Re(tt,n[0]),Re(nt,tt),it.x=he.x*me,at=[{x:tt.x,y:tt.y}],U=N=Ee(),Ze(w,!0),ft(),ht()),!J&&o>1&&!ne&&!j&&(g=w,Y=!1,J=q=!0,ue.y=ue.x=0,Re(ce,de),Re(Je,n[0]),Re(Qe,n[1]),yt(Je,Qe,pt),dt.x=Math.abs(pt.x)-de.x,dt.y=Math.abs(pt.y)-de.y,Q=mt(Je,Qe))}},Ot=function(e){if(e.preventDefault(),A){var t=i.arraySearch(ot,e.pointerId,"id");if(t>-1){var n=ot[t];n.x=e.pageX,n.y=e.pageY}}if(G){var o=Tt(e);if(oe||V||J)$=o;else if(ct.x!==he.x*me)oe="h";else{var a=Math.abs(o[0].x-tt.x)-Math.abs(o[0].y-tt.y);Math.abs(a)>=10&&(oe=a>0?"h":"v",$=o)}}},At=function(){if($){var e=$.length;if(0!==e)if(Re(Je,$[0]),et.x=Je.x-tt.x,et.y=Je.y-tt.y,J&&e>1){if(tt.x=Je.x,tt.y=Je.y,!et.x&&!et.y&&function(e,t){return e.x===t.x&&e.y===t.y}($[1],Qe))return;Re(Qe,$[1]),Y||(Y=!0,Te("zoomGestureStarted"));var t=mt(Je,Qe),n=Rt(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(le=!0);var o=1,i=Ne(),l=Ue();if(n1&&(o=1),n=i-o*(i/3);else n>l&&((o=(n-l)/(6*i))>1&&(o=1),n=l+o*i);o<0&&(o=0),yt(Je,Qe,st),ue.x+=st.x-pt.x,ue.y+=st.y-pt.y,Re(pt,st),de.x=Fe("x",n),de.y=Fe("y",n),B=n>w,w=n,Ae()}else{if(!oe)return;if(ie&&(ie=!1,Math.abs(et.x)>=10&&(et.x-=$[0].x-nt.x),Math.abs(et.y)>=10&&(et.y-=$[0].y-nt.y)),tt.x=Je.x,tt.y=Je.y,0===et.x&&0===et.y)return;if("v"===oe&&r.closeOnVerticalDrag&&"fit"===r.scaleMode&&w===a.currItem.initialZoomLevel){ue.y+=et.y,de.y+=et.y;var u=xt();return K=!0,Te("onVerticalDrag",u),Se(u),void Ae()}!function(e,t,n){if(e-U>50){var o=at.length>2?at.shift():{};o.x=t,o.y=n,at.push(o),U=e}}(Ee(),Je.x,Je.y),V=!0,ee=a.currItem.bounds,Et("x",et)||(Et("y",et),Le(de),Ae())}}},Dt=function(e){if(z.isOldAndroid){if(W&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(W),W=setTimeout(function(){W=0},600))}var t;if(Te("pointerUp"),vt(e,!1)&&e.preventDefault(),A){var n=i.arraySearch(ot,e.pointerId,"id");n>-1&&(t=ot.splice(n,1)[0],navigator.pointerEnabled?t.type=e.pointerType||"mouse":(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")))}var o,l=Tt(e),s=l.length;if("mouseup"===e.type&&(s=0),2===s)return $=null,!0;1===s&&Re(nt,l[0]),0!==s||oe||ne||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),Te("touchRelease",e,t));var u=-1;if(0===s&&(G=!1,i.unbind(window,m,a),ft(),J?u=0:-1!==ut&&(u=Ee()-ut)),ut=1===s?Ee():-1,o=-1!==u&&u<150?"zoom":"swipe",J&&s<2&&(J=!1,1===s&&(o="zoomPointerUp"),Te("zoomGestureEnded")),$=null,V||Y||ne||K)if(Xe(),H||(H=kt()),H.calculateSwipeSpeed("x"),K)if(xt()a.currItem.fitRatio&&Mt(H):Lt())}},kt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(o){at.length>1?(e=Ee()-U+50,t=at[at.length-2][o]):(e=Ee()-N,t=nt[o]),n.lastFlickOffset[o]=tt[o]-t,n.lastFlickDist[o]=Math.abs(n.lastFlickOffset[o]),n.lastFlickDist[o]>20?n.lastFlickSpeed[o]=n.lastFlickOffset[o]/e:n.lastFlickSpeed[o]=0,Math.abs(n.lastFlickSpeed[o])<.1&&(n.lastFlickSpeed[o]=0),n.slowDownRatio[o]=.95,n.slowDownRatioReverse[o]=1-n.slowDownRatio[o],n.speedDecelerationRatio[o]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(de[e]>ee.min[e]?n.backAnimDestination[e]=ee.min[e]:de[e]30&&(u||t.lastFlickOffset.x>20)?o=-1:s<-30&&(u||t.lastFlickOffset.x<-20)&&(o=1)}o&&((c+=o)<0?(c=r.loop?Ht()-1:0,l=!0):c>=Ht()&&(c=r.loop?0:Ht()-1,l=!0),l&&!r.loop||(we+=o,me-=o,n=!0));var d,p=he.x*me,m=Math.abs(p-ct.x);return n||p>ct.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?m/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,lt===c&&(n=!1),ne=!0,Te("mainScrollAnimStart"),je("mainScroll",ct.x,p,d,i.easing.cubic.out,Me,function(){Xe(),ne=!1,lt=-1,(n||lt!==c)&&a.updateCurrItem(),Te("mainScrollAnimComplete")}),n&&a.updateCurrItem(!0),n},Rt=function(e){return 1/Q*e*g},Lt=function(){var e=w,t=Ne(),n=Ue();wn&&(e=n);var o,r=re;return ae&&!B&&!le&&w1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=D,h[_]=St,h[T]=Ot,h[E]=Dt,S&&(h[S]=h[E]),z.touch&&(f+=" mousedown",m+=" mousemove mouseup",h.mousedown=h[_],h.mousemove=h[T],h.mouseup=h[E]),D||(r.allowPanToNext=!1)}}});var Pt,zt,Zt,Nt,Ut,Ht,Bt=function(t,n,o,l){var s;Pt&&clearTimeout(Pt),Nt=!0,Zt=!0,t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=r.getThumbBoundsFn&&r.getThumbBoundsFn(c);var d,p,m=o?r.hideAnimationDuration:r.showAnimationDuration,f=function(){Ye("initialZoom"),o?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Se(1),n&&(n.style.display="block"),i.addClass(e,"pswp--animated-in"),Te("initialZoom"+(o?"OutEnd":"InEnd"))),l&&l(),Nt=!1};if(!m||!s||void 0===s.x)return Te("initialZoom"+(o?"Out":"In")),o?e.style.opacity=0:(w=t.initialZoomLevel,Re(de,t.initialPosition),Ae(),e.style.opacity=1,Se(1)),void(m?setTimeout(function(){f()},m):f());d=u,p=!a.currItem.src||a.currItem.loadError||r.showHideOpacity,t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),o||(w=s.w/t.w,de.x=s.x,de.y=s.y-R,a[p?"template":"bg"].style.opacity=.001,Ae()),Ve("initialZoom"),o&&!d&&i.removeClass(e,"pswp--animated-in"),p&&(o?i[(d?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){i.addClass(e,"pswp--animate_opacity")},30)),Pt=setTimeout(function(){if(Te("initialZoom"+(o?"Out":"In")),o){var n=s.w/t.w,a={x:de.x,y:de.y},r=w,l=re,u=function(t){1===t?(w=n,de.x=s.x,de.y=s.y-P):(w=(n-r)*t+r,de.x=(s.x-a.x)*t+a.x,de.y=(s.y-P-a.y)*t+a.y),Ae(),p?e.style.opacity=1-t:Se(l-t*l)};d?je("initialZoom",0,1,m,i.easing.cubic.out,u,f):(u(1),Pt=setTimeout(f,m+20))}else w=t.initialZoomLevel,Re(de,t.initialPosition),Ae(),Se(1),p?e.style.opacity=1:Se(1),Pt=setTimeout(f,m+20)},o?25:90)},Kt={},Wt=[],Gt={index:0,errorMsg:'
The image could not be loaded.
',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return zt.length}},qt=function(e,t,n){if(e.src&&!e.loadError){var o=!n;if(o&&(e.vGap||(e.vGap={top:0,bottom:0}),Te("parseVerticalMargin",e)),Kt.x=t.x,Kt.y=t.y-e.vGap.top-e.vGap.bottom,o){var i=Kt.x/e.w,a=Kt.y/e.h;e.fitRatio=i1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!n)return;return function(e,t,n){var o=e.bounds;o.center.x=Math.round((Kt.x-t)/2),o.center.y=Math.round((Kt.y-n)/2)+e.vGap.top,o.max.x=t>Kt.x?Math.round(Kt.x-t):o.center.x,o.max.y=n>Kt.y?Math.round(Kt.y-n)+e.vGap.top:o.center.y,o.min.x=t>Kt.x?0:o.center.x,o.min.y=n>Kt.y?e.vGap.top:o.center.y}(e,e.w*n,e.h*n),o&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Yt=function(e,t,n,o,i,r){t.loadError||o&&(t.imageAppended=!0,jt(t,o,t===a.currItem&&ye),n.appendChild(o),r&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},Vt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=i.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},Xt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=r.errorMsg.replace("%url%",e.src),!0},jt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var o=n?e.w:Math.round(e.w*e.fitRatio),i=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=o+"px",e.placeholder.style.height=i+"px"),t.style.width=o+"px",t.style.height=i+"px"}},$t=function(){if(Wt.length){for(var e,t=0;t=0,i=Math.min(n[0],Ht()),l=Math.min(n[1],Ht());for(t=1;t<=(o?l:i);t++)a.lazyLoadItem(c+t);for(t=1;t<=(o?i:l);t++)a.lazyLoadItem(c-t)}),_e("initialLayout",function(){a.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(c)}),_e("mainScrollAnimComplete",$t),_e("initialZoomInEnd",$t),_e("destroy",function(){for(var e,t=0;t=0&&void 0!==zt[e]&&zt[e]},allowProgressiveImg:function(){return r.forceProgressiveLoading||!D||r.mouseUsed||screen.width>1200},setContent:function(e,t){r.loop&&(t=Ie(t));var n=a.getItemAt(e.index);n&&(n.container=null);var o,s=a.getItemAt(t);if(s){Te("gettingData",t,s),e.index=t,e.item=s;var u=s.container=i.createEl("pswp__zoom-wrap");if(!s.src&&s.html&&(s.html.tagName?u.appendChild(s.html):u.innerHTML=s.html),Xt(s),qt(s,pe),!s.src||s.loadError||s.loaded)s.src&&!s.loadError&&((o=i.createEl("pswp__img","img")).style.opacity=1,o.src=s.src,jt(s,o),Yt(0,s,u,o));else{if(s.loadComplete=function(n){if(l){if(e&&e.index===t){if(Xt(n,!0))return n.loadComplete=n.img=null,qt(n,pe),De(n),void(e.index===c&&a.updateCurrZoomItem());n.imageAppended?!Nt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):z.transform&&(ne||Nt)?Wt.push({item:n,baseDiv:u,img:n.img,index:t,holder:e,clearPlaceholder:!0}):Yt(0,n,u,n.img,0,!0)}n.loadComplete=null,n.img=null,Te("imageLoadComplete",t,n)}},i.features.transform){var d="pswp__img pswp__img--placeholder";d+=s.msrc?"":" pswp__img--placeholder--blank";var p=i.createEl(d,s.msrc?"img":"");s.msrc&&(p.src=s.msrc),jt(s,p),u.appendChild(p),s.placeholder=p}s.loading||Vt(s),a.allowProgressiveImg()&&(!Zt&&z.transform?Wt.push({item:s,baseDiv:u,img:s.img,index:t,holder:e}):Yt(0,s,u,s.img,0,!0))}Zt||t!==c?De(s):(te=u.style,Bt(s,o||s.img)),e.el.innerHTML="",e.el.appendChild(u)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Jt,Qt,en={},tn=function(e,t,n){var o=document.createEvent("CustomEvent"),i={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};o.initCustomEvent("pswpTap",!0,!0,i),e.target.dispatchEvent(o)};xe("Tap",{publicMethods:{initTap:function(){_e("firstTouchStart",a.onTapStart),_e("touchRelease",a.onTapRelease),_e("destroy",function(){en={},Jt=null})},onTapStart:function(e){e.length>1&&(clearTimeout(Jt),Jt=null)},onTapRelease:function(e,t){var n,o;if(t&&!V&&!q&&!qe){var a=t;if(Jt&&(clearTimeout(Jt),Jt=null,n=a,o=en,Math.abs(n.x-o.x)<25&&Math.abs(n.y-o.y)<25))return void Te("doubleTap",a);if("mouse"===t.type)return void tn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||i.hasClass(e.target,"pswp__single-tap"))return void tn(e,t);Re(en,a),Jt=setTimeout(function(){tn(e,t),Jt=null},300)}}}}),xe("DesktopZoom",{publicMethods:{initDesktopZoom:function(){L||(D?_e("mouseUsed",function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Qt={};var n="wheel mousewheel DOMMouseScroll";_e("bindEvents",function(){i.bind(e,n,a.handleMouseWheel)}),_e("unbindEvents",function(){Qt&&i.unbind(e,n,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var o,r=function(){a.mouseZoomedIn&&(i.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),w<1?i.addClass(e,"pswp--zoom-allowed"):i.removeClass(e,"pswp--zoom-allowed"),l()},l=function(){o&&(i.removeClass(e,"pswp--dragging"),o=!1)};_e("resize",r),_e("afterChange",r),_e("pointerDown",function(){a.mouseZoomedIn&&(o=!0,i.addClass(e,"pswp--dragging"))}),_e("pointerUp",l),t||r()},handleMouseWheel:function(t){if(Qt.x=0,Qt.y=0,"deltaX"in t?1===t.deltaMode?(Qt.x=18*t.deltaX,Qt.y=18*t.deltaY):(Qt.x=t.deltaX,Qt.y=t.deltaY):"wheelDelta"in t?(t.wheelDeltaX&&(Qt.x=-.16*t.wheelDeltaX),t.wheelDeltaY?Qt.y=-.16*t.wheelDeltaY:Qt.y=-.16*t.wheelDelta):"detail"in t&&(Qt.y=t.detail),w<=a.currItem.fitRatio||r.zoomOnScroll||r.switchOnScroll){if(r.modal)if(r.zoomOnScroll){var n={x:pe.x/2+fe.x,y:pe.y/2+fe.y};if(0===Qt.x&&Qt.y>0||Qt.x>0&&0===Qt.y)a.zoomTo(a.currItem.initialZoomLevel,n,333),a.mouseZoomedIn=!1,i.removeClass(e,"pswp--zoomed-in");else if(0===Qt.x&&Qt.y<0||Qt.x<0&&0===Qt.y){var o=r.getDoubleTapZoom(!0,a.currItem);a.mouseZoomedIn=!0,a.zoomTo(o,n,333),i.addClass(e,"pswp--zoomed-in")}t.preventDefault()}else r.switchOnScroll?(0===Qt.x&&Qt.y>0||Qt.x>0&&0===Qt.y?a.nextAnim():(0===Qt.x&&Qt.y<0||Qt.x<0&&0===Qt.y)&&a.prevAnim(),t.preventDefault()):!r.closeOnScroll||qe||G?t.preventDefault():O&&Math.abs(t.deltaY)>2&&(u=!0,a.close());return!0}if(t.stopPropagation(),0!=Qt.x||0!=Qt.y){Ze(w,!0);var l=de.x-Qt.x,s=de.y-Qt.y;(r.modal||l<=ee.min.x&&l>=ee.max.x&&s<=ee.min.y&&s>=ee.max.y)&&t.preventDefault(),a.panTo(l,s)}},toggleDesktopZoom:function(t){t=t||{x:pe.x/2+fe.x,y:pe.y/2+fe.y};var n=r.getDoubleTapZoom(!0,a.currItem),o=w===n;a.mouseZoomedIn=!o,a.zoomTo(o?a.currItem.initialZoomLevel:n,t,333),i[(o?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var nn,on,an,rn,ln,sn,un,cn,dn,pn,mn,fn,hn={history:!0,galleryUID:1},wn=function(){return mn.hash.substring(1)},gn=function(){nn&&clearTimeout(nn),an&&clearTimeout(an)},vn=function(){var e=wn(),t={};if(e.length<5)return t;var n,o=e.split("&");for(n=0;n-1&&"&"===(un=un.substring(0,t)).slice(-1)&&(un=un.slice(0,-1)),setTimeout(function(){l&&i.bind(window,"hashchange",a.onHashChange)},40)}},onHashChange:function(){if(wn()===un)return dn=!0,void a.close();rn||(ln=!0,a.goTo(vn().pid),ln=!1)},updateURL:function(){gn(),ln||(cn?nn=setTimeout(bn,800):bn())}}});var yn=function(e){var t,n,o=e;ne||(lt=c),o&&((c+=o)<0?(c=r.loop?Ht()-1:0,n=!0):c>=Ht()&&(c=r.loop?0:Ht()-1,n=!0),n&&!r.loop||(we+=o,me-=o,t=!0));var l=he.x*me,s=Math.abs(l-ct.x)>4e3?400:300;return lt===c&&(t=!1),ne=!0,Te("mainScrollAnimStart"),je("mainScroll",ct.x,l,s,i.easing.cubic.out,Me,function(){Xe(),ne=!1,lt=-1,(t||lt!==c)&&a.updateCurrItem(),Te("mainScrollAnimComplete")}),t&&a.updateCurrItem(!0),t};xe("AnimateSlide",{publicMethods:{initAnimateSlide:function(){},nextAnim:function(){r.desktopSlider?yn(1):a.next()},prevAnim:function(){r.desktopSlider?yn(-1):a.prev()}}}),i.extend(a,$e)}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(e,t){var n,o,i,a,r,l,s,u,c,d,p,m,f,h,w,g,v,b,y,x,I=this,C=!1,_=!0,T=!0,E={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){if(!e.title&&!e.exif)return t.children[0].innerHTML="",!1;var n="";return e.title&&(n=e.title),e.exif&&(n+='
'+e.exif+"
"),t.children[0].innerHTML=n,!0},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},S=function(e){if(b)return!0;e=e||window.event,v.timeToIdle&&v.mouseUsed&&!p&&P();for(var n,o,i=(e.target||e.srcElement).getAttribute("class")||"",a=0;a-1&&(n.onTap(),o=!0);if(o){e.stopPropagation&&e.stopPropagation(),b=!0;var r=t.features.isOldAndroid?600:30;setTimeout(function(){b=!1},r)}},O=function(e,n,o){t[(o?"add":"remove")+"Class"](e,"pswp__"+n)},A=function(){var e=1===v.getNumItemsFn();e!==g&&(O(o,"ui--one-slide",e),g=e)},D=function(){O(c,"share-modal--hidden",T)},k=function(){return(T=!T)?(t.removeClass(c,"pswp__share-modal--fade-in"),setTimeout(function(){T&&D()},300)):(D(),setTimeout(function(){T||t.addClass(c,"pswp__share-modal--fade-in")},30)),T||F(),!1},M=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),T||k(),!(!n.href||!n.hasAttribute("download")&&!n.hasAttribute("onclick")&&(window.open(n.href,"pswp_share"),1))},F=function(){for(var e,t,n,o,i="",a=0;a