{"version":3,"file":"VideoPosterFade.Cs_eZjI3.mjs","names":["useRef","useCallback","useState","useMemo","React.useRef","React.useState","React.useMemo","React.useCallback"],"sources":["https:/framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/I6H5ZhUPA8PwvfVPIGXQ/Video.js","https:/framerusercontent.com/modules/nFdaqxqDdF8i9TRTQUvb/S1YBvHkCWjtGBP2A0ikD/VideoPosterFade.js"],"sourcesContent":["// ⚠️⚠️⚠️⚠️⚠️\n// Edit these files in https://github.com/framer/FramerCodeComponents\n// ⚠️⚠️⚠️⚠️⚠️\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsInCurrentNavigationTarget,RenderTarget}from\"framer\";import{isMotionValue,useInView}from\"framer-motion\";import{borderRadiusControl,defaultEvents,useIsBrowserSafari,useIsOnCanvas,useOnEnter,useOnExit,useRadius,useRenderTarget}from\"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\";// https://framer.com/m/framer/default-utils.js@^0.45.0\nimport{memo,useCallback,useEffect,useMemo,useRef,useState}from\"react\";var ObjectFitType;(function(ObjectFitType){ObjectFitType[\"Fill\"]=\"fill\";ObjectFitType[\"Contain\"]=\"contain\";ObjectFitType[\"Cover\"]=\"cover\";ObjectFitType[\"None\"]=\"none\";ObjectFitType[\"ScaleDown\"]=\"scale-down\";})(ObjectFitType||(ObjectFitType={}));var SrcType;(function(SrcType){SrcType[\"Video\"]=\"Upload\";SrcType[\"Url\"]=\"URL\";})(SrcType||(SrcType={}));const defaultVideo=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\";// Reduce renders\nfunction getProps(props){const{width,height,topLeft,topRight,bottomRight,bottomLeft,id,children,...rest}=props;return rest;}/**\n * VIDEO\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 112\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n *\n * @framerComponentPresetProps borderRadius, backgroundColor\n */export function Video(props){const newProps=getProps(props);return /*#__PURE__*/_jsx(VideoMemo,{...newProps});}function usePlaybackControls(videoRef){const isInCurrentNavigationTarget=useIsInCurrentNavigationTarget();const requestingPlay=useRef(false);const isPlayingRef=useRef(false);const setProgress=useCallback(rawProgress=>{if(!videoRef.current)return;const newProgress=(rawProgress===1?.999:rawProgress)*videoRef.current.duration;const isAlreadySet=Math.abs(videoRef.current.currentTime-newProgress)<.1;if(videoRef.current.duration>0&&!isAlreadySet){videoRef.current.currentTime=newProgress;}},[]);const play=useCallback(()=>{const video=videoRef.current;if(!video)return;video.preload=\"auto\"// makes sure browsers don't throttle: https://html.spec.whatwg.org/multipage/media.html#:~:text=When%20the%20media%20resource%20is%20playing%2C%20hints%20to%20the%20user%20agent%20that%20bandwidth%20is%20to%20be%20considered%20scarce%2C%20e.g.%20suggesting%20throttling%20the%20download%20so%20that%20the%20media%20data%20is%20obtained%20at%20the%20slowest%20possible%20rate%20that%20still%20maintains%20consistent%20playback.\n;const isPlaying=video.currentTime>0&&video.onplaying&&!video.paused&&!video.ended&&video.readyState>=video.HAVE_CURRENT_DATA;if(!isPlaying&&video&&!requestingPlay.current&&isInCurrentNavigationTarget){requestingPlay.current=true;isPlayingRef.current=true;video.play().catch(e=>{})// It's likely fine, swallow error\n.finally(()=>requestingPlay.current=false);}},[]);const pause=useCallback(()=>{if(!videoRef.current||requestingPlay.current)return;videoRef.current.pause();isPlayingRef.current=false;},[]);return{play,pause,setProgress,isPlaying:isPlayingRef};}function useAutoplayBehavior({playingProp,muted,loop,playsinline,controls}){const[initialPlayingProp]=useState(playingProp);const[hasPlayingPropChanged,setHasPlayingPropChanged]=useState(false);if(playingProp!==initialPlayingProp&&!hasPlayingPropChanged){setHasPlayingPropChanged(true);}const behavesAsGif=// passing `playing === true` on mount indicates that the video should\n// autoplay, like a GIF\ninitialPlayingProp&&muted&&loop&&playsinline&&!controls&&// Some users of the <Video> component use it by wrapping it with\n// another smart component and adding their own controls on top. (The\n// controls use transitions to control the video: e.g., when clicking\n// the play button, the smart component will transition to a state with\n// <Video playing={true} />.) In this case, we don't want the video to\n// behave as a gif, as it will be weird if the video suddenly started\n// acting as such (and auto-pausing when leaving the viewport) as soon\n// as the site visitor mutes it and clicks “Play”.\n!hasPlayingPropChanged;let autoplay;if(behavesAsGif)autoplay=\"on-viewport\";else if(initialPlayingProp)autoplay=\"on-mount\";else autoplay=\"no-autoplay\";return autoplay;}const VideoMemo=/*#__PURE__*/memo(function VideoInner(props){const{// default props\nsrcType=\"URL\",srcUrl,srcFile=\"\",posterEnabled=false,controls=false,playing=true,loop=true,muted=true,playsinline=true,restartOnEnter=false,objectFit=\"cover\",backgroundColor=\"rgba(0,0,0,0)\",radius=0,volume=25,startTime:startTimeProp=0,poster,playing:playingProp,progress,onSeeked,onPause,onPlay,onEnd,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp}=props;const videoRef=useRef();const isSafari=useIsBrowserSafari();const wasPausedOnLeave=useRef(null);const wasEndedOnLeave=useRef(null);const isOnCanvas=useIsOnCanvas();const renderTarget=useRenderTarget();const isStaticRenderer=isOnCanvas||renderTarget===RenderTarget.export;const borderRadius=useRadius(props);// Hard-coding `autoplayBehavior` and `isInViewport` when on canvas as a\n// tiny perf optimization. isStaticRenderer won’t change through the lifecycle of\n// the component, so using these hooks conditionally should be safe\nconst autoplayBehavior=isStaticRenderer?\"no-autoplay\":useAutoplayBehavior({playingProp,muted,loop,playsinline,controls});const isInViewport=isStaticRenderer?true:useInView(videoRef);const isCloseToViewport=isStaticRenderer?false:useInView(videoRef,{margin:\"10%\",once:true});// Video elements behave oddly at 100% duration\nconst startTime=startTimeProp===100?99.9:startTimeProp;const{play,pause,setProgress,isPlaying}=usePlaybackControls(videoRef);// Pause/play via props\nuseEffect(()=>{if(isStaticRenderer)return;if(autoplayBehavior===\"on-viewport\")return;if(playingProp)play();else pause();},[autoplayBehavior,playingProp]);// Pause/play via viewport\nuseEffect(()=>{if(isStaticRenderer)return;// this also explicitly retries playing for videos that play on-mount, which could fail if they're not muted for example\nif(isInViewport&&playingProp&&autoplayBehavior!==\"no-autoplay\")play();if(autoplayBehavior!==\"on-viewport\")return;pause();},[autoplayBehavior,isInViewport,playingProp]);useEffect(()=>{if(!isOnCanvas||poster||posterEnabled||startTime||!videoRef.current)return;// forces a poster to show up when the video is in an iframe; this is needed when `poster` changes\nvideoRef.current.currentTime=.01;},[posterEnabled,poster,startTime]);/**\n     * The Video component has some effects that sync the video element with props\n     * like `startTime`, `progress`, etc. React calls these effects whenever these\n     * props change. However, it also calls them on the first mount, and this is\n     * troublesome – if we’re doing SSR, and the user changed the video state before\n     * the video was hydrated, the initial `useEffect` call will reset the video\n     * state. To avoid this, we use this flag.\n     */const isMountedAndReadyForProgressChanges=useRef(false);// Allow scrubbling via progress prop\n// 1) Handle cases when the progress prop itself changes\nuseEffect(()=>{if(!isMountedAndReadyForProgressChanges.current){isMountedAndReadyForProgressChanges.current=true;return;}const rawProgressValue=isMotionValue(progress)?progress.get():(progress??0)*.01;setProgress(// When the progress value exists (e.g. <Video startTime={10}\n// progress={50} />), we respect the `progress` value over\n// `startTime`, even if `startTime` changes. That’s because\n// `startTime` == start == changing it shouldn’t affect the current\n// progress\n(rawProgressValue??0)||// Then why fall back to `startTime` when `progress` doesn’t exist,\n// you might ask? Now, that’s for\n// - canvas UX: we want the video progress to change when the user\n//   is scrobbling the “Start Time” in component settings.\n// - backwards compatibility: maybe some users *are* scrobbling\n//   using `startTime` instead of `progress`? We don’t know, and it\n//   always supported it, so let’s not break it\n(startTime??0)/100);},[startTime,srcFile,srcUrl,progress]);// 2) Handle cases when the motion value inside the progress prop changes\nuseEffect(()=>{if(!isMotionValue(progress))return;return progress.on(\"change\",value=>setProgress(value));},[progress]);// (Prototyping) Checking if we need to play on navigation enter\nuseOnEnter(()=>{if(wasPausedOnLeave.current===null)return;if(videoRef.current){// if (restartOnEnter) setProgress(0)\nif(!wasEndedOnLeave&&loop||!wasPausedOnLeave.current)play();}});// (Prototyping) Pausing & saving playing state on navigation exit\nuseOnExit(()=>{if(videoRef.current){wasEndedOnLeave.current=videoRef.current.ended;wasPausedOnLeave.current=videoRef.current.paused;pause();}});const src=useMemo(()=>{let fragment=\"\";// if (\n//     startTime > 0 &&\n//     videoRef.current &&\n//     !isNaN(videoRef.current.duration) &&\n//     !isStaticRenderer\n// ) {\n//     console.log(startTime, videoRef.current.duration)\n//     fragment = `#t=${startTime * videoRef.current.duration}`\n// }\nif(srcType===\"URL\")return srcUrl+fragment;if(srcType===\"Upload\")return srcFile+fragment;},[srcType,srcFile,srcUrl,startTime]);// Autoplay via JS to work in Safari\nuseEffect(()=>{if(isSafari&&videoRef.current&&autoplayBehavior===\"on-mount\"){setTimeout(()=>play(),50);}},[]);// Volume Control\nuseEffect(()=>{if(videoRef.current&&!muted)videoRef.current.volume=(volume??0)/100;},[volume]);// When video is ready, set start-time, then autoplay if needed\nconst handleReady=()=>{const video=videoRef.current;if(!video)return;if(video.currentTime<.3&&startTime>0)setProgress((startTime??0)*.01);if(// when the component updates (e.g. only srcFile/url changes), and the video was already playing, keep playing\nisPlaying.current||autoplayBehavior===\"on-mount\"||playingProp&&autoplayBehavior===\"on-viewport\"&&isInViewport)play();};return /*#__PURE__*/_jsx(\"video\",{onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,src:src,loop:loop,ref:videoRef,onSeeked:e=>onSeeked?.(e),onPause:e=>onPause?.(e),onPlay:e=>onPlay?.(e),onEnded:e=>onEnd?.(e),autoPlay:isPlaying.current||autoplayBehavior===\"on-mount\"||playingProp&&autoplayBehavior===\"on-viewport\"&&isInViewport,preload:isPlaying.current?\"auto\":isStaticRenderer&&!poster?\"metadata\":autoplayBehavior!==\"on-mount\"&&!isCloseToViewport?\"none\":// `autoplay` overrides this too\n\"metadata\",poster:posterEnabled&&!srcFile&&srcUrl===defaultVideo?\"https://framerusercontent.com/images/5ILRvlYXf72kHSVHqpa3snGzjU.jpg\":posterEnabled&&poster?poster:undefined,onLoadedData:handleReady,controls:controls,muted:isStaticRenderer?true:muted,playsInline:playsinline,style:{cursor:!!onClick?\"pointer\":\"auto\",width:\"100%\",height:\"100%\",borderRadius,display:\"block\",objectFit:objectFit,backgroundColor:backgroundColor,objectPosition:\"50% 50%\"}});});Video.displayName=\"Video\";function capitalizeFirstLetter(value){return value.charAt(0).toUpperCase()+value.slice(1);}export function titleCase(value){const groups=value.match(/[A-Z]{2,}|[A-Z][a-z]+|[a-z]+|[A-Z]|\\d+/gu)||[];return groups.map(capitalizeFirstLetter).join(\" \");}const objectFitOptions=[\"cover\",\"fill\",\"contain\",\"scale-down\",\"none\"];addPropertyControls(Video,{srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"URL\",\"Upload\"]},srcUrl:{type:ControlType.String,title:\"URL\",defaultValue:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",hidden(props){return props.srcType===\"Upload\";}},srcFile:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"mp4\",\"webm\"],hidden(props){return props.srcType===\"URL\";}},...borderRadiusControl,loop:{type:ControlType.Boolean,title:\"Loop\",enabledTitle:\"Yes\",disabledTitle:\"No\"},posterEnabled:{type:ControlType.Boolean,title:\"Poster\",enabledTitle:\"Yes\",disabledTitle:\"No\",hiddenWhenUnset:true,defaultValue:true},poster:{type:ControlType.Image,title:\"Image\",hidden:({posterEnabled})=>!posterEnabled,description:\"We recommend adding a poster. [Learn more](https://www.framer.com/help/articles/how-are-videos-optimized-in-framer/).\"},controls:{type:ControlType.Boolean,title:\"Controls\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false,hiddenWhenUnset:true},muted:{type:ControlType.Boolean,title:\"Muted\",enabledTitle:\"Yes\",disabledTitle:\"No\",hiddenWhenUnset:true},objectFit:{type:ControlType.Enum,title:\"Fit\",options:objectFitOptions,optionTitles:objectFitOptions.map(titleCase),hiddenWhenUnset:true},playing:{type:ControlType.Boolean,title:\"Playing\",enabledTitle:\"Yes\",disabledTitle:\"No\",hiddenWhenUnset:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0,0,0,0)\"},startTime:{title:\"Start Time\",type:ControlType.Number,min:0,max:100,step:.1,unit:\"%\",hiddenWhenUnset:true},// restartOnEnter: {\n//     type: ControlType.Boolean,\n//     title: \"On ReEnter\",\n//     enabledTitle: \"Restart\",\n//     disabledTitle: \"Resume\",\n// },\nvolume:{type:ControlType.Number,max:100,min:0,unit:\"%\",hidden:({muted})=>muted,defaultValue:25,hiddenWhenUnset:true},onEnd:{type:ControlType.EventHandler},onSeeked:{type:ControlType.EventHandler},onPause:{type:ControlType.EventHandler},onPlay:{type:ControlType.EventHandler},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"VideoProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"titleCase\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Video\":{\"type\":\"reactComponent\",\"name\":\"Video\",\"slots\":[],\"annotations\":{\"framerComponentPresetProps\":\"borderRadius, backgroundColor\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"112\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video.map","// Request: Create a code override named withPosterFade for Framer's Video component that keeps a poster image as an overlay and fades it out smoothly (~0.5s ease) once playback actually starts, while preserving layout/props behavior and supporting SSR/canvas/live.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";function mapFitToObjectFit(fit){const normalized=(fit||\"Cover\").toLowerCase();if(normalized===\"contain\")return\"contain\";if(normalized===\"fill\")return\"fill\";if(normalized===\"none\")return\"none\";if(normalized===\"scale-down\"||normalized===\"scaledown\")return\"scale-down\";return\"cover\";}function resolvePosterImage(image){if(!image)return undefined;if(typeof image===\"string\"){return image.length>0?{src:image}:undefined;}if(typeof image.src===\"string\"&&image.src.length>0){return{src:image.src,srcSet:image.srcSet};}if(typeof image.url===\"string\"&&image.url.length>0){return{src:image.url,srcSet:image.srcSet};}return undefined;}function resolvePosterFromProps(props){const fromImage=resolvePosterImage(props.image);if(fromImage?.src)return fromImage;const posterImageValue=props.posterImage;const fromPosterImage=resolvePosterImage(posterImageValue);if(fromPosterImage?.src)return fromPosterImage;const posterValue=props.poster;if(typeof posterValue===\"string\"){return posterValue.length>0?{src:posterValue}:undefined;}if(posterValue&&typeof posterValue===\"object\"){return resolvePosterImage(posterValue);}return undefined;}function getSizingStyle(style){if(!style)return{};return{width:style.width,height:style.height,minWidth:style.minWidth,minHeight:style.minHeight,maxWidth:style.maxWidth,maxHeight:style.maxHeight,flex:style.flex,aspectRatio:style.aspectRatio};}export function withPosterFade(Component){return /*#__PURE__*/React.forwardRef(function WithPosterFade(props,ref){const wrapperRef=React.useRef(null);const videoRef=React.useRef(null);const[faded,setFaded]=React.useState(false);const[resolvedPosterUrl,setResolvedPosterUrl]=React.useState(undefined);const[resolvedPosterSrcSet,setResolvedPosterSrcSet]=React.useState(undefined);const posterImage=React.useMemo(()=>resolvePosterFromProps(props),[props]);const objectFit=React.useMemo(()=>mapFitToObjectFit(props.fit),[props.fit]);const isPosterEnabled=props.poster!==false&&Boolean(resolvedPosterUrl);const showPoster=isPosterEnabled&&!faded;const setPosterFaded=React.useCallback(nextFaded=>{React.startTransition(()=>{setFaded(prev=>prev===nextFaded?prev:nextFaded);});},[]);const setPosterSource=React.useCallback((src,srcSet)=>{React.startTransition(()=>{setResolvedPosterUrl(prev=>prev===src?prev:src);setResolvedPosterSrcSet(prev=>prev===srcSet?prev:srcSet);});},[]);const extractPosterFromDom=React.useCallback(()=>{const wrapper=wrapperRef.current;if(!wrapper)return;const video=wrapper.querySelector(\"video\");if(video instanceof HTMLVideoElement){const videoPoster=typeof video.poster===\"string\"&&video.poster||video.getAttribute(\"poster\")||undefined;if(videoPoster){setPosterSource(videoPoster,undefined);return;}}const image=wrapper.querySelector(\"img\");if(image instanceof HTMLImageElement){const imageSrc=image.currentSrc||image.src||undefined;if(imageSrc){setPosterSource(imageSrc,image.srcset||undefined);}}},[setPosterSource]);React.useEffect(()=>{if(posterImage?.src){setPosterSource(posterImage.src,posterImage.srcSet);return;}extractPosterFromDom();},[extractPosterFromDom,posterImage?.src,posterImage?.srcSet,setPosterSource]);React.useEffect(()=>{setPosterFaded(false);},[isPosterEnabled,resolvedPosterUrl,setPosterFaded]);React.useEffect(()=>{const wrapper=wrapperRef.current;if(!wrapper)return;let observer=null;let detachListeners=null;let rafId=0;const attachToVideo=video=>{if(videoRef.current===video)return;if(detachListeners){detachListeners();detachListeners=null;}if(rafId){cancelAnimationFrame(rafId);rafId=0;}videoRef.current=video;const shouldFadeNow=()=>{return!video.paused&&!video.ended&&(video.currentTime>0||video.readyState>=3);};const onPlaying=()=>{setPosterFaded(true);};const onTimeUpdate=()=>{if(video.currentTime>0){setPosterFaded(true);}};const onEmptied=()=>{setPosterFaded(false);};const onPause=()=>{if(video.currentTime===0){setPosterFaded(false);}};const onLoadStart=()=>{setPosterFaded(false);};video.addEventListener(\"playing\",onPlaying);video.addEventListener(\"timeupdate\",onTimeUpdate);video.addEventListener(\"emptied\",onEmptied);video.addEventListener(\"pause\",onPause);video.addEventListener(\"loadstart\",onLoadStart);if(shouldFadeNow()){setPosterFaded(true);}const pollStartedAt=Date.now();const pollPlayback=()=>{if(shouldFadeNow()){setPosterFaded(true);rafId=0;return;}if(Date.now()-pollStartedAt>=5e3){rafId=0;return;}rafId=requestAnimationFrame(pollPlayback);};rafId=requestAnimationFrame(pollPlayback);detachListeners=()=>{if(rafId){cancelAnimationFrame(rafId);rafId=0;}video.removeEventListener(\"playing\",onPlaying);video.removeEventListener(\"timeupdate\",onTimeUpdate);video.removeEventListener(\"emptied\",onEmptied);video.removeEventListener(\"pause\",onPause);video.removeEventListener(\"loadstart\",onLoadStart);};};const findAndAttach=()=>{const video=wrapper.querySelector(\"video\");if(video instanceof HTMLVideoElement){attachToVideo(video);}extractPosterFromDom();};findAndAttach();if(typeof MutationObserver!==\"undefined\"){observer=new MutationObserver(()=>{findAndAttach();});observer.observe(wrapper,{childList:true,subtree:true});}return()=>{if(observer)observer.disconnect();if(detachListeners)detachListeners();if(rafId){cancelAnimationFrame(rafId);rafId=0;}detachListeners=null;videoRef.current=null;};},[extractPosterFromDom,setPosterFaded]);const wrapperStyle=React.useMemo(()=>{return{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",...getSizingStyle(props.style)};},[props.style]);const overlayStyle=React.useMemo(()=>{return{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit,borderRadius:props.radius,pointerEvents:\"none\",zIndex:2,opacity:showPoster?1:0,willChange:\"opacity\",transition:\"opacity 0.6s ease\"};},[objectFit,props.radius,showPoster]);return /*#__PURE__*/_jsxs(\"div\",{ref:wrapperRef,style:wrapperStyle,children:[/*#__PURE__*/_jsx(Component,{ref:ref,...props}),isPosterEnabled?/*#__PURE__*/_jsx(\"img\",{src:resolvedPosterUrl,srcSet:resolvedPosterSrcSet,alt:\"\",\"aria-hidden\":\"true\",style:overlayStyle}):null]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withPosterFade\":{\"type\":\"reactHoc\",\"name\":\"withPosterFade\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoPosterFade.map"],"mappings":"0ZAKA,SAAS,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,UAAQ,WAAS,cAAY,aAAW,KAAG,WAAS,GAAG,GAAM,EAAM,OAAO,CAAK,CAUxH,SAAgB,EAAM,EAAM,CAAC,IAAM,EAAS,EAAS,CAAK,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,CAAQ,CAAC,CA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