"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5287],{13017:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]])},17028:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(12115),o=n(88068),i=n(46611),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[o,l]=r.useState(),s=r.useRef({}),u=r.useRef(e),c=r.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(s.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=c.current,o=a(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,i.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=a(s.current).includes(e.animationName);if(e.target===o&&r&&(p("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=a(s.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),l(e)},[])}}(t),s="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),u=(0,o.s)(l.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||l.isPresent?r.cloneElement(s,{ref:u}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},19710:(e,t,n)=>{n.d(t,{Kq:()=>q,UC:()=>V,ZL:()=>H,bL:()=>G,l9:()=>Z});var r=n(12115),o=n(93610),i=n(88068),l=n(18166),a=n(59674),s=n(67668),u=n(75807),c=n(17323),d=n(17028),p=n(23360),f=n(12317),v=n(1488),m=n(63543),g=n(95155),[h,y]=(0,l.A)("Tooltip",[u.Bk]),x=(0,u.Bk)(),b="TooltipProvider",w="tooltip.open",[C,T]=h(b),E=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,[a,s]=r.useState(!0),u=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)(C,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:i,children:l})};E.displayName=b;var N="Tooltip",[R,j]=h(N),D=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,d=T(N,e.__scopeTooltip),p=x(t),[f,m]=r.useState(null),h=(0,s.B)(),y=r.useRef(0),b=null!=a?a:d.disableHoverableContent,C=null!=c?c:d.delayDuration,E=r.useRef(!1),[j=!1,D]=(0,v.i)({prop:o,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(w))):d.onClose(),null==l||l(e)}}),O=r.useMemo(()=>j?E.current?"delayed-open":"instant-open":"closed",[j]),k=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,E.current=!1,D(!0)},[D]),I=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,D(!1)},[D]),M=r.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{E.current=!0,D(!0),y.current=0},C)},[C,D]);return r.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,g.jsx)(u.bL,{...p,children:(0,g.jsx)(R,{scope:t,contentId:h,open:j,stateAttribute:O,trigger:f,onTriggerChange:m,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayed?M():k()},[d.isOpenDelayed,M,k]),onTriggerLeave:r.useCallback(()=>{b?I():(window.clearTimeout(y.current),y.current=0)},[I,b]),onOpen:k,onClose:I,disableHoverableContent:b,children:n})})};D.displayName=N;var O="TooltipTrigger",k=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...l}=e,a=j(O,n),s=T(O,n),c=x(n),d=r.useRef(null),f=(0,i.s)(t,d,a.onTriggerChange),v=r.useRef(!1),m=r.useRef(!1),h=r.useCallback(()=>v.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),(0,g.jsx)(u.Mz,{asChild:!0,...c,children:(0,g.jsx)(p.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:f,onPointerMove:(0,o.m)(e.onPointerMove,e=>{"touch"===e.pointerType||m.current||s.isPointerInTransitRef.current||(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:(0,o.m)(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:(0,o.m)(e.onPointerDown,()=>{v.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:(0,o.m)(e.onFocus,()=>{v.current||a.onOpen()}),onBlur:(0,o.m)(e.onBlur,a.onClose),onClick:(0,o.m)(e.onClick,a.onClose)})})});k.displayName=O;var I="TooltipPortal",[M,_]=h(I,{forceMount:void 0}),L=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=j(I,t);return(0,g.jsx)(M,{scope:t,forceMount:n,children:(0,g.jsx)(d.C,{present:n||i.open,children:(0,g.jsx)(c.Z,{asChild:!0,container:o,children:r})})})};L.displayName=I;var P="TooltipContent",A=r.forwardRef((e,t)=>{let n=_(P,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=j(P,e.__scopeTooltip);return(0,g.jsx)(d.C,{present:r||l.open,children:l.disableHoverableContent?(0,g.jsx)(S,{side:o,...i,ref:t}):(0,g.jsx)(F,{side:o,...i,ref:t})})}),F=r.forwardRef((e,t)=>{let n=j(P,e.__scopeTooltip),o=T(P,e.__scopeTooltip),l=r.useRef(null),a=(0,i.s)(t,l),[s,u]=r.useState(null),{trigger:c,onClose:d}=n,p=l.current,{onPointerInTransitChange:f}=o,v=r.useCallback(()=>{u(null),f(!1)},[f]),m=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>v(),[v]),r.useEffect(()=>{if(c&&p){let e=e=>m(e,p),t=e=>m(e,c);return c.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[c,p,m,v]),r.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=u>r&&n<(s-l)*(r-a)/(u-a)+l&&(o=!o)}return o}(n,s);r?v():o&&(v(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,p,s,d,v]),(0,g.jsx)(S,{...e,ref:a})}),[U,B]=h(N,{isInside:!1}),S=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=e,d=j(P,n),p=x(n),{onClose:v}=d;return r.useEffect(()=>(document.addEventListener(w,v),()=>document.removeEventListener(w,v)),[v]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&v()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,v]),(0,g.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:v,children:(0,g.jsxs)(u.UC,{"data-state":d.stateAttribute,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(f.xV,{children:o}),(0,g.jsx)(U,{scope:n,isInside:!0,children:(0,g.jsx)(m.b,{id:d.contentId,role:"tooltip",children:i||o})})]})})});A.displayName=P;var W="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=x(n);return B(W,n).isInside?null:(0,g.jsx)(u.i3,{...o,...r,ref:t})}).displayName=W;var q=E,G=D,Z=k,H=L,V=A},40767:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(67401).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},66217:(e,t,n)=>{n.d(t,{UC:()=>et,VY:()=>er,ZL:()=>$,bL:()=>J,bm:()=>eo,hE:()=>en,hJ:()=>ee,l9:()=>Q});var r=n(12115),o=n(93610),i=n(88068),l=n(18166),a=n(67668),s=n(1488),u=n(59674),c=n(20196),d=n(17323),p=n(17028),f=n(23360),v=n(62292),m=n(64065),g=n(15587),h=n(12317),y=n(95155),x="Dialog",[b,w]=(0,l.A)(x),[C,T]=b(x),E=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[p=!1,f]=(0,s.i)({prop:o,defaultProp:i,onChange:l});return(0,y.jsx)(C,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:p,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:n})};E.displayName=x;var N="DialogTrigger",R=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=T(N,n),a=(0,i.s)(t,l.triggerRef);return(0,y.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":H(l.open),...r,ref:a,onClick:(0,o.m)(e.onClick,l.onOpenToggle)})});R.displayName=N;var j="DialogPortal",[D,O]=b(j,{forceMount:void 0}),k=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,l=T(j,t);return(0,y.jsx)(D,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(p.C,{present:n||l.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:i,children:e})}))})};k.displayName=j;var I="DialogOverlay",M=r.forwardRef((e,t)=>{let n=O(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=T(I,e.__scopeDialog);return i.modal?(0,y.jsx)(p.C,{present:r||i.open,children:(0,y.jsx)(_,{...o,ref:t})}):null});M.displayName=I;var _=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(I,n);return(0,y.jsx)(m.A,{as:h.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(f.sG.div,{"data-state":H(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),L="DialogContent",P=r.forwardRef((e,t)=>{let n=O(L,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=T(L,e.__scopeDialog);return(0,y.jsx)(p.C,{present:r||i.open,children:i.modal?(0,y.jsx)(A,{...o,ref:t}):(0,y.jsx)(F,{...o,ref:t})})});P.displayName=L;var A=r.forwardRef((e,t)=>{let n=T(L,e.__scopeDialog),l=r.useRef(null),a=(0,i.s)(t,n.contentRef,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(U,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),F=r.forwardRef((e,t)=>{let n=T(L,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(l=n.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,l;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;(null===(l=n.triggerRef.current)||void 0===l?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),U=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:a,...s}=e,d=T(L,n),p=r.useRef(null),f=(0,i.s)(t,p);return(0,v.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:a,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":H(d.open),...s,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{titleId:d.titleId}),(0,y.jsx)(K,{contentRef:p,descriptionId:d.descriptionId})]})]})}),B="DialogTitle",S=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(B,n);return(0,y.jsx)(f.sG.h2,{id:o.titleId,...r,ref:t})});S.displayName=B;var W="DialogDescription",q=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(W,n);return(0,y.jsx)(f.sG.p,{id:o.descriptionId,...r,ref:t})});q.displayName=W;var G="DialogClose",Z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=T(G,n);return(0,y.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>i.onOpenChange(!1))})});function H(e){return e?"open":"closed"}Z.displayName=G;var V="DialogTitleWarning",[X,z]=(0,l.q)(V,{contentName:L,titleName:B,docsSlug:"dialog"}),Y=e=>{let{titleId:t}=e,n=z(V),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},K=e=>{let{contentRef:t,descriptionId:n}=e,o=z("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,t,n]),null},J=E,Q=R,$=k,ee=M,et=P,en=S,er=q,eo=Z},90434:(e,t,n)=>{n.d(t,{b:()=>u});var r=n(12115),o=n(23360),i=n(95155),l="horizontal",a=["horizontal","vertical"],s=r.forwardRef((e,t)=>{var n;let{decorative:r,orientation:s=l,...u}=e,c=(n=s,a.includes(n))?s:l;return(0,i.jsx)(o.sG.div,{"data-orientation":c,...r?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});s.displayName="Separator";var u=s}}]);