!function(t){function e(n){if(A[n])return A[n].exports;var i=A[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var A={};return e.m=t,e.c=A,e.p="",e(0)}([function(t,e,A){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var A=0;A0&&(this._index-=1,this._onNavigation(this._items[this._index],this._items[this._index+1]))}},{key:"toggleFullscreen",value:function(){this._gallery.classList.toggle("fullscreen"),this._isFullscreen=!this._isFullscreen,this._isFullscreen?document.body.addEventListener("keyup",this._onKeyUp):document.body.removeEventListener("keyup",this._onKeyUp),this._resetItems()}},{key:"_build",value:function(t){var e=this,A=document.createElement("div");this._gallery=A,A.className="gallery";var n=document.createElement("div");this._galleryContentContainer=n,n.className="gallery-content",A.appendChild(n);var i=new s.default.Manager(A),o=new s.default.Swipe,r=new s.default.Pan;i.add(o),i.add(r);var a=0,h=0,c=!1,p=!1;i.on("panstart",function(t){t.preventDefault(),a=t.pointers[0].clientX,h=n.offsetLeft,n.classList.add("no-transition"),p=e._items[e._index].element.offsetLeft>=0,c=e._items[e._index].element.offsetLeft+e._items[e._index].element.offsetWidth<=e._items[e._index].element.parentNode.offsetWidth}),i.on("panleft",function(t){t.preventDefault(),(c||p)&&(n.style.left=h-(a-t.pointers[0].clientX)+"px"),p&&!c&&n.offsetLeft<=h&&(n.style.left=h+"px",p=!1)}),i.on("panright",function(t){t.preventDefault(),(p||c)&&(n.style.left=h-(a-t.pointers[0].clientX)+"px"),c&&!p&&n.offsetLeft>=h&&(n.style.left=h+"px",c=!1)}),i.on("panend",function(t){n.classList.remove("no-transition");var A=Math.round(n.offsetLeft*-1/n.offsetWidth);A<0?A=0:A>e._items.length-1&&(A=e._items.length-1);var i=e._index;e._index=A,i!=e._index?e._onNavigation(e._items[e._index],e._items[i]):e._galleryContentContainer.style.left=100*e._index*-1+"%",i===e._index&&(t.velocityX<=-.5?e.next():t.velocityX>=.5&&e.previous())});for(var g in t){var E=m.default.build(t[g]);this._items.push(E),n.appendChild(d.default.build(E))}var Q=document.createElement("img");Q.className="back-nav-icon",Q.src=u.default,A.appendChild(Q);var v=new s.default.Manager(Q),y=new s.default.Tap;v.add(y),v.on("tap",function(t){e.previous()});var w=document.createElement("img");w.className="forward-nav-icon",w.src=f.default,A.appendChild(w);var C=new s.default.Manager(w),B=new s.default.Tap;C.add(B),C.on("tap",function(t){e.next()});var I=document.createElement("div");I.className="status-bar",A.appendChild(I);var b=document.createElement("div");b.className="navigation-status",this._navigationStatus=b,I.appendChild(b);var x=document.createElement("img");x.className="fullscreen-icon",x.src=l.default,I.appendChild(x);var T=document.createElement("span");this._itemTitle=T,I.appendChild(T);var R=new s.default.Manager(x),D=new s.default.Tap;return R.add(D),R.on("tap",function(t){e.toggleFullscreen()}),this._onNavigation(this._items[this._index]),A}},{key:"_resetItems",value:function(){for(var t in this._items)this._items[t].reset()}},{key:"_onNavigation",value:function(t,e){e&&e.onHidden(),t.onShown(),this._navigationStatus.innerHTML=this._index+1+"/"+this._items.length,this._galleryContentContainer.style.left=100*this._index*-1+"%",this._itemTitle.innerHTML=this._items[this._index].title||""}},{key:"_onKeyUp",value:function(t){switch(t.which){case 37:this.previous();break;case 39:this.next();break;case 27:this.toggleFullscreen()}}},{key:"element",get:function(){return this._gallery}}]),t}();e.default=E,window.GalleryJS=E,t.exports=E},function(t,e,A){var n,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */ !function(o,r,s,a){"use strict";function l(t,e,A){return setTimeout(p(t,A),e)}function h(t,e,A){return!!Array.isArray(t)&&(u(t,A[e],A),!0)}function u(t,e,A){var n;if(t)if(t.forEach)t.forEach(e,A);else if(t.length!==a)for(n=0;n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,n,A),t.apply(this,arguments)}}function f(t,e,A){var n,i=e.prototype;n=t.prototype=Object.create(i),n.constructor=t,n._super=i,A&>(n,A)}function p(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return("undefined"==typeof t?"undefined":i(t))==Qt?t.apply(e?e[0]||a:a,e):t}function g(t,e){return t===a?e:t}function m(t,e,A){u(y(e),function(e){t.addEventListener(e,A,!1)})}function E(t,e,A){u(y(e),function(e){t.removeEventListener(e,A,!1)})}function Q(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(t,e){return t.indexOf(e)>-1}function y(t){return t.trim().split(/\s+/g)}function w(t,e,A){if(t.indexOf&&!A)return t.indexOf(e);for(var n=0;nA[e]}):n.sort()),n}function I(t,e){for(var A,n,i=e[0].toUpperCase()+e.slice(1),o=0;o1&&!A.firstMultiple?A.firstMultiple=S(e):1===i&&(A.firstMultiple=!1);var o=A.firstInput,r=A.firstMultiple,s=r?r.center:o.center,a=e.center=H(n);e.timeStamp=wt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=U(s,a),e.distance=J(s,a),k(A,e),e.offsetDirection=N(e.deltaX,e.deltaY);var l=G(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=yt(l.x)>yt(l.y)?l.x:l.y,e.scale=r?O(r.pointers,n):1,e.rotation=r?Y(r.pointers,n):0,e.maxPointers=A.prevInput?e.pointers.length>A.prevInput.maxPointers?e.pointers.length:A.prevInput.maxPointers:e.pointers.length,F(A,e);var h=t.element;Q(e.srcEvent.target,h)&&(h=e.srcEvent.target),e.target=h}function k(t,e){var A=e.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Ht&&o.eventType!==Nt||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:A.x,y:A.y}),e.deltaX=i.x+(A.x-n.x),e.deltaY=i.y+(A.y-n.y)}function F(t,e){var A,n,i,o,r=t.lastInterval||e,s=e.timeStamp-r.timeStamp;if(e.eventType!=Jt&&(s>St||r.velocity===a)){var l=e.deltaX-r.deltaX,h=e.deltaY-r.deltaY,u=G(s,l,h);n=u.x,i=u.y,A=yt(u.x)>yt(u.y)?u.x:u.y,o=N(l,h),t.lastInterval=e}else A=r.velocity,n=r.velocityX,i=r.velocityY,o=r.direction;e.velocity=A,e.velocityX=n,e.velocityY=i,e.direction=o}function S(t){for(var e=[],A=0;A=yt(e)?t<0?Yt:Ot:e<0?Wt:Pt}function J(t,e,A){A||(A=jt);var n=e[A[0]]-t[A[0]],i=e[A[1]]-t[A[1]];return Math.sqrt(n*n+i*i)}function U(t,e,A){A||(A=jt);var n=e[A[0]]-t[A[0]],i=e[A[1]]-t[A[1]];return 180*Math.atan2(i,n)/Math.PI}function Y(t,e){return U(e[1],e[0],Kt)+U(t[1],t[0],Kt)}function O(t,e){return J(e[0],e[1],Kt)/J(t[0],t[1],Kt)}function W(){this.evEl=Xt,this.evWin=Zt,this.pressed=!1,T.apply(this,arguments)}function P(){this.evEl=te,this.evWin=ee,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function _(){this.evTarget=ne,this.evWin=ie,this.started=!1,T.apply(this,arguments)}function V(t,e){var A=C(t.touches),n=C(t.changedTouches);return e&(Nt|Jt)&&(A=B(A.concat(n),"identifier",!0)),[A,n]}function L(){this.evTarget=re,this.targetIds={},T.apply(this,arguments)}function j(t,e){var A=C(t.touches),n=this.targetIds;if(e&(Ht|Gt)&&1===A.length)return n[A[0].identifier]=!0,[A,A];var i,o,r=C(t.changedTouches),s=[],a=this.target;if(o=A.filter(function(t){return Q(t.target,a)}),e===Ht)for(i=0;i-1&&n.splice(t,1)};setTimeout(i,se)}}function Z(t){for(var e=t.srcEvent.clientX,A=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function t(e){function t(t){A.manager.emit(t,e)}var A=this,n=this.state;n=ye&&t(A.options.event+At(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=Be)},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return ot.prototype.attrTest.call(this,t)&&(this.state&Qe||!(this.state&Qe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),f(st,ot,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Qe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),f(at,et,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ce]},process:function(t){var e=this.options,A=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!A||t.eventType&(Nt|Jt)&&!i)this.reset();else if(t.eventType&Ht)this.reset(),this._timer=l(function(){this.state=we,this.tryEmit()},e.time,this);else if(t.eventType&Nt)return we;return Be},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===we&&(t&&t.eventType&Nt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=wt(),this.manager.emit(this.options.event,this._input)))}}),f(lt,ot,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Qe)}}),f(ht,ot,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:_t|Vt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,A=this.options.direction;return A&(_t|Vt)?e=t.overallVelocity:A&_t?e=t.overallVelocityX:A&Vt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&A&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&yt(e)>this.options.velocity&&t.eventType&Nt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),f(ut,et,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[fe]},process:function(t){var e=this.options,A=t.pointers.length===e.pointers,n=t.distance*{width:100%;height:100%;display:inline-block;background-size:contain;background-repeat:no-repeat;background-position:50%;vertical-align:top;position:relative;overflow:hidden}.gallery .gallery-content>* .event-overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:100}.gallery .gallery-content>* iframe{width:100%;height:100%}.gallery .gallery-content>* img{position:absolute;top:0;left:0;transform:translateZ(0)}.gallery .gallery-content>* img.spinner{bottom:0;right:0;margin:auto}",""])},function(t,e){"use strict";t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&Q.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function a(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function l(t,e){var A,n,i;if(e.singleton){var o=E++;A=m||(m=s(e)),n=h.bind(null,A,o,!1),i=h.bind(null,A,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(A=a(e),n=c.bind(null,A),i=function(){r(A),A.href&&URL.revokeObjectURL(A.href)}):(A=s(e),n=u.bind(null,A),i=function(){r(A)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}function h(t,e,A,n){var i=A?"":n.css;if(t.styleSheet)t.styleSheet.cssText=v(e,i);else{var o=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function u(t,e){var A=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=A;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(A))}}function c(t,e){var A=e.css,n=e.sourceMap;n&&(A+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var i=new Blob([A],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var f={},p=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},d=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),g=p(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,E=0,Q=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=d()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var A=i(t);return n(A,e),function(t){for(var o=[],r=0;rl&&e2*this.element.parentNode.offsetHeight||t>2*this.element.parentNode.offsetWidth)&&(e=this.element.offsetHeight,t=this.element.offsetWidth);var h=void 0;h=a>l?this.element.offsetHeight/this.element.parentNode.offsetHeight-1:this.element.offsetWidth/this.element.parentNode.offsetWidth-1;var u={x:n-2*A.x,y:i-2*A.y};r=(n+u.x)*h,s=(i+u.y)*h,r+=o.x,s+=o.y,ethis.element.parentNode.offsetHeight&&s>0?s=0:e>this.element.parentNode.offsetHeight&&s<0-(e-this.element.parentNode.offsetHeight)?s=0-(e-this.element.parentNode.offsetHeight):e===this.element.parentNode.offsetHeight&&(s=0),tthis.element.parentNode.offsetWidth&&r>0?r=0:t>this.element.parentNode.offsetWidth&&r<0-(t-this.element.parentNode.offsetWidth)?r=0-(t-this.element.parentNode.offsetWidth):t===this.element.parentNode.offsetWidth&&(r=0),this.element.style.display="none",this.element.style.top=Math.floor(s)+"px",this.element.style.left=Math.floor(r)+"px",this.element.style.width=Math.floor(t)+"px",this.element.style.height=Math.floor(e)+"px",this.element.style.display="block"}},{key:"move",value:function(t,e){this.element.offsetWidth>this.element.parentNode.offsetWidth?t>0?t=0:tthis.element.parentNode.offsetHeight?e>0?e=0:ee?(this.element.style.top="0px",this.element.style.height=this.element.parentNode.offsetHeight+"px",this.element.style.left=(this.element.parentNode.offsetWidth-this.element.offsetWidth)/2+"px"):t