PageSourceSearch

https://delivr.to/assets/ui-WgsiDFN4.js

js delivr.to collected 2026-10-03 22:10:09 UTC 105,828 bytes, 45 lines download raw bytes

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