Get the Best IPTV Service
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{5587:(e,t,n)=>{n.d(t,{Eq:()=>u});var r=new WeakMap,o=new WeakMap,i={},a=0,l=function(e){return e&&(e.host||l(e.parentNode))},c=function(e,t,n,c){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=l(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],d=[],f=new Set,p=new Set(u),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};u.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(c),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,l=(s.get(e)||0)+1;r.set(e,a),s.set(e,l),d.push(e),1===a&&i&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),i||e.setAttribute(c,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(c),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]),i=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),c(o,i,n,"aria-hidden")):function(){return null}}},2065:(e,t,n)=>{n.d(t,{m:()=>o});var r,o=function(){return r||n.nc}},1719:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},6967:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3565:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},8218:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]])},6659:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])},2104:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]])},7725:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},6046:(e,t,n)=>{var r=n(6658);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}})},7782:(e,t,n)=>{n.d(t,{bm:()=>eX,UC:()=>eH,VY:()=>eG,hJ:()=>eB,ZL:()=>eW,bL:()=>e_,hE:()=>eK,l9:()=>eF});var r,o=n(2115),i=n(3610),a=n(8068),l=n(8166),c=n(7668),u=n(1488),s=n(9674),d=n(7815),f=n(7323),p=n(7028),m=n(3360),h=n(2292),v=n(6476),g="right-scroll-bar-position",y="width-before-scroll-bar";function w(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var b="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,x=new WeakMap;function E(e){return e}var C=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=E),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,v.Cl)({async:!0,ssr:!1},e),o}(),R=function(){},S=o.forwardRef(function(e,t){var n,r,i,a,l=o.useRef(null),c=o.useState({onScrollCapture:R,onWheelCapture:R,onTouchMoveCapture:R}),u=c[0],s=c[1],d=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,g=e.shards,y=e.sideCar,E=e.noIsolation,S=e.inert,k=e.allowPinchZoom,M=e.as,T=e.gapMode,A=(0,v.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(n=[l,t],r=function(e){return n.forEach(function(t){return w(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,b(function(){var e=x.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||w(e,null)}),r.forEach(function(e){t.has(e)||w(e,o)})}x.set(a,n)},[n]),a),P=(0,v.Cl)((0,v.Cl)({},A),u);return o.createElement(o.Fragment,null,h&&o.createElement(y,{sideCar:C,removeScrollBar:m,shards:g,noIsolation:E,inert:S,setCallbacks:s,allowPinchZoom:!!k,lockRef:l,gapMode:T}),d?o.cloneElement(o.Children.only(f),(0,v.Cl)((0,v.Cl)({},P),{ref:D})):o.createElement(void 0===M?"div":M,(0,v.Cl)({},P,{className:p,ref:D}),f))});S.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},S.classNames={fullWidth:y,zeroRight:g};var k=function(e){var t=e.sideCar,n=(0,v.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return o.createElement(r,(0,v.Cl)({},n))};k.isSideCarExport=!0;var M=n(2065),T=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,M.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A=function(){var e=T();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},D=function(){var e=A();return function(t){return e(t.styles,t.dynamic),null}},P={left:0,top:0,right:0,gap:0},L=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[L(n),L(r),L(o)]},N=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return P;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},O=D(),I="data-scroll-locked",_=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(I,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(g," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(y," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(g," .").concat(g," {\n right: 0 ").concat(r,";\n }\n \n .").concat(y," .").concat(y," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(I,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},F=function(){var e=parseInt(document.body.getAttribute(I)||"0",10);return isFinite(e)?e:0},W=function(){o.useEffect(function(){return document.body.setAttribute(I,(F()+1).toString()),function(){var e=F()-1;e<=0?document.body.removeAttribute(I):document.body.setAttribute(I,e.toString())}},[])},B=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;W();var a=o.useMemo(function(){return N(i)},[i]);return o.createElement(O,{styles:_(a,!t,i,n?"":"!important")})},H=!1;if("undefined"!=typeof window)try{var K=Object.defineProperty({},"passive",{get:function(){return H=!0,!0}});window.addEventListener("test",K,K),window.removeEventListener("test",K,K)}catch(e){H=!1}var G=!!H&&{passive:!1},X=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},z=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),V(e,r)){var o=Y(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},V=function(e,t){return"v"===e?X(t,"overflowY"):X(t,"overflowX")},Y=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},q=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,c=n.target,u=t.contains(c),s=!1,d=l>0,f=0,p=0;do{var m=Y(e,c),h=m[0],v=m[1]-m[2]-a*h;(h||v)&&V(e,c)&&(f+=v,p+=h),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},Z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},$=function(e){return e&&"current"in e?e.current:e},J=0,Q=[];let ee=(r=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(J++)[0],a=o.useState(D)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,v.fX)([e.lockRef.current],(e.shards||[]).map($),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=Z(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=z(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=z(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(c||u)&&(r.current=o),!o)return!0;var p=r.current||o;return q(p,t,e,"h"===p?c:u,!0)},[]),u=o.useCallback(function(e){if(Q.length&&Q[Q.length-1]===a){var n="deltaY"in e?U(e):Z(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map($).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=o.useCallback(function(e){n.current=Z(e),r.current=void 0},[]),f=o.useCallback(function(t){s(t.type,U(t),t.target,c(t,e.lockRef.current))},[]),p=o.useCallback(function(t){s(t.type,Z(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return Q.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,G),document.addEventListener("touchmove",u,G),document.addEventListener("touchstart",d,G),function(){Q=Q.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,G),document.removeEventListener("touchmove",u,G),document.removeEventListener("touchstart",d,G)}},[]);var m=e.removeScrollBar,h=e.inert;return o.createElement(o.Fragment,null,h?o.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?o.createElement(B,{gapMode:e.gapMode}):null)},C.useMedium(r),k);var et=o.forwardRef(function(e,t){return o.createElement(S,(0,v.Cl)({},e,{ref:t,sideCar:ee}))});et.classNames=S.classNames;var en=n(5587),er=n(2317),eo=n(5155),ei="Dialog",[ea,el]=(0,l.A)(ei),[ec,eu]=ea(ei),es=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,s=o.useRef(null),d=o.useRef(null),[f=!1,p]=(0,u.i)({prop:r,defaultProp:i,onChange:a});return(0,eo.jsx)(ec,{scope:t,triggerRef:s,contentRef:d,contentId:(0,c.B)(),titleId:(0,c.B)(),descriptionId:(0,c.B)(),open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:l,children:n})};es.displayName=ei;var ed="DialogTrigger",ef=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eu(ed,n),l=(0,a.s)(t,o.triggerRef);return(0,eo.jsx)(m.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eP(o.open),...r,ref:l,onClick:(0,i.m)(e.onClick,o.onOpenToggle)})});ef.displayName=ed;var ep="DialogPortal",[em,eh]=ea(ep,{forceMount:void 0}),ev=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=eu(ep,t);return(0,eo.jsx)(em,{scope:t,forceMount:n,children:o.Children.map(r,e=>(0,eo.jsx)(p.C,{present:n||a.open,children:(0,eo.jsx)(f.Z,{asChild:!0,container:i,children:e})}))})};ev.displayName=ep;var eg="DialogOverlay",ey=o.forwardRef((e,t)=>{let n=eh(eg,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eu(eg,e.__scopeDialog);return i.modal?(0,eo.jsx)(p.C,{present:r||i.open,children:(0,eo.jsx)(ew,{...o,ref:t})}):null});ey.displayName=eg;var ew=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eu(eg,n);return(0,eo.jsx)(et,{as:er.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,eo.jsx)(m.sG.div,{"data-state":eP(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eb="DialogContent",ex=o.forwardRef((e,t)=>{let n=eh(eb,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eu(eb,e.__scopeDialog);return(0,eo.jsx)(p.C,{present:r||i.open,children:i.modal?(0,eo.jsx)(eE,{...o,ref:t}):(0,eo.jsx)(eC,{...o,ref:t})})});ex.displayName=eb;var eE=o.forwardRef((e,t)=>{let n=eu(eb,e.__scopeDialog),r=o.useRef(null),l=(0,a.s)(t,n.contentRef,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,en.Eq)(e)},[]),(0,eo.jsx)(eR,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),eC=o.forwardRef((e,t)=>{let n=eu(eb,e.__scopeDialog),r=o.useRef(!1),i=o.useRef(!1);return(0,eo.jsx)(eR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,a;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let l=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eR=o.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,...c}=e,u=eu(eb,n),f=o.useRef(null),p=(0,a.s)(t,f);return(0,h.Oh)(),(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(d.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,eo.jsx)(s.qW,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":eP(u.open),...c,ref:p,onDismiss:()=>u.onOpenChange(!1)})}),(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)(eO,{titleId:u.titleId}),(0,eo.jsx)(eI,{contentRef:f,descriptionId:u.descriptionId})]})]})}),eS="DialogTitle",ek=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eu(eS,n);return(0,eo.jsx)(m.sG.h2,{id:o.titleId,...r,ref:t})});ek.displayName=eS;var eM="DialogDescription",eT=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eu(eM,n);return(0,eo.jsx)(m.sG.p,{id:o.descriptionId,...r,ref:t})});eT.displayName=eM;var eA="DialogClose",eD=o.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eu(eA,n);return(0,eo.jsx)(m.sG.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function eP(e){return e?"open":"closed"}eD.displayName=eA;var eL="DialogTitleWarning",[ej,eN]=(0,l.q)(eL,{contentName:eb,titleName:eS,docsSlug:"dialog"}),eO=e=>{let{titleId:t}=e,n=eN(eL),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return o.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},eI=e=>{let{contentRef:t,descriptionId:n}=e,r=eN("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return o.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,t,n]),null},e_=es,eF=ef,eW=ev,eB=ey,eH=ex,eK=ek,eG=eT,eX=eD},9674:(e,t,n)=>{n.d(t,{qW:()=>f});var r,o=n(2115),i=n(3610),a=n(3360),l=n(8068),c=n(1524),u=n(5155),s="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(d),[C,R]=o.useState(null),S=null!==(f=null==C?void 0:C.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,k]=o.useState({}),M=(0,l.s)(t,e=>R(e)),T=Array.from(E.layers),[A]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),D=T.indexOf(A),P=C?T.indexOf(C):-1,L=E.layersWithOutsidePointerEventsDisabled.size>0,j=P>=D,N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,c.c)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!j||n||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==b||b())},S),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,c.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())},S);return!function(e,t=globalThis?.document){let n=(0,c.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{P!==E.layers.size-1||(null==v||v(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},S),o.useEffect(()=>{if(C)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[C,S,h,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),o.useEffect(()=>{let e=()=>k({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,u.jsx)(a.sG.div,{...x,ref:M,style:{pointerEvents:L?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,N.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.hO)(i,l):i.dispatchEvent(l)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},8813:(e,t,n)=>{n.d(t,{H_:()=>n9,UC:()=>n3,YJ:()=>n7,q7:()=>n8,VF:()=>rn,JU:()=>n4,ZL:()=>n5,z6:()=>re,hN:()=>rt,bL:()=>n2,wv:()=>rr,Pb:()=>ro,G5:()=>ra,ZP:()=>ri,l9:()=>n6});var r,o=n(2115),i=n(3610),a=n(8068),l=n(8166),c=n(1488),u=n(3360),s=n(2576),d=n(4256),f=n(9674),p=n(2292),m=n(7815),h=n(7668);let v=["top","right","bottom","left"],g=Math.min,y=Math.max,w=Math.round,b=Math.floor,x=e=>({x:e,y:e}),E={left:"right",right:"left",bottom:"top",top:"bottom"},C={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function S(e){return e.split("-")[0]}function k(e){return e.split("-")[1]}function M(e){return"x"===e?"y":"x"}function T(e){return"y"===e?"height":"width"}function A(e){return["top","bottom"].includes(S(e))?"y":"x"}function D(e){return e.replace(/start|end/g,e=>C[e])}function P(e){return e.replace(/left|right|bottom|top/g,e=>E[e])}function L(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function j(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function N(e,t,n){let r,{reference:o,floating:i}=e,a=A(t),l=M(A(t)),c=T(l),u=S(t),s="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[c]/2-i[c]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(k(t)){case"start":r[l]-=p*(n&&s?-1:1);break;case"end":r[l]+=p*(n&&s?-1:1)}return r}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=N(u,r,c),f=r,p={},m=0;for(let n=0;ne[t]>=0)}async function W(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=S(n),l=k(n),c="y"===A(n),u=["left","top"].includes(a)?-1:1,s=i&&c?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),c?{x:p*s,y:f*u}:{x:f*u,y:p*s}}function B(){return"undefined"!=typeof window}function H(e){return X(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function G(e){var t;return null==(t=(X(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function X(e){return!!B()&&(e instanceof Node||e instanceof K(e).Node)}function z(e){return!!B()&&(e instanceof Element||e instanceof K(e).Element)}function V(e){return!!B()&&(e instanceof HTMLElement||e instanceof K(e).HTMLElement)}function Y(e){return!!B()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof K(e).ShadowRoot)}function q(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Z(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function U(e){let t=$(),n=z(e)?Q(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function $(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function J(e){return["html","body","#document"].includes(H(e))}function Q(e){return K(e).getComputedStyle(e)}function ee(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if("html"===H(e))return e;let t=e.assignedSlot||e.parentNode||Y(e)&&e.host||G(e);return Y(t)?t.host:t}function en(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=et(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:V(n)&&q(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=K(o);if(i){let e=er(a);return t.concat(a,a.visualViewport||[],q(o)?o:[],e&&n?en(e):[])}return t.concat(o,en(o,[],n))}function er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=Q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=V(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=w(n)!==i||w(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ei(e){return z(e)?e:e.contextElement}function ea(e){let t=ei(e);if(!V(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eo(t),a=(i?w(n.width):n.width)/r,l=(i?w(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let el=x(0);function ec(e){let t=K(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function eu(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=ei(e),l=x(1);t&&(r?z(r)&&(l=ea(r)):l=ea(e));let c=(void 0===(o=n)&&(o=!1),r&&(!o||r===K(a))&&o)?ec(a):x(0),u=(i.left+c.x)/l.x,s=(i.top+c.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=K(a),t=r&&z(r)?K(r):r,n=e,o=er(n);for(;o&&r&&t!==n;){let e=ea(o),t=o.getBoundingClientRect(),r=Q(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,s*=e.y,d*=e.x,f*=e.y,u+=i,s+=a,o=er(n=K(o))}}return j({width:d,height:f,x:u,y:s})}function es(e,t){let n=ee(e).scrollLeft;return t?t.left+n:eu(G(e)).left+n}function ed(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:es(e,r)),y:r.top+t.scrollTop}}function ef(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=K(e),r=G(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;let e=$();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l,y:c}}(e,n);else if("document"===t)r=function(e){let t=G(e),n=ee(e),r=e.ownerDocument.body,o=y(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=y(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+es(e),l=-n.scrollTop;return"rtl"===Q(r).direction&&(a+=y(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(G(e));else if(z(t))r=function(e,t){let n=eu(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=V(e)?ea(e):x(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ec(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return j(r)}function ep(e){return"static"===Q(e).position}function em(e,t){if(!V(e)||"fixed"===Q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){let n=K(e);if(Z(e))return n;if(!V(e)){let t=et(e);for(;t&&!J(t);){if(z(t)&&!ep(t))return t;t=et(t)}return n}let r=em(e,t);for(;r&&["table","td","th"].includes(H(r))&&ep(r);)r=em(r,t);return r&&J(r)&&ep(r)&&!U(r)?n:r||function(e){let t=et(e);for(;V(t)&&!J(t);){if(U(t))return t;if(Z(t))break;t=et(t)}return null}(e)||n}let ev=async function(e){let t=this.getOffsetParent||eh,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=V(t),o=G(t),i="fixed"===n,a=eu(e,!0,i,t),l={scrollLeft:0,scrollTop:0},c=x(0);if(r||!r&&!i){if(("body"!==H(t)||q(o))&&(l=ee(t)),r){let e=eu(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=es(o))}let u=!o||r||i?x(0):ed(o,l);return{x:a.left+l.scrollLeft-c.x-u.x,y:a.top+l.scrollTop-c.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=G(r),l=!!t&&Z(t.floating);if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=x(1),s=x(0),d=V(r);if((d||!d&&!i)&&(("body"!==H(r)||q(a))&&(c=ee(r)),V(r))){let e=eu(r);u=ea(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!a||d||i?x(0):ed(a,c,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+s.x+f.x,y:n.y*u.y-c.scrollTop*u.y+s.y+f.y}},getDocumentElement:G,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=en(e,[],!1).filter(e=>z(e)&&"body"!==H(e)),o=null,i="fixed"===Q(e).position,a=i?et(e):e;for(;z(a)&&!J(a);){let t=Q(a),n=U(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||q(a)&&!n&&function e(t,n){let r=et(t);return!(r===n||!z(r)||J(r))&&("fixed"===Q(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=et(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{let r=ef(t,n,o);return e.top=y(r.top,e.top),e.right=g(r.right,e.right),e.bottom=g(r.bottom,e.bottom),e.left=y(r.left,e.left),e},ef(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:eh,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:ea,isElement:z,isRTL:function(e){return"rtl"===Q(e).direction}},ey=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:s=0}=R(e,t)||{};if(null==u)return{};let d=L(s),f={x:n,y:r},p=M(A(o)),m=T(p),h=await a.getDimensions(u),v="y"===p,w=v?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),C=E?E[w]:0;C&&await (null==a.isElement?void 0:a.isElement(E))||(C=l.floating[w]||i.floating[m]);let S=C/2-h[m]/2-1,D=g(d[v?"top":"left"],S),P=g(d[v?"bottom":"right"],S),j=C-h[m]-P,N=C/2-h[m]/2+(b/2-x/2),O=y(D,g(N,j)),I=!c.arrow&&null!=k(o)&&N!==O&&i.reference[m]/2-(N{let r=new Map,o={platform:eg,...n},i={...o.platform,_c:r};return O(e,t,{...o,platform:i})};var eb=n(7650),ex="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function eE(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eE(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eE(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eC(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eR(e,t){let n=eC(e);return Math.round(t*n)/n}function eS(e){let t=o.useRef(e);return ex(()=>{t.current=e}),t}let ek=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?ey({element:n.current,padding:r}).fn(t):{}:n?ey({element:n,padding:r}).fn(t):{}}}),eM=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:a,middlewareData:l}=t,c=await W(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}}(e),options:[e,t]}),eT=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=R(e,t),u={x:n,y:r},s=await I(t,c),d=A(S(o)),f=M(d),p=u[f],m=u[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=y(n,g(p,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+s[e],r=m-s[t];m=y(n,g(m,r))}let h=l.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}}(e),options:[e,t]}),eA=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=R(e,t),s={x:n,y:r},d=A(o),f=M(d),p=s[f],m=s[d],h=R(l,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;pn&&(p=n)}if(u){var g,y;let e="y"===f?"width":"height",t=["top","left"].includes(S(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}}(e),options:[e,t]}),eD=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,a;let{placement:l,middlewareData:c,rects:u,initialPlacement:s,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=R(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let b=S(l),x=A(s),E=S(s)===s,C=await (null==d.isRTL?void 0:d.isRTL(f.floating)),L=h||(E||!y?[P(s)]:function(e){let t=P(e);return[D(e),t,D(t)]}(s)),j="none"!==g;!h&&j&&L.push(...function(e,t,n,r){let o=k(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(S(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(D)))),i}(s,y,g,C));let N=[s,...L],O=await I(t,w),_=[],F=(null==(r=c.flip)?void 0:r.overflows)||[];if(p&&_.push(O[b]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=k(e),o=M(A(e)),i=T(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=P(a)),[a,P(a)]}(l,u,C);_.push(O[e[0]],O[e[1]])}if(F=[...F,{placement:l,overflows:_}],!_.every(e=>e<=0)){let e=((null==(o=c.flip)?void 0:o.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(i=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(a=F.filter(e=>{if(j){let t=A(e.placement);return t===x||"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:a[0];e&&(n=e);break}case"initialPlacement":n=s}if(l!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),eP=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i;let{placement:a,rects:l,platform:c,elements:u}=t,{apply:s=()=>{},...d}=R(e,t),f=await I(t,d),p=S(a),m=k(a),h="y"===A(a),{width:v,height:w}=l.floating;"top"===p||"bottom"===p?(o=p,i=m===(await (null==c.isRTL?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(i=p,o="end"===m?"top":"bottom");let b=w-f.top-f.bottom,x=v-f.left-f.right,E=g(w-f[o],b),C=g(v-f[i],x),M=!t.middlewareData.shift,T=E,D=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(D=x),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(T=b),M&&!m){let e=y(f.left,0),t=y(f.right,0),n=y(f.top,0),r=y(f.bottom,0);h?D=v-2*(0!==e||0!==t?e+t:y(f.left,f.right)):T=w-2*(0!==n||0!==r?n+r:y(f.top,f.bottom))}await s({...t,availableWidth:D,availableHeight:T});let P=await c.getDimensions(u.floating);return v!==P.width||w!==P.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),eL=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=R(e,t);switch(r){case"referenceHidden":{let e=_(await I(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:F(e)}}}case"escaped":{let e=_(await I(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:F(e)}}}default:return{}}}}}(e),options:[e,t]}),ej=(e,t)=>({...ek(e),options:[e,t]});var eN=n(5155),eO=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eN.jsx)(u.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eN.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eO.displayName="Arrow";var eI=n(1524),e_=n(6611),eF="Popper",[eW,eB]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=o.createContext(r),a=n.length;function l(t){let{scope:n,children:r,...l}=t,c=n?.[e][a]||i,u=o.useMemo(()=>l,Object.values(l));return(0,eN.jsx)(c.Provider,{value:u,children:r})}return n=[...n,r],l.displayName=t+"Provider",[l,function(n,l){let c=l?.[e][a]||i,u=o.useContext(c);if(u)return u;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eF),[eH,eK]=eW(eF),eG=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,eN.jsx)(eH,{scope:t,anchor:r,onAnchorChange:i,children:n})};eG.displayName=eF;var eX="PopperAnchor",ez=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=eK(eX,n),c=o.useRef(null),s=(0,a.s)(t,c);return o.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||c.current)}),r?null:(0,eN.jsx)(u.sG.div,{...i,ref:s})});ez.displayName=eX;var eV="PopperContent",[eY,eq]=eW(eV),eZ=o.forwardRef((e,t)=>{var n,r,i,l,c,s,d,f;let{__scopePopper:p,side:m="bottom",sideOffset:h=0,align:v="center",alignOffset:w=0,arrowPadding:x=0,avoidCollisions:E=!0,collisionBoundary:C=[],collisionPadding:R=0,sticky:S="partial",hideWhenDetached:k=!1,updatePositionStrategy:M="optimized",onPlaced:T,...A}=e,D=eK(eV,p),[P,L]=o.useState(null),j=(0,a.s)(t,e=>L(e)),[N,O]=o.useState(null),I=function(e){let[t,n]=o.useState(void 0);return(0,e_.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(N),_=null!==(d=null==I?void 0:I.width)&&void 0!==d?d:0,F=null!==(f=null==I?void 0:I.height)&&void 0!==f?f:0,W="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},B=Array.isArray(C)?C:[C],H=B.length>0,K={padding:W,boundary:B.filter(eQ),altBoundary:H},{refs:X,floatingStyles:z,placement:V,isPositioned:Y,middlewareData:q}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:u,open:s}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=o.useState(r);eE(p,r)||m(r);let[h,v]=o.useState(null),[g,y]=o.useState(null),w=o.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),b=o.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=a||h,E=l||g,C=o.useRef(null),R=o.useRef(null),S=o.useRef(d),k=null!=u,M=eS(u),T=eS(i),A=eS(s),D=o.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),ew(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};P.current&&!eE(S.current,t)&&(S.current=t,eb.flushSync(()=>{f(t)}))})},[p,t,n,T,A]);ex(()=>{!1===s&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let P=o.useRef(!1);ex(()=>(P.current=!0,()=>{P.current=!1}),[]),ex(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(M.current)return M.current(x,E,D);D()}},[x,E,D,M,k]);let L=o.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),j=o.useMemo(()=>({reference:x,floating:E}),[x,E]),N=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eR(j.floating,d.x),r=eR(j.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...eC(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,j.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:D,refs:L,elements:j,floatingStyles:N}),[d,D,L,j,N])}({strategy:"fixed",placement:m+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=s&&c?function(e,t){let n,r=null,o=G(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),i();let{left:u,top:s,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;let p=b(s),m=b(o.clientWidth-(u+d)),h={rootMargin:-p+"px "+-m+"px "+-b(o.clientHeight-(s+f))+"px "+-b(u)+"px",threshold:y(0,g(1,c))||1},v=!0;function w(e){let t=e[0].intersectionRatio;if(t!==c){if(!v)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{r=new IntersectionObserver(w,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(w,h)}r.observe(e)}(!0),i}(s,n):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),s&&!u&&m.observe(s),m.observe(t));let h=u?eu(e):null;return u&&function t(){let r=eu(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===M})},elements:{reference:D.anchor},middleware:[eM({mainAxis:h+F,alignmentAxis:w}),E&&eT({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?eA():void 0,...K}),E&&eD({...K}),eP({...K,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),N&&ej({element:N,padding:x}),e0({arrowWidth:_,arrowHeight:F}),k&&eL({strategy:"referenceHidden",...K})]}),[Z,U]=e1(V),$=(0,eI.c)(T);(0,e_.N)(()=>{Y&&(null==$||$())},[Y,$]);let J=null===(n=q.arrow)||void 0===n?void 0:n.x,Q=null===(r=q.arrow)||void 0===r?void 0:r.y,ee=(null===(i=q.arrow)||void 0===i?void 0:i.centerOffset)!==0,[et,er]=o.useState();return(0,e_.N)(()=>{P&&er(window.getComputedStyle(P).zIndex)},[P]),(0,eN.jsx)("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:Y?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(c=q.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(s=q.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eN.jsx)(eY,{scope:p,placedSide:Z,onArrowChange:O,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,eN.jsx)(u.sG.div,{"data-side":Z,"data-align":U,...A,ref:j,style:{...A.style,animation:Y?void 0:"none"}})})})});eZ.displayName=eV;var eU="PopperArrow",e$={top:"bottom",right:"left",bottom:"top",left:"right"},eJ=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eq(eU,n),i=e$[o.placedSide];return(0,eN.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eN.jsx)(eO,{...r,ref:t,style:{...r.style,display:"block"}})})});function eQ(e){return null!==e}eJ.displayName=eU;var e0=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:l,rects:c,middlewareData:u}=t,s=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,m]=e1(l),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(i=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",w="";return"bottom"===p?(y=s?h:"".concat(v,"px"),w="".concat(-f,"px")):"top"===p?(y=s?h:"".concat(v,"px"),w="".concat(c.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(c.floating.width+f,"px"),w=s?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function e1(e){let[t,n="center"]=e.split("-");return[t,n]}var e2=n(7323),e6=n(7028),e5=n(3088),e3=n(2317),e7=n(5587),e4=n(6476),e8="right-scroll-bar-position",e9="width-before-scroll-bar";function te(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tt="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,tn=new WeakMap;function tr(e){return e}var to=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=tr),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,e4.Cl)({async:!0,ssr:!1},e),o}(),ti=function(){},ta=o.forwardRef(function(e,t){var n,r,i,a,l=o.useRef(null),c=o.useState({onScrollCapture:ti,onWheelCapture:ti,onTouchMoveCapture:ti}),u=c[0],s=c[1],d=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,x=e.as,E=e.gapMode,C=(0,e4.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[l,t],r=function(e){return n.forEach(function(t){return te(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,tt(function(){var e=tn.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||te(e,null)}),r.forEach(function(e){t.has(e)||te(e,o)})}tn.set(a,n)},[n]),a),S=(0,e4.Cl)((0,e4.Cl)({},C),u);return o.createElement(o.Fragment,null,h&&o.createElement(g,{sideCar:to,removeScrollBar:m,shards:v,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:l,gapMode:E}),d?o.cloneElement(o.Children.only(f),(0,e4.Cl)((0,e4.Cl)({},S),{ref:R})):o.createElement(void 0===x?"div":x,(0,e4.Cl)({},S,{className:p,ref:R}),f))});ta.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ta.classNames={fullWidth:e9,zeroRight:e8};var tl=function(e){var t=e.sideCar,n=(0,e4.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return o.createElement(r,(0,e4.Cl)({},n))};tl.isSideCarExport=!0;var tc=n(2065),tu=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,tc.m)();return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ts=function(){var e=tu();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},td=function(){var e=ts();return function(t){return e(t.styles,t.dynamic),null}},tf={left:0,top:0,right:0,gap:0},tp=function(e){return parseInt(e||"",10)||0},tm=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tp(n),tp(r),tp(o)]},th=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tf;var t=tm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tv=td(),tg="data-scroll-locked",ty=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(tg,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(e8," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(e9," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(e8," .").concat(e8," {\n right: 0 ").concat(r,";\n }\n \n .").concat(e9," .").concat(e9," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tg,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},tw=function(){var e=parseInt(document.body.getAttribute(tg)||"0",10);return isFinite(e)?e:0},tb=function(){o.useEffect(function(){return document.body.setAttribute(tg,(tw()+1).toString()),function(){var e=tw()-1;e<=0?document.body.removeAttribute(tg):document.body.setAttribute(tg,e.toString())}},[])},tx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;tb();var a=o.useMemo(function(){return th(i)},[i]);return o.createElement(tv,{styles:ty(a,!t,i,n?"":"!important")})},tE=!1;if("undefined"!=typeof window)try{var tC=Object.defineProperty({},"passive",{get:function(){return tE=!0,!0}});window.addEventListener("test",tC,tC),window.removeEventListener("test",tC,tC)}catch(e){tE=!1}var tR=!!tE&&{passive:!1},tS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},tk=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tM(e,r)){var o=tT(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tM=function(e,t){return"v"===e?tS(t,"overflowY"):tS(t,"overflowX")},tT=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tA=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,c=n.target,u=t.contains(c),s=!1,d=l>0,f=0,p=0;do{var m=tT(e,c),h=m[0],v=m[1]-m[2]-a*h;(h||v)&&tM(e,c)&&(f+=v,p+=h),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},tD=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tP=function(e){return[e.deltaX,e.deltaY]},tL=function(e){return e&&"current"in e?e.current:e},tj=0,tN=[];let tO=(r=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(tj++)[0],a=o.useState(td)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,e4.fX)([e.lockRef.current],(e.shards||[]).map(tL),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=tD(e),a=n.current,c="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=tk(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=tk(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(c||u)&&(r.current=o),!o)return!0;var p=r.current||o;return tA(p,t,e,"h"===p?c:u,!0)},[]),u=o.useCallback(function(e){if(tN.length&&tN[tN.length-1]===a){var n="deltaY"in e?tP(e):tD(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(tL).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=o.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=o.useCallback(function(e){n.current=tD(e),r.current=void 0},[]),f=o.useCallback(function(t){s(t.type,tP(t),t.target,c(t,e.lockRef.current))},[]),p=o.useCallback(function(t){s(t.type,tD(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return tN.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,tR),document.addEventListener("touchmove",u,tR),document.addEventListener("touchstart",d,tR),function(){tN=tN.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,tR),document.removeEventListener("touchmove",u,tR),document.removeEventListener("touchstart",d,tR)}},[]);var m=e.removeScrollBar,h=e.inert;return o.createElement(o.Fragment,null,h?o.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?o.createElement(tx,{gapMode:e.gapMode}):null)},to.useMedium(r),tl);var tI=o.forwardRef(function(e,t){return o.createElement(ta,(0,e4.Cl)({},e,{ref:t,sideCar:tO}))});tI.classNames=ta.classNames;var t_=["Enter"," "],tF=["ArrowUp","PageDown","End"],tW=["ArrowDown","PageUp","Home",...tF],tB={ltr:[...t_,"ArrowRight"],rtl:[...t_,"ArrowLeft"]},tH={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tK="Menu",[tG,tX,tz]=(0,s.N)(tK),[tV,tY]=(0,l.A)(tK,[tz,eB,e5.RG]),tq=eB(),tZ=(0,e5.RG)(),[tU,t$]=tV(tK),[tJ,tQ]=tV(tK),t0=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:l=!0}=e,c=tq(t),[u,s]=o.useState(null),f=o.useRef(!1),p=(0,eI.c)(a),m=(0,d.jH)(i);return o.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,eN.jsx)(eG,{...c,children:(0,eN.jsx)(tU,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:s,children:(0,eN.jsx)(tJ,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:l,children:r})})})};t0.displayName=tK;var t1=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tq(n);return(0,eN.jsx)(ez,{...o,...r,ref:t})});t1.displayName="MenuAnchor";var t2="MenuPortal",[t6,t5]=tV(t2,{forceMount:void 0}),t3=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=t$(t2,t);return(0,eN.jsx)(t6,{scope:t,forceMount:n,children:(0,eN.jsx)(e6.C,{present:n||i.open,children:(0,eN.jsx)(e2.Z,{asChild:!0,container:o,children:r})})})};t3.displayName=t2;var t7="MenuContent",[t4,t8]=tV(t7),t9=o.forwardRef((e,t)=>{let n=t5(t7,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=t$(t7,e.__scopeMenu),a=tQ(t7,e.__scopeMenu);return(0,eN.jsx)(tG.Provider,{scope:e.__scopeMenu,children:(0,eN.jsx)(e6.C,{present:r||i.open,children:(0,eN.jsx)(tG.Slot,{scope:e.__scopeMenu,children:a.modal?(0,eN.jsx)(ne,{...o,ref:t}):(0,eN.jsx)(nt,{...o,ref:t})})})})}),ne=o.forwardRef((e,t)=>{let n=t$(t7,e.__scopeMenu),r=o.useRef(null),l=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,e7.Eq)(e)},[]),(0,eN.jsx)(nn,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),nt=o.forwardRef((e,t)=>{let n=t$(t7,e.__scopeMenu);return(0,eN.jsx)(nn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),nn=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,onDismiss:w,disableOutsideScroll:b,...x}=e,E=t$(t7,n),C=tQ(t7,n),R=tq(n),S=tZ(n),k=tX(n),[M,T]=o.useState(null),A=o.useRef(null),D=(0,a.s)(t,A,E.onContentChange),P=o.useRef(0),L=o.useRef(""),j=o.useRef(0),N=o.useRef(null),O=o.useRef("right"),I=o.useRef(0),_=b?tI:o.Fragment,F=b?{as:e3.DX,allowPinchZoom:!0}:void 0,W=e=>{var t,n;let r=L.current+e,o=k().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,l=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,a),c=null===(n=o.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){L.current=t,window.clearTimeout(P.current),""!==t&&(P.current=window.setTimeout(()=>e(""),1e3))}(r),c&&setTimeout(()=>c.focus())};o.useEffect(()=>()=>window.clearTimeout(P.current),[]),(0,p.Oh)();let B=o.useCallback(e=>{var t,n;return O.current===(null===(t=N.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=N.current)||void 0===n?void 0:n.area)},[]);return(0,eN.jsx)(t4,{scope:n,searchRef:L,onItemEnter:o.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:o.useCallback(e=>{var t;B(e)||(null===(t=A.current)||void 0===t||t.focus(),T(null))},[B]),onTriggerLeave:o.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:j,onPointerGraceIntentChange:o.useCallback(e=>{N.current=e},[]),children:(0,eN.jsx)(_,{...F,children:(0,eN.jsx)(m.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,i.m)(c,e=>{var t;e.preventDefault(),null===(t=A.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,eN.jsx)(f.qW,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,onDismiss:w,children:(0,eN.jsx)(e5.bL,{asChild:!0,...S,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:M,onCurrentTabStopIdChange:T,onEntryFocus:(0,i.m)(d,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eN.jsx)(eZ,{role:"menu","aria-orientation":"vertical","data-state":nD(E.open),"data-radix-menu-content":"",dir:C.dir,...R,...x,ref:D,style:{outline:"none",...x.style},onKeyDown:(0,i.m)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&W(e.key));let o=A.current;if(e.target!==o||!tW.includes(e.key))return;e.preventDefault();let i=k().filter(e=>!e.disabled).map(e=>e.ref.current);tF.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(P.current),L.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,nj(e=>{let t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>I.current?"right":"left";O.current=t,I.current=e.clientX}}))})})})})})})});t9.displayName=t7;var nr=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eN.jsx)(u.sG.div,{role:"group",...r,ref:t})});nr.displayName="MenuGroup";var no=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eN.jsx)(u.sG.div,{...r,ref:t})});no.displayName="MenuLabel";var ni="MenuItem",na="menu.itemSelect",nl=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...l}=e,c=o.useRef(null),s=tQ(ni,e.__scopeMenu),d=t8(ni,e.__scopeMenu),f=(0,a.s)(t,c),p=o.useRef(!1);return(0,eN.jsx)(nc,{...l,ref:f,disabled:n,onClick:(0,i.m)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(na,{bubbles:!0,cancelable:!0});e.addEventListener(na,e=>null==r?void 0:r(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&t_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});nl.displayName=ni;var nc=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:l,...c}=e,s=t8(ni,n),d=tZ(n),f=o.useRef(null),p=(0,a.s)(t,f),[m,h]=o.useState(!1),[v,g]=o.useState("");return o.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,eN.jsx)(tG.ItemSlot,{scope:n,disabled:r,textValue:null!=l?l:v,children:(0,eN.jsx)(e5.q7,{asChild:!0,...d,focusable:!r,children:(0,eN.jsx)(u.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...c,ref:p,onPointerMove:(0,i.m)(e.onPointerMove,nj(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,nj(e=>s.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>h(!0)),onBlur:(0,i.m)(e.onBlur,()=>h(!1))})})})}),nu=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,eN.jsx)(ng,{scope:e.__scopeMenu,checked:n,children:(0,eN.jsx)(nl,{role:"menuitemcheckbox","aria-checked":nP(n)?"mixed":n,...o,ref:t,"data-state":nL(n),onSelect:(0,i.m)(o.onSelect,()=>null==r?void 0:r(!!nP(n)||!n),{checkForDefaultPrevented:!1})})})});nu.displayName="MenuCheckboxItem";var ns="MenuRadioGroup",[nd,nf]=tV(ns,{value:void 0,onValueChange:()=>{}}),np=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,eI.c)(r);return(0,eN.jsx)(nd,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eN.jsx)(nr,{...o,ref:t})})});np.displayName=ns;var nm="MenuRadioItem",nh=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=nf(nm,e.__scopeMenu),a=n===o.value;return(0,eN.jsx)(ng,{scope:e.__scopeMenu,checked:a,children:(0,eN.jsx)(nl,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nL(a),onSelect:(0,i.m)(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});nh.displayName=nm;var nv="MenuItemIndicator",[ng,ny]=tV(nv,{checked:!1}),nw=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=ny(nv,n);return(0,eN.jsx)(e6.C,{present:r||nP(i.checked)||!0===i.checked,children:(0,eN.jsx)(u.sG.span,{...o,ref:t,"data-state":nL(i.checked)})})});nw.displayName=nv;var nb=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eN.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});nb.displayName="MenuSeparator";var nx=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tq(n);return(0,eN.jsx)(eJ,{...o,...r,ref:t})});nx.displayName="MenuArrow";var nE="MenuSub",[nC,nR]=tV(nE),nS=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=t$(nE,t),l=tq(t),[c,u]=o.useState(null),[s,d]=o.useState(null),f=(0,eI.c)(i);return o.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,eN.jsx)(eG,{...l,children:(0,eN.jsx)(tU,{scope:t,open:r,onOpenChange:f,content:s,onContentChange:d,children:(0,eN.jsx)(nC,{scope:t,contentId:(0,h.B)(),triggerId:(0,h.B)(),trigger:c,onTriggerChange:u,children:n})})})};nS.displayName=nE;var nk="MenuSubTrigger",nM=o.forwardRef((e,t)=>{let n=t$(nk,e.__scopeMenu),r=tQ(nk,e.__scopeMenu),l=nR(nk,e.__scopeMenu),c=t8(nk,e.__scopeMenu),u=o.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=c,f={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return o.useEffect(()=>p,[p]),o.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,eN.jsx)(t1,{asChild:!0,...f,children:(0,eN.jsx)(nc,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":nD(n.open),...e,ref:(0,a.t)(t,l.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,nj(t=>{c.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||u.current||(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,i.m)(e.onPointerLeave,nj(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],l=o[i?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let o=""!==c.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&tB[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})})});nM.displayName=nk;var nT="MenuSubContent",nA=o.forwardRef((e,t)=>{let n=t5(t7,e.__scopeMenu),{forceMount:r=n.forceMount,...l}=e,c=t$(t7,e.__scopeMenu),u=tQ(t7,e.__scopeMenu),s=nR(nT,e.__scopeMenu),d=o.useRef(null),f=(0,a.s)(t,d);return(0,eN.jsx)(tG.Provider,{scope:e.__scopeMenu,children:(0,eN.jsx)(e6.C,{present:r||c.open,children:(0,eN.jsx)(tG.Slot,{scope:e.__scopeMenu,children:(0,eN.jsx)(nn,{id:s.contentId,"aria-labelledby":s.triggerId,...l,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==s.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tH[u.dir].includes(e.key);if(t&&n){var r;c.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function nD(e){return e?"open":"closed"}function nP(e){return"indeterminate"===e}function nL(e){return nP(e)?"indeterminate":e?"checked":"unchecked"}function nj(e){return t=>"mouse"===t.pointerType?e(t):void 0}nA.displayName=nT;var nN="DropdownMenu",[nO,nI]=(0,l.A)(nN,[tY]),n_=tY(),[nF,nW]=nO(nN),nB=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,s=n_(t),d=o.useRef(null),[f=!1,p]=(0,c.i)({prop:i,defaultProp:a,onChange:l});return(0,eN.jsx)(nF,{scope:t,triggerId:(0,h.B)(),triggerRef:d,contentId:(0,h.B)(),open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,eN.jsx)(t0,{...s,open:f,onOpenChange:p,dir:r,modal:u,children:n})})};nB.displayName=nN;var nH="DropdownMenuTrigger",nK=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,l=nW(nH,n),c=n_(n);return(0,eN.jsx)(t1,{asChild:!0,...c,children:(0,eN.jsx)(u.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,a.t)(t,l.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nK.displayName=nH;var nG=e=>{let{__scopeDropdownMenu:t,...n}=e,r=n_(t);return(0,eN.jsx)(t3,{...r,...n})};nG.displayName="DropdownMenuPortal";var nX="DropdownMenuContent",nz=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,a=nW(nX,n),l=n_(n),c=o.useRef(!1);return(0,eN.jsx)(t9,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...r,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;c.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,i.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nz.displayName=nX;var nV=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nr,{...o,...r,ref:t})});nV.displayName="DropdownMenuGroup";var nY=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(no,{...o,...r,ref:t})});nY.displayName="DropdownMenuLabel";var nq=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nl,{...o,...r,ref:t})});nq.displayName="DropdownMenuItem";var nZ=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nu,{...o,...r,ref:t})});nZ.displayName="DropdownMenuCheckboxItem";var nU=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(np,{...o,...r,ref:t})});nU.displayName="DropdownMenuRadioGroup";var n$=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nh,{...o,...r,ref:t})});n$.displayName="DropdownMenuRadioItem";var nJ=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nw,{...o,...r,ref:t})});nJ.displayName="DropdownMenuItemIndicator";var nQ=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nb,{...o,...r,ref:t})});nQ.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nx,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var n0=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nM,{...o,...r,ref:t})});n0.displayName="DropdownMenuSubTrigger";var n1=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=n_(n);return(0,eN.jsx)(nA,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});n1.displayName="DropdownMenuSubContent";var n2=nB,n6=nK,n5=nG,n3=nz,n7=nV,n4=nY,n8=nq,n9=nZ,re=nU,rt=n$,rn=nJ,rr=nQ,ro=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=n_(t),[l=!1,u]=(0,c.i)({prop:r,defaultProp:i,onChange:o});return(0,eN.jsx)(nS,{...a,open:l,onOpenChange:u,children:n})},ri=n0,ra=n1},2292:(e,t,n)=>{n.d(t,{Oh:()=>i});var r=n(2115),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},7815:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(2115),o=n(8068),i=n(3360),a=n(1524),l=n(5155),c="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",s={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[w,b]=r.useState(null),x=(0,a.c)(v),E=(0,a.c)(g),C=r.useRef(null),R=(0,o.s)(t,e=>b(e)),S=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(S.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:m(C.current,{select:!0})},t=function(e){if(S.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||m(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,w,S.paused]),r.useEffect(()=>{if(w){h.add(S);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,s);w.addEventListener(c,x),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(f(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(u,s);w.addEventListener(u,E),w.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),w.removeEventListener(u,E),h.remove(S)},0)}}},[w,x,E,S]);let k=r.useCallback(e=>{if(!n&&!d||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&m(i,{select:!0})):(e.preventDefault(),n&&m(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,S.paused]);return(0,l.jsx)(i.sG.div,{tabIndex:-1,...y,ref:R,onKeyDown:k})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var h=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=v(e,t)).unshift(t)},remove(t){var n;null===(n=(e=v(e,t))[0])||void 0===n||n.resume()}}}();function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},7323:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(2115),o=n(7650),i=n(3360),a=n(6611),l=n(5155),c=r.forwardRef((e,t)=>{var n,c;let{container:u,...s}=e,[d,f]=r.useState(!1);(0,a.N)(()=>f(!0),[]);let p=u||d&&(null===(c=globalThis)||void 0===c?void 0:null===(n=c.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,l.jsx)(i.sG.div,{...s,ref:t}),p):null});c.displayName="Portal"},7113:(e,t,n)=>{n.d(t,{D:()=>u,N:()=>s});var r=n(2115),o=["light","dark"],i="(prefers-color-scheme: dark)",a="undefined"==typeof window,l=r.createContext(void 0),c={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=r.useContext(l))?e:c},s=e=>r.useContext(l)?e.children:r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:a=!0,enableColorScheme:c=!0,storageKey:u="theme",themes:s=d,defaultTheme:f=a?"system":"light",attribute:g="data-theme",value:y,children:w,nonce:b}=e,[x,E]=r.useState(()=>m(u,f)),[C,R]=r.useState(()=>m(u)),S=y?Object.values(y):s,k=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=v());let r=y?y[t]:t,i=n?h():null,l=document.documentElement;if("class"===g?(l.classList.remove(...S),r&&l.classList.add(r)):r?l.setAttribute(g,r):l.removeAttribute(g),c){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;l.style.colorScheme=n}null==i||i()},[]),M=r.useCallback(e=>{let t="function"==typeof e?e(e):e;E(t);try{localStorage.setItem(u,t)}catch(e){}},[t]),T=r.useCallback(e=>{R(v(e)),"system"===x&&a&&!t&&k("system")},[x,t]);r.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),r.useEffect(()=>{let e=e=>{e.key===u&&M(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[M]),r.useEffect(()=>{k(null!=t?t:x)},[t,x]);let A=r.useMemo(()=>({theme:x,setTheme:M,forcedTheme:t,resolvedTheme:"system"===x?C:x,themes:a?[...s,"system"]:s,systemTheme:a?C:void 0}),[x,M,t,C,a,s]);return r.createElement(l.Provider,{value:A},r.createElement(p,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:a,enableColorScheme:c,storageKey:u,themes:s,defaultTheme:f,attribute:g,value:y,children:w,attrs:S,nonce:b}),w)},p=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:l,enableColorScheme:c,defaultTheme:u,value:s,attrs:d,nonce:f}=e,p="system"===u,m="class"===a?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(a,"',s='setAttribute';"),h=c?(o.includes(u)?u:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(u,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=s?s[e]:e,i=t?e+"|| ''":"'".concat(r,"'"),l="";return c&&n&&!t&&o.includes(e)&&(l+="d.style.colorScheme = '".concat(e,"';")),"class"===a?t||r?l+="c.add(".concat(i,")"):l+="null":r&&(l+="d[s](n,".concat(i,")")),l},g=t?"!function(){".concat(m).concat(v(t),"}()"):l?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(i,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(v("dark"),"}else{").concat(v("light"),"}}else if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(v(s?"x[e]":"e",!0),"}").concat(p?"":"else{"+v(u,!1,!1)+"}").concat(h,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(v(s?"x[e]":"e",!0),"}else{").concat(v(u,!1,!1),";}").concat(h,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})}),m=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},h=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},6476:(e,t,n)=>{n.d(t,{Cl:()=>r,Tt:()=>o,fX:()=>i});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function i(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o Flash Sale Popup