vendor: 13,559 bytes, lines 1-36
1import{c as we,r as a,j as l,w as Wt,x as fs,h as H,y as ps,z as ms,R as ve,a as We,b as Bt,m as hs,p as Gn,X as zt,n as Hn,g as vs,k as gs}from"./chunk-CvM6EP8f.js";/** 2 * @license lucide-react v0.484.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ys=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ft=we("check",ys);/** 7 * @license lucide-react v0.484.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const ws=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],xs=we("chevron-left",ws);/** 12 * @license lucide-react v0.484.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const bs=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Kn=we("chevron-right",bs);/** 17 * @license lucide-react v0.484.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const Cs=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Es=we("circle",Cs);/** 22 * @license lucide-react v0.484.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const Ss=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Vt=we("globe",Ss);/** 27 * @license lucide-react v0.484.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const Rs=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Yn=we("menu",Rs);/** 32 * @license lucide-react v0.484.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const Ms=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],Ns=we("phone",Ms);function yn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Be(...e){return t=>{let n=!1;const o=e.map(r=>{const s=yn(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():yn(e[r],null)}}}}function z(...e){return a.useCallback(Be(...e),e)}var Ps=Symbol.for("react.lazy"),rt=Wt[" use ".trim().toString()];function As(e){return typeof e=="object"&&e!==null&&"then"in e}function Xn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ps&&"_payload"in e&&As(e._payload)}function Ds(e){const t=Os(e),n=a.forwardRef((o,r)=>{let{children:s,...c}=o;Xn(s)&&typeof rt=="function"&&(s=rt(s._payload));const i=a.Children.toArray(s),p=i.find(Ts);if(p){const d=p.props.children,f=i.map(u=>u===p?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:u);return l.jsx(t,{...c,ref:r,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...c,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var _s=Ds("Slot");function Os(e){const t=a.forwardRef((n,o)=>{let{children:r,...s}=n;if(Xn(r)&&typeof rt=="function"&&(r=rt(r._payload)),a.isValidElement(r)){const c=ks(r),i=js(s,r.props);return r.type!==a.Fragment&&(i.ref=o?Be(o,c):c),a.cloneElement(r,i)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Is=Symbol("radix.slottable");function Ts(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Is}function js(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const p=s(...i);return r(...i),p}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function ks(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)}const wn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xn=fs,Ls=(e,t)=>n=>{var o;if(t?.variants==null)return xn(e,n?.class,n?.className);const{variants:r,defaultVariants:s}=t,c=Object.keys(r).map(d=>{const f=n?.[d],u=s?.[d];if(f===null)return null;const m=wn(f)||wn(u);return r[d][m]}),i=n&&Object.entries(n).reduce((d,f)=>{let[u,m]=f;return m===void 0||(d[u]=m),d},{}),p=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,f)=>{let{class:u,className:m,...v}=f;return Object.entries(v).every(y=>{let[h,g]=y;return Array.isArray(g)?g.includes({...s,...i}[h]):{...s,...i}[h]===g})?[...d,u,m]:d},[]);return xn(e,c,p,n?.class,n?.className)},Fs=Ls("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),xe=a.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},s)=>{const c=o?_s:"button";return l.jsx(c,{className:H(Fs({variant:t,size:n,className:e})),ref:s,...r})});xe.displayName="Button";function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function $s(e,t){const n=a.createContext(t),o=s=>{const{children:c,...i}=s,p=a.useMemo(()=>i,Object.values(i));return l.jsx(n.Provider,{value:p,children:c})};o.displayName=e+"Provider";function r(s){const c=a.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function Pe(e,t=[]){let n=[];function o(s,c){const i=a.createContext(c),p=n.length;n=[...n,c];const d=u=>{const{scope:m,children:v,...y}=u,h=m?.[e]?.[p]||i,g=a.useMemo(()=>y,Object.values(y));return l.jsx(h.Provider,{value:g,children:v})};d.displayName=s+"Provider";function f(u,m){const v=m?.[e]?.[p]||i,y=a.useContext(v);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[d,f]}const r=()=>{const s=n.map(c=>a.createContext(c));return function(i){const p=i?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...i,[e]:p}}),[i,p])}};return r.scopeName=e,[o,Ws(r,...t)]}function Ws(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const c=o.reduce((i,{useScope:p,scopeName:d})=>{const u=p(s)[`__scope${d}`];return{...i,...u}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var le=globalThis?.document?a.useLayoutEffect:()=>{},Bs=Wt[" useInsertionEffect ".trim().toString()]||le;function pt({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,c]=zs({defaultProp:t,onChange:n}),i=e!==void 0,p=i?e:r;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const u=f.current;u!==i&&console.warn(`${o} is changing from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,o])}const d=a.useCallback(f=>{if(i){const u=Vs(f)?f(e):f;u!==e&&c.current?.(u)}else s(f)},[i,e,s,c]);return[p,d]}function zs({defaultProp:e,onChange:t}){const[n,o]=a.useState(e),r=a.useRef(n),s=a.useRef(t);return Bs(()=>{s.current=t},[t]),a.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function Vs(e){return typeof e=="function"}var Ut=ms();const Us=ps(Ut);function je(e){const t=Gs(e),n=a.forwardRef((o,r)=>{const{children:s,...c}=o,i=a.Children.toArray(s),p=i.find(Hs);if(p){const d=p.props.children,f=i.map(u=>u===p?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:u);return l.jsx(t,{...c,ref:r,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...c,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Gs(e){const t=a.forwardRef((n,o)=>{const{children:r,...s}=n;if(a.isValidElement(r)){const c=Ys(r),i=Ks(s,r.props);return r.type!==a.Fragment&&(i.ref=o?Be(o,c):c),a.cloneElement(r,i)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qn=Symbol("radix.slottable");function Su(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=qn,t}function Hs(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qn}function Ks(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const p=s(...i);return r(...i),p}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Ys(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 Xs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],F=Xs.reduce((e,t)=>{const n=je(`Primitive.${t}`),o=a.forwardRef((r,s)=>{const{asChild:c,...i}=r,p=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(p,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Zn(e,t){e&&Ut.flushSync(()=>e.dispatchEvent(t))}function Qn(e){const t=e+"CollectionProvider",[n,o]=Pe(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=h=>{const{scope:g,children:w}=h,C=ve.useRef(null),x=ve.useRef(new Map).current;return l.jsx(r,{scope:g,itemMap:x,collectionRef:C,children:w})};c.displayName=t;const i=e+"CollectionSlot",p=je(i),d=ve.forwardRef((h,g)=>{const{scope:w,children:C}=h,x=s(i,w),b=z(g,x.collectionRef);return l.jsx(p,{ref:b,children:C})});d.displayName=i;const f=e+"CollectionItemSlot",u="data-radix-collection-item",m=je(f),v=ve.forwardRef((h,g)=>{const{scope:w,children:C,...x}=h,b=ve.useRef(null),E=z(g,b),M=s(f,w);return ve.useEffect(()=>(M.itemMap.set(b,{ref:b,...x}),()=>{M.itemMap.delete(b)})),l.jsx(m,{[u]:"",ref:E,children:C})});v.displayName=f;function y(h){const g=s(e+"CollectionConsumer",h);return ve.useCallback(()=>{const C=g.collectionRef.current;if(!C)return[];const x=Array.from(C.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((M,S)=>x.indexOf(M.ref.current)-x.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:d,ItemSlot:v},y,o]}var qs=a.createContext(void 0);function Jn(e){const t=a.useContext(qs);return e||t||"ltr"}function te(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Zs(e,t=globalThis?.document){const n=te(e);a.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Qs="DismissableLayer",It="dismissableLayer.update",Js="dismissableLayer.pointerDownOutside",ei="dismissableLayer.focusOutside",bn,eo=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gt=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:c,onDismiss:i,...p}=e,d=a.useContext(eo),[f,u]=a.useState(null),m=f?.ownerDocument??globalThis?.document,[,v]=a.useState({}),y=z(t,S=>u(S)),h=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(g),C=f?h.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,b=C>=w,E=oi(S=>{const N=S.target,O=[...d.branches].some(D=>D.contains(N));!b||O||(r?.(S),c?.(S),S.defaultPrevented||i?.())},m),M=ri(S=>{const N=S.target;[...d.branches].some(D=>D.contains(N))||(s?.(S),c?.(S),S.defaultPrevented||i?.())},m);return Zs(S=>{C===d.layers.size-1&&(o?.(S),!S.defaultPrevented&&i&&(S.preventDefault(),i()))},m),a.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(bn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Cn(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=bn)}},[f,m,n,d]),a.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Cn())},[f,d]),a.useEffect(()=>{const S=()=>v({});
vendor: 7,798 bytes, line 36
36return document.addEventListener(It,S),()=>document.removeEventListener(It,S)},[]),l.jsx(F.div,{...p,ref:y,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,M.onFocusCapture),onBlurCapture:A(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,E.onPointerDownCapture)})});Gt.displayName=Qs;var ti="DismissableLayerBranch",ni=a.forwardRef((e,t)=>{const n=a.useContext(eo),o=a.useRef(null),r=z(t,o);return a.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(F.div,{...e,ref:r})});ni.displayName=ti;function oi(e,t=globalThis?.document){const n=te(e),o=a.useRef(!1),r=a.useRef(()=>{});return a.useEffect(()=>{const s=i=>{if(i.target&&!o.current){let p=function(){to(Js,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=p,t.addEventListener("click",r.current,{once:!0})):p()}else t.removeEventListener("click",r.current);o.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function ri(e,t=globalThis?.document){const n=te(e),o=a.useRef(!1);return a.useEffect(()=>{const r=s=>{s.target&&!o.current&&to(ei,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Cn(){const e=new CustomEvent(It);document.dispatchEvent(e)}function to(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Zn(r,s):r.dispatchEvent(s)}var Et=0;function no(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??En()),document.body.insertAdjacentElement("beforeend",e[1]??En()),Et++,()=>{Et===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Et--}},[])}function En(){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 St="focusScope.autoFocusOnMount",Rt="focusScope.autoFocusOnUnmount",Sn={bubbles:!1,cancelable:!0},si="FocusScope",Ht=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...c}=e,[i,p]=a.useState(null),d=te(r),f=te(s),u=a.useRef(null),m=z(t,h=>p(h)),v=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let h=function(x){if(v.paused||!i)return;const b=x.target;i.contains(b)?u.current=b:ie(u.current,{select:!0})},g=function(x){if(v.paused||!i)return;const b=x.relatedTarget;b!==null&&(i.contains(b)||ie(u.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&ie(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const C=new MutationObserver(w);return i&&C.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),C.disconnect()}}},[o,i,v.paused]),a.useEffect(()=>{if(i){Mn.add(v);const h=document.activeElement;if(!i.contains(h)){const w=new CustomEvent(St,Sn);i.addEventListener(St,d),i.dispatchEvent(w),w.defaultPrevented||(ii(di(oo(i)),{select:!0}),document.activeElement===h&&ie(i))}return()=>{i.removeEventListener(St,d),setTimeout(()=>{const w=new CustomEvent(Rt,Sn);i.addEventListener(Rt,f),i.dispatchEvent(w),w.defaultPrevented||ie(h??document.body,{select:!0}),i.removeEventListener(Rt,f),Mn.remove(v)},0)}}},[i,d,f,v]);const y=a.useCallback(h=>{if(!n&&!o||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(g&&w){const C=h.currentTarget,[x,b]=ai(C);x&&b?!h.shiftKey&&w===b?(h.preventDefault(),n&&ie(x,{select:!0})):h.shiftKey&&w===x&&(h.preventDefault(),n&&ie(b,{select:!0})):w===C&&h.preventDefault()}},[n,o,v.paused]);return l.jsx(F.div,{tabIndex:-1,...c,ref:m,onKeyDown:y})});Ht.displayName=si;function ii(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ie(o,{select:t}),document.activeElement!==n)return}function ai(e){const t=oo(e),n=Rn(t,e),o=Rn(t.reverse(),e);return[n,o]}function oo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rn(e,t){for(const n of e)if(!ci(n,{upTo:t}))return n}function ci(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 li(e){return e instanceof HTMLInputElement&&"select"in e}function ie(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&li(e)&&t&&e.select()}}var Mn=ui();function ui(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Nn(e,t),e.unshift(t)},remove(t){e=Nn(e,t),e[0]?.resume()}}}function Nn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function di(e){return e.filter(t=>t.tagName!=="A")}var fi=Wt[" useId ".trim().toString()]||(()=>{}),pi=0;function ce(e){const[t,n]=a.useState(fi());return le(()=>{n(o=>o??String(pi++))},[e]),t?`radix-${t}`:""}const mi=["top","right","bottom","left"],ue=Math.min,U=Math.max,st=Math.round,Xe=Math.floor,ee=e=>({x:e,y:e}),hi={left:"right",right:"left",bottom:"top",top:"bottom"},vi={start:"end",end:"start"};function Tt(e,t,n){return U(e,ue(t,n))}function re(e,t){return typeof e=="function"?e(t):e}function se(e){return e.split("-")[0]}function Ae(e){return e.split("-")[1]}function Kt(e){return e==="x"?"y":"x"}function Yt(e){return e==="y"?"height":"width"}const gi=new Set(["top","bottom"]);function J(e){return gi.has(se(e))?"y":"x"}function Xt(e){return Kt(J(e))}function yi(e,t,n){n===void 0&&(n=!1);const o=Ae(e),r=Xt(e),s=Yt(r);let c=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=it(c)),[c,it(c)]}function wi(e){const t=it(e);return[jt(e),t,jt(t)]}function jt(e){return e.replace(/start|end/g,t=>vi[t])}const Pn=["left","right"],An=["right","left"],xi=["top","bottom"],bi=["bottom","top"];function Ci(e,t,n){switch(e){case"top":case"bottom":return n?t?An:Pn:t?Pn:An;case"left":case"right":return t?xi:bi;default:return[]}}function Ei(e,t,n,o){const r=Ae(e);let s=Ci(se(e),n==="start",o);return r&&(s=s.map(c=>c+"-"+r),t&&(s=s.concat(s.map(jt)))),s}function it(e){return e.replace(/left|right|bottom|top/g,t=>hi[t])}function Si(e){return{top:0,right:0,bottom:0,left:0,...e}}function ro(e){return typeof e!="number"?Si(e):{top:e,right:e,bottom:e,left:e}}function at(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Dn(e,t,n){let{reference:o,floating:r}=e;const s=J(t),c=Xt(t),i=Yt(c),p=se(t),d=s==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[i]/2-r[i]/2;let v;switch(p){case"top":v={x:f,y:o.y-r.height};break;case"bottom":v={x:f,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:u};break;case"left":v={x:o.x-r.width,y:u};break;default:v={x:o.x,y:o.y}}switch(Ae(t)){case"start":v[c]-=m*(n&&d?-1:1);break;case"end":v[c]+=m*(n&&d?-1:1);break}return v}const Ri=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:c}
vendor: 11,401 bytes, line 36
36=n,i=s.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(t));let d=await c.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:u}=Dn(d,o,p),m=o,v={},y=0;for(let h=0;h<i.length;h++){const{name:g,fn:w}=i[h],{x:C,y:x,data:b,reset:E}=await w({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:v,rects:d,platform:c,elements:{reference:e,floating:t}});f=C??f,u=x??u,v={...v,[g]:{...v[g],...b}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:f,y:u}=Dn(d,m,p)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:v}};async function ke(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:c,elements:i,strategy:p}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:v=0}=re(t,e),y=ro(v),g=i[m?u==="floating"?"reference":"floating":u],w=at(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:p})),C=u==="floating"?{x:o,y:r,width:c.floating.width,height:c.floating.height}:c.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),b=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},E=at(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:x,strategy:p}):C);return{top:(w.top-E.top+y.top)/b.y,bottom:(E.bottom-w.bottom+y.bottom)/b.y,left:(w.left-E.left+y.left)/b.x,right:(E.right-w.right+y.right)/b.x}}const Mi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:c,elements:i,middlewareData:p}=t,{element:d,padding:f=0}=re(e,t)||{};if(d==null)return{};const u=ro(f),m={x:n,y:o},v=Xt(r),y=Yt(v),h=await c.getDimensions(d),g=v==="y",w=g?"top":"left",C=g?"bottom":"right",x=g?"clientHeight":"clientWidth",b=s.reference[y]+s.reference[v]-m[v]-s.floating[y],E=m[v]-s.reference[v],M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let S=M?M[x]:0;(!S||!await(c.isElement==null?void 0:c.isElement(M)))&&(S=i.floating[x]||s.floating[y]);const N=b/2-E/2,O=S/2-h[y]/2-1,D=ue(u[w],O),I=ue(u[C],O),j=D,k=S-h[y]-I,T=S/2-h[y]/2+N,W=Tt(j,T,k),_=!p.arrow&&Ae(r)!=null&&T!==W&&s.reference[y]/2-(T<j?D:I)-h[y]/2<0,L=_?T<j?T-j:T-k:0;return{[v]:m[v]+L,data:{[v]:W,centerOffset:T-W-L,..._&&{alignmentOffset:L}},reset:_}}}),Ni=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:c,initialPlacement:i,platform:p,elements:d}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...g}=re(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=se(r),C=J(i),x=se(i)===i,b=await(p.isRTL==null?void 0:p.isRTL(d.floating)),E=m||(x||!h?[it(i)]:wi(i)),M=y!=="none";!m&&M&&E.push(...Ei(i,h,y,b));const S=[i,...E],N=await ke(t,g),O=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&O.push(N[w]),u){const T=yi(r,c,b);O.push(N[T[0]],N[T[1]])}if(D=[...D,{placement:r,overflows:O}],!O.every(T=>T<=0)){var I,j;const T=(((I=s.flip)==null?void 0:I.index)||0)+1,W=S[T];if(W&&(!(u==="alignment"?C!==J(W):!1)||D.every(P=>J(P.placement)===C?P.overflows[0]>0:!0)))return{data:{index:T,overflows:D},reset:{placement:W}};let _=(j=D.filter(L=>L.overflows[0]<=0).sort((L,P)=>L.overflows[1]-P.overflows[1])[0])==null?void 0:j.placement;if(!_)switch(v){case"bestFit":{var k;const L=(k=D.filter(P=>{if(M){const R=J(P.placement);return R===C||R==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(R=>R>0).reduce((R,B)=>R+B,0)]).sort((P,R)=>P[1]-R[1])[0])==null?void 0:k[0];L&&(_=L);break}case"initialPlacement":_=i;break}if(r!==_)return{reset:{placement:_}}}return{}}}};function _n(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function On(e){return mi.some(t=>e[t]>=0)}const Pi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=re(e,t);switch(o){case"referenceHidden":{const s=await ke(t,{...r,elementContext:"reference"}),c=_n(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:On(c)}}}case"escaped":{const s=await ke(t,{...r,altBoundary:!0}),c=_n(s,n.floating);return{data:{escapedOffsets:c,escaped:On(c)}}}default:return{}}}}},so=new Set(["left","top"]);async function Ai(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),c=se(n),i=Ae(n),p=J(n)==="y",d=so.has(c)?-1:1,f=s&&p?-1:1,u=re(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof y=="number"&&(v=i==="end"?y*-1:y),p?{x:v*f,y:m*d}:{x:m*d,y:v*f}}const Di=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:c,middlewareData:i}=t,p=await Ai(t,e);return c===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+p.x,y:s+p.y,data:{...p,placement:c}}}}},_i=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:i={fn:g=>{let{x:w,y:C}=g;return{x:w,y:C}}},...p}=re(e,t),d={x:n,y:o},f=await ke(t,p),u=J(se(r)),m=Kt(u);let v=d[m],y=d[u];if(s){const g=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=v+f[g],x=v-f[w];v=Tt(C,v,x)}if(c){const g=u==="y"?"top":"left",w=u==="y"?"bottom":"right",C=y+f[g],x=y-f[w];y=Tt(C,y,x)}const h=i.fn({...t,[m]:v,[u]:y});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:s,[u]:c}}}}}},Oi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:c}=t,{offset:i=0,mainAxis:p=!0,crossAxis:d=!0}=re(e,t),f={x:n,y:o},u=J(r),m=Kt(u);let v=f[m],y=f[u];const h=re(i,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(p){const x=m==="y"?"height":"width",b=s.reference[m]-s.floating[x]+g.mainAxis,E=s.reference[m]+s.reference[x]-g.mainAxis;v<b?v=b:v>E&&(v=E)}if(d){var w,C;const x=m==="y"?"width":"height",b=so.has(se(r)),E=s.reference[u]-s.floating[x]+(b&&((w=c.offset)==null?void 0:w[u])||0)+(b?0:g.crossAxis),M=s.reference[u]+s.reference[x]+(b?0:((C=c.offset)==null?void 0:C[u])||0)-(b?g.crossAxis:0);y<E?y=E:y>M&&(y=M)}return{[m]:v,[u]:y}}}},Ii=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:c,elements:i}=t,{apply:p=()=>{},...d}=re(e,t),f=await ke(t,d),u=se(r),m=Ae(r),v=J(r)==="y",{width:y,height:h}=s.floating;let g,w;u==="top"||u==="bottom"?(g=u,w=m===(await(c.isRTL==null?void 0:c.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,g=m==="end"?"top":"bottom");const C=h-f.top-f.bottom,x=y-f.left-f.right,b=ue(h-f[g],C),E=ue(y-f[w],x),M=!t.middlewareData.shift;let S=b,N=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=C),M&&!m){const D=U(f.left,0),I=U(f.right,0),j=U(f.top,0),k=U(f.bottom,0);v?N=y-2*(D!==0||I!==0?D+I:U(f.left,f.right)):S=h-2*(j!==0||k!==0?j+k:U(f.top,f.bottom))}await p({...t,availableWidth:N,availableHeight:S});const O=await c.getDimensions(i.floating);return y!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function De(e){return io(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oe(e){var t;return(t=(io(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function io(e){return mt()?e instanceof Node||e instanceof G(e).Node:!1}function Y(e){return mt()?e instanceof Element||e instanceof G(e).Element:!1}function ne(e){return mt()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function In(e){return!mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}const Ti=new Set(["inline","contents"]);function ze(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Ti.has(r)}const ji=new Set(["table","td","th"]);function ki(e){return ji.has(De(e))}const Li=[":popover-open",":modal"];function ht(e){return Li.some(t=>{try{return e.matches(t)}catch{return!1}})}const Fi=["transform","translate","scale","rotate","perspective"],$i=["transform","translate","scale","rotate","perspective","filter"],Wi=["paint","layout","strict","content"];function qt(e){const t=Zt(),n=Y(e)?X(e):e;return Fi.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||$i.some(o=>(n.willChange||"").includes(o))||Wi.some(o=>(n.contain||"").includes(o))}function Bi(e){let t=de(e);for(;ne(t)&&!Ne(t);){if(qt(t))return t;if(ht(t))return null;t=de(t)}return null}function Zt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zi=new Set(["html","body","#document"]);function Ne(e){return zi.has(De(e))}function X(e){return G(e).getComputedStyle(e)}function vt(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function de(e){if(De(e)==="html")return e;const t=e.assignedSlot||e.parentNode||In(e)&&e.host||oe(e);return In(t)?t.host:t}function ao(e){const t=de(e);return Ne(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&ze(t)?t:ao(t)}function Le(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ao(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),c=G(r);if(s){const i=kt(c);return t.concat(c,c.visualViewport||[],ze(r)?r:[],i&&n?Le(i):[])}return t.concat(r,Le(r,[],n))}function kt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function co(e){const t=X(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ne(e),s=r?e.offsetWidth:n,c=r?e.offsetHeight:o,i=st(n)!==s||st(o)!==c;return i&&(n=s,o=c),{width:n,height:o,$:i}}function Qt(e){return Y(e)?e:e.contextElement}function Re(e){const t=Qt(e);if(!ne(t))return ee(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=co(t);let c=(s?st(n.width):n.width)/o,i=(s?st(n.height):n.height)/r;return(!c||!Number.isFinite(c))&&(c=1),(!i||!Number.isFinite(i))&&(i=1),{x:c,y:i}}const Vi=ee(0);function lo(e){const t=G(e);return!Zt()||!t.visualViewport?Vi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ui(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==G(e)?!1:t}function ge(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Qt(e);let c=ee(1);t&&(o?Y(o)&&(c=Re(o)):c=Re(e));const i=Ui(s,n,o)?lo(s):ee(0);let p=(r.left+i.x)/c.x,d=(r.top+i.y)/c.y,f=r.width/c.x,u=r.height/c.y;if(s){const m=G(s),v=o&&Y(o)?G(o):o;let y=m,h=kt(y);for(;h&&o&&v!==y;){const g=Re(h),w=h.getBoundingClientRect(),C=X(h),x=w.left+(h.clientLeft+parseFloat(C.paddingLeft))*g.x,b=w.top+(h.clientTop+parseFloat(C.paddingTop))*g.y;p*=g.x,d*=g.y,f*=g.x,u*=g.y,p+=x,d+=b,y=G(h),h=kt(y)}}return at({width:f,height:u,x:p,y:d})}function gt(e,t){const n=vt(e).scrollLeft;
vendor: 20,221 bytes, line 36
36return t?t.left+n:ge(oe(e)).left+n}function uo(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Gi(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",c=oe(o),i=t?ht(t.floating):!1;if(o===c||i&&s)return n;let p={scrollLeft:0,scrollTop:0},d=ee(1);const f=ee(0),u=ne(o);if((u||!u&&!s)&&((De(o)!=="body"||ze(c))&&(p=vt(o)),ne(o))){const v=ge(o);d=Re(o),f.x=v.x+o.clientLeft,f.y=v.y+o.clientTop}const m=c&&!u&&!s?uo(c,p):ee(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-p.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-p.scrollTop*d.y+f.y+m.y}}function Hi(e){return Array.from(e.getClientRects())}function Ki(e){const t=oe(e),n=vt(e),o=e.ownerDocument.body,r=U(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=U(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+gt(e);const i=-n.scrollTop;return X(o).direction==="rtl"&&(c+=U(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:c,y:i}}const Tn=25;function Yi(e,t){const n=G(e),o=oe(e),r=n.visualViewport;let s=o.clientWidth,c=o.clientHeight,i=0,p=0;if(r){s=r.width,c=r.height;const f=Zt();(!f||f&&t==="fixed")&&(i=r.offsetLeft,p=r.offsetTop)}const d=gt(o);if(d<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),v=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(o.clientWidth-u.clientWidth-v);y<=Tn&&(s-=y)}else d<=Tn&&(s+=d);return{width:s,height:c,x:i,y:p}}const Xi=new Set(["absolute","fixed"]);function qi(e,t){const n=ge(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ne(e)?Re(e):ee(1),c=e.clientWidth*s.x,i=e.clientHeight*s.y,p=r*s.x,d=o*s.y;return{width:c,height:i,x:p,y:d}}function jn(e,t,n){let o;if(t==="viewport")o=Yi(e,n);else if(t==="document")o=Ki(oe(e));else if(Y(t))o=qi(t,n);else{const r=lo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return at(o)}function fo(e,t){const n=de(e);return n===t||!Y(n)||Ne(n)?!1:X(n).position==="fixed"||fo(n,t)}function Zi(e,t){const n=t.get(e);if(n)return n;let o=Le(e,[],!1).filter(i=>Y(i)&&De(i)!=="body"),r=null;const s=X(e).position==="fixed";let c=s?de(e):e;for(;Y(c)&&!Ne(c);){const i=X(c),p=qt(c);!p&&i.position==="fixed"&&(r=null),(s?!p&&!r:!p&&i.position==="static"&&!!r&&Xi.has(r.position)||ze(c)&&!p&&fo(e,c))?o=o.filter(f=>f!==c):r=i,c=de(c)}return t.set(e,o),o}function Qi(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const c=[...n==="clippingAncestors"?ht(t)?[]:Zi(t,this._c):[].concat(n),o],i=c[0],p=c.reduce((d,f)=>{const u=jn(t,f,r);return d.top=U(u.top,d.top),d.right=ue(u.right,d.right),d.bottom=ue(u.bottom,d.bottom),d.left=U(u.left,d.left),d},jn(t,i,r));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Ji(e){const{width:t,height:n}=co(e);return{width:t,height:n}}function ea(e,t,n){const o=ne(t),r=oe(t),s=n==="fixed",c=ge(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const p=ee(0);function d(){p.x=gt(r)}if(o||!o&&!s)if((De(t)!=="body"||ze(r))&&(i=vt(t)),o){const v=ge(t,!0,s,t);p.x=v.x+t.clientLeft,p.y=v.y+t.clientTop}else r&&d();s&&!o&&r&&d();const f=r&&!o&&!s?uo(r,i):ee(0),u=c.left+i.scrollLeft-p.x-f.x,m=c.top+i.scrollTop-p.y-f.y;return{x:u,y:m,width:c.width,height:c.height}}function Mt(e){return X(e).position==="static"}function kn(e,t){if(!ne(e)||X(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oe(e)===n&&(n=n.ownerDocument.body),n}function po(e,t){const n=G(e);if(ht(e))return n;if(!ne(e)){let r=de(e);for(;r&&!Ne(r);){if(Y(r)&&!Mt(r))return r;r=de(r)}return n}let o=kn(e,t);for(;o&&ki(o)&&Mt(o);)o=kn(o,t);return o&&Ne(o)&&Mt(o)&&!qt(o)?n:o||Bi(e)||n}const ta=async function(e){const t=this.getOffsetParent||po,n=this.getDimensions,o=await n(e.floating);return{reference:ea(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function na(e){return X(e).direction==="rtl"}const oa={convertOffsetParentRelativeRectToViewportRelativeRect:Gi,getDocumentElement:oe,getClippingRect:Qi,getOffsetParent:po,getElementRects:ta,getClientRects:Hi,getDimensions:Ji,getScale:Re,isElement:Y,isRTL:na};function mo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ra(e,t){let n=null,o;const r=oe(e);function s(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function c(i,p){i===void 0&&(i=!1),p===void 0&&(p=1),s();const d=e.getBoundingClientRect(),{left:f,top:u,width:m,height:v}=d;if(i||t(),!m||!v)return;const y=Xe(u),h=Xe(r.clientWidth-(f+m)),g=Xe(r.clientHeight-(u+v)),w=Xe(f),x={rootMargin:-y+"px "+-h+"px "+-g+"px "+-w+"px",threshold:U(0,ue(1,p))||1};let b=!0;function E(M){const S=M[0].intersectionRatio;if(S!==p){if(!b)return c();S?c(!1,S):o=setTimeout(()=>{c(!1,1e-7)},1e3)}S===1&&!mo(d,e.getBoundingClientRect())&&c(),b=!1}try{n=new IntersectionObserver(E,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return c(!0),s}function sa(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,d=Qt(e),f=r||s?[...d?Le(d):[],...Le(t)]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const u=d&&i?ra(d,n):null;let m=-1,v=null;c&&(v=new ResizeObserver(w=>{let[C]=w;C&&C.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),n()}),d&&!p&&v.observe(d),v.observe(t));let y,h=p?ge(e):null;p&&g();function g(){const w=ge(e);h&&!mo(h,w)&&n(),h=w,y=requestAnimationFrame(g)}return n(),()=>{var w;f.forEach(C=>{r&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),u?.(),(w=v)==null||w.disconnect(),v=null,p&&cancelAnimationFrame(y)}}const ia=Di,aa=_i,ca=Ni,la=Ii,ua=Pi,Ln=Mi,da=Oi,fa=(e,t,n)=>{const o=new Map,r={platform:oa,...n},s={...r.platform,_c:o};return Ri(e,t,{...r,platform:s})};var pa=typeof document<"u",ma=function(){},tt=pa?a.useLayoutEffect:ma;function ct(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ct(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!ct(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ho(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fn(e,t){const n=ho(e);return Math.round(t*n)/n}function Nt(e){const t=a.useRef(e);return tt(()=>{t.current=e}),t}function ha(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:c}={},transform:i=!0,whileElementsMounted:p,open:d}=e,[f,u]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=a.useState(o);ct(m,o)||v(o);const[y,h]=a.useState(null),[g,w]=a.useState(null),C=a.useCallback(P=>{P!==M.current&&(M.current=P,h(P))},[]),x=a.useCallback(P=>{P!==S.current&&(S.current=P,w(P))},[]),b=s||y,E=c||g,M=a.useRef(null),S=a.useRef(null),N=a.useRef(f),O=p!=null,D=Nt(p),I=Nt(r),j=Nt(d),k=a.useCallback(()=>{if(!M.current||!S.current)return;const P={placement:t,strategy:n,middleware:m};I.current&&(P.platform=I.current),fa(M.current,S.current,P).then(R=>{const B={...R,isPositioned:j.current!==!1};T.current&&!ct(N.current,B)&&(N.current=B,Ut.flushSync(()=>{u(B)}))})},[m,t,n,I,j]);tt(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,u(P=>({...P,isPositioned:!1})))},[d]);const T=a.useRef(!1);tt(()=>(T.current=!0,()=>{T.current=!1}),[]),tt(()=>{if(b&&(M.current=b),E&&(S.current=E),b&&E){if(D.current)return D.current(b,E,k);k()}},[b,E,k,D,O]);const W=a.useMemo(()=>({reference:M,floating:S,setReference:C,setFloating:x}),[C,x]),_=a.useMemo(()=>({reference:b,floating:E}),[b,E]),L=a.useMemo(()=>{const P={position:n,left:0,top:0};if(!_.floating)return P;const R=Fn(_.floating,f.x),B=Fn(_.floating,f.y);return i?{...P,transform:"translate("+R+"px, "+B+"px)",...ho(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:B}},[n,i,_.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:k,refs:W,elements:_,floatingStyles:L}),[f,k,W,_,L])}const va=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Ln({element:o.current,padding:r}).fn(n):{}:o?Ln({element:o,padding:r}).fn(n):{}}}},ga=(e,t)=>({...ia(e),options:[e,t]}),ya=(e,t)=>({...aa(e),options:[e,t]}),wa=(e,t)=>({...da(e),options:[e,t]}),xa=(e,t)=>({...ca(e),options:[e,t]}),ba=(e,t)=>({...la(e),options:[e,t]}),Ca=(e,t)=>({...ua(e),options:[e,t]}),Ea=(e,t)=>({...va(e),options:[e,t]});var Sa="Arrow",vo=a.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return l.jsx(F.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});vo.displayName=Sa;var Ra=vo;function Ma(e){const[t,n]=a.useState(void 0);return le(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let c,i;if("borderBoxSize"in s){const p=s.borderBoxSize,d=Array.isArray(p)?p[0]:p;c=d.inlineSize,i=d.blockSize}else c=e.offsetWidth,i=e.offsetHeight;n({width:c,height:i})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Jt="Popper",[go,yo]=Pe(Jt),[Na,wo]=go(Jt),xo=e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null);return l.jsx(Na,{scope:t,anchor:o,onAnchorChange:r,children:n})};xo.displayName=Jt;var bo="PopperAnchor",Co=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=wo(bo,n),c=a.useRef(null),i=z(t,c),p=a.useRef(null);return a.useEffect(()=>{const d=p.current;p.current=o?.current||c.current,d!==p.current&&s.onAnchorChange(p.current)}),o?null:l.jsx(F.div,{...r,ref:i})});Co.displayName=bo;var en="PopperContent",[Pa,Aa]=go(en),Eo=a.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:i=0,avoidCollisions:p=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:y,...h}=e,g=wo(en,n),[w,C]=a.useState(null),x=z(t,$=>C($)),[b,E]=a.useState(null),M=Ma(b),S=M?.width??0,N=M?.height??0,O=o+(s!=="center"?"-"+s:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(d)?d:[d],j=I.length>0,k={padding:D,boundary:I.filter(_a),altBoundary:j},{refs:T,floatingStyles:W,placement:_,isPositioned:L,middlewareData:P}=ha({strategy:"fixed",placement:O,whileElementsMounted:(...$)=>sa(...$,{animationFrame:v==="always"}),elements:{reference:g.anchor},middleware:[ga({mainAxis:r+N,alignmentAxis:c}),p&&ya({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?wa():void 0,...k}),p&&xa({...k}),ba({...k,apply:({elements:$,rects:Ie,availableWidth:cs,availableHeight:ls})=>{const{width:us,height:ds}=Ie.reference,Ye=$.floating.style;Ye.setProperty("--radix-popper-available-width",`${cs}px`),Ye.setProperty("--radix-popper-available-height",`${ls}px`),Ye.setProperty("--radix-popper-anchor-width",`${us}px`),Ye.setProperty("--radix-popper-anchor-height",`${ds}px`)}}),b&&Ea({element:b,padding:i}),Oa({arrowWidth:S,arrowHeight:N}),m&&Ca({strategy:"referenceHidden",...k})]}),[R,B]=Mo(_),Z=te(y);le(()=>{L&&Z?.()},[L,Z]);const me=P.arrow?.x,_e=P.arrow?.y,Oe=P.arrow?.centerOffset!==0,[Ke,he]=a.useState();return le(()=>{w&&he(window.getComputedStyle(w).zIndex)},[w]),l.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:L?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ke,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Pa,{scope:n,placedSide:R,onArrowChange:E,arrowX:me,arrowY:_e,shouldHideArrow:Oe,children:l.jsx(F.div,{"data-side":R,"data-align":B,...h,ref:x,style:{...h.style,animation:L?void 0:"none"}})})})});Eo.displayName=en;var So="PopperArrow",Da={top:"bottom",right:"left",bottom:"top",left:"right"},Ro=a.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=Aa(So,o),c=Da[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(Ra,{...r,ref:n,style:{...r.style,display:"block"}})})});Ro.displayName=So;function _a(e){return e!==null}var Oa=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,c=r.arrow?.centerOffset!==0,i=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[d,f]=Mo(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+i/2,v=(r.arrow?.y??0)+p/2;let y="",h="";return d==="bottom"?(y=c?u:`${m}px`,h=`${-p}px`):d==="top"?(y=c?u:`${m}px`,h=`${o.floating.height+p}px`):d==="right"?(y=`${-p}px`,h=c?u:`${v}px`):d==="left"&&(y=`${o.floating.width+p}px`,h=c?u:`${v}px`),{data:{x:y,y:h}}}});function Mo(e){const[t,n="center"]=e.split("-");return[t,n]}var No=xo,Ia=Co,Ta=Eo,ja=Ro,ka="Portal",tn=a.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=a.useState(!1);le(()=>s(!0),[]);const c=n||r&&globalThis?.document?.body;return c?Us.createPortal(l.jsx(F.div,{...o,ref:t}),c):null});tn.displayName=ka;function La(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}var fe=e=>{const{present:t,children:n}=e,o=Fa(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),s=z(o.ref,$a(r));return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:s}):null};fe.displayName="Presence";function Fa(e){const[t,n]=a.useState(),o=a.useRef(null),r=a.useRef(e),s=a.useRef("none"),c=e?"mounted":"unmounted",[i,p]=La(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const d=qe(o.current);s.current=i==="mounted"?d:"none"},[i]),le(()=>{const d=o.current,f=r.current;if(f!==e){const m=s.current,v=qe(d);e?p("MOUNT"):v==="none"||d?.display==="none"?p("UNMOUNT"):p(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,p]),le(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,u=v=>{const h=qe(o.current).includes(CSS.escape(v.animationName));if(v.target===t&&h&&(p("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(s.current=qe(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:a.useCallback(d=>{o.current=d?getComputedStyle(d):null,n(d)},[])}}function qe(e){return e?.animationName||"none"}function $a(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 Pt="rovingFocusGroup.onEntryFocus",Wa={bubbles:!1,cancelable:!0},Ve="RovingFocusGroup",[Lt,Po,Ba]=Qn(Ve),[za,Ao]=Pe(Ve,[Ba]),[Va,Ua]=za(Ve),Do=a.forwardRef((e,t)=>l.jsx(Lt.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Lt.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Ga,{...e,ref:t})})}));Do.displayName=Ve;var Ga=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:p,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...u}=e,m=a.useRef(null),v=z(t,m),y=Jn(s),[h,g]=pt({prop:c,defaultProp:i??null,onChange:p,caller:Ve}),[w,C]=a.useState(!1),x=te(d),b=Po(n),E=a.useRef(!1),[M,S]=a.useState(0);return a.useEffect(()=>{const N=m.current;if(N)return N.addEventListener(Pt,x),()=>N.removeEventListener(Pt,x)},[x]),l.jsx(Va,{scope:n,orientation:o,dir:y,loop:r,currentTabStopId:h,onItemFocus:a.useCallback(N=>g(N),[g]),onItemShiftTab:a.useCallback(()=>C(!0),[]),onFocusableItemAdd:a.useCallback(()=>S(N=>N+1),[]),onFocusableItemRemove:a.useCallback(()=>S(N=>N-1),[]),children:l.jsx(F.div,{tabIndex:w||M===0?-1:0,"data-orientation":o,...u,ref:v,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{E.current=!0}),onFocus:A(e.onFocus,N=>{const O=!E.current;if(N.target===N.currentTarget&&O&&!w){const D=new CustomEvent(Pt,Wa);if(N.currentTarget.dispatchEvent(D),!D.defaultPrevented){const I=b().filter(_=>_.focusable),j=I.find(_=>_.active),k=I.find(_=>_.id===h),W=[j,k,...I].filter(Boolean).map(_=>_.ref.current);Io(W,f)}}E.current=!1}),onBlur:A(e.onBlur,()=>C(!1))})})}),_o="RovingFocusGroupItem",Oo=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:c,...i}=e,p=ce(),d=s||p,f=Ua(_o,n),u=f.currentTabStopId===d,m=Po(n),{onFocusableItemAdd:v,onFocusableItemRemove:y,currentTabStopId:h}=f;return a.useEffect(()=>{if(o)return v(),()=>y()},[o,v,y]),l.jsx(Lt.ItemSlot,{scope:n,id:d,focusable:o,active:r,children:l.jsx(F.span,{tabIndex:u?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:A(e.onMouseDown,g=>{o?f.onItemFocus(d):g.preventDefault()}),onFocus:A(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:A(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){f.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const w=Ya(g,f.orientation,f.dir);if(w!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=m().filter(b=>b.focusable).map(b=>b.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const b=x.indexOf(g.currentTarget);x=f.loop?Xa(x,b+1):x.slice(b+1)}setTimeout(()=>Io(x))}}),children:typeof c=="function"?c({isCurrentTabStop:u,hasTabStop:h!=null}):c})})});Oo.displayName=_o;var Ha={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ka(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ya(e,t,n){const o=Ka(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ha[o]}function Io(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Xa(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var qa=Do,Za=Oo,Qa=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ce=new WeakMap,Ze=new WeakMap,Qe={},At=0,To=function(e){return e&&(e.host||To(e.parentNode))},Ja=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=To(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ec=function(e,t,n,o){var r=Ja(t,Array.isArray(e)?e:[e]);Qe[n]||(Qe[n]=new WeakMap);var s=Qe[n],c=[],i=new Set,p=new Set(r),d=function(u){!u||i.has(u)||(i.add(u),d(u.parentNode))};r.forEach(d);var f=function(u){!u||p.has(u)||Array.prototype.forEach.call(u.children,function(m){if(i.has(m))f(m);else try{var v=m.getAttribute(o),y=v!==null&&v!=="false",h=(Ce.get(m)||0)+1,g=(s.get(m)||0)+1;Ce.set(m,h),s.set(m,g),c.push(m),h===1&&y&&Ze.set(m,!0),g===1&&m.setAttribute(n,"true"),y||m.setAttribute(o,"true")}catch(w){console.error("aria-hidden: cannot operate on ",m,w)}})};
vendor: 6,070 bytes, lines 36-51
36return f(t),i.clear(),At++,function(){c.forEach(function(u){var m=Ce.get(u)-1,v=s.get(u)-1;Ce.set(u,m),s.set(u,v),m||(Ze.has(u)||u.removeAttribute(o),Ze.delete(u)),v||u.removeAttribute(n)}),At--,At||(Ce=new WeakMap,Ce=new WeakMap,Ze=new WeakMap,Qe={})}},jo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Qa(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),ec(o,r,n,"aria-hidden")):function(){return null}},Q=function(){return Q=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Q.apply(this,arguments)};function ko(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function tc(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var nt="right-scroll-bar-position",ot="width-before-scroll-bar",nc="with-scroll-bars-hidden",oc="--removed-body-scroll-bar-size";function Dt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rc(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var sc=typeof window<"u"?a.useLayoutEffect:a.useEffect,$n=new WeakMap;function ic(e,t){var n=rc(null,function(o){return e.forEach(function(r){return Dt(r,o)})});return sc(function(){var o=$n.get(n);if(o){var r=new Set(o),s=new Set(e),c=n.current;r.forEach(function(i){s.has(i)||Dt(i,null)}),s.forEach(function(i){r.has(i)||Dt(i,c)})}$n.set(n,e)},[e]),n}function ac(e){return e}function cc(e,t){t===void 0&&(t=ac);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var c=t(s,o);return n.push(c),function(){n=n.filter(function(i){return i!==c})}},assignSyncMedium:function(s){for(o=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var c=[];if(n.length){var i=n;n=[],i.forEach(s),c=n}var p=function(){var f=c;c=[],f.forEach(s)},d=function(){return Promise.resolve().then(p)};d(),n={push:function(f){c.push(f),d()},filter:function(f){return c=c.filter(f),n}}}};return r}function lc(e){e===void 0&&(e={});var t=cc(null);return t.options=Q({async:!0,ssr:!1},e),t}var Lo=function(e){var t=e.sideCar,n=ko(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return a.createElement(o,Q({},n))};Lo.isSideCarExport=!0;function uc(e,t){return e.useMedium(t),Lo}var Fo=lc(),_t=function(){},yt=a.forwardRef(function(e,t){var n=a.useRef(null),o=a.useState({onScrollCapture:_t,onWheelCapture:_t,onTouchMoveCapture:_t}),r=o[0],s=o[1],c=e.forwardProps,i=e.children,p=e.className,d=e.removeScrollBar,f=e.enabled,u=e.shards,m=e.sideCar,v=e.noRelative,y=e.noIsolation,h=e.inert,g=e.allowPinchZoom,w=e.as,C=w===void 0?"div":w,x=e.gapMode,b=ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,M=ic([n,t]),S=Q(Q({},b),r);return a.createElement(a.Fragment,null,f&&a.createElement(E,{sideCar:Fo,removeScrollBar:d,shards:u,noRelative:v,noIsolation:y,inert:h,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:x}),c?a.cloneElement(a.Children.only(i),Q(Q({},S),{ref:M})):a.createElement(C,Q({},S,{className:p,ref:M}),i))});yt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yt.classNames={fullWidth:ot,zeroRight:nt};var dc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dc();return t&&e.setAttribute("nonce",t),e}function pc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fc())&&(pc(t,n),mc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vc=function(){var e=hc();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$o=function(){var e=vc(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},gc={left:0,top:0,right:0,gap:0},Ot=function(e){return parseInt(e||"",10)||0},yc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ot(n),Ot(o),Ot(r)]},wc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gc;var t=yc(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},xc=$o(),Me="data-scroll-locked",bc=function(e,t,n,o){var r=e.left,s=e.top,c=e.right,i=e.gap;return n===void 0&&(n="margin"),` 37 .`.concat(nc,` { 38 overflow: hidden `).concat(o,`; 39 padding-right: `).concat(i,"px ").concat(o,`; 40 } 41 body[`).concat(Me,`] { 42 overflow: hidden `).concat(o,`; 43 overscroll-behavior: contain; 44 `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` 45 padding-left: `.concat(r,`px; 46 padding-top: `).concat(s,`px; 47 padding-right: `).concat(c,`px; 48 margin-left:0; 49 margin-top:0; 50 margin-right: `).concat(i,"px ").concat(o,`; 51 `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";
51")].filter(Boolean).join(""),` 52 } 53 54 .`).concat(nt,` { 55 right: `).concat(i,"px ").concat(o,`; 56 } 57 58 .`).concat(ot,` { 59 margin-right: `).concat(i,"px ").concat(o,`; 60 } 61 62 .`).concat(nt," .").concat(nt,` { 63 right: 0 `).concat(o,`; 64 } 65 66 .`).concat(ot," .").concat(ot,` { 67 margin-right: 0 `).concat(o,`; 68 } 69 70 body[`).concat(Me,`] { 71 `).concat(oc,": ").concat(i,`px; 72 } 73`)},Wn=function(){var e=parseInt(document.body.getAttribute(Me)||"0",10);return isFinite(e)?e:0},Cc=function(){a.useEffect(function(){return document.body.setAttribute(Me,(Wn()+1).toString()),function(){var e=Wn()-1;e<=0?document.body.removeAttribute(Me):document.body.setAttribute(Me,e.toString())}},[])},Ec=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Cc();var s=a.useMemo(function(){return wc(r)},[r]);return a.createElement(xc,{styles:bc(s,!t,r,n?"":"!important")})},Ft=!1;if(typeof window<"u")try{var Je=Object.defineProperty({},"passive",{get:function(){return Ft=!0,!0}});window.addEventListener("test",Je,Je),window.removeEventListener("test",Je,Je)}catch{Ft=!1}var Ee=Ft?{passive:!1}:!1,Sc=function(e){return e.tagName==="TEXTAREA"},Wo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Sc(e)&&n[t]==="visible")},Rc=function(e){return Wo(e,"overflowY")},Mc=function(e){return Wo(e,"overflowX")},Bn=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Bo(e,o);if(r){var s=zo(e,o),c=s[1],i=s[2];if(c>i)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Nc=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Pc=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Bo=function(e,t){return e==="v"?Rc(t):Mc(t)},zo=function(e,t){return e==="v"?Nc(t):Pc(t)},Ac=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dc=function(e,t,n,o,r){var s=Ac(e,window.getComputedStyle(t).direction),c=s*o,i=n.target,p=t.contains(i),d=!1,f=c>0,u=0,m=0;do{if(!i)break;var v=zo(e,i),y=v[0],h=v[1],g=v[2],w=h-g-s*y;(y||w)&&Bo(e,i)&&(u+=w,m+=y);var C=i.parentNode;i=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!p&&i!==document.body||p&&(t.contains(i)||t===i));return(f&&Math.abs(u)<1||!f&&Math.abs(m)<1)&&(d=!0),d},et=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zn=function(e){return[e.deltaX,e.deltaY]},Vn=function(e){return e&&"current"in e?e.current:e},_c=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Oc=function(e){return` 74 .block-interactivity-`.concat(e,` {pointer-events: none;} 75 .allow-interactivity-`).concat(e,` {pointer-events: all;} 76`)},Ic=0,Se=[];function Tc(e){var t=a.useRef([]),n=a.useRef([0,0]),o=a.useRef(),r=a.useState(Ic++)[0],s=a.useState($o)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var h=tc([e.lockRef.current],(e.shards||[]).map(Vn),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var i=a.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!c.current.allowPinchZoom;var w=et(h),C=n.current,x="deltaX"in h?h.deltaX:C[0]-w[0],b="deltaY"in h?h.deltaY:C[1]-w[1],E,M=h.target,S=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in h&&S==="h"&&M.type==="range")return!1;var N=window.getSelection(),O=N&&N.anchorNode,D=O?O===M||O.contains(M):!1;if(D)return!1;var I=Bn(S,M);if(!I)return!0;if(I?E=S:(E=S==="v"?"h":"v",I=Bn(S,M)),!I)return!1;if(!o.current&&"changedTouches"in h&&(x||b)&&(o.current=E),!E)return!0;var j=o.current||E;return Dc(j,g,h,j==="h"?x:b)},[]),p=a.useCallback(function(h){var g=h;if(!(!Se.length||Se[Se.length-1]!==s)){var w="deltaY"in g?zn(g):et(g),C=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&_c(E.delta,w)})[0];if(C&&C.should){g.cancelable&&g.preventDefault();return}
vendor: 16,774 bytes, line 76
76if(!C){var x=(c.current.shards||[]).map(Vn).filter(Boolean).filter(function(E){return E.contains(g.target)}),b=x.length>0?i(g,x[0]):!c.current.noIsolation;b&&g.cancelable&&g.preventDefault()}}},[]),d=a.useCallback(function(h,g,w,C){var x={name:h,delta:g,target:w,should:C,shadowParent:jc(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),f=a.useCallback(function(h){n.current=et(h),o.current=void 0},[]),u=a.useCallback(function(h){d(h.type,zn(h),h.target,i(h,e.lockRef.current))},[]),m=a.useCallback(function(h){d(h.type,et(h),h.target,i(h,e.lockRef.current))},[]);a.useEffect(function(){return Se.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",p,Ee),document.addEventListener("touchmove",p,Ee),document.addEventListener("touchstart",f,Ee),function(){Se=Se.filter(function(h){return h!==s}),document.removeEventListener("wheel",p,Ee),document.removeEventListener("touchmove",p,Ee),document.removeEventListener("touchstart",f,Ee)}},[]);var v=e.removeScrollBar,y=e.inert;return a.createElement(a.Fragment,null,y?a.createElement(s,{styles:Oc(r)}):null,v?a.createElement(Ec,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kc=uc(Fo,Tc);var nn=a.forwardRef(function(e,t){return a.createElement(yt,Q({},e,{ref:t,sideCar:kc}))});nn.classNames=yt.classNames;var $t=["Enter"," "],Lc=["ArrowDown","PageUp","Home"],Vo=["ArrowUp","PageDown","End"],Fc=[...Lc,...Vo],$c={ltr:[...$t,"ArrowRight"],rtl:[...$t,"ArrowLeft"]},Wc={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ue="Menu",[Fe,Bc,zc]=Qn(Ue),[be,Uo]=Pe(Ue,[zc,yo,Ao]),Ge=yo(),Go=Ao(),[Ho,pe]=be(Ue),[Vc,He]=be(Ue),Ko=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:c=!0}=e,i=Ge(t),[p,d]=a.useState(null),f=a.useRef(!1),u=te(s),m=Jn(r);return a.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),l.jsx(No,{...i,children:l.jsx(Ho,{scope:t,open:n,onOpenChange:u,content:p,onContentChange:d,children:l.jsx(Vc,{scope:t,onClose:a.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:m,modal:c,children:o})})})};Ko.displayName=Ue;var Uc="MenuAnchor",on=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Ge(n);return l.jsx(Ia,{...r,...o,ref:t})});on.displayName=Uc;var rn="MenuPortal",[Gc,Yo]=be(rn,{forceMount:void 0}),Xo=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=pe(rn,t);return l.jsx(Gc,{scope:t,forceMount:n,children:l.jsx(fe,{present:n||s.open,children:l.jsx(tn,{asChild:!0,container:r,children:o})})})};Xo.displayName=rn;var K="MenuContent",[Hc,sn]=be(K),qo=a.forwardRef((e,t)=>{const n=Yo(K,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=pe(K,e.__scopeMenu),c=He(K,e.__scopeMenu);return l.jsx(Fe.Provider,{scope:e.__scopeMenu,children:l.jsx(fe,{present:o||s.open,children:l.jsx(Fe.Slot,{scope:e.__scopeMenu,children:c.modal?l.jsx(Kc,{...r,ref:t}):l.jsx(Yc,{...r,ref:t})})})})}),Kc=a.forwardRef((e,t)=>{const n=pe(K,e.__scopeMenu),o=a.useRef(null),r=z(t,o);return a.useEffect(()=>{const s=o.current;if(s)return jo(s)},[]),l.jsx(an,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:A(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Yc=a.forwardRef((e,t)=>{const n=pe(K,e.__scopeMenu);return l.jsx(an,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Xc=je("MenuContent.ScrollLock"),an=a.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:i,onEntryFocus:p,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:v,disableOutsideScroll:y,...h}=e,g=pe(K,n),w=He(K,n),C=Ge(n),x=Go(n),b=Bc(n),[E,M]=a.useState(null),S=a.useRef(null),N=z(t,S,g.onContentChange),O=a.useRef(0),D=a.useRef(""),I=a.useRef(0),j=a.useRef(null),k=a.useRef("right"),T=a.useRef(0),W=y?nn:a.Fragment,_=y?{as:Xc,allowPinchZoom:!0}:void 0,L=R=>{const B=D.current+R,Z=b().filter($=>!$.disabled),me=document.activeElement,_e=Z.find($=>$.ref.current===me)?.textValue,Oe=Z.map($=>$.textValue),Ke=al(Oe,B,_e),he=Z.find($=>$.textValue===Ke)?.ref.current;(function $(Ie){D.current=Ie,window.clearTimeout(O.current),Ie!==""&&(O.current=window.setTimeout(()=>$(""),1e3))})(B),he&&setTimeout(()=>he.focus())};a.useEffect(()=>()=>window.clearTimeout(O.current),[]),no();const P=a.useCallback(R=>k.current===j.current?.side&&ll(R,j.current?.area),[]);return l.jsx(Hc,{scope:n,searchRef:D,onItemEnter:a.useCallback(R=>{P(R)&&R.preventDefault()},[P]),onItemLeave:a.useCallback(R=>{P(R)||(S.current?.focus(),M(null))},[P]),onTriggerLeave:a.useCallback(R=>{P(R)&&R.preventDefault()},[P]),pointerGraceTimerRef:I,onPointerGraceIntentChange:a.useCallback(R=>{j.current=R},[]),children:l.jsx(W,{..._,children:l.jsx(Ht,{asChild:!0,trapped:r,onMountAutoFocus:A(s,R=>{R.preventDefault(),S.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:l.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:v,children:l.jsx(qa,{asChild:!0,...x,dir:w.dir,orientation:"vertical",loop:o,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:A(p,R=>{w.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(Ta,{role:"menu","aria-orientation":"vertical","data-state":pr(g.open),"data-radix-menu-content":"",dir:w.dir,...C,...h,ref:N,style:{outline:"none",...h.style},onKeyDown:A(h.onKeyDown,R=>{const Z=R.target.closest("[data-radix-menu-content]")===R.currentTarget,me=R.ctrlKey||R.altKey||R.metaKey,_e=R.key.length===1;Z&&(R.key==="Tab"&&R.preventDefault(),!me&&_e&&L(R.key));const Oe=S.current;if(R.target!==Oe||!Fc.includes(R.key))return;R.preventDefault();const he=b().filter($=>!$.disabled).map($=>$.ref.current);Vo.includes(R.key)&&he.reverse(),sl(he)}),onBlur:A(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(O.current),D.current="")}),onPointerMove:A(e.onPointerMove,$e(R=>{const B=R.target,Z=T.current!==R.clientX;if(R.currentTarget.contains(B)&&Z){const me=R.clientX>T.current?"right":"left";k.current=me,T.current=R.clientX}}))})})})})})})});qo.displayName=K;var qc="MenuGroup",cn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(F.div,{role:"group",...o,ref:t})});cn.displayName=qc;var Zc="MenuLabel",Zo=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(F.div,{...o,ref:t})});Zo.displayName=Zc;var lt="MenuItem",Un="menu.itemSelect",wt=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=a.useRef(null),c=He(lt,e.__scopeMenu),i=sn(lt,e.__scopeMenu),p=z(t,s),d=a.useRef(!1),f=()=>{const u=s.current;if(!n&&u){const m=new CustomEvent(Un,{bubbles:!0,cancelable:!0});u.addEventListener(Un,v=>o?.(v),{once:!0}),Zn(u,m),m.defaultPrevented?d.current=!1:c.onClose()}};return l.jsx(Qo,{...r,ref:p,disabled:n,onClick:A(e.onClick,f),onPointerDown:u=>{e.onPointerDown?.(u),d.current=!0},onPointerUp:A(e.onPointerUp,u=>{d.current||u.currentTarget?.click()}),onKeyDown:A(e.onKeyDown,u=>{const m=i.searchRef.current!=="";n||m&&u.key===" "||$t.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});wt.displayName=lt;var Qo=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,c=sn(lt,n),i=Go(n),p=a.useRef(null),d=z(t,p),[f,u]=a.useState(!1),[m,v]=a.useState("");return a.useEffect(()=>{const y=p.current;y&&v((y.textContent??"").trim())},[s.children]),l.jsx(Fe.ItemSlot,{scope:n,disabled:o,textValue:r??m,children:l.jsx(Za,{asChild:!0,...i,focusable:!o,children:l.jsx(F.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:A(e.onPointerMove,$e(y=>{o?c.onItemLeave(y):(c.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:A(e.onPointerLeave,$e(y=>c.onItemLeave(y))),onFocus:A(e.onFocus,()=>u(!0)),onBlur:A(e.onBlur,()=>u(!1))})})})}),Qc="MenuCheckboxItem",Jo=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return l.jsx(rr,{scope:e.__scopeMenu,checked:n,children:l.jsx(wt,{role:"menuitemcheckbox","aria-checked":ut(n)?"mixed":n,...r,ref:t,"data-state":dn(n),onSelect:A(r.onSelect,()=>o?.(ut(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Jo.displayName=Qc;var er="MenuRadioGroup",[Jc,el]=be(er,{value:void 0,onValueChange:()=>{}}),tr=a.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=te(o);return l.jsx(Jc,{scope:e.__scopeMenu,value:n,onValueChange:s,children:l.jsx(cn,{...r,ref:t})})});tr.displayName=er;var nr="MenuRadioItem",or=a.forwardRef((e,t)=>{const{value:n,...o}=e,r=el(nr,e.__scopeMenu),s=n===r.value;return l.jsx(rr,{scope:e.__scopeMenu,checked:s,children:l.jsx(wt,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":dn(s),onSelect:A(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});or.displayName=nr;var ln="MenuItemIndicator",[rr,tl]=be(ln,{checked:!1}),sr=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=tl(ln,n);return l.jsx(fe,{present:o||ut(s.checked)||s.checked===!0,children:l.jsx(F.span,{...r,ref:t,"data-state":dn(s.checked)})})});sr.displayName=ln;var nl="MenuSeparator",ir=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return l.jsx(F.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});ir.displayName=nl;var ol="MenuArrow",ar=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Ge(n);return l.jsx(ja,{...r,...o,ref:t})});ar.displayName=ol;var un="MenuSub",[rl,cr]=be(un),lr=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=pe(un,t),c=Ge(t),[i,p]=a.useState(null),[d,f]=a.useState(null),u=te(r);return a.useEffect(()=>(s.open===!1&&u(!1),()=>u(!1)),[s.open,u]),l.jsx(No,{...c,children:l.jsx(Ho,{scope:t,open:o,onOpenChange:u,content:d,onContentChange:f,children:l.jsx(rl,{scope:t,contentId:ce(),triggerId:ce(),trigger:i,onTriggerChange:p,children:n})})})};lr.displayName=un;var Te="MenuSubTrigger",ur=a.forwardRef((e,t)=>{const n=pe(Te,e.__scopeMenu),o=He(Te,e.__scopeMenu),r=cr(Te,e.__scopeMenu),s=sn(Te,e.__scopeMenu),c=a.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:p}=s,d={__scopeMenu:e.__scopeMenu},f=a.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return a.useEffect(()=>f,[f]),a.useEffect(()=>{const u=i.current;return()=>{window.clearTimeout(u),p(null)}},[i,p]),l.jsx(on,{asChild:!0,...d,children:l.jsx(Qo,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":pr(n.open),...e,ref:Be(t,r.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:A(e.onPointerMove,$e(u=>{s.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:A(e.onPointerLeave,$e(u=>{f();const m=n.content?.getBoundingClientRect();if(m){const v=n.content?.dataset.side,y=v==="right",h=y?-5:5,g=m[y?"left":"right"],w=m[y?"right":"left"];s.onPointerGraceIntentChange({area:[{x:u.clientX+h,y:u.clientY},{x:g,y:m.top},{x:w,y:m.top},{x:w,y:m.bottom},{x:g,y:m.bottom}],side:v}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(u),u.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:A(e.onKeyDown,u=>{const m=s.searchRef.current!=="";e.disabled||m&&u.key===" "||$c[o.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});ur.displayName=Te;var dr="MenuSubContent",fr=a.forwardRef((e,t)=>{const n=Yo(K,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=pe(K,e.__scopeMenu),c=He(K,e.__scopeMenu),i=cr(dr,e.__scopeMenu),p=a.useRef(null),d=z(t,p);return l.jsx(Fe.Provider,{scope:e.__scopeMenu,children:l.jsx(fe,{present:o||s.open,children:l.jsx(Fe.Slot,{scope:e.__scopeMenu,children:l.jsx(an,{id:i.contentId,"aria-labelledby":i.triggerId,...r,ref:d,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{c.isUsingKeyboardRef.current&&p.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:A(e.onFocusOutside,f=>{f.target!==i.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:A(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:A(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),m=Wc[c.dir].includes(f.key);u&&m&&(s.onOpenChange(!1),i.trigger?.focus(),f.preventDefault())})})})})})});fr.displayName=dr;function pr(e){return e?"open":"closed"}function ut(e){return e==="indeterminate"}function dn(e){return ut(e)?"indeterminate":e?"checked":"unchecked"}function sl(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function il(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function al(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=il(e,Math.max(s,0));r.length===1&&(c=c.filter(d=>d!==n));const p=c.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return p!==n?p:void 0}function cl(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const i=t[s],p=t[c],d=i.x,f=i.y,u=p.x,m=p.y;f>o!=m>o&&n<(u-d)*(o-f)/(m-f)+d&&(r=!r)}return r}function ll(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return cl(n,t)}function $e(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ul=Ko,dl=on,fl=Xo,pl=qo,ml=cn,hl=Zo,vl=wt,gl=Jo,yl=tr,wl=or,xl=sr,bl=ir,Cl=ar,El=lr,Sl=ur,Rl=fr,xt="DropdownMenu",[Ml]=Pe(xt,[Uo]),V=Uo(),[Nl,mr]=Ml(xt),hr=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:c,modal:i=!0}=e,p=V(t),d=a.useRef(null),[f,u]=pt({prop:r,defaultProp:s??!1,onChange:c,caller:xt});return l.jsx(Nl,{scope:t,triggerId:ce(),triggerRef:d,contentId:ce(),open:f,onOpenChange:u,onOpenToggle:a.useCallback(()=>u(m=>!m),[u]),modal:i,children:l.jsx(ul,{...p,open:f,onOpenChange:u,dir:o,modal:i,children:n})})};hr.displayName=xt;var vr="DropdownMenuTrigger",gr=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=mr(vr,n),c=V(n);return l.jsx(dl,{asChild:!0,...c,children:l.jsx(F.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Be(t,s.triggerRef),onPointerDown:A(e.onPointerDown,i=>{!o&&i.button===0&&i.ctrlKey===!1&&(s.onOpenToggle(),s.open||i.preventDefault())}),onKeyDown:A(e.onKeyDown,i=>{o||(["Enter"," "].includes(i.key)&&s.onOpenToggle(),i.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});gr.displayName=vr;var Pl="DropdownMenuPortal",yr=e=>{const{__scopeDropdownMenu:t,...n}=e,o=V(t);return l.jsx(fl,{...o,...n})};yr.displayName=Pl;var wr="DropdownMenuContent",xr=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=mr(wr,n),s=V(n),c=a.useRef(!1);return l.jsx(pl,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:A(e.onCloseAutoFocus,i=>{c.current||r.triggerRef.current?.focus(),c.current=!1,i.preventDefault()}),onInteractOutside:A(e.onInteractOutside,i=>{const p=i.detail.originalEvent,d=p.button===0&&p.ctrlKey===!0,f=p.button===2||d;(!r.modal||f)&&(c.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)"}})});xr.displayName=wr;var Al="DropdownMenuGroup",Dl=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(ml,{...r,...o,ref:t})});Dl.displayName=Al;var _l="DropdownMenuLabel",br=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(hl,{...r,...o,ref:t})});br.displayName=_l;var Ol="DropdownMenuItem",Cr=a.forwardRef((e,t)=>
76{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(vl,{...r,...o,ref:t})});Cr.displayName=Ol;var Il="DropdownMenuCheckboxItem",Er=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(gl,{...r,...o,ref:t})});Er.displayName=Il;var Tl="DropdownMenuRadioGroup",jl=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(yl,{...r,...o,ref:t})});jl.displayName=Tl;var kl="DropdownMenuRadioItem",Sr=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(wl,{...r,...o,ref:t})});Sr.displayName=kl;var Ll="DropdownMenuItemIndicator",Rr=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(xl,{...r,...o,ref:t})});Rr.displayName=Ll;var Fl="DropdownMenuSeparator",Mr=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(bl,{...r,...o,ref:t})});Mr.displayName=Fl;var $l="DropdownMenuArrow",Wl=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(Cl,{...r,...o,ref:t})});Wl.displayName=$l;var Bl=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,c=V(t),[i,p]=pt({prop:o,defaultProp:s??!1,onChange:r,caller:"DropdownMenuSub"});return l.jsx(El,{...c,open:i,onOpenChange:p,children:n})},zl="DropdownMenuSubTrigger",Nr=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(Sl,{...r,...o,ref:t})});Nr.displayName=zl;var Vl="DropdownMenuSubContent",Pr=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return l.jsx(Rl,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pr.displayName=Vl;var Ul=hr,Gl=gr,Hl=yr,Ar=xr,Dr=br,_r=Cr,Or=Er,Ir=Sr,Tr=Rr,jr=Mr,Kl=Bl,kr=Nr,Lr=Pr;const fn=Ul,pn=Gl,Yl=Kl,Fr=a.forwardRef(({className:e,inset:t,children:n,...o},r)=>l.jsxs(kr,{ref:r,className:H("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[n,l.jsx(Kn,{className:"ml-auto"})]}));Fr.displayName=kr.displayName;const $r=a.forwardRef(({className:e,...t},n)=>l.jsx(Lr,{ref:n,className:H("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));$r.displayName=Lr.displayName;const bt=a.forwardRef(({className:e,sideOffset:t=4,...n},o)=>l.jsx(Hl,{children:l.jsx(Ar,{ref:o,sideOffset:t,className:H("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));bt.displayName=Ar.displayName;const ae=a.forwardRef(({className:e,inset:t,...n},o)=>l.jsx(_r,{ref:o,className:H("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-black focus:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));ae.displayName=_r.displayName;const Xl=a.forwardRef(({className:e,children:t,checked:n,...o},r)=>l.jsxs(Or,{ref:r,className:H("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Tr,{children:l.jsx(ft,{className:"h-4 w-4"})})}),t]}));Xl.displayName=Or.displayName;const ql=a.forwardRef(({className:e,children:t,...n},o)=>l.jsxs(Ir,{ref:o,className:H("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Tr,{children:l.jsx(Es,{className:"h-2 w-2 fill-current"})})}),t]}));ql.displayName=Ir.displayName;const Zl=a.forwardRef(({className:e,inset:t,...n},o)=>l.jsx(Dr,{ref:o,className:H("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Zl.displayName=Dr.displayName;const Ql=a.forwardRef(({className:e,...t},n)=>l.jsx(jr,{ref:n,className:H("-mx-1 my-1 h-px bg-muted",e),...t}));Ql.displayName=jr.displayName;function Jl({t:e,vehicleMakes:t,lp:n}){return l.jsxs(fn,{children:[l.jsx(pn,{asChild:!0,children:l.jsx(xe,{variant:"ghost",size:"icon",className:"text-white hover:text-white hover:bg-gray-800 data-[state=open]:bg-gray-800 [&_svg]:!h-7 [&_svg]:!w-7",children:l.jsx(Yn,{})})}),l.jsxs(bt,{align:"end",className:"w-56",children:[l.jsx(ae,{children:l.jsx("a",{href:"https://seller.bidbus.com",className:"w-full",children:e("header.login")})}),l.jsx(ae,{children:l.jsx("a",{href:"https://seller.bidbus.com",className:"w-full",children:e("header.dashboard")})}),l.jsx(ae,{children:l.jsx("a",{href:n("/pm/contact-us"),className:"w-full",children:e("header.contactUs")})}),l.jsxs(Yl,{children:[l.jsx(Fr,{className:"w-full",children:e("header.viewPastResults")}),l.jsx($r,{className:"max-h-[400px] overflow-y-auto",children:t.length>0?t.map(o=>l.jsx(ae,{asChild:!0,children:l.jsx("a",{href:n(Gn(o.make)),className:"w-full",children:o.make})},o.make)):l.jsx(ae,{disabled:!0,children:e("header.noData")})})]})]})]})}function eu({t:e,vehicleMakes:t,hasVehicle:n,lp:o}){const[r,s]=a.useState(!1),[c,i]=a.useState(!1);a.useEffect(()=>{if(r){const u=window.scrollY;document.body.style.position="fixed",document.body.style.top=`-${u}px`,document.body.style.width="100%",document.body.style.overflow="hidden"}else{const u=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",window.scrollTo(0,parseInt(u||"0")*-1);const m=setTimeout(()=>i(!1),300);return()=>clearTimeout(m)}return()=>{const u=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",window.scrollTo(0,parseInt(u||"0")*-1)}},[r]);const p=a.useCallback(()=>s(!1),[]);a.useEffect(()=>(window.addEventListener("closeMobileMenu",p),window.addEventListener("closeMobileMainMenu",p),()=>{window.removeEventListener("closeMobileMenu",p),window.removeEventListener("closeMobileMainMenu",p)}),[p]);const d=a.useCallback(()=>{s(u=>(u||window.dispatchEvent(new CustomEvent("closeMobileLangMenu")),!u))},[]),f=[{label:e("header.login"),href:"https://seller.bidbus.com"},{label:e("header.dashboard"),href:"https://seller.bidbus.com"},n?{label:e("header.myListings"),href:"https://seller.bidbus.com"}:{label:e("header.sellMyCar"),href:o("/")},{label:e("header.howItWorks"),href:o("/pm/how-it-works")},{label:e("header.reviews"),href:o("/pm/reviews")},{label:e("header.blog"),href:"https://bidbus.com/blog/",external:!0},{label:e("header.helpCenter"),href:"https://bidbus.com/help/",external:!0},{label:e("header.contactUs"),href:o("/pm/contact-us")}];return l.jsxs(l.Fragment,{children:[l.jsx(xe,{variant:"ghost",size:"icon",className:"text-white hover:text-white hover:bg-gray-800 [&_svg]:!h-7 [&_svg]:!w-7 ",onClick:d,children:l.jsx(Yn,{})}),l.jsx("div",{className:"fixed top-[52px] left-0 right-0 bottom-0 z-40 overflow-hidden pointer-events-none",children:l.jsx("div",{className:`h-full bg-white transition-transform duration-300 ease-in-out ${r?"translate-y-0 pointer-events-auto":"-translate-y-full"}`,children:l.jsx("div",{className:"h-full overflow-hidden",children:l.jsxs("div",{className:`flex h-full transition-transform duration-300 ease-in-out ${c?"-translate-x-1/2":"translate-x-0"}`,style:{width:"200%"},children:[l.jsxs("div",{className:"w-1/2 h-full overflow-y-auto px-7 py-2 relative",children:[l.jsx("button",{className:"absolute top-6 right-6 z-10 w-8 h-8",onClick:p,children:l.jsx(zt,{className:"h-8 w-8 text-[#333] hover:text-[#333] transition-colors"})}),f.map((u,m)=>l.jsx("a",{href:u.href,className:"block py-3 text-[32px] leading-[40px] font-medium text-[#333] no-underline",style:{fontFamily:"Poppins, sans-serif"},onClick:p,...u.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:u.label},m)),l.jsxs("button",{className:"flex items-center justify-between w-full py-3 text-[32px] leading-[40px] font-medium text-[#333] text-left",style:{fontFamily:"Poppins, sans-serif"},onClick:()=>i(!0),children:[e("header.viewPastResults"),l.jsx(Kn,{className:"h-6 w-6"})]})]}),l.jsxs("div",{className:"w-1/2 h-full overflow-y-auto px-7 py-3",children:[l.jsxs("button",{className:"flex items-center gap-1 py-3 text-[22px] leading-[40px] font-medium text-[#666]",style:{fontFamily:"Poppins, sans-serif"},onClick:()=>i(!1),children:[l.jsx(xs,{className:"h-7 w-7"}),e("header.back")]}),l.jsx("p",{className:"py-3 text-[32px] leading-[40px] font-medium text-[#333]",style:{fontFamily:"Poppins, sans-serif"},children:e("header.searchByMake")}),t.map(u=>l.jsx("a",{href:o(Gn(u.make)),className:"block py-3 text-[32px] leading-[40px] font-medium text-[#333] no-underline",style:{fontFamily:"Poppins, sans-serif"},onClick:p,children:u.make},u.make))]})]})})})})]})}function tu({hasVehicle:e}){const{t}=We(),n=Bt(),{vehicleMakes:o=[]}=hs(),[r,s]=a.useState(!1);return a.useEffect(()=>{const c=()=>s(window.innerWidth<961);return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]),r?l.jsx(eu,{t,vehicleMakes:o,hasVehicle:e,lp:n}):l.jsx(Jl,{t,vehicleMakes:o,lp:n})}const mn=[{code:"en",name:"English"},{code:"zh-CN",name:"ç®ä½ä¸æ"},{code:"zh-TW",name:"ç¹é«ä¸æ"},{code:"es",name:"Español"}];function nu({language:e,changeLanguage:t}){return l.jsxs(fn,{children:[l.jsx(pn,{asChild:!0,children:l.jsx(xe,{variant:"ghost",size:"icon",className:"text-white hover:text-white hover:bg-gray-800 [&_svg]:!h-6 [&_svg]:!w-6",children:l.jsx(Vt,{})})}),l.jsx(bt,{align:"end",children:mn.map(n=>l.jsxs(ae,{onClick:()=>t(n.code),className:"flex items-center justify-between",children:[n.name,e===n.co
76de&&l.jsx(ft,{className:"h-4 w-4 ml-2"})]},n.code))})]})}function ou({language:e,changeLanguage:t}){We();const[n,o]=a.useState(!1);a.useEffect(()=>{if(n){const i=window.scrollY;document.body.style.position="fixed",document.body.style.top=`-${i}px`,document.body.style.width="100%",document.body.style.overflow="hidden"}else{const i=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",window.scrollTo(0,parseInt(i||"0")*-1)}return()=>{const i=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",window.scrollTo(0,parseInt(i||"0")*-1)}},[n]);const r=a.useCallback(()=>o(!1),[]);a.useEffect(()=>(window.addEventListener("closeMobileMenu",r),window.addEventListener("closeMobileLangMenu",r),()=>{window.removeEventListener("closeMobileMenu",r),window.removeEventListener("closeMobileLangMenu",r)}),[r]);const s=a.useCallback(()=>{o(i=>(i||window.dispatchEvent(new CustomEvent("closeMobileMainMenu")),!i))},[]),c=i=>{t(i),r()};return l.jsxs(l.Fragment,{children:[l.jsx(xe,{variant:"ghost",size:"icon",className:"text-white hover:text-white hover:bg-gray-800 [&_svg]:!h-6 [&_svg]:!w-6",onClick:s,children:l.jsx(Vt,{})}),l.jsx("div",{className:"fixed top-[52px] left-0 right-0 bottom-0 z-40 overflow-hidden pointer-events-none",children:l.jsx("div",{className:`h-full bg-white transition-transform duration-300 ease-in-out ${n?"translate-y-0 pointer-events-auto":"-translate-y-full"}`,children:l.jsxs("div",{className:"h-full overflow-y-auto px-7 py-3 relative",children:[l.jsx("button",{className:"absolute top-6 right-6 z-10 w-8 h-8",onClick:r,children:l.jsx(zt,{className:"h-8 w-8 text-[#333] hover:text-[#333] transition-colors"})}),mn.map(i=>l.jsxs("button",{className:"flex items-center justify-start w-full py-3 text-[32px] leading-[40px] font-medium text-left",style:{fontFamily:"Poppins, sans-serif",color:e===i.code?"#000":"#333"},onClick:()=>
76c(i.code),children:[i.name,e===i.code&&l.jsx(ft,{className:"h-7 w-7 ml-4"})]},i.code))]})})})]})}function ru({inline:e}){const{language:t,changeLanguage:n}=Hn(),[o,r]=a.useState(!1);return a.useEffect(()=>{const s=()=>r(window.innerWidth<961);return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e?o?l.jsx(ou,{language:t,changeLanguage:n}):l.jsx(nu,{language:t,changeLanguage:n}):l.jsxs(fn,{children:[l.jsx(pn,{asChild:!0,children:l.jsx(xe,{variant:"ghost",size:"sm",className:"w-full justify-start",children:l.jsx(Vt,{})})}),l.jsx(bt,{align:"end",children:mn.map(s=>l.jsxs(ae,{onClick:()=>n(s.code),className:"flex items-center justify-between",children:[s.name,t===s.code&&l.jsx(ft,{className:"h-4 w-4 ml-2"})]},s.code))})]})}function su({hasVehicle:e}){const{t}=We(),n=Bt(),r=[e?{key:"myListings",href:"https://seller.bidbus.com/",label:t("header.myListings"),external:!0}:{key:"sellMyCar",href:n("/"),label:t("header.sellMyCar"),external:!1},{key:"howItWorks",href:n("/pm/how-it-works"),label:t("header.howItWorks"),external:!1},{key:"reviews",href:n("/pm/reviews"),label:t("header.reviews"),external:!1},{key:"blog",href:"https://bidbus.com/blog/",label:t("header.blog"),external:!0},{key:"helpCenter",href:"https://bidbus.com/help/",label:t("header.helpCenter"),external:!0}];return l.jsx("nav",{className:"hidden min-[961px]:flex items-center gap-10 mr-3",children:r.map(s=>l.jsx("a",{href:s.href,className:"text-sm text-white font-semibold hover:text-gray-300 transition-colors whitespace-nowrap",children:s.label},s.key))})}var Ct="Dialog",[Wr]=Pe(Ct),[iu,q]=Wr(Ct),Br=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:c=!0}=e,i=a.useRef(null),p=a.useRef(null),[d,f]=pt({prop:o,defaultProp:r??!1,onChange:s,caller:Ct});return l.jsx(iu,{scope:t,triggerRef:i,contentRef:p,contentId:ce(),titleId:ce(),descriptionId:ce(),open:d,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(u=>!u),[f]),modal:c,children:n})};Br.displayName=Ct;var zr="DialogTrigger",au=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=q(zr,n),s=z(t,r.triggerRef);return l.jsx(F.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":gn(r.open),...o,ref:s,onClick:A(e.onClick,r.onOpenToggle)})});au.displayName=zr;var hn="DialogPortal",[cu,Vr]=Wr(hn,{forceMount:void 0}),Ur=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=q(hn,t);return l.jsx(cu,{scope:t,forceMount:n,children:a.Children.map(o,c=>l.jsx(fe,{present:n||s.open,children:l.jsx(tn,{asChild:!0,container:r,children:c})}))})};Ur.displayName=hn;var dt="DialogOverlay",Gr=a.forwardRef((e,t)=>{const n=Vr(dt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=q(dt,e.__scopeDialog);return s.modal?l.jsx(fe,{present:o||s.open,children:l.jsx(uu,{...r,ref:t})}):null});Gr.displayName=dt;var lu=je("DialogOverlay.RemoveScroll"),uu=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=q(dt,n);return l.jsx(nn,{as:lu,allowPinchZoom:!0,shards:[r.contentRef],children:l.jsx(F.div,{"data-state":gn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),ye="DialogContent",Hr=a.forwardRef((e,t)=>{const n=Vr(ye,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=q(ye,e.__scopeDialog);return l.jsx(fe,{present:o||s.open,children:s.modal?l.jsx(du,{...r,ref:t}):l.jsx(fu,{...r,ref:t})})});Hr.displayName=ye;var du=a.forwardRef((e,t)=>{const n=q(ye,e.__scopeDialog),o=a.useRef(null),r=z(t,n.contentRef,o);return a.useEffect(()=>{const s=o.current;if(s)return jo(s)},[]),l.jsx(Kr,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,i=c.button===0&&c.ctrlKey===!0;(c.button===2||i)&&s.preventDefault()}),onFocusOutside:A(e.onFocusOutside,s=>s.preventDefault())})}),fu=a.forwardRef((e,t)=>{const n=q(ye,e.__scopeDialog),o=a.useRef(!1),r=a.useRef(!1);return l.jsx(Kr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Kr=a.forwardRef((e,t)=>
vendor: 2,692 bytes, lines 76-80
76{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...c}=e,i=q(ye,n),p=a.useRef(null),d=z(t,p);return no(),l.jsxs(l.Fragment,{children:[l.jsx(Ht,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:l.jsx(Gt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":gn(i.open),...c,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(pu,{titleId:i.titleId}),l.jsx(hu,{contentRef:p,descriptionId:i.descriptionId})]})]})}),vn="DialogTitle",Yr=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=q(vn,n);return l.jsx(F.h2,{id:r.titleId,...o,ref:t})});Yr.displayName=vn;var Xr="DialogDescription",qr=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=q(Xr,n);return l.jsx(F.p,{id:r.descriptionId,...o,ref:t})});qr.displayName=Xr;var Zr="DialogClose",Qr=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=q(Zr,n);return l.jsx(F.button,{type:"button",...o,ref:t,onClick:A(e.onClick,()=>r.onOpenChange(!1))})});Qr.displayName=Zr;function gn(e){return e?"open":"closed"}var Jr="DialogTitleWarning",[Ru,es]=$s(Jr,{contentName:ye,titleName:vn,docsSlug:"dialog"}),pu=({titleId:e})=>{const t=es(Jr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 77 78If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 79 80For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},mu="DialogDescriptionWarning",hu=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${es(mu).contentName}}.`;return a.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},vu=Br,gu=Ur,ts=Gr,ns=Hr,os=Yr,rs=qr,yu=Qr;const wu=vu,xu=gu,ss=a.forwardRef(({className:e,...t},n)=>l.jsx(ts,{ref:n,className:H("fixed inset-0 z-50 bg-black/80 transition-opacity duration-200 data-[state=open]:opacity-100 data-[state=closed]:opacity-0",e),...t}));ss.displayName=ts.displayName;const is=a.forwardRef(({className:e,children:t,...n},o)=>l.jsxs(xu,{children:[l.jsx(ss,{}),l.jsxs(ns,{ref:o,className:H("fixed left-[50%] top-[50%] z-50 grid w-full max-w-[90vw] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white p-6 shadow-lg rounded-lg transition-all duration-200 data-[state=open]:opacity-100 data-[state=closed]:opacity-0 data-[state=open]:scale-100 data-[state=closed]:scale-95",e),...n,children:[t,l.jsxs(yu,{className:"absolute right-4 top-4 roun
80ded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-500",children:[l.jsx(zt,{className:"h-5 w-5 text-black"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));is.displayName=ns.displayName;const bu=a.forwardRef(({className:e,...t},n)=>l.jsx(os,{ref:n,className:H("text-lg font-semibold leading-none tracking-tight",e),...t}));bu.displayName=os.displayName;const as=a.forwardRef(({className:e,...t},n)=>l.jsx(rs,{ref:n,className:H("text-sm text-gray-500",e),...t}));as.displayName=rs.displayName;function Cu({open:e,onOpenChange:t}){const{t:n}=We();return l.jsx(wu,{open:e,onOpenChange:t,children:l.jsx(is,{className:"w-[360px] max-w-[360px] rounded-3xl",children:l.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[l.jsx("div",{className:"flex items-center justify-center w-64 h-64 bg-white rounded-lg p-4",children:l.jsx("img",{src:"/images/wechat-qr-code.png",alt:"WeChat QR Code",className:"w-full h-full object-contain",onError:o=>{o.target.style.display="none",o.target.nextSibling.style.display="flex"}})}),l.jsxs(as,{className:"text-center text-gray-900 !mt-0 text-2xl",children:[n("customerService.addWechatText"),l.jsx("span",{className:"block font-semibold text-black ml-1",children:n("customerService.wechatId")})]}),l.jsxs("a",{href:`tel:${n("customerService.phoneNumber")}`,className:"flex items-center justify-center gap-2 w-full bg-black text-white px-6 py-3 rounded-lg font-semibold text-2xl hover:bg-gray-800 transition-colors",children:[l.jsx(Ns,{className:"h-8 w-8"}),l.jsx("span",{children:n("customerService.phoneNumber")})]})]})})})}function Mu(){const{t:e}=We(),{language:t}=Hn(),n=Bt(),[o,r]=a.useState(!1),[s,c]=a.useState(!1);a.useEffect(()=>{const d=vs("encoded_vehicle_id");d&&gs(d).then(()=>c(!0)).catch(()=>{})},[]);const i=t.startsWith("zh"),p=d=>{i&&(d.preventDefault(),r(!0))};return l.jsxs(l.Fragment,{children:[l.jsx("header",{className:"bg-black text-white py-[6px] pl-4 pr-2 relative z-50",children:l.jsxs("div",{className:"max-w-7xl mx-auto flex justify-between items-center",children:[l.jsx("a",{href:n("/"),onClick:d=>{["/","/zh","/zh/","/zh-TW","/zh-TW/","/es","/es/"].includes(window.location.pathname)&&(d.preventDefault(),window.scrollTo({top:0,behavior:"smooth"}),window.dispatchEvent(new CustomEvent("closeMobileMenu")))},children:l.jsx("img",{src:"/images/logo-light.webp",alt:"Bidbus",className:"h-[18px]"})}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx(su,{hasVehicle:s}),l.jsx(xe,{asChild:!i,size:"sm",className:"bg-[#FFC657] !text-black h-8 hover:bg-[#FFC657]/90 rounded-full px-4 py-0 text-sm font-medium border-0 shadow-none",style:{fontSize:"14px"},onClick:p,children:i?e("navigation.forDealers"):l.jsx("a",{href:"/pm/dealer_landing",children:e("navigation.forDealers")})}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(ru,{inline:!0}),l.jsx(tu,{hasVehicle:s})]})]})]})}),i&&l.jsx(Cu,{open:o,onOpenChange:r})]})}export{Ia as A,xe as B,Kn as C,Gt as D,Jn as E,Ht as F,Mu as H,fe as P,No as R,_s as S,Ta as a,yo as b,Pe as c,Su as d,F as e,A as f,ja as g,ce as h,pt as i,xs as j,wu as k,is as l,bu as m,as as n,ft as o,Ns as p,le as q,tn as r,Ut as s,Qn as t,z as u,te as v,jo as w,no as x,nn as y,je 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.