PageSourceSearch

https://podefy.ai/assets/radix-vendor-C_Q67Kz1.js

js podefy.ai collected 2026-10-05 12:24:28 UTC 130,260 bytes, 58 lines download raw bytes

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