1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9429],{53969:(n,e,t)=>{t.d(e,{GT:()=>nD,WZ:()=>nH});var i,o,a=t(14232),r=t(37876),s=function(n,e){return Number(n.toFixed(e))},l=function(n,e,t){t&&"function"==typeof t&&t(n,e)},u={easeOut:function(n){return-Math.cos(n*Math.PI)/2+.5},linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return n*(2-n)},easeInOutQuad:function(n){return n<.5?2*n*n:-1+(4-2*n)*n},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return--n*n*n+1},easeInOutCubic:function(n){return n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1- --n*n*n*n},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-8*--n*n*n*n},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1+--n*n*n*n*n},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n}},c=function(n){var e=n.animationResolve;n.animationResolve=null,null==e||e()},p=function(n){null!==n.animationFrame&&cancelAnimationFrame(n.animationFrame),n.animationFrame=null,n.isAnimating=!1,n.animation=null,n.velocity=null,c(n)};function m(n,e,t,i,o){if(!n.mounted){null==o||o();return}var a=new Date().getTime();p(n);var r=function(){if(n.mounted&&n.animation===r){var o=new Date().getTime()-a,s=(0,u[e])(o/t);if(o>=t){n.animation=null,n.animationFrame=null;var l=n.animationResolve;n.animationResolve=null,i(1),null==l||l(),n.flushResizeAlignment()}else i(s),n.animationFrame=requestAnimationFrame(r)}};n.animation=r,n.animationResolve=null!=o?o:null,n.animationFrame=requestAnimationFrame(r)}function d(n,e,t,i){var o,a,r,s=(o=e.scale,a=e.positionX,r=e.positionY,!(Number.isNaN(o)||Number.isNaN(a)||Number.isNaN(r)));if(!n.mounted||!s)return Promise.resolve();var l=n.setState,u=n.state,c=u.scale,p=u.positionX,d=u.positionY,f=e.scale-c,v=e.positionX-p,h=e.positionY-d;return 0===t?(l(e.scale,e.positionX,e.positionY),Promise.resolve()):new Promise(function(e){m(n,i,t,function(e){1!==e?n.isAnimating=!0:n.isAnimating=!1,l(c+f*e,p+v*e,d+h*e)},e)})}var f=function(n,e,t,i,o,a,r){var s=n>e?t*(r?.5:1):0,l=i>o?a*(r?.5:1):0;return{minPositionX:n-e-s,maxPositionX:s,minPositionY:i-o-l,maxPositionY:l,scaleWidthFactor:s,scaleHeightFactor:l}},v=function(n,e){var t,i,o,a,r,s,l=n.wrapperComponent,u=n.contentComponent,c=n.setup,p=c.centerZoomedOut,m=c.disablePadding;if(!l||!u)throw Error("Components are not mounted");var d=(t=l.clientWidth,i=l.clientHeight,o=u.offsetWidth,a=u.offsetHeight,{wrapperWidth:t,wrapperHeight:i,newContentWidth:r=o*e,newDiffWidth:t-r,newContentHeight:s=a*e,newDiffHeight:i-s}),v=d.wrapperWidth,h=d.wrapperHeight,g=d.newContentWidth,y=d.newContentHeight,w=f(v,g,d.newDiffWidth,h,y,d.newDiffHeight,!!p),b=v>=g&&h>=y;m&&b&&!p&&(w.minPositionX=0,w.maxPositionX=0,w.minPositionY=0,w.maxPositionY=0);var P=n.setup,S=P.minPositionX,C=P.maxPositionX,x=P.minPositionY,T=P.maxPositionY;return null!=S&&(w.minPositionX=v*(1-e)+S*e),null!=C&&(w.maxPositionX=C*e),null!=x&&(w.minPositionY=h*(1-e)+x*e),null!=T&&(w.maxPositionY=T*e),w},h=function(n,e,t,i){return i?n<e?s(e,2):n>t?s(t,2):s(n,2):s(n,2)},g=function(n,e){var t=v(n,e);return n.bounds=t,t};function y(n,e,t,i,o,a,r){var s=t.minPositionX,l=t.minPositionY,u=t.maxPositionX,c=t.maxPositionY,p=0,m=0;return r&&(p=o,m=a),{x:h(n,s-p,u+p,i),y:h(e,l-m,c+m,i)}}function w(n,e,t,i,o,a){var r=n.state,s=r.scale,l=r.positionX,u=r.positionY,c=i-s;return Number.isFinite(e)&&Number.isFinite(t)?y(l-e*c,u-t*c,o,a,0,0,null):(console.error("Mouse X and Y position were not provided!"),{x:l,y:u})}function b(n,e,t,i,o){var a=o?i:0,r=Math.max(e-a,1e-7),s=t+a;return!Number.isNaN(t)&&n>=s?s:!Number.isNaN(e)&&n<=r?r:Math.max(n,1e-7)}var P=function(n,e){var t=n.setup.panning.excluded,i=n.isInitialized,o=n.wrapperComponent,a=e.target,r="function"==typeof e.composedPath?e.composedPath().some(function(n){return!!n&&"object"==typeof n&&1===n.nodeType&&"function"==typeof n.contains&&!!(null==o?void 0:o.contains(n))}):!!(null==o?void 0:o.contains(a));return!(!(i&&a&&r)||ne(a,t)||na(a)||no(a))},S=function(n){var e=n.isInitialized,t=n.isPanning,i=n.setup.panning.disabled;return!!(e&&t&&!i)},C=function(n,e){var t=n.state,i=t.positionX,o=t.positionY;n.isPanning=!0,n.startCoords={x:e.clientX-i,y:e.clientY-o}},x=function(n,e){var t=e.touches,i=n.state,o=i.positionX,a=i.positionY;n.isPanning=!0,1===t.length&&(n.startCoords={x:t[0].clientX-o,y:t[0].clientY-a})};function T(n,e,t,i,o){var a=n.setup.limitToBounds,r=n.wrapperComponent,s=n.bounds,l=n.state,u=l.scale,c=l.positionX,p=l.positionY;if(null!==r&&null!==s&&(e!==c||t!==p)){var m=y(e,t,s,a,i,o,r),d=m.x,f=m.y;n.setState(u,d,f)}}var Y=function(n,e,t){var i=n.startCoords,o=n.state,a=n.setup.panning,r=a.lockAxisX,s=a.lockAxisY,l=o.positionX,u=o.positionY;if(!i)return{x:l,y:u};var c=e-i.x,p=t-i.y;return{x:r?l:c,y:s?u:p}},X=function(n,e,t){var i=n.setup,o=n.state,a=i.minScale,r=i.disablePadding,s=i.centerZoomedOut,l=null!=t?t:o.scale;return e>0&&l>=a&&!r&&!s?e:0};(i=o||(o={})).TRACK_PAD="track_pad",i.MOUSE="mouse",i.TOUCH="touch";var E=function(n){var e=n.mounted,t=n.wrapperComponent,i=n.contentComponent,o=n.setup,a=o.disabled,r=o.velocityAnimation,s=o.limitToBounds,l=n.state.scale;return!r.disabled&&!a&&!!e&&!!t&&!!i&&(!s||t.clientWidth<i.offsetWidth*l||t.clientHeight<i.offsetHeight*l)},A=function(n){var e=n.mounted,t=n.velocity,i=n.bounds,o=n.setup,a=o.disabled;return!!(!o.velocityAnimation.disabled&&!a&&e)&&!!t&&!!i};function k(n,e,t,i,o,a,r,s,l,u){if(o){if(e>r&&t>r){var c=r+(n-r)*u;return c>l?l:c<r?r:c}if(e<a&&t<a){var c=a+(n-a)*u;return c<s?s:c>a?a:c}}return i?e:h(n,a,r,o)}var z=function(n,e,t){var i=n*t;return Number.isNaN(i)?0:n<0?Math.max(i,-e):Math.min(i,e)};function M(n,e){var t=n.state,i=t.scale;n.panStartPosition={x:t.positionX,y:t.positionY},p(n),g(n,i),"touches"in e?x(n,e):C(n,e)}function W(n,e){var t=n.state.scale,i=n.setup,o=i.minScale,a=i.autoAlignment,r=a.disabled,s=a.sizeX,l=a.sizeY,u=a.animationTime,c=a.animationType;
1if(!r&&!(t<o)&&(s||l)){n.isResizeAlignmentPending&&g(n,t);var p=function(n){var e=n.state,t=e.positionX,i=e.positionY,o=e.scale,a=n.setup,r=a.disabled,s=a.limitToBounds,l=a.centerZoomedOut,u=n.wrapperComponent;if(!r&&u&&n.bounds){var c=n.bounds,p=c.maxPositionX,m=c.minPositionX,d=c.maxPositionY,f=c.minPositionY,v=t>p?u.clientWidth:n.setup.minPositionX||0,h=i>d?u.clientHeight:n.setup.minPositionY||0,g=w(n,v,h,o,n.bounds,s||l),y=g.x,b=g.y;return{scale:o,positionX:t>p||t<m?y:t,positionY:i>d||i<f?b:i}}}(n);if(p){var m=n.state,f=m.positionX,v=m.positionY;(p.positionX!==f||p.positionY!==v)&&d(n,p,null!=e?e:u,c)}}}function N(n,e,t,i){var a=n.startCoords,r=n.setup.autoAlignment,s=r.sizeX,l=r.sizeY;if(a){var u=Y(n,e,t),c=u.x,p=u.y,m=X(n,s),d=X(n,l);!function(n,e,t){var i,a;if(E(n)){var r=n.lastMousePosition,s=n.velocityTime,l=n.setup,u=n.wrapperComponent,c=l.velocityAnimation,p=c.maxStrengthMouse,m=c.maxStrengthTouch,d=c.sensitivityTouch,f=c.sensitivityMouse,v=Date.now();if(r&&s&&u){var h,g=Number.isNaN(h=u.clientWidth/window.innerWidth)?1:Math.min(1,h),y=((i={})[o.TOUCH]=d,i[o.MOUSE]=f,i)[t],w=((a={})[o.TOUCH]=m,a[o.MOUSE]=p,a)[t],b=e.x-r.x,P=e.y-r.y;n.velocity={velocityX:z(b/g,w,y),velocityY:z(P/g,w,y),total:z(Math.sqrt(b*b+P*P)/(v-s),w,y)}}n.lastMousePosition=e,n.velocityTime=v}}(n,{x:c,y:p},i),T(n,c,p,m,d)}}function O(n,e,t,i){var o=n.setup,a=o.minScale,r=o.maxScale,l=o.limitToBounds,u=b(s(e,2),a,r,0,!1),c=g(n,u),p=w(n,t,i,u,c,l);return{scale:u,positionX:p.x,positionY:p.y}}function I(n,e,t){var i=n.state.scale,o=n.wrapperComponent,a=n.setup,r=a.minScale,s=a.maxScale,l=a.limitToBounds,u=a.zoomAnimation,c=u.disabled,p=u.animationTime,m=u.animationType,f=i>=r&&i<=s;if((i>=1||l)&&W(n),!(c||f)&&o&&n.mounted){var v=O(n,i<r?r:s,e||o.clientWidth/2,t||o.clientHeight/2);v&&d(n,v,p,m)}}var K=function(){return(K=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)};function R(n,e,t){if(t||2==arguments.length)for(var i,o=0,a=e.length;o<a;o++)!i&&o in e||(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return n.concat(i||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var L={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,fitOnInit:!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:[]},keyboard:{disabled:!0,panStep:50,zoomStep:.25,animationTime:100,animationType:"easeOut",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"}},D="react-transform-wrapper",H=function(n){var e,t,i,o,a,r,s,l,u,c=Math.max(null!=(e=n.minScale)?e:L.minScale,1e-7),p=null!=(t=n.maxScale)?t:L.maxScale,m=Math.min(Math.max(null!=(i=n.initialScale)?i:1,c),p);return{previousScale:m,scale:m,positionX:h(null!=(o=n.initialPositionX)?o:0,null!=(a=n.minPositionX)?a:-1/0,null!=(r=n.maxPositionX)?r:1/0,null!=n.minPositionX||null!=n.maxPositionX),positionY:h(null!=(s=n.initialPositionY)?s:0,null!=(l=n.minPositionY)?l:-1/0,null!=(u=n.maxPositionY)?u:1/0,null!=n.minPositionY||null!=n.maxPositionY)}},B=function(n){var e=K({},L);return Object.keys(n).forEach(function(t){var i=void 0!==n[t];if(void 0!==L[t]&&i){var o=Object.prototype.toString.call(L[t]);"[object Object]"===o?e[t]=K(K({},L[t]),n[t]):"[object Array]"===o?e[t]=R(R([],L[t],!0),n[t],!0):e[t]=n[t]}}),e.minScale<=0&&(e.minScale=1e-7),e},F=function(n,e,t){var i=n.state.scale,o=n.wrapperComponent,a=n.setup,r=a.maxScale,l=a.minScale,u=a.zoomAnimation.size;if(!o)throw Error("Wrapper is not mounted");return b(s(i+e*t,3),l,r,u,!1)};function _(n,e,t,i){var o,a,r=n.wrapperComponent,s=n.props,u=s.onZoomStart,c=s.onZoom,p=s.onZoomStop,m=new MouseEvent("mousemove",{bubbles:!0}),f=J(n);l(f,m,u),l(f,m,c);var v=d(n,e,t,i),h=null!=(a=null==(o=null==r?void 0:r.ownerDocument)?void 0:o.defaultView)?a:"u">typeof window?window:null;return h&&h.setTimeout(function(){n.mounted&&l(J(n),m,p)},t),v}function Z(n,e,t,i,o){var a=n.wrapperComponent,r=n.state,s=r.scale,l=r.positionX,u=r.positionY,c=n.setup.zoomAnimation;if(!a)return console.error("No WrapperComponent found"),Promise.resolve();var p=c.disabled?0:i,m=a.clientWidth,d=a.clientHeight,f=F(n,e,t),v=O(n,f,(m/2-l)/s,(
1d/2-u)/s);return v?_(n,v,p,o):(console.error("Error during zoom event. New transformation state was not calculated."),Promise.resolve())}function U(n,e,t,i){void 0===e&&(e="contain");var o=n.wrapperComponent,a=n.contentComponent,r=n.setup;if(!o||!a)return null;var s=a.offsetWidth,l=a.offsetHeight,u=o.clientWidth,c=o.clientHeight;if(!s||!l||!u||!c)return null;var p=u/s,m=c/l,d="cover"===e?Math.max(p,m):Math.min(p,m);return void 0!==i&&(d=Math.min(d,i)),void 0!==t&&(d=Math.max(d,t)),nl(d=b(d,r.minScale,r.maxScale,0,!1),o,a)}function j(n,e,t,i){var o=n.setup,a=n.wrapperComponent,r=n.contentComponent,s=o.limitToBounds,l=o.centerOnInit,u=o.fitOnInit,c=H(n.props),p=n.state,m=p.scale,d=p.positionX,f=p.positionY;if(!a)return Promise.resolve();if(u){var h=U(n,"cover"===u?"cover":"contain");if(h)return m===h.scale&&d===h.positionX&&f===h.positionY?Promise.resolve():(null==i||i(),_(n,h,e,t))}var g=c.positionX,w=c.positionY;if(l&&r){var b=nl(c.scale,a,r);g=b.positionX,w=b.positionY}var P=y(g,w,v(n,c.scale),s,0,0,a),S={scale:c.scale,positionX:P.x,positionY:P.y};return m===c.scale&&d===c.positionX&&f===c.positionY?Promise.resolve():(null==i||i(),_(n,S,e,t))}var Q=function(n){if("getBoundingClientRect"in n){var e=n.getBoundingClientRect();return{x:e.left,y:e.top,width:e.width,height:e.height}}return n};function q(n,e,t){var i=n.wrapperComponent,o=n.state;if(!i)return{x:0,y:0};var a=i.getBoundingClientRect();return{x:(e-a.left-o.positionX)/o.scale,y:(t-a.top-o.positionY)/o.scale}}var V=function(n,e){var t,i=n.wrapperComponent;if(!i)return[];var o=i.getRootNode(),a=o&&"getElementById"in o?o:null!=(t=i.ownerDocument)?t:"u">typeof document?document:null;return(Array.isArray(e)?e:[e]).map(function(n){return"string"==typeof n?null==a?void 0:a.getElementById(n):n}).filter(function(n){return!!n&&i.contains(n)})},G=function(n){return{instance:n,state:n.state,zoomIn:function(e,t,i){return void 0===e&&(e=.5),void 0===t&&(t=300),void 0===i&&(i="easeOut"),Z(n,1,e,t,i)},zoomOut:function(e,t,i){return void 0===e&&(e=.5),void 0===t&&(t=300),void 0===i&&(i="easeOut"),Z(n,-1,e,t,i)},setTransform:function(e,t,i,o,a){void 0===o&&(o=300),void 0===a&&(a="easeOut");var r=n.state,s=r.positionX,l=r.positionY,u=r.scale,c=n.wrapperComponent,p=n.contentComponent;return!n.setup.disabled&&c&&p?d(n,{positionX:Number.isNaN(e)?s:e,positionY:Number.isNaN(t)?l:t,scale:Number.isNaN(i)?u:i},o,a):Promise.resolve()},resetTransform:function(e,t){return void 0===e&&(e=200),void 0===t&&(t="easeOut"),j(n,e,t)},centerView:function(e,t,i){void 0===t&&(t=200),void 0===i&&(i="easeOut");var o=n.state,a=n.wrapperComponent,r=n.contentComponent;return a&&r?d(n,nl(e||o.scale,a,r),t,i):Promise.resolve()},zoomToElement:function(e,t,i,o,a,r){void 0===i&&(i=600),void 0===o&&(o="easeOut"),void 0===a&&(a=0),void 0===r&&(r=0),p(n);var s,l,u,c,m,f,h,g="object"==typeof t&&null!==t?t:{scale:t},w=V(n,e);if(!n.wrapperComponent||0===w.length)return Promise.resolve();var P=function(n,e,t,i,o,a,r){void 0===i&&(i=0),void 0===o&&(o=0);var s,l,u,c,p,m=n.wrapperComponent,d=n.contentComponent,f=n.state,h=n.setup,g=h.limitToBounds,w=h.minScale,P=h.maxScale;if(!m||!d)return f;var S=m.getBoundingClientRect(),C=(s=Q(e),l=m.getBoundingClientRect(),u=d.getBoundingClientRect(),c=l.x*f.scale,p=l.y*f.scale,{x:(s.x-u.x+c)/f.scale,y:(s.y-u.y+p)/f.scale}),x=C.x,T=C.y,Y=e.width/f.scale,X=e.height/f.scale,E=m.clientWidth/Y,A=m.clientHeight/X,k=t||Math.min(E,A);void 0!==r&&(k=Math.min(k,r)),void 0!==a&&(k=Math.max(k,a));var z=b(k,w,P,0,!1),M=(S.width-Y*z)/2,W=(S.height-X*z)/2,N=y((S.left-x)*z+M+i,(S.top-T)*z+W+o,v(n,z),g,0,0,m);return{positionX:N.x,positionY:N.y,scale:z}}(n,(s=w.map(Q),{x:l=Math.min.apply(Math,s.map(function(n){return n.x})),y:u=Math.min.apply(Math,s.map(function(n){return n.y})),width:Math.max.apply(Math,s.map(function(n){return n.x+n.width}))-l,height:Math.max.apply(Math,s.map(function(n){return n.y+n.height}))-u}),g.scale,null!=(c=g.offsetX)?c:a,null!=(m=g.offsetY)?m:r,g.minScale,g.maxScale);return d(n,P,null!=(f=g.animationTime)?f:i,null!=(h=g.animationType)?h:o)},zoomToPoint:function(e,t,i,o,a){void 0===o&&(o=300),void 0===a&&(a="easeOut");var r=n.wrapperComponent,s=n.contentComponent,l=n.setup;if(l.disabled||!r||!s)return Promise.resolve();var u=q(n,t,i),c=O(n,e,u.x,u.y);return c?_(n,c,l.zoomAnimation.disabled?0:o,a):Promise.resolve()},clientToContent:function(e,t){return q(n,e,t)},contentToClient:function(e,t){var i=n.wrapperComponent,o=n.state;if(!i)return{x:0,y:0};var a=i.getBoundingClientRect();return{x:a.left+o.positionX+e*o.scale,y:a.top+o.positionY+t*o.scale}},fitToView:function(e){void 0===e&&(e={});var t,i,o,a=n.wrapperComponent,r=n.contentComponent,s=n.setup;if(s.disabled||!a||!r)return Promise.resolve();var l=U(n,null!=(t=e.mode)?t:"contain",e.minScale,e.maxScale);return l?_(n,l,s.zoomAnimation.disabled?0:null!=(i=e.animationTime)?i:200,null!=(o=e.animationType)?o:"easeOut"):Promise.resolve()},panBy:function(e,t,i,o){void 0===i&&(i=200),void 0===o&&(o="easeOut");var a,r,s,u,c,p,m,f,v,h,w,b,P,S,C=n.wrapperComponent,x=n.contentComponent,T=n.setup,Y=n.state;if(T.disabled||!C||!x||!Number.isFinite(e)||!Number.isFinite(t))return Promise.resolve();var X=g(n,Y.scale),E=y(Y.positionX+e,Y.positionY+t,X,T.limitToBounds,0,0,C),A=E.x,k=E.y;return A===Y.positionX&&k===Y.positionY?Promise.resolve():(a={scale:Y.scale,positionX:A,positionY:k},r=i,s=o,p=n.wrapperComponent,f=(m=n.props).onPanningStart,v=m.onPanning,h=m.onPanningStop,w=new MouseEvent("mousemove",{bubbles:!0}),l(b=J(n),w,f),l(b,w,v),P=d(n,a,r,s),(S=null!=(c=null==(u=null==p?void 0:p.ownerDocument)?void 0:u.defaultView)?c:"u">typeof window?window:null)&&S.setTimeout(function(){n.mounted&&l(J(n),w,h)},r),P)}}},J=function(n){var e={};return Object.assign(e,{instance:n,state:n.state}),Object.assign(e,G(n)),e};
1function $(){try{return{get passive(){return!1}}}catch(n){return!1}}var nn=".".concat(D),ne=function(n,e){return e.some(function(e){return n.matches("".concat(nn," ").concat(e,", ").concat(nn," .").concat(e,", ").concat(nn," ").concat(e," *, ").concat(nn," .").concat(e," *"))})},nt=new Set(["INPUT","TEXTAREA","SELECT","OPTION"]),ni=function(n){return n&&"function"==typeof n.closest?n:null},no=function(n){var e=ni(n);return!!e&&(!!nt.has(e.tagName)||!!e.isContentEditable||null!==e.closest('[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]'))},na=function(n){var e=ni(n);return!!e&&null!==e.closest('[draggable="true"]')},nr=function(n){n&&clearTimeout(n)},ns=function(n,e,t){var i=Number.parseFloat(t.toFixed(8));return"translate(".concat(n,"px, ").concat(e,"px) scale(").concat(i,")")},nl=function(n,e,t){var i=t.offsetWidth*n,o=t.offsetHeight*n;return{scale:n,positionX:(e.clientWidth-i)/2,positionY:(e.clientHeight-o)/2}},nu="u">typeof window?a.useLayoutEffect:a.useEffect,nc={panLeft:["ArrowLeft"],panRight:["ArrowRight"],panUp:["ArrowUp"],panDown:["ArrowDown"],zoomIn:["+","="],zoomOut:["-","_"],reset:["0"]}
1,np=function(n,e){return{wrapperWidth:n.offsetWidth,wrapperHeight:n.offsetHeight,contentWidth:e.offsetWidth,contentHeight:e.offsetHeight}},nm=function(n){return n.isPanning||n.isPinching};function nd(n){var e=n.wrapperComponent,t=n.contentComponent,i=n.setup,o=n.state;if(!e||!t)return null;var a=g(n,o.scale),r=i.limitToBounds,l=i.centerZoomedOut;if(!r&&!l)return null;var u=y(o.positionX,o.positionY,a,!0,0,0,e),c=u.x,p=u.y;return c===s(o.positionX,2)&&p===s(o.positionY,2)?null:{scale:o.scale,positionX:c,positionY:p}}var nf=function(n){n.animation=null,n.animationFrame=null,n.isAnimating=!1,n.resizeAnimation=null};function nv(n){if(n.setup.disabled)return void g(n,n.state.scale);if(nm(n)){n.isResizeAlignmentPending=!0;return}var e,t,i,o=null!==n.animation&&n.animation===n.resizeAnimation;if(n.animation&&!o){var a=n.state.scale,r=n.setup,s=r.minScale,l=r.maxScale;if(a<s||a>l){n.isResizeAlignmentPending=!0;return}p(n)}var u=nd(n);if(!u){o&&nf(n);return}if(!o){if(0===n.setup.autoAlignment.animationTime)return void n.setState(u.scale,u.positionX,u.positionY);e=Math.max(n.setup.autoAlignment.animationTime/5,1),p(n),t=Date.now(),i=function(){if(n.mounted&&n.animation===i){var o=Date.now(),a=Math.max(o-t,1);t=o;var r=nd(n);if(!r)return void nf(n);var s=n.state,l=s.scale,u=s.positionX,c=s.positionY,p=1-Math.exp(-a/e),m=u+(r.positionX-u)*p,d=c+(r.positionY-c)*p,f=.5>Math.abs(r.positionX-m)&&.5>Math.abs(r.positionY-d);if(f&&(m=r.positionX,d=r.positionY),n.isAnimating=!f,n.setState(l,m,d),f)return void nf(n);n.animationFrame=requestAnimationFrame(i)}},n.animation=i,n.resizeAnimation=i,n.animationResolve=null,n.animationFrame=requestAnimationFrame(i)}}var nh=function(n,e){var t=n.setup.wheel,i=t.disabled,o=t.wheelDisabled,a=t.touchPadDisabled,r=t.excluded,s=n.isInitialized,l=n.isPanning,u=e.target;return!(!(s&&!l&&!i&&u)||0===e.deltaY||o&&!e.ctrlKey||a&&e.ctrlKey||ne(u,r))&&!!n.isPressingKeys(n.setup.wheel.activationKeys)},ng=function(n,e){var t=n.setup,i=t.disabled,o=t.trackPadPanning,a=o.activationKeys,r=o.excluded;return!(!n.wrapperComponent||!n.contentComponent||i||o.disabled||e.ctrlKey||nh(n,e)||ne(e.target,r))&&!!n.isPressingKeys(a)};function ny(n,e,t){var i=e.getBoundingClientRect(),o=0,a=0;if("clientX"in n)o=(n.clientX-i.left)/t,a=(n.clientY-i.top)/t;else{var r=n.touches[0];o=(r.clientX-i.left)/t,a=(r.clientY-i.top)/t}return Number.isNaN(o)||Number.isNaN(a)?(console.error("No mouse or touch offset found"),{x:0,y:0}):{x:o,y:a}}var nw=function(n,e,t,i,o){var a=n.state.scale,r=n.wrapperComponent,s=n.setup,l=s.maxScale,u=s.minScale,c=s.zoomAnimation,p=s.disablePadding,m=c.size,d=c.disabled;if(!r)throw Error("Wrapper is not mounted");var f=a+e*t;return o?f:b(f,u,l,m,!i&&!d&&!p)},nb=function(n,e){var t=n.previousWheelEvent,i=n.state.scale,o=n.setup,a=o.maxScale,r=o.minScale;return!!t&&(!!(i<a)||!!(i>r)||Math.sign(t.deltaY)!==Math.sign(e.deltaY)||!!(t.deltaY>0)&&!!(t.deltaY<e.deltaY)||!!(t.deltaY<0)&&!!(t.deltaY>e.deltaY)||Math.sign(t.deltaY)!==Math.sign(e.deltaY))},nP=function(n,e){var t=n.setup.pinch,i=t.disabled,o=t.excluded,a=n.isInitialized,r=e.target;return!(!(a&&!i&&r)||ne(r,o))},nS=function(n){var e=n.setup.pinch.disabled,t=n.isInitialized,i=n.pinchStartDistance;return!!(t&&!e&&null!==i)},nC=function(n,e,t){var i=t.getBoundingClientRect(),o=n.touches,a=o[0].clientX-i.left,r=o[0].clientY-i.top;return{x:(a+(o[1].clientX-i.left))/2/e,y:(r+(o[1].clientY-i.top))/2/e}},nx=function(n){return Math.sqrt(Math.pow(n.touches[0].pageX-n.touches[1].pageX,2)+Math.pow(n.touches[0].pageY-n.touches[1].pageY,2))},nT=function(n,e){var t=n.pinchStartScale,i=n.pinchStartDistance,o=n.setup,a=o.maxScale,r=o.minScale,l=o.zoomAnimation,u=o.disablePadding,c=o.pinch,p=l.size,m=l.disabled,d=c.step;if(!t||null===i)throw Error("Pinch touches distance was not provided");if(e<0)return n.state.scale;var f=t+d/5*(e/i*t-t);return b(f===1/0?0:s(f,10),r,a,p,!m&&!u)},nY=function(n,e){var t=n.props,i=t.onWheelStart,o=t.onZoomStart;p(n),n.wheelStopEventTimer||(l(J(n),e,i),l(J(n),e,o))},nX=function(n,e){var t,i=n.props,o=i.onWheel,a=i.onZoom,r=n.contentComponent,s=n.setup,u=n.state.scale,c=s.limitToBounds,p=s.centerZoomedOut,m=s.zoomAnimation,d=s.wheel,f=s.disablePadding,v=s.smooth,h=m.size,y=m.disabled,b=d.step;if(!r)throw Error("Component not mounted");e.cancelable&&e.preventDefault(),e.stopPropagation();var P=nw(n,(t=e?e.deltaY<0?1:-1:0,t),v?b*Math.abs(e.deltaY):b,!e.ctrlKey);if(u!==P){var S=g(n,P),C=ny(e,r,u),x=w(n,C.x,C.y,P,S,c&&(y||0===h||p||f)),T=x.x,Y=x.y;n.previousWheelEvent=e,n.setState(P,T,Y),l(J(n),e,o),l(J(n),e,a)}},nE=function(n,e){var t=n.props,i=t.onWheelStop,o=t.onZoomStop;nr(n.wheelAnimationTimer),n.wheelAnimationTimer=setTimeout(function(){n.mounted&&(I(n,e.x,e.y),n.wheelAnimationTimer=null,n.flushResizeAlignment())},100),nb(n,e)&&(nr(n.wheelStopEventTimer),n.wheelStopEventTimer=setTimeout(function(){n.mounted&&(n.wheelStopEventTimer=null,l(J(n),e,i),l(J(n),e,o),n.flushResizeAlignment())},160))},nA=function(n,e){var t=n.props,i=t.onWheelStart,o=t.onPanningStart;p(n),n.wheelStopEventTimer||(n.wheelAnimationTimer||g(n,n.state.scale),l(J(n),e,i),l(J(n),e,o))},nk=function(n,e){var t=n.props,i=t.onWheelStop,o=t.onPanningStop;nr(n.wheelAnimationTimer),n.wheelAnimationTimer=setTimeout(function(){n.mounted&&(I(n,e.x,e.y),n.wheelAnimationTimer=null,n.flushResizeAlignment())},100),nb(n,e)&&(nr(n.wheelStopEventTimer),n.wheelStopEventTimer=setTimeout(function(){n.mounted&&(n.wheelStopEventTimer=null,l(J(n),e,i),l(J(n),e,o),n.flushResizeAlignment())},160))},nz=function(n){for(var e=0,t=0,i=0;i<2;i+=1)e+=n.touches[i].clientX,t+=n.touches[i].clientY;return{x:e/2,y:t/2}},nM=function(n,e){var t=nx(e);n.pinchStartDistance=t,n.lastDistance=t,n.pinchStartScale=n.state.scale,n.isPanning=!1,n.isPinching=!0,n.pinchPreviousCenter=nz(e),p(n)},nW=function(n,e){var t=n.contentComponent,i=n.pinchStartDistance,o=n.wrapperComponent,a=n.pinchPreviousCenter,r=n.state.scale,s=n.setup,l=s.limitToBounds,u=s.centerZoomedOut,c=s.zoomAnimation,p=s.autoAlignment,m=s.pinch,d=s.panning,f=c.disabled,v=c.size,h=m.allowPanning;if(null!==i&&t){var b=nC(e,r,t);if(Number.isFinite(b.x)&&Number.isFinite(b.y)){var P=nx(e),S=nT(n,P),C=nz(e),x=r/S,T=(C.x-((null==a?void 0:a.x)||0))*x,Y=(C.y-((null==a?void 0:a.y)||0))*x;if(S!==r||0!==T||0!==Y){n.pinchPreviousCenter=C;var E=g(n,S),A=w(n,b.x,b.y,S,E,l&&(f||0===v||u)),k=A.x,z=A.y;if(n.pinchMidpoint=b,n.lastDistance=P,d.disabled||!h)n.setState(S,k,z);else{var M=p.sizeX,W=p.sizeY,N=y(k+T,z+Y,E,l,X(n,M,S),X(n,W,S),o),O=N.x,I=N.y;n.setState(S,O,I)}}}}},nN=function(n){var e=n.pinchMidpoint;n.velocity=null,n.lastDistance=null,n.pinchMidpoint=null,n.pinchStartScale=null,n.pinchStartDistance=null,n.isPinching=!1,I(n,null==e?void 0:e.x,null==e?void 0:e.y)},nO=function(n,e){var t=n.props.onZoomStop,i=n.setup.doubleClick.animationTime;nr(n.doubleClickStopEventTimer),n.doubleClickStopEventTimer=setTimeout(function(){n.doubleClickStopEventTimer=null,n.mounted&&l(J(n),e,t)},i)},nI=function(n,e){var t=n.props,i=t.onZoomStart,o=t.onZoom,a=n.setup.doubleClick,r=a.animationTime,s=a.animationType;l(J(n),e,i),j(n,r,s,function(){return l(J(n),e,o)}),nO(n,e)},nK=function(n,e){var t=n.isInitialized,i=n.setup,o=n.wrapperComponent,a=i.doubleClick,r=a.disabled,s=a.excluded,l=e.target,u=null==o?void 0:o.contains(l);return!(!(t&&l&&u&&!r)||ne(l,s)||no(l))},nR=function(n){var e=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.animationFrame=null,this.animationResolve=null,this.initObserverTimer=null,this.isInitialLayoutPending=!1,this.measuredSizes=null,this.isResizeAlignmentPending=!1,this.resizeAnimation=null,this.pressedKeys={},this.selectionLock=null,this.mount=function(){e.mounted=!0,e.initializeWindowEvents()},this.unmount=function(){e.mounted=!1,e.cleanupWindowEvents()},this.update=function(n){e.props=n,e.setup=B(n),e.wrapperComponent&&e.contentComponent&&!(nm(e)||null!==e.wheelStopEventTimer||null!==e.wheelAnimationTimer)&&g(e,e.state.scale)},this.clearTimers=function(){e.wheelStopEventTimer&&clearTimeout(e.wheelStopEventTimer),e.wheelAnimationTimer&&clearTimeout(e.wheelAnimationTimer),e.doubleClickStopEventTimer&&clearTimeout(e.doubleClickStopEventTimer),e.initObserverTimer&&clearTimeout(e.initObserverTimer),e.wheelStopEventTimer=null,e.wheelAnimationTimer=null,e.doubleClickStopEventTimer=null,e.initObserverTimer=null},this.initializeWindowEvents=function(){var n,t,i,o,a=$(),r=null==(n=e.wrapperComponent)?void 0:n.ownerDocument,s=null==r?void 0:r.defaultView;null==(t=e.wrapperComponent)||t.addEventListener("wheel",e.onWheelPanning,a),null==(i=e.wrapperComponent)||i.addEventListener("keyup",e.setKeyUnPressed,a),null==(o=e.wrapperComponent)||o.addEventListener("keydown",e.setKeyPressed,a),null==s||s.addEventListener("mousedown",e.onPanningStart,a),null==s||s.addEventListener("mousemove",e.onPanning,a),null==s||s.addEventListener("mouseup",e.onPanningStop,a),null==r||r.addEventListener("mouseleave",e.clearPanning,a),null==s||s.addEventListener("keyup",e.setKeyUnPressed,a),null==s||s.addEventListener("keydown",e.setKeyPressed,a),null==s||s.addEventListener("blur",e.handleWindowBlur)},this.cleanupWindowEvents=function(){var n,t,i,o,a,r=$(),s=null==(n=e.wrapperComponent)?void 0:n.ownerDocument,l=null==s?void 0:s.defaultView;null==l||l.removeEventListener("mousedown",e.onPanningStart,r),null==l||l.removeEventListener("mousemove",e.onPanning,r),null==l||l.removeEventListener("mouseup",e.onPanningStop,r),null==s||s.removeEventListener("mouseleave",e.clearPanning,r),null==l||l.removeEventListener("keyup",e.setKeyUnPressed,r),null==l||l.removeEventListener("keydown",e.setKeyPressed,r),null==l||l.removeEventListener("blur",e.handleWindowBlur),null==(t=e.wrapperComponent)||t.removeEventListener("wheel",e.onWheelPanning,r),null==(i=e.wrapperComponent)||i.removeEventListener("keyup",e.setKeyUnPressed,r),null==(o=e.wrapperComponent)||o.removeEventListener("keydown",e.setKeyPressed,r),e.cleanupWrapperEvents(),e.clearTimers(),p(e),e.unlockTextSelection(),null==(a=e.observer)||a.disconnect(),e.observer=void 0,e.isInitialLayoutPending=!1,e.isResizeAlignmentPending=!1,e.resizeAnimation=null},this.cleanupWrapperEvents=function(){var n=e.wrapperComponent;if(n){var t=$();n.removeEventListener("wheel",e.onWheelZoom,t),n.removeEventListener("dblclick",e.onDoubleClick,t),n.removeEventListener("keydown",e.onKeyboardNavigation,t),n.removeEventListener("touchstart",e.onTouchPanningStart,t),n.removeEventListener("touchmove",e.onTouchPanning,t),n.removeEventListener("touchend",e.onTouchPanningStop,t)}},this.handleInitializeWrapperEvents=function(n){var t=$();n.addEventListener("wheel",e.onWheelZoom,t),n.addEventListener("dblclick",e.onDoubleClick,t),n.addEventListener("keydown",e.onKeyboardNavigation,t),n.addEventListener("touchstart",e.onTouchPanningStart,t),n.addEventListener("touchmove",e.onTouchPanning,t),n.addEventListener("touchend",e.onTouchPanningStop,t)},this.handleInitialize=function(){var n=e.setup,t=n.centerOnInit,i=n.fitOnInit;if(e.applyTransformation(),e.onInitCallbacks.forEach(function(n){return n(J(e))}),t||i){var o=e.applyInitialLayout();e.isInitialLayoutPending=!0,e.initObserverTimer&&clearTimeout(e.initObserverTimer),o&&(e.initObserverTimer=setTimeout(function(){e.initObserverTimer=null,e.isInitialLayoutPending=!1},5e3))}},this.observeSizes=function(n,t){var i;null==(i=e.observer)||i.disconnect(),e.observer=void 0,e.measuredSizes=np(n,t),"u">typeof ResizeObserver&&(e.observer=new ResizeObserver(e.onSizeChange),e.observer.observe(n),e.observer.observe(t))},this.onSizeChange=function(){var n=e.wrapperComponent,t=e.contentComponent;if(e.mounted&&n&&t){if(e.isInitialLayoutPending){if(!((t.offsetWidth>0||t.offsetHeight>0)&&n.clientWidth>0&&n.clientHeight>0))return;e.isInitialLayoutPending=!1,e.initObserverTimer&&clearTimeout(e.initObserverTimer),e.initObserverTimer=null,e.onInitCallbacks.forEach(function(n){return n(J(e))}),e.applyInitialLayout(),e.measuredSizes=np(n,t),g(e,e.state.scale);return}!function(n){var e,t=n.wrapperComponent,i=n.contentComponent;if(t&&i){var o=np(t,i);
1e=n.measuredSizes,e&&e.wrapperWidth===o.wrapperWidth&&e.wrapperHeight===o.wrapperHeight&&e.contentWidth===o.contentWidth&&e.contentHeight===o.contentHeight||(n.measuredSizes=o,nv(n))}}(e)}},this.flushResizeAlignment=function(){e.isResizeAlignmentPending&&(e.isResizeAlignmentPending=!1,nv(e))},this.onWheelZoom=function(n){e.setup.disabled||(e.syncModifierKeys(n),nh(e,n)&&(nY(e,n),nX(e,n),nE(e,n)))},this.onWheelPanning=function(n){var t=e.props.onPanning,i=e.setup.trackPadPanning,o=i.lockAxisX,a=i.lockAxisY;if(e.syncModifierKeys(n),ng(e,n)){n.cancelable&&n.preventDefault(),n.stopPropagation();var r=e.state,s=r.positionX,u=r.positionY,c=s-n.deltaX,p=u-n.deltaY,m=o?s:c,d=a?u:p,f=e.setup.autoAlignment,v=f.sizeX,h=f.sizeY,g=X(e,v),y=X(e,h);(m!==s||d!==u)&&(nA(e,n),T(e,m,d,g,y),l(J(e),n,t),nk(e,n))}},this.onPanningStart=function(n){var t=e.setup,i=t.disabled,o=t.panning,a=e.props.onPanningStart;i||o.disabled||(e.syncModifierKeys(n),P(e,n)&&e.isPressingKeys(e.setup.panning.activationKeys)&&(0!==n.button||e.setup.panning.allowLeftClickPan)&&(1!==n.button||e.setup.panning.allowMiddleClickPan)&&(2!==n.button||e.setup.panning.allowRightClickPan)&&(n.cancelable&&n.preventDefault(),n.stopPropagation(),p(e),M(e,n),e.lockTextSelection(),e.focusForKeyboard(),l(J(e),n,a)))},this.onPanning=function(n){var t=e.setup.disabled,i=e.props.onPanning;t||((e.syncModifierKeys(n),e.isPanning&&0===n.buttons)?e.clearPanning(n):!S(e)||e.isPressingKeys(e.setup.panning.activationKeys)&&(n.cancelable&&n.preventDefault(),n.stopPropagation(),N(e,n.clientX,n.clientY,o.MOUSE),l(J(e),n,i)))},this.onPanningStop=function(n){var t=e.setup.panning.velocityDisabled,i=e.props.onPanningStop;e.isPanning&&(e.unlockTextSelection(),function(n,e){if(n.isPanning){var t=n.velocity,i=n.wrapperComponent,o=n.contentComponent;n.isPanning=!1;var a=n.state,r=a.positionX,s=a.positionY,l=a.scale,c=n.panStartPosition;if(n.panStartPosition=null,c){var p=r-c.x,d=s-c.y;if(p*p+d*d<=25)return}n.isAnimating=!1,n.animation=null,n.isResizeAlignmentPending&&g(n,l);var f=(null==i?void 0:i.clientWidth)||0,v=(null==i?void 0:i.clientHeight)||0,h=((null==o?void 0:o.offsetWidth)||0)*l,y=((null==o?void 0:o.offsetHeight)||0)*l,w=!n.setup.limitToBounds||f<h||v<y;!e&&t&&t.total>.1&&w?function(n){var e=n.velocity,t=n.bounds,i=n.setup,o=n.wrapperComponent;if(A(n)&&e&&t&&o){var a,r,s,l=e.velocityX,c=e.velocityY,p=e.total,d=t.maxPositionX,f=t.minPositionX,v=t.maxPositionY,h=t.minPositionY,g=i.limitToBounds,y=i.autoAlignment,w=i.zoomAnimation,b=i.panning,P=b.lockAxisY,S=b.lockAxisX,C=w.animationType,x=y.sizeX,T=y.sizeY,Y=y.velocityAlignmentTime,E=Math.max((r=(a=n.setup.velocityAnimation).animationTime,s=a.maxAnimationTime,Math.min(r*Math.max(1,Math.abs(p/a.inertia)),s)),Y),z=X(n,x),M=X(n,T),W=z*o.clientWidth/100,N=M*o.clientHeight/100,O=d+W,I=f-W,K=v+N,R=h-N,L=n.state,D=new Date().getTime();m(n,C,E,function(e){var t=n.state,i=t.scale,o=t.positionX,a=t.positionY,r=new Date().getTime()-D,s=1-(0,u[y.animationType])(Math.min(1,r/Y)),p=1-e,m=o+l*p,w=a+c*p,b=k(m,L.positionX,o,S,g,f,d,I,O,s),C=k(w,L.positionY,a,P,g,h,v,R,K,s);if(o!==m||a!==w){n.setState(i,b,C);var x=n.props.onPanning;x&&x(J(n),{})}})}}(n):W(n)}}(e,t),l(J(e),n,i),e.flushResizeAlignment())},this.onPinchStart=function(n){var t=e.setup.disabled,i=e.props.onPinchStart;t||nP(e,n)&&(nM(e,n),p(e),l(J(e),n,i))},this.onPinch=function(n){var t=e.setup.disabled,i=e.props.onPinch;t||nS(e)&&(n.cancelable&&n.preventDefault(),n.stopPropagation(),nW(e,n),l(J(e),n,i))},this.onPinchStop=function(n){var t=e.props.onPinchStop;e.pinchStartScale&&(nN(e),l(J(e),n,t),e.flushResizeAlignment())},this.onTouchPanningStart=function(n){var t=e.setup,i=t.disabled,o=t.doubleClick,a=e.props.onPanningStart;if(!i){var r=!(null==o?void 0:o.disabled),s=e.lastTouch&&new Date-e.lastTouch<200;if(r&&s&&1===n.touches.length)e.lastTouch=null,e.onDoubleClick(n);else{e.lastTouch=+new Date,p(e);var u=n.touches,c=1===u.length,m=2===u.length,d=P(e,n);if(c){if(!d||e.setup.panning.disabled)return;p(e),M(e,n),e.lockTextSelection(),e.focusForKeyboard(),l(J(e),n,a)}m&&e.onPinchStart(n)}}},this.onTouchPanning=function(n){var t=e.setup.disabled,i=e.props.onPanning;if(e.isPanning&&1===n.touches.length){if(t||!S(e))return;n.cancelable&&n.preventDefault(),n.stopPropagation();var a=n.touches[0];N(e,a.clientX,a.clientY,o.TOUCH),l(J(e),n,i)}else n.touches.length>1&&e.onPinch(n)},this.onTouchPanningStop=function(n){e.onPanningStop(n),e.onPinchStop(n)}
1,this.onDoubleClick=function(n){e.setup.disabled||nK(e,n)&&function(n,e){var t,i=n.setup,o=n.doubleClickStopEventTimer,a=n.state,r=n.contentComponent,s=a.scale,u=n.props,c=u.onZoomStart,p=u.onZoom,m=i.doubleClick,f=m.disabled,v=m.mode,h=m.step,g=m.animationTime,y=m.animationType;if(!f&&!o){if("reset"===v)return nI(n,e);if(!r)return console.error("No ContentComponent found");var w=(t=n.state.scale,"toggle"===v?1===t?1:-1:"zoomOut"===v?-1:1),b=F(n,w,h);if(s!==b){l(J(n),e,c);var P=ny(e,r,s),S=O(n,b,P.x,P.y);if(!S)return console.error("Error during zoom event. New transformation state was not calculated.");l(J(n),e,p),d(n,S,g,y),nO(n,e)}}}(e,n)},this.clearPanning=function(n){e.isPanning&&e.onPanningStop(n)},this.handleWindowBlur=function(){e.pressedKeys={},e.isPanning&&(e.isPanning=!1,e.startCoords=null),e.unlockTextSelection(),e.flushResizeAlignment()},this.syncModifierKeys=function(n){var t=n.ctrlKey,i=n.metaKey,o=n.shiftKey,a=n.altKey;"boolean"==typeof t&&(e.pressedKeys.Control=t),"boolean"==typeof i&&(e.pressedKeys.Meta=i),"boolean"==typeof o&&(e.pressedKeys.Shift=o),"boolean"==typeof a&&(e.pressedKeys.Alt=a)},this.setKeyPressed=function(n){e.pressedKeys[n.key]=!0},this.setKeyUnPressed=function(n){e.pressedKeys[n.key]=!1},this.isPressingKeys=function(n){return"function"==typeof n?n(Object.entries(e.pressedKeys).filter(function(n){return n[1]}).map(function(n){return n[0]})):!n.length||!!n.every(function(n){return e.pressedKeys[n]})},this.onKeyboardNavigation=function(n){!function(n,e){var t,i=n.setup,o=i.disabled,a=i.keyboard,r=i.panning;if(o||a.disabled||e.defaultPrevented||e.ctrlKey||e.metaKey||e.altKey||(t=e.key,!Object.values(nc).some(function(n){return n.includes(t)})))return;var s=e.target;if(!(no(s)||s&&"function"==typeof s.matches&&ne(s,a.excluded))){var l=a.panStep,u=a.zoomStep,c=a.animationTime,p=a.animationType,m=G(n),d=e.key,f=r.lockAxisX?0:l,v=r.lockAxisY?0:l;"ArrowLeft"===d?m.panBy(f,0,c,p):"ArrowRight"===d?m.panBy(-f,0,c,p):"ArrowUp"===d?m.panBy(0,v,c,p):"ArrowDown"===d?m.panBy(0,-v,c,p):"+"===d||"="===d?m.zoomIn(u,c,p):"-"===d||"_"===d?m.zoomOut(u,c,p):"0"===d&&m.resetTransform(c,p),e.cancelable&&e.preventDefault(),e.stopPropagation()}}(e,n)},this.focusForKeyboard=function(){var n,t=e.wrapperComponent;if(t&&!e.setup.keyboard.disabled){var i=null==(n=t.ownerDocument)?void 0:n.activeElement;i&&t.contains(i)||"function"==typeof t.focus&&t.focus({preventScroll:!0})}},this.lockTextSelection=function(){var n=e.wrapperComponent;n&&!e.selectionLock&&(e.selectionLock={userSelect:n.style.userSelect,webkitUserSelect:n.style.webkitUserSelect},n.style.userSelect="none",n.style.webkitUserSelect="none")},this.unlockTextSelection=function(){var n=e.selectionLock;e.selectionLock=null;var t=e.wrapperComponent;t&&n&&(t.style.userSelect=n.userSelect,t.style.webkitUserSelect=n.webkitUserSelect)},this.applyInitialLayout=function(){var n=e.setup.fitOnInit,t=e.wrapperComponent,i=e.contentComponent,o=!!t&&!!i&&t.clientWidth>0&&t.clientHeight>0&&(i.offsetWidth>0||i.offsetHeight>0);if(n){var a=U(e,"cover"===n?"cover":"contain");if(a)return e.setState(a.scale,a.positionX,a.positionY),o}return e.setCenter(),o},this.setCenter=function(){if(e.wrapperComponent&&e.contentComponent){var n=nl(e.state.scale,e.wrapperComponent,e.contentComponent);e.setState(n.scale,n.positionX,n.positionY)}},this.handleTransformStyles=function(n,t,i){return e.props.customTransform?e.props.customTransform(n,t,i):ns(n,t,i)},this.getContext=function(){return J(e)},this.applyTransformation=function(){if(e.mounted&&e.contentComponent){var n=e.state,t=n.scale,i=n.positionX,o=n.positionY,a=e.handleTransformStyles(i,o,t);e.props.detached||(e.contentComponent.style.transform=a),e.onTransformCallbacks.forEach(function(n){return n({scale:t,positionX:i,positionY:o,previousScale:e.state.previousScale,ref:J(e)})})}},this.setState=function(n,t,i){var o=e.props.onTransform;if(Number.isNaN(n)||Number.isNaN(t)||Number.isNaN(i))console.error("Detected NaN set state values");else{var a=Math.max(n,1e-7);a!==e.state.scale&&(e.state.previousScale=e.state.scale,e.state.scale=a),e.state.positionX=t,e.state.positionY=i,e.a
1pplyTransformation();var r=J(e);e.onChangeCallbacks.forEach(function(n){return n(r)}),l(r,{scale:e.state.scale,positionX:t,positionY:i},o)}},this.onTransform=function(n){return e.onTransformCallbacks.has(n)||e.onTransformCallbacks.add(n),function(){e.onTransformCallbacks.delete(n)}},this.onChange=function(n){return e.onChangeCallbacks.has(n)||e.onChangeCallbacks.add(n),function(){e.onChangeCallbacks.delete(n)}},this.onInit=function(n){return e.onInitCallbacks.has(n)||e.onInitCallbacks.add(n),function(){e.onInitCallbacks.delete(n)}},this.init=function(n,t){e.mounted=!0,e.cleanupWindowEvents(),e.wrapperComponent=n,e.contentComponent=t,g(e,e.state.scale),e.handleInitializeWrapperEvents(n),e.handleInitialize(),e.observeSizes(n,t),e.initializeWindowEvents(),e.isInitialized=!0;var i,o=J(e);l(o,void 0,e.props.onInit),i=e.props.ref,null!=i&&("function"==typeof i?i(o):i.current=o)},this.props=n,this.setup=B(this.props),this.state=H(this.props)},nL=a.createContext(null),nD=a.forwardRef(function(n,e){var t,i,o=(0,a.useRef)(null);null===o.current&&(o.current=new nR(n));var s=o.current,l=(t=n.children,i=G(s),"function"==typeof t?t(i):t);return(0,a.useImperativeHandle)(e,function(){return G(s)},[s]),(0,a.useEffect)(function(){return s.mount(),function(){s.unmount()}},[s]),(0,a.useEffect)(function(){s.update(n)},[s,n]),(0,r.jsx)(nL.Provider,K({value:s},{children:l}))});a.forwardRef(function(n,e){var t,i=(0,a.useRef)(null),o=(0,a.useContext)(nL);return nu(function(){var n=function(n){i.current&&(i.current.style.transform=o.handleTransformStyles(0,0,1/n))};return n(o.state.scale),o.onChange(function(e){n(e.instance.state.scale)})},[o]),(0,r.jsx)("div",K({},n,{ref:(t=[i,e],function(n){t.forEach(function(e){"function"==typeof e?e(n):null!=e&&(e.current=n)})})}))});!function(n,e){void 0===e&&(e={});var t=e.insertAt;if(n&&"u">typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}(".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 /* Text stays selectable (#467); the instance applies an inline lock\n only while a pan gesture is active. */\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 nH=function(n){var e,t=n.children,i=n.wrapperClass,o=n.contentClass,s=n.wrapperStyle,l=n.contentStyle,u=n.wrapperProps,c=n.contentProps,p=n.infinite,m=void 0!==p&&p,d=(0,a.useContext)(nL),f=d.init,v=d.cleanupWindowEvents,h=(0,a.useRef)(null),g=(0,a.useRef)(null),y=(0,a.useRef)(null);nu(function(){var n=h.current,e=g.current;return null!==n&&null!==e&&f&&(null==f||f(n,e)),function(){null==v||v()}},[]),(0,a.useEffect)(function(){if(m){var n=y.current;if(n){var e=function(){var e=d.state,t=e.positionX,i=e.positionY;n.style.backgroundPosition="".concat(t,"px ").concat(i,"px")};return e(),d.onChange(e)}}},[m,d]);var w=!(null==(e=d.setup.keyboard)?void 0:e.disabled);return(0,r.jsxs)("div",K({tabIndex:w?0:void 0},void 0===u?{}:u,{ref:h,className:"".concat(D," ").concat("transform-component-module_wrapper__SPB86"," ").concat(void 0===i?"":i),style:s},{children:[m&&(0,r.jsx)("div",{ref:y,className:"transform-component-module_infiniteGrid__Z-aP3","aria-hidden":!0}),(0,r.jsx)("div",K({},void 0===c?{}:c,{ref:g,className:"".concat("react-transform-component"," ").concat("transform-component-module_content__FBWxo"," ").concat(void 0===o?"":o),style:K(K({transformOrigin:"0 0"},l),{transform:ns(d.state.positionX,d.state.positionY,d.state.scale)})},{children:t}))]}))};a.forwardRef(function(n,e){var t=n.x,i=n.y,o=n.width,s=n.height,l=n.margin,u=void 0===l?0:l,c=n.threshold,p=void 0===c?0:c,m=n.placeholder,d=void 0===m?null:m,f=n.onShow,v=n.onHide,h=n.children,g=n.className,y=n.style,w=(0,a.useContext)(nL),b=function(){var n=w.wrapperComponent;return!!n&&function(n){var e=n.elementX,t=n.elementY,i=n.elementWidth,o=n.elementHeight,a=n.scale,r=n.positionX,s=n.positionY,l=n.viewportWidth,u=n.viewportHe
1ight,c=n.margin,p=void 0===c?0:c,m=n.threshold,d=void 0===m?0:m,f={x:-p,y:-p,width:l+2*p,height:u+2*p},v={x:e*a+r,y:t*a+s,width:i*a,height:o*a};if(d<=0){var h=v.x<f.x+f.width&&v.x+v.width>f.x,g=v.y<f.y+f.height&&v.y+v.height>f.y;return h&&g}var y=v.width*v.height;return!(y<=0)&&Math.max(0,Math.min(f.x+f.width,v.x+v.width)-Math.max(f.x,v.x))*Math.max(0,Math.min(f.y+f.height,v.y+v.height)-Math.max(f.y,v.y))/y>=d}({elementX:t,elementY:i,elementWidth:o,elementHeight:s,scale:w.state.scale,positionX:w.state.positionX,positionY:w.state.positionY,viewportWidth:n.clientWidth,viewportHeight:n.clientHeight,margin:u,threshold:p})},P=(0,a.useState)(b),S=P[0],C=P[1],x=(0,a.useRef)(!1),T=(0,a.useRef)(f),Y=(0,a.useRef)(v);return(T.current=f,Y.current=v,nu(function(){var n,e=function(){if(w.wrapperComponent){var n,e,t=b();t!==x.current&&(x.current=t,C(t),t?null==(n=T.current)||n.call(T):null==(e=Y.current)||e.call(Y))}};e();var t=w.onChange(e);return w.wrapperComponent||(n=w.onInit(function(){return e()})),function(){t(),null==n||n()}},[w,t,i,o,s,u,p]),S)?(0,r.jsx)("div",K({ref:e,className:g,style:y},{children:h})):d?(0,r.jsx)(r.Fragment,{children:d}):null})}}]);
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.