PageSourceSearch

https://www.educonnect-ly.com/assets/vendor-ui-C7XKytAs.js

js educonnect-ly.com collected 2026-10-02 01:28:05 UTC 167,558 bytes, 50 lines download raw bytes

vendor: 13,263 bytes, line 1
1import{r as a,R as F,a as De,b as Wc,d as Ye}from"./vendor-react-pbBcp6-R.js";import{j as h}from"./vendor-query-BlmcqGn-.js";function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Vc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Uc(...e){return t=>e.forEach(n=>Vc(n,t))}function At(...e){return a.useCallback(Uc(...e),e)}function Kc(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];function l(d){const{scope:p,children:g,...v}=d,m=(p==null?void 0:p[e][u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})}function f(d,p){const g=(p==null?void 0:p[e][u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Gc(r,...t)]}function Gc(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Hc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Yc(...e){return t=>e.forEach(n=>Hc(n,t))}var B=a.forwardRef((e,t)=>{const{children:n,...o}=e,r=a.Children.toArray(n),s=r.find(zc);if(s){const i=s.props.children,c=r.map(u=>u===s?a.Children.count(i)>1?a.Children.only(null):a.isValidElement(i)?i.props.children:null:u);return h.jsx(bn,{...o,ref:t,children:a.isValidElement(i)?a.cloneElement(i,void 0,c):null})}return h.jsx(bn,{...o,ref:t,children:n})});B.displayName="Slot";var bn=a.forwardRef((e,t)=>{const{children:n,...o}=e;if(a.isValidElement(n)){const r=qc(n);return a.cloneElement(n,{...Xc(o,n.props),ref:t?Yc(t,r):r})}return a.Children.count(n)>1?a.Children.only(null):null});bn.displayName="SlotClone";var fr=({children:e})=>h.jsx(h.Fragment,{children:e});function zc(e){return a.isValidElement(e)&&e.type===fr}function Xc(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]=(...c)=>{s(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function qc(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zc(e){const t=e+"CollectionProvider",[n,o]=Kc(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:m}=g,x=F.useRef(null),w=F.useRef(new Map).current;return h.jsx(r,{scope:v,itemMap:w,collectionRef:x,children:m})};i.displayName=t;const c=e+"CollectionSlot",u=F.forwardRef((g,v)=>{const{scope:m,children:x}=g,w=s(c,m),C=At(v,w.collectionRef);return h.jsx(B,{ref:C,children:x})});u.displayName=c;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=F.forwardRef((g,v)=>{const{scope:m,children:x,...w}=g,C=F.useRef(null),y=At(v,C),S=s(l,m);return F.useEffect(()=>(S.itemMap.set(C,{ref:C,...w}),()=>void S.itemMap.delete(C))),h.jsx(B,{[f]:"",ref:y,children:x})});d.displayName=l;function p(g){const v=s(e+"CollectionConsumer",g);return F.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((S,b)=>w.indexOf(S.ref.current)-w.indexOf(b.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:d},p,o]}function Qc(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Jc(r,...t)]}function Jc(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function un(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var ea=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],pr=ea.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ta(e,t){e&&De.flushSync(()=>e.dispatchEvent(t))}function na(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function oa(...e){return t=>e.forEach(n=>na(n,t))}function mr(...e){return a.useCallback(oa(...e),e)}function U(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function ra(e,t=globalThis==null?void 0:globalThis.document){const n=U(e);a.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 sa="DismissableLayer",Pn="dismissableLayer.update",ia="dismissableLayer.pointerDownOutside",ca="dismissableLayer.focusOutside",Oo,vr=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ze=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...u}=e,l=a.useContext(vr),[f,d]=a.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=a.useState({}),v=mr(t,P=>d(P)),m=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=m.indexOf(x),C=f?m.indexOf(f):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,S=C>=w,b=ua(P=>{const E=P.target,A=[...l.branches].some(O=>O.contains(E));!S||A||(r==null||r(P),i==null||i(P),P.defaultPrevented||c==null||c())},p),_=la(P=>{const E=P.target;[...l.branches].some(O=>O.contains(E))||(s==null||s(P),i==null||i(P),P.defaultPrevented||c==null||c())},p);return ra(P=>{C===l.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},p),a.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Oo=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),$o(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Oo)}},[f,p,n,l]),a.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),$o())},[f,l]),a.useEffect(()=>{const P=()=>g({});return document.addEventListener(Pn,P),()=>document.removeEventListener(Pn,P)},[]),h.jsx(pr.div,{...u,ref:v,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:un(e.onFocusCapture,_.onFocusCapture),onBlurCapture:un(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:un(e.onPointerDownCapture,b.onPointerDownCapture)})});ze.displayName=sa;var aa="DismissableLayerBranch",hr=a.forwardRef((e,t)=>{const n=a.useContext(vr),o=a.useRef(null),r=mr(t,o);return a.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),h.jsx(pr.div,{...e,ref:r})});hr.displayName=aa;function ua(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=a.useRef(!1),r=a.useRef(()=>{});return a.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let u=function(){gr(ia,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}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 la(e,t=globalThis==null?void 0:globalThis.document){const n=U(e),o=a.useRef(!1);return a.useEffect(()=>{const r=s=>{s.target&&!o.current&&gr(ca,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 $o(){const e=new CustomEvent(Pn);document.dispatchEvent(e)}function gr(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?ta(r,s):r.dispatchEvent(s)}var da=ze,fa=hr,pa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ma=pa.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),q=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},va="Portal",dt=a.forwardRef((e,t)=>{var c;const{container:n,...o}=e,[r,s]=a.useState(!1);q(()=>s(!0),[]);const i=n||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?Wc.createPortal(h.jsx(ma.div,{...o,ref:t}),i):null});dt.displayName=va;function ha(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ga(...e){return t=>e.forEach(n=>ha(n,t))}function xa(...e){return a.useCallback(ga(...e),e)}function wa(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}var fe=e=>{const{present:t,children:n}=e,o=Ca(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),s=xa(o.ref,ya(r));return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:s}):null};fe.displayName="Presence";function Ca(e){const[t,n]=a.useState(),o=a.useRef({}),r=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,u]=wa(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const l=yt(o.current);s.current=c==="mounted"?l:"none"},[c]),q(()=>{const l=o.current,f=r.current;if(f!==e){const p=s.current,g=yt(l);e?u("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),q(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=g=>{const m=yt(o.current).includes(g.animationName);if(g.target===t&&m&&(u("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=g=>{g.target===t&&(s.current=yt(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function yt(e){return(e==null?void 0:e.animationName)||"none"}function ya(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Xe=Sa.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ba(e,t){e&&De.flushSync(()=>e.dispatchEvent(t))}function Pa({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Ea({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:o,c=U(n),u=a.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&c(d)}else r(l)},[s,e,r,c]);return[i,u]}function Ea({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),s=U(t);return a.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var Ra=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ta=Ra.reduce((e,t)=>
1{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),_a="VisuallyHidden",ft=a.forwardRef((e,t)=>h.jsx(Ta.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ft.displayName=_a;var Ma=ft,Un="ToastProvider",[Kn,Ia,Na]=Zc("Toast"),[xr]=Qc("Toast",[Na]),[Aa,Gt]=xr(Un),wr=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:i}=e,[c,u]=a.useState(null),[l,f]=a.useState(0),d=a.useRef(!1),p=a.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Un}\`. Expected non-empty \`string\`.`),h.jsx(Kn.Provider,{scope:t,children:h.jsx(Aa,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:l,viewport:c,onViewportChange:u,onToastAdd:a.useCallback(()=>f(g=>g+1),[]),onToastRemove:a.useCallback(()=>f(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:i})})};wr.displayName=Un;var Cr="ToastViewport",Oa=["F8"],En="toast.viewportPause",Rn="toast.viewportResume",yr=a.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=Oa,label:r="Notifications ({hotkey})",...s}=e,i=Gt(Cr,n),c=Ia(n),u=a.useRef(null),l=a.useRef(null),f=a.useRef(null),d=a.useRef(null),p=At(t,d,i.onViewportChange),g=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=i.toastCount>0;a.useEffect(()=>{const x=w=>{var y;o.length!==0&&o.every(S=>w[S]||w.code===S)&&((y=d.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[o]),a.useEffect(()=>{const x=u.current,w=d.current;if(v&&x&&w){const C=()=>{if(!i.isClosePausedRef.current){const _=new CustomEvent(En);w.dispatchEvent(_),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const _=new CustomEvent(Rn);w.dispatchEvent(_),i.isClosePausedRef.current=!1}},S=_=>{!x.contains(_.relatedTarget)&&y()},b=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",C),x.addEventListener("focusout",S),x.addEventListener("pointermove",C),x.addEventListener("pointerleave",b),window.addEventListener("blur",C),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",C),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",C),x.removeEventListener("pointerleave",b),window.removeEventListener("blur",C),window.removeEventListener("focus",y)}}},[v,i.isClosePausedRef]);const m=a.useCallback(({tabbingDirection:x})=>{const C=c().map(y=>{const S=y.ref.current,b=[S,...Ha(S)];return x==="forwards"?b:b.reverse()});return(x==="forwards"?C.reverse():C).flat()},[c]);return a.useEffect(()=>{const x=d.current;if(x){const w=C=>{var b,_,P;const y=C.altKey||C.ctrlKey||C.metaKey;if(C.key==="Tab"&&!y){const E=document.activeElement,A=C.shiftKey;if(C.target===x&&A){(b=l.current)==null||b.focus();return}const D=m({tabbingDirection:A?"backwards":"forwards"}),k=D.findIndex(R=>R===E);ln(D.slice(k+1))?C.preventDefault():A?(_=l.current)==null||_.focus():(P=f.current)==null||P.focus()}};return x.addEventListener("keydown",w),()=>x.removeEventListener("keydown",w)}},[c,m]),h.jsxs(fa,{ref:u,role:"region","aria-label":r.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&h.jsx(Tn,{ref:l,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"forwards"});ln(x)}}),h.jsx(Kn.Slot,{scope:n,children:h.jsx(Xe.ol,{tabIndex:-1,...s,ref:p})}),v&&h.jsx(Tn,{ref:f,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"backwards"});ln(x)}})]})});yr.displayName=Cr;var Sr="ToastFocusProxy",Tn=a.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=Gt(Sr,n);return h.jsx(ft,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:i=>{var l;const c=i.relatedTarget;!((l=s.viewport)!=null&&l.contains(c))&&o()}})});Tn.displayName=Sr;var Ht="Toast",$a="toast.swipeStart",Da="toast.swipeMove",ja="toast.swipeCancel",ka="toast.swipeEnd",br=
vendor: 4,706 bytes, line 1
1a.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...i}=e,[c=!0,u]=Pa({prop:o,defaultProp:r,onChange:s});return h.jsx(fe,{present:n||c,children:h.jsx(Ba,{open:c,...i,ref:t,onClose:()=>u(!1),onPause:U(e.onPause),onResume:U(e.onResume),onSwipeStart:ve(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,l=>{const{x:f,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ve(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,l=>{const{x:f,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),u(!1)})})})});br.displayName=Ht;var[La,Fa]=xr(Ht,{onClose(){}}),Ba=a.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:i,onEscapeKeyDown:c,onPause:u,onResume:l,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:g,...v}=e,m=Gt(Ht,n),[x,w]=a.useState(null),C=At(t,R=>w(R)),y=a.useRef(null),S=a.useRef(null),b=r||m.duration,_=a.useRef(0),P=a.useRef(b),E=a.useRef(0),{onToastAdd:A,onToastRemove:O}=m,$=U(()=>{var j;(x==null?void 0:x.contains(document.activeElement))&&((j=m.viewport)==null||j.focus()),i()}),D=a.useCallback(R=>{!R||R===1/0||(window.clearTimeout(E.current),_.current=new Date().getTime(),E.current=window.setTimeout($,R))},[$]);a.useEffect(()=>{const R=m.viewport;if(R){const j=()=>{D(P.current),l==null||l()},M=()=>{const L=new Date().getTime()-_.current;P.current=P.current-L,window.clearTimeout(E.current),u==null||u()};return R.addEventListener(En,M),R.addEventListener(Rn,j),()=>{R.removeEventListener(En,M),R.removeEventListener(Rn,j)}}},[m.viewport,b,u,l,D]),a.useEffect(()=>{s&&!m.isClosePausedRef.current&&D(b)},[s,b,m.isClosePausedRef,D]),a.useEffect(()=>(A(),()=>O()),[A,O]);const k=a.useMemo(()=>x?Ir(x):null,[x]);return m.viewport?h.jsxs(h.Fragment,{children:[k&&h.jsx(Wa,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:k}),h.jsx(La,{scope:n,onClose:$,children:De.createPortal(h.jsx(Kn.ItemSlot,{scope:n,children:h.jsx(da,{asChild:!0,onEscapeKeyDown:ve(c,()=>{m.isFocusedToastEscapeKeyDownRef.current||$(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(Xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...v,ref:C,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,R=>{R.key==="Escape"&&(c==null||c(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ve(e.onPointerDown,R=>{R.button===0&&(y.current={x:R.clientX,y:R.clientY})}),onPointerMove:ve(e.onPointerMove,R=>{if(!y.current)return;const j=R.clientX-y.current.x,M=R.clientY-y.current.y,L=!!S.current,I=["left","right"].includes(m.swipeDirection),T=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,W=I?T(0,j):0,z=I?0:T(0,M),Z=R.pointerType==="touch"?10:2,te={x:W,y:z},J={originalEvent:R,delta:te};L?(S.current=te,St(Da,d,J,{discrete:!1})):Do(te,m.swipeDirection,Z)?(S.current=te,St($a,f,J,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(j)>Z||Math.abs(M)>Z)&&(y.current=null)}),onPointerUp:ve(e.onPointerUp,R=>{const j=S.current,M=R.target;if(M.hasPointerCapture(R.pointerId)&&M.releasePointerCapture(R.pointerId),S.current=null,y.current=null,j){const L=R.currentTarget,I={originalEvent:R,delta:j};Do(j,m.swipeDirection,m.swipeThreshold)?St(ka,g,I,{discrete:!0}):St(ja,p,I,{discrete:!0}),L.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Wa=e=>{const{__scopeToast:t,children:n,...o}=e,r=Gt(Ht,t),[s,i]=a.useState(!1),[c,u]=a.useState(!1);return Ka(()=>i(!0)),a.useEffect(()=>{const l=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(l)},[]),c?null:h.jsx(dt,{asChild:!0,children:h.jsx(ft,{...o,children:s&&h.jsxs(h.Fragment,{children:[r.label," ",n]})})})},Va="ToastTitle",Pr=a.forwardRef((e,t)=>
1{const{__scopeToast:n,...o}=e;return h.jsx(Xe.div,{...o,ref:t})});Pr.displayName=Va;var Ua="ToastDescription",Er=a.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return h.jsx(Xe.div,{...o,ref:t})});Er.displayName=Ua;var Rr="ToastAction",Tr=a.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?h.jsx(Mr,{altText:n,asChild:!0,children:h.jsx(Gn,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Rr}\`. Expected non-empty \`string\`.`),null)});Tr.displayName=Rr;var _r="ToastClose",Gn=a.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=Fa(_r,n);return h.jsx(Mr,{asChild:!0,children:h.jsx(Xe.button,{type:"button",...o,ref:t,onClick:ve(e.onClick,r.onClose)})})});Gn.displayName=_r;var Mr=a.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return h.jsx(Xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function Ir(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),Ga(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(...Ir(o))}}),t}function St(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?ba(r,s):r.dispatchEvent(s)}var Do=(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 Ka(e=()=>{}){const t=U(e);q(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function Ga(e){return e.nodeType===e.ELEMENT_NODE}function Ha(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 ln(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Jv=wr,eh=yr,th=br,nh=Pr,oh=Er,rh=Tr,sh=Gn;function Le(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ya(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function za(...e){return t=>e.forEach(n=>Ya(n,t))}function Nr(...e){return a.useCallback(za(...e),e)}function Xa(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,qa(r,...t)]}function qa(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}const Za=["top","right","bottom","left"],Ee=Math.min,re=Math.max,Ot=Math.round,bt=Math.floor,Re=e=>({x:e,y:e}),Qa={left:"right",right:"left",bottom:"top",top:"bottom"},Ja={start:"end",end:"start"};function _n(e,t,n){return re(e,Ee(t,n))}function Ce(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function qe(e){return e.split("-")[1]}function Hn(e){return e==="x"?"y":"x"}function Yn(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(ye(e))?"y":"x"}function zn(e){return Hn(Te(e))}function eu(e,t,n){n===void 0&&(n=!1);const o=qe(e),r=zn(e),s=Yn(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=$t(i)),[i,$t(i)]}function tu(e){const t=$t(e);return[Mn(e),t,Mn(t)]}function Mn(e){return e.replace(/start|end/g,t=>Ja[t])}function nu(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:i;default:return[]}}function ou(e,t,n,o){const r=qe(e);let s=nu(ye(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Mn)))),s}function $t(e){return e.replace(/left|right|bottom|top/g,t=>Qa[t])}function ru(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ar(e){return typeof e!="number"?ru(e):{top:e,right:e,bottom:e,left:e}}function Dt(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 jo(e,t,n){let{reference:o,floating:r}=e;
vendor: 10,206 bytes, line 1
1const s=Te(t),i=zn(t),c=Yn(i),u=ye(t),l=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[c]/2-r[c]/2;let g;switch(u){case"top":g={x:f,y:o.y-r.height};break;case"bottom":g={x:f,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:d};break;case"left":g={x:o.x-r.width,y:d};break;default:g={x:o.x,y:o.y}}switch(qe(t)){case"start":g[i]-=p*(n&&l?-1:1);break;case"end":g[i]+=p*(n&&l?-1:1);break}return g}const su=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=jo(l,o,u),p=o,g={},v=0;for(let m=0;m<c.length;m++){const{name:x,fn:w}=c[m],{x:C,y,data:S,reset:b}=await w({x:f,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});f=C??f,d=y??d,g={...g,[x]:{...g[x],...S}},b&&v<=50&&(v++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(l=b.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:f,y:d}=jo(l,p,u)),m=-1)}return{x:f,y:d,placement:p,strategy:r,middlewareData:g}};async function ct(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Ce(t,e),v=Ar(g),x=c[p?d==="floating"?"reference":"floating":d],w=Dt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:u})),C=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),S=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},b=Dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:y,strategy:u}):C);return{top:(w.top-b.top+v.top)/S.y,bottom:(b.bottom-w.bottom+v.bottom)/S.y,left:(w.left-b.left+v.left)/S.x,right:(b.right-w.right+v.right)/S.x}}const iu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:u}=t,{element:l,padding:f=0}=Ce(e,t)||{};if(l==null)return{};const d=Ar(f),p={x:n,y:o},g=zn(r),v=Yn(g),m=await i.getDimensions(l),x=g==="y",w=x?"top":"left",C=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=s.reference[v]+s.reference[g]-p[g]-s.floating[v],b=p[g]-s.reference[g],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let P=_?_[y]:0;(!P||!await(i.isElement==null?void 0:i.isElement(_)))&&(P=c.floating[y]||s.floating[v]);const E=S/2-b/2,A=P/2-m[v]/2-1,O=Ee(d[w],A),$=Ee(d[C],A),D=O,k=P-m[v]-$,R=P/2-m[v]/2+E,j=_n(D,R,k),M=!u.arrow&&qe(r)!=null&&R!==j&&s.reference[v]/2-(R<D?O:$)-m[v]/2<0,L=M?R<D?R-D:R-k:0;return{[g]:p[g]+L,data:{[g]:j,centerOffset:R-j-L,...M&&{alignmentOffset:L}},reset:M}}}),cu=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:c,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=Ce(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=ye(r),C=Te(c),y=ye(c)===c,S=await(u.isRTL==null?void 0:u.isRTL(l.floating)),b=p||(y||!m?[$t(c)]:tu(c)),_=v!=="none";!p&&_&&b.push(...ou(c,m,v,S));const P=[c,...b],E=await ct(t,x),A=[];let O=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&A.push(E[w]),d){const R=eu(r,i,S);A.push(E[R[0]],E[R[1]])}if(O=[...O,{placement:r,overflows:A}],!A.every(R=>R<=0)){var $,D;const R=((($=s.flip)==null?void 0:$.index)||0)+1,j=P[R];if(j)return{data:{index:R,overflows:O},reset:{placement:j}};let M=(D=O.filter(L=>L.overflows[0]<=0).sort((L,I)=>L.overflows[1]-I.overflows[1])[0])==null?void 0:D.placement;if(!M)switch(g){case"bestFit":{var k;const L=(k=O.filter(I=>{if(_){const T=Te(I.placement);return T===C||T==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(T=>T>0).reduce((T,W)=>T+W,0)]).sort((I,T)=>I[1]-T[1])[0])==null?void 0:k[0];L&&(M=L);break}case"initialPlacement":M=c;break}if(r!==M)return{reset:{placement:M}}}return{}}}};function ko(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lo(e){return Za.some(t=>e[t]>=0)}const au=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Ce(e,t);switch(o){case"referenceHidden":{const s=await ct(t,{...r,elementContext:"reference"}),i=ko(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Lo(i)}}}case"escaped":{const s=await ct(t,{...r,altBoundary:!0}),i=ko(s,n.floating);return{data:{escapedOffsets:i,escaped:Lo(i)}}}default:return{}}}}};async function uu(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=ye(n),c=qe(n),u=Te(n)==="y",l=["left","top"].includes(i)?-1:1,f=s&&u?-1:1,d=Ce(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof v=="number"&&(g=c==="end"?v*-1:v),u?{x:g*f,y:p*l}:{x:p*l,y:g*f}}const lu=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:c}=t,u=await uu(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:i}}}}},du=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:c={fn:x=>{let{x:w,y:C}=x;return{x:w,y:C}}},...u}=Ce(e,t),l={x:n,y:o},f=await ct(t,u),d=Te(ye(r)),p=Hn(d);let g=l[p],v=l[d];if(s){const x=p==="y"?"top":"left",w=p==="y"?"bottom":"right",C=g+f[x],y=g-f[w];g=_n(C,g,y)}if(i){const x=d==="y"?"top":"left",w=d==="y"?"bottom":"right",C=v+f[x],y=v-f[w];v=_n(C,v,y)}const m=c.fn({...t,[p]:g,[d]:v});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[p]:s,[d]:i}}}}}},fu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=Ce(e,t),f={x:n,y:o},d=Te(r),p=Hn(d);let g=f[p],v=f[d];const m=Ce(c,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const y=p==="y"?"height":"width",S=s.reference[p]-s.floating[y]+x.mainAxis,b=s.reference[p]+s.reference[y]-x.mainAxis;g<S?g=S:g>b&&(g=b)}if(l){var w,C;const y=p==="y"?"width":"height",S=["top","left"].includes(ye(r)),b=s.reference[d]-s.floating[y]+(S&&((w=i.offset)==null?void 0:w[d])||0)+(S?0:x.crossAxis),_=s.reference[d]+s.reference[y]+(S?0:((C=i.offset)==null?void 0:C[d])||0)-(S?x.crossAxis:0);v<b?v=b:v>_&&(v=_)}return{[p]:g,[d]:v}}}},pu=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:c}=t,{apply:u=()=>{},...l}=Ce(e,t),f=await ct(t,l),d=ye(r),p=qe(r),g=Te(r)==="y",{width:v,height:m}=s.floating;let x,w;d==="top"||d==="bottom"?(x=d,w=p===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(w=d,x=p==="end"?"top":"bottom");const C=m-f.top-f.bottom,y=v-f.left-f.right,S=Ee(m-f[x],C),b=Ee(v-f[w],y),_=!t.middlewareData.shift;let P=S,E=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(P=C),_&&!p){const O=re(f.left,0),$=re(f.right,0),D=re(f.top,0),k=re(f.bottom,0);g?E=v-2*(O!==0||$!==0?O+$:re(f.left,f.right)):P=m-2*(D!==0||k!==0?D+k:re(f.top,f.bottom))}await u({...t,availableWidth:E,availableHeight:P});const A=await i.getDimensions(c.floating);return v!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function Ze(e){return Or(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ge(e){var t;return(t=(Or(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Or(e){return Yt()?e instanceof Node||e instanceof se(e).Node:!1}function le(e){return Yt()?e instanceof Element||e instanceof se(e).Element:!1}function he(e){return Yt()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Fo(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function pt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=de(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function mu(e){return["table","td","th"].includes(Ze(e))}function zt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xn(e){const t=qn(),n=le(e)?de(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function vu(e){let t=_e(e);for(;he(t)&&!Ge(t);){if(Xn(t))return t;if(zt(t))return null;t=_e(t)}return null}function qn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ge(e){return["html","body","#document"].includes(Ze(e))}function de(e){return se(e).getComputedStyle(e)}function Xt(e){return le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(Ze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fo(e)&&e.host||ge(e);return Fo(t)?t.host:t}function $r(e){const t=_e(e);return Ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:he(t)&&pt(t)?t:$r(t)}function at(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$r(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=se(r);if(s){const c=In(i);
vendor: 7,125 bytes, line 1
1return t.concat(i,i.visualViewport||[],pt(r)?r:[],c&&n?at(c):[])}return t.concat(r,at(r,[],n))}function In(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dr(e){const t=de(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=he(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=Ot(n)!==s||Ot(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function Zn(e){return le(e)?e:e.contextElement}function Ve(e){const t=Zn(e);if(!he(t))return Re(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Dr(t);let i=(s?Ot(n.width):n.width)/o,c=(s?Ot(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const hu=Re(0);function jr(e){const t=se(e);return!qn()||!t.visualViewport?hu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function Ne(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Zn(e);let i=Re(1);t&&(o?le(o)&&(i=Ve(o)):i=Ve(e));const c=gu(s,n,o)?jr(s):Re(0);let u=(r.left+c.x)/i.x,l=(r.top+c.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(s){const p=se(s),g=o&&le(o)?se(o):o;let v=p,m=In(v);for(;m&&o&&g!==v;){const x=Ve(m),w=m.getBoundingClientRect(),C=de(m),y=w.left+(m.clientLeft+parseFloat(C.paddingLeft))*x.x,S=w.top+(m.clientTop+parseFloat(C.paddingTop))*x.y;u*=x.x,l*=x.y,f*=x.x,d*=x.y,u+=y,l+=S,v=se(m),m=In(v)}}return Dt({width:f,height:d,x:u,y:l})}function xu(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=ge(o),c=t?zt(t.floating):!1;if(o===i||c&&s)return n;let u={scrollLeft:0,scrollTop:0},l=Re(1);const f=Re(0),d=he(o);if((d||!d&&!s)&&((Ze(o)!=="body"||pt(i))&&(u=Xt(o)),he(o))){const p=Ne(o);l=Ve(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x,y:n.y*l.y-u.scrollTop*l.y+f.y}}function wu(e){return Array.from(e.getClientRects())}function Nn(e,t){const n=Xt(e).scrollLeft;return t?t.left+n:Ne(ge(e)).left+n}function Cu(e){const t=ge(e),n=Xt(e),o=e.ownerDocument.body,r=re(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=re(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Nn(e);const c=-n.scrollTop;return de(o).direction==="rtl"&&(i+=re(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}function yu(e,t){const n=se(e),o=ge(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,u=0;if(r){s=r.width,i=r.height;const l=qn();(!l||l&&t==="fixed")&&(c=r.offsetLeft,u=r.offsetTop)}return{width:s,height:i,x:c,y:u}}function Su(e,t){const n=Ne(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=he(e)?Ve(e):Re(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,u=r*s.x,l=o*s.y;return{width:i,height:c,x:u,y:l}}function Bo(e,t,n){let o;if(t==="viewport")o=yu(e,n);else if(t==="document")o=Cu(ge(e));else if(le(t))o=Su(t,n);else{const r=jr(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Dt(o)}function kr(e,t){const n=_e(e);return n===t||!le(n)||Ge(n)?!1:de(n).position==="fixed"||kr(n,t)}function bu(e,t){const n=t.get(e);if(n)return n;let o=at(e,[],!1).filter(c=>le(c)&&Ze(c)!=="body"),r=null;const s=de(e).position==="fixed";let i=s?_e(e):e;for(;le(i)&&!Ge(i);){const c=de(i),u=Xn(i);!u&&c.position==="fixed"&&(r=null),(s?!u&&!r:!u&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||pt(i)&&!u&&kr(e,i))?o=o.filter(f=>f!==i):r=c,i=_e(i)}return t.set(e,o),o}function Pu(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?zt(t)?[]:bu(t,this._c):[].concat(n),o],c=i[0],u=i.reduce((l,f)=>{const d=Bo(t,f,r);return l.top=re(d.top,l.top),l.right=Ee(d.right,l.right),l.bottom=Ee(d.bottom,l.bottom),l.left=re(d.left,l.left),l},Bo(t,c,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Eu(e){const{width:t,height:n}=Dr(e);return{width:t,height:n}}function Ru(e,t,n){const o=he(t),r=ge(t),s=n==="fixed",i=Ne(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=Re(0);if(o||!o&&!s)if((Ze(t)!=="body"||pt(r))&&(c=Xt(t)),o){const g=Ne(t,!0,s,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else r&&(u.x=Nn(r));let l=0,f=0;if(r&&!o&&!s){const g=r.getBoundingClientRect();f=g.top+c.scrollTop,l=g.left+c.scrollLeft-Nn(r,g)}const d=i.left+c.scrollLeft-u.x-l,p=i.top+c.scrollTop-u.y-f;return{x:d,y:p,width:i.width,height:i.height}}function dn(e){return de(e).position==="static"}function Wo(e,t){if(!he(e)||de(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ge(e)===n&&(n=n.ownerDocument.body),n}function Lr(e,t){const n=se(e);if(zt(e))return n;if(!he(e)){let r=_e(e);for(;r&&!Ge(r);){if(le(r)&&!dn(r))return r;r=_e(r)}return n}let o=Wo(e,t);for(;o&&mu(o)&&dn(o);)o=Wo(o,t);return o&&Ge(o)&&dn(o)&&!Xn(o)?n:o||vu(e)||n}const Tu=async function(e){const t=this.getOffsetParent||Lr,n=this.getDimensions,o=await n(e.floating);return{reference:Ru(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function _u(e){return de(e).direction==="rtl"}const Mu={convertOffsetParentRelativeRectToViewportRelativeRect:xu,getDocumentElement:ge,getClippingRect:Pu,getOffsetParent:Lr,getElementRects:Tu,getClientRects:wu,getDimensions:Eu,getScale:Ve,isElement:le,isRTL:_u};function Iu(e,t){let n=null,o;const r=ge(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const{left:l,top:f,width:d,height:p}=e.getBoundingClientRect();if(c||t(),!d||!p)return;const g=bt(f),v=bt(r.clientWidth-(l+d)),m=bt(r.clientHeight-(f+p)),x=bt(l),C={rootMargin:-g+"px "+-v+"px "+-m+"px "+-x+"px",threshold:re(0,Ee(1,u))||1};let y=!0;function S(b){const _=b[0].intersectionRatio;if(_!==u){if(!y)return i();_?i(!1,_):o=setTimeout(()=>{i(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(S,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,C)}n.observe(e)}return i(!0),s}function Nu(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,l=Zn(e),f=r||s?[...l?at(l):[],...at(t)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const d=l&&c?Iu(l,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(w=>{let[C]=w;C&&C.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(t)})),n()}),l&&!u&&g.observe(l),g.observe(t));let v,m=u?Ne(e):null;u&&x();function x(){const w=Ne(e);m&&(w.x!==m.x||w.y!==m.y||w.width!==m.width||w.height!==m.height)&&n(),m=w,v=requestAnimationFrame(x)}return n(),()=>{var w;f.forEach(C=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),d==null||d(),(w=g)==null||w.disconnect(),g=null,u&&cancelAnimationFrame(v)}}const Au=lu,Ou=du,$u=cu,Du=pu,ju=au,Vo=iu,ku=fu,Lu=(e,t,n)=>{const o=new Map,r={platform:Mu,...n},s={...r.platform,_c:o};return su(e,t,{...r,platform:s})};var Mt=typeof document<"u"?a.useLayoutEffect:a.useEffect;function jt(e,t){if(e===t)return!0;
vendor: 9,332 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(!jt(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)&&!jt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Fr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uo(e,t){const n=Fr(e);return Math.round(t*n)/n}function fn(e){const t=a.useRef(e);return Mt(()=>{t.current=e}),t}function Fu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[f,d]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=a.useState(o);jt(p,o)||g(o);const[v,m]=a.useState(null),[x,w]=a.useState(null),C=a.useCallback(I=>{I!==_.current&&(_.current=I,m(I))},[]),y=a.useCallback(I=>{I!==P.current&&(P.current=I,w(I))},[]),S=s||v,b=i||x,_=a.useRef(null),P=a.useRef(null),E=a.useRef(f),A=u!=null,O=fn(u),$=fn(r),D=fn(l),k=a.useCallback(()=>{if(!_.current||!P.current)return;const I={placement:t,strategy:n,middleware:p};$.current&&(I.platform=$.current),Lu(_.current,P.current,I).then(T=>{const W={...T,isPositioned:D.current!==!1};R.current&&!jt(E.current,W)&&(E.current=W,De.flushSync(()=>{d(W)}))})},[p,t,n,$,D]);Mt(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[l]);const R=a.useRef(!1);Mt(()=>(R.current=!0,()=>{R.current=!1}),[]),Mt(()=>{if(S&&(_.current=S),b&&(P.current=b),S&&b){if(O.current)return O.current(S,b,k);k()}},[S,b,k,O,A]);const j=a.useMemo(()=>({reference:_,floating:P,setReference:C,setFloating:y}),[C,y]),M=a.useMemo(()=>({reference:S,floating:b}),[S,b]),L=a.useMemo(()=>{const I={position:n,left:0,top:0};if(!M.floating)return I;const T=Uo(M.floating,f.x),W=Uo(M.floating,f.y);return c?{...I,transform:"translate("+T+"px, "+W+"px)",...Fr(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:W}},[n,c,M.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:k,refs:j,elements:M,floatingStyles:L}),[f,k,j,M,L])}const Bu=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?Vo({element:o.current,padding:r}).fn(n):{}:o?Vo({element:o,padding:r}).fn(n):{}}}},Wu=(e,t)=>({...Au(e),options:[e,t]}),Vu=(e,t)=>({...Ou(e),options:[e,t]}),Uu=(e,t)=>({...ku(e),options:[e,t]}),Ku=(e,t)=>({...$u(e),options:[e,t]}),Gu=(e,t)=>({...Du(e),options:[e,t]}),Hu=(e,t)=>({...ju(e),options:[e,t]}),Yu=(e,t)=>({...Bu(e),options:[e,t]});var zu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Xu=zu.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),qu="Arrow",Br=a.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return h.jsx(Xu.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Br.displayName=qu;var Zu=Br;function Qu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ju(...e){return t=>e.forEach(n=>Qu(n,t))}function Wr(...e){return a.useCallback(Ju(...e),e)}function el(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];function l(d){const{scope:p,children:g,...v}=d,m=(p==null?void 0:p[e][u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})}function f(d,p){const g=(p==null?void 0:p[e][u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,tl(r,...t)]}function tl(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var nl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Vr=nl.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Qn(e){const[t,n]=a.useState(void 0);return q(()=>{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,c;if("borderBoxSize"in s){const u=s.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,c=l.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Jn="Popper",[Ur,Qe]=el(Jn),[ol,Kr]=Ur(Jn),Gr=e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null);return h.jsx(ol,{scope:t,anchor:o,onAnchorChange:r,children:n})};Gr.displayName=Jn;var Hr="PopperAnchor",Yr=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Kr(Hr,n),i=a.useRef(null),c=Wr(t,i);return a.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||i.current)}),o?null:h.jsx(Vr.div,{...r,ref:c})});Yr.displayName=Hr;var eo="PopperContent",[rl,sl]=Ur(eo),zr=a.forwardRef((e,t)=>{var N,K,Y,V,G,H;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:v,...m}=e,x=Kr(eo,n),[w,C]=a.useState(null),y=Wr(t,oe=>C(oe)),[S,b]=a.useState(null),_=Qn(S),P=(_==null?void 0:_.width)??0,E=(_==null?void 0:_.height)??0,A=o+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(l)?l:[l],D=$.length>0,k={padding:O,boundary:$.filter(cl),altBoundary:D},{refs:R,floatingStyles:j,placement:M,isPositioned:L,middlewareData:I}=Fu({strategy:"fixed",placement:A,whileElementsMounted:(...oe)=>Nu(...oe,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[Wu({mainAxis:r+E,alignmentAxis:i}),u&&Vu({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Uu():void 0,...k}),u&&Ku({...k}),Gu({...k,apply:({elements:oe,rects:me,availableWidth:tt,availableHeight:nt})=>{const{width:ot,height:Bc}=me.reference,Ct=oe.floating.style;Ct.setProperty("--radix-popper-available-width",`${tt}px`),Ct.setProperty("--radix-popper-available-height",`${nt}px`),Ct.setProperty("--radix-popper-anchor-width",`${ot}px`),Ct.setProperty("--radix-popper-anchor-height",`${Bc}px`)}}),S&&Yu({element:S,padding:c}),al({arrowWidth:P,arrowHeight:E}),p&&Hu({strategy:"referenceHidden",...k})]}),[T,W]=Zr(M),z=U(v);q(()=>{L&&(z==null||z())},[L,z]);const Z=(N=I.arrow)==null?void 0:N.x,te=(K=I.arrow)==null?void 0:K.y,J=((Y=I.arrow)==null?void 0:Y.centerOffset)!==0,[xe,ne]=a.useState();return q(()=>{w&&ne(window.getComputedStyle(w).zIndex)},[w]),h.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:L?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(V=I.transformOrigin)==null?void 0:V.x,(G=I.transformOrigin)==null?void 0:G.y].join(" "),...((H=I.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(rl,{scope:n,placedSide:T,onArrowChange:b,arrowX:Z,arrowY:te,shouldHideArrow:J,children:h.jsx(Vr.div,{"data-side":T,"data-align":W,...m,ref:y,style:{...m.style,animation:L?void 0:"none"}})})})});zr.displayName=eo;var Xr="PopperArrow",il={top:"bottom",right:"left",bottom:"top",left:"right"},qr=a.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=sl(Xr,o),i=il[s.placedSide];return h.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:h.jsx(Zu,{...r,ref:n,style:{...r.style,display:"block"}})})});qr.displayName=Xr;function cl(e){return e!==null}var al=e=>({name:"transformOrigin",options:e,fn(t){var x,w,C;const{placement:n,rects:o,middlewareData:r}=t,i=((x=r.arrow)==null?void 0:x.centerOffset)!==0,c=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,f]=Zr(n),d={start:"0%",center:"50%",end:"100%"}[f],p=(((w=r.arrow)==null?void 0:w.x)??0)+c/2,g=(((C=r.arrow)==null?void 0:C.y)??0)+u/2;let v="",m="";return l==="bottom"?(v=i?d:`${p}px`,m=`${-u}
1px`):l==="top"?(v=i?d:`${p}px`,m=`${o.floating.height+u}px`):l==="right"?(v=`${-u}px`,m=i?d:`${g}px`):l==="left"&&(v=`${o.floating.width+u}px`,m=i?d:`${g}px`),{data:{x:v,y:m}}}});function Zr(e){const[t,n="center"]=e.split("-");return[t,n]}var Qr=Gr,to=Yr,no=zr,oo=qr,ul=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ll=ul.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),[qt]=Xa("Tooltip",[Qe]),ro=Qe(),Jr="TooltipProvider",dl=700,Ko="tooltip.open",[fl,es]=qt(Jr),ts=e=>{const{__scopeTooltip:t,delayDuration:n=dl,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,[i,c]=a.useState(!0),u=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),h.jsx(fl,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),c(!1)},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>c(!0),o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:a.useCallback(f=>{u.current=f},[]),disableHoverableContent:r,children:s})};ts.displayName=Jr;var ns="Tooltip",[ih,Zt]=qt(ns),An="TooltipTrigger",pl=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Zt(An,n),s=es(An,n),i=ro(n),c=a.useRef(null),u=Nr(t,c,r.onTriggerChange),l=a.useRef(!1),f=a.useRef(!1),d=a.useCallback(()=>l.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(to,{asChild:!0,...i,children:h.jsx(ll.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:u,onPointerMove:Le(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:Le(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:Le(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Le(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:Le(e.onBlur,r.onClose),onClick:Le(e.onClick,r.onClose)})})});pl.displayName=An;var ml="TooltipPortal",[ch,vl]=qt(ml,{forceMount:void 0}),He="TooltipContent",os=a.forwardRef((e,t)=>{const n=vl(He,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,i=Zt(He,e.__scopeTooltip);return h.jsx(fe,{present:o||i.open,children:i.disableHoverableContent?h.jsx(rs,{side:r,...s,ref:t}):h.jsx(hl,{side:r,...s,ref:t})})}),hl=a.forwardRef((e,t)=>{const n=Zt(He,e.__scopeTooltip),o=es(He,e.__scopeTooltip),r=a.useRef(null),s=Nr(t,r),[i,c]=a.useState(null),{trigger:u,onClose:l}=n,f=r.current,{onPointerInTransitChange:d}=o,p=a.useCallback(()=>{c(null),d(!1)},[d]),g=a.useCallback((v,m)=>{const x=v.currentTarget,w={x:v.clientX,y:v.clientY},C=Cl(w,x.getBoundingClientRect()),y=yl(w,C),S=Sl(m.getBoundingClientRect()),b=Pl([...y,...S]);c(b),d(!0)},[d]);return a.useEffect(()=>()=>p(),[p]),a.useEffect(()=>{if(u&&f){const v=x=>g(x,f),m=x=>g(x,u);return u.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{u.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[u,f,g,p]),a.useEffect(()=>{if(i){const v=m=>{const x=m.target,w={x:m.clientX,y:m.clientY},C=(u==null?void 0:u.contains(x))||(f==null?void 0:f.contains(x)),y=!bl(w,i);C?p():y&&(p(),l())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[u,f,i,l,p]),h.jsx(rs,{...e,ref:s})}),[gl,xl]=qt(ns,{isInside:!1}),rs=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,u=Zt(He,n),l=ro(n),{onClose:f}=u;return a.useEffect(()=>(document.addEventListener(Ko,f),()=>document.removeEventListener(Ko,f)),[f]),a.useEffect(()=>{if(u.trigger){const d=p=>{const g=p.target;g!=null&&g.contains(u.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,f]),h.jsx(ze,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:h.jsxs(no,{"data-state":u.stateAttribute,...l,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(fr,{children:o}),h.jsx(gl,{scope:n,isInside:!0,children:h.jsx(Ma,{id:u.contentId,role:"tooltip",children:r||o})})]})})});os.displayName=He;var ss="TooltipArrow",wl=a.forwardRef((e,t)=>
vendor: 4,156 bytes, line 1
1{const{__scopeTooltip:n,...o}=e,r=ro(n);return xl(ss,n).isInside?null:h.jsx(oo,{...r,...o,ref:t})});wl.displayName=ss;function Cl(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 yl(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 Sl(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 bl(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 c=t[s].x,u=t[s].y,l=t[i].x,f=t[i].y;u>o!=f>o&&n<(l-c)*(o-u)/(f-u)+c&&(r=!r)}return r}function Pl(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),El(t)}function El(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 ah=ts,uh=os;function we(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function so(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Rl(r,...t)]}function Rl(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Go(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function io(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Go(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():Go(e[r],null)}}}}function kt(...e){return a.useCallback(io(...e),e)}function Ho(e){const t=Tl(e),n=a.forwardRef((o,r)=>{const{children:s,...i}=o,c=a.Children.toArray(s),u=c.find(Ml);if(u){const l=u.props.children,f=c.map(d=>d===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:d);return h.jsx(t,{...i,ref:r,children:a.isValidElement(l)?a.cloneElement(l,void 0,f):null})}return h.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Tl(e){const t=a.forwardRef((n,o)=>{const{children:r,...s}=n;if(a.isValidElement(r)){const i=Nl(r),c=Il(s,r.props);return r.type!==a.Fragment&&(c.ref=o?io(o,i):i),a.cloneElement(r,c)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _l=Symbol("radix.slottable");function Ml(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_l}function Il(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]=(...c)=>{const u=s(...c);return r(...c),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}
vendor: 19,662 bytes, line 1
1:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Nl(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Al(e){const t=e+"CollectionProvider",[n,o]=so(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:x,children:w}=m,C=F.useRef(null),y=F.useRef(new Map).current;return h.jsx(r,{scope:x,itemMap:y,collectionRef:C,children:w})};i.displayName=t;const c=e+"CollectionSlot",u=Ho(c),l=F.forwardRef((m,x)=>{const{scope:w,children:C}=m,y=s(c,w),S=kt(x,y.collectionRef);return h.jsx(u,{ref:S,children:C})});l.displayName=c;const f=e+"CollectionItemSlot",d="data-radix-collection-item",p=Ho(f),g=F.forwardRef((m,x)=>{const{scope:w,children:C,...y}=m,S=F.useRef(null),b=kt(x,S),_=s(f,w);return F.useEffect(()=>(_.itemMap.set(S,{ref:S,...y}),()=>void _.itemMap.delete(S))),h.jsx(p,{[d]:"",ref:b,children:C})});g.displayName=f;function v(m){const x=s(e+"CollectionConsumer",m);return F.useCallback(()=>{const C=x.collectionRef.current;if(!C)return[];const y=Array.from(C.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,P)=>y.indexOf(_.ref.current)-y.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:l,ItemSlot:g},v,o]}var Ol=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},$l=Ye[" useId ".trim().toString()]||(()=>{}),Dl=0;function is(e){const[t,n]=a.useState($l());return Ol(()=>{n(o=>o??String(Dl++))},[e]),e||(t?`radix-${t}`:"")}function jl(e){const t=kl(e),n=a.forwardRef((o,r)=>{const{children:s,...i}=o,c=a.Children.toArray(s),u=c.find(Fl);if(u){const l=u.props.children,f=c.map(d=>d===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:d);return h.jsx(t,{...i,ref:r,children:a.isValidElement(l)?a.cloneElement(l,void 0,f):null})}return h.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function kl(e){const t=a.forwardRef((n,o)=>{const{children:r,...s}=n;if(a.isValidElement(r)){const i=Wl(r),c=Bl(s,r.props);return r.type!==a.Fragment&&(c.ref=o?io(o,i):i),a.cloneElement(r,c)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ll=Symbol("radix.slottable");function Fl(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ll}function Bl(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]=(...c)=>{const u=s(...c);return r(...c),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Wl(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Vl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Je=Vl.reduce((e,t)=>{const n=jl(`Primitive.${t}`),o=a.forwardRef((r,s)=>{const{asChild:i,...c}=r,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(u,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ul(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}var Kl=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},Gl=Ye[" useInsertionEffect ".trim().toString()]||Kl;function cs({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=Hl({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:r;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const d=f.current;d!==c&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,o])}const l=a.useCallback(f=>{var d;if(c){const p=Yl(f)?f(e):f;p!==e&&((d=i.current)==null||d.call(i,p))}else s(f)},[c,e,s,i]);return[u,l]}function Hl({defaultProp:e,onChange:t}){const[n,o]=a.useState(e),r=a.useRef(n),s=a.useRef(t);return Gl(()=>{s.current=t},[t]),a.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}function Yl(e){return typeof e=="function"}var zl=a.createContext(void 0);function as(e){const t=a.useContext(zl);return e||t||"ltr"}var pn="rovingFocusGroup.onEntryFocus",Xl={bubbles:!1,cancelable:!0},mt="RovingFocusGroup",[On,us,ql]=Al(mt),[Zl,ls]=so(mt,[ql]),[Ql,Jl]=Zl(mt),ds=a.forwardRef((e,t)=>h.jsx(On.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(On.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(ed,{...e,ref:t})})}));ds.displayName=mt;var ed=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...d}=e,p=a.useRef(null),g=kt(t,p),v=as(s),[m,x]=cs({prop:i,defaultProp:c??null,onChange:u,caller:mt}),[w,C]=a.useState(!1),y=Ul(l),S=us(n),b=a.useRef(!1),[_,P]=a.useState(0);return a.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(pn,y),()=>E.removeEventListener(pn,y)},[y]),h.jsx(Ql,{scope:n,orientation:o,dir:v,loop:r,currentTabStopId:m,onItemFocus:a.useCallback(E=>x(E),[x]),onItemShiftTab:a.useCallback(()=>C(!0),[]),onFocusableItemAdd:a.useCallback(()=>P(E=>E+1),[]),onFocusableItemRemove:a.useCallback(()=>P(E=>E-1),[]),children:h.jsx(Je.div,{tabIndex:w||_===0?-1:0,"data-orientation":o,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:we(e.onMouseDown,()=>{b.current=!0}),onFocus:we(e.onFocus,E=>{const A=!b.current;if(E.target===E.currentTarget&&A&&!w){const O=new CustomEvent(pn,Xl);if(E.currentTarget.dispatchEvent(O),!O.defaultPrevented){const $=S().filter(M=>M.focusable),D=$.find(M=>M.active),k=$.find(M=>M.id===m),j=[D,k,...$].filter(Boolean).map(M=>M.ref.current);ms(j,f)}}b.current=!1}),onBlur:we(e.onBlur,()=>C(!1))})})}),fs="RovingFocusGroupItem",ps=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...c}=e,u=is(),l=s||u,f=Jl(fs,n),d=f.currentTabStopId===l,p=us(n),{onFocusableItemAdd:g,onFocusableItemRemove:v,currentTabStopId:m}=f;return a.useEffect(()=>{if(o)return g(),()=>v()},[o,g,v]),h.jsx(On.ItemSlot,{scope:n,id:l,focusable:o,active:r,children:h.jsx(Je.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:we(e.onMouseDown,x=>{o?f.onItemFocus(l):x.preventDefault()}),onFocus:we(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:we(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const w=od(x,f.orientation,f.dir);if(w!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let y=p().filter(S=>S.focusable).map(S=>S.ref.current);if(w==="last")y.reverse();else if(w==="prev"||w==="next"){w==="prev"&&y.reverse();const S=y.indexOf(x.currentTarget);y=f.loop?rd(y,S+1):y.slice(S+1)}setTimeout(()=>ms(y))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:m!=null}):i})})});ps.displayName=fs;var td={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nd(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function od(e,t,n){const o=nd(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return td[o]}function ms(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function rd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var sd=ds,id=ps,Yo=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function cd(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}var vs=e=>{const{present:t,children:n}=e,o=ad(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),s=kt(o.ref,ud(r));return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:s}):null};vs.displayName="Presence";function ad(e){const[t,n]=a.useState(),o=a.useRef(null),r=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,u]=cd(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const l=Pt(o.current);s.current=c==="mounted"?l:"none"},[c]),Yo(()=>{const l=o.current,f=r.current;if(f!==e){const p=s.current,g=Pt(l);e?u("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),Yo(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=g=>{const m=Pt(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(u("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=g=>{g.target===t&&(s.current=Pt(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function Pt(e){return(e==null?void 0:e.animationName)||"none"}function ud(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qt="Tabs",[ld]=so(Qt,[ls]),hs=ls(),[dd,co]=ld(Qt),gs=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:s,orientation:i="horizontal",dir:c,activationMode:u="automatic",...l}=e,f=as(c),[d,p]=cs({prop:o,onChange:r,defaultProp:s??"",caller:Qt});return h.jsx(dd,{scope:n,baseId:is(),value:d,onValueChange:p,orientation:i,dir:f,activationMode:u,children:h.jsx(Je.div,{dir:f,"data-orientation":i,...l,ref:t})})});gs.displayName=Qt;var xs="TabsList",ws=a.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,s=co(xs,n),i=hs(n);return h.jsx(sd,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:h.jsx(Je.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:t})})});ws.displayName=xs;var Cs="TabsTrigger",ys=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...s}=e,i=co(Cs,n),c=hs(n),u=Ps(i.baseId,o),l=Es(i.baseId,o),f=o===i.value;return h.jsx(id,{asChild:!0,...c,focusable:!r,active:f,children:h.jsx(Je.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":l,"data-state":f?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:u,...s,ref:t,onMouseDown:we(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?i.onValueChange(o):d.preventDefault()}),onKeyDown:we(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(o)}),onFocus:we(e.onFocus,()=>{const d=i.activationMode!=="manual";!f&&!r&&d&&i.onValueChange(o)})})})});ys.displayName=Cs;var Ss="TabsContent",bs=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:s,...i}=e,c=co(Ss,n),u=Ps(c.baseId,o),l=Es(c.baseId,o),f=o===c.value,d=a.useRef(f);return a.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),h.jsx(vs,{present:r||f,children:({present:p})=>h.jsx(Je.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!p,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:p&&s})})});bs.displayName=Ss;function Ps(e,t){return`${e}-trigger-${t}`}function Es(e,t){return`${e}-content-${t}`}var lh=gs,dh=ws,fh=ys,ph=bs,fd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],pd=fd.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),md="Label",Rs=a.forwardRef((e,t)=>h.jsx(pd.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Rs.displayName=md;var mh=Rs;function it(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function vd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function hd(...e){return t=>e.forEach(n=>vd(n,t))}function ao(...e){return a.useCallback(hd(...e),e)}function gd(e,t){const n=a.createContext(t),o=s=>{const{children:i,...c}=s,u=a.useMemo(()=>c,Object.values(c));return h.jsx(n.Provider,{value:u,children:i})};o.displayName=e+"Provider";function r(s){const i=a.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 xd(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,wd(r,...t)]}function wd(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Cd=Ye.useId||(()=>{}),yd=0;function mn(e){const[t,n]=a.useState(Cd());return q(()=>{n(o=>o??String(yd++))},[e]),e||(t?`radix-${t}`:"")}function Sd({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=bd({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:o,c=U(n),u=a.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&c(d)}else r(l)},[s,e,r,c]);return[i,u]}function bd({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),s=U(t);return a.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}function Pd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ed(...e){return t=>e.forEach(n=>Pd(n,t))}function Rd(...e){return a.useCallback(Ed(...e),e)}var Td=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],_d=Td.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vn="focusScope.autoFocusOnMount",hn="focusScope.autoFocusOnUnmount",zo={bubbles:!1,cancelable:!0},Md="FocusScope",Jt=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[c,u]=a.useState(null),l=U(r),f=U(s),d=a.useRef(null),p=Rd(t,m=>u(m)),g=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let m=function(y){if(g.paused||!c)return;const S=y.target;c.contains(S)?d.current=S:Se(d.current,{select:!0})},x=function(y){if(g.paused||!c)return;const S=y.relatedTarget;S!==null&&(c.contains(S)||Se(d.current,{select:!0}))},w=function(y){if(document.activeElement===document.body)for(const b of y)b.removedNodes.length>0&&Se(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const C=new MutationObserver(w);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),C.disconnect()}}},[o,c,g.paused]),a.useEffect(()=>{if(c){qo.add(g);const m=document.activeElement;if(!c.contains(m)){const w=new CustomEvent(vn,zo);c.addEventListener(vn,l),c.dispatchEvent(w),w.defaultPrevented||(Id(Dd(Ts(c)),{select:!0}),document.activeElement===m&&Se(c))}return()=>{c.removeEventListener(vn,l),setTimeout(()=>{const w=new CustomEvent(hn,zo);c.addEventListener(hn,f),c.dispatchEvent(w),w.defaultPrevented||Se(m??document.body,{select:!0}),c.removeEventListener(hn,f),qo.remove(g)},0)}}},[c,l,f,g]);const v=a.useCallback(m=>{if(!n&&!o||g.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,w=document.activeElement;if(x&&w){const C=m.currentTarget,[y,S]=Nd(C);y&&S?!m.shiftKey&&w===S?(m.preventDefault(),n&&Se(y,{select:!0})):m.shiftKey&&w===y&&(m.preventDefault(),n&&Se(S,{select:!0})):w===C&&m.preventDefault()}},[n,o,g.paused]);return h.jsx(_d.div,{tabIndex:-1,...i,ref:p,onKeyDown:v})});Jt.displayName=Md;function Id(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Se(o,{select:t}),document.activeElement!==n)return}function Nd(e){const t=Ts(e),n=Xo(t,e),o=Xo(t.reverse(),e);return[n,o]}function Ts(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 Xo(e,t){for(const n of e)if(!Ad(n,{upTo:t}))return n}function Ad(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 Od(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Od(e)&&t&&e.select()}}var qo=$d();function $d(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zo(e,t),e.unshift(t)},remove(t){var n;e=Zo(e,t),(n=e[0])==null||n.resume()}}}function Zo(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Dd(e){return e.filter(t=>t.tagName!=="A")}var jd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],vt=jd.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),gn=0;function uo(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qo()),document.body.insertAdjacentElement("beforeend",e[1]??Qo()),gn++,()=>{gn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gn--}},[])}function Qo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 6,159 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}var be=function(){return be=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},be.apply(this,arguments)};function kd(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 Ld(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 It="right-scroll-bar-position",Nt="width-before-scroll-bar",Fd="with-scroll-bars-hidden",Bd="--removed-body-scroll-bar-size";function xn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wd(e,t){var n=a.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 Vd=typeof window<"u"?a.useLayoutEffect:a.useEffect,Jo=new WeakMap;function Ud(e,t){var n=Wd(null,function(o){return e.forEach(function(r){return xn(r,o)})});return Vd(function(){var o=Jo.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(c){s.has(c)||xn(c,null)}),s.forEach(function(c){r.has(c)||xn(c,i)})}Jo.set(n,e)},[e]),n}var Lt=function(){return Lt=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},Lt.apply(this,arguments)};function Kd(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 Gd(e){return e}function Hd(e,t){t===void 0&&(t=Gd);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(c){return c!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(s),i=n}var u=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return r}function Yd(e){e===void 0&&(e={});var t=Hd(null);return t.options=Lt({async:!0,ssr:!1},e),t}var _s=function(e){var t=e.sideCar,n=Kd(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 a.createElement(o,Lt({},n))};_s.isSideCarExport=!0;function zd(e,t){return e.useMedium(t),_s}var Ms=Yd(),wn=function(){},en=a.forwardRef(function(e,t){var n=a.useRef(null),o=a.useState({onScrollCapture:wn,onWheelCapture:wn,onTouchMoveCapture:wn}),r=o[0],s=o[1],i=e.forwardProps,c=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,g=e.noIsolation,v=e.inert,m=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,C=e.gapMode,y=kd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,b=Ud([n,t]),_=be(be({},y),r);return a.createElement(a.Fragment,null,f&&a.createElement(S,{sideCar:Ms,removeScrollBar:l,shards:d,noIsolation:g,inert:v,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:C}),i?a.cloneElement(a.Children.only(c),be(be({},_),{ref:b})):a.createElement(w,be({},_,{className:u,ref:b}),c))});en.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};en.classNames={fullWidth:Nt,zeroRight:It};var Xd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xd();return t&&e.setAttribute("nonce",t),e}function Zd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Jd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=qd())&&(Zd(t,n),Qd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ef=function(){var e=Jd();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Is=function(){var e=ef(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},tf={left:0,top:0,right:0,gap:0},Cn=function(e){return parseInt(e||"",10)||0},nf=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[Cn(n),Cn(o),Cn(r)]},of=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tf;var t=nf(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])}},rf=Is(),Ue="data-scroll-locked",sf=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Fd,` {
3   overflow: hidden `).concat(o,`;
4   padding-right: `).concat(c,"px ").concat(o,`;
5  }
6  body[`).concat(Ue,`] {
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(c,"px ").concat(o,`;
16    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(It,` {
20    right: `).concat(c,"px ").concat(o,`;
21  }
22  
23  .`).concat(Nt,` {
24    margin-right: `).concat(c,"px ").concat(o,`;
25  }
26  
27  .`).concat(It," .").concat(It,` {
28    right: 0 `).concat(o,`;
29  }
30  
31  .`).concat(Nt," .").concat(Nt,` {
32    margin-right: 0 `).concat(o,`;
33  }
34  
35  body[`).concat(Ue,`] {
36    `).concat(Bd,": ").concat(c,`px;
37  }
38`)},er=function(){var e=parseInt(document.body.getAttribute(Ue)||"0",10);return isFinite(e)?e:0},cf=function(){a.useEffect(function(){return document.body.setAttribute(Ue,(er()+1).toString()),function(){var e=er()-1;e<=0?document.body.removeAttribute(Ue):document.body.setAttribute(Ue,e.toString())}},[])},af=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;cf();var s=a.useMemo(function(){return of(r)},[r]);return a.createElement(rf,{styles:sf(s,!t,r,n?"":"!important")})},$n=!1;if(typeof window<"u")try{var Et=Object.defineProperty({},"passive",{get:function(){return $n=!0,!0}});window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch{$n=!1}var Fe=$n?{passive:!1}:!1,uf=function(e){return e.tagName==="TEXTAREA"},Ns=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!uf(e)&&n[t]==="visible")},lf=function(e){return Ns(e,"overflowY")},df=function(e){return Ns(e,"overflowX")},tr=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=As(e,o);if(r){var s=Os(e,o),i=s[1],c=s[2];if(i>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},ff=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},pf=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},As=function(e,t){return e==="v"?lf(t):df(t)},Os=function(e,t){return e==="v"?ff(t):pf(t)},mf=function(e,t){return e==="h"&&t==="rtl"?-1:1},vf=function(e,t,n,o,r){var s=mf(e,window.getComputedStyle(t).direction),i=s*o,c=n.target,u=t.contains(c),l=!1,f=i>0,d=0,p=0;do{var g=Os(e,c),v=g[0],m=g[1],x=g[2],w=m-x-s*v;(v||w)&&As(e,c)&&(d+=w,p+=v),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(f&&Math.abs(d)<1||!f&&Math.abs(p)<1)&&(l=!0),l},Rt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nr=function(e){return[e.deltaX,e.deltaY]},or=function(e){return e&&"current"in e?e.current:e},hf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gf=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},xf=0,Be=[];function wf(e){var t=a.useRef([]),n=a.useRef([0,0]),o=a.useRef(),r=a.useState(xf++)[0],s=a.useState(Is)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=Ld([e.lockRef.current],(e.shards||[]).map(or),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var w=Rt(m),C=n.current,y="deltaX"in m?m.deltaX:C[0]-w[0],S="deltaY"in m?m.deltaY:C[1]-w[1],b,_=m.target,P=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&P==="h"&&_.type==="range")return!1;var E=tr(P,_);if(!E)return!0;if(E?b=P:(b=P==="v"?"h":"v",E=tr(P,_)),!E)return!1;if(!o.current&&"changedTouches"in m&&(y||S)&&(o.current=b),!b)return!0;var A=o.current||b;return vf(A,x,m,A==="h"?y:S)},[]),u=a.useCallback(function(m){var x=m;if(!(!Be.length||Be[Be.length-1]!==s)){var w="deltaY"in x?nr(x):Rt(x),C=t.current.filter(function(b){return b.name===x.type&&(b.target===x.target||x.target===b.shadowParent)&&hf(b.delta,w)})[0];if(C&&C.should){x.cancelable&&x.preventDefault();return}
vendor: 15,037 bytes, lines 41-45
41if(!C){var y=(i.current.shards||[]).map(or).filter(Boolean).filter(function(b){return b.contains(x.target)}),S=y.length>0?c(x,y[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),l=a.useCallback(function(m,x,w,C){var y={name:m,delta:x,target:w,should:C,shadowParent:Cf(w)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),f=a.useCallback(function(m){n.current=Rt(m),o.current=void 0},[]),d=a.useCallback(function(m){l(m.type,nr(m),m.target,c(m,e.lockRef.current))},[]),p=a.useCallback(function(m){l(m.type,Rt(m),m.target,c(m,e.lockRef.current))},[]);a.useEffect(function(){return Be.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Fe),document.addEventListener("touchmove",u,Fe),document.addEventListener("touchstart",f,Fe),function(){Be=Be.filter(function(m){return m!==s}),document.removeEventListener("wheel",u,Fe),document.removeEventListener("touchmove",u,Fe),document.removeEventListener("touchstart",f,Fe)}},[]);var g=e.removeScrollBar,v=e.inert;return a.createElement(a.Fragment,null,v?a.createElement(s,{styles:gf(r)}):null,g?a.createElement(af,{gapMode:e.gapMode}):null)}function Cf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yf=zd(Ms,wf);var tn=a.forwardRef(function(e,t){return a.createElement(en,be({},e,{ref:t,sideCar:yf}))});tn.classNames=en.classNames;var Sf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,Tt=new WeakMap,_t={},yn=0,$s=function(e){return e&&(e.host||$s(e.parentNode))},bf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=$s(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Pf=function(e,t,n,o){var r=bf(t,Array.isArray(e)?e:[e]);_t[n]||(_t[n]=new WeakMap);var s=_t[n],i=[],c=new Set,u=new Set(r),l=function(d){!d||c.has(d)||(c.add(d),l(d.parentNode))};r.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(p){if(c.has(p))f(p);else try{var g=p.getAttribute(o),v=g!==null&&g!=="false",m=(We.get(p)||0)+1,x=(s.get(p)||0)+1;We.set(p,m),s.set(p,x),i.push(p),m===1&&v&&Tt.set(p,!0),x===1&&p.setAttribute(n,"true"),v||p.setAttribute(o,"true")}catch(w){console.error("aria-hidden: cannot operate on ",p,w)}})};return f(t),c.clear(),yn++,function(){i.forEach(function(d){var p=We.get(d)-1,g=s.get(d)-1;We.set(d,p),s.set(d,g),p||(Tt.has(d)||d.removeAttribute(o),Tt.delete(d)),g||d.removeAttribute(n)}),yn--,yn||(We=new WeakMap,We=new WeakMap,Tt=new WeakMap,_t={})}},lo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Sf(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Pf(o,r,n,"aria-hidden")):function(){return null}},fo="Dialog",[Ds,vh]=xd(fo),[Ef,pe]=Ds(fo),js=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,c=a.useRef(null),u=a.useRef(null),[l=!1,f]=Sd({prop:o,defaultProp:r,onChange:s});return h.jsx(Ef,{scope:t,triggerRef:c,contentRef:u,contentId:mn(),titleId:mn(),descriptionId:mn(),open:l,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(d=>!d),[f]),modal:i,children:n})};js.displayName=fo;var ks="DialogTrigger",Ls=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(ks,n),s=ao(t,r.triggerRef);return h.jsx(vt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":vo(r.open),...o,ref:s,onClick:it(e.onClick,r.onOpenToggle)})});Ls.displayName=ks;var po="DialogPortal",[Rf,Fs]=Ds(po,{forceMount:void 0}),Bs=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=pe(po,t);return h.jsx(Rf,{scope:t,forceMount:n,children:a.Children.map(o,i=>h.jsx(fe,{present:n||s.open,children:h.jsx(dt,{asChild:!0,container:r,children:i})}))})};Bs.displayName=po;var Ft="DialogOverlay",Ws=a.forwardRef((e,t)=>{const n=Fs(Ft,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=pe(Ft,e.__scopeDialog);return s.modal?h.jsx(fe,{present:o||s.open,children:h.jsx(Tf,{...r,ref:t})}):null});Ws.displayName=Ft;var Tf=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(Ft,n);return h.jsx(tn,{as:B,allowPinchZoom:!0,shards:[r.contentRef],children:h.jsx(vt.div,{"data-state":vo(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Ae="DialogContent",Vs=a.forwardRef((e,t)=>{const n=Fs(Ae,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=pe(Ae,e.__scopeDialog);return h.jsx(fe,{present:o||s.open,children:s.modal?h.jsx(_f,{...r,ref:t}):h.jsx(Mf,{...r,ref:t})})});Vs.displayName=Ae;var _f=a.forwardRef((e,t)=>{const n=pe(Ae,e.__scopeDialog),o=a.useRef(null),r=ao(t,n.contentRef,o);return a.useEffect(()=>{const s=o.current;if(s)return lo(s)},[]),h.jsx(Us,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:it(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:it(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&s.preventDefault()}),onFocusOutside:it(e.onFocusOutside,s=>s.preventDefault())})}),Mf=a.forwardRef((e,t)=>{const n=pe(Ae,e.__scopeDialog),o=a.useRef(!1),r=a.useRef(!1);return h.jsx(Us,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(o.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Us=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...i}=e,c=pe(Ae,n),u=a.useRef(null),l=ao(t,u);return uo(),h.jsxs(h.Fragment,{children:[h.jsx(Jt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:h.jsx(ze,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":vo(c.open),...i,ref:l,onDismiss:()=>c.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(If,{titleId:c.titleId}),h.jsx(Af,{contentRef:u,descriptionId:c.descriptionId})]})]})}),mo="DialogTitle",Ks=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(mo,n);return h.jsx(vt.h2,{id:r.titleId,...o,ref:t})});Ks.displayName=mo;var Gs="DialogDescription",Hs=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(Gs,n);return h.jsx(vt.p,{id:r.descriptionId,...o,ref:t})});Hs.displayName=Gs;var Ys="DialogClose",zs=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=pe(Ys,n);return h.jsx(vt.button,{type:"button",...o,ref:t,onClick:it(e.onClick,()=>r.onOpenChange(!1))})});zs.displayName=Ys;function vo(e){return e?"open":"closed"}var Xs="DialogTitleWarning",[hh,qs]=gd(Xs,{contentName:Ae,titleName:mo,docsSlug:"dialog"}),If=({titleId:e})=>{const t=qs(Xs),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 a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Nf="DialogDescriptionWarning",Af=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qs(Nf).contentName}}.`;return a.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},gh=js,xh=Ls,wh=Bs,Ch=Ws,yh=Vs,Sh=Ks,bh=Hs,Ph=zs;function Of(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,$f(r,...t)]}function $f(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Df=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ho=Df.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),go="Avatar",[jf]=Of(go),[kf,Zs]=jf(go),Qs=a.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[r,s]=a.useState("idle");return h.jsx(kf,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:s,children:h.jsx(ho.span,{...o,ref:t})})});Qs.displayName=go;var Js="AvatarImage",ei=a.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:r=()=>{},...s}=e,i=Zs(Js,n),c=Lf(o,s.referrerPolicy),u=U(l=>{r(l),i.onImageLoadingStatusChange(l)});return q(()=>{c!=="idle"&&u(c)},[c,u]),c==="loaded"?h.jsx(ho.img,{...s,ref:t,src:o}):null});ei.displayName=Js;var ti="AvatarFallback",ni=a.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...r}=e,s=Zs(ti,n),[i,c]=a.useState(o===void 0);return a.useEffect(()=>{if(o!==void 0){const u=window.setTimeout(()=>c(!0),o);return()=>window.clearTimeout(u)}},[o]),i&&s.imageLoadingStatus!=="loaded"?h.jsx(ho.span,{...r,ref:t}):null});ni.displayName=ti;function Lf(e,t){const[n,o]=a.useState("idle");return q(()=>{if(!e){o("error");return}let r=!0;const s=new window.Image,i=c=>()=>{r&&o(c)};return o("loading"),s.onload=i("loaded"),s.onerror=i("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{r=!1}},[e,t]),n}var Eh=Qs,Rh=ei,Th=ni,Ff=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Bf=Ff.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Wf="Separator",rr="horizontal",Vf=["horizontal","vertical"],oi=a.forwardRef((e,t)=>{const{decorative:n,orientation:o=rr,...r}=e,s=Uf(o)?o:rr,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return h.jsx(Bf.div,{"data-orientation":s,...c,...r,ref:t})});oi.displayName=Wf;function Uf(e){return Vf.includes(e)}var _h=oi;function sr(e,[t,n]){return Math.min(n,Math.max(t,e))}function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Kf(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];function l(d){const{scope:p,children:g,...v}=d,m=(p==null?void 0:p[e][u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})}function f(d,p){const g=(p==null?void 0:p[e][u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Gf(r,...t)]}function Gf(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Hf(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Yf(...e){return t=>e.forEach(n=>Hf(n,t))}function ce(...e){return a.useCallback(Yf(...e),e)}function zf(e){const t=e+"CollectionProvider",[n,o]=Kf(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:m}=g,x=F.useRef(null),w=F.useRef(new Map).current;return h.jsx(r,{scope:v,itemMap:w,collectionRef:x,children:m})};i.displayName=t;const c=e+"CollectionSlot",u=F.forwardRef((g,v)=>{const{scope:m,children:x}=g,w=s(c,m),C=ce(v,w.collectionRef);return h.jsx(B,{ref:C,children:x})});u.displayName=c;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=F.forwardRef((g,v)=>{const{scope:m,children:x,...w}=g,C=F.useRef(null),y=ce(v,C),S=s(l,m);return F.useEffect(()=>(S.itemMap.set(C,{ref:C,...w}),()=>void S.itemMap.delete(C))),h.jsx(B,{[f]:"",ref:y,children:x})});d.displayName=l;function p(g){const v=s(e+"CollectionConsumer",g);return F.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((S,b)=>w.indexOf(S.ref.current)-w.indexOf(b.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:d},p,o]}function Xf(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,qf(r,...t)]}function qf(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Zf=a.createContext(void 0);function Qf(e){const t=a.useContext(Zf);return e||t||"ltr"}var Jf=Ye.useId||(()=>{}),ep=0;function xo(e){const[t,n]=a.useState(Jf());return q(()=>{n(o=>o??String(ep++))},[e]),e||(t?`radix-${t}`:"")}var tp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ae=tp.reduce((e,t)=>
vendor: 4,478 bytes, line 45
45{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ir({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=np({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:o,c=U(n),u=a.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&c(d)}else r(l)},[s,e,r,c]);return[i,u]}function np({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),s=U(t);return a.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}function wo(e){const t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var op=[" ","Enter","ArrowUp","ArrowDown"],rp=[" ","Enter"],ht="Select",[nn,on,sp]=zf(ht),[et]=Xf(ht,[sp,Qe]),rn=Qe(),[ip,Me]=et(ht),[cp,ap]=et(ht),ri=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:c,onValueChange:u,dir:l,name:f,autoComplete:d,disabled:p,required:g,form:v}=e,m=rn(t),[x,w]=a.useState(null),[C,y]=a.useState(null),[S,b]=a.useState(!1),_=Qf(l),[P=!1,E]=ir({prop:o,defaultProp:r,onChange:s}),[A,O]=ir({prop:i,defaultProp:c,onChange:u}),$=a.useRef(null),D=x?v||!!x.closest("form"):!0,[k,R]=a.useState(new Set),j=Array.from(k).map(M=>M.props.value).join(";");return h.jsx(Qr,{...m,children:h.jsxs(ip,{required:g,scope:t,trigger:x,onTriggerChange:w,valueNode:C,onValueNodeChange:y,valueNodeHasChildren:S,onValueNodeHasChildrenChange:b,contentId:xo(),value:A,onValueChange:O,open:P,onOpenChange:E,dir:_,triggerPointerDownPosRef:$,disabled:p,children:[h.jsx(nn.Provider,{scope:t,children:h.jsx(cp,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(M=>{R(L=>new Set(L).add(M))},[]),onNativeOptionRemove:a.useCallback(M=>{R(L=>{const I=new Set(L);return I.delete(M),I})},[]),children:n})}),D?h.jsxs(Mi,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:d,value:A,onChange:M=>O(M.target.value),disabled:p,form:v,children:[A===void 0?h.jsx("option",{value:""}):null,Array.from(k)]},j):null]})})};ri.displayName=ht;var si="SelectTrigger",ii=a.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=rn(n),i=Me(si,n),c=i.disabled||o,u=ce(t,i.onTriggerChange),l=on(n),f=a.useRef("touch"),[d,p,g]=Ii(m=>{const x=l().filter(y=>!y.disabled),w=x.find(y=>y.value===i.value),C=Ni(x,m,w);C!==void 0&&i.onValueChange(C.value)}),v=m=>{c||(i.onOpenChange(!0),g()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return h.jsx(to,{asChild:!0,...s,children:h.jsx(ae.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:c,"data-disabled":c?"":void 0,"data-placeholder":_i(i.value)?"":void 0,...r,ref:u,onClick:Q(r.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:Q(r.onPointerDown,m=>{f.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:Q(r.onKeyDown,m=>{const x=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&p(m.key),!(x&&m.key===" ")&&op.includes(m.key)&&(v(),m.preventDefault())})})})});ii.displayName=si;var ci="SelectValue",ai=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:i="",...c}=e,u=Me(ci,n),{onValueNodeHasChildrenChange:l}=u,f=s!==void 0,d=ce(t,u.onValueNodeChange);return q(()=>{l(f)},[l,f]),h.jsx(ae.span,{...c,ref:d,style:{pointerEvents:"none"},children:_i(u.value)?h.jsx(h.Fragment,{children:i}):s})});ai.displayName=ci;var up="SelectIcon",ui=a.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return h.jsx(ae.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});ui.displayName=up;var lp="SelectPortal",li=e=>h.jsx(dt,{asChild:!0,...e});li.displayName=lp;var Oe="SelectContent",di=a.forwardRef((e,t)=>{const n=Me(Oe,e.__scopeSelect),[o,r]=a.useState();if(q(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?De.createPortal(h.jsx(fi,{scope:e.__scopeSelect,children:h.jsx(nn.Slot,{scope:e.__scopeSelect,children:h.jsx("div",{children:e.children})})}),s):null}return h.jsx(pi,{...e,ref:t})});di.displayName=Oe;var ue=10,[fi,Ie]=et(Oe),dp="SelectContentImpl",pi=a.forwardRef((e,t)=>
vendor: 49,115 bytes, line 45
45{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:i,side:c,sideOffset:u,align:l,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:v,hideWhenDetached:m,avoidCollisions:x,...w}=e,C=Me(Oe,n),[y,S]=a.useState(null),[b,_]=a.useState(null),P=ce(t,N=>S(N)),[E,A]=a.useState(null),[O,$]=a.useState(null),D=on(n),[k,R]=a.useState(!1),j=a.useRef(!1);a.useEffect(()=>{if(y)return lo(y)},[y]),uo();const M=a.useCallback(N=>{const[K,...Y]=D().map(H=>H.ref.current),[V]=Y.slice(-1),G=document.activeElement;for(const H of N)if(H===G||(H==null||H.scrollIntoView({block:"nearest"}),H===K&&b&&(b.scrollTop=0),H===V&&b&&(b.scrollTop=b.scrollHeight),H==null||H.focus(),document.activeElement!==G))return},[D,b]),L=a.useCallback(()=>M([E,y]),[M,E,y]);a.useEffect(()=>{k&&L()},[k,L]);const{onOpenChange:I,triggerPointerDownPosRef:T}=C;a.useEffect(()=>{if(y){let N={x:0,y:0};const K=V=>{var G,H;N={x:Math.abs(Math.round(V.pageX)-(((G=T.current)==null?void 0:G.x)??0)),y:Math.abs(Math.round(V.pageY)-(((H=T.current)==null?void 0:H.y)??0))}},Y=V=>{N.x<=10&&N.y<=10?V.preventDefault():y.contains(V.target)||I(!1),document.removeEventListener("pointermove",K),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Y,{capture:!0})}}},[y,I,T]),a.useEffect(()=>{const N=()=>I(!1);return window.addEventListener("blur",N),window.addEventListener("resize",N),()=>{window.removeEventListener("blur",N),window.removeEventListener("resize",N)}},[I]);const[W,z]=Ii(N=>{const K=D().filter(G=>!G.disabled),Y=K.find(G=>G.ref.current===document.activeElement),V=Ni(K,N,Y);V&&setTimeout(()=>V.ref.current.focus())}),Z=a.useCallback((N,K,Y)=>{const V=!j.current&&!Y;(C.value!==void 0&&C.value===K||V)&&(A(N),V&&(j.current=!0))},[C.value]),te=a.useCallback(()=>y==null?void 0:y.focus(),[y]),J=a.useCallback((N,K,Y)=>{const V=!j.current&&!Y;(C.value!==void 0&&C.value===K||V)&&$(N)},[C.value]),xe=o==="popper"?Dn:mi,ne=xe===Dn?{side:c,sideOffset:u,align:l,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:g,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return h.jsx(fi,{scope:n,content:y,viewport:b,onViewportChange:_,itemRefCallback:Z,selectedItem:E,onItemLeave:te,itemTextRefCallback:J,focusSelectedItem:L,selectedItemText:O,position:o,isPositioned:k,searchRef:W,children:h.jsx(tn,{as:B,allowPinchZoom:!0,children:h.jsx(Jt,{asChild:!0,trapped:C.open,onMountAutoFocus:N=>{N.preventDefault()},onUnmountAutoFocus:Q(r,N=>{var K;(K=C.trigger)==null||K.focus({preventScroll:!0}),N.preventDefault()}),children:h.jsx(ze,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:N=>N.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:h.jsx(xe,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:N=>N.preventDefault(),...w,...ne,onPlaced:()=>R(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:Q(w.onKeyDown,N=>{const K=N.ctrlKey||N.altKey||N.metaKey;if(N.key==="Tab"&&N.preventDefault(),!K&&N.key.length===1&&z(N.key),["ArrowUp","ArrowDown","Home","End"].includes(N.key)){let V=D().filter(G=>!G.disabled).map(G=>G.ref.current);if(["ArrowUp","End"].includes(N.key)&&(V=V.slice().reverse()),["ArrowUp","ArrowDown"].includes(N.key)){const G=N.target,H=V.indexOf(G);V=V.slice(H+1)}setTimeout(()=>M(V)),N.preventDefault()}})})})})})})});pi.displayName=dp;var fp="SelectItemAlignedPosition",mi=a.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Me(Oe,n),i=Ie(Oe,n),[c,u]=a.useState(null),[l,f]=a.useState(null),d=ce(t,P=>f(P)),p=on(n),g=a.useRef(!1),v=a.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:w,focusSelectedItem:C}=i,y=a.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&l&&m&&x&&w){const P=s.trigger.getBoundingClientRect(),E=l.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),O=w.getBoundingClientRect();if(s.dir!=="rtl"){const G=O.left-E.left,H=A.left-G,oe=P.left-H,me=P.width+oe,tt=Math.max(me,E.width),nt=window.innerWidth-ue,ot=sr(H,[ue,Math.max(ue,nt-tt)]);c.style.minWidth=me+"px",c.style.left=ot+"px"}else{const G=E.right-O.right,H=window.innerWidth-A.right-G,oe=window.innerWidth-P.right-H,me=P.width+oe,tt=Math.max(me,E.width),nt=window.innerWidth-ue,ot=sr(H,[ue,Math.max(ue,nt-tt)]);c.style.minWidth=me+"px",c.style.right=ot+"px"}const $=p(),D=window.innerHeight-ue*2,k=m.scrollHeight,R=window.getComputedStyle(l),j=parseInt(R.borderTopWidth,10),M=parseInt(R.paddingTop,10),L=parseInt(R.borderBottomWidth,10),I=parseInt(R.paddingBottom,10),T=j+M+k+I+L,W=Math.min(x.offsetHeight*5,T),z=window.getComputedStyle(m),Z=parseInt(z.paddingTop,10),te=parseInt(z.paddingBottom,10),J=P.top+P.height/2-ue,xe=D-J,ne=x.offsetHeight/2,N=x.offsetTop+ne,K=j+M+N,Y=T-K;if(K<=J){const G=$.length>0&&x===$[$.length-1].ref.current;c.style.bottom="0px";const H=l.clientHeight-m.offsetTop-m.offsetHeight,oe=Math.max(xe,ne+(G?te:0)+H+L),me=K+oe;c.style.height=me+"px"}else{const G=$.length>0&&x===$[0].ref.current;c.style.top="0px";const oe=Math.max(J,j+m.offsetTop+(G?Z:0)+ne)+Y;c.style.height=oe+"px",m.scrollTop=K-J+m.offsetTop}c.style.margin=`${ue}px 0`,c.style.minHeight=W+"px",c.style.maxHeight=D+"px",o==null||o(),requestAnimationFrame(()=>g.current=!0)}},[p,s.trigger,s.valueNode,c,l,m,x,w,s.dir,o]);q(()=>y(),[y]);const[S,b]=a.useState();q(()=>{l&&b(window.getComputedStyle(l).zIndex)},[l]);const _=a.useCallback(P=>{P&&v.current===!0&&(y(),C==null||C(),v.current=!1)},[y,C]);return h.jsx(mp,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:_,children:h.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:h.jsx(ae.div,{...r,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});mi.displayName=fp;var pp="SelectPopperPosition",Dn=a.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ue,...s}=e,i=rn(n);return h.jsx(no,{...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)"}})});Dn.displayName=pp;var[mp,Co]=et(Oe,{}),jn="SelectViewport",vi=a.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Ie(jn,n),i=Co(jn,n),c=ce(t,s.onViewportChange),u=a.useRef(0);return h.jsxs(h.Fragment,{children:[h.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}),h.jsx(nn.Slot,{scope:n,children:h.jsx(ae.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:Q(r.onScroll,l=>{const f=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:p}=i;if(p!=null&&p.current&&d){const g=Math.abs(u.current-f.scrollTop);if(g>0){const v=window.innerHeight-ue*2,m=parseFloat(d.style.minHeight),x=parseFloat(d.style.height),w=Math.max(m,x);if(w<v){const C=w+g,y=Math.min(v,C),S=C-y;d.style.height=y+"px",d.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});vi.displayName=jn;var hi="SelectGroup",[vp,hp]=et(hi),gp=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=xo();return h.jsx(vp,{scope:n,id:r,children:h.jsx(ae.div,{role:"group","aria-labelledby":r,...o,ref:t})})});gp.displayName=hi;var gi="SelectLabel",xi=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=hp(gi,n);return h.jsx(ae.div,{id:r.id,...o,ref:t})});xi.displayName=gi;var Bt="SelectItem",[xp,wi]=et(Bt),Ci=a.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...i}=e,c=Me(Bt,n),u=Ie(Bt,n),l=c.value===o,[f,d]=a.useState(s??""),[p,g]=a.useState(!1),v=ce(t,C=>{var y;return(y=u.itemRefCallback)==null?void 0:y.call(u,C,o,r)}),m=xo(),x=a.useRef("touch"),w=()=>{r||(c.onValueChange(o),c.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 h.jsx(xp,{scope:n,value:o,disabled:r,textId:m,isSelected:l,onItemTextChange:a.useCallback(C=>{d(y=>y||((C==null?void 0:C.textContent)??"").trim())},[]),children:h.jsx(nn.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:h.jsx(ae.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":l&&p,"data-state":l?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:v,onFocus:Q(i.onFocus,()=>g(!0)),onBlur:Q(i.onBlur,()=>g(!1)),onClick:Q(i.onClick,()=>{x.current!=="mouse"&&w()}),onPointerUp:Q(i.onPointerUp,()=>{x.current==="mouse"&&w()}),onPointerDown:Q(i.onPointerDown,C=>{x.current=C.pointerType}),onPointerMove:Q(i.onPointerMove,C=>{var y;x.current=C.pointerType,r?(y=u.onItemLeave)==null||y.call(u):x.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(i.onPointerLeave,C=>{var y;C.currentTarget===document.activeElement&&((y=u.onItemLeave)==null||y.call(u))}),onKeyDown:Q(i.onKeyDown,C=>{var S;((S=u.searchRef)==null?void 0:S.current)!==""&&C.key===" "||(rp.includes(C.key)&&w(),C.key===" "&&C.preventDefault())})})})})});Ci.displayName=Bt;var rt="SelectItemText",yi=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,i=Me(rt,n),c=Ie(rt,n),u=wi(rt,n),l=ap(rt,n),[f,d]=a.useState(null),p=ce(t,w=>d(w),u.onItemTextChange,w=>{var C;return(C=c.itemTextRefCallback)==null?void 0:C.call(c,w,u.value,u.disabled)}),g=f==null?void 0:f.textContent,v=a.useMemo(()=>h.jsx("option",{value:u.value,disabled:u.disabled,children:g},u.value),[u.disabled,u.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=l;return q(()=>(m(v),()=>x(v)),[m,x,v]),h.jsxs(h.Fragment,{children:[h.jsx(ae.span,{id:u.textId,...s,ref:p}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?De.createPortal(s.children,i.valueNode):null]})});yi.displayName=rt;var Si="SelectItemIndicator",bi=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return wi(Si,n).isSelected?h.jsx(ae.span,{"aria-hidden":!0,...o,ref:t}):null});bi.displayName=Si;var kn="SelectScrollUpButton",Pi=a.forwardRef((e,t)=>{const n=Ie(kn,e.__scopeSelect),o=Co(kn,e.__scopeSelect),[r,s]=a.useState(!1),i=ce(t,o.onScrollButtonChange);return q(()=>{if(n.viewport&&n.isPositioned){let c=function(){const l=u.scrollTop>0;s(l)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?h.jsx(Ri,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop-u.offsetHeight)}}):null});Pi.displayName=kn;var Ln="SelectScrollDownButton",Ei=a.forwardRef((e,t)=>{const n=Ie(Ln,e.__scopeSelect),o=Co(Ln,e.__scopeSelect),[r,s]=a.useState(!1),i=ce(t,o.onScrollButtonChange);return q(()=>{if(n.viewport&&n.isPositioned){let c=function(){const l=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<l;s(f)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?h.jsx(Ri,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop+u.offsetHeight)}}):null});Ei.displayName=Ln;var Ri=a.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Ie("SelectScrollButton",n),i=a.useRef(null),c=on(n),u=a.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return a.useEffect(()=>()=>u(),[u]),q(()=>{var f;const l=c().find(d=>d.ref.current===document.activeElement);(f=l==null?void 0:l.ref.current)==null||f.scrollIntoView({block:"nearest"})},[c]),h.jsx(ae.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:Q(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:Q(r.onPointerMove,()=>{var l;(l=s.onItemLeave)==null||l.call(s),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:Q(r.onPointerLeave,()=>{u()})})}),wp="SelectSeparator",Ti=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return h.jsx(ae.div,{"aria-hidden":!0,...o,ref:t})});Ti.displayName=wp;var Fn="SelectArrow",Cp=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=rn(n),s=Me(Fn,n),i=Ie(Fn,n);return s.open&&i.position==="popper"?h.jsx(oo,{...r,...o,ref:t}):null});Cp.displayName=Fn;function _i(e){return e===""||e===void 0}var Mi=a.forwardRef((e,t)=>{const{value:n,...o}=e,r=a.useRef(null),s=ce(t,r),i=wo(n);return a.useEffect(()=>{const c=r.current,u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==n&&f){const d=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(d)}},[i,n]),h.jsx(ft,{asChild:!0,children:h.jsx("select",{...o,ref:s,defaultValue:n})})});Mi.displayName="BubbleSelect";function Ii(e){const t=U(e),n=a.useRef(""),o=a.useRef(0),r=a.useCallback(i=>{const c=n.current+i;t(c),function u(l){n.current=l,window.clearTimeout(o.current),l!==""&&(o.current=window.setTimeout(()=>u(""),1e3))}(c)},[t]),s=a.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Ni(e,t,n){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=yp(e,Math.max(s,0));r.length===1&&(i=i.filter(l=>l!==n));const u=i.find(l=>l.textValue.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function yp(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Mh=ri,Ih=ii,Nh=ai,Ah=ui,Oh=li,$h=di,Dh=vi,jh=xi,kh=Ci,Lh=yi,Fh=bi,Bh=Pi,Wh=Ei,Vh=Ti;function Wt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Sp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function bp(...e){return t=>e.forEach(n=>Sp(n,t))}function Pp(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Ep(r,...t)]}function Ep(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Rp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Tp({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:o,c=U(n),u=a.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&c(d)}else r(l)},[s,e,r,c]);return[i,u]}function Tp({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),s=U(t);return a.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var _p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mp=_p.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ip(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];function l(d){const{scope:p,children:g,...v}=d,m=(p==null?void 0:p[e][u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})}function f(d,p){const g=(p==null?void 0:p[e][u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Np(r,...t)]}function Np(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ap(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ai(...e){return t=>e.forEach(n=>Ap(n,t))}function $e(...e){return a.useCallback(Ai(...e),e)}function Op(e){const t=e+"CollectionProvider",[n,o]=Ip(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:m}=g,x=F.useRef(null),w=F.useRef(new Map).current;return h.jsx(r,{scope:v,itemMap:w,collectionRef:x,children:m})};i.displayName=t;const c=e+"CollectionSlot",u=F.forwardRef((g,v)=>{const{scope:m,children:x}=g,w=s(c,m),C=$e(v,w.collectionRef);return h.jsx(B,{ref:C,children:x})});u.displayName=c;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=F.forwardRef((g,v)=>{const{scope:m,children:x,...w}=g,C=F.useRef(null),y=$e(v,C),S=s(l,m);return F.useEffect(()=>(S.itemMap.set(C,{ref:C,...w}),()=>void S.itemMap.delete(C))),h.jsx(B,{[f]:"",ref:y,children:x})});d.displayName=l;function p(g){const v=s(e+"CollectionConsumer",g);return F.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((S,b)=>w.indexOf(S.ref.current)-w.indexOf(b.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:d},p,o]}function $p(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Dp(r,...t)]}function Dp(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var jp=a.createContext(void 0);function kp(e){const t=a.useContext(jp);return e||t||"ltr"}var Lp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],gt=Lp.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Fp(e,t){e&&De.flushSync(()=>e.dispatchEvent(t))}function Ke(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Oi(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];function l(d){const{scope:p,children:g,...v}=d,m=(p==null?void 0:p[e][u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})}function f(d,p){const g=(p==null?void 0:p[e][u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Bp(r,...t)]}function Bp(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Wp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Vp(...e){return t=>e.forEach(n=>Wp(n,t))}function Bn(...e){return a.useCallback(Vp(...e),e)}function Up(e){const t=e+"CollectionProvider",[n,o]=Oi(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:m}=g,x=F.useRef(null),w=F.useRef(new Map).current;return h.jsx(r,{scope:v,itemMap:w,collectionRef:x,children:m})};i.displayName=t;const c=e+"CollectionSlot",u=F.forwardRef((g,v)=>{const{scope:m,children:x}=g,w=s(c,m),C=Bn(v,w.collectionRef);return h.jsx(B,{ref:C,children:x})});u.displayName=c;const l=e+"CollectionItemSlot",f="data-radix-collection-item",d=F.forwardRef((g,v)=>{const{scope:m,children:x,...w}=g,C=F.useRef(null),y=Bn(v,C),S=s(l,m);return F.useEffect(()=>(S.itemMap.set(C,{ref:C,...w}),()=>void S.itemMap.delete(C))),h.jsx(B,{[f]:"",ref:y,children:x})});d.displayName=l;function p(g){const v=s(e+"CollectionConsumer",g);return F.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((S,b)=>w.indexOf(S.ref.current)-w.indexOf(b.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:u,ItemSlot:d},p,o]}var Kp=Ye.useId||(()=>{}),Gp=0;function Hp(e){const[t,n]=a.useState(Kp());return q(()=>{n(o=>o??String(Gp++))},[e]),t?`radix-${t}`:""}var Yp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$i=Yp.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function zp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Xp({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:o,c=U(n),u=a.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&c(d)}else r(l)},[s,e,r,c]);return[i,u]}function Xp({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),s=U(t);return a.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var qp=a.createContext(void 0);function Zp(e){const t=a.useContext(qp);return e||t||"ltr"}var Sn="rovingFocusGroup.onEntryFocus",Qp={bubbles:!1,cancelable:!0},sn="RovingFocusGroup",[Wn,Di,Jp]=Up(sn),[em,ji]=Oi(sn,[Jp]),[tm,nm]=em(sn),ki=a.forwardRef((e,t)=>h.jsx(Wn.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(Wn.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(om,{...e,ref:t})})}));ki.displayName=sn;var om=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...d}=e,p=a.useRef(null),g=Bn(t,p),v=Zp(s),[m=null,x]=zp({prop:i,defaultProp:c,onChange:u}),[w,C]=a.useState(!1),y=U(l),S=Di(n),b=a.useRef(!1),[_,P]=a.useState(0);return a.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(Sn,y),()=>E.removeEventListener(Sn,y)},[y]),h.jsx(tm,{scope:n,orientation:o,dir:v,loop:r,currentTabStopId:m,onItemFocus:a.useCallback(E=>x(E),[x]),onItemShiftTab:a.useCallback(()=>C(!0),[]),onFocusableItemAdd:a.useCallback(()=>P(E=>E+1),[]),onFocusableItemRemove:a.useCallback(()=>P(E=>E-1),[]),children:h.jsx($i.div,{tabIndex:w||_===0?-1:0,"data-orientation":o,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:Ke(e.onMouseDown,()=>{b.current=!0}),onFocus:Ke(e.onFocus,E=>{const A=!b.current;if(E.target===E.currentTarget&&A&&!w){const O=new CustomEvent(Sn,Qp);if(E.currentTarget.dispatchEvent(O),!O.defaultPrevented){const $=S().filter(M=>M.focusable),D=$.find(M=>M.active),k=$.find(M=>M.id===m),j=[D,k,...$].filter(Boolean).map(M=>M.ref.current);Bi(j,f)}}b.current=!1}),onBlur:Ke(e.onBlur,()=>C(!1))})})}),Li="RovingFocusGroupItem",Fi=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,...i}=e,c=Hp(),u=s||c,l=nm(Li,n),f=l.currentTabStopId===u,d=Di(n),{onFocusableItemAdd:p,onFocusableItemRemove:g}=l;return a.useEffect(()=>{if(o)return p(),()=>g()},[o,p,g]),h.jsx(Wn.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:h.jsx($i.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...i,ref:t,onMouseDown:Ke(e.onMouseDown,v=>{o?l.onItemFocus(u):v.preventDefault()}),onFocus:Ke(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:Ke(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const m=im(v,l.orientation,l.dir);if(m!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=d().filter(C=>C.focusable).map(C=>C.ref.current);if(m==="last")w.reverse();else if(m==="prev"||m==="next"){m==="prev"&&w.reverse();const C=w.indexOf(v.currentTarget);w=l.loop?cm(w,C+1):w.slice(C+1)}setTimeout(()=>Bi(w))}})})})});Fi.displayName=Li;var rm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function im(e,t,n){const o=sm(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return rm[o]}function Bi(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function cm(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var am=ki,um=Fi,Vn=["Enter"," "],lm=["ArrowDown","PageUp","Home"],Wi=["ArrowUp","PageDown","End"],dm=[...lm,...Wi],fm={ltr:[...Vn,"ArrowRight"],rtl:[...Vn,"ArrowLeft"]},pm={ltr:["ArrowLeft"],rtl:["ArrowRight"]},xt="Menu",[ut,mm,vm]=Op(xt),[je,Vi]=$p(xt,[vm,Qe,ji]),cn=Qe(),Ui=ji(),[hm,ke]=je(xt),[gm,wt]=je(xt),Ki=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=e,c=cn(t),[u,l]=a.useState(null),f=a.useRef(!1),d=U(s),p=kp(r);return a.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),h.jsx(Qr,{...c,children:h.jsx(hm,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:l,children:h.jsx(gm,{scope:t,onClose:a.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:i,children:o})})})};Ki.displayName=xt;var xm="MenuAnchor",yo=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=cn(n);return h.jsx(to,{...r,...o,ref:t})});yo.displayName=xm;var So="MenuPortal",[wm,Gi]=je(So,{forceMount:void 0}),Hi=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=ke(So,t);return h.jsx(wm,{scope:t,forceMount:n,children:h.jsx(fe,{present:n||s.open,children:h.jsx(dt,{asChild:!0,container:r,children:o})})})};Hi.displayName=So;var ie="MenuContent",[Cm,bo]=je(ie),Yi=a.forwardRef((e,t)=>{const n=Gi(ie,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=ke(ie,e.__scopeMenu),i=wt(ie,e.__scopeMenu);return h.jsx(ut.Provider,{scope:e.__scopeMenu,children:h.jsx(fe,{present:o||s.open,children:h.jsx(ut.Slot,{scope:e.__scopeMenu,children:i.modal?h.jsx(ym,{...r,ref:t}):h.jsx(Sm,{...r,ref:t})})})})}),ym=a.forwardRef((e,t)=>{const n=ke(ie,e.__scopeMenu),o=a.useRef(null),r=$e(t,o);return a.useEffect(()=>{const s=o.current;if(s)return lo(s)},[]),h.jsx(Po,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:X(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Sm=a.forwardRef((e,t)=>{const n=ke(ie,e.__scopeMenu);return h.jsx(Po,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Po=a.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g,disableOutsideScroll:v,...m}=e,x=ke(ie,n),w=wt(ie,n),C=cn(n),y=Ui(n),S=mm(n),[b,_]=a.useState(null),P=a.useRef(null),E=$e(t,P,x.onContentChange),A=a.useRef(0),O=a.useRef(""),$=a.useRef(0),D=a.useRef(null),k=a.useRef("right"),R=a.useRef(0),j=v?tn:a.Fragment,M=v?{as:B,allowPinchZoom:!0}:void 0,L=T=>{var N,K;const W=O.current+T,z=S().filter(Y=>!Y.disabled),Z=document.activeElement,te=(N=z.find(Y=>Y.ref.current===Z))==null?void 0:N.textValue,J=z.map(Y=>Y.textValue),xe=$m(J,W,te),ne=(K=z.find(Y=>Y.textValue===xe))==null?void 0:K.ref.current;(function Y(V){O.current=V,window.clearTimeout(A.current),V!==""&&(A.current=window.setTimeout(()=>Y(""),1e3))})(W),ne&&setTimeout(()=>ne.focus())};a.useEffect(()=>()=>window.clearTimeout(A.current),[]),uo();const I=a.useCallback(T=>{var z,Z;return k.current===((z=D.current)==null?void 0:z.side)&&jm(T,(Z=D.current)==null?void 0:Z.area)},[]);return h.jsx(Cm,{scope:n,searchRef:O,onItemEnter:a.useCallback(T=>{I(T)&&T.preventDefault()},[I]),onItemLeave:a.useCallback(T=>{var W;I(T)||((W=P.current)==null||W.focus(),_(null))},[I]),onTriggerLeave:a.useCallback(T=>{I(T)&&T.preventDefault()},[I]),pointerGraceTimerRef:$,onPointerGraceIntentChange:a.useCallback(T=>{D.current=T},[]),children:h.jsx(j,{...M,children:h.jsx(Jt,{asChild:!0,trapped:r,onMountAutoFocus:X(s,T=>{var W;T.preventDefault(),(W=P.current)==null||W.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:h.jsx(ze,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:g,children:h.jsx(am,{asChild:!0,...y,dir:w.dir,orientation:"vertical",loop:o,currentTabStopId:b,onCurrentTabStopIdChange:_,onEntryFocus:X(u,T=>{w.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(no,{role:"menu","aria-orientation":"vertical","data-state":uc(x.open),"data-radix-menu-content":"",dir:w.dir,...C,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:X(m.onKeyDown,T=>{const z=T.target.closest("[data-radix-menu-content]")===T.currentTarget,Z=T.ctrlKey||T.altKey||T.metaKey,te=T.key.length===1;z&&(T.key==="Tab"&&T.preventDefault(),!Z&&te&&L(T.key));const J=P.current;if(T.target!==J||!dm.includes(T.key))return;T.preventDefault();const ne=S().filter(N=>!N.disabled).map(N=>N.ref.current);Wi.includes(T.key)&&ne.reverse(),Am(ne)}),onBlur:X(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(A.current),O.current="")}),onPointerMove:X(e.onPointerMove,lt(T=>{const W=T.target,z=R.current!==T.clientX;if(T.currentTarget.contains(W)&&z){const Z=T.clientX>R.current?"right":"left";k.current=Z,R.current=T.clientX}}))})})})})})})});Yi.displayName=ie;var bm="MenuGroup",Eo=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return h.jsx(gt.div,{role:"group",...o,ref:t})});Eo.displayName=bm;var Pm="MenuLabel",zi=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return h.jsx(gt.div,{...o,ref:t})});zi.displayName=Pm;var Vt="MenuItem",cr="menu.itemSelect",an=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=a.useRef(null),i=wt(Vt,e.__scopeMenu),c=bo(Vt,e.__scopeMenu),u=$e(t,s),l=a.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const p=new CustomEvent(cr,{bubbles:!0,cancelable:!0});d.addEventListener(cr,g=>o==null?void 0:o(g),{once:!0}),Fp(d,p),p.defaultPrevented?l.current=!1:i.onClose()}};return h.jsx(Xi,{...r,ref:u,disabled:n,onClick:X(e.onClick,f),onPointerDown:d=>{var p;(p=e.onPointerDown)==null||p.call(e,d),l.current=!0},onPointerUp:X(e.onPointerUp,d=>{var p;l.current||(p=d.currentTarget)==null||p.click()}),onKeyDown:X(e.onKeyDown,d=>{const p=c.searchRef.current!=="";n||p&&d.key===" "||Vn.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});an.displayName=Vt;var Xi=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,i=bo(Vt,n),c=Ui(n),u=a.useRef(null),l=$e(t,u),[f,d]=a.useState(!1),[p,g]=a.useState("");return a.useEffect(()=>{const v=u.current;v&&g((v.textContent??"").trim())},[s.children]),h.jsx(ut.ItemSlot,{scope:n,disabled:o,textValue:r??p,children:h.jsx(um,{asChild:!0,...c,focusable:!o,children:h.jsx(gt.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:l,onPointerMove:X(e.onPointerMove,lt(v=>{o?i.onItemLeave(v):(i.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:X(e.onPointerLeave,lt(v=>i.onItemLeave(v))),onFocus:X(e.onFocus,()=>d(!0)),onBlur:X(e.onBlur,()=>d(!1))})})})}),Em="MenuCheckboxItem",qi=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return h.jsx(tc,{scope:e.__scopeMenu,checked:n,children:h.jsx(an,{role:"menuitemcheckbox","aria-checked":Ut(n)?"mixed":n,...r,ref:t,"data-state":To(n),onSelect:X(r.onSelect,()=>o==null?void 0:o(Ut(n)?!0:!n),{checkForDefaultPrevented:!1})})})});qi.displayName=Em;var Zi="MenuRadioGroup",[Rm,Tm]=je(Zi,{value:void 0,onValueChange:()=>{}}),Qi=a.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=U(o);return h.jsx(Rm,{scope:e.__scopeMenu,value:n,onValueChange:s,children:h.jsx(Eo,{...r,ref:t})})});Qi.displayName=Zi;var Ji="MenuRadioItem",ec=a.forwardRef((e,t)=>{const{value:n,...o}=e,r=Tm(Ji,e.__scopeMenu),s=n===r.value;return h.jsx(tc,{scope:e.__scopeMenu,checked:s,children:h.jsx(an,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":To(s),onSelect:X(o.onSelect,()=>{var i;return(i=r.onValueChange)==null?void 0:i.call(r,n)},{checkForDefaultPrevented:!1})})})});ec.displayName=Ji;var Ro="MenuItemIndicator",[tc,_m]=je(Ro,{checked:!1}),nc=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=_m(Ro,n);return h.jsx(fe,{present:o||Ut(s.checked)||s.checked===!0,children:h.jsx(gt.span,{...r,ref:t,"data-state":To(s.checked)})})});nc.displayName=Ro;var Mm="MenuSeparator",oc=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return h.jsx(gt.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});oc.displayName=Mm;var Im="MenuArrow",rc=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=cn(n);return h.jsx(oo,{...r,...o,ref:t})});rc.displayName=Im;var Nm="MenuSub",[Uh,sc]=je(Nm),st="MenuSubTrigger",ic=a.forwardRef((e,t)=>{const n=ke(st,e.__scopeMenu),o=wt(st,e.__scopeMenu),r=sc(st,e.__scopeMenu),s=bo(st,e.__scopeMenu),i=a.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=s,l={__scopeMenu:e.__scopeMenu},f=a.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return a.useEffect(()=>f,[f]),a.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),u(null)}},[c,u]),h.jsx(yo,{asChild:!0,...l,children:h.jsx(Xi,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":uc(n.open),...e,ref:Ai(t,r.onTriggerChange),onClick:d=>{var p;(p=e.onClick)==null||p.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:X(e.onPointerMove,lt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:X(e.onPointerLeave,lt(d=>{var g,v;f();const p=(g=n.content)==null?void 0:g.getBoundingClientRect();if(p){const m=(v=n.content)==null?void 0:v.dataset.side,x=m==="right",w=x?-5:5,C=p[x?"left":"right"],y=p[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+w,y:d.clientY},{x:C,y:p.top},{x:y,y:p.top},{x:y,y:p.bottom},{x:C,y:p.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:X(e.onKeyDown,d=>{var g;const p=s.searchRef.current!=="";e.disabled||p&&d.key===" "||fm[o.dir].includes(d.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),d.preventDefault())})})})});ic.displayName=st;var cc="MenuSubContent",ac=a.forwardRef((e,t)=>{const n=Gi(ie,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=ke(ie,e.__scopeMenu),i=wt(ie,e.__scopeMenu),c=sc(cc,e.__scopeMenu),u=a.useRef(null),l=$e(t,u);return h.jsx(ut.Provider,{scope:e.__scopeMenu,children:h.jsx(fe,{present:o||s.open,children:h.jsx(ut.Slot,{scope:e.__scopeMenu,children:h.jsx(Po,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;i.isUsingKeyboardRef.current&&((d=u.current)==null||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:X(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:X(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:X(e.onKeyDown,f=>{var g;const d=f.currentTarget.contains(f.target),p=pm[i.dir].includes(f.key);d&&p&&(s.onOpenChange(!1),(g=c.trigger)==null||g.focus(),f.preventDefault())})})})})})});ac.displayName=cc;function uc(e){return e?"open":"closed"}function Ut(e){return e==="indeterminate"}function To(e){return Ut(e)?"indeterminate":e?"checked":"unchecked"}function Am(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Om(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function $m(e,t,n){const r=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Om(e,Math.max(s,0));r.length===1&&(i=i.filter(l=>l!==n));const u=i.find(l=>l.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function Dm(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 c=t[s].x,u=t[s].y,l=t[i].x,f=t[i].y;u>o!=f>o&&n<(l-c)*(o-u)/(f-u)+c&&(r=!r)}return r}function jm(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Dm(n,t)}function lt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var km=Ki,Lm=yo,Fm=Hi,Bm=Yi,Wm=Eo,Vm=zi,Um=an,Km=qi,Gm=Qi,Hm=ec,Ym=nc,zm=oc,Xm=rc,qm=ic,Zm=ac,Qm=Ye.useId||(()=>{}),Jm=0;function ar(e){const[t,n]=a.useState(Qm());return q(()=>{n(o=>o??String(Jm++))},[e]),e||(t?`radix-${t}`:"")}var _o="DropdownMenu",[ev]=Pp(_o,[Vi]),ee=Vi(),[tv,lc]=ev(_o),dc=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:c=!0}=e,u=ee(t),l=a.useRef(null),[f=!1,d]=Rp({prop:r,defaultProp:s,onChange:i});return h.jsx(tv,{scope:t,triggerId:ar(),triggerRef:l,contentId:ar(),open:f,onOpenChange:d,onOpenToggle:a.useCallback(()=>d(p=>!p),[d]),modal:c,children:h.jsx(km,{...u,open:f,onOpenChange:d,dir:o,modal:c,children:n})})};dc.displayName=_o;var fc="DropdownMenuTrigger",pc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=lc(fc,n),i=ee(n);return h.jsx(Lm,{asChild:!0,...i,children:h.jsx(Mp.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:bp(t,s.triggerRef),onPointerDown:Wt(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:Wt(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});pc.displayName=fc;var nv="DropdownMenuPortal",mc=e=>{const{__scopeDropdownMenu:t,...n}=e,o=ee(t);return h.jsx(Fm,{...o,...n})};mc.displayName=nv;var vc="DropdownMenuContent",hc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=lc(vc,n),s=ee(n),i=a.useRef(!1);return h.jsx(Bm,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:Wt(e.onCloseAutoFocus,c=>{var u;i.current||(u=r.triggerRef.current)==null||u.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:Wt(e.onInteractOutside,c=>{const u=c.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,f=u.button===2||l;(!r.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hc.displayName=vc;var ov="DropdownMenuGroup",rv=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Wm,{...r,...o,ref:t})});rv.displayName=ov;var sv="DropdownMenuLabel",gc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Vm,{...r,...o,ref:t})});gc.displayName=sv;var iv="DropdownMenuItem",xc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Um,{...r,...o,ref:t})});xc.displayName=iv;var cv="DropdownMenuCheckboxItem",wc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Km,{...r,...o,ref:t})});wc.displayName=cv;var av="DropdownMenuRadioGroup",uv=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Gm,{...r,...o,ref:t})});uv.displayName=av;var lv="DropdownMenuRadioItem",Cc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Hm,{...r,...o,ref:t})});Cc.displayName=lv;var dv="DropdownMenuItemIndicator",yc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Ym,{...r,...o,ref:t})});yc.displayName=dv;var fv="DropdownMenuSeparator",Sc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(zm,{...r,...o,ref:t})});Sc.displayName=fv;var pv="DropdownMenuArrow",mv=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Xm,{...r,...o,ref:t})});mv.displayName=pv;var vv="DropdownMenuSubTrigger",bc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(qm,{...r,...o,ref:t})});bc.displayName=vv;var hv="DropdownMenuSubContent",Pc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ee(n);return h.jsx(Zm,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pc.displayName=hv;var Kh=dc,Gh=pc,Hh=mc,Yh=hc,zh=gc,Xh=xc,qh=wc,Zh=Cc,Qh=yc,Jh=Sc,eg=bc,tg=Pc;function gv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function xv(...e){return t=>e.forEach(n=>gv(n,t))}function wv(...e){return a.useCallback(xv(...e),e)}function Cv(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,yv(r,...t)]}function yv(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ur(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Sv({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=bv({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:o,c=U(n),u=a.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&c(d)}else r(l)},[s,e,r,c]);return[i,u]}function bv({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),s=U(t);return a.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var Pv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ec=Pv.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Mo="Checkbox",[Ev]=Cv(Mo),[Rv,Tv]=Ev(Mo),Rc=a.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:o,checked:r,defaultChecked:s,required:i,disabled:c,value:u="on",onCheckedChange:l,form:f,...d}=e,[p,g]=a.useState(null),v=wv(t,S=>g(S)),m=a.useRef(!1),x=p?f||!!p.closest("form"):!0,[w=!1,C]=Sv({prop:r,defaultProp:s,onChange:l}),y=a.useRef(w);return a.useEffect(()=>{const S=p==null?void 0:p.form;if(S){const b=()=>C(y.current);return S.addEventListener("reset",b),()=>S.removeEventListener("reset",b)}},[p,C]),h.jsxs(Rv,{scope:n,state:w,disabled:c,children:[h.jsx(Ec.button,{type:"button",role:"checkbox","aria-checked":Pe(w)?"mixed":w,"aria-required":i,"data-state":Mc(w),"data-disabled":c?"":void 0,disabled:c,value:u,...d,ref:v,onKeyDown:ur(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:ur(e.onClick,S=>{C(b=>Pe(b)?!0:!b),x&&(m.current=S.isPropagationStopped(),m.current||S.stopPropagation())})}),x&&h.jsx(_v,{control:p,bubbles:!m.current,name:o,value:u,checked:w,required:i,disabled:c,form:f,style:{transform:"translateX(-100%)"},defaultChecked:Pe(s)?!1:s})]})});Rc.displayName=Mo;var Tc="CheckboxIndicator",_c=a.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:o,...r}=e,s=Tv(Tc,n);return h.jsx(fe,{present:o||Pe(s.state)||s.state===!0,children:h.jsx(Ec.span,{"data-state":Mc(s.state),"data-disabled":s.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});_c.displayName=Tc;var _v=e=>{const{control:t,checked:n,bubbles:o=!0,defaultChecked:r,...s}=e,i=a.useRef(null),c=wo(n),u=Qn(t);a.useEffect(()=>{const f=i.current,d=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&g){const v=new Event("click",{bubbles:o});f.indeterminate=Pe(n),g.call(f,Pe(n)?!1:n),f.dispatchEvent(v)}},[c,n,o]);const l=a.useRef(Pe(n)?!1:n);return h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r??l.current,...s,tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Pe(e){return e==="indeterminate"}function Mc(e){return Pe(e)?"indeterminate":e?"checked":"unchecked"}var ng=Rc,og=_c;function Mv(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];function l(d){const{scope:p,children:g,...v}=d,m=(p==null?void 0:p[e][u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})}function f(d,p){const g=(p==null?void 0:p[e][u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Iv(r,...t)]}function Iv(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Nv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ic=Nv.reduce((e,t)=>
45{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Io="Progress",No=100,[Av]=Mv(Io),[Ov,$v]=Av(Io),Nc=a.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:r,getValueLabel:s=Dv,...i}=e;(r||r===0)&&!lr(r)&&console.error(jv(`${r}`,"Progress"));const c=lr(r)?r:No;o!==null&&!dr(o,c)&&console.error(kv(`${o}`,"Progress"));const u=dr(o,c)?o:null,l=Kt(u)?s(u,c):void 0;return h.jsx(Ov,{scope:n,value:u,max:c,children:h.jsx(Ic.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Kt(u)?u:void 0,"aria-valuetext":l,role:"progressbar","data-state":$c(u,c),"data-value":u??void 0,"data-max":c,...i,ref:t})})});Nc.displayName=Io;var Ac="ProgressIndicator",Oc=a.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,r=$v(Ac,n);return h.jsx(Ic.div,{"data-state":$c(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...o,ref:t})});Oc.displayName=Ac;function Dv(e,t){return`${Math.round(e/t*100)}%`}function $c(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Kt(e){return typeof e=="number"}function lr(e){return Kt(e)&&!isNaN(e)&&e>0}function dr(e,t){return Kt(e)&&!isNaN(e)&&e<=t&&e>=0}function jv(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${No}\`.`}function kv(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
46  - a positive number
47  - less than the value passed to \`max\` (or ${No} if no \`max\` prop is set)
48  - \`null\` or \`undefined\` if the progress is indeterminate.
49
50Defaulting to \`null\`.`}var rg=Nc,sg=Oc;function Lv(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Fv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Bv(...e){return t=>e.forEach(n=>Fv(n,t))}function Wv(...e){return a.useCallback(Bv(...e),e)}function Vv(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const l=d=>{var w;const{scope:p,children:g,...v}=d,m=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,x=a.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:g})};l.displayName=s+"Provider";function f(d,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[u])||c,v=a.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return r.scopeName=e,[o,Uv(r,...t)]}function Uv(...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((c,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Kv({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Gv({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:o,c=U(n),u=a.useCallback(l=>{if(s){const d=typeof l=="function"?l(e):l;d!==e&&c(d)}else r(l)},[s,e,r,c]);return[i,u]}function Gv({defaultProp:e,onChange:t}){const n=a.useState(e),[o]=n,r=a.useRef(o),s=U(t);return a.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}var Hv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Dc=Hv.reduce((e,t)=>{const n=a.forwardRef((o,r)=>{const{asChild:s,...i}=o,c=s?B:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...i,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Ao="Switch",[Yv]=Vv(Ao),[zv,Xv]=Yv(Ao),jc=a.forwardRef((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:s,required:i,disabled:c,value:u="on",onCheckedChange:l,form:f,...d}=e,[p,g]=a.useState(null),v=Wv(t,y=>g(y)),m=a.useRef(!1),x=p?f||!!p.closest("form"):!0,[w=!1,C]=Kv({prop:r,defaultProp:s,onChange:l});
vendor: 1,812 bytes, line 50
50return h.jsxs(zv,{scope:n,checked:w,disabled:c,children:[h.jsx(Dc.button,{type:"button",role:"switch","aria-checked":w,"aria-required":i,"data-state":Fc(w),"data-disabled":c?"":void 0,disabled:c,value:u,...d,ref:v,onClick:Lv(e.onClick,y=>{C(S=>!S),x&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})}),x&&h.jsx(qv,{control:p,bubbles:!m.current,name:o,value:u,checked:w,required:i,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});jc.displayName=Ao;var kc="SwitchThumb",Lc=a.forwardRef((e,t)=>{const{__scopeSwitch:n,...o}=e,r=Xv(kc,n);return h.jsx(Dc.span,{"data-state":Fc(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});Lc.displayName=kc;var qv=e=>{const{control:t,checked:n,bubbles:o=!0,...r}=e,s=a.useRef(null),i=wo(n),c=Qn(t);return a.useEffect(()=>{const u=s.current,l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"checked").set;if(i!==n&&d){const p=new Event("click",{bubbles:o});d.call(u,n),u.dispatchEvent(p)}},[i,n,o]),h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Fc(e){return e?"checked":"unchecked"}var ig=jc,cg=Lc;export{kh as $,rh as A,fe as B,sh as C,oh as D,wo as E,Th as F,Qn as G,lh as H,Rh as I,dh as J,fh as K,zh as L,ph as M,mh as N,Ch as O,Jv as P,Mh as Q,th as R,B as S,nh as T,Nh as U,eh as V,Ih as W,Ah as X,Oh as Y,$h as Z,Dh as _,uh as a,Fh as a0,Lh as a1,Bh as a2,Wh as a3,jh as a4,Vh as a5,ng as a6,og as a7,vh as a8,hh as a9,fr as aa,rg as ab,sg as ac,ig as ad,cg as ae,ah as b,gh as c,wh as d,yh as e,Ph as f,Sh as g,xh as h,bh as i,Eh as j,_h as k,Kh as l,Gh as m,Yh as n,Hh as o,Xh as p,eg as q,tg as r,qh as s,Qh as t,Zh as u,Jh as v,U as w,ji as x,am as y,um 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.