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