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