PageSourceSearch

https://www.scient.com/assets/ui-vendor-Cy_VtHK6.js

js scient.com collected 2026-10-04 08:51:47 UTC 80,902 bytes, 50 lines download raw bytes

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

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.