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