phcthemes_admin_panel_pack 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/smarty/core.js +28154 -0
- data/app/assets/javascripts/smarty/core.min.js +2 -0
- data/app/assets/javascripts/smarty/core.sow_builder.js +84 -0
- data/app/assets/javascripts/smarty/core.sow_builder.min.js +1 -0
- data/app/assets/javascripts/smarty/phcthemes_admin_panel_pack_smarty.js +3 -0
- data/app/assets/javascripts/smarty/vendor.chartjs.js +20776 -0
- data/app/assets/javascripts/smarty/vendor.chartjs.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.cocoen.js +1 -0
- data/app/assets/javascripts/smarty/vendor.cocoen.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.colorpicker.js +3 -0
- data/app/assets/javascripts/smarty/vendor.colorpicker.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.datatables.js +42928 -0
- data/app/assets/javascripts/smarty/vendor.datatables.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.datepicker.js +2039 -0
- data/app/assets/javascripts/smarty/vendor.datepicker.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.daterangepicker.js +1578 -0
- data/app/assets/javascripts/smarty/vendor.daterangepicker.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.easypie.js +364 -0
- data/app/assets/javascripts/smarty/vendor.easypie.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.fancybox.js +5632 -0
- data/app/assets/javascripts/smarty/vendor.fancybox.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.flickity.js +4597 -0
- data/app/assets/javascripts/smarty/vendor.flickity.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.flot.js +11921 -0
- data/app/assets/javascripts/smarty/vendor.flot.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.fullcalendar.js +14597 -0
- data/app/assets/javascripts/smarty/vendor.fullcalendar.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.leaflet.js +6 -0
- data/app/assets/javascripts/smarty/vendor.leaflet.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.markdowneditor.js +7 -0
- data/app/assets/javascripts/smarty/vendor.markdowneditor.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.mediumeditor.js +7893 -0
- data/app/assets/javascripts/smarty/vendor.mediumeditor.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.pdfmake.js +79493 -0
- data/app/assets/javascripts/smarty/vendor.pdfmake.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.photoswipe.js +4595 -0
- data/app/assets/javascripts/smarty/vendor.photoswipe.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.prismjs.js +7219 -0
- data/app/assets/javascripts/smarty/vendor.prismjs.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.quilleditor.js +11562 -0
- data/app/assets/javascripts/smarty/vendor.quilleditor.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.sparkline.js +3068 -0
- data/app/assets/javascripts/smarty/vendor.sparkline.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.summernoteeditor.js +10235 -0
- data/app/assets/javascripts/smarty/vendor.summernoteeditor.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor.swiper.js +9899 -0
- data/app/assets/javascripts/smarty/vendor.swiper.min.js +1 -0
- data/app/assets/javascripts/smarty/vendor_bundle.js +30514 -0
- data/app/assets/javascripts/smarty/vendor_bundle.min.js +2 -0
- data/app/assets/stylesheets/smarty/default/phcthemes_admin_panel_pack_smarty.scss +7 -0
- data/app/assets/stylesheets/smarty/theme/css/core.css +20170 -0
- data/app/assets/stylesheets/smarty/theme/css/core.min.css +2 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.chartjs.css +55 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.chartjs.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.cocoen.css +59 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.cocoen.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.colorpicker.css +1196 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.colorpicker.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.datatables.css +1258 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.datatables.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.datepicker.css +173 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.datepicker.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.daterangepicker.css +545 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.daterangepicker.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.fancybox.css +927 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.fancybox.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.flickity.css +263 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.flickity.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.flot.css +17 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.flot.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.fullcalendar.css +1685 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.fullcalendar.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.leaflet.css +653 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.leaflet.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.markdowneditor.css +7 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.markdowneditor.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.mediumeditor.css +308 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.mediumeditor.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.photoswipe.css +436 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.photoswipe.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.prismjs.css +364 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.prismjs.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.quilleditor.css +953 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.quilleditor.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.summernoteeditor.css +710 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.summernoteeditor.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.swiper.css +762 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor.swiper.min.css +1 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor_bundle.css +168 -0
- data/app/assets/stylesheets/smarty/theme/css/vendor_bundle.min.css +2 -0
- data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.eot +0 -0
- data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.svg +250 -0
- data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.ttf +0 -0
- data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.woff +0 -0
- data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.woff2 +0 -0
- data/app/assets/stylesheets/smarty/theme/fonts/summernote.eot +0 -0
- data/app/assets/stylesheets/smarty/theme/fonts/summernote.hash +1 -0
- data/app/assets/stylesheets/smarty/theme/fonts/summernote.ttf +0 -0
- data/app/assets/stylesheets/smarty/theme/fonts/summernote.woff +0 -0
- data/app/assets/stylesheets/smarty/theme/fonts/summernote.woff2 +0 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/2co.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/amazon.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/amazon_pay_logo.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/american_express.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/apple_pay.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/bitcoin.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/dinners_club.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/discover.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/ebay.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/jcb.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/mastercard.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/paypal.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/paypal_logo.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/shopify.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/skrill.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/switch.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/visa.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/credit_card/western_union.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/flags.png +0 -0
- data/app/assets/stylesheets/smarty/theme/images/logo/logo_dark.svg +2 -0
- data/app/assets/stylesheets/smarty/theme/images/logo/logo_light.svg +2 -0
- data/app/assets/stylesheets/smarty/theme/images/logo/logo_sm.svg +1 -0
- data/app/assets/stylesheets/smarty/theme/images/manifest/icon_192x192.png +0 -0
- data/app/assets/stylesheets/smarty/theme/images/manifest/icon_512x512.png +0 -0
- data/app/assets/stylesheets/smarty/theme/images/manifest/manifest.json +20 -0
- data/app/assets/stylesheets/smarty/theme/images/masks/shape-line-lense.svg +1 -0
- data/lib/phcthemes_admin_panel_pack/version.rb +1 -1
- metadata +128 -2
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,(function(){"use strict";return function(e,t,n,o){var i={features:null,bind:function(e,t,n,o){var i=(o?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[i](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){i.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){i.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(i.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var o=e.length;o--;)if(e[o][n]===t)return o;return-1},extend:function(e,t,n){for(var o in t)if(t.hasOwnProperty(o)){if(n&&e.hasOwnProperty(o))continue;e[o]=t[o]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(i.features)return i.features;var e=i.createEl().style,t="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!n.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&&(n.isOldIOSPhone=!0)}var r=o.match(/Android\s([0-9\.]*)/),l=r?r[1]:0;(l=parseFloat(l))>=1&&(l<4.4&&(n.isOldAndroid=!0),n.androidVersion=l),n.isMobileOpera=/opera mini|opera mobi/i.test(o)}for(var s,u,c=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=d[p];for(var m=0;m<3;m++)s=c[m],u=t+(t?s.charAt(0).toUpperCase()+s.slice(1):s),!n[s]&&u in e&&(n[s]=u);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!n.raf){var f=0;n.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-f)),o=window.setTimeout((function(){e(t+n)}),n);return f=t+n,o},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,i.features=n,n}};i.detectFeatures(),i.features.oldIE&&(i.bind=function(e,t,n,o){t=t.split(" ");for(var i,a=(o?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;l<t.length;l++)if(i=t[l])if("object"==typeof n&&n.handleEvent){if(o){if(!n["oldIE"+i])return!1}else n["oldIE"+i]=r;e[a]("on"+i,n["oldIE"+i])}else e[a]("on"+i,n)});var a=this,r={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};i.extend(r,o);var l,s,u,c,d,p,m,f,h,v,x,g,y,w,b,C,I,T,E,D,S,_,M,F,O,k,A,R,L,P,Z,z,N,U,K,H,W,B,Y,G,q,V,X,j,$,J,Q,ee,te,ne,oe,ie,ae,re,le,se,ue={x:0,y:0},ce={x:0,y:0},de={x:0,y:0},pe={},me=0,fe={},he={x:0,y:0},ve=0,xe=!0,ge=[],ye={},we=!1,be=function(e,t){i.extend(a,t.publicMethods),ge.push(e)},Ce=function(e){var t=Kt();return e>t-1?e-t:e<0?t+e:e},Ie={},Te=function(e,t){return Ie[e]||(Ie[e]=[]),Ie[e].push(t)},Ee=function(e){var t=Ie[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<t.length;o++)t[o].apply(a,n)}},De=function(){return(new Date).getTime()},Se=function(e){re=e,a.bg.style.opacity=e*r.bgOpacity},_e=function(e,t,n,o,i){(!we||i&&i!==a.currItem)&&(o/=i?i.fitRatio:a.currItem.fitRatio),e[_]=g+t+"px, "+n+"px"+y+" scale("+o+")"},Me=function(e){te&&(e&&(v>a.currItem.fitRatio?we||(jt(a.currItem,!1,!0),we=!0):we&&(jt(a.currItem),we=!1)),_e(te,de.x,de.y,v))},Fe=function(e){e.container&&_e(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Oe=function(e,t){t[_]=g+e+"px, 0px"+y},ke=function(e,t){if(!r.loop&&t){var n=c+(he.x*me-e)/he.x,o=Math.round(e-ct.x);(n<0&&o>0||n>=Kt()-1&&o<0)&&(e=ct.x+o*r.mainScrollEndFriction)}ct.x=e,Oe(e,d)},Ae=function(e,t){var n=dt[e]-fe[e];return ce[e]+ue[e]+n-n*(t/x)},Re=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Le=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Pe=null,Ze=function(){Pe&&(i.unbind(document,"mousemove",Ze),i.addClass(e,"pswp--has_mouse"),r.mouseUsed=!0,Ee("mouseUsed")),Pe=setTimeout((function(){Pe=null}),100)},ze=function(e,t){var n=Gt(a.currItem,pe,e);return t&&(ee=n),n},Ne=function(e){return e||(e=a.currItem),e.initialZoomLevel},Ue=function(e){return e||(e=a.currItem),e.w>0?r.maxSpreadZoom:1},Ke=function(e,t,n,o){return o===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Ae(e,o),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},He=function(e){var t="";r.escKey&&27===e.keyCode?t="close":r.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,a[t]()))},We=function(e){e&&(V||q||ne||W)&&(e.preventDefault(),e.stopPropagation())},Be=function(){a.setScrollOffset(0,i.getScrollY())},Ye={},Ge=0,qe=function(e){Ye[e]&&(Ye[e].raf&&k(Ye[e].raf),Ge--,delete Ye[e])},Ve=function(e){Ye[e]&&qe(e),Ye[e]||(Ge++,Ye[e]={})},Xe=function(){for(var e in Ye)Ye.hasOwnProperty(e)&&qe(e)},je=function(e,t,n,o,i,a,r){var l,s=De();Ve(e);var u=function(){if(Ye[e]){if((l=De()-s)>=o)return qe(e),a(n),void(r&&r());a((n-t)*i(l/o)+t),Ye[e].raf=O(u)}};u()},$e={shout:Ee,listen:Te,viewportSize:pe,options:r,isMainScrollAnimating:function(){return ne},getZoomLevel:function(){return v},getCurrentIndex:function(){return c},isDragging:function(){return Y},isZooming:function(){return J},setScrollOffset:function(e,t){fe.x=e,P=fe.y=t,Ee("updateScrollOffset",fe)},applyZoomPan:function(e,t,n,o){de.x=t,de.y=n,v=e,Me(o)},init:function(){if(!l&&!s){var n;a.framework=i,a.template=e,a.bg=i.getChildByClass(e,"pswp__bg"),A=e.className,l=!0,Z=i.detectFeatures(),O=Z.raf,k=Z.caf,_=Z.transform,L=Z.oldIE,a.scrollWrap=i.getChildByClass(e,"pswp__scroll-wrap"),a.container=i.getChildByClass(a.scrollWrap,"pswp__container"),d=a.container.style,a.itemHolders=C=[{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}],C[0].el.style.display=C[2].el.style.display="none",function(){if(_){var t=Z.perspective&&!F;return g="translate"+(t?"3d(":"("),void(y=Z.perspective?", 0px)":")")}_="left",i.addClass(e,"pswp--ie"),Oe=function(e,t){t.left=e+"px"},Fe=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,o=t*e.w,i=t*e.h;n.width=o+"px",n.height=i+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Me=function(){if(te){var e=te,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,o=n*t.w,i=n*t.h;e.width=o+"px",e.height=i+"px",e.left=de.x+"px",e.top=de.y+"px"}}}(),h={resize:a.updateSize,orientationchange:function(){clearTimeout(z),z=setTimeout((function(){pe.x!==a.scrollWrap.clientWidth&&a.updateSize()}),500)},scroll:Be,keydown:He,click:We};var o=Z.isOldIOSPhone||Z.isOldAndroid||Z.isMobileOpera;for(Z.animationName&&Z.transform&&!o||(r.showAnimationDuration=r.hideAnimationDuration=0),n=0;n<ge.length;n++)a["init"+ge[n]]();if(t)(a.ui=new t(a,i)).init();Ee("firstUpdate"),c=c||r.index||0,(isNaN(c)||c<0||c>=Kt())&&(c=0),a.currItem=Ut(c),(Z.isOldIOSPhone||Z.isOldAndroid)&&(xe=!1),e.setAttribute("aria-hidden","false"),r.modal&&(xe?e.style.position="fixed":(e.style.position="absolute",e.style.top=i.getScrollY()+"px")),void 0===P&&(Ee("initialLayout"),P=R=i.getScrollY());var u="pswp--open ";for(r.mainClass&&(u+=r.mainClass+" "),r.showHideOpacity&&(u+="pswp--animate_opacity "),u+=F?"pswp--touch":"pswp--notouch",u+=Z.animationName?" pswp--css_animation":"",u+=Z.svg?" pswp--svg":"",i.addClass(e,u),a.updateSize(),p=-1,ve=null,n=0;n<3;n++)Oe((n+p)*he.x,C[n].el.style);L||i.bind(a.scrollWrap,f,a),Te("initialZoomInEnd",(function(){a.setContent(C[0],c-1),a.setContent(C[2],c+1),C[0].el.style.display=C[2].el.style.display="block",r.focus&&e.focus(),i.bind(document,"keydown",a),Z.transform&&i.bind(a.scrollWrap,"click",a),r.mouseUsed||i.bind(document,"mousemove",Ze),i.bind(window,"resize scroll orientationchange",a),Ee("bindEvents")})),a.setContent(C[1],c),a.updateCurrItem(),Ee("afterInit"),xe||(w=setInterval((function(){Ge||Y||J||v!==a.currItem.initialZoomLevel||a.updateSize()}),1e3)),i.addClass(e,"pswp--visible")}},close:function(){l&&(l=!1,s=!0,Ee("close"),i.unbind(window,"resize scroll orientationchange",a),i.unbind(window,"scroll",h.scroll),i.unbind(document,"keydown",a),i.unbind(document,"mousemove",Ze),Z.transform&&i.unbind(a.scrollWrap,"click",a),Y&&i.unbind(window,m,a),clearTimeout(z),Ee("unbindEvents"),Ht(a.currItem,null,!0,a.destroy))},destroy:function(){Ee("destroy"),Pt&&clearTimeout(Pt),e.setAttribute("aria-hidden","true"),e.className=A,w&&clearInterval(w),i.unbind(a.scrollWrap,f,a),i.unbind(window,"scroll",a),ft(),Xe(),Ie=null},panTo:function(e,t,n){n||(e>ee.min.x?e=ee.min.x:e<ee.max.x&&(e=ee.max.x),t>ee.min.y?t=ee.min.y:t<ee.max.y&&(t=ee.max.y)),de.x=e,de.y=t,Me()},handleEvent:function(e){e=e||window.event,h[e.type]&&h[e.type](e)},goTo:function(e){var t=(e=Ce(e))-c;ve=t,c=e,a.currItem=Ut(c),me-=t,ke(he.x*me),Xe(),ne=!1,a.updateCurrItem()},next:function(){a.goTo(c+1)},prev:function(){a.goTo(c-1)},updateCurrZoomItem:function(e){if(e&&Ee("beforeChange",0),C[1].el.children.length){var t=C[1].el.children[0];te=i.hasClass(t,"pswp__zoom-wrap")?t.style:null}else te=null;ee=a.currItem.bounds,x=v=a.currItem.initialZoomLevel,de.x=ee.center.x,de.y=ee.center.y,e&&Ee("afterChange")},invalidateCurrItems:function(){b=!0;for(var e=0;e<3;e++)C[e].item&&(C[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==ve){var t,n=Math.abs(ve);if(!(e&&n<2)){a.currItem=Ut(c),we=!1,Ee("beforeChange",ve),n>=3&&(p+=ve+(ve>0?-3:3),n=3);for(var o=0;o<n;o++)ve>0?(t=C.shift(),C[2]=t,p++,Oe((p+2)*he.x,t.el.style),a.setContent(t,c-n+o+1+1)):(t=C.pop(),C.unshift(t),p--,Oe(p*he.x,t.el.style),a.setContent(t,c+n-o-1-1));if(te&&1===Math.abs(ve)){var i=Ut(I);i.initialZoomLevel!==v&&(Gt(i,pe),jt(i),Fe(i))}ve=0,a.updateCurrZoomItem(),I=c,Ee("afterChange")}}},updateSize:function(t){if(!xe&&r.modal){var n=i.getScrollY();if(P!==n&&(e.style.top=n+"px",P=n),!t&&ye.x===window.innerWidth&&ye.y===window.innerHeight)return;ye.x=window.innerWidth,ye.y=window.innerHeight,e.style.height=ye.y+"px"}if(pe.x=a.scrollWrap.clientWidth,pe.y=a.scrollWrap.clientHeight,Be(),he.x=pe.x+Math.round(pe.x*r.spacing),he.y=pe.y,ke(he.x*me),Ee("beforeResize"),void 0!==p){for(var o,l,s,u=0;u<3;u++)o=C[u],Oe((u+p)*he.x,o.el.style),s=c+u-1,r.loop&&Kt()>2&&(s=Ce(s)),(l=Ut(s))&&(b||l.needsUpdate||!l.bounds)?(a.cleanSlide(l),a.setContent(o,s),1===u&&(a.currItem=l,a.updateCurrZoomItem(!0)),l.needsUpdate=!1):-1===o.index&&s>=0&&a.setContent(o,s),l&&l.container&&(Gt(l,pe),jt(l),Fe(l));b=!1}x=v=a.currItem.initialZoomLevel,(ee=a.currItem.bounds)&&(de.x=ee.center.x,de.y=ee.center.y,Me(!0)),Ee("resize")},zoomTo:function(e,t,n,o,a){t&&(x=v,dt.x=Math.abs(t.x)-de.x,dt.y=Math.abs(t.y)-de.y,Re(ce,de));var r=ze(e,!1),l={};Ke("x",r,l,e),Ke("y",r,l,e);var s=v,u=de.x,c=de.y;Le(l);var d=function(t){1===t?(v=e,de.x=l.x,de.y=l.y):(v=(e-s)*t+s,de.x=(l.x-u)*t+u,de.y=(l.y-c)*t+c),a&&a(t),Me(1===t)};n?je("customZoomTo",0,1,n,o||i.easing.sine.inOut,d):d(1)}},Je={},Qe={},et={},tt={},nt={},ot=[],it={},at=[],rt={},lt=0,st={x:0,y:0},ut=0,ct={x:0,y:0},dt={x:0,y:0},pt={x:0,y:0},mt=function(e,t){return rt.x=Math.abs(e.x-t.x),rt.y=Math.abs(e.y-t.y),Math.sqrt(rt.x*rt.x+rt.y*rt.y)},ft=function(){X&&(k(X),X=null)},ht=function(){Y&&(X=O(ht),Mt())},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)))},xt={},gt=function(e,t){return xt.prevent=!vt(e.target,r.isClickableElement),Ee("preventDragEvent",e,t,xt),xt.prevent},yt=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=de.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(pe.y/2))},Ct={},It={},Tt=[],Et=function(e){for(;Tt.length>0;)Tt.pop();return M?(se=0,ot.forEach((function(e){0===se?Tt[0]=e:1===se&&(Tt[1]=e),se++}))):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Tt[0]=yt(e.touches[0],Ct),e.touches.length>1&&(Tt[1]=yt(e.touches[1],It))):(Ct.x=e.pageX,Ct.y=e.pageY,Ct.id="",Tt[0]=Ct),Tt},Dt=function(e,t){var n,o,i,l,s=de[e]+t[e],u=t[e]>0,c=ct.x+t.x,d=ct.x-it.x;if(n=s>ee.min[e]||s<ee.max[e]?r.panEndFriction:1,s=de[e]+t[e]*n,(r.allowPanToNext||v===a.currItem.initialZoomLevel)&&(te?"h"!==oe||"x"!==e||q||(u?(s>ee.min[e]&&(n=r.panEndFriction,ee.min[e]-s,o=ee.min[e]-ce[e]),(o<=0||d<0)&&Kt()>1?(l=c,d<0&&c>it.x&&(l=it.x)):ee.min.x!==ee.max.x&&(i=s)):(s<ee.max[e]&&(n=r.panEndFriction,s-ee.max[e],o=ce[e]-ee.max[e]),(o<=0||d>0)&&Kt()>1?(l=c,d>0&&c<it.x&&(l=it.x)):ee.min.x!==ee.max.x&&(i=s))):l=c,"x"===e))return void 0!==l&&(ke(l,!0),j=l!==it.x),ee.min.x!==ee.max.x&&(void 0!==i?de.x=i:j||(de.x+=t.x*n)),void 0!==l;ne||j||v>a.currItem.fitRatio&&(de[e]+=t[e]*n)},St=function(e){if(!("mousedown"===e.type&&e.button>0))if(Nt)e.preventDefault();else if(!B||"mousedown"!==e.type){if(gt(e,!0)&&e.preventDefault(),Ee("pointerDown"),M){var t=i.arraySearch(ot,e.pointerId,"id");t<0&&(t=ot.length),ot[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Et(e),o=n.length;$=null,Xe(),Y&&1!==o||(Y=ie=!0,i.bind(window,m,a),H=le=ae=W=j=V=G=q=!1,oe=null,Ee("firstTouchStart",n),Re(ce,de),ue.x=ue.y=0,Re(tt,n[0]),Re(nt,tt),it.x=he.x*me,at=[{x:tt.x,y:tt.y}],U=N=De(),ze(v,!0),ft(),ht()),!J&&o>1&&!ne&&!j&&(x=v,q=!1,J=G=!0,ue.y=ue.x=0,Re(ce,de),Re(Je,n[0]),Re(Qe,n[1]),wt(Je,Qe,pt),dt.x=Math.abs(pt.x)-de.x,dt.y=Math.abs(pt.y)-de.y,Q=mt(Je,Qe))}},_t=function(e){if(e.preventDefault(),M){var t=i.arraySearch(ot,e.pointerId,"id");if(t>-1){var n=ot[t];n.x=e.pageX,n.y=e.pageY}}if(Y){var o=Et(e);if(oe||V||J)$=o;else if(ct.x!==he.x*me)oe="h";else{var a=Math.abs(o[0].x-tt.x)-Math.abs(o[0].y-tt.y);Math.abs(a)>=10&&(oe=a>0?"h":"v",$=o)}}},Mt=function(){if($){var e=$.length;if(0!==e)if(Re(Je,$[0]),et.x=Je.x-tt.x,et.y=Je.y-tt.y,J&&e>1){if(tt.x=Je.x,tt.y=Je.y,!et.x&&!et.y&&function(e,t){return e.x===t.x&&e.y===t.y}($[1],Qe))return;Re(Qe,$[1]),q||(q=!0,Ee("zoomGestureStarted"));var t=mt(Je,Qe),n=Rt(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(le=!0);var o=1,i=Ne(),l=Ue();if(n<i)if(r.pinchToClose&&!le&&x<=a.currItem.initialZoomLevel){var s=1-(i-n)/(i/1.2);Se(s),Ee("onPinchClose",s),ae=!0}else(o=(i-n)/i)>1&&(o=1),n=i-o*(i/3);else n>l&&((o=(n-l)/(6*i))>1&&(o=1),n=l+o*i);o<0&&(o=0),t,wt(Je,Qe,st),ue.x+=st.x-pt.x,ue.y+=st.y-pt.y,Re(pt,st),de.x=Ae("x",n),de.y=Ae("y",n),H=n>v,v=n,Me()}else{if(!oe)return;if(ie&&(ie=!1,Math.abs(et.x)>=10&&(et.x-=$[0].x-nt.x),Math.abs(et.y)>=10&&(et.y-=$[0].y-nt.y)),tt.x=Je.x,tt.y=Je.y,0===et.x&&0===et.y)return;if("v"===oe&&r.closeOnVerticalDrag&&"fit"===r.scaleMode&&v===a.currItem.initialZoomLevel){ue.y+=et.y,de.y+=et.y;var u=bt();return W=!0,Ee("onVerticalDrag",u),Se(u),void Me()}!function(e,t,n){if(e-U>50){var o=at.length>2?at.shift():{};o.x=t,o.y=n,at.push(o),U=e}}(De(),Je.x,Je.y),V=!0,ee=a.currItem.bounds,Dt("x",et)||(Dt("y",et),Le(de),Me())}}},Ft=function(e){if(Z.isOldAndroid){if(B&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(B),B=setTimeout((function(){B=0}),600))}var t;if(Ee("pointerUp"),gt(e,!1)&&e.preventDefault(),M){var n=i.arraySearch(ot,e.pointerId,"id");if(n>-1)if(t=ot.splice(n,1)[0],navigator.msPointerEnabled){t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var o,l=Et(e),s=l.length;if("mouseup"===e.type&&(s=0),2===s)return $=null,!0;1===s&&Re(nt,l[0]),0!==s||oe||ne||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),Ee("touchRelease",e,t));var u=-1;if(0===s&&(Y=!1,i.unbind(window,m,a),ft(),J?u=0:-1!==ut&&(u=De()-ut)),ut=1===s?De():-1,o=-1!==u&&u<150?"zoom":"swipe",J&&s<2&&(J=!1,1===s&&(o="zoomPointerUp"),Ee("zoomGestureEnded")),$=null,V||q||ne||W)if(Xe(),K||(K=Ot()),K.calculateSwipeSpeed("x"),W){if(bt()<r.verticalDragRange)a.close();else{var c=de.y,d=re;je("verticalDrag",0,1,300,i.easing.cubic.out,(function(e){de.y=(a.currItem.initialPosition.y-c)*e+c,Se((1-d)*e+d),Me()})),Ee("onVerticalDrag",1)}}else{if((j||ne)&&0===s){if(At(o,K))return;o="zoomPointerUp"}ne||("swipe"===o?!j&&v>a.currItem.fitRatio&&kt(K):Lt())}},Ot=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(o){at.length>1?(e=De()-U+50,t=at[at.length-2][o]):(e=De()-N,t=nt[o]),n.lastFlickOffset[o]=tt[o]-t,n.lastFlickDist[o]=Math.abs(n.lastFlickOffset[o]),n.lastFlickDist[o]>20?n.lastFlickSpeed[o]=n.lastFlickOffset[o]/e:n.lastFlickSpeed[o]=0,Math.abs(n.lastFlickSpeed[o])<.1&&(n.lastFlickSpeed[o]=0),n.slowDownRatio[o]=.95,n.slowDownRatioReverse[o]=1-n.slowDownRatio[o],n.speedDecelerationRatio[o]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(de[e]>ee.min[e]?n.backAnimDestination[e]=ee.min[e]:de[e]<ee.max[e]&&(n.backAnimDestination[e]=ee.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,je("bounceZoomPan"+e,de[e],n.backAnimDestination[e],t||300,i.easing.sine.out,(function(t){de[e]=t,Me()})))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,de[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Ye.zoomPan&&(Ye.zoomPan.raf=O(n.panAnimLoop),n.now=De(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Me(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return de.x=Math.round(de.x),de.y=Math.round(de.y),Me(),void qe("zoomPan")}};return n},kt=function(e){if(e.calculateSwipeSpeed("y"),ee=a.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;Ve("zoomPan"),e.lastNow=De(),e.panAnimLoop()},At=function(e,t){var n,o,l;if(ne||(lt=c),"swipe"===e){var s=tt.x-nt.x,u=t.lastFlickDist.x<10;s>30&&(u||t.lastFlickOffset.x>20)?o=-1:s<-30&&(u||t.lastFlickOffset.x<-20)&&(o=1)}o&&((c+=o)<0?(c=r.loop?Kt()-1:0,l=!0):c>=Kt()&&(c=r.loop?0:Kt()-1,l=!0),l&&!r.loop||(ve+=o,me-=o,n=!0));var d,p=he.x*me,m=Math.abs(p-ct.x);return n||p>ct.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?m/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,lt===c&&(n=!1),ne=!0,Ee("mainScrollAnimStart"),je("mainScroll",ct.x,p,d,i.easing.cubic.out,ke,(function(){Xe(),ne=!1,lt=-1,(n||lt!==c)&&a.updateCurrItem(),Ee("mainScrollAnimComplete")})),n&&a.updateCurrItem(!0),n},Rt=function(e){return 1/Q*e*x},Lt=function(){var e=v,t=Ne(),n=Ue();v<t?e=t:v>n&&(e=n);var o,r=re;return ae&&!H&&!le&&v<t?(a.close(),!0):(ae&&(o=function(e){Se((1-r)*e+r)}),a.zoomTo(e,0,200,i.easing.cubic.out,o),!0)};be("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,o,i){T=e+t,E=e+n,D=e+o,S=i?e+i:""};(M=Z.pointerEvent)&&Z.touch&&(Z.touch=!1),M?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):Z.touch?(e("touch","start","move","end","cancel"),F=!0):e("mouse","down","move","up"),m=E+" "+D+" "+S,f=T,M&&!F&&(F=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=F,h[T]=St,h[E]=_t,h[D]=Ft,S&&(h[S]=h[D]),Z.touch&&(f+=" mousedown",m+=" mousemove mouseup",h.mousedown=h[T],h.mousemove=h[E],h.mouseup=h[D]),F||(r.allowPanToNext=!1)}}});var Pt,Zt,zt,Nt,Ut,Kt,Ht=function(t,n,o,l){var s;Pt&&clearTimeout(Pt),Nt=!0,zt=!0,t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=r.getThumbBoundsFn&&r.getThumbBoundsFn(c);var d=o?r.hideAnimationDuration:r.showAnimationDuration,p=function(){qe("initialZoom"),o?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Se(1),n&&(n.style.display="block"),i.addClass(e,"pswp--animated-in"),Ee("initialZoom"+(o?"OutEnd":"InEnd"))),l&&l(),Nt=!1};if(!d||!s||void 0===s.x)return Ee("initialZoom"+(o?"Out":"In")),v=t.initialZoomLevel,Re(de,t.initialPosition),Me(),e.style.opacity=o?0:1,Se(1),void(d?setTimeout((function(){p()}),d):p());var m,f;m=u,f=!a.currItem.src||a.currItem.loadError||r.showHideOpacity,t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),o||(v=s.w/t.w,de.x=s.x,de.y=s.y-R,a[f?"template":"bg"].style.opacity=.001,Me()),Ve("initialZoom"),o&&!m&&i.removeClass(e,"pswp--animated-in"),f&&(o?i[(m?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout((function(){i.addClass(e,"pswp--animate_opacity")}),30)),Pt=setTimeout((function(){if(Ee("initialZoom"+(o?"Out":"In")),o){var n=s.w/t.w,a={x:de.x,y:de.y},r=v,l=re,u=function(t){1===t?(v=n,de.x=s.x,de.y=s.y-P):(v=(n-r)*t+r,de.x=(s.x-a.x)*t+a.x,de.y=(s.y-P-a.y)*t+a.y),Me(),f?e.style.opacity=1-t:Se(l-t*l)};m?je("initialZoom",0,1,d,i.easing.cubic.out,u,p):(u(1),Pt=setTimeout(p,d+20))}else v=t.initialZoomLevel,Re(de,t.initialPosition),Me(),Se(1),f?e.style.opacity=1:Se(1),Pt=setTimeout(p,d+20)}),o?25:90)},Wt={},Bt=[],Yt={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 Zt.length}},Gt=function(e,t,n){if(e.src&&!e.loadError){var o=!n;if(o&&(e.vGap||(e.vGap={top:0,bottom:0}),Ee("parseVerticalMargin",e)),Wt.x=t.x,Wt.y=t.y-e.vGap.top-e.vGap.bottom,o){var i=Wt.x/e.w,a=Wt.y/e.h;e.fitRatio=i<a?i:a;var l=r.scaleMode;"orig"===l?n=1:"fit"===l&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!n)return;return function(e,t,n){var o=e.bounds;o.center.x=Math.round((Wt.x-t)/2),o.center.y=Math.round((Wt.y-n)/2)+e.vGap.top,o.max.x=t>Wt.x?Math.round(Wt.x-t):o.center.x,o.max.y=n>Wt.y?Math.round(Wt.y-n)+e.vGap.top:o.center.y,o.min.x=t>Wt.x?0:o.center.x,o.min.y=n>Wt.y?e.vGap.top:o.center.y}(e,e.w*n,e.h*n),o&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},qt=function(e,t,n,o,i,r){t.loadError||o&&(t.imageAppended=!0,jt(t,o,t===a.currItem&&we),n.appendChild(o),r&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},Vt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=i.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},Xt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=r.errorMsg.replace("%url%",e.src),!0},jt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var o=n?e.w:Math.round(e.w*e.fitRatio),i=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=o+"px",e.placeholder.style.height=i+"px"),t.style.width=o+"px",t.style.height=i+"px"}},$t=function(){if(Bt.length){for(var e,t=0;t<Bt.length;t++)(e=Bt[t]).holder.index===e.index&&qt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Bt=[]}};be("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ce(e);var t=Ut(e);t&&(!t.loaded&&!t.loading||b)&&(Ee("gettingData",e,t),t.src&&Vt(t))},initController:function(){i.extend(r,Yt,!0),a.items=Zt=n,Ut=a.getItemAt,Kt=r.getNumItemsFn,r.loop,Kt()<3&&(r.loop=!1),Te("beforeChange",(function(e){var t,n=r.preload,o=null===e||e>=0,i=Math.min(n[0],Kt()),l=Math.min(n[1],Kt());for(t=1;t<=(o?l:i);t++)a.lazyLoadItem(c+t);for(t=1;t<=(o?i:l);t++)a.lazyLoadItem(c-t)})),Te("initialLayout",(function(){a.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(c)})),Te("mainScrollAnimComplete",$t),Te("initialZoomInEnd",$t),Te("destroy",(function(){for(var e,t=0;t<Zt.length;t++)(e=Zt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Bt=null}))},getItemAt:function(e){return e>=0&&(void 0!==Zt[e]&&Zt[e])},allowProgressiveImg:function(){return r.forceProgressiveLoading||!F||r.mouseUsed||screen.width>1200},setContent:function(e,t){r.loop&&(t=Ce(t));var n=a.getItemAt(e.index);n&&(n.container=null);var o,s=a.getItemAt(t);if(s){Ee("gettingData",t,s),e.index=t,e.item=s;var u=s.container=i.createEl("pswp__zoom-wrap");if(!s.src&&s.html&&(s.html.tagName?u.appendChild(s.html):u.innerHTML=s.html),Xt(s),Gt(s,pe),!s.src||s.loadError||s.loaded)s.src&&!s.loadError&&((o=i.createEl("pswp__img","img")).style.opacity=1,o.src=s.src,jt(s,o),qt(0,s,u,o));else{if(s.loadComplete=function(n){if(l){if(e&&e.index===t){if(Xt(n,!0))return n.loadComplete=n.img=null,Gt(n,pe),Fe(n),void(e.index===c&&a.updateCurrZoomItem());n.imageAppended?!Nt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):Z.transform&&(ne||Nt)?Bt.push({item:n,baseDiv:u,img:n.img,index:t,holder:e,clearPlaceholder:!0}):qt(0,n,u,n.img,0,!0)}n.loadComplete=null,n.img=null,Ee("imageLoadComplete",t,n)}},i.features.transform){var d="pswp__img pswp__img--placeholder";d+=s.msrc?"":" pswp__img--placeholder--blank";var p=i.createEl(d,s.msrc?"img":"");s.msrc&&(p.src=s.msrc),jt(s,p),u.appendChild(p),s.placeholder=p}s.loading||Vt(s),a.allowProgressiveImg()&&(!zt&&Z.transform?Bt.push({item:s,baseDiv:u,img:s.img,index:t,holder:e}):qt(0,s,u,s.img,0,!0))}zt||t!==c?Fe(s):(te=u.style,Ht(s,o||s.img)),e.el.innerHTML="",e.el.appendChild(u)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Jt,Qt,en={},tn=function(e,t,n){var o=document.createEvent("CustomEvent"),i={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};o.initCustomEvent("pswpTap",!0,!0,i),e.target.dispatchEvent(o)};be("Tap",{publicMethods:{initTap:function(){Te("firstTouchStart",a.onTapStart),Te("touchRelease",a.onTapRelease),Te("destroy",(function(){en={},Jt=null}))},onTapStart:function(e){e.length>1&&(clearTimeout(Jt),Jt=null)},onTapRelease:function(e,t){var n,o;if(t&&(!V&&!G&&!Ge)){var a=t;if(Jt&&(clearTimeout(Jt),Jt=null,n=a,o=en,Math.abs(n.x-o.x)<25&&Math.abs(n.y-o.y)<25))return void Ee("doubleTap",a);if("mouse"===t.type)return void tn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||i.hasClass(e.target,"pswp__single-tap"))return void tn(e,t);Re(en,a),Jt=setTimeout((function(){tn(e,t),Jt=null}),300)}}}}),be("DesktopZoom",{publicMethods:{initDesktopZoom:function(){L||(F?Te("mouseUsed",(function(){a.setupDesktopZoom()})):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Qt={};var n="wheel mousewheel DOMMouseScroll";Te("bindEvents",(function(){i.bind(e,n,a.handleMouseWheel)})),Te("unbindEvents",(function(){Qt&&i.unbind(e,n,a.handleMouseWheel)})),a.mouseZoomedIn=!1;var o,r=function(){a.mouseZoomedIn&&(i.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),v<1?i.addClass(e,"pswp--zoom-allowed"):i.removeClass(e,"pswp--zoom-allowed"),l()},l=function(){o&&(i.removeClass(e,"pswp--dragging"),o=!1)};Te("resize",r),Te("afterChange",r),Te("pointerDown",(function(){a.mouseZoomedIn&&(o=!0,i.addClass(e,"pswp--dragging"))})),Te("pointerUp",l),t||r()},handleMouseWheel:function(e){if(v<=a.currItem.fitRatio)return r.modal&&(!r.closeOnScroll||Ge||Y?e.preventDefault():_&&Math.abs(e.deltaY)>2&&(u=!0,a.close())),!0;if(e.stopPropagation(),Qt.x=0,"deltaX"in e)1===e.deltaMode?(Qt.x=18*e.deltaX,Qt.y=18*e.deltaY):(Qt.x=e.deltaX,Qt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Qt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Qt.y=-.16*e.wheelDeltaY:Qt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Qt.y=e.detail}ze(v,!0);var t=de.x-Qt.x,n=de.y-Qt.y;(r.modal||t<=ee.min.x&&t>=ee.max.x&&n<=ee.min.y&&n>=ee.max.y)&&e.preventDefault(),a.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:pe.x/2+fe.x,y:pe.y/2+fe.y};var n=r.getDoubleTapZoom(!0,a.currItem),o=v===n;a.mouseZoomedIn=!o,a.zoomTo(o?a.currItem.initialZoomLevel:n,t,333),i[(o?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var nn,on,an,rn,ln,sn,un,cn,dn,pn,mn,fn,hn={history:!0,galleryUID:1},vn=function(){return mn.hash.substring(1)},xn=function(){nn&&clearTimeout(nn),an&&clearTimeout(an)},gn=function(){var e=vn(),t={};if(e.length<5)return t;var n,o=e.split("&");for(n=0;n<o.length;n++)if(o[n]){var i=o[n].split("=");i.length<2||(t[i[0]]=i[1])}if(r.galleryPIDs){var a=t.pid;for(t.pid=0,n=0;n<Zt.length;n++)if(Zt[n].pid===a){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},yn=function(){if(an&&clearTimeout(an),Ge||Y)an=setTimeout(yn,500);else{rn?clearTimeout(on):rn=!0;var e=c+1,t=Ut(c);t.hasOwnProperty("pid")&&(e=t.pid);var n=un+"&gid="+r.galleryUID+"&pid="+e;cn||-1===mn.hash.indexOf(n)&&(pn=!0);var o=mn.href.split("#")[0]+"#"+n;fn?"#"+n!==window.location.hash&&history[cn?"replaceState":"pushState"]("",document.title,o):cn?mn.replace(o):mn.hash=n,cn=!0,on=setTimeout((function(){rn=!1}),60)}};be("History",{publicMethods:{initHistory:function(){if(i.extend(r,hn,!0),r.history){mn=window.location,pn=!1,dn=!1,cn=!1,un=vn(),fn="pushState"in history,un.indexOf("gid=")>-1&&(un=(un=un.split("&gid=")[0]).split("?gid=")[0]),Te("afterChange",a.updateURL),Te("unbindEvents",(function(){i.unbind(window,"hashchange",a.onHashChange)}));var e=function(){sn=!0,dn||(pn?history.back():un?mn.hash=un:fn?history.pushState("",document.title,mn.pathname+mn.search):mn.hash=""),xn()};Te("unbindEvents",(function(){u&&e()})),Te("destroy",(function(){sn||e()})),Te("firstUpdate",(function(){c=gn().pid}));var t=un.indexOf("pid=");t>-1&&"&"===(un=un.substring(0,t)).slice(-1)&&(un=un.slice(0,-1)),setTimeout((function(){l&&i.bind(window,"hashchange",a.onHashChange)}),40)}},onHashChange:function(){if(vn()===un)return dn=!0,void a.close();rn||(ln=!0,a.goTo(gn().pid),ln=!1)},updateURL:function(){xn(),ln||(cn?nn=setTimeout(yn,800):yn())}}}),i.extend(a,$e)}})),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,(function(){"use strict";return function(e,t){var n,o,i,a,r,l,s,u,c,d,p,m,f,h,v,x,g,y,w=this,b=!1,C=!0,I=!0,T={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},E=function(e){if(x)return!0;e=e||window.event,v.timeToIdle&&v.mouseUsed&&!c&&R();for(var n,o,i=(e.target||e.srcElement).getAttribute("class")||"",a=0;a<z.length;a++)(n=z[a]).onTap&&i.indexOf("pswp__"+n.name)>-1&&(n.onTap(),o=!0);if(o){e.stopPropagation&&e.stopPropagation(),x=!0;var r=t.features.isOldAndroid?600:30;setTimeout((function(){x=!1}),r)}},D=function(e,n,o){t[(o?"add":"remove")+"Class"](e,"pswp__"+n)},S=function(){var e=1===v.getNumItemsFn();e!==h&&(D(o,"ui--one-slide",e),h=e)},_=function(){D(s,"share-modal--hidden",I)},M=function(){return(I=!I)?(t.removeClass(s,"pswp__share-modal--fade-in"),setTimeout((function(){I&&_()}),300)):(_(),setTimeout((function(){I||t.addClass(s,"pswp__share-modal--fade-in")}),30)),I||O(),!1},F=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)),I||M(),!1))},O=function(){for(var e,t,n,o,i="",a=0;a<v.shareButtons.length;a++)e=v.shareButtons[a],t=v.getImageURLForShare(e),n=v.getPageURLForShare(e),o=v.getTextForShare(e),i+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(o))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",v.parseShareButtonOut&&(i=v.parseShareButtonOut(e,i));s.children[0].innerHTML=i,s.children[0].onclick=F},k=function(e){for(var n=0;n<v.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+v.closeElClasses[n]))return!0},A=0,R=function(){clearTimeout(y),A=0,c&&w.setIdle(!1)},L=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(y),y=setTimeout((function(){w.setIdle(!0)}),v.timeToIdleOutside))},P=function(e){m!==e&&(D(p,"preloader--active",!e),m=e)},Z=function(n){var r=n.vGap;if(!e.likelyTouchDevice||v.mouseUsed||screen.width>v.fitControlsWidth){var l=v.barsSize;if(v.captionEl&&"auto"===l.bottom)if(a||((a=t.createEl("pswp__caption pswp__caption--fake")).appendChild(t.createEl("pswp__caption__center")),o.insertBefore(a,i),t.addClass(o,"pswp__ui--fit")),v.addCaptionHTMLFn(n,a,!0)){var s=a.clientHeight;r.bottom=parseInt(s,10)||44}else r.bottom=l.top;else r.bottom="auto"===l.bottom?0:l.bottom;r.top=l.top}else r.top=r.bottom=0},z=[{name:"caption",option:"captionEl",onInit:function(e){i=e}},{name:"share-modal",option:"shareEl",onInit:function(e){s=e},onTap:function(){M()}},{name:"button--share",option:"shareEl",onInit:function(e){l=e},onTap:function(){M()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){r=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){p=e}}];w.init=function(){var r;t.extend(e.options,T,!0),v=e.options,o=t.getChildByClass(e.scrollWrap,"pswp__ui"),(d=e.listen)("onVerticalDrag",(function(e){C&&e<.95?w.hideControls():!C&&e>=.95&&w.showControls()})),d("onPinchClose",(function(e){C&&e<.9?(w.hideControls(),r=!0):r&&!C&&e>.9&&w.showControls()})),d("zoomGestureEnded",(function(){(r=!1)&&!C&&w.showControls()})),d("beforeChange",w.update),d("doubleTap",(function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(v.getDoubleTapZoom(!1,e.currItem),t,333)})),d("preventDragEvent",(function(e,t,n){var o=e.target||e.srcElement;o&&o.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(o.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)})),d("bindEvents",(function(){t.bind(o,"pswpTap click",E),t.bind(e.scrollWrap,"pswpTap",w.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",w.onMouseOver)})),d("unbindEvents",(function(){I||M(),g&&clearInterval(g),t.unbind(document,"mouseout",L),t.unbind(document,"mousemove",R),t.unbind(o,"pswpTap click",E),t.unbind(e.scrollWrap,"pswpTap",w.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",w.onMouseOver),n&&(t.unbind(document,n.eventK,w.updateFullscreen),n.isFullscreen()&&(v.hideAnimationDuration=0,n.exit()),n=null)})),d("destroy",(function(){v.captionEl&&(a&&o.removeChild(a),t.removeClass(i,"pswp__caption--empty")),s&&(s.children[0].onclick=null),t.removeClass(o,"pswp__ui--over-close"),t.addClass(o,"pswp__ui--hidden"),w.setIdle(!1)})),v.showAnimationDuration||t.removeClass(o,"pswp__ui--hidden"),d("initialZoomIn",(function(){v.showAnimationDuration&&t.removeClass(o,"pswp__ui--hidden")})),d("initialZoomOut",(function(){t.addClass(o,"pswp__ui--hidden")})),d("parseVerticalMargin",Z),function(){var e,n,i,a=function(o){if(o)for(var a=o.length,r=0;r<a;r++){e=o[r],n=e.className;for(var l=0;l<z.length;l++)i=z[l],n.indexOf("pswp__"+i.name)>-1&&(v[i.option]?(t.removeClass(e,"pswp__element--disabled"),i.onInit&&i.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};a(o.children);var r=t.getChildByClass(o,"pswp__top-bar");r&&a(r.children)}(),v.shareEl&&l&&s&&(I=!0),S(),v.timeToIdle&&d("mouseUsed",(function(){t.bind(document,"mousemove",R),t.bind(document,"mouseout",L),g=setInterval((function(){2==++A&&w.setIdle(!0)}),v.timeToIdle/2)})),v.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=w.getFullscreenAPI()),n?(t.bind(document,n.eventK,w.updateFullscreen),w.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs")),v.preloaderEl&&(P(!0),d("beforeChange",(function(){clearTimeout(f),f=setTimeout((function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&P(!1):P(!0)}),v.loadingIndicatorDelay)})),d("imageLoadComplete",(function(t,n){e.currItem===n&&P(!0)})))},w.setIdle=function(e){c=e,D(o,"ui--idle",e)},w.update=function(){C&&e.currItem?(w.updateIndexIndicator(),v.captionEl&&(v.addCaptionHTMLFn(e.currItem,i),D(i,"caption--empty",!e.currItem.title)),b=!0):b=!1,I||M(),S()},w.updateFullscreen=function(o){o&&setTimeout((function(){e.setScrollOffset(0,t.getScrollY())}),50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},w.updateIndexIndicator=function(){v.counterEl&&(r.innerHTML=e.getCurrentIndex()+1+v.indexIndicatorSep+v.getNumItemsFn())},w.onGlobalTap=function(n){var o=(n=n||window.event).target||n.srcElement;if(!x)if(n.detail&&"mouse"===n.detail.pointerType){if(k(o))return void e.close();t.hasClass(o,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?v.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(n.detail.releasePoint))}else if(v.tapToToggleControls&&(C?w.hideControls():w.showControls()),v.tapToClose&&(t.hasClass(o,"pswp__img")||k(o)))return void e.close()},w.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;D(o,"ui--over-close",k(t))},w.hideControls=function(){t.addClass(o,"pswp__ui--hidden"),C=!1},w.showControls=function(){C=!0,b||w.update(),t.removeClass(o,"pswp__ui--hidden")},w.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},w.getFullscreenAPI=function(){var t,n=document.documentElement,o="fullscreenchange";return n.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:o}:n.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+o}:n.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+o}:n.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){if(u=v.closeOnScroll,v.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return e.template[this.enterK]();e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return v.closeOnScroll=u,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}}));
|