1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41712,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,i=Math.max,o=Math.round,l=Math.floor,s=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function c(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}let m=new Set(["top","bottom"]);function g(e){return m.has(c(e))?"y":"x"}function y(e,t,n){void 0===n&&(n=!1);let r=d(e),i=h(g(e)),o=p(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=C(l)),[l,C(l)]}function v(e){return e.replace(/start|end/g,e=>u[e])}let w=["left","right"],x=["right","left"],b=["top","bottom"],R=["bottom","top"];function C(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function E(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function S(e,t,n){let r,{reference:i,floating:o}=e,l=g(t),s=h(g(t)),a=p(s),u=c(t),f="y"===l,m=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,v=i[a]/2-o[a]/2;switch(u){case"top":r={x:m,y:i.y-o.height};break;case"bottom":r={x:m,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-o.width,y:y};break;default:r={x:i.x,y:i.y}}switch(d(t)){case"start":r[s]-=v*(n&&f?-1:1);break;case"end":r[s]+=v*(n&&f?-1:1)}return r}async function T(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=f(t,e),m=E(p),g=s[h?"floating"===d?"reference":"floating":d],y=A(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:a})),v="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},b=A(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:a}):v);return{top:(y.top-b.top+m.top)/x.y,bottom:(b.bottom-y.bottom+m.bottom)/x.y,left:(y.left-b.left+m.left)/x.x,right:(b.right-y.right+m.right)/x.x}}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=o.filter(Boolean),a=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=S(u,r,a),d=r,h={},p=0;for(let n=0;n<s.length;n++){var m;let{name:o,fn:g}=s[n],{x:y,y:v,data:w,reset:x}=await g({x:f,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:{...l,detectOverflow:null!=(m=l.detectOverflow)?m:T},elements:{reference:e,floating:t}});f=null!=y?y:f,c=null!=v?v:c,h={...h,[o]:{...h[o],...w}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(u=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:f,y:c}=S(u,d,a)),n=-1)}return{x:f,y:c,placement:d,strategy:i,middlewareData:h}};function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function k(e){return t.some(t=>e[t]>=0)}function L(e){let t=r(...e.map(e=>e.left)),n=r(...e.map(e=>e.top));return{x:t,y:n,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-n}}let P=new Set(["left","top"]);async function M(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=c(n),s=d(n),a="y"===g(n),u=P.has(l)?-1:1,h=o&&a?-1:1,p=f(t,e),{mainAxis:m,crossAxis:y,alignmentAxis:v}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}
1:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof v&&(y="end"===s?-1*v:v),a?{x:y*h,y:m*u}:{x:m*u,y:y*h}}function D(){return"undefined"!=typeof window}function F(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!D()&&(e instanceof Node||e instanceof I(e).Node)}function H(e){return!!D()&&(e instanceof Element||e instanceof I(e).Element)}function _(e){return!!D()&&(e instanceof HTMLElement||e instanceof I(e).HTMLElement)}function W(e){return!!D()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}let B=new Set(["inline","contents"]);function $(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!B.has(i)}let U=new Set(["table","td","th"]),V=[":popover-open",":modal"];function K(e){return V.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let G=["transform","translate","scale","rotate","perspective"],q=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function Y(e){let t=Z(),n=H(e)?ee(e):e;return G.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||q.some(e=>(n.willChange||"").includes(e))||X.some(e=>(n.contain||"").includes(e))}function Z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let J=new Set(["html","body","#document"]);function Q(e){return J.has(F(e))}function ee(e){return I(e).getComputedStyle(e)}function et(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===F(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||j(e);return W(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=en(t);return Q(n)?t.ownerDocument?t.ownerDocument.body:t.body:_(n)&&$(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=I(i);if(o){let e=ei(l);return t.concat(l,l.visualViewport||[],$(i)?i:[],e&&n?er(e):[])}return t.concat(i,er(i,[],n))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=_(e),l=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=o(n)!==l||o(r)!==s;return a&&(n=l,r=s),{width:n,height:r,$:a}}function el(e){return H(e)?e:e.contextElement}function es(e){let t=el(e);if(!_(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=eo(t),a=(l?o(n.width):n.width)/r,u=(l?o(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let ea=s(0);function eu(e){let t=I(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ea}function ef(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=el(e),a=s(1);t&&(r?H(r)&&(a=es(r)):a=es(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===I(l))&&i)?eu(l):s(0),f=(o.left+u.x)/a.x,c=(o.top+u.y)/a.y,d=o.width/a.x,h=o.height/a.y;if(l){let e=I(l),t=r&&H(r)?I(r):r,n=e,i=ei(n);for(;i&&r&&t!==n;){let e=es(i),t=i.getBoundingClientRect(),r=ee(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,c*=e.y,d*=e.x,h*=e.y,f+=o,c+=l,i=ei(n=I(i))}}return A({width:d,height:h,x:f,y:c})}function ec(e,t){let n=et(e).scrollLeft;return t?t.left+n:ef(j(e)).left+n}function ed(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ec(e,n),y:n.top+t.scrollTop}}let eh=new Set(["absolute","fixed"]);function ep(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=I(e),r=j(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,a=0;if(i){o=i.width,l=i.height;let e=Z();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}let u=ec(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else u<=25&&(o+=u);return{width:o,height:l,x:s,y:a}}(e,n);else if("document"===t){let t,n,l,s,a,u,f;r=j(e),t=j(r),n=et(r),l=r.ownerDocument.body,s=i(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),a=i(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),u=-n.scrollLeft+ec(r),f=-n.scrollTop,"rtl"===ee(l).direction&&(u+=i(t.clientWidth,l.clientWidth)-s),o={width:s,height:a,x:u,y:f}}else if(H(t)){let e,r,i,l,a,u;r=(e=ef(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=_(t)?es(t):s(1),a=t.clientWidth*l.x,u=t.clientHeight*l.y,o={width:a,height:u,x:i*l.x,y:r*l.y}}else{let n=eu(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(o)}function em(e){return"static"===ee(e).position}function eg(e,t){if(!_(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return j(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){var n;let r=I(e);if(K(e))return r;if(!_(e)){let t=en(e);for(;t&&!Q(t);){if(H(t)&&!em(t))return t;t=en(t)}return r}let i=eg(e,t);for(;i&&(n=i,U.has(F(n)))&&em(i);)i=eg(i,t);
1return i&&Q(i)&&em(i)&&!Y(i)?r:i||function(e){let t=en(e);for(;_(t)&&!Q(t);){if(Y(t))return t;if(K(t))break;t=en(t)}return null}(e)||r}let ev=async function(e){let t=this.getOffsetParent||ey,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=_(t),i=j(t),o="fixed"===n,l=ef(e,!0,o,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!o)if(("body"!==F(t)||$(i))&&(a=et(t)),r){let e=ef(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ec(i));o&&!r&&i&&(u.x=ec(i));let f=!i||r||o?s(0):ed(i,a);return{x:l.left+a.scrollLeft-u.x-f.x,y:l.top+a.scrollTop-u.y-f.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=j(r),a=!!t&&K(t.floating);if(r===l||a&&o)return n;let u={scrollLeft:0,scrollTop:0},f=s(1),c=s(0),d=_(r);if((d||!d&&!o)&&(("body"!==F(r)||$(l))&&(u=et(r)),_(r))){let e=ef(r);f=es(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let h=!l||d||o?s(0):ed(l,u);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+c.x+h.x,y:n.y*f.y-u.scrollTop*f.y+c.y+h.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,s=[..."clippingAncestors"===n?K(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>H(e)&&"body"!==F(e)),i=null,o="fixed"===ee(e).position,l=o?en(e):e;for(;H(l)&&!Q(l);){let t=ee(l),n=Y(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&eh.has(i.position)||$(l)&&!n&&function e(t,n){let r=en(t);return!(r===n||!H(r)||Q(r))&&("fixed"===ee(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=en(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=s[0],u=s.reduce((e,n)=>{let o=ep(t,n,l);return e.top=i(o.top,e.top),e.right=r(o.right,e.right),e.bottom=r(o.bottom,e.bottom),e.left=i(o.left,e.left),e},ep(t,a,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ey,getElementRects:ev,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:es,isElement:H,isRTL:function(e){return"rtl"===ee(e).direction}};function ex(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eb(e,t,n,o){let s;void 0===o&&(o={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:f="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,h=el(e),p=a||u?[...h?er(h):[],...er(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=h&&c?function(e,t){let n,o=null,s=j(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function u(f,c){void 0===f&&(f=!1),void 0===c&&(c=1),a();let d=e.getBoundingClientRect(),{left:h,top:p,width:m,height:g}=d;if(f||t(),!m||!g)return;let y={rootMargin:-l(p)+"px "+-l(s.clientWidth-(h+m))+"px "+-l(s.clientHeight-(p+g))+"px "+-l(h)+"px",threshold:i(0,r(1,c))||1},v=!0;function w(t){let r=t[0].intersectionRatio;if(r!==c){if(!v)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ex(d,e.getBoundingClientRect())||u(),v=!1}try{o=new IntersectionObserver(w,{...y,root:s.ownerDocument})}catch(e){o=new IntersectionObserver(w,y)}o.observe(e)}(!0),a}(h,n):null,g=-1,y=null;f&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),h&&!d&&y.observe(h),y.observe(t));let v=d?ef(e):null;return d&&function t(){let r=ef(e);v&&!ex(v,r)&&n(),v=r,s=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(s)}}let eR=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:s}=t,a=await M(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:l}}}}},eC=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,o,l;let{rects:s,middlewareData:a,placement:u,platform:h,elements:p}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:w=n,autoAlignment:x=!0,...b}=f(e,t),R=void 0!==g||w===n?((l=g||null)?[...w.filter(e=>d(e)===l),...w.filter(e=>d(e)!==l)]:w.filter(e=>c(e)===e)).filter(e=>!l||d(e)===l||!!x&&v(e)!==e):w,C=await h.detectOverflow(t,b),E=(null==(r=a.autoPlacement)?void 0:r.index)||0,A=R[E];if(null==A)return{};let S=y(A,s,await (null==h.isRTL?void 0:h.isRTL(p.floating)));if(u!==A)return{reset:{placement:R[0]}};let T=[C[c(A)],C[S[0]],C[S[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:A,overflows:T}],N=R[E+1];if(N)return{data:{index:E+1,overflows:O},reset:{placement:N}};let k=O.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]),L=(null==(o=k.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||k[0][0];return L!==u?{data:{index:E+1,overflows:O},reset:{placement:L}}:{}}}},eE=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:l,platform:s}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...p}=f(e,t),m={x:n,y:o},y=await s.detectOverflow(t,p),v=g(c(l)),w=h(v),x=m[w],b=m[v];if(a){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=x+y[e],o=x-y[t];x=i(n,r(x,o))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+y[e],o=b-y[t];b=i(n,r(b,o))}let R=d.fn({...t,[w]:x,[v]:b});return{...R,data:{x:R.x-n,y:R.y-o,enabled:{[w]:a,[v]:u}}}}}},eA=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let s,a,u,{placement:h,middlewareData:p,rects:m,initialPlacement:E,platform:A,elements:S}=t,{mainAxis:T=!0,crossAxis:O=!0,fallbackPlacements:N,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:P=!0,...M}=f(e,t);if(null!=(n=p.arrow)&&n.alignmentOffset)return{};let D=c(h),F=g(E),I=c(E)===E,j=await (null==A.isRTL?void 0:A.isRTL(S.floating)),z=N||(I||!P?[C(E)]:(s=C(E),[v(E),s,v(s)])),H="none"!==L;!N&&H&&z.push(...(a=d(E),u=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:w;return t?w:x;case"left":case"right":return t?b:R;default:return[]}}(c(E),"start"===L,j),a&&(u=u.map(e=>e+"-"+a),P&&(u=u.concat(u.map(v)))),u));let _=[E,...z],W=await A.detectOverflow(t,M),B=[],$=(null==(r=p.flip)?void 0:r.overflows)||[];if(T&&B.push(W[D]),O){let e=y(h,m,j);B.push(W[e[0]],W[e[1]])}if($=[...$,{placement:h,overflows:B}],!B.every(e=>e<=0)){let e=((null==(i=p.flip)?void 0:i.index)||0)+1,t=_[e];if(t&&("alignment"!==O||F===g(t)||$.every(e=>g(e.placement)!==F||e.overflows[0]>0)))return{data:{index:e,overflows:$},reset:{placement:t}};let n=null==(o=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(k){case"bestFit":{let e=null==(l=$.filter(e=>{if(H){let t=g(e.placement);return t===F||"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&&(n=e);break}case"initialPlacement":n=E}if(h!==n)return{reset:{placement:n}}}return{}}}},eS=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let l,s,{placement:a,rects:u,platform:h,elements:p}=t,{apply:m=()=>{},...y}=f(e,t),v=await h.detectOverflow(t,y),w=c(a),x=d(a),b="y"===g(a),{width:R,height:C}=u.floating;"top"===w||"bottom"===w?(l=w,s=x===(await (null==h.isRTL?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(s=w,l="end"===x?"top":"bottom");let E=C-v.top-v.bottom,A=R-v.left-v.right,S=r(C-v[l],E),T=r(R-v[s],A),O=!t.middlewareData.shift,N=S,k=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=A),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(N=E),O&&!x){let e=i(v.left,0),t=i(v.right,0),n=i(v.top,0),r=i(v.bottom,0);b?k=R-2*(0!==e||0!==t?e+t:i(v.left,v.right)):N=C-2*(0!==n||0!==r?n+r:i(v.top,v.bottom))}await m({...t,availableWidth:k,availableHeight:N});let L=await h.getDimensions(p.floating);return R!==L.width||C!==L.height?{reset:{rects:!0}}:{}}}},eT=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=f(e,t);switch(i){case"referenceHidden":{let e=N(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:k(e)}}}case"escaped":{let e=N(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:k(e)}}}default:return{}}}}},eO=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:l,rects:s,platform:a,elements:u,middlewareData:c}=t,{element:m,padding:y=0}=f(e,t)||{};if(null==m)return{};let v=E(y),w={x:n,y:o},x=h(g(l)),b=p(x),R=await a.getDimensions(m),C="y"===x,A=C?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[x]-w[x]-s.floating[b],T=w[x]-s.reference[x],O=await (null==a.getOffsetParent?void 0:a.getOffsetParent(m)),N=O?O[A]:0;N&&await (null==a.isElement?void 0:a.isElement(O))||(N=u.floating[A]||s.floating[b]);let k=N/2-R[b]/2-1,L=r(v[C?"top":"left"],k),P=r(v[C?"bottom":"right"],k),M=N-R[b]-P,D=N/2-R[b]/2+(S/2-T/2),F=i(L,r(D,M)),I=!c.arrow&&null!=d(l)&&D!==F&&s.reference[b]/2-(D<L?L:P)-R[b]/2<0,j=I?D<L?D-L:D-M:0;return{[x]:w[x]+j,data:{[x]:F,centerOffset:D-F-j,...I&&{alignmentOffset:j}},reset:I}}}),eN=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:o,rects:l,platform:s,strategy:a}=t,{padding:u=2,x:d,y:h}=f(e,t),p=Array.from(await (null==s.getClientRects?void 0:s.getClientRects(o.reference))||[]),m=function(e){let t=e.slice().sort((e,t)=>
1e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>A(L(e)))}(p),y=A(L(p)),v=E(u),w=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=d&&null!=h)return m.find(e=>d>e.left-v.left&&d<e.right+v.right&&h>e.top-v.top&&h<e.bottom+v.bottom)||y;if(m.length>=2){if("y"===g(n)){let e=m[0],t=m[m.length-1],r="top"===c(n),i=e.top,o=t.bottom,l=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:o,left:l,right:s,width:s-l,height:o-i,x:l,y:i}}let e="left"===c(n),t=i(...m.map(e=>e.right)),o=r(...m.map(e=>e.left)),l=m.filter(n=>e?n.left===o:n.right===t),s=l[0].top,a=l[l.length-1].bottom;return{top:s,bottom:a,left:o,right:t,width:t-o,height:a-s,x:o,y:s}}return y}},floating:o.floating,strategy:a});return l.reference.x!==w.reference.x||l.reference.y!==w.reference.y||l.reference.width!==w.reference.width||l.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},ek=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:s=0,mainAxis:a=!0,crossAxis:u=!0}=f(e,t),d={x:n,y:r},p=g(i),m=h(p),y=d[m],v=d[p],w=f(s,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){let e="y"===m?"height":"width",t=o.reference[m]-o.floating[e]+x.mainAxis,n=o.reference[m]+o.reference[e]-x.mainAxis;y<t?y=t:y>n&&(y=n)}if(u){var b,R;let e="y"===m?"width":"height",t=P.has(c(i)),n=o.reference[p]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[p])||0)+(t?0:x.crossAxis),r=o.reference[p]+o.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[p])||0)-(t?x.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[m]:y,[p]:v}}}},eL=(e,t,n)=>{let r=new Map,i={platform:ew,...n},o={...i.platform,_c:r};return O(e,t,{...i,platform:o})};e.s(["arrow",()=>eO,"autoPlacement",()=>eC,"autoUpdate",()=>eb,"computePosition",()=>eL,"flip",()=>eA,"hide",()=>eT,"inline",()=>eN,"limitShift",()=>ek,"offset",()=>eR,"shift",()=>eE,"size",()=>eS],41712)},36833,e=>{"use strict";let t=(0,e.i(33912).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],36833)},70065,e=>{"use strict";var t=e.i(45687),n=e.i(21382),r=e.i(73273);let i=n.forwardRef(({className:e,...n},i)=>(0,t.jsx)("div",{ref:i,className:(0,r.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n}));i.displayName="Card",n.forwardRef(({className:e,...n},i)=>(0,t.jsx)("div",{ref:i,className:(0,r.cn)("flex flex-col space-y-1.5 p-2 md:p-6",e),...n})).displayName="CardHeader",n.forwardRef(({className:e,...n},i)=>(0,t.jsx)("h3",{ref:i,className:(0,r.cn)("text-2xl font-semibold leading-none tracking-tight",e),...n})).displayName="CardTitle",n.forwardRef(({className:e,...n},i)=>(0,t.jsx)("p",{ref:i,className:(0,r.cn)("text-sm text-muted-foreground",e),...n})).displayName="CardDescription";let o=n.forwardRef(({className:e,...n},i)=>(0,t.jsx)("div",{ref:i,className:(0,r.cn)("p-6 pt-0",e),...n}));o.displayName="CardContent",n.forwardRef(({className:e,...n},i)=>(0,t.jsx)("div",{ref:i,className:(0,r.cn)("flex items-center p-6 pt-0",e),...n})).displayName="CardFooter",e.s(["Card",()=>i,"CardContent",()=>o])},58014,e=>{"use strict";var t=e.i(21382),n=e.i(91967),r=e.i(54143),i=e.i(52896),o=e.i(75985),l=e.i(42454),s=e.i(82394),a=e.i(57797),u=e.i(69875),f=e.i(21193),c=e.i(45687),d="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[m,g,y]=(0,r.createCollection)(p),[v,w]=(0,o.createContextScope)(p,[y]),[x,b]=v(p),R=t.forwardRef((e,t)=>(0,c.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(C,{...e,ref:t})})}));R.displayName=p;var C=t.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:o,orientation:l,loop:m=!1,dir:y,currentTabStopId:v,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:b,onEntryFocus:R,preventScrollOnEntryFocus:C=!1,...E}=e,A=t.useRef(null),S=(0,i.useComposedRefs)(r,A),O=(0,f.useDirection)(y),[N,k]=(0,u.useControllableState)({prop:v,defaultProp:w??null,onChange:b,caller:p}),[L,P]=t.useState(!1),M=(0,a.useCallbackRef)(R),D=g(o),F=t.useRef(!1),[I,j]=t.useState(0);return t.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(d,M),()=>e.removeEventListener(d,M)},[M]),(0,c.jsx)(x,{scope:o,orientation:l,dir:O,loop:m,currentTabStopId:N,onItemFocus:t.useCallback(e=>k(e),[k]),onItemShiftTab:t.useCallback(()=>P(!0),[]),onFocusableItemAdd:t.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>j(e=>
1e-1),[]),children:(0,c.jsx)(s.Primitive.div,{tabIndex:L||0===I?-1:0,"data-orientation":l,...E,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,n.composeEventHandlers)(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(d,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===N),...e].filter(Boolean).map(e=>e.ref.current),C)}}F.current=!1}),onBlur:(0,n.composeEventHandlers)(e.onBlur,()=>P(!1))})})}),E="RovingFocusGroupItem",A=t.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:i,focusable:o=!0,active:a=!1,tabStopId:u,children:f,...d}=e,h=(0,l.useId)(),p=u||h,y=b(E,i),v=y.currentTabStopId===p,w=g(i),{onFocusableItemAdd:x,onFocusableItemRemove:R,currentTabStopId:C}=y;return t.useEffect(()=>{if(o)return x(),()=>R()},[o,x,R]),(0,c.jsx)(m.ItemSlot,{scope:i,id:p,focusable:o,active:a,children:(0,c.jsx)(s.Primitive.span,{tabIndex:v?0:-1,"data-orientation":y.orientation,...d,ref:r,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{o?y.onItemFocus(p):e.preventDefault()}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>y.onItemFocus(p)),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void y.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return S[i]}(e,y.orientation,y.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=w().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=y.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>T(i))}}),children:"function"==typeof f?f({isCurrentTabStop:v,hasTabStop:null!=C}):f})})});A.displayName=E;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}e.s(["Item",()=>A,"Root",()=>R,"createRovingFocusGroupScope",()=>w])},88850,e=>{"use strict";let t=(0,e.i(33912).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],88850)},54143,e=>{"use strict";var t=e.i(21382),n=e.i(75985),r=e.i(52896),i=e.i(53525),o=e.i(45687);function l(e){let l=e+"CollectionProvider",[s,a]=(0,n.createContextScope)(l),[u,f]=s(l,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:n,children:r}=e,i=t.default.useRef(null),l=t.default.useRef(new Map).current;return(0,o.jsx)(u,{scope:n,itemMap:l,collectionRef:i,children:r})};c.displayName=l;let d=e+"CollectionSlot",h=(0,i.createSlot)(d),p=t.default.forwardRef((e,t)=>{let{scope:n,children:i}=e,l=f(d,n),s=(0,r.useComposedRefs)(t,l.collectionRef);return(0,o.jsx)(h,{ref:s,children:i})});p.displayName=d;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,i.createSlot)(m),v=t.default.forwardRef((e,n)=>{let{scope:i,children:l,...s}=e,a=t.default.useRef(null),u=(0,r.useComposedRefs)(n,a),c=f(m,i);return t.default.useEffect(()=>(c.itemMap.set(a,{ref:a,...s}),()=>void c.itemMap.delete(a))),(0,o.jsx)(y,{...{[g]:""},ref:u,children:l})});return v.displayName=m,[{Provider:c,Slot:p,ItemSlot:v},function(n){let r=f(e+"CollectionConsumer",n);return t.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},a]}var s=new WeakMap;function a(e,t){var n,r;let i,o,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(n=e,r=t,i=n.length,(l=(o=u(r))>=0?o:i+o)<0||l>=i?-1:l);return -1===s?void 0:e[s]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],s.set(this,!0)}set(e,t){return s.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),o=this.#e.length,l=u(e),s=l>=0?l:o+l,a=s<0||s>=o?-1:s;if(a===this.size||i&&a===this.size-1||-1===a)return this.set(t,n),this;let f=this.size+ +!i;l<0&&s++;let c=[...this.#e],d=!1;for(let e=s;e<f;e++)if(s===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=a(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=a(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return a(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}}),e.s(["createCollection",()=>l])},91967,e=>{"use strict";function t(e,n,{checkForDefaultPrevented:r=!0}={}){return function(t){if(e?.(t),!1===r||!t.defaultPrevented)return n?.(t)}}"undefined"!=typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},75985,e=>{"use strict";var t=e.i(21382),n=e.i(45687);function r(e,r){let i=t.createContext(r),o=e=>{let{children:r,...o}=e,l=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(i.Provider,{value:l,children:r})};return o.displayName=e+"Provider",[o,function(n){let o=t.useContext(i);if(o)return o;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function i(e,r=[]){let o=[],l=()=>{let n=o.map(e=>t.createContext(e));return function(r){let i=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return l.scopeName=e,[function(r,i){let l=t.createContext(i),s=o.length;o=[...o,i];let a=r=>{let{scope:i,children:o,...a}=r,u=i?.[e]?.[s]||l,f=t.useMemo(()=>a,Object.values(a));return(0,n.jsx)(u.Provider,{value:f,children:o})};return a.displayName=r+"Provider",[a,function(n,o){let a=o?.[e]?.[s]||l,u=t.useContext(a);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}(l,...r)]}e.s(["createContext",()=>r,"createContextScope",()=>i])},74773,e=>{"use strict";var t=e.i(21382),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>n])},69875,e=>{"use strict";var t=e.i(21382),n=e.i(74773);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var r=t[" useInsertionEffect ".trim().toString()]||n.useLayoutEffect;function i({prop:e,defaultProp:n,onChange:i=()=>{},caller:o}){let[l,s,a]=function({defaultProp:e,onChange:n}){let[i,o]=t.useState(e),l=t.useRef(i),s=t.useRef(n);return r(()=>{s.current=n},[n]),t.useEffect(()=>{l.current!==i&&(s.current?.(i),l.current=i)},[i,l]),[i,o,s]}({defaultProp:n,onChange:i}),u=void 0!==e,f=u?e:l;{let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=u},[u,o])}return[f,t.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else s(t)},[u,e,s,a])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>i],69875)},82394,53525,e=>{"use strict";var t=e.i(21382),n=e.i(98655),r=e.i(52896),i=e.i(45687);function o(e){var n;
1let o,l=(n=e,(o=t.forwardRef((e,n)=>{let{children:i,...o}=e;if(t.isValidElement(i)){var l;let e,s,a=(l=i,(s=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(s=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,i.props);return i.type!==t.Fragment&&(u.ref=n?(0,r.composeRefs)(n,a):a),t.cloneElement(i,u)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,o),s=t.forwardRef((e,n)=>{let{children:r,...o}=e,s=t.Children.toArray(r),u=s.find(a);if(u){let e=u.props.children,r=s.map(n=>n!==u?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(l,{...o,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,i.jsx)(l,{...o,ref:n,children:r})});return s.displayName=`${e}.Slot`,s}var l=Symbol("radix.slottable");function s(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=l,t}function a(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}e.s(["createSlot",()=>o,"createSlottable",()=>s],53525);var u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let r=o(`Primitive.${n}`),l=t.forwardRef((e,t)=>{let{asChild:o,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?r:n,{...l,ref:t})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{});function f(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}e.s(["Primitive",()=>u,"dispatchDiscreteCustomEvent",()=>f],82394)},28820,e=>{"use strict";var t=e.i(21382),n=e.i(52896),r=e.i(74773),i=e=>{var i;let l,s,{present:a,children:u}=e,f=function(e){var n,i;let[l,s]=t.useState(),a=t.useRef(null),u=t.useRef(e),f=t.useRef("none"),[c,d]=(n=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,n));return t.useEffect(()=>{let e=o(a.current);f.current="mounted"===c?e:"none"},[c]),(0,r.useLayoutEffect)(()=>{let t=a.current,n=u.current;if(n!==e){let r=f.current,i=o(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),(0,r.useLayoutEffect)(()=>{if(l){let e,t=l.ownerDocument.defaultView??window,n=n=>{let r=o(a.current).includes(CSS.escape(n.animationName));if(n.target===l&&r&&(d("ANIMATION_END"),!u.current)){let n=l.style.animationFillMode;l.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===l.style.animationFillMode&&(l.style.animationFillMode=n)})}},r=e=>{e.target===l&&(f.current=o(a.current))};return l.addEventListener("animationstart",r),l.addEventListener("animationcancel",n),l.addEventListener("animationend",n),()=>{t.clearTimeout(e),l.removeEventListener("animationstart",r),l.removeEventListener("animationcancel",n),l.removeEventListener("animationend",n)}}d("ANIMATION_END")},[l,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{a.current=e?getComputedStyle(e):null,s(e)},[])}}(a),c="function"==typeof u?u({present:f.isPresent}):t.Children.only(u),d=(0,n.useComposedRefs)(f.ref,(i=c,(s=(l=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?i.ref:(s=(l=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof u||f.isPresent?t.cloneElement(c,{ref:d}):null};function o(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",()=>i])},57797,e=>{"use strict";var t=e.i(21382);function n(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}e.s(["useCallbackRef",()=>n])},42454,e=>{"use strict";var t=e.i(21382),n=e.i(74773),r=t[" useId ".trim().toString()]||(()=>void 0),i=0;function o(e){let[o,l]=t.useState(r());return(0,n.useLayoutEffect)(()=>{e||l(e=>e??String(i++))},[e]),e||(o?`radix-${o}`:"")}e.s(["useId",()=>o])},30909,e=>{"use strict";var t=e.i(21382),n=e.i(74773);function r(e){let[r,i]=t.useState(void 0);return(0,n.useLayoutEffect)(()=>
1{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,r;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;n=t.inlineSize,r=t.blockSize}else n=e.offsetWidth,r=e.offsetHeight;i({width:n,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),r}e.s(["useSize",()=>r])}]);
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.