PageSourceSearch

https://www.foliosociety.com/uk/build/b96d4acd01af034d/761.js

js foliosociety.com collected 2026-10-01 10:36:28 UTC 32,112 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkapp_default=self.webpackChunkapp_default||[]).push([[761],{9761(jt,Jt,kn){var Je,gt;Je=function(){function ke(h){h.container&&h.container.parentNode?.removeChild(h.container),h.container=null}return function(h,en,Zn,Fn){var l={features:null,bind:function(e,t,n,i){var r=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[r](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){l.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){l.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(l.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n&&e.hasOwnProperty(i))continue;e[i]=t[i]}},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(l.features)return l.features;var t=l.createEl().style,n="",i={};if(i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!i.pointerEvent){var r=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&&(i.isOldIOSPhone=!0)}var f=r.match(/Android\s([0-9\.]*)/),y=f?f[1]:0;(y=parseFloat(y))>=1&&(y<4.4&&(i.isOldAndroid=!0),i.androidVersion=y),i.isMobileOpera=/opera mini|o
1pera mobi/i.test(r)}for(var _,Y,v=["transform","perspective","animationName"],c=["","webkit","Moz","ms","O"],$=0;$<4;$++){n=c[$];for(var Re=0;Re<3;Re++)_=v[Re],Y=n+(n?_.charAt(0).toUpperCase()+_.slice(1):_),!i[_]&&Y in t&&(i[_]=Y);n&&!i.raf&&(n=n.toLowerCase(),i.raf=window[n+"RequestAnimationFrame"],i.raf&&(i.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]))}if(!i.raf){var je=0;i.raf=function(G){var qt=(new Date).getTime(),$t=Math.max(0,16-(qt-je)),si=window.setTimeout(function(){G(qt+$t)},$t);return je=qt+$t,si},i.caf=function(G){clearTimeout(G)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,l.features=i,i}};l.detectFeatures(),l.features.oldIE&&(l.bind=function(e,t,n,i){t=t.split(" ");for(var a,r=(i?"detach":"attach")+"Event",f=function(){n.handleEvent.call(n)},y=0;y<t.length;y++)if(a=t[y])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+a])return!1}else n["oldIE"+a]=f;e[r]("on"+a,n["oldIE"+a])}else e[r]("on"+a,n)});var o=this,s={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},isDraggingElement:function(e){return e.id?.startsWith("photoswipe-360-")},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};l.extend(s,Fn);var _e,nn,vt,p,rn,X,Ze,Qe,T,g,ue,_t,wt,bt,et,x,on,tt,nt,Fe,Ne,xe,te,z,rt,Ct,an,ln,Dt,fe,w,Tt,mn,lt,Ge,Pt,Xe,ze,H,kt,me,Ee,ft,ie,F,V,gn,d,B,O,re,Zt,ct,dt,pt,ht,Q={x:0,y:0},we={x:0,y:0},u={x:0,y:0},I={},ee=0,be={},P={x:0,y:0},U=0,it=!0,xt=[],Ue={},ce=!1,Le=function(e,t){l.extend(o,t.publicMethods),xt.push(e)},ot=function(e){var t=k();return e>t-1?e-t:e<0?t+e:e},Ce={},b=function(e,t){return Ce[e]||(Ce[e]=[]),Ce[e].push(t)},m=function(e){if(Ce){var t=Ce[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(o,n)}}},L=function(){return(new Date).getTime()},K=function(e){dt=e,o.bg.style.opacity=e*s.bgOpacity},sn=function(e,t,n,i,r){(!ce||r&&r!==o.currItem)&&(i/=r?r.fitRatio:o.currItem.fitRatio),e[xe]=_t+t+"px, "+n+"px"+wt+" scale("+i+")"},C=function(e){B&&(e&&(g>o.currItem.fitRatio?ce||(ve(o.currItem,!1,!0),ce=!0):ce&&(ve(o.currItem),ce=!1)),sn(B,u.x,u.y,g))},He=function(e){e.container&&sn(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},De=function(e,t){t[xe]=_t+e+"px, 0px"+wt},at=function(e,t){if(!s.loop&&t){var n=p+(P.x*ee-e)/P.x,i=Math.round(e-q.x);(n<0&&i>0||n>=k()-1&&i<0)&&(e=q.x+i*s.mainScrollEndFriction)}q.x=e,De(e,rn)},It=function(e,t){var n=Ke[e]-be[e];return we[e]+Q[e]+n-n*(t/ue)},S=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},un=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},St=null,Et=function(){St&&(l.unbind(document,"mousemove",Et),l.addClass(h,"pswp--has_mouse"),s.mouseUsed=!0,m("mouseUsed")),St=setTimeout(function(){St=null},100)},Mt=function(e,t){var n=qe(o.currItem,I,e);return t&&(d=n),n},fn=function(e){return e||(e=o.currItem),e.initialZoomLevel},cn=function(e){return e||(e=o.currItem),e.w>0?s.maxSpreadZoom:1},dn=function(e,t,n,i){return i===o.currItem.initialZoomLevel?(n[e]=o.currItem.initialPosition[e],!0):(n[e]=It(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Hn=function(e){var t="";s.escKey&&27===e.keyCode?t="close":s.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,o[t]())},Bn=function(e){e&&(Ee||me||O||Xe)&&(e.preventDefault(),e.stopPropagation())},pn=function(){o.setScrollOffset(0,l.getScrollY())},R={},Te=0,Be=function(e){R[e]&&(R[e].raf&&Ct(R[e].raf),Te--,delete R[e])},At=function(e){R[e]&&Be(e),R[e]||(Te++,R[e]={})},We=function(){for(var e in R)R.hasOwnProperty(e)&&Be(e)},Ye=function(e,t,n,i,r,a,f){var v,y=L();At(e);
1var c=function(){if(R[e]){if((v=L()-y)>=i)return Be(e),a(n),void(f&&f());a((n-t)*r(v/i)+t),R[e].raf=rt(c)}};c()},Wn={shout:m,listen:b,viewportSize:I,options:s,isMainScrollAnimating:function(){return O},getZoomLevel:function(){return g},getCurrentIndex:function(){return p},isDragging:function(){return H},isZooming:function(){return V},setScrollOffset:function(e,t){be.x=e,fe=be.y=t,m("updateScrollOffset",be)},applyZoomPan:function(e,t,n,i){u.x=t,u.y=n,g=e,C(i)},init:function(){if(!_e&&!nn){var e;for(o.framework=l,o.template=h,o.bg=l.getChildByClass(h,"pswp__bg"),an=h.className,_e=!0,w=l.detectFeatures(),rt=w.raf,Ct=w.caf,xe=w.transform,Dt=w.oldIE,o.scrollWrap=l.getChildByClass(h,"pswp__scroll-wrap"),o.container=l.getChildByClass(o.scrollWrap,"pswp__container"),rn=o.container.style,o.itemHolders=x=[{el:o.container.children[0],wrap:0,index:-1},{el:o.container.children[1],wrap:0,index:-1},{el:o.container.children[2],wrap:0,index:-1}],x[0].el.style.display=x[2].el.style.display="none",function(){if(xe)return _t="translate"+(w.perspective&&!z?"3d(":"("),void(wt=w.perspective?", 0px)":")");xe="left",l.addClass(h,"pswp--ie"),De=function(t,n){n.left=t+"px"},He=function(t){var n=t.fitRatio>1?1:t.fitRatio,i=t.container.style,a=n*t.h;i.width=n*t.w+"px",i.height=a+"px",i.left=t.initialPosition.x+"px",i.top=t.initialPosition.y+"px"},C=function(){if(B){var t=B,n=o.currItem,i=n.fitRatio>1?1:n.fitRatio,a=i*n.h;t.width=i*n.w+"px",t.height=a+"px",t.left=u.x+"px",t.top=u.y+"px"}}}(),T={resize:o.updateSize,orientationchange:function(){clearTimeout(Tt),Tt=setTimeout(function(){I.x!==o.scrollWrap.clientWidth&&o.updateSize()},500)},scroll:pn,keydown:Hn,click:Bn},(!w.animationName||!w.transform||w.isOldIOSPhone||w.isOldAndroid||w.isMobileOpera)&&(s.showAnimationDuration=s.hideAnimationDuration=0),e=0;e<xt.length;e++)o["init"+xt[e]]();en&&(o.ui=new en(o,l)).init(),m("firstUpdate"),p=p||s.index||0,(isNaN(p)||p<0||p>=k())&&(p=0),o.currItem=le(p),(w.isOldIOSPhone||w.isOldAndroid)&&(it=!1),h.setAttribute("aria-hidden","false"),s.modal&&(it?h.style.position="fixed":(h.style.position="absolute",h.style.top=l.getScrollY()+"px")),void 0===fe&&(m("initialLayout"),fe=ln=l.getScrollY());var i="pswp--open ";for(s.mainClass&&(i+=s.mainClass+" "),s.showHideOpacity&&(i+="pswp--animate_opacity "),i+=z?"pswp--touch":"pswp--notouch",i+=w.animationName?" pswp--css_animation":"",l.addClass(h,i+=w.svg?" pswp--svg":""),o.updateSize(),X=-1,U=null,e=0;e<3;e++)De((e+X)*P.x,x[e].el.style);Dt||l.bind(o.scrollWrap,Qe,o),b("initialZoomInEnd",function(){o.setContent(x[0],p-1),o.setContent(x[2],p+1),x[0].el.style.display=x[2].el.style.display="block",s.focus&&h.focus(),l.bind(document,"keydown",o),w.transform&&l.bind(o.scrollWrap,"click",o),s.mouseUsed||l.bind(document,"mousemove",Et),l.bind(window,"resize scroll orientationchange",o),m("bindEvents")}),o.setContent(x[1],p),o.updateCurrItem(),m("afterInit"),it||(bt=setInterval(function(){!Te&&!H&&!V&&g===o.currItem.initialZoomLevel&&o.updateSize()},1e3)),l.addClass(h,"pswp--visible")}},close:function(){_e&&(_e=!1,nn=!0,m("close"),l.unbind(window,"resize scroll orientationchange",o),l.unbind(window,"scroll",T.scroll),l.unbind(document,"keydown",o),l.unbind(document,"mousemove",Et),w.transform&&l.unbind(o.scrollWrap,"click",o),H&&l.unbind(window,Ze,o),clearTimeout(Tt),m("unbindEvents"),Tn(o.currItem,null,!0,o.destroy))},destroy:function(){m("destroy"),ye&&clearTimeout(ye),h.setAttribute("aria-hidden","true"),h.className=an,bt&&clearInterval(bt),l.unbind(o.scrollWrap,Qe,o),l.unbind(window,"scroll",o),Ft(),We(),Ce=null},panTo:function(e,t,n){n||(e>d.min.x?e=d.min.x:e<d.max.x&&(e=d.max.x),t>d.min.y?t=d.min.y:t<d.max.y&&(t=d.max.y)),u.x=e,u.y=t,C()},handleEvent:function(e){e=e||window.event,T[e.type]&&T[e.type](e)},goTo:function(e){var t=(e=ot(e))-p;U=t,o.currItem=le(p=e),at(P.x*(ee-=t)),We(),O=!1,o.updateCurrItem()},next:function(){o.goTo(p+1)},prev:function(){o.goTo(p-1)},updateCurrZoomItem:function(e){if(e&&m("beforeChange",0),x[1].el.children.length){var t=x[1].el.children[0];B=l.hasClass(t,"pswp__zoom-wrap")?t.style:null}else B=null;ue=g=o.currItem.initialZoomLevel,(d=o.currItem.bounds)&&(u.x=d.center.x,u.y=d.center.y),e&&m("afterChange")},invalidateCurrItems:function(){et=!0;for(var e=0;e<3;
1e++)x[e].item&&(x[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==U){var n,t=Math.abs(U);if(!(e&&t<2)){o.currItem=le(p),ce=!1,m("beforeChange",U),t>=3&&(X+=U+(U>0?-3:3),t=3);for(var i=0;i<t;i++)U>0?(n=x.shift(),x[2]=n,X++,De((X+2)*P.x,n.el.style),o.setContent(n,p-t+i+1+1)):(n=x.pop(),x.unshift(n),X--,De(X*P.x,n.el.style),o.setContent(n,p+t-i-1-1));o.currItem.onFocusOnly&&o.setContent(x[1],p,!0);var r=le(on);r?.onFocusOnly&&!r.src&&ke(r),B&&1===Math.abs(U)&&r.initialZoomLevel!==g&&(qe(r,I),ve(r),He(r)),U=0,o.updateCurrZoomItem(),on=p,m("afterChange")}}},updateSize:function(e){if(!it&&s.modal){var t=l.getScrollY();if(fe!==t&&(h.style.top=t+"px",fe=t),!e&&Ue.x===window.innerWidth&&Ue.y===window.innerHeight)return;Ue.x=window.innerWidth,Ue.y=window.innerHeight,h.style.height=Ue.y+"px"}if(I.x=o.scrollWrap.clientWidth,I.y=o.scrollWrap.clientHeight,pn(),P.x=I.x+Math.round(I.x*s.spacing),P.y=I.y,at(P.x*ee),m("beforeResize"),void 0!==X){for(var n,i,r,a=0;a<3;a++)De((a+X)*P.x,(n=x[a]).el.style),r=p+a-1,s.loop&&k()>2&&(r=ot(r)),(i=le(r))&&(et||i.needsUpdate||!i.bounds)?(o.cleanSlide(i),o.setContent(n,r),1===a&&(o.currItem=i,o.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===n.index&&r>=0&&o.setContent(n,r),i&&i.container&&(qe(i,I),ve(i),He(i));et=!1}ue=g=o.currItem.initialZoomLevel,(d=o.currItem.bounds)&&(u.x=d.center.x,u.y=d.center.y,C(!0)),m("resize")},zoomTo:function(e,t,n,i,r){t&&(ue=g,Ke.x=Math.abs(t.x)-u.x,Ke.y=Math.abs(t.y)-u.y,S(we,u));var a=Mt(e,!1),f={};dn("x",a,f,e),dn("y",a,f,e);var y=g,v_x=u.x,v_y=u.y;un(f);var c=function(_){1===_?(g=e,u.x=f.x,u.y=f.y):(g=(e-y)*_+y,u.x=(f.x-v_x)*_+v_x,u.y=(f.y-v_y)*_+v_y),r&&r(_),C(1===_)};n?Ye("customZoomTo",0,1,n,i||l.easing.sine.inOut,c):c(1)}},E={},de={},M={},A={},Ie={},ne=[],pe={},he=[],Se={},st=0,ut={x:0,y:0},Rt=0,q={x:0,y:0},Ke={x:0,y:0},Me={x:0,y:0},vn=function(e,t){return Se.x=Math.abs(e.x-t.x),Se.y=Math.abs(e.y-t.y),Math.sqrt(Se.x*Se.x+Se.y*Se.y)},Ft=function(){ft&&(Ct(ft),ft=null)},_n=function(){H&&(ft=rt(_n),jn())},Nt=function(e,t){return!(!e||e===document||e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:Nt(e.parentNode,t))},Ae={},wn=function(e,t){return Ae.prevent=!Nt(e.target,s.isClickableElement),m("preventDragEvent",e,t,Ae),Ae.prevent},bn=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},xn=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},Cn=function(){return 1-Math.abs((u.y-o.currItem.initialPosition.y)/(I.y/2))},Ve={},Vn={},oe=[],Ut=function(e){for(;oe.length>0;)oe.pop();return te?(ht=0,ne.forEach(function(t){0===ht?oe[0]=t:1===ht&&(oe[1]=t),ht++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(oe[0]=bn(e.touches[0],Ve),e.touches.length>1&&(oe[1]=bn(e.touches[1],Vn))):(Ve.x=e.pageX,Ve.y=e.pageY,Ve.id="",oe[0]=Ve),oe},Dn=function(e,t){var n,a,c,_,r=u[e]+t[e],y=q.x+t.x,v=q.x-pe.x;if(r=u[e]+t[e]*(n=r>d.min[e]||r<d.max[e]?s.panEndFriction:1),(s.allowPanToNext||g===o.currItem.initialZoomLevel)&&(B?"h"===re&&"x"===e&&!me&&(t[e]>0?(r>d.min[e]&&(n=s.panEndFriction,a=d.min[e]-we[e]),(a<=0||v<0)&&k()>1?(_=y,v<0&&y>pe.x&&(_=pe.x)):d.min.x!==d.max.x&&(c=r)):(r<d.max[e]&&(n=s.panEndFriction,a=we[e]-d.max[e]),(a<=0||v>0)&&k()>1?(_=y,v>0&&y<pe.x&&(_=pe.x)):d.min.x!==d.max.x&&(c=r))):_=y,"x"===e))return void 0!==_&&(at(_,!0),ie=_!==pe.x),d.min.x!==d.max.x&&(void 0!==c?u.x=c:ie||(u.x+=t.x*n)),void 0!==_;O||ie||g>o.currItem.fitRatio&&(u[e]+=t[e]*n)},qn=function(e){if(!("mousedown"===e.type&&e.button>0)){if(Oe)return void e.preventDefault();if(!(ze&&"mousedown"===e.type||function(e,t){return Ae.prevent=Nt(e.target,s.isDraggingElement),m("preventDragEvent",e,t,Ae),Ae.prevent}(e,!0))){if(wn(e,!0)&&e.preventDefault(),m("pointerDown"),te){var t=l.arraySearch(ne,e.pointerId,"id");t<0&&(t=ne.length),ne[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Ut(e),i=n.length;F=null,We(),(!H||1===i)&&(H=Zt=!0,l.bind(window,Ze,o),Pt=pt=ct=Xe=ie=Ee=kt=me=!1,re=null,m("firstTouchStart",n),S(we,u),Q.x=Q.y=0,S(A,n[0]),S(Ie,A),pe.x=P.x*ee,he=[{x:A.x,y:A.y}],lt=mn=L(),Mt(g,!0),Ft(),_n()),!V&&i>1&&!O&&!ie&&(ue=g,me=!1,V=kt=!0,Q.y=Q.x=0,S(we,u),S(E,n[0]),S(de,n[1]),xn(E,de,Me),Ke.x=Math.abs(Me.x)-u.x,Ke.y=Math.abs(Me.y)-u.y,gn=vn(E,de))}}},$n=function(e){if(e.preventDefault(),te){var t=l.arraySearch(ne,e.pointerId,"id");if(t>-1){var n=ne[t];n.x=e.pageX,n.y=e.pageY}}if(H){var i=Ut(e);if(re||Ee||V)F=i;else if(q.x!==P.x*ee)re="h";else{var r=Math.abs(i[0].x-A.x)-Math.abs(i[0].y-A.y);Math.abs(r)>=10&&(re=r>0?"h":"v",F=i)}}},jn=function(){if(F){var e=F.length;if(0!==e)if(S(E,F[0]),M.x=E.x-A.x,M.y=E.y-A.y,V&&e>1){if(A.x=E.x,A.y=E.y,!M.x&&!M.y&&function(e,t){return e.x===t.x&&e.y===t.y}(F[1],de))return;S(de,F[1]),me||(me=!0,m("zoomGestureStarted"));var t=vn(E,de),n=ni(t);n>o.currItem.initialZoomLevel+o.currItem.initialZoomLevel/15&&(pt=!0);var i=1,r=fn(),a=cn();if(n<r)if(s.pinchToClose&&!pt&&ue<=o.currItem.initialZoomLevel){var y=1-(r-n)/(r/1.2);K(y),m("onPinchClose",y),ct=!0}else(i=(r-n)/r)>1&&(i=1),n=r-i*(r/3);else n>a&&((i=(n-a)/(6*r))>1&&(i=1),n=a+i*r);i<0&&(i=0),xn(E,de,ut),Q.x+=ut.x-Me.x,Q.y+=ut.y-Me.y,S(Me,ut),u.x=It("x",n),u.y=It("y",n),Pt=n>g,g=n,C()}else{if(!re||(Zt&&(Zt=!1,Math.abs(M.x)>=10&&(M.x-=F[0].x-Ie.x),Math.abs(M.y)>=10&&(M.y-=F[0].y-Ie.y)),A.x=E.x,A.y=E.y,0===M.x&&0===M.y))return;if("v"===re&&s.closeOnVerticalDrag&&"fit"===s.scaleMode&&g===o.currItem.initialZoomLevel){Q.y+=M.y,u.y+=M.y;var v=Cn();return Xe=!0,m("onVerticalDrag",v),K(v),void C()}(function(e,t,n){if(e-lt>50){var i=he.length>2?he.shift():{};i.x=t,i.y=n,he.push(i),lt=e}})(L(),E.x,E.y),Ee=!0,d=o.currItem.bounds,Dn("x",M)||(Dn("y",M),un(u),C())}}},Jn=function(e){if(w.isOldAndroid){if(ze&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(ze),ze=setTimeout(function(){ze=0},600))}var t;if(m("pointerUp"),wn(e,!1)&&e.preventDefault(),te){var n=l.arraySearch(ne,e.pointerId,"id");n>-1&&(t=ne.splice(n,1)[0],navigator.msPointerEnabled?(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")):t.type=e.pointerType||"mouse")}var a,r=Ut(e),f=r.length;if("mouseup"===e.type&&(f=0),2===f)return F=null,!0;1===f&&S(Ie,r[0]),0===f&&!re&&!O&&(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"})),m("touchRelease",e,t));var y=-1;
1if(0===f&&(H=!1,l.unbind(window,Ze,o),Ft(),V?y=0:-1!==Rt&&(y=L()-Rt)),Rt=1===f?L():-1,a=-1!==y&&y<150?"zoom":"swipe",V&&f<2&&(V=!1,1===f&&(a="zoomPointerUp"),m("zoomGestureEnded")),F=null,Ee||me||O||Xe){if(We(),Ge||(Ge=Qn()),Ge.calculateSwipeSpeed("x"),Xe){if(Cn()<s.verticalDragRange)o.close();else{var c=u.y,_=dt;Ye("verticalDrag",0,1,300,l.easing.cubic.out,function($){u.y=(o.currItem.initialPosition.y-c)*$+c,K((1-_)*$+_),C()}),m("onVerticalDrag",1)}return}if((ie||O)&&0===f){if(ti(a,Ge))return;a="zoomPointerUp"}if(!O){if("swipe"!==a)return void ii();!ie&&g>o.currItem.fitRatio&&ei(Ge)}}},Qn=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){he.length>1?(e=L()-lt+50,t=he[he.length-2][i]):(e=L()-mn,t=Ie[i]),n.lastFlickOffset[i]=A[i]-t,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickSpeed[i]=n.lastFlickDist[i]>20?n.lastFlickOffset[i]/e:0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(i,r){n.backAnimStarted[i]||(u[i]>d.min[i]?n.backAnimDestination[i]=d.min[i]:u[i]<d.max[i]&&(n.backAnimDestination[i]=d.max[i]),void 0!==n.backAnimDestination[i]&&(n.slowDownRatio[i]=.7,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatioAbs[i]<.05&&(n.lastFlickSpeed[i]=0,n.backAnimStarted[i]=!0,Ye("bounceZoomPan"+i,u[i],n.backAnimDestination[i],r||300,l.easing.sine.out,function(a){u[i]=a,C()}))))},calculateAnimOffset:function(i){n.backAnimStarted[i]||(n.speedDecelerationRatio[i]=n.speedDecelerationRatio[i]*(n.slowDownRatio[i]+n.slowDownRatioReverse[i]-n.slowDownRatioReverse[i]*n.timeDiff/10),n.speedDecelerationRatioAbs[i]=Math.abs(n.lastFlickSpeed[i]*n.speedDecelerationRatio[i]),n.distanceOffset[i]=n.lastFlickSpeed[i]*n.speedDecelerationRatio[i]*n.timeDiff,u[i]+=n.distanceOffset[i])},panAnimLoop:function(){if(R.zoomPan&&(R.zoomPan.raf=rt(n.panAnimLoop),n.now=L(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),C(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return u.x=Math.round(u.x),u.y=Math.round(u.y),C(),void Be("zoomPan")}};return n},ei=function(e){if(e.calculateSwipeSpeed("y"),d=o.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;At("zoomPan"),e.lastNow=L(),e.panAnimLoop()},ti=function(e,t){var n,i,f;if(O||(st=p),"swipe"===e){var r=A.x-Ie.x,a=t.lastFlickDist.x<10;r>30&&(a||t.lastFlickOffset.x>20)?i=-1:r<-30&&(a||t.lastFlickOffset.x<-20)&&(i=1)}i&&((p+=i)<0?(p=s.loop?k()-1:0,f=!0):p>=k()&&(p=s.loop?0:k()-1,f=!0),(!f||s.loop)&&(U+=i,ee-=i,n=!0));var c,y=P.x*ee,v=Math.abs(y-q.x);return n||y>q.x==t.lastFlickSpeed.x>0?(c=Math.abs(t.lastFlickSpeed.x)>0?v/Math.abs(t.lastFlickSpeed.x):333,c=Math.min(c,400),c=Math.max(c,250)):c=333,st===p&&(n=!1),O=!0,m("mainScrollAnimStart"),Ye("mainScroll",q.x,y,c,l.easing.cubic.out,at,function(){We(),O=!1,st=-1,(n||st!==p)&&o.updateCurrItem(),m("mainScrollAnimComplete")}),n&&o.updateCurrItem(!0),n},ni=function(e){return 1/gn*e*ue},ii=function(){var e=g,t=fn(),n=cn();g<t?e=t:g>n&&(e=n);var r,a=dt;return ct&&!Pt&&!pt&&g<t?(o.close(),!0):(ct&&(r=function(f){K((1-a)*f+a)}),o.zoomTo(e,0,200,l.easing.cubic.out,r),!0)};Le("Gestures",{publicMethods:{initGestures:function(){var e=function(t,n,i,r,a){tt=t+n,nt=t+i,Fe=t+r,Ne=a?t+a:""};(te=w.pointerEvent)&&w.touch&&(w.touch=!1),te?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):w.touch?(e("touch","start","move","end","cancel"),z=!0):e("mouse","down","move","up"),Ze=nt+" "+Fe+" "+Ne,Qe=tt,te&&!z&&(z=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),o.likelyTouchDevice=z,T[tt]=qn,T[nt]=$n,T[Fe]=Jn,Ne&&(T[Ne]=T[Fe]),w.touch&&(Qe+=" mousedown",Ze+=" mousemove mouseup",T.mousedown=T[tt],T.mousemove=T[nt],T.mouseup=T[Fe]),z||(s.allowPanToNext=!1)}}});var ye,ae,Lt,Oe,le,k,Tn=function(e,t,n,i){var r;ye&&clearTimeout(ye),Oe=!0,Lt=!0,e.initialLayout?(r=e.initialLayout,e.initialLayout=null):r=s.getThumbBoundsFn&&s.getThumbBoundsFn(p);var v,c,a=n?s.hideAnimationDuration:s.showAnimationDuration,f=function(){Be("initialZoom"),n?(o.template.removeAttribute("style"),o.bg.removeAttribute("style")):(K(1),t&&(t.style.display="block"),l.addClass(h,"pswp--animated-in"),m("initialZoom"+(n?"OutEnd":"InEnd"))),i&&i(),Oe=!1};if(!a||!r||void 0===r.x)return m("initialZoom"+(n?"Out":"In")),g=e.initialZoomLevel,S(u,e.initialPosition),C(),h.style.opacity=n?0:1,K(1),void(a?setTimeout(function(){f()},a):f());v=vt,c=!o.currItem.src||o.currItem.loadError||s.showHideOpacity,e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),n||(g=r.
1w/e.w,u.x=r.x,u.y=r.y-ln,o[c?"template":"bg"].style.opacity=.001,C()),At("initialZoom"),n&&!v&&l.removeClass(h,"pswp--animated-in"),c&&(n?l[(v?"remove":"add")+"Class"](h,"pswp--animate_opacity"):setTimeout(function(){l.addClass(h,"pswp--animate_opacity")},30)),ye=setTimeout(function(){if(m("initialZoom"+(n?"Out":"In")),n){var _=r.w/e.w,Y={x:u.x,y:u.y},$=g,Re=dt,je=function(G){1===G?(g=_,u.x=r.x,u.y=r.y-fe):(g=(_-$)*G+$,u.x=(r.x-Y.x)*G+Y.x,u.y=(r.y-fe-Y.y)*G+Y.y),C(),c?h.style.opacity=1-G:K(Re-G*Re)};v?Ye("initialZoom",0,1,a,l.easing.cubic.out,je,f):(je(1),ye=setTimeout(f,a+20))}else g=e.initialZoomLevel,S(u,e.initialPosition),C(),K(1),c?h.style.opacity=1:K(1),ye=setTimeout(f,a+20)},n?25:90)},N={},ge=[],ri={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 ae.length}},qe=function(e,t,n){if(e.src&&!e.loadError){var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),m("parseVerticalMargin",e)),N.x=t.x,N.y=t.y-e.vGap.top-e.vGap.bottom,i){var r=N.x/e.w,a=N.y/e.h;e.fitRatio=r<a?r:a;var f=s.scaleMode;"orig"===f?n=1:"fit"===f&&(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}})}return n?(function(e,t,n){var i=e.bounds;i.center.x=Math.round((N.x-t)/2),i.center.y=Math.round((N.y-n)/2)+e.vGap.top,i.max.x=t>N.x?Math.round(N.x-t):i.center.x,i.max.y=n>N.y?Math.round(N.y-n)+e.vGap.top:i.center.y,i.min.x=t>N.x?0:i.center.x,i.min.y=n>N.y?e.vGap.top:i.center.y}(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0}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},mt=function(e,t,n,i,r,a){t.loadError||i&&(t.imageAppended=!0,ve(t,i,t===o.currItem&&ce),n.appendChild(i),a&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},Sn=function(e){e.loading=!0,e.loaded=!1;var t=e.img=l.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},En=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=s.errorMsg.replace("%url%",e.
1src),!0},ve=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var i=n?e.w:Math.round(e.w*e.fitRatio),r=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=r+"px"),t.style.width=i+"px",t.style.height=r+"px"}},Mn=function(){if(ge.length){for(var e,t=0;t<ge.length;t++)(e=ge[t]).holder.index===e.index&&mt(0,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);ge=[]}};Le("Controller",{publicMethods:{lazyLoadItem:function(e){e=ot(e);var t=le(e);!t||(t.loaded||t.loading)&&!et||(m("gettingData",e,t),t.src&&Sn(t))},initController:function(){l.extend(s,ri,!0),o.items=ae=Zn,le=o.getItemAt,(k=s.getNumItemsFn)()<3&&(s.loop=!1),b("beforeChange",function(e){var a,t=s.preload,n=null===e||e>=0,i=Math.min(t[0],k()),r=Math.min(t[1],k());for(a=1;a<=(n?r:i);a++)o.lazyLoadItem(p+a);for(a=1;a<=(n?i:r);a++)o.lazyLoadItem(p-a)}),b("initialLayout",function(){o.currItem.initialLayout=s.getThumbBoundsFn&&s.getThumbBoundsFn(p)}),b("mainScrollAnimComplete",Mn),b("initialZoomInEnd",Mn),b("destroy",function(){for(var e,t=0;t<ae.length;t++)(e=ae[t]).container&&ke(e),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);ge=null})},getItemAt:function(e){return e>=0&&void 0!==ae[e]&&ae[e]},allowProgressiveImg:function(){return s.forceProgressiveLoading||!z||s.mouseUsed||screen.width>1200},setContent:function(e,t,n){s.loop&&(t=ot(t));var i=o.getItemAt(e.index);i&&ke(i);var a,r=o.getItemAt(t);if(r){if(n||!r.onFocusOnly){m("gettingData",t,r),e.index=t,e.item=r;var f=r.container=l.createEl("pswp__zoom-wrap");if(!r.src&&r.html&&(r.html.tagName?f.appendChild(r.html):f.innerHTML=r.html),En(r),qe(r,I),!r.src||r.loadError||r.loaded)r.src&&!r.loadError&&((a=l.createEl("pswp__img","img")).style.opacity=1,a.src=r.src,ve(r,a),mt(0,r,f,a));else{if(r.loadComplete=function(c){if(_e){if(e&&e.index===t){if(En(c,!0))return c.loadComplete=c.img=null,qe(c,I),He(c),void(e.index===p&&o.updateCurrZoomItem());c.imageAppended?!Oe&&c.placeholder&&(c.placeholder.style.display="none",c.placeholder=null):w.transform&&(O||Oe)?ge.push({item:c,baseDiv:f,img:c.img,index:t,holder:e,clearPlaceholder:!0}):mt(0,c,f,c.img,0,!0)}c.loadComplete=null,c.img=null,m("imageLoadComplete",t,c)}},l.features.transform){var y="pswp__img pswp__img--placeholder",v=l.createEl(y+=r.msrc?"":" pswp__img--placeholder--blank",r.msrc?"img":"");r.msrc&&(v.src=r.msrc),ve(r,v),f.appendChild(v),r.placeholder=v}r.loading||Sn(r),o.allowProgressiveImg()&&(!Lt&&w.transform?ge.push({item:r,baseDiv:f,img:r.img,index:t,holder:e}):mt(0,r,f,r.img,0,!0))}Lt||t!==p?He(r):(B=f.style,Tn(r,a||r.img)),e.el.innerHTML="",e.el.appendChild(f)}}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 se,Z,Ht={},Bt=function(e,t,n){var i=document.createEvent("CustomEvent");i.initCustomEvent("pswpTap",!0,!0,{origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"}),e.target.dispatchEvent(i)};Le("Tap",{publicMethods:{initTap:function(){b("firstTouchStart",o.onTapStart),b("touchRelease",o.onTapRelease),b("destroy",function(){Ht={},se=null})},onTapStart:function(e){e.length>1&&(clearTimeout(se),se=null)},onTapRelease:function(e,t){if(t&&!Ee&&!kt&&!Te){var n=t;if(se&&(clearTimeout(se),se=null,function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25}(n,Ht)))return void m("doubleTap",n);if("mouse"===t.type)return void Bt(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||l.hasClass(e.target,"pswp__single-tap"))return void Bt(e,t);S(Ht,n),se=setTimeout(function(){Bt(e,t),se=null},300)}}}}),Le("DesktopZoom",{publicMethods:{initDesktopZoom:function(){Dt||(z?b("mouseUsed",function(){o.setupDesktopZoom()}):o.setupDesktopZoom(!0))},setupDesktopZoom:function(e){Z={};var t="wheel mousewheel DOMMouseScroll";b("bindEvents",function(){l.bind(h,t,o.handleMouseWheel)}),b("unbindEvents",function(){Z&&l.unbind(h,t,o.handleMouseWheel)}),o.mouseZoomedIn=!1;var n,i=function(){o.mouseZoomedIn&&(l.removeClass(h,"pswp--zoomed-in"),o.mouseZoomedIn=!1),g<1?l.addClass(h,"pswp--zoom-allowed"):l.removeClass(h,"pswp--zoom-allowed"),r()},r=function(){n&&(l.removeClass(h,"pswp--dragging"),n=!1)};
1b("resize",i),b("afterChange",i),b("pointerDown",function(){o.mouseZoomedIn&&(n=!0,l.addClass(h,"pswp--dragging"))}),b("pointerUp",r),e||i()},handleMouseWheel:function(e){const t=document.querySelector(".pswp__thumbs");try{if(t.contains(e.target))return}catch(a){console.log("error",a)}if(g<=o.currItem.fitRatio&&s.modal)if(!s.closeOnScroll||Te||H){const a=document.querySelector(".pswp__thumbs");try{if(a.contains(e.target))return}catch(f){console.log("error",f)}e.preventDefault()}else xe&&Math.abs(e.deltaY)>2&&(vt=!0,o.close());if(e.stopPropagation(),Z.x=0,"deltaX"in e)1===e.deltaMode?(Z.x=18*e.deltaX,Z.y=18*e.deltaY):(Z.x=e.deltaX,Z.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Z.x=-.16*e.wheelDeltaX),Z.y=e.wheelDeltaY?-.16*e.wheelDeltaY:-.16*e.wheelDelta;else{if(!("detail"in e))return;Z.y=e.detail}Mt(g,!0);var n=u.x-Z.x,i=u.y-Z.y;if((s.modal||n<=d.min.x&&n>=d.max.x&&i<=d.min.y&&i>=d.max.y)&&e.preventDefault(),o.panTo(n,i),s.mouseWheelZoom){var r={x:e.x,y:e.y};e.wheelDeltaY>0&&g<=o.currItem.fitRatio?(s.getDoubleTapZoom(!0,o.currItem),o.zoomTo(1,r,0)):e.wheelDeltaY<0&&g>o.currItem.fitRatio&&(s.getDoubleTapZoom(!0,o.currItem),o.zoomTo(o.currItem.initialZoomLevel,r,0))}},toggleDesktopZoom:function(e){e=e||{x:I.x/2+be.x,y:I.y/2+be.y};var t=s.getDoubleTapZoom(!0,o.currItem),n=g>t;o.mouseZoomedIn=!n,o.zoomTo(n?o.currItem.initialZoomLevel:t,e,333),l[(n?"remove":"add")+"Class"](h,"pswp--zoomed-in")}}});var Wt,An,$e,yt,Yt,On,D,Pe,Gt,Xt,W,zt,li={history:!0,galleryUID:1},Kt=function(){return W.hash.substring(1)},Pn=function(){Wt&&clearTimeout(Wt),$e&&clearTimeout($e)},Rn=function(){var e=Kt(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n<i.length;n++)if(i[n]){var r=i[n].split("=");r.length<2||(t[r[0]]=r[1])}if(s.galleryPIDs){var a=t.pid;for(t.pid=0,n=0;n<ae.length;n++)if(ae[n].pid===a){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},Vt=function(){if($e&&clearTimeout($e),Te||H)$e=setTimeout(Vt,500);else{yt?clearTimeout(An):yt=!0;var e=p+1,t=le(p);t.hasOwnProperty("pid")&&(e=t.pid);var n=D+"&gid="+s.galleryUID+"&pid="+e;Pe||-1===W.hash.indexOf(n)&&(Xt=!0);var i=W.href.split("#")[0]+"#"+n;zt?"#"+n!==window.location.hash&&history[Pe?"replaceState":"pushState"]("",document.title,i):Pe?W.replace(i):W.hash=n,Pe=!0,An=setTimeout(function(){yt=!1},60)}};Le("History",{publicMethods:{initHistory:function(){if(l.extend(s,li,!0),s.history){W=window.location,Xt=!1,Gt=!1,Pe=!1,D=Kt(),zt="pushState"in history,D.indexOf("gid=")>-1&&(D=(D=D.split("&gid=")[0]).split("?gid=")[0]),b("afterChange",o.updateURL),b("unbindEvents",function(){l.unbind(window,"hashchange",o.onHashChange)});var e=function(){On=!0,Gt||(Xt?history.back():D?W.hash=D:zt?history.pushState("",document.title,W.pathname+W.search):W.hash=""),Pn()};b("unbindEvents",function(){vt&&e()}),b("destroy",function(){On||e()}),b("firstUpdate",function(){p=Rn().pid});var t=D.indexOf("pid=");t>-1&&"&"===(D=D.substring(0,t)).slice(-1)&&(D=D.slice(0,-1)),setTimeout(function(){_e&&l.bind(window,"hashchange",o.onHashChange)},40)}},onHashChange:function(){if(Kt()===D)return Gt=!0,void o.close();yt||(Yt=!0,o.goTo(Rn().pid),Yt=!1)},updateURL:function(){Pn(),!Yt&&(Pe?Wt=setTimeout(Vt,800):Vt())}}}),l.extend(o,Wn)}},void 0!==(gt=Je.call(Jt,kn,Jt,jt))&&(jt.exports=gt)}}]);
2//# sourceMappingURL=761.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.