!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FloatingUIT4sCore={})}(this,function(e){"use strict";function t(e){return e.split("-")[0]}function n(e){return e.split("-")[1]}function i(e){return["top","bottom"].includes(t(e))?"x":"y"}function o(e){return"y"===e?"height":"width"}function a(e,a,s){let{reference:r,floating:l}=e;const c=r.x+r.width/2-l.width/2,d=r.y+r.height/2-l.height/2,u=i(a),p=o(u),m=r[p]/2-l[p]/2,f="x"===u;let h;switch(t(a)){case"top":h={x:c,y:r.y-l.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-l.width,y:d};break;default:h={x:r.x,y:r.y}}switch(n(a)){case"start":h[u]-=m*(s&&f?-1:1);break;case"end":h[u]+=m*(s&&f?-1:1)}return h}function s(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function l(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:a,rects:l,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:f=!1,padding:h=0}=t,g=s(h),v=c[f?"floating"===m?"reference":"floating":m],T=r(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(v)))||n?v:v.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:p})),y=r(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===m?{...l.floating,x:i,y:o}:l.reference,offsetParent:await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),strategy:d}):l[m]);return{top:T.top-y.top+g.top,bottom:y.bottom-T.bottom+g.bottom,left:T.left-y.left+g.left,right:y.right-T.right+g.right}}function c(e,t,n){return v(e,g(t,n))}function d(e){return e.replace(/left|right|bottom|top/g,e=>T[e])}function u(e,t,a){void 0===a&&(a=!1);const s=n(e),r=i(e),l=o(r);let c="x"===r?s===(a?"end":"start")?"right":"left":"start"===s?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=d(c)),{main:c,cross:d(c)}}function p(e){return e.replace(/start|end/g,e=>y[e])}function m(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function f(e){return S.some(t=>e[t]>=0)}function h(e){return"x"===e?"y":"x"}const g=Math.min,v=Math.max,T={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"},S=["top","right","bottom","left"],w=S.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);e.arrow=(e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:a=0}=null!=e?e:{},{x:r,y:l,placement:d,rects:u,platform:p}=t;if(null==n)return{};const m=s(a),f={x:r,y:l},h=i(d),g=o(h),v=await p.getDimensions(n),T="y"===h?"top":"left",y="y"===h?"bottom":"right",S=u.reference[g]+u.reference[h]-f[h]-u.floating[g],w=f[h]-u.reference[h],b=await(null==p.getOffsetParent?void 0:p.getOffsetParent(n)),x=b?"y"===h?b.clientHeight||0:b.clientWidth||0:0,C=S/2-w/2,_=m[T],P=x-v[g]-m[y],k=x/2-v[g]/2+C,I=c(_,k,P);return{data:{[h]:I,centerOffset:k-I}}}})),e.autoPlacement=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(i){var o,a,s,r,c;const{x:d,y:m,rects:f,middlewareData:h,placement:g,platform:v,elements:T}=i,{alignment:y=null,allowedPlacements:S=w,autoAlignment:b=!0,...x}=e,C=function(e,i,o){return(e?[...o.filter(t=>n(t)===e),...o.filter(t=>n(t)!==e)]:o.filter(e=>t(e)===e)).filter(t=>!e||n(t)===e||!!i&&p(t)!==t)}(y,b,S),_=await l(i,x),P=null!=(o=null==(a=h.autoPlacement)?void 0:a.index)?o:0,k=C[P],{main:I,cross:D}=u(k,f,await(null==v.isRTL?void 0:v.isRTL(T.floating)));if(g!==k)return{x:d,y:m,reset:{skip:!1,placement:C[0]}};const A=[_[t(k)],_[I],_[D]],M=[...null!=(s=null==(r=h.autoPlacement)?void 0:r.overflows)?s:[],{placement:k,overflows:A}],E=C[P+1];if(E)return{data:{index:P+1,overflows:M},reset:{skip:!1,placement:E}};const R=M.slice().sort((e,t)=>e.overflows[0]-t.overflows[0]),O=null==(c=R.find(e=>{let{overflows:t}=e;return t.every(e=>e<=0)}))?void 0:c.placement;return{reset:{placement:null!=O?O:R[0].placement}}}}},e.computePosition=(async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=a(c,i,l),p=i,m={};const f=new Set;for(let n=0;ne<=0)){var _,P;const e=(null!=(_=null==(P=a.flip)?void 0:P.index)?_:0)+1,t=w[e];if(t)return{data:{index:e,overflows:C},reset:{skip:!1,placement:t}};let n="bottom";switch(v){case"bestFit":{var k;const e=null==(k=C.slice().sort((e,t)=>e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)-t.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0))[0])?void 0:k.placement;e&&(n=e);break}case"initialPlacement":n=r}return{reset:{placement:n}}}return{}}}},e.hide=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:i}=e;switch(t){case"referenceHidden":{const t=m(await l(e,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:f(t)}}}case"escaped":{const t=m(await l(e,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:t,escaped:f(t)}}}default:return{}}}}},e.inline=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(n){var o;const{placement:a,elements:l,rects:c,platform:d,strategy:u}=n,{padding:p=2,x:m,y:f}=e,h=r(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({rect:c.reference,offsetParent:await(null==d.getOffsetParent?void 0:d.getOffsetParent(l.floating)),strategy:u}):c.reference),T=null!=(o=await(null==d.getClientRects?void 0:d.getClientRects(l.reference)))?o:[],y=s(p);return{reset:{rects:await d.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===T.length&&T[0].left>T[1].right&&null!=m&&null!=f)return null!=(e=T.find(e=>m>e.left-y.left&&me.top-y.top&&f=2){if("x"===i(a)){const e=T[0],n=T[T.length-1],i="top"===t(a),o=e.top,s=n.bottom,r=i?e.left:n.left,l=i?e.right:n.right;return{top:o,bottom:s,left:r,right:l,width:l-r,height:s-o,x:r,y:o}}const e="left"===t(a),n=v(...T.map(e=>e.right)),o=g(...T.map(e=>e.left)),s=T.filter(t=>e?t.left===o:t.right===n),r=s[0].top,l=s[s.length-1].bottom;return{top:r,bottom:l,left:o,right:n,width:n-o,height:l-r,x:o,y:r}}return h}},floating:l.floating,strategy:u})}}}}},e.limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(n){const{x:o,y:a,placement:s,rects:r,middlewareData:l}=n,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=e,p={x:o,y:a},m=i(s),f=h(m);let g=p[m],v=p[f];const T="function"==typeof c?c({...r,placement:s}):c,y="number"==typeof T?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(d){const e="y"===m?"height":"width",t=r.reference[m]-r.floating[e]+y.mainAxis,n=r.reference[m]+r.reference[e]-y.mainAxis;gn&&(g=n)}if(u){var S,w,b,x;const e="y"===m?"width":"height",n=["top","left"].includes(t(s)),i=r.reference[f]-r.floating[e]+(n&&null!=(S=null==(w=l.offset)?void 0:w[f])?S:0)+(n?0:y.crossAxis),o=r.reference[f]+r.reference[e]+(n?0:null!=(b=null==(x=l.offset)?void 0:x[f])?b:0)-(n?y.crossAxis:0);vo&&(v=o)}return{[m]:g,[f]:v}}}},e.offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(o){const{x:a,y:s,placement:r,rects:l,platform:c,elements:d}=o,u=function(e,o,a,s){void 0===s&&(s=!1);const r=t(e),l=n(e),c="x"===i(e),d=["left","top"].includes(r)?-1:1;let u=1;"end"===l&&(u=-1),s&&c&&(u*=-1);const p="function"==typeof a?a({...o,placement:e}):a,{mainAxis:m,crossAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};return c?{x:f*u,y:m*d}:{x:m*d,y:f*u}}(r,l,e,await(null==c.isRTL?void 0:c.isRTL(d.floating)));return{x:a+u.x,y:s+u.y,data:u}}}},e.rectToClientRect=r,e.shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:a,placement:s}=n,{mainAxis:r=!0,crossAxis:d=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...p}=e,m={x:o,y:a},f=await l(n,p),g=i(t(s)),v=h(g);let T=m[g],y=m[v];if(r){const e="y"===g?"bottom":"right";T=c(T+f["y"===g?"top":"left"],T,T-f[e])}if(d){const e="y"===v?"bottom":"right";y=c(y+f["y"===v?"top":"left"],y,y-f[e])}const S=u.fn({...n,[g]:T,[v]:y});return{...S,data:{x:S.x-o,y:S.y-a}}}}},e.size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(i){const{placement:o,rects:a,platform:s,elements:r}=i,{apply:c,...d}=e,u=await l(i,d),p=t(o),m=n(o);let f,h;"top"===p||"bottom"===p?(f=p,h=m===(await(null==s.isRTL?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(h=p,f="end"===m?"top":"bottom");const g=v(u.left,0),T=v(u.right,0),y=v(u.top,0),S=v(u.bottom,0),w={height:a.floating.height-(["left","right"].includes(o)?2*(0!==y||0!==S?y+S:v(u.top,u.bottom)):u[f]),width:a.floating.width-(["top","bottom"].includes(o)?2*(0!==g||0!==T?g+T:v(u.left,u.right)):u[h])};return null==c||c({...w,...a}),{reset:{rects:!0}}}}},Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@floating-ui/core")):"function"==typeof define&&define.amd?define(["exports","@floating-ui/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FloatingUIT4sDOM={},e.FloatingUIT4sCore)}(this,function(e,t){"use strict";function n(e){return"[object Window]"===(null==e?void 0:e.toString())}function i(e){if(null==e)return window;if(!n(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return i(e).getComputedStyle(e)}function a(e){return n(e)?"":e?(e.nodeName||"").toLowerCase():""}function s(e){return e instanceof i(e).HTMLElement}function r(e){return e instanceof i(e).Element}function l(e){return e instanceof i(e).ShadowRoot||e instanceof ShadowRoot}function c(e){const{overflow:t,overflowX:n,overflowY:i}=o(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function d(e){return["table","td","th"].includes(a(e))}function u(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=o(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function p(e,t){void 0===t&&(t=!1);const n=e.getBoundingClientRect();let i=1,o=1;return t&&s(e)&&(i=e.offsetWidth>0&&_(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&_(n.height)/e.offsetHeight||1),{width:n.width/i,height:n.height/o,top:n.top/o,right:n.right/i,bottom:n.bottom/o,left:n.left/i,x:n.left/i,y:n.top/o}}function m(e){return(((t=e)instanceof i(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function f(e){return n(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function h(e){return p(m(e)).left+f(e).scrollLeft}function g(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||(l(e)?e.host:null)||m(e)}function v(e){return s(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function T(e){const t=i(e);let n=v(e);for(;n&&d(n)&&"static"===getComputedStyle(n).position;)n=v(n);return n&&("html"===a(n)||"body"===a(n)&&"static"===getComputedStyle(n).position&&!u(n))?t:n||function(e){let t=g(e);for(l(t)&&(t=t.host);s(t)&&!["html","body"].includes(a(t));){if(u(t))return t;t=t.parentNode}return null}(e)||t}function y(e){if(s(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=p(e);return{width:t.width,height:t.height}}function S(e,t){var n;void 0===t&&(t=[]);const o=function e(t){return["html","body","#document"].includes(a(t))?t.ownerDocument.body:s(t)&&c(t)?t:e(g(t))}(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),l=i(o),d=r?[l].concat(l.visualViewport||[],c(o)?o:[]):o,u=t.concat(d);return r?u:u.concat(S(g(d)))}function w(e,n){return"viewport"===n?t.rectToClientRect(function(e){const t=i(e),n=m(e),o=t.visualViewport;let a=n.clientWidth,s=n.clientHeight,r=0,l=0;return o&&(a=o.width,s=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.01&&(r=o.offsetLeft,l=o.offsetTop)),{width:a,height:s,x:r,y:l}}(e)):r(n)?function(e){const t=p(e),n=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(n):t.rectToClientRect(function(e){var t;const n=m(e),i=f(e),a=null==(t=e.ownerDocument)?void 0:t.body,s=C(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=C(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let l=-i.scrollLeft+h(e);const c=-i.scrollTop;return"rtl"===o(a||n).direction&&(l+=C(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:r,x:l,y:c}}(m(e)))}function b(e){const t=S(g(e)),n=["absolute","fixed"].includes(o(e).position)&&s(e)?T(e):e;return r(n)?t.filter(e=>r(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&l(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==a(e)):[]}const x=Math.min,C=Math.max,_=Math.round,P={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i}=e;const o=[..."clippingAncestors"===n?b(t):[].concat(n),i],a=o[0],s=o.reduce((e,n)=>{const i=w(t,n);return e.top=C(i.top,e.top),e.right=x(i.right,e.right),e.bottom=x(i.bottom,e.bottom),e.left=C(i.left,e.left),e},w(t,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=s(n),r=m(n);if(n===r)return t;let l={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if((o||!o&&"fixed"!==i)&&(("body"!==a(n)||c(r))&&(l=f(n)),s(n))){const e=p(n,!0);d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+d.x,y:t.y-l.scrollTop+d.y}},isElement:r,getDimensions:y,getOffsetParent:T,getDocumentElement:m,getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:function(e,t,n){const i=s(t),o=m(t),r=p(e,i&&function(e){const t=p(e);return _(t.width)!==e.offsetWidth||_(t.height)!==e.offsetHeight}(t));let l={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(i||!i&&"fixed"!==n)if(("body"!==a(t)||c(o))&&(l=f(t)),s(t)){const e=p(t,!0);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else o&&(d.x=h(o));return{x:r.left+l.scrollLeft-d.x,y:r.top+l.scrollTop-d.y,width:r.width,height:r.height}}(t,T(n),i),floating:{...y(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===o(e).direction};Object.defineProperty(e,"arrow",{enumerable:!0,get:function(){return t.arrow}}),Object.defineProperty(e,"autoPlacement",{enumerable:!0,get:function(){return t.autoPlacement}}),Object.defineProperty(e,"detectOverflow",{enumerable:!0,get:function(){return t.detectOverflow}}),Object.defineProperty(e,"flip",{enumerable:!0,get:function(){return t.flip}}),Object.defineProperty(e,"hide",{enumerable:!0,get:function(){return t.hide}}),Object.defineProperty(e,"inline",{enumerable:!0,get:function(){return t.inline}}),Object.defineProperty(e,"limitShift",{enumerable:!0,get:function(){return t.limitShift}}),Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return t.offset}}),Object.defineProperty(e,"shift",{enumerable:!0,get:function(){return t.shift}}),Object.defineProperty(e,"size",{enumerable:!0,get:function(){return t.size}}),e.autoUpdate=function(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=!0,animationFrame:l=!1}=i;let c=!1;const d=o&&!l,u=a&&!l,m=s&&!l,f=d||u?[...r(e)?S(e):[],...S(t)]:[];f.forEach(e=>{d&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let h,g=null;m&&(g=new ResizeObserver(n),r(e)&&g.observe(e),g.observe(t));let v=l?p(e):null;return l&&function t(){if(c)return;const i=p(e);!v||i.x===v.x&&i.y===v.y&&i.width===v.width&&i.height===v.height||n(),v=i,h=requestAnimationFrame(t)}(),()=>{var e;c=!0,f.forEach(e=>{d&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(h)}},e.computePosition=((e,n,i)=>t.computePosition(e,n,{platform:P,...i})),e.getOverflowAncestors=S,Object.defineProperty(e,"__esModule",{value:!0})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jQuery_T4NT"],e):"object"==typeof module&&module.exports?module.exports=e(require("jQuery_T4NT")):jQuery_T4NT&&!jQuery_T4NT.fn.hoverIntent&&e(jQuery_T4NT)}(function(e){"use strict";function t(e){i=e.pageX,o=e.pageY}function n(e){return"function"==typeof e}var i,o,a={interval:100,sensitivity:6,timeout:0},s=0,r=function(e,n,a,s){if(Math.sqrt((a.pX-i)*(a.pX-i)+(a.pY-o)*(a.pY-o))0&&(a=parseInt(a[1],10))>=1&&a<8&&(n.isOldIOSPhone=!0)}var s=i.match(/Android\s([0-9\.]*)/),r=s?s[1]:0;(r=parseFloat(r))>=1&&(r<4.4&&(n.isOldAndroid=!0),n.androidVersion=r),n.isMobileOpera=/opera mini|opera mobi/i.test(i)}for(var l,c,d=["transform","perspective","animationName"],u=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=u[p];for(var m=0;m<3;m++)l=d[m],c=t+(t?l.charAt(0).toUpperCase()+l.slice(1):l),!n[l]&&c in e&&(n[l]=c);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)),i=window.setTimeout(function(){e(t+n)},n);return f=t+n,i},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o.features=n,n}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(e,t,n,i){t=t.split(" ");for(var o,a=(i?"detach":"attach")+"Event",s=function(){n.handleEvent.call(n)},r=0;rt-1?e-t:e<0?t+e:e},Ce={},_e=function(e,t){return Ce[e]||(Ce[e]=[]),Ce[e].push(t)},Pe=function(e){var t=Ce[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;ia.currItem.fitRatio?we||(Jt(a.currItem,!1,!0),we=!0):we&&(Jt(a.currItem),we=!1)),De(ne,pe.x,pe.y,g))},Me=function(e){e.container&&De(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ee=function(e,t){t[I]=T+e+"px, 0px"+y},Re=function(e,t){if(!s.loop&&t){var n=d+(ge.x*fe-e)/ge.x,i=Math.round(e-ut.x);(n<0&&i>0||n>=Wt()-1&&i<0)&&(e=ut.x+i*s.mainScrollEndFriction)}ut.x=e,Ee(e,u)},Oe=function(e,t){var n=pt[e]-he[e];return ue[e]+de[e]+n-n*(t/v)},Ne=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},$e=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Le=null,Fe=function(){Le&&(o.unbind(document,"mousemove",Fe),o.addClass(e,"pswp--has_mouse"),s.mouseUsed=!0,Pe("mouseUsed")),Le=setTimeout(function(){Le=null},100)},Ue=function(e,t){var n=Kt(a.currItem,me,e);return t&&(te=n),n},Be=function(e){return e||(e=a.currItem),e.initialZoomLevel},He=function(e){return e||(e=a.currItem),e.w>0?s.maxSpreadZoom:1},We=function(e,t,n,i){return i===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Oe(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]=i)return Ke(e),a(n),void(s&&s());a((n-t)*o(r/i)+t),qe[e].raf=M(c)}};c()},Je={shout:Pe,listen:_e,viewportSize:me,options:s,isMainScrollAnimating:function(){return ie},getZoomLevel:function(){return g},getCurrentIndex:function(){return d},isDragging:function(){return G},isZooming:function(){return J},setScrollOffset:function(e,t){he.x=e,$=he.y=t,Pe("updateScrollOffset",he)},applyZoomPan:function(e,t,n,i){pe.x=t,pe.y=n,g=e,Ae(i)},init:function(){if(!r&&!l){var n;a.framework=o,a.template=e,a.bg=o.getChildByClass(e,"pswp__bg"),R=e.className,r=!0,L=o.detectFeatures(),M=L.raf,E=L.caf,I=L.transform,N=L.oldIE,a.scrollWrap=o.getChildByClass(e,"pswp__scroll-wrap"),a.container=o.getChildByClass(a.scrollWrap,"pswp__container"),u=a.container.style,a.itemHolders=b=[{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}],b[0].el.style.display=b[2].el.style.display="none",function(){if(I){var t=L.perspective&&!A;return T="translate"+(t?"3d(":"("),void(y=L.perspective?", 0px)":")")}I="left",o.addClass(e,"pswp--ie"),Ee=function(e,t){t.left=e+"px"},Me=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,i=t*e.w,o=t*e.h;n.width=i+"px",n.height=o+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Ae=function(){if(ne){var e=ne,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,i=n*t.w,o=n*t.h;e.width=i+"px",e.height=o+"px",e.left=pe.x+"px",e.top=pe.y+"px"}}}(),h={resize:a.updateSize,orientationchange:function(){clearTimeout(F),F=setTimeout(function(){me.x!==a.scrollWrap.clientWidth&&a.updateSize()},500)},scroll:Ge,keydown:je,click:ze};var i=L.isOldIOSPhone||L.isOldAndroid||L.isMobileOpera;for(L.animationName&&L.transform&&!i||(s.showAnimationDuration=s.hideAnimationDuration=0),n=0;n=Wt())&&(d=0),a.currItem=Ht(d),(L.isOldIOSPhone||L.isOldAndroid)&&(Te=!1),e.setAttribute("aria-hidden","false"),s.modal&&(Te?e.style.position="fixed":(e.style.position="absolute",e.style.top=o.getScrollY()+"px")),void 0===$&&(Pe("initialLayout"),$=O=o.getScrollY());var c="pswp--open ";for(s.mainClass&&(c+=s.mainClass+" "),s.showHideOpacity&&(c+="pswp--animate_opacity "),c+=A?"pswp--touch":"pswp--notouch",c+=L.animationName?" pswp--css_animation":"",c+=L.svg?" pswp--svg":"",o.addClass(e,c),a.updateSize(),p=-1,ve=null,n=0;n<3;n++)Ee((n+p)*ge.x,b[n].el.style);N||o.bind(a.scrollWrap,f,a),_e("initialZoomInEnd",function(){a.setContent(b[0],d-1),a.setContent(b[2],d+1),b[0].el.style.display=b[2].el.style.display="block",s.focus&&e.focus(),o.bind(document,"keydown",a),L.transform&&o.bind(a.scrollWrap,"click",a),s.mouseUsed||o.bind(document,"mousemove",Fe),o.bind(window,"resize scroll orientationchange",a),Pe("bindEvents")}),a.setContent(b[1],d),a.updateCurrItem(),Pe("afterInit"),Te||(S=setInterval(function(){Ze||G||J||g!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),o.addClass(e,"pswp--visible")}},close:function(){r&&(r=!1,l=!0,Pe("close"),o.unbind(window,"resize scroll orientationchange",a),o.unbind(window,"scroll",h.scroll),o.unbind(document,"keydown",a),o.unbind(document,"mousemove",Fe),L.transform&&o.unbind(a.scrollWrap,"click",a),G&&o.unbind(window,m,a),clearTimeout(F),Pe("unbindEvents"),zt(a.currItem,null,!0,a.destroy))},destroy:function(){Pe("destroy"),Lt&&clearTimeout(Lt),e.setAttribute("aria-hidden","true"),e.className=R,S&&clearInterval(S),o.unbind(a.scrollWrap,f,a),o.unbind(window,"scroll",a),ht(),Ye(),Ce=null},panTo:function(e,t,n){n||(e>te.min.x?e=te.min.x:ete.min.y?t=te.min.y:t=3&&(p+=ve+(ve>0?-3:3),n=3);for(var i=0;i0?(t=b.shift(),b[2]=t,p++,Ee((p+2)*ge.x,t.el.style),a.setContent(t,d-n+i+1+1)):(t=b.pop(),b.unshift(t),p--,Ee(p*ge.x,t.el.style),a.setContent(t,d+n-i-1-1));if(ne&&1===Math.abs(ve)){var o=Ht(x);o.initialZoomLevel!==g&&(Kt(o,me),Jt(o),Me(o))}ve=0,a.updateCurrZoomItem(),x=d,Pe("afterChange")}}},updateSize:function(t){if(!Te&&s.modal){var n=o.getScrollY();if($!==n&&(e.style.top=n+"px",$=n),!t&&Se.x===window.innerWidth&&Se.y===window.innerHeight)return;Se.x=window.innerWidth,Se.y=window.innerHeight,e.style.height=Se.y+"px"}if(me.x=a.scrollWrap.clientWidth,me.y=a.scrollWrap.clientHeight,Ge(),ge.x=me.x+Math.round(me.x*s.spacing),ge.y=me.y,Re(ge.x*fe),Pe("beforeResize"),void 0!==p){for(var i,r,l,c=0;c<3;c++)i=b[c],Ee((c+p)*ge.x,i.el.style),l=d+c-1,s.loop&&Wt()>2&&(l=xe(l)),(r=Ht(l))&&(w||r.needsUpdate||!r.bounds)?(a.cleanSlide(r),a.setContent(i,l),1===c&&(a.currItem=r,a.updateCurrZoomItem(!0)),r.needsUpdate=!1):-1===i.index&&l>=0&&a.setContent(i,l),r&&r.container&&(Kt(r,me),Jt(r),Me(r));w=!1}v=g=a.currItem.initialZoomLevel,(te=a.currItem.bounds)&&(pe.x=te.center.x,pe.y=te.center.y,Ae(!0)),Pe("resize")},zoomTo:function(e,t,n,i,a){t&&(v=g,pt.x=Math.abs(t.x)-pe.x,pt.y=Math.abs(t.y)-pe.y,Ne(ue,pe));var s=Ue(e,!1),r={};We("x",s,r,e),We("y",s,r,e);var l=g,c={x:pe.x,y:pe.y};$e(r);var d=function(t){1===t?(g=e,pe.x=r.x,pe.y=r.y):(g=(e-l)*t+l,pe.x=(r.x-c.x)*t+c.x,pe.y=(r.y-c.y)*t+c.y),a&&a(t),Ae(1===t)};n?Xe("customZoomTo",0,1,n,i||o.easing.sine.inOut,d):d(1)}},Qe={},et={},tt={},nt={},it={},ot=[],at={},st=[],rt={},lt=0,ct={x:0,y:0},dt=0,ut={x:0,y:0},pt={x:0,y:0},mt={x:0,y:0},ft=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)},ht=function(){V&&(E(V),V=null)},gt=function(){G&&(V=M(gt),At())},vt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:vt(e.parentNode,t))},Tt={},yt=function(e,t){return Tt.prevent=!vt(e.target,s.isClickableElement),Pe("preventDragEvent",e,t,Tt),Tt.prevent},St=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},wt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},bt=function(){var e=pe.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(me.y/2))},xt={},Ct={},_t=[],Pt=function(e){for(;_t.length>0;)_t.pop();return D?(ce=0,ot.forEach(function(e){0===ce?_t[0]=e:1===ce&&(_t[1]=e),ce++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(_t[0]=St(e.touches[0],xt),e.touches.length>1&&(_t[1]=St(e.touches[1],Ct))):(xt.x=e.pageX,xt.y=e.pageY,xt.id="",_t[0]=xt),_t},kt=function(e,t){var n,i,o,r,l=pe[e]+t[e],c=t[e]>0,d=ut.x+t.x,u=ut.x-at.x;return n=l>te.min[e]||lte.min[e]&&(n=s.panEndFriction,te.min[e],i=te.min[e]-ue[e]),(i<=0||u<0)&&Wt()>1?(r=d,u<0&&d>at.x&&(r=at.x)):te.min.x!==te.max.x&&(o=l)):(l0)&&Wt()>1?(r=d,u>0&&da.currItem.fitRatio&&(pe[e]+=t[e]*n)):(void 0!==r&&(Re(r,!0),Y=r!==at.x),te.min.x!==te.max.x&&(void 0!==o?pe.x=o:Y||(pe.x+=t.x*n)),void 0!==r)},It=function(e){if(!("mousedown"===e.type&&e.button>0)){if(Bt)return void e.preventDefault();if(!z||"mousedown"!==e.type){if(yt(e,!0)&&e.preventDefault(),Pe("pointerDown"),D){var t=o.arraySearch(ot,e.pointerId,"id");t<0&&(t=ot.length),ot[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Pt(e),i=n.length;X=null,Ye(),G&&1!==i||(G=ae=!0,o.bind(window,m,a),W=le=se=j=Y=K=q=Z=!1,oe=null,Pe("firstTouchStart",n),Ne(ue,pe),de.x=de.y=0,Ne(nt,n[0]),Ne(it,nt),at.x=ge.x*fe,st=[{x:nt.x,y:nt.y}],B=U=ke(),Ue(g,!0),ht(),gt()),!J&&i>1&&!ie&&!Y&&(v=g,Z=!1,J=q=!0,de.y=de.x=0,Ne(ue,pe),Ne(Qe,n[0]),Ne(et,n[1]),wt(Qe,et,mt),pt.x=Math.abs(mt.x)-pe.x,pt.y=Math.abs(mt.y)-pe.y,Q=ee=ft(Qe,et))}}},Dt=function(e){if(e.preventDefault(),D){var t=o.arraySearch(ot,e.pointerId,"id");if(t>-1){var n=ot[t];n.x=e.pageX,n.y=e.pageY}}if(G){var i=Pt(e);if(oe||K||J)X=i;else if(ut.x!==ge.x*fe)oe="h";else{var a=Math.abs(i[0].x-nt.x)-Math.abs(i[0].y-nt.y);Math.abs(a)>=10&&(oe=a>0?"h":"v",X=i)}}},At=function(){if(X){var e=X.length;if(0!==e)if(Ne(Qe,X[0]),tt.x=Qe.x-nt.x,tt.y=Qe.y-nt.y,J&&e>1){if(nt.x=Qe.x,nt.y=Qe.y,!tt.x&&!tt.y&&function(e,t){return e.x===t.x&&e.y===t.y}(X[1],et))return;Ne(et,X[1]),Z||(Z=!0,Pe("zoomGestureStarted"));var t=ft(Qe,et),n=Nt(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(le=!0);var i=1,o=Be(),r=He();if(n1&&(i=1),n=o-i*(o/3);else n>r&&((i=(n-r)/(6*o))>1&&(i=1),n=r+i*o);i<0&&(i=0),Q=t,wt(Qe,et,ct),de.x+=ct.x-mt.x,de.y+=ct.y-mt.y,Ne(mt,ct),pe.x=Oe("x",n),pe.y=Oe("y",n),W=n>g,g=n,Ae()}else{if(!oe)return;if(ae&&(ae=!1,Math.abs(tt.x)>=10&&(tt.x-=X[0].x-it.x),Math.abs(tt.y)>=10&&(tt.y-=X[0].y-it.y)),nt.x=Qe.x,nt.y=Qe.y,0===tt.x&&0===tt.y)return;if("v"===oe&&s.closeOnVerticalDrag&&"fit"===s.scaleMode&&g===a.currItem.initialZoomLevel){de.y+=tt.y,pe.y+=tt.y;var c=bt();return j=!0,Pe("onVerticalDrag",c),Ie(c),void Ae()}(function(e,t,n){if(e-B>50){var i=st.length>2?st.shift():{};i.x=t,i.y=n,st.push(i),B=e}})(ke(),Qe.x,Qe.y),K=!0,te=a.currItem.bounds,kt("x",tt)||(kt("y",tt),$e(pe),Ae())}}},Mt=function(e){if(L.isOldAndroid){if(z&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(z),z=setTimeout(function(){z=0},600))}Pe("pointerUp"),yt(e,!1)&&e.preventDefault();var t;if(D){var n=o.arraySearch(ot,e.pointerId,"id");if(n>-1)if(t=ot.splice(n,1)[0],navigator.msPointerEnabled){var i={4:"mouse",2:"touch",3:"pen"};t.type=i[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var r,l=Pt(e),c=l.length;if("mouseup"===e.type&&(c=0),2===c)return X=null,!0;1===c&&Ne(it,l[0]),0!==c||oe||ie||(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"})),Pe("touchRelease",e,t));var d=-1;if(0===c&&(G=!1,o.unbind(window,m,a),ht(),J?d=0:-1!==dt&&(d=ke()-dt)),dt=1===c?ke():-1,r=-1!==d&&d<150?"zoom":"swipe",J&&c<2&&(J=!1,1===c&&(r="zoomPointerUp"),Pe("zoomGestureEnded")),X=null,K||Z||ie||j)if(Ye(),H||(H=Et()),H.calculateSwipeSpeed("x"),j)if(bt()a.currItem.fitRatio&&Rt(H))}},Et=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){st.length>1?(e=ke()-B+50,t=st[st.length-2][i]):(e=ke()-U,t=it[i]),n.lastFlickOffset[i]=nt[i]-t,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickDist[i]>20?n.lastFlickSpeed[i]=n.lastFlickOffset[i]/e:n.lastFlickSpeed[i]=0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(pe[e]>te.min[e]?n.backAnimDestination[e]=te.min[e]:pe[e]30&&(l||t.lastFlickOffset.x>20)?i=-1:r<-30&&(l||t.lastFlickOffset.x<-20)&&(i=1)}var c;i&&((d+=i)<0?(d=s.loop?Wt()-1:0,c=!0):d>=Wt()&&(d=s.loop?0:Wt()-1,c=!0),c&&!s.loop||(ve+=i,fe-=i,n=!0));var u,p=ge.x*fe,m=Math.abs(p-ut.x);return n||p>ut.x==t.lastFlickSpeed.x>0?(u=Math.abs(t.lastFlickSpeed.x)>0?m/Math.abs(t.lastFlickSpeed.x):333,u=Math.min(u,400),u=Math.max(u,250)):u=333,lt===d&&(n=!1),ie=!0,Pe("mainScrollAnimStart"),Xe("mainScroll",ut.x,p,u,o.easing.cubic.out,Re,function(){Ye(),ie=!1,lt=-1,(n||lt!==d)&&a.updateCurrItem(),Pe("mainScrollAnimComplete")}),n&&a.updateCurrItem(!0),n},Nt=function(e){return 1/ee*e*v},$t=function(){var e=g,t=Be(),n=He();gn&&(e=n);var i,s=re;return se&&!W&&!le&&g1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=A,h[C]=It,h[_]=Dt,h[P]=Mt,k&&(h[k]=h[P]),L.touch&&(f+=" mousedown",m+=" mousemove mouseup",h.mousedown=h[C],h.mousemove=h[_],h.mouseup=h[P]),A||(s.allowPanToNext=!1)}}});var Lt,Ft,Ut,Bt,Ht,Wt,jt,zt=function(t,n,i,r){Lt&&clearTimeout(Lt),Bt=!0,Ut=!0;var l;t.initialLayout?(l=t.initialLayout,t.initialLayout=null):l=s.getThumbBoundsFn&&s.getThumbBoundsFn(d);var u=i?s.hideAnimationDuration:s.showAnimationDuration,p=function(){Ke("initialZoom"),i?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Ie(1),n&&(n.style.display="block"),o.addClass(e,"pswp--animated-in"),Pe("initialZoom"+(i?"OutEnd":"InEnd"))),r&&r(),Bt=!1};if(!u||!l||void 0===l.x)return Pe("initialZoom"+(i?"Out":"In")),g=t.initialZoomLevel,Ne(pe,t.initialPosition),Ae(),e.style.opacity=i?0:1,Ie(1),void(u?setTimeout(function(){p()},u):p());!function(){var n=c,r=!a.currItem.src||a.currItem.loadError||s.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),i||(g=l.w/t.w,pe.x=l.x,pe.y=l.y-O,a[r?"template":"bg"].style.opacity=.001,Ae()),Ve("initialZoom"),i&&!n&&o.removeClass(e,"pswp--animated-in"),r&&(i?o[(n?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){o.addClass(e,"pswp--animate_opacity")},30)),Lt=setTimeout(function(){if(Pe("initialZoom"+(i?"Out":"In")),i){var a=l.w/t.w,s={x:pe.x,y:pe.y},c=g,d=re,m=function(t){1===t?(g=a,pe.x=l.x,pe.y=l.y-$):(g=(a-c)*t+c,pe.x=(l.x-s.x)*t+s.x,pe.y=(l.y-$-s.y)*t+s.y),Ae(),r?e.style.opacity=1-t:Ie(d-t*d)};n?Xe("initialZoom",0,1,u,o.easing.cubic.out,m,p):(m(1),Lt=setTimeout(p,u+20))}else g=t.initialZoomLevel,Ne(pe,t.initialPosition),Ae(),Ie(1),r?e.style.opacity=1:Ie(1),Lt=setTimeout(p,u+20)},i?25:90)}()},Gt={},qt=[],Zt={index:0,errorMsg:'
The image could not be loaded.
',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ft.length}},Kt=function(e,t,n){if(e.src&&!e.loadError){var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),Pe("parseVerticalMargin",e)),Gt.x=t.x,Gt.y=t.y-e.vGap.top-e.vGap.bottom,i){var o=Gt.x/e.w,a=Gt.y/e.h;e.fitRatio=o1&&(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 i=e.bounds;i.center.x=Math.round((Gt.x-t)/2),i.center.y=Math.round((Gt.y-n)/2)+e.vGap.top,i.max.x=t>Gt.x?Math.round(Gt.x-t):i.center.x,i.max.y=n>Gt.y?Math.round(Gt.y-n)+e.vGap.top:i.center.y,i.min.x=t>Gt.x?0:i.center.x,i.min.y=n>Gt.y?e.vGap.top:i.center.y}(e,e.w*n,e.h*n),i&&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},Vt=function(e,t,n,i,o,s){t.loadError||i&&(t.imageAppended=!0,Jt(t,i,t===a.currItem&&we),n.appendChild(i),s&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},Yt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=o.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=s.errorMsg.replace("%url%",e.src),!0},Jt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var i=n?e.w:Math.round(e.w*e.fitRatio),o=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=o+"px"),t.style.width=i+"px",t.style.height=o+"px"}},Qt=function(){if(qt.length){for(var e,t=0;t=0,o=Math.min(n[0],Wt()),r=Math.min(n[1],Wt());for(t=1;t<=(i?r:o);t++)a.lazyLoadItem(d+t);for(t=1;t<=(i?o:r);t++)a.lazyLoadItem(d-t)}),_e("initialLayout",function(){a.currItem.initialLayout=s.getThumbBoundsFn&&s.getThumbBoundsFn(d)}),_e("mainScrollAnimComplete",Qt),_e("initialZoomInEnd",Qt),_e("destroy",function(){for(var e,t=0;t=0&&void 0!==Ft[e]&&Ft[e]},allowProgressiveImg:function(){return s.forceProgressiveLoading||!A||s.mouseUsed||screen.width>1200},setContent:function(e,t){s.loop&&(t=xe(t));var n=a.getItemAt(e.index);n&&(n.container=null);var i,l=a.getItemAt(t);if(l){Pe("gettingData",t,l),e.index=t,e.item=l;var c=l.container=o.createEl("pswp__zoom-wrap");if(!l.src&&l.html&&(l.html.tagName?c.appendChild(l.html):c.innerHTML=l.html),Xt(l),Kt(l,me),!l.src||l.loadError||l.loaded)l.src&&!l.loadError&&(i=o.createEl("pswp__img","img"),i.style.opacity=1,i.src=l.src,Jt(l,i),Vt(0,l,c,i));else{if(l.loadComplete=function(n){if(r){if(e&&e.index===t){if(Xt(n,!0))return n.loadComplete=n.img=null,Kt(n,me),Me(n),void(e.index===d&&a.updateCurrZoomItem());n.imageAppended?!Bt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):L.transform&&(ie||Bt)?qt.push({item:n,baseDiv:c,img:n.img,index:t,holder:e,clearPlaceholder:!0}):Vt(0,n,c,n.img,0,!0)}n.loadComplete=null,n.img=null,Pe("imageLoadComplete",t,n)}},o.features.transform){var u="pswp__img pswp__img--placeholder";u+=l.msrc?"":" pswp__img--placeholder--blank";var p=o.createEl(u,l.msrc?"img":"");l.msrc&&(p.src=l.msrc),Jt(l,p),c.appendChild(p),l.placeholder=p}l.loading||Yt(l),a.allowProgressiveImg()&&(!Ut&&L.transform?qt.push({item:l,baseDiv:c,img:l.img,index:t,holder:e}):Vt(0,l,c,l.img,0,!0))}Ut||t!==d?Me(l):(ne=c.style,zt(l,i||l.img)),e.el.innerHTML="",e.el.appendChild(c)}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 en,tn={},nn=function(e,t,n){var i=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(i)};be("Tap",{publicMethods:{initTap:function(){_e("firstTouchStart",a.onTapStart),_e("touchRelease",a.onTapRelease),_e("destroy",function(){tn={},en=null})},onTapStart:function(e){e.length>1&&(clearTimeout(en),en=null)},onTapRelease:function(e,t){if(t&&!K&&!q&&!Ze){var n=t;if(en&&(clearTimeout(en),en=null,function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25}(n,tn)))return void Pe("doubleTap",n);if("mouse"===t.type)return void nn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||o.hasClass(e.target,"pswp__single-tap"))return void nn(e,t);Ne(tn,n),en=setTimeout(function(){nn(e,t),en=null},300)}}}});var on;be("DesktopZoom",{publicMethods:{initDesktopZoom:function(){N||(A?_e("mouseUsed",function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){on={};var n="wheel mousewheel DOMMouseScroll";_e("bindEvents",function(){o.bind(e,n,a.handleMouseWheel)}),_e("unbindEvents",function(){on&&o.unbind(e,n,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var i,s=function(){a.mouseZoomedIn&&(o.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),g<1?o.addClass(e,"pswp--zoom-allowed"):o.removeClass(e,"pswp--zoom-allowed"),r()},r=function(){i&&(o.removeClass(e,"pswp--dragging"),i=!1)};_e("resize",s),_e("afterChange",s),_e("pointerDown",function(){a.mouseZoomedIn&&(i=!0,o.addClass(e,"pswp--dragging"))}),_e("pointerUp",r),t||s()},handleMouseWheel:function(e){if(g<=a.currItem.fitRatio)return s.modal&&(!s.closeOnScroll||Ze||G?e.preventDefault():I&&Math.abs(e.deltaY)>2&&(c=!0,a.close())),!0;if(e.stopPropagation(),on.x=0,"deltaX"in e)1===e.deltaMode?(on.x=18*e.deltaX,on.y=18*e.deltaY):(on.x=e.deltaX,on.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(on.x=-.16*e.wheelDeltaX),e.wheelDeltaY?on.y=-.16*e.wheelDeltaY:on.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;on.y=e.detail}Ue(g,!0);var t=pe.x-on.x,n=pe.y-on.y;(s.modal||t<=te.min.x&&t>=te.max.x&&n<=te.min.y&&n>=te.max.y)&&e.preventDefault(),a.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:me.x/2+he.x,y:me.y/2+he.y};var n=s.getDoubleTapZoom(!0,a.currItem),i=g===n;a.mouseZoomedIn=!i,a.zoomTo(i?a.currItem.initialZoomLevel:n,t,333),o[(i?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var an,sn,rn,ln,cn,dn,un,pn,mn,fn,hn,gn,vn={history:!0,galleryUID:1},Tn=function(){return hn.hash.substring(1)},yn=function(){an&&clearTimeout(an),rn&&clearTimeout(rn)},Sn=function(){var e=Tn(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n-1&&"&"===(un=un.substring(0,t)).slice(-1)&&(un=un.slice(0,-1)),setTimeout(function(){r&&o.bind(window,"hashchange",a.onHashChange)},40)}},onHashChange:function(){return Tn()===un?(mn=!0,void a.close()):void(ln||(cn=!0,a.goTo(Sn().pid),cn=!1))},updateURL:function(){yn(),cn||(pn?an=setTimeout(wn,800):wn())}}}),o.extend(a,Je)}}),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,i,o,a,s,r,l,c,d,u,p,m,f,h,g,v,T,y,S,w=this,b=!1,x=!0,C=!0,_={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},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},P=function(e){if(v)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!d&&$();for(var n,i,o=(e.target||e.srcElement).getAttribute("class")||"",a=0;a-1&&(n.onTap(),i=!0);if(i){e.stopPropagation&&e.stopPropagation(),v=!0;var s=t.features.isOldAndroid?600:30;T=setTimeout(function(){v=!1},s)}},k=function(){return!e.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth},I=function(e,n,i){t[(i?"add":"remove")+"Class"](e,"pswp__"+n)},D=function(){var e=1===g.getNumItemsFn();e!==h&&(I(i,"ui--one-slide",e),h=e)},A=function(){I(l,"share-modal--hidden",C)},M=function(){return(C=!C)?(t.removeClass(l,"pswp__share-modal--fade-in"),setTimeout(function(){C&&A()},300)):(A(),setTimeout(function(){C||t.addClass(l,"pswp__share-modal--fade-in")},30)),C||R(),!1},E=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),!(!n.href||!n.hasAttribute("download")&&(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),C||M(),1))},R=function(){for(var e,t,n,i,o,a="",s=0;s