PageSourceSearch

https://koreanchurch.be/assets/vendor-radix-NYo9MgP0.js

js koreanchurch.be collected 2026-10-08 16:26:31 UTC 125,775 bytes, 51 lines download raw bytes

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