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