PageSourceSearch

https://utilisateur.parti-renaissance.fr/built/638.28c7d079d08f5da1dff0.js

js parti-renaissance.fr collected 2026-09-25 02:35:22 UTC 28,313 bytes, 1 lines download raw bytes

vendor: 2,026 bytes, line 1
1"use strict";(self.webpackChunkparti_renaissance=self.webpackChunkparti_renaissance||[]).push([[638],{4638:function(n,t,e){e.d(t,{GT:function(){return tn},WZ:function(){return en}});var i=e(2990),o=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:(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}},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,i){if(n.mounted){var o=(new Date).getTime();l(n),n.animation=function(){if(!n.mounted)return s(n.animation);var a=(new Date).getTime()-o,l=(0,r[t])(a/e);a>=e?(i(1),n.animation=null):n.animation&&(i(l),requestAnimationFrame(n.animation))},requestAnimationFrame(n.animation)}}function c(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,c=r.positionY,p=t.scale-s,f=t.positionX-l,m=t.positionY-c;0===e?a(t.scale,t.positionX,t.positionY):u(n,i,e,function(n){a(s+p*n,l+f*n,c+m*n)})}}var p=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;
vendor: 3,459 bytes, line 1
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},f=function(n,t,e,i){return o(i?n<t?t:n>e?e:n:n,2)},m=function(n,t){var e=p(n,t);return n.bounds=e,e};function d(n,t,e,i,o,a,r){var s=e.minPositionX,l=e.minPositionY,u=e.maxPositionX,c=e.maxPositionY,p=0,m=0;return r&&(p=o,m=a),{x:f(n,s-p,u+p,i),y:f(t,l-m,c+m,i)}}function v(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}):d(l-t*c,u-e*c,o,a,0,0,null)}function h(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 g=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)&&!j(a,e)},S=function(n){var t=n.isInitialized,e=n.isPanning,i=n.setup.panning.disabled;return!(!t||!e||i)};function w(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=d(t,e,s,a,i,o,r),m=f.x,v=f.y;n.setTransformState(u,m,v)}}var y=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};function b(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:f(n,a,r,o)}function C(n,t){var e=n.transformState.scale;l(n),m(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 P(n,t){var e=n.transformState.scale,i=n.setup,o=i.minScale,a=i.alignmentAnimation,r=a.disabled,s=a.sizeX,l=a.sizeY,u=a.animationTime,p=a.animationType;if(!(r||e<o||!s&&!l)){var f=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,m=c.maxPositionY,d=c.minPositionY,h=e>p||e<f,g=i>m||i<d,S=v(n,e>p?u.offsetWidth:n.setup.minPositionX||0,i>m?u.offsetHeight:n.setup.minPositionY||0,o,n.bounds,s||l),w=S.x,y=S.y;return{scale:o,positionX:h?w:e,positionY:g?y:i}}}(n);f&&c(n,f,null!=t?t:u,p)}}function T(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=y(n,a),p=y(n,r);(function(n,t){var e=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)}(n);if(e){var i=n.lastMousePosition,o=n.velocityTime,a=n.setup,r=n.wrapperComponent,s=a.velocityAnimation.equalToMove,l=Date.now();if(i&&o&&r){var u=function(n,t){return t?Math.min(1,n.offsetWidth/window.innerWidth):1}(r,s),c=t.x-i.x,p=t.y-i.y,f=c/u,m=p/u,d=l-o,v=c*c+p*p,h=Math.sqrt(v)/d;n.velocity={velocityX:f,velocityY:m,total:h}}n.lastMousePosition=t,n.velocityTime=l}})(n,{x:l,y:u}),w(n,l,u,c,p)}}function x(n,t,e,i){var a=n.setup,r=a.minScale,s=a.maxScale,l=a.limitToBounds,u=h(o(t,2),r,s,0,!1),c=v(n,e,i,u,m(n,u),l);return{scale:u,positionX:c.x,positionY:c.y}}function Y(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,p=l.animationTime,f=l.animationType,m=u||i>=r;if((i>=1||s)&&P(n),!m&&o&&n.mounted){var d=x(n,r,t||o.offsetWidth/2,e||o.offsetHeight/2);d&&c(n,d,p,f)}}var X=function(){return X=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},X.apply(this,arguments)};function E(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))}"function"==typeof SuppressedError&&SuppressedError;var z={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}},N="react-transform-wrapper",k=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}},W=function(n){var t=X({},z);return Object.keys(n).forEach(function(e){var i=void 0!==n[e];if(void 0!==z[e]&&i){var o=Object.prototype.toString.call(z[e]),a="[object Object]"===o,r="[object Array]"===o;t[e]=a?X(X({},z[e]),n[e]):r?E(E([],z[e],!0),n[e],!0):n[e]}}),t},A=function(n,t,e){var i=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 new Error("Wrapper is not mounted");var f=c?i*Math.exp(t*e):i+t*e;return h(o(f,3),l,s,p,!1)};function D(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 p=(a.offsetWidth/2-l)/s,f=(a.offsetHeight/2-u)/s,m=x(n,A(n,t,e),p,f);if(!m)return console.error("Error during zoom event. New transformation state was not calculated.");c(n,m,i,o)}function O(n,t,e,i){var o=n.setup,a=n.wrapperComponent,r=o.limitToBounds,s=k(n.props),l=n.transformState,u=l.scale,f=l.positionX,m=l.positionY;if(a){var v=p(n,s.scale),h=d(s.positionX,s.positionY,v,r,0,0,a),g={scale:s.scale,positionX:h.x,positionY:h.y};u===s.scale&&f===s.positionX&&m===s.positionY||(null==i||i(),c(n,g,t,e))}}var I=function(n){return function(t,e,i){void 0===t&&(t=.5),void 0===e&&(e=300),void 0===i&&(i="easeOut"),D(n,1,t,e,i)}},B=function(n){return function(t,e,i){void 0===t&&(t=.5),void 0===e&&(e=300),void 0===i&&(i="easeOut"),D(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,p=n.wrapperComponent,f=n.contentComponent;if(!n.setup.disabled&&p&&f){var m={positionX:Number.isNaN(t)?s:t,positionY:Number.isNaN(e)?l:e,scale:Number.isNaN(i)?u:i};c(n,m,o,a)}}},M=function(n){return function(t,e){void 0===t&&(t=200),void 0===e&&(e="easeOut"),O(n,t,e)}}
1,K=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=q(t||o.scale,a,r);c(n,s,e,i)}}},R=function(n){return function(t,e,i,o){void 0===i&&(i=600),void 0===o&&(o="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 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,f,m,v,g,S,w,y,b=i.getBoundingClientRect(),C=t.getBoundingClientRect(),P=(c=i,f=o,m=a,v=t.getBoundingClientRect(),g=c.getBoundingClientRect(),S=f.getBoundingClientRect(),w=g.x*m.scale,y=g.y*m.scale,{x:(v.x-S.x+w)/m.scale,y:(v.y-S.y+y)/m.scale}),T=P.x,x=P.y,Y=C.width/a.scale,X=C.height/a.scale,E=i.offsetWidth/Y,z=i.offsetHeight/X,N=h(e||Math.min(E,z),l,u,0,!1),k=(b.width-Y*N)/2,W=(b.height-X*N)/2,A=d((b.left-T)*N+k,(b.top-x)*N+W,p(n,N),s,0,0,i);return{positionX:A.x,positionY:A.y,scale:N}}(n,r,e);c(n,s,i,o)}}},Z=function(n){return{instance:n,zoomIn:I(n),zoomOut:B(n),setTransform:L(n),resetTransform:M(n),centerView:K(n),zoomToElement:R(n)}},H=function(n){var t={};return Object.assign(t,function(n){return{instance:n,state:n.transformState}}(n)),Object.assign(t,Z(n)),t};function _(){try{return{get passive(){return!1}}}catch(n){return!1}}var F=".".concat(N),j=function(n,t){return t.some(function(t){return n.matches("".concat(F," ").concat(t,", ").concat(F," .").concat(t,", ").concat(F," ").concat(t," *, ").concat(F," .").concat(t," *"))})},Q=function(n){n&&clearTimeout(n)},q=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 U(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 V=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))},G=function(n){for(var t=0,e=0,i=0;i<2;i+=1)t+=n.touches[i].clientX,e+=n.touches[i].clientY;return{x:t/2,y:e/2}},J=function(n,t){var e=n.props.onZoomStop,i=n.setup.doubleClick.animationTime;Q(n.doubleClickStopEventTimer),n.doubleClickStopEventTimer=setTimeout(function(){n.doubleClickStopEventTimer=null,a(H(n),t,e)},i)};var $=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,m(t,t.transformState.scale),t.setup=W(n)},this.initializeWindowEvents=function(){var n,e,i=_(),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=_(),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),l(t),null===(e=t.observer)||void 0===e||e.disconnect()},this.handleInitializeWrapperEvents=function(n){var e=_();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 i=!1,o=t.setup.centerOnInit,a=function(n,t){for(var e=0,i=n;e<i.length;e++)if(i[e].target===t)return!0;return!1};t.applyTransformation(),t.onInitCallbacks.forEach(function(n){n(H(t))}),t.observer=new ResizeObserver(function(r){if(a(r,n)||a(r,e))if(o&&!i){var s=e.offsetWidth,u=e.offsetHeight;(s>0||u>0)&&(i=!0,t.setCenter())}else l(t),m(t,t.transformState.scale),P(t,0)}),t.observer.observe(n),t.observer.observe(e)},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||j(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||(l(n),a(H(n),t,i),a(H(n),t,o))}(t,n),function(n,t){var e=n.props,i=e.onWheel,r=e.onZoom,s=n.contentComponent,l=n.setup,u=n.transformState.scale,c=l.limitToBounds,p=l.centerZoomedOut,f=l.zoomAnimation,d=l.wheel,g
vendor: 6,615 bytes, line 1
1=l.disablePadding,S=l.smooth,w=f.size,y=f.disabled,b=d.step,C=d.smoothStep;if(!s)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var P=function(n){var t=function(n){return n?n.deltaY<0?1:-1:0}(n);return t}(t),T=function(n,t,e,i){var a=n.transformState.scale,r=n.wrapperComponent,s=n.setup,l=s.maxScale,u=s.minScale,c=s.zoomAnimation,p=s.disablePadding,f=c.size,m=c.disabled;if(!r)throw new Error("Wrapper is not mounted");var d=!i&&!m;return h(o(a+t*e,3),u,l,f,d&&!p)}(n,P,S?C*Math.abs(t.deltaY):b,!t.ctrlKey);if(u!==T){var x=m(n,T),Y=U(t,s,u),X=c&&(y||0===w||p||g),E=v(n,Y.x,Y.y,T,x,X),z=E.x,N=E.y;n.previousWheelEvent=t,n.setTransformState(T,z,N),a(H(n),t,i),a(H(n),t,r)}}(t,n),function(n,t){var e=n.props,i=e.onWheelStop,o=e.onZoomStop;Q(n.wheelAnimationTimer),n.wheelAnimationTimer=setTimeout(function(){n.mounted&&(Y(n,t.x,t.y),n.wheelAnimationTimer=null)},100);var r=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);r&&(Q(n.wheelStopEventTimer),n.wheelStopEventTimer=setTimeout(function(){n.mounted&&(n.wheelStopEventTimer=null,a(H(n),t,i),a(H(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,m=t.setup.alignmentAnimation,d=m.sizeX,v=m.sizeY,h=y(t,d),g=y(t,v);p===s&&f===l||w(t,p,f,h,g)}},this.onPanningStart=function(n){var e=t.setup.disabled,i=t.props.onPanningStart;e||g(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),C(t,n),a(H(t),n,i))},this.onPanning=function(n){var e=t.setup.disabled,i=t.props.onPanning;e||S(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(n.preventDefault(),n.stopPropagation(),T(t,n.clientX,n.clientY),a(H(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(),s=null==o?void 0:o.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,m=l<p||c<f;!t&&e&&(null==e?void 0:e.total)>.1&&m?function(n){var t=n.velocity,e=n.bounds,i=n.setup,o=n.wrapperComponent,a=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);if(a&&t&&e&&o){var s=t.velocityX,l=t.velocityY,c=t.total,p=e.maxPositionX,f=e.minPositionX,m=e.maxPositionY,d=e.minPositionY,v=i.limitToBounds,h=i.alignmentAnimation,g=i.zoomAnimation,S=i.panning,w=S.lockAxisY,C=S.lockAxisX,P=g.animationType,T=h.sizeX,x=h.sizeY,Y=h.velocityAlignmentTime,X=function(n,t){var e=n.setup.velocityAnimation,i=e.equalToMove,o=e.animationTime,a=e.sensitivity;return i?o*t*a:o}(n,c),E=Math.max(X,Y),z=y(n,T),N=y(n,x),k=z*o.offsetWidth/100,W=N*o.offsetHeight/100,A=p+k,D=f-k,O=m+W,I=d-W,B=n.transformState,L=(new Date).getTime();u(n,P,E,function(t){var e=n.transformState,i=e.scale,o=e.positionX,a=e.positionY,u=((new Date).getTime()-L)/Y,c=1-(0,r[h.animationType])(Math.min(1,u)),g=1-t,S=o+s*g,y=a+l*g,P=b(S,B.positionX,o,C,v,f,p,D,A,c),T=b(y,B.positionY,a,w,v,d,m,I,O,c);o===S&&a===y||n.setTransformState(i,P,T)})}}(n):P(n)}}(t),a(H(t),n,e))},this.onPinchStart=function(n){var e=t.setup.disabled,i=t.props,o=i.onPinchingStart,r=i.onZoomStart;if(!e){var s=function(n,t){var e=n.setup.pinch,i=e.disabled,o=e.excluded,a=n.isInitialized,r=t.target;return!(!a||i||!r||j(r,o))}(t,n);s&&(function(n,t){var e=V(t);n.pinchStartDistance=e,n.lastDistance=e,n.pinchStartScale=n.transformState.scale,n.isPanning=!1;var i=G(t);n.pinchLastCenterX=i.x,n.pinchLastCenterY=i.y,l(n)}(t,n),l(t),a(H(t),n,o),a(H(t),n,r))}},this.onPinch=function(n){var e=t.setup.disabled,i=t.props,r=i.onPinching,s=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,a=n.wrapperComponent,r=n.transformState.scale,s=n.setup,l=s.limitToBounds,u=s.centerZoomedOut,c=s.zoomAnimation,p=s.alignmentAnimation,f=c.disabled,g=c.size;if(null!==i&&e){var S=function(n,t,e){var i=e.getBoundingClientRect(),a=n.touches,r=o(a[0].clientX-i.left,5),s=o(a[0].clientY-i.top,5);return{x:(r+o(a[1].clientX-i.left,5))/2/t,y:(s+o(a[1].clientY-i.top,5))/2/t}}(t,r,e);if(Number.isFinite(S.x)&&Number.isFinite(S.y)){var w=V(t),b=function(n,t){var e=n.pinchStartScale,i=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===i||!t)throw new Error("Pinch touches distance was not provided");return t<0?n.transformState.scale:h(o(t/i*e,2),s,r,c,!p&&!u)}(n,w),C=G(t),P=C.x-(n.pinchLastCenterX||0),T=C.y-(n.pinchLastCenterY||0);if(b!==r||0!==P||0!==T){n.pinchLastCenterX=C.x,n.pinchLastCenterY=C.y;var x=m(n,b),Y=l&&(f||0===g||u),X=v(n,S.x,S.y,b,x,Y),E=X.x,z=X.y;n.pinchMidpoint=S,n.lastDistance=w;var N=p.sizeX,k=p.sizeY,W=d(E+P,z+T,x,l,y(n,N),y(n,k),a),A=W.x,D=W.y;n.setTransformState(b,A,D)}}}}(t,n),a(H(t),n,r),a(H(t),n,s))}},this.onPinchStop=function(n){var e,i,o=t.props,r=o.onPinchingStop,s=o.onZoomStop;t.pinchStartScale&&(i=(e=t).pinchMidpoint,e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,Y(e,null==i?void 0:i.x,null==i?void 0:i.y),a(H(t),n,r),a(H(t),n,s))},this.onTouchPanningStart=function(n){var e=t.setup.disabled,i=t.props.onPanningStart;if(!e&&g(t,n)&&!(t.lastTouch&&+new Date-t.lastTouch<200&&1===n.touches.length)){t.lastTouch=+new Date,l(t);var o=n.touches,r=1===o.length,s=2===o.length;r&&(l(t),C(t,n),a(H(t),n,i)),s&&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(!S(t))return;n.preventDefault(),n.stopPropagation();var o=n.touches[0];
1T(t,o.clientX,o.clientY),a(H(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||j(l,s))}(t,n);e&&function(n,t){var e=n.setup,i=n.doubleClickStopEventTimer,o=n.transformState,r=n.contentComponent,s=o.scale,l=n.props,u=l.onZoomStart,p=l.onZoom,f=e.doubleClick,m=f.disabled,d=f.mode,v=f.step,h=f.animationTime,g=f.animationType;if(!m&&!i){if("reset"===d)return function(n,t){var e=n.props,i=e.onZoomStart,o=e.onZoom,r=n.setup.doubleClick,s=r.animationTime,l=r.animationType;a(H(n),t,i),O(n,s,l,function(){return a(H(n),t,o)}),J(n,t)}(n,t);if(!r)return console.error("No ContentComponent found");var S=function(n,t){return"toggle"===n?1===t?1:-1:"zoomOut"===n?-1:1}(d,n.transformState.scale),w=A(n,S,v);if(s!==w){a(H(n),t,u);var y=U(t,r,s),b=x(n,w,y.x,y.y);if(!b)return console.error("Error during zoom event. New transformation state was not calculated.");a(H(n),t,p),c(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 r=H(t);t.onChangeCallbacks.forEach(function(n){return n(r)}),a(r,{scale:n,positionX:e,positionY:i},o)}},this.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var n=q(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 H(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,m(t,t.transformState.scale),t.handleInitializeWrapperEvents(n),t.handleInitialize(n,e),t.initializeWindowEvents(),t.isInitialized=!0;var i=H(t);a(i,void 0,t.props.onInit)},this.props=n,this.setup=W(this.props),this.transformState=k(this.props)},nn=i.createContext(null),tn=i.forwardRef(function(n,t){var e,o,a=(0,i.useRef)(new $(n)).current,r=(e=n.children,o=Z(a),"function"==typeof e?e(o):e);return(0,i.useImperativeHandle)(t,function(){return Z(a)},[a]),(0,i.useEffect)(function(){a.update(n)},[a,n]),i.createElement(nn.Provider,{value:a},r)});i.forwardRef(function(n,t){var e,o=(0,i.useRef)(null),a=(0,i.useContext)(nn);return(0,i.useEffect)(function(){return a.onChange(function(n){o.current&&(o.current.style.transform=a.handleTransformStyles(0,0,1/n.instance.transformState.scale))})},[a]),i.createElement("div",X({},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  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 en=function(n){var t=n.children,e=n.wrapperClass,o=void 0===e?"":e,a=n.contentClass,r=void 0===a?"":a,s=n.wrapperStyle,l=n.contentStyle,u=n.wrapperProps,c=void 0===u?{}:u,p=n.contentProps,f=void 0===p?{}:p,m=(0,i.useContext)(nn),d=m.init,v=m.cleanupWindowEvents,h=(0,i.useRef)(null),g=(0,i.useRef)(null);return(0,i.useEffect)(function(){var n=h.current,t=g.current;return null!==n&&null!==t&&d&&(null==d||d(n,t)),function(){null==v||v()}},[]),i.createElement("div",X({},c,{ref:h,className:"".concat(N," ").concat("transform-component-module_wrapper__SPB86"," ").concat(o),style:s}),i.createElement("div",X({},f,{ref:g,className:"".concat("react-transform-component"," ").concat("transform-component-module_content__FBWxo"," ").concat(r),style:l}),t))}}}]);

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.