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