1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4573],{74573:(n,t,e)=>{e.r(t),e.d(t,{Context:()=>nS,KeepScale:()=>nC,MiniMap:()=>nT,TransformComponent:()=>nE,TransformWrapper:()=>ny,getCenterPosition:()=>J,getMatrixTransformStyles:()=>G,getTransformStyles:()=>V,useControls:()=>nz,useTransformComponent:()=>nO,useTransformContext:()=>nX,useTransformEffect:()=>nk,useTransformInit:()=>nN});var o=e(12115),i=function(n,t){return Number(n.toFixed(t))},a=function(n,t,e){e&&"function"==typeof e&&e(n,t)},r={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}},s=function(n){"number"==typeof n&&cancelAnimationFrame(n)},l=function(n){n.mounted&&(s(n.animation),n.animate=!1,n.animation=null,n.velocity=null)};function u(n,t,e,o){if(n.mounted){var i=new Date().getTime();l(n),n.animation=function(){if(!n.mounted)return s(n.animation);var a=new Date().getTime()-i,l=(0,r[t])(a/e);a>=e?(o(1),n.animation=null):n.animation&&(o(l),requestAnimationFrame(n.animation))},requestAnimationFrame(n.animation)}}function c(n,t,e,o){var i,a,r,s=(i=t.scale,a=t.positionX,r=t.positionY,!(Number.isNaN(i)||Number.isNaN(a)||Number.isNaN(r)));if(n.mounted&&s){var l=n.setTransformState,c=n.transformState,p=c.scale,f=c.positionX,m=c.positionY,d=t.scale-p,h=t.positionX-f,v=t.positionY-m;0===e?l(t.scale,t.positionX,t.positionY):u(n,o,e,function(n){l(p+d*n,f+h*n,m+v*n)})}}var p=function(n,t,e,o,i,a,r){var s=n>t?e*(r?1:.5):0,l=o>i?a*(r?1:.5):0;return{minPositionX:n-t-s,maxPositionX:s,minPositionY:o-i-l,maxPositionY:l}},f=function(n,t){var e,o,i,a,r,s,l=n.wrapperComponent,u=n.contentComponent,c=n.setup.centerZoomedOut;if(!l||!u)throw Error("Components are not mounted");var f=(e=l.offsetWidth,o=l.offsetHeight,i=u.offsetWidth,a=u.offsetHeight,{wrapperWidth:e,wrapperHeight:o,newContentWidth:r=i*t,newDiffWidth:e-r,newContentHeight:s=a*t,newDiffHeight:o-s}),m=f.wrapperWidth,d=f.wrapperHeight;return p(m,f.newContentWidth,f.newDiffWidth,d,f.newContentHeight,f.newDiffHeight,!!c)},m=function(n,t,e,o){return o?n<t?i(t,2):n>e?i(e,2):i(n,2):i(n,2)},d=function(n,t){var e=f(n,t);return n.bounds=e,e};function h(n,t,e,o,i,a,r){var s=e.minPositionX,l=e.minPositionY,u=e.maxPositionX,c=e.maxPositionY,p=0,f=0;return r&&(p=i,f=a),{x:m(n,s-p,u+p,o),y:m(t,l-f,c+f,o)}}function v(n,t,e,o,i,a){var r=n.transformState,s=r.scale,l=r.positionX,u=r.positionY,c=o-s;return"number"!=typeof t||"number"!=typeof e?(console.error("Mouse X and Y position were not provided!"),{x:l,y:u}):h(l-t*c,u-e*c,i,a,0,0,null)}function g(n,t,e,o,i){var a=t-(i?o:0);return!Number.isNaN(e)&&n>=e?e:!Number.isNaN(t)&&n<=a?a:n}var w=function(n,t){var e=n.setup.panning.excluded,o=n.isInitialized,i=n.wrapperComponent,a=t.target,r="shadowRoot"in a&&"composedPath"in t?t.composedPath().some(function(n){return n instanceof Element&&(null==i?void 0:i.contains(n))}):null==i?void 0:i.contains(a);return!(!(o&&a&&r)||q(a,e))},S=function(n){var t=n.isInitialized,e=n.isPanning,o=n.setup.panning.disabled;return!!(t&&e&&!o)},y=function(n,t){var e=n.transformState,o=e.positionX,i=e.positionY;n.isPanning=!0,n.startCoords={x:t.clientX-o,y:t.clientY-i}},C=function(n,t){var e=t.touches,o=n.transformState,i=o.positionX,a=o.positionY;n.isPanning=!0,1===e.length&&(n.startCoords={x:e[0].clientX-i,y:e[0].clientY-a})};function b(n,t,e,o,i){var a=n.setup.limitToBounds,r=n.wrapperComponent,s=n.bounds,l=n.transformState,u=l.scale,c=l.positionX,p=l.positionY;if(null!==r&&null!==s&&(t!==c||e!==p)){var f=h(t,e,s,a,o,i,r),m=f.x,d=f.y;n.setTransformState(u,m,d)}}var P=function(n,t,e){var o=n.startCoords,i=n.transformState,a=n.setup.panning,r=a.lockAxisX,s=a.lockAxisY,l=i.positionX,u=i.positionY;if(!o)return{x:l,y:u};var c=t-o.x,p=e-o.y;return{x:r?l:c,y:s?u:p}},x=function(n,t){var e=n.setup,o=n.transformState.scale,i=e.minScale,a=e.disablePadding;return t>0&&o>=i&&!a?t:0},T=function(n){var t=n.mounted,e=n.setup,o=e.disabled,i=e.velocityAnimation,a=n.transformState.scale;return!!(!i.disabled||a>1||!o||t)},Y=function(n){var t=n.mounted,e=n.velocity,o=n.bounds,i=n.setup,a=i.disabled,r=i.velocityAnimation,s=n.transformState.scale;return!!(!r.disabled||s>1||!a||t)&&!!e&&!!o};function E(n,t,e,o,i,a,r,s,l,u){if(i){if(t>r&&e>r){var c=r+(n-r)*u;return c>l?l:c<r?r:c}if(t<a&&e<a){var c=a+(n-a)*u;return c<s?s:c>a?a:c}}return o?t:m(n,a,r,i)}function X(n,t){var e=n.transformState.scale;l(n),d(n,e),void 0!==window.TouchEvent&&t instanceof TouchEvent?C(n,t):y(n,t)}function z(n,t){var e=n.transformState.scale,o=n.setup,i=o.minScale,a=o.alignmentAnimation,r=a.disabled,s=a.sizeX,l=a.sizeY,u=a.animationTime,p=a.animationType;if(!(r||e<i||!s&&!l)){var f=function(n){var t=n.transformState,e=t.positionX,o=t.positionY,i=t.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,f=c.minPositionX,m=c.maxPositionY,d=c.minPositionY,h=e>p?u.offsetWidth:n.setup.minPositionX||0,g=o>m?u.offsetHeight:n.setup.minPositionY||0,w=v(n,h,g,i,n.bounds,s||l),S=w.x,y=w.y;return{scale:i,positionX:e>p||e<f?S:e,positionY:o>m||o<d?y:o}}}(n);f&&c(n,f,null!=t?t:u,p)}}function N(n,t,e){var o=n.startCoords,i=n.setup.alignmentAnimation,a=i.sizeX,r=i.sizeY;if(o){var s=P(n,t,e),l=s.x,u=s.y,c=x(n,a),p=x(n,r);!function(n,t){if(T(n)){var e=n.lastMousePosition,o=n.velocityTime,i=n.setup,a=n.wrapperComponent,r=i.velocityAnimation.equalToMove,s=Date.now();if(e&&o&&a){var l=r?Math.min(1,a.offsetWidth/window.innerWidth):1,u=t.x-e.x,c=t.y-e.y,p=Math.sqrt(u*u+c*c)/(s-o);n.velocity={velocityX:u/l,velocityY:c/l,total:p}}n.lastMousePosition=t,n.velocityTime=s}}(n,{x:l,y:u}),b(n,l,u,c,p)}}function k(n,t,e,o){var a=n.setup,r=a.minScale,s=a.maxScale,l=a.limitToBounds,u=g(i(t,2),r,s,0,!1),c=d(n,u),p=v(n,e,o,u,c,l);return{scale:u,positionX:p.x,positionY:p.y}}function O(n,t,e){var o=n.transformState.scale,i=n.wrapperComponent,a=n.setup,r=a.minScale,s=a.limitToBounds,l=a.zoomAnimation,u=l.disabled,p=l.animationTime,f=l.animationType,m=u||o>=r;if((o>
1=1||s)&&z(n),!m&&i&&n.mounted){var d=k(n,r,t||i.offsetWidth/2,e||i.offsetHeight/2);d&&c(n,d,p,f)}}var W=function(){return(W=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function A(n,t,e){if(e||2==arguments.length)for(var o,i=0,a=t.length;i<a;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return n.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var I={scale:1,positionX:0,positionY:0},D={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,smooth:!0,wheel:{step:.2,disabled:!1,smoothStep:.001,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,allowLeftClickPan:!0,allowMiddleClickPan:!0,allowRightClickPan:!0,wheelPanning:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},M={wrapperClass:"react-transform-wrapper",contentClass:"react-transform-component"},B=function(n){var t,e,o,i;return{previousScale:null!=(t=n.initialScale)?t:I.scale,scale:null!=(e=n.initialScale)?e:I.scale,positionX:null!=(o=n.initialPositionX)?o:I.positionX,positionY:null!=(i=n.initialPositionY)?i:I.positionY}},L=function(n){var t=W({},D);return Object.keys(n).forEach(function(e){var o=void 0!==n[e];if(void 0!==D[e]&&o){var i=Object.prototype.toString.call(D[e]);"[object Object]"===i?t[e]=W(W({},D[e]),n[e]):"[object Array]"===i?t[e]=A(A([],D[e],!0),n[e],!0):t[e]=n[e]}}),t},R=function(n,t,e){var o=n.transformState.scale,a=n.wrapperComponent,r=n.setup,s=r.maxScale,l=r.minScale,u=r.zoomAnimation,c=r.smooth,p=u.size;if(!a)throw Error("Wrapper is not mounted");
1return g(i(c?o*Math.exp(t*e):o+t*e,3),l,s,p,!1)};function K(n,t,e,o,i){var a=n.wrapperComponent,r=n.transformState,s=r.scale,l=r.positionX,u=r.positionY;if(!a)return console.error("No WrapperComponent found");var p=a.offsetWidth,f=a.offsetHeight,m=R(n,t,e),d=k(n,m,(p/2-l)/s,(f/2-u)/s);if(!d)return console.error("Error during zoom event. New transformation state was not calculated.");c(n,d,o,i)}function _(n,t,e,o){var i=n.setup,a=n.wrapperComponent,r=i.limitToBounds,s=B(n.props),l=n.transformState,u=l.scale,p=l.positionX,m=l.positionY;if(a){var d=f(n,s.scale),v=h(s.positionX,s.positionY,d,r,0,0,a),g={scale:s.scale,positionX:v.x,positionY:v.y};(u!==s.scale||p!==s.positionX||m!==s.positionY)&&(null==o||o(),c(n,g,t,e))}}var H=function(n){return{instance:n,zoomIn:function(t,e,o){void 0===t&&(t=.5),void 0===e&&(e=300),void 0===o&&(o="easeOut"),K(n,1,t,e,o)},zoomOut:function(t,e,o){void 0===t&&(t=.5),void 0===e&&(e=300),void 0===o&&(o="easeOut"),K(n,-1,t,e,o)},setTransform:function(t,e,o,i,a){void 0===i&&(i=300),void 0===a&&(a="easeOut");var r=n.transformState,s=r.positionX,l=r.positionY,u=r.scale,p=n.wrapperComponent,f=n.contentComponent;!n.setup.disabled&&p&&f&&c(n,{positionX:Number.isNaN(t)?s:t,positionY:Number.isNaN(e)?l:e,scale:Number.isNaN(o)?u:o},i,a)},resetTransform:function(t,e){void 0===t&&(t=200),void 0===e&&(e="easeOut"),_(n,t,e)},centerView:function(t,e,o){void 0===e&&(e=200),void 0===o&&(o="easeOut");var i=n.transformState,a=n.wrapperComponent,r=n.contentComponent;a&&r&&c(n,J(t||i.scale,a,r),e,o)},zoomToElement:function(t,e,o,i){void 0===o&&(o=600),void 0===i&&(i="easeOut"),l(n);var a=n.wrapperComponent,r="string"==typeof t?document.getElementById(t):t;if(a&&r&&a.contains(r)){var s=function(n,t,e){var o,i,a,r,s,l=n.wrapperComponent,u=n.contentComponent,c=n.transformState,p=n.setup,m=p.limitToBounds,d=p.minScale,v=p.maxScale;if(!l||!u)return c;var w=l.getBoundingClientRect(),S=t.getBoundingClientRect(),y=(o=t.getBoundingClientRect(),i=l.getBoundingClientRect(),a=u.getBoundingClientRect(),r=i.x*c.scale,s=i.y*c.scale,{x:(o.x-a.x+r)/c.scale,y:(o.y-a.y+s)/c.scale}),C=y.x,b=y.y,P=S.width/c.scale,x=S.height/c.scale,T=l.offsetWidth/P,Y=l.offsetHeight/x,E=g(e||Math.min(T,Y),d,v,0,!1),X=(w.width-P*E)/2,z=(w.height-x*E)/2,N=h((w.left-C)*E+X,(w.top-b)*E+z,f(n,E),m,0,0,l);return{positionX:N.x,positionY:N.y,scale:E}}(n,r,e);c(n,s,o,i)}}}},Z=function(n){return{instance:n,state:n.transformState}},j=function(n){var t={};return Object.assign(t,Z(n)),Object.assign(t,H(n)),t};function F(){try{return{get passive(){return!1}}}catch(n){return!1}}var Q=".".concat(M.wrapperClass),q=function(n,t){return t.some(function(t){return n.matches("".concat(Q," ").concat(t,", ").concat(Q," .").concat(t,", ").concat(Q," ").concat(t," *, ").concat(Q," .").concat(t," *"))})},U=function(n){n&&clearTimeout(n)},V=function(n,t,e){return"translate(".concat(n,"px, ").concat(t,"px) scale(").concat(e,")")},G=function(n,t,e){return"matrix3d(".concat(e,", ").concat(0,", 0, 0, ").concat(0,", ").concat(e,", 0, 0, 0, 0, 1, 0, ").concat(n,", ").concat(t,", 0, 1)")},J=function(n,t,e){var o=e.offsetWidth*n,i=e.offsetHeight*n;return{scale:n,positionX:(t.offsetWidth-o)/2,positionY:(t.offsetHeight-i)/2}},$=function(n,t){var e=n.setup.wheel,o=e.disabled,i=e.wheelDisabled,a=e.touchPadDisabled,r=e.excluded,s=n.isInitialized,l=n.isPanning,u=t.target;return!(!(s&&!l&&!o&&u)||i&&!t.ctrlKey||a&&t.ctrlKey||q(u,r))};function nn(n,t,e){var o=t.getBoundingClientRect(),i=0,a=0;if("clientX"in n)i=(n.clientX-o.left)/e,a=(n.clientY-o.top)/e;else{var r=n.touches[0];i=(r.clientX-o.left)/e,a=(r.clientY-o.top)/e}return(Number.isNaN(i)||Number.isNaN(a))&&console.error("No mouse or touch offset found"),{x:i,y:a}}var nt=function(n,t,e,o,a){var r=n.transformState.scale,s=n.wrapperComponent,l=n.setup,u=l.maxScale,c=l.minScale,p=l.zoomAnimation,f=l.disablePadding,m=p.size,d=p.disabled;if(!s)throw Error("Wrapper is not mounted");var h=r+t*e;return a?h:g(i(h,3),c,u,m,!o&&!d&&!f)},ne=function(n,t){var e=n.previousWheelEvent,o=n.transformState.scale,i=n.setup,a=i.maxScale,r=i.minScale;return!!e&&(!!(o<a)||!!(o>r)||Math.sign(e.deltaY)!==Math.sign(t.deltaY)||!!(e.deltaY>
10)&&!!(e.deltaY<t.deltaY)||!!(e.deltaY<0)&&!!(e.deltaY>t.deltaY)||Math.sign(e.deltaY)!==Math.sign(t.deltaY))},no=function(n,t){var e=n.setup.pinch,o=e.disabled,i=e.excluded,a=n.isInitialized,r=t.target;return!(!(a&&!o&&r)||q(r,i))},ni=function(n){var t=n.setup.pinch.disabled,e=n.isInitialized,o=n.pinchStartDistance;return!!(e&&!t&&o)},na=function(n,t,e){var o=e.getBoundingClientRect(),a=n.touches,r=i(a[0].clientX-o.left,5),s=i(a[0].clientY-o.top,5);return{x:(r+i(a[1].clientX-o.left,5))/2/t,y:(s+i(a[1].clientY-o.top,5))/2/t}},nr=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))},ns=function(n,t){var e=n.pinchStartScale,o=n.pinchStartDistance,a=n.setup,r=a.maxScale,s=a.minScale,l=a.zoomAnimation,u=a.disablePadding,c=l.size,p=l.disabled;if(!e||null===o||!t)throw Error("Pinch touches distance was not provided");return t<0?n.transformState.scale:g(i(t/o*e,2),s,r,c,!p&&!u)},nl=function(n,t){var e=n.props,o=e.onWheelStart,i=e.onZoomStart;n.wheelStopEventTimer||(l(n),a(j(n),t,o),a(j(n),t,i))},nu=function(n,t){var e,o=n.props,i=o.onWheel,r=o.onZoom,s=n.contentComponent,l=n.setup,u=n.transformState.scale,c=l.limitToBounds,p=l.centerZoomedOut,f=l.zoomAnimation,m=l.wheel,h=l.disablePadding,g=l.smooth,w=f.size,S=f.disabled,y=m.step,C=m.smoothStep;if(!s)throw Error("Component not mounted");t.preventDefault(),t.stopPropagation();var b=nt(n,(e=t?t.deltaY<0?1:-1:0,e),g?C*Math.abs(t.deltaY):y,!t.ctrlKey);if(u!==b){var P=d(n,b),x=nn(t,s,u),T=v(n,x.x,x.y,b,P,c&&(S||0===w||p||h)),Y=T.x,E=T.y;n.previousWheelEvent=t,n.setTransformState(b,Y,E),a(j(n),t,i),a(j(n),t,r)}},nc=function(n,t){var e=n.props,o=e.onWheelStop,i=e.onZoomStop;U(n.wheelAnimationTimer),n.wheelAnimationTimer=setTimeout(function(){n.mounted&&(O(n,t.x,t.y),n.wheelAnimationTimer=null)},100),ne(n,t)&&(U(n.wheelStopEventTimer),n.wheelStopEventTimer=setTimeout(function(){n.mounted&&(n.wheelStopEventTimer=null,a(j(n),t,o),a(j(n),t,i))},160))},np=function(n){for(var t=0,e=0,o=0;o<2;o+=1)t+=n.touches[o].clientX,e+=n.touches[o].clientY;return{x:t/2,y:e/2}},nf=function(n,t){var e=nr(t);n.pinchStartDistance=e,n.lastDistance=e,n.pinchStartScale=n.transformState.scale,n.isPanning=!1;var o=np(t);n.pinchLastCenterX=o.x,n.pinchLastCenterY=o.y,l(n)},nm=function(n,t){var e=n.contentComponent,o=n.pinchStartDistance,i=n.wrapperComponent,a=n.transformState.scale,r=n.setup,s=r.limitToBounds,l=r.centerZoomedOut,u=r.zoomAnimation,c=r.alignmentAnimation,p=u.disabled,f=u.size;if(null!==o&&e){var m=na(t,a,e);if(Number.isFinite(m.x)&&Number.isFinite(m.y)){var g=nr(t),w=ns(n,g),S=np(t),y=S.x-(n.pinchLastCenterX||0),C=S.y-(n.pinchLastCenterY||0);if(w!==a||0!==y||0!==C){n.pinchLastCenterX=S.x,n.pinchLastCenterY=S.y;var b=d(n,w),P=v(n,m.x,m.y,w,b,s&&(p||0===f||l)),T=P.x,Y=P.y;n.pinchMidpoint=m,n.lastDistance=g;var E=c.sizeX,X=c.sizeY,z=h(T+y,Y+C,b,s,x(n,E),x(n,X),i),N=z.x,k=z.y;n.setTransformState(w,N,k)}}}},nd=function(n){var t=n.pinchMidpoint;n.velocity=null,n.lastDistance=null,n.pinchMidpoint=null,n.pinchStartScale=null,n.pinchStartDistance=null,O(n,null==t?void 0:t.x,null==t?void 0:t.y)},nh=function(n,t){var e=n.props.onZoomStop,o=n.setup.doubleClick.animationTime;U(n.doubleClickStopEventTimer),n.doubleClickStopEventTimer=setTimeout(function(){n.doubleClickStopEventTimer=null,a(j(n),t,e)},o)},nv=function(n,t){var e=n.props,o=e.onZoomStart,i=e.onZoom,r=n.setup.doubleClick,s=r.animationTime,l=r.animationType;a(j(n),t,o),_(n,s,l,function(){return a(j(n),t,i)}),nh(n,t)},ng=function(n,t){var e=n.isInitialized,o=n.setup,i=n.wrapperComponent,a=o.doubleClick,r=a.disabled,s=a.excluded,l=t.target,u=null==i?void 0:i.contains(l);return!(!(e&&l&&u&&!r)||q(l,s))},nw=function(n){var t=this;this.mounted=!0,this.pinchLastCenterX=null,this.pinchLastCenterY=null,this.onChangeCallbacks=new Set,this.onInitCallbacks=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.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){t.initializeWindowEvents()},this.unmount=function(){t.cleanupWindowEvents()},this.update=function(n){t.props=n,d(t,t.transformState.scale),t.setup=L(n)},this.initializeWindowEvents=function(){var n,e,o=F(),i=null==(n=t.wrapperComponent)?void 0:n.ownerDocument,a=null==i?void 0:i.defaultView;null==(e=t.wrapperComponent)||e.addEventListener("wheel",t.onWheelPanning,o),null==a||a.addEventListener("mousedown",t.onPanningStart,o),null==a||a.addEventListener("mousemove",t.onPanning,o),null==a||a.addEventListener("mouseup",t.onPanningStop,o),null==i||i.addEventListener("mouseleave",t.clearPanning,o),null==a||a.addEventListener("keyup",t.setKeyUnPressed,o),null==a||a.addEventListener("keydown",t.setKeyPressed,o)},this.cleanupWindowEvents=function(){var n,e,o=F(),i=null==(n=t.wrapperComponent)?void 0:n.ownerDocument,a=null==i?void 0:i.defaultView;null==a||a.removeEventListener("mousedown",t.onPanningStart,o),null==a||a.removeEventListener("mousemove",t.onPanning,o),null==a||a.removeEventListener("mouseup",t.onPanningStop,o),null==i||i.removeEventListener("mouseleave",t.clearPanning,o),null==a||a.removeEventListener("keyup",t.setKeyUnPressed,o),null==a||a.removeEventListener("keydown",t.setKeyPressed,o),document.removeEventListener("mouseleave",t.clearPanning,o),l(t),null==(e=t.observer)||e.disconnect()},this.handleInitializeWrapperEvents=function(n){var e=F();n.addEventListener("wheel",t.onWheelZoom,e),n.addEventListener("dblclick",t.onDoubleClick,e),n.addEventListener("touchstart",t.onTouchPanningStart,e),n.addEventListener("touchmove",t.onTouchPanning,e),n.addEventListener("touchend",t.onTouchPanningStop,e)},this.handleInitialize=function(n,e){var o=!1,i=t.setup.centerOnInit,a=function(n,t){for(var e=0;e<n.length;e++)if(n[e].target===t)return!0;return!1};t.applyTransformation(),t.onInitCallbacks.forEach(function(n){n(j(t))}),t.observer=new ResizeObserver(function(r){if(a(r,n)||a(r,e))if(i&&!o){var s=e.offsetWidth,u=e.offsetHeight;(s>0||u>0)&&(o=!0,t.setCenter())}else l(t),d(t,t.transformState.scale),z(t,0)}),t.observer.observe(n),t.observer.observe(e)},this.onWheelZoom=function(n){!t.setup.disabled&&$(t,n)&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(nl(t,n),nu(t,n),nc(t,n))},this.onWheelPanning=function(n){var e=t.setup,o=e.disabled,i=e.wheel,a=e.panning;if(t.wrapperComponent&&t.contentComponent&&!o&&i.wheelDisabled&&!a.disabled&&a.wheelPanning&&!n.ctrlKey){n.preventDefault(),n.stopPropagation();var r=t.transformState,s=r.positionX,l=r.positionY,u=s-n.deltaX,c=l-n.deltaY,p=a.lockAxisX?s:u,f=a.lockAxisY?l:c,m=t.setup.alignmentAnimation,d=m.sizeX,h=m.sizeY,v=x(t,d),g=x(t,h);(p!==s||f!==l)&&b(t,p,f,v,g)}},this.onPanningStart=function(n){var e=t.setup.disabled,o=t.props.onPanningStart;
1!e&&w(t,n)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(0!==n.button||t.setup.panning.allowLeftClickPan)&&(1!==n.button||t.setup.panning.allowMiddleClickPan)&&(2!==n.button||t.setup.panning.allowRightClickPan)&&(n.preventDefault(),n.stopPropagation(),l(t),X(t,n),a(j(t),n,o))},this.onPanning=function(n){var e=t.setup.disabled,o=t.props.onPanning;!e&&S(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(n.preventDefault(),n.stopPropagation(),N(t,n.clientX,n.clientY),a(j(t),n,o))},this.onPanningStop=function(n){var e=t.props.onPanningStop;t.isPanning&&(!function(n){if(n.isPanning){var t=n.setup.panning.velocityDisabled,e=n.velocity,o=n.wrapperComponent,i=n.contentComponent;n.isPanning=!1,n.animate=!1,n.animation=null;var a=null==o?void 0:o.getBoundingClientRect(),s=null==i?void 0:i.getBoundingClientRect(),l=(null==a?void 0:a.width)||0,c=(null==a?void 0:a.height)||0,p=(null==s?void 0:s.width)||0,f=(null==s?void 0:s.height)||0;!t&&e&&(null==e?void 0:e.total)>.1&&(l<p||c<f)?function(n){var t=n.velocity,e=n.bounds,o=n.setup,i=n.wrapperComponent;if(Y(n)&&t&&e&&i){var a,s,l,c,p=t.velocityX,f=t.velocityY,m=t.total,d=e.maxPositionX,h=e.minPositionX,v=e.maxPositionY,g=e.minPositionY,w=o.limitToBounds,S=o.alignmentAnimation,y=o.zoomAnimation,C=o.panning,b=C.lockAxisY,P=C.lockAxisX,T=y.animationType,X=S.sizeX,z=S.sizeY,N=S.velocityAlignmentTime,k=Math.max((s=(a=n.setup.velocityAnimation).equalToMove,l=a.animationTime,c=a.sensitivity,s?l*m*c:l),N),O=x(n,X),W=x(n,z),A=O*i.offsetWidth/100,I=W*i.offsetHeight/100,D=d+A,M=h-A,B=v+I,L=g-I,R=n.transformState,K=new Date().getTime();u(n,T,k,function(t){var e=n.transformState,o=e.scale,i=e.positionX,a=e.positionY,s=new Date().getTime()-K,l=1-(0,r[S.animationType])(Math.min(1,s/N)),u=1-t,c=i+p*u,m=a+f*u,y=E(c,R.positionX,i,P,w,h,d,M,D,l),C=E(m,R.positionY,a,b,w,g,v,L,B,l);(i!==c||a!==m)&&n.setTransformState(o,y,C)})}}(n):z(n)}}(t),a(j(t),n,e))},this.onPinchStart=function(n){var e=t.setup.disabled,o=t.props,i=o.onPinchingStart,r=o.onZoomStart;!e&&no(t,n)&&(nf(t,n),l(t),a(j(t),n,i),a(j(t),n,r))},this.onPinch=function(n){var e=t.setup.disabled,o=t.props,i=o.onPinching,r=o.onZoom;!e&&ni(t)&&(n.preventDefault(),n.stopPropagation(),nm(t,n),a(j(t),n,i),a(j(t),n,r))},this.onPinchStop=function(n){var e=t.props,o=e.onPinchingStop,i=e.onZoomStop;t.pinchStartScale&&(nd(t),a(j(t),n,o),a(j(t),n,i))},this.onTouchPanningStart=function(n){var e=t.setup.disabled,o=t.props.onPanningStart;if(!e&&w(t,n)&&!(t.lastTouch&&new Date-t.lastTouch<200&&1===n.touches.length)){t.lastTouch=+new Date,l(t);var i=n.touches,r=1===i.length,s=2===i.length;r&&(l(t),X(t,n),a(j(t),n,o)),s&&t.onPinchStart(n)}},this.onTouchPanning=function(n){var e=t.setup.disabled,o=t.props.onPanning;if(t.isPanning&&1===n.touches.length){if(e||!S(t))return;n.preventDefault(),n.stopPropagation();var i=n.touches[0];N(t,i.clientX,i.clientY),a(j(t),n,o)}else n.touches.length>1&&t.onPinch(n)},this.onTouchPanningStop=function(n){t.onPanningStop(n),t.onPinchStop(n)},this.onDoubleClick=function(n){!t.setup.disabled&&ng(t,n)&&function(n,t){var e,o=n.setup,i=n.doubleClickStopEventTimer,r=n.transformState,s=n.contentComponent,l=r.scale,u=n.props,p=u.onZoomStart,f=u.onZoom,m=o.doubleClick,d=m.disabled,h=m.mode,v=m.step,g=m.animationTime,w=m.animationType;if(!d&&!i){if("reset"===h)return nv(n,t);if(!s)return console.error("No ContentComponent found");var S=(e=n.transformState.scale,"toggle"===h?1===e?1:-1:"zoomOut"===h?-1:1),y=R(n,S,v);if(l!==y){a(j(n),t,p);var C=nn(t,s,l),b=k(n,y,C.x,C.y);if(!b)return console.error("Error during zoom event. New transformation state was not calculated.");a(j(n),t,f),c(n,b,g,w),nh(n,t)}}}(t,n)},this.clearPanning=function(n){t.isPanning&&t.onPanningStop(n)},this.setKeyPressed=function(n){t.pressedKeys[n.key]=!0},this.setKeyUnPressed=function(n){t.pressedKeys[n.key]=!1},this.isPressingKeys=function(n){return!n.length||!!n.find(function(n){return t.pressedKeys[n]})},this.setTransformState=function(n,e,o){var i=t.props.onTransformed;if(Number.isNaN(n)||Number.isNaN(e)||Number.isNaN(o))console.error("Detected NaN set state values");else{n!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=n),t.transformState.positionX=e,t.transformState.positionY=o,t.applyTransformation();var r=j(t);
1t.onChangeCallbacks.forEach(function(n){return n(r)}),a(r,{scale:n,positionX:e,positionY:o},i)}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var n=J(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(n.scale,n.positionX,n.positionY)}},this.handleTransformStyles=function(n,e,o){return t.props.customTransform?t.props.customTransform(n,e,o):V(n,e,o)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var n=t.transformState,e=n.scale,o=n.positionX,i=n.positionY,a=t.handleTransformStyles(o,i,e);t.contentComponent.style.transform=a}},this.getContext=function(){return j(t)},this.onChange=function(n){return t.onChangeCallbacks.has(n)||t.onChangeCallbacks.add(n),function(){t.onChangeCallbacks.delete(n)}},this.onInit=function(n){return t.onInitCallbacks.has(n)||t.onInitCallbacks.add(n),function(){t.onInitCallbacks.delete(n)}},this.init=function(n,e){t.cleanupWindowEvents(),t.wrapperComponent=n,t.contentComponent=e,d(t,t.transformState.scale),t.handleInitializeWrapperEvents(n),t.handleInitialize(n,e),t.initializeWindowEvents(),t.isInitialized=!0,a(j(t),void 0,t.props.onInit)},this.props=n,this.setup=L(this.props),this.transformState=B(this.props)},nS=o.createContext(null),ny=o.forwardRef(function(n,t){var e,i,a=(0,o.useRef)(new nw(n)).current,r=(e=n.children,i=H(a),"function"==typeof e?e(i):e);return(0,o.useImperativeHandle)(t,function(){return H(a)},[a]),(0,o.useEffect)(function(){a.update(n)},[a,n]),o.createElement(nS.Provider,{value:a},r)}),nC=o.forwardRef(function(n,t){var e,i=(0,o.useRef)(null),a=(0,o.useContext)(nS);return(0,o.useEffect)(function(){return a.onChange(function(n){i.current&&(i.current.style.transform=a.handleTransformStyles(0,0,1/n.instance.transformState.scale))})},[a]),o.createElement("div",W({},n,{ref:(e=[i,t],function(n){e.forEach(function(t){"function"==typeof t?t(n):null!=t&&(t.current=n)})})}))}),nb={width:0,height:0,y:0,x:0,top:0,bottom:0,left:0,right:0},nP=function(n,t,e){var i=(0,o.useRef)(),a=(0,o.useRef)(nb),r=(0,o.useRef)(!1);(0,o.useLayoutEffect)(function(){var e;if(r.current=!1,"ResizeObserver"in window)return n&&(i.current=new ResizeObserver(function(e){var o=n.getBoundingClientRect();Array.isArray(e)&&e.length&&!r.current&&(o.width!==a.current.width||o.height!==a.current.height)&&(t(o,n),a.current=o)}),null==(e=i.current)||e.observe(n)),function(){var t;r.current=!0,n&&(null==(t=i.current)||t.unobserve(n))}},A([t,n],e,!0))},nx={position:"absolute",zIndex:2,top:"0px",left:"0px",boxSizing:"border-box",border:"3px solid red",transformOrigin:"0% 0%",boxShadow:"rgba(0,0,0,0.2) 0 0 0 10000000px"},nT=function(n){var t=n.width,e=void 0===t?200:t,i=n.height,a=void 0===i?200:i,r=n.borderColor,s=n.children,l=function(n,t){var e={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&0>t.indexOf(o)&&(e[o]=n[o]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(n);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(n,o[i])&&(e[o[i]]=n[o[i]]);return e}(n,["width","height","borderColor","children"]),u=(0,o.useState)(!1),c=u[0],p=u[1],f=nX(),m=(0,o.useRef)(null),d=(0,o.useRef)(null),h=(0,o.useRef)(null),v=(0,o.useRef)(null),g=(0,o.useCallback)(function(){if(f.wrapperComponent){var n=f.wrapperComponent.getBoundingClientRect();return{width:n.width,height:n.height}}return{width:0,height:0}},[f.wrapperComponent]),w=(0,o.useCallback)(function(){if(f.contentComponent){var n=f.contentComponent.getBoundingClientRect();return{width:n.width/f.transformState.scale,height:n.height/f.transformState.scale}}return{width:0,height:0}},[f.contentComponent,f.transformState.scale]),S=(0,o.useCallback)(function(){var n=w(),t=e/n.width,o=a/n.height;return o>t?t:o},[w,a,e]),y=function(){var n=w(),t=e/n.width,o=a/n.height;return o>t?{width:e,height:n.height*t}:{width:n.width*o,height:a}},C=function(){var n=S(),t={transform:"scale(".concat(n||1,")"),transformOrigin:"0% 0%",position:"absolute",boxSizing:"border-box",zIndex:1,overflow:"hidden"};Object.keys(t).forEach(function(n){h.current&&(h.current.style[n]=t[n])})},b=function(){C();var n=y(),t=w();if(h.current&&(h.current.style.width="".concat(t.width,"px"),h.current.style.height="".concat(t.height,"px")),d.current&&(d.current.style.width="".concat(n.width,"px"),d.current.style.height="".concat(n.height,"px")),v.current){var e=g(),o=S()*(1/f.transformState.scale),i=f.handleTransformStyles(-f.transformState.positionX*o,-f.transformState.positionY*o,1);v.current.style.transform=i,v.current.style.width="".concat(e.width*o,"px"),v.current.style.height="".concat(e.height*o,"px")}},P=function(){b()};nk(function(){b()}),nN(function(){P(),p(!0)}),nP(f.contentComponent,P,[c]),(0,o.useEffect)(function(){return f.onCh
1ange(function(n){var t=S();m.current&&(m.current.instance.transformState.scale=n.instance.transformState.scale,m.current.instance.transformState.positionX=n.instance.transformState.positionX*t,m.current.instance.transformState.positionY=n.instance.transformState.positionY*t)})},[S,f,m]);var x=(0,o.useMemo)(function(){return{position:"relative",zIndex:2,overflow:"hidden"}},[]);return o.createElement("div",W({},l,{ref:d,style:x,className:"rzpp-mini-map ".concat(l.className||"")}),o.createElement("div",W({},l,{ref:h,className:"rzpp-wrapper"}),s),o.createElement("div",{className:"rzpp-preview",ref:v,style:W(W({},nx),{borderColor:void 0===r?"red":r})}))},nY={wrapper:"transform-component-module_wrapper__SPB86",content:"transform-component-module_content__FBWxo"};!function(n,t){void 0===t&&(t={});var e=t.insertAt;if(n&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===e&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.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 -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");var nE=function(n){var t=n.children,e=n.wrapperClass,i=n.contentClass,a=n.wrapperStyle,r=n.contentStyle,s=n.wrapperProps,l=n.contentProps,u=(0,o.useContext)(nS),c=u.init,p=u.cleanupWindowEvents,f=(0,o.useRef)(null),m=(0,o.useRef)(null);return(0,o.useEffect)(function(){var n=f.current,t=m.current;return null!==n&&null!==t&&c&&(null==c||c(n,t)),function(){null==p||p()}},[]),o.createElement("div",W({},void 0===s?{}:s,{ref:f,className:"".concat(M.wrapperClass," ").concat(nY.wrapper," ").concat(void 0===e?"":e),style:a}),o.createElement("div",W({},void 0===l?{}:l,{ref:m,className:"".concat(M.contentClass," ").concat(nY.content," ").concat(void 0===i?"":i),style:r}),t))},nX=function(){var n=(0,o.useContext)(nS);if(!n)throw Error("Transform context must be placed inside TransformWrapper");return n},nz=function(){return H(nX())},nN=function(n){var t=nX();(0,o.useEffect)(function(){var e,o;return t.contentComponent&&t.wrapperComponent?e=n(Z(t)):o=t.onInit(function(t){e=n(Z(t.instance))}),function(){null==o||o(),null==e||e()}},[])},nk=function(n){var t=nX();(0,o.useEffect)(function(){var e,o=t.onChange(function(t){e=n(Z(t.instance))});return function(){o(),null==e||e()}},[n,t])};function nO(n){var t=nX(),e=(0,o.useState)(n(Z(t))),i=e[0],a=e[1];return(0,o.useEffect)(function(){var e=!0,o=t.onChange(function(t){e&&a(n(Z(t.instance)))});return function(){o(),e=!1}},[n,t]),i}}}]);
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.