PageSourceSearch

https://aiimagine.io/_next/static/chunks/04da6d57cdb5cca1.js

js aiimagine.io collected 2026-10-07 00:16:22 UTC 31,124 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,361330,e=>{"use strict";let t=(0,e.i(889522).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",()=>t])},347628,e=>{"use strict";let t=(0,e.i(889522).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",()=>t])},607825,e=>{"use strict";var t=e.i(956371),r=e.i(385064);function n(e){let[n,o]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;o({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}o(void 0)},[e]),n}e.s(["useSize",()=>n])},950074,e=>{"use strict";var t=e.i(956371),r=e.i(88310),n=t.createContext(void 0),o=e=>{let{dir:t,children:o}=e;return(0,r.jsx)(n.Provider,{value:t,children:o})};function i(e){let r=t.useContext(n);return e||r||"ltr"}e.s(["DirectionProvider",()=>o,"useDirection",()=>i])},368766,e=>{"use strict";var t=e.i(956371),r=e.i(352162),n=e.i(188625),o=e.i(819232),i=e.i(88310);function s(e){let s=e+"CollectionProvider",[a,l]=(0,r.createContextScope)(s),[u,d]=a(s,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:n}=e,o=t.default.useRef(null),s=t.default.useRef(new Map).current;return(0,i.jsx)(u,{scope:r,itemMap:s,collectionRef:o,children:n})};c.displayName=s;let f=e+"CollectionSlot",p=(0,o.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:o}=e,s=d(f,r),a=(0,n.useComposedRefs)(t,s.collectionRef);return(0,i.jsx)(p,{ref:a,children:o})});h.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",g=(0,o.createSlot)(v),w=t.default.forwardRef((e,r)=>{let{scope:o,children:s,...a}=e,l=t.default.useRef(null),u=(0,n.useComposedRefs)(r,l),c=d(v,o);return t.default.useEffect(()=>(c.itemMap.set(l,{ref:l,...a}),()=>void c.itemMap.delete(l))),(0,i.jsx)(g,{...{[m]:""},ref:u,children:s})});return w.displayName=v,[{Provider:c,Slot:h,ItemSlot:w},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(`[${m}]`));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 a=new WeakMap;function l(e,t){var r,n;let o,i,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,o=r.length,(s=(i=u(n))>=0?i:o+i)<0||s>=o?-1:s);return -1===a?void 0:e[a]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.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,s=u(e),a=s>=0?s:i+s,l=a<0||a>=i?-1:a;if(l===this.size||o&&l===this.size-1||-1===l)return this.set(t,r),this;let d=this.size+ +!o;s<0&&a++;let c=[...this.#e],f=!1;for(let e=a;e<d;e++)if(a===e){let i=c[e];c[e]===t&&(i=c[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?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=l(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=l(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return l(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",()=>s])},245869,e=>{"use strict";var t=e.i(956371),r=e.i(291967),n=e.i(368766),o=e.i(188625),i=e.i(352162),s=e.i(987438),a=e.i(712279),l=e.i(935125),u=e.i(575301),d=e.i(950074),c=e.i(88310),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[v,m,g]=(0,n.createCollection)(h),[w,x]=(0,i.createContextScope)(h,[g]),[y,R]=w(h),b=t.forwardRef((e,t)=>
1(0,c.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(C,{...e,ref:t})})}));b.displayName=h;var C=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,orientation:s,loop:v=!1,dir:g,currentTabStopId:w,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:R,onEntryFocus:b,preventScrollOnEntryFocus:C=!1,...M}=e,k=t.useRef(null),D=(0,o.useComposedRefs)(n,k),E=(0,d.useDirection)(g),[S,P]=(0,u.useControllableState)({prop:w,defaultProp:x??null,onChange:R,caller:h}),[I,_]=t.useState(!1),A=(0,l.useCallbackRef)(b),O=m(i),T=t.useRef(!1),[F,N]=t.useState(0);return t.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(f,A),()=>e.removeEventListener(f,A)},[A]),(0,c.jsx)(y,{scope:i,orientation:s,dir:E,loop:v,currentTabStopId:S,onItemFocus:t.useCallback(e=>P(e),[P]),onItemShiftTab:t.useCallback(()=>_(!0),[]),onFocusableItemAdd:t.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>N(e=>e-1),[]),children:(0,c.jsx)(a.Primitive.div,{tabIndex:I||0===F?-1:0,"data-orientation":s,...M,ref:D,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),C)}}T.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>_(!1))})})}),M="RovingFocusGroupItem",k=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,focusable:i=!0,active:l=!1,tabStopId:u,children:d,...f}=e,p=(0,s.useId)(),h=u||p,g=R(M,o),w=g.currentTabStopId===h,x=m(o),{onFocusableItemAdd:y,onFocusableItemRemove:b,currentTabStopId:C}=g;return t.useEffect(()=>{if(i)return y(),()=>b()},[i,y,b]),(0,c.jsx)(v.ItemSlot,{scope:o,id:h,focusable:i,active:l,children:(0,c.jsx)(a.Primitive.span,{tabIndex:w?0:-1,"data-orientation":g.orientation,...f,ref:n,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{i?g.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(h)),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 D[o]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=x().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(()=>j(o))}}),children:"function"==typeof d?d({isCurrentTabStop:w,hasTabStop:null!=C}):d})})});k.displayName=M;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function j(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",()=>k,"Root",()=>b,"createRovingFocusGroupScope",()=>x])},794768,e=>{"use strict";var t=e.i(347628);e.s(["CircleIcon",()=>t.default])},708154,e=>{"use strict";var t=e.i(208643);e.s(["CheckIcon",()=>t.default])},534417,41880,e=>{"use strict";var t=e.i(88310),r=e.i(95572),n=e.i(956371),o=e.i(291967),i=e.i(188625),s=e.i(352162),a=e.i(575301),l=e.i(712279),u=e.i(368766),d=e.i(950074),c=e.i(228658),f=e.i(636457),p=e.i(139806),h=e.i(987438),v=e.i(36177),m=e.i(391507),g=e.i(270216),w=e.i(245869),x=e.i(819232),y=e.i(935125),R=e.i(73772),b=e.i(221821),C=["Enter"," "],M=["ArrowUp","PageDown","End"],k=["ArrowDown","PageUp","Home",...M],D={ltr:[...C,"ArrowRight"],rtl:[...C,"ArrowLeft"]},j={ltr:["ArrowLeft"],rtl:["ArrowRight"]},E="Menu",[S,P,I]=(0,u.createCollection)(E),[_,A]=(0,s.createContextScope)(E,[I,v.createPopperScope,w.createRovingFocusGroupScope]),O=(0,v.createPopperScope)(),T=(0,w.createRovingFocusGroupScope)(),[F,N]=_(E),[H,L]=_(E),K=e=>{let{__scopeMenu:r,open:o=!1,children:i,dir:s,onOpenChange:a,modal:l=!0}=e,u=O(r),[c,f]=n.useState(null),p=n.useRef(!1),h=(0,y.useCallbackRef)(a),m=(0,d.useDirection)(s);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.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,t.jsx)(v.Root,{...u,children:(0,t.jsx)(F,{scope:r,open:o,onOpenChange:h,content:c,onContentChange:f,children:(0,t.jsx)(H,{scope:r,onClose:n.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:p,dir:m,modal:l,children:i})})})};K.displayName=E;var z=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,i=O(n);return(0,t.jsx)(v.Anchor,{...i,...o,ref:r})});z.displayName="MenuAnchor";var G="MenuPortal",[B,U]=_(G,{forceMount:void 0}),V=e=>{let{__scopeMenu:r,forceMount:n,children:o,container:i}=e,s=N(G,r);return(0,t.jsx)(B,{scope:r,forceMount:n,children:(0,t.jsx)(g.Presence,{present:n||s.open,children:(0,t.jsx)(m.Portal,{asChild:!0,container:i,children:o})})})};V.displayName=G;var X="MenuContent",[W,q]=_(X),Y=n.forwardRef((e,r)=>{let n=U(X,e.__scopeMenu),{forceMount:o=n.forceMount,...i}=e,s=N(X,e.__scopeMenu),a=L(X,e.__scopeMenu);return(0,t.jsx)(S.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(g.Presence,{present:o||s.open,children:(0,t.jsx)(S.Slot,{scope:e.__scopeMenu,children:a.modal?(0,t.jsx)(Z,{...i,ref:r}):(0,t.jsx)($,{...i,ref:r})})})})}),Z=n.forwardRef((e,r)=>{let s=N(X,e.__scopeMenu),a=n.useRef(null),l=(0,i.useComposedRefs)(r,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,R.hideOthers)(e)},[]),(0,t.jsx)(Q,{...e,ref:l,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),$=n.forwardRef((e,r)=>{let n=N(X,e.__scopeMenu);return(0,t.jsx)(Q,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),J=(0,x.createSlot)("MenuContent.ScrollLock"),Q=n.forwardRef((e,r)=>{let{__scopeMenu:s,loop:a=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:d,disableOutsidePointerEvents:h,onEntryFocus:m,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:R,onDismiss:C,disableOutsideScroll:D,...j}=e,E=N(X,s),S=L(X,s),I=O(s),_=T(s),A=P(s),[F,H]=n.useState(null),K=n.useRef(null),z=(0,i.useComposedRefs)(r,K,E.onContentChange),G=n.useRef(0),B=n.useRef(""),U=n.useRef(0),V=n.useRef(null),q=n.useRef("right"),Y=n.useRef(0),Z=D?b.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(G.current),[]),(0,f.useFocusGuards)();let $=n.useCallback(e=>{var t,r;return q.current===V.current?.side&&(t=e,!!(r=V.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 s=t[e],a=t[i],l=s.x,u=s.y,d=a.x,c=a.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,t.jsx)(W,{scope:s,searchRef:B,onItemEnter:n.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:n.useCallback(e=>{$(e)||(K.current?.focus(),H(null))},[$]),onTriggerLeave:n.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:U,onPointerGraceIntentChange:n.useCallback(e=>{V.current=e},[]),children:(0,t.jsx)(Z,{...D?{as:J,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(p.FocusScope,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.composeEventHandlers)(u,e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,t.jsx)(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:R,onDismiss:C,children:(0,t.jsx)(w.Root,{asChild:!0,..._,dir:S.dir,orientation:"vertical",loop:a,currentTabStopId:F,onCurrentTabStopIdChange:H,onEntryFocus:(0,o.composeEventHandlers)(m,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(v.Content,{role:"menu","aria-orientation":"vertical","data-state":ek(E.open),"data-radix-menu-content":"",dir:S.dir,...I,...j,ref:z,style:{outline:"none",...j.style},onKeyDown:(0,o.composeEventHandlers)(j.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,s,a,l,u;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=B.current+o,i=A().filter(e=>!e.disabled),s=document.activeElement,a=i.find(e=>e.ref.current===s)?.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,s=(n=Math.max(i,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(s=s.filter(e=>e!==r));let a=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==r?a:void 0}(i.map(e=>e.textValue),t,a),u=i.find(e=>e.textValue===l)?.ref.current,function e(t){B.current=t,window.clearTimeout(G.current),""!==t&&(G.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=K.current;if(e.target!==i||!k.includes(e.key))return;e.preventDefault();let s=A().filter(e=>!e.disabled).map(e=>e.ref.current);M.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,o.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(G.current),B.current="")}),onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eE(e=>{let t=e.target,r=Y.current!==e.clientX;e.currentTarget.contains(t)&&r&&(q.current=e.clientX>Y.current?"right":"left",Y.current=e.clientX)}))})})})})})})});Y.displayName=X;var ee=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(l.Primitive.div,{role:"group",...o,ref:r})});ee.displayName="MenuGroup";var et=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(l.Primitive.div,{...o,ref:r})});et.displayName="MenuLabel";var er="MenuItem",en="menu.itemSelect",eo=n.forwardRef((e,r)=>{let{disabled:s=!1,onSelect:a,...u}=e,d=n.useRef(null),c=L(er,e.__scopeMenu),f=q(er,e.__scopeMenu),p=(0,i.useComposedRefs)(r,d),h=n.useRef(!1);return(0,t.jsx)(ei,{...u,ref:p,disabled:s,onClick:(0,o.composeEventHandlers)(e.onClick,()=>{let e=d.current;if(!s&&e){let t=new CustomEvent(en,{bubbles:!0,cancelable:!0});e.addEventListener(en,e=>a?.(e),{once:!0}),(0,l.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?h.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),h.current=!0},onPointerUp:(0,o.composeEventHandlers)(e.onPointerUp,e=>{h.current||e.currentTarget?.click()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;s||t&&" "===e.key||C.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=er;var ei=n.forwardRef((e,r)=>{let{__scopeMenu:s,disabled:a=!1,textValue:u,...d}=e,c=q(er,s),f=T(s),p=n.useRef(null),h=(0,i.useComposedRefs)(r,p),[v,m]=n.useState(!1),[g,x]=n.useState("");return n.useEffect(()=>{let e=p.current;e&&x((e.textContent??"").trim())},[d.children]),(0,t.jsx)(S.ItemSlot,{scope:s,disabled:a,textValue:u??g,children:(0,t.jsx)(w.Item,{asChild:!0,...f,focusable:!a,children:(0,t.jsx)(l.Primitive.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...d,ref:h,onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eE(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eE(e=>c.onItemLeave(e))),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>m(!0)),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>m(!1))})})})}),es=n.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:i,...s}=e;return(0,t.jsx)(eh,{scope:e.__scopeMenu,checked:n,children:(0,t.jsx)(eo,{role:"menuitemcheckbox","aria-checked":eD(n)?"mixed":n,...s,ref:r,"data-state":ej(n),onSelect:(0,o.composeEventHandlers)(s.onSelect,()=>i?.(!!eD(n)||!n),{checkForDefaultPrevented:!1})})})});es.displayName="MenuCheckboxItem";var ea="MenuRadioGroup",[el,eu]=_(ea,{value:void 0,onValueChange:()=>{}}),ed=n.forwardRef((e,r)=>{let{value:n,onValueChange:o,...i}=e,s=(0,y.useCallbackRef)(o);return(0,t.jsx)(el,{scope:e.__scopeMenu,value:n,onValueChange:s,children:(0,t.jsx)(ee,{...i,ref:r})})});ed.displayName=ea;var ec="MenuRadioItem",ef=n.forwardRef((e,r)=>{let{value:n,...i}=e,s=eu(ec,e.__scopeMenu),a=n===s.value;return(0,t.jsx)(eh,{scope:e.__scopeMenu,checked:a,children:(0,t.jsx)(eo,{role:"menuitemradio","aria-checked":a,...i,ref:r,"data-state":ej(a),onSelect:(0,o.composeEventHandlers)(i.onSelect,()=>s.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});
1ef.displayName=ec;var ep="MenuItemIndicator",[eh,ev]=_(ep,{checked:!1}),em=n.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:o,...i}=e,s=ev(ep,n);return(0,t.jsx)(g.Presence,{present:o||eD(s.checked)||!0===s.checked,children:(0,t.jsx)(l.Primitive.span,{...i,ref:r,"data-state":ej(s.checked)})})});em.displayName=ep;var eg=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(l.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:r})});eg.displayName="MenuSeparator";var ew=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,i=O(n);return(0,t.jsx)(v.Arrow,{...i,...o,ref:r})});ew.displayName="MenuArrow";var[ex,ey]=_("MenuSub"),eR="MenuSubTrigger",eb=n.forwardRef((e,r)=>{let s=N(eR,e.__scopeMenu),a=L(eR,e.__scopeMenu),l=ey(eR,e.__scopeMenu),u=q(eR,e.__scopeMenu),d=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=u,p={__scopeMenu:e.__scopeMenu},h=n.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return n.useEffect(()=>h,[h]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,t.jsx)(z,{asChild:!0,...p,children:(0,t.jsx)(ei,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":l.contentId,"data-state":ek(s.open),...e,ref:(0,i.composeRefs)(r,l.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eE(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||s.open||d.current||(u.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{s.onOpenChange(!0),h()},100)))})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eE(e=>{h();let t=s.content?.getBoundingClientRect();if(t){let r=s.content?.dataset.side,n="right"===r,o=t[n?"left":"right"],i=t[n?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(n?-5:5),y:e.clientY},{x:o,y:t.top},{x:i,y:t.top},{x:i,y:t.bottom},{x:o,y:t.bottom}],side:r}),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,o.composeEventHandlers)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;e.disabled||r&&" "===t.key||D[a.dir].includes(t.key)&&(s.onOpenChange(!0),s.content?.focus(),t.preventDefault())})})})});eb.displayName=eR;var eC="MenuSubContent",eM=n.forwardRef((e,r)=>{let s=U(X,e.__scopeMenu),{forceMount:a=s.forceMount,...l}=e,u=N(X,e.__scopeMenu),d=L(X,e.__scopeMenu),c=ey(eC,e.__scopeMenu),f=n.useRef(null),p=(0,i.useComposedRefs)(r,f);return(0,t.jsx)(S.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(g.Presence,{present:a||u.open,children:(0,t.jsx)(S.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(Q,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:p,align:"start",side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{d.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.composeEventHandlers)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=j[d.dir].includes(e.key);t&&r&&(u.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function ek(e){return e?"open":"closed"}function eD(e){return"indeterminate"===e}function ej(e){return eD(e)?"indeterminate":e?"checked":"unchecked"}function eE(e){return t=>"mouse"===t.pointerType?e(t):void 0}eM.displayName=eC;var eS="DropdownMenu",[eP,eI]=(0,s.createContextScope)(eS,[A]),e_=A(),[eA,eO]=eP(eS),eT=e=>{let{__scopeDropdownMenu:r,children:o,dir:i,open:s,defaultOpen:l,onOpenChange:u,modal:d=!0}=e,c=e_(r),f=n.useRef(null),[p,v]=(0,a.useControllableState)({prop:s,defaultProp:l??!1,onChange:u,caller:eS});return(0,t.jsx)(eA,{scope:r,triggerId:(0,h.useId)(),triggerRef:f,contentId:(0,h.useId)(),open:p,onOpenChange:v,onOpenToggle:n.useCallback(()=>v(e=>!e),[v]),modal:d,children:(0,t.jsx)(K,{...c,open:p,onOpenChange:v,dir:i,modal:d,children:o})})};eT.displayName=eS;var eF="DropdownMenuTrigger",eN=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,disabled:s=!1,...a}=e,u=eO(eF,n),d=e_(n);return(0,t.jsx)(z,{asChild:!0,...d,children:(0,t.jsx)(l.Primitive.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...a,ref:(0,i.composeRefs)(r,u.triggerRef),onPointerDown:(0,o.composeEventHandlers)(e.onPointerDown,e=>{!s&&0===e.button&&!1===e.ctrlKey&&(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>
1{!s&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eN.displayName=eF;var eH=e=>{let{__scopeDropdownMenu:r,...n}=e,o=e_(r);return(0,t.jsx)(V,{...o,...n})};eH.displayName="DropdownMenuPortal";var eL="DropdownMenuContent",eK=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:i,...s}=e,a=eO(eL,i),l=e_(i),u=n.useRef(!1);return(0,t.jsx)(Y,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...s,ref:r,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{u.current||a.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.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)"}})});eK.displayName=eL;var ez=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(ee,{...i,...o,ref:r})});ez.displayName="DropdownMenuGroup";var eG=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(et,{...i,...o,ref:r})});eG.displayName="DropdownMenuLabel";var eB=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(eo,{...i,...o,ref:r})});eB.displayName="DropdownMenuItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(es,{...i,...o,ref:r})}).displayName="DropdownMenuCheckboxItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(ed,{...i,...o,ref:r})}).displayName="DropdownMenuRadioGroup",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(ef,{...i,...o,ref:r})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(em,{...i,...o,ref:r})}).displayName="DropdownMenuItemIndicator";var eU=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(eg,{...i,...o,ref:r})});eU.displayName="DropdownMenuSeparator",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(ew,{...i,...o,ref:r})}).displayName="DropdownMenuArrow",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(eb,{...i,...o,ref:r})}).displayName="DropdownMenuSubTrigger",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=e_(n);return(0,t.jsx)(eM,{...i,...o,ref:r,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",e.i(708154);var eV=e.i(361330);e.s(["ChevronRightIcon",()=>eV.default],41880);var eV=eV;e.i(794768);var eX=e.i(526683);function eW(e){let n,o,i=(0,r.c)(4);return i[0]!==e?({...n}=e,i[0]=e,i[1]=n):n=i[1],i[2]!==n?(o=(0,t.jsx)(eT,{"data-slot":"dropdown-menu",...n}),i[2]=n,i[3]=o):o=i[3],o}function eq(e){let n,o,i=(0,r.c)(4);return i[0]!==e?({...n}=e,i[0]=e,i[1]=n):n=i[1],i[2]!==n?(o=(0,t.jsx)(eN,{"data-slot":"dropdown-menu-trigger",...n}),i[2]=n,i[3]=o):o=i[3],o}function eY(e){let n,o,i,s,a,l=(0,r.c)(10);l[0]!==e?({className:n,sideOffset:i,...o}=e,l[0]=e,l[1]=n,l[2]=o,l[3]=i):(n=l[1],o=l[2],i=l[3]);let u=void 0===i?4:i;return l[4]!==n?(s=(0,eX.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 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 p-1 shadow-md",n),l[4]=n,l[5]=s):s=l[5],l[6]!==o||l[7]!==u||l[8]!==s?(a=(0,t.jsx)(eH,{children:(0,t.jsx)(eK,{"data-slot":"dropdown-menu-content",sideOffset:u,className:s,...o})}),l[6]=o,l[7]=u,l[8]=s,l[9]=a):a=l[9],a}function eZ(e){let n,o,i=(0,r.c)(4);return i[0]!==e?({...n}=e,i[0]=e,i[1]=n):n=i[1],i[2]!==n?(o=(0,t.jsx)(ez,{"data-slot":"dropdown-menu-group",...n}),i[2]=n,i[3]=o):o=i[3],o}function e$(e){let n,o,i,s,a,l,u=(0,r.c)(12);u[0]!==e?({className:n,inset:o,variant:s,...i}=e,u[0]=e,u[1]=n,u[2]=o,u[3]=i,u[4]=s):(n=u[1],o=u[2],i=u[3],s=u[4]);let d=void 0===s?"default":s;return u[5]!==n?(a=(0,eX.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),u[5]=n,u[6]=a):a=u[6],u[7]!==o||u[8]!==i||u[9]!==a||u[10]!==d?(l=(0,t.jsx)(eB,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":d,className:a,...i}),u[7]=o,u[8]=i,u[9]=a,u[10]=d,u[11]=l):l=u[11],l}function eJ(e){let n,o,i,s,a,l=(0,r.c)(10);return l[0]!==e?({className:n,inset:o,...i}=e,l[0]=e,l[1]=n,l[2]=o,l[3]=i):(n=l[1],o=l[2],i=l[3]),l[4]!==n?(s=(0,eX.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",n),l[4]=n,l[5]=s):s=l[5],l[6]!==o||l[7]!==i||l[8]!==s?(a=(0,t.jsx)(eG,{"data-slot":"dropdown-menu-label","data-inset":o,className:s,...i}),l[6]=o,l[7]=i,l[8]=s,l[9]=a):a=l[9],a}function eQ(e){let n,o,i,s,a=(0,r.c)(8);return a[0]!==e?({className:n,...o}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]),a[3]!==n?(i=(0,eX.cn)("bg-border -mx-1 my-1 h-px",n),a[3]=n,a[4]=i):i=a[4],a[5]!==o||a[6]!==i?(s=(0,t.jsx)(eU,{"data-slot":"dropdown-menu-separator",className:i,...o}),a[5]=o,a[6]=i,a[7]=s):s=a[7],s}e.s(["DropdownMenu",()=>eW,"DropdownMenuContent",()=>eY,"DropdownMenuGroup",()=>eZ,"DropdownMenuItem",()=>e$,"DropdownMenuLabel",()=>eJ,"DropdownMenuSeparator",()=>eQ,"DropdownMenuTrigger",()=>eq],534417)}]);

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.