!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="630836a0-f97d-5768-bd39-f7d802149790")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,193639,669807,1929,e=>{"use strict";e.s(["Primitive",()=>p,"dispatchDiscreteCustomEvent",()=>m],193639);var t=e.i(220519),n=e.i(483212);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(){for(var e=arguments.length,t=Array(e),n=0;n{let n=!1,i=t.map(t=>{let i=r(t,e);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let e=0;eu,"Slot",()=>u,"Slottable",()=>s,"createSlot",()=>a,"createSlottable",()=>f],1929),e.s(["composeRefs",()=>i,"useComposedRefs",()=>o],669807);var l=e.i(304172);function a(e){let n=function(e){let n=t.forwardRef((e,n)=>{let{children:r,...o}=e;if(t.isValidElement(r)){var l,a,u;let e,c,f=(c=(e=null==(a=Object.getOwnPropertyDescriptor((l=r).props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(c=(e=null==(u=Object.getOwnPropertyDescriptor(l,"ref"))?void 0:u.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref,s=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]=function(){for(var e=arguments.length,t=Array(e),n=0;n1?t.Children.only(null):null});return n.displayName="".concat(e,".SlotClone"),n}(e),r=t.forwardRef((e,r)=>{let{children:i,...o}=e,a=t.Children.toArray(i),u=a.find(d);if(u){let e=u.props.children,i=a.map(n=>n!==u?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,l.jsx)(n,{...o,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,i):null})}return(0,l.jsx)(n,{...o,ref:r,children:i})});return r.displayName="".concat(e,".Slot"),r}var u=a("Slot"),c=Symbol("radix.slottable");function f(e){let t=e=>{let{children:t}=e;return(0,l.jsx)(l.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=c,t}var s=f("Slottable");function d(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}var p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let r=a("Primitive.".concat(n)),i=t.forwardRef((e,t)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i?r:n,{...o,ref:t})});return i.displayName="Primitive.".concat(n),{...e,[n]:i}},{});function m(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},264458,(e,t,n)=>{!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t{"use strict";e.s(["Slot",()=>t]);var t=e.i(1929)},406642,e=>{"use strict";e.s(["Root",()=>l,"VISUALLY_HIDDEN_STYLES",()=>i,"VisuallyHidden",()=>o]);var t=e.i(220519),n=e.i(193639),r=e.i(304172),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"}),o=t.forwardRef((e,t)=>(0,r.jsx)(n.Primitive.span,{...e,ref:t,style:{...i,...e.style}}));o.displayName="VisuallyHidden";var l=o},709905,778810,638517,e=>{"use strict";e.s(["asChildPropDef",()=>t],709905);let t={asChild:{type:"boolean"}};e.s(["accentColorPropDef",()=>o,"accentColors",()=>n,"colorPropDef",()=>i,"grayColors",()=>r],778810);let n=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"],r=["auto","gray","mauve","slate","sage","olive","sand"],i={color:{type:"enum",values:n,default:void 0}},o={color:{type:"enum",values:n,default:""}};e.s(["radii",()=>l,"radiusPropDef",()=>a],638517);let l=["none","small","medium","large","full"],a={radius:{type:"enum",values:l,default:void 0}}},793130,e=>{"use strict";e.s(["arrow",()=>em,"autoPlacement",()=>ec,"autoUpdate",()=>ea,"computePosition",()=>ev,"flip",()=>es,"hide",()=>ep,"inline",()=>eh,"limitShift",()=>eg,"offset",()=>eu,"shift",()=>ef,"size",()=>ed],793130);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,a=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function s(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function h(e){return["top","bottom"].includes(s(e))?"y":"x"}function g(e,t,n){void 0===n&&(n=!1);let r=d(e),i=p(h(e)),o=m(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=y(l)),[l,y(l)]}function v(e){return e.replace(/start|end/g,e=>c[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(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 b(e,t,n){let r,{reference:i,floating:o}=e,l=h(t),a=p(h(t)),u=m(a),c=s(t),f="y"===l,g=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,y=i[u]/2-o[u]/2;switch(c){case"top":r={x:g,y:i.y-o.height};break;case"bottom":r={x:g,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:v};break;case"left":r={x:i.x-o.width,y:v};break;default:r={x:i.x,y:i.y}}switch(d(t)){case"start":r[a]-=y*(n&&f?-1:1);break;case"end":r[a]+=y*(n&&f?-1:1)}return r}let R=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:s}=b(c,r,u),d=r,p={},m=0;for(let n=0;ne[t]>=0)}function A(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}}async function T(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=s(n),a=d(n),u="y"===h(n),c=["left","top"].includes(l)?-1:1,p=o&&u?-1:1,m=f(t,e),{mainAxis:g,crossAxis:v,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof y&&(v="end"===a?-1*y:y),u?{x:v*p,y:g*c}:{x:g*c,y:v*p}}function L(){return"undefined"!=typeof window}function P(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return!!L()&&(e instanceof Node||e instanceof D(e).Node)}function j(e){return!!L()&&(e instanceof Element||e instanceof D(e).Element)}function H(e){return!!L()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function _(e){return!!L()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function k(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function F(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function V(e){let t=W(),n=j(e)?B(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function W(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function I(e){return["html","body","#document"].includes(P(e))}function B(e){return D(e).getComputedStyle(e)}function M(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function z(e){if("html"===P(e))return e;let t=e.assignedSlot||e.parentNode||_(e)&&e.host||O(e);return _(t)?t.host:t}function U(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=z(t);return I(n)?t.ownerDocument?t.ownerDocument.body:t.body:H(n)&&k(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=D(i);if(o){let e=Y(l);return t.concat(l,l.visualViewport||[],k(i)?i:[],e&&n?U(e):[])}return t.concat(i,U(i,[],n))}function Y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function q(e){let t=B(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=H(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=o(n)!==l||o(r)!==a;return u&&(n=l,r=a),{width:n,height:r,$:u}}function K(e){return j(e)?e:e.contextElement}function X(e){let t=K(e);if(!H(t))return a(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=q(t),u=(l?o(n.width):n.width)/r,c=(l?o(n.height):n.height)/i;return u&&Number.isFinite(u)||(u=1),c&&Number.isFinite(c)||(c=1),{x:u,y:c}}let Z=a(0);function $(e){let t=D(e);return W()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Z}function G(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=K(e),u=a(1);t&&(r?j(r)&&(u=X(r)):u=X(e));let c=(void 0===(i=n)&&(i=!1),r&&(!i||r===D(l))&&i)?$(l):a(0),f=(o.left+c.x)/u.x,s=(o.top+c.y)/u.y,d=o.width/u.x,p=o.height/u.y;if(l){let e=D(l),t=r&&j(r)?D(r):r,n=e,i=Y(n);for(;i&&r&&t!==n;){let e=X(i),t=i.getBoundingClientRect(),r=B(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,s*=e.y,d*=e.x,p*=e.y,f+=o,s+=l,i=Y(n=D(i))}}return x({width:d,height:p,x:f,y:s})}function J(e,t){let n=M(e).scrollLeft;return t?t.left+n:G(O(e)).left+n}function Q(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:J(e,r)),y:r.top+t.scrollTop}}function ee(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=D(e),r=O(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,u=0;if(i){o=i.width,l=i.height;let e=W();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,u=i.offsetTop)}return{width:o,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=O(e),n=M(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+J(e),u=-n.scrollTop;return"rtl"===B(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:u}}(O(e));else if(j(t))r=function(e,t){let n=G(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=H(e)?X(e):a(1),l=e.clientWidth*o.x,u=e.clientHeight*o.y;return{width:l,height:u,x:i*o.x,y:r*o.y}}(t,n);else{let n=$(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function et(e){return"static"===B(e).position}function en(e,t){if(!H(e)||"fixed"===B(e).position)return null;if(t)return t(e);let n=e.offsetParent;return O(e)===n&&(n=n.ownerDocument.body),n}function er(e,t){let n=D(e);if(F(e))return n;if(!H(e)){let t=z(e);for(;t&&!I(t);){if(j(t)&&!et(t))return t;t=z(t)}return n}let r=en(e,t);for(;r&&["table","td","th"].includes(P(r))&&et(r);)r=en(r,t);return r&&I(r)&&et(r)&&!V(r)?n:r||function(e){let t=z(e);for(;H(t)&&!I(t);){if(V(t))return t;if(F(t))break;t=z(t)}return null}(e)||n}let ei=async function(e){let t=this.getOffsetParent||er,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=H(t),i=O(t),o="fixed"===n,l=G(e,!0,o,t),u={scrollLeft:0,scrollTop:0},c=a(0);if(r||!r&&!o)if(("body"!==P(t)||k(i))&&(u=M(t)),r){let e=G(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=J(i));o&&!r&&i&&(c.x=J(i));let f=!i||r||o?a(0):Q(i,u);return{x:l.left+u.scrollLeft-c.x-f.x,y:l.top+u.scrollTop-c.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}}},eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=O(r),u=!!t&&F(t.floating);if(r===l||u&&o)return n;let c={scrollLeft:0,scrollTop:0},f=a(1),s=a(0),d=H(r);if((d||!d&&!o)&&(("body"!==P(r)||k(l))&&(c=M(r)),H(r))){let e=G(r);f=X(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let p=!l||d||o?a(0):Q(l,c,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+s.x+p.x,y:n.y*f.y-c.scrollTop*f.y+s.y+p.y}},getDocumentElement:O,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,a=[..."clippingAncestors"===n?F(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=U(e,[],!1).filter(e=>j(e)&&"body"!==P(e)),i=null,o="fixed"===B(e).position,l=o?z(e):e;for(;j(l)&&!I(l);){let t=B(l),n=V(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||k(l)&&!n&&function e(t,n){let r=z(t);return!(r===n||!j(r)||I(r))&&("fixed"===B(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=z(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],u=a[0],c=a.reduce((e,n)=>{let o=ee(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},ee(t,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:er,getElementRects:ei,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=q(e);return{width:t,height:n}},getScale:X,isElement:j,isRTL:function(e){return"rtl"===B(e).direction}};function el(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ea(e,t,n,o){let a;void 0===o&&(o={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:f="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=K(e),m=u||c?[...p?U(p):[],...U(t)]:[];m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let h=p&&s?function(e,t){let n,o=null,a=O(e);function u(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function c(f,s){void 0===f&&(f=!1),void 0===s&&(s=1),u();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=d;if(f||t(),!h||!g)return;let v=l(m),y=l(a.clientWidth-(p+h)),w={rootMargin:-v+"px "+-y+"px "+-l(a.clientHeight-(m+g))+"px "+-l(p)+"px",threshold:i(0,r(1,s))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==s){if(!x)return c();r?c(!1,r):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==r||el(d,e.getBoundingClientRect())||c(),x=!1}try{o=new IntersectionObserver(b,{...w,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(b,w)}o.observe(e)}(!0),u}(p,n):null,g=-1,v=null;f&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!d&&v.observe(p),v.observe(t));let y=d?G(e):null;return d&&function t(){let r=G(e);y&&!el(y,r)&&n(),y=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(a)}}let eu=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:a}=t,u=await T(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:l}}}}},ec=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,o,l;let{rects:a,middlewareData:u,placement:c,platform:p,elements:m}=t,{crossAxis:h=!1,alignment:y,allowedPlacements:w=n,autoAlignment:x=!0,...b}=f(e,t),R=void 0!==y||w===n?((l=y||null)?[...w.filter(e=>d(e)===l),...w.filter(e=>d(e)!==l)]:w.filter(e=>s(e)===e)).filter(e=>!l||d(e)===l||!!x&&v(e)!==e):w,S=await E(t,b),C=(null==(r=u.autoPlacement)?void 0:r.index)||0,A=R[C];if(null==A)return{};let T=g(A,a,await (null==p.isRTL?void 0:p.isRTL(m.floating)));if(c!==A)return{reset:{placement:R[0]}};let L=[S[s(A)],S[T[0]],S[T[1]]],P=[...(null==(i=u.autoPlacement)?void 0:i.overflows)||[],{placement:A,overflows:L}],D=R[C+1];if(D)return{data:{index:C+1,overflows:P},reset:{placement:D}};let O=P.map(e=>{let t=d(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),N=(null==(o=O.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||O[0][0];return N!==c?{data:{index:C+1,overflows:P},reset:{placement:N}}:{}}}},ef=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:l}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=f(e,t),m={x:n,y:o},g=await E(t,d),v=h(s(l)),y=p(v),w=m[y],x=m[v];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+g[e],o=w-g[t];w=i(n,r(w,o))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+g[e],o=x-g[t];x=i(n,r(x,o))}let b=c.fn({...t,[y]:w,[v]:x});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[y]:a,[v]:u}}}}}},es=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:p,platform:m,elements:w}=t,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:R,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0,...T}=f(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let L=s(a),P=h(p),D=s(p)===p,O=await (null==m.isRTL?void 0:m.isRTL(w.floating)),N=R||(D||!A?[y(p)]:function(e){let t=y(e);return[v(e),t,v(t)]}(p)),j="none"!==C;!R&&j&&N.push(...function(e,t,n,r){let i=d(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(s(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(v)))),o}(p,A,C,O));let H=[p,...N],_=await E(t,T),k=[],F=(null==(r=u.flip)?void 0:r.overflows)||[];if(x&&k.push(_[L]),b){let e=g(a,c,O);k.push(_[e[0]],_[e[1]])}if(F=[...F,{placement:a,overflows:k}],!k.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=H[e];if(t&&("alignment"!==b||P===h(t)||F.every(e=>e.overflows[0]>0&&h(e.placement)===P)))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(S){case"bestFit":{let e=null==(l=F.filter(e=>{if(j){let t=h(e.placement);return t===P||"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=p}if(a!==n)return{reset:{placement:n}}}return{}}}},ed=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let l,a,{placement:u,rects:c,platform:p,elements:m}=t,{apply:g=()=>{},...v}=f(e,t),y=await E(t,v),w=s(u),x=d(u),b="y"===h(u),{width:R,height:S}=c.floating;"top"===w||"bottom"===w?(l=w,a=x===(await (null==p.isRTL?void 0:p.isRTL(m.floating))?"start":"end")?"left":"right"):(a=w,l="end"===x?"top":"bottom");let C=S-y.top-y.bottom,A=R-y.left-y.right,T=r(S-y[l],C),L=r(R-y[a],A),P=!t.middlewareData.shift,D=T,O=L;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=A),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(D=C),P&&!x){let e=i(y.left,0),t=i(y.right,0),n=i(y.top,0),r=i(y.bottom,0);b?O=R-2*(0!==e||0!==t?e+t:i(y.left,y.right)):D=S-2*(0!==n||0!==r?n+r:i(y.top,y.bottom))}await g({...t,availableWidth:O,availableHeight:D});let N=await p.getDimensions(m.floating);return R!==N.width||S!==N.height?{reset:{rects:!0}}:{}}}},ep=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=f(e,t);switch(r){case"referenceHidden":{let e=S(await E(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:C(e)}}}case"escaped":{let e=S(await E(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:C(e)}}}default:return{}}}}},em=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:l,rects:a,platform:u,elements:c,middlewareData:s}=t,{element:g,padding:v=0}=f(e,t)||{};if(null==g)return{};let y=w(v),x={x:n,y:o},b=p(h(l)),R=m(b),E=await u.getDimensions(g),S="y"===b,C=S?"clientHeight":"clientWidth",A=a.reference[R]+a.reference[b]-x[b]-a.floating[R],T=x[b]-a.reference[b],L=await (null==u.getOffsetParent?void 0:u.getOffsetParent(g)),P=L?L[C]:0;P&&await (null==u.isElement?void 0:u.isElement(L))||(P=c.floating[C]||a.floating[R]);let D=P/2-E[R]/2-1,O=r(y[S?"top":"left"],D),N=r(y[S?"bottom":"right"],D),j=P-E[R]-N,H=P/2-E[R]/2+(A/2-T/2),_=i(O,r(H,j)),k=!s.arrow&&null!=d(l)&&H!==_&&a.reference[R]/2-(He.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>x(A(e)))}(m),v=x(A(m)),y=w(c),b=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-y.left&&de.top-y.top&&p=2){if("y"===h(n)){let e=g[0],t=g[g.length-1],r="top"===s(n),i=e.top,o=t.bottom,l=r?e.left:t.left,a=r?e.right:t.right;return{top:i,bottom:o,left:l,right:a,width:a-l,height:o-i,x:l,y:i}}let e="left"===s(n),t=i(...g.map(e=>e.right)),o=r(...g.map(e=>e.left)),l=g.filter(n=>e?n.left===o:n.right===t),a=l[0].top,u=l[l.length-1].bottom;return{top:a,bottom:u,left:o,right:t,width:t-o,height:u-a,x:o,y:a}}return v}},floating:o.floating,strategy:u});return l.reference.x!==b.reference.x||l.reference.y!==b.reference.y||l.reference.width!==b.reference.width||l.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},eg=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=f(e,t),d={x:n,y:r},m=h(i),g=p(m),v=d[g],y=d[m],w=f(a,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===g?"height":"width",t=o.reference[g]-o.floating[e]+x.mainAxis,n=o.reference[g]+o.reference[e]-x.mainAxis;vn&&(v=n)}if(c){var b,R;let e="y"===g?"width":"height",t=["top","left"].includes(s(i)),n=o.reference[m]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[m])||0)+(t?0:x.crossAxis),r=o.reference[m]+o.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[m])||0)-(t?x.crossAxis:0);yr&&(y=r)}return{[g]:v,[m]:y}}}},ev=(e,t,n)=>{let r=new Map,i={platform:eo,...n},o={...i.platform,_c:r};return R(e,t,{...i,platform:o})}},607544,e=>{"use strict";e.s(["createContextScope",()=>r]);var t=e.i(220519),n=e.i(304172);function r(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=[],o=()=>{let n=i.map(e=>t.createContext(e));return function(r){let i=(null==r?void 0:r[e])||n;return t.useMemo(()=>({["__scope".concat(e)]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(r,o){let l=t.createContext(o),a=i.length;i=[...i,o];let u=r=>{var i;let{scope:o,children:u,...c}=r,f=(null==o||null==(i=o[e])?void 0:i[a])||l,s=t.useMemo(()=>c,Object.values(c));return(0,n.jsx)(f.Provider,{value:s,children:u})};return u.displayName=r+"Provider",[u,function(n,i){var u;let c=(null==i||null==(u=i[e])?void 0:u[a])||l,f=t.useContext(c);if(f)return f;if(void 0!==o)return o;throw Error("`".concat(n,"` must be used within `").concat(r,"`"))}]},function(){for(var e=arguments.length,n=Array(e),r=0;r{let e=n.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(n){let r=e.reduce((e,t)=>{let{useScope:r,scopeName:i}=t,o=r(n)["__scope".concat(i)];return{...e,...o}},{});return t.useMemo(()=>({["__scope".concat(i.scopeName)]:r}),[r])}};return o.scopeName=i.scopeName,o}(o,...r)]}},390708,e=>{"use strict";e.s(["useCallbackRef",()=>n]);var t=e.i(220519);function n(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>function(){for(var e,t=arguments.length,r=Array(t),i=0;i{"use strict";e.s(["useLayoutEffect",()=>r]);var t,n=e.i(220519),r=(null==(t=globalThis)?void 0:t.document)?n.useLayoutEffect:()=>{}},764799,e=>{"use strict";e.s(["DirectionProvider",()=>i,"Provider",()=>l,"useDirection",()=>o]);var t=e.i(220519),n=e.i(304172),r=t.createContext(void 0),i=e=>{let{dir:t,children:i}=e;return(0,n.jsx)(r.Provider,{value:t,children:i})};function o(e){let n=t.useContext(r);return e||n||"ltr"}var l=i},775453,173624,156184,e=>{"use strict";function t(e,t){let{checkForDefaultPrevented:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}e.s(["composeEventHandlers",()=>t],775453),e.s(["useId",()=>l],173624);var n=e.i(220519),r=e.i(769462),i=n[" useId ".trim().toString()]||(()=>void 0),o=0;function l(e){let[t,l]=n.useState(i());return(0,r.useLayoutEffect)(()=>{e||l(e=>null!=e?e:String(o++))},[e]),e||(t?"radix-".concat(t):"")}e.s(["useControllableState",()=>u],156184),n[" useEffectEvent ".trim().toString()],n[" useInsertionEffect ".trim().toString()];var a=n[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function u(e){let{prop:t,defaultProp:r,onChange:i=()=>{},caller:o}=e,[l,u,c]=function(e){let{defaultProp:t,onChange:r}=e,[i,o]=n.useState(t),l=n.useRef(i),u=n.useRef(r);return a(()=>{u.current=r},[r]),n.useEffect(()=>{if(l.current!==i){var e;null==(e=u.current)||e.call(u,i),l.current=i}},[i,l]),[i,o,u]}({defaultProp:r,onChange:i}),f=void 0!==t,s=f?t:l;{let e=n.useRef(void 0!==t);n.useEffect(()=>{let t=e.current;if(t!==f){let e=f?"controlled":"uncontrolled";console.warn("".concat(o," is changing from ").concat(t?"controlled":"uncontrolled"," to ").concat(e,". 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."))}e.current=f},[f,o])}return[s,n.useCallback(e=>{if(f){let r="function"==typeof e?e(t):e;if(r!==t){var n;null==(n=c.current)||n.call(c,r)}}else u(e)},[f,t,u,c])]}Symbol("RADIX:SYNC_STATE")}]); //# sourceMappingURL=67161ae5361fbac1.js.map //# debugId=630836a0-f97d-5768-bd39-f7d802149790