vendor: 4,363 bytes, line 1
1import{a as e,n as t,t as n}from"./jsx-runtime-Cc_gYQXa.js";import{F as r}from"./index-DYvjoUQV.js";import{a as i,c as a,i as o,n as s,s as c,t as l}from"./dist-hXGAbCIy.js";import{i as u,r as d,t as f}from"./utils-DiSHwjor.js";import{n as p,t as m}from"./dist-CaeyK8S0.js";import{t as h}from"./dist-B15krkgg.js";import{t as g}from"./createLucideIcon-DSko4A63.js";import{t as _}from"./check-oeoiIZkj.js";import{t as v}from"./chevron-down-1c12B7ED.js";import{a as y,i as b,n as x,o as S,r as C,t as w}from"./es2015-Dym3INIa.js";var T=g(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),E=e(t(),1),D=e(r(),1);function O(e,[t,n]){return Math.min(n,Math.max(t,e))}var k=[`top`,`right`,`bottom`,`left`],A=Math.min,j=Math.max,M=Math.round,N=Math.floor,P=e=>({x:e,y:e}),ee={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function F(e,t,n){return j(e,A(t,n))}function I(e,t){return typeof e==`function`?e(t):e}function L(e){return e.split(`-`)[0]}function R(e){return e.split(`-`)[1]}function z(e){return e===`x`?`y`:`x`}function B(e){return e===`y`?`height`:`width`}function V(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function H(e){return z(V(e))}function te(e,t,n){n===void 0&&(n=!1);let r=R(e),i=H(e),a=B(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ue(o)),[o,ue(o)]}function ne(e){let t=ue(e);return[re(e),t,re(t)]}function re(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ie=[`left`,`right`],ae=[`right`,`left`],oe=[`top`,`bottom`],se=[`bottom`,`top`];function ce(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ae:ie:t?ie:ae;case`left`:case`right`:return t?oe:se;default:return[]}}function le(e,t,n,r){let i=R(e),a=ce(L(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(re)))),a}function ue(e){let t=L(e);return ee[t]+e.slice(t.length)}function de(e){return{top:0,right:0,bottom:0,left:0,...e}}function fe(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:de(e)}function pe(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function me(e,t,n){let{reference:r,floating:i}=e,a=V(t),o=H(t),s=B(o),c=L(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(R(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function he(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=I(t,e),p=fe(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=pe(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=pe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var ge=50,_e=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:he},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=me(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<ge&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}
vendor: 7,749 bytes, line 1
1):x.rects),{x:u,y:d}=me(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ve=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=I(e,t)||{};if(l==null)return{};let d=fe(u),f={x:n,y:r},p=H(i),m=B(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=A(d[_],T),D=A(d[v],T),O=E,k=C-h[m]-D,j=C/2-h[m]/2+w,M=F(O,j,k),N=!c.arrow&&R(i)!=null&&j!==M&&a.reference[m]/2-(j<O?E:D)-h[m]/2<0,P=N?j<O?j-O:j-k:0;return{[p]:f[p]+P,data:{[p]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),ye=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=I(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=L(r),_=V(o),v=L(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ue(o)]:ne(o)),x=p!==`none`;!d&&x&&b.push(...le(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=te(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==V(t))||T.every(e=>V(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=V(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function be(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xe(e){return k.some(t=>e[t]>=0)}var Se=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=I(e,t);switch(i){case`referenceHidden`:{let e=be(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:xe(e)}}}case`escaped`:{let e=be(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:xe(e)}}}default:return{}}}}},Ce=new Set([`left`,`top`]);async function we(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=L(n),s=R(n),c=V(n)===`y`,l=Ce.has(o)?-1:1,u=a&&c?-1:1,d=I(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Te=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await we(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ee=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=I(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=V(L(i)),p=z(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=F(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=F(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},De=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=I(e,t),u={x:n,y:r},d=V(i),f=z(d),p=u[f],m=u[d],h=I(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ce.has(L(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Oe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=I(e,t),u=await o.detectOverflow(t,l),d=L(i),f=R(i),p=V(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=A(h-u[g],v),x=A(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=j(u.left,0),t=j(u.right,0),n=j(u.top,0),r=j(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:j(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:j(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function ke(){return typeof window<`u`}function Ae(e){return je(e)?(e.nodeName||``).toLowerCase():`#document`}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){return((je(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function je(e){return ke()?e instanceof Node||e instanceof U(e).Node:!1}function G(e){return ke()?e instanceof Element||e instanceof U(e).Element:!1}function K(e){return ke()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Me(e){return!ke()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function Ne(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Pe(e){return/^(table|td|th)$/.test(Ae(e))}function Fe(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ie=/transform|translate|scale|rotate|perspective|filter/,Le=/paint|layout|strict|content/,q=e=>!!e&&e!==`none`,Re;function ze(e){let t=G(e)?J(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!Ve()&&(q(t.backdropFilter)||q(t.filter))||Ie.test(t.willChange||``)||Le.test(t.contain||``)}function Be(e){let t=Y(e);for(;K(t)&&!He(t);){if(ze(t))return t;if(Fe(t))return null;t=Y(t)}return null}function Ve(){return Re??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Re}function He(e){return/^(html|body|#document)$/.test(Ae(e))}function J(e){return U(e).getComputedStyle(e)}function Ue(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y(e){if(Ae(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Me(e)&&e.host||W(e);return Me(t)?t.host:t}function We(e){let t=Y(e);return He(t)?e.ownerDocument?e.ownerDocument.body:e.body:K(t)&&Ne(t)?t:We(t)}function Ge(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=We(e),i=r===e.ownerDocument?.body,a=U(r);if(i){let e=Ke(a);
vendor: 6,413 bytes, line 1
1return t.concat(a,a.visualViewport||[],Ne(r)?r:[],e&&n?Ge(e):[])}else return t.concat(r,Ge(r,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qe(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=K(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=M(n)!==a||M(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Je(e){return G(e)?e:e.contextElement}function Ye(e){let t=Je(e);if(!K(t))return P(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=qe(t),o=(a?M(n.width):n.width)/r,s=(a?M(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Xe=P(0);function Ze(e){let t=U(e);return!Ve()||!t.visualViewport?Xe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==U(e)?!1:t}function $e(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Je(e),o=P(1);t&&(r?G(r)&&(o=Ye(r)):o=Ye(e));let s=Qe(a,n,r)?Ze(a):P(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=U(a),t=r&&G(r)?U(r):r,n=e,i=Ke(n);for(;i&&r&&t!==n;){let e=Ye(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=U(i),i=Ke(n)}}return pe({width:u,height:d,x:c,y:l})}function et(e,t){let n=Ue(e).scrollLeft;return t?t.left+n:$e(W(e)).left+n}function tt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-et(e,n),y:n.top+t.scrollTop}}function nt(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=W(r),s=t?Fe(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=P(1),u=P(0),d=K(r);if((d||!d&&!a)&&((Ae(r)!==`body`||Ne(o))&&(c=Ue(r)),d)){let e=$e(r);l=Ye(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?tt(o,c):P(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function rt(e){return Array.from(e.getClientRects())}function it(e){let t=W(e),n=Ue(e),r=e.ownerDocument.body,i=j(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=j(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+et(e),s=-n.scrollTop;return J(r).direction===`rtl`&&(o+=j(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var at=25;function ot(e,t){let n=U(e),r=W(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ve();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=et(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=at&&(a-=o)}else l<=at&&(a+=l);return{width:a,height:o,x:s,y:c}}function st(e,t){let n=$e(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=K(e)?Ye(e):P(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ct(e,t,n){let r;if(t===`viewport`)r=ot(e,n);else if(t===`document`)r=it(W(e));else if(G(t))r=st(t,n);else{let n=Ze(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return pe(r)}function lt(e,t){let n=Y(e);return n===t||!G(n)||He(n)?!1:J(n).position===`fixed`||lt(n,t)}function ut(e,t){let n=t.get(e);if(n)return n;let r=Ge(e,[],!1).filter(e=>G(e)&&Ae(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?Y(e):e;for(;G(o)&&!He(o);){let t=J(o),n=ze(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ne(o)&&!n&<(e,o))?r=r.filter(e=>e!==o):i=t,o=Y(o)}return t.set(e,r),r}function dt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Fe(t)?[]:ut(t,this._c):[].concat(n),r],o=ct(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ct(t,a[e],i);s=j(n.top,s),c=A(n.right,c),l=A(n.bottom,l),u=j(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function ft(e){let{width:t,height:n}=qe(e);return{width:t,height:n}}function pt(e,t,n){let r=K(t),i=W(t),a=n===`fixed`,o=$e(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=P(0);function l(){c.x=et(i)}if(r||!r&&!a)if((Ae(t)!==`body`||Ne(i))&&(s=Ue(t)),r){let e=$e(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?tt(i,s):P(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function mt(e){return J(e).position===`static`}function ht(e,t){if(!K(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function gt(e,t){let n=U(e);if(Fe(e))return n;if(!K(e)){let t=Y(e);for(;t&&!He(t);){if(G(t)&&!mt(t))return t;t=Y(t)}return n}let r=ht(e,t);for(;r&&Pe(r)&&mt(r);)r=ht(r,t);return r&&He(r)&&mt(r)&&!ze(r)?n:r||Be(e)||n}var _t=async function(e){let t=this.getOffsetParent||gt,n=this.getDimensions,r=await n(e.floating);return{reference:pt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vt(e){return J(e).direction===`rtl`}var yt={convertOffsetParentRelativeRectToViewportRelativeRect:nt,getDocumentElement:W,getClippingRect:dt,getOffsetParent:gt,getElementRects:_t,getClientRects:rt,getDimensions:ft,getScale:Ye,isElement:G,isRTL:vt};function bt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xt(e,t){let n=null,r,i=W(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=N(d),h=N(i.clientWidth-(u+f)),g=N(i.clientHeight-(d+p)),_=N(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:j(0,A(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!bt(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function St(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Je(e),u=i||a?[...l?Ge(l):[],...t?Ge(t):[]]:[];
vendor: 8,590 bytes, line 1
1u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?xt(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$e(e):null;c&&g();function g(){let t=$e(e);h&&!bt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ct=Te,wt=Ee,Tt=ye,Et=Oe,Dt=Se,Ot=ve,kt=De,At=(e,t,n)=>{let r=new Map,i={platform:yt,...n},a={...i.platform,_c:r};return _e(e,t,{...i,platform:a})},jt=typeof document<`u`?E.useLayoutEffect:function(){};function Mt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Mt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Mt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Nt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pt(e,t){let n=Nt(e);return Math.round(t*n)/n}function Ft(e){let t=E.useRef(e);return jt(()=>{t.current=e}),t}function It(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=E.useState(r);Mt(f,r)||p(r);let[m,h]=E.useState(null),[g,_]=E.useState(null),v=E.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=E.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=E.useRef(null),C=E.useRef(null),w=E.useRef(u),T=c!=null,O=Ft(c),k=Ft(i),A=Ft(l),j=E.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),At(S.current,C.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Mt(w.current,t)&&(w.current=t,D.flushSync(()=>{d(t)}))})},[f,t,n,k,A]);jt(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let M=E.useRef(!1);jt(()=>(M.current=!0,()=>{M.current=!1}),[]),jt(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(O.current)return O.current(b,x,j);j()}},[b,x,j,O,T]);let N=E.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),P=E.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=E.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Pt(P.floating,u.x),r=Pt(P.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Nt(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,u.x,u.y]);return E.useMemo(()=>({...u,update:j,refs:N,elements:P,floatingStyles:ee}),[u,j,N,P,ee])}var Lt=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Ot({element:r.current,padding:i}).fn(n):r?Ot({element:r,padding:i}).fn(n):{}}}},Rt=(e,t)=>{let n=Ct(e);return{name:n.name,fn:n.fn,options:[e,t]}},zt=(e,t)=>{let n=wt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bt=(e,t)=>({fn:kt(e).fn,options:[e,t]}),Vt=(e,t)=>{let n=Tt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ht=(e,t)=>{let n=Et(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ut=(e,t)=>{let n=Dt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wt=(e,t)=>{let n=Lt(e);return{name:n.name,fn:n.fn,options:[e,t]}},X=n(),Gt=`Arrow`,Kt=E.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,X.jsx)(s.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,X.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Kt.displayName=Gt;var qt=Kt;function Jt(e){let[t,n]=E.useState(void 0);return i(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Yt=`Popper`,[Xt,Zt]=c(Yt),[Qt,$t]=Xt(Yt),en=e=>{let{__scopePopper:t,children:n}=e,[r,i]=E.useState(null);return(0,X.jsx)(Qt,{scope:t,anchor:r,onAnchorChange:i,children:n})};en.displayName=Yt;var tn=`PopperAnchor`,nn=E.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=$t(tn,n),o=E.useRef(null),c=u(t,o),l=E.useRef(null);return E.useEffect(()=>{let e=l.current;l.current=r?.current||o.current,e!==l.current&&a.onAnchorChange(l.current)}),r?null:(0,X.jsx)(s.div,{...i,ref:c})});nn.displayName=tn;var rn=`PopperContent`,[an,on]=Xt(rn),sn=E.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:c=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m=`partial`,hideWhenDetached:g=!1,updatePositionStrategy:_=`optimized`,onPlaced:v,...y}=e,b=$t(rn,n),[x,S]=E.useState(null),C=u(t,e=>S(e)),[w,T]=E.useState(null),D=Jt(w),O=D?.width??0,k=D?.height??0,A=r+(o===`center`?``:`-`+o),j=typeof p==`number`?p:{top:0,right:0,bottom:0,left:0,...p},M=Array.isArray(f)?f:[f],N=M.length>0,P={padding:j,boundary:M.filter(dn),altBoundary:N},{refs:ee,floatingStyles:F,placement:I,isPositioned:L,middlewareData:R}=It({strategy:`fixed`,placement:A,whileElementsMounted:(...e)=>St(...e,{animationFrame:_===`always`}),elements:{reference:b.anchor},middleware:[Rt({mainAxis:a+k,alignmentAxis:c}),d&&zt({mainAxis:!0,crossAxis:!1,limiter:m===`partial`?Bt():void 0,...P}),d&&Vt({...P}),Ht({...P,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),w&&Wt({element:w,padding:l}),fn({arrowWidth:O,arrowHeight:k}),g&&Ut({strategy:`referenceHidden`,...P})]}),[z,B]=pn(I),V=h(v);i(()=>{L&&V?.()},[L,V]);let H=R.arrow?.x,te=R.arrow?.y,ne=R.arrow?.centerOffset!==0,[re,ie]=E.useState();return i(()=>{x&&ie(window.getComputedStyle(x).zIndex)},[x]),(0,X.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...F,transform:L?F.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:re,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(` `),...R.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,X.jsx)(an,{scope:n,placedSide:z,onArrowChange:T,arrowX:H,arrowY:te,shouldHideArrow:ne,children:(0,X.jsx)(s.div,{"data-side":z,"data-align":B,...y,ref:C,style:{...y.style,animation:L?void 0:`none`}})})})});sn.displayName=rn;var cn=`PopperArrow`,ln={top:`bottom`,right:`left`,bottom:`top`,left:`right`},un=E.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=on(cn,n),a=ln[i.placedSide];return(0,X.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,X.jsx)(qt,{...r,ref:t,style:{...r.style,display:`block`}})})});un.displayName=cn;function dn(e){return e!==null}var fn=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=pn(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function pn(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var mn=en,hn=nn,gn=sn,_n=un;
vendor: 4,447 bytes, line 1
1function vn(e){let t=yn(e),n=E.forwardRef((e,n)=>{let{children:r,...i}=e,a=E.Children.toArray(r),o=a.find(xn);if(o){let e=o.props.children,r=a.map(t=>t===o?E.Children.count(e)>1?E.Children.only(null):E.isValidElement(e)?e.props.children:null:t);return(0,X.jsx)(t,{...i,ref:n,children:E.isValidElement(e)?E.cloneElement(e,void 0,r):null})}return(0,X.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function yn(e){let t=E.forwardRef((e,t)=>{let{children:n,...r}=e;if(E.isValidElement(n)){let e=Cn(n),i=Sn(r,n.props);return n.type!==E.Fragment&&(i.ref=t?d(t,e):e),E.cloneElement(n,i)}return E.Children.count(n)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bn=Symbol(`radix.slottable`);function xn(e){return E.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===bn}function Sn(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Cn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function wn(e){let t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Tn=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`}),En=`VisuallyHidden`,Dn=E.forwardRef((e,t)=>(0,X.jsx)(s.span,{...e,ref:t,style:{...Tn,...e.style}}));Dn.displayName=En;var On=[` `,`Enter`,`ArrowUp`,`ArrowDown`],kn=[` `,`Enter`],An=`Select`,[jn,Mn,Nn]=p(An),[Pn,Fn]=c(An,[Nn,Zt]),In=Zt(),[Ln,Z]=Pn(An),[Rn,zn]=Pn(An),Bn=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:s,defaultValue:c,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:h,required:g,form:_}=e,v=In(t),[y,b]=E.useState(null),[x,S]=E.useState(null),[C,w]=E.useState(!1),T=m(d),[D,O]=l({prop:r,defaultProp:i??!1,onChange:a,caller:An}),[k,A]=l({prop:s,defaultProp:c,onChange:u,caller:An}),j=E.useRef(null),M=y?_||!!y.closest(`form`):!0,[N,P]=E.useState(new Set),ee=Array.from(N).map(e=>e.props.value).join(`;`);return(0,X.jsx)(mn,{...v,children:(0,X.jsxs)(Ln,{required:g,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:o(),value:k,onValueChange:A,open:D,onOpenChange:O,dir:T,triggerPointerDownPosRef:j,disabled:h,children:[(0,X.jsx)(jn.Provider,{scope:t,children:(0,X.jsx)(Rn,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(e=>{P(t=>new Set(t).add(e))},[]),onNativeOptionRemove:E.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),M?(0,X.jsxs)(Nr,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:k,onChange:e=>A(e.target.value),disabled:h,form:_,children:[k===void 0?(0,X.jsx)(`option`,{value:``}):null,Array.from(N)]},ee):null]})})};Bn.displayName=An;var Vn=`SelectTrigger`,Hn=E.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,o=In(n),c=Z(Vn,n),l=c.disabled||r,d=u(t,c.onTriggerChange),f=Mn(n),p=E.useRef(`touch`),[m,h,g]=Fr(e=>{let t=f().filter(e=>!e.disabled),n=Ir(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onValueChange(n.value)}),_=e=>{l||(c.onOpenChange(!0),g()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,X.jsx)(hn,{asChild:!0,...o,children:(0,X.jsx)(s.button,{type:`button`,role:`combobox`,"aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":Pr(c.value)?``:void 0,...i,ref:d,onClick:a(i.onClick,e=>{e.currentTarget.focus(),p.current!==`mouse`&&_(e)}),onPointerDown:a(i.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:a(i.onKeyDown,e=>{let t=m.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&h(e.key),!(t&&e.key===` `)&&On.includes(e.ke
vendor: 13,269 bytes, line 1
1y)&&(_(),e.preventDefault())})})})});Hn.displayName=Vn;var Un=`SelectValue`,Wn=E.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,children:o,placeholder:c=``,...l}=e,d=Z(Un,n),{onValueNodeHasChildrenChange:f}=d,p=o!==void 0,m=u(t,d.onValueNodeChange);return i(()=>{f(p)},[f,p]),(0,X.jsx)(s.span,{...l,ref:m,style:{pointerEvents:`none`},children:Pr(d.value)?(0,X.jsx)(X.Fragment,{children:c}):o})});Wn.displayName=Un;var Gn=`SelectIcon`,Kn=E.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,X.jsx)(s.span,{"aria-hidden":!0,...i,ref:t,children:r||`â¼`})});Kn.displayName=Gn;var qn=`SelectPortal`,Jn=e=>(0,X.jsx)(b,{asChild:!0,...e});Jn.displayName=qn;var Yn=`SelectContent`,Xn=E.forwardRef((e,t)=>{let n=Z(Yn,e.__scopeSelect),[r,a]=E.useState();if(i(()=>{a(new DocumentFragment)},[]),!n.open){let t=r;return t?D.createPortal((0,X.jsx)(Zn,{scope:e.__scopeSelect,children:(0,X.jsx)(jn.Slot,{scope:e.__scopeSelect,children:(0,X.jsx)(`div`,{children:e.children})})}),t):null}return(0,X.jsx)(er,{...e,ref:t})});Xn.displayName=Yn;var Q=10,[Zn,$]=Pn(Yn),Qn=`SelectContentImpl`,$n=vn(`SelectContent.RemoveScroll`),er=E.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:_,avoidCollisions:v,...b}=e,T=Z(Yn,n),[D,O]=E.useState(null),[k,A]=E.useState(null),j=u(t,e=>O(e)),[M,N]=E.useState(null),[P,ee]=E.useState(null),F=Mn(n),[I,L]=E.useState(!1),R=E.useRef(!1);E.useEffect(()=>{if(D)return w(D)},[D]),C();let z=E.useCallback(e=>{let[t,...n]=F().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),n?.focus(),document.activeElement!==i))return},[F,k]),B=E.useCallback(()=>z([M,D]),[z,M,D]);E.useEffect(()=>{I&&B()},[I,B]);let{onOpenChange:V,triggerPointerDownPosRef:H}=T;E.useEffect(()=>{if(D){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(H.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():D.contains(n.target)||V(!1),document.removeEventListener(`pointermove`,t),H.current=null};return H.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[D,V,H]),E.useEffect(()=>{let e=()=>V(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[V]);let[te,ne]=Fr(e=>{let t=F().filter(e=>!e.disabled),n=Ir(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),re=E.useCallback((e,t,n)=>{let r=!R.current&&!n;(T.value!==void 0&&T.value===t||r)&&(N(e),r&&(R.current=!0))},[T.value]),ie=E.useCallback(()=>D?.focus(),[D]),ae=E.useCallback((e,t,n)=>{let r=!R.current&&!n;(T.value!==void 0&&T.value===t||r)&&ee(e)},[T.value]),oe=r===`popper`?ir:nr,se=oe===ir?{side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:_,avoidCollisions:v}:{};return(0,X.jsx)(Zn,{scope:n,content:D,viewport:k,onViewportChange:A,itemRefCallback:re,selectedItem:M,onItemLeave:ie,itemTextRefCallback:ae,focusSelectedItem:B,selectedItemText:P,position:r,isPositioned:I,searchRef:te,children:(0,X.jsx)(x,{as:$n,allowPinchZoom:!0,children:(0,X.jsx)(y,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:a(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,X.jsx)(S,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,X.jsx)(oe,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...b,...se,onPlaced:()=>L(!0),ref:j,style:{display:`flex`,flexDirection:`column`,outline:`none`,...b.style},onKeyDown:a(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ne(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=F().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>z(t)),e.preventDefault()}})})})})})})});er.displayName=Qn;var tr=`SelectItemAlignedPosition`,nr=E.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...a}=e,o=Z(Yn,n),c=$(Yn,n),[l,d]=E.useState(null),[f,p]=E.useState(null),m=u(t,e=>p(e)),h=Mn(n),g=E.useRef(!1),_=E.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=c,S=E.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&f&&v&&y&&b){let e=o.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-Q,d=O(a,[Q,Math.max(Q,u-c)]);l.style.minWidth=s+`px`,l.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-Q,d=O(a,[Q,Math.max(Q,u-c)]);l.style.minWidth=s+`px`,l.style.right=d+`px`}let a=h(),s=window.innerHeight-Q*2,c=v.scrollHeight,u=window.getComputedStyle(f),d=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),x=d+p+c+_+m,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Q,D=s-E,k=y.offsetHeight/2,A=y.offsetTop+k,j=d+p+A,M=x-j;if(j<=E){let e=a.length>0&&y===a[a.length-1].ref.current;l.style.bottom=`0px`;let t=f.clientHeight-v.offsetTop-v.offsetHeight,n=j+Math.max(D,k+(e?T:0)+t+m);l.style.height=n+`px`}else{let e=a.length>0&&y===a[0].ref.current;l.style.top=`0px`;let t=Math.max(E,d+v.offsetTop+(e?w:0)+k)+M;l.style.height=t+`px`,v.scrollTop=j-E+v.offsetTop}l.style.margin=`${Q}px 0`,l.style.minHeight=S+`px`,l.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,o.trigger,o.valueNode,l,f,v,y,b,o.dir,r]);i(()=>S(),[S]);let[C,w]=E.useState();return i(()=>{f&&w(window.getComputedStyle(f).zIndex)},[f]),(0,X.jsx)(ar,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:E.useCallback(e=>{e&&_.current===!0&&(S(),x?.(),_.current=!1)},[S,x]),children:(0,X.jsx)(`div`,{ref:d,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,X.jsx)(s.div,{...a,ref:m,style:{boxSizing:`border-box`,maxHeight:`100%`,...a.style}})})})});nr.displayName=tr;var rr=`SelectPopperPosition`,ir=E.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Q,...a}=e,o=In(n);return(0,X.jsx)(gn,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.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)`}})});ir.displayName=rr;var[ar,or]=Pn(Yn,{}),sr=`SelectViewport`,cr=E.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,o=$(sr,n),c=or(sr,n),l=u(t,o.onViewportChange),d=E.useRef(0);return(0,X.jsxs)(X.Fragment,{children:[(0,X.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:r}),(0,X.jsx)(jn.Slot,{scope:n,children:(0,X.jsx)(s.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:a(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-Q*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}d.current=t.scrollTop})})})]})});cr.displayName=sr;var lr=`SelectGroup`,[ur,dr]=Pn(lr),fr=E.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=o();return(0,X.jsx)(ur,{scope:n,id:i,children:(0,X.jsx)(s.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});fr.displayName=lr;var pr=`SelectLabel`,mr=E.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=dr(pr,n);return(0,X.jsx)(s.div,{id:i.id,...r,ref:t})});mr.displayName=pr;var hr=`SelectItem`,[gr,_r]=Pn(hr),vr=E.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:c,...l}=e,d=Z(hr,n),f=$(hr,n),p=d.value===r,[m,h]=E.useState(c??``),[g,_]=E.useState(!1),v=u(t,e=>f.itemRefCallback?.(e,r,i)),y=o(),b=E.useRef(`touch`),x=()=>{i||(d.onValueChange(r),d.onOpenChange(!1))};if(r===``)throw 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(0,X.jsx)(gr,{scope:n,value:r,disabled:i,textId:y,isSelected:p,onItemTextChange:E.useCallback(e=>{h(t=>t||(e?.textContent??``).trim())},[]),children:(0,X.jsx)(jn.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:(0,X.jsx)(s.div,{role:`option`,"aria-labelledby":y,"data-highlighted":g?``:void 0,"aria-selected":p&&g,"data-state":p?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...l,ref:v,onFocus:a(l.onFocus,()=>_(!0)),onBlur:a(l.onBlur,()=>_(!1)),onClick:a(l.onClick,()=>{b.current!==`mouse`&&x()}),onPointerUp:a(l.onPointerUp,()=>{b.current===`mouse`&&x()}),onPointerDown:a(l.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:a(l.onPointerMove,e=>{b.current=e.pointerType,i?f.onItemLeave?.():b.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:a(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:a(l.onKeyDown,e=>{f.searchRef?.current!==``&&e.key===` `||(kn.includes(e.key)&&x(),e.key===` `&&e.preventDefault())})})})})});vr.displayName=hr;var yr=`SelectItemText`,br=E.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,...o}=e,c=Z(yr,n),l=$(yr,n),d=_r(yr,n),f=zn(yr,n),[p,m]=E.useState(null),h=u(t,e=>m(e),d.onItemTextChange,e=>l.itemTextRefCallback?.(e,d.value,d.disabled)),g=p?.textContent,_=E.useMemo(()=>(0,X.jsx)(`option`,{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=f;return i(()=>(v(_),()=>y(_)),[v,y,_]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(s.span,{id:d.textId,...o,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?D.createPortal(o.children,c.valueNode):null]})});br.displayName=yr;var xr=`SelectItemIndicator`,Sr=E.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return _r(xr,n).isSelected?(0,X.jsx)(s.span,{"aria-hidden":!0,...r,ref:t}):null});Sr.displayName=xr;var Cr=`SelectScrollUpButton`,wr=E.forwardRef((e,t)=>{let n=$(Cr,e.__scopeSelect),r=or(Cr,e.__scopeSelect),[a,o]=E.useState(!1),s=u(t,r.onScrollButtonChange);return i(()=>{if(n.viewport&&n.isPositioned){let e=function(){o(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),a?(0,X.jsx)(Dr,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});wr.displayName=Cr;var Tr=`SelectScrollDownButton`,Er=E.forwardRef((e,t)=>{let n=$(Tr,e.__scopeSelect),r=or(Tr,e.__scopeSelect),[a,o]=E.useState(!1),s=u(t,r.onScrollButtonChange);return i(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),a?(0,X.jsx)(Dr,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Er.displayName=Tr;var Dr=E.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,c=$(`SelectScrollButton`,n),l=E.useRef(null),u=Mn(n),d=E.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return E.useEffect(()=>()=>d(),[d]),i(()=>{u().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[u]),(0,X.jsx)(s.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:a(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:a(o.onPointerMove,()=>{c.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:a(o.onPointerLeave,()=>{d()})})}),Or=`SelectSeparator`,kr=E.forwardRef((e,t)=>
vendor: 4,368 bytes, line 1
1{let{__scopeSelect:n,...r}=e;return(0,X.jsx)(s.div,{"aria-hidden":!0,...r,ref:t})});kr.displayName=Or;var Ar=`SelectArrow`,jr=E.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=In(n),a=Z(Ar,n),o=$(Ar,n);return a.open&&o.position===`popper`?(0,X.jsx)(_n,{...i,...r,ref:t}):null});jr.displayName=Ar;var Mr=`SelectBubbleInput`,Nr=E.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=E.useRef(null),a=u(r,i),o=wn(t);return E.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,X.jsx)(s.select,{...n,style:{...Tn,...n.style},ref:a,defaultValue:t})});Nr.displayName=Mr;function Pr(e){return e===``||e===void 0}function Fr(e){let t=h(e),n=E.useRef(``),r=E.useRef(0),i=E.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=E.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function Ir(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Lr(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Lr(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Rr=Bn,zr=Hn,Br=Wn,Vr=Kn,Hr=Jn,Ur=Xn,Wr=cr,Gr=mr,Kr=vr,qr=br,Jr=Sr,Yr=wr,Xr=Er,Zr=kr,Qr=Rr,$r=Br,ei=E.forwardRef(({className:e,children:t,...n},r)=>(0,X.jsxs)(zr,{ref:r,className:f(`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 cursor-pointer 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,(0,X.jsx)(Vr,{asChild:!0,children:(0,X.jsx)(v,{className:`h-4 w-4 opacity-50`})})]}));ei.displayName=zr.displayName;var ti=E.forwardRef(({className:e,...t},n)=>(0,X.jsx)(Yr,{ref:n,className:f(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,X.jsx)(T,{className:`h-4 w-4`})}));ti.displayName=Yr.displayName;var ni=E.forwardRef(({className:e,...t},n)=>(0,X.jsx)(Xr,{ref:n,className:f(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,X.jsx)(v,{className:`h-4 w-4`})}));ni.displayName=Xr.displayName;var ri=E.forwardRef(({className:e,children:t,position:n=`popper`,...r},i)=>(0,X.jsx)(Hr,{children:(0,X.jsxs)(Ur,{ref:i,className:f(`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]:slide-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,...r,children:[(0,X.jsx)(ti,{}),(0,X.jsx)(Wr,{className:f(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]`),children:t}),(0,X.jsx)(ni,{})]})}));ri.displayName=Ur.displayName;var ii=E.forwardRef(({className:e,...t},n)=>(0,X.jsx)(Gr,{ref:n,className:f(`px-2 py-1.5 text-sm font-semibold`,e),...t}));ii.displayName=Gr.displayName;var ai=E.forwardRef(({className:e,children:t,...n},r)=>(0,X.jsxs)(Kr,{ref:r,className:f(`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:[(0,X.jsx)(`span`,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,X.jsx)(Jr,{children:(0,X.jsx)(_,{className:`h-4 w-4`})})}),(0,X.jsx)(qr,{children:t})]}));ai.displayName=Kr.displayName;var oi=E.forwardRef(({className:e,...t},n)=>
1(0,X.jsx)(Zr,{ref:n,className:f(`-mx-1 my-1 h-px bg-muted`,e),...t}));oi.displayName=Zr.displayName;export{$r as a,_n as c,Zt as d,Jt as f,ei as i,gn as l,ri as n,wn as o,ai as r,hn as s,Qr as t,mn 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.