PageSourceSearch

https://pulsecars.co.uk/assets/select-9BnniKoU.js

js pulsecars.co.uk collected 2026-10-08 06:12:20 UTC 69,109 bytes, 41 lines download raw bytes

vendor: 14,872 bytes, line 1
1import{c as dn,r as c,h as K,j as S,q as Tt,v as ko,g as Fo,_ as le,w as fn,x as jo,i as ue}from"./main-BGPPHxHM.js";import{P as V,a as U,d as Bo,c as pn,e as Wo,g as Q,u as Bt,b as Ho}from"./index-D3F3hwE6.js";import{u as ye,a as Vo,b as Ot,c as $o}from"./index-Q-HDVsyn.js";import{C as Uo}from"./check-Cx29d-FE.js";const zo=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mn=dn("chevron-down",zo);const Ko=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Yo=dn("chevron-up",Ko);function Wt(e,[t,n]){return Math.min(n,Math.max(t,e))}function Xo(e,t=globalThis?.document){const n=ye(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Go="DismissableLayer",wt="dismissableLayer.update",qo="dismissableLayer.pointerDownOutside",Zo="dismissableLayer.focusOutside",Ht,hn=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vn=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...u}=e,d=c.useContext(hn),[f,p]=c.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=c.useState({}),w=K(t,C=>p(C)),l=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=l.indexOf(v),g=f?l.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,b=g>=y,E=er(C=>{const T=C.target,L=[...d.branches].some(N=>N.contains(T));!b||L||(r?.(C),a?.(C),C.defaultPrevented||i?.())},h),R=tr(C=>{const T=C.target;[...d.branches].some(N=>N.contains(T))||(s?.(C),a?.(C),C.defaultPrevented||i?.())},h);return Xo(C=>{g===d.layers.size-1&&(o?.(C),!C.defaultPrevented&&i&&(C.preventDefault(),i()))},h),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ht=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Vt(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ht)}},[f,h,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Vt())},[f,d]),c.useEffect(()=>{const C=()=>m({});return document.addEventListener(wt,C),()=>document.removeEventListener(wt,C)},[]),S.jsx(V.div,{...u,ref:w,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,R.onFocusCapture),onBlurCapture:U(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,E.onPointerDownCapture)})});vn.displayName=Go;var Qo="DismissableLayerBranch",Jo=c.forwardRef((e,t)=>{const n=c.useContext(hn),o=c.useRef(null),r=K(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),S.jsx(V.div,{...e,ref:r})});Jo.displayName=Qo;function er(e,t=globalThis?.document){const n=ye(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=i=>{if(i.target&&!o.current){let u=function(){gn(qo,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function tr(e,t=globalThis?.document){const n=ye(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&gn(Zo,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 Vt(){const e=new CustomEvent(wt);document.dispatchEvent(e)}function gn(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?Bo(r,s):r.dispatchEvent(s)}var ct=0;function nr(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$t()),document.body.insertAdjacentElement("beforeend",e[1]??$t()),ct++,()=>{ct===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ct--}},[])}function $t(){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 lt="focusScope.autoFocusOnMount",ut="focusScope.autoFocusOnUnmount",Ut={bubbles:!1,cancelable:!0},or="FocusScope",wn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[i,u]=c.useState(null),d=ye(r),f=ye(s),p=c.useRef(null),h=K(t,l=>u(l)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let l=function(x){if(m.paused||!i)return;const b=x.target;i.contains(b)?p.current=b:ce(p.current,{select:!0})},v=function(x){if(m.paused||!i)return;const b=x.relatedTarget;b!==null&&(i.contains(b)||ce(p.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&ce(i)};document.addEventListener("focusin",l),document.addEventListener("focusout",v);const g=new MutationObserver(y);return i&&g.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",l),document.removeEventListener("focusout",v),g.disconnect()}}},[o,i,m.paused]),c.useEffect(()=>{if(i){Kt.add(m);const l=document.activeElement;if(!i.contains(l)){const y=new CustomEvent(lt,Ut);i.addEventListener(lt,d),i.dispatchEvent(y),y.defaultPrevented||(rr(lr(yn(i)),{select:!0}),document.activeElement===l&&ce(i))}return()=>{i.removeEventListener(lt,d),setTimeout(()=>{const y=new CustomEvent(ut,Ut);i.addEventListener(ut,f),i.dispatchEvent(y),y.defaultPrevented||ce(l??document.body,{select:!0}),i.removeEventListener(ut,f),Kt.remove(m)},0)}}},[i,d,f,m]);const w=c.useCallback(l=>{if(!n&&!o||m.paused)return;const v=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,y=document.activeElement;if(v&&y){const g=l.currentTarget,[x,b]=ir(g);x&&b?!l.shiftKey&&y===b?(l.preventDefault(),n&&ce(x,{select:!0})):l.shiftKey&&y===x&&(l.preventDefault(),n&&ce(b,{select:!0})):y===g&&l.preventDefault()}},[n,o,m.paused]);return S.jsx(V.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});wn.displayName=or;function rr(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ce(o,{select:t}),document.activeElement!==n)return}function ir(e){const t=yn(e),n=zt(t,e),o=zt(t.reverse(),e);return[n,o]}function yn(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 zt(e,t){for(const n of e)if(!sr(n,{upTo:t}))return n}function sr(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 ar(e){return e instanceof HTMLInputElement&&"select"in e}function ce(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ar(e)&&t&&e.select()}}var Kt=cr();function cr(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Yt(e,t),e.unshift(t)},remove(t){e=Yt(e,t),e[0]?.resume()}}}function Yt(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function lr(e){return e.filter(t=>t.tagName!=="A")}const ur=["top","right","bottom","left"],de=Math.min,X=Math.max,Ke=Math.round,je=Math.floor,ne=e=>({x:e,y:e}),dr={left:"right",right:"left",bottom:"top",top:"bottom"};function yt(e,t,n){return X(e,de(t,n))}function re(e,t){return typeof e=="function"?e(t):e}function ie(e){return e.split("-")[0]}function Ne(e){return e.split("-")[1]}function Nt(e){return e==="x"?"y":"x"}function It(e){return e==="y"?"height":"width"}function te(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Lt(e){return Nt(te(e))}function fr(e,t,n){n===void 0&&(n=!1);const o=Ne(e),r=Lt(e),s=It(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ye(a)),[a,Ye(a)]}function pr(e){const t=Ye(e);return[xt(e),t,xt(t)]}function xt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Xt=["left","right"],Gt=["right","left"],mr=["top","bottom"],hr=["bottom","top"];function vr(e,t,n){switch(e){case"top":case"bottom":return n?t?Gt:Xt:t?Xt:Gt;case"left":case"right":return t?mr:hr;default:return[]}}function gr(e,t,n,o){const r=Ne(e);let s=vr(ie(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(xt)))),s}function Ye(e){const t=ie(e);return dr[t]+e.slice(t.length)}function wr(e){return{top:0,right:0,bottom:0,left:0,...e}}function xn(e){return typeof e!="number"?wr(e):{top:e,right:e,bottom:e,left:e}}function Xe(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 qt(e,t,n){let{reference:o,floating:r}=e;const s=te(t),a=Lt(t),i=It(a),u=ie(t),d=s==="y",f=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,h=o[i]/2-r[i]/2;let m;switch(u){case"top":m={x:f,y:o.y-r.height};break;case"bottom":m={x:f,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-r.width,y:p};break;default:m={x:o.x,y:o.y}}switch(Ne(t)){case"start":m[a]-=h*(n&&d?-1:1);break;case"end":m[a]+=h*(n&&d?-1:1);break}return m}async function yr(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=re(t,e),w=xn(m),v=i[h?p==="floating"?"reference":"floating":p],y=Xe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:u})),g=p==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.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=Xe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:x,strategy:u}):g);return{top:(y.top-E.top+w.top)/b.y,bottom:(E.bottom-y.bottom+w.bottom)/b.y,left:(y.left-E.left+w.left)/b.x,right:(E.right-y.right+w.right)/b.x}}const xr=50,Sr=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:yr},u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=qt(d,o,u),h=o,m=0;const w={};for(let l=0;l<s.length;l++){const v=s[l];if(!v)continue;const{name:y,fn:g}=v,{x,y:b,data:E,reset:R}=await g({x:f,y:p,initialPlacement:o,placement:h,strategy:r,middlewareData:w,rects:d,platform:i,elements:{reference:e,floating:t}});f=x??f,p=b??p,w[y]={...w[y],...E},R&&m<xr&&(m++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(d=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:f,y:p}=qt(d,h,u)),l=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:w}},br=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:i,middlewareData:u}=t,{element:d,padding:f=0}=re(e,t)||{};if(d==null)return{};const p=xn(f),h={x:n,y:o},m=Lt(r),w=It(m),l=await a.getDimensions(d),v=m==="y",y=v?"top":"left",g=v?"bottom":"right",x=v?"clientHeight":"clientWidth",b=s.reference[w]+s.reference[m]-h[m]-s.floating[w],E=h[m]-s.reference[m],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=R?R[x]:0;(!C||!await(a.isElement==null?void 0:a.isElement(R)))&&(C=i.floating[x]||s.floating[w]);const T=b/2-E/2,L=C/2-l[w]/2-1,N=de(p[y],L),M=de(p[g],L),_=N,k=C-l[w]-M,I=C/2-l[w]/2+T,W=yt(_,I,k),O=!u.arrow&&Ne(r)!=null&&I!==W&&s.reference[w]/2-(I<_?N:M)-l[w]/2<0,D=O?I<_?I-_:I-k:0;return{[m]:h[m]+D,data:{[m]:W,centerOffset:I-W-D,...O&&{alignmentOffset:D}},reset:O}}}),Cr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:i,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:l=!0,...v}=re(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ie(r),g=te(i),x=ie(i)===i,b=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=h||(x||!l?[Ye(i)]:pr(i)),R=w!=="none";!h&&R&&E.push(...gr(i,l,w,b));const C=[i,...E],T=await u.detectOverflow(t,v),L=[];let N=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&L.push(T[y]),p){const I=fr(r,a,b);L.push(T[I[0]],T[I[1]])}if(N=[...N,{placement:r,overflows:L}],!L.every(I=>I<=0)){var M,_;const I=(((M=s.flip)==null?void 0:M.index)||0)+1,W=C[I];if(W&&(!(p==="alignment"?g!==te(W):!1)||N.every(A=>te(A.placement)===g?A.overflows[0]>0:!0)))return{data:{index:I,overflows:N},reset:{placement:W}};let O=(_=N.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:_.placement;if(!O)switch(m){case"bestFit":{var k;const D=(k=N.filter(A=>{if(R){const F=te(A.placement);return F===g||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,Y)=>F+Y,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:k[0];D&&(O=D);break}case"initialPlacement":O=i;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Zt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qt(e){return ur.some(t=>e[t]>=0)}const Er=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=re(e,t);switch(r){case"referenceHidden":{const a=await o.detectOverflow(t,{...s,elementContext:"reference"}),i=Zt(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Qt(i)}}}case"escaped":{const a=await o.detectOverflow(t,{...s,altBoundary:!0}),i=Zt(a,n.floating);return{data:{escapedOffsets:i,escaped:Qt(i)}}}default:return{}}}}},Sn=new Set(["left","top"]);async function Rr(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=ie(n),i=Ne(n),u=te(n)==="y",d=Sn.has(a)?-1:1,f=s&&u?-1:1,p=re(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}
1:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(m=i==="end"?w*-1:w),u?{x:m*f,y:h*d}:{x:h*d,y:m*f}}const Pr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:i}=t,u=await Rr(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:a}}}}},Ar=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:u={fn:y=>{let{x:g,y:x}=y;return{x:g,y:x}}},...d}=re(e,t),f={x:n,y:o},p=await s.detectOverflow(t,d),h=te(ie(r)),m=Nt(h);let w=f[m],l=f[h];if(a){const y=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=w+p[y],b=w-p[g];w=yt(x,w,b)}if(i){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=l+p[y],b=l-p[g];l=yt(x,l,b)}const v=u.fn({...t,[m]:w,[h]:l});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[m]:a,[h]:i}}}}}},Tr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:u=!0,crossAxis:d=!0}=re(e,t),f={x:n,y:o},p=te(r),h=Nt(p);let m=f[h],w=f[p];const l=re(i,t),v=typeof l=="number"?{mainAxis:l,crossAxis:0}:{mainAxis:0,crossAxis:0,...l};if(u){const x=h==="y"?"height":"width",b=s.reference[h]-s.floating[x]+v.mainAxis,E=s.reference[h]+s.reference[x]-v.mainAxis;m<b?m=b:m>E&&(m=E)}if(d){var y,g;const x=h==="y"?"width":"height",b=Sn.has(ie(r)),E=s.reference[p]-s.floating[x]+(b&&((y=a.offset)==null?void 0:y[p])||0)+(b?0:v.crossAxis),R=s.reference[p]+s.reference[x]+(b?0:((g=a.offset)==null?void 0:g[p])||0)-(b?v.crossAxis:0);w<E?w=E:w>R&&(w=R)}return{[h]:m,[p]:w}}}},Or=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:i}=t,{apply:u=()=>{},...d}=re(e,t),f=await a.detectOverflow(t,d),p=ie(r),h=Ne(r),m=te(r)==="y",{width:w,height:l}=s.floating;let v,y;p==="top"||p==="bottom"?(v=p,y=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,v=h==="end"?"top":"bottom");const g=l-f.top-f.bottom,x=w-f.left-f.right,b=de(l-f[v],g),E=de(w-f[y],x),R=!t.middlewareData.shift;let C=b,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(C=g),R&&!h){const N=X(f.left,0),M=X(f.right,0),_=X(f.top,0),k=X(f.bottom,0);m?T=w-2*(N!==0||M!==0?N+M:X(f.left,f.right)):C=l-2*(_!==0||k!==0?_+k:X(f.top,f.bottom))}await u({...t,availableWidth:T,availableHeight:C});const L=await a.getDimensions(i.floating);return w!==L.width||l!==L.height?{reset:{rects:!0}}:{}}}};function Ze(){return typeof window<"u"}function Ie(e){return bn(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=(bn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bn(e){return Ze()?e instanceof Node||e instanceof G(e).Node:!1}function J(e){return Ze()?e instanceof Element||e instanceof G(e).Element:!1}function se(e){return Ze()?e instanceof HTMLElement||e instanceof G(e).HTMLElement:!1}function Jt(e){return!Ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G(e).ShadowRoot}function Fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Nr(e){return/^(table|td|th)$/.test(Ie(e))}function Qe(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ir=/transform|translate|scale|rotate|perspective|filter/,Lr=/paint|layout|strict|content/,we=e=>!!e&&e!=="none";let dt;function Mt(e){const t=J(e)?ee(e):e;return we(t.transform)||we(t.translate)||we(t.scale)||we(t.rotate)||we(t.perspective)||!Dt()&&(we(t.backdropFilter)||we(t.filter))||Ir.test(t.willChange||"")||Lr.test(t.contain||"")}function Mr(e){let t=fe(e);for(;se(t)&&!Oe(t);){if(Mt(t))return t;if(Qe(t))return null;t=fe(t)}return null}function Dt(){return dt==null&&(dt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),dt}function Oe(e){return/^(html|body|#document)$/.test(Ie(e))}function ee(e){return G(e).getComputedStyle(e)}function Je(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fe(e){if(Ie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jt(e)&&e.host||oe(e);return Jt(t)?t.host:t}function Cn(e){const t=fe(e);return Oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:se(t)&&Fe(t)?t:Cn(t)}function ke(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Cn(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=G(r);if(s){const i=St(a);
vendor: 12,368 bytes, line 1
1return t.concat(a,a.visualViewport||[],Fe(r)?r:[],i&&n?ke(i):[])}else return t.concat(r,ke(r,[],n))}function St(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function En(e){const t=ee(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=se(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,i=Ke(n)!==s||Ke(o)!==a;return i&&(n=s,o=a),{width:n,height:o,$:i}}function _t(e){return J(e)?e:e.contextElement}function Ae(e){const t=_t(e);if(!se(t))return ne(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=En(t);let a=(s?Ke(n.width):n.width)/o,i=(s?Ke(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Dr=ne(0);function Rn(e){const t=G(e);return!Dt()||!t.visualViewport?Dr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _r(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==G(e)?!1:t}function xe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=_t(e);let a=ne(1);t&&(o?J(o)&&(a=Ae(o)):a=Ae(e));const i=_r(s,n,o)?Rn(s):ne(0);let u=(r.left+i.x)/a.x,d=(r.top+i.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(s){const h=G(s),m=o&&J(o)?G(o):o;let w=h,l=St(w);for(;l&&o&&m!==w;){const v=Ae(l),y=l.getBoundingClientRect(),g=ee(l),x=y.left+(l.clientLeft+parseFloat(g.paddingLeft))*v.x,b=y.top+(l.clientTop+parseFloat(g.paddingTop))*v.y;u*=v.x,d*=v.y,f*=v.x,p*=v.y,u+=x,d+=b,w=G(l),l=St(w)}}return Xe({width:f,height:p,x:u,y:d})}function et(e,t){const n=Je(e).scrollLeft;return t?t.left+n:xe(oe(e)).left+n}function Pn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-et(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function kr(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=oe(o),i=t?Qe(t.floating):!1;if(o===a||i&&s)return n;let u={scrollLeft:0,scrollTop:0},d=ne(1);const f=ne(0),p=se(o);if((p||!p&&!s)&&((Ie(o)!=="body"||Fe(a))&&(u=Je(o)),p)){const m=xe(o);d=Ae(o),f.x=m.x+o.clientLeft,f.y=m.y+o.clientTop}const h=a&&!p&&!s?Pn(a,u):ne(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-u.scrollTop*d.y+f.y+h.y}}function Fr(e){return Array.from(e.getClientRects())}function jr(e){const t=oe(e),n=Je(e),o=e.ownerDocument.body,r=X(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=X(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+et(e);const i=-n.scrollTop;return ee(o).direction==="rtl"&&(a+=X(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:i}}const en=25;function Br(e,t){const n=G(e),o=oe(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,i=0,u=0;if(r){s=r.width,a=r.height;const f=Dt();(!f||f&&t==="fixed")&&(i=r.offsetLeft,u=r.offsetTop)}const d=et(o);if(d<=0){const f=o.ownerDocument,p=f.body,h=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(o.clientWidth-p.clientWidth-m);w<=en&&(s-=w)}else d<=en&&(s+=d);return{width:s,height:a,x:i,y:u}}function Wr(e,t){const n=xe(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=se(e)?Ae(e):ne(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,u=r*s.x,d=o*s.y;return{width:a,height:i,x:u,y:d}}function tn(e,t,n){let o;if(t==="viewport")o=Br(e,n);else if(t==="document")o=jr(oe(e));else if(J(t))o=Wr(t,n);else{const r=Rn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Xe(o)}function An(e,t){const n=fe(e);return n===t||!J(n)||Oe(n)?!1:ee(n).position==="fixed"||An(n,t)}function Hr(e,t){const n=t.get(e);if(n)return n;let o=ke(e,[],!1).filter(i=>J(i)&&Ie(i)!=="body"),r=null;const s=ee(e).position==="fixed";let a=s?fe(e):e;for(;J(a)&&!Oe(a);){const i=ee(a),u=Mt(a);!u&&i.position==="fixed"&&(r=null),(s?!u&&!r:!u&&i.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Fe(a)&&!u&&An(e,a))?o=o.filter(f=>f!==a):r=i,a=fe(a)}return t.set(e,o),o}function Vr(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Qe(t)?[]:Hr(t,this._c):[].concat(n),o],i=tn(t,a[0],r);let u=i.top,d=i.right,f=i.bottom,p=i.left;for(let h=1;h<a.length;h++){const m=tn(t,a[h],r);u=X(m.top,u),d=de(m.right,d),f=de(m.bottom,f),p=X(m.left,p)}return{width:d-p,height:f-u,x:p,y:u}}function $r(e){const{width:t,height:n}=En(e);return{width:t,height:n}}function Ur(e,t,n){const o=se(t),r=oe(t),s=n==="fixed",a=xe(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const u=ne(0);function d(){u.x=et(r)}if(o||!o&&!s)if((Ie(t)!=="body"||Fe(r))&&(i=Je(t)),o){const m=xe(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else r&&d();s&&!o&&r&&d();const f=r&&!o&&!s?Pn(r,i):ne(0),p=a.left+i.scrollLeft-u.x-f.x,h=a.top+i.scrollTop-u.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function ft(e){return ee(e).position==="static"}function nn(e,t){if(!se(e)||ee(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oe(e)===n&&(n=n.ownerDocument.body),n}function Tn(e,t){const n=G(e);if(Qe(e))return n;if(!se(e)){let r=fe(e);for(;r&&!Oe(r);){if(J(r)&&!ft(r))return r;r=fe(r)}return n}let o=nn(e,t);for(;o&&Nr(o)&&ft(o);)o=nn(o,t);return o&&Oe(o)&&ft(o)&&!Mt(o)?n:o||Mr(e)||n}const zr=async function(e){const t=this.getOffsetParent||Tn,n=this.getDimensions,o=await n(e.floating);return{reference:Ur(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Kr(e){return ee(e).direction==="rtl"}const Yr={convertOffsetParentRelativeRectToViewportRelativeRect:kr,getDocumentElement:oe,getClippingRect:Vr,getOffsetParent:Tn,getElementRects:zr,getClientRects:Fr,getDimensions:$r,getScale:Ae,isElement:J,isRTL:Kr};function On(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xr(e,t){let n=null,o;const r=oe(e);function s(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function a(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:h,height:m}=d;if(i||t(),!h||!m)return;const w=je(p),l=je(r.clientWidth-(f+h)),v=je(r.clientHeight-(p+m)),y=je(f),x={rootMargin:-w+"px "+-l+"px "+-v+"px "+-y+"px",threshold:X(0,de(1,u))||1};let b=!0;function E(R){const C=R[0].intersectionRatio;if(C!==u){if(!b)return a();C?a(!1,C):o=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!On(d,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(E,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return a(!0),s}function Gr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,d=_t(e),f=r||s?[...d?ke(d):[],...t?ke(t):[]]:[];f.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=d&&i?Xr(d,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(y=>{let[g]=y;g&&g.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),d&&!u&&m.observe(d),t&&m.observe(t));let w,l=u?xe(e):null;u&&v();function v(){const y=xe(e);l&&!On(l,y)&&n(),l=y,w=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(g=>{r&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),p?.(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(w)}}const qr=Pr,Zr=Ar,Qr=Cr,Jr=Or,ei=Er,on=br,ti=Tr,ni=(e,t,n)=>{const o=new Map,r={platform:Yr,...n},s={...r.platform,_c:o};return Sr(e,t,{...r,platform:s})};var oi=typeof document<"u",ri=function(){},$e=oi?c.useLayoutEffect:ri;function Ge(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(!Ge(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)&&!Ge(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Nn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rn(e,t){const n=Nn(e);return Math.round(t*n)/n}function pt(e){const t=c.useRef(e);return $e(()=>{t.current=e}),t}function ii(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:u,open:d}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=c.useState(o);Ge(h,o)||m(o);const[w,l]=c.useState(null),[v,y]=c.useState(null),g=c.useCallback(A=>{A!==R.current&&(R.current=A,l(A))},[]),x=c.useCallback(A=>{A!==C.current&&(C.current=A,y(A))},[]),b=s||w,E=a||v,R=c.useRef(null),C=c.useRef(null),T=c.useRef(f),L=u!=null,N=pt(u),M=pt(r),_=pt(d),k=c.useCallback(()=>{if(!R.current||!C.current)return;const A={placement:t,strategy:n,middleware:h};M.current&&(A.platform=M.current),ni(R.current,C.current,A).then(F=>{const Y={...F,isPositioned:_.current!==!1};I.current&&!Ge(T.current,Y)&&(T.current=Y,Tt.flushSync(()=>{p(Y)}))})},[h,t,n,M,_]);$e(()=>{d===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[d]);const I=c.useRef(!1);$e(()=>(I.current=!0,()=>{I.current=!1}),[]),$e(()=>{if(b&&(R.current=b),E&&(C.current=E),b&&E){if(N.current)return N.current(b,E,k);k()}},[b,E,k,N,L]);const W=c.useMemo(()=>({reference:R,floating:C,setReference:g,setFloating:x}),[g,x]),O=c.useMemo(()=>({reference:b,floating:E}),[b,E]),D=c.useMemo(()=>{const A={position:n,left:0,top:0};if(!O.floating)return A;const F=rn(O.floating,f.x),Y=rn(O.floating,f.y);return i?{...A,transform:"translate("+F+"px, "+Y+"px)",...Nn(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:Y}},[n,i,O.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:k,refs:W,elements:O,floatingStyles:D}),[f,k,W,O,D])}const si=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?on({element:o.current,padding:r}).fn(n):{}:o?on({element:o,padding:r}).fn(n):{}}}},ai=(e,t)=>{const n=qr(e);return{name:n.name,fn:n.fn,options:[e,t]}},ci=(e,t)=>{const n=Zr(e);return{name:n.name,fn:n.fn,options:[e,t]}},li=(e,t)=>({fn:ti(e).fn,options:[e,t]}),ui=(e,t)=>{const n=Qr(e);return{name:n.name,fn:n.fn,options:[e,t]}},di=(e,t)=>{const n=Jr(e);return{name:n.name,fn:n.fn,options:[e,t]}},fi=(e,t)=>{const n=ei(e);return{name:n.name,fn:n.fn,options:[e,t]}},pi=(e,t)=>{const n=si(e);return{name:n.name,fn:n.fn,options:[e,t]}};var mi="Arrow",In=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return S.jsx(V.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});In.displayName=mi;var hi=In,kt="Popper",[Ln,Mn]=pn(kt),[vi,Dn]=Ln(kt),_n=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return S.jsx(vi,{scope:t,anchor:o,onAnchorChange:r,children:n})};_n.displayName=kt;var kn="PopperAnchor",Fn=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Dn(kn,n),a=c.useRef(null),i=K(t,a),u=c.useRef(null);return c.useEffect(()=>{const d=u.current;u.current=o?.current||a.current,d!==u.current&&s.onAnchorChange(u.current)}),o?null:S.jsx(V.div,{...r,ref:i})});Fn.displayName=kn;var Ft="PopperContent",[gi,wi]=Ln(Ft),jn=c.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...l}=e,v=Dn(Ft,n),[y,g]=c.useState(null),x=K(t,P=>g(P)),[b,E]=c.useState(null),R=Wo(b),C=R?.width??0,T=R?.height??0,L=o+(s!=="center"?"-"+s:""),N=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(d)?d:[d],_=M.length>0,k={padding:N,boundary:M.filter(xi),altBoundary:_},{refs:I,floatingStyles:W,placement:O,isPositioned:D,middlewareData:A}=ii({strategy:"fixed",placement:L,whileElementsMounted:(...P)=>Gr(...P,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[ai({mainAxis:r+T,alignmentAxis:a}),u&&ci({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?li():void 0,...k}),u&&ui({...k}
vendor: 4,305 bytes, line 1
1),di({...k,apply:({elements:P,rects:H,availableWidth:z,availableHeight:j})=>{const{width:B,height:$}=H.reference,q=P.floating.style;q.setProperty("--radix-popper-available-width",`${z}px`),q.setProperty("--radix-popper-available-height",`${j}px`),q.setProperty("--radix-popper-anchor-width",`${B}px`),q.setProperty("--radix-popper-anchor-height",`${$}px`)}}),b&&pi({element:b,padding:i}),Si({arrowWidth:C,arrowHeight:T}),h&&fi({strategy:"referenceHidden",...k})]}),[F,Y]=Hn(O),he=ye(w);Q(()=>{D&&he?.()},[D,he]);const Me=A.arrow?.x,De=A.arrow?.y,ae=A.arrow?.centerOffset!==0,[Ce,ve]=c.useState();return Q(()=>{y&&ve(window.getComputedStyle(y).zIndex)},[y]),S.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:D?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(gi,{scope:n,placedSide:F,onArrowChange:E,arrowX:Me,arrowY:De,shouldHideArrow:ae,children:S.jsx(V.div,{"data-side":F,"data-align":Y,...l,ref:x,style:{...l.style,animation:D?void 0:"none"}})})})});jn.displayName=Ft;var Bn="PopperArrow",yi={top:"bottom",right:"left",bottom:"top",left:"right"},Wn=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=wi(Bn,o),a=yi[s.placedSide];return S.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]: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:S.jsx(hi,{...r,ref:n,style:{...r.style,display:"block"}})})});Wn.displayName=Bn;function xi(e){return e!==null}var Si=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,a=r.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,f]=Hn(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(r.arrow?.x??0)+i/2,m=(r.arrow?.y??0)+u/2;let w="",l="";return d==="bottom"?(w=a?p:`${h}px`,l=`${-u}px`):d==="top"?(w=a?p:`${h}px`,l=`${o.floating.height+u}px`):d==="right"?(w=`${-u}px`,l=a?p:`${m}px`):d==="left"&&(w=`${o.floating.width+u}px`,l=a?p:`${m}px`),{data:{x:w,y:l}}}});function Hn(e){const[t,n="center"]=e.split("-");return[t,n]}var bi=_n,Ci=Fn,Ei=jn,Ri=Wn,Pi="Portal",Vn=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);Q(()=>s(!0),[]);const a=n||r&&globalThis?.document?.body;return a?ko.createPortal(S.jsx(V.div,{...o,ref:t}),a):null});Vn.displayName=Pi;function Ai(e){const t=Ti(e),n=c.forwardRef((o,r)=>{const{children:s,...a}=o,i=c.Children.toArray(s),u=i.find(Ni);if(u){const d=u.props.children,f=i.map(p=>p===u?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:p);return S.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return S.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Ti(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const a=Li(r),i=Ii(s,r.props);return r.type!==c.Fragment&&(i.ref=o?Fo(o,a):a),c.cloneElement(r,i)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Oi=Symbol("radix.slottable");function Ni(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Oi}function Ii(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 u=s(...i);return r(...i),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Li(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 $n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Mi="VisuallyHidden",Di=c.forwardRef((e,t)=>
vendor: 4,149 bytes, line 1
1S.jsx(V.span,{...e,ref:t,style:{...$n,...e.style}}));Di.displayName=Mi;var _i=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ee=new WeakMap,Be=new WeakMap,We={},mt=0,Un=function(e){return e&&(e.host||Un(e.parentNode))},ki=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Un(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})},Fi=function(e,t,n,o){var r=ki(t,Array.isArray(e)?e:[e]);We[n]||(We[n]=new WeakMap);var s=We[n],a=[],i=new Set,u=new Set(r),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};r.forEach(d);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(i.has(h))f(h);else try{var m=h.getAttribute(o),w=m!==null&&m!=="false",l=(Ee.get(h)||0)+1,v=(s.get(h)||0)+1;Ee.set(h,l),s.set(h,v),a.push(h),l===1&&w&&Be.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),i.clear(),mt++,function(){a.forEach(function(p){var h=Ee.get(p)-1,m=s.get(p)-1;Ee.set(p,h),s.set(p,m),h||(Be.has(p)||p.removeAttribute(o),Be.delete(p)),m||p.removeAttribute(n)}),mt--,mt||(Ee=new WeakMap,Ee=new WeakMap,Be=new WeakMap,We={})}},ji=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=_i(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Fi(o,r,n,"aria-hidden")):function(){return null}},Ue="right-scroll-bar-position",ze="width-before-scroll-bar",Bi="with-scroll-bars-hidden",Wi="--removed-body-scroll-bar-size";function ht(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hi(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Vi=typeof window<"u"?c.useLayoutEffect:c.useEffect,sn=new WeakMap;function $i(e,t){var n=Hi(null,function(o){return e.forEach(function(r){return ht(r,o)})});return Vi(function(){var o=sn.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(i){s.has(i)||ht(i,null)}),s.forEach(function(i){r.has(i)||ht(i,a)})}sn.set(n,e)},[e]),n}function Ui(e){return e}function zi(e,t){t===void 0&&(t=Ui);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 a=t(s,o);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var u=function(){var f=a;a=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return r}function Ki(e){e===void 0&&(e={});var t=zi(null);return t.options=le({async:!0,ssr:!1},e),t}var zn=function(e){var t=e.sideCar,n=fn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,le({},n))};zn.isSideCarExport=!0;function Yi(e,t){return e.useMedium(t),zn}var Kn=Ki(),vt=function(){},tt=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:vt,onWheelCapture:vt,onTouchMoveCapture:vt}),r=o[0],s=o[1],a=e.forwardProps,i=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,l=e.inert,v=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,x=e.gapMode,b=fn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,R=$i([n,t]),C=le(le({},b),r);return c.createElement(c.Fragment,null,f&&c.createElement(E,{sideCar:Kn,removeScrollBar:d,shards:p,noRelative:m,n
vendor: 8,486 bytes, lines 1-41
1oIsolation:w,inert:l,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:x}),a?c.cloneElement(c.Children.only(i),le(le({},C),{ref:R})):c.createElement(g,le({},C,{className:u,ref:R}),i))});tt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tt.classNames={fullWidth:ze,zeroRight:Ue};var Xi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xi();return t&&e.setAttribute("nonce",t),e}function qi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gi())&&(qi(t,n),Zi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ji=function(){var e=Qi();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yn=function(){var e=Ji(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},es={left:0,top:0,right:0,gap:0},gt=function(e){return parseInt(e||"",10)||0},ts=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[gt(n),gt(o),gt(r)]},ns=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return es;var t=ts(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])}},os=Yn(),Te="data-scroll-locked",rs=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Bi,` {
3   overflow: hidden `).concat(o,`;
4   padding-right: `).concat(i,"px ").concat(o,`;
5  }
6  body[`).concat(Te,`] {
7    overflow: hidden `).concat(o,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
10    padding-left: `.concat(r,`px;
11    padding-top: `).concat(s,`px;
12    padding-right: `).concat(a,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(i,"px ").concat(o,`;
16    `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(Ue,` {
20    right: `).concat(i,"px ").concat(o,`;
21  }
22  
23  .`).concat(ze,` {
24    margin-right: `).concat(i,"px ").concat(o,`;
25  }
26  
27  .`).concat(Ue," .").concat(Ue,` {
28    right: 0 `).concat(o,`;
29  }
30  
31  .`).concat(ze," .").concat(ze,` {
32    margin-right: 0 `).concat(o,`;
33  }
34  
35  body[`).concat(Te,`] {
36    `).concat(Wi,": ").concat(i,`px;
37  }
38`)},an=function(){var e=parseInt(document.body.getAttribute(Te)||"0",10);return isFinite(e)?e:0},is=function(){c.useEffect(function(){return document.body.setAttribute(Te,(an()+1).toString()),function(){var e=an()-1;e<=0?document.body.removeAttribute(Te):document.body.setAttribute(Te,e.toString())}},[])},ss=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;is();var s=c.useMemo(function(){return ns(r)},[r]);return c.createElement(os,{styles:rs(s,!t,r,n?"":"!important")})},bt=!1;if(typeof window<"u")try{var He=Object.defineProperty({},"passive",{get:function(){return bt=!0,!0}});window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch{bt=!1}var Re=bt?{passive:!1}:!1,as=function(e){return e.tagName==="TEXTAREA"},Xn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!as(e)&&n[t]==="visible")},cs=function(e){return Xn(e,"overflowY")},ls=function(e){return Xn(e,"overflowX")},cn=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Gn(e,o);if(r){var s=qn(e,o),a=s[1],i=s[2];if(a>i)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},us=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},ds=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Gn=function(e,t){return e==="v"?cs(t):ls(t)},qn=function(e,t){return e==="v"?us(t):ds(t)},fs=function(e,t){return e==="h"&&t==="rtl"?-1:1},ps=function(e,t,n,o,r){var s=fs(e,window.getComputedStyle(t).direction),a=s*o,i=n.target,u=t.contains(i),d=!1,f=a>0,p=0,h=0;do{if(!i)break;var m=qn(e,i),w=m[0],l=m[1],v=m[2],y=l-v-s*w;(w||y)&&Gn(e,i)&&(p+=y,h+=w);var g=i.parentNode;i=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(d=!0),d},Ve=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ln=function(e){return[e.deltaX,e.deltaY]},un=function(e){return e&&"current"in e?e.current:e},ms=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hs=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},vs=0,Pe=[];function gs(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(vs++)[0],s=c.useState(Yn)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var l=jo([e.lockRef.current],(e.shards||[]).map(un),!0).filter(Boolean);return l.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),l.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(l,v){if("touches"in l&&l.touches.length===2||l.type==="wheel"&&l.ctrlKey)return!a.current.allowPinchZoom;var y=Ve(l),g=n.current,x="deltaX"in l?l.deltaX:g[0]-y[0],b="deltaY"in l?l.deltaY:g[1]-y[1],E,R=l.target,C=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in l&&C==="h"&&R.type==="range")return!1;var T=window.getSelection(),L=T&&T.anchorNode,N=L?L===R||L.contains(R):!1;if(N)return!1;var M=cn(C,R);if(!M)return!0;if(M?E=C:(E=C==="v"?"h":"v",M=cn(C,R)),!M)return!1;if(!o.current&&"changedTouches"in l&&(x||b)&&(o.current=E),!E)return!0;var _=o.current||E;return ps(_,v,l,_==="h"?x:b)},[]),u=c.useCallback(function(l){var v=l;if(!(!Pe.length||Pe[Pe.length-1]!==s)){var y="deltaY"in v?ln(v):Ve(v),g=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&ms(E.delta,y)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}if(!g){var x=(a.current.shards||[]).map(un).filter(Boolean).filter(function(E){return E.contains(v.target)}),b=x.length>0?i(v,x[0]):!a.current.noIsolation;b&&v.cancelable&&v.preventDefault()}}},[]),d=c.useCallback(function(l,v,y,g){var x={name:l,delta:v,target:y,should:g,shadowParent:ws(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),f=c.useCallback(function(l){n.current=Ve(l),o.current=void 0},[]),p=c.useCallback(function(l){d(l.type,ln(l),l.target,i(l,e.lockRef.current))},[]),h=c.useCallback(function(l){d(l.type,Ve(l),l.target,i(l,e.lockRef.current))},[]);c.useEffect(function(){return Pe.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,Re),document.addEventListener("touchmove",u,Re),document.addEventListener("touchstart",f,Re),function(){Pe=Pe.filter(function(l){return l!==s}),document.removeEventListener("wheel",u,Re),document.removeEventListener("touchmove",u,Re),document.removeEventListener("touchstart",f,Re)}},[]);var m=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(s,{styles:hs(r)}):null,m?c.createElement(ss,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ws(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ys=Yi(Kn,gs);var Zn=c.forwardRef(function(e,t){return c.createElement(tt,le({},e,{ref:t,sideCar:ys}))});Zn.classNames=tt.classNames;var xs=[" ","Enter","ArrowUp","ArrowDown"],Ss=[" ","Enter"],Se="Select",[nt,ot,bs]=$o(Se),[Le]=pn(Se,[bs,Mn]),rt=Mn(),[Cs,pe]=Le(Se),[Es,Rs]=Le(Se),Qn=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:a,defaultValue:i,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:h,required:m,form:w}=e,l=rt(t),[v,y]=c.useState(null),[g,x]=c.useState(null),[b,E]=c.useState(!1),R=Vo(d),[C,T]=Bt({prop:o,defaultProp:r??!1,onChange:s,caller:Se}
vendor: 18,624 bytes, line 41
41),[L,N]=Bt({prop:a,defaultProp:i,onChange:u,caller:Se}),M=c.useRef(null),_=v?w||!!v.closest("form"):!0,[k,I]=c.useState(new Set),W=Array.from(k).map(O=>O.props.value).join(";");return S.jsx(bi,{...l,children:S.jsxs(Cs,{required:m,scope:t,trigger:v,onTriggerChange:y,valueNode:g,onValueNodeChange:x,valueNodeHasChildren:b,onValueNodeHasChildrenChange:E,contentId:Ot(),value:L,onValueChange:N,open:C,onOpenChange:T,dir:R,triggerPointerDownPosRef:M,disabled:h,children:[S.jsx(nt.Provider,{scope:t,children:S.jsx(Es,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(O=>{I(D=>new Set(D).add(O))},[]),onNativeOptionRemove:c.useCallback(O=>{I(D=>{const A=new Set(D);return A.delete(O),A})},[]),children:n})}),_?S.jsxs(Co,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:L,onChange:O=>N(O.target.value),disabled:h,form:w,children:[L===void 0?S.jsx("option",{value:""}):null,Array.from(k)]},W):null]})})};Qn.displayName=Se;var Jn="SelectTrigger",eo=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=rt(n),a=pe(Jn,n),i=a.disabled||o,u=K(t,a.onTriggerChange),d=ot(n),f=c.useRef("touch"),[p,h,m]=Ro(l=>{const v=d().filter(x=>!x.disabled),y=v.find(x=>x.value===a.value),g=Po(v,l,y);g!==void 0&&a.onValueChange(g.value)}),w=l=>{i||(a.onOpenChange(!0),m()),l&&(a.triggerPointerDownPosRef.current={x:Math.round(l.pageX),y:Math.round(l.pageY)})};return S.jsx(Ci,{asChild:!0,...s,children:S.jsx(V.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Eo(a.value)?"":void 0,...r,ref:u,onClick:U(r.onClick,l=>{l.currentTarget.focus(),f.current!=="mouse"&&w(l)}),onPointerDown:U(r.onPointerDown,l=>{f.current=l.pointerType;const v=l.target;v.hasPointerCapture(l.pointerId)&&v.releasePointerCapture(l.pointerId),l.button===0&&l.ctrlKey===!1&&l.pointerType==="mouse"&&(w(l),l.preventDefault())}),onKeyDown:U(r.onKeyDown,l=>{const v=p.current!=="";!(l.ctrlKey||l.altKey||l.metaKey)&&l.key.length===1&&h(l.key),!(v&&l.key===" ")&&xs.includes(l.key)&&(w(),l.preventDefault())})})})});eo.displayName=Jn;var to="SelectValue",no=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:a="",...i}=e,u=pe(to,n),{onValueNodeHasChildrenChange:d}=u,f=s!==void 0,p=K(t,u.onValueNodeChange);return Q(()=>{d(f)},[d,f]),S.jsx(V.span,{...i,ref:p,style:{pointerEvents:"none"},children:Eo(u.value)?S.jsx(S.Fragment,{children:a}):s})});no.displayName=to;var Ps="SelectIcon",oo=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return S.jsx(V.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});oo.displayName=Ps;var As="SelectPortal",ro=e=>S.jsx(Vn,{asChild:!0,...e});ro.displayName=As;var be="SelectContent",io=c.forwardRef((e,t)=>{const n=pe(be,e.__scopeSelect),[o,r]=c.useState();if(Q(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Tt.createPortal(S.jsx(so,{scope:e.__scopeSelect,children:S.jsx(nt.Slot,{scope:e.__scopeSelect,children:S.jsx("div",{children:e.children})})}),s):null}return S.jsx(ao,{...e,ref:t})});io.displayName=be;var Z=10,[so,me]=Le(be),Ts="SelectContentImpl",Os=Ai("SelectContent.RemoveScroll"),ao=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:w,hideWhenDetached:l,avoidCollisions:v,...y}=e,g=pe(be,n),[x,b]=c.useState(null),[E,R]=c.useState(null),C=K(t,P=>b(P)),[T,L]=c.useState(null),[N,M]=c.useState(null),_=ot(n),[k,I]=c.useState(!1),W=c.useRef(!1);c.useEffect(()=>{if(x)return ji(x)},[x]),nr();const O=c.useCallback(P=>{const[H,...z]=_().map($=>$.ref.current),[j]=z.slice(-1),B=document.activeElement;for(const $ of P)if($===B||($?.scrollIntoView({block:"nearest"}),$===H&&E&&(E.scrollTop=0),$===j&&E&&(E.scrollTop=E.scrollHeight),$?.focus(),document.activeElement!==B))return},[_,E]),D=c.useCallback(()=>O([T,x]),[O,T,x]);c.useEffect(()=>{k&&D()},[k,D]);const{onOpenChange:A,triggerPointerDownPosRef:F}=g;c.useEffect(()=>{if(x){let P={x:0,y:0};const H=j=>{P={x:Math.abs(Math.round(j.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(j.pageY)-(F.current?.y??0))}},z=j=>{P.x<=10&&P.y<=10?j.preventDefault():x.contains(j.target)||A(!1),document.removeEventListener("pointermove",H),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",z,{capture:!0})}}},[x,A,F]),c.useEffect(()=>{const P=()=>A(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[A]);const[Y,he]=Ro(P=>{const H=_().filter(B=>!B.disabled),z=H.find(B=>B.ref.current===document.activeElement),j=Po(H,P,z);j&&setTimeout(()=>j.ref.current.focus())}),Me=c.useCallback((P,H,z)=>{const j=!W.current&&!z;(g.value!==void 0&&g.value===H||j)&&(L(P),j&&(W.current=!0))},[g.value]),De=c.useCallback(()=>x?.focus(),[x]),ae=c.useCallback((P,H,z)=>{const j=!W.current&&!z;(g.value!==void 0&&g.value===H||j)&&M(P)},[g.value]),Ce=o==="popper"?Ct:co,ve=Ce===Ct?{side:i,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:w,hideWhenDetached:l,avoidCollisions:v}:{};return S.jsx(so,{scope:n,content:x,viewport:E,onViewportChange:R,itemRefCallback:Me,selectedItem:T,onItemLeave:De,itemTextRefCallback:ae,focusSelectedItem:D,selectedItemText:N,position:o,isPositioned:k,searchRef:Y,children:S.jsx(Zn,{as:Os,allowPinchZoom:!0,children:S.jsx(wn,{asChild:!0,trapped:g.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:U(r,P=>{g.trigger?.focus({preventScroll:!0}),P.preventDefault()}),children:S.jsx(vn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:S.jsx(Ce,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:P=>P.preventDefault(),...y,...ve,onPlaced:()=>I(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:U(y.onKeyDown,P=>{const H=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!H&&P.key.length===1&&he(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let j=_().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(P.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const B=P.target,$=j.indexOf(B);j=j.slice($+1)}setTimeout(()=>O(j)),P.preventDefault()}})})})})})})});ao.displayName=Ts;var Ns="SelectItemAlignedPosition",co=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=pe(be,n),a=me(be,n),[i,u]=c.useState(null),[d,f]=c.useState(null),p=K(t,C=>f(C)),h=ot(n),m=c.useRef(!1),w=c.useRef(!0),{viewport:l,selectedItem:v,selectedItemText:y,focusSelectedItem:g}=a,x=c.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&d&&l&&v&&y){const C=s.trigger.getBoundingClientRect(),T=d.getBoundingClientRect(),L=s.valueNode.getBoundingClientRect(),N=y.getBoundingClientRect();if(s.dir!=="rtl"){const B=N.left-T.left,$=L.left-B,q=C.left-$,ge=C.width+q,it=Math.max(ge,T.width),st=window.innerWidth-Z,at=Wt($,[Z,Math.max(Z,st-it)]);i.style.minWidth=ge+"px",i.style.left=at+"px"}else{const B=T.right-N.right,$=window.innerWidth-L.right-B,q=window.innerWidth-C.right-$,ge=C.width+q,it=Math.max(ge,T.width),st=window.innerWidth-Z,at=Wt($,[Z,Math.max(Z,st-it)]);i.style.minWidth=ge+"px",i.style.right=at+"px"}const M=h(),_=window.innerHeight-Z*2,k=l.scrollHeight,I=window.getComputedStyle(d),W=parseInt(I.borderTopWidth,10),O=parseInt(I.paddingTop,10),D=parseInt(I.borderBottomWidth,10),A=parseInt(I.paddingBottom,10),F=W+O+k+A+D,Y=Math.min(v.offsetHeight*5,F),he=window.getComputedStyle(l),Me=parseInt(he.paddingTop,10),De=parseInt(he.paddingBottom,10),ae=C.top+C.height/2-Z,Ce=_-ae,ve=v.offsetHeight/2,P=v.offsetTop+ve,H=W+O+P,z=F-H;if(H<=ae){const B=M.length>0&&v===M[M.length-1].ref.current;i.style.bottom="0px";const $=d.clientHeight-l.offsetTop-l.offsetHeight,q=Math.max(Ce,ve+(B?De:0)+$+D),ge=H+q;i.style.height=ge+"px"}else{const B=M.length>0&&v===M[0].ref.current;i.style.top="0px";const q=Math.max(ae,W+l.offsetTop+(B?Me:0)+ve)+z;i.style.height=q+"px",l.scrollTop=H-ae+l.offsetTop}i.style.margin=`${Z}px 0`,i.style.minHeight=Y+"px",i.style.maxHeight=_+"px",o?.(),requestAnimationFrame(()=>m.current=!0)}},[h,s.trigger,s.valueNode,i,d,l,v,y,s.dir,o]);Q(()=>x(),[x]);const[b,E]=c.useState();Q(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const R=c.useCallback(C=>{C&&w.current===!0&&(x(),g?.(),w.current=!1)},[x,g]);return S.jsx(Ls,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:S.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:S.jsx(V.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});co.displayName=Ns;var Is="SelectPopperPosition",Ct=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=Z,...s}=e,a=rt(n);return S.jsx(Ei,{...a,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ct.displayName=Is;var[Ls,jt]=Le(be,{}),Et="SelectViewport",lo=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=me(Et,n),a=jt(Et,n),i=K(t,s.onViewportChange),u=c.useRef(0);return S.jsxs(S.Fragment,{children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),S.jsx(nt.Slot,{scope:n,children:S.jsx(V.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:U(r.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=a;if(h?.current&&p){const m=Math.abs(u.current-f.scrollTop);if(m>0){const w=window.innerHeight-Z*2,l=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),y=Math.max(l,v);if(y<w){const g=y+m,x=Math.min(w,g),b=g-x;p.style.height=x+"px",p.style.bottom==="0px"&&(f.scrollTop=b>0?b:0,p.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});lo.displayName=Et;var uo="SelectGroup",[Ms,Ds]=Le(uo),_s=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ot();return S.jsx(Ms,{scope:n,id:r,children:S.jsx(V.div,{role:"group","aria-labelledby":r,...o,ref:t})})});_s.displayName=uo;var fo="SelectLabel",po=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ds(fo,n);return S.jsx(V.div,{id:r.id,...o,ref:t})});po.displayName=fo;var qe="SelectItem",[ks,mo]=Le(qe),ho=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...a}=e,i=pe(qe,n),u=me(qe,n),d=i.value===o,[f,p]=c.useState(s??""),[h,m]=c.useState(!1),w=K(t,g=>u.itemRefCallback?.(g,o,r)),l=Ot(),v=c.useRef("touch"),y=()=>{r||(i.onValueChange(o),i.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return S.jsx(ks,{scope:n,value:o,disabled:r,textId:l,isSelected:d,onItemTextChange:c.useCallback(g=>{p(x=>x||(g?.textContent??"").trim())},[]),children:S.jsx(nt.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:S.jsx(V.div,{role:"option","aria-labelledby":l,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...a,ref:w,onFocus:U(a.onFocus,()=>m(!0)),onBlur:U(a.onBlur,()=>m(!1)),onClick:U(a.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:U(a.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:U(a.onPointerDown,g=>{v.current=g.pointerType}),onPointerMove:U(a.onPointerMove,g=>{v.current=g.pointerType,r?u.onItemLeave?.():v.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(a.onPointerLeave,g=>{g.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:U(a.onKeyDown,g=>{u.searchRef?.current!==""&&g.key===" "||(Ss.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})})})})});ho.displayName=qe;var _e="SelectItemText",vo=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,a=pe(_e,n),i=me(_e,n),u=mo(_e,n),d=Rs(_e,n),[f,p]=c.useState(null),h=K(t,y=>p(y),u.onItemTextChange,y=>i.itemTextRefCallback?.(y,u.value,u.disabled)),m=f?.textContent,w=c.useMemo(()=>S.jsx("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:l,onNativeOptionRemove:v}=d;return Q(()=>(l(w),()=>v(w)),[l,v,w]),S.jsxs(S.Fragment,{children:[S.jsx(V.span,{id:u.textId,...s,ref:h}),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Tt.createPortal(s.children,a.valueNode):null]})});vo.displayName=_e;var go="SelectItemIndicator",wo=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return mo(go,n).isSelected?S.jsx(V.span,{"aria-hidden":!0,...o,ref:t}):null});wo.displayName=go;var Rt="SelectScrollUpButton",yo=c.forwardRef((e,t)=>{const n=me(Rt,e.__scopeSelect),o=jt(Rt,e.__scopeSelect),[r,s]=c.useState(!1),a=K(t,o.onScrollButtonChange);return Q(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=u.scrollTop>0;s(d)};const u=n.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),r?S.jsx(So,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=n;i&&u&&(i.scrollTop=i.scrollTop-u.offsetHeight)}}):null});yo.displayName=Rt;var Pt="SelectScrollDownButton",xo=c.forwardRef((e,t)=>{const n=me(Pt,e.__scopeSelect),o=jt(Pt,e.__scopeSelect),[r,s]=c.useState(!1),a=K(t,o.onScrollButtonChange);return Q(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<d;s(f)};const u=n.viewport;return i(),u.addEventListener("scroll",i),()=>u.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),r?S.jsx(So,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:u}=n;i&&u&&(i.scrollTop=i.scrollTop+u.offsetHeight)}}):null});xo.displayName=Pt;var So=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=me("SelectScrollButton",n),a=c.useRef(null),i=ot(n),u=c.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return c.useEffect(()=>()=>u(),[u]),Q(()=>{i().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),S.jsx(V.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:U(r.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(o,50))}),onPointerMove:U(r.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(o,50))}),onPointerLeave:U(r.onPointerLeave,()=>{u()})})}),Fs="SelectSeparator",bo=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return S.jsx(V.div,{"aria-hidden":!0,...o,ref:t})});bo.displayName=Fs;var At="SelectArrow",js=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=rt(n),s=pe(At,n),a=me(At,n);return s.open&&a.position==="popper"?S.jsx(Ri,{...r,...o,ref:t}):null});js.displayName=At;var Bs="SelectBubbleInput",Co=c.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=c.useRef(null),s=K(o,r),a=Ho(t);return c.useEffect(()=>{const i=r.current;if(!i)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[a,t]),S.jsx(V.select,{...n,style:{...$n,...n.style},ref:s,defaultValue:t})});Co.displayName=Bs;function Eo(e){return e===""||e===void 0}function Ro(e){const t=ye(e),n=c.useRef(""),o=c.useRef(0),r=c.useCallback(a=>{const i=n.current+a;t(i),(function u(d){n.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>u(""),1e3))})(i)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Po(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 a=Ws(e,Math.max(s,0));r.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function Ws(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Hs=Qn,Ao=eo,Vs=no,$s=oo,Us=ro,To=io,zs=lo,Oo=po,No=ho,Ks=vo,Ys=wo,Io=yo,Lo=xo,Mo=bo;const oa=Hs,ra=Vs,Xs=c.forwardRef(({className:e,children:t,...n},o)=>S.jsxs(Ao,{ref:o,className:ue("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,S.jsx($s,{asChild:!0,children:S.jsx(mn,{className:"h-4 w-4 opacity-50"})})]}));Xs.displayName=Ao.displayName;const Do=c.forwardRef(({className:e,...t},n)=>S.jsx(Io,{ref:n,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:S.jsx(Yo,{className:"h-4 w-4"})}));Do.displayName=Io.displayName;const _o=c.forwardRef(({className:e,...t},n)=>S.jsx(Lo,{ref:n,className:ue("flex cursor-default items-center justify-center py-1",e),...t,children:S.jsx(mn,{className:"h-4 w-4"})}));_o.displayName=Lo.displayName;const Gs=c.forwardRef(({className:e,children:t,position:n="popper",...o},r)=>S.jsx(Us,{children:S.jsxs(To,{ref:r,className:ue("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover 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]:sli
41de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...o,children:[S.jsx(Do,{}),S.jsx(zs,{className:ue("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),S.jsx(_o,{})]})}));Gs.displayName=To.displayName;const qs=c.forwardRef(({className:e,...t},n)=>S.jsx(Oo,{ref:n,className:ue("px-2 py-1.5 text-sm font-semibold",e),...t}));qs.displayName=Oo.displayName;const Zs=c.forwardRef(({className:e,children:t,...n},o)=>S.jsxs(No,{ref:o,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[S.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:S.jsx(Ys,{children:S.jsx(Uo,{className:"h-4 w-4"})})}),S.jsx(Ks,{children:t})]}));Zs.displayName=No.displayName;const Qs=c.forwardRef(({className:e,...t},n)=>S.jsx(Mo,{ref:n,className:ue("-mx-1 my-1 h-px bg-muted",e),...t}));Qs.displayName=Mo.displayName;export{Ci as A,Ei as C,vn as D,wn as F,Vn as P,bi as R,oa as S,Xs as a,ra as b,Gs as c,Zs as d,Mn as e,Zn as f,Ri as g,ji as h,Wt as i,nr as u};

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.