PageSourceSearch

https://phototitles.uk/_next/static/chunks/982-9b776f206ef69b50.js

js phototitles.uk collected 2026-10-10 02:14:04 UTC 54,979 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[982],{6982:function(e,t,n){var i;i=e=>(()=>{var t={703:(e,t,n)=>{"use strict";var i=n(414);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,s){if(s!==i){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,i="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,a){try{return function e(a,s){if(a===s)return!0;if(a&&s&&"object"==typeof a&&"object"==typeof s){var o,l,u,c;if(a.constructor!==s.constructor)return!1;if(Array.isArray(a)){if((o=a.length)!=s.length)return!1;for(l=o;0!=l--;)if(!e(a[l],s[l]))return!1;return!0}if(n&&a instanceof Map&&s instanceof Map){if(a.size!==s.size)return!1;for(c=a.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return!1;for(c=a.entries();!(l=c.next()).done;)if(!e(l.value[1],s.get(l.value[0])))return!1;return!0}if(i&&a instanceof Set&&s instanceof Set){if(a.size!==s.size)return!1;for(c=a.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(s)){if((o=a.length)!=s.length)return!1;for(l=o;0!=l--;)if(a[l]!==s[l])return!1;return!0}if(a.constructor===RegExp)return a.source===s.source&&a.flags===s.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===s.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===s.toString();if((o=(u=Object.keys(a)).length)!==Object.keys(s).length)return!1;for(l=o;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,u[l]))return!1;if(t&&a instanceof Element)return!1;for(l=o;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!a.$$typeof)&&!e(a[u[l]],s[u[l]]))return!1;return!0}return a!=a&&s!=s}(e,a)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},359:t=>{"use strict";t.exports=e}},i={};function r(e){var n=i[e];if(void 0!==n)return n.exports;var a=i[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";function e(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(i=e(t[n]))&&(r&&(r+=" "),r+=i);else for(n in t)t[n]&&(r&&(r+=" "),r+=n)}return r}(e))&&(i&&(i+=" "),i+=t);return i}r.r(a),r.d(a,{default:()=>eN});var t=r(359),i=r.n(t);let s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var l="object"==typeof self&&self&&self.Object===Object&&self;let u=o||l||Function("return this")(),c=function(){return u.Date.now()};var h=/\s/,d=/^\s+/;let p=u.Symbol;var f=Object.prototype,m=f.hasOwnProperty,b=f.toString,g=p?p.toStringTag:void 0,v=Object.prototype.toString,y=p?p.toStringTag:void 0,w=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,T=/^0o[0-7]+$/i,O=parseInt;let E=function(e){if("number"==typeof e)return e;if("symbol"==typeof(n=e)||null!=n&&"object"==typeof n&&"[object Symbol]"==(null==(t=n)?void 0===t?"[object Undef
1ined]":"[object Null]":y&&y in Object(t)?function(e){var t=m.call(e,g),n=e[g];try{e[g]=void 0;var i=!0}catch(e){}var r=b.call(e);return i&&(t?e[g]=n:delete e[g]),r}(t):v.call(t)))return NaN;if(s(e)){var t,n,i,r="function"==typeof e.valueOf?e.valueOf():e;e=s(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(i=e)?i.slice(0,function(e){for(var t=e.length;t--&&h.test(e.charAt(t)););return t}(i)+1).replace(d,""):i;var a=S.test(e);return a||T.test(e)?O(e.slice(2),a?2:8):w.test(e)?NaN:+e};var k=Math.max,I=Math.min;let P=function(e,t,n){var i,r,a,o,l,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var n=i,a=r;return i=r=void 0,h=t,o=e.apply(a,n)}function b(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-h>=a}function g(){var e,n=c();if(b(n))return v(n);l=setTimeout(g,(e=t-(n-u),p?I(e,a-(n-h)):e))}function v(e){return l=void 0,f&&i?m(e):(i=r=void 0,o)}function y(){var e,n=c(),a=b(n);if(i=arguments,r=this,u=n,a){if(void 0===l)return h=e=u,l=setTimeout(g,t),d?m(e):o;if(p)return clearTimeout(l),l=setTimeout(g,t),m(u)}return void 0===l&&(l=setTimeout(g,t)),o}return t=E(t)||0,s(n)&&(d=!!n.leading,a=(p="maxWait"in n)?k(E(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),h=0,i=u=r=l=void 0},y.flush=function(){return void 0===l?o:v(c())},y},j=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw TypeError("Expected a function");return s(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),P(e,t,{leading:i,maxWait:t,trailing:r})};var x=r(590),_=r.n(x),M=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,i){return e[0]===t&&(n=i,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),R="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,L=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),D="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(L):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},W=["top","right","bottom","left","width","height","size","weight"],C="undefined"!=typeof MutationObserver,F=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,r=0;function a(){n&&(n=!1,e()),i&&o()}function s(){D(a)}function o(){var e=Date.now();if(n){if(e-r<2)return;i=!0}else n=!0,i=!1,setTimeout(s,20);r=e}return o}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){R&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),C?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){R&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;W.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
1w e),this.instance_},e.instance_=null,e}(),z=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},N=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||L},B=q(0,0,0,0);function A(e){return parseFloat(e)||0}function U(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+A(e["border-"+n+"-width"])},0)}var G="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof N(e).SVGGraphicsElement}:function(e){return e instanceof N(e).SVGElement&&"function"==typeof e.getBBox};function q(e,t,n,i){return{x:e,y:t,width:n,height:i}}var H=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=q(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t,n=(e=this.target,R?G(e)?q(0,0,(t=e.getBBox()).width,t.height):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return B;var i=N(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],a=e["padding-"+r];t[r]=A(a)}return t}(i),a=r.left+r.right,s=r.top+r.bottom,o=A(i.width),l=A(i.height);if("border-box"===i.boxSizing&&(Math.round(o+a)!==t&&(o-=U(i,"left","right")+a),Math.round(l+s)!==n&&(l-=U(i,"top","bottom")+s)),e!==N(e).document.documentElement){var u=Math.round(o+a)-t,c=Math.round(l+s)-n;1!==Math.abs(u)&&(o-=u),1!==Math.abs(c)&&(l-=c)}return q(r.left,r.top,o,l)}(e):B);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),K=function(e,t){var n,i,r,a,s,o=(n=t.x,i=t.y,r=t.width,a=t.height,z(s=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:i,width:r,height:a,top:i,right:n+r,bottom:a+i,left:n}),s);z(this,{target:e,contentRect:o})},V=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new M,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof N(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new H(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof N(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new K(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),X="undefined"!=typeof WeakMap?new WeakMap:new M,$=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new V(t,F.getInstance(),this);X.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){$.prototype[e]=function(){var t;return(t=X.get(this))[e].apply(t,arguments)}});let Y=void 0!==L.ResizeObserver?L.ResizeObserver:$,J="Left",Q="Right",Z="Down",ee={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},et={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},en="mousemove",ei="mouseup";function er(e,t){if(0===t)return e;let n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}var ea=r(697);function es(e){return(es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?eo(Object(n),!0).forEach(function(t){(function(e,t,n){var i;(i=function(e,t){if("object"!==es(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==es(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t,"string"),(t="symbol"===es(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eu={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},ec=i().memo(function(e){var t=el(el({},eu),e),n=t.description,r=t.fullscreen,a=t.handleImageLoaded,s=t.isFullscreen,o=t.onImageError,l=t.original,u=t.originalAlt,c=t.originalHeight,h=t.originalWidth,d=t.originalTitle,p=t.sizes,f=t.srcSet,m=t.loading,b=s&&r||l;return i().createElement(i().Fragment,null,i().createElement("img",{className:"image-gallery-image",src:b,alt:u,srcSet:f,height:c,width:h,sizes:p,title:d,onLoad:function(e){return a(e,l)},onError:o,loading:m}),n&&i().createElement("span",{className:"image-gallery-description"},n))});function eh(e){return(eh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach(function(t){(function(e,t,n){var i;(i=function(e,t){if("object"!==eh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==eh(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t,"string"),(t="symbol"===eh(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}ec.displayName="Item",ec.propTypes={description:ea.string,fullscreen:ea.string,handleImageLoaded:ea.func.isRequired,isFullscreen:ea.bool,onImageError:ea.func.isRequired,original:ea.string.isRequired,originalAlt:ea.string,originalHeight:ea.string,originalWidth:ea.string,originalTitle:ea.string,
1sizes:ea.string,srcSet:ea.string,loading:ea.string};var ef={left:i().createElement("polyline",{points:"15 18 9 12 15 6"}),right:i().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:i().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:i().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:i().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:i().createElement(i().Fragment,null,i().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),i().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},em={strokeWidth:1,viewBox:"0 0 24 24"},eb=function(e){var t=ep(ep({},em),e),n=t.strokeWidth,r=t.viewBox,a=t.icon;return i().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:r,fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"},ef[a])};eb.propTypes={strokeWidth:ea.number,viewBox:ea.string,icon:(0,ea.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};var eg=i().memo(function(e){var t=e.isFullscreen,n=e.onClick;return i().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:n,"aria-label":"Open Fullscreen"},i().createElement(eb,{strokeWidth:2,icon:t?"minimize":"maximize"}))});
1eg.displayName="Fullscreen",eg.propTypes={isFullscreen:ea.bool.isRequired,onClick:ea.func.isRequired};var ev=i().memo(function(e){var t=e.disabled,n=e.onClick;return i().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:n,"aria-label":"Previous Slide"},i().createElement(eb,{icon:"left",viewBox:"6 0 12 24"}))});ev.displayName="LeftNav",ev.propTypes={disabled:ea.bool.isRequired,onClick:ea.func.isRequired};var ey=i().memo(function(e){var t=e.disabled,n=e.onClick;return i().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:n,"aria-label":"Next Slide"},i().createElement(eb,{icon:"right",viewBox:"6 0 12 24"}))});ey.displayName="RightNav",ey.propTypes={disabled:ea.bool.isRequired,onClick:ea.func.isRequired};var ew=i().memo(function(e){var t=e.isPlaying,n=e.onClick;return i().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:n,"aria-label":"Play or Pause Slideshow"},i().createElement(eb,{strokeWidth:2,icon:t?"pause":"play"}))});function eS(e){return(eS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eO(Object(n),!0).forEach(function(t){(function(e,t,n){var i;(i=function(e,t){if("object"!==eS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==eS(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t,"string"),(t="symbol"===eS(i)?i:String(i))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}ew.displayName="PlayPause",ew.propTypes={isPlaying:ea.bool.isRequired,onClick:ea.func.isRequired};var ek={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},eI=function(e){var n=eE(eE({},ek),e),r=n.children,a=n.className,s=function(e){var n,i,r;let a;let{trackMouse:s}=e,o=t.useRef(Object.assign({},et)),l=t.useRef(Object.assign({},ee)),u=t.useRef(Object.assign({},l.current));for(a in u.current=Object.assign({},l.current),l.current=Object.assign(Object.assign({},ee),e),ee)void 0===l.current[a]&&(l.current[a]=ee[a]);let[c,h]=t.useMemo(()=>(function(e,t){let n=t=>{let n="touches"in t;n&&t.touches.length>1||e((e,r)=>{r.trackMouse&&!n&&(document.addEventListener(en,i),document.addEventListener(ei,a));let{clientX:s,clientY:o}=n?t.touches[0]:t,l=er([s,o],r.rotationAngle);return r.onTouchStartOrOnMouseDown&&r.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),et),{initial:l.slice(),xy:l,start:t.timeStamp||0})})},i=t=>{e((e,n)=>{let i="touches"in t;if(i&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;let{clientX:r,clientY:a}=i?t.touches[0]:t,[s,o]=er([r,a],n.rotationAngle),l=s-e.xy[0],u=o-e.xy[1],c=Math.abs(l),h=Math.abs(u),d=(t.timeStamp||0)-e.start,p=c>h?l>0?Q:J:u>0?Z:"Up",f="number"==typeof n.delta?n.delta:n.delta[p.toLowerCase()]||ee.delta;if(c<f&&h<f&&!e.swiping)return e;let m={absX:c,absY:h,deltaX:l,deltaY:u,dir:p,event:t,first:e.first,initial:e.initial,velocity:Math.sqrt(c*c+h*h)/(d||1),vxvy:[l/(d||1),u/(d||1)]};m.first&&n.onSwipeStart&&n.onSwipeStart(m),n.onSwiping&&n.onSwiping(m);let b=!1;return(n.onSwiping||n.onSwiped||n[`onSwiped${p}`])&&(b=!0),b&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:m,swiping:!0})})},r=t=>{e((e,n)=>{let i;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){i=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(i);let r=n[`onSwiped${i.dir}`];r&&r(i)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}
1),Object.assign(Object.assign(Object.assign({},e),et),{eventData:i})})},a=e=>{document.removeEventListener(en,i),document.removeEventListener(ei,a),r(e)},s=(e,t)=>{let a=()=>{};if(e&&e.addEventListener){let s=Object.assign(Object.assign({},ee.touchEventOptions),t.touchEventOptions),o=[["touchstart",n,s],["touchmove",i,Object.assign(Object.assign({},s),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",r,s]];o.forEach(([t,n,i])=>e.addEventListener(t,n,i)),a=()=>o.forEach(([t,n])=>e.removeEventListener(t,n))}return a},o={ref:t=>{null!==t&&e((e,n)=>{if(e.el===t)return e;let i={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),i.cleanUpTouch=void 0),n.trackTouch&&t&&(i.cleanUpTouch=s(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),i)})}};return t.trackMouse&&(o.onMouseDown=n),[o,s]})(e=>o.current=e(o.current,l.current),{trackMouse:s}),[s]);return o.current=(n=o.current,i=l.current,r=u.current,i.trackTouch&&n.el?n.cleanUpTouch?i.preventScrollOnSwipe!==r.preventScrollOnSwipe||i.touchEventOptions.passive!==r.touchEventOptions.passive?(n.cleanUpTouch(),Object.assign(Object.assign({},n),{cleanUpTouch:h(n.el,i)})):n:Object.assign(Object.assign({},n),{cleanUpTouch:h(n.el,i)}):(n.cleanUpTouch&&n.cleanUpTouch(),Object.assign(Object.assign({},n),{cleanUpTouch:void 0}))),c}({delta:n.delta,onSwiping:n.onSwiping,onSwiped:n.onSwiped});return i().createElement("div",eT({},s,{className:a}),r)};function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ej(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ej(Object(n),!0).forEach(function(t){eL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ej(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function e_(e,t){return(e_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eM(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eR(e){return(eR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
1function eL(e,t,n){return(t=eD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eD(e){var t=function(e,t){if("object"!==eP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!==eP(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===eP(t)?t:String(t)}eI.propTypes={children:ea.node.isRequired,className:ea.string,delta:ea.number,onSwiped:ea.func,onSwiping:ea.func};var eW=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],eC=(0,ea.arrayOf)((0,ea.shape)({srcSet:ea.string,media:ea.string}));function eF(e){var t=parseInt(e.keyCode||e.which||0,10);return 66===t||62===t}var ez=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e_(e,t)}(s,t);var n,r,a=(r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=eR(s);return e=r?Reflect.construct(t,arguments,eR(this).constructor):t.apply(this,arguments),function(e,t){if(t&&("object"===eP(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return eM(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s),eL(eM(t=a.call(this,e)),"onBulletClick",function(e,n){var i=t.props,r=i.onBulletClick,a=i.items,s=t.state.currentIndex;e.target.blur(),s!==n&&(2===a.length?t.slideToIndexWithStyleReset(n,e):t.slideToIndex(n,e)),r&&r(e,n)}),t.state={currentIndex:e.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(e.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},t.loadedImages={},t.imageGallery=i().createRef(),t.thumbnailsWrapper=i().createRef(),t.thumbnails=i().createRef(),t.imageGallerySlideWrapper=i().createRef(),t.handleImageLoaded=t.handleImageLoaded.bind(eM(t)),t.handleKeyDown=t.handleKeyDown.bind(eM(t)),t.handleMouseDown=t.handleMouseDown.bind(eM(t)),t.handleResize=t.handleResize.bind(eM(t)),t.handleTouchMove=t.handleTouchMove.bind(eM(t)),t.handleOnSwiped=t.handleOnSwiped.bind(eM(t)),t.handleScreenChange=t.handleScreenChange.bind(eM(t)),t.handleSwiping=t.handleSwiping.bind(eM(t)),t.handleThumbnailSwiping=t.handleThumbnailSwiping.bind(eM(t)),t.handleOnThumbnailSwiped=t.handleOnThumbnailSwiped.bind(eM(t)),t.onThumbnailMouseLeave=t.onThumbnailMouseLeave.bind(eM(t)),t.handleImageError=t.handleImageError.bind(eM(t)),t.pauseOrPlay=t.pauseOrPlay.bind(eM(t)),t.renderThumbInner=t.renderThumbInner.bind(eM(t)),t.renderItem=t.renderItem.bind(eM(t)),t.slideLeft=t.slideLeft.bind(eM(t)),t.slideRight=t.slideRight.bind(eM(t)),t.toggleFullScreen=t.toggleFullScreen.bind(eM(t)),t.togglePlay=t.togglePlay.bind(eM(t)),t.unthrottledSlideToIndex=t.slideToIndex,t.slideToIndex=j(t.unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(t.lazyLoaded=[]),t}return n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoPlay,n=e.useWindowKeyDown;t&&this.play(),n?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,i=n.items,r=n.lazyLoad,a=n.slideDuration,s=n.slideInterval,o=n.startIndex,l=n.thumbnailPosition,u=n.showThumbnails,c=n.useWindowKeyDown,h=this.state,d=h.currentIndex,p=h.isPlaying,f=e.items.length!==i.length,m=!_()(e.items,i),b=e.startIndex!==o,g=e.thumbnailPosition!==l,v=e.showThumbnails!==u;s===e.slideInterval&&a===e.slideDuration||p&&(this.pause(),this.play()),g&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),v&&u&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),v&&!u&&this.removeThumbn
vendor: 6,147 bytes, line 1
1ailsResizeObserver(),(f||v)&&this.handleResize(),t.currentIndex!==d&&this.slideThumbnailBar(),e.slideDuration!==a&&(this.slideToIndex=j(this.unthrottledSlideToIndex,a,{trailing:!1})),r&&(!e.lazyLoad||m)&&(this.lazyLoaded=[]),c!==e.useWindowKeyDown&&(c?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(b||m)&&this.setState({currentIndex:o,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var e=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),e?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isTransitioning,r=this.props,a=r.onSlide,s=r.slideDuration;this.transitionTimer=window.setTimeout(function(){i&&(e.setState({isTransitioning:!i,isSwipingThumbnail:!1}),a&&a(n))},s+50)}},{key:"onThumbnailClick",value:function(e,t){var n=this.props,i=n.onThumbnailClick,r=n.items,a=this.state.currentIndex;e.target.parentNode.parentNode.blur(),a!==t&&(2===r.length?this.slideToIndexWithStyleReset(t,e):this.slideToIndex(t,e)),i&&i(e,t)}},{key:"onThumbnailMouseOver",value:function(e,t){var n=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){n.slideToIndex(t),n.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var e=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,e&&this.play()}}},{key:"setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"setModalFullscreen",value:function(e){var t=this.props.onScreenChange;this.setState({modalFullscreen:e}),t&&t(e)}},{key:"getThumbsTranslate",value:function(e){var t,n=this.props,i=n.disableThumbnailScroll,r=n.items,a=this.state,s=a.thumbnailsWrapperWidth,o=a.thumbnailsWrapperHeight,l=this.thumbnails&&this.thumbnails.current;if(i)return 0;if(l){if(this.isThumbnailVertical()){if(l.scrollHeight<=o)return 0;t=l.scrollHeight-o}else{if(l.scrollWidth<=s||s<=0)return 0;t=l.scrollWidth-s}return t/(r.length-1)*e}return 0}},{key:"getThumbnailPositionClassName",value:function(e){switch(e){case"left":e=" ".concat("image-gallery-thumbnails-left");break;case"right":e=" ".concat("image-gallery-thumbnails-right");break;case"bottom":e=" ".concat("image-gallery-thumbnails-bottom");break;case"top":e=" ".concat("image-gallery-thumbnails-top")}return e}},{key:"getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n=this.props,i=n.infinite,r=n.items,a="",s="image-gallery-left",o="image-gallery-right";switch(e){case t-1:a=" ".concat(s);break;case t:a=" ".concat("image-gallery-center");break;case t+1:a=" ".concat(o)}return r.length>=3&&i&&(0===e&&t===r.length-1?a=" ".concat(o):e===r.length-1&&0===t&&(a=" ".concat(s))),a}},{key:"getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,i=t.currentSlideOffset,r=t.previousIndex,a=0===e&&1===n,s=1===e&&0===n,o=0===i,l=-100*n+100*e+i;return i>0?this.direction="left":i<0&&(this.direction="right"),s&&i>0&&(l=-100+i),a&&i<0&&(l=100+i),n!==r?0===e&&0===r&&o&&"left"===this.direction?l=100:1===e&&1===r&&o&&"right"===this.direction&&(l=-100):(s&&o&&"left"===this.direction&&(l=-100),a&&o&&"right"===this.direction&&(l=100)),l}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,i=t.currentSlideOffset,r=t.slideStyle,a=this.props,s=a.infinite,o=a.items,l=a.useTranslate3D,u=a.isRTL,c=o.length-1,h=(-100*n+100*e)*(u?-1:1)+i;s&&o.length>2&&(0===n&&e===c?h=-100*(u?-1:1)+i:n===c&&0===e&&(h=100*(u?-1:1)+i)),s&&2===o.length&&(h=this.getTranslateXForTwoSlide(e));var d="translate(".concat(h,"%, 0)");return l&&(d="translate3d(".concat(h,"%, 0, 0)")),ex({display:this.isSlideVisible(e)?"inherit":"none",WebkitTransform:d,MozTransform:d,msTransform:d,OTransform:d,transform:d},r)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var e,t=this.props,n=t.useTranslate3D,i=t.isRTL,r=this.state,a=r.thumbsTranslate,s=r.thumbsStyle,o=i?-1*a:a;return this.isThumbnailVertical()?(e="translate(0, ".concat(a,"px)"),n&&(e="translate3d(0, ".concat(a,"px, 0)"))):(e="translate(".concat(o,"px, 0)"),n&&(e="translate3d(".concat(o,"px, 0, 0)"))),ex({WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e},s)}},{key:"getSlideItems",value:function(){var t=this,n=this.state.currentIndex,r=this.props,a=r.items,s=r.slideOnThumbnailOver,o=r.onClick,l=r.lazyLoad,u=r.onTouchMove,c=r.onTouchEnd,h=r.onTouchStart,d=r.onMouseOver,p=r.onMouseLeave,f=r.renderItem,m=r.renderThumbInner,b=r.showThumbnails,g=r.showBullets,v=[],y=[],w=[];return a.forEach(function(r,a){var S=t.getAlignmentClassName(a),T=r.originalClass?" ".concat(r.originalClass):"",O=r.thumbnailClass?" ".concat(r.thumbnailClass):"",E=r.renderItem||f||t.renderItem,k=r.renderThumbInner||m||t.renderThumbInner,I=!l||S||t.lazyLoaded[a];I&&l&&!t.lazyLoaded[a]&&(t.lazyLoaded[a]=!0);var P=t.getSlideStyle(a),j=i().createElement("div",{"aria-label":"Go to Slide ".concat(a+1),key:"slide-".concat(a),tabIndex:"-1",className:"image-gallery-slide ".concat(S," ").concat(T),style:P,onClick:o,onKeyUp:t.handleSlideKeyUp,onTouchMove:u,onTouchEnd:c,onTouchStart:h,onMouseOver:d,onFocus:d,onMouseLeave:p,role:"button"},I?E(r):i().createElement("div",{style:{height:"100%"}}));
1if(v.push(j),b&&r.thumbnail){var x=e("image-gallery-thumbnail",O,{active:n===a});y.push(i().createElement("button",{key:"thumbnail-".concat(a),type:"button",tabIndex:"0","aria-pressed":n===a?"true":"false","aria-label":"Go to Slide ".concat(a+1),className:x,onMouseLeave:s?t.onThumbnailMouseLeave:null,onMouseOver:function(e){return t.handleThumbnailMouseOver(e,a)},onFocus:function(e){return t.handleThumbnailMouseOver(e,a)},onKeyUp:function(e){return t.handleThumbnailKeyUp(e,a)},onClick:function(e){return t.onThumbnailClick(e,a)}},k(r)))}if(g){var _=e("image-gallery-bullet",r.bulletClass,{active:n===a});w.push(i().createElement("button",{type:"button",key:"bullet-".concat(a),className:_,onClick:function(e){return t.onBulletClick(e,a)},"aria-pressed":n===a?"true":"false","aria-label":"Go to Slide ".concat(a+1)}))}}),{slides:v,thumbnails:y,bullets:w}}},{key:"ignoreIsTransitioning",value:function(){var e=this.props.items,t=this.state,n=t.previousIndex,i=t.currentIndex,r=e.length-1;return Math.abs(n-i)>1&&!(0===n&&i===r)&&!(n===r&&0===i)}},{key:"isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,i=t.previousIndex,r=t.currentIndex;return n&&!(e===i||e===r)}},{key:"isSlideVisible",value:function(e){return!this.slideIsTransitioning(e)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(e)}},{key:"slideThumbnailBar",value:function(){var e=this.state,t=e.currentIndex,n=e.isSwipingThumbnail,i=-this.getThumbsTranslate(t);n||(0===t?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:i,thumbsSwipedTranslate:i}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(e){var t=e.event,n=e.absX,i=e.dir,r=this.props,a=r.disableSwipe,s=r.stopPropagation,o=this.state,l=o.galleryWidth,u=o.isTransitioning,c=o.swipingUpDown,h=o.swipingLeftRight;if("Up"!==i&&i!==Z&&!c||h){if(i!==J&&i!==Q||h||this.setState({swipingLeftRight:!0}),!a){var d=this.props.swipingTransitionDuration;if(s&&t.preventDefault(),u)this.setState({currentSlideOffset:0});else{var p=n/l*100;Math.abs(p)>=100&&(p=100),this.setState({currentSlideOffset:(i===Q?1:-1)*p,slideStyle:{transition:"transform ".concat(d,"ms ease-out")}})}}}else c||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(e){var t=e.event,n=e.absX,i=e.absY,r=e.dir,a=this.props,s=a.stopPropagation,o=a.swipingThumbnailTransitionDuration,l=this.state,u=l.thumbsSwipedTranslate,c=l.thumbnailsWrapperHeight,h=l.thumbnailsWrapperWidth,d=l.swipingUpDown,p=l.swipingLeftRight;if(this.isThumbnailVertical()){if((r===J||r===Q||p)&&!d)return void(p||this.setState({swipingLeftRight:!0}));"Up"!==r&&r!==Z||d||this.setState({swipingUpDown:!0})}else{if(("Up"===r||r===Z||d)&&!p)return void(d||this.setState({swipingUpDown:!0}));r!==J&&r!==Q||p||this.setState({swipingLeftRight:!0})}var f,m,b,g,v=this.thumbnails&&this.thumbnails.current;this.isThumbnailVertical()?(m=Math.abs(f=u+(r===Z?i:-i))>v.scrollHeight-c+20,b=f>20,g=v.scrollHeight<=c):(m=Math.abs(f=u+(r===Q?n:-n))>v.scrollWidth-h+20,b=f>20,g=v.scrollWidth<=h),g||(r===J||"Up"===r)&&m||(r===Q||r===Z)&&b||(s&&t.stopPropagation(),this.setState({thumbsTranslate:f,thumbsStyle:{transition:"transform ".concat(o,"ms ease-out")}}))}},{key:"handleOnThumbnailSwiped",value:function(){var e=this.state.thumbsTranslate,t=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:e,thumbsStyle:{transition:"all ".concat(t,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){return Math.abs(this.state.currentSlideOffset)>this.props.swipeThreshold}},{key:"resetSwipingDirection",value:function(){var e=this.state,t=e.swipingUpDown,n=e.swipingLeftRight;t&&this.setState({swipingUpDown:!1}),n&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(e){var t=e.event,n=e.dir,i=e.velocity,r=this.props,a=r.disableSwipe,s=r.stopPropagation,o=r.flickThreshold;if(!a){var l=this.props.isRTL;s&&t.stopPropagation(),this.resetSwipingDirection(),this.handleOnSwipedTo((n===J?1:-1)*(l?-1:1),i>o&&!("Up"===n||n===Z))}}},{key:"handleOnSwipedTo",value:function(e,t){var n=this.state,i=n.
1currentIndex,r=n.isTransitioning,a=i;(this.sufficientSwipe()||t)&&!r&&(a+=e),(-1!==e||this.canSlideLeft())&&(1!==e||this.canSlideRight())||(a=i),this.unthrottledSlideToIndex(a)}},{key:"handleTouchMove",value:function(e){this.state.swipingLeftRight&&e.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.disableKeyDown,i=t.useBrowserFullscreen,r=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!n)switch(parseInt(e.keyCode||e.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(e);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(e);break;case 27:r&&!i&&this.exitFullScreen()}}},{key:"handleImageError",value:function(e){var t=this.props.onErrorImageURL;t&&-1===e.target.src.indexOf(t)&&(e.target.src=t)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var e=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(e)))}},{key:"initSlideWrapperResizeObserver",value:function(e){var t=this;e&&!e.current||(this.resizeSlideWrapperObserver=new Y(P(function(e){e&&e.forEach(function(e){t.setState({thumbnailsWrapperWidth:e.contentRect.width},t.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(e.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(e){var t=this;e&&!e.current||(this.resizeThumbnailWrapperObserver=new Y(P(function(e){e&&e.forEach(function(e){t.setState({thumbnailsWrapperHeight:e.contentRect.height},t.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(e.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var e=this.props,t=e.onScreenChange,n=e.useBrowserFullscreen,i=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,r=this.imageGallery.current===i;t&&t(r),n&&this.setState({isFullscreen:r})}},{key:"slideToIndex",value:function(e,t){var n=this.state,i=n.currentIndex,r=n.isTransitioning,a=this.props,s=a.items,o=a.slideDuration,l=a.onBeforeSlide;if(!r){t&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var u=s.length-1,c=e;e<0?c=u:e>u&&(c=0),l&&c!==i&&l(c),this.setState({previousIndex:i,currentIndex:c,isTransitioning:c!==i,currentSlideOffset:0,slideStyle:{transition:"all ".concat(o,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"right":"left")}},{key:"slideRight",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"left":"right")}},{key:"slideTo",value:function(e,t){var n=this.state,i=n.currentIndex,r=n.isTransitioning,a=this.props.items,s=i+("left"===t?-1:1);r||(2===a.length?this.slideToIndexWithStyleReset(s,e):this.slideToIndex(s,e))}},{key:"slideToIndexWithStyleReset",value:function(e,t){var n=this,i=this.state,r=i.currentIndex,a=i.currentSlideOffset;this.setState({currentSlideOffset:a+(r>e?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return n.slideToIndex(e,t)},25)})}}
vendor: 9,531 bytes, line 1
1,{key:"handleThumbnailMouseOver",value:function(e,t){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(e,t)}},{key:"handleThumbnailKeyUp",value:function(e,t){eF(e)&&this.onThumbnailClick(e,t)}},{key:"handleSlideKeyUp",value:function(e){eF(e)&&(0,this.props.onClick)(e)}},{key:"isThumbnailVertical",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"addScreenChangeEvent",value:function(){var e=this;eW.forEach(function(t){document.addEventListener(t,e.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var e=this;eW.forEach(function(t){document.removeEventListener(t,e.handleScreenChange)})}},{key:"fullScreen",value:function(){var e=this.props.useBrowserFullscreen,t=this.imageGallery.current;e?t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var e=this.state.isFullscreen,t=this.props.useBrowserFullscreen;e&&(t?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var e=this.props.infinite,t=this.state.currentIndex;e||this.canSlideRight()?this.slideToIndex(t+1):this.pause()}},{key:"play",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props,n=t.onPlay,i=t.slideInterval,r=t.slideDuration,a=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(i,r)),n&&e&&n(a))}},{key:"pause",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.onPause,n=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),t&&e&&t(n))}},{key:"isImageLoaded",value:function(e){return!!this.loadedImages[e.original]||(this.loadedImages[e.original]=!0,!1)}},{key:"handleImageLoaded",value:function(e,t){var n=this.props.onImageLoad;!this.loadedImages[t]&&n&&(this.loadedImages[t]=!0,n(e))}},{key:"renderItem",value:function(e){var t=this.state.isFullscreen,n=this.props.onImageError||this.handleImageError;return i().createElement(ec,{description:e.description,fullscreen:e.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:t,onImageError:n,original:e.original,originalAlt:e.originalAlt,originalHeight:e.originalHeight,originalWidth:e.originalWidth,originalTitle:e.originalTitle,sizes:e.sizes,loading:e.loading,srcSet:e.srcSet})}},{key:"renderThumbInner",value:function(e){var t=this.props.onThumbnailError||this.handleImageError;return i().createElement("span",{className:"image-gallery-thumbnail-inner"},i().createElement("img",{className:"image-gallery-thumbnail-image",src:e.thumbnail,height:e.thumbnailHeight,width:e.thumbnailWidth,alt:e.thumbnailAlt,title:e.thumbnailTitle,loading:e.thumbnailLoading,onError:t}),e.thumbnailLabel&&i().createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))}},{key:"render",value:function(){var t=this.state,n=t.currentIndex,r=t.isFullscreen,a=t.modalFullscreen,s=t.isPlaying,o=this.props,l=o.additionalClass,u=o.disableThumbnailSwipe,c=o.indexSeparator,h=o.isRTL,d=o.items,p=o.thumbnailPosition,f=o.renderFullscreenButton,m=o.renderCustomControls,b=o.renderLeftNav,g=o.renderRightNav,v=o.showBullets,y=o.showFullscreenButton,w=o.showIndex,S=o.showThumbnails,T=o.showNav,O=o.showPlayButton,E=o.renderPlayPauseButton,k=this.getThumbnailStyle(),I=this.getSlideItems(),P=I.slides,j=I.thumbnails,x=I.bullets,_=e("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(p),{"image-gallery-rtl":h}),M=i().createElement("div",{ref:this.imageGallerySlideWrapper,className:_},m&&m(),this.canSlide()?i().createElement(i().Fragment,null,T&&i().createElement(i().Fragment,null,b(this.slideLeft,!this.canSlideLeft()),g(this.slideRight,!this.canSlideRight())),i().createElement(eI,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},i().createElement("div",{className:"image-gallery-slides"},P))):i().createElement("div",{className:"image-gallery-slides"},P),O&&E(this.togglePlay,s),v&&i().createElement("div",{className:"image-gallery-bullets"},i().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},x)),y&&f(this.toggleFullScreen,r),w&&i().createElement("div",{className:"image-gallery-index"},i().createElement("span",{className:"image-gallery-index-current"},n+1),i().createElement("span",{className:"image-gallery-index-separator"},c),i().createElement("span",{className:"image-gallery-index-total"},d.length))),R=e("image-gallery",l,{"fullscreen-modal":a}),L=e("image-gallery-content",this.getThumbnailPositionClassName(p),{fullscreen:r}),D=e("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(p),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&h},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!u},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!u});return i().createElement("div",{ref:this.imageGallery,className:R,"aria-live":"polite"},i().createElement("div",{className:L},("bottom"===p||"right"===p)&&M,S&&j.length>0?i().createElement(eI,{className:D,delta:0,onSwiping:!u&&this.handleThumbnailSwiping,onSwiped:!u&&this.handleOnThumbnailSwiped},i().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},i().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:k,"aria-label":"Thumbnail Navigation"},j))):null,("top"===p||"left"===p)&&M))}}],function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,eD(i.key),i)}}(s.prototype,n),Object.defineProperty(s,"prototype",{writable:!1}),s}(i().Component);ez.propTypes={flickThreshold:ea.number,items:(0,ea.arrayOf)((0,ea.shape)({bulletClass:ea.string,bulletOnClick:ea.func,description:ea.string,original:ea.string,originalHeight:ea.number,originalWidth:ea.number,loading:ea.string,thumbnailHeight:ea.number,thumbnailWidth:ea.number,thumbnailLoading:ea.string,fullscreen:ea.string,originalAlt:ea.string,originalTitle:ea.string,thumbnail:ea.string,thumbnailAlt:ea.string,thumbnailLabel:ea.string,thumbnailTitle:ea.string,originalClass:ea.string,thumbnailClass:ea.string,renderItem:ea.func,renderThumbInner:ea.func,imageSet:eC,srcSet:ea.string,sizes:ea.string})).isRequired,showNav:ea.bool,autoPlay:ea.bool,lazyLoad:ea.bool,infinite:ea.bool,showIndex:ea.bool,showBullets:ea.bool,showThumbnails:ea.bool,showPlayButton:ea.bool,showFullscreenButton:ea.bool,disableThumbnailScroll:ea.bool,disableKeyDown:ea.bool,disableSwipe:ea.bool,disableThumbnailSwipe:ea.bool,useBrowserFullscreen:ea.bool,onErrorImageURL:ea.string,indexSeparator:ea.string,thumbnailPosition:(0,ea.oneOf)(["top","bottom","left","right"]),startIndex:ea.number,slideDuration:ea.number,slideInterval:ea.number,slideOnThumbnailOver:ea.bool,swipeThreshold:ea.number,swipingTransitionDuration:ea.number,swipingThumbnailTransitionDuration:ea.number,onSlide:ea.func,onBeforeSlide:ea.func,onScreenChange:ea.func,onPause:ea.func,onPlay:ea.func,onClick:ea.func,onImageLoad:ea.func,onImageError:ea.func,onTouchMove:ea.func,onTouchEnd:ea.func,onTouchStart:ea.func,onMouseOver:ea.func,onMouseLeave:ea.func,onBulletClick:ea.func,onThumbnailError:ea.func,onThumbnailClick:ea.func,renderCustomControls:ea.func,renderLeftNav:ea.func,renderRightNav:ea.func,renderPlayPauseButton:ea.func,renderFullscreenButton:ea.func,renderItem:ea.func,renderThumbInner:ea.func,stopPropagation:ea.bool,additionalClass:ea.string,useTranslate3D:ea.bool,isRTL:ea.bool,useWindowKeyDown:ea.bool},ez.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(e,t){return i().createElement(ev,{onClick:e,disabled:t})},renderRightNav:function(e,t){return i().createElement(ey,{onClick:e,disabled:t})},renderPlayPauseButton:function(e,t){return i().createElement(ew,{onClick:e,isPlaying:t})},renderFullscreenButton:function(e,t){return i().createElement(eg,{onClick:e,isFullscreen:t})},useWindowKeyDown:!0};let eN=ez})(),a})(),e.exports=i(n(7294))}}]);

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.