vendor: 4,567 bytes, line 1
1import{r as c,j as v,a as Pe,b as Ye,c as ti,R as mo}from"./react-DJiDbFd1.js";function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function kn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vo(...e){return t=>{let n=!1;const o=e.map(r=>{const s=kn(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():kn(e[r],null)}}}}function V(...e){return c.useCallback(vo(...e),e)}function ni(e,t){const n=c.createContext(t),o=s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return v.jsx(n.Provider,{value:l,children:i})};o.displayName=e+"Provider";function r(s){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function ee(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=p=>{const{scope:h,children:g,...b}=p,f=h?.[e]?.[l]||a,m=c.useMemo(()=>b,Object.values(b));return v.jsx(f.Provider,{value:m,children:g})};u.displayName=s+"Provider";function d(p,h){const g=h?.[e]?.[l]||a,b=c.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=a?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,oi(r,...t)]}function oi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:l,scopeName:u})=>{const p=l(s)[`__scope${u}`];return{...a,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function je(e){const t=ri(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),l=a.find(ii);if(l){const u=l.props.children,d=a.map(p=>p===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return v.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return v.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var Gu=je("Slot");function ri(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=ci(r),a=ai(s,r.props);return r.type!==c.Fragment&&(a.ref=o?vo(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ho=Symbol("radix.slottable");function si(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ho,t}function ii(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ho}function ai(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function ci(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ln(e){const t=e+"CollectionProvider",[n,o]=ee(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=f=>{const{scope:m,children:y}=f,w=Pe.useRef(null),x=Pe.useRef(new Map).current;return v.jsx(r,{scope:m,itemMap:x,collectionRef:w,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=je(a),u=Pe.forwardRef((f,m)=>{const{scope:y,children:w}=f,x=s(a,y),E=V(m,x.collectionRef);return v.jsx(l,{ref:E,children:w})});u.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",h=je(d),g=Pe.forwardRef((f,m)=>{const{scope:y,children:w,...x}=f,E=Pe.useRef(null),C=V(m,E),T=s(d,y);return Pe.useEffect(()=>(T.itemMap.set(E,{ref:E,...x}),()=>void T.itemMap.delete(E))),v.jsx(h,{[p]:"",ref:C,children:w})});g.displayName=d;function b(f){const m=s(e+"CollectionConsumer",f);return Pe.useCallback(()=>{const w=m.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(m.itemMap.values()).sort((T,S)=>x.indexOf(T.ref.current)-x.indexOf(S.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:u,ItemSlot:g},b,o]}var li=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=li.reduce((e,t)=>
vendor: 6,425 bytes, line 1
1{const n=je(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function go(e,t){e&&Ye.flushSync(()=>e.dispatchEvent(t))}function Z(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function ui(e,t=globalThis?.document){const n=Z(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var di="DismissableLayer",Yt="dismissableLayer.update",fi="dismissableLayer.pointerDownOutside",pi="dismissableLayer.focusOutside",Fn,wo=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xe=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=c.useContext(wo),[d,p]=c.useState(null),h=d?.ownerDocument??globalThis?.document,[,g]=c.useState({}),b=V(t,S=>p(S)),f=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=f.indexOf(m),w=d?f.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,C=vi(S=>{const P=S.target,L=[...u.branches].some(A=>A.contains(P));!E||L||(r?.(S),i?.(S),S.defaultPrevented||a?.())},h),T=hi(S=>{const P=S.target;[...u.branches].some(A=>A.contains(P))||(s?.(S),i?.(S),S.defaultPrevented||a?.())},h);return ui(S=>{w===u.layers.size-1&&(o?.(S),!S.defaultPrevented&&a&&(S.preventDefault(),a()))},h),c.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Fn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),jn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Fn)}},[d,h,n,u]),c.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),jn())},[d,u]),c.useEffect(()=>{const S=()=>g({});return document.addEventListener(Yt,S),()=>document.removeEventListener(Yt,S)},[]),v.jsx(_.div,{...l,ref:b,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,T.onFocusCapture),onBlurCapture:N(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,C.onPointerDownCapture)})});Xe.displayName=di;var mi="DismissableLayerBranch",yo=c.forwardRef((e,t)=>{const n=c.useContext(wo),o=c.useRef(null),r=V(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v.jsx(_.div,{...e,ref:r})});yo.displayName=mi;function vi(e,t=globalThis?.document){const n=Z(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let l=function(){xo(fi,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function hi(e,t=globalThis?.document){const n=Z(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&xo(pi,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function jn(){const e=new CustomEvent(Yt);document.dispatchEvent(e)}function xo(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?go(r,s):r.dispatchEvent(s)}var gi=Xe,wi=yo,G=globalThis?.document?c.useLayoutEffect:()=>{},yi="Portal",ht=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);G(()=>s(!0),[]);const i=n||r&&globalThis?.document?.body;return i?ti.createPortal(v.jsx(_.div,{...o,ref:t}),i):null});ht.displayName=yi;function xi(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var Ee=e=>{const{present:t,children:n}=e,o=bi(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=V(o.ref,Ei(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};Ee.displayName="Presence";function bi(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),i=e?"mounted":"unmounted",[a,l]=xi(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Je(o.current);s.current=a==="mounted"?u:"none"},[a]),G(()=>{const u=o.current,d=r.current;if(d!==e){const h=s.current,g=Je(u);e?l("MOUNT"):g==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),G(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=g=>{const f=Je(o.current).includes(g.animationName);if(g.target===t&&f&&(l("ANIMATION_END"),!r.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},h=g=>{g.target===t&&(s.current=Je(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function Je(e){return e?.animationName||"none"}function Ei(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ci=mo[" useInsertionEffect ".trim().toString()]||G;function xe({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=Si({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const p=d.current;
1if(p!==a){const h=p?"controlled":"uncontrolled",g=a?"controlled":"uncontrolled"}d.current=a},[a,o])}const u=c.useCallback(d=>{if(a){const p=Ti(d)?d(e):d;p!==e&&i.current?.(p)}else s(d)},[a,e,s,i]);return[l,u]}function Si({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return Ci(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function Ti(e){return typeof e=="function"}var bo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ri="VisuallyHidden",gt=c.forwardRef((e,t)=>v.jsx(_.span,{...e,ref:t,style:{...bo,...e.style}}));gt.displayName=Ri;var Pi=gt,Eo="ToastProvider",[un,Ai,Ii]=ln("Toast"),[Co,zu]=ee("Toast",[Ii]),[Ni,wt]=Co(Eo),So=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:i}=e,[a,l]=c.useState(null),[u,d]=c.useState(0),p=c.useRef(!1),h=c.useRef(!1);return n.trim(),v.jsx(un.Provider,{scope:t,children:v.jsx(Ni,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:c.useCallback(()=>d(g=>g+1),[]),onToastRemove:c.useCallback(()=>d(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:h,children:i})})};So.displayName=Eo;var To="ToastViewport",Oi=["F8"],Xt="toast.viewportPause",qt="toast.viewportResume",Ro=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=Oi,label:r="Notifications ({hotkey})",...s}=e,i=wt(To,n),a=Ai(n),l=c.useRef(null),u=c.useRef(null),d=c.useRef(null),p=c.useRef(null),h=V(t,p,i.onViewportChange),g=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;c.useEffect(()=>{const m=y=>{o.length!==0&&o.every(x=>y[x]||y.code===x)&&p.current?.focus()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[o]),c.useEffect(()=>{const m=l.current,y=p.current;if(b&&m&&y){const w=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(Xt);y.dispatchEvent(T),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(qt);y.dispatchEvent(T),i.isClosePausedRef.current=!1}},E=T=>{!m.contains(T.relatedTarget)&&x()},C=()=>{m.contains(document.activeElement)||x()};return m.addEventListener("focusin",w),m.addEventListener("focusout",E),m.addEventListener("pointermove",w),m.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{m.removeEventListener("focusin",w),m.removeEventListener("focusout",E),m.removeEventListener("pointermove",w),m.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[b,i.isClosePausedRef]);const f=c.useCallback(({tabbingDirection:m})=>{const w=a().map(x=>{const E=x.ref.current,C=[E,...Ki(E)];return m==="forwards"?C:C.reverse()});return(m==="forwards"?w.reverse():w).flat()},[a]);return c.useEffect(()=>{const m=p.current;if(m){const y=w=>{const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const C=document.activeElement,T=w.shiftKey;if(w.target===m&&T){u.current?.focus();return}const L=f({tabbingDirection:T?"backwards":"forwards"}),A=L.findIndex(D=>D===C);kt(L.slice(A+1))?w.preventDefault():T?u.current?.focus():d.current?.focus()}};return m.addEventListener("keydown",y),()=>m.removeEventListener("keydown",y)}},[a,f]),v.jsxs(wi,{ref:l,role:"region","aria-label":r.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&v.jsx(Zt,{ref:u,onFocusFromOutsideViewport:()=>{const m=f({tabbingDirection:"forwards"});kt(m)}}),v.jsx(un.Slot,{scope:n,children:v.jsx(_.ol,{tabIndex:-1,...s,ref:h})}),b&&v.jsx(Zt,{ref:d,onFocusFromOutsideViewport:()=>{const m=f({tabbingDirection:"backwards"});kt(m)}})]})});Ro.displayName=To;var Po="ToastFocusProxy",Zt=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=wt(Po,n);return v.jsx(gt,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:i=>{const a=i.relatedTarget;!s.viewport?.contains(a)&&o()}})});Zt.displayName=Po;var qe="Toast",_i="toast.swipeStart",Di="toast.swipeMove",Mi="toast.swipeCancel",Li="toast.swipeEnd",Ao=c.forwardRef((e,t)=>
1{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...i}=e,[a,l]=xe({prop:o,defaultProp:r??!0,onChange:s,caller:qe});return v.jsx(Ee,{present:n||a,children:v.jsx(ji,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:Z(e.onPause),onResume:Z(e.onResume),onSwipeStart:N(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:N(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:N(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:N(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});Ao.displayName=qe;var[ki,Fi]=Co(qe,{onClose(){}}),ji=c.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:h,onSwipeEnd:g,...b}=e,f=wt(qe,n),[m,y]=c.useState(null),w=V(t,R=>y(R)),x=c.useRef(null),E=c.useRef(null),C=r||f.duration,T=c.useRef(0),S=c.useRef(C),P=c.useRef(0),{onToastAdd:L,onToastRemove:A}=f,D=Z(()=>{m?.contains(document.activeElement)&&f.viewport?.focus(),i()}),$=c.useCallback(R=>{!R||R===1/0||(window.clearTimeout(P.current),T.current=new Date().getTime(),P.current=window.setTimeout(D,R))},[D]);c.useEffect(()=>{const R=f.viewport;if(R){const F=()=>{$(S.current),u?.()},I=()=>{const j=new Date().getTime()-T.current;S.current=S.current-j,window.clearTimeout(P.current),l?.()};return R.addEventListener(Xt,I),R.addEventListener(qt,F),()=>{R.removeEventListener(Xt,I),R.removeEventListener(qt,F)}}},[f.viewport,C,l,u,$]),c.useEffect(()=>{s&&!f.isClosePausedRef.current&&$(C)},[s,C,f.isClosePausedRef,$]),c.useEffect(()=>(L(),()=>A()),[L,A]);const k=c.useMemo(()=>m?Mo(m):null,[m]);return f.viewport?v.jsxs(v.Fragment,{children:[k&&v.jsx($i,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:k}),v.jsx(ki,{scope:n,onClose:D,children:Ye.createPortal(v.jsx(un.ItemSlot,{scope:n,children:v.jsx(gi,{asChild:!0,onEscapeKeyDown:N(a,()=>{f.isFocusedToastEscapeKeyDownRef.current||D(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(_.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":f.swipeDirection,...b,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:N(e.onKeyDown,R=>{R.key==="Escape"&&(a?.(R.nativeEvent),R.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:N(e.onPointerDown,R=>{R.button===0&&(x.current={x:R.clientX,y:R.clientY})}),onPointerMove:N(e.onPointerMove,R=>{if(!x.current)return;const F=R.clientX-x.current.x,I=R.clientY-x.current.y,j=!!E.current,O=["left","right"].includes(f.swipeDirection),B=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,z=O?B(0,F):0,ve=O?0:B(0,I),he=R.pointerType==="touch"?10:2,ue={x:z,y:ve},te={originalEvent:R,delta:ue};j?(E.current=ue,et(Di,p,te,{discrete:!1})):$n(ue,f.swipeDirection,he)?(E.current=ue,et(_i,d,te,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(F)>he||Math.abs(I)>he)&&(x.current=null)}),onPointerUp:N(e.onPointerUp,R=>{const F=E.current,I=R.target;if(I.hasPointerCapture(R.pointerId)&&I.releasePointerCapture(R.pointerId),E.current=null,x.current=null,F){const j=R.currentTarget,O={originalEvent:R,delta:F};$n(F,f.swipeDirection,f.swipeThreshold)?et(Li,g,O,{discrete:!0}):et(Mi,h,O,{discrete:!0}),j.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),$i=e=>{const{__scopeToast:t,children:n,...o}=e,r=wt(qe,t),[s,i]=c.useState(!1),[a,l]=c.useState(!1);return Hi(()=>i(!0)),c.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:v.jsx(ht,{asChild:!0,children:v.jsx(gt,{...o,children:s&&v.jsxs(v.Fragment,{children:[r.label," ",n]})})})},Bi="ToastTitle",Io=c.forwardRef((e,t)=>
1{const{__scopeToast:n,...o}=e;return v.jsx(_.div,{...o,ref:t})});Io.displayName=Bi;var Vi="ToastDescription",No=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return v.jsx(_.div,{...o,ref:t})});No.displayName=Vi;var Wi="ToastAction",Oo=c.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?v.jsx(Do,{altText:n,asChild:!0,children:v.jsx(dn,{...o,ref:t})}):null});Oo.displayName=Wi;var _o="ToastClose",dn=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=Fi(_o,n);return v.jsx(Do,{asChild:!0,children:v.jsx(_.button,{type:"button",...o,ref:t,onClick:N(e.onClick,r.onClose)})})});dn.displayName=_o;var Do=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return v.jsx(_.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function Mo(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),Ui(o)){const r=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const i=o.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Mo(o))}}),t}function et(e,t,n,{discrete:o}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?go(r,s):r.dispatchEvent(s)}var $n=(e,t,n=0)=>{const o=Math.abs(e.x),r=Math.abs(e.y),s=o>r;return t==="left"||t==="right"?s&&o>n:!s&&r>n};function Hi(e=()=>{}){const t=Z(e);G(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function Ui(e){return e.nodeType===e.ELEMENT_NODE}function Ki(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function kt(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Yu=So,Xu=Ro,qu=Ao,Zu=Io,Qu=No,Ju=Oo,ed=dn,Gi=mo[" useId ".trim().toString()]||(()=>{}),zi=0;function we(e){const[t,n]=c.useState(Gi());return G(()=>{e||n(o=>o??String(zi++))},[e]),e||(t?`radix-${t}`:"")}const Lo=["top","right","bottom","left"],Bn=["start","end"],Vn=Lo.reduce((e,t)=>e.concat(t,t+"-"+Bn[0],t+"-"+Bn[1]),[]),se=Math.min,Y=Math.max,lt=Math.round,tt=Math.floor,fe=e=>({x:e,y:e}),Yi={left:"right",right:"left",bottom:"top",top:"bottom"},Xi={start:"end",end:"start"};function Qt(e,t,n){return Y(e,se(t,n))}function ie(e,t){return typeof e=="function"?e(t):e}function Q(e){return e.split("-")[0]}function re(e){return e.split("-")[1]}function fn(e){return e==="x"?"y":"x"}function pn(e){return e==="y"?"height":"width"}const qi=new Set(["top","bottom"]);function oe(e){return qi.has(Q(e))?"y":"x"}function mn(e){return fn(oe(e))}function ko(e,t,n){n===void 0&&(n=!1);const o=re(e),r=mn(e),s=pn(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=dt(i)),[i,dt(i)]}function Zi(e){const t=dt(e);return[ut(e),t,ut(t)]}function ut(e){return e.replace(/start|end/g,t=>Xi[t])}const Wn=["left","right"],Hn=["right","left"],Qi=["top","bottom"],Ji=["bottom","top"];function ea(e,t,n){switch(e){case"top":case"bottom":return n?t?Hn:Wn:t?Wn:Hn;case"left":case"right":return t?Qi:Ji;default:return[]}}function ta(e,t,n,o){const r=re(e);let s=ea(Q(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(ut)))),s}function dt(e){return e.replace(/left|right|bottom|top/g,t=>Yi[t])}function na(e){return{top:0,right:0,bottom:0,left:0,...e}}function vn(e){return typeof e!="number"?na(e):{top:e,right:e,bottom:e,left:e}}function $e(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Un(e,t,n){let{reference:o,floating:r}=e;const s=oe(t),i=mn(t),a=pn(i),l=Q(t),u=s==="y",d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let g;switch(l){case"top":g={x:d,y:o.y-r.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-r.width,y:p};break;default:g={x:o.x,y:o.y}}switch(re(t)){case"start":g[i]-=h*(n&&u?-1:1);break;case"end":g[i]+=h*(n&&u?-1:1);break}return g}const oa=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}
1=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=Un(u,o,l),h=o,g={},b=0;for(let f=0;f<a.length;f++){const{name:m,fn:y}=a[f],{x:w,y:x,data:E,reset:C}=await y({x:d,y:p,initialPlacement:o,placement:h,strategy:r,middlewareData:g,rects:u,platform:i,elements:{reference:e,floating:t}});d=w??d,p=x??p,g={...g,[m]:{...g[m],...E}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:d,y:p}=Un(u,h,l)),f=-1)}return{x:d,y:p,placement:h,strategy:r,middlewareData:g}};async function Be(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=ie(t,e),b=vn(g),m=a[h?p==="floating"?"reference":"floating":p],y=$e(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),w=p==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=$e(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-C.top+b.top)/E.y,bottom:(C.bottom-y.bottom+b.bottom)/E.y,left:(y.left-C.left+b.left)/E.x,right:(C.right-y.right+b.right)/E.x}}const ra=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=ie(e,t)||{};if(u==null)return{};const p=vn(d),h={x:n,y:o},g=mn(r),b=pn(g),f=await i.getDimensions(u),m=g==="y",y=m?"top":"left",w=m?"bottom":"right",x=m?"clientHeight":"clientWidth",E=s.reference[b]+s.reference[g]-h[g]-s.floating[b],C=h[g]-s.reference[g],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=T?T[x]:0;(!S||!await(i.isElement==null?void 0:i.isElement(T)))&&(S=a.floating[x]||s.floating[b]);const P=E/2-C/2,L=S/2-f[b]/2-1,A=se(p[y],L),D=se(p[w],L),$=A,k=S-f[b]-D,R=S/2-f[b]/2+P,F=Qt($,R,k),I=!l.arrow&&re(r)!=null&&R!==F&&s.reference[b]/2-(R<$?A:D)-f[b]/2<0,j=I?R<$?R-$:R-k:0;return{[g]:h[g]+j,data:{[g]:F,centerOffset:R-F-j,...I&&{alignmentOffset:j}},reset:I}}});function sa(e,t,n){return(e?[...n.filter(r=>re(r)===e),...n.filter(r=>re(r)!==e)]:n.filter(r=>Q(r)===r)).filter(r=>e?re(r)===e||(t?ut(r)!==r:!1):!0)}const ia=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:s,middlewareData:i,placement:a,platform:l,elements:u}=t,{crossAxis:d=!1,alignment:p,allowedPlacements:h=Vn,autoAlignment:g=!0,...b}=ie(e,t),f=p!==void 0||h===Vn?sa(p||null,g,h):h,m=await Be(t,b),y=((n=i.autoPlacement)==null?void 0:n.index)||0,w=f[y];if(w==null)return{};const x=ko(w,s,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==w)return{reset:{placement:f[0]}};const E=[m[Q(w)],m[x[0]],m[x[1]]],C=[...((o=i.autoPlacement)==null?void 0:o.overflows)||[],{placement:w,overflows:E}],T=f[y+1];if(T)return{data:{index:y+1,overflows:C},reset:{placement:T}};const S=C.map(A=>{const D=re(A.placement);return[A.placement,D&&d?A.overflows.slice(0,2).reduce(($,k)=>$+k,0):A.overflows[0],A.overflows]}).sort((A,D)=>A[1]-D[1]),L=((r=S.filter(A=>A[2].slice(0,re(A[0])?2:3).every(D=>D<=0))[0])==null?void 0:r[0])||S[0][0];return L!==a?{data:{index:y+1,overflows:C},reset:{placement:L}}:{}}}},aa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:f=!0,...m}=ie(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Q(r),w=oe(a),x=Q(a)===a,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=h||(x||!f?[dt(a)]:Zi(a)),T=b!=="none";!h&&T&&C.push(...ta(a,f,b,E));const S=[a,...C],P=await Be(t,m),L=[];let A=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&L.push(P[y]),p){const R=ko(r,i,E);L.push(P[R[0]],P[R[1]])}if(A=[...A,{placement:r,overflows:L}],!L.every(R=>R<=0)){var D,$;const R=(((D=s.flip)==null?void 0:D.index)||0)+1,F=S[R];if(F&&(!(p==="alignment"?w!==oe(F):!1)||A.every(O=>O.overflows[0]>0&&oe(O.placement)===w)))return{data:{index:R,overflows:A},reset:{placement:F}};let I=($=A.filter(j=>j.overflows[0]<=0).sort((j,O)=>j.overflows[1]-O.overflows[1])[0])==null?void 0:$.placement;if(!I)switch(g){case"bestFit":{var k;const j=(k=A.filter(O=>{if(T){const B=oe(O.placement);return B===w||B==="y"}return!0}).map(O=>
1[O.placement,O.overflows.filter(B=>B>0).reduce((B,z)=>B+z,0)]).sort((O,B)=>O[1]-B[1])[0])==null?void 0:k[0];j&&(I=j);break}case"initialPlacement":I=a;break}if(r!==I)return{reset:{placement:I}}}return{}}}};function Kn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gn(e){return Lo.some(t=>e[t]>=0)}const ca=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=ie(e,t);switch(o){case"referenceHidden":{const s=await Be(t,{...r,elementContext:"reference"}),i=Kn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Gn(i)}}}case"escaped":{const s=await Be(t,{...r,altBoundary:!0}),i=Kn(s,n.floating);return{data:{escapedOffsets:i,escaped:Gn(i)}}}default:return{}}}}};function Fo(e){const t=se(...e.map(s=>s.left)),n=se(...e.map(s=>s.top)),o=Y(...e.map(s=>s.right)),r=Y(...e.map(s=>s.bottom));return{x:t,y:n,width:o-t,height:r-n}}function la(e){const t=e.slice().sort((r,s)=>r.y-s.y),n=[];let o=null;for(let r=0;r<t.length;r++){const s=t[r];!o||s.y-o.y>o.height/2?n.push([s]):n[n.length-1].push(s),o=s}return n.map(r=>$e(Fo(r)))}const ua=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:r,platform:s,strategy:i}=t,{padding:a=2,x:l,y:u}=ie(e,t),d=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(o.reference))||[]),p=la(d),h=$e(Fo(d)),g=vn(a);function b(){if(p.length===2&&p[0].left>p[1].right&&l!=null&&u!=null)return p.find(m=>l>m.left-g.left&&l<m.right+g.right&&u>m.top-g.top&&u<m.bottom+g.bottom)||h;if(p.length>=2){if(oe(n)==="y"){const A=p[0],D=p[p.length-1],$=Q(n)==="top",k=A.top,R=D.bottom,F=$?A.left:D.left,I=$?A.right:D.right,j=I-F,O=R-k;return{top:k,bottom:R,left:F,right:I,width:j,height:O,x:F,y:k}}const m=Q(n)==="left",y=Y(...p.map(A=>A.right)),w=se(...p.map(A=>A.left)),x=p.filter(A=>m?A.left===w:A.right===y),E=x[0].top,C=x[x.length-1].bottom,T=w,S=y,P=S-T,L=C-E;return{top:E,bottom:C,left:T,right:S,width:P,height:L,x:T,y:E}}return h}const f=await s.getElementRects({reference:{getBoundingClientRect:b},floating:o.floating,strategy:i});return r.reference.x!==f.reference.x||r.reference.y!==f.reference.y||r.reference.width!==f.reference.width||r.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}},jo=new Set(["left","top"]);async function da(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Q(n),a=re(n),l=oe(n)==="y",u=jo.has(i)?-1:1,d=s&&l?-1:1,p=ie(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(g=a==="end"?b*-1:b),l?{x:g*d,y:h*u}:{x:h*u,y:g*d}}const fa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await da(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},pa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:m=>{let{x:y,y:w}=m;return{x:y,y:w}}},...l}=ie(e,t),u={x:n,y:o},d=await Be(t,l),p=oe(Q(r)),h=fn(p);let g=u[h],b=u[p];if(s){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=g+d[m],x=g-d[y];g=Qt(w,g,x)}if(i){const m=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=b+d[m],x=b-d[y];b=Qt(w,b,x)}const f=a.fn({...t,[h]:g,[p]:b});return{...f,data:{x:f.x-n,y:f.y-o,enabled:{[h]:s,[p]:i}}}}}},ma=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=ie(e,t),d={x:n,y:o},p=oe(r),h=fn(p);let g=d[h],b=d[p];const f=ie(a,t),m=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const x=h==="y"?"height":"width",E=s.reference[h]-s.floating[x]+m.mainAxis,C=s.reference[h]+s.reference[x]-m.mainAxis;g<E?g=E:g>C&&(g=C)}if(u){var y,w;const x=h==="y"?"width":"height",E=jo.has(Q(r)),C=s.reference[p]-s.floating[x]+(E&&((y=i.offset)==null?void 0:y[p])||0)+(E?0:m.crossAxis),T=s.reference[p]+s.reference[x]+(E?0:((w=i.offset)==null?void 0:w[p])||0)-(E?m.crossAxis:0);b<C?b=C:b>T&&(b=T)}return{[h]:g,[p]:b}}}},va=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=ie(e,t),d=await Be(t,u),p=Q(r),h=re(r),g=oe(r)==="y",{width:b,height:f}=s.floating;let m,y;p==="top"||p==="bottom"?(m=p,y=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,m=h==="end"?"top":"bottom");const w=f-d.top-d.bottom,x=b-d.left-d.right,E=se(f-d[m],w),C=se(b-d[y],x),T=!t.middlewareData.shift;let S=E,P=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=w),T&&!h){const A=Y(d.left,0),D=Y(d.right,0),$=Y(d.top,0),k=Y(d.bottom,0);g?P=b-2*(A!==0||D!==0?A+D:Y(d.left,d.right)):S=f-2*($!==0||k!==0?$+k:Y(d.top,d.bottom))}await l({...t,availableWidth:P,availableHeight:S});const L=await i.getDimensions(a.floating);return b!==L.width||f!==L.height?{reset:{rects:!0}}:{}}}};function yt(){return typeof window<"u"}function Ue(e){return $o(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function me(e){var t;return(t=($o(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $o(e){return yt()?e instanceof Node||e instanceof q(e).Node:!1}function ae(e){return yt()?e instanceof Element||e instanceof q(e).Element:!1}function pe(e){return yt()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function zn(e){return!yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}const ha=new Set(["inline","contents"]);function Ze(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!ha.has(r)}const ga=new Set(["table","td","th"]);function wa(e){return ga.has(Ue(e))}const ya=[":popover-open",":modal"];function xt(e){return ya.some(t=>{try{return e.matches(t)}catch{return!1}})}const xa=["transform","translate","scale","rotate","perspective"],ba=["transform","translate","scale","rotate","perspective","filter"],Ea=["paint","layout","strict","content"];function hn(e){const t=gn(),n=ae(e)?ce(e):e;return xa.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ba.some(o=>(n.willChange||"").includes(o))||Ea.some(o=>(n.contain||"").includes(o))}function Ca(e){let t=be(e);for(;pe(t)&&!Ve(t);){if(hn(t))return t;if(xt(t))return null;t=be(t)}return null}function gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Sa=new Set(["html","body","#document"]);function Ve(e){return Sa.has(Ue(e))}function ce(e){return q(e).getComputedStyle(e)}function bt(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function be(e){if(Ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zn(e)&&e.host||me(e);return zn(t)?t.host:t}function Bo(e){const t=be(e);return Ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:pe(t)&&Ze(t)?t:Bo(t)}function ze(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Bo(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=q(r);if(s){const a=Jt(i);
vendor: 7,388 bytes, line 1
1return t.concat(i,i.visualViewport||[],Ze(r)?r:[],a&&n?ze(a):[])}return t.concat(r,ze(r,[],n))}function Jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vo(e){const t=ce(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=pe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=lt(n)!==s||lt(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function wn(e){return ae(e)?e:e.contextElement}function ke(e){const t=wn(e);if(!pe(t))return fe(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Vo(t);let i=(s?lt(n.width):n.width)/o,a=(s?lt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Ta=fe(0);function Wo(e){const t=q(e);return!gn()||!t.visualViewport?Ta:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ra(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function Ae(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=wn(e);let i=fe(1);t&&(o?ae(o)&&(i=ke(o)):i=ke(e));const a=Ra(s,n,o)?Wo(s):fe(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(s){const h=q(s),g=o&&ae(o)?q(o):o;let b=h,f=Jt(b);for(;f&&o&&g!==b;){const m=ke(f),y=f.getBoundingClientRect(),w=ce(f),x=y.left+(f.clientLeft+parseFloat(w.paddingLeft))*m.x,E=y.top+(f.clientTop+parseFloat(w.paddingTop))*m.y;l*=m.x,u*=m.y,d*=m.x,p*=m.y,l+=x,u+=E,b=q(f),f=Jt(b)}}return $e({width:d,height:p,x:l,y:u})}function yn(e,t){const n=bt(e).scrollLeft;return t?t.left+n:Ae(me(e)).left+n}function Ho(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:yn(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function Pa(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=me(o),a=t?xt(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=fe(1);const d=fe(0),p=pe(o);if((p||!p&&!s)&&((Ue(o)!=="body"||Ze(i))&&(l=bt(o)),pe(o))){const g=Ae(o);u=ke(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const h=i&&!p&&!s?Ho(i,l,!0):fe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}}function Aa(e){return Array.from(e.getClientRects())}function Ia(e){const t=me(e),n=bt(e),o=e.ownerDocument.body,r=Y(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Y(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+yn(e);const a=-n.scrollTop;return ce(o).direction==="rtl"&&(i+=Y(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:a}}function Na(e,t){const n=q(e),o=me(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=gn();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:i,x:a,y:l}}const Oa=new Set(["absolute","fixed"]);function _a(e,t){const n=Ae(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=pe(e)?ke(e):fe(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:a,x:l,y:u}}function Yn(e,t,n){let o;if(t==="viewport")o=Na(e,n);else if(t==="document")o=Ia(me(e));else if(ae(t))o=_a(t,n);else{const r=Wo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return $e(o)}function Uo(e,t){const n=be(e);return n===t||!ae(n)||Ve(n)?!1:ce(n).position==="fixed"||Uo(n,t)}function Da(e,t){const n=t.get(e);if(n)return n;let o=ze(e,[],!1).filter(a=>ae(a)&&Ue(a)!=="body"),r=null;const s=ce(e).position==="fixed";let i=s?be(e):e;for(;ae(i)&&!Ve(i);){const a=ce(i),l=hn(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&Oa.has(r.position)||Ze(i)&&!l&&Uo(e,i))?o=o.filter(d=>d!==i):r=a,i=be(i)}return t.set(e,o),o}function Ma(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?xt(t)?[]:Da(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((u,d)=>{const p=Yn(t,d,r);return u.top=Y(p.top,u.top),u.right=se(p.right,u.right),u.bottom=se(p.bottom,u.bottom),u.left=Y(p.left,u.left),u},Yn(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function La(e){const{width:t,height:n}=Vo(e);return{width:t,height:n}}function ka(e,t,n){const o=pe(t),r=me(t),s=n==="fixed",i=Ae(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=fe(0);function u(){l.x=yn(r)}if(o||!o&&!s)if((Ue(t)!=="body"||Ze(r))&&(a=bt(t)),o){const g=Ae(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else r&&u();s&&!o&&r&&u();const d=r&&!o&&!s?Ho(r,a):fe(0),p=i.left+a.scrollLeft-l.x-d.x,h=i.top+a.scrollTop-l.y-d.y;return{x:p,y:h,width:i.width,height:i.height}}function Ft(e){return ce(e).position==="static"}function Xn(e,t){if(!pe(e)||ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return me(e)===n&&(n=n.ownerDocument.body),n}function Ko(e,t){const n=q(e);if(xt(e))return n;if(!pe(e)){let r=be(e);for(;r&&!Ve(r);){if(ae(r)&&!Ft(r))return r;r=be(r)}return n}let o=Xn(e,t);for(;o&&wa(o)&&Ft(o);)o=Xn(o,t);return o&&Ve(o)&&Ft(o)&&!hn(o)?n:o||Ca(e)||n}const Fa=async function(e){const t=this.getOffsetParent||Ko,n=this.getDimensions,o=await n(e.floating);return{reference:ka(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ja(e){return ce(e).direction==="rtl"}const $a={convertOffsetParentRelativeRectToViewportRelativeRect:Pa,getDocumentElement:me,getClippingRect:Ma,getOffsetParent:Ko,getElementRects:Fa,getClientRects:Aa,getDimensions:La,getScale:ke,isElement:ae,isRTL:ja};function Go(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ba(e,t){let n=null,o;const r=me(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:p,width:h,height:g}=u;if(a||t(),!h||!g)return;const b=tt(p),f=tt(r.clientWidth-(d+h)),m=tt(r.clientHeight-(p+g)),y=tt(d),x={rootMargin:-b+"px "+-f+"px "+-m+"px "+-y+"px",threshold:Y(0,se(1,l))||1};let E=!0;function C(T){const S=T[0].intersectionRatio;if(S!==l){if(!E)return i();S?i(!1,S):o=setTimeout(()=>{i(!1,1e-7)},1e3)}S===1&&!Go(u,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(C,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),s}function Va(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=wn(e),d=r||s?[...u?ze(u):[],...ze(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=u&&a?Ba(u,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let b,f=l?Ae(e):null;l&&m();function m(){const y=Ae(e);f&&!Go(f,y)&&n(),f=y,b=requestAnimationFrame(m)}return n(),()=>{var y;d.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),p?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const Wa=fa,td=ia,Ha=pa,Ua=aa,Ka=va,Ga=ca,qn=ra,nd=ua,za=ma,Ya=(e,t,n)=>{const o=new Map,r={platform:$a,...n},s={...r.platform,_c:o};return oa(e,t,{...r,platform:s})};var Xa=typeof document<"u",qa=function(){},it=Xa?c.useLayoutEffect:qa;function ft(e,t){if(e===t)return!0;
vendor: 17,590 bytes, line 1
1if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ft(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!ft(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zn(e,t){const n=zo(e);return Math.round(t*n)/n}function jt(e){const t=c.useRef(e);return it(()=>{t.current=e}),t}function Za(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=c.useState(o);ft(h,o)||g(o);const[b,f]=c.useState(null),[m,y]=c.useState(null),w=c.useCallback(O=>{O!==T.current&&(T.current=O,f(O))},[]),x=c.useCallback(O=>{O!==S.current&&(S.current=O,y(O))},[]),E=s||b,C=i||m,T=c.useRef(null),S=c.useRef(null),P=c.useRef(d),L=l!=null,A=jt(l),D=jt(r),$=jt(u),k=c.useCallback(()=>{if(!T.current||!S.current)return;const O={placement:t,strategy:n,middleware:h};D.current&&(O.platform=D.current),Ya(T.current,S.current,O).then(B=>{const z={...B,isPositioned:$.current!==!1};R.current&&!ft(P.current,z)&&(P.current=z,Ye.flushSync(()=>{p(z)}))})},[h,t,n,D,$]);it(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[u]);const R=c.useRef(!1);it(()=>(R.current=!0,()=>{R.current=!1}),[]),it(()=>{if(E&&(T.current=E),C&&(S.current=C),E&&C){if(A.current)return A.current(E,C,k);k()}},[E,C,k,A,L]);const F=c.useMemo(()=>({reference:T,floating:S,setReference:w,setFloating:x}),[w,x]),I=c.useMemo(()=>({reference:E,floating:C}),[E,C]),j=c.useMemo(()=>{const O={position:n,left:0,top:0};if(!I.floating)return O;const B=Zn(I.floating,d.x),z=Zn(I.floating,d.y);return a?{...O,transform:"translate("+B+"px, "+z+"px)",...zo(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:z}},[n,a,I.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:k,refs:F,elements:I,floatingStyles:j}),[d,k,F,I,j])}const Qa=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?qn({element:o.current,padding:r}).fn(n):{}:o?qn({element:o,padding:r}).fn(n):{}}}},Ja=(e,t)=>({...Wa(e),options:[e,t]}),ec=(e,t)=>({...Ha(e),options:[e,t]}),tc=(e,t)=>({...za(e),options:[e,t]}),nc=(e,t)=>({...Ua(e),options:[e,t]}),oc=(e,t)=>({...Ka(e),options:[e,t]}),rc=(e,t)=>({...Ga(e),options:[e,t]}),sc=(e,t)=>({...Qa(e),options:[e,t]});var ic="Arrow",Yo=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return v.jsx(_.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yo.displayName=ic;var ac=Yo;function xn(e){const[t,n]=c.useState(void 0);return G(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var bn="Popper",[Xo,Et]=ee(bn),[cc,qo]=Xo(bn),Zo=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return v.jsx(cc,{scope:t,anchor:o,onAnchorChange:r,children:n})};Zo.displayName=bn;var Qo="PopperAnchor",Jo=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=qo(Qo,n),i=c.useRef(null),a=V(t,i);return c.useEffect(()=>{s.onAnchorChange(o?.current||i.current)}),o?null:v.jsx(_.div,{...r,ref:a})});Jo.displayName=Qo;var En="PopperContent",[lc,uc]=Xo(En),er=c.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...f}=e,m=qo(En,n),[y,w]=c.useState(null),x=V(t,M=>w(M)),[E,C]=c.useState(null),T=xn(E),S=T?.width??0,P=T?.height??0,L=o+(s!=="center"?"-"+s:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],$=D.length>0,k={padding:A,boundary:D.filter(fc),altBoundary:$},{refs:R,floatingStyles:F,placement:I,isPositioned:j,middlewareData:O}=Za({strategy:"fixed",placement:L,whileElementsMounted:(...M)=>Va(...M,{animationFrame:g==="always"}),elements:{reference:m.anchor},middleware:[Ja({mainAxis:r+P,alignmentAxis:i}),l&&ec({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?tc():void 0,...k}),l&&nc({...k}),oc({...k,apply:({elements:M,rects:U,availableWidth:X,availableHeight:W})=>{const{width:H,height:K}=U.reference,J=M.floating.style;J.setProperty("--radix-popper-available-width",`${X}px`),J.setProperty("--radix-popper-available-height",`${W}px`),J.setProperty("--radix-popper-anchor-width",`${H}px`),J.setProperty("--radix-popper-anchor-height",`${K}px`)}}),E&&sc({element:E,padding:a}),pc({arrowWidth:S,arrowHeight:P}),h&&rc({strategy:"referenceHidden",...k})]}),[B,z]=or(I),ve=Z(b);G(()=>{j&&ve?.()},[j,ve]);const he=O.arrow?.x,ue=O.arrow?.y,te=O.arrow?.centerOffset!==0,[_e,Te]=c.useState();return G(()=>{y&&Te(window.getComputedStyle(y).zIndex)},[y]),v.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:j?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(lc,{scope:n,placedSide:B,onArrowChange:C,arrowX:he,arrowY:ue,shouldHideArrow:te,children:v.jsx(_.div,{"data-side":B,"data-align":z,...f,ref:x,style:{...f.style,animation:j?void 0:"none"}})})})});er.displayName=En;var tr="PopperArrow",dc={top:"bottom",right:"left",bottom:"top",left:"right"},nr=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=uc(tr,o),i=dc[s.placedSide];return v.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:v.jsx(ac,{...r,ref:n,style:{...r.style,display:"block"}})})});nr.displayName=tr;function fc(e){return e!==null}var pc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=or(n),p={start:"0%",center:"50%",end:"100%"}[d],h=(r.arrow?.x??0)+a/2,g=(r.arrow?.y??0)+l/2;let b="",f="";return u==="bottom"?(b=i?p:`${h}px`,f=`${-l}px`):u==="top"?(b=i?p:`${h}px`,f=`${o.floating.height+l}px`):u==="right"?(b=`${-l}px`,f=i?p:`${g}px`):u==="left"&&(b=`${o.floating.width+l}px`,f=i?p:`${g}px`),{data:{x:b,y:f}}}});function or(e){const[t,n="center"]=e.split("-");return[t,n]}var mc=Zo,rr=Jo,sr=er,ir=nr,[Ct,od]=ee("Tooltip",[Et]),Cn=Et(),ar="TooltipProvider",vc=700,Qn="tooltip.open",[hc,cr]=Ct(ar),lr=e=>{const{__scopeTooltip:t,delayDuration:n=vc,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,i=c.useRef(!0),a=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),v.jsx(hc,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:c.useCallback(u=>{a.current=u},[]),disableHoverableContent:r,children:s})};lr.displayName=ar;var ur="Tooltip",[rd,St]=Ct(ur),en="TooltipTrigger",gc=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=St(en,n),s=cr(en,n),i=Cn(n),a=c.useRef(null),l=V(t,a,r.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),p=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),v.jsx(rr,{asChild:!0,...i,children:v.jsx(_.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:N(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:N(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:N(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:N(e.onBlur,r.onClose),onClick:N(e.onClick,r.onClose)})})});gc.displayName=en;var wc="TooltipPortal",[sd,yc]=Ct(wc,{forceMount:void 0}),We="TooltipContent",dr=c.forwardRef((e,t)=>{const n=yc(We,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,i=St(We,e.__scopeTooltip);return v.jsx(Ee,{present:o||i.open,children:i.disableHoverableContent?v.jsx(fr,{side:r,...s,ref:t}):v.jsx(xc,{side:r,...s,ref:t})})}),xc=c.forwardRef((e,t)=>{const n=St(We,e.__scopeTooltip),o=cr(We,e.__scopeTooltip),r=c.useRef(null),s=V(t,r),[i,a]=c.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:p}=o,h=c.useCallback(()=>{a(null),p(!1)},[p]),g=c.useCallback((b,f)=>{const m=b.currentTarget,y={x:b.clientX,y:b.clientY},w=Tc(y,m.getBoundingClientRect()),x=Rc(y,w),E=Pc(f.getBoundingClientRect()),C=Ic([...x,...E]);a(C),p(!0)},[p]);return c.useEffect(()=>()=>h(),[h]),c.useEffect(()=>{if(l&&d){const b=m=>g(m,d),f=m=>g(m,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",f),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",f)}}},[l,d,g,h]),c.useEffect(()=>{if(i){const b=f=>{const m=f.target,y={x:f.clientX,y:f.clientY},w=l?.contains(m)||d?.contains(m),x=!Ac(y,i);w?h():x&&(h(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,i,u,h]),v.jsx(fr,{...e,ref:s})}),[bc,Ec]=Ct(ur,{isInside:!1}),Cc=si("TooltipContent"),fr=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=St(We,n),u=Cn(n),{onClose:d}=l;return c.useEffect(()=>(document.addEventListener(Qn,d),()=>document.removeEventListener(Qn,d)),[d]),c.useEffect(()=>{if(l.trigger){const p=h=>{h.target?.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),v.jsx(Xe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:v.jsxs(sr,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.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:[v.jsx(Cc,{children:o}),v.jsx(bc,{scope:n,isInside:!0,children:v.jsx(Pi,{id:l.contentId,role:"tooltip",children:r||o})})]})})});dr.displayName=We;var pr="TooltipArrow",Sc=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Cn(n);return Ec(pr,n).isInside?null:v.jsx(ir,{...r,...o,ref:t})});Sc.displayName=pr;function Tc(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Rc(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Pc(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Ac(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,d=a.y,p=l.x,h=l.y;d>o!=h>o&&n<(p-u)*(o-d)/(h-d)+u&&(r=!r)}return r}function Ic(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Nc(t)}function Nc(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var id=lr,ad=dr,mr={exports:{}},vr={};var He=c;function Oc(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _c=typeof Object.is=="function"?Object.is:Oc,Dc=He.useState,Mc=He.useEffect,Lc=He.useLayoutEffect,kc=He.useDebugValue;function Fc(e,t){var n=t(),o=Dc({inst:{value:n,getSnapshot:t}}),r=o[0].inst,s=o[1];return Lc(function(){r.value=n,r.getSnapshot=t,$t(r)&&s({inst:r})},[e,n,t]),Mc(function(){return $t(r)&&s({inst:r}),e(function(){$t(r)&&s({inst:r})})},[e]),kc(n),n}function $t(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_c(e,n)}catch{return!0}}function jc(e,t){return t()}var $c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?jc:Fc;vr.useSyncExternalStore=He.useSyncExternalStore!==void 0?He.useSyncExternalStore:$c;mr.exports=vr;var Bc=mr.exports;function Vc(){return Bc.useSyncExternalStore(Wc,()=>!0,()=>!1)}function Wc(){return()=>{}}var Sn="Avatar",[Hc,cd]=ee(Sn),[Uc,hr]=Hc(Sn),gr=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[r,s]=c.useState("idle");return v.jsx(Uc,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:s,children:v.jsx(_.span,{...o,ref:t})})});gr.displayName=Sn;var wr="AvatarImage",yr=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:r=()=>{},...s}=e,i=hr(wr,n),a=Kc(o,s),l=Z(u=>{r(u),i.onImageLoadingStatusChange(u)});return G(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?v.jsx(_.img,{...s,ref:t,src:o}):null});yr.displayName=wr;var xr="AvatarFallback",br=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...r}=e,s=hr(xr,n),[i,a]=c.useState(o===void 0);return c.useEffect(()=>{if(o!==void 0){const l=window.setTimeout(()=>a(!0),o);return()=>window.clearTimeout(l)}},[o]),i&&s.imageLoadingStatus!=="loaded"?v.jsx(_.span,{...r,ref:t}):null});br.displayName=xr;function Jn(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Kc(e,{referrerPolicy:t,crossOrigin:n}){const o=Vc(),r=c.useRef(null),s=o?(r.current||(r.current=new window.Image),r.current):null,[i,a]=c.useState(()=>Jn(s,e));return G(()=>{a(Jn(s,e))},[s,e]),G(()=>{const l=p=>()=>{a(p)};if(!s)return;const u=l("loaded"),d=l("error");return s.addEventListener("load",u),s.addEventListener("error",d),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",d)}},[s,n,t]),i}var ld=gr,ud=yr,dd=br,Gc="Label",Er=c.forwardRef((e,t)=>v.jsx(_.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Er.displayName=Gc;var fd=Er,zc=c.createContext(void 0);function Tn(e){const t=c.useContext(zc);return e||t||"ltr"}var Bt="rovingFocusGroup.onEntryFocus",Yc={bubbles:!1,cancelable:!0},Qe="RovingFocusGroup",[tn,Cr,Xc]=ln(Qe),[qc,Sr]=ee(Qe,[Xc]),[Zc,Qc]=qc(Qe),Tr=c.forwardRef((e,t)=>v.jsx(tn.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(tn.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(Jc,{...e,ref:t})})}));Tr.displayName=Qe;var Jc=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...p}=e,h=c.useRef(null),g=V(t,h),b=Tn(s),[f,m]=xe({prop:i,defaultProp:a??null,onChange:l,caller:Qe}),[y,w]=c.useState(!1),x=Z(u),E=Cr(n),C=c.useRef(!1),[T,S]=c.useState(0);return c.useEffect(()=>{const P=h.current;if(P)return P.addEventListener(Bt,x),()=>P.removeEventListener(Bt,x)},[x]),v.jsx(Zc,{scope:n,orientation:o,dir:b,loop:r,currentTabStopId:f,onItemFocus:c.useCallback(P=>m(P),[m]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>S(P=>P+1),[]),onFocusableItemRemove:c.useCallback(()=>S(P=>P-1),[]),children:v.jsx(_.div,{tabIndex:y||T===0?-1:0,"data-orientation":o,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{C.current=!0}),onFocus:N(e.onFocus,P=>{const L=!C.current;if(P.target===P.currentTarget&&L&&!y){const A=new CustomEvent(Bt,Yc);if(P.currentTarget.dispatchEvent(A),!A.defaultPrevented){const D=E().filter(I=>I.focusable),$=D.find(I=>I.active),k=D.find(I=>
vendor: 1,246 bytes, line 1
1I.id===f),F=[$,k,...D].filter(Boolean).map(I=>I.ref.current);Ar(F,d)}}C.current=!1}),onBlur:N(e.onBlur,()=>w(!1))})})}),Rr="RovingFocusGroupItem",Pr=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...a}=e,l=we(),u=s||l,d=Qc(Rr,n),p=d.currentTabStopId===u,h=Cr(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:f}=d;return c.useEffect(()=>{if(o)return g(),()=>b()},[o,g,b]),v.jsx(tn.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:v.jsx(_.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:N(e.onMouseDown,m=>{o?d.onItemFocus(u):m.preventDefault()}),onFocus:N(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:N(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){d.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=nl(m,d.orientation,d.dir);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let x=h().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const E=x.indexOf(m.currentTarget);x=d.loop?ol(x,E+1):x.slice(E+1)}setTimeout(()=>Ar(x))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:f!=null}):i})})});
1Pr.displayName=Rr;var el={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tl(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function nl(e,t,n){const o=tl(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return el[o]}function Ar(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function ol(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var rl=Tr,sl=Pr,Tt="Tabs",[il,pd]=ee(Tt,[Sr]),Ir=Sr(),[al,Rn]=il(Tt),Nr=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:l="automatic",...u}=e,d=Tn(a),[p,h]=xe({prop:o,onChange:r,defaultProp:s??"",caller:Tt});return v.jsx(al,{scope:n,baseId:we(),value:p,onValueChange:h,orientation:i,dir:d,activationMode:l,children:v.jsx(_.div,{dir:d,"data-orientation":i,...u,ref:t})})});Nr.displayName=Tt;var Or="TabsList",_r=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,s=Rn(Or,n),i=Ir(n);return v.jsx(rl,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:v.jsx(_.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:t})})});_r.displayName=Or;var Dr="TabsTrigger",Mr=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...s}=e,i=Rn(Dr,n),a=Ir(n),l=Fr(i.baseId,o),u=jr(i.baseId,o),d=o===i.value;return v.jsx(sl,{asChild:!0,...a,focusable:!r,active:d,children:v.jsx(_.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:t,onMouseDown:N(e.onMouseDown,p=>{!r&&p.button===0&&p.ctrlKey===!1?i.onValueChange(o):p.preventDefault()}),onKeyDown:N(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(o)}),onFocus:N(e.onFocus,()=>{const p=i.activationMode!=="manual";!d&&!r&&p&&i.onValueChange(o)})})})});Mr.displayName=Dr;var Lr="TabsContent",kr=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:s,...i}=e,a=Rn(Lr,n),l=Fr(a.baseId,o),u=jr(a.baseId,o),d=o===a.value,p=c.useRef(d);return c.useEffect(()=>{const h=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(h)},[]),v.jsx(Ee,{present:r||d,children:({present:h})=>v.jsx(_.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:h&&s})})});kr.displayName=Lr;function Fr(e,t){return`${e}-trigger-${t}`}function jr(e,t){return`${e}-content-${t}`}var md=Nr,vd=_r,hd=Mr,gd=kr;function Pn(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Rt="Checkbox",[cl,wd]=ee(Rt),[ll,An]=cl(Rt);function ul(e){const{__scopeCheckbox:t,checked:n,children:o,defaultChecked:r,disabled:s,form:i,name:a,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:p}=e,[h,g]=xe({prop:n,defaultProp:r??!1,onChange:l,caller:Rt}),[b,f]=c.useState(null),[m,y]=c.useState(null),w=c.useRef(!1),x=b?!!i||!!b.closest("form"):!0,E={checked:h,disabled:s,setChecked:g,control:b,setControl:f,name:a,form:i,value:d,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:ye(r)?!1:r,isFormControl:x,bubbleInput:m,setBubbleInput:y};return v.jsx(ll,{scope:t,...E,children:pl(p)?p(E):o})}var $r="CheckboxTrigger",Br=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...o},r)=>{const{control:s,value:i,disabled:a,checked:l,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:h,isFormControl:g,bubbleInput:b}=An($r,e),f=V(r,d),m=c.useRef(l);return c.useEffect(()=>{const y=s?.form;if(y){const w=()=>p(m.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[s,p]),v.jsx(_.button,{type:"button",role:"checkbox","aria-checked":ye(l)?"mixed":l,"aria-required":u,"data-state":Ur(l),"data-disabled":a?"":void 0,disabled:a,value:i,...o,ref:f,onKeyDown:N(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:N(n,y=>{p(w=>ye(w)?!0:!w),b&&g&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});Br.displayName=$r;var dl=c.forwardRef((e,t)=>
vendor: 5,149 bytes, line 1
1{const{__scopeCheckbox:n,name:o,checked:r,defaultChecked:s,required:i,disabled:a,value:l,onCheckedChange:u,form:d,...p}=e;return v.jsx(ul,{__scopeCheckbox:n,checked:r,defaultChecked:s,disabled:a,required:i,onCheckedChange:u,name:o,form:d,value:l,internal_do_not_use_render:({isFormControl:h})=>v.jsxs(v.Fragment,{children:[v.jsx(Br,{...p,ref:t,__scopeCheckbox:n}),h&&v.jsx(Hr,{__scopeCheckbox:n})]})})});dl.displayName=Rt;var Vr="CheckboxIndicator",fl=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:o,...r}=e,s=An(Vr,n);return v.jsx(Ee,{present:o||ye(s.checked)||s.checked===!0,children:v.jsx(_.span,{"data-state":Ur(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});fl.displayName=Vr;var Wr="CheckboxBubbleInput",Hr=c.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:o,hasConsumerStoppedPropagationRef:r,checked:s,defaultChecked:i,required:a,disabled:l,name:u,value:d,form:p,bubbleInput:h,setBubbleInput:g}=An(Wr,e),b=V(n,g),f=Pn(s),m=xn(o);c.useEffect(()=>{const w=h;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,T=!r.current;if(f!==s&&C){const S=new Event("click",{bubbles:T});w.indeterminate=ye(s),C.call(w,ye(s)?!1:s),w.dispatchEvent(S)}},[h,f,s,r]);const y=c.useRef(ye(s)?!1:s);return v.jsx(_.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:a,disabled:l,name:u,value:d,form:p,...t,tabIndex:-1,ref:b,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Hr.displayName=Wr;function pl(e){return typeof e=="function"}function ye(e){return e==="indeterminate"}function Ur(e){return ye(e)?"indeterminate":e?"checked":"unchecked"}var Vt="focusScope.autoFocusOnMount",Wt="focusScope.autoFocusOnUnmount",eo={bubbles:!1,cancelable:!0},ml="FocusScope",In=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),u=Z(r),d=Z(s),p=c.useRef(null),h=V(t,f=>l(f)),g=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let f=function(x){if(g.paused||!a)return;const E=x.target;a.contains(E)?p.current=E:ge(p.current,{select:!0})},m=function(x){if(g.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||ge(p.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&ge(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",m);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",m),w.disconnect()}}},[o,a,g.paused]),c.useEffect(()=>{if(a){no.add(g);const f=document.activeElement;if(!a.contains(f)){const y=new CustomEvent(Vt,eo);a.addEventListener(Vt,u),a.dispatchEvent(y),y.defaultPrevented||(vl(xl(Kr(a)),{select:!0}),document.activeElement===f&&ge(a))}return()=>{a.removeEventListener(Vt,u),setTimeout(()=>{const y=new CustomEvent(Wt,eo);a.addEventListener(Wt,d),a.dispatchEvent(y),y.defaultPrevented||ge(f??document.body,{select:!0}),a.removeEventListener(Wt,d),no.remove(g)},0)}}},[a,u,d,g]);const b=c.useCallback(f=>{if(!n&&!o||g.paused)return;const m=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,y=document.activeElement;if(m&&y){const w=f.currentTarget,[x,E]=hl(w);x&&E?!f.shiftKey&&y===E?(f.preventDefault(),n&&ge(x,{select:!0})):f.shiftKey&&y===x&&(f.preventDefault(),n&&ge(E,{select:!0})):y===w&&f.preventDefault()}},[n,o,g.paused]);return v.jsx(_.div,{tabIndex:-1,...i,ref:h,onKeyDown:b})});In.displayName=ml;function vl(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ge(o,{select:t}),document.activeElement!==n)return}function hl(e){const t=Kr(e),n=to(t,e),o=to(t.reverse(),e);return[n,o]}function Kr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function to(e,t){for(const n of e)if(!gl(n,{upTo:t}))return n}function gl(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function wl(e){return e instanceof HTMLInputElement&&"select"in e}function ge(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&wl(e)&&t&&e.select()}}var no=yl();function yl(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=oo(e,t),e.unshift(t)},remove(t){e=oo(e,t),e[0]?.resume()}}}function oo(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function xl(e){return e.filter(t=>t.tagName!=="A")}var Ht=0;function Gr(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ro()),document.body.insertAdjacentElement("beforeend",e[1]??ro()),Ht++,
vendor: 5,914 bytes, lines 1-16
1()=>{Ht===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ht--}},[])}function ro(){const 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 de=function(){return de=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},de.apply(this,arguments)};function zr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function bl(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var at="right-scroll-bar-position",ct="width-before-scroll-bar",El="with-scroll-bars-hidden",Cl="--removed-body-scroll-bar-size";function Ut(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Sl(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Tl=typeof window<"u"?c.useLayoutEffect:c.useEffect,so=new WeakMap;function Rl(e,t){var n=Sl(null,function(o){return e.forEach(function(r){return Ut(r,o)})});return Tl(function(){var o=so.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||Ut(a,null)}),s.forEach(function(a){r.has(a)||Ut(a,i)})}so.set(n,e)},[e]),n}function Pl(e){return e}function Al(e,t){t===void 0&&(t=Pl);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return r}function Il(e){e===void 0&&(e={});var t=Al(null);return t.options=de({async:!0,ssr:!1},e),t}var Yr=function(e){var t=e.sideCar,n=zr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,de({},n))};Yr.isSideCarExport=!0;function Nl(e,t){return e.useMedium(t),Yr}var Xr=Il(),Kt=function(){},Pt=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Kt,onWheelCapture:Kt,onTouchMoveCapture:Kt}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,b=e.noIsolation,f=e.inert,m=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,E=zr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,T=Rl([n,t]),S=de(de({},E),r);return c.createElement(c.Fragment,null,d&&c.createElement(C,{sideCar:Xr,removeScrollBar:u,shards:p,noRelative:g,noIsolation:b,inert:f,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:x}),i?c.cloneElement(c.Children.only(a),de(de({},S),{ref:T})):c.createElement(w,de({},S,{className:l,ref:T}),a))});Pt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pt.classNames={fullWidth:ct,zeroRight:at};var Ol=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _l(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ol();return t&&e.setAttribute("nonce",t),e}function Dl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ml(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ll=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_l())&&(Dl(t,n),Ml(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kl=function(){var e=Ll();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},qr=function(){var e=kl(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Fl={left:0,top:0,right:0,gap:0},Gt=function(e){return parseInt(e||"",10)||0},jl=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Gt(n),Gt(o),Gt(r)]},$l=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Fl;var t=jl(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Bl=qr(),Fe="data-scroll-locked",Vl=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(El,` { 3 overflow: hidden `).concat(o,`; 4 padding-right: `).concat(a,"px ").concat(o,`; 5 } 6 body[`).concat(Fe,`] { 7 overflow: hidden `).concat(o,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` 10 padding-left: `.concat(r,`px; 11 padding-top: `).concat(s,`px; 12 padding-right: `).concat(i,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(o,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(at,` { 20 right: `).concat(a,"px ").concat(o,`; 21 } 22 23 .`).concat(ct,` { 24 margin-right: `).concat(a,"px ").concat(o,`; 25 } 26 27 .`).concat(at," .").concat(at,` { 28 right: 0 `).concat(o,`; 29 } 30 31 .`).concat(ct," .").concat(ct,` { 32 margin-right: 0 `).concat(o,`; 33 } 34 35 body[`).concat(Fe,`] { 36 `).concat(Cl,": ").concat(a,`px; 37 } 38`)},io=function(){var e=parseInt(document.body.getAttribute(Fe)||"0",10);return isFinite(e)?e:0},Wl=function(){c.useEffect(function(){return document.body.setAttribute(Fe,(io()+1).toString()),function(){var e=io()-1;e<=0?document.body.removeAttribute(Fe):document.body.setAttribute(Fe,e.toString())}},[])},Hl=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Wl();var s=c.useMemo(function(){return $l(r)},[r]);return c.createElement(Bl,{styles:Vl(s,!t,r,n?"":"!important")})},nn=!1;if(typeof window<"u")try{var nt=Object.defineProperty({},"passive",{get:function(){return nn=!0,!0}});window.addEventListener("test",nt,nt),window.removeEventListener("test",nt,nt)}catch{nn=!1}var De=nn?{passive:!1}:!1,Ul=function(e){return e.tagName==="TEXTAREA"},Zr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ul(e)&&n[t]==="visible")},Kl=function(e){return Zr(e,"overflowY")},Gl=function(e){return Zr(e,"overflowX")},ao=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Qr(e,o);if(r){var s=Jr(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},zl=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Yl=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Qr=function(e,t){return e==="v"?Kl(t):Gl(t)},Jr=function(e,t){return e==="v"?zl(t):Yl(t)},Xl=function(e,t){return e==="h"&&t==="rtl"?-1:1},ql=function(e,t,n,o,r){var s=Xl(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),u=!1,d=i>0,p=0,h=0;do{if(!a)break;var g=Jr(e,a),b=g[0],f=g[1],m=g[2],y=f-m-s*b;(b||y)&&Qr(e,a)&&(p+=y,h+=b);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(p)<1||!r)||!d&&(Math.abs(h)<1||!r))&&(u=!0),u},ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},co=function(e){return[e.deltaX,e.deltaY]},lo=function(e){return e&&"current"in e?e.current:e},Zl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ql=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},Jl=0,Me=[];function eu(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(Jl++)[0],s=c.useState(qr)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var f=bl([e.lockRef.current],(e.shards||[]).map(lo),!0).filter(Boolean);return f.forEach(function(m){return m.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),f.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(f,m){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!i.current.allowPinchZoom;var y=ot(f),w=n.current,x="deltaX"in f?f.deltaX:w[0]-y[0],E="deltaY"in f?f.deltaY:w[1]-y[1],C,T=f.target,S=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in f&&S==="h"&&T.type==="range")return!1;var P=ao(S,T);if(!P)return!0;if(P?C=S:(C=S==="v"?"h":"v",P=ao(S,T)),!P)return!1;if(!o.current&&"changedTouches"in f&&(x||E)&&(o.current=C),!C)return!0;var L=o.current||C;return ql(L,m,f,L==="h"?x:E,!0)},[]),l=c.useCallback(function(f){var m=f;if(!(!Me.length||Me[Me.length-1]!==s)){var y="deltaY"in m?co(m):ot(m),w=t.current.filter(function(C){return C.name===m.type&&(C.target===m.target||m.target===C.shadowParent)&&Zl(C.delta,y)})[0];if(w&&w.should){m.cancelable&&m.preventDefault();return}
vendor: 4,196 bytes, line 41
41if(!w){var x=(i.current.shards||[]).map(lo).filter(Boolean).filter(function(C){return C.contains(m.target)}),E=x.length>0?a(m,x[0]):!i.current.noIsolation;E&&m.cancelable&&m.preventDefault()}}},[]),u=c.useCallback(function(f,m,y,w){var x={name:f,delta:m,target:y,should:w,shadowParent:tu(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),d=c.useCallback(function(f){n.current=ot(f),o.current=void 0},[]),p=c.useCallback(function(f){u(f.type,co(f),f.target,a(f,e.lockRef.current))},[]),h=c.useCallback(function(f){u(f.type,ot(f),f.target,a(f,e.lockRef.current))},[]);c.useEffect(function(){return Me.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,De),document.addEventListener("touchmove",l,De),document.addEventListener("touchstart",d,De),function(){Me=Me.filter(function(f){return f!==s}),document.removeEventListener("wheel",l,De),document.removeEventListener("touchmove",l,De),document.removeEventListener("touchstart",d,De)}},[]);var g=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(s,{styles:Ql(r)}):null,g?c.createElement(Hl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function tu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nu=Nl(Xr,eu);var Nn=c.forwardRef(function(e,t){return c.createElement(Pt,de({},e,{ref:t,sideCar:nu}))});Nn.classNames=Pt.classNames;var ou=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Le=new WeakMap,rt=new WeakMap,st={},zt=0,es=function(e){return e&&(e.host||es(e.parentNode))},ru=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=es(n);return o&&e.contains(o)?o:null}).filter(function(n){return!!n})},su=function(e,t,n,o){var r=ru(t,Array.isArray(e)?e:[e]);st[n]||(st[n]=new WeakMap);var s=st[n],i=[],a=new Set,l=new Set(r),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};r.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var g=h.getAttribute(o),b=g!==null&&g!=="false",f=(Le.get(h)||0)+1,m=(s.get(h)||0)+1;Le.set(h,f),s.set(h,m),i.push(h),f===1&&b&&rt.set(h,!0),m===1&&h.setAttribute(n,"true"),b||h.setAttribute(o,"true")}catch{}})};return d(t),a.clear(),zt++,function(){i.forEach(function(p){var h=Le.get(p)-1,g=s.get(p)-1;Le.set(p,h),s.set(p,g),h||(rt.has(p)||p.removeAttribute(o),rt.delete(p)),g||p.removeAttribute(n)}),zt--,zt||(Le=new WeakMap,Le=new WeakMap,rt=new WeakMap,st={})}},ts=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=ou(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),su(o,r,n,"aria-hidden")):function(){return null}},At="Dialog",[ns,yd]=ee(At),[iu,le]=ns(At),os=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),l=c.useRef(null),[u,d]=xe({prop:o,defaultProp:r??!1,onChange:s,caller:At});return v.jsx(iu,{scope:t,triggerRef:a,contentRef:l,contentId:we(),titleId:we(),descriptionId:we(),open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};os.displayName=At;var rs="DialogTrigger",ss=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=le(rs,n),s=V(t,r.triggerRef);return v.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Dn(r.open),...o,ref:s,onClick:N(e.onClick,r.onOpenToggle)})});ss.displayName=rs;var On="DialogPortal",[au,is]=ns(On,{forceMount:void 0}),as=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=le(On,t);return v.jsx(au,{scope:t,forceMount:n,children:c.Children.map(o,i=>v.jsx(Ee,{present:n||s.open,children:v.jsx(ht,{asChild:!0,container:r,children:i})}))})};as.displayName=On;var pt="DialogOverlay",cs=c.forwardRef((e,t)=>{const n=is(pt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=le(pt,e.__scopeDialog);return s.modal?v.jsx(Ee,{present:o||s.open,children:v.jsx(lu,{...r,ref:t})}):null});cs.displayName=pt;var cu=je("DialogOverlay.RemoveScroll"),lu=c.forwardRef((e,t)=>
vendor: 19,630 bytes, lines 41-45
41{const{__scopeDialog:n,...o}=e,r=le(pt,n);return v.jsx(Nn,{as:cu,allowPinchZoom:!0,shards:[r.contentRef],children:v.jsx(_.div,{"data-state":Dn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Ie="DialogContent",ls=c.forwardRef((e,t)=>{const n=is(Ie,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=le(Ie,e.__scopeDialog);return v.jsx(Ee,{present:o||s.open,children:s.modal?v.jsx(uu,{...r,ref:t}):v.jsx(du,{...r,ref:t})})});ls.displayName=Ie;var uu=c.forwardRef((e,t)=>{const n=le(Ie,e.__scopeDialog),o=c.useRef(null),r=V(t,n.contentRef,o);return c.useEffect(()=>{const s=o.current;if(s)return ts(s)},[]),v.jsx(us,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:N(e.onFocusOutside,s=>s.preventDefault())})}),du=c.forwardRef((e,t)=>{const n=le(Ie,e.__scopeDialog),o=c.useRef(!1),r=c.useRef(!1);return v.jsx(us,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;n.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),us=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...i}=e,a=le(Ie,n),l=c.useRef(null),u=V(t,l);return Gr(),v.jsxs(v.Fragment,{children:[v.jsx(In,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:v.jsx(Xe,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Dn(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(fu,{titleId:a.titleId}),v.jsx(mu,{contentRef:l,descriptionId:a.descriptionId})]})]})}),_n="DialogTitle",ds=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=le(_n,n);return v.jsx(_.h2,{id:r.titleId,...o,ref:t})});ds.displayName=_n;var fs="DialogDescription",ps=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=le(fs,n);return v.jsx(_.p,{id:r.descriptionId,...o,ref:t})});ps.displayName=fs;var ms="DialogClose",vs=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=le(ms,n);return v.jsx(_.button,{type:"button",...o,ref:t,onClick:N(e.onClick,()=>r.onOpenChange(!1))})});vs.displayName=ms;function Dn(e){return e?"open":"closed"}var hs="DialogTitleWarning",[xd,gs]=ni(hs,{contentName:Ie,titleName:_n,docsSlug:"dialog"}),fu=({titleId:e})=>{const t=gs(hs),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 42 43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 44 45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{if(e){const o=document.getElementById(e)}},[n,e]),null},pu="DialogDescriptionWarning",mu=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gs(pu).contentName}}.`;return c.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){const s=document.getElementById(t)}},[o,e,t]),null},bd=os,Ed=ss,Cd=as,Sd=cs,Td=ls,Rd=ds,Pd=ps,Ad=vs;function uo(e,[t,n]){return Math.min(n,Math.max(t,e))}var vu=[" ","Enter","ArrowUp","ArrowDown"],hu=[" ","Enter"],Ne="Select",[It,Nt,gu]=ln(Ne),[Ke,Id]=ee(Ne,[gu,Et]),Ot=Et(),[wu,Ce]=Ke(Ne),[yu,xu]=Ke(Ne),ws=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:h,required:g,form:b}=e,f=Ot(t),[m,y]=c.useState(null),[w,x]=c.useState(null),[E,C]=c.useState(!1),T=Tn(u),[S,P]=xe({prop:o,defaultProp:r??!1,onChange:s,caller:Ne}),[L,A]=xe({prop:i,defaultProp:a,onChange:l,caller:Ne}),D=c.useRef(null),$=m?b||!!m.closest("form"):!0,[k,R]=c.useState(new Set),F=Array.from(k).map(I=>I.props.value).join(";");return v.jsx(mc,{...f,children:v.jsxs(wu,{required:g,scope:t,trigger:m,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:we(),value:L,onValueChange:A,open:S,onOpenChange:P,dir:T,triggerPointerDownPosRef:D,disabled:h,children:[v.jsx(It.Provider,{scope:t,children:v.jsx(yu,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(I=>{R(j=>new Set(j).add(I))},[]),onNativeOptionRemove:c.useCallback(I=>{R(j=>{const O=new Set(j);return O.delete(I),O})},[]),children:n})}),$?v.jsxs(Ws,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:p,value:L,onChange:I=>A(I.target.value),disabled:h,form:b,children:[L===void 0?v.jsx("option",{value:""}):null,Array.from(k)]},F):null]})})};ws.displayName=Ne;var ys="SelectTrigger",xs=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=Ot(n),i=Ce(ys,n),a=i.disabled||o,l=V(t,i.onTriggerChange),u=Nt(n),d=c.useRef("touch"),[p,h,g]=Us(f=>{const m=u().filter(x=>!x.disabled),y=m.find(x=>x.value===i.value),w=Ks(m,f,y);w!==void 0&&i.onValueChange(w.value)}),b=f=>{a||(i.onOpenChange(!0),g()),f&&(i.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return v.jsx(rr,{asChild:!0,...s,children:v.jsx(_.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Hs(i.value)?"":void 0,...r,ref:l,onClick:N(r.onClick,f=>{f.currentTarget.focus(),d.current!=="mouse"&&b(f)}),onPointerDown:N(r.onPointerDown,f=>{d.current=f.pointerType;const m=f.target;m.hasPointerCapture(f.pointerId)&&m.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(b(f),f.preventDefault())}),onKeyDown:N(r.onKeyDown,f=>{const m=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&h(f.key),!(m&&f.key===" ")&&vu.includes(f.key)&&(b(),f.preventDefault())})})})});xs.displayName=ys;var bs="SelectValue",Es=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:i="",...a}=e,l=Ce(bs,n),{onValueNodeHasChildrenChange:u}=l,d=s!==void 0,p=V(t,l.onValueNodeChange);return G(()=>{u(d)},[u,d]),v.jsx(_.span,{...a,ref:p,style:{pointerEvents:"none"},children:Hs(l.value)?v.jsx(v.Fragment,{children:i}):s})});Es.displayName=bs;var bu="SelectIcon",Cs=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return v.jsx(_.span,{"aria-hidden":!0,...r,ref:t,children:o||"â¼"})});Cs.displayName=bu;var Eu="SelectPortal",Ss=e=>v.jsx(ht,{asChild:!0,...e});Ss.displayName=Eu;var Oe="SelectContent",Ts=c.forwardRef((e,t)=>{const n=Ce(Oe,e.__scopeSelect),[o,r]=c.useState();if(G(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Ye.createPortal(v.jsx(Rs,{scope:e.__scopeSelect,children:v.jsx(It.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),s):null}return v.jsx(Ps,{...e,ref:t})});Ts.displayName=Oe;var ne=10,[Rs,Se]=Ke(Oe),Cu="SelectContentImpl",Su=je("SelectContent.RemoveScroll"),Ps=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:f,avoidCollisions:m,...y}=e,w=Ce(Oe,n),[x,E]=c.useState(null),[C,T]=c.useState(null),S=V(t,M=>E(M)),[P,L]=c.useState(null),[A,D]=c.useState(null),$=Nt(n),[k,R]=c.useState(!1),F=c.useRef(!1);c.useEffect(()=>{if(x)return ts(x)},[x]),Gr();const I=c.useCallback(M=>{const[U,...X]=$().map(K=>K.ref.current),[W]=X.slice(-1),H=document.activeElement;for(const K of M)if(K===H||(K?.scrollIntoView({block:"nearest"}),K===U&&C&&(C.scrollTop=0),K===W&&C&&(C.scrollTop=C.scrollHeight),K?.focus(),document.activeElement!==H))return},[$,C]),j=c.useCallback(()=>I([P,x]),[I,P,x]);c.useEffect(()=>{k&&j()},[k,j]);const{onOpenChange:O,triggerPointerDownPosRef:B}=w;c.useEffect(()=>{if(x){let M={x:0,y:0};const U=W=>{M={x:Math.abs(Math.round(W.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(W.pageY)-(B.current?.y??0))}},X=W=>{M.x<=10&&M.y<=10?W.preventDefault():x.contains(W.target)||O(!1),document.removeEventListener("pointermove",U),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",X,{capture:!0})}}},[x,O,B]),c.useEffect(()=>{const M=()=>O(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[O]);const[z,ve]=Us(M=>{const U=$().filter(H=>!H.disabled),X=U.find(H=>H.ref.current===document.activeElement),W=Ks(U,M,X);W&&setTimeout(()=>W.ref.current.focus())}),he=c.useCallback((M,U,X)=>{const W=!F.current&&!X;(w.value!==void 0&&w.value===U||W)&&(L(M),W&&(F.current=!0))},[w.value]),ue=c.useCallback(()=>x?.focus(),[x]),te=c.useCallback((M,U,X)=>{const W=!F.current&&!X;(w.value!==void 0&&w.value===U||W)&&D(M)},[w.value]),_e=o==="popper"?on:As,Te=_e===on?{side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:b,hideWhenDetached:f,avoidCollisions:m}:{};return v.jsx(Rs,{scope:n,content:x,viewport:C,onViewportChange:T,itemRefCallback:he,selectedItem:P,onItemLeave:ue,itemTextRefCallback:te,focusSelectedItem:j,selectedItemText:A,position:o,isPositioned:k,searchRef:z,children:v.jsx(Nn,{as:Su,allowPinchZoom:!0,children:v.jsx(In,{asChild:!0,trapped:w.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:N(r,M=>{w.trigger?.focus({preventScroll:!0}),M.preventDefault()}),children:v.jsx(Xe,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:v.jsx(_e,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:M=>M.preventDefault(),...y,...Te,onPlaced:()=>R(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:N(y.onKeyDown,M=>{const U=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!U&&M.key.length===1&&ve(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let W=$().filter(H=>!H.disabled).map(H=>H.ref.current);if(["ArrowUp","End"].includes(M.key)&&(W=W.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const H=M.target,K=W.indexOf(H);W=W.slice(K+1)}setTimeout(()=>I(W)),M.preventDefault()}})})})})})})});Ps.displayName=Cu;var Tu="SelectItemAlignedPosition",As=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Ce(Oe,n),i=Se(Oe,n),[a,l]=c.useState(null),[u,d]=c.useState(null),p=V(t,S=>d(S)),h=Nt(n),g=c.useRef(!1),b=c.useRef(!0),{viewport:f,selectedItem:m,selectedItemText:y,focusSelectedItem:w}=i,x=c.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&f&&m&&y){const S=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),L=s.valueNode.getBoundingClientRect(),A=y.getBoundingClientRect();if(s.dir!=="rtl"){const H=A.left-P.left,K=L.left-H,J=S.left-K,Re=S.width+J,Dt=Math.max(Re,P.width),Mt=window.innerWidth-ne,Lt=uo(K,[ne,Math.max(ne,Mt-Dt)]);a.style.minWidth=Re+"px",a.style.left=Lt+"px"}else{const H=P.right-A.right,K=window.innerWidth-L.right-H,J=window.innerWidth-S.right-K,Re=S.width+J,Dt=Math.max(Re,P.width),Mt=window.innerWidth-ne,Lt=uo(K,[ne,Math.max(ne,Mt-Dt)]);a.style.minWidth=Re+"px",a.style.right=Lt+"px"}const D=h(),$=window.innerHeight-ne*2,k=f.scrollHeight,R=window.getComputedStyle(u),F=parseInt(R.borderTopWidth,10),I=parseInt(R.paddingTop,10),j=parseInt(R.borderBottomWidth,10),O=parseInt(R.paddingBottom,10),B=F+I+k+O+j,z=Math.min(m.offsetHeight*5,B),ve=window.getComputedStyle(f),he=parseInt(ve.paddingTop,10),ue=parseInt(ve.paddingBottom,10),te=S.top+S.height/2-ne,_e=$-te,Te=m.offsetHeight/2,M=m.offsetTop+Te,U=F+I+M,X=B-U;if(U<=te){const H=D.length>0&&m===D[D.length-1].ref.current;a.style.bottom="0px";const K=u.clientHeight-f.offsetTop-f.offsetHeight,J=Math.max(_e,Te+(H?ue:0)+K+j),Re=U+J;a.style.height=Re+"px"}else{const H=D.length>0&&m===D[0].ref.current;a.style.top="0px";const J=Math.max(te,F+f.offsetTop+(H?he:0)+Te)+X;a.style.height=J+"px",f.scrollTop=U-te+f.offsetTop}a.style.margin=`${ne}px 0`,a.style.minHeight=z+"px",a.style.maxHeight=$+"px",o?.(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,a,u,f,m,y,s.dir,o]);G(()=>x(),[x]);const[E,C]=c.useState();G(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const T=c.useCallback(S=>{S&&b.current===!0&&(x(),w?.(),b.current=!1)},[x,w]);return v.jsx(Pu,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:v.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:v.jsx(_.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});As.displayName=Tu;var Ru="SelectPopperPosition",on=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ne,...s}=e,i=Ot(n);return v.jsx(sr,{...i,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});on.displayName=Ru;var[Pu,Mn]=Ke(Oe,{}),rn="SelectViewport",Is=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Se(rn,n),i=Mn(rn,n),a=V(t,s.onViewportChange),l=c.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),v.jsx(It.Slot,{scope:n,children:v.jsx(_.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:N(r.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=i;if(h?.current&&p){const g=Math.abs(l.current-d.scrollTop);if(g>0){const b=window.innerHeight-ne*2,f=parseFloat(p.style.minHeight),m=parseFloat(p.style.height),y=Math.max(f,m);if(y<b){const w=y+g,x=Math.min(b,w),E=w-x;p.style.height=x+"px",p.style.bottom==="0px"&&(d.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Is.displayName=rn;var Ns="SelectGroup",[Au,Iu]=Ke(Ns),Nu=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=we();return v.jsx(Au,{scope:n,id:r,children:v.jsx(_.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Nu.displayName=Ns;var Os="SelectLabel",_s=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Iu(Os,n);return v.jsx(_.div,{id:r.id,...o,ref:t})});_s.displayName=Os;var mt="SelectItem",[Ou,Ds]=Ke(mt),Ms=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...i}=e,a=Ce(mt,n),l=Se(mt,n),u=a.value===o,[d,p]=c.useState(s??""),[h,g]=c.useState(!1),b=V(t,w=>l.itemRefCallback?.(w,o,r)),f=we(),m=c.useRef("touch"),y=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(Ou,{scope:n,value:o,disabled:r,textId:f,isSelected:u,onItemTextChange:c.useCallback(w=>{p(x=>x||(w?.textContent??"").trim())},[]),children:v.jsx(It.ItemSlot,{scope:n,value:o,disabled:r,textValue:d,children:v.jsx(_.div,{role:"option","aria-labelledby":f,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:b,onFocus:N(i.onFocus,()=>g(!0)),onBlur:N(i.onBlur,()=>g(!1)),onClick:N(i.onClick,()=>{m.current!=="mouse"&&y()}),onPointerUp:N(i.onPointerUp,()=>{m.current==="mouse"&&y()}),onPointerDown:N(i.onPointerDown,w=>{m.current=w.pointerType}),onPointerMove:N(i.onPointerMove,w=>{m.current=w.pointerType,r?l.onItemLeave?.():m.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(i.onPointerLeave,w=>{w.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:N(i.onKeyDown,w=>{l.searchRef?.current!==""&&w.key===" "||(hu.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});Ms.displayName=mt;var Ge="SelectItemText",Ls=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,i=Ce(Ge,n),a=Se(Ge,n),l=Ds(Ge,n),u=xu(Ge,n),[d,p]=c.useState(null),h=V(t,y=>p(y),l.onItemTextChange,y=>a.itemTextRefCallback?.(y,l.value,l.disabled)),g=d?.textContent,b=c.useMemo(()=>v.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:f,onNativeOptionRemove:m}=u;return G(()=>(f(b),()=>m(b)),[f,m,b]),v.jsxs(v.Fragment,{children:[v.jsx(_.span,{id:l.textId,...s,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Ye.createPortal(s.children,i.valueNode):null]})});Ls.displayName=Ge;var ks="SelectItemIndicator",Fs=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Ds(ks,n).isSelected?v.jsx(_.span,{"aria-hidden":!0,...o,ref:t}):null});Fs.displayName=ks;var sn="SelectScrollUpButton",js=c.forwardRef((e,t)=>{const n=Se(sn,e.__scopeSelect),o=Mn(sn,e.__scopeSelect),[r,s]=c.useState(!1),i=V(t,o.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?v.jsx(Bs,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});js.displayName=sn;var an="SelectScrollDownButton",$s=c.forwardRef((e,t)=>{const n=Se(an,e.__scopeSelect),o=Mn(an,e.__scopeSelect),[r,s]=c.useState(!1),i=V(t,o.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;s(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?v.jsx(Bs,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});$s.displayName=an;var Bs=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Se("SelectScrollButton",n),i=c.useRef(null),a=Nt(n),l=c.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),G(()=>{a().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),v.jsx(_.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:N(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:N(r.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:N(r.onPointerLeave,()=>{l()})})}),_u="SelectSeparator",Vs=c.forwardRef((e,t)=>
45{const{__scopeSelect:n,...o}=e;return v.jsx(_.div,{"aria-hidden":!0,...o,ref:t})});Vs.displayName=_u;var cn="SelectArrow",Du=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ot(n),s=Ce(cn,n),i=Se(cn,n);return s.open&&i.position==="popper"?v.jsx(ir,{...r,...o,ref:t}):null});Du.displayName=cn;var Mu="SelectBubbleInput",Ws=c.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=c.useRef(null),s=V(o,r),i=Pn(t);return c.useEffect(()=>{const a=r.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const p=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(p)}},[i,t]),v.jsx(_.select,{...n,style:{...bo,...n.style},ref:s,defaultValue:t})});Ws.displayName=Mu;function Hs(e){return e===""||e===void 0}function Us(e){const t=Z(e),n=c.useRef(""),o=c.useRef(0),r=c.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Ks(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Lu(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Lu(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Nd=ws,Od=xs,_d=Es,Dd=Cs,Md=Ss,Ld=Ts,kd=Is,Fd=_s,jd=Ms,$d=Ls,Bd=Fs,Vd=js,Wd=$s,Hd=Vs,Ln="Progress",ku=100,[Fu,Ud]=ee(Ln),[ju,$u]=Fu(Ln),Gs=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:r,getValueLabel:s=Bu,...i}=e;(r||r===0)&&fo(r);const a=fo(r)?r:ku;o!==null&&po(o,a);const l=po(o,a)?o:null,u=vt(l)?s(l,a):void 0;return v.jsx(ju,{scope:n,value:l,max:a,children:v.jsx(_.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":vt(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":Xs(l,a),"data-value":l??void 0,"data-max":a,...i,ref:t})})});Gs.displayName=Ln;var zs="ProgressIndicator",Ys=c.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,r=$u(zs,n);return v.jsx(_.div,{"data-state":Xs(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...o,ref:t})});Ys.displayName=zs;function Bu(e,t){return`${Math.round(e/t*100)}%`}function Xs(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function vt(e){return typeof e=="number"}function fo(e){return vt(e)&&!isNaN(e)&&e>0}function po(e,t){return vt(e)&&!isNaN(e)&&e<=t&&e>=0}var Kd=Gs,Gd=Ys,_t="Switch",[Vu,zd]=ee(_t),[Wu,Hu]=Vu(_t),qs=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:s,required:i,disabled:a,value:l="on",onCheckedChange:u,form:d,...p}=e,[h,g]=c.useState(null),b=V(t,x=>g(x)),f=c.useRef(!1),m=h?d||!!h.closest("form"):!0,[y,w]=xe({prop:r,defaultProp:s??!1,onChange:u,caller:_t});return v.jsxs(Wu,{scope:n,checked:y,disabled:a,children:[v.jsx(_.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":ei(y),"data-disabled":a?"":void 0,disabled:a,value:l,...p,ref:b,onClick:N(e.onClick,x=>{w(E=>!E),m&&(f.current=x.isPropagationStopped(),f.current||x.stopPropagation())})}),m&&v.jsx(Js,{control:h,bubbles:!f.current,name:o,value:l,checked:y,required:i,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});qs.displayName=_t;var Zs="SwitchThumb",Qs=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...o}=e,r=Hu(Zs,n);return v.jsx(_.span,{"data-state":ei(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});Qs.displayName=Zs;var Uu="SwitchBubbleInput",Js=c.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:o=!0,...r},s)=>{const i=c.useRef(null),a=V(i,s),l=Pn(n),u=xn(t);return c.useEffect(()=>{const d=i.current;if(!d)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&g){const b=new Event("click",{bubbles:o});g.call(d,n),d.dispatchEvent(b)}},[l,n,o]),v.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:a,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Js.displayName=Uu;function ei(e){return e?"checked":"unchecked"}var Yd=qs,Xd=Qs;export{Gd as $,Ju as A,Od as B,ed as C,Qu as D,Dd as E,dd as F,Vd as G,Wd as H,ud as I,Md as J,Ld as K,vd as L,kd as M,Fd as N,Sd as O,Yu as P,jd as Q,qu as R,Gu as S,Zu as T,Bd as U,Xu as V,$d as W,Hd as X,Nd as Y,_d as Z,Kd as _,ad as a,Yd as a0,Xd as a1,id as b,ld as c,Ha as d,qn as e,U
45a as f,Ka as g,td as h,Ga as i,nd as j,Ya as k,hd as l,gd as m,md as n,Wa as o,Td as p,Ad as q,Rd as r,Bc as s,Pd as t,bd as u,Ed as v,Cd as w,fd as x,dl as y,fl as z};
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.