{"version":3,"file":"ViewportDistortion.NNuPoxwN.mjs","names":["getSharedStore","STORE_KEY","emitStoreChange","store","clamp","React.useRef","React.useCallback","React.useSyncExternalStore","React.useMemo","React.useState","React.useRef","React.useMemo","_Fragment","__esmMin","pe","init_npm_react_18_3_1","ne","me","init_ssg_sandbox_shims","window","le","init_npm_react_dom_18_3_1","_e","Ha","p","c","init_jsx_runtime","ce","de","addPropertyControls","init_framer_BpuvUAiZ","useIsStaticRenderer","ControlType","getSharedStore$1","scope","STORE_KEY$1","emitStoreChange$1","store$1","listener","subscribeStore","registerElement","node","current","id","sourceChanged","options","unregisterElement","canHideDomFallback","record","clamp$1","max","min","value","makeId","ViewportImage","isStaticRenderer","rootRef","idRef","getFallbackSnapshot","hideFallback","src","props","objectPosition","fallbackOpacity","fallbackCssOpacity","fallbackTransition","effectiveAlt","init_ViewportImage","_define_property","key","obj","getSharedStore","STORE_KEY","emitStoreChange","store","setCanvasReady","ready","setAppearEnabled","enabled","setGlobalEffectEnabled","changed","forceFallback","markElementReady","isScrollableElement","overflowY","findDesktopScrollHost","clamp","cubicBezierEase","x","x1","curve","x2","y1","y2","sample","inv","t","a1","a2","derivativeX","i","currentX","slope","low","high","applyAppearEase","ease","customCurve","parseCubicBezierField","DEFAULT_HOVER_BEZIER","parts","part","applyHoverEase","createShader","shader","gl","type","source","info","createProgram","vertex","VERTEX_SHADER","fragment","FRAGMENT_SHADER","program","requireUniform","location","name","createGrid","positions","uvs","indices","y","rows","columns","u","v","topLeft","topRight","bottomLeft","bottomRight","parseCssColor","color","input","hex","values","rgba","context","normalized","compareDomOrder","a","b","relation","getViewportBreakpoint","width","PHONE_BREAKPOINT_MAX","TABLET_BREAKPOINT_MAX","isDistortionEnabledAtWidth","breakpoint","phoneEnabled","tabletEnabled","ViewportDistortion","viewportWidth","setViewportWidth","effectEnabled","updateViewportWidth","canvasRef","ownerRef","engineRef","portalTarget","setPortalTarget","settings","coarsePointer","resolvePortalTarget","nextTarget","timer","canvas","owner","engine","ViewportWarpEngine","error","init_ViewportDistortion","nextSignature","host","rect","vv","viewport","now","target","state","durationSeconds","durationMs","linear","eased","cached","desktopViewportProjection","isScrolling","contentBottom","viewportHeight","body","scrollY","child","transform","maxTop","canvasCssHeight","desiredTop","overscan","viewportTopInCanvas","viewportBottomInCanvas","safety","cssWidth","visibleCssHeight","cssHeight","hardDprCap","requestedDpr","maxPixelBudget","area","budgetDpr","minDpr","dpr","pixelWidth","pixelHeight","elapsed","rawPixelsPerMs","smoothing","texture","entry","sourceType","video","markVideoReady","image","aliveIds","gpu","isTextureSource","desiredKey","event","isRootScroll","records","appearRecords","visibleAppearIds","marginY","marginX","clientRect","left","top","right","globalAge","itemStart","getAppearProgress","startTime","delayMs","anyAppearAnimating","needsContinuousVideo","rectLeft","rectTop","rectRight","rectBottom","documentBottom","canvasDocumentBottom","outsideVerticalRange","localDistortion","reveal","revealOffsetY","canHoverZoom","pointerX","pointerY","isHovered","hoverProgress","hoverScale","r","g","hoverAnimating","appearAnimating","portalHost","grid","positionBuffer","uvBuffer","indexBuffer"],"sources":["https:/framerusercontent.com/modules/rL97FYGGGt1Z1MtwZ9hu/OWTiOYFaO8gkIvlD09WS/ViewportImage.js","https:/framerusercontent.com/modules/YHkDrugrJ6zwPZRUuBir/I2CuLQRe2BJRcU4dBF4w/ViewportDistortion.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";// IMPORTANT: Viewport Image and Viewport Distortion are shipped as two\n// independent Framer modules. Symbol.for() makes both modules resolve the same\n// registry in the browser realm, regardless of which component is loaded first.\nconst STORE_KEY=Symbol.for(\"bestlooker.viewport-distortion.store.v1\");function getSharedStore(){const scope=globalThis;if(!scope[STORE_KEY]){scope[STORE_KEY]={elements:new Map,listeners:new Set,canvasReady:false,appearEnabled:false,effectEnabled:true,owner:null,sequence:0};}// Framer hot reload can preserve the Symbol store created by an older\n// module version. Backfill the responsive-effect flag when needed.\nif(typeof scope[STORE_KEY].effectEnabled!==\"boolean\"){scope[STORE_KEY].effectEnabled=true;}return scope[STORE_KEY];}const store=getSharedStore();function emitStoreChange(){store.listeners.forEach(listener=>listener());}function subscribeStore(listener){store.listeners.add(listener);return()=>store.listeners.delete(listener);}function registerElement(id,node,options){node.style.setProperty(\"--bestlooker-vd-force-fallback\",store.effectEnabled===false?\"1\":\"0\");const current=store.elements.get(id);if(current){const sourceChanged=current.options.sourceType!==options.sourceType||current.options.src!==options.src;current.node=node;current.options=options;if(sourceChanged){current.ready=options.sourceType===\"color\";}}else{store.elements.set(id,{id,node,options,sequence:store.sequence++,ready:options.sourceType===\"color\"});}emitStoreChange();}function unregisterElement(id){if(store.elements.delete(id))emitStoreChange();}function canHideDomFallback(id){const record=store.elements.get(id);if(!record||!record.options.enabled)return false;// Responsive OFF must always mean normal DOM content is visible,\n// regardless of stale canvasReady/appear state from a previous breakpoint.\nif(store.effectEnabled===false)return false;if(store.appearEnabled&&record.options.appear)return true;return Boolean(store.canvasReady&&record.ready);}function clamp(value,min,max){return Math.min(max,Math.max(min,value));}function makeId(){return`viewport-warp-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;}/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 300\n */export function ViewportImage(props){const isStaticRenderer=useIsStaticRenderer();const rootRef=React.useRef(null);const idRef=React.useRef(makeId());// Read WebGL/fallback visibility directly from the shared external store.\n// useSyncExternalStore avoids synchronously calling setState from an effect,\n// which newer React/Framer linting flags as a warning.\nconst getFallbackSnapshot=React.useCallback(()=>canHideDomFallback(idRef.current),[]);const hideFallback=React.useSyncExternalStore(subscribeStore,getFallbackSnapshot,()=>false);const src=props.sourceType===\"video\"?props.videoFile||\"\":props.image?.src||\"\";const options=React.useMemo(()=>({enabled:props.enabled,sourceType:props.sourceType,src,color:props.color,fit:props.fit,positionX:props.positionX,positionY:props.positionY,radius:props.radius,opacity:props.opacity,distortion:props.distortion,renderOrder:props.renderOrder,appear:props.appear,hoverZoom:props.hoverZoom}),[props.enabled,props.sourceType,src,props.color,props.fit,props.positionX,props.positionY,props.radius,props.opacity,props.distortion,props.renderOrder,props.appear,props.hoverZoom]);React.useLayoutEffect(()=>{if(isStaticRenderer)return;const node=rootRef.current;if(!node)return;const id=idRef.current;registerElement(id,node,options);return()=>unregisterElement(id);},[isStaticRenderer]);React.useLayoutEffect(()=>{if(isStaticRenderer)return;const node=rootRef.current;if(!node)return;registerElement(idRef.current,node,options);},[isStaticRenderer,options]);const objectPosition=`${clamp(props.positionX,0,1)*100}% ${clamp(props.positionY,0,1)*100}%`;// An item opted into Appear must NEVER expose its raw DOM fallback while\n// the WebGL effect is enabled. Waiting for store.appearEnabled creates a\n// one-frame race between the two independent Framer code modules: the DOM\n// image can paint first and then disappear behind the WebGL reveal.\n//\n// Responsive Effect OFF is still handled safely: effectEnabled=false plus\n// --bestlooker-vd-force-fallback=1 forces the normal DOM image/video/color\n// visible even though props.appear is true.\nconst forceHideAppearFallback=!isStaticRenderer&&props.appear&&store.effectEnabled!==false;const fallbackOpacity=forceHideAppearFallback||hideFallback?0:clamp(props.opacity,0,1);const normalOpacity=clamp(props.opacity,0,1);const fallbackCssOpacity=`calc(\n        var(--bestlooker-vd-force-fallback, 0) * ${normalOpacity} +\n        (1 - var(--bestlooker-vd-force-fallback, 0)) * ${fallbackOpacity}\n    )`;const fallbackTransition=props.appear?\"none\":\"opacity 80ms linear\";const effectiveAlt=props.alt??props.image?.alt??\"\";return /*#__PURE__*/_jsx(\"div\",{ref:rootRef,style:{...props.style,width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",borderRadius:props.radius,background:\"transparent\"},children:props.sourceType===\"image\"&&src?/*#__PURE__*/_jsx(\"img\",{src:src,srcSet:props.image?.srcSet,alt:effectiveAlt,draggable:false,style:{display:\"block\",width:\"100%\",height:\"100%\",objectFit:props.fit,objectPosition,opacity:fallbackCssOpacity,transition:fallbackTransition,userSelect:\"none\"}}):props.sourceType===\"video\"&&src?/*#__PURE__*/_jsx(\"video\",{src:src,autoPlay:true,muted:true,loop:true,playsInline:true,preload:\"auto\",\"aria-hidden\":\"true\",style:{display:\"block\",width:\"100%\",height:\"100%\",objectFit:props.fit,objectPosition,opacity:fallbackCssOpacity,transition:fallbackTransition,userSelect:\"none\",pointerEvents:\"none\"}}):/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,background:props.color,opacity:fallbackCssOpacity,transition:fallbackTransition}})});}ViewportImage.displayName=\"Viewport Image\";const viewportImageDefaultProps={sourceType:\"image\",videoFile:\"\",color:\"#E60023\",fit:\"cover\",positionX:.5,positionY:.5,radius:8,opacity:1,distortion:1,renderOrder:0,enabled:true,appear:false,hoverZoom:false,creatorLink:\"https://framer.link/CxdtHWB\"};ViewportImage.defaultProps=viewportImageDefaultProps;addPropertyControls(ViewportImage,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true},appear:{type:ControlType.Boolean,title:\"Appear\",defaultValue:false,enabledTitle:\"Include\",disabledTitle:\"Ignore\",description:\"Include this item in the global Viewport Distortion Appear animation.\"},hoverZoom:{type:ControlType.Boolean,title:\"Hover Zoom\",defaultValue:false,enabledTitle:\"Include\",disabledTitle:\"Ignore\",hidden:props=>props.sourceType===\"color\",description:\"Include this item in the global Viewport Distortion hover zoom effect.\"},sourceType:{type:ControlType.Enum,title:\"Source\",options:[\"image\",\"video\",\"color\"],optionTitles:[\"Image\",\"Video\",\"Color\"],defaultValue:\"image\"},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:props=>props.sourceType!==\"image\"},videoFile:{type:ControlType.File,title:\"Video File\",allowedFileTypes:[\"mp4\",\"mov\",\"webm\"],description:\"Used when Source is set to Video.\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#E60023\",hidden:props=>props.sourceType!==\"color\"},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"contain\",\"fill\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\"],defaultValue:\"cover\",displaySegmentedControl:true,hidden:props=>props.sourceType===\"color\"},positionX:{type:ControlType.Number,title:\"Position X\",defaultValue:.5,min:0,max:1,step:.01,hidden:props=>props.sourceType===\"color\"||props.fit===\"fill\"},positionY:{type:ControlType.Number,title:\"Position Y\",defaultValue:.5,min:0,max:1,step:.01,hidden:props=>props.sourceType===\"color\"||props.fit===\"fill\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:200,step:1,unit:\"px\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:1,min:0,max:1,step:.01},distortion:{type:ControlType.Number,title:\"Warp Mult.\",defaultValue:1,min:0,max:2,step:.05},renderOrder:{type:ControlType.Number,title:\"Draw Order\",defaultValue:0,min:-100,max:100,step:1,displayStepper:true},alt:{type:ControlType.String,title:\"Alt\",defaultValue:\"\",hidden:props=>props.sourceType!==\"image\"},creatorLink:{type:ControlType.Link,title:\"Creator\",defaultValue:\"https://framer.link/CxdtHWB\",description:\"Made by [Bestlooker](https://framer.link/CxdtHWB)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ViewportImage\":{\"type\":\"reactComponent\",\"name\":\"ViewportImage\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"300\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ViewportImage.map","function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";// IMPORTANT: Viewport Image and Viewport Distortion are shipped as two\n// independent Framer modules. Symbol.for() makes both modules resolve the same\n// registry in the browser realm, regardless of which component is loaded first.\nconst STORE_KEY=Symbol.for(\"bestlooker.viewport-distortion.store.v1\");function getSharedStore(){const scope=globalThis;if(!scope[STORE_KEY]){scope[STORE_KEY]={elements:new Map,listeners:new Set,canvasReady:false,appearEnabled:false,effectEnabled:true,owner:null,sequence:0};}// The global Symbol store can survive hot reloads in Framer. Backfill\n// fields added by newer versions so an older store instance cannot keep\n// fallbacks in a stale hidden state.\nif(typeof scope[STORE_KEY].effectEnabled!==\"boolean\"){scope[STORE_KEY].effectEnabled=true;}return scope[STORE_KEY];}const store=getSharedStore();function emitStoreChange(){store.listeners.forEach(listener=>listener());}function setCanvasReady(ready){if(store.canvasReady===ready)return;store.canvasReady=ready;emitStoreChange();}function setAppearEnabled(enabled){if(store.appearEnabled===enabled)return;store.appearEnabled=enabled;emitStoreChange();}function setGlobalEffectEnabled(enabled){const changed=store.effectEnabled!==enabled;store.effectEnabled=enabled;// CSS-variable fallback is deliberately redundant with the shared-store\n// subscription. It makes fallback visibility reliable even during Framer\n// hot reload / breakpoint transitions where React effects from the two\n// independent code modules can commit in different orders.\nconst forceFallback=enabled?\"0\":\"1\";store.elements.forEach(record=>{record.node.style.setProperty(\"--bestlooker-vd-force-fallback\",forceFallback);});if(changed)emitStoreChange();}function markElementReady(id,ready){const record=store.elements.get(id);if(!record||record.ready===ready)return;record.ready=ready;emitStoreChange();}function isScrollableElement(node){const style=window.getComputedStyle(node);const overflowY=style.overflowY;const canScrollY=overflowY===\"auto\"||overflowY===\"scroll\"||overflowY===\"overlay\";return canScrollY&&node.clientHeight>0&&node.scrollHeight>node.clientHeight+2;}function findDesktopScrollHost(){if(typeof document===\"undefined\")return null;for(const record of store.elements.values()){let node=record.node.parentElement;while(node&&node!==document.body&&node!==document.documentElement){if(isScrollableElement(node))return node;node=node.parentElement;}}return null;}function clamp(value,min,max){return Math.min(max,Math.max(min,value));}function cubicBezierEase(value,curve){const x=clamp(value,0,1);const x1=clamp(curve.x1,0,1);const x2=clamp(curve.x2,0,1);const y1=curve.y1;const y2=curve.y2;if(x<=0)return 0;if(x>=1)return 1;const sample=(t,a1,a2)=>{const inv=1-t;return 3*inv*inv*t*a1+3*inv*t*t*a2+t*t*t;};const derivativeX=t=>{const inv=1-t;return 3*inv*inv*x1+6*inv*t*(x2-x1)+3*t*t*(1-x2);};// CSS cubic-bezier uses time on the X axis. Solve x(t) = progress first,\n// then return y(t). Newton-Raphson is fast; bisection is the safe fallback.\nlet t=x;for(let i=0;i<6;i++){const currentX=sample(t,x1,x2)-x;const slope=derivativeX(t);if(Math.abs(currentX)<1e-5)break;if(Math.abs(slope)<1e-6)break;t=clamp(t-currentX/slope,0,1);}if(Math.abs(sample(t,x1,x2)-x)>1e-4){let low=0;let high=1;t=x;for(let i=0;i<12;i++){const currentX=sample(t,x1,x2);if(Math.abs(currentX-x)<1e-5)break;if(currentX<x)low=t;else high=t;t=(low+high)*.5;}}return sample(t,y1,y2);}function applyAppearEase(value,ease,customCurve){const t=clamp(value,0,1);switch(ease){case\"linear\":return t;case\"easeIn\":return t*t*t;case\"easeInOut\":return t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2;case\"custom\":return cubicBezierEase(t,customCurve);case\"easeOut\":default:return 1-Math.pow(1-t,3);}}const DEFAULT_HOVER_BEZIER={x1:.22,y1:1,x2:.36,y2:1};function parseCubicBezierField(value){if(!value)return DEFAULT_HOVER_BEZIER;const normalized=value.trim().replace(/^cubic-bezier\\s*\\(/i,\"\").replace(/\\)\\s*$/,\"\");const parts=normalized.split(/[\\s,]+/).filter(Boolean).map(Number);if(parts.length!==4||parts.some(part=>!Number.isFinite(part))){return DEFAULT_HOVER_BEZIER;}return{x1:clamp(parts[0],0,1),y1:parts[1],x2:clamp(parts[2],0,1),y2:parts[3]};}function applyHoverEase(value,ease,customCurve){const t=clamp(value,0,1);if(ease===\"linear\")return t;if(ease===\"easeInOut\"){return t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2;}if(ease===\"custom\")return cubicBezierEase(t,customCurve);return 1-Math.pow(1-t,3);}const VERTEX_SHADER=`\nprecision highp float;\n\nattribute vec2 aPosition;\nattribute vec2 aUv;\n\nuniform vec2 uViewport;\nuniform float uVisibleViewportHeight;\nuniform float uViewportTopInCanvas;\nuniform vec4 uRect;\nuniform float uStrength;\nuniform float uZoneStart;\nuniform float uCurve;\nuniform float uVelocity;\nuniform float uScrollBoost;\nuniform float uScrollLag;\nuniform float uVerticalBend;\nuniform float uEdgeReach;\nuniform float uEdgeFalloff;\nuniform float uBottomNarrowing;\nuniform float uBottomNarrowStart;\nuniform float uBottomNarrowSmoothness;\n\nvarying vec2 vUv;\nvarying vec2 vLocalPx;\nvarying float vViewportY;\nvarying float vEdgeMask;\nvarying float vDeformationZone;\nvarying float vXNormalized;\n\nfloat smootherstep01(float value) {\n    float t = clamp(value, 0.0, 1.0);\n    return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\n\nvoid main() {\n    vec2 screen = uRect.xy + aPosition * uRect.zw;\n\n    // The WebGL canvas is document-anchored and slightly taller than the\n    // visible viewport. Distortion must still be evaluated in visible viewport\n    // coordinates, not in the full canvas coordinates.\n    float viewportHeight = max(uVisibleViewportHeight, 1.0);\n    float viewportHalfWidth = max(uViewport.x * 0.5, 1.0);\n    float visibleScreenY = screen.y - uViewportTopInCanvas;\n\n    float viewportY = clamp(visibleScreenY / viewportHeight, 0.0, 1.0);\n    float zone = smoothstep(uZoneStart, 1.0, viewportY);\n    zone = pow(zone, max(uCurve, 0.001));\n\n    // Global bottom taper. This is evaluated in viewport coordinates, so all\n    // ViewportImage meshes share one continuous deformation profile.\n    //\n    // The taper is SUBTRACTED from the original expansion instead of abruptly\n    // scaling it down. Because the subtractive curve starts with a zero slope,\n    // the side contour keeps expanding for a moment, rounds over naturally,\n    // and only then starts narrowing. This creates a smooth rounded apex.\n    float safeNarrowStart = clamp(uBottomNarrowStart, uZoneStart + 0.001, 0.995);\n    float taperT = clamp(\n        (viewportY - safeNarrowStart) / max(1.0 - safeNarrowStart, 0.001),\n        0.0,\n        1.0\n    );\n\n    // Narrow Smooth controls how gradually the taper gains influence.\n    // 0 = still smooth but more direct, 1 = a broader/rounder turn.\n    float smoothness = clamp(uBottomNarrowSmoothness, 0.0, 1.0);\n    float slowT = pow(taperT, mix(1.25, 2.6, smoothness));\n    float bottomTaper = smootherstep01(slowT);\n\n    // 0 = original curve. 1 = expansion returns to neutral at the viewport\n    // bottom. Values above 1 create a subtle inward pinch.\n    float deformationZone = zone - bottomTaper * uBottomNarrowing;\n\n    float xFromCenter = screen.x - viewportHalfWidth;\n    float xNormalized = xFromCenter / viewportHalfWidth;\n\n    // Edge-localized distortion. The center of the viewport stays untouched.\n    // uEdgeReach is the width of the active area measured from EACH side as a\n    // fraction of the full viewport width. The mask fades smoothly from 1 at\n    // the outer edge to 0 toward the interior.\n    float clampedViewportX = clamp(screen.x, 0.0, uViewport.x);\n    float distanceToEdge = min(clampedViewportX, uViewport.x - clampedViewportX);\n    float edgeReachPx = max(uEdgeReach * uViewport.x, 1.0);\n    float edgeProgress = clamp(1.0 - distanceToEdge / edgeReachPx, 0.0, 1.0);\n\n    // smoothstep removes any visible seam where the distortion zone ends; the\n    // extra power control lets the outer edge feel soft or more sculpted.\n    float edgeMask = smoothstep(0.0, 1.0, edgeProgress);\n    edgeMask = pow(edgeMask, max(uEdgeFalloff, 0.001));\n\n    // Horizontal expansion now exists only inside the left/right edge zones.\n    // Using the original center-relative displacement keeps the outer contour\n    // elegant while the inner area remains geometrically stable.\n    float amount = uStrength + abs(uVelocity) * uScrollBoost;\n    float horizontalShift = xFromCenter * deformationZone * amount * edgeMask;\n    screen.x += horizontalShift;\n\n    // Use the same global profile for the rest of the deformation so the side\n    // contour reads as one continuous curve instead of a per-element taper.\n    screen.y += deformationZone * edgeMask * uVelocity * uScrollLag;\n\n    // A subtle downward edge bend adds depth without affecting the center.\n    screen.y += deformationZone * edgeMask * abs(xNormalized) * uVerticalBend;\n\n    vec2 clip = vec2(\n        screen.x / uViewport.x * 2.0 - 1.0,\n        1.0 - screen.y / uViewport.y * 2.0\n    );\n\n    gl_Position = vec4(clip, 0.0, 1.0);\n    vUv = aUv;\n    vLocalPx = aPosition * uRect.zw;\n    vViewportY = viewportY;\n    vEdgeMask = edgeMask;\n    vDeformationZone = deformationZone;\n    vXNormalized = xNormalized;\n}\n`;const FRAGMENT_SHADER=`\nprecision highp float;\n\nuniform sampler2D uTexture;\nuniform float uUseTexture;\nuniform vec4 uColor;\nuniform vec2 uImageSize;\nuniform vec2 uBoxSize;\nuniform float uFit;\nuniform vec2 uPosition;\nuniform float uRadius;\nuniform float uOpacity;\nuniform float uHoverScale;\nuniform vec2 uHoverOrigin;\nuniform float uGlossEnabled;\nuniform float uGlossOpacity;\nuniform float uGlossStart;\nuniform float uGlossWidth;\nuniform float uGlossSoftness;\nuniform float uGlossTilt;\n\nvarying vec2 vUv;\nvarying vec2 vLocalPx;\nvarying float vViewportY;\nvarying float vEdgeMask;\nvarying float vDeformationZone;\nvarying float vXNormalized;\n\nfloat roundedRectMask(vec2 point, vec2 size, float radius) {\n    float safeRadius = min(radius, min(size.x, size.y) * 0.5);\n    vec2 halfSize = size * 0.5;\n    vec2 q = abs(point - halfSize) - (halfSize - vec2(safeRadius));\n    float distanceToEdge = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - safeRadius;\n\n    // One CSS-pixel soft edge. The canvas itself is DPR-scaled.\n    return 1.0 - smoothstep(-0.75, 0.75, distanceToEdge);\n}\n\nfloat smootherstepFrag(float value) {\n    float t = clamp(value, 0.0, 1.0);\n    return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\n\nfloat hash12(vec2 p) {\n    vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n    p3 += dot(p3, p3.yzx + 33.33);\n    return fract((p3.x + p3.y) * p3.z);\n}\n\nvoid main() {\n    vec4 pixel;\n\n    if (uUseTexture > 0.5) {\n        vec2 box = max(uBoxSize, vec2(1.0));\n        vec2 image = max(uImageSize, vec2(1.0));\n        float boxAspect = box.x / box.y;\n        float imageAspect = image.x / image.y;\n\n        // Hover zoom changes only the sampled UVs, never the mesh/rectangle.\n        // This is equivalent to scaling an <img> inside an overflow:hidden\n        // parent: the outer contour and rounded corners remain fixed.\n        float safeHoverScale = max(uHoverScale, 1.0);\n        vec2 uv = uHoverOrigin + (vUv - uHoverOrigin) / safeHoverScale;\n\n        // 0 = cover, 1 = contain, 2 = fill\n        if (uFit < 0.5) {\n            vec2 visibleFraction = vec2(1.0);\n\n            if (imageAspect > boxAspect) {\n                visibleFraction.x = boxAspect / imageAspect;\n            } else {\n                visibleFraction.y = imageAspect / boxAspect;\n            }\n\n            uv = uv * visibleFraction + (vec2(1.0) - visibleFraction) * uPosition;\n        } else if (uFit < 1.5) {\n            vec2 displayedFraction = vec2(1.0);\n\n            if (imageAspect > boxAspect) {\n                displayedFraction.y = boxAspect / imageAspect;\n            } else {\n                displayedFraction.x = imageAspect / boxAspect;\n            }\n\n            vec2 offset = (vec2(1.0) - displayedFraction) * uPosition;\n            uv = (uv - offset) / displayedFraction;\n\n            if (uv.x < 0.0 || uv.x > 1.0 || uv.y < 0.0 || uv.y > 1.0) {\n                discard;\n            }\n        }\n\n        pixel = texture2D(uTexture, uv);\n    } else {\n        pixel = uColor;\n    }\n\n    if (uGlossEnabled > 0.5) {\n        float glossStart = clamp(uGlossStart, 0.0, 0.96);\n        float glossSpan = clamp(uGlossWidth, 0.05, 0.55);\n        float glossSoft = clamp(uGlossSoftness, 0.01, 0.25);\n\n        float yShift = vXNormalized * uGlossTilt * 0.06;\n        float top = clamp(glossStart + yShift, 0.0, 0.98);\n        float bottom = clamp(top + glossSpan, top + 0.001, 1.0);\n        float span = max(bottom - top, 0.001);\n        float verticalPos = clamp((vViewportY - top) / span, 0.0, 1.0);\n\n        float shoulder = clamp(glossSoft / span, 0.03, 0.48);\n        float enter = smootherstepFrag(clamp(verticalPos / shoulder, 0.0, 1.0));\n        float leave = 1.0 - smootherstepFrag(clamp((verticalPos - (1.0 - shoulder)) / shoulder, 0.0, 1.0));\n        float envelope = enter * leave;\n\n        float bell = sin(verticalPos * 3.14159265359);\n        bell = pow(max(bell, 0.0), mix(2.2, 0.9, glossSoft / 0.25));\n        float verticalLight = mix(envelope, bell, 0.65);\n\n        float bendStrength = smootherstepFrag(clamp((max(vDeformationZone, 0.0) - 0.01) / 0.22, 0.0, 1.0));\n        float edgePresence = smootherstepFrag(clamp((vEdgeMask - 0.02) / 0.78, 0.0, 1.0));\n        float centerSoft = 0.82 + 0.18 * (1.0 - abs(vXNormalized));\n\n        float core = verticalLight * bendStrength * mix(0.42, 1.0, edgePresence) * centerSoft;\n        float aura = envelope * bendStrength * (0.18 + 0.24 * edgePresence);\n        float lighting = core + aura;\n\n        float glossAmount = clamp(lighting * uGlossOpacity, 0.0, 1.0);\n        float dither = (hash12(gl_FragCoord.xy) - 0.5) / 255.0;\n        glossAmount = clamp(glossAmount + dither * (0.55 + 0.45 * glossAmount), 0.0, 1.0);\n        pixel.rgb = pixel.rgb + (vec3(1.0) - pixel.rgb) * glossAmount;\n    }\n\n    float cornerMask = roundedRectMask(vLocalPx, uBoxSize, uRadius);\n    pixel.a *= cornerMask * uOpacity;\n\n    if (pixel.a <= 0.001) discard;\n    gl_FragColor = pixel;\n}\n`;function createShader(gl,type,source){const shader=gl.createShader(type);if(!shader)throw new Error(\"Could not create WebGL shader\");gl.shaderSource(shader,source);gl.compileShader(shader);if(!gl.getShaderParameter(shader,gl.COMPILE_STATUS)){const info=gl.getShaderInfoLog(shader)||\"Unknown shader error\";gl.deleteShader(shader);throw new Error(info);}return shader;}function createProgram(gl){const vertex=createShader(gl,gl.VERTEX_SHADER,VERTEX_SHADER);const fragment=createShader(gl,gl.FRAGMENT_SHADER,FRAGMENT_SHADER);const program=gl.createProgram();if(!program)throw new Error(\"Could not create WebGL program\");gl.attachShader(program,vertex);gl.attachShader(program,fragment);gl.linkProgram(program);gl.deleteShader(vertex);gl.deleteShader(fragment);if(!gl.getProgramParameter(program,gl.LINK_STATUS)){const info=gl.getProgramInfoLog(program)||\"Unknown program link error\";gl.deleteProgram(program);throw new Error(info);}return program;}function requireUniform(gl,program,name){const location=gl.getUniformLocation(program,name);if(!location)throw new Error(`Missing shader uniform: ${name}`);return location;}function createGrid(columns=12,rows=72){const positions=[];const uvs=[];const indices=[];for(let y=0;y<=rows;y++){for(let x=0;x<=columns;x++){const u=x/columns;const v=y/rows;positions.push(u,v);uvs.push(u,v);}}for(let y=0;y<rows;y++){for(let x=0;x<columns;x++){const topLeft=y*(columns+1)+x;const topRight=topLeft+1;const bottomLeft=topLeft+columns+1;const bottomRight=bottomLeft+1;indices.push(topLeft,bottomLeft,topRight,topRight,bottomLeft,bottomRight);}}return{positions:new Float32Array(positions),uvs:new Float32Array(uvs),indices:new Uint16Array(indices)};}function parseCssColor(input){const color=(input||\"#000000\").trim().toLowerCase();if(color.startsWith(\"#\")){const hex=color.slice(1);if(hex.length===3||hex.length===4){const values=hex.split(\"\").map(part=>parseInt(part+part,16));return[values[0]/255,values[1]/255,values[2]/255,(values[3]??255)/255];}if(hex.length===6||hex.length===8){return[parseInt(hex.slice(0,2),16)/255,parseInt(hex.slice(2,4),16)/255,parseInt(hex.slice(4,6),16)/255,(hex.length===8?parseInt(hex.slice(6,8),16):255)/255];}}const rgba=color.match(/rgba?\\(\\s*([\\d.]+)\\s*[, ]\\s*([\\d.]+)\\s*[, ]\\s*([\\d.]+)(?:\\s*[,/]\\s*([\\d.]+))?\\s*\\)/);if(rgba){return[clamp(Number(rgba[1])/255,0,1),clamp(Number(rgba[2])/255,0,1),clamp(Number(rgba[3])/255,0,1),clamp(rgba[4]===undefined?1:Number(rgba[4]),0,1)];}// Framer's color picker normally returns hex/rgb. This browser fallback also\n// lets named colors and hsl() work without shipping a color parser.\nif(typeof document!==\"undefined\"){const canvas=document.createElement(\"canvas\");const context=canvas.getContext(\"2d\");if(context){context.fillStyle=\"#000000\";context.fillStyle=color;const normalized=context.fillStyle;if(normalized!==color)return parseCssColor(normalized);}}return[0,0,0,1];}function compareDomOrder(a,b){if(a.options.renderOrder!==b.options.renderOrder){return a.options.renderOrder-b.options.renderOrder;}if(a.node===b.node)return a.sequence-b.sequence;const relation=a.node.compareDocumentPosition(b.node);if(relation&Node.DOCUMENT_POSITION_FOLLOWING)return-1;if(relation&Node.DOCUMENT_POSITION_PRECEDING)return 1;return a.sequence-b.sequence;}class ViewportWarpEngine{updateSettings(settings){const nextSignature=this.getAppearSignature(settings);if(nextSignature!==this.appearSignature){this.appearStartTime=null;this.appearItemStartTimes.clear();this.appearSignature=nextSignature;}this.settings=settings;}getAppearSignature(settings){return[settings.appearEnabled,settings.appearDistance,settings.appearDuration,settings.appearDelay,settings.appearEase,settings.customEaseX1,settings.customEaseY1,settings.customEaseX2,settings.customEaseY2].join(\"|\");}getViewportSnapshot(){const host=this.desktopScrollHost;if(host){const rect=host.getBoundingClientRect();return{width:Math.max(1,host.clientWidth||rect.width||1),height:Math.max(1,host.clientHeight||rect.height||1),offsetLeft:rect.left+host.clientLeft,offsetTop:rect.top+host.clientTop,pageLeft:host.scrollLeft,pageTop:host.scrollTop};}const vv=this.visualViewport;const width=Math.max(1,vv?.width||window.innerWidth||1);const height=Math.max(1,vv?.height||window.innerHeight||1);const pageLeft=window.scrollX||window.pageXOffset||0;const pageTop=window.scrollY||window.pageYOffset||0;return{width,height,offsetLeft:0,offsetTop:0,pageLeft,pageTop};}resetScrollState(now=performance.now()){const viewport=this.getViewportSnapshot();this.lastScrollY=viewport.pageTop;this.lastTime=now;this.velocity=0;this.velocityFrameScale=1;}getHoverProgress(id,hovered,now){const target=hovered?1:0;let state=this.hoverStates.get(id);if(!state){state={value:0,from:0,to:target,startTime:now};this.hoverStates.set(id,state);}if(state.to!==target){state.from=state.value;state.to=target;state.startTime=now;}const durationSeconds=target>state.from?this.settings.hoverZoomIn:this.settings.hoverZoomOut;const durationMs=Math.max(1,durationSeconds*1e3);const linear=clamp((now-state.startTime)/durationMs,0,1);const eased=applyHoverEase(linear,this.settings.hoverZoomEase,this.settings.hoverCustomEase);state.value=state.from+(state.to-state.from)*eased;if(linear>=1){state.value=state.to;state.from=state.to;}return state.value;}getGeometry(record,viewport,now,isScrolling){let cached=this.geometryCache.get(record.id);// iOS/touch: during active scroll keep stable document-space geometry\n// because Safari may return a client rect behind the compositor.\n//\n// Desktop/Framer Live Preview: nested overflow scrolling does NOT move\n// window.scrollY, so the only reliable coordinate is the fresh client\n// rect. Re-measure while that nested scroller is active. Normal desktop\n// window scrolling may also safely refresh rects during the scroll.\nconst desktopViewportProjection=!this.coarsePointer;const shouldMeasure=!cached||desktopViewportProjection&&(isScrolling||this.layoutDirty||now-cached.measuredAt>160)||!desktopViewportProjection&&!isScrolling&&(this.layoutDirty||now-cached.measuredAt>420);if(shouldMeasure){const rect=record.node.getBoundingClientRect();// getBoundingClientRect() is relative to the layout viewport. The\n// visual viewport's page position includes offsetTop/offsetLeft, so\n// subtract those offsets when reconstructing stable document coords.\n// For normal document scrolling this reconstructs stable document\n// coordinates. In Framer's nested-scroll preview pageTop stays 0,\n// so these values intentionally become viewport-relative coordinates;\n// that is exactly the coordinate space of our absolute body canvas.\ncached={documentLeft:rect.left-viewport.offsetLeft+viewport.pageLeft,documentTop:rect.top-viewport.offsetTop+viewport.pageTop,width:rect.width,height:rect.height,measuredAt:now};this.geometryCache.set(record.id,cached);}return{left:cached.documentLeft-viewport.pageLeft,top:cached.documentTop-viewport.pageTop,documentLeft:cached.documentLeft,documentTop:cached.documentTop,width:cached.width,height:cached.height};}refreshDocumentContentHeight(viewportHeight){let contentBottom=Math.max(viewportHeight,document.documentElement.clientHeight||0);// Ignore our own absolute overlay when estimating page height. This\n// prevents the canvas from extending the scroll range near the bottom.\nconst body=document.body;if(body){const scrollY=window.scrollY||window.pageYOffset||0;for(const child of Array.from(body.children)){if(child===this.canvas)continue;const rect=child.getBoundingClientRect();if(!Number.isFinite(rect.bottom))continue;contentBottom=Math.max(contentBottom,rect.bottom+scrollY);}}this.documentContentHeight=Math.max(viewportHeight,contentBottom);}updateCanvasAnchor(viewport,canvasCssHeight,overscan,isScrolling){if(!this.coarsePointer){// Desktop stays absolute. In Framer Live Preview this canvas can be\n// portaled into the actual nested scroll surface, so the same\n// absolute/compositor model works at any scroll depth.\nthis.canvasAnchorTop=viewport.pageTop;this.canvasAnchorInitialized=true;if(this.canvas.style.top!==\"0px\")this.canvas.style.top=\"0px\";if(this.canvas.style.left!==\"0px\")this.canvas.style.left=\"0px\";const transform=`translate3d(${viewport.pageLeft}px, ${viewport.pageTop}px, 0)`;if(this.canvas.style.transform!==transform){this.canvas.style.transform=transform;}return;}// iOS/coarse-pointer keeps the compositor-anchored document strategy.\nif(this.canvas.style.transform!==\"translate3d(0px, 0px, 0px)\"){this.canvas.style.transform=\"translate3d(0px, 0px, 0px)\";}if(!this.documentContentHeight||!isScrolling&&this.layoutDirty){this.refreshDocumentContentHeight(viewport.height);}const maxTop=Math.max(0,this.documentContentHeight-canvasCssHeight);const desiredTop=clamp(viewport.pageTop-overscan,0,maxTop);if(!this.canvasAnchorInitialized){this.canvasAnchorTop=desiredTop;this.canvasAnchorInitialized=true;this.canvas.style.top=`${desiredTop}px`;return;}// The canvas stays in document space and is only rebased when the\n// viewport approaches its overscan edge. Between rebases, Safari's\n// compositor scrolls the DOM and this canvas together with no JS sync.\nconst viewportTopInCanvas=viewport.pageTop-this.canvasAnchorTop;const viewportBottomInCanvas=viewportTopInCanvas+viewport.height;const safety=Math.max(18,overscan*.34);const needsReanchor=viewportTopInCanvas<safety||viewportBottomInCanvas>canvasCssHeight-safety;if(needsReanchor&&Math.abs(desiredTop-this.canvasAnchorTop)>.5){this.canvasAnchorTop=desiredTop;this.canvas.style.top=`${desiredTop}px`;}}resizeCanvas(viewport){const cssWidth=viewport.width;const visibleCssHeight=viewport.height;const overscan=this.coarsePointer?clamp(visibleCssHeight*.16,96,150):0;const cssHeight=this.coarsePointer?visibleCssHeight+overscan*2:visibleCssHeight;// Mobile gets a slightly lower backing resolution. This materially\n// reduces fill-rate/thermal pressure while remaining sharp because the\n// effect is continuously moving and the source textures stay full-res.\nconst hardDprCap=this.coarsePointer?1.15:1.35;const requestedDpr=Math.min(window.devicePixelRatio||1,this.settings.maxDpr,hardDprCap);const maxPixelBudget=this.coarsePointer?18e5:26e5;const area=cssWidth*cssHeight;const budgetDpr=Math.sqrt(maxPixelBudget/Math.max(1,area));const minDpr=this.coarsePointer?.7:.8;const dpr=Math.max(minDpr,Math.min(requestedDpr,budgetDpr));const pixelWidth=Math.max(1,Math.round(cssWidth*dpr));const pixelHeight=Math.max(1,Math.round(cssHeight*dpr));if(this.canvas.width!==pixelWidth||this.canvas.height!==pixelHeight){this.canvas.width=pixelWidth;this.canvas.height=pixelHeight;}// Avoid 100vh/inset anchoring on iOS 26. The canvas is pinned only by\n// top/left and gets explicit visual-viewport dimensions.\nif(Math.abs(this.lastCssWidth-cssWidth)>.25||Math.abs(this.lastCssHeight-cssHeight)>.25){this.canvas.style.width=`${cssWidth}px`;this.canvas.style.height=`${cssHeight}px`;this.lastCssWidth=cssWidth;this.lastCssHeight=cssHeight;}this.gl.viewport(0,0,pixelWidth,pixelHeight);return{cssWidth,cssHeight:visibleCssHeight,canvasCssHeight:cssHeight,overscan};}updateVelocity(now,viewport){const scrollY=viewport.pageTop;const elapsed=now-this.lastTime;// requestAnimationFrame is paused/throttled in hidden or background\n// tabs. Never interpret the accumulated scroll delta after a long gap\n// as one huge scroll frame; that is what caused the catch-up jump.\nif(!Number.isFinite(elapsed)||elapsed<=0||elapsed>120||document.hidden){this.lastScrollY=scrollY;this.lastTime=now;this.velocity=0;this.velocityFrameScale=1;return;}// If the device cannot sustain the frame rate, automatically reduce the\n// intentional velocity-based lag instead of letting it amplify jank.\nthis.velocityFrameScale=clamp(20/elapsed,.42,1);const rawPixelsPerMs=(scrollY-this.lastScrollY)/elapsed;const target=this.prefersReducedMotion?0:clamp(rawPixelsPerMs/1.8,-1,1);// Touch scrolling is compositor-driven on iOS. A smoothed velocity\n// tail makes the shader keep moving after the DOM has already reached\n// its new position, which reads as \"catching up\". On coarse pointers\n// use the current velocity directly; desktop keeps the softer inertia.\nif(this.coarsePointer){this.velocity=target;this.velocityFrameScale=1;}else{const smoothingDt=Math.min(elapsed,50);const attackMs=45;const releaseMs=105;const smoothing=1-Math.exp(-smoothingDt/(Math.abs(target)>Math.abs(this.velocity)?attackMs:releaseMs));this.velocity+=(target-this.velocity)*smoothing;if(Math.abs(target)<.002&&Math.abs(this.velocity)<.002){this.velocity=0;}}this.lastScrollY=scrollY;this.lastTime=now;}createTexture(src,sourceType){const gl=this.gl;const texture=gl.createTexture();if(!texture)throw new Error(\"Could not create WebGL texture\");gl.bindTexture(gl.TEXTURE_2D,texture);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.LINEAR);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MAG_FILTER,gl.LINEAR);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,1,1,0,gl.RGBA,gl.UNSIGNED_BYTE,new Uint8Array([0,0,0,0]));const key=`${sourceType}:${src}`;const entry={key,sourceType,src,texture,image:null,video:null,width:1,height:1,ready:false,failed:false,refs:0,lastVideoTime:-1};if(sourceType===\"video\"){const video=document.createElement(\"video\");entry.video=video;video.muted=true;video.defaultMuted=true;video.loop=true;video.autoplay=true;video.playsInline=true;video.preload=\"auto\";video.setAttribute(\"playsinline\",\"\");video.setAttribute(\"webkit-playsinline\",\"\");if(!src.startsWith(\"data:\")&&!src.startsWith(\"blob:\")){video.crossOrigin=\"anonymous\";}const markVideoReady=()=>{if(this.disposed)return;if(video.readyState<2)return;entry.width=video.videoWidth||1;entry.height=video.videoHeight||1;entry.ready=entry.width>1&&entry.height>1;entry.failed=false;this.syncReadyFlags();this.wakeRenderer();const playPromise=video.play();playPromise?.catch(()=>{// Muted inline video normally autoplays. If a browser still\n// blocks playback, the DOM fallback remains available until\n// the first video frame can be uploaded to WebGL.\n});};const markVideoFailed=()=>{entry.failed=true;entry.ready=false;this.syncReadyFlags();this.wakeRenderer();};video.addEventListener(\"loadeddata\",markVideoReady);video.addEventListener(\"canplay\",markVideoReady);video.addEventListener(\"error\",markVideoFailed);video.src=src;video.load();video.play()?.catch(()=>{});return entry;}const image=new Image;entry.image=image;image.decoding=\"async\";// The WebGL texture is the visible layer for Appear participants, so\n// avoid letting its request sit behind less important page resources.\n// Browsers that do not support fetchPriority simply ignore it.\ntry{image.fetchPriority=\"high\";}catch{}if(!src.startsWith(\"data:\")&&!src.startsWith(\"blob:\")){image.crossOrigin=\"anonymous\";}image.onload=()=>{if(this.disposed)return;try{gl.bindTexture(gl.TEXTURE_2D,texture);gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,gl.RGBA,gl.UNSIGNED_BYTE,image);entry.width=image.naturalWidth||image.width||1;entry.height=image.naturalHeight||image.height||1;entry.ready=true;entry.failed=false;this.syncReadyFlags();this.wakeRenderer();}catch(error){console.warn(\"ViewportWarp: texture upload failed\",error);entry.failed=true;entry.ready=false;this.syncReadyFlags();this.wakeRenderer();}};image.onerror=()=>{entry.failed=true;entry.ready=false;this.syncReadyFlags();this.wakeRenderer();};image.src=src;return entry;}acquireTexture(src,sourceType){const key=`${sourceType}:${src}`;let entry=this.textures.get(key);if(!entry){entry=this.createTexture(src,sourceType);this.textures.set(key,entry);}entry.refs+=1;return entry;}releaseTexture(entry){if(!entry)return;entry.refs-=1;if(entry.refs<=0){if(entry.image){entry.image.onload=null;entry.image.onerror=null;}if(entry.video){entry.video.pause();entry.video.removeAttribute(\"src\");entry.video.load();}this.gl.deleteTexture(entry.texture);this.textures.delete(entry.key);}}updateVideoTexture(entry){if(entry.sourceType!==\"video\"||!entry.video||!entry.ready)return;const video=entry.video;if(video.readyState<2||video.videoWidth<=0||video.videoHeight<=0){return;}// Avoid uploading the same frame on every RAF when the video frame has\n// not advanced yet.\nif(video.currentTime===entry.lastVideoTime)return;try{const gl=this.gl;gl.bindTexture(gl.TEXTURE_2D,entry.texture);gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,gl.RGBA,gl.UNSIGNED_BYTE,video);entry.width=video.videoWidth||entry.width;entry.height=video.videoHeight||entry.height;entry.lastVideoTime=video.currentTime;}catch(error){// Most commonly this means the remote video server does not allow\n// CORS texture access. Keep the DOM fallback visible in that case.\nentry.failed=true;entry.ready=false;this.syncReadyFlags();console.warn(\"ViewportWarp: video texture upload failed\",error);}}syncGpuRecords(){const aliveIds=new Set(store.elements.keys());for(const[id,gpu]of this.gpuRecords){if(!aliveIds.has(id)){this.releaseTexture(gpu.texture);this.gpuRecords.delete(id);this.hoverStates.delete(id);this.geometryCache.delete(id);this.appearItemStartTimes.delete(id);}}for(const record of store.elements.values()){const isTextureSource=record.options.sourceType===\"image\"||record.options.sourceType===\"video\";const desiredKey=isTextureSource?`${record.options.sourceType}:${record.options.src}`:\"\";const current=this.gpuRecords.get(record.id);if(!current){const texture=isTextureSource&&record.options.src?this.acquireTexture(record.options.src,record.options.sourceType):null;this.gpuRecords.set(record.id,{sourceKey:desiredKey,texture});continue;}if(current.sourceKey!==desiredKey){this.releaseTexture(current.texture);current.sourceKey=desiredKey;current.texture=isTextureSource&&record.options.src?this.acquireTexture(record.options.src,record.options.sourceType):null;}}}syncReadyFlags(){for(const record of store.elements.values()){if(record.options.sourceType===\"color\"){markElementReady(record.id,true);continue;}const gpu=this.gpuRecords.get(record.id);markElementReady(record.id,Boolean(gpu?.texture?.ready));}}bindGeometry(){const gl=this.gl;gl.bindBuffer(gl.ARRAY_BUFFER,this.positionBuffer);gl.enableVertexAttribArray(this.positionLocation);gl.vertexAttribPointer(this.positionLocation,2,gl.FLOAT,false,0,0);gl.bindBuffer(gl.ARRAY_BUFFER,this.uvBuffer);gl.enableVertexAttribArray(this.uvLocation);gl.vertexAttribPointer(this.uvLocation,2,gl.FLOAT,false,0,0);gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER,this.indexBuffer);}dispose(){if(this.disposed)return;this.disposed=true;cancelAnimationFrame(this.animationFrame);this.animationFrame=0;if(this.idleTimer){window.clearTimeout(this.idleTimer);this.idleTimer=0;}this.mediaQuery?.removeEventListener?.(\"change\",this.handleMotionPreference);if(this.desktopScrollHost&&this.restoreScrollHostPosition!==null){this.desktopScrollHost.style.position=this.restoreScrollHostPosition;this.restoreScrollHostPosition=null;}window.removeEventListener(\"pointermove\",this.handlePointerMove);window.removeEventListener(\"pointerleave\",this.handlePointerLeave);window.removeEventListener(\"blur\",this.handlePointerLeave);window.removeEventListener(\"scroll\",this.handleScrollActivity);document.removeEventListener(\"scroll\",this.handleCapturedScrollActivity,true);if(this.nestedScrollResetTimer){window.clearTimeout(this.nestedScrollResetTimer);this.nestedScrollResetTimer=0;}window.removeEventListener(\"resize\",this.handleViewportResize);window.removeEventListener(\"pageshow\",this.handlePageShow);document.removeEventListener(\"visibilitychange\",this.handleVisibilityChange);this.visualViewport?.removeEventListener(\"resize\",this.handleViewportResize);this.hoverStates.clear();this.appearItemStartTimes.clear();this.geometryCache.clear();for(const gpu of this.gpuRecords.values()){this.releaseTexture(gpu.texture);}this.gpuRecords.clear();this.textures.clear();const gl=this.gl;gl.deleteBuffer(this.positionBuffer);gl.deleteBuffer(this.uvBuffer);gl.deleteBuffer(this.indexBuffer);gl.deleteProgram(this.program);}constructor(canvas,settings,portalHost=null){_define_property(this,\"canvas\",void 0);_define_property(this,\"gl\",void 0);_define_property(this,\"program\",void 0);_define_property(this,\"uniforms\",void 0);_define_property(this,\"positionBuffer\",void 0);_define_property(this,\"uvBuffer\",void 0);_define_property(this,\"indexBuffer\",void 0);_define_property(this,\"indexCount\",void 0);_define_property(this,\"positionLocation\",void 0);_define_property(this,\"uvLocation\",void 0);_define_property(this,\"settings\",void 0);_define_property(this,\"animationFrame\",0);_define_property(this,\"idleTimer\",0);_define_property(this,\"lastActivityTime\",performance.now());_define_property(this,\"disposed\",false);_define_property(this,\"textures\",new Map);_define_property(this,\"gpuRecords\",new Map);_define_property(this,\"lastScrollY\",0);_define_property(this,\"lastTime\",performance.now());_define_property(this,\"velocity\",0);_define_property(this,\"velocityFrameScale\",1);_define_property(this,\"coarsePointer\",false);_define_property(this,\"geometryCache\",new Map);_define_property(this,\"lastScrollActivityTime\",-Infinity);_define_property(this,\"layoutDirty\",true);_define_property(this,\"visualViewport\",null);_define_property(this,\"desktopScrollHost\",null);_define_property(this,\"restoreScrollHostPosition\",null);_define_property(this,\"lastCssWidth\",0);_define_property(this,\"lastCssHeight\",0);_define_property(this,\"canvasAnchorTop\",0);_define_property(this,\"documentContentHeight\",0);_define_property(this,\"canvasAnchorInitialized\",false);_define_property(this,\"nestedScrollActive\",false);_define_property(this,\"nestedScrollResetTimer\",0);_define_property(this,\"prefersReducedMotion\",false);_define_property(this,\"mediaQuery\",null);_define_property(this,\"appearStartTime\",null);_define_property(this,\"appearItemStartTimes\",new Map);_define_property(this,\"appearSignature\",\"\");_define_property(this,\"pointerX\",-1e5);_define_property(this,\"pointerY\",-1e5);_define_property(this,\"pointerActive\",false);_define_property(this,\"hoverStates\",new Map);_define_property(this,\"wakeRenderer\",()=>{if(this.disposed||document.hidden)return;this.lastActivityTime=performance.now();if(this.idleTimer){window.clearTimeout(this.idleTimer);this.idleTimer=0;}if(!this.animationFrame){this.animationFrame=requestAnimationFrame(this.render);}});_define_property(this,\"handleScrollActivity\",()=>{// Window/document scrolling. On touch devices we keep using stable\n// document-space geometry so Safari's compositor can move the absolute\n// canvas together with the page without waiting for fresh DOM reads.\nthis.lastScrollActivityTime=performance.now();this.wakeRenderer();});_define_property(this,\"handleCapturedScrollActivity\",event=>{// Framer Live Preview often scrolls a nested overflow element while\n// window.scrollY stays at zero. In that case an absolute canvas at the\n// document root is still visible, but cached document coordinates would\n// never change. Track that mode explicitly and use fresh client rects on\n// desktop while the nested scroller is moving.\nconst target=event.target;const isRootScroll=target===document||target===document.documentElement||target===document.body;if(!this.coarsePointer){// Framer Preview may surface an internal scroll as document/body or\n// as an element scroll depending on preview mode. Always invalidate\n// desktop geometry; getBoundingClientRect() is the authoritative\n// viewport-space position in both cases.\nthis.layoutDirty=true;if(!isRootScroll){this.nestedScrollActive=true;if(this.nestedScrollResetTimer){window.clearTimeout(this.nestedScrollResetTimer);}this.nestedScrollResetTimer=window.setTimeout(()=>{this.nestedScrollActive=false;this.layoutDirty=true;this.wakeRenderer();},180);}}this.lastScrollActivityTime=performance.now();this.wakeRenderer();});_define_property(this,\"handleVisibilityChange\",()=>{if(document.hidden){cancelAnimationFrame(this.animationFrame);this.animationFrame=0;this.velocity=0;this.velocityFrameScale=1;return;}this.resetScrollState(performance.now());this.layoutDirty=true;this.wakeRenderer();});_define_property(this,\"handlePageShow\",()=>{this.resetScrollState(performance.now());this.layoutDirty=true;this.wakeRenderer();});_define_property(this,\"handleViewportResize\",()=>{// Browser chrome changes can resize the visual viewport during a touch\n// scroll. Mark geometry dirty, but defer actual DOM measurement until\n// scrolling has settled so we never swap in a stale layout rect.\nthis.layoutDirty=true;const now=performance.now();if(now-this.lastTime>140)this.resetScrollState(now);this.wakeRenderer();});_define_property(this,\"handleMotionPreference\",event=>{this.prefersReducedMotion=event.matches;});_define_property(this,\"handlePointerMove\",event=>{// Hover is mouse/pen only. Touch movement should not leave an image\n// artificially stuck in its zoomed state.\nif(event.pointerType===\"touch\"){this.pointerActive=false;return;}this.pointerX=event.clientX;this.pointerY=event.clientY;this.pointerActive=true;this.wakeRenderer();});_define_property(this,\"handlePointerLeave\",()=>{this.pointerActive=false;this.pointerX=-1e5;this.pointerY=-1e5;this.wakeRenderer();});_define_property(this,\"render\",now=>{this.animationFrame=0;if(this.disposed)return;if(document.hidden){this.animationFrame=0;return;}const gl=this.gl;const viewport=this.getViewportSnapshot();const isScrolling=now-this.lastScrollActivityTime<140;const{cssWidth,cssHeight,canvasCssHeight,overscan}=this.resizeCanvas(viewport);this.updateCanvasAnchor(viewport,canvasCssHeight,overscan,isScrolling);this.updateVelocity(now,viewport);this.syncGpuRecords();this.syncReadyFlags();gl.clear(gl.COLOR_BUFFER_BIT);gl.useProgram(this.program);this.bindGeometry();gl.uniform2f(this.uniforms.viewport,cssWidth,canvasCssHeight);gl.uniform1f(this.uniforms.visibleViewportHeight,cssHeight);gl.uniform1f(this.uniforms.viewportTopInCanvas,this.coarsePointer?viewport.pageTop-this.canvasAnchorTop:0);gl.uniform1f(this.uniforms.zoneStart,clamp(this.settings.zoneStart,0,.98));gl.uniform1f(this.uniforms.curve,Math.max(.01,this.settings.curve));gl.uniform1f(this.uniforms.velocity,this.velocity*this.velocityFrameScale);gl.uniform1f(this.uniforms.edgeReach,clamp(this.settings.edgeReach,.02,.49));gl.uniform1f(this.uniforms.edgeFalloff,Math.max(.05,this.settings.edgeFalloff));gl.uniform1f(this.uniforms.bottomNarrowing,clamp(this.settings.bottomNarrowing,0,1.5));gl.uniform1f(this.uniforms.bottomNarrowStart,clamp(this.settings.bottomNarrowStart,this.settings.zoneStart+.001,.995));gl.uniform1f(this.uniforms.bottomNarrowSmoothness,clamp(this.settings.bottomNarrowSmoothness,0,1));gl.uniform1f(this.uniforms.glossEnabled,this.settings.glossEnabled?1:0);gl.uniform1f(this.uniforms.glossOpacity,clamp(this.settings.glossOpacity,0,1));gl.uniform1f(this.uniforms.glossStart,clamp(this.settings.glossStart,0,.98));gl.uniform1f(this.uniforms.glossWidth,Math.max(.05,this.settings.glossWidth));gl.uniform1f(this.uniforms.glossSoftness,Math.max(.01,this.settings.glossSoftness));gl.uniform1f(this.uniforms.glossTilt,clamp(this.settings.glossTilt,-1,1));gl.uniform1i(this.uniforms.texture,0);const records=Array.from(store.elements.values()).filter(record=>record.options.enabled&&record.node.isConnected).sort(compareDomOrder);// Low-latency Appear:\n// The old version waited for EVERY Appear item on the whole page before\n// starting the first reveal. On a cold load, one slow/below-the-fold\n// texture could therefore delay all visible WebGL images.\n//\n// Start as soon as the first currently-visible Appear texture is ready.\n// Items that become ready within a short join window share the same\n// clock; a genuinely late visible item gets its own reveal instead of\n// blocking the rest of the page.\nconst appearRecords=records.filter(record=>record.options.appear);const visibleAppearIds=new Set;if(this.settings.appearEnabled&&appearRecords.length>0){const marginY=viewport.height*.25;const marginX=viewport.width*.2;for(const record of appearRecords){const clientRect=record.node.getBoundingClientRect();const left=clientRect.left-viewport.offsetLeft;const top=clientRect.top-viewport.offsetTop;const right=left+clientRect.width;const bottom=top+clientRect.height;if(bottom>=-marginY&&top<=viewport.height+marginY&&right>=-marginX&&left<=viewport.width+marginX){visibleAppearIds.add(record.id);}}if(this.appearStartTime===null){const firstVisibleReady=appearRecords.some(record=>visibleAppearIds.has(record.id)&&record.ready);if(firstVisibleReady){this.appearStartTime=now;}}if(this.appearStartTime!==null){const joinWindowMs=120;const globalAge=now-this.appearStartTime;for(const record of appearRecords){if(!record.ready||this.appearItemStartTimes.has(record.id)){continue;}// Visible textures that miss the small join window animate\n// from their own ready moment. Offscreen textures inherit\n// the original global clock so they are already revealed\n// when the user eventually scrolls to them.\nconst isVisible=visibleAppearIds.has(record.id);const itemStart=isVisible&&globalAge>joinWindowMs?now:this.appearStartTime;this.appearItemStartTimes.set(record.id,itemStart);}}}else{this.appearStartTime=null;this.appearItemStartTimes.clear();}const getAppearProgress=record=>{if(!this.settings.appearEnabled||!record.options.appear)return 1;if(!record.ready||this.appearStartTime===null)return 0;const startTime=this.appearItemStartTimes.get(record.id)??this.appearStartTime;const delayMs=Math.max(0,this.settings.appearDelay)*1e3;const durationMs=Math.max(.001,this.settings.appearDuration)*1e3;const elapsed=now-startTime-delayMs;const linearProgress=clamp(elapsed/durationMs,0,1);return applyAppearEase(linearProgress,this.settings.appearEase,{x1:this.settings.customEaseX1,y1:this.settings.customEaseY1,x2:this.settings.customEaseX2,y2:this.settings.customEaseY2});};let anyAppearAnimating=false;let needsContinuousVideo=false;for(const record of records){const rect=this.getGeometry(record,viewport,now,isScrolling);const rectLeft=rect.left;const rectTop=rect.top;const rectRight=rectLeft+rect.width;const rectBottom=rectTop+rect.height;const documentBottom=rect.documentTop+rect.height;const canvasDocumentBottom=this.canvasAnchorTop+canvasCssHeight;const outsideVerticalRange=!this.coarsePointer?rectBottom<-160||rectTop>cssHeight+160:documentBottom<this.canvasAnchorTop-120||rect.documentTop>canvasDocumentBottom+120;if(rect.width<=0||rect.height<=0||outsideVerticalRange||rectRight<-200||rectLeft>cssWidth+200){continue;}const options=record.options;const localDistortion=Math.max(0,options.distortion);const reveal=getAppearProgress(record);if(this.settings.appearEnabled&&options.appear&&record.ready&&reveal<.999){anyAppearAnimating=true;}const revealOffsetY=this.settings.appearEnabled&&options.appear&&!this.prefersReducedMotion?(1-reveal)*this.settings.appearDistance:0;gl.uniform4f(this.uniforms.rect,!this.coarsePointer?rect.left:rect.documentLeft-viewport.pageLeft,!this.coarsePointer?rect.top+revealOffsetY:rect.documentTop-this.canvasAnchorTop+revealOffsetY,rect.width,rect.height);gl.uniform1f(this.uniforms.strength,this.settings.strength*localDistortion);gl.uniform1f(this.uniforms.scrollBoost,this.settings.scrollBoost*localDistortion);gl.uniform1f(this.uniforms.scrollLag,(this.coarsePointer?0:this.settings.scrollLag)*localDistortion);gl.uniform1f(this.uniforms.verticalBend,this.settings.verticalBend*localDistortion);gl.uniform2f(this.uniforms.boxSize,rect.width,rect.height);gl.uniform2f(this.uniforms.position,clamp(options.positionX,0,1),clamp(options.positionY,0,1));gl.uniform1f(this.uniforms.radius,Math.max(0,options.radius));gl.uniform1f(this.uniforms.opacity,clamp(options.opacity,0,1)*reveal);const canHoverZoom=this.settings.hoverZoomEnabled&&options.hoverZoom===true&&!this.prefersReducedMotion&&(options.sourceType===\"image\"||options.sourceType===\"video\");const pointerX=this.pointerX-viewport.offsetLeft;const pointerY=this.pointerY-viewport.offsetTop;const isHovered=canHoverZoom&&this.pointerActive&&pointerX>=rectLeft&&pointerX<=rectRight&&pointerY>=rectTop&&pointerY<=rectBottom;const hoverProgress=this.getHoverProgress(record.id,Boolean(isHovered),now);const hoverScale=1+clamp(this.settings.hoverZoomAmount,0,.5)*hoverProgress;gl.uniform1f(this.uniforms.hoverScale,hoverScale);gl.uniform2f(this.uniforms.hoverOrigin,clamp(this.settings.hoverOriginX,0,1),clamp(this.settings.hoverOriginY,0,1));gl.uniform1f(this.uniforms.fit,options.fit===\"cover\"?0:options.fit===\"contain\"?1:2);if(options.sourceType===\"image\"||options.sourceType===\"video\"){const gpu=this.gpuRecords.get(record.id);const texture=gpu?.texture;if(!texture?.ready)continue;if(texture.sourceType===\"video\"){needsContinuousVideo=true;this.updateVideoTexture(texture);if(!texture.ready)continue;}gl.activeTexture(gl.TEXTURE0);gl.bindTexture(gl.TEXTURE_2D,texture.texture);gl.uniform1f(this.uniforms.useTexture,1);gl.uniform2f(this.uniforms.imageSize,texture.width,texture.height);gl.uniform4f(this.uniforms.color,1,1,1,1);}else{const[r,g,b,a]=parseCssColor(options.color);gl.uniform1f(this.uniforms.useTexture,0);gl.uniform2f(this.uniforms.imageSize,1,1);gl.uniform4f(this.uniforms.color,r,g,b,a);}gl.drawElements(gl.TRIANGLES,this.indexCount,gl.UNSIGNED_SHORT,0);}if(!isScrolling)this.layoutDirty=false;const hoverAnimating=Array.from(this.hoverStates.values()).some(state=>Math.abs(state.value-state.to)>.001);const appearAnimating=this.settings.appearEnabled&&appearRecords.length>0&&anyAppearAnimating;const recentlyActive=now-this.lastActivityTime<240;const needsFastFrames=recentlyActive||Math.abs(this.velocity)>.002||needsContinuousVideo||hoverAnimating||appearAnimating;if(needsFastFrames){this.animationFrame=requestAnimationFrame(this.render);}else{// Static pages do not need a fullscreen WebGL redraw at 60/120 Hz.\n// A low-frequency heartbeat keeps layout changes discoverable while\n// greatly reducing GPU/thermal load during long-open sessions.\nthis.idleTimer=window.setTimeout(()=>{this.idleTimer=0;if(!this.disposed&&!document.hidden&&!this.animationFrame){this.animationFrame=requestAnimationFrame(this.render);}},160);}});this.canvas=canvas;this.settings=settings;this.appearSignature=this.getAppearSignature(settings);this.coarsePointer=Boolean(window.matchMedia?.(\"(pointer: coarse)\")?.matches);this.visualViewport=window.visualViewport??null;if(!this.coarsePointer&&portalHost&&portalHost!==document.body&&portalHost!==document.documentElement){this.desktopScrollHost=portalHost;if(window.getComputedStyle(portalHost).position===\"static\"){this.restoreScrollHostPosition=portalHost.style.position;portalHost.style.position=\"relative\";}}const gl=canvas.getContext(\"webgl\",{alpha:true,antialias:!this.coarsePointer,depth:false,stencil:false,premultipliedAlpha:false,preserveDrawingBuffer:false,powerPreference:\"high-performance\"});if(!gl)throw new Error(\"WebGL is not available in this browser\");this.gl=gl;this.program=createProgram(gl);this.positionLocation=gl.getAttribLocation(this.program,\"aPosition\");this.uvLocation=gl.getAttribLocation(this.program,\"aUv\");this.uniforms={viewport:requireUniform(gl,this.program,\"uViewport\"),visibleViewportHeight:requireUniform(gl,this.program,\"uVisibleViewportHeight\"),viewportTopInCanvas:requireUniform(gl,this.program,\"uViewportTopInCanvas\"),rect:requireUniform(gl,this.program,\"uRect\"),strength:requireUniform(gl,this.program,\"uStrength\"),zoneStart:requireUniform(gl,this.program,\"uZoneStart\"),curve:requireUniform(gl,this.program,\"uCurve\"),velocity:requireUniform(gl,this.program,\"uVelocity\"),scrollBoost:requireUniform(gl,this.program,\"uScrollBoost\"),scrollLag:requireUniform(gl,this.program,\"uScrollLag\"),verticalBend:requireUniform(gl,this.program,\"uVerticalBend\"),edgeReach:requireUniform(gl,this.program,\"uEdgeReach\"),edgeFalloff:requireUniform(gl,this.program,\"uEdgeFalloff\"),bottomNarrowing:requireUniform(gl,this.program,\"uBottomNarrowing\"),bottomNarrowStart:requireUniform(gl,this.program,\"uBottomNarrowStart\"),bottomNarrowSmoothness:requireUniform(gl,this.program,\"uBottomNarrowSmoothness\"),glossEnabled:requireUniform(gl,this.program,\"uGlossEnabled\"),glossOpacity:requireUniform(gl,this.program,\"uGlossOpacity\"),glossStart:requireUniform(gl,this.program,\"uGlossStart\"),glossWidth:requireUniform(gl,this.program,\"uGlossWidth\"),glossSoftness:requireUniform(gl,this.program,\"uGlossSoftness\"),glossTilt:requireUniform(gl,this.program,\"uGlossTilt\"),hoverScale:requireUniform(gl,this.program,\"uHoverScale\"),hoverOrigin:requireUniform(gl,this.program,\"uHoverOrigin\"),texture:requireUniform(gl,this.program,\"uTexture\"),useTexture:requireUniform(gl,this.program,\"uUseTexture\"),color:requireUniform(gl,this.program,\"uColor\"),imageSize:requireUniform(gl,this.program,\"uImageSize\"),boxSize:requireUniform(gl,this.program,\"uBoxSize\"),fit:requireUniform(gl,this.program,\"uFit\"),position:requireUniform(gl,this.program,\"uPosition\"),radius:requireUniform(gl,this.program,\"uRadius\"),opacity:requireUniform(gl,this.program,\"uOpacity\")};// The 72-row diagnostic mesh was unnecessarily expensive on mobile.\n// 48 rows on touch devices is still smooth while cutting vertex work by\n// roughly one third. Desktop keeps a little more detail.\nconst grid=createGrid(12,this.coarsePointer?48:60);const positionBuffer=gl.createBuffer();const uvBuffer=gl.createBuffer();const indexBuffer=gl.createBuffer();if(!positionBuffer||!uvBuffer||!indexBuffer){throw new Error(\"Could not create WebGL buffers\");}this.positionBuffer=positionBuffer;this.uvBuffer=uvBuffer;this.indexBuffer=indexBuffer;this.indexCount=grid.indices.length;gl.bindBuffer(gl.ARRAY_BUFFER,this.positionBuffer);gl.bufferData(gl.ARRAY_BUFFER,grid.positions,gl.STATIC_DRAW);gl.bindBuffer(gl.ARRAY_BUFFER,this.uvBuffer);gl.bufferData(gl.ARRAY_BUFFER,grid.uvs,gl.STATIC_DRAW);gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER,this.indexBuffer);gl.bufferData(gl.ELEMENT_ARRAY_BUFFER,grid.indices,gl.STATIC_DRAW);gl.disable(gl.DEPTH_TEST);gl.enable(gl.BLEND);gl.blendFunc(gl.SRC_ALPHA,gl.ONE_MINUS_SRC_ALPHA);gl.clearColor(0,0,0,0);this.resetScrollState(performance.now());this.mediaQuery=window.matchMedia?.(\"(prefers-reduced-motion: reduce)\")??null;this.prefersReducedMotion=Boolean(this.mediaQuery?.matches);this.mediaQuery?.addEventListener?.(\"change\",this.handleMotionPreference);window.addEventListener(\"pointermove\",this.handlePointerMove,{passive:true});window.addEventListener(\"pointerleave\",this.handlePointerLeave);window.addEventListener(\"blur\",this.handlePointerLeave);window.addEventListener(\"scroll\",this.handleScrollActivity,{passive:true});// Framer Live Preview can scroll an internal overflow container instead\n// of window. Element scroll events do not bubble, so listen in capture\n// phase as well. This keeps an absolute body canvas in sync without\n// switching desktop back to position: fixed.\ndocument.addEventListener(\"scroll\",this.handleCapturedScrollActivity,{passive:true,capture:true});window.addEventListener(\"resize\",this.handleViewportResize,{passive:true});window.addEventListener(\"pageshow\",this.handlePageShow);document.addEventListener(\"visibilitychange\",this.handleVisibilityChange);this.visualViewport?.addEventListener(\"resize\",this.handleViewportResize,{passive:true});this.wakeRenderer();}}// -----------------------------------------------------------------------------\n// Viewport Distortion\n// -----------------------------------------------------------------------------\n// Match Framer's common/default responsive ranges:\n// Phone:  < 810px\n// Tablet: 810px–1199px\n// Desktop: >= 1200px\nconst PHONE_BREAKPOINT_MAX=809;const TABLET_BREAKPOINT_MAX=1199;function getViewportBreakpoint(width){if(width<=PHONE_BREAKPOINT_MAX)return\"phone\";if(width<=TABLET_BREAKPOINT_MAX)return\"tablet\";return\"desktop\";}function isDistortionEnabledAtWidth(width,tabletEnabled,phoneEnabled){const breakpoint=getViewportBreakpoint(width);if(breakpoint===\"phone\")return phoneEnabled;if(breakpoint===\"tablet\")return tabletEnabled;return true;}/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 80\n * @framerIntrinsicHeight 40\n */export function ViewportDistortion(props){const isStaticRenderer=useIsStaticRenderer();const[viewportWidth,setViewportWidth]=React.useState(()=>{if(typeof window===\"undefined\")return 1200;return window.visualViewport?.width||window.innerWidth;});const effectEnabled=isDistortionEnabledAtWidth(viewportWidth,props.tabletEnabled,props.phoneEnabled);React.useEffect(()=>{if(typeof window===\"undefined\"||isStaticRenderer)return;const updateViewportWidth=()=>{setViewportWidth(window.visualViewport?.width||window.innerWidth);};updateViewportWidth();window.addEventListener(\"resize\",updateViewportWidth,{passive:true});window.visualViewport?.addEventListener(\"resize\",updateViewportWidth,{passive:true});return()=>{window.removeEventListener(\"resize\",updateViewportWidth);window.visualViewport?.removeEventListener(\"resize\",updateViewportWidth);};},[isStaticRenderer]);const canvasRef=React.useRef(null);const ownerRef=React.useRef(Symbol(\"ViewportWarpCanvas\"));const engineRef=React.useRef(null);const[portalTarget,setPortalTarget]=React.useState(null);const settings=React.useMemo(()=>({strength:props.strength,zoneStart:props.zoneStart,curve:props.curve,scrollBoost:props.scrollBoost,scrollLag:props.scrollLag,verticalBend:props.verticalBend,edgeReach:props.edgeReach,edgeFalloff:props.edgeFalloff,bottomNarrowing:props.bottomNarrowing,bottomNarrowStart:props.bottomNarrowStart,bottomNarrowSmoothness:props.bottomNarrowSmoothness,glossEnabled:props.glossEnabled,glossOpacity:props.glossOpacity,glossStart:props.glossStart,glossWidth:props.glossWidth,glossSoftness:props.glossSoftness,glossTilt:props.glossTilt,hoverZoomEnabled:props.hoverZoomEnabled,hoverZoomAmount:props.hoverZoomAmount,hoverZoomIn:props.hoverZoomIn,hoverZoomOut:props.hoverZoomOut,hoverZoomEase:props.hoverZoomEase,hoverCustomEase:parseCubicBezierField(props.hoverCustomEase),hoverOriginX:props.hoverOriginX,hoverOriginY:props.hoverOriginY,appearEnabled:props.appearEnabled,appearDistance:props.appearDistance,appearDuration:props.appearDuration,appearDelay:props.appearDelay,appearEase:props.appearEase,customEaseX1:props.customEaseX1,customEaseY1:props.customEaseY1,customEaseX2:props.customEaseX2,customEaseY2:props.customEaseY2,maxDpr:props.maxDpr}),[props.strength,props.zoneStart,props.curve,props.scrollBoost,props.scrollLag,props.verticalBend,props.edgeReach,props.edgeFalloff,props.bottomNarrowing,props.bottomNarrowStart,props.bottomNarrowSmoothness,props.glossEnabled,props.glossOpacity,props.glossStart,props.glossWidth,props.glossSoftness,props.glossTilt,props.hoverZoomEnabled,props.hoverZoomAmount,props.hoverZoomIn,props.hoverZoomOut,props.hoverZoomEase,props.hoverCustomEase,props.hoverOriginX,props.hoverOriginY,props.appearEnabled,props.appearDistance,props.appearDuration,props.appearDelay,props.appearEase,props.customEaseX1,props.customEaseY1,props.customEaseX2,props.customEaseY2,props.maxDpr]);React.useEffect(()=>{if(typeof document===\"undefined\"||isStaticRenderer)return;if(!effectEnabled){setPortalTarget(null);setCanvasReady(false);return;}const coarsePointer=Boolean(window.matchMedia?.(\"(pointer: coarse)\")?.matches);const resolvePortalTarget=()=>{const nextTarget=coarsePointer?document.body:findDesktopScrollHost()||document.body;setPortalTarget(current=>current===nextTarget?current:nextTarget);};resolvePortalTarget();store.listeners.add(resolvePortalTarget);document.addEventListener(\"scroll\",resolvePortalTarget,true);window.addEventListener(\"resize\",resolvePortalTarget,{passive:true});const timer=window.setTimeout(resolvePortalTarget,250);return()=>{window.clearTimeout(timer);store.listeners.delete(resolvePortalTarget);document.removeEventListener(\"scroll\",resolvePortalTarget,true);window.removeEventListener(\"resize\",resolvePortalTarget);};},[isStaticRenderer,effectEnabled]);React.useLayoutEffect(()=>{if(isStaticRenderer)return;setGlobalEffectEnabled(effectEnabled);if(!effectEnabled){// Force DOM fallbacks on before any WebGL state can hide them.\nsetAppearEnabled(false);setCanvasReady(false);return()=>{setGlobalEffectEnabled(false);setAppearEnabled(false);setCanvasReady(false);};}setAppearEnabled(props.appearEnabled);return()=>{// If the Distortion component unmounts or is replaced during a\n// Framer hot reload, leave all ViewportImage DOM fallbacks visible.\nsetGlobalEffectEnabled(false);setAppearEnabled(false);setCanvasReady(false);};},[isStaticRenderer,effectEnabled,props.appearEnabled]);React.useEffect(()=>{if(isStaticRenderer||!effectEnabled||!portalTarget)return;const canvas=canvasRef.current;if(!canvas)return;const owner=ownerRef.current;if(store.owner&&store.owner!==owner){console.warn(\"ViewportWarp: more than one Viewport Distortion component was found. Keep only one global instance.\");return;}store.owner=owner;try{const engine=new ViewportWarpEngine(canvas,settings,portalTarget);engineRef.current=engine;setCanvasReady(true);}catch(error){console.warn(\"ViewportWarp: WebGL initialization failed\",error);setCanvasReady(false);}return()=>{engineRef.current?.dispose();engineRef.current=null;if(store.owner===owner){store.owner=null;setCanvasReady(false);}};},[isStaticRenderer,effectEnabled,portalTarget]);React.useEffect(()=>{if(!effectEnabled)return;engineRef.current?.updateSettings(settings);},[effectEnabled,settings]);if(isStaticRenderer){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,width:\"100%\",height:\"100%\",minWidth:1,minHeight:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",border:\"1px dashed rgba(0,0,0,.25)\",borderRadius:6,fontSize:10,fontFamily:\"monospace\",color:\"rgba(0,0,0,.55)\",overflow:\"hidden\"},children:\"WEBGL\"});}const canvas=/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,\"aria-hidden\":\"true\",style:{// Always absolute on both mobile and desktop.\n// iOS stays in document.body. Desktop Framer Preview can portal\n// this same absolute canvas into its actual scroll surface.\nposition:\"absolute\",top:0,left:0,right:\"auto\",bottom:\"auto\",width:\"100vw\",height:\"100vh\",pointerEvents:\"none\",zIndex:props.zIndex,background:\"transparent\",transform:\"translate3d(0px, 0px, 0px)\",transformOrigin:\"0 0\",backfaceVisibility:\"hidden\",willChange:\"contents\",contain:\"strict\"}});return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{...props.style,width:\"100%\",height:\"100%\"}}),effectEnabled&&portalTarget?/*#__PURE__*/createPortal(canvas,portalTarget):null]});}ViewportDistortion.displayName=\"Viewport Distortion\";const viewportDistortionDefaultProps={strength:.09,zoneStart:.66,curve:1.7,scrollBoost:.055,scrollLag:14,verticalBend:8,edgeReach:.24,edgeFalloff:1.45,bottomNarrowing:.22,bottomNarrowStart:.88,bottomNarrowSmoothness:.7,glossEnabled:false,glossOpacity:.16,glossStart:.64,glossWidth:.24,glossSoftness:.1,glossTilt:.18,hoverZoomEnabled:false,hoverZoomAmount:.06,hoverZoomIn:.45,hoverZoomOut:.55,hoverZoomEase:\"easeOut\",hoverCustomEase:\"cubic-bezier(0.22, 1, 0.36, 1)\",hoverOriginX:.5,hoverOriginY:.5,appearEnabled:false,appearDistance:40,appearDuration:.8,appearDelay:.1,appearEase:\"easeOut\",customEaseX1:.22,customEaseY1:1,customEaseX2:.36,customEaseY2:1,maxDpr:1.35,tabletEnabled:true,phoneEnabled:true,zIndex:100,creatorLink:\"https://framer.link/CxdtHWB\"};ViewportDistortion.defaultProps=viewportDistortionDefaultProps;addPropertyControls(ViewportDistortion,{strength:{type:ControlType.Number,title:\"Strength\",defaultValue:.09,min:0,max:.35,step:.005},zoneStart:{type:ControlType.Number,title:\"Zone Start\",defaultValue:.66,min:.35,max:.95,step:.01},curve:{type:ControlType.Number,title:\"Falloff\",defaultValue:1.7,min:.25,max:4,step:.05},scrollBoost:{type:ControlType.Number,title:\"Scroll Boost\",defaultValue:.055,min:0,max:.3,step:.005},scrollLag:{type:ControlType.Number,title:\"Scroll Lag\",defaultValue:14,min:-80,max:80,step:1,unit:\"px\"},verticalBend:{type:ControlType.Number,title:\"Edge Bend\",defaultValue:8,min:-80,max:80,step:1,unit:\"px\"},edgeReach:{type:ControlType.Number,title:\"Edge Reach\",defaultValue:.24,min:.05,max:.48,step:.01,description:\"Width of the distortion zone from each viewport edge. 0.24 = outer 24% on each side.\"},edgeFalloff:{type:ControlType.Number,title:\"Edge Falloff\",defaultValue:1.45,min:.25,max:4,step:.05,description:\"Shapes how softly the distortion fades to zero toward the center.\"},bottomNarrowing:{type:ControlType.Number,title:\"Bottom Narrow\",defaultValue:.22,min:0,max:1.5,step:.01,description:\"Global bottom taper of the whole distortion curve. 1 returns the expansion to neutral at the viewport bottom; values above 1 pinch inward.\"},bottomNarrowStart:{type:ControlType.Number,title:\"Narrow Start\",defaultValue:.88,min:.5,max:.99,step:.01,description:\"Viewport height where the shared distortion curve starts tapering back inward.\"},bottomNarrowSmoothness:{type:ControlType.Number,title:\"Narrow Smooth\",defaultValue:.7,min:0,max:1,step:.01,description:\"Rounds the transition from expansion into narrowing. Higher values create a broader, smoother turn.\"},glossEnabled:{type:ControlType.Boolean,title:\"Gloss\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},glossOpacity:{type:ControlType.Number,title:\"Gloss Opacity\",defaultValue:.16,min:0,max:.8,step:.01,hidden:props=>!props.glossEnabled},glossStart:{type:ControlType.Number,title:\"Gloss Start\",defaultValue:.64,min:.4,max:.98,step:.01,hidden:props=>!props.glossEnabled,description:\"Viewport height where the broad bend lighting begins.\"},glossWidth:{type:ControlType.Number,title:\"Gloss Height\",defaultValue:.24,min:.05,max:.55,step:.01,hidden:props=>!props.glossEnabled},glossSoftness:{type:ControlType.Number,title:\"Gloss Soft\",defaultValue:.1,min:.01,max:.25,step:.01,hidden:props=>!props.glossEnabled},glossTilt:{type:ControlType.Number,title:\"Gloss Tilt\",defaultValue:.18,min:-1,max:1,step:.01,hidden:props=>!props.glossEnabled,description:\"Adds a subtle diagonal bias so the bend lighting feels more natural.\"},hoverZoomEnabled:{type:ControlType.Boolean,title:\"Hover Zoom\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Global hover zoom settings. Each Viewport Image must also have Hover Zoom set to Include.\"},hoverZoomAmount:{type:ControlType.Number,title:\"Zoom Amount\",defaultValue:.06,min:0,max:.25,step:.005,hidden:props=>!props.hoverZoomEnabled,description:\"0.06 = scale 1.06. The Viewport Image frame stays fixed.\"},hoverZoomIn:{type:ControlType.Number,title:\"Zoom In\",defaultValue:.45,min:.05,max:2,step:.05,unit:\"s\",hidden:props=>!props.hoverZoomEnabled},hoverZoomOut:{type:ControlType.Number,title:\"Zoom Out\",defaultValue:.55,min:.05,max:2,step:.05,unit:\"s\",hidden:props=>!props.hoverZoomEnabled},hoverZoomEase:{type:ControlType.Enum,title:\"Zoom Ease\",options:[\"easeOut\",\"easeInOut\",\"linear\",\"custom\"],optionTitles:[\"Ease Out\",\"Ease In Out\",\"Linear\",\"Custom\"],defaultValue:\"easeOut\",hidden:props=>!props.hoverZoomEnabled},hoverCustomEase:{type:ControlType.String,title:\"Custom Ease\",defaultValue:\"cubic-bezier(0.22, 1, 0.36, 1)\",placeholder:\"cubic-bezier(0.22, 1, 0.36, 1)\",hidden:props=>!props.hoverZoomEnabled||props.hoverZoomEase!==\"custom\",description:\"Enter one CSS cubic-bezier value, e.g. cubic-bezier(0.16, 1, 0.3, 1). You can also enter: 0.16, 1, 0.3, 1\"},hoverOriginX:{type:ControlType.Number,title:\"Origin X\",defaultValue:.5,min:0,max:1,step:.01,hidden:props=>!props.hoverZoomEnabled},hoverOriginY:{type:ControlType.Number,title:\"Origin Y\",defaultValue:.5,min:0,max:1,step:.01,hidden:props=>!props.hoverZoomEnabled},appearEnabled:{type:ControlType.Boolean,title:\"Appear\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},appearDistance:{type:ControlType.Number,title:\"From Y\",defaultValue:40,min:-200,max:200,step:1,unit:\"px\",hidden:props=>!props.appearEnabled},appearDuration:{type:ControlType.Number,title:\"Duration\",defaultValue:.8,min:.05,max:5,step:.05,unit:\"s\",hidden:props=>!props.appearEnabled},appearDelay:{type:ControlType.Number,title:\"Delay\",defaultValue:.1,min:0,max:5,step:.05,unit:\"s\",hidden:props=>!props.appearEnabled},appearEase:{type:ControlType.Enum,title:\"Ease\",options:[\"easeOut\",\"easeInOut\",\"easeIn\",\"linear\",\"custom\"],optionTitles:[\"Ease Out\",\"Ease In Out\",\"Ease In\",\"Linear\",\"Custom\"],defaultValue:\"easeOut\",hidden:props=>!props.appearEnabled},customEaseX1:{type:ControlType.Number,title:\"Bezier X1\",defaultValue:.22,min:0,max:1,step:.01,hidden:props=>!props.appearEnabled||props.appearEase!==\"custom\"},customEaseY1:{type:ControlType.Number,title:\"Bezier Y1\",defaultValue:1,min:-2,max:3,step:.01,hidden:props=>!props.appearEnabled||props.appearEase!==\"custom\"},customEaseX2:{type:ControlType.Number,title:\"Bezier X2\",defaultValue:.36,min:0,max:1,step:.01,hidden:props=>!props.appearEnabled||props.appearEase!==\"custom\"},customEaseY2:{type:ControlType.Number,title:\"Bezier Y2\",defaultValue:1,min:-2,max:3,step:.01,hidden:props=>!props.appearEnabled||props.appearEase!==\"custom\",description:\"CSS-style cubic-bezier(x1, y1, x2, y2). X values stay between 0 and 1; Y can overshoot.\"},maxDpr:{type:ControlType.Number,title:\"Max DPR\",defaultValue:1.35,min:.8,max:1.35,step:.05,description:\"Performance-safe render scale for the fullscreen WebGL canvas.\"},tabletEnabled:{type:ControlType.Boolean,title:\"Tablet Effect\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Enable or disable Viewport Distortion on Tablet viewports (810–1199px).\"},phoneEnabled:{type:ControlType.Boolean,title:\"Phone Effect\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Enable or disable Viewport Distortion on Phone viewports (0–809px).\"},zIndex:{type:ControlType.Number,title:\"Canvas Z\",defaultValue:100,min:-10,max:9999,step:1,displayStepper:true},creatorLink:{type:ControlType.Link,title:\"Creator\",defaultValue:\"https://framer.link/CxdtHWB\",description:\"Made by [Bestlooker](https://framer.link/CxdtHWB)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ViewportDistortion\":{\"type\":\"reactComponent\",\"name\":\"ViewportDistortion\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"40\",\"framerIntrinsicWidth\":\"80\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ViewportDistortion.map"],"mappings":"A,sQAGsE,SAASA,GAAgB,CAAC,IAAMkC,EAAM,WAEjB,OAFgCA,EAAMjC,KAAY,EAAMA,GAAW,CAAC,yBAAS,IAAI,IAAI,0BAAU,IAAI,IAAI,YAAY,GAAM,cAAc,GAAM,cAAc,GAAK,MAAM,KAAK,SAAS,CAAC,GAE7Q,OAAOiC,EAAMjC,EAAU,CAAC,eAAgB,YAAW,EAAMA,EAAU,CAAC,cAAc,IAAaiC,EAAMjC,EAAW,CAA8B,SAASC,GAAiB,CAACmC,EAAM,UAAU,QAAQ,GAAUC,EAAS,CAAC,CAAE,CAAC,SAASC,EAAe,EAAS,CAA+B,OAA9BF,EAAM,UAAU,IAAIC,CAAQ,MAAYnC,EAAM,UAAU,OAAOmC,CAAQ,CAAE,CAAC,SAASE,EAAgB,EAAG,EAAK,EAAQ,CAACC,EAAK,MAAM,YAAY,iCAAiCtC,EAAM,gBAAgB,GAAM,IAAI,GAAG,EAAE,IAAMuC,EAAQvC,EAAM,SAAS,IAAIwC,CAAE,EAAE,GAAGD,EAAQ,CAAC,IAAME,EAAcF,EAAQ,QAAQ,aAAaG,EAAQ,YAAYH,EAAQ,QAAQ,MAAMG,EAAQ,IAAI,EAAQ,KAAKJ,EAAK,EAAQ,QAAQI,EAAWD,IAAe,EAAQ,MAAMC,EAAQ,aAAa,QAAS,MAAMR,EAAM,SAAS,IAAIM,EAAG,CAAC,KAAG,OAAK,UAAQ,SAAS,EAAM,WAAW,MAAME,EAAQ,aAAa,OAAO,CAAC,EAAGT,EAAgB,CAAE,CAAC,SAASU,EAAkB,EAAG,CAAI3C,EAAM,SAAS,OAAOwC,CAAE,GAAEP,EAAgB,CAAE,CAAC,SAASW,EAAmB,E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