1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{10808:(e,t,r)=>{r.d(t,{H_:()=>tb,UC:()=>tg,YJ:()=>ty,q7:()=>tM,VF:()=>tD,JU:()=>tx,ZL:()=>tw,z6:()=>tC,hN:()=>tR,bL:()=>tv,wv:()=>tk,Pb:()=>tj,G5:()=>tI,ZP:()=>tA,l9:()=>tm});var n,o=r(91857),a=r(34616),l=r(8938),i=r(10720),u=r(2481),s=r(67114),c=r(40152),d=r(2635),p=r(66192);function f(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function h(e,t){var r=f(e,t,"get");return r.get?r.get.call(e):r.value}function _(e,t,r){var n=f(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}var v=r(92792),m=r(80108);function w(e){let t=e+"CollectionProvider",[r,n]=(0,c.A)(t),[u,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),p=e=>{let{scope:t,children:r}=e,n=i.useRef(null),o=i.useRef(new Map).current;return(0,m.jsx)(u,{scope:t,itemMap:o,collectionRef:n,children:r})};p.displayName=t;let f=e+"CollectionSlot",h=(0,v.TL)(f),_=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=d(f,r),a=(0,s.s)(t,o.collectionRef);return(0,m.jsx)(h,{ref:a,children:n})});_.displayName=f;let w=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,v.TL)(w),x=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,u=(0,l._)(e,["scope","children"]),c=i.useRef(null),p=(0,s.s)(t,c),f=d(w,r);return i.useEffect(()=>(f.itemMap.set(c,(0,o._)({ref:c},u)),()=>void f.itemMap.delete(c))),(0,m.jsx)(y,(0,a._)((0,o._)({},{[g]:""}),{ref:p,children:n}))});return x.displayName=w,[{Provider:p,Slot:_,ItemSlot:x},function(t){let r=d(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var g=new WeakMap;function y(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=x(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return -1===r?void 0:e[r]}function x(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap,class e extends Map{set(e,t){return g.get(this)&&(this.has(e)?h(this,n)[h(this,n).indexOf(e)]=e:h(this,n).push(e)),super.set(e,t),this}insert(e,t,r){let o,a=this.has(t),l=h(this,n).length,i=x(e),u=i>=0?i:l+i,s=u<0||u>=l?-1:u;if(s===this.size||a&&s===this.size-1||-1===s)return this.set(t,r),this;let c=this.size+ +!a;i<0&&u++;let d=[...h(this,n)],p=!1;for(let e=u;e<c;e++)if(u===e){let n=d[e];d[e]===t&&(n=d[e+1]),a&&this.delete(t),o=this.get(n),this.set(t,r)}else{p||d[e-1]!==t||(p=!0);let r=d[p?e:e-1],n=o;o=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=h(this,n).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let o=h(this,n).indexOf(e);return -1===o?this:this.insert(o,t,r)}after(e){let t=h(this,n).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let o=h(this,n).indexOf(e);return -1===o?this:this.insert(o+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return _(this,n,[]),super.clear()}delete(e){let t=super.delete(e);return t&&h(this,n).splice(h(this,n).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=y(h(this,n),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=y(h(this,n),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return h(this,n).indexOf(e)}keyAt(e){return y(h(this,n),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(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,a=0,l=null!=o?o:this.at(0);for(let e of this)l=0===a&&1===t.length?e:Reflect.apply(n,this,[l,e,a,this]),a++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,a=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);a=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[a,r,e,this])}return a}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(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=[...this.entries()];return o.splice(...r),new e(o)}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}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,n,{writable:!0,value:void 0}),_(this,n,[...super.keys()]),g.set(this,!0)}};var M=i.createContext(void 0);function b(e){let t=i.useContext(M);return e||t||"ltr"}var C=r(21864),R=r(5757),D=r(98293),k=r(29223),j=r(52400),A=r(22131),I=r(85886),E=r(39591),K="rovingFocusGroup.onEntryFocus",S={bubbles:!1,cancelable:!0},O="RovingFocusGroup",[P,T,F]=w(O),[N,L]=(0,c.A)(O,[F]),[G,z]=N(O),B=i.forwardRef((e,t)=>
1(0,m.jsx)(P.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(P.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(U,(0,a._)((0,o._)({},e),{ref:t}))})}));B.displayName=O;var U=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:c=!1,dir:f,currentTabStopId:h,defaultCurrentTabStopId:_,onCurrentTabStopIdChange:v,onEntryFocus:w,preventScrollOnEntryFocus:g=!1}=e,y=(0,l._)(e,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"]),x=i.useRef(null),M=(0,s.s)(t,x),C=b(f),[R,D]=(0,d.i)({prop:h,defaultProp:null!=_?_:null,onChange:v,caller:O}),[k,j]=i.useState(!1),A=(0,E.c)(w),I=T(r),P=i.useRef(!1),[F,N]=i.useState(0);return i.useEffect(()=>{let e=x.current;if(e)return e.addEventListener(K,A),()=>e.removeEventListener(K,A)},[A]),(0,m.jsx)(G,{scope:r,orientation:n,dir:C,loop:c,currentTabStopId:R,onItemFocus:i.useCallback(e=>D(e),[D]),onItemShiftTab:i.useCallback(()=>j(!0),[]),onFocusableItemAdd:i.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>N(e=>e-1),[]),children:(0,m.jsx)(p.sG.div,(0,a._)((0,o._)({tabIndex:k||0===F?-1:0,"data-orientation":n},y),{ref:M,style:(0,o._)({outline:"none"},e.style),onMouseDown:(0,u.mK)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,u.mK)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(K,S);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);X([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),g)}}P.current=!1}),onBlur:(0,u.mK)(e.onBlur,()=>j(!1))}))})}),V="RovingFocusGroupItem",W=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:c,children:d}=e,f=(0,l._)(e,["__scopeRovingFocusGroup","focusable","active","tabStopId","children"]),h=(0,k.B)(),_=c||h,v=z(V,r),w=v.currentTabStopId===_,g=T(r),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:M}=v;return i.useEffect(()=>{if(n)return y(),()=>x()},[n,y,x]),(0,m.jsx)(P.ItemSlot,{scope:r,id:_,focusable:n,active:s,children:(0,m.jsx)(p.sG.span,(0,a._)((0,o._)({tabIndex:w?0:-1,"data-orientation":v.orientation},f),{ref:t,onMouseDown:(0,u.mK)(e.onMouseDown,e=>{n?v.onItemFocus(_):e.preventDefault()}),onFocus:(0,u.mK)(e.onFocus,()=>v.onItemFocus(_)),onKeyDown:(0,u.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.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 q[o]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=v.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>X(r))}}),children:"function"==typeof d?d({isCurrentTabStop:w,hasTabStop:null!=M}):d}))})});W.displayName=V;var q={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function X(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var Z=r(67703),H=r(11531),Y=["Enter"," "],J=["ArrowUp","PageDown","End"],$=["ArrowDown","PageUp","Home",...J],Q={ltr:[...Y,"ArrowRight"],rtl:[...Y,"ArrowLeft"]},ee={ltr:["ArrowLeft"],rtl:["ArrowRight"]},et="Menu",[er,en,eo]=w(et),[ea,el]=(0,c.A)(et,[eo,j.Bk,L]),ei=(0,j.Bk)(),eu=L(),[es,ec]=ea(et),[ed,ep]=ea(et),ef=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:l,onOpenChange:u,modal:s=!0}=e,c=ei(t),[d,p]=i.useState(null),f=i.useRef(!1),h=(0,E.c)(u),_=b(l);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,m.jsx)(j.bL,(0,a._)((0,o._)({},c),{children:(0,m.jsx)(es,{scope:t,open:r,onOpenChange:h,content:d,onContentChange:p,children:(0,m.jsx)(ed,{scope:t,onClose:i.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:f,dir:_,modal:s,children:n})})}))};
1ef.displayName=et;var eh=i.forwardRef((e,t)=>{let{__scopeMenu:r}=e,n=(0,l._)(e,["__scopeMenu"]),i=ei(r);return(0,m.jsx)(j.Mz,(0,a._)((0,o._)({},i,n),{ref:t}))});eh.displayName="MenuAnchor";var e_="MenuPortal",[ev,em]=ea(e_,{forceMount:void 0}),ew=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=ec(e_,t);return(0,m.jsx)(ev,{scope:t,forceMount:r,children:(0,m.jsx)(I.C,{present:r||a.open,children:(0,m.jsx)(A.Z,{asChild:!0,container:o,children:n})})})};ew.displayName=e_;var eg="MenuContent",[ey,ex]=ea(eg),eM=i.forwardRef((e,t)=>{let r=em(eg,e.__scopeMenu),{forceMount:n=r.forceMount}=e,i=(0,l._)(e,["forceMount"]),u=ec(eg,e.__scopeMenu),s=ep(eg,e.__scopeMenu);return(0,m.jsx)(er.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(I.C,{present:n||u.open,children:(0,m.jsx)(er.Slot,{scope:e.__scopeMenu,children:s.modal?(0,m.jsx)(eb,(0,a._)((0,o._)({},i),{ref:t})):(0,m.jsx)(eC,(0,a._)((0,o._)({},i),{ref:t}))})})})}),eb=i.forwardRef((e,t)=>{let r=ec(eg,e.__scopeMenu),n=i.useRef(null),l=(0,s.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return(0,Z.Eq)(e)},[]),(0,m.jsx)(eD,(0,a._)((0,o._)({},e),{ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,u.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),eC=i.forwardRef((e,t)=>{let r=ec(eg,e.__scopeMenu);return(0,m.jsx)(eD,(0,a._)((0,o._)({},e),{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),eR=(0,v.TL)("MenuContent.ScrollLock"),eD=i.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:p,disableOutsidePointerEvents:f,onEntryFocus:h,onEscapeKeyDown:_,onPointerDownOutside:v,onFocusOutside:w,onInteractOutside:g,onDismiss:y,disableOutsideScroll:x}=e,M=(0,l._)(e,["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"]),b=ec(eg,r),k=ep(eg,r),A=ei(r),I=eu(r),E=en(r),[K,S]=i.useState(null),O=i.useRef(null),P=(0,s.s)(t,O,b.onContentChange),T=i.useRef(0),F=i.useRef(""),N=i.useRef(0),L=i.useRef(null),G=i.useRef("right"),z=i.useRef(0),U=x?H.A:i.Fragment;i.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,R.Oh)();let V=i.useCallback(e=>{var t,r;return G.current===(null==(t=L.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let l=t[e],i=t[a],u=l.x,s=l.y,c=i.x,d=i.y;s>n!=d>n&&r<(c-u)*(n-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(r=L.current)?void 0:r.area)},[]);return(0,m.jsx)(ey,{scope:r,searchRef:F,onItemEnter:i.useCallback(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:i.useCallback(e=>{var t;V(e)||(null==(t=O.current)||t.focus(),S(null))},[V]),onTriggerLeave:i.useCallback(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:N,onPointerGraceIntentChange:i.useCallback(e=>{L.current=e},[]),children:(0,m.jsx)(U,(0,a._)((0,o._)({},x?{as:eR,allowPinchZoom:!0}:void 0),{children:(0,m.jsx)(D.n,{asChild:!0,trapped:c,onMountAutoFocus:(0,u.mK)(d,e=>{var t;e.preventDefault(),null==(t=O.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:p,children:(0,m.jsx)(C.qW,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:_,onPointerDownOutside:v,onFocusOutside:w,onInteractOutside:g,onDismiss:y,children:(0,m.jsx)(B,(0,a._)((0,o._)({asChild:!0},I),{dir:k.dir,orientation:"vertical",loop:n,currentTabStopId:K,onCurrentTabStopIdChange:S,onEntryFocus:(0,u.mK)(h,e=>{k.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,m.jsx)(j.UC,(0,a._)((0,o._)({role:"menu","aria-orientation":"vertical","data-state":e0(b.open),"data-radix-menu-content":"",dir:k.dir},A,M),{ref:P,style:(0,o._)({outline:"none"},M.style),onKeyDown:(0,u.mK)(M.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{var t,r;let n=F.current+e,o=E().filter(e=>!e.disabled),a=document.activeElement,l=null==(t=o.find(e=>
1e.ref.current===a))?void 0:t.textValue,i=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,l=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(l=l.filter(e=>e!==r));let i=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==r?i:void 0}(o.map(e=>e.textValue),n,l),u=null==(r=o.find(e=>e.textValue===i))?void 0:r.ref.current;!function e(t){F.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())})(e.key));let o=O.current;if(e.target!==o||!$.includes(e.key))return;e.preventDefault();let a=E().filter(e=>!e.disabled).map(e=>e.ref.current);J.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,u.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),F.current="")}),onPointerMove:(0,u.mK)(e.onPointerMove,e6(e=>{let t=e.target,r=z.current!==e.clientX;e.currentTarget.contains(t)&&r&&(G.current=e.clientX>z.current?"right":"left",z.current=e.clientX)}))}))}))})})}))})});eM.displayName=eg;var ek=i.forwardRef((e,t)=>{let{__scopeMenu:r}=e,n=(0,l._)(e,["__scopeMenu"]);return(0,m.jsx)(p.sG.div,(0,a._)((0,o._)({role:"group"},n),{ref:t}))});ek.displayName="MenuGroup";var ej=i.forwardRef((e,t)=>{let{__scopeMenu:r}=e,n=(0,l._)(e,["__scopeMenu"]);return(0,m.jsx)(p.sG.div,(0,a._)((0,o._)({},n),{ref:t}))});ej.displayName="MenuLabel";var eA="MenuItem",eI="menu.itemSelect",eE=i.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n}=e,c=(0,l._)(e,["disabled","onSelect"]),d=i.useRef(null),f=ep(eA,e.__scopeMenu),h=ex(eA,e.__scopeMenu),_=(0,s.s)(t,d),v=i.useRef(!1);return(0,m.jsx)(eK,(0,a._)((0,o._)({},c),{ref:_,disabled:r,onClick:(0,u.mK)(e.onClick,()=>{let e=d.current;if(!r&&e){let t=new CustomEvent(eI,{bubbles:!0,cancelable:!0});e.addEventListener(eI,e=>null==n?void 0:n(e),{once:!0}),(0,p.hO)(e,t),t.defaultPrevented?v.current=!1:f.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),v.current=!0},onPointerUp:(0,u.mK)(e.onPointerUp,e=>{var t;v.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,u.mK)(e.onKeyDown,e=>{let t=""!==h.searchRef.current;r||t&&" "===e.key||Y.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))});eE.displayName=eA;var eK=i.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:c}=e,d=(0,l._)(e,["__scopeMenu","disabled","textValue"]),f=ex(eA,r),h=eu(r),_=i.useRef(null),v=(0,s.s)(t,_),[w,g]=i.useState(!1),[y,x]=i.useState("");return i.useEffect(()=>{let e=_.current;if(e){var t;x((null!=(t=e.textContent)?t:"").trim())}},[d.children]),(0,m.jsx)(er.ItemSlot,{scope:r,disabled:n,textValue:null!=c?c:y,children:(0,m.jsx)(W,(0,a._)((0,o._)({asChild:!0},h),{focusable:!n,children:(0,m.jsx)(p.sG.div,(0,a._)((0,o._)({role:"menuitem","data-highlighted":w?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},d),{ref:v,onPointerMove:(0,u.mK)(e.onPointerMove,e6(e=>{n?f.onItemLeave(e):(f.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,u.mK)(e.onPointerLeave,e6(e=>f.onItemLeave(e))),onFocus:(0,u.mK)(e.onFocus,()=>g(!0)),onBlur:(0,u.mK)(e.onBlur,()=>g(!1))}))}))})}),eS=i.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n}=e,i=(0,l._)(e,["checked","onCheckedChange"]);return(0,m.jsx)(ez,{scope:e.__scopeMenu,checked:r,children:(0,m.jsx)(eE,(0,a._)((0,o._)({role:"menuitemcheckbox","aria-checked":e1(r)?"mixed":r},i),{ref:t,"data-state":e2(r),onSelect:(0,u.mK)(i.onSelect,()=>null==n?void 0:n(!!e1(r)||!r),{checkForDefaultPrevented:!1})}))})});eS.displayName="MenuCheckboxItem";var eO="MenuRadioGroup",[eP,eT]=ea(eO,{value:void 0,onValueChange:()=>{}}),eF=i.forwardRef((e,t)=>{let{value:r,onValueChange:n}=e,i=(0,l._)(e,["value","onValueChange"]),u=(0,E.c)(n);return(0,m.jsx)(eP,{scope:e.__scopeMenu,value:r,onValueChange:u,children:(0,m.jsx)(ek,(0,a._)((0,o._)({},i),{ref:t}))})});eF.displayName=eO;var eN="MenuRadioItem",eL=i.forwardRef((e,t)=>{let{value:r}=e,n=(0,l._)(e,["value"]),i=eT(eN,e.__scopeMenu),s=r===i.value;return(0,m.jsx)(ez,{scope:e.__scopeMenu,checked:s,children:(0,m.jsx)(eE,(0,a._)((0,o._)({role:"menuitemradio","aria-checked":s},n),{ref:t,"data-state":e2(s),onSelect:(0,u.mK)(n.onSelect,()=>{var e;return null==(e=i.onValueChange)?void 0:e.call(i,r)},{checkForDefaultPrevented:!1})}))})});eL.displayName=eN;var eG="MenuItemIndicator",[ez,eB]=ea(eG,{checked:!1}
1),eU=i.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n}=e,i=(0,l._)(e,["__scopeMenu","forceMount"]),u=eB(eG,r);return(0,m.jsx)(I.C,{present:n||e1(u.checked)||!0===u.checked,children:(0,m.jsx)(p.sG.span,(0,a._)((0,o._)({},i),{ref:t,"data-state":e2(u.checked)}))})});eU.displayName=eG;var eV=i.forwardRef((e,t)=>{let{__scopeMenu:r}=e,n=(0,l._)(e,["__scopeMenu"]);return(0,m.jsx)(p.sG.div,(0,a._)((0,o._)({role:"separator","aria-orientation":"horizontal"},n),{ref:t}))});eV.displayName="MenuSeparator";var eW=i.forwardRef((e,t)=>{let{__scopeMenu:r}=e,n=(0,l._)(e,["__scopeMenu"]),i=ei(r);return(0,m.jsx)(j.i3,(0,a._)((0,o._)({},i,n),{ref:t}))});eW.displayName="MenuArrow";var eq="MenuSub",[eX,eZ]=ea(eq),eH=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:l}=e,u=ec(eq,t),s=ei(t),[c,d]=i.useState(null),[p,f]=i.useState(null),h=(0,E.c)(l);return i.useEffect(()=>(!1===u.open&&h(!1),()=>h(!1)),[u.open,h]),(0,m.jsx)(j.bL,(0,a._)((0,o._)({},s),{children:(0,m.jsx)(es,{scope:t,open:n,onOpenChange:h,content:p,onContentChange:f,children:(0,m.jsx)(eX,{scope:t,contentId:(0,k.B)(),triggerId:(0,k.B)(),trigger:c,onTriggerChange:d,children:r})})}))};eH.displayName=eq;var eY="MenuSubTrigger",eJ=i.forwardRef((e,t)=>{let r=ec(eY,e.__scopeMenu),n=ep(eY,e.__scopeMenu),l=eZ(eY,e.__scopeMenu),c=ex(eY,e.__scopeMenu),d=i.useRef(null),{pointerGraceTimerRef:p,onPointerGraceIntentChange:f}=c,h={__scopeMenu:e.__scopeMenu},_=i.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return i.useEffect(()=>_,[_]),i.useEffect(()=>{let e=p.current;return()=>{window.clearTimeout(e),f(null)}},[p,f]),(0,m.jsx)(eh,(0,a._)((0,o._)({asChild:!0},h),{children:(0,m.jsx)(eK,(0,a._)((0,o._)({id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":e0(r.open)},e),{ref:(0,s.t)(t,l.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,u.mK)(e.onPointerMove,e6(t=>{c.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||d.current||(c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{r.onOpenChange(!0),_()},100)))})),onPointerLeave:(0,u.mK)(e.onPointerLeave,e6(e=>{var t,n;_();let o=null==(t=r.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(n=r.content)?void 0:n.dataset.side,a="right"===t,l=o[a?"left":"right"],i=o[a?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:i,y:o.top},{x:i,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(p.current),p.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,u.mK)(e.onKeyDown,t=>{let o=""!==c.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&Q[n.dir].includes(t.key)){var a;r.onOpenChange(!0),null==(a=r.content)||a.focus(),t.preventDefault()}})}))}))});eJ.displayName=eY;var e$="MenuSubContent",eQ=i.forwardRef((e,t)=>{let r=em(eg,e.__scopeMenu),{forceMount:n=r.forceMount}=e,c=(0,l._)(e,["forceMount"]),d=ec(eg,e.__scopeMenu),p=ep(eg,e.__scopeMenu),f=eZ(e$,e.__scopeMenu),h=i.useRef(null),_=(0,s.s)(t,h);return(0,m.jsx)(er.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(I.C,{present:n||d.open,children:(0,m.jsx)(er.Slot,{scope:e.__scopeMenu,children:(0,m.jsx)(eD,(0,a._)((0,o._)({id:f.contentId,"aria-labelledby":f.triggerId},c),{ref:_,align:"start",side:"rtl"===p.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;p.isUsingKeyboardRef.current&&(null==(t=h.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,u.mK)(e.onFocusOutside,e=>{e.target!==f.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:(0,u.mK)(e.onEscapeKeyDown,e=>{p.onClose(),e.preventDefault()}),onKeyDown:(0,u.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=ee[p.dir].includes(e.key);if(t&&r){var n;d.onOpenChange(!1),null==(n=f.trigger)||n.focus(),e.preventDefault()}})}))})})})});function e0(e){return e?"open":"closed"}function e1(e){return"indeterminate"===e}function e2(e){return e1(e)?"indeterminate":e?"checked":"unchecked"}function e6(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}eQ.displayName=e$;var e3="DropdownMenu",[e8,e5]=(0,c.A)(e3,[el]),e9=el(),[e7,e4]=e8(e3),te=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:l,defaultOpen:u,onOpenChange:s,modal:c=!0}=e,p=e9(t),f=i.useRef(null),[h,_]=(0,d.i)({prop:l,defaultProp:null!=u&&u,onChange:s,caller:e3});return(0,m.jsx)(e7,{scope:t,triggerId:(0,k.B)(),triggerRef:f,contentId:(0,k.B)(),open:h,onOpenChange:_,onOpenToggle:i.useCallback(()=>_(e=>!e),[_]),modal:c,children:(0,m.jsx)(ef,(0,a._)((0,o._)({},p),{open:h,onOpenChange:_,dir:n,modal:c,children:r}))})};te.displayName=e3;var tt="DropdownMenuTrigger",tr=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1}=e,i=(0,l._)(e,["__scopeDropdownMenu","disabled"]),c=e4(tt,r),d=e9(r);return(0,m.jsx)(eh,(0,a._)((0,o._)({asChild:!0},d),{children:(0,m.jsx)(p.sG.button,(0,a._)((0,o._)({type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},i),{ref:(0,s.t)(t,c.triggerRef),onPointerDown:(0,u.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:(0,u.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})}))}))});tr.displayName=tt;var tn=e=>{let{__scopeDropdownMenu:t}=e,r=(0,l._)(e,["__scopeDropdownMenu"]),n=e9(t);return(0,m.jsx)(ew,(0,o._)({},n,r))};tn.displayName="DropdownMenuPortal";var to="DropdownMenuContent",ta=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),s=e4(to,r),c=e9(r),d=i.useRef(!1);return(0,m.jsx)(eM,(0,a._)((0,o._)({id:s.contentId,"aria-labelledby":s.triggerId},c,n),{ref:t,onCloseAutoFocus:(0,u.mK)(e.onCloseAutoFocus,e=>{var t;d.current||null==(t=s.triggerRef.current)||t.focus(),d.current=!1,e.preventDefault()}),onInteractOutside:(0,u.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!s.modal||n)&&(d.current=!0)}),style:(0,o._)({},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)"})}))});ta.displayName=to;var tl=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(ek,(0,a._)((0,o._)({},i,n),{ref:t}))});tl.displayName="DropdownMenuGroup";var ti=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(ej,(0,a._)((0,o._)({},i,n),{ref:t}))});ti.displayName="DropdownMenuLabel";var tu=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eE,(0,a._)((0,o._)({},i,n),{ref:t}))});tu.displayName="DropdownMenuItem";var ts=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eS,(0,a._)((0,o._)({},i,n),{ref:t}))});ts.displayName="DropdownMenuCheckboxItem";var tc=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eF,(0,a._)((0,o._)({},i,n),{ref:t}))});tc.displayName="DropdownMenuRadioGroup";var td=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eL,(0,a._)((0,o._)({},i,n),{ref:t}))});td.displayName="DropdownMenuRadioItem";var tp=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eU,(0,a._)((0,o._)({},i,n),{ref:t}))});tp.displayName="DropdownMenuItemIndicator";var tf=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eV,(0,a._)((0,o._)({},i,n),{ref:t}))});tf.displayName="DropdownMenuSeparator",i.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eW,(0,a._)((0,o._)({},i,n),{ref:t}))}).displayName="DropdownMenuArrow";var th=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eJ,(0,a._)((0,o._)({},i,n),{ref:t}))});th.displayName="DropdownMenuSubTrigger";var t_=i.forwardRef((e,t)=>{let{__scopeDropdownMenu:r}=e,n=(0,l._)(e,["__scopeDropdownMenu"]),i=e9(r);return(0,m.jsx)(eQ,(0,a._)((0,o._)({},i,n),{ref:t,style:(0,o._)({},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)"})}))});t_.displayName="DropdownMenuSubContent";var tv=te,tm=tr,tw=tn,tg=ta,ty=tl,tx=ti,tM=tu,tb=ts,tC=tc,tR=td,tD=tp,tk=tf,tj=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:l,defaultOpen:i}=e,u=e9(t),[s,c]=(0,d.i)({prop:n,defaultProp:null!=i&&i,onChange:l,caller:"DropdownMenuSub"});return(0,m.jsx)(eH,(0,a._)((0,o._)({},u),{open:s,onOpenChange:c,children:r}))},tA=th,tI=t_},25377:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(32662).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},27653:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(32662).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},32662:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(91857),o=r(8938),a=r(10720);let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var i=r(34616),u={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,a.forwardRef)((e,t)=>{var{color:r="currentColor",size:s=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:p="",children:f,iconNode:h}=e,_=(0,o._)(e,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return(0,a.createElement)("svg",(0,n._)((0,i._)((0,n._)({ref:t},u),{width:s,height:s,stroke:r,strokeWidth:d?24*Number(c)/Number(s):c,className:l("lucide",p)}),_),[...h.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(f)?f:[f]])}),c=(e,t)=>{let r=(0,a.forwardRef)((r,i)=>{var{className:u}=r,c=(0,o._)(r,["className"]);return(0,a.createElement)(s,(0,n._)({ref:i,iconNode:t,className:l("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),u)},c))});return r.displayName="".concat(e),r}}}]);
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.