PageSourceSearch

https://www.taxstackai.com/_next/static/chunks/5681-63aee9afa0ad3d48.js?dpl=dpl_trsmGkCqbrYkMifPiqHgbccCK9iE

js taxstackai.com collected 2026-10-07 06:04:27 UTC 55,427 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5681],{6215:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},875:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},407:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},5368:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},519:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},8226:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},8617:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},8736:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("FileText",[["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"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},3566:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).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"}]])},3417:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},8728:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},6865:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},2369:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},5805:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},4930:function(e,t,n){n.d(t,{Ee:function(){return M},NY:function(){return R},fC:function(){return b}});var r=n(2265),o=n(3966),i=n(6606),l=n(1188),a=n(6840),u=n(7437),c="Avatar",[s,f]=(0,o.b)(c),[d,p]=s(c),h=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...o}=e,[i,l]=r.useState("idle");return(0,u.jsx)(d,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:(0,u.jsx)(a.WV.span,{...o,ref:t})})});h.displayName=c;var v="AvatarImage",m=r.forwardRef((e,t)=>
1{let{__scopeAvatar:n,src:o,onLoadingStatusChange:c=()=>{},...s}=e,f=p(v,n),d=function(e,t){let{referrerPolicy:n,crossOrigin:o}=t,i=r.useSyncExternalStore(x,()=>!0,()=>!1),a=r.useRef(null),u=i?(a.current||(a.current=new window.Image),a.current):null,[c,s]=r.useState(()=>w(u,e));return(0,l.b)(()=>{s(w(u,e))},[u,e]),(0,l.b)(()=>{let e=e=>()=>{s(e)};if(!u)return;let t=e("loaded"),r=e("error");return u.addEventListener("load",t),u.addEventListener("error",r),n&&(u.referrerPolicy=n),"string"==typeof o&&(u.crossOrigin=o),()=>{u.removeEventListener("load",t),u.removeEventListener("error",r)}},[u,o,n]),c}(o,s),h=(0,i.W)(e=>{c(e),f.onImageLoadingStatusChange(e)});return(0,l.b)(()=>{"idle"!==d&&h(d)},[d,h]),"loaded"===d?(0,u.jsx)(a.WV.img,{...s,ref:t,src:o}):null});m.displayName=v;var g="AvatarFallback",y=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:o,...i}=e,l=p(g,n),[c,s]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>s(!0),o);return()=>window.clearTimeout(e)}},[o]),c&&"loaded"!==l.imageLoadingStatus?(0,u.jsx)(a.WV.span,{...i,ref:t}):null});function w(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function x(){return()=>{}}y.displayName=g;var b=h,M=m,R=y},7822:function(e,t,n){n.d(t,{B:function(){return u}});var r=n(2265),o=n(3966),i=n(8575),l=n(7495),a=n(7437);function u(e){let t=e+"CollectionProvider",[n,u]=(0,o.b)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:t,itemMap:i,collectionRef:o,children:n})};f.displayName=t;let d=e+"CollectionSlot",p=(0,l.Z8)(d),h=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(d,n),l=(0,i.e)(t,o.collectionRef);return(0,a.jsx)(p,{ref:l,children:r})});h.displayName=d;let v=e+"CollectionItemSlot",m="data-radix-collection-item",g=(0,l.Z8)(v),y=r.forwardRef((e,t)=>{let{scope:n,children:o,...l}=e,u=r.useRef(null),c=(0,i.e)(t,u),f=s(v,n);return r.useEffect(()=>(f.itemMap.set(u,{ref:u,...l}),()=>void f.itemMap.delete(u))),(0,a.jsx)(g,{[m]:"",ref:c,children:o})});return y.displayName=v,[{Provider:f,Slot:h,ItemSlot:y},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},9114:function(e,t,n){n.d(t,{gm:function(){return i}});var r=n(2265);n(7437);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},7111:function(e,t,n){n.d(t,{oC:function(){return nZ},VY:function(){return nF},ZA:function(){return nN},ck:function(){return nW},wU:function(){return nK},__:function(){return nV},Uv:function(){return nI},Ee:function(){return nH},Rk:function(){return nz},fC:function(){return nO},Z0:function(){return nB},Tr:function(){return nG},tu:function(){return nq},fF:function(){return nU},xz:function(){return n_}});var r=n(2265),o=n(6741),i=n(8575),l=n(3966),a=n(886),u=n(6840),c=n(7822),s=n(9114),f=n(5278),d=n(6097),p=n(9103),h=n(9255);let v=["top","right","bottom","left"],m=Math.min,g=Math.max,y=Math.round,w=Math.floor,x=e=>({x:e,y:e}
1),b={left:"right",right:"left",bottom:"top",top:"bottom"},M={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function C(e){return e.split("-")[0]}function k(e){return e.split("-")[1]}function j(e){return"x"===e?"y":"x"}function A(e){return"y"===e?"height":"width"}function D(e){return["top","bottom"].includes(C(e))?"y":"x"}function E(e){return e.replace(/start|end/g,e=>M[e])}function S(e){return e.replace(/left|right|bottom|top/g,e=>b[e])}function T(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function P(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 L(e,t,n){let r,{reference:o,floating:i}=e,l=D(t),a=j(D(t)),u=A(a),c=C(t),s="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(k(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=L(c,r,u),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:i,fn:v}=a[n],{x:m,y:g,data:y,reset:w}=await v({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,f=null!=g?g:f,p={...p,[i]:{...p[i],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:f}=L(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:p}};async function _(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=R(t,e),h=T(p),v=a[d?"floating"===f?"reference":"floating":f],m=P(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.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=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(m.top-x.top+h.top)/w.y,bottom:(x.bottom-m.bottom+h.bottom)/w.y,left:(m.left-x.left+h.left)/w.x,right:(x.right-m.right+h.right)/w.x}}function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function F(e){return v.some(t=>e[t]>=0)}async function N(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=C(n),a=k(n),u="y"===D(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,f=R(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}function V(){return"undefined"!=typeof window}function W(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!V()&&(e instanceof Node||e instanceof Z(e).Node)}function K(e){return!!V()&&(e instanceof Element||e instanceof Z(e).Element)}function B(e){return!!V()&&(e instanceof HTMLElement||e instanceof Z(e).HTMLElement)}function G(e){return!!V()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot)}function U(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);
1return/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 X(e){let t=Y(),n=K(e)?J(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 Y(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function $(e){return["html","body","#document"].includes(W(e))}function J(e){return Z(e).getComputedStyle(e)}function Q(e){return K(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===W(e))return e;let t=e.assignedSlot||e.parentNode||G(e)&&e.host||H(e);return G(t)?t.host:t}function et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ee(t);return $(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&U(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=Z(o);if(i){let e=en(l);return t.concat(l,l.visualViewport||[],U(o)?o:[],e&&n?et(e):[])}return t.concat(o,et(o,[],n))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function er(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=B(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=y(n)!==i||y(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eo(e){return K(e)?e:e.contextElement}function ei(e){let t=eo(e);if(!B(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=er(t),l=(i?y(n.width):n.width)/r,a=(i?y(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let el=x(0);function ea(e){let t=Z(e);return Y()&&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(),l=eo(e),a=x(1);t&&(r?K(r)&&(a=ei(r)):a=ei(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===Z(l))&&o)?ea(l):x(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=Z(l),t=r&&K(r)?Z(r):r,n=e,o=en(n);for(;o&&r&&t!==n;){let e=ei(o),t=o.getBoundingClientRect(),r=J(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,f*=e.x,d*=e.y,c+=i,s+=l,o=en(n=Z(o))}}return P({width:f,height:d,x:c,y:s})}function ec(e,t){let n=Q(e).scrollLeft;return t?t.left+n:eu(H(e)).left+n}
1function es(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ec(e,r)),y:r.top+t.scrollTop}}function ef(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=Z(e),r=H(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=Y();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=H(e),n=Q(e),r=e.ownerDocument.body,o=g(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=g(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ec(e),a=-n.scrollTop;return"rtl"===J(r).direction&&(l+=g(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(H(e));else if(K(t))r=function(e,t){let n=eu(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=B(e)?ei(e):x(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ea(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return P(r)}function ed(e){return"static"===J(e).position}function ep(e,t){if(!B(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){let n=Z(e);if(q(e))return n;if(!B(e)){let t=ee(e);for(;t&&!$(t);){if(K(t)&&!ed(t))return t;t=ee(t)}return n}let r=ep(e,t);for(;r&&["table","td","th"].includes(W(r))&&ed(r);)r=ep(r,t);return r&&$(r)&&ed(r)&&!X(r)?n:r||function(e){let t=ee(e);for(;B(t)&&!$(t);){if(X(t))return t;if(q(t))break;t=ee(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=B(t),o=H(t),i="fixed"===n,l=eu(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=x(0);if(r||!r&&!i){if(("body"!==W(t)||U(o))&&(a=Q(t)),r){let e=eu(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ec(o))}let c=!o||r||i?x(0):es(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},em={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=H(r),a=!!t&&q(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=x(1),s=x(0),f=B(r);if((f||!f&&!i)&&(("body"!==W(r)||U(l))&&(u=Q(r)),B(r))){let e=eu(r);c=ei(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let d=!l||f||i?x(0):es(l,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+d.x,y:n.y*c.y-u.scrollTop*c.y+s.y+d.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=et(e,[],!1).filter(e=>K(e)&&"body"!==W(e)),o=null,i="fixed"===J(e).position,l=i?ee(e):e;for(;K(l)&&!$(l);){let t=J(l),n=X(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||U(l)&&!n&&function e(t,n){let r=ee(t);return!(r===n||!K(r)||$(r))&&("fixed"===J(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=ee(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=ef(t,n,o);return e.top=g(r.top,e.top),e.right=m(r.right,e.right),e.bottom=m(r.bottom,e.bottom),e.left=g(r.left,e.left),e},ef(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eh,getElementRects:ev,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=er(e);return{width:t,height:n}},getScale:ei,isElement:K,isRTL:function(e){return"rtl"===J(e).direction}};function eg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ey=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=R(e,t)||{};if(null==c)return{};let f=T(s),d={x:n,y:r},p=j(D(o)),h=A(p),v=await l.getDimensions(c),y="y"===p,w=y?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[p]-d[p]-i.floating[h],b=d[p]-i.reference[p],M=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),C=M?M[w]:0;C&&await (null==l.isElement?void 0:l.isElement(M))||(C=a.floating[w]||i.floating[h]);let E=C/2-v[h]/2-1,S=m(f[y?"top":"left"],E),P=m(f[y?"bottom":"right"],E),L=C-v[h]-P,O=C/2-v[h]/2+(x/2-b/2),_=g(S,m(O,L)),I=!u.arrow&&null!=k(o)&&O!==_&&i.reference[h]/2-(O<S?S:P)-v[h]/2<0,F=I?O<S?O-S:O-L:0;return{[p]:d[p]+F,data:{[p]:_,centerOffset:O-_-F,...I&&{alignmentOffset:F}},reset:I}}}),ew=(e,t,n)=>{let r=new Map,o={platform:em,...n},i={...o.platform,_c:r};return O(e,t,{...o,platform:i})};var ex=n(4887),eb="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eM(e,t){let n,r,o;
1if(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 eR(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eC(e,t){let n=eR(e);return Math.round(t*n)/n}function ek(e){let t=r.useRef(e);return eb(()=>{t.current=e}),t}let ej=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):{}}}),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:l,middlewareData:a}=e,u=await N(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}),options:[e,t]}},eD=(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:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=R(n,e),c={x:t,y:r},s=await _(e,u),f=D(C(o)),d=j(f),p=c[d],h=c[f];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+s[e],r=p-s[t];p=g(n,m(p,r))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+s[e],r=h-s[t];h=g(n,m(h,r))}let v=a.fn({...e,[d]:p,[f]:h});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[d]:i,[f]:l}}}}}),options:[e,t]}},eE=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=R(n,e),s={x:t,y:r},f=D(o),d=j(f),p=s[d],h=s[f],v=R(a,e),m="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+m.mainAxis,n=i.reference[d]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===d?"width":"height",t=["top","left"].includes(C(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[f])||0)+(t?0:m.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[f])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}),options:[e,t]}},eS=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:f,elements:d}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=R(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let x=C(a),b=D(s),M=C(s)===s,T=await (null==f.isRTL?void 0:f.isRTL(d.floating)),P=v||(M||!y?[S(s)]:function(e){let t=S(e);return[E(e),t,E(t)]}(s)),L="none"!==g;!v&&L&&P.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[]}}(C(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(E)))),i}(s,y,g,T));let O=[s,...P],I=await _(e,w),F=[],N=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&F.push(I[x]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=k(e),o=j(D(e)),i=A(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=S(l)),[l,S(l)]}(a,c,T);F.push(I[e[0]],I[e[1]])}if(N=[...N,{placement:a,overflows:F}],!F.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(i=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(l=N.filter(e=>{if(L){let t=D(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
1e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eT=(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:l,rects:a,platform:u,elements:c}=e,{apply:s=()=>{},...f}=R(n,e),d=await _(e,f),p=C(l),h=k(l),v="y"===D(l),{width:y,height:w}=a.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let x=w-d.top-d.bottom,b=y-d.left-d.right,M=m(w-d[o],x),j=m(y-d[i],b),A=!e.middlewareData.shift,E=M,S=j;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(E=x),A&&!h){let e=g(d.left,0),t=g(d.right,0),n=g(d.top,0),r=g(d.bottom,0);v?S=y-2*(0!==e||0!==t?e+t:g(d.left,d.right)):E=w-2*(0!==n||0!==r?n+r:g(d.top,d.bottom))}await s({...e,availableWidth:S,availableHeight:E});let T=await u.getDimensions(c.floating);return y!==T.width||w!==T.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eP=(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}=R(n,e);switch(r){case"referenceHidden":{let n=I(await _(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:F(n)}}}case"escaped":{let n=I(await _(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:F(n)}}}default:return{}}}}),options:[e,t]}},eL=(e,t)=>({...ej(e),options:[e,t]});var eO=n(7437),e_=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eO.jsx)(u.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eO.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e_.displayName="Arrow";var eI=n(6606),eF=n(1188),eN=n(420),eV="Popper",[eW,eZ]=(0,l.b)(eV),[eH,ez]=eW(eV),eK=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eO.jsx)(eH,{scope:t,anchor:o,onAnchorChange:i,children:n})};eK.displayName=eV;var eB="PopperAnchor",eG=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...l}=e,a=ez(eB,n),c=r.useRef(null),s=(0,i.e)(t,c);return r.useEffect(()=>{a.onAnchorChange((null==o?void 0:o.current)||c.current)}),o?null:(0,eO.jsx)(u.WV.div,{...l,ref:s})});eG.displayName=eB;var eU="PopperContent",[eq,eX]=eW(eU),eY=r.forwardRef((e,t)=>{var n,o,l,a,c,s,f,d;let{__scopePopper:p,side:h="bottom",sideOffset:v=0,align:y="center",alignOffset:x=0,arrowPadding:b=0,avoidCollisions:M=!0,collisionBoundary:R=[],collisionPadding:C=0,sticky:k="partial",hideWhenDetached:j=!1,updatePositionStrategy:A="optimized",onPlaced:D,...E}=e,S=ez(eU,p),[T,P]=r.useState(null),L=(0,i.e)(t,e=>P(e)),[O,_]=r.useState(null),I=(0,eN.t)(O),F=null!==(f=null==I?void 0:I.width)&&void 0!==f?f:0,N=null!==(d=null==I?void 0:I.height)&&void 0!==d?d:0,V="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},W=Array.isArray(R)?R:[R],Z=W.length>0,z={padding:V,boundary:W.filter(e0),altBoundary:Z},{refs:K,floatingStyles:B,placement:G,isPositioned:U,middlewareData:q}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[f,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);eM(p,o)||h(o);let[v,m]=r.useState(null),[g,y]=r.useState(null),w=r.useCallback(e=>{e!==R.current&&(R.current=e,m(e))},[]),x=r.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),b=l||v,M=a||g,R=r.useRef(null),C=r.useRef(null),k=r.useRef(f),j=null!=c,A=ek(c),D=ek(i),E=ek(s),S=r.useCallback(()=>{if(!R.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};D.current&&(e.platform=D.current),ew(R.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==E.current};T.current&&!eM(k.current,t)&&(k.current=t,ex.flushSync(()=>{d(t)}))})},[p,t,n,D,E]);eb(()=>{!1===s&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let T=r.useRef(!1);eb(()=>(T.current=!0,()=>{T.current=!1}),[]),eb(()=>{if(b&&(R.current=b),M&&(C.current=M),b&&M){if(A.current)return A.current(b,M,S);S()}},[b,M,S,A,j]);let P=r.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:x}),[w,x]),L=r.useMemo(()=>({reference:b,floating:M}),[b,M]),O=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=eC(L.floating,f.x),r=eC(L.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eR(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,L.floating,f.x,f.y]);return r.useMemo(()=>({...f,update:S,refs:P,elements:L,floatingStyles:O}),[f,S,P,L,O])}({strategy:"fixed",placement:h+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=eo(e),f=i||l?[...s?et(s):[],...et(t)]:[];
1f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=s&&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 l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let c=e.getBoundingClientRect(),{left:s,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;let h=w(f),v=w(o.clientWidth-(s+d)),y={rootMargin:-h+"px "+-v+"px "+-w(o.clientHeight-(f+p))+"px "+-w(s)+"px",threshold:g(0,m(1,u))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==u){if(!x)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eg(c,e.getBoundingClientRect())||l(),x=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),i}(s,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),s&&!c&&h.observe(s),h.observe(t));let v=c?eu(e):null;return c&&function t(){let r=eu(e);v&&!eg(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===A})},elements:{reference:S.anchor},middleware:[eA({mainAxis:v+N,alignmentAxis:x}),M&&eD({mainAxis:!0,crossAxis:!1,limiter:"partial"===k?eE():void 0,...z}),M&&eS({...z}),eT({...z,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),O&&eL({element:O,padding:b}),e1({arrowWidth:F,arrowHeight:N}),j&&eP({strategy:"referenceHidden",...z})]}),[X,Y]=e2(G),$=(0,eI.W)(D);(0,eF.b)(()=>{U&&(null==$||$())},[U,$]);let J=null===(n=q.arrow)||void 0===n?void 0:n.x,Q=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(l=q.arrow)||void 0===l?void 0:l.centerOffset)!==0,[en,er]=r.useState();return(0,eF.b)(()=>{T&&er(window.getComputedStyle(T).zIndex)},[T]),(0,eO.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:U?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(a=q.transformOrigin)||void 0===a?void 0:a.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,eO.jsx)(eq,{scope:p,placedSide:X,onArrowChange:_,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,eO.jsx)(u.WV.div,{"data-side":X,"data-align":Y,...E,ref:L,style:{...E.style,animation:U?void 0:"none"}})})})});eY.displayName=eU;var e$="PopperArrow",eJ={top:"bottom",right:"left",bottom:"top",left:"right"},eQ=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eX(e$,n),i=eJ[o.placedSide];return(0,eO.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,eO.jsx)(e_,{...r,ref:t,style:{...r.style,display:"block"}})})});function e0(e){return null!==e}eQ.displayName=e$;var e1=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,h]=e2(a),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+f/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+d/2,y="",w="";return"bottom"===p?(y=s?v:"".concat(m,"px"),w="".concat(-d,"px")):"top"===p?(y=s?v:"".concat(m,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=s?v:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),w=s?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function e2(e){let[t,n="center"]=e.split("-");return[t,n]}var e5=n(3832),e3=n(1599),e7="rovingFocusGroup.onEntryFocus",e4={bubbles:!1,cancelable:!0},e8="RovingFocusGroup",[e6,e9,te]=(0,c.B)(e8),[tt,tn]=(0,l.b)(e8,[te]),[tr,to]=tt(e8),ti=r.forwardRef((e,t)=>
1(0,eO.jsx)(e6.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,eO.jsx)(e6.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,eO.jsx)(tl,{...e,ref:t})})}));ti.displayName=e8;var tl=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:l,loop:c=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:m=!1,...g}=e,y=r.useRef(null),w=(0,i.e)(t,y),x=(0,s.gm)(f),[b=null,M]=(0,a.T)({prop:d,defaultProp:p,onChange:h}),[R,C]=r.useState(!1),k=(0,eI.W)(v),j=e9(n),A=r.useRef(!1),[D,E]=r.useState(0);return r.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(e7,k),()=>e.removeEventListener(e7,k)},[k]),(0,eO.jsx)(tr,{scope:n,orientation:l,dir:x,loop:c,currentTabStopId:b,onItemFocus:r.useCallback(e=>M(e),[M]),onItemShiftTab:r.useCallback(()=>C(!0),[]),onFocusableItemAdd:r.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>E(e=>e-1),[]),children:(0,eO.jsx)(u.WV.div,{tabIndex:R||0===D?-1:0,"data-orientation":l,...g,ref:w,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(e7,e4);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);ts([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),m)}}A.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>C(!1))})})}),ta="RovingFocusGroupItem",tu=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:l=!1,tabStopId:a,...c}=e,s=(0,h.M)(),f=a||s,d=to(ta,n),p=d.currentTabStopId===f,v=e9(n),{onFocusableItemAdd:m,onFocusableItemRemove:g}=d;return r.useEffect(()=>{if(i)return m(),()=>g()},[i,m,g]),(0,eO.jsx)(e6.ItemSlot,{scope:n,id:f,focusable:i,active:l,children:(0,eO.jsx)(u.WV.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i?d.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>d.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){d.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,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=d.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>ts(o))}})})})});tu.displayName=ta;var tc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ts(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var tf=n(7495),td=n(5478),tp=n(9157),th=["Enter"," "],tv=["ArrowUp","PageDown","End"],tm=["ArrowDown","PageUp","Home",...tv],tg={ltr:[...th,"ArrowRight"],rtl:[...th,"ArrowLeft"]},ty={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tw="Menu",[tx,tb,tM]=(0,c.B)(tw),[tR,tC]=(0,l.b)(tw,[tM,eZ,tn]),tk=eZ(),tj=tn(),[tA,tD]=tR(tw),[tE,tS]=tR(tw),tT=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:l,modal:a=!0}=e,u=tk(t),[c,f]=r.useState(null),d=r.useRef(!1),p=(0,eI.W)(l),h=(0,s.gm)(i);return r.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.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,eO.jsx)(eK,{...u,children:(0,eO.jsx)(tA,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:f,children:(0,eO.jsx)(tE,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:h,modal:a,children:o})})})};tT.displayName=tw;var tP=r.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e,o=tk(n);return(0,eO.jsx)(eG,{...o,...r,ref:t})});tP.displayName="MenuAnchor";var tL="MenuPortal",[tO,t_]=tR(tL,{forceMount:void 0}),tI=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tD(tL,t);return(0,eO.jsx)(tO,{scope:t,forceMount:n,children:(0,eO.jsx)(e3.z,{present:n||i.open,children:(0,eO.jsx)(e5.h,{asChild:!0,container:o,children:r})})})};tI.displayName=tL;var tF="MenuContent",[tN,tV]=tR(tF),tW=r.forwardRef((e,t)=>{let n=t_(tF,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tD(tF,e.__scopeMenu),l=tS(tF,e.__scopeMenu);return(0,eO.jsx)(tx.Provider,{scope:e.__scopeMenu,children:(0,eO.jsx)(e3.z,{present:r||i.open,children:(0,eO.jsx)(tx.Slot,{scope:e.__scopeMenu,children:l.modal?(0,eO.jsx)(tZ,{...o,ref:t}):(0,eO.jsx)(tH,{...o,ref:t})})})})}),tZ=r.forwardRef((e,t)=>{let n=tD(tF,e.__scopeMenu),l=r.useRef(null),a=(0,i.e)(t,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,td.Ry)(e)},[]),(0,eO.jsx)(tK,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tH=r.forwardRef((e,t)=>{let n=tD(tF,e.__scopeMenu);return(0,eO.jsx)(tK,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tz=(0,tf.Z8)("MenuContent.ScrollLock"),tK=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:l=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:w,disableOutsideScroll:x,...b}=e,M=tD(tF,n),R=tS(tF,n),C=tk(n),k=tj(n),j=tb(n),[A,D]=r.useState(null),E=r.useRef(null),S=(0,i.e)(t,E,M.onContentChange),T=r.useRef(0),P=r.useRef(""),L=r.useRef(0),O=r.useRef(null),_=r.useRef("right"),I=r.useRef(0),F=x?tp.Z:r.Fragment,N=e=>{var t,n;let r=P.current+e,o=j().filter(e=>!e.disabled),i=document.activeElement,l=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,a=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 l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===a))||void 0===n?void 0:n.ref.current;!function e(t){P.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};r.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,d.EW)();let V=r.useCallback(e=>{var t,n,r;return _.current===(null===(t=O.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=O.current)||void 0===n?void 0:n.area)&&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 l=t[e].x,a=t[e].y,u=t[i].x,c=t[i].y;a>r!=c>r&&n<(u-l)*(r-a)/(c-a)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,eO.jsx)(tN,{scope:n,searchRef:P,onItemEnter:r.useCallback(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:r.useCallback(e=>{var t;V(e)||(null===(t=E.current)||void 0===t||t.focus(),D(null))},[V]),onTriggerLeave:r.useCallback(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:L,onPointerGraceIntentChange:r.useCallback(e=>{O.current=e},[]),children:(0,eO.jsx)(F,{...x?{as:tz,allowPinchZoom:!0}:void 0,children:(0,eO.jsx)(p.M,{asChild:!0,trapped:a,onMountAutoFocus:(0,o.M)(u,e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,eO.jsx)(f.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:w,children:(0,eO.jsx)(ti,{asChild:!0,...k,dir:R.dir,orientation:"vertical",loop:l,currentTabStopId:A,onCurrentTabStopIdChange:D,onEntryFocus:(0,o.M)(h,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eO.jsx)(eY,{role:"menu","aria-orientation":"vertical","data-state":nu(M.open),"data-radix-menu-content":"",dir:R.dir,...C,...b,ref:S,style:{outline:"none",...b.style},onKeyDown:(0,o.M)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&N(e.key));let o=E.current;if(e.target!==o||!tm.includes(e.key))return;e.preventDefault();let i=j().filter(e=>!e.disabled).map(e=>e.ref.current);tv.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,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),P.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,nf(e=>{let t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>I.current?"right":"left";_.current=t,I.current=e.clientX}}))})})})})})})});tW.displayName=tF;var tB=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eO.jsx)(u.WV.div,{role:"group",...r,ref:t})});tB.displayName="MenuGroup";var tG=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eO.jsx)(u.WV.div,{...r,ref:t})});tG.displayName="MenuLabel";var tU="MenuItem",tq="menu.itemSelect",tX=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:l,...a}=e,c=r.useRef(null),s=tS(tU,e.__scopeMenu),f=tV(tU,e.__scopeMenu),d=(0,i.e)(t,c),p=r.useRef(!1);return(0,eO.jsx)(tY,{...a,ref:d,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(tq,{bubbles:!0,cancelable:!0});e.addEventListener(tq,e=>null==l?void 0:l(e),{once:!0}),(0,u.jH)(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,o.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;!n&&(!t||" "!==e.key)&&th.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tX.displayName=tU;var tY=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:l=!1,textValue:a,...c}=e,s=tV(tU,n),f=tj(n),d=r.useRef(null),p=(0,i.e)(t,d),[h,v]=r.useState(!1),[m,g]=r.useState("");return r.useEffect(()=>{let e=d.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,eO.jsx)(tx.ItemSlot,{scope:n,disabled:l,textValue:null!=a?a:m,children:(0,eO.jsx)(tu,{asChild:!0,...f,focusable:!l,children:(0,eO.jsx)(u.WV.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...c,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,nf(e=>{l?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,nf(e=>s.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>v(!0)),onBlur:(0,o.M)(e.onBlur,()=>v(!1))})})})}),t$=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,eO.jsx)(t7,{scope:e.__scopeMenu,checked:n,children:(0,eO.jsx)(tX,{role:"menuitemcheckbox","aria-checked":nc(n)?"mixed":n,...i,ref:t,"data-state":ns(n),onSelect:(0,o.M)(i.onSelect,()=>null==r?void 0:r(!!nc(n)||!n),{checkForDefaultPrevented:!1})})})});t$.displayName="MenuCheckboxItem";var tJ="MenuRadioGroup",[tQ,t0]=tR(tJ,{value:void 0,onValueChange:()=>{}}),t1=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,eI.W)(r);return(0,eO.jsx)(tQ,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eO.jsx)(tB,{...o,ref:t})})});t1.displayName=tJ;var t2="MenuRadioItem",t5=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=t0(t2,e.__scopeMenu),l=n===i.value;return(0,eO.jsx)(t7,{scope:e.__scopeMenu,checked:l,children:(0,eO.jsx)(tX,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":ns(l),onSelect:(0,o.M)(r.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});t5.displayName=t2;var t3="MenuItemIndicator",[t7,t4]=tR(t3,{checked:!1}),t8=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=t4(t3,n);return(0,eO.jsx)(e3.z,{present:r||nc(i.checked)||!0===i.checked,children:(0,eO.jsx)(u.WV.span,{...o,ref:t,"data-state":ns(i.checked)})})});t8.displayName=t3;var t6=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eO.jsx)(u.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});t6.displayName="MenuSeparator";var t9=r.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e,o=tk(n);return(0,eO.jsx)(eQ,{...o,...r,ref:t})});t9.displayName="MenuArrow";var ne="MenuSub",[nt,nn]=tR(ne),nr=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,l=tD(ne,t),a=tk(t),[u,c]=r.useState(null),[s,f]=r.useState(null),d=(0,eI.W)(i);return r.useEffect(()=>(!1===l.open&&d(!1),()=>d(!1)),[l.open,d]),(0,eO.jsx)(eK,{...a,children:(0,eO.jsx)(tA,{scope:t,open:o,onOpenChange:d,content:s,onContentChange:f,children:(0,eO.jsx)(nt,{scope:t,contentId:(0,h.M)(),triggerId:(0,h.M)(),trigger:u,onTriggerChange:c,children:n})})})};nr.displayName=ne;var no="MenuSubTrigger",ni=r.forwardRef((e,t)=>{let n=tD(no,e.__scopeMenu),l=tS(no,e.__scopeMenu),a=nn(no,e.__scopeMenu),u=tV(no,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:f}=u,d={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),f(null)}},[s,f]),(0,eO.jsx)(tP,{asChild:!0,...d,children:(0,eO.jsx)(tY,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":nu(n.open),...e,ref:(0,i.F)(t,a.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,o.M)(e.onPointerMove,nf(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,nf(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,l=o[i?"left":"right"],a=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.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;if(!e.disabled&&(!r||" "!==t.key)&&tg[l.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});ni.displayName=no;var nl="MenuSubContent",na=r.forwardRef((e,t)=>{let n=t_(tF,e.__scopeMenu),{forceMount:l=n.forceMount,...a}=e,u=tD(tF,e.__scopeMenu),c=tS(tF,e.__scopeMenu),s=nn(nl,e.__scopeMenu),f=r.useRef(null),d=(0,i.e)(t,f);return(0,eO.jsx)(tx.Provider,{scope:e.__scopeMenu,children:(0,eO.jsx)(e3.z,{present:l||u.open,children:(0,eO.jsx)(tx.Slot,{scope:e.__scopeMenu,children:(0,eO.jsx)(tK,{id:s.contentId,"aria-labelledby":s.triggerId,...a,ref:d,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ty[c.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function nu(e){return e?"open":"closed"}function nc(e){return"indeterminate"===e}function ns(e){return nc(e)?"indeterminate":e?"checked":"unchecked"}function nf(e){return t=>"mouse"===t.pointerType?e(t):void 0}na.displayName=nl;var nd="DropdownMenu",[np,nh]=(0,l.b)(nd,[tC]),nv=tC(),[nm,ng]=np(nd),ny=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,s=nv(t),f=r.useRef(null),[d=!1,p]=(0,a.T)({prop:i,defaultProp:l,onChange:u});return(0,eO.jsx)(nm,{scope:t,triggerId:(0,h.M)(),triggerRef:f,contentId:(0,h.M)(),open:d,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:(0,eO.jsx)(tT,{...s,open:d,onOpenChange:p,dir:o,modal:c,children:n})})};ny.displayName=nd;var nw="DropdownMenuTrigger",nx=r.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,disabled:r=!1,...l}=e,a=ng(nw,n),c=nv(n);return(0,eO.jsx)(tP,{asChild:!0,...c,children:(0,eO.jsx)(u.WV.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...l,ref:(0,i.F)(t,a.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nx.displayName=nw;var nb=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nv(t);return(0,eO.jsx)(tI,{...r,...n})};nb.displayName="DropdownMenuPortal";var nM="DropdownMenuContent",nR=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,l=ng(nM,n),a=nv(n),u=r.useRef(!1);return(0,eO.jsx)(tW,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=l.triggerRef.current)||void 0===t||t.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;(!l.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)"}})});nR.displayName=nM;var nC=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(tB,{...o,...r,ref:t})});nC.displayName="DropdownMenuGroup";var nk=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(tG,{...o,...r,ref:t})});nk.displayName="DropdownMenuLabel";var nj=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(tX,{...o,...r,ref:t})});nj.displayName="DropdownMenuItem";var nA=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(t$,{...o,...r,ref:t})});nA.displayName="DropdownMenuCheckboxItem";var nD=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(t1,{...o,...r,ref:t})});nD.displayName="DropdownMenuRadioGroup";var nE=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(t5,{...o,...r,ref:t})});nE.displayName="DropdownMenuRadioItem";var nS=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(t8,{...o,...r,ref:t})});nS.displayName="DropdownMenuItemIndicator";var nT=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(t6,{...o,...r,ref:t})});nT.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(t9,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var nP=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.jsx)(ni,{...o,...r,ref:t})});nP.displayName="DropdownMenuSubTrigger";var nL=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nv(n);return(0,eO.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)"}})});nL.displayName="DropdownMenuSubContent";var nO=ny,n_=nx,nI=nb,nF=nR,nN=nC,nV=nk,nW=nj,nZ=nA,nH=nD,nz=nE,nK=nS,nB=nT,nG=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=nv(t),[u=!1,c]=(0,a.T)({prop:r,defaultProp:i,onChange:o});return(0,eO.jsx)(nr,{...l,open:u,onOpenChange:c,children:n})},nU=nP,nq=nL},420:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(2265),o=n(1188);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>
1{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}}}]);

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.