1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9403],{23541:function(e,t,n){n.d(t,{Ry:function(){return s}});var r=new WeakMap,o=new WeakMap,i={},a=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,n,u){var s=(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 c=i[n],d=[],f=new Set,p=new Set(s),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};s.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,l=(c.get(e)||0)+1;r.set(e,a),c.set(e,l),d.push(e),1===a&&i&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,i=c.get(e)-1;r.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},s=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),u(r,o,n,"aria-hidden")):function(){return null}}},54986:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(67294),o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{color:l="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:c,children:d,...f}=n;return(0,r.createElement)("svg",{ref:a,...o,width:u,height:u,stroke:l,strokeWidth:c?24*Number(s)/Number(u):s,className:"lucide lucide-".concat(i(e)),...f},[...t.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...(Array.isArray(d)?d:[d])||[]])});return n.displayName="".concat(e),n}},53116:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(54986);let o=(0,r.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},36138:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(54986);let o=(0,r.Z)("X",[["line",{x1:"18",x2:"6",y1:"6",y2:"18",key:"15jfxm"}],["line",{x1:"6",x2:"18",y1:"6",y2:"18",key:"d1lma3"}]])},71930:function(e,t,n){n.d(t,{Z:function(){return Z}});var r,o,i,a,l,u,s=n(97582),c=n(67294),d="right-scroll-bar-position",f="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var h="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,m=new WeakMap,g=(void 0===r&&(r={}),void 0===o&&(o=function(e){return e}),i=[],a=!1,(l={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,a);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){a=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=(0,s.pi)({async:!0,ssr:!1},r),l),v=function(){},y=c.forwardRef(function(e,t){var n,r,o,i,a=c.useRef(null),l=c.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),u=l[0],d=l[1],f=e.forwardProps,y=e.children,w=e.className,x=e.removeScrollBar,b=e.enabled,E=e.shards,C=e.sideCar,R=e.noIsolation,M=e.inert,S=e.allowPinchZoom,D=e.as,T=void 0===D?"div":D,k=e.gapMode,A=(0,s._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(n=[a,t],r=function(e){return n.forEac
1h(function(t){return p(t,e)})},(o=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,h(function(){var e=m.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,o)})}m.set(i,n)},[n]),i),L=(0,s.pi)((0,s.pi)({},A),u);return c.createElement(c.Fragment,null,b&&c.createElement(C,{sideCar:g,removeScrollBar:x,shards:E,noIsolation:R,inert:M,setCallbacks:d,allowPinchZoom:!!S,lockRef:a,gapMode:k}),f?c.cloneElement(c.Children.only(y),(0,s.pi)((0,s.pi)({},L),{ref:P})):c.createElement(T,(0,s.pi)({},L,{className:w,ref:P}),y))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:f,zeroRight:d};var w=function(e){var t=e.sideCar,n=(0,s._T)(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 c.createElement(r,(0,s.pi)({},n))};w.isSideCarExport=!0;var x=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=x();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},C={left:0,top:0,right:0,gap:0},R=function(e){return parseInt(e||"",10)||0},M=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[R(n),R(r),R(o)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return C;var t=M(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])}},D=E(),T="data-scroll-locked",k=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(T,"] {\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(d," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(T,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},A=function(){var e=parseInt(document.body.getAttribute(T)||"0",10);return isFinite(e)?e:0},P=function(){c.useEffect(function(){return document.body.setAttribute(T,(A()+1).toString()),function(){var e=A()-1;e<=0?document.body.removeAttribute(T):document.body.setAttribute(T,e.toString())}},[])},L=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;P();var i=c.useMemo(function(){return S(o)},[o]);return c.createElement(D,{styles:k(i,!t,o,n?"":"!important")})},j=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return j=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(e){j=!1}var I=!!j&&{passive:!1},O=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])},F=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),_(e,r)){var o=W(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_=function(e,t){return"v"===e?O(t,"overflowY"):O(t,"overflowX")},W=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},V=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,u=n.target,s=t.contains(u),c=!1,d=l>0,f=0,p=0;do{var h=W(e,u),m=h[0],g=h[1]-h[2]-a*m;(m||g)&&_(e,u)&&(f+=g,p+=m),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},K=0,H=[],U=(g.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(K++)[0],i=c.useState(E)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,s.ev)([e.lockRef.current],(e.shards||[]).map(z),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=B(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],s="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=F(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=F(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return V(p,t,e,"h"===p?u:s,!0)},[]),u=c.useCallback(function(e){if(H.length&&H[H.length-1]===i){var n="deltaY"in e?$(e):B(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=(a.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=c.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)},[]),f=c.useCallback(function(e){n.current=B(e),r.current=void 0},[]),p=c.useCallback(function(t){d(t.type,$(t),t.target,l(t,e.lockRef.current))},[]),h=c.useCallback(function(t){d(t.type,B(t),t.target,l(t,e.lockRef.current))},[]);c.useEffect(function(){return H.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,I),document.addEventListener("touchmove",u,I),document.addEventListener("touchstart",f,I),function(){H=H.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,I),document.removeEventListener("touchmove",u,I),document.removeEventListener("touchstart",f,I)}},[]);var m=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?c.createElement(L,{gapMode:e.gapMode}):null)}),w),X=c.forwardRef(function(e,t){return c.createElement(y,(0,s.pi)({},e,{ref:t,sideCar:U}))});X.classNames=y.classNames;var Z=X},36206:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},28771:function(e,t,n){n.d(t,{F:function(){return i},e:function(){return a}});var r=n(67294);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function a(...e){return r.useCallback(i(...e),e)}},25360:function(e,t,n){n.d(t,{b:function(){return a},k:function(){return i}});var r=n(67294),o=n(85893);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,a=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:a,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),l=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,s=n?.[e]?.[l]||a,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[l]||a,s=r.useContext(u);if(s)return s;if(void 0!==i)return i;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 o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e),i=o[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},12854:function(e,t,n){n.d(t,{Dx:function(){return en},VY:function(){return et},aV:function(){return ee},dk:function(){return er},fC:function(){return q},h_:function(){return Q},x8:function(){return eo},xz:function(){return J}});var r=n(67294),o=n(36206),i=n(28771),a=n(25360),l=n(91276),u=n(77342),s=n(46063),c=n(95420),d=n(42651),f=n(29115),p=n(75320),h=n(27552),m=n(71930),g=n(23541),v=n(88426),y=n(85893),w="Dialog",[x,b]=(0,a.b)(w),[E,C]=x(w),R=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=r.useRef(null),d=r.useRef(null),[f=!1,p]=(0,u.T)({prop:o,defaultProp:i,onChange:a});return(0,y.jsx)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:n})};R.displayName=w;var M="DialogTrigger",S=r.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,a=C(M,n),l=(0,i.e)(t,a.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":H(a.open),...r,ref:l,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});S.displayName=M;var D="DialogPortal",[T,k]=x(D,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,a=C(D,t);return(0,y.jsx)(T,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.z,{present:n||a.open,children:(0,y.jsx)(d.h,{asChild:!0,container:i,children:e})}))})};A.displayName=D;var P="DialogOverlay",L=r.forwardRef((e,t)=>{let n=k(P,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(P,e.__scopeDialog);return i.modal?(0,y.jsx)(f.z,{present:r||i.open,children:(0,y.jsx)(j,{...o,ref:t})}):null});L.displayName=P;var j=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(P,n);return(0,y.jsx)(m.Z,{as:v.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":H(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),N="DialogContent",I=r.forwardRef((e,t)=>{let n=k(N,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(N,e.__scopeDialog);return(0,y.jsx)(f.z,{present:r||i.open,children:i.modal?(0,y.jsx)(O,{...o,ref:t}):(0,y.jsx)(F,{...o,ref:t})})});I.displayName=N;var O=r.forwardRef((e,t)=>{let n=C(N,e.__scopeDialog),a=r.useRef(null),l=(0,i.e)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,g.Ry)(e)},[]),(0,y.jsx)(_,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),F=r.forwardRef((e,t)=>{let n=C(N,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let r=t.target,a=n.triggerRef.current?.contains(r);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),_=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,d=C(N,n),f=r.useRef(null),p=(0,i.e)(t,f);return(0,h.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,y.jsx)(s.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":H(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(G,{titleId:d.titleId}),(0,y.jsx)(Y,{contentRef:f,descriptionId:d.descriptionId})]})]})}),W="DialogTitle",V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(W,n);return(0,y.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});V.displayName=W;var B="DialogDescription",$=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(B,n);return(0,y.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});$.displayName=B;var z="DialogClose",K=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(z,n);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function H(e){return e?"open":"closed"}K.displayName=z;var U="DialogTitleWarning",[X,Z]=(0,a.k)(U,{contentName:N,titleName:W,docsSlug:"dialog"}),G=({titleId:e})=>{let t=Z(U),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect(()=>{if(e){let t=document.getElementById(e);t||console.error(n)}},[n,e]),null},Y=({contentRef:e,descriptionId:t})=>{let n=Z("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return r.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");if(t&&n){let e=document.getElementById(t);e||console.warn(o)}},[o,e,t]),null},q=R,J=S,Q=A,ee=L,et=I,en=V,er=$,eo=K},46063:function(e,t,n){n.d(t,{XB:function(){return f}});var r,o=n(67294),i=n(36206),a=n(75320),l=n(28771),u=n(79698),s=n(85893),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>
5{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:y,...w}=e,x=o.useContext(d),[b,E]=o.useState(null),C=b?.ownerDocument??globalThis?.document,[,R]=o.useState({}),M=(0,l.e)(t,e=>E(e)),S=Array.from(x.layers),[D]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(D),k=b?S.indexOf(b):-1,A=x.layersWithOutsidePointerEventsDisabled.size>0,P=k>=T,L=function(e,t=globalThis?.document){let n=(0,u.W)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){h("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!P||n||(m?.(e),v?.(e),e.defaultPrevented||y?.())},C),j=function(e,t=globalThis?.document){let n=(0,u.W)(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&h("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));n||(g?.(e),v?.(e),e.defaultPrevented||y?.())},C);return!function(e,t=globalThis?.document){let n=(0,u.W)(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=>{let t=k===x.layers.size-1;t&&(f?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},C),o.useEffect(()=>{if(b)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),p(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[b,C,n,x]),o.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),p())},[b,x]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,s.jsx)(a.WV.div,{...w,ref:M,style:{pointerEvents:A?P?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,L.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.jH)(o,i):o.dispatchEvent(i)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,l.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(a.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},54180:function(e,t,n){n.d(t,{oC:function(){return nB},VY:function(){return nF},u4:function(){return nP},ZA:function(){return n_},ck:function(){return nV},wU:function(){return nK},__:function(){return nW},Uv:function(){return nO},Ee:function(){return n$},Rk:function(){return nz},fC:function(){return nN},Z0:function(){return nH},Tr:function(){return nU},tu:function(){return nZ},fF:function(){return nX},xz:function(){return nI}});var r=n(67294),o=n(36206),i=n(28771),a=n(25360),l=n(77342),u=n(75320),s=n(88426),c=n(85893);function d(e){let t=e+"CollectionProvider",[n,o]=(0,a.b)(t),[l,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,c.jsx)(l,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>
5{let{scope:n,children:r}=e,o=u(f,n),a=(0,i.e)(t,o.collectionRef);return(0,c.jsx)(s.g7,{ref:a,children:r})});p.displayName=f;let h=e+"CollectionItemSlot",m="data-radix-collection-item",g=r.forwardRef((e,t)=>{let{scope:n,children:o,...a}=e,l=r.useRef(null),d=(0,i.e)(t,l),f=u(h,n);return r.useEffect(()=>(f.itemMap.set(l,{ref:l,...a}),()=>void f.itemMap.delete(l))),(0,c.jsx)(s.g7,{[m]:"",ref:d,children:o})});return g.displayName=h,[{Provider:d,Slot:p,ItemSlot:g},function(t){let n=u(e+"CollectionConsumer",t),o=r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`)),r=Array.from(n.itemMap.values()),o=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return o},[n.collectionRef,n.itemMap]);return o},o]}var f=r.createContext(void 0);function p(e){let t=r.useContext(f);return e||t||"ltr"}var h=n(46063),m=n(27552),g=n(95420),v=n(91276);let y=["top","right","bottom","left"],w=Math.min,x=Math.max,b=Math.round,E=Math.floor,C=e=>({x:e,y:e}),R={left:"right",right:"left",bottom:"top",top:"bottom"},M={start:"end",end:"start"};function S(e,t){return"function"==typeof e?e(t):e}function D(e){return e.split("-")[0]}function T(e){return e.split("-")[1]}function k(e){return"x"===e?"y":"x"}function A(e){return"y"===e?"height":"width"}function P(e){return["top","bottom"].includes(D(e))?"y":"x"}function L(e){return e.replace(/start|end/g,e=>M[e])}function j(e){return e.replace(/left|right|bottom|top/g,e=>R[e])}function N(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function I(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function O(e,t,n){let r,{reference:o,floating:i}=e,a=P(t),l=k(P(t)),u=A(l),s=D(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(s){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(T(t)){case"start":r[l]-=p*(n&&c?-1:1);break;case"end":r[l]+=p*(n&&c?-1:1)}return r}let F=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=O(s,r,u),f=r,p={},h=0;for(let n=0;n<l.length;n++){let{name:i,fn:m}=l[n],{x:g,y:v,data:y,reset:w}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(s=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=O(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function _(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=S(t,e),h=N(p),m=l[f?"floating"===d?"reference":"floating":d],g=I(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:c,strategy:u})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=I(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:u}):v);return{top:(g.top-x.top+h.top)/w.y,bottom:(x.bottom-g.bottom+h.bottom)/w.y,left:(g.left-x.left+h.left)/w.x,right:(x.right-g.right+h.right)/w.x}}function W(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V(e){return y.some(t=>e[t]>=0)}async function B(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=D(n),l=T(n),u="y"===P(n),s=["left","top"].includes(a)?-1:1,c=i&&u?-1:1,d=S(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
5:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),u?{x:p*c,y:f*s}:{x:f*s,y:p*c}}function $(){return"undefined"!=typeof window}function z(e){return U(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(U(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function U(e){return!!$()&&(e instanceof Node||e instanceof K(e).Node)}function X(e){return!!$()&&(e instanceof Element||e instanceof K(e).Element)}function Z(e){return!!$()&&(e instanceof HTMLElement||e instanceof K(e).HTMLElement)}function G(e){return!!$()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof K(e).ShadowRoot)}function Y(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function q(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function J(e){let t=Q(),n=X(e)?et(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 Q(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function ee(e){return["html","body","#document"].includes(z(e))}function et(e){return K(e).getComputedStyle(e)}function en(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===z(e))return e;let t=e.assignedSlot||e.parentNode||G(e)&&e.host||H(e);return G(t)?t.host:t}function eo(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=er(t);return ee(n)?t.ownerDocument?t.ownerDocument.body:t.body:Z(n)&&Y(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=K(o);if(i){let e=ei(a);return t.concat(a,a.visualViewport||[],Y(o)?o:[],e&&n?eo(e):[])}return t.concat(o,eo(o,[],n))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ea(e){let t=et(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Z(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=b(n)!==i||b(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function el(e){return X(e)?e:e.contextElement}function eu(e){let t=el(e);if(!Z(t))return C(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ea(t),a=(i?b(n.width):n.width)/r,l=(i?b(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let es=C(0);function ec(e){let t=K(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function ed(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=el(e),l=C(1);t&&(r?X(r)&&(l=eu(r)):l=eu(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===K(a))&&o)?ec(a):C(0),s=(i.left+u.x)/l.x,c=(i.top+u.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=K(a),t=r&&X(r)?K(r):r,n=e,o=ei(n);for(;o&&r&&t!==n;){let e=eu(o),t=o.getBoundingClientRect(),r=et(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,f*=e.y,s+=i,c+=a,o=ei(n=K(o))}}return I({width:d,height:f,x:s,y:c})}function ef(e,t){let n=en(e).scrollLeft;return t?t.left+n:ed(H(e)).left+n}function ep(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ef(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function eh(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=K(e),r=H(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=Q();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=H(e),n=en(e),r=e.ownerDocument.body,o=x(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=x(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+ef(e),l=-n.scrollTop;return"rtl"===et(r).direction&&(a+=x(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(H(e));else if(X(t))r=function(e,t){let n=ed(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Z(e)?eu(e):C(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,u=o*i.x,s=r*i.y;return{width:a,height:l,x:u,y:s}}(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 I(r)}function em(e){return"static"===et(e).position}function eg(e,t){if(!Z(e)||"fixed"===et(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){let n=K(e);if(q(e))return n;if(!Z(e)){let t=er(e);for(;t&&!ee(t);){if(X(t)&&!em(t))return t;t=er(t)}return n}let r=eg(e,t);for(;r&&["table","td","th"].includes(z(r))&&em(r);)r=eg(r,t);return r&&ee(r)&&em(r)&&!J(r)?n:r||function(e){let t=er(e);for(;Z(t)&&!ee(t);){if(J(t))return t;if(q(t))break;t=er(t)}return null}(e)||n}let ey=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Z(t),o=H(t),i="fixed"===n,a=ed(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=C(0);if(r||!r&&!i){if(("body"!==z(t)||Y(o))&&(l=en(t)),r){let e=ed(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ef(o))}let s=!o||r||i?C(0):ep(o,l),c=a.left+l.scrollLeft-u.x-s.x,d=a.top+l.scrollTop-u.y-s.y;return{x:c,y:d,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}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=H(r),l=!!t&&q(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},s=C(1),c=C(0),d=Z(r);
5if((d||!d&&!i)&&(("body"!==z(r)||Y(a))&&(u=en(r)),Z(r))){let e=ed(r);s=eu(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||i?C(0):ep(a,u,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+f.x,y:n.y*s.y-u.scrollTop*s.y+c.y+f.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i="clippingAncestors"===n?q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eo(e,[],!1).filter(e=>X(e)&&"body"!==z(e)),o=null,i="fixed"===et(e).position,a=i?er(e):e;for(;X(a)&&!ee(a);){let t=et(a),n=J(a);n||"fixed"!==t.position||(o=null);let l=i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||Y(a)&&!n&&function e(t,n){let r=er(t);return!(r===n||!X(r)||ee(r))&&("fixed"===et(r).position||e(r,n))}(e,a);l?r=r.filter(e=>e!==a):o=t,a=er(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],u=a.reduce((e,n)=>{let r=eh(t,n,o);return e.top=x(r.top,e.top),e.right=w(r.right,e.right),e.bottom=w(r.bottom,e.bottom),e.left=x(r.left,e.left),e},eh(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ev,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ea(e);return{width:t,height:n}},getScale:eu,isElement:X,isRTL:function(e){return"rtl"===et(e).direction}};function ex(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eb=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:u}=t,{element:s,padding:c=0}=S(e,t)||{};if(null==s)return{};let d=N(c),f={x:n,y:r},p=k(P(o)),h=A(p),m=await a.getDimensions(s),g="y"===p,v=g?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],b=f[p]-i.reference[p],E=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s)),C=E?E[v]:0;C&&await (null==a.isElement?void 0:a.isElement(E))||(C=l.floating[v]||i.floating[h]);let R=C/2-m[h]/2-1,M=w(d[g?"top":"left"],R),D=w(d[g?"bottom":"right"],R),L=C-m[h]-D,j=C/2-m[h]/2+(y/2-b/2),I=x(M,w(j,L)),O=!u.arrow&&null!=T(o)&&j!==I&&i.reference[h]/2-(j<M?M:D)-m[h]/2<0,F=O?j<M?j-M:j-L:0;return{[p]:f[p]+F,data:{[p]:I,centerOffset:j-I-F,...O&&{alignmentOffset:F}},reset:O}}}),eE=(e,t,n)=>{let r=new Map,o={platform:ew,...n},i={...o.platform,_c:r};return F(e,t,{...o,platform:i})};var eC=n(73935),eR="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eM(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(!eM(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)&&!eM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eS(e){if("undefined"==typeof window)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function eD(e,t){let n=eS(e);return Math.round(t*n)/n}function eT(e){let t=r.useRef(e);return eR(()=>{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?eb({element:n.current,padding:r}).fn(t):{}:n?eb({element:n,padding:r}).fn(t):{}}}),eA=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:l}=e,u=await B(e,n);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}),options:[e,t]}},eP=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=S(n,e),s={x:t,y:r},c=await _(e,u),d=P(D(o)),f=k(d),p=s[f],h=s[d];if(i){let e=p+c["y"===f?"top":"left"],t=p-c["y"===f?"bottom":"right"];p=x(e,w(p,t))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=x(n,w(h,r))}let m=l.fn({...e,[f]:p,[d]:h});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}),options:[e,t]}},eL=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:u=!0,crossAxis:s=!0}=S(n,e),c={x:t,y:r},d=P(o),f=k(d),p=c[f],h=c[d],m=S(l,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var v,y;
5let e="y"===f?"width":"height",t=["top","left"].includes(D(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}),options:[e,t]}},ej=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:l,middlewareData:u,rects:s,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...w}=S(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let x=D(l),b=P(c),E=D(c)===c,C=await (null==d.isRTL?void 0:d.isRTL(f.floating)),R=m||(E||!y?[j(c)]:function(e){let t=j(e);return[L(e),t,L(t)]}(c)),M="none"!==v;!m&&M&&R.push(...function(e,t,n,r){let o=T(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[]}}(D(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(L)))),i}(c,y,v,C));let N=[c,...R],I=await _(e,w),O=[],F=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&O.push(I[x]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=T(e),o=k(P(e)),i=A(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=j(a)),[a,j(a)]}(l,s,C);O.push(I[e[0]],I[e[1]])}if(F=[...F,{placement:l,overflows:O}],!O.every(e=>e<=0)){let e=((null==(o=u.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(g){case"bestFit":{let e=null==(a=F.filter(e=>{if(M){let t=P(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(l!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eN=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:a,rects:l,platform:u,elements:s}=e,{apply:c=()=>{},...d}=S(n,e),f=await _(e,d),p=D(a),h=T(a),m="y"===P(a),{width:g,height:v}=l.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let y=v-f.top-f.bottom,b=g-f.left-f.right,E=w(v-f[o],y),C=w(g-f[i],b),R=!e.middlewareData.shift,M=E,k=C;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(k=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(M=y),R&&!h){let e=x(f.left,0),t=x(f.right,0),n=x(f.top,0),r=x(f.bottom,0);m?k=g-2*(0!==e||0!==t?e+t:x(f.left,f.right)):M=v-2*(0!==n||0!==r?n+r:x(f.top,f.bottom))}await c({...e,availableWidth:k,availableHeight:M});let A=await u.getDimensions(s.floating);return g!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eI=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=S(n,e);switch(r){case"referenceHidden":{let n=await _(e,{...o,elementContext:"reference"}),r=W(n,t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:V(r)}}}case"escaped":{let n=await _(e,{...o,altBoundary:!0}),r=W(n,t.floating);return{data:{escapedOffsets:r,escaped:V(r)}}}default:return{}}}}),options:[e,t]}},eO=(e,t)=>({...ek(e),options:[e,t]});var eF=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,c.jsx)(u.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eF.displayName="Arrow";var e_=n(79698),eW=n(9981),eV="Popper",[eB,e$]=(0,a.b)(eV),[ez,eK]=eB(eV),eH=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,c.jsx)(ez,{scope:t,anchor:o,onAnchorChange:i,children:n})};eH.displayName=eV;var eU="PopperAnchor",eX=r.forwardRef((e,t)=>
5{let{__scopePopper:n,virtualRef:o,...a}=e,l=eK(eU,n),s=r.useRef(null),d=(0,i.e)(t,s);return r.useEffect(()=>{l.onAnchorChange(o?.current||s.current)}),o?null:(0,c.jsx)(u.WV.div,{...a,ref:d})});eX.displayName=eU;var eZ="PopperContent",[eG,eY]=eB(eZ),eq=r.forwardRef((e,t)=>{let{__scopePopper:n,side:o="bottom",sideOffset:a=0,align:l="center",alignOffset:s=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:v="optimized",onPlaced:y,...b}=e,C=eK(eZ,n),[R,M]=r.useState(null),S=(0,i.e)(t,e=>M(e)),[D,T]=r.useState(null),k=function(e){let[t,n]=r.useState(void 0);return(0,eW.b)(()=>{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}(D),A=k?.width??0,P=k?.height??0,L="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},j=Array.isArray(p)?p:[p],N=j.length>0,I={padding:L,boundary:j.filter(e1),altBoundary:N},{refs:O,floatingStyles:F,placement:_,isPositioned:W,middlewareData:V}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);eM(p,o)||h(o);let[m,g]=r.useState(null),[v,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=r.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),b=a||m,E=l||v,C=r.useRef(null),R=r.useRef(null),M=r.useRef(d),S=null!=s,D=eT(s),T=eT(i),k=eT(c),A=r.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),eE(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};P.current&&!eM(M.current,t)&&(M.current=t,eC.flushSync(()=>{f(t)}))})},[p,t,n,T,k]);eR(()=>{!1===c&&M.current.isPositioned&&(M.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let P=r.useRef(!1);eR(()=>(P.current=!0,()=>{P.current=!1}),[]),eR(()=>{if(b&&(C.current=b),E&&(R.current=E),b&&E){if(D.current)return D.current(b,E,A);A()}},[b,E,A,D,S]);let L=r.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:x}),[w,x]),j=r.useMemo(()=>({reference:b,floating:E}),[b,E]),N=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eD(j.floating,d.x),r=eD(j.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eS(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,j.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:A,refs:L,elements:j,floatingStyles:N}),[d,A,L,j,N])}({strategy:"fixed",placement:o+("center"!==l?"-"+l:""),whileElementsMounted:(...e)=>{let t=function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=el(e),d=i||a?[...c?eo(c):[],...eo(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&u?function(e,t){let n,r=null,o=H(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),i();let s=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=s;if(l||t(),!f||!p)return;let h=E(d),m=E(o.clientWidth-(c+f)),g=E(o.clientHeight-(d+p)),v=E(c),y={rootMargin:-h+"px "+-m+"px "+-g+"px "+-v+"px",threshold:x(0,w(1,u))||1},b=!0;function C(t){let r=t[0].intersectionRatio;if(r!==u){if(!b)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ex(s,e.getBoundingClientRect())||a(),b=!1}try{r=new IntersectionObserver(C,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(C,y)}r.observe(e)}(!0),i}(c,n):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),h.observe(t));let m=s?ed(e):null;return s&&function t(){let r=ed(e);m&&!ex(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
5d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(o)}}(...e,{animationFrame:"always"===v});return t},elements:{reference:C.anchor},middleware:[eA({mainAxis:a+P,alignmentAxis:s}),f&&eP({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?eL():void 0,...I}),f&&ej({...I}),eN({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),D&&eO({element:D,padding:d}),e2({arrowWidth:A,arrowHeight:P}),g&&eI({strategy:"referenceHidden",...I})]}),[B,$]=e7(_),z=(0,e_.W)(y);(0,eW.b)(()=>{W&&z?.()},[W,z]);let K=V.arrow?.x,U=V.arrow?.y,X=V.arrow?.centerOffset!==0,[Z,G]=r.useState();return(0,eW.b)(()=>{R&&G(window.getComputedStyle(R).zIndex)},[R]),(0,c.jsx)("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:W?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(eG,{scope:n,placedSide:B,onArrowChange:T,arrowX:K,arrowY:U,shouldHideArrow:X,children:(0,c.jsx)(u.WV.div,{"data-side":B,"data-align":$,...b,ref:S,style:{...b.style,animation:W?void 0:"none"}})})})});eq.displayName=eZ;var eJ="PopperArrow",eQ={top:"bottom",right:"left",bottom:"top",left:"right"},e0=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eY(eJ,n),i=eQ[o.placedSide];return(0,c.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,c.jsx)(eF,{...r,ref:t,style:{...r.style,display:"block"}})})});function e1(e){return null!==e}e0.displayName=eJ;var e2=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,s]=e7(n),c={start:"0%",center:"50%",end:"100%"}[s],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2,p="",h="";return"bottom"===u?(p=i?c:`${d}px`,h=`${-l}px`):"top"===u?(p=i?c:`${d}px`,h=`${r.floating.height+l}px`):"right"===u?(p=`${-l}px`,h=i?c:`${f}px`):"left"===u&&(p=`${r.floating.width+l}px`,h=i?c:`${f}px`),{data:{x:p,y:h}}}});function e7(e){let[t,n="center"]=e.split("-");return[t,n]}var e9=n(42651),e5=n(29115),e6="rovingFocusGroup.onEntryFocus",e3={bubbles:!1,cancelable:!0},e8="RovingFocusGroup",[e4,te,tt]=d(e8),[tn,tr]=(0,a.b)(e8,[tt]),[to,ti]=tn(e8),ta=r.forwardRef((e,t)=>(0,c.jsx)(e4.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(e4.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(tl,{...e,ref:t})})}));ta.displayName=e8;var tl=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:s=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:m,onEntryFocus:g,preventScrollOnEntryFocus:v=!1,...y}=e,w=r.useRef(null),x=(0,i.e)(t,w),b=p(d),[E=null,C]=(0,l.T)({prop:f,defaultProp:h,onChange:m}),[R,M]=r.useState(!1),S=(0,e_.W)(g),D=te(n),T=r.useRef(!1),[k,A]=r.useState(0);return r.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(e6,S),()=>e.removeEventListener(e6,S)},[S]),(0,c.jsx)(to,{scope:n,orientation:a,dir:b,loop:s,currentTabStopId:E,onItemFocus:r.useCallback(e=>C(e),[C]),onItemShiftTab:r.useCallback(()=>M(!0),[]),onFocusableItemAdd:r.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>A(e=>e-1),[]),children:(0,c.jsx)(u.WV.div,{tabIndex:R||0===k?-1:0,"data-orientation":a,...y,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(e6,e3);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>
5e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===E),r=[t,n,...e].filter(Boolean),o=r.map(e=>e.ref.current);td(o,v)}}T.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>M(!1))})})}),tu="RovingFocusGroupItem",ts=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:l,...s}=e,d=(0,v.M)(),f=l||d,p=ti(tu,n),h=p.currentTabStopId===f,m=te(n),{onFocusableItemAdd:g,onFocusableItemRemove:y}=p;return r.useEffect(()=>{if(i)return g(),()=>y()},[i,g,y]),(0,c.jsx)(e4.ItemSlot,{scope:n,id:f,focusable:i,active:a,children:(0,c.jsx)(u.WV.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tc[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable),i=o.map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=p.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>td(i))}})})})});ts.displayName=tu;var tc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function td(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var tf=n(23541),tp=n(71930),th=["Enter"," "],tm=["ArrowUp","PageDown","End"],tg=["ArrowDown","PageUp","Home",...tm],tv={ltr:[...th,"ArrowRight"],rtl:[...th,"ArrowLeft"]},ty={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tw="Menu",[tx,tb,tE]=d(tw),[tC,tR]=(0,a.b)(tw,[tE,e$,tr]),tM=e$(),tS=tr(),[tD,tT]=tC(tw),[tk,tA]=tC(tw),tP=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:l=!0}=e,u=tM(t),[s,d]=r.useState(null),f=r.useRef(!1),h=(0,e_.W)(a),m=p(i);return r.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,c.jsx)(eH,{...u,children:(0,c.jsx)(tD,{scope:t,open:n,onOpenChange:h,content:s,onContentChange:d,children:(0,c.jsx)(tk,{scope:t,onClose:r.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:m,modal:l,children:o})})})};tP.displayName=tw;var tL=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(eX,{...o,...r,ref:t})});tL.displayName="MenuAnchor";var tj="MenuPortal",[tN,tI]=tC(tj,{forceMount:void 0}),tO=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tT(tj,t);return(0,c.jsx)(tN,{scope:t,forceMount:n,children:(0,c.jsx)(e5.z,{present:n||i.open,children:(0,c.jsx)(e9.h,{asChild:!0,container:o,children:r})})})};tO.displayName=tj;var tF="MenuContent",[t_,tW]=tC(tF),tV=r.forwardRef((e,t)=>{let n=tI(tF,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tT(tF,e.__scopeMenu),a=tA(tF,e.__scopeMenu);return(0,c.jsx)(tx.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(e5.z,{present:r||i.open,children:(0,c.jsx)(tx.Slot,{scope:e.__scopeMenu,children:a.modal?(0,c.jsx)(tB,{...o,ref:t}):(0,c.jsx)(t$,{...o,ref:t})})})})}),tB=r.forwardRef((e,t)=>{let n=tT(tF,e.__scopeMenu),a=r.useRef(null),l=(0,i.e)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,tf.Ry)(e)},[]),(0,c.jsx)(tz,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),t$=r.forwardRef((e,t)=>
5{let n=tT(tF,e.__scopeMenu);return(0,c.jsx)(tz,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tz=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:d,disableOutsidePointerEvents:f,onEntryFocus:p,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:x,onDismiss:b,disableOutsideScroll:E,...C}=e,R=tT(tF,n),M=tA(tF,n),S=tM(n),D=tS(n),T=tb(n),[k,A]=r.useState(null),P=r.useRef(null),L=(0,i.e)(t,P,R.onContentChange),j=r.useRef(0),N=r.useRef(""),I=r.useRef(0),O=r.useRef(null),F=r.useRef("right"),_=r.useRef(0),W=E?tp.Z:r.Fragment,V=E?{as:s.g7,allowPinchZoom:!0}:void 0,B=e=>{let t=N.current+e,n=T().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=n.map(e=>e.textValue),a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0]),i=o?t[0]:t,a=n?e.indexOf(n):-1,l=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),u=1===i.length;u&&(l=l.filter(e=>e!==n));let s=l.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}(i,t,o),l=n.find(e=>e.textValue===a)?.ref.current;!function e(t){N.current=t,window.clearTimeout(j.current),""!==t&&(j.current=window.setTimeout(()=>e(""),1e3))}(t),l&&setTimeout(()=>l.focus())};r.useEffect(()=>()=>window.clearTimeout(j.current),[]),(0,m.EW)();let $=r.useCallback(e=>{let t=F.current===O.current?.side;return t&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,l=t[e].y,u=t[i].x,s=t[i].y,c=l>r!=s>r&&n<(u-a)*(r-l)/(s-l)+a;c&&(o=!o)}return o}(n,t)}(e,O.current?.area)},[]);return(0,c.jsx)(t_,{scope:n,searchRef:N,onItemEnter:r.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:r.useCallback(e=>{$(e)||(P.current?.focus(),A(null))},[$]),onTriggerLeave:r.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:I,onPointerGraceIntentChange:r.useCallback(e=>{O.current=e},[]),children:(0,c.jsx)(W,{...V,children:(0,c.jsx)(g.M,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.M)(u,e=>{e.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,c.jsx)(h.XB,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:x,onDismiss:b,children:(0,c.jsx)(ta,{asChild:!0,...D,dir:M.dir,orientation:"vertical",loop:a,currentTabStopId:k,onCurrentTabStopIdChange:A,onEntryFocus:(0,o.M)(p,e=>{M.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,c.jsx)(eq,{role:"menu","aria-orientation":"vertical","data-state":nl(R.open),"data-radix-menu-content":"",dir:M.dir,...S,...C,ref:L,style:{outline:"none",...C.style},onKeyDown:(0,o.M)(C.onKeyDown,e=>{let t=e.target,n=t.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&o&&B(e.key));let i=P.current;if(e.target!==i||!tg.includes(e.key))return;e.preventDefault();let a=T().filter(e=>!e.disabled),l=a.map(e=>e.ref.current);tm.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(l)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(j.current),N.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,nc(e=>{let t=e.target,n=_.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>_.current?"right":"left";F.current=t,_.current=e.clientX}}))})})})})})})});tV.displayName=tF;var tK=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(u.WV.div,{role:"group",...r,ref:t})});tK.displayName="MenuGroup";var tH=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(u.WV.div,{...r,ref:t})});tH.displayName="MenuLabel";var tU="MenuItem",tX="menu.itemSelect",tZ=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...l}=e,s=r.useRef(null),d=tA(tU,e.__scopeMenu),f=tW(tU,e.__scopeMenu),p=(0,i.e)(t,s),h=r.useRef(!1);return(0,c.jsx)(tG,{...l,ref:p,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(tX,{bubbles:!0,cancelable:!0});e.addEventListener(tX,e=>a?.(e),{once:!0}),(0,u.jH)(e,t),t.defaultPrevented?h.current=!1:d.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),h.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{h.current||e.currentTarget?.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;
5!n&&(!t||" "!==e.key)&&th.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tZ.displayName=tU;var tG=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:l,...s}=e,d=tW(tU,n),f=tS(n),p=r.useRef(null),h=(0,i.e)(t,p),[m,g]=r.useState(!1),[v,y]=r.useState("");return r.useEffect(()=>{let e=p.current;e&&y((e.textContent??"").trim())},[s.children]),(0,c.jsx)(tx.ItemSlot,{scope:n,disabled:a,textValue:l??v,children:(0,c.jsx)(ts,{asChild:!0,...f,focusable:!a,children:(0,c.jsx)(u.WV.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:h,onPointerMove:(0,o.M)(e.onPointerMove,nc(e=>{if(a)d.onItemLeave(e);else if(d.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus({preventScroll:!0})}})),onPointerLeave:(0,o.M)(e.onPointerLeave,nc(e=>d.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>g(!0)),onBlur:(0,o.M)(e.onBlur,()=>g(!1))})})})}),tY=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,c.jsx)(t9,{scope:e.__scopeMenu,checked:n,children:(0,c.jsx)(tZ,{role:"menuitemcheckbox","aria-checked":nu(n)?"mixed":n,...i,ref:t,"data-state":ns(n),onSelect:(0,o.M)(i.onSelect,()=>r?.(!!nu(n)||!n),{checkForDefaultPrevented:!1})})})});tY.displayName="MenuCheckboxItem";var tq="MenuRadioGroup",[tJ,tQ]=tC(tq,{value:void 0,onValueChange:()=>{}}),t0=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,e_.W)(r);return(0,c.jsx)(tJ,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,c.jsx)(tK,{...o,ref:t})})});t0.displayName=tq;var t1="MenuRadioItem",t2=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=tQ(t1,e.__scopeMenu),a=n===i.value;return(0,c.jsx)(t9,{scope:e.__scopeMenu,checked:a,children:(0,c.jsx)(tZ,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":ns(a),onSelect:(0,o.M)(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});t2.displayName=t1;var t7="MenuItemIndicator",[t9,t5]=tC(t7,{checked:!1}),t6=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=t5(t7,n);return(0,c.jsx)(e5.z,{present:r||nu(i.checked)||!0===i.checked,children:(0,c.jsx)(u.WV.span,{...o,ref:t,"data-state":ns(i.checked)})})});t6.displayName=t7;var t3=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(u.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});t3.displayName="MenuSeparator";var t8=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(e0,{...o,...r,ref:t})});t8.displayName="MenuArrow";var t4="MenuSub",[ne,nt]=tC(t4),nn=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,a=tT(t4,t),l=tM(t),[u,s]=r.useState(null),[d,f]=r.useState(null),p=(0,e_.W)(i);return r.useEffect(()=>(!1===a.open&&p(!1),()=>p(!1)),[a.open,p]),(0,c.jsx)(eH,{...l,children:(0,c.jsx)(tD,{scope:t,open:o,onOpenChange:p,content:d,onContentChange:f,children:(0,c.jsx)(ne,{scope:t,contentId:(0,v.M)(),triggerId:(0,v.M)(),trigger:u,onTriggerChange:s,children:n})})})};nn.displayName=t4;var nr="MenuSubTrigger",no=r.forwardRef((e,t)=>{let n=tT(nr,e.__scopeMenu),a=tA(nr,e.__scopeMenu),l=nt(nr,e.__scopeMenu),u=tW(nr,e.__scopeMenu),s=r.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=u,p={__scopeMenu:e.__scopeMenu},h=r.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return r.useEffect(()=>h,[h]),r.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,c.jsx)(tL,{asChild:!0,...p,children:(0,c.jsx)(tG,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":nl(n.open),...e,ref:(0,i.F)(t,l.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,nc(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,nc(e=>{h();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,o="right"===r,i=t[o?"left":"right"],a=t[o?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;!e.disabled&&(!r||" "!==t.key)&&tv[a.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});no.displayName=nr;var ni="MenuSubContent",na=r.forwardRef((e,t)=>
5{let n=tI(tF,e.__scopeMenu),{forceMount:a=n.forceMount,...l}=e,u=tT(tF,e.__scopeMenu),s=tA(tF,e.__scopeMenu),d=nt(ni,e.__scopeMenu),f=r.useRef(null),p=(0,i.e)(t,f);return(0,c.jsx)(tx.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(e5.z,{present:a||u.open,children:(0,c.jsx)(tx.Slot,{scope:e.__scopeMenu,children:(0,c.jsx)(tz,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:p,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ty[s.dir].includes(e.key);t&&n&&(u.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function nl(e){return e?"open":"closed"}function nu(e){return"indeterminate"===e}function ns(e){return nu(e)?"indeterminate":e?"checked":"unchecked"}function nc(e){return t=>"mouse"===t.pointerType?e(t):void 0}na.displayName=ni;var nd="DropdownMenu",[nf,np]=(0,a.b)(nd,[tR]),nh=tR(),[nm,ng]=nf(nd),nv=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:u,modal:s=!0}=e,d=nh(t),f=r.useRef(null),[p=!1,h]=(0,l.T)({prop:i,defaultProp:a,onChange:u});return(0,c.jsx)(nm,{scope:t,triggerId:(0,v.M)(),triggerRef:f,contentId:(0,v.M)(),open:p,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),modal:s,children:(0,c.jsx)(tP,{...d,open:p,onOpenChange:h,dir:o,modal:s,children:n})})};nv.displayName=nd;var ny="DropdownMenuTrigger",nw=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,l=ng(ny,n),s=nh(n);return(0,c.jsx)(tL,{asChild:!0,...s,children:(0,c.jsx)(u.WV.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,...a,ref:(0,i.F)(t,l.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nw.displayName=ny;var nx=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nh(t);return(0,c.jsx)(tO,{...r,...n})};nx.displayName="DropdownMenuPortal";var nb="DropdownMenuContent",nE=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=ng(nb,n),l=nh(n),u=r.useRef(!1);
5return(0,c.jsx)(tV,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{u.current||a.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(u.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)"}})});nE.displayName=nb;var nC=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(tK,{...o,...r,ref:t})});nC.displayName="DropdownMenuGroup";var nR=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(tH,{...o,...r,ref:t})});nR.displayName="DropdownMenuLabel";var nM=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(tZ,{...o,...r,ref:t})});nM.displayName="DropdownMenuItem";var nS=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(tY,{...o,...r,ref:t})});nS.displayName="DropdownMenuCheckboxItem";var nD=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(t0,{...o,...r,ref:t})});nD.displayName="DropdownMenuRadioGroup";var nT=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(t2,{...o,...r,ref:t})});nT.displayName="DropdownMenuRadioItem";var nk=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(t6,{...o,...r,ref:t})});nk.displayName="DropdownMenuItemIndicator";var nA=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(t3,{...o,...r,ref:t})});nA.displayName="DropdownMenuSeparator";var nP=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(t8,{...o,...r,ref:t})});nP.displayName="DropdownMenuArrow";var nL=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.jsx)(no,{...o,...r,ref:t})});nL.displayName="DropdownMenuSubTrigger";var nj=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nh(n);return(0,c.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)"}})});nj.displayName="DropdownMenuSubContent";var nN=nv,nI=nw,nO=nx,nF=nE,n_=nC,nW=nR,nV=nM,nB=nS,n$=nD,nz=nT,nK=nk,nH=nA,nU=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=nh(t),[u=!1,s]=(0,l.T)({prop:r,defaultProp:i,onChange:o});return(0,c.jsx)(nn,{...a,open:u,onOpenChange:s,children:n})},nX=nL,nZ=nj},27552:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(67294),o=0;function i(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??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}},95420:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(67294),i=n(28771),a=n(75320),l=n(79698),u=n(85893),s="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:v,...y}
5=e,[w,x]=o.useState(null),b=(0,l.W)(f),E=(0,l.W)(v),C=o.useRef(null),R=(0,i.e)(t,e=>x(e)),M=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(M.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:m(C.current,{select:!0})},t=function(e){if(M.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){let t=document.activeElement;if(t===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()}}},[r,w,M.paused]),o.useEffect(()=>{if(w){g.add(M);let e=document.activeElement,t=w.contains(e);if(!t){let t=new CustomEvent(s,d);w.addEventListener(s,b),w.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(w))}return()=>{w.removeEventListener(s,b),setTimeout(()=>{let t=new CustomEvent(c,d);w.addEventListener(c,E),w.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),w.removeEventListener(c,E),g.remove(M)},0)}}},[w,b,E,M]);let S=o.useCallback(e=>{if(!n&&!r||M.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e),n=h(t,e),r=h(t.reverse(),e);return[n,r]}(t),a=r&&i;a?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&m(i,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,M.paused]);return(0,u.jsx)(a.WV.div,{tabIndex:-1,...y,ref:R,onKeyDown:S})});function p(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 h(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!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()}}f.displayName="FocusScope";var g=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=v(r,e)).unshift(e)},remove(e){r=v(r,e),r[0]?.resume()}});function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},91276:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(67294),i=n(9981),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),l=0;function u(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},42651:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(67294),o=n(73935),i=n(75320),a=n(9981),l=n(85893),u=r.forwardRef((e,t)=>{let{container:n,...u}=e,[s,c]=r.useState(!1);(0,a.b)(()=>c(!0),[]);let d=n||s&&globalThis?.document?.body;return d?o.createPortal((0,l.jsx)(i.WV.div,{...u,ref:t}),d):null});u.displayName="Portal"},29115:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(67294),o=n(28771),i=n(9981),a=e=>{let t,n;let{present:a,children:u}=e,s=function(e){var t;let[n,o]=r.useState(),a=r.useRef({}),u=r.useRef(e),s=r.useRef("none"),c=e?"mounted":"unmounted",[d,f]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return r??e},c));return r.useEffect(()=>{let e=l(a.current);s.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=a.current,n=u.current,r=n!==e;if(r){let r=s.current,o=l(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.b)(()=>
5{if(n){let e;let t=n.ownerDocument.defaultView??window,r=r=>{let o=l(a.current),i=o.includes(r.animationName);if(r.target===n&&i&&(f("ANIMATION_END"),!u.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},o=e=>{e.target===n&&(s.current=l(a.current))};return n.addEventListener("animationstart",o),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}f("ANIMATION_END")},[n,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(a.current=getComputedStyle(e)),o(e)},[])}}(a),c="function"==typeof u?u({present:s.isPresent}):r.Children.only(u),d=(0,o.e)(s.ref,(n=(t=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?c.ref:(n=(t=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?c.props.ref:c.props.ref||c.ref),f="function"==typeof u;return f||s.isPresent?r.cloneElement(c,{ref:d}):null};function l(e){return e?.animationName||"none"}a.displayName="Presence"},75320:function(e,t,n){n.d(t,{WV:function(){return l},jH:function(){return u}});var r=n(67294),o=n(73935),i=n(88426),a=n(85893),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},88426:function(e,t,n){n.d(t,{g7:function(){return a}});var r=n(67294),o=n(28771),i=n(85893),a=r.forwardRef((e,t)=>{let{children:n,...o}=e,a=r.Children.toArray(n),u=a.find(s);if(u){let e=u.props.children,n=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(l,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,i.jsx)(l,{...o,ref:t,children:n})});a.displayName="Slot";var l=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,a;let l=(a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(a=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r],a=/^on[A-Z]/.test(r);a?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,o.F)(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});l.displayName="SlotClone";var u=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function s(e){return r.isValidElement(e)&&e.type===u}},79698:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(67294);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},77342:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(67294),o=n(79698);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,a=r.useRef(i),l=(0,o.W)(t);return r.useEffect(()=>{a.current!==i&&(l(i),a.current=i)},[i,a,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:i,s=(0,o.W)(n),c=r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else a(t)},[l,e,a,s]);return[u,c]}},9981:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(67294),o=globalThis?.document?r.useLayoutEffect:()=>{}},3878:function(e,t,n){n.d(t,{Z:function(){return b}});let r="start";class o{constructor(e,t){this.config=t,this.totalSlides=e,this.isTransitioning=!1,i(this,e,t)}next(e=1){if(this.isTransitioning||this.isStatic)return;let{stateIndex:t}=this,n=0,r=t;for(let t=0;t<e;t++){let e=this.states[r];n+=e.next.moveSlides,r=e.next.stateIndex}if(r!==t)return this.stateIndex=r,[t,n]}prev(e=1){if(this.isTransitioning||this.isStatic)return;let{stateIndex:t}=this,n=0,r=t;for(let t=0;t<e;t++){let e=this.states[r];n+=e.prev.moveSlides,r=e.prev.stateIndex}if(r!==t)return this.stateIndex=r,[t,n]}}function i(e,t,n){e.stateIndex=0,function(e){let{slidesToScroll:t,slidesToShow:n}=e.config,{totalSlides:r,config:o}=e;if(r<n&&(o.slidesToShow=r),!(r<=n)&&(t>n&&(o.slidesToScroll=n),r<t+n)){let e=r-n;o.slidesToScroll=e}}(e),e.isStatic=t<=n.slidesToShow,e.states=function(e){let{totalSlides:t}=e,{loop:n}=e.config,r=function(e){let{slidesToShow:t,slidesToScroll:n,loop:r}=e.config,{isStatic:o,totalSlides:i}=e,a=[],l=i-1;for(let e=0;e<i;e+=n){let n=e+t-1,u=n>l;if(u){if(r){let t=n-i;a.push([e,t])}else{let e=l-t+1,n=a.length-1;(0===a.length||a.length>0&&a[n][0]!==e)&&a.push([e,l]);break}}else a.push([e,n]);if(o)break}return a}(e),o=[],i=r.length-1;for(let e=0;e<r.length;e++){let a,l;n?(a=e===i?0:e+1,l=0===e?i:e-1):(a=e===i?i:e+1,l=0===e?0:e-1);let u=r[e][0],s=r[a][0],c=r[l][0],d=s-u;s<u&&(d+=t);let f=u-c;c>u&&(f+=t),o.push({page:r[e],next:{stateIndex:a,moveSlides:d},prev:{stateIndex:l,moveSlides:f}})}return o}(e)}function a(e){if(e.onSlideCbs){let t=e.states[e.stateIndex],[n,r]=t.page;
5e.onSlideCbs.forEach(t=>t(e.stateIndex,n,r))}}function l(e){e.offset=-1*e.states[e.stateIndex].page[0],u(e),a(e)}function u(e){let{track:t,offset:n,dragged:r}=e;0===n?t.style.transform=`translate3d(${r}px,0px,0px)`:t.style.transform=`translate3d( calc( ${r}px + ${n} * (var(--slide-width) + ${e.config.slideGap})),0px,0px)`}function s(e){e.track.style.transitionDuration=`${e.config.transitionDuration}ms`}function c(e){e.track.style.transitionDuration="0ms"}let d=()=>"ontouchstart"in window;function f(e){let t=this.slider;if(!t.isTransitioning){if(t.dragged=0,this.isScrolled=!1,this.startMouseClientX="touches"in e?e.touches[0].clientX:e.clientX,!("touches"in e)){let t=e.target||this;t.setPointerCapture(e.pointerId)}c(t),g(this,"addEventListener")}}function p(e){let t="touches"in e?e.touches[0].clientX:e.clientX,n=this.slider.dragged=t-this.startMouseClientX,r=Math.abs(n);r>5&&(this.slider.isDragging=!0),r>15&&e.preventDefault(),this.slider.dragged=n,u(this.slider),!this.isScrolled&&this.slider.config.loop&&n>10&&(this.isScrolled=!0,this.slider.prev())}function h(){let e=this.slider.dragged;this.slider.isDragging=!1,g(this,"removeEventListener"),this.slider.dragged=0,u(this.slider),s(this.slider),!this.isScrolled&&(e<-10?this.slider.next():e>10&&this.slider.prev())}let m=e=>e.preventDefault();function g(e,t){e[t]("contextmenu",h),d()?(e[t]("touchend",h),e[t]("touchmove",p)):(e[t]("pointerup",h),e[t]("pointermove",p))}let v={slideGap:"20px",slidesToScroll:1,slidesToShow:1,loop:!0,enableAutoplay:!1,stopAutoplayOnInteraction:!0,autoplayInterval:3e3,autoplayDirection:"to left",enablePagination:!0,transitionDuration:300,transitionTimingFunction:"ease",draggable:!0};function y(e){let t={...v};for(let n in e)if(window.matchMedia(n).matches){let r=e[n];for(let e in r)t[e]=r[e]}return t}function w(){let e=this.index,t=this.slider,n=t.stateIndex,r=t.config.loop,o=Math.abs(e-n),i=t.states.length-o,a=o>t.states.length/2,l=a&&r;e>n?l?t.prev(i):t.next(o):l?t.next(i):t.prev(o)}function x(e,t=e.config.transitionDuration){e.isTransitioning=!0,setTimeout(()=>{e.isTransitioning=!1},t)}class b extends o{constructor(e,t){let n=e.querySelector(".blaze-track"),r=n.children,o=t?y(t):{...v};super(r.length,o),this.config=o,this.el=e,this.track=n,this.slides=r,this.offset=0,this.dragged=0,this.isDragging=!1,this.el.blazeSlider=this,this.passedConfig=t;let i=this;n.slider=i,C(o,i);let a=!1,l=0;window.addEventListener("resize",()=>{if(0===l){l=window.innerWidth;return}let e=window.innerWidth;l===e||(l=e,a||(a=!0,setTimeout(()=>{i.refresh(),a=!1},200)))})}next(e){if(this.isTransitioning)return;let t=super.next(e);if(!t)return;let[n,r]=t;E(this,n),x(this),function(e,t){let n=requestAnimationFrame;e.config.loop?(e.offset=-1*t,u(e),setTimeout(()=>{(function(e,t){for(let n=0;n<t;n++)e.track.append(e.slides[0])})(e,t),c(e),e.offset=0,u(e),n(()=>{n(()=>{s(e),a(e)})})},e.config.transitionDuration)):l(e)}(this,r)}prev(e){if(this.isTransitioning)return;let t=super.prev(e);if(!t)return;let[n,r]=t;E(this,n),x(this),function(e,t){let n=requestAnimationFrame;if(e.config.loop){c(e),e.offset=-1*t,u(e),function(e,t){let n=e.slides.length;for(let r=0;r<t;r++){let t=e.slides[n-1];e.track.prepend(t)}}(e,t);let r=()=>{n(()=>{s(e),n(()=>{e.offset=0,u(e),a(e)})})};e.isDragging?d()?e.track.addEventListener("touchend",r,{once:!0}):e.track.addEventListener("pointerup",r,{once:!0}):n(r)}else l(e)}(this,r)}stopAutoplay(){clearInterval(this.autoplayTimer)}destroy(){this.track.removeEventListener(d()?"touchstart":"pointerdown",f),this.stopAutoplay(),this.paginationButtons?.forEach(e=>e.remove()),this.el.classList.remove("static"),this.el.classList.remove(r)}refresh(){let e=this.passedConfig?y(this.passedConfig):{...v};this.destroy(),C(e,this)}onSlide(e){return this.onSlideCbs||(this.onSlideCbs=new Set),this.onSlideCbs.add(e),()=>this.onSlideCbs.delete(e)}}function E(e,t){let n=e.el.classList,o=e.stateIndex,i=e.paginationButtons;e.config.loop||(0===o?n.add(r):n.remove(r),o===e.states.length-1?n.add("end"):n.remove("end")),i&&e.config.enablePagination&&(i[t].classList.remove("active"),i[o].classList.add("active"))}function C(e,t){let n=t.track;t.slides=n.children,t.offset=0,t.config=e,i(t,t.totalSlides,e),e.loop||t.el.classList.add(r),e.enableAutoplay&&!e.loop&&(e.enableAutoplay=!1),n.style.transitionProperty="transform",n.style.transitionTimingFunction=t.config.transitionTimingFunction,n.style.transitionDuration=`${t.config.transitionDuration}ms`;let{slidesToShow:o,slideGap:a}=t.config;t.el.style.setProperty("--slides-to-show",o+""),t.el.style.setProperty("--slide-gap",a),t.isStatic?t.el.classList.add("static"):e.draggable&&function(e){let t=e.track;t.slider=e;let n=d()?"touchstart":"pointerdown";t.addEventListener(n,f),t.addEventListener("click",t=>{(e.isTransitioning||e.isDragging)&&t.preventDefault()}),t.addEventListener("dragstart",m)}(t),function(e){if(!e.config.enablePagination||e.isStatic)return;let t=e.el.querySelector(".blaze-pagination");if(!t)return;e.paginationButtons=[];let n=e.states.length;for(let r=0;r<n;r++){let o=document.createElement("button");e.paginationButtons.push(o),o.textContent=1+r+"",o.ariaLabel=`${r+1} of ${n}`,t.append(o),o.slider=e,o.index=r,o.onclick=w}e.paginationButtons[0].classList.add("active")}(t),function(e){let t=e.config;if(!t.enableAutoplay)return;let n="to left"===t.autoplayDirection?"next":"prev";e.autoplayTimer=setInterval(()=>{e[n]()},t.autoplayInterval),t.stopAutoplayOnInteraction&&e.el.addEventListener(d()?"touchstart":"mousedown",()=>{clearInterval(e.autoplayTimer)},{once:!0})}(t),function(e){let t=e.el.querySelector(".blaze-prev"),n=e.el.querySelector(".blaze-next");t&&(t.onclick=()=>{e.prev()}),n&&(n.onclick=()=>
5{e.next()})}(t),u(t)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.