PageSourceSearch

https://www.tamiltshirts.in/_next/static/chunks/2104-d5597a7362de9d41.js

js tamiltshirts.in collected 2026-10-02 00:37:31 UTC 45,839 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e6acf172-a4d0-4f55-88e4-bbd9aad71555",e._sentryDebugIdIdentifier="sentry-dbid-e6acf172-a4d0-4f55-88e4-bbd9aad71555")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2104],{32104:(e,t,n)=>{let r;n.d(t,{H_:()=>nD,UC:()=>nb,YJ:()=>nR,q7:()=>nM,VF:()=>nA,JU:()=>nC,ZL:()=>nx,z6:()=>nj,hN:()=>nP,bL:()=>nw,wv:()=>nE,Pb:()=>nO,G5:()=>nk,ZP:()=>nT,l9:()=>ny});var o=n(12115),i=n(92556),l=n(94446),a=n(3468),u=n(23558),s=n(97602),c=n(49972),f=n(66218),d=n(1987),p=n(19526),h=n(69666),m=n(68946);let g=["top","right","bottom","left"],v=Math.min,w=Math.max,y=Math.round,x=Math.floor,b=e=>({x:e,y:e}),R={left:"right",right:"left",bottom:"top",top:"bottom"};function C(e,t){return"function"==typeof e?e(t):e}function M(e){return e.split("-")[0]}function D(e){return e.split("-")[1]}function j(e){return"x"===e?"y":"x"}function P(e){return"y"===e?"height":"width"}function A(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function E(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let O=["left","right"],T=["right","left"],k=["top","bottom"],S=["bottom","top"];function _(e){let t=M(e);return R[t]+e.slice(t.length)}function L(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function N(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 I(e,t,n){let r,{reference:o,floating:i}=e,l=A(t),a=j(A(t)),u=P(a),s=M(t),c="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(s){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(D(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}async function K(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=C(t,e),h=L(p),m=a[d?"floating"===f?"reference":"floating":f],g=N(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(a.floating)),boundary:s,rootBoundary:c,strategy:u})),v="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=N(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:u}):v);return{top:(g.top-x.top+h.top)/y.y,bottom:(x.bottom-g.bottom+h.bottom)/y.y,left:(g.left-x.left+h.left)/y.x,right:(x.right-g.right+h.right)/y.x}}let F=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:K},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=I(s,r,u),d=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:g,fn:v}=m,{x:w,y:y,data:x,reset:b}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=w?w:c,f=null!=y?y:f,h[g]={...h[g],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=I(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:h}};function H(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function G(e){return g.some(t=>e[t]>=0)}let B=new Set(["left","top"]);async function V(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=M(n),a=D(n),u="y"===A(n),s=B.has(l)?-1:1,c=i&&u?-1:1,f=C(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}
1:{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*c,y:d*s}:{x:d*s,y:p*c}}function W(){return"undefined"!=typeof window}function z(e){return Y(e)?(e.nodeName||"").toLowerCase():"#document"}function X(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function U(e){var t;return null==(t=(Y(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Y(e){return!!W()&&(e instanceof Node||e instanceof X(e).Node)}function q(e){return!!W()&&(e instanceof Element||e instanceof X(e).Element)}function $(e){return!!W()&&(e instanceof HTMLElement||e instanceof X(e).HTMLElement)}function Z(e){return!!W()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof X(e).ShadowRoot)}function J(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=el(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Q(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ee=/transform|translate|scale|rotate|perspective|filter/,et=/paint|layout|strict|content/,en=e=>!!e&&"none"!==e;function er(e){let t=q(e)?el(e):e;return en(t.transform)||en(t.translate)||en(t.scale)||en(t.rotate)||en(t.perspective)||!eo()&&(en(t.backdropFilter)||en(t.filter))||ee.test(t.willChange||"")||et.test(t.contain||"")}function eo(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ei(e){return/^(html|body|#document)$/.test(z(e))}function el(e){return X(e).getComputedStyle(e)}function ea(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eu(e){if("html"===z(e))return e;let t=e.assignedSlot||e.parentNode||Z(e)&&e.host||U(e);return Z(t)?t.host:t}
1function es(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eu(t);return ei(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&J(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=X(o);if(!i)return t.concat(o,es(o,[],n));{let e=ec(l);return t.concat(l,l.visualViewport||[],J(o)?o:[],e&&n?es(e):[])}}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ef(e){let t=el(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=$(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 ed(e){return q(e)?e:e.contextElement}function ep(e){let t=ed(e);if(!$(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ef(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 eh=b(0);function em(e){let t=X(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eh}function eg(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ed(e),a=b(1);t&&(r?q(r)&&(a=ep(r)):a=ep(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===X(l))&&o)?em(l):b(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=X(l),t=r&&q(r)?X(r):r,n=e,o=ec(n);for(;o&&r&&t!==n;){let e=ep(o),t=o.getBoundingClientRect(),r=el(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,f*=e.x,d*=e.y,s+=i,c+=l,o=ec(n=X(o))}}return N({width:f,height:d,x:s,y:c})}function ev(e,t){let n=ea(e).scrollLeft;return t?t.left+n:eg(U(e)).left+n}function ew(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ev(e,n),y:n.top+t.scrollTop}}function ey(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=X(e),r=U(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=eo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=ev(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=U(e),n=ea(e),r=e.ownerDocument.body,o=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ev(e),a=-n.scrollTop;return"rtl"===el(r).direction&&(l+=w(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(U(e));else if(q(t))r=function(e,t){let n=eg(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$(e)?ep(e):b(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=em(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return N(r)}function ex(e){return"static"===el(e).position}function eb(e,t){if(!$(e)||"fixed"===el(e).position)return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function eR(e,t){var n;let r=X(e);if(Q(e))return r;if(!$(e)){let t=eu(e);for(;t&&!ei(t);){if(q(t)&&!ex(t))return t;t=eu(t)}return r}let o=eb(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(z(n)))&&ex(o);)o=eb(o,t);return o&&ei(o)&&ex(o)&&!er(o)?r:o||function(e){let t=eu(e);for(;$(t)&&!ei(t);){if(er(t))return t;if(Q(t))break;t=eu(t)}return null}(e)||r}let eC=async function(e){let t=this.getOffsetParent||eR,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=$(t),o=U(t),i="fixed"===n,l=eg(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=b(0);if(r||!r&&!i)if(("body"!==z(t)||J(o))&&(a=ea(t)),r){let e=eg(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ev(o));i&&!r&&o&&(u.x=ev(o));let s=!o||r||i?b(0):ew(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.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=U(r),a=!!t&&Q(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=b(1),c=b(0),f=$(r);if((f||!f&&!i)&&(("body"!==z(r)||J(l))&&(u=ea(r)),f)){let e=eg(r);s=ep(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||i?b(0):ew(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+d.x,y:n.y*s.y-u.scrollTop*s.y+c.y+d.y}},getDocumentElement:U,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=es(e,[],!1).filter(e=>q(e)&&"body"!==z(e)),o=null,i="fixed"===el(e).position,l=i?eu(e):e;for(;q(l)&&!ei(l);){let t=el(l),n=er(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||J(l)&&!n&&function e(t,n){let r=eu(t);return!(r===n||!q(r)||ei(r))&&("fixed"===el(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=eu(l)}return t.set(e,r),r}
1(t,this._c):[].concat(n),r],l=ey(t,i[0],o),a=l.top,u=l.right,s=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=ey(t,i[e],o);a=w(n.top,a),u=v(n.right,u),s=v(n.bottom,s),c=w(n.left,c)}return{width:u-c,height:s-a,x:c,y:a}},getOffsetParent:eR,getElementRects:eC,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ef(e);return{width:t,height:n}},getScale:ep,isElement:q,isRTL:function(e){return"rtl"===el(e).direction}};function eD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ej=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:s,padding:c=0}=C(e,t)||{};if(null==s)return{};let f=L(c),d={x:n,y:r},p=j(A(o)),h=P(p),m=await l.getDimensions(s),g="y"===p,y=g?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[p]-d[p]-i.floating[h],b=d[p]-i.reference[p],R=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),M=R?R[y]:0;M&&await (null==l.isElement?void 0:l.isElement(R))||(M=a.floating[y]||i.floating[h]);let E=M/2-m[h]/2-1,O=v(f[g?"top":"left"],E),T=v(f[g?"bottom":"right"],E),k=M-m[h]-T,S=M/2-m[h]/2+(x/2-b/2),_=w(O,v(S,k)),N=!u.arrow&&null!=D(o)&&S!==_&&i.reference[h]/2-(S<O?O:T)-m[h]/2<0,I=N?S<O?S-O:S-k:0;return{[p]:d[p]+I,data:{[p]:_,centerOffset:S-_-I,...N&&{alignmentOffset:I}},reset:N}}});var eP=n(47650),eA="undefined"!=typeof document?o.useLayoutEffect:function(){};function eE(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eE(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eE(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eO(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eT(e,t){let n=eO(e);return Math.round(t*n)/n}function ek(e){let t=o.useRef(e);return eA(()=>{t.current=e}),t}var eS=n(95155),e_=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eS.jsx)(s.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eS.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e_.displayName="Arrow";var eL=n(70222),eN=n(4129),eI=n(84288),eK="Popper",[eF,eH]=(0,a.A)(eK),[eG,eB]=eF(eK),eV=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,a]=o.useState(void 0);return(0,eS.jsx)(eG,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:a,children:n})};eV.displayName=eK;var eW="PopperAnchor",ez=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=eB(eW,n),u=o.useRef(null),c=a.onAnchorChange,f=o.useCallback(e=>{u.current=e,e&&c(e)},[c]),d=(0,l.s)(t,f),p=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=p.current;p.current=r.current,e!==p.current&&c(p.current)});let h=a.placementState&&e1(a.placementState),m=null==h?void 0:h[0],g=null==h?void 0:h[1];return r?null:(0,eS.jsx)(s.sG.div,{"data-radix-popper-side":m,"data-radix-popper-align":g,...i,ref:d})});ez.displayName=eW;var eX="PopperContent",[eU,eY]=eF(eX),eq=o.forwardRef((e,t)=>{var n,r,i,a,u,c,f,d;let{__scopePopper:p,side:h="bottom",sideOffset:m=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:R=!0,collisionBoundary:L=[],collisionPadding:N=0,sticky:I="partial",hideWhenDetached:K=!1,updatePositionStrategy:W="optimized",onPlaced:z,...X}
1=e,Y=eB(eX,p),[q,$]=o.useState(null),Z=(0,l.s)(t,$),[J,Q]=o.useState(null),ee=(0,eI.X)(J),et=null!=(f=null==ee?void 0:ee.width)?f:0,en=null!=(d=null==ee?void 0:ee.height)?d:0,er="number"==typeof N?N:{top:0,right:0,bottom:0,left:0,...N},eo=Array.isArray(L)?L:[L],ei=eo.length>0,el={padding:er,boundary:eo.filter(eQ),altBoundary:ei},{refs:ea,floatingStyles:eu,placement:ec,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);eE(p,r)||h(r);let[m,g]=o.useState(null),[v,w]=o.useState(null),y=o.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=o.useCallback(e=>{e!==M.current&&(M.current=e,w(e))},[]),b=l||m,R=a||v,C=o.useRef(null),M=o.useRef(null),D=o.useRef(f),j=null!=s,P=ek(s),A=ek(i),E=ek(c),O=o.useCallback(()=>{if(!C.current||!M.current)return;let e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),((e,t,n)=>{let r=new Map,o={platform:eM,...n},i={...o.platform,_c:r};return F(e,t,{...o,platform:i})})(C.current,M.current,e).then(e=>{let t={...e,isPositioned:!1!==E.current};T.current&&!eE(D.current,t)&&(D.current=t,eP.flushSync(()=>{d(t)}))})},[p,t,n,A,E]);eA(()=>{!1===c&&D.current.isPositioned&&(D.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let T=o.useRef(!1);eA(()=>(T.current=!0,()=>{T.current=!1}),[]),eA(()=>{if(b&&(C.current=b),R&&(M.current=R),b&&R){if(P.current)return P.current(b,R,O);O()}},[b,R,O,P,j]);let k=o.useMemo(()=>({reference:C,floating:M,setReference:y,setFloating:x}),[y,x]),S=o.useMemo(()=>({reference:b,floating:R}),[b,R]),_=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!S.floating)return e;let t=eT(S.floating,f.x),r=eT(S.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eO(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,S.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:O,refs:k,elements:S,floatingStyles:_}),[f,O,k,S,_])}({strategy:"fixed",placement:h+("center"!==g?"-"+g:""),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:s=!1}=r,c=ed(e),f=i||l?[...c?es(c):[],...t?es(t):[]]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=c&&u?function(e,t){let n,r=null,o=U(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 s=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=s;if(a||t(),!d||!p)return;let h=x(f),m=x(o.clientWidth-(c+d)),g={rootMargin:-h+"px "+-m+"px "+-x(o.clientHeight-(f+p))+"px "+-x(c)+"px",threshold:w(0,v(1,u))||1},y=!0;function b(t){let r=t[0].intersectionRatio;if(r!==u){if(!y)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eD(s,e.getBoundingClientRect())||l(),y=!1}try{r=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),i}(c,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),t&&h.observe(t));let m=s?eg(e):null;return s&&function t(){let r=eg(e);m&&!eD(m,r)&&n(),m=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,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===W})},elements:{reference:Y.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await V(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:m+en,alignmentAxis:y}),R&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=C(e,t),c={x:n,y:r},f=await i.detectOverflow(t,s),d=A(M(o)),p=j(d),h=c[p],m=c[d];
1if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=h+f[e],r=h-f[t];h=w(n,v(h,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+f[e],r=m-f[t];m=w(n,v(m,r))}let g=u.fn({...t,[p]:h,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:l,[d]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===I?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=C(e,t),c={x:n,y:r},f=A(o),d=j(f),p=c[d],h=c[f],m=C(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var v,w;let e="y"===d?"width":"height",t=B.has(M(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(v=l.offset)?void 0:v[f])||0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(w=l.offset)?void 0:w[f])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}}(e).fn,options:[e,t]}))():void 0,...el}),R&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...y}=C(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let x=M(a),b=A(c),R=M(c)===c,L=await (null==f.isRTL?void 0:f.isRTL(d.floating)),N=m||(R||!w?[_(c)]:function(e){let t=_(e);return[E(e),t,E(t)]}(c)),I="none"!==v;!m&&I&&N.push(...function(e,t,n,r){let o=D(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?T:O;return t?O:T;case"left":case"right":return t?k:S;default:return[]}}(M(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(E)))),i}(c,w,v,L));let K=[c,...N],F=await f.detectOverflow(t,y),H=[],G=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&H.push(F[x]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=D(e),o=j(A(e)),i=P(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=_(l)),[l,_(l)]}(a,s,L);H.push(F[e[0]],F[e[1]])}if(G=[...G,{placement:a,overflows:H}],!H.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=K[e];if(t&&("alignment"!==h||b===A(t)||G.every(e=>A(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:G},reset:{placement:t}};let n=null==(i=G.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==(l=G.filter(e=>{if(I){let t=A(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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...el}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:a,platform:u,elements:s}=t,{apply:c=()=>{},...f}=C(e,t),d=await u.detectOverflow(t,f),p=M(l),h=D(l),m="y"===A(l),{width:g,height:y}=a.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 x=y-d.top-d.bottom,b=g-d.left-d.right,R=v(y-d[o],x),j=v(g-d[i],b),P=!t.middlewareData.shift,E=R,O=j;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=x),P&&!h){let e=w(d.left,0),t=w(d.right,0),n=w(d.top,0),r=w(d.bottom,0);m?O=g-2*(0!==e||0!==t?e+t:w(d.left,d.right)):E=y-2*(0!==n||0!==r?n+r:w(d.top,d.bottom))}await c({...t,availableWidth:O,availableHeight:E});let T=await u.getDimensions(s.floating);return g!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...el,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"))}}),J&&((e,t)=>{let n=(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?ej({element:n.current,padding:r}).fn(t):{}:n?ej({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:J,padding:b}),e0({arrowWidth:et,arrowHeight:en}),K&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=C(e,t);switch(o){case"referenceHidden":{let e=H(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:G(e)}}}case"escaped":{let e=H(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:G(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...el,boundary:ei?el.boundary:void 0})]}),eh=Y.setPlacementState;(0,eN.N)(()=>(eh(ec),()=>{eh(void 0)}),[ec,eh]);let[em,ev]=e1(ec),ew=(0,eL.c)(z);(0,eN.N)(()=>{ef&&(null==ew||ew())},[ef,ew]);let ey=null==(n=ep.arrow)?void 0:n.x,ex=null==(r=ep.arrow)?void 0:r.y,eb=(null==(i=ep.arrow)?void 0:i.centerOffset)!==0,[eR,eC]=o.useState();return(0,eN.N)(()=>{q&&eC(window.getComputedStyle(q).zIndex)},[q]),(0,eS.jsx)("div",{ref:ea.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:ef?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eR,"--radix-popper-transform-origin":[null==(a=ep.transformOrigin)?void 0:a.x,null==(u=ep.transformOrigin)?void 0:u.y].join(" "),...(null==(c=ep.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eS.jsx)(eU,{scope:p,placedSide:em,placedAlign:ev,onArrowChange:Q,arrowX:ey,arrowY:ex,shouldHideArrow:eb,children:(0,eS.jsx)(s.sG.div,{"data-side":em,"data-align":ev,...X,ref:Z,style:{...X.style,animation:ef?void 0:"none"}})})})});eq.displayName=eX;var e$="PopperArrow",eZ={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eJ=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eY(e$,n),i=eZ[o.placedSide];return(0,eS.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,eS.jsx)(e_,{...r,ref:t,style:{...r.style,display:"block"}})})});function eQ(e){return null!==e}eJ.displayName=e$;var e0=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=e1(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+f/2,v=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+d/2,w="",y="";return"bottom"===p?(w=c?m:"".concat(g,"px"),y="".concat(-d,"px")):"top"===p?(w=c?m:"".concat(g,"px"),y="".concat(u.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),y=c?m:"".concat(v,"px")):"left"===p&&(w="".concat(u.floating.width+d,"px"),y=c?m:"".concat(v,"px")),{data:{x:w,y}}}});function e1(e){let[t,n="center"]=e.split("-");return[t,n]}var e2=n(75433),e5=n(76842),e4=n(87308),e6=n(32467),e7=n(97745),e9=n(40101),e8=["Enter"," "],e3=["ArrowUp","PageDown","End"],te=["ArrowDown","PageUp","Home",...e3],tt={ltr:[...e8,"ArrowRight"],rtl:[...e8,"ArrowLeft"]},tn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tr="Menu",[to,ti,tl]=(0,c.N)(tr),[ta,tu]=(0,a.A)(tr,[tl,eH,e4.RG]),ts=eH(),tc=(0,e4.RG)(),[tf,td]=ta(tr),[tp,th]=ta(tr),tm=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:a=!0}=e,u=ts(t),[s,c]=o.useState(null),d=o.useRef(!1),p=(0,eL.c)(l),h=(0,f.jH)(i);return o.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})}},[]),o.useEffect(()=>{if(!n)return;let e=()=>p(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,p]),(0,eS.jsx)(eV,{...u,children:(0,eS.jsx)(tf,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:c,children:(0,eS.jsx)(tp,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:h,modal:a,children:r})})})};tm.displayName=tr;var tg=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=ts(n);return(0,eS.jsx)(ez,{...o,...r,ref:t})});tg.displayName="MenuAnchor";var tv="MenuPortal",[tw,ty]=ta(tv,{forceMount:void 0}),tx=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=td(tv,t);return(0,eS.jsx)(tw,{scope:t,forceMount:n,children:(0,eS.jsx)(e5.C,{present:n||i.open,children:(0,eS.jsx)(e2.Z,{asChild:!0,container:o,children:r})})})};tx.displayName=tv;var tb="MenuContent",[tR,tC]=ta(tb),tM=o.forwardRef((e,t)=>{let n=ty(tb,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=td(tb,e.__scopeMenu),l=th(tb,e.__scopeMenu);return(0,eS.jsx)(to.Provider,{scope:e.__scopeMenu,children:(0,eS.jsx)(e5.C,{present:r||i.open,children:(0,eS.jsx)(to.Slot,{scope:e.__scopeMenu,children:l.modal?(0,eS.jsx)(tD,{...o,ref:t}):(0,eS.jsx)(tj,{...o,ref:t})})})})}),tD=o.forwardRef((e,t)=>{let n=td(tb,e.__scopeMenu),r=o.useRef(null),a=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,e7.Eq)(e)},[]),(0,eS.jsx)(tA,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tj=o.forwardRef((e,t)=>{let n=td(tb,e.__scopeMenu);return(0,eS.jsx)(tA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tP=(0,e6.TL)("MenuContent.ScrollLock"),tA=o.forwardRef((e,t)=>
1{let{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:w,onDismiss:y,disableOutsideScroll:x,...b}=e,R=td(tb,n),C=th(tb,n),M=ts(n),D=tc(n),j=ti(n),[P,A]=o.useState(null),E=o.useRef(null),O=(0,l.s)(t,E,R.onContentChange),T=o.useRef(0),k=o.useRef(""),S=o.useRef(0),_=o.useRef(null),L=o.useRef("right"),N=o.useRef(0),I=x?e9.A:o.Fragment;o.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,p.Oh)();let K=o.useCallback(e=>{var t,n;return L.current===(null==(t=_.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,c=a.x,f=a.y;s>r!=f>r&&n<(c-u)*(r-s)/(f-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=_.current)?void 0:n.area)},[]);return(0,eS.jsx)(tR,{scope:n,searchRef:k,onItemEnter:o.useCallback(e=>{K(e)&&e.preventDefault()},[K]),onItemLeave:o.useCallback(e=>{var t;K(e)||(null==(t=E.current)||t.focus(),A(null))},[K]),onTriggerLeave:o.useCallback(e=>{K(e)&&e.preventDefault()},[K]),pointerGraceTimerRef:S,onPointerGraceIntentChange:o.useCallback(e=>{_.current=e},[]),children:(0,eS.jsx)(I,{...x?{as:tP,allowPinchZoom:!0}:void 0,children:(0,eS.jsx)(h.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.mK)(u,e=>{var t;e.preventDefault(),null==(t=E.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,eS.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:w,onDismiss:y,children:(0,eS.jsx)(e4.bL,{asChild:!0,...D,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:A,onEntryFocus:(0,i.mK)(f,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eS.jsx)(eq,{role:"menu","aria-orientation":"vertical","data-state":t2(R.open),"data-radix-menu-content":"",dir:C.dir,...M,...b,ref:O,style:{outline:"none",...b.style},onKeyDown:(0,i.mK)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=k.current+e,o=j().filter(e=>!e.disabled),i=document.activeElement,l=null==(t=o.find(e=>e.ref.current===i))?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=n?e.indexOf(n):-1,l=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(l=l.filter(e=>e!==n));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,l),u=null==(n=o.find(e=>e.textValue===a))?void 0:n.ref.current;!function e(t){k.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())})(e.key));let o=E.current;if(e.target!==o||!te.includes(e.key))return;e.preventDefault();let i=j().filter(e=>!e.disabled).map(e=>e.ref.current);e3.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),k.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,t6(e=>{let t=e.target,n=N.current!==e.clientX;e.currentTarget.contains(t)&&n&&(L.current=e.clientX>N.current?"right":"left",N.current=e.clientX)}))})})})})})})});tM.displayName=tb;var tE=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eS.jsx)(s.sG.div,{role:"group",...r,ref:t})});tE.displayName="MenuGroup";var tO=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eS.jsx)(s.sG.div,{...r,ref:t})});tO.displayName="MenuLabel";var tT="MenuItem",tk="menu.itemSelect",tS=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...a}=e,u=o.useRef(null),c=th(tT,e.__scopeMenu),f=tC(tT,e.__scopeMenu),d=(0,l.s)(t,u),p=o.useRef(!1);return(0,eS.jsx)(t_,{...a,ref:d,disabled:n,onClick:(0,i.mK)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(tk,{bubbles:!0,cancelable:!0});e.addEventListener(tk,e=>null==r?void 0:r(e),{once:!0}),(0,s.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),p.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!n&&e.target===e.currentTarget&&(""===f.searchRef.current||" "!==e.key)&&e8.includes(e.ke
1y)&&(e.currentTarget.click(),e.preventDefault())})})});tS.displayName=tT;var t_=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...u}=e,c=tC(tT,n),f=tc(n),d=o.useRef(null),p=(0,l.s)(t,d),[h,m]=o.useState(!1),[g,v]=o.useState("");return o.useEffect(()=>{let e=d.current;if(e){var t;v((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,eS.jsx)(to.ItemSlot,{scope:n,disabled:r,textValue:null!=a?a:g,children:(0,eS.jsx)(e4.q7,{asChild:!0,...f,focusable:!r,children:(0,eS.jsx)(s.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:p,onPointerMove:(0,i.mK)(e.onPointerMove,t6(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,t6(e=>c.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>m(!0)),onBlur:(0,i.mK)(e.onBlur,()=>m(!1))})})})}),tL=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,eS.jsx)(tV,{scope:e.__scopeMenu,checked:n,children:(0,eS.jsx)(tS,{role:"menuitemcheckbox","aria-checked":t5(n)?"mixed":n,...o,ref:t,"data-state":t4(n),onSelect:(0,i.mK)(o.onSelect,()=>null==r?void 0:r(!!t5(n)||!n),{checkForDefaultPrevented:!1})})})});tL.displayName="MenuCheckboxItem";var tN="MenuRadioGroup",[tI,tK]=ta(tN,{value:void 0,onValueChange:()=>{}}),tF=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,eL.c)(r);return(0,eS.jsx)(tI,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eS.jsx)(tE,{...o,ref:t})})});tF.displayName=tN;var tH="MenuRadioItem",tG=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=tK(tH,e.__scopeMenu),l=n===o.value;return(0,eS.jsx)(tV,{scope:e.__scopeMenu,checked:l,children:(0,eS.jsx)(tS,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":t4(l),onSelect:(0,i.mK)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});tG.displayName=tH;var tB="MenuItemIndicator",[tV,tW]=ta(tB,{checked:!1}),tz=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=tW(tB,n);return(0,eS.jsx)(e5.C,{present:r||t5(i.checked)||!0===i.checked,children:(0,eS.jsx)(s.sG.span,{...o,ref:t,"data-state":t4(i.checked)})})});tz.displayName=tB;var tX=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eS.jsx)(s.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tX.displayName="MenuSeparator";var tU=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=ts(n);return(0,eS.jsx)(eJ,{...o,...r,ref:t})});tU.displayName="MenuArrow";var tY="MenuSub",[tq,t$]=ta(tY),tZ=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,l=td(tY,t),a=ts(t),[u,s]=o.useState(null),[c,f]=o.useState(null),d=(0,eL.c)(i);return o.useEffect(()=>(!1===l.open&&d(!1),()=>d(!1)),[l.open,d]),(0,eS.jsx)(eV,{...a,children:(0,eS.jsx)(tf,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f,children:(0,eS.jsx)(tq,{scope:t,contentId:(0,m.B)(),triggerId:(0,m.B)(),trigger:u,onTriggerChange:s,children:n})})})};tZ.displayName=tY;var tJ="MenuSubTrigger",tQ=o.forwardRef((e,t)=>{let n=td(tJ,e.__scopeMenu),r=th(tJ,e.__scopeMenu),a=t$(tJ,e.__scopeMenu),u=tC(tJ,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=u,d={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);o.useEffect(()=>p,[p]),o.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]);let h=(0,l.s)(t,a.onTriggerChange);return(0,eS.jsx)(tg,{asChild:!0,...d,children:(0,eS.jsx)(t_,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?a.contentId:void 0,"data-state":t2(n.open),...e,ref:h,onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,t6(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,t6(e=>{var t,r;p();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?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(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{if(!e.disabled&&t.target===t.currentTarget&&(""===u.searchRef.current||" "!==t.key)&&tt[r.dir].includes(t.key)){var o;n.onOpenChange(!0),null==(o=n.content)||o.focus(),t.preventDefault()}})})})});tQ.displayName=tJ;var t0="MenuSubContent",t1=o.forwardRef((e,t)=>
1{let n=ty(tb,e.__scopeMenu),{forceMount:r=n.forceMount,align:a="start",...u}=e,s=td(tb,e.__scopeMenu),c=th(tb,e.__scopeMenu),f=t$(t0,e.__scopeMenu),d=o.useRef(null),p=(0,l.s)(t,d);return(0,eS.jsx)(to.Provider,{scope:e.__scopeMenu,children:(0,eS.jsx)(e5.C,{present:r||s.open,children:(0,eS.jsx)(to.Slot,{scope:e.__scopeMenu,children:(0,eS.jsx)(tA,{id:f.contentId,"aria-labelledby":f.triggerId,...u,ref:p,align:a,side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tn[c.dir].includes(e.key);if(t&&n){var r;s.onOpenChange(!1),null==(r=f.trigger)||r.focus(),e.preventDefault()}})})})})})});function t2(e){return e?"open":"closed"}function t5(e){return"indeterminate"===e}function t4(e){return t5(e)?"indeterminate":e?"checked":"unchecked"}function t6(e){return t=>"mouse"===t.pointerType?e(t):void 0}t1.displayName=t0;var t7="DropdownMenu",[t9,t8]=(0,a.A)(t7,[tu]),t3=tu(),[ne,nt]=t9(t7),nn=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:a,modal:s=!0}=e,c=t3(t),f=o.useRef(null),[d,p]=(0,u.i)({prop:i,defaultProp:null!=l&&l,onChange:a,caller:t7});return(0,eS.jsx)(ne,{scope:t,triggerId:(0,m.B)(),triggerRef:f,contentId:(0,m.B)(),open:d,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,eS.jsx)(tm,{...c,open:d,onOpenChange:p,dir:r,modal:s,children:n})})};nn.displayName=t7;var nr="DropdownMenuTrigger",no=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=nt(nr,n),u=t3(n),c=(0,l.s)(t,a.triggerRef);return(0,eS.jsx)(tg,{asChild:!0,...u,children:(0,eS.jsx)(s.sG.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,...o,ref:c,onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});no.displayName=nr;var ni=e=>{let{__scopeDropdownMenu:t,...n}=e,r=t3(t);return(0,eS.jsx)(tx,{...r,...n})};ni.displayName="DropdownMenuPortal";var nl="DropdownMenuContent",na=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,l=nt(nl,n),a=t3(n),u=o.useRef(!1);return(0,eS.jsx)(tM,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=l.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(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)"}})});na.displayName=nl;var nu=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tE,{...o,...r,ref:t})});nu.displayName="DropdownMenuGroup";var ns=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tO,{...o,...r,ref:t})});ns.displayName="DropdownMenuLabel";var nc=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tS,{...o,...r,ref:t})});nc.displayName="DropdownMenuItem";var nf=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tL,{...o,...r,ref:t})});nf.displayName="DropdownMenuCheckboxItem";var nd=o.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tF,{...o,...r,ref:t})});nd.displayName="DropdownMenuRadioGroup";var np=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tG,{...o,...r,ref:t})});np.displayName="DropdownMenuRadioItem";var nh=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tz,{...o,...r,ref:t})});nh.displayName="DropdownMenuItemIndicator";var nm=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tX,{...o,...r,ref:t})});nm.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tU,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var ng=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(tQ,{...o,...r,ref:t})});ng.displayName="DropdownMenuSubTrigger";var nv=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t3(n);return(0,eS.jsx)(t1,{...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)"}})});nv.displayName="DropdownMenuSubContent";var nw=nn,ny=no,nx=ni,nb=na,nR=nu,nC=ns,nM=nc,nD=nf,nj=nd,nP=np,nA=nh,nE=nm,nO=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=t3(t),[a,s]=(0,u.i)({prop:r,defaultProp:null!=i&&i,onChange:o,caller:"DropdownMenuSub"});return(0,eS.jsx)(tZ,{...l,open:a,onOpenChange:s,children:n})},nT=ng,nk=nv}}]);

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.