1"use strict";(self.webpackChunkdantri_2022=self.webpackChunkdantri_2022||[]).push([[561],{64554:function(n,t,e){var i=e(67294);function o(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var a=o(i),r=function(n,t){return Number(n.toFixed(t))},s=function(n,t,e){e&&"function"==typeof e&&e(n,t)},l={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:(4-2*n)*n-1},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}},u=function(n){"number"==typeof n&&cancelAnimationFrame(n)},c=function(n){n.mounted&&(u(n.animation),n.animate=!1,n.animation=null,n.velocity=null)};function p(n,t,e,i){if(n.mounted){var o=(new Date).getTime();c(n),n.animation=function(){if(!n.mounted)return u(n.animation);var a=(new Date).getTime()-o,r=a/e,s=(0,l[t])(r);a>=e?(i(1),n.animation=null):n.animation&&(i(s),requestAnimationFrame(n.animation))},requestAnimationFrame(n.animation)}}function f(n,t,e,i){var o=function(n){var t=n.scale,e=n.positionX,i=n.positionY;return!(Number.isNaN(t)||Number.isNaN(e)||Number.isNaN(i))}(t);if(n.mounted&&o){var a=n.setTransformState,r=n.transformState,s=r.scale,l=r.positionX,u=r.positionY,c=t.scale-s,f=t.positionX-l,d=t.positionY-u;0===e?a(t.scale,t.positionX,t.positionY):p(n,i,e,(function(n){a(s+c*n,l+f*n,u+d*n)}))}}var d=function(n,t){var e=n.wrapperComponent,i=n.contentComponent,o=n.setup.centerZoomedOut;if(!e||!i)throw new Error("Components are not mounted");var a=function(n,t,e){var i=n.offsetWidth,o=n.offsetHeight,a=t.offsetWidth*e,r=t.offsetHeight*e;
1return{wrapperWidth:i,wrapperHeight:o,newContentWidth:a,newDiffWidth:i-a,newContentHeight:r,newDiffHeight:o-r}}(e,i,t),r=a.wrapperWidth,s=a.wrapperHeight,l=function(n,t,e,i,o,a,r){var s=n>t?e*(r?1:.5):0,l=i>o?a*(r?1:.5):0;return{minPositionX:n-t-s,maxPositionX:s,minPositionY:i-o-l,maxPositionY:l}}(r,a.newContentWidth,a.newDiffWidth,s,a.newContentHeight,a.newDiffHeight,Boolean(o));return l},m=function(n,t,e,i){return r(i?n<t?t:n>e?e:n:n,2)},v=function(n,t){var e=d(n,t);return n.bounds=e,e};function h(n,t,e,i,o,a,r){var s=e.minPositionX,l=e.minPositionY,u=e.maxPositionX,c=e.maxPositionY,p=0,f=0;return r&&(p=o,f=a),{x:m(n,s-p,u+p,i),y:m(t,l-f,c+f,i)}}function g(n,t,e,i,o,a){var r=n.transformState,s=r.scale,l=r.positionX,u=r.positionY,c=i-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,o,a,0,0,null)}function S(n,t,e,i,o){var a=t-(o?i: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,i=n.isInitialized,o=n.wrapperComponent,a=t.target,r="shadowRoot"in a&&"composedPath"in t?t.composedPath().some((function(n){return n instanceof Element&&(null==o?void 0:o.contains(n))})):null==o?void 0:o.contains(a);return!!(i&&a&&r)&&!q(a,e)},y=function(n){var t=n.isInitialized,e=n.isPanning,i=n.setup.panning.disabled;return!(!t||!e||i)};function b(n,t,e,i,o){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,i,o,r),d=f.x,m=f.y;n.setTransformState(u,d,m)}}var C=function(n,t){var e=n.setup,i=n.transformState.scale,o=e.minScale,a=e.disablePadding;return t>0&&i>=o&&!a?t:0},P=function(n){var t=n.mounted,e=n.setup,i=e.disabled,o=e.velocityAnimation,a=n.transformState.scale;return!(o.disabled&&!(a>
11)&&i&&!t)};function T(n,t,e,i,o,a,r,s,l,u){if(o){var c;if(t>r&&e>r)return(c=r+(n-r)*u)>l?l:c<r?r:c;if(t<a&&e<a)return(c=a+(n-a)*u)<s?s:c>a?a:c}return i?t:m(n,a,r,o)}function x(n,t){var e=n.transformState.scale;c(n),v(n,e),void 0!==window.TouchEvent&&t instanceof TouchEvent?function(n,t){var e=t.touches,i=n.transformState,o=i.positionX,a=i.positionY;if(n.isPanning=!0,1===e.length){var r=e[0].clientX,s=e[0].clientY;n.startCoords={x:r-o,y:s-a}}}(n,t):function(n,t){var e=n.transformState,i=e.positionX,o=e.positionY;n.isPanning=!0;var a=t.clientX,r=t.clientY;n.startCoords={x:a-i,y:r-o}}(n,t)}function Y(n){var t=n.transformState.scale,e=n.setup,i=e.minScale,o=e.alignmentAnimation,a=o.disabled,r=o.sizeX,s=o.sizeY,l=o.animationTime,u=o.animationType;if(!(a||t<i||!r&&!s)){var c=function(n){var t=n.transformState,e=t.positionX,i=t.positionY,o=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,d=c.maxPositionY,m=c.minPositionY,v=e>p||e<f,h=i>d||i<m,S=g(n,e>p?u.offsetWidth:n.setup.minPositionX||0,i>d?u.offsetHeight:n.setup.minPositionY||0,o,n.bounds,s||l),w=S.x,y=S.y;return{scale:o,positionX:v?w:e,positionY:h?y:i}}}(n);c&&f(n,c,l,u)}}function E(n,t,e){var i=n.startCoords,o=n.setup.alignmentAnimation,a=o.sizeX,r=o.sizeY;if(i){var s=function(n,t,e){var i=n.startCoords,o=n.transformState,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=t-i.x,p=e-i.y;return{x:r?l:c,y:s?u:p}}(n,t,e),l=s.x,u=s.y,c=C(n,a),p=C(n,r);(function(n,t){if(P(n)){var e=n.lastMousePosition,i=n.velocityTime,o=n.setup,a=n.wrapperComponent,r=o.velocityAnimation.equalToMove,s=Date.now();if(e&&i&&a){var l=function(n,t){return t?Math.min(1,n.offsetWidth/window.innerWidth):1}(a,r),u=t.x-e.x,c=t.y-e.y,p=u/l,f=c/l,d=s-i,m=u*u+c*c,v=Math.sqrt(m)/d;n.velocity={velocityX:p,velocityY:f,total:v}}n.lastMousePosition=t,n.velocityTime=s}})(n,{x:l,y:u}),b(n,l,u,c,p)}}function X(n,t,e,i){var o=n.setup,a=o.minScale,s=o.maxScale,l=o.limitToBounds,u=S(r(t,2),a,s,0,!1),c=g(n,e,i,u,v(n,u),l);return{scale:u,positionX:c.x,positionY:c.y}}function k(n,t,e){var i=n.transformState.scale,o=n.wrapperComponent,a=n.setup,r=a.minScale,s=a.limitToBounds,l=a.zoomAnimation,u=l.disabled,c=l.animationTime,p=l.animationType,d=u||i>=r;if((i>=1||s)&&Y(n),!d&&o&&n.mounted){var m=X(n,r,t||o.offsetWidth/2,e||o.offsetHeight/2);m&&f(n,m,c,p)}}var N=function(){return N=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},N.apply(this,arguments)};function z(n,t,e){if(e||2===arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return n.concat(i||Array.prototype.slice.call(t))}var W={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}},D=function(n){var t,e,i,o;return{previousScale:null!==(t=n.initialScale)&&void 0!==t?t:1,scale:null!==(e=n.initialScale)&&void 0!==e?e:1,positionX:null!==(i=n.initialPositionX)&&void 0!==i?i:0,positionY:null!==(o=n.initialPositionY)&&void 0!==o?o:0}},A=function(n){var t=N({},W);return Object.keys(n).forEach((function(e){var i=void 0!==n[e];if(void 0!==W[e]&&i){var o=Object.prototype.toString.call(W[e]),a="[object Object]"===o,r="[object Array]"===o;t[e]=a?N(N({},W[e]),n[e]):r?z(z([],W[e],!0),n[e],!0):n[e]}})),t},O=function(n,t,e){var i=n.transformState.scale,o=n.wrapperComponent,a=n.setup,s=a.maxScale,l=a.minScale,u=a.zoomAnimation,c=a.smooth,p=u.size;if(!o)throw new Error("Wrapper is not mounted");var f=c?i*Math.exp(t*e):i+t*e;
1return S(r(f,3),l,s,p,!1)};function I(n,t,e,i,o){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 c=(a.offsetWidth/2-l)/s,p=(a.offsetHeight/2-u)/s,d=X(n,O(n,t,e),c,p);if(!d)return console.error("Error during zoom event. New transformation state was not calculated.");f(n,d,i,o)}function B(n,t,e,i){var o=n.setup,a=n.wrapperComponent,r=o.limitToBounds,s=D(n.props),l=n.transformState,u=l.scale,c=l.positionX,p=l.positionY;if(a){var m=d(n,s.scale),v=h(s.positionX,s.positionY,m,r,0,0,a),g={scale:s.scale,positionX:v.x,positionY:v.y};u===s.scale&&c===s.positionX&&p===s.positionY||(null==i||i(),f(n,g,t,e))}}var M=function(n){return function(t,e,i){void 0===t&&(t=.5),void 0===e&&(e=300),void 0===i&&(i="easeOut"),I(n,1,t,e,i)}},K=function(n){return function(t,e,i){void 0===t&&(t=.5),void 0===e&&(e=300),void 0===i&&(i="easeOut"),I(n,-1,t,e,i)}},L=function(n){return function(t,e,i,o,a){void 0===o&&(o=300),void 0===a&&(a="easeOut");var r=n.transformState,s=r.positionX,l=r.positionY,u=r.scale,c=n.wrapperComponent,p=n.contentComponent;if(!n.setup.disabled&&c&&p){var d={positionX:Number.isNaN(t)?s:t,positionY:Number.isNaN(e)?l:e,scale:Number.isNaN(i)?u:i};f(n,d,o,a)}}},R=function(n){return function(t,e){void 0===t&&(t=200),void 0===e&&(e="easeOut"),B(n,t,e)}},H=function(n){return function(t,e,i){void 0===e&&(e=200),void 0===i&&(i="easeOut");var o=n.transformState,a=n.wrapperComponent,r=n.contentComponent;if(a&&r){var s=V(t||o.scale,a,r);f(n,s,e,i)}}},Z=function(n){return function(t,e,i,o){void 0===i&&(i=600),void 0===o&&(o="easeOut"),c(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 i=n.wrapperComponent,o=n.contentComponent,a=n.transformState,r=n.setup,s=r.limitToBounds,l=r.minScale,u=r.maxScale;if(!i||!o)return a;var c,p,f,m,v,g,w,y,b=i.getBoundingClientRect(),C=t.getBoundingClientRect(),P=(c=i,p=o,f=a,m=t.getBoundingClientRect(),v=c.getBoundingClientRect(),g=p.getBoundingClientRect(),w=v.x*f.scale,y=v.y*f.scale,{x:(m.x-g.x+w)/f.scale,y:(m.y-g.y+y)/f.scale}),T=P.x,x=P.y,Y=C.width/a.scale,E=C.height/a.scale,X=i.offsetWidth/Y,k=i.offsetHeight/E,N=S(e||Math.min(X,k),l,u,0,!1),z=(b.width-Y*N)/2,W=(b.height-E*N)/2,D=h((b.left-T)*N+z,(b.top-x)*N+W,d(n,N),s,0,0,i);return{positionX:D.x,positionY:D.y,scale:N}}(n,r,e);f(n,s,i,o)}}},_=function(n){return{instance:n,zoomIn:M(n),zoomOut:K(n),setTransform:L(n),resetTransform:R(n),centerView:H(n),zoomToElement:Z(n)}},j=function(n){return{instance:n,state:n.transformState}},F=function(n){var t={};return Object.assign(t,j(n)),Object.assign(t,_(n)),t};function Q(){try{return{get passive(){return!1}}}catch(n){return!1}}var q=function(n,t){return t.some((function(t){return n.matches("".concat(t,", .").concat(t,", ").concat(t," *, .").concat(t," *"))}))},U=function(n){n&&clearTimeout(n)},V=function(n,t,e){var i=e.offsetWidth*n,o=e.offsetHeight*n;return{scale:n,positionX:(t.offsetWidth-i)/2,positionY:(t.offsetHeight-o)/2}};function $(n,t,e){var i=t.getBoundingClientRect(),o=0,a=0;if("clientX"in n)o=(n.clientX-i.left)/e,a=(n.clientY-i.top)/e;else{var r=n.touches[0];o=(r.clientX-i.left)/e,a=(r.clientY-i.top)/e}return(Number.isNaN(o)||Number.isNaN(a))&&console.error("No mouse or touch offset found"),{x:o,y:a}}var G=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))},J=function(n,t){var e=n.props.onZoomStop,i=n.setup.doubleClick.animationTime;U(n.doubleClickStopEventTimer),n.doubleClickStopEventTimer=setTimeout((function(){n.doubleClickStopEventTimer=null,s(F(n),t,e)}),i)};var nn=function(n){var t=this;this.mounted=!0,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,v(t,t.transformState.scale),t.setup=A(n)},this.initializeWindowEvents=function(){var n,e,i=Q(),o=null===(n=t.wrapperComponent)||void 0===n?void 0:n.ownerDocument,a=null==o?void 0:o.defaultView;null===(e=t.wrapperComponent)||void 0===e||e.addEventListener("wheel",t.onWheelPanning,i),null==a||a.addEventListener("mousedown",t.onPanningStart,i),null==a||a.addEventListener("mousemove",t.onPanning,i),null==a||a.addEventListener("mouseup",t.onPanningStop,i),null==o||o.addEventListener("mouseleave",t.clearPanning,i),null==a||a.addEventListener("keyup",t.setKeyUnPressed,i),null==a||a.addEventListener("keydown",t.setKeyPressed,i)},this.cleanupWindowEvents=function(){var n,e,i=Q(),o=null===(n=t.wrapperComponent)||void 0===n?void 0:n.ownerDocument,a=null==o?void 0:o.defaultView;null==a||a.removeEventListener("mousedown",t.onPanningStart,i),null==a||a.removeEventListener("mousemove",t.onPanning,i),null==a||a.removeEventListener("mouseup",t.onPanningStop,i),null==o||o.removeEventListener("mouseleave",t.clearPanning,i),null==a||a.removeEventListener("keyup",t.setKeyUnPressed,i),null==a||a.removeEventListener("keydown",t.setKeyPressed,i),document.removeEventListener("mouseleave",t.clearPanning,i),c(t),null===(e=t.observer)||void 0===e||e.disconnect()},this.handleInitializeWrapperEvents=function(n){var e=Q();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){var e=t.setup.centerOnInit;t.applyTransformation(),t.onInitCallbacks.forEach((function(n){return n(F(t))})),e&&(t.setCenter(),t.observer=new ResizeObserver((function(){var e,i=n.offsetWidth,o=n.offsetHeight;(i>0||o>0)&&(t.onInitCallbacks.forEach((function(n){return n(F(t))})),t.setCenter(),null===(e=t.observer)||void 0===e||e.disconnect())}
1)),setTimeout((function(){var n;null===(n=t.observer)||void 0===n||n.disconnect()}),5e3),t.observer.observe(n))},this.onWheelZoom=function(n){if(!t.setup.disabled){var e=function(n,t){var e=n.setup.wheel,i=e.disabled,o=e.wheelDisabled,a=e.touchPadDisabled,r=e.excluded,s=n.isInitialized,l=n.isPanning,u=t.target;return!(!s||l||i||!u||o&&!t.ctrlKey||a&&t.ctrlKey||q(u,r))}(t,n);e&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(function(n,t){var e=n.props,i=e.onWheelStart,o=e.onZoomStart;n.wheelStopEventTimer||(c(n),s(F(n),t,i),s(F(n),t,o))}(t,n),function(n,t){var e=n.props,i=e.onWheel,o=e.onZoom,a=n.contentComponent,l=n.setup,u=n.transformState.scale,c=l.limitToBounds,p=l.centerZoomedOut,f=l.zoomAnimation,d=l.wheel,m=l.disablePadding,h=l.smooth,w=f.size,y=f.disabled,b=d.step,C=d.smoothStep;if(!a)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var P=function(n,t){var e=function(n){return n?n.deltaY<0?1:-1:0}(n);return e}(t),T=function(n,t,e,i,o){var a=n.transformState.scale,s=n.wrapperComponent,l=n.setup,u=l.maxScale,c=l.minScale,p=l.zoomAnimation,f=l.disablePadding,d=p.size,m=p.disabled;if(!s)throw new Error("Wrapper is not mounted");var v=!i&&!m;return S(r(a+t*e,3),c,u,d,v&&!f)}(n,P,h?C*Math.abs(t.deltaY):b,!t.ctrlKey);if(u!==T){var x=v(n,T),Y=$(t,a,u),E=c&&(y||0===w||p||m),X=g(n,Y.x,Y.y,T,x,E),k=X.x,N=X.y;n.previousWheelEvent=t,n.setTransformState(T,k,N),s(F(n),t,i),s(F(n),t,o)}}(t,n),function(n,t){var e=n.props,i=e.onWheelStop,o=e.onZoomStop;U(n.wheelAnimationTimer),n.wheelAnimationTimer=setTimeout((function(){n.mounted&&(k(n,t.x,t.y),n.wheelAnimationTimer=null)}),100);var a=function(n,t){var e=n.previousWheelEvent,i=n.transformState.scale,o=n.setup,a=o.maxScale,r=o.minScale;return!!e&&(i<a||i>r||Math.sign(e.deltaY)!==Math.sign(t.deltaY)||e.deltaY>0&&e.deltaY<t.deltaY||e.deltaY<0&&e.deltaY>t.deltaY||Math.sign(e.deltaY)!==Math.sign(t.deltaY))}(n,t);a&&(U(n.wheelStopEventTimer),n.wheelStopEventTimer=setTimeout((function(){n.mounted&&(n.wheelStopEventTimer=null,s(F(n),t,i),s(F(n),t,o))}),160))}(t,n))}},this.onWheelPanning=function(n){var e=t.setup,i=e.disabled,o=e.wheel,a=e.panning;if(t.wrapperComponent&&t.contentComponent&&!i&&o.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,d=t.setup.alignmentAnimation,m=d.sizeX,v=d.sizeY,h=C(t,m),g=C(t,v);p===s&&f===l||b(t,p,f,h,g)}},this.onPanningStart=function(n){var e=t.setup.disabled,i=t.props.onPanningStart;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(),c(t),x(t,n),s(F(t),n,i))},this.onPanning=function(n){var e=t.setup.disabled,i=t.props.onPanning;e||y(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(n.preventDefault(),n.stopPropagation(),E(t,n.clientX,n.clientY),s(F(t),n,i))},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,i=n.wrapperComponent,o=n.contentComponent;n.isPanning=!1,n.animate=!1,n.animation=null;var a=null==i?void 0:i.getBoundingClientRect(),r=null==o?void 0:o.getBoundingClientRect(),s=(null==a?void 0:a.width)||0,u=(null==a?void 0:a.height)||0,c=(null==r?void 0:r.width)||0,f=(null==r?void 0:r.height)||0,d=s<c||u<f;!t&&e&&(null==e?void 0:e.total)>.1&&d?function(n){var t=n.velocity,e=n.bounds,i=n.setup,o=n.wrapperComponent;if(function(n){var t=n.mounted,e=n.velocity,i=n.bounds,o=n.setup,a=o.disabled,r=o.velocityAnimation,s=n.transformState.scale;return!(r.disabled&&!(s>1)&&a&&!t||!e||!i)}(n)&&t&&e&&o){var a=t.velocityX,r=t.velocityY,s=t.total,u=e.maxPositionX,c=e.minPositionX,f=e.maxPositionY,d=e.minPositionY,m=i.limitToBounds,v=i.alignmentAnimation,h=i.zoomAnimation,g=i.panning,S=g.lockAxisY,w=g.lockAxisX,y=h.animationType,b=v.sizeX,P=v.sizeY,x=v.velocityAlignmentTime,Y=function(n,t){var e=n.setup.velocityAnimation,i=e.equalToMove,o=e.animationTime,a=e.sensitivity;return i?o*t*a:o}(n,s),E=Math.max(Y,x),X=C(n,b),k=C(n,P),N=X*o.offsetWidth/100,z=k*o.offsetHeight/100,W=u+N,D=c-N,A=f+z,O=d-z,I=n.transformState,B=(new Date).getTime();p(n,y,E,(function(t){var e=n.transformState,i=e.scale,o=e.positionX,s=e.positionY,p=((new Date).getTime()-B)/x,h=1-(0,l[v.animationType])(Math.min(1,p)),g=1-t,y=o+a*g,b=s+r*g,C=T(y,I.positionX,o,w,m,c,u,D,W,h),P=T(b,I.positionY,s,S,m,d,f,O,A,h);o===y&&s===b||n.setTransformState(i,C,P)}))}}(n):Y(n)}}(t),s(F(t),n,e))},this.onPinchStart=function(n){var e=t.setup.disabled,i=t.props,o=i.onPinchingStart,a=i.onZoomStart;if(!e){var r=function(n,t){var e=n.setup.pinch,i=e.disabled,o=e.excluded,a=n.isInitialized,r=t.target;return!(!a||i||!r||q(r,o))}(t,n);
1r&&(function(n,t){var e=G(t);n.pinchStartDistance=e,n.lastDistance=e,n.pinchStartScale=n.transformState.scale,n.isPanning=!1,c(n)}(t,n),c(t),s(F(t),n,o),s(F(t),n,a))}},this.onPinch=function(n){var e=t.setup.disabled,i=t.props,o=i.onPinching,a=i.onZoom;if(!e){var l=function(n){var t=n.setup.pinch.disabled,e=n.isInitialized,i=n.pinchStartDistance;return!(!e||t||!i)}(t);l&&(n.preventDefault(),n.stopPropagation(),function(n,t){var e=n.contentComponent,i=n.pinchStartDistance,o=n.transformState.scale,a=n.setup,s=a.limitToBounds,l=a.centerZoomedOut,u=a.zoomAnimation,c=u.disabled,p=u.size;if(null!==i&&e){var f=function(n,t,e){var i=e.getBoundingClientRect(),o=n.touches,a=r(o[0].clientX-i.left,5),s=r(o[0].clientY-i.top,5);return{x:(a+r(o[1].clientX-i.left,5))/2/t,y:(s+r(o[1].clientY-i.top,5))/2/t}}(t,o,e);if(Number.isFinite(f.x)&&Number.isFinite(f.y)){var d=G(t),m=function(n,t){var e=n.pinchStartScale,i=n.pinchStartDistance,o=n.setup,a=o.maxScale,s=o.minScale,l=o.zoomAnimation,u=o.disablePadding,c=l.size,p=l.disabled;if(!e||null===i||!t)throw new Error("Pinch touches distance was not provided");return t<0?n.transformState.scale:S(r(t/i*e,2),s,a,c,!p&&!u)}(n,d);if(m!==o){var h=v(n,m),w=s&&(c||0===p||l),y=g(n,f.x,f.y,m,h,w),b=y.x,C=y.y;n.pinchMidpoint=f,n.lastDistance=d,n.setTransformState(m,b,C)}}}}(t,n),s(F(t),n,o),s(F(t),n,a))}},this.onPinchStop=function(n){var e,i,o=t.props,a=o.onPinchingStop,r=o.onZoomStop;t.pinchStartScale&&(i=(e=t).pinchMidpoint,e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,k(e,null==i?void 0:i.x,null==i?void 0:i.y),s(F(t),n,a),s(F(t),n,r))},this.onTouchPanningStart=function(n){var e=t.setup.disabled,i=t.props.onPanningStart;if(!e&&w(t,n))if(t.lastTouch&&+new Date-t.lastTouch<200&&1===n.touches.length)t.onDoubleClick(n);else{t.lastTouch=+new Date,c(t);var o=n.touches,a=1===o.length,r=2===o.length;a&&(c(t),x(t,n),s(F(t),n,i)),r&&t.onPinchStart(n)}},this.onTouchPanning=function(n){var e=t.setup.disabled,i=t.props.onPanning;if(t.isPanning&&1===n.touches.length){if(e)return;if(!y(t))return;n.preventDefault(),n.stopPropagation();var o=n.touches[0];E(t,o.clientX,o.clientY),s(F(t),n,i)}else n.touches.length>1&&t.onPinch(n)},this.onTouchPanningStop=function(n){t.onPanningStop(n),t.onPinchStop(n)},this.onDoubleClick=function(n){if(!t.setup.disabled){var e=function(n,t){var e=n.isInitialized,i=n.setup,o=n.wrapperComponent,a=i.doubleClick,r=a.disabled,s=a.excluded,l=t.target,u=null==o?void 0:o.contains(l);return!(!(e&&l&&u)||r||q(l,s))}(t,n);e&&function(n,t){var e=n.setup,i=n.doubleClickStopEventTimer,o=n.transformState,a=n.contentComponent,r=o.scale,l=n.props,u=l.onZoomStart,c=l.onZoom,p=e.doubleClick,d=p.disabled,m=p.mode,v=p.step,h=p.animationTime,g=p.animationType;if(!d&&!i){if("reset"===m)return function(n,t){var e=n.props,i=e.onZoomStart,o=e.onZoom,a=n.setup.doubleClick,r=a.animationTime,l=a.animationType;s(F(n),t,i),B(n,r,l,(function(){return s(F(n),t,o)})),J(n,t)}(n,t);if(!a)return console.error("No ContentComponent found");var S=function(n,t){return"toggle"===n?1===t?1:-1:"zoomOut"===n?-1:1}(m,n.transformState.scale),w=O(n,S,v);if(r!==w){s(F(n),t,u);var y=$(t,a,r),b=X(n,w,y.x,y.y);if(!b)return console.error("Error during zoom event. New transformation state was not calculated.");s(F(n),t,c),f(n,b,h,g),J(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||Boolean(n.find((function(n){return t.pressedKeys[n]})))},this.setTransformState=function(n,e,i){var o=t.props.onTransformed;if(Number.isNaN(n)||Number.isNaN(e)||Number.isNaN(i))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=i,t.applyTransformation();var a=F(t);t.onChangeCallbacks.forEach((function(n){return n(a)})),s(a,{scale:n,positionX:e,positionY:i},o)}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var n=V(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(n.scale,n.positionX,n.positionY)}},this.handleTransformStyles=function(n,e,i){return t.props.customTransform?t.props.customTransform(n,e,i):function(n,t,e){return"translate(".concat(n,"px, ").concat(t,"px) scale(").concat(e,")")}(n,e,i)},this.applyTransformation=function(){if(t.mounted&&t.contentComponent){var n=t.transformState,e=n.scale,i=n.positionX,o=n.positionY,a=t.handleTransformStyles(i,o,e);t.contentComponent.style.transform=a}},this.getContext=function(){return F(t)},this.onChange=function(n){return t.onChangeCallbacks.has(n)||t.onChangeCallbacks.add(n),function(){t.onCh
1angeCallbacks.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,v(t,t.transformState.scale),t.handleInitializeWrapperEvents(n),t.handleInitialize(e),t.initializeWindowEvents(),t.isInitialized=!0;var i=F(t);s(i,void 0,t.props.onInit)},this.props=n,this.setup=A(this.props),this.transformState=D(this.props)},tn=a.default.createContext(null),en=a.default.forwardRef((function(n,t){var e,o,r=i.useRef(new nn(n)).current,s=(e=n.children,o=_(r),"function"==typeof e?e(o):e);return i.useImperativeHandle(t,(function(){return _(r)}),[r]),i.useEffect((function(){r.update(n)}),[r,n]),a.default.createElement(tn.Provider,{value:r},s)}));a.default.forwardRef((function(n,t){var e,o=i.useRef(null),r=i.useContext(tn);return i.useEffect((function(){return r.onChange((function(n){o.current&&(o.current.style.transform=r.handleTransformStyles(0,0,1/n.instance.transformState.scale))}))}),[r]),a.default.createElement("div",N({},n,{ref:(e=[o,t],function(n){e.forEach((function(t){"function"==typeof t?t(n):null!=t&&(t.current=n)}))})}))}));!function(n,t){void 0===t&&(t={});var e=t.insertAt;if(n&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===e&&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 -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}\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");t.Uv=function(n){var t=n.children,e=n.wrapperClass,o=void 0===e?"":e,r=n.contentClass,s=void 0===r?"":r,l=n.wrapperStyle,u=n.contentStyle,c=n.wrapperProps,p=void 0===c?{}:c,f=n.contentProps,d=void 0===f?{}:f,m=i.useContext(tn),v=m.init,h=m.cleanupWindowEvents,g=i.useRef(null),S=i.useRef(null);return i.useEffect((function(){var n=g.current,t=S.current;return null!==n&&null!==t&&v&&(null==v||v(n,t)),function(){null==h||h()}}),[]),a.default.createElement("div",N({},p,{ref:g,className:"react-transform-wrapper ".concat("transform-component-module_wrapper__SPB86"," ").concat(o),style:l}),a.default.createElement("div",N({},d,{ref:S,className:"react-transform-component ".concat("transform-component-module_content__FBWxo"," ").concat(s),style:u}),t))},t.d$=en},22045:function(n,t,e){e.d(t,{i:function(){return o}});var i=e(67294);function o(n,t=300,e={}){const o=(0,i.useRef)(null),a=(0,i.useCallback)((i=>{o.current?(clearTimeout(o.current),o.current=null,n&&n(i)):o.current=setTimeout((()=>{e.onSingleTap&&e.onSingleTap(i),o.current=null}),t)}),[n,t,e.onSingleTap]);return n?{onClick:a}:{}}}}]);
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.