1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,296626,e=>{"use strict";var t=e.i(271645),r=e.i(820783),n=e.i(934620),o=e=>{var o;let a,s,{present:l,children:u}=e,d=function(e){var r,o;let[a,s]=t.useState(),l=t.useRef(null),u=t.useRef(e),d=t.useRef("none"),[c,p]=(r=e?"mounted":"unmounted",o={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>o[e][t]??e,r));return t.useEffect(()=>{let e=i(l.current);d.current="mounted"===c?e:"none"},[c]),(0,n.useLayoutEffect)(()=>{let t=l.current,r=u.current;if(r!==e){let n=d.current,o=i(t);e?p("MOUNT"):"none"===o||t?.display==="none"?p("UNMOUNT"):r&&n!==o?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,n.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,r=r=>{let n=i(l.current).includes(CSS.escape(r.animationName));if(r.target===a&&n&&(p("ANIMATION_END"),!u.current)){let r=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=r)})}},n=e=>{e.target===a&&(d.current=i(l.current))};return a.addEventListener("animationstart",n),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",n),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{l.current=e?getComputedStyle(e):null,s(e)},[])}}(l),c="function"==typeof u?u({present:d.isPresent}):t.Children.only(u),p=(0,r.useComposedRefs)(d.ref,(o=c,(s=(a=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.ref:(s=(a=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.props.ref:o.props.ref||o.ref));return"function"==typeof u||d.isPresent?t.cloneElement(c,{ref:p}):null};function i(e){return e?.animationName||"none"}o.displayName="Presence",e.s(["Presence",()=>o])},586318,e=>{"use strict";var t=e.i(271645);e.i(843476);var r=t.createContext(void 0);function n(e){let n=t.useContext(r);return e||n||"ltr"}e.s(["useDirection",()=>n])},75830,e=>{"use strict";var t=e.i(271645),r=e.i(30030),n=e.i(820783),o=e.i(843476);function i(e){var r;let i,a=(r=e,(i=t.forwardRef((e,r)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var a;let e,s,l=(a=o,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,o.props);return o.type!==t.Fragment&&(u.ref=r?(0,n.composeRefs)(r,l):l),t.cloneElement(o,u)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,i),l=t.forwardRef((e,r)=>{let{children:n,...i}=e,l=t.Children.toArray(n),u=l.find(s);if(u){let e=u.props.children,n=l.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(a,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,o.jsx)(a,{...i,ref:r,children:n})});return l.displayName=`${e}.Slot`,l}var a=Symbol("radix.slottable");function s(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}function l(e){let a=e+"CollectionProvider",[s,l]=(0,r.createContextScope)(a),[u,d]=s(a,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,o.jsx)(u,{scope:r,itemMap:a,collectionRef:i,children:n})};c.displayName=a;let p=e+"CollectionSlot",f=i(p),m=t.default.forwardRef((e,t)=>
1{let{scope:r,children:i}=e,a=d(p,r),s=(0,n.useComposedRefs)(t,a.collectionRef);return(0,o.jsx)(f,{ref:s,children:i})});m.displayName=p;let h=e+"CollectionItemSlot",v="data-radix-collection-item",g=i(h),y=t.default.forwardRef((e,r)=>{let{scope:i,children:a,...s}=e,l=t.default.useRef(null),u=(0,n.useComposedRefs)(r,l),c=d(h,i);return t.default.useEffect(()=>(c.itemMap.set(l,{ref:l,...s}),()=>void c.itemMap.delete(l))),(0,o.jsx)(g,{...{[v]:""},ref:u,children:a})});return y.displayName=h,[{Provider:c,Slot:m,ItemSlot:y},function(r){let n=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},l]}var u=new WeakMap;function d(e,t){var r,n;let o,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,o=r.length,(a=(i=c(n))>=0?i:o+i)<0||a>=o?-1:a);return -1===s?void 0:e[s]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),i=this.#e.length,a=c(e),s=a>=0?a:i+a,l=s<0||s>=i?-1:s;if(l===this.size||o&&l===this.size-1||-1===l)return this.set(t,r),this;let u=this.size+ +!o;a<0&&s++;let d=[...this.#e],p=!1;for(let e=s;e<u;e++)if(s===e){let i=d[e];d[e]===t&&(i=d[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{p||d[e-1]!==t||(p=!0);let r=d[p?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=d(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=d(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return d(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>l],75830)},842727,e=>{"use strict";var t=e.i(271645),r=e.i(981140),n=e.i(75830),o=e.i(820783),i=e.i(30030),a=e.i(610772),s=e.i(248425),l=e.i(30207),u=e.i(369340),d=e.i(586318),c=e.i(843476),p="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[h,v,g]=(0,n.createCollection)(m),[y,w]=(0,i.createContextScope)(m,[g]),[x,R]=y(m),C=t.forwardRef((e,t)=>
1(0,c.jsx)(h.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(h.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(b,{...e,ref:t})})}));C.displayName=m;var b=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,orientation:a,loop:h=!1,dir:g,currentTabStopId:y,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:R,onEntryFocus:C,preventScrollOnEntryFocus:b=!1,...M}=e,E=t.useRef(null),j=(0,o.useComposedRefs)(n,E),D=(0,d.useDirection)(g),[I,P]=(0,u.useControllableState)({prop:y,defaultProp:w??null,onChange:R,caller:m}),[_,N]=t.useState(!1),S=(0,l.useCallbackRef)(C),O=v(i),A=t.useRef(!1),[T,F]=t.useState(0);return t.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(p,S),()=>e.removeEventListener(p,S)},[S]),(0,c.jsx)(x,{scope:i,orientation:a,dir:D,loop:h,currentTabStopId:I,onItemFocus:t.useCallback(e=>P(e),[P]),onItemShiftTab:t.useCallback(()=>N(!0),[]),onFocusableItemAdd:t.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>F(e=>e-1),[]),children:(0,c.jsx)(s.Primitive.div,{tabIndex:_||0===T?-1:0,"data-orientation":a,...M,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(p,f);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);k([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),b)}}A.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>N(!1))})})}),M="RovingFocusGroupItem",E=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,focusable:i=!0,active:l=!1,tabStopId:u,children:d,...p}=e,f=(0,a.useId)(),m=u||f,g=R(M,o),y=g.currentTabStopId===m,w=v(o),{onFocusableItemAdd:x,onFocusableItemRemove:C,currentTabStopId:b}=g;return t.useEffect(()=>{if(i)return x(),()=>C()},[i,x,C]),(0,c.jsx)(h.ItemSlot,{scope:o,id:m,focusable:i,active:l,children:(0,c.jsx)(s.Primitive.span,{tabIndex:y?0:-1,"data-orientation":g.orientation,...p,ref:n,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{i?g.onItemFocus(m):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(m)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return j[o]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=w().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=g.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>k(o))}}),children:"function"==typeof d?d({isCurrentTabStop:y,hasTabStop:null!=b}):d})})});E.displayName=M;var j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>E,"Root",()=>C,"createRovingFocusGroupScope",()=>w])},733498,e=>{"use strict";let t=(0,e.i(475254).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["CircleIcon",()=>t],733498)},755146,e=>{"use strict";let t,r,n;var o=e.i(843476),i=e.i(271645),a=e.i(981140),s=e.i(820783),l=e.i(30030),u=e.i(369340),d=e.i(248425),c=e.i(75830),p=e.i(586318),f=e.i(726330),m=e.i(303536),h=e.i(765491),v=e.i(610772),g=e.i(853660),y=e.i(774606),w=e.i(296626),x=e.i(842727),R=Symbol("radix.slottable");function C(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===R}var b=e.i(30207),M=e.i(186312),E=e.i(985369),j=["Enter"," "],k=["ArrowUp","PageDown","End"],D=["ArrowDown","PageUp","Home",...k],I={ltr:[...j,"ArrowRight"],rtl:[...j,"ArrowLeft"]},P={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_="Menu",[N,S,O]=(0,c.createCollection)(_),[A,T]=(0,l.createContextScope)(_,[O,g.createPopperScope,x.createRovingFocusGroupScope]),F=(0,g.createPopperScope)(),L=(0,x.createRovingFocusGroupScope)(),[H,K]=A(_),[z,U]=A(_),G=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:s,modal:l=!0}=e,u=F(t),[d,c]=i.useState(null),f=i.useRef(!1),m=(0,b.useCallbackRef)(s),h=(0,p.useDirection)(a);return i.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,o.jsx)(g.Root,{...u,children:(0,o.jsx)(H,{scope:t,open:r,onOpenChange:m,content:d,onContentChange:c,children:(0,o.jsx)(z,{scope:t,onClose:i.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:h,modal:l,children:n})})})};G.displayName=_;var V=i.forwardRef((e,t)=>
1{let{__scopeMenu:r,...n}=e,i=F(r);return(0,o.jsx)(g.Anchor,{...i,...n,ref:t})});V.displayName="MenuAnchor";var W="MenuPortal",[B,X]=A(W,{forceMount:void 0}),Z=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,a=K(W,t);return(0,o.jsx)(B,{scope:t,forceMount:r,children:(0,o.jsx)(w.Presence,{present:r||a.open,children:(0,o.jsx)(y.Portal,{asChild:!0,container:i,children:n})})})};Z.displayName=W;var $="MenuContent",[Y,q]=A($),J=i.forwardRef((e,t)=>{let r=X($,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,a=K($,e.__scopeMenu),s=U($,e.__scopeMenu);return(0,o.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(w.Presence,{present:n||a.open,children:(0,o.jsx)(N.Slot,{scope:e.__scopeMenu,children:s.modal?(0,o.jsx)(Q,{...i,ref:t}):(0,o.jsx)(ee,{...i,ref:t})})})})}),Q=i.forwardRef((e,t)=>{let r=K($,e.__scopeMenu),n=i.useRef(null),l=(0,s.useComposedRefs)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return(0,M.hideOthers)(e)},[]),(0,o.jsx)(er,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ee=i.forwardRef((e,t)=>{let r=K($,e.__scopeMenu);return(0,o.jsx)(er,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),et=((n=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(i.isValidElement(r)){var o;let e,a,l=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(u.ref=t?(0,s.composeRefs)(t,l):l),i.cloneElement(r,u)}return i.Children.count(r)>1?i.Children.only(null):null})).displayName="MenuContent.ScrollLock.SlotClone",t=n,(r=i.forwardRef((e,r)=>{let{children:n,...a}=e,s=i.Children.toArray(n),l=s.find(C);if(l){let e=l.props.children,n=s.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,o.jsx)(t,{...a,ref:r,children:n})})).displayName="MenuContent.ScrollLock.Slot",r),er=i.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:d,disableOutsidePointerEvents:c,onEntryFocus:p,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:R,onDismiss:C,disableOutsideScroll:b,...M}=e,j=K($,r),I=U($,r),P=F(r),_=L(r),N=S(r),[O,A]=i.useState(null),T=i.useRef(null),H=(0,s.useComposedRefs)(t,T,j.onContentChange),z=i.useRef(0),G=i.useRef(""),V=i.useRef(0),W=i.useRef(null),B=i.useRef("right"),X=i.useRef(0),Z=b?E.RemoveScroll:i.Fragment;i.useEffect(()=>()=>window.clearTimeout(z.current),[]),(0,m.useFocusGuards)();let q=i.useCallback(e=>{var t,r;return B.current===W.current?.side&&(t=e,!!(r=W.current?.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],s=t[i],l=a.x,u=a.y,d=s.x,c=s.y;u>n!=c>n&&r<(d-l)*(n-u)/(c-u)+l&&(o=!o)}return o}({x:t.clientX,y:t.clientY},r))},[]);return(0,o.jsx)(Y,{scope:r,searchRef:G,onItemEnter:i.useCallback(e=>{q(e)&&e.preventDefault()},[q]),onItemLeave:i.useCallback(e=>{q(e)||(T.current?.focus(),A(null))},[q]),onTriggerLeave:i.useCallback(e=>{q(e)&&e.preventDefault()},[q]),pointerGraceTimerRef:V,onPointerGraceIntentChange:i.useCallback(e=>{W.current=e},[]),children:(0,o.jsx)(Z,{...b?{as:et,allowPinchZoom:!0}:void 0,children:(0,o.jsx)(h.FocusScope,{asChild:!0,trapped:l,onMountAutoFocus:(0,a.composeEventHandlers)(u,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,o.jsx)(f.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:R,onDismiss:C,children:(0,o.jsx)(x.Root,{asChild:!0,..._,dir:I.dir,orientation:"vertical",loop:n,currentTabStopId:O,onCurrentTabStopIdChange:A,onEntryFocus:(0,a.composeEventHandlers)(p,e=>{I.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,o.jsx)(g.Content,{role:"menu","aria-orientation":"vertical","data-state":eD(j.open),"data-radix-menu-content":"",dir:I.dir,...P,...M,ref:H,style:{outline:"none",...M.style},onKeyDown:(0,a.composeEventHandlers)(M.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.ke
1y.length;if(t){var o;let t,i,a,s,l,u;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=G.current+o,i=N().filter(e=>!e.disabled),a=document.activeElement,s=i.find(e=>e.ref.current===a)?.textValue,l=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,a=(n=Math.max(i,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let s=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}(i.map(e=>e.textValue),t,s),u=i.find(e=>e.textValue===l)?.ref.current,function e(t){G.current=t,window.clearTimeout(z.current),""!==t&&(z.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=T.current;if(e.target!==i||!D.includes(e.key))return;e.preventDefault();let a=N().filter(e=>!e.disabled).map(e=>e.ref.current);k.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,a.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(z.current),G.current="")}),onPointerMove:(0,a.composeEventHandlers)(e.onPointerMove,e_(e=>{let t=e.target,r=X.current!==e.clientX;e.currentTarget.contains(t)&&r&&(B.current=e.clientX>X.current?"right":"left",X.current=e.clientX)}))})})})})})})});J.displayName=$;var en=i.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,o.jsx)(d.Primitive.div,{role:"group",...n,ref:t})});en.displayName="MenuGroup";var eo=i.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,o.jsx)(d.Primitive.div,{...n,ref:t})});eo.displayName="MenuLabel";var ei="MenuItem",ea="menu.itemSelect",es=i.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...l}=e,u=i.useRef(null),c=U(ei,e.__scopeMenu),p=q(ei,e.__scopeMenu),f=(0,s.useComposedRefs)(t,u),m=i.useRef(!1);return(0,o.jsx)(el,{...l,ref:f,disabled:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(ea,{bubbles:!0,cancelable:!0});e.addEventListener(ea,e=>n?.(e),{once:!0}),(0,d.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?m.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),m.current=!0},onPointerUp:(0,a.composeEventHandlers)(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==p.searchRef.current;r||t&&" "===e.key||j.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});es.displayName=ei;var el=i.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:l,...u}=e,c=q(ei,r),p=L(r),f=i.useRef(null),m=(0,s.useComposedRefs)(t,f),[h,v]=i.useState(!1),[g,y]=i.useState("");return i.useEffect(()=>{let e=f.current;e&&y((e.textContent??"").trim())},[u.children]),(0,o.jsx)(N.ItemSlot,{scope:r,disabled:n,textValue:l??g,children:(0,o.jsx)(x.Item,{asChild:!0,...p,focusable:!n,children:(0,o.jsx)(d.Primitive.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...u,ref:m,onPointerMove:(0,a.composeEventHandlers)(e.onPointerMove,e_(e=>{n?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.composeEventHandlers)(e.onPointerLeave,e_(e=>c.onItemLeave(e))),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>v(!0)),onBlur:(0,a.composeEventHandlers)(e.onBlur,()=>v(!1))})})})}),eu=i.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...i}=e;return(0,o.jsx)(eg,{scope:e.__scopeMenu,checked:r,children:(0,o.jsx)(es,{role:"menuitemcheckbox","aria-checked":eI(r)?"mixed":r,...i,ref:t,"data-state":eP(r),onSelect:(0,a.composeEventHandlers)(i.onSelect,()=>n?.(!!eI(r)||!r),{checkForDefaultPrevented:!1})})})});eu.displayName="MenuCheckboxItem";var ed="MenuRadioGroup",[ec,ep]=A(ed,{value:void 0,onValueChange:()=>{}}),ef=i.forwardRef((e,t)=>{let{value:r,onValueChange:n,...i}=e,a=(0,b.useCallbackRef)(n);return(0,o.jsx)(ec,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,o.jsx)(en,{...i,ref:t})})});ef.displayName=ed;var em="MenuRadioItem",eh=i.forwardRef((e,t)=>{let{value:r,...n}=e,i=ep(em,e.__scopeMenu),s=r===i.value;return(0,o.jsx)(eg,{scope:e.__scopeMenu,checked:s,children:(0,o.jsx)(es,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":eP(s),onSelect:(0,a.composeEventHandlers)(n.onSelect,()=>i.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});eh.displayName=em;var ev="MenuItemIndicator",[eg,ey]=A(ev,{checked:!1}
1),ew=i.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,a=ey(ev,r);return(0,o.jsx)(w.Presence,{present:n||eI(a.checked)||!0===a.checked,children:(0,o.jsx)(d.Primitive.span,{...i,ref:t,"data-state":eP(a.checked)})})});ew.displayName=ev;var ex=i.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,o.jsx)(d.Primitive.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});ex.displayName="MenuSeparator";var eR=i.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=F(r);return(0,o.jsx)(g.Arrow,{...i,...n,ref:t})});eR.displayName="MenuArrow";var[eC,eb]=A("MenuSub"),eM="MenuSubTrigger",eE=i.forwardRef((e,t)=>{let r=K(eM,e.__scopeMenu),n=U(eM,e.__scopeMenu),l=eb(eM,e.__scopeMenu),u=q(eM,e.__scopeMenu),d=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:p}=u,f={__scopeMenu:e.__scopeMenu},m=i.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return i.useEffect(()=>m,[m]),i.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),p(null)}},[c,p]),(0,o.jsx)(V,{asChild:!0,...f,children:(0,o.jsx)(el,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":eD(r.open),...e,ref:(0,s.composeRefs)(t,l.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.composeEventHandlers)(e.onPointerMove,e_(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||d.current||(u.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,a.composeEventHandlers)(e.onPointerLeave,e_(e=>{m();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,o="right"===n,i=t[o?"left":"right"],a=t[o?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:i,y:t.bottom}],side:n}),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,a.composeEventHandlers)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;e.disabled||o&&" "===t.key||I[n.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});eE.displayName=eM;var ej="MenuSubContent",ek=i.forwardRef((e,t)=>{let r=X($,e.__scopeMenu),{forceMount:n=r.forceMount,...l}=e,u=K($,e.__scopeMenu),d=U($,e.__scopeMenu),c=eb(ej,e.__scopeMenu),p=i.useRef(null),f=(0,s.useComposedRefs)(t,p);return(0,o.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,o.jsx)(w.Presence,{present:n||u.open,children:(0,o.jsx)(N.Slot,{scope:e.__scopeMenu,children:(0,o.jsx)(er,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:f,align:"start",side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{d.isUsingKeyboardRef.current&&p.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,a.composeEventHandlers)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=P[d.dir].includes(e.key);t&&r&&(u.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function eD(e){return e?"open":"closed"}function eI(e){return"indeterminate"===e}function eP(e){return eI(e)?"indeterminate":e?"checked":"unchecked"}function e_(e){return t=>"mouse"===t.pointerType?e(t):void 0}ek.displayName=ej;var eN="DropdownMenu",[eS,eO]=(0,l.createContextScope)(eN,[T]),eA=T(),[eT,eF]=eS(eN),eL=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:s,onOpenChange:l,modal:d=!0}=e,c=eA(t),p=i.useRef(null),[f,m]=(0,u.useControllableState)({prop:a,defaultProp:s??!1,onChange:l,caller:eN});return(0,o.jsx)(eT,{scope:t,triggerId:(0,v.useId)(),triggerRef:p,contentId:(0,v.useId)(),open:f,onOpenChange:m,onOpenToggle:i.useCallback(()=>m(e=>!e),[m]),modal:d,children:(0,o.jsx)(G,{...c,open:f,onOpenChange:m,dir:n,modal:d,children:r})})};eL.displayName=eN;var eH="DropdownMenuTrigger",eK=i.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,l=eF(eH,r),u=eA(r);return(0,o.jsx)(V,{asChild:!0,...u,children:(0,o.jsx)(d.Primitive.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...i,ref:(0,s.composeRefs)(t,l.triggerRef),onPointerDown:(0,a.composeEventHandlers)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eK.displayName=eH;var ez=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eA(t);return(0,o.jsx)(Z,{...n,...r})};ez.displayName="DropdownMenuPortal";var eU="DropdownMenuContent",eG=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,s=eF(eU,r),l=eA(r),u=i.useRef(!1);return(0,o.jsx)(J,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...n,ref:t,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{u.current||s.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,a.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!s.modal||n)&&(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)"}})});eG.displayName=eU,i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(en,{...i,...n,ref:t})}).displayName="DropdownMenuGroup";var eV=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(eo,{...i,...n,ref:t})});eV.displayName="DropdownMenuLabel";var eW=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(es,{...i,...n,ref:t})});eW.displayName="DropdownMenuItem";var eB=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(eu,{...i,...n,ref:t})});eB.displayName="DropdownMenuCheckboxItem",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(ef,{...i,...n,ref:t})}).displayName="DropdownMenuRadioGroup",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(eh,{...i,...n,ref:t})}).displayName="DropdownMenuRadioItem";var eX=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(ew,{...i,...n,ref:t})});eX.displayName="DropdownMenuItemIndicator";var eZ=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(ex,{...i,...n,ref:t})});eZ.displayName="DropdownMenuSeparator",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(eR,{...i,...n,ref:t})}).displayName="DropdownMenuArrow",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(eE,{...i,...n,ref:t})}).displayName="DropdownMenuSubTrigger",i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=eA(r);return(0,o.jsx)(ek,{...i,...n,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)"}})}).displayName="DropdownMenuSubContent";var e$=e.i(678784);e.i(246349),e.i(733498);var eY=e.i(975157);function eq({...e}){return(0,o.jsx)(eL,{"data-slot":"dropdown-menu",...e})}function eJ({...e}){return(0,o.jsx)(eK,{"data-slot":"dropdown-menu-trigger",...e})}function eQ({className:e,sideOffset:t=4,...r}){return(0,o.jsx)(ez,{children:(0,o.jsx)(eG,{"data-slot":"dropdown-menu-content",sideOffset:t,className:(0,eY.cn)("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...r})})}function e0({className:e,inset:t,variant:r="default",...n}){return(0,o.jsx)(eW,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:(0,eY.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive",e),...n})}function e1({className:e,children:t,checked:r=!1,...n}){return(0,o.jsxs)(eB,{"data-slot":"dropdown-menu-checkbox-item",className:(0,eY.cn)("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...n,children:[(0,o.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,o.jsx)(eX,{children:(0,o.jsx)(e$.CheckIcon,{className:"size-4"})})}),t]})}function e3({className:e,inset:t,...r}){return(0,o.jsx)(eV,{"data-slot":"dropdown-menu-label","data-inset":t,className:(0,eY.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function e2({className:e,...t}){return(0,o.jsx)(eZ,{"data-slot":"dropdown-menu-separator",className:(0,eY.cn)("-mx-1 my-1 h-px bg-border",e),...t})}e.s(["DropdownMenu",()=>eq,"DropdownMenuCheckboxItem",()=>e1,"DropdownMenuContent",()=>eQ,"DropdownMenuItem",()=>e0,"DropdownMenuLabel",()=>e3,"DropdownMenuSeparator",()=>e2,"DropdownMenuTrigger",()=>eJ],755146)}]);
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.