@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
4 lines • 68.1 kB
JavaScript
(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[3],{821:function(n,e,t){"use strict";var o=t(0),i=t(846),a=t.n(i),r=t(2),s=t(20),l=function(n,e,t,o,i,a,r,s,l){this.src=n,this.w=e,this.h=t,this.loadError=o,this.vGap=i,this.fitRatio=a,this.initialZoomLevel=r,this.bounds=s,this.initialPosition=l},p=t(847),c=t(848);!function(n){function e(){var e=n.call(this)||this;return e.styles={},e.options={history:!1,focus:!1,showAnimationDuration:0,hideAnimationDuration:0,maxSpreadZoom:4,getDoubleTapZoom:function(n,e){return n||e.initialZoomLevel<.7?1:1.5},clickToCloseNonZoomable:!0,clickToImageZoom:!0,fullscreenEl:!1,arrowEl:!1,zoomEl:!1,shareEl:!1},e.closeLightBox=e.closeLightBox.bind(e),e}Object(o.d)(e,n),e.prototype.openFunction=function(n){n&&(this.__fillLightBox(this.pswpElement,this.images),this.openLightBox())},e.prototype.connectedCallback=function(){n.prototype.connectedCallback.call(this);var e=document.createElement("div");e.setAttribute("style","position: absolute;z-index: 2147483650;"),e.innerHTML=a.a,document.body.appendChild(e),this.pswpElement=e.lastChild},e.prototype.disconnectedCallback=function(){n.prototype.disconnectedCallback.call(this),this.pswpElement.parentElement.remove()},e.prototype.__fillLightBox=function(n,e){var t,i,a=e.map((function(n){return n.width=n.width?n.width:0,n.height=n.height?n.height:0,new l(n.urlHD||"",n.width,n.height)}));a=this.currentImageId?a.slice(this.currentImageId).concat(a.slice(0,this.currentImageId)):a,this.__lightbox&&this.__lightbox.close();var r=new p(n,c,a,this.options);if(r.listen("imageLoadComplete",(function(n,e){if(e.h<1||e.w<1){var t=new Image;t.onload=function(){e.w=t.width,e.h=t.height,r.invalidateCurrItems(),r.updateSize(!0)},t.src=e.src}})),this.__lightbox=r,this.__lightbox.listen("open",this.openLightBox),this.__lightbox.listen("close",this.closeLightBox),r.init(),this.styles)try{for(var s=Object(o.k)(Object.entries(this.styles)),u=s.next();!u.done;u=s.next()){var d=Object(o.h)(u.value,2),m=d[0],f=d[1];this.__lightbox.container.style.setProperty(m,f)}}catch(h){t={error:h}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}},e.prototype.openLightBox=function(){document.body.classList.toggle("photoswipe-lightbox"),this.open=!0},e.prototype.closeLightBox=function(){document.body.classList.toggle("photoswipe-lightbox"),this.open=!1},Object(o.c)([Object(r.c)({notify:!0}),Object(o.g)("design:type",Boolean)],e.prototype,"open",void 0),Object(o.c)([Object(r.b)("open"),Object(o.g)("design:type",Function),Object(o.g)("design:paramtypes",[Object]),Object(o.g)("design:returntype",void 0)],e.prototype,"openFunction",null),Object(o.c)([Object(r.c)({notify:!0}),Object(o.g)("design:type",Array)],e.prototype,"images",void 0),Object(o.c)([Object(r.c)(),Object(o.g)("design:type",Number)],e.prototype,"currentImageId",void 0),Object(o.c)([Object(r.c)(),Object(o.g)("design:type",Object)],e.prototype,"styles",void 0),e=Object(o.c)([Object(r.a)("au-lightbox"),Object(o.g)("design:paramtypes",[])],e)}(s.a)},846:function(n,e){n.exports='<style>\n /*! PhotoSwipe main CSS by Dmitry Semenov | photoswipe.com | MIT license */\n /*\n\tStyles for basic PhotoSwipe functionality (sliding area, open/close transitions)\n*/\n .photoswipe-lightbox {\n overflow: hidden;\n }\n\n /* pswp = photoswipe */\n .pswp {\n display: none;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n overflow: hidden;\n -ms-touch-action: none;\n touch-action: none;\n z-index: 1500;\n -webkit-text-size-adjust: 100%;\n /* create separate layer, to avoid paint on window.onscroll in webkit/blink */\n -webkit-backface-visibility: hidden;\n outline: none;\n }\n\n .pswp * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n .pswp img {\n max-width: none;\n }\n\n /* style is added when JS option showHideOpacity is set to true */\n .pswp--animate_opacity {\n /* 0.001, because opacity:0 doesn\'t trigger Paint action, which causes lag at start of transition */\n opacity: 0.001;\n will-change: opacity;\n /* for open/close transition */\n -webkit-transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);\n }\n\n .pswp--open {\n display: block;\n }\n\n .pswp--zoom-allowed .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-zoom-in;\n cursor: -moz-zoom-in;\n cursor: zoom-in;\n }\n\n .pswp--zoomed-in .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n }\n\n .pswp--dragging .pswp__img {\n /* autoprefixer: off */\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n }\n\n /*\n\tBackground is added as a separate element.\n\tAs animating opacity is much faster than animating rgba() background-color.\n*/\n .pswp__bg {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: var(--carousel-lightbox-background);\n opacity: 0;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n -webkit-backface-visibility: hidden;\n will-change: opacity;\n }\n\n .pswp__scroll-wrap {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n\n .pswp__container,\n .pswp__zoom-wrap {\n -ms-touch-action: none;\n touch-action: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n }\n\n /* Prevent selection and tap highlights */\n .pswp__container,\n .pswp__img {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n }\n\n .pswp__zoom-wrap {\n position: absolute;\n width: 100%;\n -webkit-transform-origin: left top;\n -ms-transform-origin: left top;\n transform-origin: left top;\n /* for open/close transition */\n -webkit-transition: -webkit-transform 333ms cubic-bezier(0.4, 0, 0.22, 1);\n transition: transform 333ms cubic-bezier(0.4, 0, 0.22, 1);\n }\n\n .pswp__bg {\n will-change: opacity;\n /* for open/close transition */\n -webkit-transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);\n }\n\n .pswp--animated-in .pswp__bg,\n .pswp--animated-in .pswp__zoom-wrap {\n -webkit-transition: none;\n transition: none;\n }\n\n .pswp__container,\n .pswp__zoom-wrap {\n -webkit-backface-visibility: hidden;\n }\n\n .pswp__item {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: hidden;\n }\n\n .pswp__img {\n position: absolute;\n width: auto;\n height: auto;\n top: 0;\n left: 0;\n cursor: zoom-in;\n box-shadow: var(--carousel-lightbox-shadow, 0 2px 8px rgba(0, 0, 0, .2));\n }\n\n /*\n\tstretched thumbnail or div placeholder element (see below)\n\tstyle is added to avoid flickering in webkit/blink when layers overlap\n*/\n .pswp__img--placeholder {\n -webkit-backface-visibility: hidden;\n }\n\n /*\n\tdiv element that matches size of large image\n\tlarge image loads on top of it\n*/\n .pswp__img--placeholder--blank {\n background: #222;\n }\n\n .pswp--ie .pswp__img {\n width: 100% !important;\n height: auto !important;\n left: 0;\n top: 0;\n }\n\n /*\n\tError message appears when image is not loaded\n\t(JS option errorMsg controls markup)\n*/\n .pswp__error-msg {\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n text-align: center;\n font-size: 14px;\n line-height: 16px;\n margin-top: -8px;\n color: #CCC;\n }\n\n .pswp__error-msg a {\n color: #CCC;\n text-decoration: underline;\n }\n\n button.pswp__button iron-icon {\n color: var(--carousel-lightbox-color);\n z-index: -1;\n }\n</style>\n<style>\n /*! PhotoSwipe Default UI CSS by Dmitry Semenov | photoswipe.com | MIT license */\n\n /*\n\n\tContents:\n\n\t1. Buttons\n\t2. Share modal and links\n\t3. Index indicator ("1 of X" counter)\n\t4. Caption\n\t5. Loading indicator\n\t6. Additional styles (root element, top bar, idle state, hidden state, etc.)\n\n*/\n\n /*\n\t\n\t1. Buttons\n\n */\n\n /* <button> css reset */\n\n .pswp__button {\n width: 44px;\n height: 44px;\n position: relative;\n background: none;\n cursor: pointer;\n overflow: visible;\n -webkit-appearance: none;\n display: block;\n border: 0;\n padding: 0;\n margin: 0;\n float: right;\n opacity: 0.75;\n -webkit-transition: opacity 0.2s;\n transition: opacity 0.2s;\n -webkit-box-shadow: none;\n box-shadow: none;\n }\n\n .pswp__button:focus,\n .pswp__button:hover {\n opacity: 1;\n }\n\n .pswp__button:active {\n outline: none;\n opacity: 0.9;\n }\n\n .pswp__button::-moz-focus-inner {\n padding: 0;\n border: 0;\n }\n\n /* pswp__ui--over-close class it added when mouse is over element that should close gallery */\n\n .pswp__ui--over-close .pswp__button--close {\n opacity: 1;\n }\n\n .pswp__button,\n .pswp__button--arrow--left:before,\n .pswp__button--arrow--right:before {\n background-size: 264px 88px;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n }\n\n @media (-webkit-min-device-pixel-ratio: 1.1),\n (-webkit-min-device-pixel-ratio: 1.09375),\n (min-resolution: 105dpi),\n (min-resolution: 1.1dppx) {\n\n /* Serve SVG sprite if browser supports SVG and resolution is more than 105dpi */\n .pswp--svg .pswp__button,\n .pswp--svg .pswp__button--arrow--left:before,\n .pswp--svg .pswp__button--arrow--right:before {\n }\n\n .pswp--svg .pswp__button--arrow--left,\n .pswp--svg .pswp__button--arrow--right {\n background: none;\n }\n }\n\n .pswp__button--close {\n background-position: 0 -44px;\n }\n\n .pswp__button--share {\n background-position: -44px -44px;\n }\n\n .pswp__button--fs {\n display: none;\n }\n\n .pswp--supports-fs .pswp__button--fs {\n display: block;\n }\n\n .pswp--fs .pswp__button--fs {\n background-position: -44px 0;\n }\n\n .pswp__button--zoom {\n /* display: none; */\n background-position: -88px 0;\n }\n\n .pswp--zoom-allowed .pswp__button--zoom {\n display: block;\n }\n\n .pswp--zoomed-in .pswp__button--zoom {\n background-position: -132px 0;\n }\n\n /* no arrows on touch screens */\n\n .pswp--touch .pswp__button--arrow--left,\n .pswp--touch .pswp__button--arrow--right {\n visibility: hidden;\n }\n\n /*\n\tArrow buttons hit area\n\t(icon is added to :before pseudo-element)\n*/\n\n .pswp__button--arrow--left,\n .pswp__button--arrow--right {\n background: none;\n top: 50%;\n margin-top: -50px;\n width: 70px;\n height: 100px;\n position: absolute;\n }\n\n .pswp__button--arrow--left {\n left: 0;\n }\n\n .pswp__button--arrow--right {\n right: 0;\n }\n\n .pswp__button--arrow--left:before,\n .pswp__button--arrow--right:before {\n content: \'\';\n top: 26px;\n background-color: rgba(255, 255, 255, 0.8);\n height: 48px;\n width: 48px;\n border-radius: 50%;\n position: absolute;\n margin: 0 7px;\n }\n\n .pswp__button--arrow--left:before {\n left: 6px;\n background-position: -138px -44px;\n }\n\n .pswp__button--arrow--right:before {\n right: 6px;\n background-position: -94px -44px;\n }\n\n /*\n\n\t2. Share modal/popup and links\n\n */\n\n .pswp__counter,\n .pswp__share-modal {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .pswp__share-modal {\n display: block;\n background: rgba(0, 0, 0, 0.5);\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n padding: 10px;\n position: absolute;\n z-index: 1600;\n opacity: 0;\n -webkit-transition: opacity 0.25s ease-out;\n transition: opacity 0.25s ease-out;\n -webkit-backface-visibility: hidden;\n will-change: opacity;\n }\n\n .pswp__share-modal--hidden {\n display: none;\n }\n\n .pswp__share-tooltip {\n z-index: 1620;\n position: absolute;\n background: #FFF;\n top: 56px;\n border-radius: 2px;\n display: block;\n width: auto;\n right: 44px;\n -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);\n -webkit-transform: translateY(6px);\n -ms-transform: translateY(6px);\n transform: translateY(6px);\n -webkit-transition: -webkit-transform 0.25s;\n transition: transform 0.25s;\n -webkit-backface-visibility: hidden;\n will-change: transform;\n }\n\n .pswp__share-tooltip a {\n display: block;\n padding: 8px 12px;\n color: #000;\n text-decoration: none;\n font-size: 14px;\n line-height: 18px;\n }\n\n .pswp__share-tooltip a:hover {\n text-decoration: none;\n color: #000;\n }\n\n .pswp__share-tooltip a:first-child {\n /* round corners on the first/last list item */\n border-radius: 2px 2px 0 0;\n }\n\n .pswp__share-tooltip a:last-child {\n border-radius: 0 0 2px 2px;\n }\n\n .pswp__share-modal--fade-in {\n opacity: 1;\n }\n\n .pswp__share-modal--fade-in .pswp__share-tooltip {\n -webkit-transform: translateY(0);\n -ms-transform: translateY(0);\n transform: translateY(0);\n }\n\n /* increase size of share links on touch devices */\n\n .pswp--touch .pswp__share-tooltip a {\n padding: 16px 12px;\n }\n\n a.pswp__share--facebook:before {\n content: \'\';\n display: block;\n width: 0;\n height: 0;\n position: absolute;\n top: -12px;\n right: 15px;\n border: 6px solid transparent;\n border-bottom-color: #FFF;\n -webkit-pointer-events: none;\n -moz-pointer-events: none;\n pointer-events: none;\n }\n\n a.pswp__share--facebook:hover {\n background: #3E5C9A;\n color: #FFF;\n }\n\n a.pswp__share--facebook:hover:before {\n border-bottom-color: #3E5C9A;\n }\n\n a.pswp__share--twitter:hover {\n background: #55ACEE;\n color: #FFF;\n }\n\n a.pswp__share--pinterest:hover {\n background: #CCC;\n color: #CE272D;\n }\n\n a.pswp__share--download:hover {\n background: #DDD;\n }\n\n /*\n\n\t3. Index indicator ("1 of X" counter)\n\n */\n\n .pswp__counter {\n position: absolute;\n left: 0;\n top: 0;\n height: 44px;\n font-size: 13px;\n line-height: 44px;\n color: var(--carousel-lightbox-color);\n opacity: 0.75;\n padding: 0 10px;\n }\n\n /*\n\t\n\t4. Caption\n\n */\n\n .pswp__caption {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n min-height: 44px;\n }\n\n .pswp__caption small {\n font-size: 11px;\n color: #BBB;\n }\n\n .pswp__caption__center {\n text-align: left;\n max-width: 420px;\n margin: 0 auto;\n font-size: 13px;\n padding: 10px;\n line-height: 20px;\n color: #CCC;\n }\n\n .pswp__caption--empty {\n display: none;\n }\n\n /* Fake caption element, used to calculate height of next/prev image */\n\n .pswp__caption--fake {\n visibility: hidden;\n }\n\n /*\n\n\t5. Loading indicator (preloader)\n\n\tYou can play with it here - http://codepen.io/dimsemenov/pen/yyBWoR\n\n */\n\n .pswp__preloader {\n width: 44px;\n height: 44px;\n position: absolute;\n top: 0;\n left: 50%;\n margin-left: -22px;\n opacity: 0;\n -webkit-transition: opacity 0.25s ease-out;\n transition: opacity 0.25s ease-out;\n will-change: opacity;\n direction: ltr;\n }\n\n .pswp__preloader__icn {\n width: 20px;\n height: 20px;\n margin: 12px;\n }\n\n .pswp__preloader--active {\n opacity: 1;\n }\n\n .pswp__preloader--active .pswp__preloader__icn {\n /* We use .gif in browsers that don\'t support CSS animation */\n background: url(preloader.gif) 0 0 no-repeat;\n }\n\n .pswp--css_animation .pswp__preloader--active {\n opacity: 1;\n }\n\n .pswp--css_animation .pswp__preloader--active .pswp__preloader__icn {\n -webkit-animation: clockwise 500ms linear infinite;\n animation: clockwise 500ms linear infinite;\n }\n\n .pswp--css_animation .pswp__preloader--active .pswp__preloader__donut {\n -webkit-animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite;\n animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite;\n }\n\n .pswp--css_animation .pswp__preloader__icn {\n background: none;\n opacity: 0.75;\n width: 14px;\n height: 14px;\n position: absolute;\n left: 15px;\n top: 15px;\n margin: 0;\n }\n\n .pswp--css_animation .pswp__preloader__cut {\n /* \n\t\t\tThe idea of animating inner circle is based on Polymer ("material") loading indicator \n\t\t\t by Keanu Lee https://blog.keanulee.com/2014/10/20/the-tale-of-three-spinners.html\n\t\t*/\n position: relative;\n width: 7px;\n height: 14px;\n overflow: hidden;\n }\n\n .pswp--css_animation .pswp__preloader__donut {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n border: 2px solid #FFF;\n border-radius: 50%;\n border-left-color: transparent;\n border-bottom-color: transparent;\n position: absolute;\n top: 0;\n left: 0;\n background: none;\n margin: 0;\n }\n\n @media screen and (max-width: 1024px) {\n .pswp__preloader {\n position: relative;\n left: auto;\n top: auto;\n margin: 0;\n float: right;\n }\n }\n\n @-webkit-keyframes clockwise {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes clockwise {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @-webkit-keyframes donut-rotate {\n 0% {\n -webkit-transform: rotate(0);\n transform: rotate(0);\n }\n\n 50% {\n -webkit-transform: rotate(-140deg);\n transform: rotate(-140deg);\n }\n\n 100% {\n -webkit-transform: rotate(0);\n transform: rotate(0);\n }\n }\n\n @keyframes donut-rotate {\n 0% {\n -webkit-transform: rotate(0);\n transform: rotate(0);\n }\n\n 50% {\n -webkit-transform: rotate(-140deg);\n transform: rotate(-140deg);\n }\n\n 100% {\n -webkit-transform: rotate(0);\n transform: rotate(0);\n }\n }\n\n /*\n\t\n\t6. Additional styles\n\n */\n\n /* root element of UI */\n\n .pswp__ui {\n -webkit-font-smoothing: auto;\n visibility: visible;\n opacity: 1;\n z-index: 1550;\n }\n\n /* top black bar with buttons and "1 of X" indicator */\n\n .pswp__top-bar {\n position: absolute;\n left: 0;\n top: 0;\n height: 44px;\n width: 100%;\n }\n\n .pswp__caption,\n .pswp__top-bar,\n .pswp--has_mouse .pswp__button--arrow--left,\n .pswp--has_mouse .pswp__button--arrow--right {\n -webkit-backface-visibility: hidden;\n will-change: opacity;\n -webkit-transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);\n transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);\n }\n\n /* pswp--has_mouse class is added only when two subsequent mousemove events occur */\n\n .pswp--has_mouse .pswp__button--arrow--left,\n .pswp--has_mouse .pswp__button--arrow--right {\n visibility: visible;\n }\n\n .pswp__top-bar,\n .pswp__caption {\n background-color: rgba(var(--carousel-lightbox-background), 0.5);\n }\n\n /* pswp__ui--fit class is added when main image "fits" between top bar and bottom bar (caption) */\n\n .pswp__ui--fit .pswp__top-bar,\n .pswp__ui--fit .pswp__caption {\n background-color: rgba(var(--carousel-lightbox-background), 0.3);\n }\n\n /* pswp__ui--idle class is added when mouse isn\'t moving for several seconds (JS option timeToIdle) */\n\n .pswp__ui--idle .pswp__top-bar {\n opacity: 0;\n }\n\n .pswp__ui--idle .pswp__button--arrow--left,\n .pswp__ui--idle .pswp__button--arrow--right {\n opacity: 0;\n }\n\n /*\n\tpswp__ui--hidden class is added when controls are hidden\n\te.g. when user taps to toggle visibility of controls\n*/\n\n .pswp__ui--hidden .pswp__top-bar,\n .pswp__ui--hidden .pswp__caption,\n .pswp__ui--hidden .pswp__button--arrow--left,\n .pswp__ui--hidden .pswp__button--arrow--right {\n /* Force paint & create composition layer for controls. */\n opacity: 0.001;\n }\n\n /* pswp__ui--one-slide class is added when there is just one item in gallery */\n\n .pswp__ui--one-slide .pswp__button--arrow--left,\n .pswp__ui--one-slide .pswp__button--arrow--right,\n .pswp__ui--one-slide .pswp__counter {\n display: none;\n }\n\n .pswp__element--disabled {\n display: none !important;\n }\n\n .pswp--minimal--dark .pswp__top-bar {\n background: none;\n }\n</style>\n\x3c!-- Root element of PhotoSwipe. Must have class pswp. --\x3e\n<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true" id="pswp">\n\n \x3c!-- Background of PhotoSwipe. \n It\'s a separate element as animating opacity is faster than rgba(). --\x3e\n <div class="pswp__bg"></div>\n\n \x3c!-- Slides wrapper with overflow:hidden. --\x3e\n <div class="pswp__scroll-wrap">\n\n \x3c!-- Container that holds slides. \n PhotoSwipe keeps only 3 of them in the DOM to save memory.\n Don\'t modify these 3 pswp__item elements, data is added later on. --\x3e\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n\n \x3c!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. --\x3e\n <div class="pswp__ui pswp__ui--hidden">\n\n <div class="pswp__top-bar">\n\n \x3c!-- Controls are self-explanatory. Order can be changed. --\x3e\n\n <div class="pswp__counter"></div>\n\n <button class="pswp__button pswp__button--close" title="Close (Esc)">\n <iron-icon icon="au-icons:close"></iron-icon>\n <au-icon-fixer></au-icon-fixer>\n </button>\n\n <button class="pswp__button pswp__button--share" title="Share">\n <iron-icon icon="au-icons:shape"></iron-icon>\n <au-icon-fixer></au-icon-fixer>\n </button>\n\n <button class="pswp__button pswp__button--fs" title="Toggle fullscreen">\n <iron-icon icon="au-icons:full_screen"></iron-icon>\n <au-icon-fixer></au-icon-fixer>\n </button>\n\n <button class="pswp__button pswp__button--zoom" title="Zoom in/out">\n <iron-icon icon="au-icons:zoom"></iron-icon>\n <au-icon-fixer></au-icon-fixer>\n </button>\n\n \x3c!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR --\x3e\n \x3c!-- element will get class pswp__preloader--active when preloader is running --\x3e\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n </div>\n\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n\n <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">\n <iron-icon icon="au-icons:chevron_left"></iron-icon>\n <au-icon-fixer></au-icon-fixer>\n </button>\n\n <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">\n <iron-icon icon="au-icons:chevron_right"></iron-icon>\n <au-icon-fixer></au-icon-fixer>\n </button>\n\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n\n </div>\n\n </div>\n\n</div>'},847:function(n,e,t){var o,i;function a(n){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},a(n)}
/*! PhotoSwipe - v4.1.2 - 2017-04-05
* http://photoswipe.com
* Copyright (c) 2017 Dmitry Semenov; */o=function(){"use strict";return function(n,e,t,o){var i={features:null,bind:function(n,e,t,o){var i=(o?"remove":"add")+"EventListener";e=e.split(" ");for(var a=0;a<e.length;a++)e[a]&&n[i](e[a],t,!1)},isArray:function(n){return n instanceof Array},createEl:function(n,e){var t=document.createElement(e||"div");return n&&(t.className=n),t},getScrollY:function(){var n=window.pageYOffset;return void 0!==n?n:document.documentElement.scrollTop},unbind:function(n,e,t){i.bind(n,e,t,!0)},removeClass:function(n,e){var t=new RegExp("(\\s|^)"+e+"(\\s|$)");n.className=n.className.replace(t," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(n,e){i.hasClass(n,e)||(n.className+=(n.className?" ":"")+e)},hasClass:function(n,e){return n.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n.className)},getChildByClass:function(n,e){for(var t=n.firstChild;t;){if(i.hasClass(t,e))return t;t=t.nextSibling}},arraySearch:function(n,e,t){for(var o=n.length;o--;)if(n[o][t]===e)return o;return-1},extend:function(n,e,t){for(var o in e)if(e.hasOwnProperty(o)){if(t&&n.hasOwnProperty(o))continue;n[o]=e[o]}},easing:{sine:{out:function(n){return Math.sin(n*(Math.PI/2))},inOut:function(n){return-(Math.cos(Math.PI*n)-1)/2}},cubic:{out:function(n){return--n*n*n+1}}},detectFeatures:function(){if(i.features)return i.features;var n=i.createEl().style,e="",t={};if(t.oldIE=document.all&&!document.addEventListener,t.touch="ontouchstart"in window,window.requestAnimationFrame&&(t.raf=window.requestAnimationFrame,t.caf=window.cancelAnimationFrame),t.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!t.pointerEvent){var o=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);a&&a.length>0&&(a=parseInt(a[1],10))>=1&&a<8&&(t.isOldIOSPhone=!0)}var r=o.match(/Android\s([0-9\.]*)/),s=r?r[1]:0;(s=parseFloat(s))>=1&&(s<4.4&&(t.isOldAndroid=!0),t.androidVersion=s),t.isMobileOpera=/opera mini|opera mobi/i.test(o)}for(var l,p,c=["transform","perspective","animationName"],u=["","webkit","Moz","ms","O"],d=0;d<4;d++){e=u[d];for(var m=0;m<3;m++)l=c[m],p=e+(e?l.charAt(0).toUpperCase()+l.slice(1):l),!t[l]&&p in n&&(t[l]=p);e&&!t.raf&&(e=e.toLowerCase(),t.raf=window[e+"RequestAnimationFrame"],t.raf&&(t.caf=window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]))}if(!t.raf){var f=0;t.raf=function(n){var e=(new Date).getTime(),t=Math.max(0,16-(e-f)),o=window.setTimeout((function(){n(e+t)}),t);return f=e+t,o},t.caf=function(n){clearTimeout(n)}}return t.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,i.features=t,t}};i.detectFeatures(),i.features.oldIE&&(i.bind=function(n,e,t,o){e=e.split(" ");for(var i,r=(o?"detach":"attach")+"Event",s=function(){t.handleEvent.call(t)},l=0;l<e.length;l++)if(i=e[l])if("object"===a(t)&&t.handleEvent){if(o){if(!t["oldIE"+i])return!1}else t["oldIE"+i]=s;n[r]("on"+i,t["oldIE"+i])}else n[r]("on"+i,t)});var r=this,s={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!1,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(n){return"A"===n.tagName},getDoubleTapZoom:function(n,e){return n||e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};i.extend(s,o);var l,p,c,u,d,m,f,h,w,b,g,_,x,v,y,k,C,I,T,E,S,D,O,F,z,M,A,L,R,P,Z,B,N,U,K,j,H,W,Y,G,q,V,X,J,$,Q,nn,en,tn,on,an,rn,sn,ln,pn,cn,un={x:0,y:0},dn={x:0,y:0},mn={x:0,y:0},fn={},hn=0,wn={},bn={x:0,y:0},gn=0,_n=!0,xn=[],vn={},yn=!1,kn=function(n,e){i.extend(r,e.publicMethods),xn.push(n)},Cn=function(n){var e=je();return n>e-1?n-e:n<0?e+n:n},In={},Tn=function(n,e){return In[n]||(In[n]=[]),In[n].push(e)},En=function(n){var e=In[n];if(e){var t=Array.prototype.slice.call(arguments);t.shift();for(var o=0;o<e.length;o++)e[o].apply(r,t)}},Sn=function(){return(new Date).getTime()},Dn=function(n){ln=n,r.bg.style.opacity=n*s.bgOpacity},On=function(n,e,t,o,i){(!yn||i&&i!==r.currItem)&&(o/=i?i.fitRatio:r.currItem.fitRatio),n[D]=_+e+"px, "+t+"px"+x+" scale("+o+")"},Fn=function(n){tn&&(n&&(b>r.currItem.fitRatio?yn||($e(r.currItem,!1,!0),yn=!0):yn&&($e(r.currItem),yn=!1)),On(tn,mn.x,mn.y,b))},zn=function(n){n.container&&On(n.container.style,n.initialPosition.x,n.initialPosition.y,n.initialZoomLevel,n)},Mn=function(n,e){e[D]=_+n+"px, 0px"+x},An=function(n,e){if(!s.loop&&e){var t=u+(bn.x*hn-n)/bn.x,o=Math.round(n-de.x);(t<0&&o>0||t>=je()-1&&o<0)&&(n=de.x+o*s.mainScrollEndFriction)}de.x=n,Mn(n,d)},Ln=function(n,e){var t=me[n]-wn[n];return dn[n]+un[n]+t-t*(e/g)},Rn=function(n,e){n.x=e.x,n.y=e.y,e.id&&(n.id=e.id)},Pn=function(n){n.x=Math.round(n.x),n.y=Math.round(n.y)},Zn=null,Bn=function e(){Zn&&(i.unbind(document,"mousemove",e),i.addClass(n,"pswp--has_mouse"),s.mouseUsed=!0,En("mouseUsed")),Zn=setTimeout((function(){Zn=null}),100)},Nn=function(n,e){var t=qe(r.currItem,fn,n);return e&&(en=t),t},Un=function(n){return n||(n=r.currItem),n.initialZoomLevel},Kn=function(n){return n||(n=r.currItem),n.w>0?s.maxSpreadZoom:1},jn=function(n,e,t,o){return o===r.currItem.initialZoomLevel?(t[n]=r.currItem.initialPosition[n],!0):(t[n]=Ln(n,o),t[n]>e.min[n]?(t[n]=e.min[n],!0):t[n]<e.max[n]&&(t[n]=e.max[n],!0))},Hn=function(n){var e="";s.escKey&&27===n.keyCode?e="close":s.arrowKeys&&(37===n.keyCode?e="prev":39===n.keyCode&&(e="next")),e&&(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||(n.preventDefault?n.preventDefault():n.returnValue=!1,r[e]()))},Wn=function(n){n&&(V||q||on||H)&&(n.preventDefault(),n.stopPropagation())},Yn=function(){r.setScrollOffset(0,i.getScrollY())},Gn={},qn=0,Vn=function(n){Gn[n]&&(Gn[n].raf&&M(Gn[n].raf),qn--,delete Gn[n])},Xn=function(n){Gn[n]&&Vn(n),Gn[n]||(qn++,Gn[n]={})},Jn=function(){for(var n in Gn)Gn.hasOwnProperty(n)&&Vn(n)},$n=function(n,e,t,o,i,a,r){var s,l=Sn();Xn(n),function p(){if(Gn[n]){if((s=Sn()-l)>=o)return Vn(n),a(t),void(r&&r());a((t-e)*i(s/o)+e),Gn[n].raf=z(p)}}()},Qn={shout:En,listen:Tn,viewportSize:fn,options:s,isMainScrollAnimating:function(){return on},getZoomLevel:function(){return b},getCurrentIndex:function(){return u},isDragging:function(){return Y},isZooming:function(){return Q},setScrollOffset:function(n,e){wn.x=n,P=wn.y=e,En("updateScrollOffset",wn)},applyZoomPan:function(n,e,t,o){mn.x=e,mn.y=t,b=n,Fn(o)},init:function(){if(!l&&!p){var t;r.framework=i,r.template=n,r.bg=i.getChildByClass(n,"pswp__bg"),A=n.className,l=!0,Z=i.detectFeatures(),z=Z.raf,M=Z.caf,D=Z.transform,R=Z.oldIE,r.scrollWrap=i.getChildByClass(n,"pswp__scroll-wrap"),r.container=i.getChildByClass(r.scrollWrap,"pswp__container"),d=r.container.style,r.itemHolders=k=[{el:r.container.children[0],wrap:0,index:-1},{el:r.container.children[1],wrap:0,index:-1},{el:r.container.children[2],wrap:0,index:-1}],k[0].el.style.display=k[2].el.style.display="none",function(){if(D){var e=Z.perspective&&!F;return _="translate"+(e?"3d(":"("),void(x=Z.perspective?", 0px)":")")}D="left",i.addClass(n,"pswp--ie"),Mn=function(n,e){e.left=n+"px"},zn=function(n){var e=n.fitRatio>1?1:n.fitRatio,t=n.container.style,o=e*n.w,i=e*n.h;t.width=o+"px",t.height=i+"px",t.left=n.initialPosition.x+"px",t.top=n.initialPosition.y+"px"},Fn=function(){if(tn){var n=tn,e=r.currItem,t=e.fitRatio>1?1:e.fitRatio,o=t*e.w,i=t*e.h;n.width=o+"px",n.height=i+"px",n.left=mn.x+"px",n.top=mn.y+"px"}}}(),w={resize:r.updateSize,orientationchange:function(){clearTimeout(B),B=setTimeout((function(){fn.x!==r.scrollWrap.clientWidth&&r.updateSize()}),500)},scroll:Yn,keydown:Hn,click:Wn};var o=Z.isOldIOSPhone||Z.isOldAndroid||Z.isMobileOpera;for(Z.animationName&&Z.transform&&!o||(s.showAnimationDuration=s.hideAnimationDuration=0),t=0;t<xn.length;t++)r["init"+xn[t]]();e&&(r.ui=new e(r,i)).init(),En("firstUpdate"),u=u||s.index||0,(isNaN(u)||u<0||u>=je())&&(u=0),r.currItem=Ke(u),(Z.isOldIOSPhone||Z.isOldAndroid)&&(_n=!1),n.setAttribute("aria-hidden","false"),s.modal&&(_n?n.style.position="fixed":(n.style.position="absolute",n.style.top=i.getScrollY()+"px")),void 0===P&&(En("initialLayout"),P=L=i.getScrollY());var a="pswp--open ";for(s.mainClass&&(a+=s.mainClass+" "),s.showHideOpacity&&(a+="pswp--animate_opacity "),a+=F?"pswp--touch":"pswp--notouch",a+=Z.animationName?" pswp--css_animation":"",a+=Z.svg?" pswp--svg":"",i.addClass(n,a),r.updateSize(),m=-1,gn=null,t=0;t<3;t++)Mn((t+m)*bn.x,k[t].el.style);R||i.bind(r.scrollWrap,h,r),Tn("initialZoomInEnd",(function(){r.setContent(k[0],u-1),r.setContent(k[2],u+1),k[0].el.style.display=k[2].el.style.display="block",s.focus&&n.focus(),i.bind(document,"keydown",r),Z.transform&&i.bind(r.scrollWrap,"click",r),s.mouseUsed||i.bind(document,"mousemove",Bn),i.bind(window,"resize scroll orientationchange",r),En("bindEvents")})),r.setContent(k[1],u),r.updateCurrItem(),En("afterInit"),_n||(v=setInterval((function(){qn||Y||Q||b!==r.currItem.initialZoomLevel||r.updateSize()}),1e3)),i.addClass(n,"pswp--visible")}},close:function(){l&&(l=!1,p=!0,En("close"),i.unbind(window,"resize scroll orientationchange",r),i.unbind(window,"scroll",w.scroll),i.unbind(document,"keydown",r),i.unbind(document,"mousemove",Bn),Z.transform&&i.unbind(r.scrollWrap,"click",r),Y&&i.unbind(window,f,r),clearTimeout(B),En("unbindEvents"),He(r.currItem,null,!0,r.destroy))},destroy:function(){En("destroy"),Ze&&clearTimeout(Ze),n.setAttribute("aria-hidden","true"),n.className=A,v&&clearInterval(v),i.unbind(r.scrollWrap,h,r),i.unbind(window,"scroll",r),we(),Jn(),In=null},panTo:function(n,e,t){t||(n>en.min.x?n=en.min.x:n<en.max.x&&(n=en.max.x),e>en.min.y?e=en.min.y:e<en.max.y&&(e=en.max.y)),mn.x=n,mn.y=e,Fn()},handleEvent:function(n){n=n||window.event,w[n.type]&&w[n.type](n)},goTo:function(n){var e=(n=Cn(n))-u;gn=e,u=n,r.currItem=Ke(u),hn-=e,An(bn.x*hn),Jn(),on=!1,r.updateCurrItem()},next:function(){r.goTo(u+1)},prev:function(){r.goTo(u-1)},updateCurrZoomItem:function(n){if(n&&En("beforeChange",0),k[1].el.children.length){var e=k[1].el.children[0];tn=i.hasClass(e,"pswp__zoom-wrap")?e.style:null}else tn=null;en=r.currItem.bounds,g=b=r.currItem.initialZoomLevel,mn.x=en.center.x,mn.y=en.center.y,n&&En("afterChange")},invalidateCurrItems:function(){y=!0;for(var n=0;n<3;n++)k[n].item&&(k[n].item.needsUpdate=!0)},updateCurrItem:function(n){if(0!==gn){var e,t=Math.abs(gn);if(!(n&&t<2)){r.currItem=Ke(u),yn=!1,En("beforeChange",gn),t>=3&&(m+=gn+(gn>0?-3:3),t=3);for(var o=0;o<t;o++)gn>0?(e=k.shift(),k[2]=e,m++,Mn((m+2)*bn.x,e.el.style),r.setContent(e,u-t+o+1+1)):(e=k.pop(),k.unshift(e),m--,Mn(m*bn.x,e.el.style),r.setContent(e,u+t-o-1-1));if(tn&&1===Math.abs(gn)){var i=Ke(C);i.initialZoomLevel!==b&&(qe(i,fn),$e(i),zn(i))}gn=0,r.updateCurrZoomItem(),C=u,En("afterChange")}}},updateSize:function(e){if(!_n&&s.modal){var t=i.getScrollY();if(P!==t&&(n.style.top=t+"px",P=t),!e&&vn.x===window.innerWidth&&vn.y===window.innerHeight)return;vn.x=window.innerWidth,vn.y=window.innerHeight,n.style.height=vn.y+"px"}if(fn.x=r.scrollWrap.clientWidth,fn.y=r.scrollWrap.clientHeight,Yn(),bn.x=fn.x+Math.round(fn.x*s.spacing),bn.y=fn.y,An(bn.x*hn),En("beforeResize"),void 0!==m){for(var o,a,l,p=0;p<3;p++)o=k[p],Mn((p+m)*bn.x,o.el.style),l=u+p-1,s.loop&&je()>2&&(l=Cn(l)),(a=Ke(l))&&(y||a.needsUpdate||!a.bounds)?(r.cleanSlide(a),r.setContent(o,l),1===p&&(r.currItem=a,r.updateCurrZoomItem(!0)),a.needsUpdate=!1):-1===o.index&&l>=0&&r.setContent(o,l),a&&a.container&&(qe(a,fn),$e(a),zn(a));y=!1}g=b=r.currItem.initialZoomLevel,(en=r.currItem.bounds)&&(mn.x=en.center.x,mn.y=en.center.y,Fn(!0)),En("resize")},zoomTo:function(n,e,t,o,a){e&&(g=b,me.x=Math.abs(e.x)-mn.x,me.y=Math.abs(e.y)-mn.y,Rn(dn,mn));var r=Nn(n,!1),s={};jn("x",r,s,n),jn("y",r,s,n);var l=b,p=mn.x,c=mn.y;Pn(s);var u=function(e){1===e?(b=n,mn.x=s.x,mn.y=s.y):(b=(n-l)*e+l,mn.x=(s.x-p)*e+p,mn.y=(s.y-c)*e+c),a&&a(e),Fn(1===e)};t?$n("customZoomTo",0,1,t,o||i.easing.sine.inOut,u):u(1)}},ne={},ee={},te={},oe={},ie={},ae=[],re={},se=[],le={},pe=0,ce={x:0,y:0},ue=0,de={x:0,y:0},me={x:0,y:0},fe={x:0,y:0},he=function(n,e){return le.x=Math.abs(n.x-e.x),le.y=Math.abs(n.y-e.y),Math.sqrt(le.x*le.x+le.y*le.y)},we=function(){X&&(M(X),X=null)},be=function n(){Y&&(X=z(n),Fe())},ge=function n(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:n(e.parentNode,t))},_e={},xe=function(n,e){return _e.prevent=!ge(n.target,s.isClickableElement),En("preventDragEvent",n,e,_e),_e.prevent},ve=function(n,e){return e.x=n.pageX,e.y=n.pageY,e.id=n.identifier,e},ye=function(n,e,t){t.x=.5*(n.x+e.x),t.y=.5*(n.y+e.y)},ke=function(){var n=mn.y-r.currItem.initialPosition.y;return 1-Math.abs(n/(fn.y/2))},Ce={},Ie={},Te=[],Ee=function(n){for(;Te.length>0;)Te.pop();return O?(cn=0,ae.forEach((function(n){0===cn?Te[0]=n:1===cn&&(Te[1]=n),cn++}))):n.type.indexOf("touch")>-1?n.touches&&n.touches.length>0&&(Te[0]=ve(n.touches[0],Ce),n.touches.length>1&&(Te[1]=ve(n.touches[1],Ie))):(Ce.x=n.pageX,Ce.y=n.pageY,Ce.id="",Te[0]=Ce),Te},Se=function(n,e){var t,o,i,a,l=mn[n]+e[n],p=e[n]>0,c=de.x+e.x,u=de.x-re.x;if(t=l>en.min[n]||l<en.max[n]?s.panEndFriction:1,l=mn[n]+e[n]*t,(s.allowPanToNext||b===r.currItem.initialZoomLevel)&&(tn?"h"!==an||"x"!==n||q||(p?(l>en.min[n]&&(t=s.panEndFriction,en.min[n],o=en.min[n]-dn[n]),(o<=0||u<0)&&je()>1?(a=c,u<0&&c>re.x&&(a=re.x)):en.min.x!==en.max.x&&(i=l)):(l<en.max[n]&&(t=s.panEndFriction,en.max[n],o=dn[n]-en.max[n]),(o<=0||u>0)&&je()>1?(a=c,u>0&&c<re.x&&(a=re.x)):en.min.x!==en.max.x&&(i=l))):a=c,"x"===n))return void 0!==a&&(An(a,!0),J=a!==re.x),en.min.x!==en.max.x&&(void 0!==i?mn.x=i:J||(mn.x+=e.x*t)),void 0!==a;on||J||b>r.currItem.fitRatio&&(mn[n]+=e[n]*t)},De=function(n){if(!("mousedown"===n.type&&n.button>0))if(Ue)n.preventDefault();else if(!W||"mousedown"!==n.type){if(xe(n,!0)&&n.preventDefault(),En("pointerDown"),O){var e=i.arraySearch(ae,n.pointerId,"id");e<0&&(e=ae.length),ae[e]={x:n.pageX,y:n.pageY,id:n.pointerId}}var t=Ee(n),o=t.length;$=null,Jn(),Y&&1!==o||(Y=rn=!0,i.bind(window,f,r),j=pn=sn=H=J=V=G=q=!1,an=null,En("firstTouchStart",t),Rn(dn,mn),un.x=un.y=0,Rn(oe,t[0]),Rn(ie,oe),re.x=bn.x*hn,se=[{x:oe.x,y:oe.y}],U=N=Sn(),Nn(b,!0),we(),be()),!Q&&o>1&&!on&&!J&&(g=b,q=!1,Q=G=!0,un.y=un.x=0,Rn(dn,mn),Rn(ne,t[0]),Rn(ee,t[1]),ye(ne,ee,fe),me.x=Math.abs(fe.x)-mn.x,me.y=Math.abs(fe.y)-mn.y,nn=he(ne,ee))}},Oe=function(n){if(n.preventDefault(),O){var e=i.arraySearch(ae,n.pointerId,"id");if(e>-1){var t=ae[e];t.x=n.pageX,t.y=n.pageY}}if(Y){var o=Ee(n);if(an||V||Q)$=o;else if(de.x!==bn.x*hn)an="h";else{var a=Math.abs(o[0].x-oe.x)-Math.abs(o[0].y-oe.y);Math.abs(a)>=10&&(an=a>0?"h":"v",$=o)}}},Fe=function(){if($){var n=$.length;if(0!==n)if(Rn(ne,$[0]),te.x=ne.x-oe.x,te.y=ne.y-oe.y,Q&&n>1){if(oe.x=ne.x,oe.y=ne.y,!te.x&&!te.y&&function(n,e){return n.x===e.x&&n.y===e.y}($[1],ee))return;Rn(ee,$[1]),q||(q=!0,En("zoomGestureStarted"));var e=he(ne,ee),t=Re(e);t>r.currItem.initialZoomLevel+r.currItem.initialZoomLevel/15&&(pn=!0);var o=1,i=Un(),a=Kn();if(t<i)if(s.pinchToClose&&!pn&&g<=r.currItem.initialZoomLevel){var l=1-(i-t)/(i/1.2);Dn(l),En("onPinchClose",l),sn=!0}else(o=(i-t)/i)>1&&(o=1),t=i-o*(i/3);else t>a&&((o=(t-a)/(6*i))>1&&(o=1),t=a+o*i);o<0&&(o=0),ye(ne,ee,ce),un.x+=ce.x-fe.x,un.y+=ce.y-fe.y,Rn(fe,ce),mn.x=Ln("x",t),mn.y=Ln("y",t),j=t>b,b=t,Fn()}else{if(!an)return;if(rn&&(rn=!1,Math.abs(te.x)>=10&&(te.x-=$[0].x-ie.x),Math.abs(te.y)>=10&&(te.y-=$[0].y-ie.y)),oe.x=ne.x,oe.y=ne.y,0===te.x&&0===te.y)return;if("v"===an&&s.closeOnVerticalDrag&&"fit"===s.scaleMode&&b===r.currItem.initialZoomLevel){un.y+=te.y,mn.y+=te.y;var p=ke();return H=!0,En("onVerticalDrag",p),Dn(p),void Fn()}(function(n,e,t){if(n-U>50){var o=se.length>2?se.shift():{};o.x=e,o.y=t,se.push(o),U=n}})(Sn(),ne.x,ne.y),V=!0,en=r.currItem.bounds,Se("x",te)||(Se("y",te),Pn(mn),Fn())}}},ze=function(n){if(Z.isOldAndroid){if(W&&"mouseup"===n.type)return;n.type.indexOf("touch")>-1&&(clearTimeout(W),W=setTimeout((function(){W=0}),600))}var e;if(En("pointerUp"),xe(n,!1)&&n.preventDefault(),O){var t=i.arraySearch(ae,n.pointerId,"id");if(t>-1)if(e=ae.splice(t,1)[0],navigator.pointerEnabled)e.type=n.pointerType||"mouse";else{e.type={4:"mouse",2:"touch",3:"pen"}[n.pointerType],e.type||(e.type=n.pointerType||"mouse")}}var o,a=Ee(n),l=a.length;if("mouseup"===n.type&&(l=0),2===l)return $=null,!0;1===l&&Rn(ie,a[0]),0!==l||an||on||(e||("mouseup"===n.type?e={x:n.pageX,y:n.pageY,type:"mouse"}:n.changedTouches&&n.changedTouches[0]&&(e={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY,type:"touch"})),En("touchRelease",n,e));var p=-1;if(0===l&&(Y=!1,i.unbind(window,f,r),we(),Q?p=0:-1!==ue&&(p=Sn()-ue)),ue=1===l?Sn():-1,o=-1!==p&&p<150?"zoom":"swipe",Q&&l<2&&(Q=!1,1===l&&(o="zoomPointerUp"),En("zoomGestureEnded")),$=null,V||q||on||H)if(Jn(),K||(K=Me()),K.calculateSwipeSpeed("x"),H)if(ke()<s.verticalDragRange)r.close();else{var c=mn.y,u=ln;$n("verticalDrag",0,1,300,i.easing.cubic.out,(function(n){mn.y=(r.currItem.initialPosition.y-c)*n+c,Dn((1-u)*n+u),Fn()})),En("onVerticalDrag",1)}else{if((J||on)&&0===l){if(Le(o,K))return;o="zoomPointerUp"}on||("swipe"===o?!J&&b>r.currItem.fitRatio&&Ae(K):Pe())}},Me=function(){var n,e,t={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(o){se.length>1?(n=Sn()-U+50,e=se[se.length-2][o]):(n=Sn()-N,e=ie[o]),t.lastFlickOffset[o]=oe[o]-e,t.lastFlickDist[o]=Math.abs(t.lastFlickOffset[o]),t.lastFlickDist[o]>20?t.lastFlickSpeed[o]=t.lastFlickOffset[o]/n:t.lastFlickSpeed[o]=0,Math.abs(t.lastFlickSpeed[o])<.1&&(t.lastFlickSpeed[o]=0),t.slowDownRatio[o]=.95,t.slowDownRatioReverse[o]=1-t.slowDownRatio[o],t.speedDecelerationRatio[o]=1},calculateOverBoundsAnimOffset:function(n,e){t.backAnimStarted[n]||(mn[n]>en.min[n]?t.backAnimDestination[n]=en.min[n]:mn[n]<en.max[n]&&(t.backAnimDestination[n]=en.max[n]),void 0!==t.backAnimDestination[n]&&(t.slowDownRatio[n]=.7,t.slowDownRatioReverse[n]=1-t.slowDownRatio[n],t.speedDecelerationRatioAbs[n]<.05&&(t.lastFlickSpeed[n]=0,t.backAnimStarted[n]=!0,$n("bounceZoomPan"+n,mn[n],t.backAnimDestination[n],e||300,i.easing.sine.out,(function(e){mn[n]=e,Fn()})))))},calculateAnimOffset:function(n){t.backAnimStarted[n]||(t.speedDecelerationRatio[n]=t.speedDecelerationRatio[n]*(t.slowDownRatio[n]+t.slowDownRatioReverse[n]-t.slowDownRatioReverse[n]*t.timeDiff/10),t.speedDecelerationRatioAbs[n]=Math.abs(t.lastFlickSpeed[n]*t.speedDecelerationRatio[n]),t.distanceOffset[n]=t.lastFlickSpeed[n]*t.speedDecelerationRatio[n]*t.timeDiff,mn[n]+=t.distanceOffset[n])},panAnimLoop:function(){if(Gn.zoomPan&&(Gn.zoomPan.raf=z(t.panAnimLoop),t.now=Sn(),t.timeDiff=t.now-t.lastNow,t.lastNow=t.now,t.calculateAnimOffset("x"),t.calculateAnimOffset("y"),Fn(),t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),t.speedDecelerationRatioAbs.x<.05&&t.speedDecelerationRatioAbs.y<.05))return mn.x=Math.round(mn.x),mn.y=Math.round(mn.y),Fn(),void Vn("zoomPan")}};return t},Ae=function(n){if(n.calculateSwipeSpeed("y"),en=r.currItem.bounds,n.backAnimDestination={},n.backAnimStarted={},Math.abs(n.lastFlickSpeed.x)<=.05&&Math.abs(n.lastFlickSpeed.y)<=.05)return n.speedDecelerationRatioAbs.x=n.speedDecelerationRatioAbs.y=0,n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),!0;Xn("zoomPan"),n.lastNow=Sn(),n.panAnimLoop()},Le=function(n,e){var t,o,a;if(on||(pe=u),"swipe"===n){var l=oe.x-ie.x,p=e.lastFlickDist.x<10;l>30&&(p||e.lastFlickOffset.x>20)?o=-1:l<-30&&(p||e.lastFlickOffset.x<-20)&&(o=1)}o&&((u+=o)<0?(u=s.loop?je()-1:0,a=!0):u>=je()&&(u=s.loop?0:je()-1,a=!0),a&&!s.loop||(gn+=o,hn-=o,t=!0));var c,d=bn.x*hn,m=Math.abs(d-de.x);return t||d>de.x==e.lastFlickSpeed.x>0?(c=Math.abs(e.lastFlickSpeed.x)>0?m/Math.abs(e.lastFlickSpeed.x):333,c=Math.min(c,400),c=Math.max(c,250)):c=333,pe===u&&(t=!1),on=!0,En("mainScrollAnimStart"),$n("mainScroll",de.x,d,c,i.easing.cubic.out,An,(function(){Jn(),on=!1,pe=-1,(t||pe!==u)&&r.updateCurrItem(),En("mainScrollAnimComplete")})),t&&r.updateCurrItem(!0),t},Re=function(n){return 1/nn*n*g},Pe=function(){var n=b,e=Un(),t=Kn();b<e?n=e:b>t&&(n=t);var o,a=ln;return sn&&!j&&!pn&&b<e?(r.close(),!0):(sn&&(o=function(n){Dn((1-a)*n+a)}),r.zoomTo(n,0,200,i.easing.cubic.out,o),!0)};kn("Gestures",{publicMethods:{initGestures:function(){var n=function(n,e,t,o,i){I=n+e,T=n+t,E=n+o,S=i?n+i:""};(O=Z.pointerEvent)&&Z.touch&&(Z.touch=!1),O?navigator.pointerEnabled?n("pointer","down","move","up","cancel"):n("MSPointer","Down","Move","Up","Cancel"):Z.touch?(n("touch","start","move","end","cancel"),F=!0):n("mouse","down","move","up"),f=T+" "+E+" "+S,h=I,O&&!F&&(F=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),r.likelyTouchDevice=F,w[I]=De,w[T]=Oe,w[E]=ze,S&&(w[S]=w[E]),Z.touch&&(h+=" mousedown",f+=" mousemove mouseup",w.mousedown=w[I],w.mousemove=w[T],w.mouseup=w[E]),F||(s.allowPanToNext=!1)}}});var Ze,Be,Ne,Ue,Ke,je,He=function(e,t,o,a){var l;Ze&&clearTimeout(Ze),Ue=!0,Ne=!0,e.initialLayout?(l=e.initialLayout,e.initialLayout=null):l=s.getThumbBoundsFn&&s.getThumbBoundsFn(u);var p,d,m=o?s.hideAnimationDuration:s.showAnimationDuration,f=function(){Vn("initialZoom"),o?(r.template.removeAttribute("style"),r.bg.removeAttribute("style")):(Dn(1),t&&(t.style.display="block"),i.addClass(n,"pswp--animated-in"),En("initialZoom"+(o?"OutEnd":"InEnd"))),a&&a(),Ue=!1};if(!m||!l||void 0===l.x)return En("initialZoom"+(o?"Out":"In")),b=e.initialZoomLevel,Rn(mn,e.initialPosition),Fn(),n.style.opacity=o?0:1,Dn(1),void(m?setTimeout((function(){f()}),m):f());p=c,d=!r.currItem.src||r.currItem.loadError||s.showHideOpacity,e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),o||(b=l.w/e.w,mn.x=l.x,mn.y=l.y-L,r[d?"template":"bg"].style.opacity=.001,Fn()),Xn("initialZoom"),o&&!p&&i.removeClass(n,"pswp--animated-in"),d&&(o?i[(p?"remove":"add")+"Class"](n,"pswp--animate_opacity"):setTimeout((function(){i.addClass(n,"pswp--animate_opacity")}),30)),Ze=setTimeout((function(){if(En("initialZoom"+(o?"Out":"In")),o){var t=l.w/e.w,a={x:mn.x,y:mn.y},r=b,s=ln,c=function(e){1===e?(b=t,mn.x=l.x,mn.y=l.y-P):(b=(t-r)*e+r,mn.x=(l.x-a.x)*e+a.x,mn.y=(l.y-P-a.y)*e+a.y),Fn(),d?n.style.opacity=1-e:Dn(s-e*s)};p?$n("initialZoom",0,1,m,i.easing.cubic.out,c,f):(c(1),Ze=setTimeout(f,m+20))}else b=e.initialZoomLevel,Rn(mn,e.initialPosition),Fn(),Dn(1),d?n.style.opacity=1:Dn(1),Ze=setTimeout(f,m+20)}),o?25:90)},We={},Ye=[],Ge={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Be.length}},qe=function(n,e,t){if(n.src&&!n.loadError){var o=!t;if(o&&(n.vGap||(n.vGap={top:0,bottom:0}),En("parseVerticalMargin",n)),We.x=e.x,We.y=e.y-n.vGap.top-n.vGap.bottom,o){var i=We.x/n.w,a=We.y/n.h;n.fitRatio=i<a?i:a;var r=s.scaleMode;"orig"===r?t=1:"fit"===r&&(t=n.fitRatio),t>1&&(t=1),n.initialZoomLevel=t,n.bounds||(n.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!t)return;return function(n,e,t){var o=n.bounds;o.center.x=Math.round((We.x-e)/2),o.center.y=Math.round((We.y-t)/2)+n.vGap.top,o.max.x=e>We.x?Math.round(We.x-e):o.center.x,o.max.y=t>We.y?Math.round(We.y-t)+n.vGap.top:o.center.y,o.min.x=e>We.x?0:o.center.x,o.min.y=t>We.y?n.vGap.top:o.center.y}(n,n.w*t,n.h*t),o&&t===n.initialZoomLevel&&(n.initialPosition=n.bounds.center),n.bounds}return n.w=n.h=0,n.initialZoomLevel=n.fitRatio=1,n.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},n.initialPosition=n.bounds.center,n.bounds},Ve=function(n,e,t,o,i,a){e.loadError||o&&(e.imageAppended=!0,$e(e,o,e===r.currItem&&yn),t.appendChild(o),a&&setTimeout((function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)}),500))},Xe=function(n){n.loading=!0,n.loaded=!1;var e=n.img=i.createEl("pswp__img","img"),t=function(){n.loading=!1,n.loaded=!0,n.loadComplete?n.loadComplete(n):n.img=null,e.onload=e.onerror=null,e=null};return e.onload=t,e.onerror=function(){n.loadError=!0,t()},e.src=n.src,e},Je=function(n,e){if(n.src&&n.loadError&&n.container)return e&&(n.container.innerHTML=""),n.container.innerHTML=s.errorMsg.replace("%url%",n.src),!0},$e=function(n,e,t){if(n.src){e||(e=n.container.lastChild);var o=t?n.w:Math.round(n.w*n.fitRatio),i=t?n.h:Math.round(n.h*n.fitRatio);n.placeholder&&!n.loaded&&(n.placeholder.style.width=o+"px",n.placeholder.style.height=i+"px"),e.style.width=o+"px",e.style.height=i+"px"}},Qe=function(){if(Ye.length){for(var n,e=0;e<Ye.length;e++)(n=Ye[e]).holder.index===n.index&&Ve(n.index,n.item,n.baseDiv,n.img,0,n.clearPlaceholder);Ye=[]}};kn("Controller",{publicMethods:{lazyLoadItem:function(n){n=Cn(n);var e=Ke(n);e&&(!e.loaded&&!e.loading||y)&&(En("gettingData",n,e),e.src&&Xe(e))},initController:function(){i.extend(s,Ge,!0),r.items=Be=t,Ke=r.getItemAt,je=s.getNumItemsFn,s.loop,je()<3&&(s.loop=!1),Tn("beforeChange",(function(n){var e,t=s.preload,o=null===n||n>=0,i=Math.min(t[0],je()),a=Math.min(t[1],je());for(e=1;e<=(o?a:i);e++)r.lazyLoadItem(u+e);for(e=1;e<=(o?i:a);e++)r.lazyLoadItem(u-e)})),Tn("initialLayout",(function(){r.currItem.initialLayout=s.getThumbBoundsFn&&s.getThumbBoundsFn(u)})),Tn("mainScrollAnimComplete",Qe),Tn("initialZoomInEnd",Qe),Tn("destroy",(function(){for(var n,e=0;e<Be.length;e++)(n=Be[e]).container&&(n.container=null),n.placeholder&&(n.placeholder=null),n.img&&(n.img=null),n.preloader&&(n.preloader=null),n.loadError&&(n.loaded=n.loadError=!1);Ye=null}))},getItemAt:function(n){return n>=0&&void 0!==Be[n]&&Be[n]},allowProgressiveImg:function(){return s.forceProgressiveLoading||!F||s.mouseUsed||screen.width>1200},setContent:function(n,e){s.loop&&(e=Cn(e));var t=r.getItemAt(n.index);t&&(t.container=null);var o,a=r.getItemAt(e);if(a){En("gettingData",e,a),n.index=e,n.item=a;var p=a.container=i.createEl("pswp__zoom-wrap");if(!a.src&&a.html&&(a.html.tagName?p.appendChild(a.html):p.innerHTML=a.html),Je(a),qe(a,fn),!a.src||a.loadError||a.loaded)a.src&&!a.loadError&&((o=i.createEl("pswp__img","img")).style.opacity=1,o.src=a.src,$e(a,o),Ve(0,a,p,o));else{if(a.loadComplete=function(t){if(l){if(n&&n.index===e){if(Je(t,!0))return t.loadComplete=t.img=null,qe(t,fn),zn(t),void(n.index===u&&r.updateCurrZoomItem());t.imageAppended?!Ue&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null):Z.transform&&(on||Ue)?Ye.push({item:t,baseDiv:p,img:t.img,index:e,holder:n,clearPlaceholder:!0}):Ve(0,t,p,t.img,0,!0)}t.loadComplete=null,t.img=null,En("imageLoadComplete",e,t)}},i.features.transform){var c="pswp__img pswp__img--placeholder";c+=a.msrc?"":" pswp__img--placeholder--blank";var d=i.createEl(c,a.msrc?"img":"");a.msrc&&(d.src=a.msrc),$e(a,d),p.appendChild(d),a.placeholder=d}a.loading||Xe(a),r.allowProgressiveImg()&&(!Ne&&Z.transform?Ye.push({item:a,baseDiv:p,img:a.img,index:e,holder:n}):Ve(0,a,p,a.img,0,!0))}Ne||e!==u?zn(a):(tn=p.style,He(a,o||a.img)),n.el.innerHTML="",n.el.appendChild(p)}else n.el.innerHTML=""},cleanSlide:function(n){n.img&&(n.img.onload=n.img.onerror=null),n.loaded=n.loading=n.img=n.imageAppended=!1}}});var nt,et,tt={},ot=function(n,e,t){var o=document.createEvent("CustomEvent"),i={origEvent:n,target:n.target,releasePoint:e,pointerType:t||"touch"};o.initCustomEvent("pswpTap",!0,!0,i),n.target.dispatchEvent(o)};kn("Tap",{publicMethods:{initTap:function(){Tn("firstTouchStart",r.onTapStart),Tn("touchRelease",r.onTapRelease),Tn("destroy",(function(){tt={},nt=null}))},onTapStart:function(n){n.length>1&&(clearTimeout(nt),nt=null)},onTapRelease:function(n,e){if(e&&!V&&!G&&!qn){var t=e;if(nt&&(clearTimeout(nt),nt=null,o=t,a=tt,Math.abs(o.x-a.x)<25&&Math.abs(o.y-a.y)<25))return void En("doubleTap",t);if("mouse"===e.type)return void ot(n,e,"mouse");if("BUTTON"===n.target.tagName.toUpperCase()||i.hasClass(n.target,"pswp__single-tap"))return void ot(n,e);Rn(tt,t),nt=setTimeout((function(){ot(n,e),nt=null}),300)}var o,a}}}),kn("DesktopZoom",{publicMethods:{initDesktopZoom:function(){R||(F?Tn("mouseUsed",(function(){r.setupDesktopZoom()})):r.setupDesktopZoom(!0))},setupDesktopZoom:function(e){et={};var t="wheel mousewheel DOMMouseScroll";Tn("bindEvents",(function(){i.bind(n,t,r.handleMouseWheel)})),Tn("unbindEvents",(function(){et&&i.unbind(n,t,r.handleMouseWheel)})),r.mouseZoomedIn=!1;var o,a=function(){r.mouseZoomedIn&&(i.removeClass(n,"pswp--zoomed-in"),r.mouseZoomedIn=!1),b<1?i.addClass(n,"pswp--zoom-allowed"):i.removeClass(n,"pswp--zoom-allowed"),s()},s=function(){o&&(i.removeClass(n,"pswp--dragging"),o=!1)};Tn("resize",a),Tn("afterChange",a),Tn("pointerDown",(function(){r.mouseZoomedIn&&(o=!0,i.addClass(n,"pswp--dragging"))})),Tn("pointerUp",s),e||a()},handleMouseWheel:function(n){if(b<=r.currItem.fitRatio)return s.modal&&(!s.closeOnScroll||qn||Y?n.preventDefault():D&&Math.abs(n.deltaY)>2&&(c=!0,r.close())),!0;if(n.stopPropagation(),et.x=0,"deltaX"in n)1===n.deltaMode?(et.x=18*n.deltaX,et.y=18*n.deltaY):(et.x=n.deltaX,et.y=n.deltaY);else if("wheelDelta"in n)n.wheelDeltaX&&(et.x=-.16*n.wheelDeltaX),n.wheelDeltaY?et.y=-.16*n.wheelDeltaY:et.y=-.16*n.wheelDelta;else{if(!("detail"in n))return;et.y=n.detail}Nn(b,!0);var e=mn.x-et.x,t=mn.y-et.y;(s.modal||e<=en.min.x&&e>=en.max.x&&t<=en.min.y&&t>=en.max.y)&&n.preventDefault(),r.panTo(e,t)},toggleDesktopZoom:function(e){e=e||{x:fn.x/2+wn.x,y:fn.y/2+wn.y};var t=s.getDoubleTapZoom(!0,r.currItem),o=b===t;r.mouseZoomedIn=!o,r.zoomTo(o?r.currItem.initialZoomLevel:t,e,333),i[(o?"remove":"add")+"Class"](n,"pswp--zoomed-in")}}});var it,at,rt,st,lt,pt,ct,ut,dt,mt,ft,ht,wt={history:!0,galleryUID:1},bt=function(){return ft.hash.substring(1)},gt=function(){it&&clearTimeout(it),rt&&clearTimeout(rt)},_t=function(){var n=bt(),e={};if(n.length<5)return e;var t,o=n.split("&");for(t=0;t<o.length;t++)if(o[t]){var i=o[t].split("=");i.length<2||(e[i[0]]=i[1])}if(s.galleryPIDs){var a=e.pid;for(e.pid=0,t=0;t<Be.length;t++)if(Be[t].pid===a){e.pid=t;break}}else e.pid=parseInt(e.pid,10)-1;return e.pid<0&&(e.pid=0),e},xt=function n(){if(rt&&clearTimeout(rt),qn||Y)rt=setTimeout(n,500);else{st?clearTimeout(at):st=!0;var e=u+1,t=Ke(u);t.hasOwnProperty("pid")&&(e=t.pid);var o=ct+"&gid="+s.galleryUID+"&pid="+e;ut||-1===ft.hash.indexOf(o)&&(mt=!0);var i=ft.href.split("#")[0]+"#"+o;ht?"#"+o!==window.location.hash&&history[ut?"replaceState":"pushState"]("",document.title,i):ut?ft.replace(i):ft.hash=o,ut=!0,at=setTimeout((function(){st=!1}),60)}};kn("History",{publicMethods:{initHistory:function(){if(i.extend(s,wt,!0),s.history){ft=window.location,mt=!1,dt=!1,ut=!1,ct=bt(),ht="pushState"in history,ct.indexOf("gid=")>-1&&(ct=(ct=ct.split("&gid=")[0]).split("?gid=")[0]),Tn("afterChange",r.updateURL),Tn("unbindEvents",(function(){i.unbind(window,"hashchange",r.onHashChange)}));var n=function(){pt=!0,dt||(mt?history.back():ct?ft.hash=ct:ht?history.pushState("",document.title,ft.pathname+ft.search):ft.hash=""),gt()};Tn("unbindEvents",(function(){c&&n()})),Tn("destroy",(function(){pt||n()})),Tn("firstUpdate",(function(){u=_t().pid}));var e=ct.indexOf("pid=");e>-1&&"&"===(ct=ct.substring(0,e)).slice(-1)&&(ct=ct.slice(0,-1)),setTimeout((function(){l&&i.bind(window,"hashchange",r.onHashChange)}),40)}},onHashChange:function(){if(bt()===ct)return dt=!0,void r.close();st||(lt=!0,r.goTo(_t().pid),lt=!1)},updateURL:function(){gt(),lt||(ut?it=setTimeout(xt,800):xt())}}}),i.extend(r,Qn)}},void 0===(i=o.call(e,t,e,n))||(n.exports=i)},848:function(n,e){n.exports=function(n,e){var t,o,i,a,r,s,l,p,c,u,d,m,f,h,w,b,g,_,x=this,v=!1,y=!0,k=!0,C={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(n,e){return n.title?(e.children[0].innerHTML=n.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!1,zoomEl:!0,shareEl:!1,counterEl:!0,arrowEl:!0,preloaderEl:!1,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 n.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return n.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},I=function(n){if(b)return!0;n=n||window.event,w.timeToIdle&&w.mouseUsed&&!c&&A();for(var t,o,i=(n.target||n.srcElement).getAttribute("class")||"",a=0;a<Z.length;a++)(t=Z[a]).onTap&&i.indexOf("pswp__"+t.name)>-1&&(t.onTap(),o=!0);if(o){n.stopPropagation&&n.stopPropagation(),b=!0;var r=e.features.isOldAndroid?600:30;setTimeout((function(){b=!1}),r)}},T=function(n,t,o){e[(o?"add":"remove")+"Class"](n,"pswp__"+t)},E=function(){var n=1===w.getNumItemsFn();n!==h&&(T(o,"ui--one-slide",n),h=n)},S=function(){T(l,"share-modal--hidden",k)},D=function(){return(k=!k)?(e.removeClass(l,"pswp__share-modal--fade-in"),setTimeout((function(){k&&S()}),300)):(S(),setTimeout((function(){k||e.addClass(l,"pswp__share-modal--fade-in")}),30)),k||F(),!1},O=function(e){var t=(e=e||window.event).target||e.srcElement;return n.shout("shareLinkClick",e,t),!(!t.href||!t.hasAttribute("download")&&(window.open(t.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)),k||D(),1))},F=function(){for(var n,e,t,o,i="",a=0;a<w.shareButtons.length;a++)n=w.shareButtons[a],e=w.getImageURLForShare(n),t=w.getPageURLForShare(n),o=w.getTextForShare(n),i+='<a href="'+n.url.replace("{{url}}",encodeURIComponent(t)).replace("{{image_url}}",encodeURIComponent(e)).replace("{{raw_image_url}}",e).replace("{{text}}",encodeURIComponent(o))+'" target="_blank" class="pswp__share--'+n.id+'"'+(n.download?"download":"")+">"+n.label+"</a>",w.parseShareButtonOut&&(i=w.parseShareButtonOut(n,i));l.children[0].innerHTML=i,l.children[0].onclick=O},z=function(n){for(var t=0;t<w.closeElClasses.length;t++)if(e.hasClass(n,"pswp__"+w.closeElClasses[t]))return!0},M=0,A=function(){clearTimeout(_),M=0,c&&x.setIdle(!1)},L=function(n){var e=(n=n||window.event).relatedTarget||n.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(_),_=setTimeout((function(){x.setIdle(!0)}),w.timeToIdleOutside))},R=function(n){m!==n&&(T(d,"preloader--active",!n),m=n)},P=function(t){var r=t.vGap;if(!n.likelyTouchDevice||w.mouseUsed||screen.width>w.fitControlsWidth){var s=w.barsSize;if(w.captionEl&&"auto"===s.bottom)if(a||((a=e.createEl("pswp__caption pswp__caption--fake")).appendChild(e.createEl("pswp__caption__center")),o.insertBefore(a,i),e.addClass(o,"pswp__ui--fit")),w.addCaptionHTMLFn(t,a,!0)){var l=a.clientHeight;r.bottom=parseInt(l,10)||44}else r.bottom=s.top;else r.bottom="auto"===s.bottom?0:s.bottom;r.top=s.top}else r.top=r.bottom=0},Z=[{name:"caption",option:"captionEl",onInit:function(n){i=n}},{name:"share-modal",option:"shareEl",onInit:function(n){l=n},onTap:function(){D()}},{name:"button--share",option:"shareEl",onInit:function(n){s=n},onTap:function(){D()}},{name:"button--zoom",option:"zoomEl",onTap:n.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(n){r=n}},{name:"button--close",option:"closeEl",onTap:n.close},{name:"button--arrow--left",option:"arrowEl",onTap:n.prev},{name:"button--arrow--right",option:"arrowEl",onTap:n.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){t.isFullscreen()?t.exit():t.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(n){d=n}}];x.init=function(){var r;e.extend(n.options,C,!0),w=n.options,o=e.getChildByClass(n.scrollWrap,"pswp__ui"),(u=n.listen)("onVerticalDrag",(function(n){y&&n<.95?x.hideControls():!y&&n>=.95&&x.showControls()})),u("onPinchClose",(function(n){y&&n<.9?(x.hideControls(),r=!0):r&&!y&&n>.9&&x.showControls()})),u("zoomGestureEnded",(function(){(r=!1)&&!y&&x.showControls()})),u("beforeChange",x.update),u("doubleTap",(function(e){var t=n.currItem.initialZoomLevel;n.getZoomLevel()!==t?n.zoomTo(t,e,333):n.zoomTo(w.getDoubleTapZoom(!1,n.currItem),e,333)})),u("preventDragEvent",(function(n,e,t){var o=n.target||n.srcElement;o&&o.getAttribute("class")&&n.type.indexOf("mouse")>-1&&(o.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(t.prevent=!1)})),u("bindEvents",(function(){e.bind(o,"pswpTap click",I),e.bind(n.scrollWrap,"pswpTap",x.onGlobalTap),n.likelyTouchDevice||e.bind(n.scrollWrap,"mouseover",x.onMouseOver)})),u("unbindEvents",(function(){k||D(),g&&clearInterval(g),e.unbind(document,"mouseout",L),e.unbind(document,"mousemove",A),e.unbind(o,"pswpTap click",I),e.unbind(n.scrollWrap,"pswpTap",x.onGlobalTap),e.unbind(n.scrollWrap,"mouseover",x.onMouseOver),t&&(e.unbind(document,t.eventK,x.updateFullscreen),t.isFullscreen()&&(w.hideAnimationDuration=0,t.exit()),t=null)})),u("destroy",(function(){w.captionEl&&(a&&o.removeChild(a),e.removeClass(i,"pswp__caption--empty")),l&&(l.children[0].onclick=null),e.removeClass(o,"pswp__ui--over-close"),e.addClass(o,"pswp__ui--hidden"),x.setIdle(!1)})),w.showAnimationDuration||e.removeClass(o,"pswp__ui--hidden"),u("initialZoomIn",(function(){w.showAnimationDuration&&e.removeClass(o,"pswp__ui--hidden")})),u("initialZoomOut",(function(){e.addClass(o,"pswp__ui--hidden")})),u("parseVerticalMargin",P),function(){var n,t,i,a=function(o){if(o)for(var a=o.length,r=0;r<a;r++){n=o[r],t=n.className;for(var s=0;s<Z.length;s++)i=Z[s],t.indexOf("pswp__"+i.name)>-1&&(w[i.option]?(e.removeClass(n,"pswp__element--disabled"),i.onInit&&i.onInit(n)):e.addClass(n,"pswp__element--disabled"))}};a(o.children);var r=e.getChildByClass(o,"pswp__top-bar");r&&a(r.children)}(),w.shareEl&&s&&l&&(k=!0),E(),w.timeToIdle&&u("mouseUsed",(function(){e.bind(document,"mousemove",A),e.bind(document,"mouseout",L),g=setInterval((function(){2==++M&&x.setIdle(!0)}),w.timeToIdle/2)})),w.fullscreenEl&&!e.features.isOldAndroid&&(t||(t=x.getFullscreenAPI()),t?(e.bind(document,t.eventK,x.updateFullscreen),x.updateFullscreen(),e.addClass(n.template,"pswp--supports-fs")):e.removeClass(n.template,"pswp--supports-fs")),w.preloaderEl&&(R(!0),u("beforeChange",(function(){clearTimeout(f),f=setTimeout((function(){n.currItem&&n.currItem.loading?(!n.allowProgressiveImg()||n.currItem.img&&!n.currItem.img.naturalWidth)&&R(!1):R(!0)}),w.loadingIndicatorDelay)})),u("imageLoadComplete",(function(e,t){n.currItem===t&&R(!0)})))},x.setIdle=function(n){c=n,T(o,"ui--idle",n)},x.update=function(){y&&n.currItem?(x.updateIndexIndicator(),w.captionEl&&(w.addCaptionHTMLFn(n.currItem,i),T(i,"caption--empty",!n.currItem.title)),v=!0):v=!1,k||D(),E()},x.updateFullscreen=function(o){o&&setTimeout((function(){n.setScrollOffset(0,e.getScrollY())}),50),e[(t.isFullscreen()?"add":"remove")+"Class"](n.template,"pswp--fs")},x.updateIndexIndicator=function(){w.counterEl&&(r.innerHTML=n.getCurrentIndex()+1+w.indexIndicatorSep+w.getNumItemsFn())},x.onGlobalTap=function(t){var o=(t=t||window.event).target||t.srcElement;if(!b)if(t.detail&&"mouse"===t.detail.pointerType){if(z(o))return void n.close();e.hasClass(o,"pswp__img")&&(1===n.getZoomLevel()&&n.getZoomLevel()<=n.currItem.fitRatio?(w.clickToCloseNonZoomable&&n.close(),w.clickToImageZoom&&n.toggleDesktopZoom(t.detail.releasePoint)):n.toggleDesktopZoom(t.detail.releasePoint))}else if(w.tapToToggleControls&&(y?x.hideControls():x.showControls()),w.tapToClose&&(e.hasClass(o,"pswp__img")||z(o)))return void n.close()},x.onMouseOver=function(n){var e=(n=n||window.event).target||n.srcElement;T(o,"ui--over-close",z(e))},x.hideControls=function(){e.addClass(o,"pswp__ui--hidden"),y=!1},x.showControls=function(){y=!0,v||x.update(),e.removeClass(o,"pswp__ui--hidden")},x.supportsFullscreen=function(){var n=document;return!!(n.exitFullscreen||n.mozCancelFullScreen||n.webkitExitFullscreen||n.msExitFullscreen)},x.getFullscreenAPI=function(){var e,t=document.documentElement,o="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:o}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+o}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+o}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(p=w.closeOnScroll,w.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return n.template[this.enterK]();n.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return w.closeOnScroll=p,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}}}]);