PageSourceSearch

https://www.nzism.org/static/js-mition/v3.8.38/2724.3398d44b.chunk.js

js nzism.org collected 2026-10-07 17:59:50 UTC 23,770 bytes, 2 lines download raw bytes

1/*! For license information please see 2724.3398d44b.chunk.js.LICENSE.txt */
2(self.webpackChunkmembers=self.webpackChunkmembers||[]).push([[2724],{16371:function(e,t,o){"use strict";var r,i=o(49254);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,n=o in document;if(!n){var a=document.createElement("div");a.setAttribute(o,"return;"),n="function"==typeof a[o]}return!n&&r&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}},18700:function(e,t,o){e.exports=o(31459)},31459:function(e,t,o){"use strict";var r=o(31905),i=o(16371);function n(e){var t=0,o=0,r=0,i=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),r=10*t,i=10*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!o&&(o=i<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:i}}n.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=n},31905:function(e){var t,o,r,i,n,a,s,c,p,h,u,d,l,v,f,m=!1;function g(){if(!m){m=!0;var e=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Ice
2weasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),w=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),l=/\b(iP[ao]d)/.exec(e),h=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),f=/Mobile/i.exec(e),u=!!/Win64/.exec(e),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var C=/(?:Trident\/(\d+.\d+))/.exec(e);a=C?parseFloat(C[1])+4:t,o=g[2]?parseFloat(g[2]):NaN,r=g[3]?parseFloat(g[3]):NaN,(i=g[4]?parseFloat(g[4]):NaN)?(g=/(?:Chrome\/(\d+\.\d+))/.exec(e),n=g&&g[1]?parseFloat(g[1]):NaN):n=NaN}else t=o=r=n=i=NaN;if(w){if(w[1]){var S=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!S||parseFloat(S[1].replace("_","."))}else s=!1;c=!!w[2],p=!!w[3]}else s=c=p=!1}}var w={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||a>t},ie64:function(){return w.ie()&&u},firefox:function(){return g()||o},opera:function(){return g()||r},webkit:function(){return g()||i},safari:function(){return w.webkit()},chrome:function(){return g()||n},windows:function(){return g()||c},osx:function(){return g()||s},linux:function(){return g()||p},iphone:function(){return g()||d},mobile:function(){return g()||d||l||h||f},nativeApp:function(){return g()||v},android:function(){return g()||h},ipad:function(){return g()||l}};e.exports=w},49254:function(e){"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=o},82724:function(e,t,o){"use strict";o.d(t,{Ay:function(){return m}});var r=o(94677),i=o(88094),n=o(18700);function a(e,t,o,r,i){void 0===i&&(i=0);var n=l(t.width,t.height,i),a=n.width,c=n.height;return{x:s(e.x,a,o.width,r),y:s(e.y,c,o.height,r)}}function s(e,t,o,r){var i=Math.abs(t*r/2-o/2);return v(e,-i,i)}function c(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function p(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function h(e,t){return Math.min(e,Math.max(0,t))}function u(e,t){return t}function d(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function l(e,t,o){var r=o*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function v(e,t,o){return Math.min(Math.max(e,t),o)}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&e.length>0}).join(" ").trim()}var m=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.cropperRef=i.createRef(),o.imageRef=i.createRef(),o.videoRef=i.createRef(),o.containerPosition={x:0,y:0},o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc="undefined"!=typeof document?document:null,o.currentWindow="undefined"!=typeof window?window:null,o.resizeObserver=null,o.previousCropSize=null,o.isInitialized=!1,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&o.containerRef){var e=!0;o.resizeObserver=new window.ResizeObserver(function(t){e?e=!1:o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(e){return e.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturechange",o.onGestureChange),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var e=o.computeSizes();e&&(o.previousCropSize=e,o.emitCropData(),o.setInitialCrop(e),o.isInitialized=!0),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(e){if(o.props.initialCroppedAreaPercentages){var t=function(e,t,o,r,i,n){var a=l(t.width,t.height,o),s=v(r.width/a.width*(100/e.width),i,n);return{crop:{x:s*a.width/2-r.width/2-a.width*s*(e.x/100),y:s*a.height/2-r.height/2-a.height*s*(e.y/100)},zoom:s}}(o.props.initialCroppedAreaPercentages,o.mediaSize,o.props.rotation,e,o.props.minZoom,o.props.maxZoom),r=t.crop,i=t.zoom;o.props.onCropChange(r),o.props.onZoomChange&&o.props.onZoomChange(i)}else if(o.props.initialCroppedAreaPixels){var n=function(e,t,o,r,i,n){void 0===o&&(o=0);
2var a=l(t.naturalWidth,t.naturalHeight,o),s=v(function(e,t,o){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return o.height>o.width?o.height/(e.height*r):o.width/(e.width*r)}(e,t,r),i,n),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*c,y:((a.height-e.height)/2-e.y)*c},zoom:s}}(o.props.initialCroppedAreaPixels,o.mediaSize,o.props.rotation,e,o.props.minZoom,o.props.maxZoom);r=n.crop,i=n.zoom,o.props.onCropChange(r),o.props.onZoomChange&&o.props.onZoomChange(i)}},o.computeSizes=function(){var e,t,i,n,a,s,c=o.imageRef.current||o.videoRef.current;if(c&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var p=o.containerRect.width/o.containerRect.height,h=(null===(e=o.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=o.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(i=o.imageRef.current)||void 0===i?void 0:i.naturalHeight)||(null===(n=o.videoRef.current)||void 0===n?void 0:n.videoHeight)||0,d=h/u,v=void 0;if(c.offsetWidth<h||c.offsetHeight<u)switch(o.state.mediaObjectFit){default:case"contain":v=p>d?{width:o.containerRect.height*d,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/d};break;case"horizontal-cover":v={width:o.containerRect.width,height:o.containerRect.width/d};break;case"vertical-cover":v={width:o.containerRect.height*d,height:o.containerRect.height}}else v={width:c.offsetWidth,height:c.offsetHeight};o.mediaSize=(0,r.Cl)((0,r.Cl)({},v),{naturalWidth:h,naturalHeight:u}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var f=o.props.cropSize?o.props.cropSize:function(e,t,o,r,i,n){void 0===n&&(n=0);var a=l(e,t,n),s=a.width,c=a.height,p=Math.min(s,o),h=Math.min(c,r);return p>h*i?{width:h*i,height:h}:{width:p,height:p/i}}(o.mediaSize.width,o.mediaSize.height,o.containerRect.width,o.containerRect.height,o.props.aspect,o.props.rotation);return(null===(a=o.state.cropSize)||void 0===a?void 0:a.height)===f.height&&(null===(s=o.state.cropSize)||void 0===s?void 0:s.width)===f.width||o.props.onCropSizeChange&&o.props.onCropSizeChange(f),o.setState({cropSize:f},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(f),f}},o.saveContainerPosition=function(){if(o.containerRef){var e=o.containerRef.getBoundingClientRect();o.containerPosition={x:e.left,y:e.top}}},o.onMouseDown=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("mousemove",o.onMouseMove),o.currentDoc.addEventListener("mouseup",o.onDragStopped),o.saveContainerPosition(),o.onDragStart(t.getMousePoint(e)))},o.onMouseMove=function(e){return o.onDrag(t.getMousePoint(e))},o.onScroll=function(e){o.currentDoc&&(e.preventDefault(),o.saveContainerPosition())},o.onTouchStart=function(e){o.currentDoc&&(o.isTouching=!0,o.props.onTouchRequest&&!o.props.onTouchRequest(e)||(o.currentDoc.addEventListener("touchmove",o.onTouchMove,{passive:!1}),o.currentDoc.addEventListener("touchend",o.onDragStopped),o.saveContainerPosition(),2===e.touches.length?o.onPinchStart(e):1===e.touches.length&&o.onDragStart(t.getTouchPoint(e.touches[0]))))},o.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?o.onPinchMove(e):1===e.touches.length&&o.onDrag(t.getTouchPoint(e.touches[0]))},o.onGestureStart=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("gesturechange",o.onGestureChange),o.currentDoc.addEventListener("gestureend",o.onGestureEnd),o.gestureZoomStart=o.props.zoom,o.gestureRotationStart=o.props.rotation)},o.onGestureChange=function(e){if(e.preventDefault(),!o.isTouching){var r=t.getMousePoint(e),i=o.gestureZoomStart-1+e.scale;if(o.setNewZoom(i,r,{shouldUpdatePosition:!0}),o.props.onRotationChange){var n=o.gestureRotationStart+e.rotation;o.props.onRotationChange(n)}}},o.onGestureEnd=function(e){o.cleanEvents()},o.onDragStart=function(e){var t,i,n=e.x,a=e.y;o.dragStartPosition={x:n,y:a},o.dragStartCrop=(0,r.Cl)({},o.props.crop),null===(i=(t=o.props).onInteractionStart)||void 0===i||i.call(t)},o.onDrag=function(e){var t=e.x,r=e.y;o.currentWindow&&(o.rafDragTimeout&&o.currentWindow.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=o.currentWindow.requestAnimationFrame(function(){if(o.state.cropSize&&void 0!==t&&void 0!==r){var e=t-o.dragStartPosition.x,i=r-o.dragStartPosition.y,n={x:o.dragStartCrop.x+e,y:o.dragStartCrop.y+i},s=o.props.restrictPosition?a(n,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):n;o.props.onCropChange(s)}}))},o.onDragStopped=function(){var e,t;o.isTouching=!1,o.cleanEvents(),o.emitCropData(),null===(t=(e=o.props).onInteractionEnd)||void 0===t||t.call(e)},o.onWheel=function(e){if(o.currentWindow&&(!o.props.onWheelRequest||o.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),i=n(e).pixelY,a=o.props.zoom-i*o.props.zoomSpeed/200;o.setNewZoom(a,r,{shouldUpdatePosition:!0}),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=o.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=o.currentWindow.setTimeout(function(){return o.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=o.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},o.getPointOnContainer=function(e,t){var r=e.x,i=e.y;if(!o.containerRect)throw new Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(r-t.x),y:o.containerRect.height/2-(i-t.y)}},o.getPointOnMedia=function(e){var t=e.x,r=e.y,i=o.props,n=i.crop,a=i.zoom;return{x:(t+n.x)/a,y:(r+n.y)/a}},o.setNewZoom=function(e,t,r){var i=(void 0===r?{}:r).shouldUpdatePosition,n=void 0===i||i;if(o.state.cropSize&&o.props.onZoomChange){var s=v(e,o.props.minZoom,o.props.maxZoom);if(n){var c=o.getPointOnContainer(t,o.containerPosition),p=o.getPointOnMedia(c),h={x:p.x*s-c.x,y:p.y*s-c.y},u=o.props.restrictPosition?a(h,o.mediaSize,o.state.cropSize,s,o.props.rotation):h;o.props.onCropChange(u)}o.props.onZoomChange(s)}},o.getCropData=function(){return o.state.cropSize?function(e,t,o,i,n,a,s){void 0===a&&(a=0),void 0===s&&(s=!0);
2var c=s?h:u,p=l(t.width,t.height,a),d=l(t.naturalWidth,t.naturalHeight,a),v={x:c(100,((p.width-o.width/n)/2-e.x/n)/p.width*100),y:c(100,((p.height-o.height/n)/2-e.y/n)/p.height*100),width:c(100,o.width/p.width*100/n),height:c(100,o.height/p.height*100/n)},f=Math.round(c(d.width,v.width*d.width/100)),m=Math.round(c(d.height,v.height*d.height/100)),g=d.width>=d.height*i?{width:Math.round(m*i),height:m}:{width:f,height:Math.round(f/i)};return{croppedAreaPercentages:v,croppedAreaPixels:(0,r.Cl)((0,r.Cl)({},g),{x:Math.round(c(d.width-g.width,v.x*d.width/100)),y:Math.round(c(d.height-g.height,v.y*d.height/100))})}}(o.props.restrictPosition?a(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop,o.mediaSize,o.state.cropSize,o.getAspect(),o.props.zoom,o.props.rotation,o.props.restrictPosition):null},o.emitCropData=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(t,r),o.props.onCropAreaChange&&o.props.onCropAreaChange(t,r)}},o.emitCropAreaChange=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(t,r)}},o.recomputeCropPosition=function(){var e,t;if(o.state.cropSize){var r=o.props.crop;if(o.isInitialized&&(null===(e=o.previousCropSize)||void 0===e?void 0:e.width)&&(null===(t=o.previousCropSize)||void 0===t?void 0:t.height)&&(Math.abs(o.previousCropSize.width-o.state.cropSize.width)>1e-6||Math.abs(o.previousCropSize.height-o.state.cropSize.height)>1e-6)){var i=o.state.cropSize.width/o.previousCropSize.width,n=o.state.cropSize.height/o.previousCropSize.height;r={x:o.props.crop.x*i,y:o.props.crop.y*n}}var s=o.props.restrictPosition?a(r,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):r;o.previousCropSize=o.state.cropSize,o.props.onCropChange(s),o.emitCropData()}},o.onKeyDown=function(e){var t,i,n=o.props,s=n.crop,c=n.onCropChange,p=n.keyboardStep,h=n.zoom,u=n.rotation,d=p;if(o.state.cropSize){e.shiftKey&&(d*=.2);var l=(0,r.Cl)({},s);switch(e.key){case"ArrowUp":l.y-=d,e.preventDefault();break;case"ArrowDown":l.y+=d,e.preventDefault();break;case"ArrowLeft":l.x-=d,e.preventDefault();break;case"ArrowRight":l.x+=d,e.preventDefault();break;default:return}o.props.restrictPosition&&(l=a(l,o.mediaSize,o.state.cropSize,h,u)),e.repeat||null===(i=(t=o.props).onInteractionStart)||void 0===i||i.call(t),c(l)}},o.onKeyUp=function(e){var t,r;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}o.emitCropData(),null===(r=(t=o.props).onInteractionEnd)||void 0===r||r.call(t)},o}return(0,r.C6)(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n  width: 100%;\n  height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n  width: auto;\n  height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}
2\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,o,r,i,n,a,s,c,p;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(i=this.props.cropSize)||void 0===i?void 0:i.width)?this.computeSizes():(null===(n=e.crop)||void 0===n?void 0:n.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(c=this.props.crop)||void 0===c?void 0:c.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(p=this.videoRef.current)||void 0===p||p.load());var h=this.getObjectFit();h!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:h},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},t.prototype.getObjectFit=function(){var e,t,o,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var i=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(o=this.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<i?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=c(o,r),this.lastPinchRotation=p(o,r),this.onDragStart(d(o,r))},t.prototype.onPinchMove=function(e){var o=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),i=t.getTouchPoint(e.touches[1]),n=d(r,i);this.onDrag(n),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=c(r,i),t=o.props.zoom*(e/o.lastPinchDistance);o.setNewZoom(t,n,{shouldUpdatePosition:!1}),o.lastPinchDistance=e;var a=p(r,i),s=o.props.rotation+(a-o.lastPinchRotation);o.props.onRotationChange&&o.props.onRotationChange(s),o.lastPinchRotation=a})}},t.prototype.render=function(){var e,t=this,o=this.props,n=o.image,a=o.video,s=o.mediaProps,c=o.cropperProps,p=o.transform,h=o.crop,u=h.x,d=h.y,l=o.rotation,v=o.zoom,m=o.cropShape,g=o.showGrid,w=o.roundCropAreaPixels,C=o.style,S=C.containerStyle,y=C.cropAreaStyle,z=C.mediaStyle,R=o.classes,x=R.containerClassName,b=R.cropAreaClassName,D=R.mediaClassName,P=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return i.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef
2=e},"data-testid":"container",style:S,className:f("reactEasyCrop_Container",x)},n?i.createElement("img",(0,r.Cl)({alt:"",className:f("reactEasyCrop_Image","contain"===P&&"reactEasyCrop_Contain","horizontal-cover"===P&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===P&&"reactEasyCrop_Cover_Vertical",D)},s,{src:n,ref:this.imageRef,style:(0,r.Cl)((0,r.Cl)({},z),{transform:p||"translate(".concat(u,"px, ").concat(d,"px) rotate(").concat(l,"deg) scale(").concat(v,")")}),onLoad:this.onMediaLoad})):a&&i.createElement("video",(0,r.Cl)({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:f("reactEasyCrop_Video","contain"===P&&"reactEasyCrop_Contain","horizontal-cover"===P&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===P&&"reactEasyCrop_Cover_Vertical",D)},s,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:(0,r.Cl)((0,r.Cl)({},z),{transform:p||"translate(".concat(u,"px, ").concat(d,"px) rotate(").concat(l,"deg) scale(").concat(v,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map(function(e){return i.createElement("source",(0,r.Cl)({key:e.src},e))})),this.state.cropSize&&i.createElement("div",(0,r.Cl)({ref:this.cropperRef,style:(0,r.Cl)((0,r.Cl)({},y),{width:w?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:w?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:f("reactEasyCrop_CropArea","round"===m&&"reactEasyCrop_CropAreaRound",g&&"reactEasyCrop_CropAreaGrid",b)},c)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(i.Component)}}]);

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.