{"version":3,"file":"shared-lib.DsVD3GjP.mjs","names":["useState","useRef","useCallback","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","le","_e","c","J","init_jsx_runtime","ce","de","init_framer_CKT6jEEQ","useIsStaticRenderer","useScrollPhysics","isStatic","root","rootRef","motion","finePointer","frame","target","lastWritten","lastTime","stop","limit","tick","dt","time","current","next","settled","onWheel","event","bodyOverflow","htmlOverflow","node","overflow","delta","nextTarget","onKey","createPageSnapshot","clone","source","originals","copies","copy","index","computed","original","i","property","clearHomeBackdrop","homeIndexBackdrop","homeIndexExpiry","useHomeIndexTransition","visibleReady","setVisibleReady","contentReady","setContentReady","route","attempts","check","cancelled","timer","resolve","ready","box","image","element","match","timedOut","result","HOME_INDEX_MARKER","path","capture","anchor","url","videos","video","still","snapshotHeader","stamp","animations","header","oldOpacity","headerOverlay","text","outgoingHeader","parent","originalPosition","originalZIndex","originalWillChange","originalTransform","slideDistance","slide","synchronizedStart","finished","finish","animation","onMotion","useHomePointerMotion","media","enabled","reduced","oldTranslate","oldScale","oldWillChange","x","y","vx","vy","tx","ty","active","restore","start","move","leave","preference","useBooksColumnAlignment","disposed","style","update","nav","books","link","left","width","schedule","observer","changes","createSitePolish","isStaticRenderer","background","done","readySince","decoded","decoding","started","reveal","items","now","entryAnimationRef","ioRef","videoStateRef","reduceMotionRef","setComposedRef","ref","reducedMotionQuery","onMotionPreferenceChange","STYLE_ID","ROOT_ATTR","ROOT_ATTR_VALUE","incomingSlide","viewportHeight","images","img","imgElement","loading","videoElement","hasAutoplayAttr","isPlayingNow","eligible","preload","rect","entry","entries","state","Component","props","withSitePolish","withHomePagePolish","withIndexPagePolish","init_SitePolishOverride","metadata","init_siteMetadata"],"sources":["https:/framerusercontent.com/modules/LdFmgfn3VY4ig5A8Zi9O/vkolcuu6CDgJJ4bpbMor/SitePolishOverride.js","https:/framerusercontent.com/modules/nJfMdqZtt8pf3caXjjNX/8vCi8NKBiyNBPUYfga0k/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useEffect,useLayoutEffect,useRef,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";const STYLE_ID=\"site-polish-reduced-motion-style\";const ROOT_ATTR=\"data-site-polish-root\";const ROOT_ATTR_VALUE=\"true\";/** Damped native document scrolling: no transformed page wrapper. */function useScrollPhysics(rootRef,isStatic){useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;const root=rootRef.current;if(!root)return;const motion=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const finePointer=window.matchMedia(\"(hover: hover) and (pointer: fine)\");let frame=0;let target=window.scrollY;let lastWritten=window.scrollY;let lastTime=0;const stop=()=>{if(frame)cancelAnimationFrame(frame);frame=0;lastTime=0;target=window.scrollY;lastWritten=target;};const limit=()=>Math.max(0,(document.scrollingElement?.scrollHeight||0)-window.innerHeight);const tick=time=>{frame=0;if(motion.matches||document.hidden||root.getClientRects().length===0){stop();return;}if(Math.abs(window.scrollY-lastWritten)>3){stop();return;}const dt=lastTime?Math.min(50,time-lastTime):16.67;lastTime=time;target=Math.min(limit(),Math.max(0,target));const current=window.scrollY;const next=current+(target-current)*(1-Math.exp(-dt/105));const settled=Math.abs(target-current)<.75;window.scrollTo({top:settled?target:next,left:window.scrollX,behavior:\"instant\"});lastWritten=window.scrollY;if(!settled)frame=requestAnimationFrame(tick);else lastTime=0;};const onWheel=event=>{if(event.defaultPrevented||!event.cancelable||event.ctrlKey||event.metaKey||!finePointer.matches||motion.matches||Math.abs(event.deltaX)>Math.abs(event.deltaY)||!event.deltaY||root.getBoundingClientRect().width===0)return;const bodyOverflow=getComputedStyle(document.body).overflowY;const htmlOverflow=getComputedStyle(document.documentElement).overflowY;if(bodyOverflow===\"hidden\"||htmlOverflow===\"hidden\"){stop();return;}let node=event.target instanceof HTMLElement?event.target:null;if(node?.closest(\"input, textarea, select, [contenteditable=true], iframe, [role=dialog], [data-native-scroll]\")){stop();return;}while(node&&node!==root&&node!==document.body){const overflow=getComputedStyle(node).overflowY;if(/(auto|scroll|overlay)/.test(overflow)&&node.scrollHeight>node.clientHeight+1){stop();return;}node=node.parentElement;}const delta=event.deltaY*(event.deltaMode===1?16:event.deltaMode===2?window.innerHeight:1);if(!frame){target=window.scrollY;lastWritten=target;}const nextTarget=Math.min(limit(),Math.max(0,target+delta));if(nextTarget===target&&!frame)return;event.preventDefault();target=nextTarget;if(!frame)frame=requestAnimationFrame(tick);};const onKey=event=>{if([\"ArrowDown\",\"ArrowUp\",\"PageDown\",\"PageUp\",\"Home\",\"End\",\" \",\"Escape\",\"Tab\"].includes(event.key))stop();};root.addEventListener(\"wheel\",onWheel,{passive:false});window.addEventListener(\"keydown\",onKey);window.addEventListener(\"pointerdown\",stop,{passive:true});window.addEventListener(\"touchstart\",stop,{passive:true});window.addEventListener(\"hashchange\",stop);window.addEventListener(\"popstate\",stop);document.addEventListener(\"visibilitychange\",stop);motion.addEventListener(\"change\",stop);return()=>{stop();root.removeEventListener(\"wheel\",onWheel);window.removeEventListener(\"keydown\",onKey);window.removeEventListener(\"pointerdown\",stop);window.removeEventListener(\"touchstart\",stop);window.removeEventListener(\"hashchange\",stop);window.removeEventListener(\"popstate\",stop);document.removeEventListener(\"visibilitychange\",stop);motion.removeEventListener(\"change\",stop);};},[isStatic,rootRef]);}/** Freeze rendered styles so a transition layer doesn't depend on route-scoped CSS. */function createPageSnapshot(source){const clone=source.cloneNode(true);const originals=[source,...Array.from(source.querySelectorAll(\"*\"))];const copies=[clone,...Array.from(clone.querySelectorAll(\"*\"))];originals.forEach((original,index)=>{const copy=copies[index];if(!copy||!(\"style\"in copy))return;const computed=getComputedStyle(original);for(let i=0;i<computed.length;i++){const property=computed[i];copy.style.setProperty(property,computed.getPropertyValue(property));}copy.style.setProperty(\"animation\",\"none\",\"important\");copy.style.setProperty(\"transition\",\"none\",\"important\");// Mount/scroll reveals must not leave content invisible in the frozen layer.\nif(computed.opacity===\"0\"&&computed.display!==\"none\"&&original.getAttribute(\"aria-hidden\")!==\"true\")copy.style.opacity=\"1\";copy.removeAttribute(\"id\");if(original instanceof HTMLImageElement&&copy instanceof HTMLImageElement){copy.loading=\"eager\";if(original.currentSrc){copy.removeAttribute(\"srcset\");copy.src=original.currentSrc;}}});return clone;}const HOME_INDEX_MARKER=\"home-index-transition\";let homeIndexBackdrop=null;let homeIndexExpiry=null;function clearHomeBackdrop(){homeIndexBackdrop?.remove();homeIndexBackdrop=null;if(homeIndexExpiry)clearTimeout(homeIndexExpiry);homeIndexExpiry=null;}function useHomeIndexTransition(rootRef,isStatic,route){const[visibleReady,setVisibleReady]=useState(false);const[contentReady,setContentReady]=useState(false);useEffect(()=>{if(isStatic||!route)return;let frame=0;let attempts=0;const check=()=>{const root=rootRef.current;if(root&&root.getBoundingClientRect().width>0&&getComputedStyle(root).display!==\"none\"){setVisibleReady(true);}else if(++attempts<120)frame=requestAnimationFrame(check);};check();return()=>cancelAnimationFrame(frame);},[isStatic,route,rootRef]);useEffect(()=>{if(isStatic||!visibleReady||route!==\"index\")return;const root=rootRef.current;if(!root)return;let cancelled=false;let timer;const prepareContent=async()=>{// Let Framer finish rendering children before collecting visible media.\nawait new Promise(resolve=>requestAnimationFrame(()=>requestAnimationFrame(()=>resolve())));if(cancelled)return;const pictures=Array.from(root.querySelectorAll(\"img\")).filter(image=>{const box=image.getBoundingClientRect();return box.top<window.innerHeight&&box.bottom>0&&box.width>0;});const ready=pictures.map(image=>{image.loading=\"eager\";return image.decode?image.decode().catch(()=>{}):Promise.resolve();});for(const element of Array.from(root.querySelectorAll(\"*\"))){const box=element.getBoundingClientRect();if(box.top>=window.innerHeight||box.bottom<=0||!box.width)continue;const background=getComputedStyle(element).backgroundImage;const match=background.match(/url\\([\"']?(.*?)[\"']?\\)/);if(!match?.[1])continue;ready.push(new Promise(resolve=>{const image=new Image;image.onload=()=>{image.decode?.().catch(()=>{}).then(resolve)||resolve();};image.onerror=()=>resolve();image.src=match[1];}));}if(document.fonts)ready.push(document.fonts.ready);// Never play an empty background slide if the network isn't ready.\nconst timedOut=new Promise(resolve=>{timer=setTimeout(()=>resolve(\"timeout\"),8e3);});const result=await Promise.race([Promise.all(ready),timedOut]);if(cancelled)return;if(result===\"timeout\"){try{sessionStorage.removeItem(HOME_INDEX_MARKER);}catch{}clearHomeBackdrop();}setContentReady(true);};void prepareContent();return()=>{cancelled=true;if(timer)clearTimeout(timer);};},[isStatic,visibleReady,route,rootRef]);useLayoutEffect(()=>{if(isStatic||!visibleReady||!route||route===\"index\"&&!contentReady||typeof window===\"undefined\")return;const root=rootRef.current;if(!root||root.getBoundingClientRect().width===0)return;const motion=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const path=route===\"home\"?\"/\":\"/index\";if(path===\"/\"){const capture=event=>{if(event.button!==0||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey||motion.matches)return;const anchor=event.target?.closest(\"a[href]\");if(!anchor||anchor.target===\"_blank\"||anchor.hasAttribute(\"download\"))return;const url=new URL(anchor.href,window.location.href);if(url.origin!==window.location.origin||!url.pathname.replace(/\\/$/,\"\").endsWith(\"/index\"))return;clearHomeBackdrop();try{sessionStorage.setItem(HOME_INDEX_MARKER,String(Date.now()));}catch{}const clone=createPageSnapshot(root);clone.querySelectorAll(\"[id]\").forEach(node=>node.removeAttribute(\"id\"));clone.removeAttribute(\"id\");clone.setAttribute(\"aria-hidden\",\"true\");clone.setAttribute(\"inert\",\"\");Object.assign(clone.style,{position:\"fixed\",top:`-${window.scrollY}px`,left:`${root.getBoundingClientRect().left}px`,width:`${root.getBoundingClientRect().width}px`,height:`${root.getBoundingClientRect().height}px`,pointerEvents:\"none\",zIndex:\"2147483000\",margin:\"0\",willChange:\"transform\",opacity:\"1\"});// Keep a still of playing videos, without starting duplicate video downloads.\nconst videos=Array.from(root.querySelectorAll(\"video\"));clone.querySelectorAll(\"video\").forEach((video,index)=>{const original=videos[index];if(!original){video.remove();return;}const still=document.createElement(\"canvas\");still.width=original.videoWidth||1;still.height=original.videoHeight||1;still.style.cssText=video.style.cssText;still.className=video.className;try{still.getContext(\"2d\")?.drawImage(original,0,0);}catch{}video.replaceWith(still);});const snapshotHeader=clone.firstElementChild;if(snapshotHeader)snapshotHeader.style.opacity=\"0\";document.body.appendChild(clone);homeIndexBackdrop=clone;homeIndexExpiry=setTimeout(clearHomeBackdrop,15e3);};root.addEventListener(\"click\",capture,true);return()=>root.removeEventListener(\"click\",capture,true);}if(path!==\"/index\")return;let stamp=0;try{stamp=Number(sessionStorage.getItem(HOME_INDEX_MARKER));}catch{}if(!stamp||Date.now()-stamp>15e3)return;try{sessionStorage.removeItem(HOME_INDEX_MARKER);}catch{}if(motion.matches){clearHomeBackdrop();return;}root.setAttribute(\"data-home-index-entering\",\"true\");const animations=[];const header=root.firstElementChild;const oldOpacity=header?.style.opacity||\"\";let headerOverlay=null;if(header){const box=header.getBoundingClientRect();headerOverlay=createPageSnapshot(header);headerOverlay.querySelectorAll(\"[id]\").forEach(node=>node.removeAttribute(\"id\"));headerOverlay.removeAttribute(\"id\");headerOverlay.setAttribute(\"aria-hidden\",\"true\");headerOverlay.setAttribute(\"inert\",\"\");Object.assign(headerOverlay.style,{position:\"fixed\",left:`${box.left}px`,top:`${box.top}px`,width:`${box.width}px`,height:`${box.height}px`,margin:\"0\",zIndex:\"2147483002\",pointerEvents:\"none\",background:\"transparent\",opacity:\"1\"});document.body.appendChild(headerOverlay);header.style.opacity=\"0\";// Keep a single dark masthead throughout the slide.\nheaderOverlay.querySelectorAll(\"p, span, a\").forEach(text=>{text.style.setProperty(\"color\",\"rgb(51,51,51)\",\"important\");text.style.setProperty(\"-webkit-text-fill-color\",\"rgb(51,51,51)\",\"important\");});const outgoingHeader=homeIndexBackdrop?.firstElementChild;if(outgoingHeader)outgoingHeader.style.opacity=\"0\";}// Animate the live Index root, never an empty/frozen clone.\n// Place the outgoing snapshot in the same stacking context as that live root.\nconst parent=root.parentElement;const originalPosition=root.style.position;const originalZIndex=root.style.zIndex;const originalWillChange=root.style.willChange;const originalTransform=root.style.transform;root.style.position=\"relative\";root.style.zIndex=\"2147483001\";root.style.willChange=\"transform\";if(parent&&homeIndexBackdrop)parent.insertBefore(homeIndexBackdrop,root);const slideDistance=window.innerHeight;const slide=root.animate([{transform:`translate3d(0,${slideDistance}px,0)`,opacity:1},{transform:originalTransform||\"translate3d(0,0,0)\",opacity:1}],{duration:850,easing:\"cubic-bezier(0.45,0,0.15,1)\",fill:\"both\"});animations.push(slide);// Push the outgoing Home media up by exactly the same viewport distance.\nif(homeIndexBackdrop){animations.push(homeIndexBackdrop.animate([{transform:\"translate3d(0,0,0)\"},{transform:`translate3d(0,-${slideDistance}px,0)`}],{duration:850,easing:\"cubic-bezier(0.45,0,0.15,1)\",fill:\"both\"}));}// Both surfaces share the exact same clock and viewport distance.\nconst synchronizedStart=document.timeline.currentTime;if(synchronizedStart!==null)animations.forEach(animation=>{animation.startTime=synchronizedStart;});let finished=false;const finish=()=>{if(finished)return;finished=true;animations.forEach(animation=>animation.cancel());if(header)header.style.opacity=oldOpacity;headerOverlay?.remove();root.style.position=originalPosition;root.style.zIndex=originalZIndex;root.style.willChange=originalWillChange;root.removeAttribute(\"data-home-index-entering\");clearHomeBackdrop();};slide.onfinish=finish;const onMotion=()=>{if(motion.matches)finish();};motion.addEventListener(\"change\",onMotion);return()=>{motion.removeEventListener(\"change\",onMotion);finish();};},[isStatic,rootRef,visibleReady,contentReady,route]);}/** Gentle spring-following media motion, without moving the masthead. */function useHomePointerMotion(rootRef,isStatic,route){useLayoutEffect(()=>{if(isStatic||route!==\"home\")return;const root=rootRef.current;const media=root?.children[1];if(!root||!media)return;const enabled=window.matchMedia(\"(min-width: 810px) and (hover: hover) and (pointer: fine)\");const reduced=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const oldTranslate=media.style.getPropertyValue(\"translate\");const oldScale=media.style.getPropertyValue(\"scale\");const oldWillChange=media.style.willChange;let frame=0;let lastTime=0;let x=0,y=0,vx=0,vy=0,tx=0,ty=0;const active=()=>enabled.matches&&!reduced.matches&&root.getBoundingClientRect().width>0;const restore=()=>{cancelAnimationFrame(frame);frame=0;lastTime=0;x=y=vx=vy=tx=ty=0;media.style.setProperty(\"translate\",oldTranslate);media.style.setProperty(\"scale\",oldScale);media.style.willChange=oldWillChange;};const tick=time=>{frame=0;if(!active()||document.hidden){restore();return;}const dt=Math.min(.032,lastTime?(time-lastTime)/1e3:1/60);lastTime=time;vx+=((tx-x)*100-vx*20)*dt;vy+=((ty-y)*100-vy*20)*dt;x+=vx*dt;y+=vy*dt;media.style.setProperty(\"translate\",`${x.toFixed(3)}px ${y.toFixed(3)}px`);media.style.setProperty(\"scale\",\"1.04\");media.style.willChange=\"translate\";if(Math.abs(tx-x)+Math.abs(ty-y)+Math.abs(vx)+Math.abs(vy)>.02){frame=requestAnimationFrame(tick);}else lastTime=0;};const start=()=>{if(!frame)frame=requestAnimationFrame(tick);};const move=event=>{if(!active()||event.pointerType!==\"mouse\")return;const box=root.getBoundingClientRect();tx=Math.max(-1,Math.min(1,(event.clientX-box.left)/box.width*2-1))*-10;ty=Math.max(-1,Math.min(1,event.clientY/window.innerHeight*2-1))*-10;start();};const leave=()=>{tx=ty=0;if(active())start();};const preference=()=>{if(!active())restore();else{media.style.setProperty(\"scale\",\"1.04\");media.style.setProperty(\"translate\",\"0px 0px\");media.style.willChange=\"translate\";}};// Establish overscan before paint, not on the first mouse movement.\npreference();root.addEventListener(\"pointermove\",move,{passive:true});root.addEventListener(\"pointerleave\",leave);enabled.addEventListener(\"change\",preference);reduced.addEventListener(\"change\",preference);document.addEventListener(\"visibilitychange\",preference);return()=>{restore();root.removeEventListener(\"pointermove\",move);root.removeEventListener(\"pointerleave\",leave);enabled.removeEventListener(\"change\",preference);reduced.removeEventListener(\"change\",preference);document.removeEventListener(\"visibilitychange\",preference);};},[isStatic,route,rootRef]);}/** Match gallery edges to the rendered Books label, including font metrics. */function useBooksColumnAlignment(rootRef,isStatic){useLayoutEffect(()=>{if(isStatic)return;const root=rootRef.current;if(!root)return;const originals=new Map;let frame=0;let disposed=false;const restore=()=>{originals.forEach((style,element)=>Object.assign(element.style,style));root.style.removeProperty(\"--archive-preview-left\");};const update=()=>{frame=0;if(disposed)return;if(window.innerWidth<810||!root.getBoundingClientRect().width){restore();return;}const nav=root.children[1];const books=Array.from(nav?.querySelectorAll(\"a[href]\")||[]).find(link=>link.textContent?.trim().toUpperCase()===\"BOOKS\");if(!books)return;const text=books.querySelector(\"p\")||books;const left=text.getBoundingClientRect().left;root.style.setProperty(\"--archive-preview-left\",left+\"px\");root.querySelectorAll('[id^=\"books-aligned-\"]').forEach(element=>{const parent=element.parentElement;if(!parent||!element.getClientRects().length)return;const box=parent.getBoundingClientRect();const width=box.right-left;if(width<=0||width>=box.width)return;if(!originals.has(element))originals.set(element,{width:element.style.width,flex:element.style.flex,marginLeft:element.style.marginLeft});element.style.width=width+\"px\";element.style.flex=\"0 0 auto\";element.style.marginLeft=\"auto\";});};const schedule=()=>{if(!frame)frame=requestAnimationFrame(update);};const observer=new ResizeObserver(schedule);observer.observe(root);if(root.children[1])observer.observe(root.children[1]);const changes=new MutationObserver(schedule);changes.observe(root,{childList:true,subtree:true});window.addEventListener(\"resize\",schedule);document.fonts?.ready.then(()=>{if(!disposed)schedule();});update();return()=>{disposed=true;cancelAnimationFrame(frame);observer.disconnect();changes.disconnect();window.removeEventListener(\"resize\",schedule);restore();};},[isStatic,rootRef]);}function createSitePolish(Component,route){return /*#__PURE__*/forwardRef((props,ref)=>{const isStaticRenderer=useIsStaticRenderer();const rootRef=useRef(null);useScrollPhysics(rootRef,isStaticRenderer);useBooksColumnAlignment(rootRef,isStaticRenderer);useHomePointerMotion(rootRef,isStaticRenderer,route);useHomeIndexTransition(rootRef,isStaticRenderer,route);useLayoutEffect(()=>{if(isStaticRenderer||route!==\"home\")return;const root=rootRef.current;const header=root?.firstElementChild;const background=root?.children[1];if(!header||!background)return;const motion=window.matchMedia(\"(prefers-reduced-motion: reduce)\");header.setAttribute(\"data-landing-header\",\"true\");if(motion.matches)return()=>header.removeAttribute(\"data-landing-header\");const oldOpacity=header.style.opacity;header.style.opacity=\"0\";let animation=null;let frame=0;let done=false;let readySince=0;const decoded=new WeakSet;const decoding=new WeakSet;const started=performance.now();const stop=()=>{done=true;cancelAnimationFrame(frame);animation?.cancel();header.style.opacity=oldOpacity;};const reveal=()=>{if(done)return;done=true;header.style.opacity=oldOpacity;animation=header.animate([{opacity:0},{opacity:1}],{duration:1e3,easing:\"ease-out\",fill:\"backwards\"});};const check=now=>{if(done)return;const items=background.querySelectorAll(\"img, video\");const media=items[items.length-1];let ready=false;if(media instanceof HTMLImageElement&&media.complete&&media.naturalWidth>0){if(!decoding.has(media)){decoding.add(media);media.decode().then(()=>decoded.add(media)).catch(()=>decoded.add(media));}ready=decoded.has(media);}else if(media instanceof HTMLVideoElement){ready=media.readyState>=2&&media.videoWidth>0;}if(ready&&media&&Number(getComputedStyle(media).opacity)>=.99){if(!readySince)readySince=now;if(now-readySince>=900){reveal();return;}}else readySince=0;// Keep navigation accessible if media fails or the connection stalls.\nif(now-started>=1e4){reveal();return;}frame=requestAnimationFrame(check);};frame=requestAnimationFrame(check);const preference=()=>{if(motion.matches)stop();};header.addEventListener(\"pointerdown\",stop,{once:true});header.addEventListener(\"focusin\",stop,{once:true});motion.addEventListener(\"change\",preference);return()=>{stop();header.removeAttribute(\"data-landing-header\");header.removeEventListener(\"pointerdown\",stop);header.removeEventListener(\"focusin\",stop);motion.removeEventListener(\"change\",preference);};},[isStaticRenderer,route]);const entryAnimationRef=useRef(null);const ioRef=useRef(null);const videoStateRef=useRef(new Map);const reduceMotionRef=useRef(false);const setComposedRef=useCallback(node=>{rootRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&\"current\"in ref){ref.current=node;}},[ref]);useEffect(()=>{if(isStaticRenderer||typeof window===\"undefined\"||typeof document===\"undefined\")return;const reducedMotionQuery=window.matchMedia(\"(prefers-reduced-motion: reduce)\");reduceMotionRef.current=reducedMotionQuery.matches;const onMotionPreferenceChange=event=>{reduceMotionRef.current=event.matches;if(event.matches){entryAnimationRef.current?.cancel();entryAnimationRef.current=null;}};reducedMotionQuery.addEventListener(\"change\",onMotionPreferenceChange);return()=>{reducedMotionQuery.removeEventListener(\"change\",onMotionPreferenceChange);};},[isStaticRenderer]);useEffect(()=>{if(isStaticRenderer||typeof document===\"undefined\")return;if(document.getElementById(STYLE_ID))return;const style=document.createElement(\"style\");style.id=STYLE_ID;style.textContent=`\n@media (prefers-reduced-motion: reduce) {\n  [${ROOT_ATTR}=\"${ROOT_ATTR_VALUE}\"],\n  [${ROOT_ATTR}=\"${ROOT_ATTR_VALUE}\"] * {\n    animation: none !important;\n    transition: none !important;\n  }\n}\n            `;document.head.appendChild(style);},[isStaticRenderer]);useEffect(()=>{if(isStaticRenderer||typeof window===\"undefined\")return;const root=rootRef.current;if(!root)return;root.setAttribute(ROOT_ATTR,ROOT_ATTR_VALUE);let incomingSlide=false;if(route===\"index\"){try{const stamp=Number(sessionStorage.getItem(HOME_INDEX_MARKER));incomingSlide=stamp>0&&Date.now()-stamp<15e3;}catch{}}if(route!==\"home\"&&!incomingSlide&&!root.hasAttribute(\"data-home-index-entering\")&&!reduceMotionRef.current&&typeof root.animate===\"function\"){entryAnimationRef.current?.cancel();const animation=root.animate([{opacity:0},{opacity:1}],{duration:180,easing:\"ease-out\",fill:\"none\"});animation.onfinish=()=>{animation.cancel();if(entryAnimationRef.current===animation){entryAnimationRef.current=null;}};entryAnimationRef.current=animation;}const viewportHeight=window.innerHeight;const images=Array.from(root.querySelectorAll(\"img\"));for(const img of images){const imgElement=img;const loading=(imgElement.getAttribute(\"loading\")||\"\").toLowerCase();if(loading===\"\"||loading===\"auto\"){const rect=imgElement.getBoundingClientRect();if(rect.top>=viewportHeight){imgElement.setAttribute(\"loading\",\"lazy\");}}if(!imgElement.getAttribute(\"decoding\")){imgElement.setAttribute(\"decoding\",\"async\");}}const videos=Array.from(root.querySelectorAll(\"video\"));videoStateRef.current.clear();for(const video of videos){const videoElement=video;if(videoElement.controls)continue;if(!videoElement.muted)continue;const hasAutoplayAttr=videoElement.hasAttribute(\"autoplay\");const isPlayingNow=!videoElement.paused&&!videoElement.ended&&videoElement.readyState>2&&videoElement.currentTime>0;const eligible=hasAutoplayAttr||isPlayingNow;if(!eligible)continue;const preload=(videoElement.getAttribute(\"preload\")||\"\").toLowerCase();if(preload===\"\"||preload===\"auto\"){const rect=videoElement.getBoundingClientRect();if(rect.top>=viewportHeight||rect.bottom<=0){videoElement.setAttribute(\"preload\",\"metadata\");}}videoStateRef.current.set(videoElement,{wasPlayingInitially:isPlayingNow,pausedByObserver:false,eligible});}if(typeof IntersectionObserver!==\"undefined\"){ioRef.current=new IntersectionObserver(entries=>{for(const entry of entries){const target=entry.target;if(!(target instanceof HTMLVideoElement))continue;const state=videoStateRef.current.get(target);if(!state||!state.eligible)continue;const inView=entry.isIntersecting&&entry.intersectionRatio>.2;if(!inView){if(!target.paused){state.wasPlayingInitially=true;target.pause();state.pausedByObserver=true;}continue;}if(state.pausedByObserver&&target.muted){state.pausedByObserver=false;void target.play().catch(()=>{state.pausedByObserver=true;});}}},{root:null,threshold:[0,.2,.5,1],rootMargin:\"120px 0px 120px 0px\"});for(const[video]of videoStateRef.current){ioRef.current.observe(video);}}return()=>{entryAnimationRef.current?.cancel();entryAnimationRef.current=null;ioRef.current?.disconnect();ioRef.current=null;videoStateRef.current.clear();};},[isStaticRenderer]);return /*#__PURE__*/_jsx(Component,{...props,ref:setComposedRef});});}export function withSitePolish(Component){return createSitePolish(Component);}export function withHomePagePolish(Component){return createSitePolish(Component,\"home\");}export function withIndexPagePolish(Component){return createSitePolish(Component,\"index\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withHomePagePolish\":{\"type\":\"reactHoc\",\"name\":\"withHomePagePolish\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSitePolish\":{\"type\":\"reactHoc\",\"name\":\"withSitePolish\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIndexPagePolish\":{\"type\":\"reactHoc\",\"name\":\"withIndexPagePolish\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SitePolishOverride.map","// Generated by Framer (0ea0c8c)\nexport default function metadata(params,activeLocale){return{description:\"Amsterdam, NL\",favicon:\"https://framerusercontent.com/assets/FUHhRQJRDtOplZVgEnpUgTj6xk.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/x6qEJMQnknb0fqHFbVhQiAF4MI.jpg\",title:\"Tom Chung Studio\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,qNAAmW,SAASiB,EAAiB,EAAQ,EAAS,CAACJ,MAAc,CAAC,GAAGK,GAAiBX,IAAS,OAAY,OAAO,IAAMY,EAAKC,EAAQ,QAAQ,GAAG,CAACD,EAAK,OAAO,IAAME,EAAOd,EAAO,WAAW,kCAAkC,EAAQe,EAAYf,EAAO,WAAW,oCAAoC,EAAMgB,EAAM,EAAMC,EAAOjB,EAAO,QAAYkB,EAAYlB,EAAO,QAAYmB,EAAS,EAAQC,MAAS,CAAIJ,GAAM,qBAAqBA,CAAK,EAAE,EAAM,EAAE,EAAS,EAAE,EAAOhB,EAAO,QAAQ,EAAYiB,CAAO,EAAQI,MAAU,KAAK,IAAI,GAAG,SAAS,kBAAkB,cAAc,GAAGrB,EAAO,WAAW,EAAQsB,EAAK,GAAM,CAA8F,GAA7F,EAAM,EAAKR,EAAO,SAAS,SAAS,QAAQF,EAAK,eAAe,CAAC,CAAC,SAAS,GAAqB,KAAK,IAAIZ,EAAO,QAAQkB,CAAW,EAAE,EAAE,CAACE,EAAK,EAAE,MAAO,CAAC,IAAMG,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