PageSourceSearch

https://relightai.co/_next/static/chunks/439-5613757344c1e9da.js

js relightai.co collected 2026-10-01 23:59:30 UTC 17,853 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[439],{5439:function(e,t,n){n.d(t,{VY:function(){return eP},h_:function(){return eC},fC:function(){return eE},xz:function(){return ew}});var r,o=n(2096),a=n(7078),i=n(4192),u=n(130),l=n(4582),s=n(8448),c=n(1840),d="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=o.forwardRef((e,t)=>{var n,v;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:E,onDismiss:w,...C}=e,P=o.useContext(f),[N,R]=o.useState(null),x=null!==(v=null==N?void 0:N.ownerDocument)&&void 0!==v?v:null===(n=globalThis)||void 0===n?void 0:n.document,[,O]=o.useState({}),M=(0,i.e)(t,e=>R(e)),D=Array.from(P.layers),[T]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),L=D.indexOf(T),k=N?D.indexOf(N):-1,j=P.layersWithOutsidePointerEventsDisabled.size>0,S=k>=L,A=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.W)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...P.branches].some(e=>e.contains(t));!S||n||(null==y||y(e),null==E||E(e),e.defaultPrevented||null==w||w())},x),_=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.W)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;[...P.branches].some(e=>e.contains(t))||(null==b||b(e),null==E||E(e),e.defaultPrevented||null==w||w())},x);return(0,c.e)(e=>{k!==P.layers.size-1||(null==g||g(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},x),o.useEffect(()=>{if(N)return h&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(N)),P.layers.add(N),p(),()=>{h&&1===P.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[N,x,h,P]),o.useEffect(()=>()=>{N&&(P.layers.delete(N),P.layersWithOutsidePointerEventsDisabled.delete(N),p())},[N,P]),o.useEffect(()=>{let e=()=>O({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,u.jsx)(l.WV.div,{...C,ref:M,style:{pointerEvents:j?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,_.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,A.onPointerDownCapture)})});function p(){let e=new CustomEvent(d);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,l.jH)(a,i):a.dispatchEvent(i)}v.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(f),r=o.useRef(null),a=(0,i.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(l.WV.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var h=0;function g(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var y=n(6182),b=n(7412),E=n(3334),w=n(3796),C=n(7850),P=o.forwardRef((e,t)=>
1{var n,r;let{container:a,...i}=e,[s,c]=o.useState(!1);(0,C.b)(()=>c(!0),[]);let d=a||s&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return d?w.createPortal((0,u.jsx)(l.WV.div,{...i,ref:t}),d):null});P.displayName="Portal";var N=e=>{var t,n;let r,a;let{present:u,children:l}=e,s=function(e){var t,n;let[r,a]=o.useState(),i=o.useRef({}),u=o.useRef(e),l=o.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=R(i.current);l.current="mounted"===s?e:"none"},[s]),(0,C.b)(()=>{let t=i.current,n=u.current;if(n!==e){let r=l.current,o=R(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),u.current=e}},[e,c]),(0,C.b)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=R(i.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!u.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(l.current=R(i.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:o.useCallback(e=>{e&&(i.current=getComputedStyle(e)),a(e)},[])}}(u),c="function"==typeof l?l({present:s.isPresent}):o.Children.only(l),d=(0,i.e)(s.ref,(r=null===(t=Object.getOwnPropertyDescriptor(c.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?c.ref:(r=null===(n=Object.getOwnPropertyDescriptor(c,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof l||s.isPresent?o.cloneElement(c,{ref:d}):null};function R(e){return(null==e?void 0:e.animationName)||"none"}N.displayName="Presence";var x=n(9735),O=n(32),M=n(6510),D=n(1506),T=n(9906),L=n(7778),k=(0,n(2823)._)(),j=function(){},S=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:j,onWheelCapture:j,onTouchMoveCapture:j}),a=r[0],i=r[1],u=e.forwardProps,l=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,v=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,y=e.gapMode,b=(0,D._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(0,L.q)([n,t]),w=(0,D.pi)((0,D.pi)({},b),a);return o.createElement(o.Fragment,null,d&&o.createElement(v,{sideCar:k,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),u?o.cloneElement(o.Children.only(l),(0,D.pi)((0,D.pi)({},w),{ref:E})):o.createElement(void 0===g?"div":g,(0,D.pi)({},w,{className:s,ref:E}),l))});S.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},S.classNames={fullWidth:T.zi,zeroRight:T.pF};var A=n(4598),_=n(1965),W=n(6332),F=!1;if("undefined"!=typeof window)try{var I=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch(e){F=!1}var B=!!F&&{passive:!1},U=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},Y=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),V(e,r)){var o=z(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},V=function(e,t){return"v"===e?U(t,"overflowY"):U(t,"overflowX")},z=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},X=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,l=n.target,s=t.contains(l),c=!1,d=u>0,f=0,v=0;do{var p=z(e,l),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&V(e,l)&&(f+=h,v+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&u>f)?c=!0:!d&&(o&&1>Math.abs(v)||!o&&-u>v)&&(c=!0),c},Z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$=function(e){return[e.deltaX,e.deltaY]},q=function(e){return e&&"current"in e?e.current:e},H=0,K=[],G=(0,A.L)(k,function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),a=o.useState(H++)[0],i=o.useState(W.Ws)[0],u=o.useRef(e);o.useEffect(function(){u.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,D.ev)([e.lockRef.current],(e.shards||[]).map(q),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var o,a=Z(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-a[0],s="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Y(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Y(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||s)&&(r.current=o),!o)return!0;var v=r.current||o;return X(v,t,e,"h"===v?l:s,!0)},[]),s=o.useCallback(function(e){if(K.length&&K[K.length-1]===i){var n="deltaY"in e?$(e):Z(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(q).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=o.useCallback(function(e){n.current=Z(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,$(t),t.target,l(t,e.lockRef.current))},[]),v=o.useCallback(function(t){c(t.type,Z(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return K.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",s,B),document.addEventListener("touchmove",s,B),document.addEventListener("touchstart",d,B),function(){K=K.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,B),document.removeEventListener("touchmove",s,B),document.removeEventListener("touchstart",d,B)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(i,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,p?o.createElement(_.jp,{gapMode:e.gapMode}):null)}),J=o.forwardRef(function(e,t){return o.createElement(S,(0,D.pi)({},e,{ref:t,sideCar:G}))});J.classNames=S.classNames;var Q="Popover",[ee,et]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let a=o.createContext(r),i=n.length;n=[...n,r];let l=t=>{let{scope:n,children:r,...l}=t,s=n?.[e]?.[i]||a,c=o.useMemo(()=>l,Object.values(l));return(0,u.jsx)(s.Provider,{value:c,children:r})};return l.displayName=t+"Provider",[l,function(n,u){let l=u?.[e]?.[i]||a,s=o.useContext(l);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(Q,[E.D7]),en=(0,E.D7)(),[er,eo]=ee(Q),ea=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,s=en(t),c=o.useRef(null),[d,f]=o.useState(!1),[v=!1,p]=(0,O.T)({prop:r,defaultProp:a,onChange:i});return(0,u.jsx)(E.fC,{...s,children:(0,u.jsx)(er,{scope:t,contentId:(0,b.M)(),triggerRef:c,open:v,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:d,onCustomAnchorAdd:o.useCallback(()=>f(!0),[]),onCustomAnchorRemove:o.useCallback(()=>f(!1),[]),modal:l,children:n})})};ea.displayName=Q;var ei="PopoverAnchor";o.forwardRef((e,t)=>
1{let{__scopePopover:n,...r}=e,a=eo(ei,n),i=en(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=a;return o.useEffect(()=>(l(),()=>s()),[l,s]),(0,u.jsx)(E.ee,{...i,...r,ref:t})}).displayName=ei;var eu="PopoverTrigger",el=o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eo(eu,n),s=en(n),c=(0,i.e)(t,o.triggerRef),d=(0,u.jsx)(l.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eb(o.open),...r,ref:c,onClick:(0,a.M)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?d:(0,u.jsx)(E.ee,{asChild:!0,...s,children:d})});el.displayName=eu;var es="PopoverPortal",[ec,ed]=ee(es,{forceMount:void 0}),ef=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=eo(es,t);return(0,u.jsx)(ec,{scope:t,forceMount:n,children:(0,u.jsx)(N,{present:n||a.open,children:(0,u.jsx)(P,{asChild:!0,container:o,children:r})})})};ef.displayName=es;var ev="PopoverContent",ep=o.forwardRef((e,t)=>{let n=ed(ev,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=eo(ev,e.__scopePopover);return(0,u.jsx)(N,{present:r||a.open,children:a.modal?(0,u.jsx)(em,{...o,ref:t}):(0,u.jsx)(eh,{...o,ref:t})})});ep.displayName=ev;var em=o.forwardRef((e,t)=>{let n=eo(ev,e.__scopePopover),r=o.useRef(null),l=(0,i.e)(t,r),s=o.useRef(!1);return o.useEffect(()=>{let e=r.current;if(e)return(0,M.Ry)(e)},[]),(0,u.jsx)(J,{as:x.g7,allowPinchZoom:!0,children:(0,u.jsx)(eg,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eh=o.forwardRef((e,t)=>{let n=eo(ev,e.__scopePopover),r=o.useRef(!1),a=o.useRef(!1);return(0,u.jsx)(eg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let u=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),eg=o.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,m=eo(ev,n),b=en(n);return o.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:g()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:g()),h++,()=>{1===h&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),h--}},[]),(0,u.jsx)(y.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,u.jsx)(v,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:(0,u.jsx)(E.VY,{"data-state":eb(m.open),role:"dialog",id:m.contentId,...b,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ey="PopoverClose";function eb(e){return e?"open":"closed"}o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eo(ey,n);return(0,u.jsx)(l.WV.button,{type:"button",...r,ref:t,onClick:(0,a.M)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=ey,o.forwardRef((e,t)=>
1{let{__scopePopover:n,...r}=e,o=en(n);return(0,u.jsx)(E.Eh,{...o,...r,ref:t})}).displayName="PopoverArrow";var eE=ea,ew=el,eC=ef,eP=ep}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.