PageSourceSearch

https://warmaudio.com/_next/static/chunks/9974-46279c679a5ac890.js

js warmaudio.com collected 2026-09-25 18:43:25 UTC 119,294 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9974],{4198:function(){},8411:function(){},9162:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=r(n(7294)),o=r(n(3854));function r(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||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 s(e){var t=e.mode,n=e.onFixedToggle,r=e.hideOnBoundaryHit,s=e.offsetTransforms,l=e.disabled,u=e.boundaryElement,c=e.scrollElement,d=e.bottomOffset,h=e.topOffset,p=e.positionRecheckInterval,f=e.children,m=e.isIOSFixEnabled,v=e.dontUpdateHolderHeightWhenSticky,g=e.wrapperClassName,b=e.stickyClassName,y=e.stickyStyle,w=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)t.indexOf(n=r[i])>=0||(o[n]=e[n]);return o}(e,["mode","onFixedToggle","hideOnBoundaryHit","offsetTransforms","disabled","boundaryElement","scrollElement","bottomOffset","topOffset","positionRecheckInterval","children","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","wrapperClassName","stickyClassName","stickyStyle"]);return i.default.createElement(o.default,{mode:t,onFixedToggle:n,hideOnBoundaryHit:r,offsetTransforms:s,disabled:l,boundaryElement:u,scrollElement:c,bottomOffset:d,topOffset:h,positionRecheckInterval:p,isIOSFixEnabled:m,dontUpdateHolderHeightWhenSticky:v},function(e){var t=e.isFixed,n=e.wrapperStyles,o=e.wrapperRef,r=e.holderStyles,s=e.holderRef;return i.default.createElement("div",a({},w,{ref:s,style:r}),i.default.createElement("div",a({},w,{className:g+" "+(t?b:""),style:t?a({},n,y):n,ref:o}),f))})}s.defaultProps={stickyClassName:"sticky",wrapperClassName:"",stickyStyle:{}},t.default=s,e.exports=t.default},2442:function(e,t){"use strict";t.__esModule=!0,t.listen=function(e,t,o){for(var r=0,a=t.length;r<a;r+=1)!function(e,t,o){var r=n.indexOf(e);-1===r&&(r=n.length,n.push(e),i.push({el:e,callbacks:{},realCallbacks:{},realListenersCnt:0})),function(e,t,n){if(e.callbacks[t]){-1===e.callbacks[t].indexOf(n)&&e.callbacks[t].push(n);return}e.callbacks[t]=[n],e.realCallbacks[t]=function(n){for(var i=0,o=e.callbacks[t].length;i<o;i+=1)e.callbacks[t][i](n)},e.el.addEventListener(t,e.realCallbacks[t]),e.realListenersCnt+=1}(i[r],t,o)}(e,t[r],o)},t.unlisten=function(e,t,o){for(var r=0,a=t.length;r<a;r+=1)!function(e,t,o){var r=n.indexOf(e);if(-1!==r){var a=i[r];(function(e,t,n){if(e.callbacks[t]){var i=e.callbacks[t].indexOf(n);-1!==i&&(e.callbacks[t].splice(i,1),e.callbacks[t].length>0||(e.el.removeEventListener(t,e.realCallbacks[t]),delete e.callbacks[t],delete e.realCallbacks[t],e.realListenersCnt-=1))}})(a,t,o),a.realListenersCnt>0||(n.splice(r,1),i.splice(r,1))}}(e,t[r],o)};var n=[],i=[]},2771:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!e)return null;if(n.hasOwnProperty(e))return n[e];if("#"===e[0])return document.getElementById(e.slice(1));if(null===i)return null;for(var o=t;o=o.parentElement;)if(o[i](e))return o||null;return null};var n={};"undefined"!=typeof document&&(n.body=document.body,n.window=window,n.document=document);var i=function(){if("undefined"!=typeof document&&document.body){var e=document.body;return"function"==typeof e.matches?"matches":"function"==typeof e.webkitMatchesSelector?"webkitMatchesSelector":"function"==typeof e.mozMatchesSelector?"mozMatchesSelector":"function"==typeof e.msMatchesSelector?"msMatchesSelector":"function"==typeof e.oMatchesSelector?"oMatchesSelector":null}return null}();e.exports=t.default},1738:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){do{var t=window.getComputedStyle(e);if("none"!==t.transform||"none"!==t.webkitTransform)return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},e.exports=t.default},1596:function(e,t){"use strict";t.__esModule=!0,t.getRect=function(e){return e&&"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():e===window||e===document?{top:0,left:0,bottom:window.innerHeight,height:window.innerHeight,width:window.innerWidth,right:window.innerWidth}:{top:0,left:0,right:0,bottom:0,width:0,height:0}},t.isIntersecting=function(e,t,n,i){var o=e.top+n,r=e.bottom+i;return o>=t.top&&o<=t.bottom||r>
1=t.top&&r<=t.bottom||r>=t.bottom&&o<=t.top},t.infiniteRect=void 0,t.infiniteRect={top:-1/0,bottom:1/0,height:1/0,left:-1/0,right:1/0,width:1/0}},5198:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.ZP=void 0,i(n(3854)).default;var o=i(n(9162)).default;t.ZP=o},3854:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var i=n(7294),o=n(2442),r=l(n(2771)),a=l(n(1738)),s=n(1596);function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e,t){var n=t.bottomOffset,i=t.hideOnBoundaryHit,o=e.top,r=e.height,a=e.width,s=e.boundaryBottom;return i||o+r+n<s?{top:o+"px",width:a+"px",position:"fixed"}:!i&&s>0?{top:s-r-n+"px",width:a+"px",position:"fixed"}:{width:a+"px",bottom:n+"px",position:"absolute"}},h=function(e,t){var n=t.bottomOffset,i=t.hideOnBoundaryHit,o=e.bottom,r=e.height,a=e.width,s=e.boundaryTop;return i||o-r-n>s?{width:a+"px",top:o-r+"px",position:"fixed"}:{width:a+"px",top:n+"px",position:"absolute"}},p=function(e,t){var n=e.wrapperStyles,i=t.wrapperStyles;if(e.isFixed!==t.isFixed||e.height!==t.height||!n&&i||n&&!i)return!1;if(!i)return!0;for(var o in n)if(n.hasOwnProperty(o)&&n[o]!==i[o])return!1;return!0},f=function(e){function t(){for(var t,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).holderEl=null,t.wrapperEl=null,t.el=null,t.scrollEl=null,t.boundaryEl=null,t.disabled=!1,t.checkPositionIntervalId=void 0,t.lastMinHeight=void 0,t.state={isFixed:!1,wrapperStyles:null,holderStyles:null,height:0},t.holderRef=function(e){e!==t.holderEl&&(t.holderEl=e)},t.wrapperRef=function(e){e!==t.wrapperEl&&(t.wrapperEl=e,t.updateScrollEl(),t.updateBoundaryEl())},t.checkPosition=function(){var e,n=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),i=n.holderEl,o=n.wrapperEl,r=n.boundaryEl,l=n.scrollEl,c=n.disabled;if(!l||!i||!o){console.error("Missing required elements:",{scrollEl:l,holderEl:i,wrapperEl:o});return}var f=t.props,m=f.mode,v=f.onFixedToggle,g=f.offsetTransforms,b=f.isIOSFixEnabled,y=f.dontUpdateHolderHeightWhenSticky;if(c){t.state.isFixed&&t.setState({isFixed:!1,wrapperStyles:{}});return}if(i.getBoundingClientRect&&o.getBoundingClientRect){var w=i.getBoundingClientRect(),S=o.getBoundingClientRect(),E=r?(0,s.getRect)(r):s.infiniteRect,T=(0,s.getRect)(l),O=t.isFixed(w,S,E,T),x=null;if(g&&O){var P=(0,a.default)(l);P&&(x=(0,s.getRect)(P))}var k=t.state.isFixed&&y&&t.lastMinHeight?t.lastMinHeight:S.height;t.lastMinHeight=k;var C=b?{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"}:null,I={isFixed:O,height:S.height,holderStyles:{minHeight:k+"px"},wrapperStyles:O?u({},C,(e=t.props,("top"===m?d:h)({boundaryTop:"bottom"===m?E.top:0,boundaryBottom:"top"===m?E.bottom:0,top:"top"===m?T.top-(x?x.top:0):0,bottom:"bottom"===m?T.bottom-(x?x.bottom:0):0,width:w.width,height:S.height},e))):C};O!==t.state.isFixed&&v&&"function"==typeof v&&v(O),p(t.state,I)||t.setState(I)}},t}(n=t).prototype=Object.create(e.prototype),n.prototype.constructor=n,c(n,e);var n,i=t.prototype;return i.isFixed=function(e,t,n,i){var o=this.props,r=o.hideOnBoundaryHit,a=o.bottomOffset,l=o.topOffset,u=o.mode;if(this.disabled||r&&n&&!(0,s.isIntersecting)(n,i,l,a))return!1;var c=r?t.height+a:0;return"top"===u?e.top+l<i.top&&i.top+c<=n.bottom:e.bottom-l>i.bottom&&i.bottom-c>=n.top},i.updateScrollEl=function(){if(this.wrapperEl){this.scrollEl&&((0,o.unlisten)(this.scrollEl,["scroll"],this.checkPosition),this.scrollEl=null);var e=this.props.scrollElement;"string"==typeof e?this.scrollEl=(0,r.default)(e,this.wrapperEl):this.scrollEl=e,this.scrollEl?(0,o.listen)(this.scrollEl,["scroll"],this.checkPosition):console.error("Cannot find scrollElement "+("string"==typeof e?e:"unknown"))}},i.updateBoundaryEl=function(){if(this.wrapperEl){var e=this.props.boundaryElement;this.boundaryEl=(0,r.default)(e,this.wrapperEl),(this.boundaryEl===window||this.boundaryEl===document)&&(this.boundaryEl=null)}},i.initialize=function(){var e=this.props,t=e.positionRecheckInterval,n=e.disabled;this.disabled=n,(0,o.listen)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.checkPosition(),t&&(this.checkPositionIntervalId=setInterval(this.checkPosition,t))},i.componentDidUpdate=function(e){var t=e.scrollElement,n=e.boundaryElement,i=e.disabled;t!==this.props.scrollElement&&this.updateScrollEl(),n!==this.props.boundaryElement&&this.updateBoundaryEl(),i!==this.props.disabled&&(this.disabled=this.props.disabled,this.checkPosition())},i.componentDidMount=function(){this.initialize(),null===this.wrapperEl&&console.error("Wrapper element is missing, please make sure that you have assigned refs correctly")},i.componentWillUnmount=function(){this.scrollEl&&(0,o.unlisten)(this.scrollEl,["scroll"],this.checkPosition),(0,o.unlisten)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.boundaryEl=null,this.scrollEl=null,clearInterval(this.checkPositionIntervalId)},i.render=function(){var e=this.holderRef,t=this.wrapperRef,n=this.state,i=n.isFixed,o=n.wrapperStyles,r=n.holderStyles;return this.props.children({holderRef:e,wrapperRef:t,isFixed:i,wrapperStyles:o,holderStyles:r})},t}(i.Component);f.defaultProps={mode:"top",topOffset:0,bottomOffset:0,isIOSFixEnabled:!0,disabled:!1,onFixedToggle:null,boundaryElement:null,scrollElement:"window",dontUpdateHolderHeightWhenSticky:!1},t.default=f,e.exports=t.default},6126:function(e,t,n){"use strict";n.d(t,{Uv:function(){return ek},d$:function(){return ex}});var i,o,r=n(7294),a=n(5893),s=function(e,t){return Number(e.toFixed(t))},l=function(e,t,n){n&&"function"==typeof n&&n(e,t)},u={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},c=function(e){"number"==typeof e&&cancelAnimationFrame(e)},d=function(e){e.mounted&&(c(e.animation),e.isAnimating=!1,e.animation=null,e.velocity=null)};function h(e,t,n,i){if(e.mounted){var o=new Date().getTime();d(e),e.animation=function(){if(!e.mounted)return c(e.animation);var r=new Date().getTime()-o,a=(0,u[t])(r/n);r>=n?(i(1),e.animation=null):e.animation&&(i(a),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function p(e,t,n,i){var o,r,a,s=(o=t.scale,r=t.positionX,a=t.positionY,!(Number.isNaN(o)||Number.isNaN(r)||Number.isNaN(a)));if(e.mounted&&s){var l=e.setState,u=e.state,c=u.scale,d=u.positionX,p=u.positionY,f=t.scale-c,m=t.positionX-d,v=t.positionY-p;0===n?l(t.scale,t.positionX,t.positionY):h(e,i,n,function(t){1!==t?e.isAnimating=!0:e.isAnimating=!1,l(c+f*t,d+m*t,p+v*t)})}}var f=function(e,t,n,i,o,r,a){var s=e>t?n*(a?.5:1):0,l=i>o?r*(a?.5:1):0;return{minPositionX:e-t-s,maxPositionX:s,minPositionY:i-o-l,maxPositionY:l,scaleWidthFactor:s,scaleHeightFactor:l}},m=function(e,t){var n,i,o,r,a,s,l=e.wrapperComponent,u=e.contentComponent,c=e.setup,d=c.centerZoomedOut,h=c.disablePadding;if(!l||!u)throw Error("Components are not mounted");var p=(n=l.offsetWidth,i=l.offsetHeight,o=u.offsetWidth,r=u.offsetHeight,{wrapperW
1idth:n,wrapperHeight:i,newContentWidth:a=o*t,newDiffWidth:n-a,newContentHeight:s=r*t,newDiffHeight:i-s}),m=p.wrapperWidth,v=p.wrapperHeight,g=p.newContentWidth,b=p.newContentHeight,y=f(m,g,p.newDiffWidth,v,b,p.newDiffHeight,Boolean(d));h&&m>=g&&v>=b&&!d&&(y.minPositionX=0,y.maxPositionX=0,y.minPositionY=0,y.maxPositionY=0);var w=e.setup,S=w.minPositionX,E=w.maxPositionX,T=w.minPositionY,O=w.maxPositionY;return null!=S&&(y.minPositionX=m*(1-t)+S*t),null!=E&&(y.maxPositionX=E*t),null!=T&&(y.minPositionY=v*(1-t)+T*t),null!=O&&(y.maxPositionY=O*t),y},v=function(e,t,n,i){return i?e<t?s(t,2):e>n?s(n,2):s(e,2):s(e,2)},g=function(e,t){var n=m(e,t);return e.bounds=n,n};function b(e,t,n,i,o,r,a){var s=n.minPositionX,l=n.minPositionY,u=n.maxPositionX,c=n.maxPositionY,d=0,h=0;return a&&(d=o,h=r),{x:v(e,s-d,u+d,i),y:v(t,l-h,c+h,i)}}function y(e,t,n,i,o,r){var a=e.state,s=a.scale,l=a.positionX,u=a.positionY,c=i-s;return"number"!=typeof t||"number"!=typeof n?(console.error("Mouse X and Y position were not provided!"),{x:l,y:u}):b(l-t*c,u-n*c,o,r,0,0,null)}function w(e,t,n,i,o){var r=o?i:0,a=Math.max(t-r,1e-7),s=n+r;return!Number.isNaN(n)&&e>=s?s:!Number.isNaN(t)&&e<=a?a:Math.max(e,1e-7)}var S=function(e,t){var n=e.setup.panning.excluded,i=e.isInitialized,o=e.wrapperComponent,r=t.target,a="shadowRoot"in r&&"composedPath"in t?t.composedPath().some(function(e){return e instanceof Element&&(null==o?void 0:o.contains(e))}):null==o?void 0:o.contains(r);return!(!(i&&r&&a)||$(r,n))&&"true"!==r.getAttribute("draggable")&&"true"!==r.getAttribute("contenteditable")&&!r.isContentEditable},E=function(e){var t=e.isInitialized,n=e.isPanning,i=e.setup.panning.disabled;return!!t&&!!n&&!i},T=function(e,t){var n=e.state,i=n.positionX,o=n.positionY;e.isPanning=!0;var r=t.clientX,a=t.clientY;e.startCoords={x:r-i,y:a-o}},O=function(e,t){var n=t.touches,i=e.state,o=i.positionX,r=i.positionY;if(e.isPanning=!0,1===n.length){var a=n[0].clientX,s=n[0].clientY;e.startCoords={x:a-o,y:s-r}}};function x(e,t,n,i,o){var r=e.setup.limitToBounds,a=e.wrapperComponent,s=e.bounds,l=e.state,u=l.scale,c=l.positionX,d=l.positionY;if(null!==a&&null!==s&&(t!==c||n!==d)){var h=b(t,n,s,r,i,o,a),p=h.x,f=h.y;e.setState(u,p,f)}}var P=function(e,t,n){var i=e.startCoords,o=e.state,r=e.setup.panning,a=r.lockAxisX,s=r.lockAxisY,l=o.positionX,u=o.positionY;if(!i)return{x:l,y:u};var c=t-i.x,d=n-i.y;return{x:a?l:c,y:s?u:d}},k=function(e,t,n){var i=e.setup,o=e.state,r=i.minScale,a=i.disablePadding,s=i.centerZoomedOut,l=null!=n?n:o.scale;return t>0&&l>=r&&!a&&!s?t:0};(i=o||(o={})).TRACK_PAD="track_pad",i.MOUSE="mouse",i.TOUCH="touch";var C=function(e){var t=e.mounted,n=e.wrapperComponent,i=e.contentComponent,o=e.setup,r=o.disabled,a=o.velocityAnimation,s=o.limitToBounds,l=e.state.scale;return!a.disabled&&!r&&!!t&&!!n&&!!i&&(!s||n.offsetWidth<i.offsetWidth*l||n.offsetHeight<i.offsetHeight*l)},I=function(e){var t=e.mounted,n=e.velocity,i=e.bounds,o=e.setup,r=o.disabled;return!o.velocityAnimation.disabled&&!r&&!!t&&!!n&&!!i};function L(e,t,n,i,o,r,a,s,l,u){if(o){if(t>a&&n>a){var c=a+(e-a)*u;return c>l?l:c<a?a:c}if(t<r&&n<r){var c=r+(e-r)*u;return c<s?s:c>r?r:c}}return i?t:v(e,r,a,o)}var M=function(e,t,n){var i=e*n;return Number.isNaN(i)?0:e<0?Math.max(i,-t):Math.min(i,t)};function N(e,t){var n=e.state,i=n.scale,o=n.positionX,r=n.positionY;e.panStartPosition={x:o,y:r},d(e),g(e,i),void 0!==window.TouchEvent&&t instanceof TouchEvent?O(e,t):T(e,t)}function D(e,t){var n=e.state.scale,i=e.setup,o=i.minScale,r=i.autoAlignment,a=r.disabled,s=r.sizeX,l=r.sizeY,u=r.animationTime,c=r.animationType;if(!(a||n<o||!s&&!l)){var d=function(e){var t=e.state,n=t.positionX,i=t.positionY,o=t.scale,r=e.setup,a=r.disabled,s=r.limitToBounds,l=r.centerZoomedOut,u=e.wrapperComponent;if(!a&&u&&e.bounds){var c=e.bounds,d=c.maxPositionX,h=c.minPositionX,p=c.maxPositionY,f=c.minPositionY,m=n>d?u.offsetWidth:e.setup.minPositionX||0,v=i>p?u.offsetHeight:e.setup.minPositionY||0,g=y(e,m,v,o,e.bounds,s||l),b=g.x,w=g.y;return{scale:o,positionX:n>d||n<h?b:n,positionY:i>p||i<f?w:i}}}(e);d&&p(e,d,null!=t?t:u,c)}}function z(e,t,n,i){var r=e.startCoords,a=e.setup.autoAlignment,s=a.sizeX,l=a.sizeY;if(r){var u=P(e,t,n),c=u.x,d=u.y,h=k(e,s),p=k(e,l);!function(e,t,n){if(C(e)){var i=e.lastMousePosition,r=e.velocityTime,a=e.setup,s=e.wrapperComponent,l=a.velocityAnimation,u=l.maxStrengthMouse,c=l.maxStrengthTouch,d=l.sensitivityTouch,h=l.sensitivityMouse,p=Date.now();if(i&&r&&s){var f,m,v,g=Number.isNaN(v=s.offsetWidth/window.innerWidth)?1:Math.min(1,v),b=((f={})[o.TOUCH]=d,f[o.MOUSE]=h,f)[n],y=((m={})[o.TOUCH]=c,m[o.MOUSE]=u,m)[n],w=t.x-i.x,S=t.y-i.y,E=M(w/g,y,b),T=M(S/g,y,b),O=M(Math.sqrt(w*w+S*S)/(p-r),y,b);e.velocity={velocityX:E,velocityY:T,total:O}}e.lastMousePosition=t,e.velocityTime=p}}(e,{x:c,y:d},i),x(e,c,d,h,p)}}function W(e,t,n,i){var o=e.setup,r=o.minScale,a=o.maxScale,l=o.limitToBounds,u=w(s(t,2),r,a,0,!1),c=g(e,u),d=y(e,n,i,u,c,l),h=d.x,p=d.y;return{scale:u,positionX:h,positionY:p}}function R(e,t,n){var i=e.state.scale,o=e.wrapperComponent,r=e.setup,a=r.minScale,s=r.maxScale,l=r.limitToBounds,u=r.zoomAnimation,c=u.disabled,d=u.animationTime,h=u.animationType;if((i>=1||l)&&D(e),!(c||i>=a&&i<=s)&&o&&e.mounted){var f=W(e,i<a?a:s,t||o.offsetWidth/2,n||o.offsetHeight/2);f&&p(e,f,d,h)}}var _=function(){return(_=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function j(e,t,n){if(n||2==arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var A={previousScale:1,scale:1,positionX:0,positionY:0},F={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,smooth:!0,detached:!1,wheel:{step:.015,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},trackPadPanning:{disabled:!0,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,allowLeftClickPan:!0,allowMiddleClickPan:!0,allowRightClickPan:!0,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,allowPanning:!0,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},autoAlignment:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivityMouse:1,sensitivityTouch:1.2,maxStrengthMouse:20,maxStrengthTouch:40,inertia:1,animationTime:300,maxAnimationTime:800,animationType:"easeOut"}},Y={wrapperClass:"react-transform-wrapper",contentClass:"react-transform-component"},B=function(e){var t,n,i,o,r,a,s,l,u,c=Math.max(null!==(t=e.minScale)&&void 0!==t?t:F.minScale,1e-7),d=null!==(n=e.maxScale)&&void 0!==n?n:F.maxScale,h=Math.min(Math.max(null!==(i=e.initialScale)&&void 0!==i?i:A.scale,c),d);return{previousScale:h,scale:h,positionX:v(null!==(o=e.initialPositionX)&&void 0!==o?o:A.positionX,null!==(r=e.minPositionX)&&void 0!==r?r:-1/0,null!==(a=e.maxPositionX)&&void 0!==a?a:1/0,null!=e.minPositionX||null!=e.maxPositionX),positionY:v(null!==(s=e.initialPositionY)&&void 0!==s?s:A.positionY,null!==(l=e.minPositionY)&&void 0!==l?l:-1/0,null!==(u=e.maxPositionY)&&void 0!==u?u:1/0,null!=e.minPositionY||null!=e.maxPositionY)}},H=function(e){var t=_({},F);return Object.keys(e).forEach(function(n){var i=void 0!==e[n];if(void 0!==F[n]&&i){var o=Object.prototype.toString.call(F[n]);"[object Object]"===o?t[n]=_(_({},F[n]),e[n]):"[object Array]"===o?t[n]=j(j([],F[n],!0),e[n],!0):t[n]=e[n]}}),t.minScale<=0&&(t.minScale=1e-7),t},U=function(e,t,n){var i=e.state.scale,o=e.wrapperComponent,r=e.setup,a=r.maxScale,l=r.minScale,u=r.zoomAnimation,c=r.smooth,d=u.size;if(!o)throw Error("Wrapper is not mounted");return w(s(c?i*Math.exp(t*n):i+t*n,3),l,a,d,!1)};function X(e,t,n,i,o){var r,a,s=e.wrapperComponent,u=e.state,c=u.scale,d=u.positionX,h=u.positionY,f=e.setup.zoomAnimation;if(!s)return console.error("No WrapperComponent found");var m=f.disabled?0:i,v=s.offsetWidth,g=s.offsetHeight,b=U(e,t,n),y=W(e,b,(v/2-d)/c,(g/2-h)/c);if(!y)return console.error("Error during zoom event. New transformation state was not calculated.");var w=e.props,S=w.onZoomStart,E=w.onZoom,T=w.onZoomStop,O=new MouseEvent("mousemove",{bubbles:!0}),x=Z(e);l(x,O,S),l(x,O,E),p(e,y,m,o);var P=null!==(a=null===(r=s.ownerDocument)||void 0===r?void 0:r.defaultView)&&void 0!==a?a:"undefined"!=typeof window?window:null;P&&P.setTimeout(function(){e.mounted&&l(Z(e),O,T)},m)}function K(e,t,n,i){var o,r,a=e.setup,s=e.wrapperComponent,u=e.contentComponent,c=a.limitToBounds,d=a.centerOnInit,h=B(e.props),f=e.state,v=f.scale,g=f.positionX,y=f.positionY;if(s){var w=h.positionX,S=h.positionY;if(d&&u){var E=ee(h.scale,s,u);w=E.positionX,S=E.positionY}var T=b(w,S,m(e,h.scale),c,0,0,s),O={scale:h.scale,positionX:T.x,positionY:T.y};if(v===h.scale&&g===h.positionX&&y===h.positionY)return;null==i||i();var x=e.props,P=x.onZoomStart,k=x.onZoom,C=x.onZoomStop,I=new MouseEvent("mousemove",{bubbles:!0}),L=Z(e);l(L,I,P),l(L,I,k),p(e,O,t,n);var M=null!==(r=null===(o=s.ownerDocument)||void 0===o?void 0:o.defaultView)&&void 0!==r?r:"undefined"!=typeof window?window:null;M&&M.setTimeout(function(){e.mounted&&l(Z(e),I,C)},t)}}var G=function(e){return{instance:e,state:e.state,zoomIn:function(t,n,i){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===i&&(i="easeOut"),X(e,1,t,n,i)},zoomOut:function(t,n,i){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===i&&(i="easeOut"),X(e,-1,t,n,i)},setTransform:function(t,n,i,o,r){void 0===o&&(o=300),void 0===r&&(r="easeOut");var a=e.state,s=a.positionX,l=a.positionY,u=a.scale,c=e.wrapperComponent,d=e.contentComponent;!e.setup.disabled&&c&&d&&p(e,{positionX:Number.isNaN(t)?s:t,positionY:Number.isNaN(n)?l:n,scale:Number.isNaN(i)?u:i},o,r)},resetTransform:function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),K(e,t,n
1)},centerView:function(t,n,i){void 0===n&&(n=200),void 0===i&&(i="easeOut");var o=e.state,r=e.wrapperComponent,a=e.contentComponent;r&&a&&p(e,ee(t||o.scale,r,a),n,i)},zoomToElement:function(t,n,i,o,r,a){void 0===i&&(i=600),void 0===o&&(o="easeOut"),void 0===r&&(r=0),void 0===a&&(a=0),d(e);var s=e.wrapperComponent,l="string"==typeof t?document.getElementById(t):t;if(s&&l&&s.contains(l)){var u=function(e,t,n,i,o){void 0===i&&(i=0),void 0===o&&(o=0);var r,a,s,l,u,c=e.wrapperComponent,d=e.contentComponent,h=e.state,p=e.setup,f=p.limitToBounds,v=p.minScale,g=p.maxScale;if(!c||!d)return h;var y=c.getBoundingClientRect(),S=t.getBoundingClientRect(),E=(r=t.getBoundingClientRect(),a=c.getBoundingClientRect(),s=d.getBoundingClientRect(),l=a.x*h.scale,u=a.y*h.scale,{x:(r.x-s.x+l)/h.scale,y:(r.y-s.y+u)/h.scale}),T=E.x,O=E.y,x=S.width/h.scale,P=S.height/h.scale,k=c.offsetWidth/x,C=c.offsetHeight/P,I=w(n||Math.min(k,C),v,g,0,!1),L=(y.width-x*I)/2,M=(y.height-P*I)/2,N=b((y.left-T)*I+L+i,(y.top-O)*I+M+o,m(e,I),f,0,0,c);return{positionX:N.x,positionY:N.y,scale:I}}(e,l,n,r,a);p(e,u,i,o)}}}},Z=function(e){var t={};return Object.assign(t,{instance:e,state:e.state}),Object.assign(t,G(e)),t};function q(){try{return{get passive(){return!1}}}catch(e){return!1}}var V=".".concat(Y.wrapperClass),$=function(e,t){return t.some(function(t){return e.matches("".concat(V," ").concat(t,", ").concat(V," .").concat(t,", ").concat(V," ").concat(t," *, ").concat(V," .").concat(t," *"))})},Q=function(e){e&&clearTimeout(e)},J=function(e,t,n){var i=Number.parseFloat(n.toFixed(8));return"translate(".concat(e,"px, ").concat(t,"px) scale(").concat(i,")")},ee=function(e,t,n){var i=n.offsetWidth*e,o=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-i)/2,positionY:(t.offsetHeight-o)/2}},et=function(e,t){var n=e.setup.wheel,i=n.disabled,o=n.wheelDisabled,r=n.touchPadDisabled,a=n.excluded,s=e.isInitialized,l=e.isPanning,u=t.target;return!(!(s&&!l&&!i&&u)||o&&!t.ctrlKey||r&&t.ctrlKey||$(u,a))&&!!e.isPressingKeys(e.setup.wheel.activationKeys)},en=function(e,t){var n=e.setup,i=n.disabled,o=n.trackPadPanning,r=o.activationKeys,a=o.excluded;return!(!e.wrapperComponent||!e.contentComponent||i||o.disabled||t.ctrlKey||et(e,t)||$(t.target,a))&&!!e.isPressingKeys(r)};function ei(e,t,n){var i=t.getBoundingClientRect(),o=0,r=0;if("clientX"in e)o=(e.clientX-i.left)/n,r=(e.clientY-i.top)/n;else{var a=e.touches[0];o=(a.clientX-i.left)/n,r=(a.clientY-i.top)/n}return(Number.isNaN(o)||Number.isNaN(r))&&console.error("No mouse or touch offset found"),{x:o,y:r}}var eo=function(e,t,n,i,o){var r=e.state.scale,a=e.wrapperComponent,s=e.setup,l=s.maxScale,u=s.minScale,c=s.zoomAnimation,d=s.disablePadding,h=c.size,p=c.disabled;if(!a)throw Error("Wrapper is not mounted");var f=r+t*n;return o?f:w(f,u,l,h,!i&&!p&&!d)},er=function(e,t){var n=e.previousWheelEvent,i=e.state.scale,o=e.setup,r=o.maxScale,a=o.minScale;return!!n&&(i<r||i>a||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaY<t.deltaY||n.deltaY<0&&n.deltaY>t.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))},ea=function(e,t){var n=e.setup.pinch,i=n.disabled,o=n.excluded,r=e.isInitialized,a=t.target;return!(!(r&&!i&&a)||$(a,o))},es=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,i=e.pinchStartDistance;return!!n&&!t&&null!==i},el=function(e,t,n){var i=n.getBoundingClientRect(),o=e.touches,r=o[0].clientX-i.left,a=o[0].clientY-i.top;return{x:(r+(o[1].clientX-i.left))/2/t,y:(a+(o[1].clientY-i.top))/2/t}},eu=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},ec=function(e,t){var n=e.pinchStartScale,i=e.pinchStartDistance,o=e.setup,r=o.maxScale,a=o.minScale,l=o.zoomAnimation,u=o.disablePadding,c=o.pinch,d=l.size,h=l.disabled,p=c.step;if(!n||null===i)throw Error("Pinch touches distance was not provided");if(t<0)return e.state.scale;var f=n+(t/i*n-n)*(p/5);return w(f===1/0?0:s(f,10),a,r,d,!h&&!u)},ed=function(e,t){var n=e.props,i=n.onWheelStart,o=n.onZoomStart;e.wheelStopEventTimer||(d(e),l(Z(e),t,i),l(Z(e),t,o))},eh=function(e,t){var n,i=e.props,o=i.onWheel,r=i.onZoom,a=e.contentComponent,s=e.setup,u=e.state.scale,c=s.limitToBounds,d=s.centerZoomedOut,h=s.zoomAnimation,p=s.wheel,f=s.disablePadding,m=s.smooth,v=h.size,b=h.disabled,w=p.step;if(!a)throw Error("Component not mounted");t.preventDefault(),t.stopPropagation();var S=eo(e,n=t?t.deltaY<0?1:-1:0,m?w*Math.abs(t.deltaY):w,!t.ctrlKey);if(u!==S){var E=g(e,S),T=ei(t,a,u),O=y(e,T.x,T.y,S,E,c&&(b||0===v||d||f)),x=O.x,P=O.y;e.previousWheelEvent=t,e.setState(S,x,P),l(Z(e),t,o),l(Z(e),t,r)}},ep=function(e,t){var n=e.props,i=n.onWheelStop,o=n.onZoomStop;Q(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout(function(){e.mounted&&(R(e,t.x,t.y),e.wheelAnimationTimer=null)},100),er(e,t)&&(Q(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout(function(){e.mounted&&(e.wheelStopEventTimer=null,l(Z(e),t,i),l(Z(e),t,o))},160))},ef=function(e,t){var n=e.props,i=n.onWheelStart,o=n.onPanningStart;e.wheelStopEventTimer||(d(e),l(Z(e),t,i),l(Z(e),t,o))},em=function(e,t){var n=e.props,i=n.onWheelStop,o=n.onPanningStop;Q(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout(function(){e.mounted&&(R(e,t.x,t.y),e.wheelAnimationTimer=null)},100),er(e,t)&&(Q(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout(function(){e.mounted&&(e.wheelStopEventTimer=null,l(Z(e),t,i),l(Z(e),t,o))},160))},ev=function(e){for(var t=0,n=0,i=0;i<2;i+=1)t+=e.touches[i].clientX,n+=e.touches[i].clientY;return{x:t/2,y:n/2}},eg=function(e,t){var n=eu(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.state.scale,e.isPanning=!1,e.isPinching=!0,e.pinchPreviousCenter=ev(t),d(e)},eb=function(e,t){var n=e.contentComponent,i=e.pinchStartDistance,o=e.wrapperComponent,r=e.pinchPreviousCenter,a=e.state.scale,s=e.setup,l=s.limitToBounds,u=s.centerZoomedOut,c=s.zoomAnimation,d=s.autoAlignment,h=s.pinch,p=s.panning,f=c.disabled,m=c.size,v=h.allowPanning;if(null!==i&&n){var w=el(t,a,n);if(Number.isFinite(w.x)&&Number.isFinite(w.y)){var S=eu(t),E=ec(e,S),T=ev(t),O=a/E,x=(T.x-((null==r?void 0:r.x)||0))*O,P=(T.y-((null==r?void 0:r.y
1)||0))*O;if(E!==a||0!==x||0!==P){e.pinchPreviousCenter=T;var C=g(e,E),I=y(e,w.x,w.y,E,C,l&&(f||0===m||u)),L=I.x,M=I.y;if(e.pinchMidpoint=w,e.lastDistance=S,p.disabled||!v)e.setState(E,L,M);else{var N=d.sizeX,D=d.sizeY,z=b(L+x,M+P,C,l,k(e,N,E),k(e,D,E),o),W=z.x,R=z.y;e.setState(E,W,R)}}}}},ey=function(e){var t=e.pinchMidpoint;e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,e.isPinching=!1,R(e,null==t?void 0:t.x,null==t?void 0:t.y)},ew=function(e,t){var n=e.props.onZoomStop,i=e.setup.doubleClick.animationTime;Q(e.doubleClickStopEventTimer),e.doubleClickStopEventTimer=setTimeout(function(){e.doubleClickStopEventTimer=null,l(Z(e),t,n)},i)},eS=function(e,t){var n=e.props,i=n.onZoomStart,o=n.onZoom,r=e.setup.doubleClick,a=r.animationTime,s=r.animationType;l(Z(e),t,i),K(e,a,s,function(){return l(Z(e),t,o)}),ew(e,t)},eE=function(e,t){var n=e.isInitialized,i=e.setup,o=e.wrapperComponent,r=i.doubleClick,a=r.disabled,s=r.excluded,l=t.target,u=null==o?void 0:o.contains(l);return!(!(n&&l&&u&&!a)||$(l,s))},eT=function(e){var t=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.onTransformCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.isWheelPanning=!1,this.startCoords=null,this.panStartPosition=null,this.lastTouch=null,this.isPinching=!1,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.pinchPreviousCenter=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.isAnimating=!1,this.animation=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(e){t.props=e,t.wrapperComponent&&t.contentComponent&&g(t,t.state.scale),t.setup=H(e)},this.initializeWindowEvents=function(){var e,n,i,o,r=q(),a=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,s=null==a?void 0:a.defaultView;null===(n=t.wrapperComponent)||void 0===n||n.addEventListener("wheel",t.onWheelPanning,r),null===(i=t.wrapperComponent)||void 0===i||i.addEventListener("keyup",t.setKeyUnPressed,r),null===(o=t.wrapperComponent)||void 0===o||o.addEventListener("keydown",t.setKeyPressed,r),null==s||s.addEventListener("mousedown",t.onPanningStart,r),null==s||s.addEventListener("mousemove",t.onPanning,r),null==s||s.addEventListener("mouseup",t.onPanningStop,r),null==a||a.addEventListener("mouseleave",t.clearPanning,r),null==s||s.addEventListener("keyup",t.setKeyUnPressed,r),null==s||s.addEventListener("keydown",t.setKeyPressed,r),null==s||s.addEventListener("blur",t.handleWindowBlur)},this.cleanupWindowEvents=function(){var e,n,i,o,r,a=q(),s=null===(e=t.wrapperComponent)||void 0===e?void 0:e.ownerDocument,l=null==s?void 0:s.defaultView;null==l||l.removeEventListener("mousedown",t.onPanningStart,a),null==l||l.removeEventListener("mousemove",t.onPanning,a),null==l||l.removeEventListener("mouseup",t.onPanningStop,a),null==s||s.removeEventListener("mouseleave",t.clearPanning,a),null==l||l.removeEventListener("keyup",t.setKeyUnPressed,a),null==l||l.removeEventListener("keydown",t.setKeyPressed,a),null==l||l.removeEventListener("blur",t.handleWindowBlur),document.removeEventListener("mouseleave",t.clearPanning,a),null===(n=t.wrapperComponent)||void 0===n||n.removeEventListener("wheel",t.onWheelPanning,a),null===(i=t.wrapperComponent)||void 0===i||i.removeEventListener("keyup",t.setKeyUnPressed,a),null===(o=t.wrapperComponent)||void 0===o||o.removeEventListener("keydown",t.setKeyPressed,a),d(t),null===(r=t.observer)||void 0===r||r.disconnect()},this.handleInitializeWrapperEvents=function(e){var n=q();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},this.handleInitialize=function(e){var n=t.setup.centerOnInit;t.applyTransformation(),t.onInitCallbacks.forEach(function(e){return e(Z(t))}),n&&(t.setCenter(),t.observer=new ResizeObserver(function(){var n,i=e.offsetWidth,o=e.offsetHeight;(i>0||o>0)&&(t.onInitCallbacks.forEach(function(e){return e(Z(t))}),t.setCenter(),null===(n=t.observer)||void 0===n||n.disconnect())}),setTimeout(function(){var e;null===(e=t.observer)||void 0===e||e.disconnect()},5e3),t.observer.observe(e))},this.onWheelZoom=function(e){!t.setup.disabled&&(t.syncModifierKeys(e),et(t,e)&&(ed(t,e),eh(t,e),ep(t,e)))},this.onWheelPanning=function(e){var n=t.props.onPanning,i=t.setup.trackPadPanning,o=i.lockAxisX,r=i.lockAxisY;if(t.syncModifierKeys(e),en(t,e)){e.preventDefault(),e.stopPropagation();var a=t.state,s=a.positionX,u=a.positionY,c=s-e.deltaX,d=u-e.deltaY,h=o?s:c,p=r?u:d,f=t.setup.autoAlignment,m=f.sizeX,v=f.sizeY,g=k(t,m),b=k(t,v);(h!==s||p!==u)&&(ef(t,e),x(t,h,p,g,b),l(Z(t),e,n),em(t,e))}},this.onPanningStart=function(e){var n=t.setup.disabled,i=t.props.onPanningStart;!n&&(t.syncModifierKeys(e),S(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(0!==e.button||t.setup.panning.allowLeftClickPan)&&(1!==e.button||t.setup.panning.allowMiddleClickPan)&&(2!==e.button||t.setup.panning.allowRightClickPan)&&(e.preventDefault(),e.stopPropagation(),d(t),N(t,e),l(Z(t),e,i)))},this.onPanning=function(e){var n=t.setup.disabled,i=t.props.onPanning;if(!n){if(t.syncModifierKeys(e),t.isPanning&&0===e.buttons){t.clearPanning(e);return}E(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),z(t,e.clientX,e.clientY,o.MOUSE),l(Z(t),e,i))}},this.onPanningStop=function(e){var n=t.setup.panning.velocityDisabled,i=t.props.onPanningStop;t.isPanning&&(function(e,t){if(e.isPanning){var n=e.velocity,i=e.wrapperComponent,o=e.contentComponent;e.isPanning=!1;var r=e.state,a=r.positionX,s=r.positionY,l=r.scale,c=e.panStartPosition;if(e.panStartPosition=null,c){var d=a-c.x,p=s-c.y;if(d*d+p*p<=25)return}e.isAnimating=!1,e.animation=null;var f=(null==i?void 0:i.offsetWidth)||0,m=(null==i?void 0:i.offsetHeight)||0,v=((null==o?void 0:o.offsetWidth)||0)*l,g=((null==o?void 0:o.offsetHeight)||0)*l,b=!e.setup.limitToBounds||f<v||m<g;!t&&n&&n.total>.1&&b?function(e){var t,n,i,o=e.velocity,r=e.bounds,a=e.setup,s=e.wrapperComponent;if(I(e)&&o&&r&&s){var l=o.velocityX,c=o.velocityY,d=o.total,p=r.maxPositionX,f=r.minPositionX,m=r.maxPositionY,v=r.minPositionY,g=a.limitToBounds,b=a.autoAlignment,y=a.zoomAnimation,w=a.panning,S=w.lockAxisY,E=w.lockAxisX,T=y.animationType,O=b.sizeX,x=b.sizeY,P=b.velocityAlignmentTime,C=(n=(t=e.setup.velocityAnimation).animationTime,i=t.maxAnimationTime,Math.min(n*Math.max(1,Math.abs(d/t.inertia)),i)),M=k(e,O),N=k(e,x),D=M*s.offsetWidth/100,z=N*s.offsetHeight/100,W=p+D,R=f-D,_=m+z,j=v-z,A=e.state,F=new Date().getTime();h(e,T,Math.max(C,P),function(t){var n=e.state,i=n.scale,o=n.positionX,r=n.positionY,a=new Date().getTime()-F,s=1-(0,u[b.animationType])(Math.min(1,a/P)),d=1-t,h=o+l*d,y=r+c*d,w=L(h,A.positionX,o,E,g,f,p,R,W,s),T=L(y,A.positionY,r,S,g,v,m,j,_,s);if(o!==h||r!==y){e.setState(i,w,T);var O=e.props.onPanning;O&&O(Z(e),{})}})}}(e):D(e)}}
1(t,n),l(Z(t),e,i))},this.onPinchStart=function(e){var n=t.setup.disabled,i=t.props.onPinchStart;!n&&ea(t,e)&&(eg(t,e),d(t),l(Z(t),e,i))},this.onPinch=function(e){var n=t.setup.disabled,i=t.props.onPinch;!n&&es(t)&&(e.preventDefault(),e.stopPropagation(),eb(t,e),l(Z(t),e,i))},this.onPinchStop=function(e){var n=t.props.onPinchStop;t.pinchStartScale&&(ey(t),l(Z(t),e,n))},this.onTouchPanningStart=function(e){var n=t.setup,i=n.disabled,o=n.doubleClick,r=t.props.onPanningStart;if(!i){var a=!(null==o?void 0:o.disabled),s=t.lastTouch&&+new Date-t.lastTouch<200;if(a&&s&&1===e.touches.length)t.onDoubleClick(e);else{t.lastTouch=+new Date,d(t);var u=e.touches,c=1===u.length,h=2===u.length,p=S(t,e);if(c){if(!p)return;d(t),N(t,e),l(Z(t),e,r)}h&&t.onPinchStart(e)}}},this.onTouchPanning=function(e){var n=t.setup.disabled,i=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n||!E(t))return;e.cancelable&&e.preventDefault(),e.stopPropagation();var r=e.touches[0];z(t,r.clientX,r.clientY,o.TOUCH),l(Z(t),e,i)}else e.touches.length>1&&t.onPinch(e)},this.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},this.onDoubleClick=function(e){!t.setup.disabled&&eE(t,e)&&function(e,t){var n,i=e.setup,o=e.doubleClickStopEventTimer,r=e.state,a=e.contentComponent,s=r.scale,u=e.props,c=u.onZoomStart,d=u.onZoom,h=i.doubleClick,f=h.disabled,m=h.mode,v=h.step,g=h.animationTime,b=h.animationType;if(!f&&!o){if("reset"===m)return eS(e,t);if(!a)return console.error("No ContentComponent found");var y=(n=e.state.scale,"toggle"===m?1===n?1:-1:"zoomOut"===m?-1:1),w=U(e,y,v);if(s!==w){l(Z(e),t,c);var S=ei(t,a,s),E=W(e,w,S.x,S.y);if(!E)return console.error("Error during zoom event. New transformation state was not calculated.");l(Z(e),t,d),p(e,E,g,b),ew(e,t)}}}(t,e)},this.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},this.handleWindowBlur=function(){t.pressedKeys={},t.isPanning&&(t.isPanning=!1,t.startCoords=null)},this.syncModifierKeys=function(e){var n=e.ctrlKey,i=e.metaKey,o=e.shiftKey,r=e.altKey;"boolean"==typeof n&&(t.pressedKeys.Control=n),"boolean"==typeof i&&(t.pressedKeys.Meta=i),"boolean"==typeof o&&(t.pressedKeys.Shift=o),"boolean"==typeof r&&(t.pressedKeys.Alt=r)},this.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},this.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},this.isPressingKeys=function(e){return"function"==typeof e?e(Object.entries(t.pressedKeys).filter(function(e){return e[1]}).map(function(e){return e[0]})):!e.length||Boolean(e.every(function(e){return t.pressedKeys[e]}))},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=ee(t.state.scale,t.wrapperComponent,t.contentComponent);t.setState(e.scale,e.positionX,e.positionY)}},this.handleTransformStyles=function(e,n,i){return t.props.customTransform?t.props.customTransform(e,n,i):J(e,n,i)},this.getContext=function(){return Z(t)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.state,n=e.scale,i=e.positionX,o=e.positionY,r=t.handleTransformStyles(i,o,n);t.props.detached||(t.contentComponent.style.transform=r),t.onTransformCallbacks.forEach(function(e){return e({scale:n,positionX:i,positionY:o,previousScale:t.state.previousScale,ref:Z(t)})})}},this.setState=function(e,n,i){var o=t.props.onTransform;if(Number.isNaN(e)||Number.isNaN(n)||Number.isNaN(i))console.error("Detected NaN set state values");else{var r=Math.max(e,1e-7);r!==t.state.scale&&(t.state.previousScale=t.state.scale,t.state.scale=r),t.state.positionX=n,t.state.positionY=i,t.applyTransformation();var a=Z(t);t.onChangeCallbacks.forEach(function(e){return e(a)}),l(a,{scale:t.state.scale,positionX:n,positionY:i},o)}},this.onTransform=function(e){return t.onTransformCallbacks.has(e)||t.onTransformCallbacks.add(e),function(){t.onTransformCallbacks.delete(e)}},this.onChange=function(e){return t.onChangeCallbacks.has(e)||t.onChangeCallbacks.add(e),function(){t.onChangeCallbacks.delete(e)}},this.onInit=function(e){return t.onInitCallbacks.has(e)||t.onInitCallbacks.add(e),function(){t.onInitCallbacks.delete(e)}},this.init=function(e,n){t.cleanupWindowEvents(),t.wrapperComponent=e,t.contentComponent=n,g(t,t.state.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(n),t.initializeWindowEvents(),t.isInitialized=!0;var i,o=Z(t);l(o,void 0,t.props.onInit),null!=(i=t.props.ref)&&("function"==typeof i?i(o):i.current=o)},this.props=e,this.setup=H(this.props),this.state=B(this.props)},eO=r.createContext(null),ex=r.forwardRef(function(e,t){var n,i,o=(0,r.useRef)(new eT(e)).current,s=(n=e.children,i=G(o),"function"==typeof n?n(i):n);return(0,r.useImperativeHandle)(t,function(){return G(o)},[o]),(0,r.useEffect)(function(){o.update(e)},[o,e]),(0,a.jsx)(eO.Provider,_({value:o},{children:s}))});r.forwardRef(function(e,t){var n,i=(0,r.useRef)(null),o=(0,r.useContext)(eO);return(0,r.useEffect)(function(){return o.onChange(function(e){i.current&&(i.current.style.transform=o.handleTransformStyles(0,0,1/e.instance.state.scale))})},[o]),(0,a.jsx)("div",_({}
1,e,{ref:(n=[i,t],function(e){n.forEach(function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)})})}))});var eP={wrapper:"transform-component-module_wrapper__SPB86",content:"transform-component-module_content__FBWxo",infiniteGrid:"transform-component-module_infiniteGrid__Z-aP3"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__SPB86 {\n  position: relative;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  overflow: hidden;\n  -webkit-touch-callout: none; /* iOS Safari */\n  -webkit-user-select: none; /* Safari */\n  -khtml-user-select: none; /* Konqueror HTML */\n  -moz-user-select: none; /* Firefox */\n  -ms-user-select: none; /* Internet Explorer/Edge */\n  user-select: none;\n  margin: 0;\n  padding: 0;\n  transform: translate3d(0, 0, 0);\n}\n.transform-component-module_content__FBWxo {\n  display: flex;\n  flex-wrap: wrap;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  margin: 0;\n  padding: 0;\n  transform-origin: 0% 0%;\n}\n.transform-component-module_content__FBWxo img {\n  pointer-events: none;\n}\n.transform-component-module_infiniteGrid__Z-aP3 {\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background-image: radial-gradient(\n    circle,\n    rgba(0, 0, 0, 0.12) 1px,\n    transparent 1px\n  );\n  background-size: 20px 20px;\n  background-position: 0 0;\n}\n");var ek=function(e){var t=e.children,n=e.wrapperClass,i=e.contentClass,o=e.wrapperStyle,s=e.contentStyle,l=e.wrapperProps,u=e.contentProps,c=e.infinite,d=void 0!==c&&c,h=(0,r.useContext)(eO),p=h.init,f=h.cleanupWindowEvents,m=(0,r.useRef)(null),v=(0,r.useRef)(null),g=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e=m.current,t=v.current;return null!==e&&null!==t&&p&&(null==p||p(e,t)),function(){null==f||f()}},[]),(0,r.useEffect)(function(){if(d){var e=g.current;if(e){var t=function(){var t=h.state,n=t.positionX,i=t.positionY;e.style.backgroundPosition="".concat(n,"px ").concat(i,"px")};return t(),h.onChange(t)}}},[d,h]),(0,a.jsxs)("div",_({},void 0===l?{}:l,{ref:m,className:"".concat(Y.wrapperClass," ").concat(eP.wrapper," ").concat(void 0===n?"":n),style:o},{children:[d&&(0,a.jsx)("div",{ref:g,className:eP.infiniteGrid,"aria-hidden":!0}),(0,a.jsx)("div",_({},void 0===u?{}:u,{ref:v,className:"".concat(Y.contentClass," ").concat(eP.content," ").concat(void 0===i?"":i),style:_(_({},s),{transform:J(h.state.positionX,h.state.positionY,h.state.scale)})},{children:t}))]}))};r.forwardRef(function(e,t){var n=e.x,i=e.y,o=e.width,s=e.height,l=e.margin,u=void 0===l?0:l,c=e.threshold,d=void 0===c?0:c,h=e.placeholder,p=void 0===h?null:h,f=e.onShow,m=e.onHide,v=e.children,g=e.className,b=e.style,y=(0,r.useContext)(eO),w=(0,r.useState)(!1),S=w[0],E=w[1],T=(0,r.useRef)(!1),O=(0,r.useRef)(f),x=(0,r.useRef)(m);return(O.current=f,x.current=m,(0,r.useEffect)(function(){var e,t=function(){var e,t,r=y.wrapperComponent;if(r){var a=function(e){var t=e.elementX,n=e.elementY,i=e.elementWidth,o=e.elementHeight,r=e.scale,a=e.positionX,s=e.positionY,l=e.viewportWidth,u=e.viewportHeight,c=e.margin,d=void 0===c?0:c,h=e.threshold,p=void 0===h?0:h,f={x:-d,y:-d,width:l+2*d,height:u+2*d},m={x:t*r+a,y:n*r+s,width:i*r,height:o*r};if(p<=0){var v=m.x<f.x+f.width&&m.x+m.width>f.x,g=m.y<f.y+f.height&&m.y+m.height>f.y;return v&&g}var b=m.width*m.height;return!(b<=0)&&Math.max(0,Math.min(f.x+f.width,m.x+m.width)-Math.max(f.x,m.x))*Math.max(0,Math.min(f.y+f.height,m.y+m.height)-Math.max(f.y,m.y))/b>=p}({elementX:n,elementY:i,elementWidth:o,elementHeight:s,scale:y.state.scale,positionX:y.state.positionX,positionY:y.state.positionY,viewportWidth:r.offsetWidth,viewportHeight:r.offsetHeight,margin:u,threshold:d});a!==T.current&&(T.current=a,E(a),a?null===(e=O.current)||void 0===e||e.call(O):null===(t=x.current)||void 0===t||t.call(x))}};t();var r=y.onChange(t);return y.wrapperComponent||(e=y.onInit(function(){return t()})),function(){r(),null==e||e()}},[y,n,i,o,s,u,d]),S)?(0,a.jsx)("div",_({ref:t,className:g,style:b},{children:v})):p?(0,a.jsx)(a.Fragment,{children:p}):null})},1229:function(e,t,n){"use strict";n.d(t,{Z:function(){return eG}});var i,o=n(7294),r={694(e,t,n){var i=n(925);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,a){if(a!==i){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},556(e,t,n){e.exports=n(694)()},925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},115(e){var t="undefined"!=typeof Element,n="function"==typeof Map,i="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,r){try{return function e(r,a){if(r===a)return!0;if(r&&a&&"object"==typeof r&&"object"==typeof a){var s,l,u,c;if(r.constructor!==a.constructor)return!1;if(Array.isArray(r)){if((s=r.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(r[l],a[l]))return!1;return!0}if(n&&r instanceof Map&&a instanceof Map){if(r.size!==a.size)return!1;for(c=r.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=r.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(i&&r instanceof Set&&a instanceof Set){if(r.size!==a.size)return!1;for(c=r.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(r)&&ArrayBuffer.isView(a)){if((s=r.length)!=a.length)return!1;for(l=s;0!=l--;)if(r[l]!==a[l])return!1;return!0}if(r.constructor===RegExp)return r.source===a.source&&r.flags===a.flags;if(r.valueOf!==Object.prototype.valueOf&&"function"==typeof r.valueOf&&"function"==typeof a.valueOf)return r.valueOf()===a.valueOf();if(r.toString!==Object.prototype.toString&&"function"==typeof r.toString&&"function"==typeof a.toString)return r.toString()===a.toString();if((s=(u=Object.keys(r)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&r instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!r.$$typeof)&&!e(r[u[l]],a[u[l]]))return!1;return!0}return r!=r&&a!=a}(e,r)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};s.d(l,{A:()=>eK});let u=function(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,i,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var r=t.length;for(n=0;n<r;n++)t[n]&&(i=e(t[n]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i)}return o}(e))&&(i&&(i+=" "),i+=t);return i},c=(i={},s.d(i,{default:()=>o,useMemo:()=>o.useMemo,useRef:()=>o.useRef}),i),d=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},h="object"==typeof global&&global&&global.Object===Object&&global;var p="object"==typeof self&&self&&self.Object===Object&&self;let f=h||p||Function("return this")(),m=function(){return f.Date.now()};var v=/\s/,g=/^\s+/;let b=f.Symbol;var y=Object.prototype,w=y.hasOwnProperty,S=y.toString,E=b?b.toStringTag:void 0,T=Object.prototype.toString,O=b?b.toStringTag:void 0,x=/^[-+]0x[0-9a-f]+$/i,P=/^0b[01]+$/i,k=/^0o[0-7]+$/i,C=parseInt;let I=function(e){if("number"==typeof e)return e;if("symbol"==typeof(n=e)||null!=(i=n)&&"object"==typeof i&&"[object Symbol]"==(null==(t=n)?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?function(e){var t=w.call(e,E),n=e[E];try{e[E]=void 0;var i=!0}catch(o){}var r=S.call(e);return i&&(t?e[E]=n:delete e[E]),r}(t):T.call(t)))return NaN;if(d(e)){var t,n,i,o,r="function"==typeof e.valueOf?e.valueOf():e;e=d(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(o=e)?o.slice(0,function(e){for(var t=e.length;t--&&v.test(e.charAt(t)););return t}(o)+1).replace(g,""):o;var a=P.test(e);return a||k.test(e)?C(e.slice(2),a?2:8):x.test(e)?NaN:+e};var L=Math.max,M=Math.min;let N=function(e,t,n){var i,o,r,a,s,l,u=0,c=!1,h=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function f(t){var n=i,r=o;return i=o=void 0,u=t,a=e.apply(r,n)}function v(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-u>=r}function g(){var e,n=m();if(v(n))return b(n);s=setTimeout(g,(e=t-(n-l),h?M(e,r-(n-u)):e))}function b(e){return s=void 0,p&&i?f(e):(i=o=void 0,a)}function y(){var e,n=m(),r=v(n);if(i=arguments,o=this,l=n,r){if(void 0===s)return u=e=l,s=setTimeout(g,t),c?f(e):a;if(h)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=I(t)||0,d(n)&&(c=!!n.leading,r=(h="maxWait"in n)?L(I(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,i=l=o=s=void 0},y.flush=function(){return void 0===s?a:b(m())},y},D=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return d(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),N(e,t,{leading:i,maxWait:t,trailing:o})};var z=s(115),W=s.n(z),R=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 o=i[n];e.call(t,o[1],o[0])}},t}()}(),_="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,j=void 0!==s.g&&s.g.Math===Math?s.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),A="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(j):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},F=["top","right","bottom","left","width","height","size","weight"],Y="undefined"!=typeof MutationObserver,B=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,i=0;function o(){t&&(t=!1,e()),n&&a()}function r(){A(o)}function a(){var e=Date.now();if(t){if(e-i<2)return;n=!0}else t=!0,n=!1,setTimeout(r,20);i=e}return a}(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(){_&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Y?(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(){_&&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;F.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}(),H=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},U=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||j},X=q(0,0,0,0);function K(e){return parseFloat(e)||0}function G(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+K(e["border-"+n+"-width"])},0)}var Z="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof U(e).SVGGraphicsElement}:function(e){return e instanceof U(e).SVGElement&&"function"==typeof e.getBBox};function q(e,t,n,i){return{x:e,y:t,width:n,height:i}}var V=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,_?Z(e)?q(0,0,(t=e.getBBox()).width,t.height):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return X;var i=U(e).getComputedStyle(e),o=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var o=i[n],r=e["padding-"+o];t[o]=K(r)}return t}(i),r=o.left+o.right,a=o.top+o.bottom,s=K(i.width),l=K(i.height);if("border-box"===i.boxSizing&&(Math.round(s+r)!==t&&(s-=G(i,"left","right")+r),Math.round(l+a)!==n&&(l-=G(i,"top","bottom")+a)),e!==U(e).document.documentElement){var u=Math.round(s+r)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return q(o.left,o.top,s,l)}(e):X);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}(),$=function(e,t){var n,i,o,r,a,s=(n=t.x,i=t.y,o=t.width,r=t.height,H(a=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:i,width:o,height:r,top:i,right:n+o,bottom:r+i,left:n}),a);H(this,{target:e,contentRect:s})},Q=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new R,"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 U(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new V(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 U(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 $(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}(),J="undefined"!=typeof WeakMap?new WeakMap:new R,ee=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=B.getInstance(),i=new Q(t,n,this);J.set(this,i)};["observe","unobserve","disconnect"].forEach(function(e){ee.prototype[e]=function(){var t;return(t=J.get(this))[e].apply(t,arguments)}});let et=void 0!==j.ResizeObserver?j.ResizeObserver:ee,en="Left",ei="Right",eo="Down",er={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},ea={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},es="mousemove",el="mouseup";function eu(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 ec=s(556);function ed(e){return(ed="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 eh(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]:{};
1t%2?eh(Object(n),!0).forEach(function(t){!function(e,t,n){var i;(i=function(e){if("object"!=ed(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ed(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==ed(i)?i: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)):eh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ef={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},em=c.default.memo(function(e){var t=ep(ep({},ef),e),n=t.description,i=t.fullscreen,o=t.handleImageLoaded,r=t.isFullscreen,a=t.onImageError,s=t.original,l=t.originalAlt,u=t.originalHeight,d=t.originalWidth,h=t.originalTitle,p=t.sizes,f=t.srcSet,m=t.loading;return c.default.createElement(c.default.Fragment,null,c.default.createElement("img",{className:"image-gallery-image",src:r&&i||s,alt:l,srcSet:f,height:u,width:d,sizes:p,title:h,onLoad:function(e){return o(e,s)},onError:a,loading:m}),n&&c.default.createElement("span",{className:"image-gallery-description"},n))});function ev(e){return(ev="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 eg(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 eb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eg(Object(n),!0).forEach(function(t){!function(e,t,n){var i;(i=function(e){if("object"!=ev(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ev(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==ev(i)?i: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)):eg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}em.displayName="Item",em.propTypes={description:ec.string,fullscreen:ec.string,handleImageLoaded:ec.func.isRequired,isFullscreen:ec.bool,onImageError:ec.func.isRequired,original:ec.string.isRequired,originalAlt:ec.string,originalHeight:ec.string,originalWidth:ec.string,originalTitle:ec.string,sizes:ec.string,srcSet:ec.string,loading:ec.string};var ey={left:c.default.createElement("polyline",{points:"15 18 9 12 15 6"}),right:c.default.createElement("polyline",{points:"9 18 15 12 9 6"}),top:c.default.createElement("polyline",{points:"6 15 12 9 18 15"}),bottom:c.default.createElement("polyline",{points:"6 9 12 15 18 9"}),maximize:c.default.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:c.default.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:c.default.createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:c.default.createElement(c.default.Fragment,null,c.default.createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),c.default.createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},ew={strokeWidth:1,viewBox:"0 0 24 24"},eS=function(e){var t=eb(eb({},ew),e),n=t.strokeWidth,i=t.viewBox,o=t.icon;return c.default.createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:i,fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round"},ey[o])};eS.propTypes={strokeWidth:ec.number,viewBox:ec.string,icon:(0,ec.oneOf)(["left","right","top","bottom","maximize","minimize","play","pause"]).isRequired};var eE=c.default.memo(function(e){var t=e.isFullscreen,n=e.onClick;return c.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:n,"aria-label":"Open Fullscreen"},c.default.createElement(eS,{strokeWidth:2,icon:t?"minimize":"maximize"}))});eE.displayName="Fullscreen",eE.propTypes={isFullscreen:ec.bool.isRequired,onClick:ec.func.isRequired};var eT=c.default.memo(function(e){var t=e.disabled,n=e.onClick;return c.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:n,"aria-label":"Previous Slide"},c.default.createElement(eS,{icon:"left",viewBox:"6 0 12 24"}))});eT.displayName="LeftNav",eT.propTypes={disabled:ec.bool.isRequired,onClick:ec.func.isRequired};var eO=c.default.memo(function(e){var t=e.disabled,n=e.onClick;return c.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:n,"aria-label":"Next Slide"},c.default.createElement(eS,{icon:"right",viewBox:"6 0 12 24"}))});eO.displayName="RightNav",eO.propTypes={disabled:ec.bool.isRequired,onClick:ec.func.isRequired};var ex=c.default.memo(function(e){var t=e.isPlaying,n=e.onClick;return c.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:n,"aria-label":"Play or Pause Slideshow"},c.default.createElement(eS,{strokeWidth:2,icon:t?"pause":"play"}))});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 ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}function eC(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 eI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?eC(Object(n),!0).forEach(function(t){!function(e,t,n){var i;(i=function(e){if("object"!=eP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eP(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==eP(i)?i: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)):eC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}ex.displayName="PlayPause",ex.propTypes={isPlaying:ec.bool.isRequired,onClick:ec.func.isRequired};var eL={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},eM=function(e){var t=eI(eI({},eL),e),n=t.children,i=t.className,o=function(e){var t,n,i;let o;let{trackMouse:r}=e,a=c.useRef(Object.assign({},ea)),s=c.useRef(Object.assign({},er)),l=c.useRef(Object.assign({},s.current));for(o in l.current=Object.assign({},s.current),s.current=Object.assign(Object.assign({},er),e),er)void 0===s.current[o]&&(s.current[o]=er[o]);let[u,d]=c.useMemo(()=>(function(e,t){let n=t=>{let n="touches"in t;n&&t.touches.length>1||e((e,o)=>{o.trackMouse&&!n&&(document.addEventListener(es,i),document.addEventListener(el,r));let{clientX:a,clientY:s}=n?t.touches[0]:t,l=eu([a,s],o.rotationAngle);return o.onTouchStartOrOnMouseDown&&o.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),ea),{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:o,clientY:r}=i?t.touches[0]:t,[a,s]=eu([o,r],n.rotationAngle),l=a-e.xy[0],u=s-e.xy[1],c=Math.abs(l),d=Math.abs(u),h=(t.timeStamp||0)-e.start,p=c>d?l>0?ei:en:u>0?eo:"Up",f="number"==typeof n.delta?n.delta:n.delta[p.toLowerCase()]||er.delta;if(c<f&&d<f&&!e.swiping)return e;let m={absX:c,absY:d,deltaX:l,deltaY:u,dir:p,event:t,first:e.first,initial:e.initial,velocity:Math.sqrt(c*c+d*d)/(h||1),vxvy:[l/(h||1),u/(h||1)]};m.first&&n.onSwipeStart&&n.onSwipeStart(m),n.onSwiping&&n.onSwiping(m);let v=!1;return(n.onSwiping||n.onSwiped||n[`onSwiped${p}`])&&(v=!0),v&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:m,swiping:!0})})},o=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 o=n[`onSwiped${i.dir}`];o&&o(i)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),ea),{eventData:i})})},r=e=>{document.removeEventListener(es,i),document.removeEventListener(el,r),o(e)},a=(e,t)=>{let r=()=>{};if(e&&e.addEventListener){let a=Object.assign(Object.assign({},er.touchEventOptions),t.touchEventOptions),s=[["touchstart",n,a],["touchmove",i,Object.assign(Object.assign({},a),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",o,a]];s.forEach(([t,n,i])=>e.addEventListener(t,n,i)),r=()=>s.forEach(([t,n])=>e.removeEventListener(t,n))}return r},s={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=a(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),i)})}};return t.trackMouse&&(s.onMouseDown=n),[s,a]})(e=>a.current=e(a.current,s.current),{trackMouse:r}),[r]);return a.current=(t=a.current,n=s.current,i=l.current,n.trackTouch&&t.el?t.cleanUpTouch?n.preventScrollOnSwipe!==i.preventScrollOnSwipe||n.touchEventOptions.passive!==i.touchEventOptions.passive?(t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:d(t.el,n)})):t:Object.assign(Object.assign({},t),{cleanUpTouch:d(t.el,n)}):(t.cleanUpTouch&&t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:void 0}))),u}({delta:t.delta,onSwiping:t.onSwiping,onSwiped:t.onSwiped});return c.default.createElement("div",ek({},o,{className:i}),n)};eM.propTypes={children:ec.node.isRequired,className:ec.string,delta:ec.number,onSwiped:ec.func,onSwiping:ec.func};var eN=c.default.memo(function(e){var t=e.disabled,n=e.onClick;return c.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-top-nav",disabled:t,onClick:n,"aria-label":"Previous Slide"},c.default.createElement(eS,{icon:"top",viewBox:"6 0 12 24"}))});eN.displayName="TopNav",eN.propTypes={disabled:ec.bool.isRequired,onClick:ec.func.isRequired};var eD=c.default.memo(function(e){var t=e.disabled,n=e.onClick;return c.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-bottom-nav",disabled:t,onClick:n,"aria-label":"Next Slide"},c.default.createElement(eS,{icon:"bottom",viewBox:"6 0 12 24"}))});function ez(e){return(ez="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 eW(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 eR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?eW(Object(n),!0).forEach(function(t){eF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function e_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(e_=function(){return!!e})()}function ej(e){return(ej=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eA(e,t){return(eA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eF(e,t,n){return(t=eY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eY(e){var t=function(e){if("object"!=ez(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ez(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ez(t)?t:t+""}eD.displayName="BottomNav",eD.propTypes={disabled:ec.bool.isRequired,onClick:ec.func.isRequired};var eB=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],eH=(0,ec.arrayOf)((0,ec.shape)({srcSet:ec.string,media:ec.string}));function eU(e){var t=parseInt(e.keyCode||e.which||0,10);return 66===t||62===t}var eX=function(){var e;function t(e){var n,i,o;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),eF((o=[e],i=ej(i=t),n=function(e,t){if(t&&("object"==ez(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e_()?Reflect.construct(i,o||[],ej(this).constructor):i.apply(this,o))),"onBulletClick",function(e,t){var i=n.props,o=i.onBulletClick,r=i.items,a=n.state.currentIndex;e.target.blur(),a!==t&&(2===r.length?n.slideToIndexWithStyleReset(t,e):n.slideToIndex(t,e)),o&&o(e,t)}),n.state={currentIndex:e.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,galleryHeight:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(e.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},n.loadedImages={},n.imageGallery=c.default.createRef(),n.thumbnailsWrapper=c.default.createRef(),n.thumbnails=c.default.createRef(),n.imageGallerySlideWrapper=c.default.createRef(),n.handleImageLoaded=n.handleImageLoaded.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleMouseDown=n.handleMouseDown.bind(n),n.handleResize=n.handleResize.bind(n),n.handleOnSwiped=n.handleOnSwiped.bind(n),n.handleScreenChange=n.handleScreenChange.bind(n),n.handleSwiping=n.handleSwiping.bind(n),n.handleThumbnailSwiping=n.handleThumbnailSwiping.bind(n),n.handleOnThumbnailSwiped=n.handleOnThumbnailSwiped.bind(n),n.onThumbnailMouseLeave=n.onThumbnailMouseLeave.bind(n),n.handleImageError=n.handleImageError.bind(n),n.pauseOrPlay=n.pauseOrPlay.bind(n),n.renderThumbInner=n.renderThumbInner.bind(n),n.renderItem=n.renderItem.bind(n),n.slideLeft=n.slideLeft.bind(n),n.slideRight=n.slideRight.bind(n),n.toggleFullScreen=n.toggleFullScreen.bind(n),n.togglePlay=n.togglePlay.bind(n),n.unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=D(n.unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n.lazyLoaded=[]),n}return 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&&eA(e,t)}(t,c.default.Component),e=[{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),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,i=n.items,o=n.lazyLoad,r=n.slideDuration,a=n.slideInterval,s=n.startIndex,l=n.thumbnailPosition,u=n.showThumbnails,c=n.useWindowKeyDown,d=this.state,h=d.currentIndex,p=d.isPlaying,f=e.items.length!==i.length,m=!W()(e.items,i),v=e.startIndex!==s,g=e.thumbnailPosition!==l,b=e.showThumbnails!==u;a===e.slideInterval&&r===e.slideDuration||p&&(this.pause(),this.play()),g&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),b&&u&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),b&&!u&&this.removeThumbn
1ailsResizeObserver(),(f||b)&&this.handleResize(),t.currentIndex!==h&&this.slideThumbnailBar(),e.slideDuration!==r&&(this.slideToIndex=D(this.unthrottledSlideToIndex,r,{trailing:!1})),o&&(!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))),(v||m)&&this.setState({currentIndex:s,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var e=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),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,o=this.props,r=o.onSlide,a=o.slideDuration;this.transitionTimer=window.setTimeout(function(){i&&(e.setState({isTransitioning:!i,isSwipingThumbnail:!1}),r&&r(n))},a+50)}},{key:"onThumbnailClick",value:function(e,t){var n=this.props,i=n.onThumbnailClick,o=n.items,r=this.state.currentIndex;e.target.parentNode.parentNode.blur(),r!==t&&(2===o.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,o=n.items,r=this.state,a=r.thumbnailsWrapperWidth,s=r.thumbnailsWrapperHeight,l=this.thumbnails&&this.thumbnails.current;if(i)return 0;if(l){if(this.isThumbnailVertical()){if(l.scrollHeight<=s)return 0;t=l.scrollHeight-s}else{if(l.scrollWidth<=a||a<=0)return 0;t=l.scrollWidth-a}return e*(t/(o.length-1))}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,o=n.items,r="",a="image-gallery-left",s="image-gallery-right";switch(e){case t-1:r=" ".concat(a);break;case t:r=" ".concat("image-gallery-center");break;case t+1:r=" ".concat(s)}return o.length>=3&&i&&(0===e&&t===o.length-1?r=" ".concat(s):e===o.length-1&&0===t&&(r=" ".concat(a))),r}},{key:"getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,i=t.currentSlideOffset,o=t.previousIndex,r=0===e&&1===n,a=1===e&&0===n,s=0===i,l=-100*n+100*e+i;return i>0?this.direction="left":i<0&&(this.direction="right"),a&&i>0&&(l=-100+i),r&&i<0&&(l=100+i),n!==o?0===e&&0===o&&s&&"left"===this.direction?l=100:1===e&&1===o&&s&&"right"===this.direction&&(l=-100):(a&&s&&"left"===this.direction&&(l=-100),r&&s&&"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,o=t.slideStyle,r=this.props,a=r.infinite,s=r.items,l=r.useTranslate3D,u=r.isRTL,c=r.slideVertically,d=s.length-1,h=(-100*n+100*e)*(u?-1:1)+i;a&&s.length>2&&(0===n&&e===d?h=-100*(u?-1:1)+i:n===d&&0===e&&(h=100*(u?-1:1)+i)),a&&2===s.length&&(h=this.getTranslateXForTwoSlide(e));var p=c?"translate(0, ".concat(h,"%)"):"translate(".concat(h,"%, 0)");return l&&(p=c?"translate3d(0, ".concat(h,"%, 0)"):"translate3d(".concat(h,"%, 0, 0)")),eR({dis
1play:this.isSlideVisible(e)?"inherit":"none",WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p},o)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var e,t=this.props,n=t.useTranslate3D,i=t.isRTL,o=this.state,r=o.thumbsTranslate,a=o.thumbsStyle,s=i?-1*r:r;return this.isThumbnailVertical()?(e="translate(0, ".concat(r,"px)"),n&&(e="translate3d(0, ".concat(r,"px, 0)"))):(e="translate(".concat(s,"px, 0)"),n&&(e="translate3d(".concat(s,"px, 0, 0)"))),eR({WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e},a)}},{key:"getSlideItems",value:function(){var e=this,t=this.state.currentIndex,n=this.props,i=n.items,o=n.slideOnThumbnailOver,r=n.onClick,a=n.lazyLoad,s=n.onTouchMove,l=n.onTouchEnd,d=n.onTouchStart,h=n.onMouseOver,p=n.onMouseLeave,f=n.renderItem,m=n.renderThumbInner,v=n.showThumbnails,g=n.showBullets,b=[],y=[],w=[];return i.forEach(function(n,i){var S=e.getAlignmentClassName(i),E=n.originalClass?" ".concat(n.originalClass):"",T=n.thumbnailClass?" ".concat(n.thumbnailClass):"",O=n.renderItem||f||e.renderItem,x=n.renderThumbInner||m||e.renderThumbInner,P=!a||S||e.lazyLoaded[i];P&&a&&!e.lazyLoaded[i]&&(e.lazyLoaded[i]=!0);var k=e.getSlideStyle(i),C=c.default.createElement("div",{"aria-label":"Go to Slide ".concat(i+1),key:"slide-".concat(i),tabIndex:"-1",className:"image-gallery-slide ".concat(S," ").concat(E),style:k,onClick:r,onKeyUp:e.handleSlideKeyUp,onTouchMove:s,onTouchEnd:l,onTouchStart:d,onMouseOver:h,onFocus:h,onMouseLeave:p,role:"button"},P?O(n):c.default.createElement("div",{style:{height:"100%"}}));if(b.push(C),v&&n.thumbnail){var I=u("image-gallery-thumbnail",T,{active:t===i});y.push(c.default.createElement("button",{key:"thumbnail-".concat(i),type:"button",tabIndex:"0","aria-pressed":t===i?"true":"false","aria-label":"Go to Slide ".concat(i+1),className:I,onMouseLeave:o?e.onThumbnailMouseLeave:null,onMouseOver:function(t){return e.handleThumbnailMouseOver(t,i)},onFocus:function(t){return e.handleThumbnailMouseOver(t,i)},onKeyUp:function(t){return e.handleThumbnailKeyUp(t,i)},onClick:function(t){return e.onThumbnailClick(t,i)}},x(n)))}if(g){var L=u("image-gallery-bullet",n.bulletClass,{active:t===i});w.push(c.default.createElement("button",{type:"button",key:"bullet-".concat(i),className:L,onClick:function(t){return e.onBulletClick(t,i)},"aria-pressed":t===i?"true":"false","aria-label":"Go to Slide ".concat(i+1)}))}}),{slides:b,thumbnails:y,bullets:w}}},{key:"ignoreIsTransitioning",value:function(){var e=this.props.items,t=this.state,n=t.previousIndex,i=t.currentIndex,o=e.length-1;return Math.abs(n-i)>1&&!(0===n&&i===o)&&!(n===o&&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,o=t.currentIndex;return n&&!(e===i||e===o)}},{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(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlideNext():this.canSlidePrevious())}},{key:"canSlideRight",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlidePrevious():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.absY,o=e.dir,r=this.props,a=r.disableSwipe,s=r.stopPropagation,l=r.swipingTransitionDuration,u=this.state,c=u.galleryWidth,d=u.galleryHeight,h=u.isTransitioning,p=u.swipingUpDown,f=u.swipingLeftRight,m=this.props.slideVertically;if(("Up"!==o&&o!==eo&&!p||f||(p||this.setState({swipingUpDown:!0}),m))&&(o!==en&&o!==ei||f||this.setState({swipingLeftRight:!0}),!a)){if(s&&t.preventDefault(),h)this.setState({currentSlideOffset:0});
1else{if((o===en||o===ei)&&m||("Up"===o||o===eo)&&!m)return;var v=eF(eF(eF(eF({},en,-1),ei,1),"Up",-1),eo,1)[o],g=n/c*100;m&&(g=i/d*100),Math.abs(g)>=100&&(g=100),this.setState({currentSlideOffset:v*g,slideStyle:{transition:"transform ".concat(l,"ms ease-out")}})}}}},{key:"handleThumbnailSwiping",value:function(e){var t=e.event,n=e.absX,i=e.absY,o=e.dir,r=this.props,a=r.stopPropagation,s=r.swipingThumbnailTransitionDuration,l=this.state,u=l.thumbsSwipedTranslate,c=l.thumbnailsWrapperHeight,d=l.thumbnailsWrapperWidth,h=l.swipingUpDown,p=l.swipingLeftRight;if(this.isThumbnailVertical()){if((o===en||o===ei||p)&&!h)return void(p||this.setState({swipingLeftRight:!0}));"Up"!==o&&o!==eo||h||this.setState({swipingUpDown:!0})}else{if(("Up"===o||o===eo||h)&&!p)return void(h||this.setState({swipingUpDown:!0}));o!==en&&o!==ei||p||this.setState({swipingLeftRight:!0})}var f,m,v,g,b=this.thumbnails&&this.thumbnails.current;this.isThumbnailVertical()?(m=Math.abs(f=u+(o===eo?i:-i))>b.scrollHeight-c+20,v=f>20,g=b.scrollHeight<=c):(m=Math.abs(f=u+(o===ei?n:-n))>b.scrollWidth-d+20,v=f>20,g=b.scrollWidth<=d),g||(o===en||"Up"===o)&&m||(o===ei||o===eo)&&v||(a&&t.stopPropagation(),this.setState({thumbsTranslate:f,thumbsStyle:{transition:"transform ".concat(s,"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,o=this.props,r=o.disableSwipe,a=o.stopPropagation,s=o.flickThreshold,l=this.props.slideVertically;if(!r){var u=this.props.isRTL;a&&t.stopPropagation(),this.resetSwipingDirection();var c=(n===en?1:-1)*(u?-1:1);l&&(c="Up"===n?1:-1),this.handleOnSwipedTo(c,l?i>s&&!(n===en||n===ei):i>s&&!("Up"===n||n===eo))}}},{key:"handleOnSwipedTo",value:function(e,t){var n=this.state,i=n.currentIndex,o=n.isTransitioning,r=i;(this.sufficientSwipe()||t)&&!o&&(r+=e),(-1!==e||this.canSlideLeft())&&(1!==e||this.canSlideRight())||(r=i),this.unthrottledSlideToIndex(r)}},{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,o=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:o&&!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,galleryHeight:this.imageGallery.current.offsetHeight}),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 et(N(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 et(N(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,o=this.imageGallery.current===i;t&&t(o),n&&this.setState({isFullscreen:o})}}
vendor: 4,237 bytes, line 1
1,{key:"slideToIndex",value:function(e,t){var n=this.state,i=n.currentIndex,o=n.isTransitioning,r=this.props,a=r.items,s=r.slideDuration,l=r.onBeforeSlide;if(!o){t&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var u=a.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(s,"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,o=n.isTransitioning,r=this.props.items,a=i+("left"===t?-1:1);o||(2===r.length?this.slideToIndexWithStyleReset(a,e):this.slideToIndex(a,e))}},{key:"slideToIndexWithStyleReset",value:function(e,t){var n=this,i=this.state,o=i.currentIndex,r=i.currentSlideOffset;this.setState({currentSlideOffset:r+(o>e?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return n.slideToIndex(e,t)},25)})}},{key:"handleThumbnailMouseOver",value:function(e,t){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(e,t)}},{key:"handleThumbnailKeyUp",value:function(e,t){eU(e)&&this.onThumbnailClick(e,t)}},{key:"handleSlideKeyUp",value:function(e){eU(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;eB.forEach(function(t){document.addEventListener(t,e.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var e=this;eB.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,o=t.slideDuration,r=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(i,o)),n&&e&&n(r))}},{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 c.default.createElement(em,{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 c.default.createElement("span",{className:"image-gallery-thumbn
1ail-inner"},c.default.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&&c.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))}},{key:"render",value:function(){var e=this.state,t=e.currentIndex,n=e.isFullscreen,i=e.modalFullscreen,o=e.isPlaying,r=this.props,a=r.additionalClass,s=r.disableThumbnailSwipe,l=r.indexSeparator,d=r.isRTL,h=r.items,p=r.thumbnailPosition,f=r.renderFullscreenButton,m=r.renderCustomControls,v=r.renderLeftNav,g=r.renderRightNav,b=r.renderTopNav,y=r.renderBottomNav,w=r.showBullets,S=r.showFullscreenButton,E=r.showIndex,T=r.showThumbnails,O=r.showNav,x=r.showPlayButton,P=r.slideVertically,k=r.renderPlayPauseButton,C=this.getThumbnailStyle(),I=this.getSlideItems(),L=I.slides,M=I.thumbnails,N=I.bullets,D=u("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(p),{"image-gallery-rtl":d}),z=u("image-gallery-bullets",{"image-gallery-bullets-vertical":P}),W=c.default.createElement("div",{ref:this.imageGallerySlideWrapper,className:D},m&&m(),this.canSlide()?c.default.createElement(c.default.Fragment,null,O&&c.default.createElement(c.default.Fragment,null,P?b(this.slideLeft,!this.canSlideLeft()):v(this.slideLeft,!this.canSlideLeft()),P?y(this.slideRight,!this.canSlideRight()):g(this.slideRight,!this.canSlideRight())),c.default.createElement(eM,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},c.default.createElement("div",{className:"image-gallery-slides"},L))):c.default.createElement("div",{className:"image-gallery-slides"},L),x&&k(this.togglePlay,o),w&&c.default.createElement("div",{className:z},c.default.createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},N)),S&&f(this.toggleFullScreen,n),E&&c.default.createElement("div",{className:"image-gallery-index"},c.default.createElement("span",{className:"image-gallery-index-current"},t+1),c.default.createElement("span",{className:"image-gallery-index-separator"},l),c.default.createElement("span",{className:"image-gallery-index-total"},h.length))),R=u("image-gallery",a,{"fullscreen-modal":i}),_=u("image-gallery-content",this.getThumbnailPositionClassName(p),{fullscreen:n}),j=u("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(p),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&d},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!s},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!s});return c.default.createElement("div",{ref:this.imageGallery,className:R,"aria-live":"polite"},c.default.createElement("div",{className:_},("bottom"===p||"right"===p)&&W,T&&M.length>0?c.default.createElement(eM,{className:j,delta:0,onSwiping:!s&&this.handleThumbnailSwiping,onSwiped:!s&&this.handleOnThumbnailSwiped},c.default.createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},c.default.createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:C,"aria-label":"Thumbnail Navigation"},M))):null,("top"===p||"left"===p)&&W))}}],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,eY(i.key),i)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();eX.propTypes={flickThreshold:ec.number,items:(0,ec.arrayOf)((0,ec.shape)({bulletClass:ec.string,bulletOnClick:ec.func,description:ec.string,original:ec.string,originalHeight:ec.number,originalWidth:ec.number,loading:ec.string,thumbnailHeight:ec.number,thumbnailWidth:ec.number,thumbnailLoading:ec.string,fullscreen:ec.string,originalAlt:ec.string,originalTitle:ec.string,thumbnail:ec.string,thumbnailAlt:ec.string,thumbnailLabel:ec.string,thumbnailTitle:ec.string,originalClass:ec.string,thumbnailClass:ec.string,renderItem:ec.func,renderThumbInner:ec.func,imageSet:eH,srcSet:ec.string,
1sizes:ec.string})).isRequired,showNav:ec.bool,autoPlay:ec.bool,lazyLoad:ec.bool,infinite:ec.bool,showIndex:ec.bool,showBullets:ec.bool,showThumbnails:ec.bool,showPlayButton:ec.bool,showFullscreenButton:ec.bool,disableThumbnailScroll:ec.bool,disableKeyDown:ec.bool,disableSwipe:ec.bool,disableThumbnailSwipe:ec.bool,useBrowserFullscreen:ec.bool,onErrorImageURL:ec.string,indexSeparator:ec.string,thumbnailPosition:(0,ec.oneOf)(["top","bottom","left","right"]),startIndex:ec.number,slideDuration:ec.number,slideInterval:ec.number,slideOnThumbnailOver:ec.bool,swipeThreshold:ec.number,swipingTransitionDuration:ec.number,swipingThumbnailTransitionDuration:ec.number,onSlide:ec.func,onBeforeSlide:ec.func,onScreenChange:ec.func,onPause:ec.func,onPlay:ec.func,onClick:ec.func,onImageLoad:ec.func,onImageError:ec.func,onTouchMove:ec.func,onTouchEnd:ec.func,onTouchStart:ec.func,onMouseOver:ec.func,onMouseLeave:ec.func,onBulletClick:ec.func,onThumbnailError:ec.func,onThumbnailClick:ec.func,renderCustomControls:ec.func,renderLeftNav:ec.func,renderRightNav:ec.func,renderTopNav:ec.func,renderBottomNav:ec.func,renderPlayPauseButton:ec.func,renderFullscreenButton:ec.func,renderItem:ec.func,renderThumbInner:ec.func,stopPropagation:ec.bool,additionalClass:ec.string,useTranslate3D:ec.bool,isRTL:ec.bool,useWindowKeyDown:ec.bool,slideVertically:ec.bool},eX.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,slideVertically:!1,renderLeftNav:function(e,t){return c.default.createElement(eT,{onClick:e,disabled:t})},renderRightNav:function(e,t){return c.default.createElement(eO,{onClick:e,disabled:t})},renderTopNav:function(e,t){return c.default.createElement(eN,{onClick:e,disabled:t})},renderBottomNav:function(e,t){return c.default.createElement(eD,{onClick:e,disabled:t})},renderPlayPauseButton:function(e,t){return c.default.createElement(ex,{onClick:e,isPlaying:t})},renderFullscreenButton:function(e,t){return c.default.createElement(eE,{onClick:e,isFullscreen:t})},useWindowKeyDown:!0};let eK=eX;var eG=l.A},3842:function(e,t,n){"use strict";n.d(t,{M:function(){return I}});var i=n(7294),o=n(3935);let r=(e,t)=>"undefined"!=typeof Element&&t instanceof Element&&t.tagName.toUpperCase()===e,a=e=>r("DIV",e)||r("SPAN",e),s=e=>r("IMG",e),l=e=>e.complete&&0!==e.naturalHeight,u=e=>r("SVG",e),c=({height:e,offset:t,width:n})=>Math.min((window.innerWidth-2*t)/n,(window.innerHeight-2*t)/e),d=({containerHeight:e,containerWidth:t,offset:n,targetHeight:i,targetWidth:o})=>{let r=c({height:i,offset:n,width:o}),a=o>i?o/t:i/e;return r>1?a:r*a},h=({containerHeight:e,containerWidth:t,hasScalableSrc:n,offset:i,targetHeight:o,targetWidth:r})=>0===e||0===t?1:n||0===o||0===r?c({height:e,offset:i,width:t}):d({containerHeight:e,containerWidth:t,offset:i,targetHeight:o,targetWidth:r}),p=/url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/,f=e=>{if(null!==e){if(s(e))return""===e.currentSrc?void 0:e.currentSrc;if(a(e)){let{backgroundImage:t}=window.getComputedStyle(e);if(""!==t)return p.exec(t)?.[1]}}},m=e=>{if(null!==e)return s(e)?e.alt:e.getAttribute("aria-label")??void 0},v=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:o,offset:r,targetHeight:a,targetWidth:s})=>{let l=h({containerHeight:e,containerWidth:i,hasScalableSrc:o,offset:r,targetHeight:a,targetWidth:s});return{top:n,left:t,width:i*l,height:e*l,transform:`translate(0,0) scale(${1/l})`}},g=({position:e,relativeNum:t})=>{let n=parseFloat(e);return e.endsWith("%")?t*n/100:n},b=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:i,hasScalableSrc:o,objectFit:r,objectPosition:a,offset:s,targetHeight:l,targetWidth:u})=>{let c=r;if("scale-down"===c&&(c=u<=i&&l<=e?"none":"contain"),"cover"===c||"contain"===c){let d=i/u,p=e/l,f="cover"===c?Math.max(d,p):Math.min(d,p),[m="50%",v="50%"]=a.split(" "),b=g({position:m,relativeNum:i-u*f}),y=g({position:v,relativeNum:e-l*f}),w=h({containerHeight:l*f,containerWidth:u*f,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:u});return{top:n+y,left:t+b,width:u*f*w,height:l*f*w,transform:`translate(0,0) scale(${1/w})`}}if("none"===c){let[S="50%",E="50%"]=a.split(" "),T=g({position:S,relativeNum:i-u}),O=g({position:E,relativeNum:e-l}),x=h({containerHeight:l,containerWidth:u,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:u});return{top:n+O,left:t+T,width:u*x,height:l*x,transform:`translate(0,0) scale(${1/x})`}}if("fill"!==c)return{};{let P=Math.max(i/u,e/l),k=h({containerHeight:l*P,containerWidth:u*P,hasScalableSrc:o,offset:s,targetHeight:l,targetWidth:u});return{width:i*k,height:e*k,transform:`translate(0,0) scale(${1/k})`}}}
1,y=({backgroundPosition:e,backgroundSize:t,containerHeight:n,containerLeft:i,containerTop:o,containerWidth:r,hasScalableSrc:a,offset:s,targetHeight:l,targetWidth:u})=>{if("cover"===t||"contain"===t){let c=r/u,d=n/l,p="cover"===t?Math.max(c,d):Math.min(c,d),[f="50%",m="50%"]=e.split(" "),v=g({position:f,relativeNum:r-u*p}),b=g({position:m,relativeNum:n-l*p}),y=h({containerHeight:l*p,containerWidth:u*p,hasScalableSrc:a,offset:s,targetHeight:l,targetWidth:u});return{top:o+b,left:i+v,width:u*p*y,height:l*p*y,transform:`translate(0,0) scale(${1/y})`}}if("auto"===t){let[w="50%",S="50%"]=e.split(" "),E=g({position:w,relativeNum:r-u}),T=g({position:S,relativeNum:n-l}),O=h({containerHeight:l,containerWidth:u,hasScalableSrc:a,offset:s,targetHeight:l,targetWidth:u});return{top:o+T,left:i+E,width:u*O,height:l*O,transform:`translate(0,0) scale(${1/O})`}}{let[x="50%",P="50%"]=t.split(" "),k=g({position:x,relativeNum:r}),C=g({position:P,relativeNum:n}),I=Math.min(k/u,C/l),[L="50%",M="50%"]=e.split(" "),N=g({position:L,relativeNum:r-u*I}),D=g({position:M,relativeNum:n-l*I}),z=h({containerHeight:l*I,containerWidth:u*I,hasScalableSrc:a,offset:s,targetHeight:l,targetWidth:u});return{top:o+D,left:i+N,width:u*I*z,height:l*I*z,transform:`translate(0,0) scale(${1/z})`}}},w=/\.svg$/i,S=({hasZoomImg:e,imgSrc:t,isSvg:n,isZoomed:i,loadedImgEl:o,offset:r,shouldRefresh:s,targetEl:l})=>{let u=n||"data:image/svg+xml"===t?.slice(0,18)||e||void 0!==t&&w.test(t),c=l.getBoundingClientRect(),d=window.getComputedStyle(l),h=null!=o&&a(l),p=null!=o&&0!==o.naturalHeight?o.naturalHeight:c.height,f=null!=o&&0!==o.naturalWidth?o.naturalWidth:c.width,m=v({containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:u,offset:r,targetHeight:p,targetWidth:f}),g=null==o||h?void 0:b({containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:u,objectFit:d.objectFit,objectPosition:d.objectPosition,offset:r,targetHeight:p,targetWidth:f}),S=h?y({backgroundPosition:d.backgroundPosition,backgroundSize:d.backgroundSize,containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:u,offset:r,targetHeight:p,targetWidth:f}):void 0,E={...m,...g,...S};if(i){let T=window.innerWidth/2,O=window.innerHeight/2,x=parseFloat(String(E.left??0))+parseFloat(String(E.width??0))/2,P=parseFloat(String(E.top??0))+parseFloat(String(E.height??0))/2;s&&(E.transitionDuration="0.01ms"),E.transform=`translate(${T-x}px,${O-P}px) scale(1)`}return E},E=e=>{if(null==e)return{};if(!u(e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let{parentElement:t}=e,n=e.getBoundingClientRect();if(null==t)return{height:n.height,left:n.left,width:n.width,top:n.top};{let i=t.getBoundingClientRect();return{height:n.height,left:i.left-n.left,top:i.top-n.top,width:n.width}}}},T=e=>{let t="-zoom",n=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],i=new Map;if(e.hasAttribute("id")){let{id:o}=e,r=o+t;i.set(o,r);let a=e;a.id=r}e.querySelectorAll("[id]").forEach(e=>{let{id:n}=e,o=n+t;i.set(n,o);let r=e;r.id=o}
1),i.forEach((t,i)=>{let o=`url(#${i})`,r=`url(#${t})`,a=n.map(e=>`[${e}="${o}"]`).join(", ");e.querySelectorAll(a).forEach(e=>{n.forEach(t=>{e.getAttribute(t)===o&&e.setAttribute(t,r)})})}),e.querySelectorAll("style").forEach(e=>{i.forEach((t,n)=>{let{textContent:i}=e;if(""!==i){let o=e;o.textContent=i.replaceAll(`#${n}`,`#${t}`)}})})},O=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),x={overflow:"",width:""};function P(e){e.preventDefault()}function k(e){return i.createElement(C,{...e})}class C extends i.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=i.createRef(),this.refDialog=i.createRef(),this.refModalContent=i.createRef(),this.refModalImg=i.createRef(),this.refWrap=i.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=x,this.styleModalImg={},this.handleModalStateChange=e=>{let{state:{modalState:t}}=this;"LOADING"!==e&&"LOADING"===t?(this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refModalImg.current?.removeEventListener("transitionend",this.handleImgTransitionEnd),this.refDialog.current?.close())},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let{refContent:{current:e}}=this;null!=e&&(this.imgEl=e.querySelector(O),null!==this.imgEl?(this.contentNotFoundChangeObserver?.disconnect(),this.imgEl.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),null==this.state.loadedImgEl&&this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let[t]=e;t?.target!==void 0&&(this.imgEl=t.target,this.setState({styleGhost:E(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),null==this.contentChangeObserver&&(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:E(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):null==this.contentNotFoundChangeObserver&&(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{let{props:{isZoomed:t}}=this;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=f(this.imgEl);if(null==e||""===e)return;let t=new Image,{imgEl:n}=this;if(s(n)){let{sizes:i,srcset:o,crossOrigin:r}=n;t.sizes=i,t.srcset=o,t.crossOrigin=r}t.src=e;let a=()=>{this.setState({loadedImgEl:t,styleGhost:E(this.imgEl)})};t.decode().then(a).catch(()=>{if(l(t)){a();return}t.onload=a})},this.handleZoom=e=>{!0!==this.props.isDisabled&&this.hasImage()&&this.props.onZoomChange?.(!0,{event:e})},this.handleUnzoom=e=>{!0!==this.props.isDisabled&&this.props.onZoomChange?.(!1,{event:e})},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e)},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom(e))},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom(e)},this.handleKeyDown=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e))},this.handleWheel=e=>{e.ctrlKey||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom(e)}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}let{changedTouches:t}=e,[n]=t;if(1===t.length&&void 0!==n){let{screenY:i}=n;this.touchYStart=i}},this.handleTouchMove=e=>
1{let t=window.visualViewport?.scale??1,{changedTouches:n}=e,[i]=n;if(this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&void 0!==i){let{screenY:o}=i;this.touchYEnd=o;let r=Math.max(this.touchYStart,this.touchYEnd),a=Math.min(this.touchYStart,this.touchYEnd);Math.abs(r-a)>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom(e))}},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>null!==this.imgEl&&(void 0!==this.state.loadedImgEl||u(this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal(),this.refModalImg.current?.addEventListener("transitionend",this.handleImgTransitionEnd),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>
1{if(null!==this.refModalImg.current){let{transitionDuration:e}=window.getComputedStyle(this.refModalImg.current),t=parseFloat(e);if(0!==t&&!Number.isNaN(t)){let n=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};let{body:{clientWidth:e}}=document;document.body.style.overflow="hidden",document.body.style.width=`${e}px`},this.bodyScrollEnable=()=>{let{prevBodyAttrs:{overflow:e,width:t}}=this;document.body.style.width=t,document.body.style.overflow=e,this.prevBodyAttrs=x},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this;if(null==e)return;let{src:t}=e;if(void 0!==t&&""!==t){let n=new Image;n.sizes=e.sizes??"",n.srcset=e.srcSet??"",n.crossOrigin=e.crossOrigin??void 0,n.src=t;let i=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(i).catch(()=>{if(l(n)){i();return}n.onload=i})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:n}=this;if(u(e)){let i=e.cloneNode(!0);T(i),i.style.width=`${n.width??0}px`,i.style.height=`${n.height??0}px`,i.addEventListener("click",this.handleUnzoom),t.current?.firstChild?.remove(),t.current?.appendChild(i)}}}render(){let{handleBtnUnzoomClick:e,handleDialogClick:t,handleDialogClose:n,handleUnzoom:r,handleZoom:l,imgEl:c,props:{a11yNameButtonUnzoom:d,a11yNameButtonZoom:h,children:p,classDialog:v,IconUnzoom:g,IconZoom:b,isZoomed:y,wrapElement:w,ZoomContent:E,zoomImg:T,zoomMargin:O},refContent:x,refDialog:k,refModalContent:C,refModalImg:I,refWrap:L,state:{id:M,isZoomImgLoaded:N,loadedImgEl:D,modalState:z,shouldRefresh:W,styleGhost:R}}=this,_=`rmiz-modal-${M}`,j=`rmiz-modal-img-${M}`,A=a(c),F=s(c),Y=u(c),B=m(c),H=f(c),U=F?c.sizes:void 0,X=F?c.srcset:void 0,K=F?c.crossOrigin:void 0,G=T?.src!==void 0&&""!==T.src,Z=this.hasImage(),q=void 0!==B&&""!==B?`${h}: ${B}`:h;this.styleModalImg=Z&&null!==c?S({hasZoomImg:G,imgSrc:H,isSvg:Y,isZoomed:y&&("LOADING"===z||"LOADED"===z),loadedImgEl:D,offset:O,shouldRefresh:W,targetEl:c}):{};let V=null;if(Z){let $=F||A?i.createElement("img",{alt:B,crossOrigin:K,sizes:U,src:H,srcSet:X,...N&&"LOADED"===z?T:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height??void 0,id:j,ref:I,style:this.styleModalImg,width:this.styleModalImg.width??void 0}):Y?i.createElement("div",{"data-rmiz-modal-img":!0,ref:I,style:this.styleModalImg}):null,Q=i.createElement("button",{"aria-label":d,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},i.createElement(g,null));V=null==E?i.createElement(i.Fragment,null,$,Q):i.createElement(E,{buttonUnzoom:Q,modalState:z,img:$,isZoomImgLoaded:N,onUnzoom:r})}return i.createElement(w,{"aria-owns":_,"data-rmiz":"",ref:L},i.createElement(w,{"data-rmiz-content":Z?"found":"not-found",ref:x,style:{visibility:"UNLOADED"===z?"visible":"hidden"}},p),Z&&i.createElement(w,{"data-rmiz-ghost":"",style:R},i.createElement("button",{"aria-label":q,"data-rmiz-btn-zoom":"",onClick:l,type:"button"},i.createElement(b,null))),Z&&o.createPortal(i.createElement("dialog",{"aria-labelledby":j,"aria-modal":"true",className:v,"data-rmiz-modal":"",id:_,onClick:t,onClose:n,onCancel:P,ref:k,role:"dialog"},i.createElement("div",{"data-rmiz-modal-overlay":"UNLOADED"===z||"UNLOADING"===z?"hidden":"visible"}),i.createElement("div",{"data-rmiz-modal-content":"",ref:C},V)),function(){let e=document.querySelector("[data-rmiz-portal]");if(null!=e)return e;let t=document.createElement("div");return t.setAttribute("data-rmiz-portal",""),document.body.appendChild(t),t}()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect(),this.contentNotFoundChangeObserver?.disconnect(),this.imgElResizeObserver?.disconnect(),this.imgEl?.removeEventListener("load",this.handleImgLoad),this.imgEl?.removeEventListener("click",this.handleZoom),this.refModalImg.current?.removeEventListener("transitionend",this.handleImgTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}}function I({onZoomChange:e,...t}){let[n,o]=i.useState(!1),r=i.useCallback((t,{event:n})=>{o(t),e?.(t,{event:n})},[e]);return i.createElement(k,{...t,isZoomed:n,onZoomChange:r})}C.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return i.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return i.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},isDisabled:!1,swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0}}}]);

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.