"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98],{7401:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(2115);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:u="",children:c,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:r,strokeWidth:s?24*Number(a)/Number(o):a,className:l("lucide",u),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:s,...u}=r;return(0,n.createElement)(a,{ref:i,iconNode:t,className:l("lucide-".concat(o(e)),s),...u})});return r.displayName="".concat(e),r}},8867:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(7401).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},853:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(7401).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},767:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(7401).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},3610:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},8369:(e,t,r)=>{r.d(t,{Ke:()=>S,R6:()=>y,UC:()=>T,bL:()=>R,l9:()=>E});var n=r(2115),o=r(3610),l=r(8166),i=r(1488),a=r(6611),s=r(8068),u=r(3360),c=r(7028),d=r(7668),f=r(5155),p="Collapsible",[m,v]=(0,l.A)(p),[h,w]=m(p),g=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:o,defaultOpen:l,disabled:a,onOpenChange:s,...c}=e,[p=!1,m]=(0,i.i)({prop:o,defaultProp:l,onChange:s});return(0,f.jsx)(h,{scope:r,disabled:a,contentId:(0,d.B)(),open:p,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,f.jsx)(u.sG.div,{"data-state":N(p),"data-disabled":a?"":void 0,...c,ref:t})})});g.displayName=p;var b="CollapsibleTrigger",y=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,l=w(b,r);return(0,f.jsx)(u.sG.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":N(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...n,ref:t,onClick:(0,o.m)(e.onClick,l.onOpenToggle)})});y.displayName=b;var x="CollapsibleContent",S=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=w(x,e.__scopeCollapsible);return(0,f.jsx)(c.C,{present:r||o.open,children:e=>{let{present:r}=e;return(0,f.jsx)(C,{...n,ref:t,present:r})}})});S.displayName=x;var C=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:o,children:l,...i}=e,c=w(x,r),[d,p]=n.useState(o),m=n.useRef(null),v=(0,s.s)(t,m),h=n.useRef(0),g=h.current,b=n.useRef(0),y=b.current,S=c.open||d,C=n.useRef(S),R=n.useRef();return n.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,a.N)(()=>{let e=m.current;if(e){R.current=R.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,b.current=t.width,C.current||(e.style.transitionDuration=R.current.transitionDuration,e.style.animationName=R.current.animationName),p(o)}},[c.open,o]),(0,f.jsx)(u.sG.div,{"data-state":N(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!S,...i,ref:v,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:S&&l})});function N(e){return e?"open":"closed"}var R=g,E=y,T=S},2576:(e,t,r)=>{r.d(t,{N:()=>a});var n=r(2115),o=r(5155),l=r(8068),i=r(2317);function a(e){let t=e+"CollectionProvider",[r,a]=function(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return l.scopeName=e,[function(t,l){let i=n.createContext(l),a=r.length;function s(t){let{scope:r,children:l,...s}=t,u=r?.[e][a]||i,c=n.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:l})}return r=[...r,l],s.displayName=t+"Provider",[s,function(r,o){let s=o?.[e][a]||i,u=n.useContext(s);if(u)return u;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(l,...t)]}(t),[s,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,l=n.useRef(null),i=n.useRef(new Map).current;return(0,o.jsx)(s,{scope:t,itemMap:i,collectionRef:l,children:r})};c.displayName=t;let d=e+"CollectionSlot",f=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=u(d,r),s=(0,l.s)(t,a.collectionRef);return(0,o.jsx)(i.DX,{ref:s,children:n})});f.displayName=d;let p=e+"CollectionItemSlot",m="data-radix-collection-item",v=n.forwardRef((e,t)=>{let{scope:r,children:a,...s}=e,c=n.useRef(null),d=(0,l.s)(t,c),f=u(p,r);return n.useEffect(()=>(f.itemMap.set(c,{ref:c,...s}),()=>void f.itemMap.delete(c))),(0,o.jsx)(i.DX,{[m]:"",ref:d,children:a})});return v.displayName=p,[{Provider:c,Slot:f,ItemSlot:v},function(t){let r=u(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},a]}},8166:(e,t,r)=>{r.d(t,{A:()=>i,q:()=>l});var n=r(2115),o=r(5155);function l(e,t){let r=n.createContext(t),l=e=>{let{children:t,...l}=e,i=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(r.Provider,{value:i,children:t})};return l.displayName=e+"Provider",[l,function(o){let l=n.useContext(r);if(l)return l;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return l.scopeName=e,[function(t,l){let i=n.createContext(l),a=r.length;r=[...r,l];let s=t=>{let{scope:r,children:l,...s}=t,u=r?.[e]?.[a]||i,c=n.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:l})};return s.displayName=t+"Provider",[s,function(r,o){let s=o?.[e]?.[a]||i,u=n.useContext(s);if(u)return u;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(l,...t)]}},4256:(e,t,r)=>{r.d(t,{jH:()=>l});var n=r(2115);r(5155);var o=n.createContext(void 0);function l(e){let t=n.useContext(o);return e||t||"ltr"}},7668:(e,t,r)=>{r.d(t,{B:()=>s});var n,o=r(2115),l=r(6611),i=(n||(n=r.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function s(e){let[t,r]=o.useState(i());return(0,l.N)(()=>{e||r(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},7028:(e,t,r)=>{r.d(t,{C:()=>i});var n=r(2115),o=r(8068),l=r(6611),i=e=>{let{present:t,children:r}=e,i=function(e){var t,r;let[o,i]=n.useState(),s=n.useRef({}),u=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=a(s.current);c.current="mounted"===d?e:"none"},[d]),(0,l.N)(()=>{let t=s.current,r=u.current;if(r!==e){let n=c.current,o=a(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,l.N)(()=>{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=a(s.current).includes(e.animationName);if(e.target===o&&n&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},l=e=>{e.target===o&&(c.current=a(s.current))};return o.addEventListener("animationstart",l),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",l),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(s.current=getComputedStyle(e)),i(e)},[])}}(t),s="function"==typeof r?r({present:i.isPresent}):n.Children.only(r),u=(0,o.s)(i.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof r||i.isPresent?n.cloneElement(s,{ref:u}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},3360:(e,t,r)=>{r.d(t,{hO:()=>s,sG:()=>a});var n=r(2115),o=r(7650),l=r(2317),i=r(5155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,a=n?l.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},3088:(e,t,r)=>{r.d(t,{q7:()=>_,bL:()=>j,RG:()=>y});var n=r(2115),o=r(3610),l=r(2576),i=r(8068),a=r(5155),s=r(7668),u=r(3360),c=r(1524),d=r(1488),f=r(4256),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[h,w,g]=(0,l.N)(v),[b,y]=function(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let l=n.createContext(o),i=r.length;function s(t){let{scope:r,children:o,...s}=t,u=r?.[e][i]||l,c=n.useMemo(()=>s,Object.values(s));return(0,a.jsx)(u.Provider,{value:c,children:o})}return r=[...r,o],s.displayName=t+"Provider",[s,function(r,a){let s=a?.[e][i]||l,u=n.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}(v,[g]),[x,S]=b(v),C=n.forwardRef((e,t)=>(0,a.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(N,{...e,ref:t})})}));C.displayName=v;var N=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:l,loop:s=!1,dir:v,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:b,onEntryFocus:y,preventScrollOnEntryFocus:S=!1,...C}=e,N=n.useRef(null),R=(0,i.s)(t,N),E=(0,f.jH)(v),[T=null,j]=(0,d.i)({prop:h,defaultProp:g,onChange:b}),[_,P]=n.useState(!1),L=(0,c.c)(y),D=w(r),M=n.useRef(!1),[I,O]=n.useState(0);return n.useEffect(()=>{let e=N.current;if(e)return e.addEventListener(p,L),()=>e.removeEventListener(p,L)},[L]),(0,a.jsx)(x,{scope:r,orientation:l,dir:E,loop:s,currentTabStopId:T,onItemFocus:n.useCallback(e=>j(e),[j]),onItemShiftTab:n.useCallback(()=>P(!0),[]),onFocusableItemAdd:n.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>O(e=>e-1),[]),children:(0,a.jsx)(u.sG.div,{tabIndex:_||0===I?-1:0,"data-orientation":l,...C,ref:R,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),S)}}M.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>P(!1))})})}),R="RovingFocusGroupItem",E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:l=!0,active:i=!1,tabStopId:c,...d}=e,f=(0,s.B)(),p=c||f,m=S(R,r),v=m.currentTabStopId===p,g=w(r),{onFocusableItemAdd:b,onFocusableItemRemove:y}=m;return n.useEffect(()=>{if(l)return b(),()=>y()},[l,b,y]),(0,a.jsx)(h.ItemSlot,{scope:r,id:p,focusable:l,active:i,children:(0,a.jsx)(u.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{l?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return T[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>A(r))}})})})});E.displayName=R;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var j=C,_=E},2341:(e,t,r)=>{r.d(t,{OK:()=>K,bL:()=>B,VM:()=>S,lr:()=>D,LM:()=>Y});var n=r(2115),o=r(3360),l=r(7028),i=r(8166),a=r(8068),s=r(1524),u=r(4256),c=r(6611),d=r(3610),f=r(5155),p="ScrollArea",[m,v]=(0,i.A)(p),[h,w]=m(p),g=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:l="hover",dir:i,scrollHideDelay:s=600,...c}=e,[d,p]=n.useState(null),[m,v]=n.useState(null),[w,g]=n.useState(null),[b,y]=n.useState(null),[x,S]=n.useState(null),[C,N]=n.useState(0),[R,E]=n.useState(0),[T,A]=n.useState(!1),[j,_]=n.useState(!1),P=(0,a.s)(t,e=>p(e)),L=(0,u.jH)(i);return(0,f.jsx)(h,{scope:r,type:l,dir:L,scrollHideDelay:s,scrollArea:d,viewport:m,onViewportChange:v,content:w,onContentChange:g,scrollbarX:b,onScrollbarXChange:y,scrollbarXEnabled:T,onScrollbarXEnabledChange:A,scrollbarY:x,onScrollbarYChange:S,scrollbarYEnabled:j,onScrollbarYEnabledChange:_,onCornerWidthChange:N,onCornerHeightChange:E,children:(0,f.jsx)(o.sG.div,{dir:L,...c,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":R+"px",...e.style}})})});g.displayName=p;var b="ScrollAreaViewport",y=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:l,nonce:i,...s}=e,u=w(b,r),c=n.useRef(null),d=(0,a.s)(t,c,u.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,f.jsx)(o.sG.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});y.displayName=b;var x="ScrollAreaScrollbar",S=n.forwardRef((e,t)=>{let{forceMount:r,...o}=e,l=w(x,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===e.orientation;return n.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),"hover"===l.type?(0,f.jsx)(C,{...o,ref:t,forceMount:r}):"scroll"===l.type?(0,f.jsx)(N,{...o,ref:t,forceMount:r}):"auto"===l.type?(0,f.jsx)(R,{...o,ref:t,forceMount:r}):"always"===l.type?(0,f.jsx)(E,{...o,ref:t}):null});S.displayName=x;var C=n.forwardRef((e,t)=>{let{forceMount:r,...o}=e,i=w(x,e.__scopeScrollArea),[a,s]=n.useState(!1);return n.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),s(!0)},n=()=>{t=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,f.jsx)(l.C,{present:r||a,children:(0,f.jsx)(R,{"data-state":a?"visible":"hidden",...o,ref:t})})}),N=n.forwardRef((e,t)=>{var r,o;let{forceMount:i,...a}=e,s=w(x,e.__scopeScrollArea),u="horizontal"===e.orientation,c=G(()=>m("SCROLL_END"),100),[p,m]=(r="hidden",o={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,t)=>{let r=o[e][t];return null!=r?r:e},r));return n.useEffect(()=>{if("idle"===p){let e=window.setTimeout(()=>m("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[p,s.scrollHideDelay,m]),n.useEffect(()=>{let e=s.viewport,t=u?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(m("SCROLL"),c()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,u,m,c]),(0,f.jsx)(l.C,{present:i||"hidden"!==p,children:(0,f.jsx)(E,{"data-state":"hidden"===p?"hidden":"visible",...a,ref:t,onPointerEnter:(0,d.m)(e.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:(0,d.m)(e.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),R=n.forwardRef((e,t)=>{let r=w(x,e.__scopeScrollArea),{forceMount:o,...i}=e,[a,s]=n.useState(!1),u="horizontal"===e.orientation,c=G(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...o}=e,l=w(x,e.__scopeScrollArea),i=n.useRef(null),a=n.useRef(0),[s,u]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=U(s.viewport,s.content),d={...o,sizes:s,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function p(e,t){return function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=W(r),l=t||o/2,i=r.scrollbar.paddingStart+l,a=r.scrollbar.size-r.scrollbar.paddingEnd-(o-l),s=r.content-r.viewport;return H([i,a],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,a.current,s,t)}return"horizontal"===r?(0,f.jsx)(T,{...d,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=$(l.viewport.scrollLeft,s,l.dir);i.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=p(e,l.dir))}}):"vertical"===r?(0,f.jsx)(A,{...d,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=$(l.viewport.scrollTop,s);i.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=p(e))}}):null}),T=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...l}=e,i=w(x,e.__scopeScrollArea),[s,u]=n.useState(),c=n.useRef(null),d=(0,a.s)(t,c,i.onScrollbarXChange);return n.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(P,{"data-orientation":"horizontal",...l,ref:d,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":W(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(i.viewport){let n=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),function(e,t){return e>0&&e{c.current&&i.viewport&&s&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:F(s.paddingLeft),paddingEnd:F(s.paddingRight)}})}})}),A=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...l}=e,i=w(x,e.__scopeScrollArea),[s,u]=n.useState(),c=n.useRef(null),d=(0,a.s)(t,c,i.onScrollbarYChange);return n.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(P,{"data-orientation":"vertical",...l,ref:d,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":W(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(i.viewport){let n=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),function(e,t){return e>0&&e{c.current&&i.viewport&&s&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:F(s.paddingTop),paddingEnd:F(s.paddingBottom)}})}})}),[j,_]=m(x),P=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:l,hasThumb:i,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:p,onThumbPositionChange:m,onDragScroll:v,onWheelScroll:h,onResize:g,...b}=e,y=w(x,r),[S,C]=n.useState(null),N=(0,a.s)(t,e=>C(e)),R=n.useRef(null),E=n.useRef(""),T=y.viewport,A=l.content-l.viewport,_=(0,s.c)(h),P=(0,s.c)(m),L=G(g,10);function D(e){R.current&&v({x:e.clientX-R.current.left,y:e.clientY-R.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;(null==S?void 0:S.contains(t))&&_(e,A)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[T,S,A,_]),n.useEffect(P,[l,P]),X(S,L),X(y.content,L),(0,f.jsx)(j,{scope:r,scrollbar:S,hasThumb:i,onThumbChange:(0,s.c)(u),onThumbPointerUp:(0,s.c)(c),onThumbPositionChange:P,onThumbPointerDown:(0,s.c)(p),children:(0,f.jsx)(o.sG.div,{...b,ref:N,style:{position:"absolute",...b.style},onPointerDown:(0,d.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),R.current=S.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),D(e))}),onPointerMove:(0,d.m)(e.onPointerMove,D),onPointerUp:(0,d.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=E.current,y.viewport&&(y.viewport.style.scrollBehavior=""),R.current=null})})})}),L="ScrollAreaThumb",D=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=_(L,e.__scopeScrollArea);return(0,f.jsx)(l.C,{present:r||o.hasThumb,children:(0,f.jsx)(M,{ref:t,...n})})}),M=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:l,...i}=e,s=w(L,r),u=_(L,r),{onThumbPositionChange:c}=u,p=(0,a.s)(t,e=>u.onThumbChange(e)),m=n.useRef(),v=G(()=>{m.current&&(m.current(),m.current=void 0)},100);return n.useEffect(()=>{let e=s.viewport;if(e){let t=()=>{if(v(),!m.current){let t=z(e,c);m.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[s.viewport,v,c]),(0,f.jsx)(o.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...i,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,d.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;u.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,d.m)(e.onPointerUp,u.onThumbPointerUp)})});D.displayName=L;var I="ScrollAreaCorner",O=n.forwardRef((e,t)=>{let r=w(I,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,f.jsx)(k,{...e,ref:t}):null});O.displayName=I;var k=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...l}=e,i=w(I,r),[a,s]=n.useState(0),[u,c]=n.useState(0),d=!!(a&&u);return X(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),c(t)}),X(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),s(t)}),d?(0,f.jsx)(o.sG.div,{...l,ref:t,style:{width:a,height:u,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function F(e){return e?parseInt(e,10):0}function U(e,t){let r=e/t;return isNaN(r)?0:r}function W(e){let t=U(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function $(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=W(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,i=t.content-t.viewport,a=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,"ltr"===r?[0,i]:[-1*i,0]);return H([0,i],[0,l-n])(a)}function H(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let l={left:e.scrollLeft,top:e.scrollTop},i=r.left!==l.left,a=r.top!==l.top;(i||a)&&t(),r=l,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function G(e,t){let r=(0,s.c)(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function X(e,t){let r=(0,s.c)(t);(0,c.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var B=g,Y=y,K=O},1524:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(2115);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,r)=>{r.d(t,{i:()=>l});var n=r(2115),o=r(1524);function l({prop:e,defaultProp:t,onChange:r=()=>{}}){let[l,i]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[l]=r,i=n.useRef(l),a=(0,o.c)(t);return n.useEffect(()=>{i.current!==l&&(a(l),i.current=l)},[l,i,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,s=a?e:l,u=(0,o.c)(r);return[s,n.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else i(t)},[a,e,i,u])]}},6611:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(2115),o=globalThis?.document?n.useLayoutEffect:()=>{}}}]);
Flash Sale Popup