1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70152,e=>{"use strict";e.s(["clamp",0,function(e,[t,r]){return Math.min(r,Math.max(t,e))}])},58950,53760,53289,e=>{"use strict";let t,r=["top","right","bottom","left"],n=r.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),o=Math.min,i=Math.max,l=Math.round,a=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e,t,r){void 0===r&&(r=!1);let n=d(e),o=p(m(e)),i=h(o),l="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=S(l)),[l,S(l)]}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],y=["right","left"],x=["top","bottom"],b=["bottom","top"];function S(e){let t=f(e);return c[t]+e.slice(t.length)}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function P(e,t,r){let n,{reference:o,floating:i}=e,l=m(t),a=p(m(t)),s=h(a),c=f(t),u="y"===l,g=o.x+o.width/2-i.width/2,v=o.y+o.height/2-i.height/2,w=o[s]/2-i[s]/2;switch(c){case"top":n={x:g,y:o.y-i.height};break;case"bottom":n={x:g,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:v};break;case"left":n={x:o.x-i.width,y:v};break;default:n={x:o.x,y:o.y}}switch(d(t)){case"start":n[a]-=w*(r&&u?-1:1);break;case"end":n[a]+=w*(r&&u?-1:1)}return n}async function E(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=u(t,e),m=R(h),g=a[p?"floating"===d?"reference":"floating":d],v=C(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),w="floating"===d?{x:n,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:s}):w);return{top:(v.top-b.top+m.top)/x.y,bottom:(b.bottom-v.bottom+m.bottom)/x.y,left:(v.left-b.left+m.left)/x.x,right:(b.right-v.right+m.right)/x.x}}let j=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=l.detectOverflow?l:{...l,detectOverflow:E},s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=P(c,n,s),d=n,p=0,h={};for(let r=0;r<i.length;r++){let m=i[r];if(!m)continue;let{name:g,fn:v}=m,{x:w,y:y,data:x,reset:b}=await v({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=w?w:u,f=null!=y?y:f,h[g]={...h[g],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:u,y:f}=P(c,d,s)),r=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:h}};function T(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A(e){return r.some(t=>e[t]>=0)}function L(e){let t=o(...e.map(e=>e.left)),r=o(...e.map(e=>e.top));return{x:t,y:r,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-r}}let N=new Set(["left","top"]);async function k(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),l=f(r),a=d(r),s="y"===m(r),c=N.has(l)?-1:1,p=i&&s?-1:1,h=u(t,e),{mainAxis:g,crossAxis:v,alignmentAxis:w}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}
1:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof w&&(v="end"===a?-1*w:w),s?{x:v*p,y:g*c}:{x:g*c,y:v*p}}function H(){return"u">typeof window}function D(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!H()&&(e instanceof Node||e instanceof O(e).Node)}function F(e){return!!H()&&(e instanceof Element||e instanceof O(e).Element)}function B(e){return!!H()&&(e instanceof HTMLElement||e instanceof O(e).HTMLElement)}function z(e){return!(!H()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}function V(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function W(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let _=/transform|translate|scale|rotate|perspective|filter/,$=/paint|layout|strict|content/,K=e=>!!e&&"none"!==e;function U(e){let t=F(e)?q(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!Y()&&(K(t.backdropFilter)||K(t.filter))||_.test(t.willChange||"")||$.test(t.contain||"")}function Y(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function X(e){return/^(html|body|#document)$/.test(D(e))}function q(e){return O(e).getComputedStyle(e)}function G(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===D(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||I(e);return z(t)?t.host:t}function J(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=Z(t);return X(r)?t.ownerDocument?t.ownerDocument.body:t.body:B(r)&&V(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=O(o);if(!i)return t.concat(o,J(o,[],r));{let e=Q(l);return t.concat(l,l.visualViewport||[],V(o)?o:[],e&&r?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=q(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=B(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=l(r)!==i||l(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function et(e){return F(e)?e:e.contextElement}function er(e){let t=et(e);if(!B(t))return s(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ee(t),a=(i?l(r.width):r.width)/n,c=(i?l(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}let en=s(0);function eo(e){let t=O(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function ei(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),l=et(e),a=s(1);t&&(n?F(n)&&(a=er(n)):a=er(e));let c=(void 0===(o=r)&&(o=!1),n&&(!o||n===O(l))&&o)?eo(l):s(0),u=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=O(l),t=n&&F(n)?O(n):n,r=e,o=Q(r);for(;o&&n&&t!==r;){let e=er(o),t=o.getBoundingClientRect(),n=q(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,f*=e.y,d*=e.x,p*=e.y,u+=i,f+=l,o=Q(r=O(o))}}return C({width:d,height:p,x:u,y:f})}function el(e,t){let r=G(e).scrollLeft;return t?t.left+r:ei(I(e)).left+r}function ea(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-el(e,r),y:r.top+t.scrollTop}}function es(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=O(e),n=I(e),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=Y();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let c=el(n);if(c<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,r);else if("document"===t){let t,r,l,a,s,c,u;n=I(e),t=I(n),r=G(n),l=n.ownerDocument.body,a=i(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),s=i(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),c=-r.scrollLeft+el(n),u=-r.scrollTop,"rtl"===q(l).direction&&(c+=i(t.clientWidth,l.clientWidth)-a),o={width:a,height:s,x:c,y:u}}else if(F(t)){let e,n,i,l,a,c;n=(e=ei(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,l=B(t)?er(t):s(1),a=t.clientWidth*l.x,c=t.clientHeight*l.y,o={width:a,height:c,x:i*l.x,y:n*l.y}}else{let r=eo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return C(o)}function ec(e){return"static"===q(e).position}function eu(e,t){if(!B(e)||"fixed"===q(e).position)return null;if(t)return t(e);let r=e.offsetParent;return I(e)===r&&(r=r.ownerDocument.body),r}function ef(e,t){var r;let n=O(e);
1if(W(e))return n;if(!B(e)){let t=Z(e);for(;t&&!X(t);){if(F(t)&&!ec(t))return t;t=Z(t)}return n}let o=eu(e,t);for(;o&&(r=o,/^(table|td|th)$/.test(D(r)))&&ec(o);)o=eu(o,t);return o&&X(o)&&ec(o)&&!U(o)?n:o||function(e){let t=Z(e);for(;B(t)&&!X(t);){if(U(t))return t;if(W(t))break;t=Z(t)}return null}(e)||n}let ed=async function(e){let t=this.getOffsetParent||ef,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=B(t),o=I(t),i="fixed"===r,l=ei(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=s(0);if(n||!n&&!i)if(("body"!==D(t)||V(o))&&(a=G(t)),n){let e=ei(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=el(o));i&&!n&&o&&(c.x=el(o));let u=!o||n||i?s(0):ea(o,a);return{x:l.left+a.scrollLeft-c.x-u.x,y:l.top+a.scrollTop-c.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i="fixed"===o,l=I(n),a=!!t&&W(t.floating);if(n===l||a&&i)return r;let c={scrollLeft:0,scrollTop:0},u=s(1),f=s(0),d=B(n);if((d||!d&&!i)&&(("body"!==D(n)||V(l))&&(c=G(n)),d)){let e=ei(n);u=er(n),f.x=e.x+n.clientLeft,f.y=e.y+n.clientTop}let p=!l||d||i?s(0):ea(l,c);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+p.x,y:r.y*u.y-c.scrollTop*u.y+f.y+p.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:l}=e,a=[..."clippingAncestors"===r?W(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=J(e,[],!1).filter(e=>F(e)&&"body"!==D(e)),o=null,i="fixed"===q(e).position,l=i?Z(e):e;for(;F(l)&&!X(l);){let t=q(l),r=U(l);r||"fixed"!==t.position||(o=null),(i?r||o:!(!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||V(l)&&!r&&function e(t,r){let n=Z(t);return!(n===r||!F(n)||X(n))&&("fixed"===q(n).position||e(n,r))}(e,l)))?o=t:n=n.filter(e=>e!==l),l=Z(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=es(t,a[0],l),c=s.top,u=s.right,f=s.bottom,d=s.left;for(let e=1;e<a.length;e++){let r=es(t,a[e],l);c=i(r.top,c),u=o(r.right,u),f=o(r.bottom,f),d=i(r.left,d)}return{width:u-d,height:f-c,x:d,y:c}},getOffsetParent:ef,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ee(e);return{width:t,height:r}},getScale:er,isElement:F,isRTL:function(e){return"rtl"===q(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:i,placement:l,middlewareData:a}=t,s=await k(t,e);return l===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},eg=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:l,platform:a}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...h}=u(e,t),g={x:r,y:n},v=await a.detectOverflow(t,h),w=m(f(l)),y=p(w),x=g[y],b=g[w];if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",r=x+v[e],n=x-v[t];x=i(r,o(x,n))}if(c){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",r=b+v[e],n=b-v[t];b=i(r,o(b,n))}let S=d.fn({...t,[y]:x,[w]:b});return{...S,data:{x:S.x-r,y:S.y-n,enabled:{[y]:s,[w]:c}}}}}},ev=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,o,i,l;let a,s,c,{placement:p,middlewareData:h,rects:R,initialPlacement:C,platform:P,elements:E}=t,{mainAxis:j=!0,crossAxis:T=!0,fallbackPlacements:A,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:k=!0,...H}=u(e,t);if(null!=(r=h.arrow)&&r.alignmentOffset)return{};let D=f(p),O=m(C),I=f(C)===C,M=await (null==P.isRTL?void 0:P.isRTL(E.floating)),F=A||(I||!k?[S(C)]:(a=S(C),[v(C),a,v(a)])),B="none"!==N;!A&&B&&F.push(...(s=d(C),c=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?y:w;return t?w:y;case"left":case"right":return t?x:b;default:return[]}}(f(C),"start"===N,M),s&&(c=c.map(e=>e+"-"+s),k&&(c=c.concat(c.map(v)))),c));let z=[C,...F],V=await P.detectOverflow(t,H),W=[],_=(null==(n=h.flip)?void 0:n.overflows)||[];if(j&&W.push(V[D]),T){let e=g(p,R,M);W.push(V[e[0]],V[e[1]])}if(_=[..._,{placement:p,overflows:W}],!W.every(e=>e<=0)){let e=((null==(o=h.flip)?void 0:o.index)||0)+1,t=z[e];if(t&&("alignment"!==T||O===m(t)||_.every(e=>m(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let r=null==(i=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(L){case"bestFit":{let e=null==(l=_.filter(e=>{if(B){let t=m(e.placement);return t===O||"y"===t}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])?void 0:l[0];e&&(r=e);break}case"initialPlacement":r=C}if(p!==r)return{reset:{placement:r}}}return{}}}},ew=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let l,a,{placement:s,rects:c,platform:p,elements:h}=t,{apply:g=()=>{},...v}=u(e,t),w=await p.detectOverflow(t,v),y=f(s),x=d(s),b="y"===m(s),{width:S,height:R}=c.floating;"top"===y||"bottom"===y?(l=y,a=x===(await (null==p.isRTL?void 0:p.isRTL(h.floating))?"start":"end")?"left":"right"):(a=y,l="end"===x?"top":"bottom");let C=R-w.top-w.bottom,P=S-w.left-w.right,E=o(R-w[l],C),j=o(S-w[a],P),T=!t.middlewareData.shift,A=E,L=j;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(L=P),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(A=C),T&&!x){let e=i(w.left,0),t=i(w.right,0),r=i(w.top,0),n=i(w.bottom,0);b?L=S-2*(0!==e||0!==t?e+t:i(w.left,w.right)):A=R-2*(0!==r||0!==n?r+n:i(w.top,w.bottom))}await g({...t,availableWidth:L,availableHeight:A});let N=await p.getDimensions(h.floating);return S!==N.width||R!==N.height?{reset:{rects:!0}}:{}}}},ey=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=u(e,t);switch(o){case"referenceHidden":{let e=T(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{let e=T(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}},ex=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:l,rects:a,platform:s,elements:c,middlewareData:f}=t,{element:g,padding:v=0}=u(e,t)||{};if(null==g)return{};let w=R(v),y={x:r,y:n},x=p(m(l)),b=h(x),S=await s.getDimensions(g),C="y"===x,P=C?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[x]-y[x]-a.floating[b],j=y[x]-a.reference[x],T=await (null==s.getOffsetParent?void 0:s.getOffsetParent(g)),A=T?T[P]:0;A&&await (null==s.isElement?void 0:s.isElement(T))||(A=c.floating[P]||a.floating[b]);let L=A/2-S[b]/2-1,N=o(w[C?"top":"left"],L),k=o(w[C?"bottom":"right"],L),H=A-S[b]-k,D=A/2-S[b]/2+(E/2-j/2),O=i(N,o(D,H)),I=!f.arrow&&null!=d(l)&&D!==O&&a.reference[b]/2-(D<N?N:k)-S[b]/2<0,M=I?D<N?D-N:D-H:0;return{[x]:y[x]+M,data:{[x]:O,centerOffset:D-O-M,...I&&{alignmentOffset:M}},reset:I}}}),eb=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=u(e,t),d={x:r,y:n},h=m(o),g=p(h),v=d[g],w=d[h],y=u(a,t),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){let e="y"===g?"height":"width",t=i.reference[g]-i.floating[e]+x.mainAxis,r=i.reference[g]+i.reference[e]-x.mainAxis;v<t?v=t:v>r&&(v=r)}if(c){var b,S;let e="y"===g?"width":"height",t=N.has(f(o)),r=i.reference[h]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[h])||0)+(t?0:x.crossAxis),n=i.reference[h]+i.reference[e]+(t?0:(null==(S=l.offset)?void 0:S[h])||0)-(t?x.crossAxis:0);w<r?w=r:w>n&&(w=n)}return{[g]:v,[h]:w}}}},eS=(e,t,r)=>{let n=new Map,o={platform:ep,...r},i={...o.platform,_c:n};return j(e,t,{...o,platform:i})};e.s(["arrow",0,ex,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,i,l;let{rects:a,middlewareData:s,placement:c,platform:p,elements:h}=t,{crossAxis:m=!1,alignment:w,allowedPlacements:y=n,autoAlignment:x=!0,...b}=u(e,t),S=void 0!==w||y===n?((l=w||null)?[...y.filter(e=>d(e)===l),...y.filter(e=>d(e)!==l)]:y.filter(e=>f(e)===e)).filter(e=>!l||d(e)===l||!!x&&v(e)!==e):y,R=await p.detectOverflow(t,b),C=(null==(r=s.autoPlacement)?void 0:r.index)||0,P=S[C];if(null==P)return{};let E=g(P,a,await (null==p.isRTL?void 0:p.isRTL(h.floating)));if(c!==P)return{reset:{placement:S[0]}};let j=[R[f(P)],R[E[0]],R[E[1]]],T=[...(null==(o=s.autoPlacement)?void 0:o.overflows)||[],{placement:P,overflows:j}],A=S[C+1];if(A)return{data:{index:C+1,overflows:T},reset:{placement:A}};let L=T.map(e=>{let t=d(e.placement);return[e.placement,t&&m?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),N=(null==(i=L.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||L[0][0];return N!==c?{data:{index:C+1,overflows:T},reset:{placement:N}}:{}}}},"autoUpdate",0,function(e,t,r,n){let l;void 0===n&&(n={});let{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,p=et(e),h=s||c?[...p?J(p):[],...t?J(t):[]]:[];h.forEach(e=>{s&&e.addEventListener("scroll",r,{passive:!0}),c&&e.addEventListener("resize",r)});let m=p&&f?function(e,t){let r,n=null,l=I(e);function s(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function c(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),s();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;let v={rootMargin:-a(h)+"px "+-a(l.clientWidth-(p+m))+"px "+-a(l.clientHeight-(h+g))+"px "+-a(p)+"px",threshold:i(0,o(1,f))||1},w=!0;function y(t){let n=t[0].intersectionRatio;if(n!==f){if(!w)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==n||eh(d,e.getBoundingClientRect())||c(),w=!1}try{n=new IntersectionObserver(y,{...v,root:l.ownerDocument})}catch(e){n=new IntersectionObserver(y,v)}n.observe(e)}(!0),s}(p,r):null,g=-1,v=null;u&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),p&&!d&&v.observe(p),t&&v.observe(t));let w=d?ei(e):null;return d&&function t(){let n=ei(e);w&&!eh(w,n)&&r(),w=n,l=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{s&&e.removeEventListener("scroll",r),c&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(l)}},"computePosition",0,eS,"flip",0,ev,"hide",0,ey,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:n,rects:l,platform:a,strategy:s}=t,{padding:c=2,x:d,y:p}=u(e,t),h=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(n.reference))||[]),g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),r=[],n=null;for(let e=0;e<t.length;e++){let o=t[e];!n||o.y-n.y>n.height/2?r.push([o]):r[r.length-1].push(o),n=o}return r.map(e=>C(L(e)))}(h),v=C(L(h)),w=R(c),y=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&g[0].left>g[1].right&&null!=d&&null!=p)return g.find(e=>d>e.left-w.left&&d<e.right+w.right&&p>e.top-w.top&&p<e.bottom+w.bottom)||v;if(g.length>=2){if("y"===m(r)){let e=g[0],t=g[g.length-1],n="top"===f(r),o=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:o,bottom:i,left:l,right:a,width:a-l,height:i-o,x:l,y:o}}let e="left"===f(r),t=i(...g.map(e=>e.right)),n=o(...g.map(e=>e.left)),l=g.filter(r=>e?r.left===n:r.right===t),a=l[0].top,s=l[l.length-1].bottom;return{top:a,bottom:s,left:n,right:t,width:t-n,height:s-a,x:n,y:a}}return v}},floating:n.floating,strategy:s});return l.reference.x!==y.reference.x||l.reference.y!==y.reference.y||l.reference.width!==y.reference.width||l.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},"limitShift",0,eb,"offset",0,em,"shift",0,eg,"size",0,ew],53760);var eR=e.i(71645),eC=e.i(74080),eP="u">typeof document?eR.useLayoutEffect:function(){};function eE(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eE(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!eE(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ej(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eT(e,t){let r=ej(e);return Math.round(t*r)/r}function eA(e){let t=eR.useRef(e);return eP(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let r={name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?ex({element:r.current,padding:n}).fn(t):{}:r?ex({element:r,padding:n}).fn(t):{}}};return{name:r.name,fn:r.fn,options:[e,t]}},"flip",0,(e,t)=>{let r=ev(e);return{name:r.name,fn:r.fn,options:[e,t]}},"hide",0,(e,t)=>{let r=ey(e);return{name:r.name,fn:r.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:eb(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let r=em(e);return{name:r.name,fn:r.fn,options:[e,t]}},"shift",0,(e,t)=>{let r=eg(e);return{name:r.name,fn:r.fn,options:[e,t]}},"size",0,(e,t)=>{let r=ew(e);return{name:r.name,fn:r.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[u,f]=eR.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=eR.useState(n);eE(d,n)||p(n);let[h,m]=eR.useState(null),[g,v]=eR.useState(null),w=eR.useCallback(e=>
1{e!==S.current&&(S.current=e,m(e))},[]),y=eR.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),x=i||h,b=l||g,S=eR.useRef(null),R=eR.useRef(null),C=eR.useRef(u),P=null!=s,E=eA(s),j=eA(o),T=eA(c),A=eR.useCallback(()=>{if(!S.current||!R.current)return;let e={placement:t,strategy:r,middleware:d};j.current&&(e.platform=j.current),eS(S.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};L.current&&!eE(C.current,t)&&(C.current=t,eC.flushSync(()=>{f(t)}))})},[d,t,r,j,T]);eP(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let L=eR.useRef(!1);eP(()=>(L.current=!0,()=>{L.current=!1}),[]),eP(()=>{if(x&&(S.current=x),b&&(R.current=b),x&&b){if(E.current)return E.current(x,b,A);A()}},[x,b,A,E,P]);let N=eR.useMemo(()=>({reference:S,floating:R,setReference:w,setFloating:y}),[w,y]),k=eR.useMemo(()=>({reference:x,floating:b}),[x,b]),H=eR.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=eT(k.floating,u.x),n=eT(k.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...ej(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,a,k.floating,u.x,u.y]);return eR.useMemo(()=>({...u,update:A,refs:N,elements:k,floatingStyles:H}),[u,A,N,k,H])}],58950);var eL=e.i(48425),eN=e.i(43476),ek=eR.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...i}=e;return(0,eN.jsx)(eL.Primitive.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eN.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ek.displayName="Arrow",e.s(["Root",0,ek],53289)},35804,e=>{"use strict";var t=e.i(71645),r=e.i(34620);e.s(["useSize",0,function(e){let[n,o]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;o({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}o(void 0)},[e]),n}])},53660,e=>{"use strict";var t=e.i(71645),r=e.i(58950),n=e.i(53760),o=e.i(53289),i=e.i(20783),l=e.i(30030),a=e.i(48425),s=e.i(30207),c=e.i(34620),u=e.i(35804),f=e.i(43476),d="Popper",[p,h]=(0,l.createContextScope)(d),[m,g]=p(d),v=e=>{let{__scopePopper:r,children:n}=e,[o,i]=t.useState(null);return(0,f.jsx)(m,{scope:r,anchor:o,onAnchorChange:i,children:n})};v.displayName=d;var w="PopperAnchor",y=t.forwardRef((e,r)=>{let{__scopePopper:n,virtualRef:o,...l}=e,s=g(w,n),c=t.useRef(null),u=(0,i.useComposedRefs)(r,c),d=t.useRef(null);return t.useEffect(()=>{let e=d.current;d.current=o?.current||c.current,e!==d.current&&s.onAnchorChange(d.current)}),o?null:(0,f.jsx)(a.Primitive.div,{...l,ref:u})});y.displayName=w;var x="PopperContent",[b,S]=p(x),R=t.forwardRef((e,o)=>{let{__scopePopper:l,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:v=0,avoidCollisions:w=!0,collisionBoundary:y=[],collisionPadding:S=0,sticky:R="partial",hideWhenDetached:C=!1,updatePositionStrategy:P="optimized",onPlaced:E,...L}=e,N=g(x,l),[k,H]=t.useState(null),D=(0,i.useComposedRefs)(o,e=>H(e)),[O,I]=t.useState(null),M=(0,u.useSize)(O),F=M?.width??0,B=M?.height??0,z="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},V=Array.isArray(y)?y:[y],W=V.length>0,_={padding:z,boundary:V.filter(j),altBoundary:W},{refs:$,floatingStyles:K,placement:U,isPositioned:Y,middlewareData:X}=(0,r.useFloating)({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:(...e)=>(0,n.autoUpdate)(...e,{animationFrame:"always"===P}),elements:{reference:N.anchor},middleware:[(0,r.offset)({mainAxis:p+B,alignmentAxis:m}),w&&(0,r.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?(0,r.limitShift)():void 0,..._}),w&&(0,r.flip)({..._}),(0,r.size)({..._,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&(0,r.arrow)({element:O,padding:v}),T({arrowWidth:F,arrowHeight:B}),C&&(0,r.hide)({strategy:"referenceHidden",..._})]}),[q,G]=A(U),Z=(0,s.useCallbackRef)(E);(0,c.useLayoutEffect)(()=>{Y&&Z?.()},[Y,Z]);let J=X.arrow?.x,Q=X.arrow?.y,ee=X.arrow?.centerOffset!==0,[et,er]=t.useState();return(0,c.useLayoutEffect)(()=>{k&&er(window.getComputedStyle(k).zIndex)},[k]),(0,f.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:Y?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(b,{scope:l,placedSide:q,onArrowChange:I,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,f.jsx)(a.Primitive.div,{"data-side":q,"data-align":G,...L,ref:D,style:{...L.style,animation:Y?void 0:"none"}})})})});R.displayName=x;var C="PopperArrow",P={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},E=t.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=S(C,r),l=P[i.placedSide];return(0,f.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]: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,f.jsx)(o.Root,{...n,ref:t,style:{...n.style,display:"block"}})})});function j(e){return null!==e}E.displayName=C;var T=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,c]=A(r),u={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?u:`${f}px`,h=`${-a}px`):"top"===s?(p=i?u:`${f}px`,h=`${n.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?u:`${d}px`):"left"===s&&(p=`${n.floating.width+a}px`,h=i?u:`${d}px`),{data:{x:p,y:h}}}});function A(e){let[t,r="center"]=e.split("-");return[t,r]}e.s(["Anchor",0,y,"Arrow",0,E,"Content",0,R,"Root",0,v,"createPopperScope",0,h])},99682,e=>{"use strict";var t=e.i(71645);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}])},67489,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(74080),o=e.i(70152),i=e.i(81140),l=e.i(75830),a=e.i(20783),s=e.i(30030),c=e.i(86318),u=e.i(26330),f=e.i(3536),d=e.i(65491),p=e.i(10772),h=e.i(53660),m=e.i(74606),g=e.i(48425),v=e.i(91918),w=e.i(30207),y=e.i(69340),x=e.i(34620),b=e.i(99682),S=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"});r.forwardRef((e,r)=>(0,t.jsx)(g.Primitive.span,{...e,ref:r,style:{...S,...e.style}})).displayName="VisuallyHidden";var R=e.i(86312),C=e.i(85369),P=[" ","Enter","ArrowUp","ArrowDown"],E=[" ","Enter"],j="Select",[T,A,L]=(0,l.createCollection)(j),[N,k]=(0,s.createContextScope)(j,[L,h.createPopperScope]),H=(0,h.createPopperScope)(),[D,O]=N(j),[I,M]=N(j),F=e=>{let{__scopeSelect:n,children:o,open:i,defaultOpen:l,onOpenChange:a,value:s,defaultValue:u,onValueChange:f,dir:d,name:m,autoComplete:g,disabled:v,required:w,form:x}=e,b=H(n),[S,R]=r.useState(null),[C,P]=r.useState(null),[E,A]=r.useState(!1),L=(0,c.useDirection)(d),[N,k]=(0,y.useControllableState)({prop:i,defaultProp:l??!1,onChange:a,caller:j}),[O,M]=(0,y.useControllableState)({prop:s,defaultProp:u,onChange:f,caller:j}),F=r.useRef(null),B=!S||x||!!S.closest("form"),[z,V]=r.useState(new Set),W=Array.from(z).map(e=>e.props.value).join(";");return(0,t.jsx)(h.Root,{...b,children:(0,t.jsxs)(D,{required:w,scope:n,trigger:S,onTriggerChange:R,valueNode:C,onValueNodeChange:P,valueNodeHasChildren:E,onValueNodeHasChildrenChange:A,contentId:(0,p.useId)(),value:O,onValueChange:M,open:N,onOpenChange:k,dir:L,triggerPointerDownPosRef:F,disabled:v,children:[(0,t.jsx)(T.Provider,{scope:n,children:(0,t.jsx)(I,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{V(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{V(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:o})}),B?(0,t.jsxs)(eR,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:g,value:O,onChange:e=>M(e.target.value),disabled:v,form:x,children:[void 0===O?(0,t.jsx)("option",{value:""}):null,Array.from(z)]},W):null]})})};F.displayName=j;var B="SelectTrigger",z=r.forwardRef((e,n)=>{let{__scopeSelect:o,disabled:l=!1,...s}=e,c=H(o),u=O(B,o),f=u.disabled||l,d=(0,a.useComposedRefs)(n,u.onTriggerChange),p=A(o),m=r.useRef("touch"),[v,w,y]=eP(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eE(t,e,r);void 0!==n&&u.onValueChange(n.value)}),x=e=>{f||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,t.jsx)(h.Anchor,{asChild:!0,...c,children:(0,t.jsx)(g.Primitive.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":eC(u.value)?"":void 0,...s,ref:d,onClick:(0,i.composeEventHandlers)(s.onClick,e=>
1{e.currentTarget.focus(),"mouse"!==m.current&&x(e)}),onPointerDown:(0,i.composeEventHandlers)(s.onPointerDown,e=>{m.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,i.composeEventHandlers)(s.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||w(e.key),(!t||" "!==e.key)&&P.includes(e.key)&&(x(),e.preventDefault())})})})});z.displayName=B;var V="SelectValue",W=r.forwardRef((e,r)=>{let{__scopeSelect:n,className:o,style:i,children:l,placeholder:s="",...c}=e,u=O(V,n),{onValueNodeHasChildrenChange:f}=u,d=void 0!==l,p=(0,a.useComposedRefs)(r,u.onValueNodeChange);return(0,x.useLayoutEffect)(()=>{f(d)},[f,d]),(0,t.jsx)(g.Primitive.span,{...c,ref:p,style:{pointerEvents:"none"},children:eC(u.value)?(0,t.jsx)(t.Fragment,{children:s}):l})});W.displayName=V;var _=r.forwardRef((e,r)=>{let{__scopeSelect:n,children:o,...i}=e;return(0,t.jsx)(g.Primitive.span,{"aria-hidden":!0,...i,ref:r,children:o||"â¼"})});_.displayName="SelectIcon";var $=e=>(0,t.jsx)(m.Portal,{asChild:!0,...e});$.displayName="SelectPortal";var K="SelectContent",U=r.forwardRef((e,o)=>{let i=O(K,e.__scopeSelect),[l,a]=r.useState();return((0,x.useLayoutEffect)(()=>{a(new DocumentFragment)},[]),i.open)?(0,t.jsx)(G,{...e,ref:o}):l?n.createPortal((0,t.jsx)(Y,{scope:e.__scopeSelect,children:(0,t.jsx)(T.Slot,{scope:e.__scopeSelect,children:(0,t.jsx)("div",{children:e.children})})}),l):null});U.displayName=K;var[Y,X]=N(K),q=(0,v.createSlot)("SelectContent.RemoveScroll"),G=r.forwardRef((e,n)=>{let{__scopeSelect:o,position:l="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:p,side:h,sideOffset:m,align:g,alignOffset:v,arrowPadding:w,collisionBoundary:y,collisionPadding:x,sticky:b,hideWhenDetached:S,avoidCollisions:P,...E}=e,j=O(K,o),[T,L]=r.useState(null),[N,k]=r.useState(null),H=(0,a.useComposedRefs)(n,e=>L(e)),[D,I]=r.useState(null),[M,F]=r.useState(null),B=A(o),[z,V]=r.useState(!1),W=r.useRef(!1);r.useEffect(()=>{if(T)return(0,R.hideOthers)(T)},[T]),(0,f.useFocusGuards)();let _=r.useCallback(e=>{let[t,...r]=B().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of e)if(r===o||(r?.scrollIntoView({block:"nearest"}),r===t&&N&&(N.scrollTop=0),r===n&&N&&(N.scrollTop=N.scrollHeight),r?.focus(),document.activeElement!==o))return},[B,N]),$=r.useCallback(()=>_([D,T]),[_,D,T]);r.useEffect(()=>{z&&$()},[z,$]);let{onOpenChange:U,triggerPointerDownPosRef:X}=j;r.useEffect(()=>{if(T){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(X.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(X.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():T.contains(r.target)||U(!1),document.removeEventListener("pointermove",t),X.current=null};return null!==X.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[T,U,X]),r.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[G,Q]=eP(e=>{let t=B().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eE(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=r.useCallback((e,t,r)=>{let n=!W.current&&!r;(void 0!==j.value&&j.value===t||n)&&(I(e),n&&(W.current=!0))},[j.value]),et=r.useCallback(()=>T?.focus(),[T]),er=r.useCallback((e,t,r)=>{let n=!W.current&&!r;(void 0!==j.value&&j.value===t||n)&&F(e)},[j.value]),en="popper"===l?J:Z,eo=en===J?{side:h,sideOffset:m,align:g,alignOffset:v,arrowPadding:w,collisionBoundary:y,collisionPadding:x,sticky:b,hideWhenDetached:S,avoidCollisions:P}:{};return(0,t.jsx)(Y,{scope:o,content:T,viewport:N,onViewportChange:k,itemRefCallback:ee,selectedItem:D,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:$,selectedItemText:M,position:l,isPositioned:z,searchRef:G,children:(0,t.jsx)(C.RemoveScroll,{as:q,allowPinchZoom:!0,children:(0,t.jsx)(d.FocusScope,{asChild:!0,trapped:j.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,i.composeEventHandlers)(s,e=>{j.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,t.jsx)(u.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:(0,t.jsx)(en,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:e=>e.preventDefault(),...E,...eo,onPlaced:()=>V(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,i.composeEventHandlers)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=B().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 r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>_(t)),e.preventDefault()}})})})})})})});G.displayName="SelectContentImpl";var Z=r.forwardRef((e,n)=>{let{__scopeSelect:i,onPlaced:l,...s}=e,c=O(K,i),u=X(K,i),[f,d]=r.useState(null),[p,h]=r.useState(null),m=(0,a.useComposedRefs)(n,e=>h(e)),v=A(i),w=r.useRef(!1),y=r.useRef(!0),{viewport:b,selectedItem:S,selectedItemText:R,focusSelectedItem:C}=u,P=r.useCallback(()=>{if(c.trigger&&c.valueNode&&f&&p&&b&&S&&R){let e=c.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=c.valueNode.getBoundingClientRect(),n=R.getBoundingClientRect();if("rtl"!==c.dir){let i=n.left-t.left,l=r.left-i,a=e.left-l,s=e.width+a,c=Math.max(s,t.width),u=window.innerWidth-10,d=(0,o.clamp)(l,[10,Math.max(10,u-c)]);f.style.minWidth=s+"px",f.style.left=d+"px"}else{let i=t.right-n.right,l=window.innerWidth-r.right-i,a=window.innerWidth-e.right-l,s=e.width+a,c=Math.max(s,t.width),u=window.innerWidth-10,d=(0,o.clamp)(l,[10,Math.max(10,u-c)]);f.style.minWidth=s+"px",f.style.right=d+"px"}let i=v(),a=window.innerHeight-20,s=b.scrollHeight,u=window.getComputedStyle(p),d=parseInt(u.borderTopWidth,10),h=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),g=d+h+s+parseInt(u.paddingBottom,10)+m,y=Math.min(5*S.offsetHeight,g),x=window.getComputedStyle(b),C=parseInt(x.paddingTop,10),P=parseInt(x.paddingBottom,10),E=e.top+e.height/2-10,j=S.offsetHeight/2,T=d+h+(S.offsetTop+j);if(T<=E){let e=i.length>0&&S===i[i.length-1].ref.current;f.style.bottom="0px";let t=Math.max(a-E,j+(e?P:0)+(p.clientHeight-b.offsetTop-b.offsetHeight)+m);f.style.height=T+t+"px"}else{let e=i.length>0&&S===i[0].ref.current;f.style.top="0px";let t=Math.max(E,d+b.offsetTop+(e?C:0)+j);f.style.height=t+(g-T)+"px",b.scrollTop=T-E+b.offsetTop}f.style.margin="10px 0",f.style.minHeight=y+"px",f.style.maxHeight=a+"px",l?.(),requestAnimationFrame(()=>w.current=!0)}},[v,c.trigger,c.valueNode,f,p,b,S,R,c.dir,l]);(0,x.useLayoutEffect)(()=>P(),[P]);let[E,j]=r.useState();(0,x.useLayoutEffect)(()=>{p&&j(window.getComputedStyle(p).zIndex)},[p]);let T=r.useCallback(e=>{e&&!0===y.current&&(P(),C?.(),y.current=!1)},[P,C]);return(0,t.jsx)(Q,{scope:i,contentWrapper:f,shouldExpandOnScrollRef:w,onScrollButtonChange:T,children:(0,t.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,t.jsx)(g.Primitive.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Z.displayName="SelectItemAlignedPosition";var J=r.forwardRef((e,r)=>{let{__scopeSelect:n,align:o="start",collisionPadding:i=10,...l}=e,a=H(n);return(0,t.jsx)(h.Content,{...a,...l,ref:r,align:o,collisionPadding:i,style:{boxSizing:"border-box",...l.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)"}})});J.displayName="SelectPopperPosition";var[Q,ee]=N(K,{}),et="SelectViewport",er=r.forwardRef((e,n)=>{let{__scopeSelect:o,nonce:l,...s}=e,c=X(et,o),u=ee(et,o),f=(0,a.useComposedRefs)(n,c.onViewportChange),d=r.useRef(0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.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:l}),(0,t.jsx)(T.Slot,{scope:o,children:(0,t.jsx)(g.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:(0,i.composeEventHandlers)(s.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if(n?.current&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,o=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(o<n){let i=o+e,l=Math.min(n,i),a=i-l;r.style.height=l+"px","0px"===r.style.bottom&&(t.scrollTop=a>0?a:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});er.displayName=et;var en="SelectGroup",[eo,ei]=N(en);r.forwardRef((e,r)=>{let{__scopeSelect:n,...o}=e,i=(0,p.useId)();return(0,t.jsx)(eo,{scope:n,id:i,children:(0,t.jsx)(g.Primitive.div,{role:"group","aria-labelledby":i,...o,ref:r})})}).displayName=en;var el="SelectLabel",ea=r.forwardRef((e,r)=>{let{__scopeSelect:n,...o}=e,i=ei(el,n);return(0,t.jsx)(g.Primitive.div,{id:i.id,...o,ref:r})});ea.displayName=el;
1var es="SelectItem",[ec,eu]=N(es),ef=r.forwardRef((e,n)=>{let{__scopeSelect:o,value:l,disabled:s=!1,textValue:c,...u}=e,f=O(es,o),d=X(es,o),h=f.value===l,[m,v]=r.useState(c??""),[w,y]=r.useState(!1),x=(0,a.useComposedRefs)(n,e=>d.itemRefCallback?.(e,l,s)),b=(0,p.useId)(),S=r.useRef("touch"),R=()=>{s||(f.onValueChange(l),f.onOpenChange(!1))};if(""===l)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,t.jsx)(ec,{scope:o,value:l,disabled:s,textId:b,isSelected:h,onItemTextChange:r.useCallback(e=>{v(t=>t||(e?.textContent??"").trim())},[]),children:(0,t.jsx)(T.ItemSlot,{scope:o,value:l,disabled:s,textValue:m,children:(0,t.jsx)(g.Primitive.div,{role:"option","aria-labelledby":b,"data-highlighted":w?"":void 0,"aria-selected":h&&w,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:x,onFocus:(0,i.composeEventHandlers)(u.onFocus,()=>y(!0)),onBlur:(0,i.composeEventHandlers)(u.onBlur,()=>y(!1)),onClick:(0,i.composeEventHandlers)(u.onClick,()=>{"mouse"!==S.current&&R()}),onPointerUp:(0,i.composeEventHandlers)(u.onPointerUp,()=>{"mouse"===S.current&&R()}),onPointerDown:(0,i.composeEventHandlers)(u.onPointerDown,e=>{S.current=e.pointerType}),onPointerMove:(0,i.composeEventHandlers)(u.onPointerMove,e=>{S.current=e.pointerType,s?d.onItemLeave?.():"mouse"===S.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,i.composeEventHandlers)(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:(0,i.composeEventHandlers)(u.onKeyDown,e=>{(d.searchRef?.current===""||" "!==e.key)&&(E.includes(e.key)&&R()," "===e.key&&e.preventDefault())})})})})});ef.displayName=es;var ed="SelectItemText",ep=r.forwardRef((e,o)=>{let{__scopeSelect:i,className:l,style:s,...c}=e,u=O(ed,i),f=X(ed,i),d=eu(ed,i),p=M(ed,i),[h,m]=r.useState(null),v=(0,a.useComposedRefs)(o,e=>m(e),d.onItemTextChange,e=>f.itemTextRefCallback?.(e,d.value,d.disabled)),w=h?.textContent,y=r.useMemo(()=>(0,t.jsx)("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:b,onNativeOptionRemove:S}=p;return(0,x.useLayoutEffect)(()=>(b(y),()=>S(y)),[b,S,y]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.Primitive.span,{id:d.textId,...c,ref:v}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?n.createPortal(c.children,u.valueNode):null]})});ep.displayName=ed;var eh="SelectItemIndicator",em=r.forwardRef((e,r)=>{let{__scopeSelect:n,...o}=e;return eu(eh,n).isSelected?(0,t.jsx)(g.Primitive.span,{"aria-hidden":!0,...o,ref:r}):null});em.displayName=eh;var eg="SelectScrollUpButton",ev=r.forwardRef((e,n)=>{let o=X(eg,e.__scopeSelect),i=ee(eg,e.__scopeSelect),[l,s]=r.useState(!1),c=(0,a.useComposedRefs)(n,i.onScrollButtonChange);return(0,x.useLayoutEffect)(()=>{if(o.viewport&&o.isPositioned){let e=function(){s(t.scrollTop>0)},t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),l?(0,t.jsx)(ex,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ev.displayName=eg;var ew="SelectScrollDownButton",ey=r.forwardRef((e,n)=>{let o=X(ew,e.__scopeSelect),i=ee(ew,e.__scopeSelect),[l,s]=r.useState(!1),c=(0,a.useComposedRefs)(n,i.onScrollButtonChange);return(0,x.useLayoutEffect)(()=>{if(o.viewport&&o.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)},t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),l?(0,t.jsx)(ex,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ey.displayName=ew;var ex=r.forwardRef((e,n)=>{let{__scopeSelect:o,onAutoScroll:l,...a}=e,s=X("SelectScrollButton",o),c=r.useRef(null),u=A(o),f=r.useCallback(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]);return r.useEffect(()=>()=>f(),[f]),(0,x.useLayoutEffect)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,t.jsx)(g.Primitive.div,{"aria-hidden":!0,...a,ref:n,style:{flexShrink:0,...a.style},onPointerDown:(0,i.composeEventHandlers)(a.onPointerDown,()=>{null===c.current&&(c.current=window.setInterval(l,50))}),onPointerMove:(0,i.composeEventHandlers)(a.onPointerMove,()=>{s.onItemLeave?.(),null===c.current&&(c.current=window.setInterval(l,50))}),onPointerLeave:(0,i.composeEventHandlers)(a.onPointerLeave,()=>{f()})})}),eb=r.forwardRef((e,r)=>{let{__scopeSelect:n,...o}=e;return(0,t.jsx)(g.Primitive.div,{"aria-hidden":!0,...o,ref:r})});
1eb.displayName="SelectSeparator";var eS="SelectArrow";r.forwardRef((e,r)=>{let{__scopeSelect:n,...o}=e,i=H(n),l=O(eS,n),a=X(eS,n);return l.open&&"popper"===a.position?(0,t.jsx)(h.Arrow,{...i,...o,ref:r}):null}).displayName=eS;var eR=r.forwardRef(({__scopeSelect:e,value:n,...o},i)=>{let l=r.useRef(null),s=(0,a.useComposedRefs)(i,l),c=(0,b.usePrevious)(n);return r.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(c!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[c,n]),(0,t.jsx)(g.Primitive.select,{...o,style:{...S,...o.style},ref:s,defaultValue:n})});function eC(e){return""===e||void 0===e}function eP(e){let t=(0,w.useCallbackRef)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,l]}function eE(e,t,r){var n,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,a=(n=e,o=Math.max(l,0),n.map((e,t)=>n[(o+t)%n.length]));1===i.length&&(a=a.filter(e=>e!==r));let s=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==r?s:void 0}eR.displayName="SelectBubbleInput";var ej=e.i(43531),eT=e.i(64659),eA=e.i(55900),eL=e.i(75157);let eN=r.forwardRef(({className:e,children:r,...n},o)=>(0,t.jsxs)(z,{ref:o,className:(0,eL.cn)("flex h-10 w-full items-center justify-between rounded-[4px] border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[r,(0,t.jsx)(_,{asChild:!0,children:(0,t.jsx)(eT.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));eN.displayName=z.displayName;let ek=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(ev,{ref:n,className:(0,eL.cn)("flex cursor-default items-center justify-center py-1",e),...r,children:(0,t.jsx)(eA.ChevronUp,{className:"h-4 w-4"})}));ek.displayName=ev.displayName;let eH=r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(ey,{ref:n,className:(0,eL.cn)("flex cursor-default items-center justify-center py-1",e),...r,children:(0,t.jsx)(eT.ChevronDown,{className:"h-4 w-4"})}));eH.displayName=ey.displayName;let eD=r.forwardRef(({className:e,children:r,position:n="popper",...o},i)=>(0,t.jsx)($,{children:(0,t.jsxs)(U,{ref:i,className:(0,eL.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[4px] 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","popper"===n&&"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:[(0,t.jsx)(ek,{}),(0,t.jsx)(er,{className:(0,eL.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,t.jsx)(eH,{})]})}));eD.displayName=U.displayName,r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(ea,{ref:n,className:(0,eL.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...r})).displayName=ea.displayName;let eO=r.forwardRef(({className:e,children:r,...n},o)=>(0,t.jsxs)(ef,{ref:o,className:(0,eL.cn)("relative flex w-full cursor-default select-none items-center rounded-[4px] py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(em,{children:(0,t.jsx)(ej.Check,{className:"h-4 w-4"})})}),(0,t.jsx)(ep,{children:r})]}));eO.displayName=ef.displayName,r.forwardRef(({className:e,...r},n)=>(0,t.jsx)(eb,{ref:n,className:(0,eL.cn)("-mx-1 my-1 h-px bg-muted",e),...r})).displayName=eb.displayName,e.s(["Select",0,F,"SelectContent",0,eD,"SelectItem",0,eO,"SelectTrigger",0,eN,"SelectValue",0,W],67489)}]);
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.