{"version":3,"file":"ParticlesSphere_prod.4K9choFF.mjs","names":["useRef","React"],"sources":["https:/framerusercontent.com/modules/pYbVKfcb0pPrsWejx12q/MsJMnxtVT2HEbtHa6Fxm/ParticlesSphere_prod.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React,{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{Scene,PerspectiveCamera,WebGLRenderer,Color,Points,BufferGeometry,Float32BufferAttribute,PointsMaterial,SphereGeometry,MeshBasicMaterial,InstancedMesh,Matrix4,Group,Vector3,AdditiveBlending}from\"https://cdn.jsdelivr.net/npm/three@0.174.0/build/three.module.js\";// CSS variable token and color parsing (hex/rgba/var())\nconst cssVariableRegex=/var\\s*\\(\\s*(--[\\w-]+)(?:\\s*,\\s*((?:[^)(]+|\\((?:[^)(]+|\\([^)(]*\\))*\\))*))?\\s*\\)/;function extractDefaultValue(cssVar){if(!cssVar||!cssVar.startsWith(\"var(\"))return cssVar;const match=cssVariableRegex.exec(cssVar);if(!match)return cssVar;const fallback=(match[2]||\"\").trim();if(fallback.startsWith(\"var(\"))return extractDefaultValue(fallback);return fallback||cssVar;}function resolveTokenColor(input){if(typeof input!==\"string\")return input;if(!input.startsWith(\"var(\"))return input;return extractDefaultValue(input);}// Parse color string to RGBA values (0-1 range)\nfunction parseColorToRgba(input){if(!input||input.trim()===\"\")return{r:0,g:0,b:0,a:0};const str=input.trim();// Handle rgba() format\nconst rgbaMatch=str.match(/rgba?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*(?:,\\s*([\\d.]+)\\s*)?\\)/i);if(rgbaMatch){const r=Math.max(0,Math.min(255,parseFloat(rgbaMatch[1])))/255;const g=Math.max(0,Math.min(255,parseFloat(rgbaMatch[2])))/255;const b=Math.max(0,Math.min(255,parseFloat(rgbaMatch[3])))/255;const a=rgbaMatch[4]!==undefined?Math.max(0,Math.min(1,parseFloat(rgbaMatch[4]))):1;return{r,g,b,a};}// Handle hex formats\nconst hex=str.replace(/^#/,\"\");if(hex.length===8){return{r:parseInt(hex.slice(0,2),16)/255,g:parseInt(hex.slice(2,4),16)/255,b:parseInt(hex.slice(4,6),16)/255,a:parseInt(hex.slice(6,8),16)/255};}if(hex.length===6){return{r:parseInt(hex.slice(0,2),16)/255,g:parseInt(hex.slice(2,4),16)/255,b:parseInt(hex.slice(4,6),16)/255,a:1};}if(hex.length===4){return{r:parseInt(hex[0]+hex[0],16)/255,g:parseInt(hex[1]+hex[1],16)/255,b:parseInt(hex[2]+hex[2],16)/255,a:parseInt(hex[3]+hex[3],16)/255};}if(hex.length===3){return{r:parseInt(hex[0]+hex[0],16)/255,g:parseInt(hex[1]+hex[1],16)/255,b:parseInt(hex[2]+hex[2],16)/255,a:1};}return{r:0,g:0,b:0,a:1};}// Value mapping functions\nfunction mapLinear(value,inMin,inMax,outMin,outMax){if(inMax===inMin)return outMin;const t=(value-inMin)/(inMax-inMin);return outMin+t*(outMax-outMin);}// Speed: UI [0.1..1] → internal [0.01..0.05] (rotation speed multiplier)\nfunction mapSpeedUiToInternal(ui){return mapLinear(ui,.1,1,.01,.05);}// Scale: UI [0..1] → scale multiplier [0.5..3.0] (overall sphere size multiplier)\nfunction mapScaleUiToMultiplier(ui){const clamped=Math.max(0,Math.min(1,ui));return mapLinear(clamped,0,1,.25,1.25);}// Particle Size: UI [0.1..1] → size [0.01..0.1] (individual particle size)\nfunction mapParticleSizeUiToInternal(ui){const clamped=Math.max(.1,Math.min(1,ui));return mapLinear(clamped,.1,1,.01,.1);}// Cursor Strength: UI [0..1] → force multiplier [0..15]\n// Default 0.3 maps to 4.5 (stronger default behavior)\n// Maximum strength (1.0) creates a much larger void around cursor\nfunction mapCursorStrengthUiToMultiplier(ui){const clamped=Math.max(0,Math.min(1,ui));return mapLinear(clamped,0,1,0,15);}// Cursor interaction constants (from ref.tsx)\nconst CURSOR_PHYSICS={RETURN_FORCE:.015,FRICTION:.94};/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 500\n * @framerIntrinsicHeight 500\n * @framerDisableUnlink\n */export default function ParticleSphereRefactor({preview=false,particlesCount=1e3,speed=.5,smoothing=1,scale=.5,stopOnHover=true,rotationDirection=\"clockwise\",dragSpeed=.5,drag=true,particles:particlesConfig={scale:.5,shape:\"sphere\"},cursorConfig={enabled:true,radius:150,strength:.3,clickForce:10},sphereColor=\"#ffffff\",style}){const containerRef=useRef(null);const zoomProbeRef=useRef(null);const sceneRef=useRef(null);const cameraRef=useRef(null);const rendererRef=useRef(null);const particlesRef=useRef(null);const particlesGroupRef=useRef(null);const animationFrameRef=useRef(null);const animateFnRef=useRef(null);const startAnimationRef=useRef(null);const lastResizeRef=useRef({ts:0,zoom:0,w:0,h:0,aspect:0});const mouseRef=useRef(null);const baseParticlePositionsRef=useRef([]);const particleDisplacementsRef=useRef([]);const particleScatterVelocitiesRef=useRef([]);// Check canvas mode ONCE at component mount and cache it\nconst isCanvasRef=useRef(null);if(isCanvasRef.current===null){isCanvasRef.current=RenderTarget.current()===RenderTarget.canvas;}const isCanvas=isCanvasRef.current;// Ref for preview - only matters in canvas mode\nconst previewRef=useRef(preview);// Update previewRef ONLY when in canvas mode\nconst previewForRefUpdate=isCanvas?preview:false;useEffect(()=>{if(isCanvas){previewRef.current=preview;}},[previewForRefUpdate,isCanvas]);// Map UI speed to internal speed\nconst rotationSpeed=React.useMemo(()=>{const baseSpeed=mapSpeedUiToInternal(speed);return rotationDirection===\"anticlockwise\"?-baseSpeed:baseSpeed;},[speed,rotationDirection]);// Map UI scale to internal scale multiplier (overall sphere size)\nconst scaleMultiplier=React.useMemo(()=>mapScaleUiToMultiplier(scale),[scale]);// Map UI particle size to internal particle size\nconst particleSize=React.useMemo(()=>mapParticleSizeUiToInternal(particlesConfig.scale),[particlesConfig.scale]);// Cursor radius in pixels (clamped to reasonable range)\nconst cursorRadius=React.useMemo(()=>Math.max(0,Math.min(600,cursorConfig.radius)),[cursorConfig.radius]);// Map UI cursor strength to force multiplier\nconst cursorStrength=React.useMemo(()=>mapCursorStrengthUiToMultiplier(cursorConfig.strength),[cursorConfig.strength]);useEffect(()=>{if(!containerRef.current)return;const container=containerRef.current;const containerWidth=container.clientWidth||container.offsetWidth||400;const containerHeight=container.clientHeight||container.offsetHeight||400;// Canvas overflow multiplier - makes canvas larger than container to prevent clipping\n// The sphere and camera remain the same, just more \"empty space\" around the edges\nconst canvasOverflowMultiplier=2.5// 50% larger canvas on each side\n;const canvasWidth=containerWidth*canvasOverflowMultiplier;const canvasHeight=containerHeight*canvasOverflowMultiplier;// Scene setup\nconst scene=new Scene;sceneRef.current=scene;// Calculate adjusted FOV to keep sphere the same size regardless of canvas overflow\n// When canvas is larger, we need a wider FOV to show the same content at the same size\n// FOV adjustment: tan(newFOV/2) = tan(baseFOV/2) * canvasOverflowMultiplier\nconst baseFOV=50;const adjustedFOV=2*Math.atan(Math.tan(baseFOV*Math.PI/180/2)*canvasOverflowMultiplier)*(180/Math.PI);const camera=new PerspectiveCamera(adjustedFOV,canvasWidth/canvasHeight,.1,1e3);// Base camera distance - keep it relatively fixed so sphere appears bigger when scaled\n// The sphere radius is 1.0 * scaleMultiplier, so we need camera at least at that distance + margin\nconst baseCameraDistance=3;const currentSphereRadius=1*scaleMultiplier;// Ensure camera is always outside the sphere with a safe margin\nconst cameraDistance=Math.max(baseCameraDistance,currentSphereRadius+1);camera.position.z=cameraDistance;cameraRef.current=camera;// Renderer setup - canvas is larger than container to prevent clipping\nconst renderer=new WebGLRenderer({antialias:true,alpha:true});renderer.setSize(canvasWidth,canvasHeight);renderer.setPixelRatio(Math.min(window.devicePixelRatio,2));renderer.outputColorSpace=\"srgb\";const canvas=renderer.domElement;canvas.style.position=\"absolute\";// Center the larger canvas within the container\nconst offsetX=(canvasWidth-containerWidth)/2;const offsetY=(canvasHeight-containerHeight)/2;canvas.style.left=`-${offsetX}px`;canvas.style.top=`-${offsetY}px`;canvas.style.width=`${canvasWidth}px`;canvas.style.height=`${canvasHeight}px`;canvas.style.display=\"block\";container.appendChild(canvas);rendererRef.current=renderer;// Parse color\nconst colorObj=new Color(sphereColor);// Create particles evenly distributed on sphere surface\nconst vertices=[];// Fibonacci sphere distribution for even spacing on sphere surface\n// This creates evenly distributed points on a unit sphere\nconst goldenAngle=Math.PI*(3-Math.sqrt(5))// Golden angle in radians\n;const baseSphereRadius=1// Base radius of the particle sphere\n;const sphereRadius=baseSphereRadius*scaleMultiplier// Scale the sphere\n;// Initialize base positions, displacements, and scatter velocities for cursor interaction\nbaseParticlePositionsRef.current=[];particleDisplacementsRef.current=[];particleScatterVelocitiesRef.current=[];// Resolve color tokens (CSS variables) and parse color properly\nconst resolvedSphereColor=resolveTokenColor(sphereColor);const sphereRgba=parseColorToRgba(resolvedSphereColor||sphereColor);// Use Color constructor with string for proper color space handling\n// Then apply the parsed RGB values to ensure opacity is extracted correctly\nconst baseColorObj=resolvedSphereColor?new Color(resolvedSphereColor):new Color(sphereRgba.r,sphereRgba.g,sphereRgba.b);const particleOpacity=sphereRgba.a;// Red color for displaced particles\nconst redColor=new Color(1,0,0);for(let i=0;i<particlesCount;i++){// Use golden angle spiral for even distribution\nconst y=1-i/(particlesCount-1)*2// y goes from 1 to -1\n;const radius=Math.sqrt(1-y*y)// Radius at y\n;const theta=goldenAngle*i// Golden angle increment\n;const x=Math.cos(theta)*radius;const z=Math.sin(theta)*radius;// Scale to sphere surface with scale multiplier\nconst posX=x*sphereRadius;const posY=y*sphereRadius;const posZ=z*sphereRadius;vertices.push(posX,posY,posZ);// Store base position and initialize displacement and scatter velocity\nbaseParticlePositionsRef.current.push(new Vector3(posX,posY,posZ));particleDisplacementsRef.current.push(new Vector3(0,0,0));particleScatterVelocitiesRef.current.push(new Vector3(0,0,0));}// Create particles based on shape\nconst particleShape=particlesConfig.shape||\"sphere\";let particles;if(particleShape===\"sphere\"){// Round particles using actual sphere geometries with InstancedMesh\n// Convert screen-space particle size to world-space radius to match visual size\nconst sphereRadius=particleSize*.15// Adjust this factor to match visual size\n;const sphereGeometry=new SphereGeometry(sphereRadius,8,8);// Use MeshBasicMaterial with AdditiveBlending for the glow effect\nconst sphereMaterial=new MeshBasicMaterial({color:16777215,blending:AdditiveBlending,transparent:particleOpacity<1,opacity:particleOpacity});particles=new InstancedMesh(sphereGeometry,sphereMaterial,particlesCount);// Set positions for each instance\nconst matrix=new Matrix4;for(let i=0;i<particlesCount;i++){const idx=i*3;matrix.setPosition(vertices[idx],vertices[idx+1],vertices[idx+2]);particles.setMatrixAt(i,matrix);}particles.instanceMatrix.needsUpdate=true;// Set up instance colors (per-instance coloring)\nconst instanceColors=new Float32Array(particlesCount*3);for(let i=0;i<particlesCount;i++){const idx=i*3;instanceColors[idx]=baseColorObj.r;instanceColors[idx+1]=baseColorObj.g;instanceColors[idx+2]=baseColorObj.b;}particles.instanceColor=new Float32BufferAttribute(instanceColors,3);sphereMaterial.vertexColors=false;particles.instanceColor.needsUpdate=true;}else{// Square particles using Points\nconst particlesGeometry=new BufferGeometry;particlesGeometry.setAttribute(\"position\",new Float32BufferAttribute(vertices,3));// Set up vertex colors (per-vertex coloring)\nconst colors=new Float32Array(particlesCount*3);for(let i=0;i<particlesCount;i++){const idx=i*3;colors[idx]=baseColorObj.r;colors[idx+1]=baseColorObj.g;colors[idx+2]=baseColorObj.b;}particlesGeometry.setAttribute(\"color\",new Float32BufferAttribute(colors,3));const particlesMaterial=new PointsMaterial({size:particleSize,color:16777215,blending:AdditiveBlending,depthTest:false,transparent:particleOpacity<1,opacity:particleOpacity,vertexColors:true});particles=new Points(particlesGeometry,particlesMaterial);}particlesRef.current=particles;// Create group to hold particles for rotation\nconst particlesGroup=new Group;particlesGroupRef.current=particlesGroup;particlesGroup.add(particles);scene.add(particlesGroup);// Rotation state - initialize\nconst rotation={x:0,y:0};const targetRotation={x:0,y:0};const velocity={x:0,y:0};let isDragging=false;let isHovering=false;let lastMouseX=0;let lastMouseY=0;let lastDragTime=0;let animationFrameId=null;// Delta time tracking for frame-rate independent animation\nlet lastFrameTime=performance.now();const targetDeltaTime=1e3/60// Reference delta time (60 FPS = 16.67ms)\n;// Lerp factor: smoothing 0 = instant (factor=1), smoothing 1 = very smooth (factor=0.03)\nconst lerpFactor=smoothing===0?1:mapLinear(smoothing,0,1,.4,.03);// Velocity decay for throw: higher smoothing = more momentum\nconst velocityDecay=mapLinear(smoothing,0,1,.7,.96);// Animation loop - uses cached isCanvas value for performance\nconst animate=()=>{// Continue with animation (component should always render to show changes)\nanimateCore();};// Core animation logic - uses delta time for frame-rate independent animation\nconst animateCore=()=>{const now=performance.now();// Calculate delta time and normalize it relative to 60 FPS\nconst deltaTime=now-lastFrameTime;lastFrameTime=now;const deltaFactor=deltaTime/targetDeltaTime;let needsRender=false;const threshold=.01;// Auto-rotation: add to target when not dragging and not hovering\n// In canvas mode, only rotate when preview is on\nconst canAutoRotate=isCanvas?previewRef.current:true;if(!isDragging&&rotationSpeed!==0&&canAutoRotate&&(!stopOnHover||!isHovering)){targetRotation.x+=rotationSpeed*.1*deltaFactor;}// Apply throw velocity when not dragging\nif(!isDragging&&smoothing>0){if(Math.abs(velocity.x)>threshold||Math.abs(velocity.y)>threshold){targetRotation.x+=velocity.x*deltaFactor;targetRotation.y+=velocity.y*deltaFactor;targetRotation.y=Math.max(-Math.PI/2,Math.min(Math.PI/2,targetRotation.y));const decayFactor=Math.pow(velocityDecay,deltaFactor);velocity.x*=decayFactor;velocity.y*=decayFactor;}else{velocity.x=0;velocity.y=0;}}// Lerp current rotation toward target\nconst dx=targetRotation.x-rotation.x;const dy=targetRotation.y-rotation.y;if(Math.abs(dx)>threshold||Math.abs(dy)>threshold||rotationSpeed!==0||isDragging){const timeLerpFactor=1-Math.pow(1-lerpFactor,deltaFactor);rotation.x+=dx*timeLerpFactor;rotation.y+=dy*timeLerpFactor;rotation.y=Math.max(-Math.PI/2,Math.min(Math.PI/2,rotation.y));needsRender=true;}// Apply rotation to group BEFORE cursor interaction (so matrix is current)\nparticlesGroup.rotation.y=rotation.x;particlesGroup.rotation.x=rotation.y;particlesGroup.updateMatrixWorld(true);// Get container and camera info for both cursor interaction and color updates\n// Use canvas dimensions for projection since mouse coordinates are in canvas space\nconst currentContainerWidth=containerRef.current?.clientWidth||400;const currentContainerHeight=containerRef.current?.clientHeight||400;const currentCanvasWidth=currentContainerWidth*canvasOverflowMultiplier;const currentCanvasHeight=currentContainerHeight*canvasOverflowMultiplier;const currentCamera=cameraRef.current;const cursorRadiusSquared=cursorRadius*cursorRadius;// Apply cursor repulsion to particles (only if enabled)\nif(cursorConfig.enabled&&baseParticlePositionsRef.current.length>0){for(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];// Apply repulsion force only if cursor is present and near particle\nif(mouseRef.current){const mouse=mouseRef.current;// Calculate current position: base position + displacement, then rotated by group\nconst currentLocalPos=new Vector3;currentLocalPos.copy(basePos);currentLocalPos.add(displacement);// Transform to world space (apply group rotation)\nconst worldPos=new Vector3;worldPos.copy(currentLocalPos);worldPos.applyMatrix4(particlesGroup.matrixWorld);// Project 3D position to 2D screen space (using canvas dimensions)\nconst projected=worldPos.clone().project(currentCamera);const screenX=(projected.x*.5+.5)*currentCanvasWidth;const screenY=(-projected.y*.5+.5)*currentCanvasHeight;// Calculate distance from cursor to particle in screen space\nconst dx=mouse.x-screenX;const dy=mouse.y-screenY;const distanceSquared=dx*dx+dy*dy;if(distanceSquared<cursorRadiusSquared&&distanceSquared>0){// Apply repulsion force\nconst distance=Math.sqrt(distanceSquared);const force=(cursorRadius-distance)/cursorRadius;const angle=Math.atan2(dy,dx);// Get camera's right and up vectors in world space\nconst cameraRight=new Vector3;const cameraUp=new Vector3;cameraRight.setFromMatrixColumn(currentCamera.matrixWorld,0).normalize();cameraUp.setFromMatrixColumn(currentCamera.matrixWorld,1).normalize();// Calculate repulsion direction in screen space\nconst repulsion2D=force*cursorStrength*speed*deltaFactor;const repulsionX=-Math.cos(angle)*repulsion2D*.01;const repulsionY=Math.sin(angle)*repulsion2D*.01;// Convert screen space repulsion to world space, then to local space\nconst worldRepulsion=new Vector3;worldRepulsion.addScaledVector(cameraRight,repulsionX);worldRepulsion.addScaledVector(cameraUp,repulsionY);// Transform world repulsion back to local space (inverse of group rotation)\nconst localRepulsion=new Vector3;localRepulsion.copy(worldRepulsion);const inverseGroupMatrix=new Matrix4;inverseGroupMatrix.copy(particlesGroup.matrixWorld).invert();localRepulsion.applyMatrix4(inverseGroupMatrix);// Apply to displacement\ndisplacement.add(localRepulsion);}}// Always apply friction and return force to decay displacements (even when cursor is gone)\nconst frictionFactor=Math.pow(CURSOR_PHYSICS.FRICTION,deltaFactor);const returnForce=CURSOR_PHYSICS.RETURN_FORCE*speed*deltaFactor;// Apply friction (multiplicative decay)\ndisplacement.multiplyScalar(frictionFactor);// Apply return force (decay towards zero)\ndisplacement.multiplyScalar(1-returnForce);}}// Apply scatter velocities to displacements (spring-like effect)\nif(particleScatterVelocitiesRef.current.length>0){for(let i=0;i<particleScatterVelocitiesRef.current.length;i++){const scatterVelocity=particleScatterVelocitiesRef.current[i];const displacement=particleDisplacementsRef.current[i];// Apply velocity to displacement (frame-rate independent)\ndisplacement.addScaledVector(scatterVelocity,deltaFactor*.1);// Apply friction to scatter velocity (decay over time)\nconst scatterFriction=Math.pow(.95,deltaFactor);scatterVelocity.multiplyScalar(scatterFriction);// Apply return force to scatter velocity (spring back)\nconst scatterReturnForce=CURSOR_PHYSICS.RETURN_FORCE*speed*deltaFactor;scatterVelocity.multiplyScalar(1-scatterReturnForce);}}// Update particle positions and colors (ALWAYS, not just when cursor is enabled)\nconst particleShape=particlesConfig.shape||\"sphere\";if(particleShape===\"sphere\"&&particlesRef.current){// Update InstancedMesh positions\nconst matrix=new Matrix4;for(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];const finalPos=new Vector3;finalPos.copy(basePos);finalPos.add(displacement);matrix.setPosition(finalPos.x,finalPos.y,finalPos.z);particlesRef.current.setMatrixAt(i,matrix);}particlesRef.current.instanceMatrix.needsUpdate=true;}else if(particleShape===\"cube\"&&particlesRef.current){// Update Points geometry positions and colors\nconst positions=particlesRef.current.geometry.attributes.position;for(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];const finalPos=new Vector3;finalPos.copy(basePos);finalPos.add(displacement);positions.setXYZ(i,finalPos.x,finalPos.y,finalPos.z);}positions.needsUpdate=true;}needsRender=true;// Render every frame\nif(needsRender||rotationSpeed!==0||isDragging){renderer.render(scene,camera);}// Continue loop if animation is needed\nconst hasVelocity=Math.abs(velocity.x)>threshold||Math.abs(velocity.y)>threshold;const hasLerpDelta=Math.abs(dx)>threshold||Math.abs(dy)>threshold;// Check if cursor interaction is active (any non-zero displacements) - only if enabled\nconst hasCursorInteraction=cursorConfig.enabled&&particleDisplacementsRef.current.some(disp=>Math.abs(disp.x)>threshold||Math.abs(disp.y)>threshold||Math.abs(disp.z)>threshold);// In canvas mode, always continue animation so component is visible\n// In preview/live mode, only continue if there's actual animation\nconst canAutoRotateForContinue=isCanvas?previewRef.current:true;const needsContinue=isCanvas||// Always run in canvas mode for visibility\nisDragging||rotationSpeed!==0&&canAutoRotateForContinue||hasVelocity||hasLerpDelta||hasCursorInteraction;if(needsContinue){animationFrameId=requestAnimationFrame(animate);animationFrameRef.current=animationFrameId;}else{animationFrameId=null;animationFrameRef.current=null;}};// Store animate function in ref for preview effect to use\nanimateFnRef.current=animate;// Start animation loop - resets lastFrameTime to prevent delta jump\nconst startAnimation=()=>{if(animationFrameId===null){lastFrameTime=performance.now();animationFrameId=requestAnimationFrame(animate);animationFrameRef.current=animationFrameId;}};// Store startAnimation in ref for preview effect to use\nstartAnimationRef.current=startAnimation;// Always start animation to ensure component is visible and interactive\n// In canvas mode, rotation will be controlled by preview state\nstartAnimation();// Mouse interaction handlers (only if drag is enabled)\nconst handleMouseDown=event=>{if(!drag)return;isDragging=true;velocity.x=0;velocity.y=0;lastMouseX=event.clientX;lastMouseY=event.clientY;lastDragTime=performance.now();startAnimation();const handleMouseMove=moveEvent=>{const currentTime=performance.now();const timeSinceLastMove=currentTime-lastDragTime;const sensitivity=mapLinear(dragSpeed,0,1,.001,.02);const dx=moveEvent.clientX-lastMouseX;const dy=moveEvent.clientY-lastMouseY;targetRotation.x+=dx*sensitivity;targetRotation.y+=dy*sensitivity;targetRotation.y=Math.max(-Math.PI/2,Math.min(Math.PI/2,targetRotation.y));// Track velocity for throw - TIME NORMALIZED\nif(timeSinceLastMove>0){const timeNormalization=targetDeltaTime/timeSinceLastMove;velocity.x=dx*sensitivity*.3*timeNormalization;velocity.y=dy*sensitivity*.3*timeNormalization;}lastMouseX=moveEvent.clientX;lastMouseY=moveEvent.clientY;lastDragTime=currentTime;};const handleMouseUp=()=>{document.removeEventListener(\"mousemove\",handleMouseMove);document.removeEventListener(\"mouseup\",handleMouseUp);isDragging=false;};document.addEventListener(\"mousemove\",handleMouseMove);document.addEventListener(\"mouseup\",handleMouseUp);};if(drag){canvas.addEventListener(\"mousedown\",handleMouseDown);}// Handle hover to stop auto-rotation (only when cursor is over the sphere)\nconst handleMouseMoveHover=event=>{if(!stopOnHover)return;// Check if mouse is over the logical container area (not the extended canvas)\nconst containerRect=container.getBoundingClientRect();const mouseX=event.clientX-containerRect.left;const mouseY=event.clientY-containerRect.top;isHovering=mouseX>=0&&mouseX<=containerRect.width&&mouseY>=0&&mouseY<=containerRect.height;};if(stopOnHover){canvas.addEventListener(\"mousemove\",handleMouseMoveHover);}// Track cursor position for particle repulsion\n// Mouse coordinates need to be relative to the container center, then offset to canvas coordinates\nconst handleMouseMoveCursor=event=>{const containerRect=container.getBoundingClientRect();const mouseXInContainer=event.clientX-containerRect.left;const mouseYInContainer=event.clientY-containerRect.top;// Only track if mouse is over the logical container area\nif(mouseXInContainer>=0&&mouseXInContainer<=containerRect.width&&mouseYInContainer>=0&&mouseYInContainer<=containerRect.height){// Convert container coordinates to canvas coordinates (add offset)\nmouseRef.current={x:mouseXInContainer+offsetX,y:mouseYInContainer+offsetY};// Start animation if not running (needed for cursor interaction to work)\nstartAnimation();}else{mouseRef.current=null;}};const handleMouseLeaveCursor=()=>{mouseRef.current=null;};// Track touch position for particle repulsion\nconst handleTouchMove=event=>{event.preventDefault()// Prevent scrolling\n;const containerRect=container.getBoundingClientRect();const touch=event.touches[0];if(touch){const touchXInContainer=touch.clientX-containerRect.left;const touchYInContainer=touch.clientY-containerRect.top;// Only track if touch is over the logical container area\nif(touchXInContainer>=0&&touchXInContainer<=containerRect.width&&touchYInContainer>=0&&touchYInContainer<=containerRect.height){// Convert container coordinates to canvas coordinates (add offset)\nmouseRef.current={x:touchXInContainer+offsetX,y:touchYInContainer+offsetY};// Start animation if not running (needed for cursor interaction to work)\nstartAnimation();}else{mouseRef.current=null;}}};const handleTouchEnd=()=>{mouseRef.current=null;};// Click scatter effect handler\nconst handleClick=event=>{if(!cursorConfig.enabled||!cursorConfig.clickForce)return;// Update matrix to ensure it's current\nparticlesGroup.updateMatrixWorld(true);const containerRect=container.getBoundingClientRect();// Convert container coordinates to canvas coordinates (add offset)\nconst clickX=event.clientX-containerRect.left+offsetX;const clickY=event.clientY-containerRect.top+offsetY;const cursorRadiusSquared=cursorRadius*cursorRadius;const clickForce=cursorConfig.clickForce||10;const clickContainerWidth=containerRef.current?.clientWidth||400;const clickContainerHeight=containerRef.current?.clientHeight||400;const clickCanvasWidth=clickContainerWidth*canvasOverflowMultiplier;const clickCanvasHeight=clickContainerHeight*canvasOverflowMultiplier;const currentCamera=cameraRef.current;// Convert click point from screen space to 3D world space\n// Normalize click coordinates to NDC (Normalized Device Coordinates) using canvas dimensions\nconst ndcX=clickX/clickCanvasWidth*2-1;const ndcY=1-clickY/clickCanvasHeight*2;// Create a ray from camera through the click point\nconst clickRay=new Vector3(ndcX,ndcY,.5);clickRay.unproject(currentCamera);// Get camera position in world space\nconst cameraWorldPos=new Vector3;cameraWorldPos.setFromMatrixPosition(currentCamera.matrixWorld);// Calculate direction from camera through click point\nconst clickDirection=new Vector3;clickDirection.subVectors(clickRay,cameraWorldPos).normalize();// Estimate click point in world space (at sphere distance)\nconst sphereCenter=new Vector3(0,0,0);const cameraToCenter=new Vector3;cameraToCenter.subVectors(sphereCenter,cameraWorldPos);const sphereDistance=cameraToCenter.length();const clickWorldPos=new Vector3;clickWorldPos.copy(cameraWorldPos);clickWorldPos.addScaledVector(clickDirection,sphereDistance);// Apply scatter velocity to particles (velocity-based, radial in 3D)\nfor(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];const scatterVelocity=particleScatterVelocitiesRef.current[i];// Calculate current position: base position + displacement, then rotated by group\nconst currentLocalPos=new Vector3;currentLocalPos.copy(basePos);currentLocalPos.add(displacement);// Transform to world space (apply group rotation)\nconst worldPos=new Vector3;worldPos.copy(currentLocalPos);worldPos.applyMatrix4(particlesGroup.matrixWorld);// Project 3D position to 2D screen space for distance check (using canvas dimensions)\nconst projected=worldPos.clone().project(currentCamera);const screenX=(projected.x*.5+.5)*clickCanvasWidth;const screenY=(-projected.y*.5+.5)*clickCanvasHeight;// Calculate distance from click point to particle in screen space\nconst dx=clickX-screenX;const dy=clickY-screenY;const distanceSquared=dx*dx+dy*dy;if(distanceSquared<cursorRadiusSquared&&distanceSquared>0){// Calculate scatter force based on screen distance\nconst screenDistance=Math.sqrt(distanceSquared);const force=(cursorRadius-screenDistance)/cursorRadius*clickForce;// Calculate radial direction in 3D: from click point to particle\nconst radialDirection=new Vector3;radialDirection.subVectors(worldPos,clickWorldPos);const radialDistance=radialDirection.length();if(radialDistance>.001){radialDirection.normalize();// Apply scatter velocity along radial direction (in world space)\nconst scatterMagnitude=force*.5// Velocity multiplier\n;const worldScatter=new Vector3;worldScatter.copy(radialDirection);worldScatter.multiplyScalar(scatterMagnitude);// Transform world scatter back to local space (inverse of group rotation)\nconst localScatter=new Vector3;localScatter.copy(worldScatter);const inverseGroupMatrix=new Matrix4;inverseGroupMatrix.copy(particlesGroup.matrixWorld).invert();localScatter.applyMatrix4(inverseGroupMatrix);// Set scatter velocity (adds to existing velocity for momentum)\nscatterVelocity.add(localScatter);}}}// Start animation to ensure scatter effect is visible\nstartAnimation();};// Touch scatter effect handler\nconst handleTouchStart=event=>{if(!cursorConfig.enabled||!cursorConfig.clickForce)return;event.preventDefault();// Update matrix to ensure it's current\nparticlesGroup.updateMatrixWorld(true);const containerRect=container.getBoundingClientRect();const touch=event.touches[0];if(!touch)return;// Convert container coordinates to canvas coordinates (add offset)\nconst touchX=touch.clientX-containerRect.left+offsetX;const touchY=touch.clientY-containerRect.top+offsetY;const cursorRadiusSquared=cursorRadius*cursorRadius;const clickForce=cursorConfig.clickForce||10;const touchContainerWidth=containerRef.current?.clientWidth||400;const touchContainerHeight=containerRef.current?.clientHeight||400;const touchCanvasWidth=touchContainerWidth*canvasOverflowMultiplier;const touchCanvasHeight=touchContainerHeight*canvasOverflowMultiplier;const currentCamera=cameraRef.current;// Convert touch point from screen space to 3D world space\n// Normalize touch coordinates to NDC (Normalized Device Coordinates) using canvas dimensions\nconst ndcX=touchX/touchCanvasWidth*2-1;const ndcY=1-touchY/touchCanvasHeight*2;// Create a ray from camera through the touch point\nconst touchRay=new Vector3(ndcX,ndcY,.5);touchRay.unproject(currentCamera);// Get camera position in world space\nconst cameraWorldPos=new Vector3;cameraWorldPos.setFromMatrixPosition(currentCamera.matrixWorld);// Calculate direction from camera through touch point\nconst touchDirection=new Vector3;touchDirection.subVectors(touchRay,cameraWorldPos).normalize();// Estimate touch point in world space (at sphere distance)\nconst sphereCenter=new Vector3(0,0,0);const cameraToCenter=new Vector3;cameraToCenter.subVectors(sphereCenter,cameraWorldPos);const sphereDistance=cameraToCenter.length();const touchWorldPos=new Vector3;touchWorldPos.copy(cameraWorldPos);touchWorldPos.addScaledVector(touchDirection,sphereDistance);// Apply scatter velocity to particles (velocity-based, radial in 3D)\nfor(let i=0;i<baseParticlePositionsRef.current.length;i++){const basePos=baseParticlePositionsRef.current[i];const displacement=particleDisplacementsRef.current[i];const scatterVelocity=particleScatterVelocitiesRef.current[i];// Calculate current position: base position + displacement, then rotated by group\nconst currentLocalPos=new Vector3;currentLocalPos.copy(basePos);currentLocalPos.add(displacement);// Transform to world space (apply group rotation)\nconst worldPos=new Vector3;worldPos.copy(currentLocalPos);worldPos.applyMatrix4(particlesGroup.matrixWorld);// Project 3D position to 2D screen space for distance check (using canvas dimensions)\nconst projected=worldPos.clone().project(currentCamera);const screenX=(projected.x*.5+.5)*touchCanvasWidth;const screenY=(-projected.y*.5+.5)*touchCanvasHeight;// Calculate distance from touch point to particle in screen space\nconst dx=touchX-screenX;const dy=touchY-screenY;const distanceSquared=dx*dx+dy*dy;if(distanceSquared<cursorRadiusSquared&&distanceSquared>0){// Calculate scatter force based on screen distance\nconst screenDistance=Math.sqrt(distanceSquared);const force=(cursorRadius-screenDistance)/cursorRadius*clickForce;// Calculate radial direction in 3D: from touch point to particle\nconst radialDirection=new Vector3;radialDirection.subVectors(worldPos,touchWorldPos);const radialDistance=radialDirection.length();if(radialDistance>.001){radialDirection.normalize();// Apply scatter velocity along radial direction (in world space)\nconst scatterMagnitude=force*.5// Velocity multiplier\n;const worldScatter=new Vector3;worldScatter.copy(radialDirection);worldScatter.multiplyScalar(scatterMagnitude);// Transform world scatter back to local space (inverse of group rotation)\nconst localScatter=new Vector3;localScatter.copy(worldScatter);const inverseGroupMatrix=new Matrix4;inverseGroupMatrix.copy(particlesGroup.matrixWorld).invert();localScatter.applyMatrix4(inverseGroupMatrix);// Set scatter velocity (adds to existing velocity for momentum)\nscatterVelocity.add(localScatter);}}}// Start animation to ensure scatter effect is visible\nstartAnimation();};// Only add cursor interaction event listeners if enabled\nif(cursorConfig.enabled){canvas.addEventListener(\"mousemove\",handleMouseMoveCursor);canvas.addEventListener(\"mouseleave\",handleMouseLeaveCursor);canvas.addEventListener(\"click\",handleClick);canvas.addEventListener(\"touchmove\",handleTouchMove,{passive:false});canvas.addEventListener(\"touchstart\",handleTouchStart,{passive:false});canvas.addEventListener(\"touchend\",handleTouchEnd);canvas.addEventListener(\"touchcancel\",handleTouchEnd);}// Resize handler\nconst handleResize=()=>{if(!containerRef.current||!cameraRef.current||!rendererRef.current)return;const newWidth=containerRef.current.clientWidth||containerRef.current.offsetWidth||400;const newHeight=containerRef.current.clientHeight||containerRef.current.offsetHeight||400;// Calculate new canvas dimensions with overflow\nconst newCanvasWidth=newWidth*canvasOverflowMultiplier;const newCanvasHeight=newHeight*canvasOverflowMultiplier;const newOffsetX=(newCanvasWidth-newWidth)/2;const newOffsetY=(newCanvasHeight-newHeight)/2;cameraRef.current.aspect=newCanvasWidth/newCanvasHeight// Use canvas aspect ratio\n;cameraRef.current.updateProjectionMatrix();// Update camera distance based on scale - ensure it stays outside sphere\nconst baseCameraDistance=3;const currentSphereRadius=1*scaleMultiplier;const cameraDistance=Math.max(baseCameraDistance,currentSphereRadius+1);cameraRef.current.position.z=cameraDistance;// Update canvas size and position\nrendererRef.current.setSize(newCanvasWidth,newCanvasHeight);const canvasEl=rendererRef.current.domElement;canvasEl.style.left=`-${newOffsetX}px`;canvasEl.style.top=`-${newOffsetY}px`;canvasEl.style.width=`${newCanvasWidth}px`;canvasEl.style.height=`${newCanvasHeight}px`;rendererRef.current.render(sceneRef.current,cameraRef.current);};// Canvas resize detection using zoom probe\nif(isCanvas&&typeof window!==\"undefined\"){const TICK_MS=250// throttle to 4Hz\n;const EPS_ZOOM=.001;const EPS_SIZE=.5;const EPS_ASPECT=.001;let rafId=0;const tick=now=>{const probe=zoomProbeRef.current;if(probe&&containerRef.current){const currentZoom=probe.getBoundingClientRect().width/20;const rect=containerRef.current.getBoundingClientRect();const cw=rect.width;const ch=rect.height;const aspect=cw/ch;const timeOk=!lastResizeRef.current.ts||(now||performance.now())-lastResizeRef.current.ts>=TICK_MS;const zoomChanged=Math.abs(currentZoom-lastResizeRef.current.zoom)>EPS_ZOOM;const sizeChanged=Math.abs(cw-lastResizeRef.current.w)>EPS_SIZE||Math.abs(ch-lastResizeRef.current.h)>EPS_SIZE;const aspectChanged=Math.abs(aspect-lastResizeRef.current.aspect)>EPS_ASPECT;if(timeOk&&(zoomChanged||sizeChanged||aspectChanged)){lastResizeRef.current={ts:now||performance.now(),zoom:currentZoom,w:cw,h:ch,aspect};handleResize();}}rafId=requestAnimationFrame(tick);};rafId=requestAnimationFrame(tick);// Cleanup for canvas mode\nreturn()=>{cancelAnimationFrame(rafId);if(animationFrameId!==null){cancelAnimationFrame(animationFrameId);}if(animationFrameRef.current){cancelAnimationFrame(animationFrameRef.current);}if(drag){canvas.removeEventListener(\"mousedown\",handleMouseDown);}if(stopOnHover){canvas.removeEventListener(\"mousemove\",handleMouseMoveHover);}// Remove cursor interaction event listeners if they were added\nif(cursorConfig.enabled){canvas.removeEventListener(\"mousemove\",handleMouseMoveCursor);canvas.removeEventListener(\"mouseleave\",handleMouseLeaveCursor);canvas.removeEventListener(\"click\",handleClick);canvas.removeEventListener(\"touchmove\",handleTouchMove);canvas.removeEventListener(\"touchstart\",handleTouchStart);canvas.removeEventListener(\"touchend\",handleTouchEnd);canvas.removeEventListener(\"touchcancel\",handleTouchEnd);}if(rendererRef.current){rendererRef.current.dispose();if(containerRef.current&&canvas.parentNode){containerRef.current.removeChild(canvas);}}if(particlesRef.current){if(particlesRef.current.geometry){particlesRef.current.geometry.dispose();}if(particlesRef.current.material){if(Array.isArray(particlesRef.current.material)){particlesRef.current.material.forEach(mat=>mat.dispose());}else{particlesRef.current.material.dispose();}}}};}// Preview/Live: use ResizeObserver\nconst resizeObserver=new ResizeObserver(()=>handleResize());resizeObserver.observe(container);window.addEventListener(\"resize\",handleResize);// Cleanup for preview/live mode\nreturn()=>{resizeObserver.disconnect();window.removeEventListener(\"resize\",handleResize);if(animationFrameId!==null){cancelAnimationFrame(animationFrameId);}if(animationFrameRef.current){cancelAnimationFrame(animationFrameRef.current);}if(drag){canvas.removeEventListener(\"mousedown\",handleMouseDown);}if(stopOnHover){canvas.removeEventListener(\"mousemove\",handleMouseMoveHover);}// Remove cursor interaction event listeners if they were added\nif(cursorConfig.enabled){canvas.removeEventListener(\"mousemove\",handleMouseMoveCursor);canvas.removeEventListener(\"mouseleave\",handleMouseLeaveCursor);canvas.removeEventListener(\"click\",handleClick);canvas.removeEventListener(\"touchmove\",handleTouchMove);canvas.removeEventListener(\"touchstart\",handleTouchStart);canvas.removeEventListener(\"touchend\",handleTouchEnd);canvas.removeEventListener(\"touchcancel\",handleTouchEnd);}if(rendererRef.current){rendererRef.current.dispose();if(containerRef.current&&canvas.parentNode){containerRef.current.removeChild(canvas);}}if(particlesRef.current){if(particlesRef.current.geometry){particlesRef.current.geometry.dispose();}if(particlesRef.current.material){if(Array.isArray(particlesRef.current.material)){particlesRef.current.material.forEach(mat=>mat.dispose());}else{particlesRef.current.material.dispose();}}}};},[particlesCount,speed,smoothing,scale,stopOnHover,rotationDirection,dragSpeed,drag,particlesConfig,cursorConfig,cursorRadius,cursorStrength,sphereColor,rotationSpeed,scaleMultiplier,particleSize,isCanvas]);// Handle preview changes - restart animation loop when preview toggles (CANVAS MODE ONLY)\nconst previewForAnimation=isCanvas?preview:false;useEffect(()=>{if(!isCanvas)return;// Canvas mode only: If preview turned ON and animation is stopped, restart it\n// Use startAnimationRef to properly reset frame time and prevent delta jump\nif(preview&&startAnimationRef.current&&animationFrameRef.current===null){startAnimationRef.current();}},[previewForAnimation,isCanvas]);// Container styles\nconst containerStyle={...style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",overflow:\"visible\"};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"div\",{ref:zoomProbeRef,style:{position:\"absolute\",width:20,height:20,opacity:0,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"visible\"}})]});}// Property Controls\naddPropertyControls(ParticleSphereRefactor,{preview:{type:ControlType.Boolean,title:\"Preview\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},particlesCount:{type:ControlType.Number,title:\"Count\",min:100,max:1e4,step:10,defaultValue:4e3},rotationDirection:{type:ControlType.Enum,title:\"Rotation\",options:[\"anticlockwise\",\"clockwise\"],optionIcons:[\"direction-left\",\"direction-right\"],optionTitles:[\"Anticlockwise\",\"Clockwise\"],defaultValue:\"clockwise\",displaySegmentedControl:true},speed:{type:ControlType.Number,title:\"Speed\",min:.1,max:1,step:.1,defaultValue:.5},drag:{type:ControlType.Boolean,title:\"Drag\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},smoothing:{type:ControlType.Number,title:\"Smoothing\",min:0,max:1,step:.1,defaultValue:1,hidden:props=>!props.drag},dragSpeed:{type:ControlType.Number,title:\"Drag Speed\",min:0,max:1,step:.1,defaultValue:.5,hidden:props=>!props.drag},stopOnHover:{type:ControlType.Boolean,title:\"On Hover\",defaultValue:true,enabledTitle:\"Stop\",disabledTitle:\"Rotate\"},scale:{type:ControlType.Number,title:\"Scale\",min:0,max:1,step:.1,defaultValue:1},particles:{title:\"Particles\",type:ControlType.Object,controls:{shape:{type:ControlType.Enum,title:\"Shape\",options:[\"sphere\",\"cube\"],optionTitles:[\"Sphere\",\"Cube\"],defaultValue:\"sphere\"},scale:{type:ControlType.Number,title:\"Size\",min:.1,max:1,step:.1,defaultValue:.3}}},cursorConfig:{type:ControlType.Object,title:\"Cursor\",controls:{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:600,step:10,defaultValue:75,unit:\"px\"},strength:{type:ControlType.Number,title:\"Strength\",min:0,max:1,step:.1,defaultValue:1},clickForce:{type:ControlType.Number,title:\"Click Force\",min:0,max:10,step:1,defaultValue:5}}},sphereColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#ffffff\",description:\"More components at [Framer University](https://frameruni.link/cc).\"}});ParticleSphereRefactor.displayName=\"Particle Sphere\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ParticleSphereRefactor\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"500\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"500\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ParticlesSphere_prod.map"],"mappings":"6WACwG,SAAS,EAAoB,EAAO,CAAC,GAAG,CAAC,GAAQ,CAAC,EAAO,WAAW,MAAM,EAAE,OAAO,EAAO,IAAM,EAAM,EAAiB,KAAK,CAAM,EAAE,GAAG,CAAC,EAAM,OAAO,EAAO,IAAM,GAAU,EAAM,IAAI,GAAA,CAAI,KAAK,EAAsE,OAAjE,EAAS,WAAW,MAAM,EAAS,EAAoB,CAAQ,EAAS,GAAU,CAAO,CAAC,SAAS,GAAkB,EAAM,CAAmF,OAA/E,OAAO,GAAQ,UAAyB,CAAC,EAAM,WAAW,MAAM,EAAS,EAAa,EAAoB,CAAK,CAAE,CAC5hB,SAAS,GAAiB,EAAM,CAAC,GAAG,CAAC,GAAO,EAAM,KAAK,IAAI,GAAG,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAM,EAAI,EAAM,KAAK,EACrG,EAAU,EAAI,MAAM,4EAA4E,EAAE,GAAG,EAA4R,MAAM,CAAC,EAAhR,KAAK,IAAI,EAAE,KAAK,IAAI,IAAI,WAAW,EAAU,EAAE,CAAC,CAAC,EAAE,IAA+N,EAAnN,KAAK,IAAI,EAAE,KAAK,I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