1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1359],{1096:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5379).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},2841:(e,t,n)=>{n.d(t,{Qg:()=>i,bL:()=>s});var r=n(2115),l=n(8363),o=n(5155),i=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"}),a=r.forwardRef((e,t)=>(0,o.jsx)(l.sG.span,{...e,ref:t,style:{...i,...e.style}}));a.displayName="VisuallyHidden";var s=a},3029:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5379).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},3257:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5379).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},3320:(e,t,n)=>{let r;n.d(t,{UC:()=>t7,YJ:()=>ne,In:()=>t9,q7:()=>nn,VF:()=>nl,p4:()=>nr,JU:()=>nt,ZL:()=>t8,bL:()=>t5,wn:()=>ni,PP:()=>no,wv:()=>na,l9:()=>t6,WT:()=>t3,LM:()=>t4});var l=n(2115),o=n(7650);function i(e,[t,n]){return Math.min(n,Math.max(t,e))}var a=n(2840),s=n(9836),u=n(2162),c=n(3592),f=n(9798),d=n(168),p=n(6506),h=n(310),m=n(998);let g=["top","right","bottom","left"],v=Math.min,w=Math.max,y=Math.round,x=Math.floor,b=e=>({x:e,y:e}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function C(e,t){return"function"==typeof e?e(t):e}function R(e){return e.split("-")[0]}function A(e){return e.split("-")[1]}function T(e){return"x"===e?"y":"x"}function E(e){return"y"===e?"height":"width"}function j(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function P(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let k=["left","right"],L=["right","left"],N=["top","bottom"],D=["bottom","top"];function O(e){let t=R(e);return S[t]+e.slice(t.length)}function M(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function I(e){let{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function H(e,t,n){let r,{reference:l,floating:o}=e,i=j(t),a=T(j(t)),s=E(a),u=R(t),c="y"===i,f=l.x+l.width/2-o.width/2,d=l.y+l.height/2-o.height/2,p=l[s]/2-o[s]/2;switch(u){case"top":r={x:f,y:l.y-o.height};break;case"bottom":r={x:f,y:l.y+l.height};break;case"right":r={x:l.x+l.width,y:d};break;case"left":r={x:l.x-o.width,y:d};break;default:r={x:l.x,y:l.y}}switch(A(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}async function W(e,t){var n;void 0===t&&(t={});let{x:r,y:l,platform:o,rects:i,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=C(t,e),h=M(p),m=a[d?"floating"===f?"reference":"floating":f],g=I(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===f?{x:r,y:l,width:i.floating.width,height:i.floating.height}:i.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),y=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},x=I(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:s}):v);return{top:(g.top-x.top+h.top)/y.y,bottom:(x.bottom-g.bottom+h.bottom)/y.y,left:(g.left-x.left+h.left)/y.x,right:(x.right-g.right+h.right)/y.x}}let _=async(e,t,n)=>{let{placement:r="bottom",strategy:l="absolute",middleware:o=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:W},s=await (null==i.isRTL?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:l}),{x:c,y:f}=H(u,r,s),d=r,p=0,h={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:v}=m,{x:w,y:y,data:x,reset:b}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:l,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=w?w:c,f=null!=y?y:f,h[g]={...h[g],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:l}):b.rects),{x:c,y:f}=H(u,d,s)),n=-1)}return{x:c,y:f,placement:d,strategy:l,middlewareData:h}};function B(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function F(e){return g.some(t=>e[t]>=0)}let V=new Set(["left","top"]);async function K(e,t){let{placement:n,platform:r,elements:l}=e,o=await (null==r.isRTL?void 0:r.isRTL(l.floating)),i=R(n),a=A(n),s="y"===j(n),u=V.has(i)?-1:1,c=o&&s?-1:1,f=C(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}
1:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}function z(){return"undefined"!=typeof window}function G(e){return X(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function q(e){var t;return null==(t=(X(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function X(e){return!!z()&&(e instanceof Node||e instanceof U(e).Node)}function Y(e){return!!z()&&(e instanceof Element||e instanceof U(e).Element)}function $(e){return!!z()&&(e instanceof HTMLElement||e instanceof U(e).HTMLElement)}function Z(e){return!!z()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof U(e).ShadowRoot)}function J(e){let{overflow:t,overflowX:n,overflowY:r,display:l}=ei(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==l&&"contents"!==l}function Q(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ee=/transform|translate|scale|rotate|perspective|filter/,et=/paint|layout|strict|content/,en=e=>!!e&&"none"!==e;function er(e){let t=Y(e)?ei(e):e;return en(t.transform)||en(t.translate)||en(t.scale)||en(t.rotate)||en(t.perspective)||!el()&&(en(t.backdropFilter)||en(t.filter))||ee.test(t.willChange||"")||et.test(t.contain||"")}function el(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function eo(e){return/^(html|body|#document)$/.test(G(e))}function ei(e){return U(e).getComputedStyle(e)}function ea(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if("html"===G(e))return e;let t=e.assignedSlot||e.parentNode||Z(e)&&e.host||q(e);return Z(t)?t.host:t}function eu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let l=function e(t){let n=es(t);return eo(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&J(n)?n:e(n)}(e),o=l===(null==(r=e.ownerDocument)?void 0:r.body),i=U(l);if(!o)return t.concat(l,eu(l,[],n));{let e=ec(i);return t.concat(i,i.visualViewport||[],J(l)?l:[],e&&n?eu(e):[])}}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ef(e){let t=ei(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,l=$(e),o=l?e.offsetWidth:n,i=l?e.offsetHeight:r,a=y(n)!==o||y(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function ed(e){return Y(e)?e:e.contextElement}function ep(e){let t=ed(e);if(!$(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:l,$:o}=ef(t),i=(o?y(n.width):n.width)/r,a=(o?y(n.height):n.height)/l;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}let eh=b(0);function em(e){let t=U(e);return el()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eh}function eg(e,t,n,r){var l;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),i=ed(e),a=b(1);t&&(r?Y(r)&&(a=ep(r)):a=ep(e));let s=(void 0===(l=n)&&(l=!1),r&&(!l||r===U(i))&&l)?em(i):b(0),u=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){let e=U(i),t=r&&Y(r)?U(r):r,n=e,l=ec(n);for(;l&&r&&t!==n;){let e=ep(l),t=l.getBoundingClientRect(),r=ei(l),o=t.left+(l.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(l.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,d*=e.y,u+=o,c+=i,l=ec(n=U(l))}}return I({width:f,height:d,x:u,y:c})}function ev(e,t){let n=ea(e).scrollLeft;return t?t.left+n:eg(q(e)).left+n}function ew(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ev(e,n),y:n.top+t.scrollTop}}function ey(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=U(e),r=q(e),l=n.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,s=0;if(l){o=l.width,i=l.height;let e=el();(!e||e&&"fixed"===t)&&(a=l.offsetLeft,s=l.offsetTop)}let u=ev(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),l="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-l);i<=25&&(o-=i)}else u<=25&&(o+=u);return{width:o,height:i,x:a,y:s}}
1(e,n);else if("document"===t)r=function(e){let t=q(e),n=ea(e),r=e.ownerDocument.body,l=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+ev(e),a=-n.scrollTop;return"rtl"===ei(r).direction&&(i+=w(t.clientWidth,r.clientWidth)-l),{width:l,height:o,x:i,y:a}}(q(e));else if(Y(t))r=function(e,t){let n=eg(e,!0,"fixed"===t),r=n.top+e.clientTop,l=n.left+e.clientLeft,o=$(e)?ep(e):b(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:i,height:a,x:l*o.x,y:r*o.y}}(t,n);else{let n=em(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return I(r)}function ex(e){return"static"===ei(e).position}function eb(e,t){if(!$(e)||"fixed"===ei(e).position)return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function eS(e,t){var n;let r=U(e);if(Q(e))return r;if(!$(e)){let t=es(e);for(;t&&!eo(t);){if(Y(t)&&!ex(t))return t;t=es(t)}return r}let l=eb(e,t);for(;l&&(n=l,/^(table|td|th)$/.test(G(n)))&&ex(l);)l=eb(l,t);return l&&eo(l)&&ex(l)&&!er(l)?r:l||function(e){let t=es(e);for(;$(t)&&!eo(t);){if(er(t))return t;if(Q(t))break;t=es(t)}return null}(e)||r}let eC=async function(e){let t=this.getOffsetParent||eS,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=$(t),l=q(t),o="fixed"===n,i=eg(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=b(0);if(r||!r&&!o)if(("body"!==G(t)||J(l))&&(a=ea(t)),r){let e=eg(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else l&&(s.x=ev(l));o&&!r&&l&&(s.x=ev(l));let u=!l||r||o?b(0):ew(l,a);return{x:i.left+a.scrollLeft-s.x-u.x,y:i.top+a.scrollTop-s.y-u.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eR={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:l}=e,o="fixed"===l,i=q(r),a=!!t&&Q(t.floating);if(r===i||a&&o)return n;let s={scrollLeft:0,scrollTop:0},u=b(1),c=b(0),f=$(r);if((f||!f&&!o)&&(("body"!==G(r)||J(i))&&(s=ea(r)),f)){let e=eg(r);u=ep(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!i||f||o?b(0):ew(i,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}},getDocumentElement:q,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,o=[..."clippingAncestors"===n?Q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eu(e,[],!1).filter(e=>Y(e)&&"body"!==G(e)),l=null,o="fixed"===ei(e).position,i=o?es(e):e;for(;Y(i)&&!eo(i);){let t=ei(i),n=er(i);n||"fixed"!==t.position||(l=null),(o?n||l:!(!n&&"static"===t.position&&l&&("absolute"===l.position||"fixed"===l.position)||J(i)&&!n&&function e(t,n){let r=es(t);return!(r===n||!Y(r)||eo(r))&&("fixed"===ei(r).position||e(r,n))}(e,i)))?l=t:r=r.filter(e=>e!==i),i=es(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=ey(t,o[0],l),a=i.top,s=i.right,u=i.bottom,c=i.left;for(let e=1;e<o.length;e++){let n=ey(t,o[e],l);a=w(n.top,a),s=v(n.right,s),u=v(n.bottom,u),c=w(n.left,c)}return{width:s-c,height:u-a,x:c,y:a}},getOffsetParent:eS,getElementRects:eC,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ef(e);return{width:t,height:n}},getScale:ep,isElement:Y,isRTL:function(e){return"rtl"===ei(e).direction}};function eA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eT=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:o,platform:i,elements:a,middlewareData:s}=t,{element:u,padding:c=0}=C(e,t)||{};if(null==u)return{};let f=M(c),d={x:n,y:r},p=T(j(l)),h=E(p),m=await i.getDimensions(u),g="y"===p,y=g?"clientHeight":"clientWidth",x=o.reference[h]+o.reference[p]-d[p]-o.floating[h],b=d[p]-o.reference[p],S=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u)),R=S?S[y]:0;R&&await (null==i.isElement?void 0:i.isElement(S))||(R=a.floating[y]||o.floating[h]);let P=R/2-m[h]/2-1,k=v(f[g?"top":"left"],P),L=v(f[g?"bottom":"right"],P),N=R-m[h]-L,D=R/2-m[h]/2+(x/2-b/2),O=w(k,v(D,N)),I=!s.arrow&&null!=A(l)&&D!==O&&o.reference[h]/2-(D<k?k:L)-m[h]/2<0,H=I?D<k?D-k:D-N:0;return{[p]:d[p]+H,data:{[p]:O,centerOffset:D-O-H,...I&&{alignmentOffset:H}},reset:I}}});var eE="undefined"!=typeof document?l.useLayoutEffect:function(){};function ej(e,t){let n,r,l;if(e===t)return!0;
1if(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((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ej(e[r],t[r]))return!1;return!0}if((n=(l=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,l[r]))return!1;for(r=n;0!=r--;){let n=l[r];if(("_owner"!==n||!e.$$typeof)&&!ej(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eP(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=eP(e);return Math.round(t*n)/n}function eL(e){let t=l.useRef(e);return eE(()=>{t.current=e}),t}var eN=n(8363),eD=n(5155),eO=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:l=5,...o}=e;return(0,eD.jsx)(eN.sG.svg,{...o,ref:t,width:r,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eD.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eO.displayName="Arrow";var eM=n(3690),eI=n(8749),eH=n(8220),eW="Popper",[e_,eB]=(0,c.A)(eW),[eF,eV]=e_(eW),eK=e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return(0,eD.jsx)(eF,{scope:t,anchor:r,onAnchorChange:o,children:n})};eK.displayName=eW;var ez="PopperAnchor",eG=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=eV(ez,n),a=l.useRef(null),s=(0,u.s)(t,a),c=l.useRef(null);return l.useEffect(()=>{let e=c.current;c.current=(null==r?void 0:r.current)||a.current,e!==c.current&&i.onAnchorChange(c.current)}),r?null:(0,eD.jsx)(eN.sG.div,{...o,ref:s})});eG.displayName=ez;var eU="PopperContent",[eq,eX]=e_(eU),eY=l.forwardRef((e,t)=>{var n,r,i,a,s,c,f,d;let{__scopePopper:p,side:h="bottom",sideOffset:m=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:S=!0,collisionBoundary:M=[],collisionPadding:I=0,sticky:H="partial",hideWhenDetached:W=!1,updatePositionStrategy:z="optimized",onPlaced:G,...U}=e,X=eV(eU,p),[Y,$]=l.useState(null),Z=(0,u.s)(t,e=>$(e)),[J,Q]=l.useState(null),ee=(0,eH.X)(J),et=null!=(f=null==ee?void 0:ee.width)?f:0,en=null!=(d=null==ee?void 0:ee.height)?d:0,er="number"==typeof I?I:{top:0,right:0,bottom:0,left:0,...I},el=Array.isArray(M)?M:[M],eo=el.length>0,ei={padding:er,boundary:el.filter(eQ),altBoundary:eo},{refs:ea,floatingStyles:es,placement:ec,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:c,open:f}=e,[d,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(r);ej(h,r)||m(r);let[g,v]=l.useState(null),[w,y]=l.useState(null),x=l.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),b=l.useCallback(e=>{e!==A.current&&(A.current=e,y(e))},[]),S=a||g,C=s||w,R=l.useRef(null),A=l.useRef(null),T=l.useRef(d),E=null!=c,j=eL(c),P=eL(i),k=eL(f),L=l.useCallback(()=>{if(!R.current||!A.current)return;let e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),((e,t,n)=>{let r=new Map,l={platform:eR,...n},o={...l.platform,_c:r};return _(e,t,{...l,platform:o})})(R.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};N.current&&!ej(T.current,t)&&(T.current=t,o.flushSync(()=>{p(t)}))})},[h,t,n,P,k]);eE(()=>{!1===f&&T.current.isPositioned&&(T.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);let N=l.useRef(!1);eE(()=>(N.current=!0,()=>{N.current=!1}),[]),eE(()=>{if(S&&(R.current=S),C&&(A.current=C),S&&C){if(j.current)return j.current(S,C,L);L()}},[S,C,L,j,E]);let D=l.useMemo(()=>({reference:R,floating:A,setReference:x,setFloating:b}),[x,b]),O=l.useMemo(()=>({reference:S,floating:C}),[S,C]),M=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=ek(O.floating,d.x),r=ek(O.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eP(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,O.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:L,refs:D,elements:O,floatingStyles:M}),[d,L,D,O,M])}({strategy:"fixed",placement:h+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=ed(e),f=o||i?[...c?eu(c):[],...t?eu(t):[]]:[];
1f.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let d=c&&s?function(e,t){let n,r=null,l=q(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),o();let u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(a||t(),!d||!p)return;let h=x(f),m=x(l.clientWidth-(c+d)),g={rootMargin:-h+"px "+-m+"px "+-x(l.clientHeight-(f+p))+"px "+-x(c)+"px",threshold:w(0,v(1,s))||1},y=!0;function b(t){let r=t[0].intersectionRatio;if(r!==s){if(!y)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||eA(u,e.getBoundingClientRect())||i(),y=!1}try{r=new IntersectionObserver(b,{...g,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),o}(c,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),t&&h.observe(t));let m=u?eg(e):null;return u&&function t(){let r=eg(e);m&&!eA(m,r)&&n(),m=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(l)}}(...t,{animationFrame:"always"===z})},elements:{reference:X.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:l,y:o,placement:i,middlewareData:a}=t,s=await K(t,e);return i===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:l+s.x,y:o+s.y,data:{...s,placement:i}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:m+en,alignmentAxis:y}),S&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l,platform:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=C(e,t),c={x:n,y:r},f=await o.detectOverflow(t,u),d=j(R(l)),p=T(d),h=c[p],m=c[d];
1if(i){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=h+f[e],r=h-f[t];h=w(n,v(h,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+f[e],r=m-f[t];m=w(n,v(m,r))}let g=s.fn({...t,[p]:h,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[d]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===H?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:l,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=C(e,t),c={x:n,y:r},f=j(l),d=T(f),p=c[d],h=c[f],m=C(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+g.mainAxis,n=o.reference[d]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,w;let e="y"===d?"width":"height",t=V.has(R(l)),n=o.reference[f]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[f])||0)+(t?0:g.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:(null==(w=i.offset)?void 0:w[f])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}}(e).fn,options:[e,t]}))():void 0,...ei}),S&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,l,o,i;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...y}=C(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let x=R(a),b=j(c),S=R(c)===c,M=await (null==f.isRTL?void 0:f.isRTL(d.floating)),I=m||(S||!w?[O(c)]:function(e){let t=O(e);return[P(e),t,P(t)]}(c)),H="none"!==v;!m&&H&&I.push(...function(e,t,n,r){let l=A(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?L:k;return t?k:L;case"left":case"right":return t?N:D;default:return[]}}(R(e),"start"===n,r);return l&&(o=o.map(e=>e+"-"+l),t&&(o=o.concat(o.map(P)))),o}(c,w,v,M));let W=[c,...I],_=await f.detectOverflow(t,y),B=[],F=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&B.push(_[x]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=A(e),l=T(j(e)),o=E(l),i="x"===l?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=O(i)),[i,O(i)]}(a,u,M);B.push(_[e[0]],_[e[1]])}if(F=[...F,{placement:a,overflows:B}],!B.every(e=>e<=0)){let e=((null==(l=s.flip)?void 0:l.index)||0)+1,t=W[e];if(t&&("alignment"!==h||b===j(t)||F.every(e=>j(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(g){case"bestFit":{let e=null==(i=F.filter(e=>{if(H){let t=j(e.placement);return t===b||"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:i[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ei}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,o,{placement:i,rects:a,platform:s,elements:u}=t,{apply:c=()=>{},...f}=C(e,t),d=await s.detectOverflow(t,f),p=R(i),h=A(i),m="y"===j(i),{width:g,height:y}=a.floating;"top"===p||"bottom"===p?(l=p,o=h===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(o=p,l="end"===h?"top":"bottom");let x=y-d.top-d.bottom,b=g-d.left-d.right,S=v(y-d[l],x),T=v(g-d[o],b),E=!t.middlewareData.shift,P=S,k=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=x),E&&!h){let e=w(d.left,0),t=w(d.right,0),n=w(d.top,0),r=w(d.bottom,0);m?k=g-2*(0!==e||0!==t?e+t:w(d.left,d.right)):P=y-2*(0!==n||0!==r?n+r:w(d.top,d.bottom))}await c({...t,availableWidth:k,availableHeight:P});let L=await s.getDimensions(u.floating);return g!==L.width||y!==L.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ei,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:l}=e,{width:o,height:i}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(l,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),J&&((e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eT({element:n.current,padding:r}).fn(t):{}:n?eT({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:J,padding:b}),e0({arrowWidth:et,arrowHeight:en}),W&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:l="referenceHidden",...o}=C(e,t);switch(l){case"referenceHidden":{let e=B(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:F(e)}}}case"escaped":{let e=B(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:F(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...ei})]}),[eh,em]=e1(ec),ev=(0,eM.c)(G);(0,eI.N)(()=>{ef&&(null==ev||ev())},[ef,ev]);let ew=null==(n=ep.arrow)?void 0:n.x,ey=null==(r=ep.arrow)?void 0:r.y,ex=(null==(i=ep.arrow)?void 0:i.centerOffset)!==0,[eb,eS]=l.useState();return(0,eI.N)(()=>{Y&&eS(window.getComputedStyle(Y).zIndex)},[Y]),(0,eD.jsx)("div",{ref:ea.setFloating,"data-radix-popper-content-wrapper":"",style:{...es,transform:ef?es.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eb,"--radix-popper-transform-origin":[null==(a=ep.transformOrigin)?void 0:a.x,null==(s=ep.transformOrigin)?void 0:s.y].join(" "),...(null==(c=ep.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eD.jsx)(eq,{scope:p,placedSide:eh,onArrowChange:Q,arrowX:ew,arrowY:ey,shouldHideArrow:ex,children:(0,eD.jsx)(eN.sG.div,{"data-side":eh,"data-align":em,...U,ref:Z,style:{...U.style,animation:ef?void 0:"none"}})})})});eY.displayName=eU;var e$="PopperArrow",eZ={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eJ=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,l=eX(e$,n),o=eZ[l.placedSide];return(0,eD.jsx)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:(0,eD.jsx)(eO,{...r,ref:t,style:{...r.style,display:"block"}})})});function eQ(e){return null!==e}eJ.displayName=e$;var e0=e=>({name:"transformOrigin",options:e,fn(t){var n,r,l,o,i;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=e1(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!=(o=null==(r=u.arrow)?void 0:r.x)?o:0)+f/2,v=(null!=(i=null==(l=u.arrow)?void 0:l.y)?i:0)+d/2,w="",y="";return"bottom"===p?(w=c?m:"".concat(g,"px"),y="".concat(-d,"px")):"top"===p?(w=c?m:"".concat(g,"px"),y="".concat(s.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),y=c?m:"".concat(v,"px")):"left"===p&&(w="".concat(s.floating.width+d,"px"),y=c?m:"".concat(v,"px")),{data:{x:w,y}}}});function e1(e){let[t,n="center"]=e.split("-");return[t,n]}var e2=n(4205),e5=Symbol("radix.slottable");function e6(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===e5}var e3=n(5885),e9=n(7936),e8=n(2841),e7=n(6914),e4=n(8264),te=[" ","Enter","ArrowUp","ArrowDown"],tt=[" ","Enter"],tn="Select",[tr,tl,to]=(0,s.N)(tn),[ti,ta]=(0,c.A)(tn,[to,eB]),ts=eB(),[tu,tc]=ti(tn),[tf,td]=ti(tn),tp=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:u,dir:c,name:d,autoComplete:p,disabled:h,required:g,form:v}=e,w=ts(t),[y,x]=l.useState(null),[b,S]=l.useState(null),[C,R]=l.useState(!1),A=(0,f.jH)(c),[T,E]=(0,e3.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:tn}),[j,P]=(0,e3.i)({prop:a,defaultProp:s,onChange:u,caller:tn}),k=l.useRef(null),L=!y||v||!!y.closest("form"),[N,D]=l.useState(new Set),O=Array.from(N).map(e=>e.props.value).join(";");return(0,eD.jsx)(eK,{...w,children:(0,eD.jsxs)(tu,{required:g,scope:t,trigger:y,onTriggerChange:x,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:R,contentId:(0,m.B)(),value:j,onValueChange:P,open:T,onOpenChange:E,dir:A,triggerPointerDownPosRef:k,disabled:h,children:[(0,eD.jsx)(tr.Provider,{scope:t,children:(0,eD.jsx)(tf,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(e=>{D(t=>new Set(t).add(e))},[]),onNativeOptionRemove:l.useCallback(e=>{D(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),L?(0,eD.jsxs)(tQ,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:p,value:j,onChange:e=>P(e.target.value),disabled:h,form:v,children:[void 0===j?(0,eD.jsx)("option",{value:""}):null,Array.from(N)]},O):null]})})};tp.displayName=tn;var th="SelectTrigger",tm=l.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=ts(n),s=tc(th,n),c=s.disabled||r,f=(0,u.s)(t,s.onTriggerChange),d=tl(n),p=l.useRef("touch"),[h,m,g]=t1(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=t2(t,e,n);void 0!==r&&s.onValueChange(r.value)}),v=e=>{c||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,eD.jsx)(eG,{asChild:!0,...i,children:(0,eD.jsx)(eN.sG.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":t0(s.value)?"":void 0,...o,ref:f,onClick:(0,a.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&v(e)}),onPointerDown:(0,a.mK)(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:(0,a.mK)(o.onKeyDown,e=>{let t=""!==h.current;
1e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&te.includes(e.key)&&(v(),e.preventDefault())})})})});tm.displayName=th;var tg="SelectValue",tv=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:l,children:o,placeholder:i="",...a}=e,s=tc(tg,n),{onValueNodeHasChildrenChange:c}=s,f=void 0!==o,d=(0,u.s)(t,s.onValueNodeChange);return(0,eI.N)(()=>{c(f)},[c,f]),(0,eD.jsx)(eN.sG.span,{...a,ref:d,style:{pointerEvents:"none"},children:t0(s.value)?(0,eD.jsx)(eD.Fragment,{children:i}):o})});tv.displayName=tg;var tw=l.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...l}=e;return(0,eD.jsx)(eN.sG.span,{"aria-hidden":!0,...l,ref:t,children:r||"â¼"})});tw.displayName="SelectIcon";var ty=e=>(0,eD.jsx)(e2.Z,{asChild:!0,...e});ty.displayName="SelectPortal";var tx="SelectContent",tb=l.forwardRef((e,t)=>{let n=tc(tx,e.__scopeSelect),[r,i]=l.useState();return((0,eI.N)(()=>{i(new DocumentFragment)},[]),n.open)?(0,eD.jsx)(tA,{...e,ref:t}):r?o.createPortal((0,eD.jsx)(tS,{scope:e.__scopeSelect,children:(0,eD.jsx)(tr.Slot,{scope:e.__scopeSelect,children:(0,eD.jsx)("div",{children:e.children})})}),r):null});tb.displayName=tx;var[tS,tC]=ti(tx),tR=function(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){var o;let e,i,a=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let n={...t};for(let r in t){let l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...o}:"className"===r&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==l.Fragment&&(s.ref=t?(0,u.t)(t,a):a),l.cloneElement(n,s)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=l.forwardRef((e,n)=>{let{children:r,...o}=e,i=l.Children.toArray(r),a=i.find(e6);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,eD.jsx)(t,{...o,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,eD.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}("SelectContent.RemoveScroll"),tA=l.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:c,sideOffset:f,align:m,alignOffset:g,arrowPadding:v,collisionBoundary:w,collisionPadding:y,sticky:x,hideWhenDetached:b,avoidCollisions:S,...C}=e,R=tc(tx,n),[A,T]=l.useState(null),[E,j]=l.useState(null),P=(0,u.s)(t,e=>T(e)),[k,L]=l.useState(null),[N,D]=l.useState(null),O=tl(n),[M,I]=l.useState(!1),H=l.useRef(!1);l.useEffect(()=>{if(A)return(0,e7.Eq)(A)},[A]),(0,p.Oh)();let W=l.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),l=document.activeElement;for(let n of e)if(n===l||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&E&&(E.scrollTop=0),n===r&&E&&(E.scrollTop=E.scrollHeight),null==n||n.focus(),document.activeElement!==l))return},[O,E]),_=l.useCallback(()=>W([k,A]),[W,k,A]);l.useEffect(()=>{M&&_()},[M,_]);let{onOpenChange:B,triggerPointerDownPosRef:F}=R;l.useEffect(()=>{if(A){let e={x:0,y:0},t=t=>{var n,r,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(l=null==(n=F.current)?void 0:n.x)?l:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(r=F.current)?void 0:r.y)?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():A.contains(n.target)||B(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[A,B,F]),l.useEffect(()=>{let e=()=>B(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[B]);let[V,K]=t1(e=>
1{let t=O().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=t2(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),z=l.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==R.value&&R.value===t||r)&&(L(e),r&&(H.current=!0))},[R.value]),G=l.useCallback(()=>null==A?void 0:A.focus(),[A]),U=l.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==R.value&&R.value===t||r)&&D(e)},[R.value]),q="popper"===r?tE:tT,X=q===tE?{side:c,sideOffset:f,align:m,alignOffset:g,arrowPadding:v,collisionBoundary:w,collisionPadding:y,sticky:x,hideWhenDetached:b,avoidCollisions:S}:{};return(0,eD.jsx)(tS,{scope:n,content:A,viewport:E,onViewportChange:j,itemRefCallback:z,selectedItem:k,onItemLeave:G,itemTextRefCallback:U,focusSelectedItem:_,selectedItemText:N,position:r,isPositioned:M,searchRef:V,children:(0,eD.jsx)(e4.A,{as:tR,allowPinchZoom:!0,children:(0,eD.jsx)(h.n,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(o,e=>{var t;null==(t=R.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,eD.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:(0,eD.jsx)(q,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault(),...C,...X,onPlaced:()=>I(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,a.mK)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||K(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().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(()=>W(t)),e.preventDefault()}})})})})})})});tA.displayName="SelectContentImpl";var tT=l.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,a=tc(tx,n),s=tC(tx,n),[c,f]=l.useState(null),[d,p]=l.useState(null),h=(0,u.s)(t,e=>p(e)),m=tl(n),g=l.useRef(!1),v=l.useRef(!0),{viewport:w,selectedItem:y,selectedItemText:x,focusSelectedItem:b}=s,S=l.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&w&&y&&x){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),l=x.getBoundingClientRect();if("rtl"!==a.dir){let r=l.left-t.left,o=n.left-r,a=e.left-o,s=e.width+a,u=Math.max(s,t.width),f=i(o,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=s+"px",c.style.left=f+"px"}else{let r=t.right-l.right,o=window.innerWidth-n.right-r,a=window.innerWidth-e.right-o,s=e.width+a,u=Math.max(s,t.width),f=i(o,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=s+"px",c.style.right=f+"px"}let o=m(),s=window.innerHeight-20,u=w.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),v=parseInt(f.borderBottomWidth,10),b=p+h+u+parseInt(f.paddingBottom,10)+v,S=Math.min(5*y.offsetHeight,b),C=window.getComputedStyle(w),R=parseInt(C.paddingTop,10),A=parseInt(C.paddingBottom,10),T=e.top+e.height/2-10,E=y.offsetHeight/2,j=p+h+(y.offsetTop+E);if(j<=T){let e=o.length>0&&y===o[o.length-1].ref.current;c.style.bottom="0px";let t=Math.max(s-T,E+(e?A:0)+(d.clientHeight-w.offsetTop-w.offsetHeight)+v);c.style.height=j+t+"px"}else{let e=o.length>0&&y===o[0].ref.current;c.style.top="0px";let t=Math.max(T,p+w.offsetTop+(e?R:0)+E);c.style.height=t+(b-j)+"px",w.scrollTop=j-T+w.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=S+"px",c.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[m,a.trigger,a.valueNode,c,d,w,y,x,a.dir,r]);(0,eI.N)(()=>S(),[S]);let[C,R]=l.useState();(0,eI.N)(()=>{d&&R(window.getComputedStyle(d).zIndex)},[d]);let A=l.useCallback(e=>{e&&!0===v.current&&(S(),null==b||b(),v.current=!1)},[S,b]);return(0,eD.jsx)(tj,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:(0,eD.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,eD.jsx)(eN.sG.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});tT.displayName="SelectItemAlignedPosition";var tE=l.forwardRef((e,t)=>
1{let{__scopeSelect:n,align:r="start",collisionPadding:l=10,...o}=e,i=ts(n);return(0,eD.jsx)(eY,{...i,...o,ref:t,align:r,collisionPadding:l,style:{boxSizing:"border-box",...o.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)"}})});tE.displayName="SelectPopperPosition";var[tj,tP]=ti(tx,{}),tk="SelectViewport",tL=l.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,i=tC(tk,n),s=tP(tk,n),c=(0,u.s)(t,i.onViewportChange),f=l.useRef(0);return(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.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,eD.jsx)(tr.Slot,{scope:n,children:(0,eD.jsx)(eN.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if((null==r?void 0:r.current)&&n){let e=Math.abs(f.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,l=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(l<r){let o=l+e,i=Math.min(r,o),a=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});tL.displayName=tk;var tN="SelectGroup",[tD,tO]=ti(tN),tM=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,l=(0,m.B)();return(0,eD.jsx)(tD,{scope:n,id:l,children:(0,eD.jsx)(eN.sG.div,{role:"group","aria-labelledby":l,...r,ref:t})})});tM.displayName=tN;var tI="SelectLabel",tH=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,l=tO(tI,n);return(0,eD.jsx)(eN.sG.div,{id:l.id,...r,ref:t})});tH.displayName=tI;var tW="SelectItem",[t_,tB]=ti(tW),tF=l.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,c=tc(tW,n),f=tC(tW,n),d=c.value===r,[p,h]=l.useState(null!=i?i:""),[g,v]=l.useState(!1),w=(0,u.s)(t,e=>{var t;return null==(t=f.itemRefCallback)?void 0:t.call(f,e,r,o)}),y=(0,m.B)(),x=l.useRef("touch"),b=()=>{o||(c.onValueChange(r),c.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,eD.jsx)(t_,{scope:n,value:r,disabled:o,textId:y,isSelected:d,onItemTextChange:l.useCallback(e=>{h(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,eD.jsx)(tr.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:(0,eD.jsx)(eN.sG.div,{role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:w,onFocus:(0,a.mK)(s.onFocus,()=>v(!0)),onBlur:(0,a.mK)(s.onBlur,()=>v(!1)),onClick:(0,a.mK)(s.onClick,()=>{"mouse"!==x.current&&b()}),onPointerUp:(0,a.mK)(s.onPointerUp,()=>{"mouse"===x.current&&b()}),onPointerDown:(0,a.mK)(s.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,a.mK)(s.onPointerMove,e=>{if(x.current=e.pointerType,o){var t;null==(t=f.onItemLeave)||t.call(f)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.mK)(s.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=f.onItemLeave)||t.call(f)}}),onKeyDown:(0,a.mK)(s.onKeyDown,e=>{var t;((null==(t=f.searchRef)?void 0:t.current)===""||" "!==e.key)&&(tt.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});tF.displayName=tW;var tV="SelectItemText",tK=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,s=tc(tV,n),c=tC(tV,n),f=tB(tV,n),d=td(tV,n),[p,h]=l.useState(null),m=(0,u.s)(t,e=>h(e),f.onItemTextChange,e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,f.value,f.disabled)}),g=null==p?void 0:p.textContent,v=l.useMemo(()=>(0,eD.jsx)("option",{value:f.value,disabled:f.disabled,children:g},f.value),[f.disabled,f.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:y}=d;return(0,eI.N)(()=>(w(v),()=>y(v)),[w,y,v]),(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsx)(eN.sG.span,{id:f.textId,...a,ref:m}),f.isSelected&&s.valueNode&&!s.valueNodeHasChildren?o.createPortal(a.children,s.valueNode):null]})});tK.displayName=tV;var tz="SelectItemIndicator",tG=l.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e;return tB(tz,n).isSelected?(0,eD.jsx)(eN.sG.span,{"aria-hidden":!0,...r,ref:t}):null});tG.displayName=tz;var tU="SelectScrollUpButton",tq=l.forwardRef((e,t)=>{let n=tC(tU,e.__scopeSelect),r=tP(tU,e.__scopeSelect),[o,i]=l.useState(!1),a=(0,u.s)(t,r.onScrollButtonChange);return(0,eI.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,eD.jsx)(t$,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tq.displayName=tU;var tX="SelectScrollDownButton",tY=l.forwardRef((e,t)=>{let n=tC(tX,e.__scopeSelect),r=tP(tX,e.__scopeSelect),[o,i]=l.useState(!1),a=(0,u.s)(t,r.onScrollButtonChange);return(0,eI.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,eD.jsx)(t$,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tY.displayName=tX;var t$=l.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,i=tC("SelectScrollButton",n),s=l.useRef(null),u=tl(n),c=l.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),(0,eI.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,eD.jsx)(eN.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.mK)(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:(0,a.mK)(o.onPointerMove,()=>{var e;null==(e=i.onItemLeave)||e.call(i),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:(0,a.mK)(o.onPointerLeave,()=>{c()})})}),tZ=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,eD.jsx)(eN.sG.div,{"aria-hidden":!0,...r,ref:t})});tZ.displayName="SelectSeparator";var tJ="SelectArrow";l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,l=ts(n),o=tc(tJ,n),i=tC(tJ,n);return o.open&&"popper"===i.position?(0,eD.jsx)(eJ,{...l,...r,ref:t}):null}).displayName=tJ;var tQ=l.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...o}=e,i=l.useRef(null),a=(0,u.s)(t,i),s=(0,e9.Z)(r);return l.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,eD.jsx)(eN.sG.select,{...o,style:{...e8.Qg,...o.style},ref:a,defaultValue:r})});function t0(e){return""===e||void 0===e}function t1(e){let t=(0,eM.c)(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(e=>{let l=n.current+e;t(l),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(l)},[t]),i=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function t2(e,t,n){var r,l;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=(r=e,l=Math.max(i,0),r.map((e,t)=>r[(l+t)%r.length]));1===o.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}tQ.displayName="SelectBubbleInput";var t5=tp,t6=tm,t3=tv,t9=tw,t8=ty,t7=tb,t4=tL,ne=tM,nt=tH,nn=tF,nr=tK,nl=tG,no=tq,ni=tY,na=tZ},7936:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(2115);function l(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},8220:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(2115),l=n(8749);function o(e){let[t,n]=r.useState(void 0);return(0,l.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,l;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,l=t.blockSize}else r=e.offsetWidth,l=e.offsetHeight;n({width:r,height:l})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]);
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.