1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2250],{13245:function(e,n,t){var r=t(67294);const o=r.forwardRef((function({title:e,titleId:n,...t},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":n},t),e?r.createElement("title",{id:n},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}));n.Z=o},31038:function(e,n,t){var r=t(67294);const o=r.forwardRef((function({title:e,titleId:n,...t},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":n},t),e?r.createElement("title",{id:n},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}));n.Z=o},71174:function(e,n,t){t.d(n,{VY:function(){return Hn},ZA:function(){return qn},ck:function(){return Qn},__:function(){return Jn},Uv:function(){return zn},Ee:function(){return et},fC:function(){return Wn},Z0:function(){return nt},Tr:function(){return tt},tu:function(){return ot},fF:function(){return rt},xz:function(){return Yn}});var r=t(87462),o=t(67294),u=t.t(o,2);function c(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(null===e||void 0===e||e(r),!1===t||!r.defaultPrevented)return null===n||void 0===n?void 0:n(r)}}function a(...e){return n=>e.forEach((e=>function(e,n){"function"===typeof e?e(n):null!==e&&void 0!==e&&(e.current=n)}(e,n)))}function i(...e){const n=e[0];if(1===e.length)return n;const t=()=>{const t=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=t.reduce(((n,{useScope:t,scopeName:r})=>({...n,...t(e)[`__scope${r}`]})),{});return(0,o.useMemo)((()=>({[`__scope${n.scopeName}`]:r})),[r])}};return t.scopeName=n.scopeName,t}function l(e){const n=(0,o.useRef)(e);return(0,o.useEffect)((()=>{n.current=e})),(0,o.useMemo)((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function s({prop:e,defaultProp:n,onChange:t=(()=>{})}){const[r,u]=function({defaultProp:e,onChange:n}){const t=(0,o.useState)(e),[r]=t,u=(0,o.useRef)(r),c=l(n);return(0,o.useEffect)((()=>{u.current!==r&&(c(r),u.current=r)}),[r,u,c]),t}({defaultProp:n,onChange:t}),c=void 0!==e,a=c?e:r,i=l(t);return[a,(0,o.useCallback)((n=>{if(c){const t=n,r="function"===typeof n?t(e):n;r!==e&&i(r)}else u(n)}),[c,e,u,i])]}var d=t(73935);const f=(0,o.forwardRef)(((e,n)=>{const{children:t,...u}=e,c=o.Children.toArray(t),a=c.find(v);if(a){const e=a.props.children,t=c.map((n=>n===a?o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null:n));return(0,o.createElement)(p,(0,r.Z)({},u,{ref:n}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,t):null)}return(0,o.createElement)(p,(0,r.Z)({},u,{ref:n}),t)}));f.displayName="Slot";const p=(0,o.forwardRef)(((e,n)=>{const{children:t,...r}=e;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,{...g(r,t.props),ref:n?a(n,t.ref):t.ref}):o.Children.count(t)>1?o.Children.only(null):null}));p.displayName="SlotClone";const m=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function v(e){return(0,o.isValidElement)(e)&&e.type===m}function g(e,n){const t={...n};for(const r in n){const o=e[r],u=n[r];/^on[A-Z]/.test(r)?o&&u?t[r]=(...e)=>{u(...e),o(...e)}:o&&(t[r]=o):"style"===r?t[r]={...o,...u}:"className"===r&&(t[r]=[o,u].filter(Boolean).join(" "))}return{...e,...t}}const h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const t=(0,o.forwardRef)(((e,t)=>{const{asChild:u,...c}=e,a=u?f:n;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(a,(0,r.Z)({},c,{ref:t}))}));return t.displayName=`Primitive.${n}`,{...e,[n]:t}}),{});function w(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(null===e||void 0===e||e(r),!1===t||!r.defaultPrevented)return null===n||void 0===n?void 0:n(r)}}function E(e,n=[]){let t=[];const r=()=>{const n=t.map((e=>(0,o.createContext)(e)));return function(t){const r=(null===t||void 0===t?void 0:t[e])||n;return(0,o.useMemo)((()=>({[`__scope${e}`]:{...t,[e]:r}})),[t,r])}};return r.scopeName=e,[function(n,r){const u=(0,o.createContext)(r),c=t.length;function a(n){const{scope:t,children:r,...a}=n,i=(null===t||void 0===t?void 0:t[e][c])||u,l=(0,o.useMemo)((()=>a),Object.values(a));return(0,o.createElement)(i.Provider,{value:l},r)}return t=[...t,r],a.displayName=n+"Provider",[a,function(t,a){const i=(null===a||void 0===a?void 0:a[e][c])||u,l=(0,o.useContext)(i);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},C(r,...n)]}function C(...e){const n=e[0];if(1===e.length)return n;const t=()=>{const t=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=t.reduce(((n,{useScope:t,scopeName:r})=>({...n,...t(e)[`__scope${r}`]})),{});return(0,o.useMemo)((()=>({[`__scope${n.scopeName}`]:r})),[r])}};return t.scopeName=n.scopeName,t}function b(...e){return n=>e.forEach((e=>function(e,n){"function"===typeof e?e(n):null!==e&&void 0!==e&&(e.current=n)}(e,n)))}function _(...e){return(0,o.useCallback)(b(...e),e)}const y=(0,o.forwardRef)(((e,n)=>{const{children:t,...u}=e,c=o.Children.toArray(t),a=c.find(D);if(a){const e=a.props.children,t=c.map((n=>n===a?o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null:n));return(0,o.createElement)(M,(0,r.Z)({},u,{ref:n}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,t):null)}return(0,o.createElement)(M,(0,r.Z)({},u,{ref:n}),t)}
1));y.displayName="Slot";const M=(0,o.forwardRef)(((e,n)=>{const{children:t,...r}=e;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,{...P(r,t.props),ref:n?b(n,t.ref):t.ref}):o.Children.count(t)>1?o.Children.only(null):null}));M.displayName="SlotClone";const R=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function D(e){return(0,o.isValidElement)(e)&&e.type===R}function P(e,n){const t={...n};for(const r in n){const o=e[r],u=n[r];/^on[A-Z]/.test(r)?o&&u?t[r]=(...e)=>{u(...e),o(...e)}:o&&(t[r]=o):"style"===r?t[r]={...o,...u}:"className"===r&&(t[r]=[o,u].filter(Boolean).join(" "))}return{...e,...t}}function I(e){const n=e+"CollectionProvider",[t,r]=E(n),[u,c]=t(n,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:n,children:t}=e,r=o.useRef(null),c=o.useRef(new Map).current;return o.createElement(u,{scope:n,itemMap:c,collectionRef:r},t)},i=e+"CollectionSlot",l=o.forwardRef(((e,n)=>{const{scope:t,children:r}=e,u=_(n,c(i,t).collectionRef);return o.createElement(y,{ref:u},r)})),s=e+"CollectionItemSlot",d="data-radix-collection-item",f=o.forwardRef(((e,n)=>{const{scope:t,children:r,...u}=e,a=o.useRef(null),i=_(n,a),l=c(s,t);return o.useEffect((()=>(l.itemMap.set(a,{ref:a,...u}),()=>{l.itemMap.delete(a)}))),o.createElement(y,{[d]:"",ref:i},r)}));return[{Provider:a,Slot:l,ItemSlot:f},function(n){const t=c(e+"CollectionConsumer",n);return o.useCallback((()=>{const e=t.collectionRef.current;if(!e)return[];const n=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(t.itemMap.values()).sort(((e,t)=>n.indexOf(e.ref.current)-n.indexOf(t.ref.current)))}),[t.collectionRef,t.itemMap])},r]}const x=(0,o.createContext)(void 0);function O(e){const n=(0,o.useContext)(x);return e||n||"ltr"}var T=t(66593),S=t(27552),k=t(37802);const N=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{},A=u["useId".toString()]||(()=>{});let F=0;function Z(e){const[n,t]=o.useState(A());return N((()=>{e||t((e=>null!==e&&void 0!==e?e:String(F++)))}),[e]),e||(n?`radix-${n}`:"")}var L=t(72557),K=t(93090);const U=e=>{const{present:n,children:t}=e,r=function(e){const[n,t]=(0,o.useState)(),r=(0,o.useRef)({}),u=(0,o.useRef)(e),c=(0,o.useRef)("none"),a=e?"mounted":"unmounted",[i,l]=function(e,n){return(0,o.useReducer)(((e,t)=>{const r=n[e][t];return null!==r&&void 0!==r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,o.useEffect)((()=>{const e=V(r.current);c.current="mounted"===i?e:"none"}),[i]),N((()=>{const n=r.current,t=u.current;if(t!==e){const r=c.current,o=V(n);if(e)l("MOUNT");else if("none"===o||"none"===(null===n||void 0===n?void 0:n.display))l("UNMOUNT");else{const e=r!==o;l(t&&e?"ANIMATION_OUT":"UNMOUNT")}u.current=e}}),[e,l]),N((()=>{if(n){const e=e=>{const t=V(r.current).includes(e.animationName);e.target===n&&t&&(0,d.flushSync)((()=>l("ANIMATION_END")))},t=e=>{e.target===n&&(c.current=V(r.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[n,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:(0,o.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),t(e)}),[])}}(n),u="function"===typeof t?t({present:r.isPresent}):o.Children.only(t),c=_(r.ref,u.ref);return"function"===typeof t||r.isPresent?(0,o.cloneElement)(u,{ref:c}):null};function V(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}U.displayName="Presence";const G=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const t=(0,o.forwardRef)(((e,t)=>{const{asChild:u,...c}=e,a=u?y:n;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(a,(0,r.Z)({},c,{ref:t}))}));return t.displayName=`Primitive.${n}`,{...e,[n]:t}}),{});function B(e){const n=(0,o.useRef)(e);return(0,o.useEffect)((()=>{n.current=e})),(0,o.useMemo)((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function $({prop:e,defaultProp:n,onChange:t=(()=>{})}){const[r,u]=function({defaultProp:e,onChange:n}){const t=(0,o.useState)(e),[r]=t,u=(0,o.useRef)(r),c=B(n);return(0,o.useEffect)((()=>{u.current!==r&&(c(r),u.current=r)}),[r,u,c]),t}({defaultProp:n,onChange:t}),c=void 0!==e,a=c?e:r,i=B(t);return[a,(0,o.useCallback)((n=>{if(c){const t=n,r="function"===typeof n?t(e):n;r!==e&&i(r)}else u(n)}),[c,e,u,i])]}const j="rovingFocusGroup.onEntryFocus",X={bubbles:!1,cancelable:!0},W="RovingFocusGroup",[Y,z,H]=I(W),[q,J]=E(W,[H]),[Q,ee]=q(W),ne=(0,o.forwardRef)(((e,n)=>(0,o.createElement)(Y.Provider,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(Y.Slot,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(te,(0,r.Z)({},e,{ref:n})))))),te=(0,o.forwardRef)(((e,n)=>{const{__scopeRovingFocusGroup:t,orientation:u,loop:c=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:d,...f}=e,p=(0,o.useRef)(null),m=_(n,p),v=O(a),[g=null,h]=$({prop:i,defaultProp:l,onChange:s}),[E,C]=(0,o.useState)(!1),b=B(d),y=z(t),M=(0,o.useRef)(!1),[R,D]=(0,o.useState)(0);return(0,o.useEffect)((()=>{const e=p.current;if(e)return e.addEventListener(j,b),()=>e.removeEventListener(j,b)}
1),[b]),(0,o.createElement)(Q,{scope:t,orientation:u,dir:v,loop:c,currentTabStopId:g,onItemFocus:(0,o.useCallback)((e=>h(e)),[h]),onItemShiftTab:(0,o.useCallback)((()=>C(!0)),[]),onFocusableItemAdd:(0,o.useCallback)((()=>D((e=>e+1))),[]),onFocusableItemRemove:(0,o.useCallback)((()=>D((e=>e-1))),[])},(0,o.createElement)(G.div,(0,r.Z)({tabIndex:E||0===R?-1:0,"data-orientation":u},f,{ref:m,style:{outline:"none",...e.style},onMouseDown:w(e.onMouseDown,(()=>{M.current=!0})),onFocus:w(e.onFocus,(e=>{const n=!M.current;if(e.target===e.currentTarget&&n&&!E){const n=new CustomEvent(j,X);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){const e=y().filter((e=>e.focusable));ce([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)))}}M.current=!1})),onBlur:w(e.onBlur,(()=>C(!1)))})))})),re="RovingFocusGroupItem",oe=(0,o.forwardRef)(((e,n)=>{const{__scopeRovingFocusGroup:t,focusable:u=!0,active:c=!1,tabStopId:a,...i}=e,l=Z(),s=a||l,d=ee(re,t),f=d.currentTabStopId===s,p=z(t),{onFocusableItemAdd:m,onFocusableItemRemove:v}=d;return(0,o.useEffect)((()=>{if(u)return m(),()=>v()}),[u,m,v]),(0,o.createElement)(Y.ItemSlot,{scope:t,id:s,focusable:u,active:c},(0,o.createElement)(G.span,(0,r.Z)({tabIndex:f?0:-1,"data-orientation":d.orientation},i,{ref:n,onMouseDown:w(e.onMouseDown,(e=>{u?d.onItemFocus(s):e.preventDefault()})),onFocus:w(e.onFocus,(()=>d.onItemFocus(s))),onKeyDown:w(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const n=function(e,n,t){const r=function(e,n){return"rtl"!==n?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,t);return"vertical"===n&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===n&&["ArrowUp","ArrowDown"].includes(r)?void 0:ue[r]}(e,d.orientation,d.dir);if(void 0!==n){e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===n)o.reverse();else if("prev"===n||"next"===n){"prev"===n&&o.reverse();const u=o.indexOf(e.currentTarget);o=d.loop?(r=u+1,(t=o).map(((e,n)=>t[(r+n)%t.length]))):o.slice(u+1)}setTimeout((()=>ce(o)))}var t,r}))})))})),ue={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ce(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}const ae=ne,ie=oe;var le=t(23541),se=t(12779);const de=["Enter"," "],fe=["ArrowUp","PageDown","End"],pe=["ArrowDown","PageUp","Home",...fe],me={ltr:[...de,"ArrowRight"],rtl:[...de,"ArrowLeft"]},ve={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ge="Menu",[he,we,Ee]=I(ge),[Ce,be]=E(ge,[Ee,L.D7,J]),_e=(0,L.D7)(),ye=J(),[Me,Re]=Ce(ge),[De,Pe]=Ce(ge),Ie=e=>{const{__scopeMenu:n,open:t=!1,children:r,dir:u,onOpenChange:c,modal:a=!0}=e,i=_e(n),[l,s]=(0,o.useState)(null),d=(0,o.useRef)(!1),f=B(c),p=O(u);return(0,o.useEffect)((()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}}),[]),(0,o.createElement)(L.fC,i,(0,o.createElement)(Me,{scope:n,open:t,onOpenChange:f,content:l,onContentChange:s},(0,o.createElement)(De,{scope:n,onClose:(0,o.useCallback)((()=>f(!1)),[f]),isUsingKeyboardRef:d,dir:p,modal:a},r)))},xe=(0,o.forwardRef)(((e,n)=>{const{__scopeMenu:t,...u}=e,c=_e(t);return(0,o.createElement)(L.ee,(0,r.Z)({},c,u,{ref:n}))})),Oe="MenuPortal",[Te,Se]=Ce(Oe,{forceMount:void 0}),ke=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:u}=e,c=Re(Oe,n);return(0,o.createElement)(Te,{scope:n,forceMount:t},(0,o.createElement)(U,{present:t||c.open},(0,o.createElement)(K.h,{asChild:!0,container:u},r)))},Ne="MenuContent",[Ae,Fe]=Ce(Ne),Ze=(0,o.forwardRef)(((e,n)=>{const t=Se(Ne,e.__scopeMenu),{forceMount:u=t.forceMount,...c}=e,a=Re(Ne,e.__scopeMenu),i=Pe(Ne,e.__scopeMenu);return(0,o.createElement)(he.Provider,{scope:e.__scopeMenu},(0,o.createElement)(U,{present:u||a.open},(0,o.createElement)(he.Slot,{scope:e.__scopeMenu},i.modal?(0,o.createElement)(Le,(0,r.Z)({},c,{ref:n})):(0,o.createElement)(Ke,(0,r.Z)({},c,{ref:n})))))})),Le=(0,o.forwardRef)(((e,n)=>{const t=Re(Ne,e.__scopeMenu),u=(0,o.useRef)(null),c=_(n,u);return(0,o.useEffect)((()=>{const e=u.current;if(e)return(0,le.Ry)(e)}),[]),(0,o.createElement)(Ue,(0,r.Z)({},e,{ref:c,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:w(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))})),Ke=(0,o.forwardRef)(((e,n)=>{const t=Re(Ne,e.__scopeMenu);return(0,o.createElement)(Ue,(0,r.Z)({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))})),Ue=(0,o.forwardRef)(((e,n)=>{const{__scopeMenu:t,loop:u=!1,trapFocus:c,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,disableOutsideScroll:g,...h}=e,E=Re(Ne,t),C=Pe(Ne,t),b=_e(t),M=ye(t),R=we(t),[D,P]=(0,o.useState)(null),I=(0,o.useRef)(null),x=_(n,I,E.onContentChange),O=(0,o.useRef)(0),N=(0,o.useRef)(""),A=(0,o.useRef)(0),F=(0,o.useRef)(null),Z=(0,o.useRef)("right"),K=(0,o.useRef)(0),U=g?se.Z:o.Fragment,V=g?{as:y,allowPinchZoom:!0}:void 0,G=e=>{var n,t;const r=N.current+e,o=R().filter((e=>!e.disabled)),u=document.activeElement,c=null===(n=o.find((e=>e.ref.current===u)))||void 0===n?void 0:n.textValue,a=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0]))?n[0]:n,o=t?e.indexOf(t):-1;let u=(c=e,a=Math.max(o,0),c.map(((e,n)=>c[(a+n)%c.length])));var c,a;1===r.length&&(u=u.filter((e=>e!==t)));const i=u.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==t?i:void 0}(o.map((e=>e.textValue)),r,c),i=null===(t=o.find((e=>e.textValue===a)))||void 0===t?void 0:t.ref.current;!function e(n){N.current=n,window.clearTimeout(O.current),""!==n&&(O.current=window.setTimeout((()=>e("")),1e3))}(r),i&&setTimeout((()=>i.focus()))};(0,o.useEffect)((()=>()=>window.clearTimeout(O.current)),[]),(0,S.EW)();const B=(0,o.useCallback)((e=>{var n,t;return Z.current===(null===(n=F.current)||void 0===n?void 0:n.side)&&function(e,n){if(!n)return!1;return function(e,n){const{x:t,y:r}=e;let o=!1;for(let u=0,c=n.length-1;u<n.length;c=u++){const e=n[u].x,a=n[u].y,i=n[c].x,l=n[c].y;a>r!==l>r&&t<(i-e)*(r-a)/(l-a)+e&&(o=!o)}return o}({x:e.clientX,y:e.clientY},n)}(e,null===(t=F.current)||void 0===t?void 0:t.area)}),[]);return(0,o.createElement)(Ae,{scope:t,searchRef:N,onItemEnter:(0,o.useCallback)((e=>{B(e)&&e.preventDefault()}),[B]),onItemLeave:(0,o.useCallback)((e=>{var n;B(e)||(null===(n=I.current)||void 0===n||n.focus(),P(null))}),[B]),onTriggerLeave:(0,o.useCallback)((e=>{B(e)&&e.preventDefault()}),[B]),pointerGraceTimerRef:A,onPointerGraceIntentChange:(0,o.useCallback)((e=>{F.current=e}),[])},(0,o.createElement)(U,V,(0,o.createElement)(k.M,{asChild:!0,trapped:c,onMountAutoFocus:w(a,(e=>{var n;e.preventDefault(),null===(n=I.current)||void 0===n||n.focus()})),onUnmountAutoFocus:i},(0,o.createElement)(T.XB,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v},(0,o.createElement)(ae,(0,r.Z)({asChild:!0},M,{dir:C.dir,orientation:"vertical",loop:u,currentTabStopId:D,onCurrentTabStopIdChange:P,onEntryFocus:w(s,(e=>{C.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,o.createElement)(L.VY,(0,r.Z)({role:"menu","aria-orientation":"vertical","data-state":sn(E.open),"data-radix-menu-content":"",dir:C.dir},b,h,{ref:x,style:{outline:"none",...h.style},onKeyDown:w(h.onKeyDown,(e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&G(e.key));const o=I.current;if(e.target!==o)return;if(!pe.includes(e.key))return;e.preventDefault();const u=R().filter((e=>!e.disabled)).map((e=>e.ref.current));fe.includes(e.key)&&u.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(u)})),onBlur:w(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),N.current="")})),onPointerMove:w(e.onPointerMove,dn((e=>{const n=e.target,t=K.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>K.current?"right":"left";Z.current=n,K.current=e.clientX}})))})))))))})),Ve=(0,o.forwardRef)(((e,n)=>{const{__scopeMenu:t,...u}=e;return(0,o.createElement)(G.div,(0,r.Z)({role:"group"},u,{ref:n}))})),Ge=(0,o.forwardRef)(((e,n)=>{const{__scopeMenu:t,...u}=e;return(0,o.createElement)(G.div,(0,r.Z)({},u,{ref:n}))})),Be="MenuItem",$e="menu.itemSelect",je=(0,o.forwardRef)(((e,n)=>{const{disabled:t=!1,onSelect:u,...c}=e,a=(0,o.useRef)(null),i=Pe(Be,e.__scopeMenu),l=Fe(Be,e.__scopeMenu),s=_(n,a),f=(0,o.useRef)(!1);return(0,o.createElement)(Xe,(0,r.Z)({},c,{ref:s,disabled:t,onClick:w(e.onClick,(()=>{const e=a.current;if(!t&&e){const t=new CustomEvent($e,{bubbles:!0,cancelable:!0});e.addEventListener($e,(e=>null===u||void 0===u?void 0:u(e)),{once:!0}),r=t,(n=e)&&(0,d.flushSync)((()=>n.dispatchEvent(r))),t.defaultPrevented?f.current=!1:i.onClose()}var n,r})),onPointerDown:n=>{var t;null===(t=e.onPointerDown)||void 0===t||t.call(e,n),f.current=!0},onPointerUp:w(e.onPointerUp,(e=>{var n;f.current||null===(n=e.currentTarget)||void 0===n||n.click()})),onKeyDown:w(e.onKeyDown,(e=>{const n=""!==l.searchRef.current;t||n&&" "===e.key||de.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Xe=(0,o.forwardRef)(((e,n)=>{const{__scopeMenu:t,disabled:u=!1,textValue:c,...a}=e,i=Fe(Be,t),l=ye(t),s=(0,o.useRef)(null),d=_(n,s),[f,p]=(0,o.useState)(!1),[m,v]=(0,o.useState)("");return(0,o.useEffect)((()=>{const e=s.current;var n;e&&v((null!==(n=e.textContent)&&void 0!==n?n:"").trim())}),[a.children]),(0,o.createElement)(he.ItemSlot,{scope:t,disabled:u,textValue:null!==c&&void 0!==c?c:m},(0,o.createElement)(ie,(0,r.Z)({asChild:!0},l,{focusable:!u}),(0,o.createElement)(G.div,(0,r.Z)({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0},a,{ref:d,onPointerMove:w(e.onPointerMove,dn((e=>{if(u)i.onItemLeave(e);else if(i.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:w(e.onPointerLeave,dn((e=>i.onItemLeave(e)))),onFocus:w(e.onFocus,(()=>p(!0))),onBlur:w(e.onBlur,(()=>p(!1)))}))))})),We="MenuRadioGroup",[Ye,ze]=Ce(We,{value:void 0,onValueChange:()=>{}}),He=(0,o.forwardRef)(((e,n)=>{const{value:t,onValueChange:u,...c}=e,a=B(u);return(0,o.createElement)(Ye,{scope:e.__scopeMenu,value:t,onValueChange:a},(0,o.createElement)(Ve,(0,r.Z)({},c,{ref:n})))})),qe="MenuItemIndicator",[Je,Qe]=Ce(qe,{checked:!1}),en=(0,o.forwardRef)(((e,n)=>{const{__scopeMenu:t,...u}=e;return(0,o.createElement)(G.div,(0,r.Z)({role:"separator","aria-orientation":"horizontal"},u,{ref:n}))})),nn="MenuSub",[tn,rn]=Ce(nn),on=e=>{const{__scopeMenu:n,children:t,open:r=!1,onOpenChange:u}=e,c=Re(nn,n),a=_e(n),[i,l]=(0,o.useState)(null),[s,d]=(0,o.useState)(null),f=B(u);return(0,o.useEffect)((()=>(!1===c.open&&f(!1),()=>f(!1))),[c.open,f]),(0,o.createElement)(L.fC,a,(0,o.createElement)(Me,{scope:n,open:r,onOpenChange:f,content:s,onContentChange:d},(0,o.createElement)(tn,{scope:n,contentId:Z(),triggerId:Z(),trigger:i,onTriggerChange:l},t)))},un="MenuSubTrigger",cn=(0,o.forwardRef)(((e,n)=>{const t=Re(un,e.__scopeMenu),u=Pe(un,e.__scopeMenu),c=rn(un,e.__scopeMenu),a=Fe(un,e.__scopeMenu),i=(0,o.useRef)(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,d={__scopeMenu:e.__scopeMenu},f=(0,o.useCallback)((()=>{i.current&&window.clearTimeout(i.current),i.current=null}),[]);return(0,o.useEffect)((()=>f),[f]),(0,o.useEffect)((()=>{const e=l.current;return()=>{window.clearTimeout(e),s(null)}}),[l,s]),(0,o.createElement)(xe,(0,r.Z)({asChild:!0},d),(0,o.createElement)(Xe,(0,r.Z)({id:c.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":c.contentId,"data-state":sn(t.open)},e,{ref:b(n,c.onTriggerChange),onClick:n=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,n),e.disabled||n.defaultPrevented||(n.currentTarget.focu
1s(),t.open||t.onOpenChange(!0))},onPointerMove:w(e.onPointerMove,dn((n=>{a.onItemEnter(n),n.defaultPrevented||e.disabled||t.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout((()=>{t.onOpenChange(!0),f()}),100))}))),onPointerLeave:w(e.onPointerLeave,dn((e=>{var n;f();const r=null===(n=t.content)||void 0===n?void 0:n.getBoundingClientRect();if(r){var o;const n=null===(o=t.content)||void 0===o?void 0:o.dataset.side,u="right"===n,c=u?-5:5,i=r[u?"left":"right"],s=r[u?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+c,y:e.clientY},{x:i,y:r.top},{x:s,y:r.top},{x:s,y:r.bottom},{x:i,y:r.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:w(e.onKeyDown,(n=>{const r=""!==a.searchRef.current;var o;e.disabled||r&&" "===n.key||me[u.dir].includes(n.key)&&(t.onOpenChange(!0),null===(o=t.content)||void 0===o||o.focus(),n.preventDefault())}))})))})),an="MenuSubContent",ln=(0,o.forwardRef)(((e,n)=>{const t=Se(Ne,e.__scopeMenu),{forceMount:u=t.forceMount,...c}=e,a=Re(Ne,e.__scopeMenu),i=Pe(Ne,e.__scopeMenu),l=rn(an,e.__scopeMenu),s=(0,o.useRef)(null),d=_(n,s);return(0,o.createElement)(he.Provider,{scope:e.__scopeMenu},(0,o.createElement)(U,{present:u||a.open},(0,o.createElement)(he.Slot,{scope:e.__scopeMenu},(0,o.createElement)(Ue,(0,r.Z)({id:l.contentId,"aria-labelledby":l.triggerId},c,{ref:d,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var n;i.isUsingKeyboardRef.current&&(null===(n=s.current)||void 0===n||n.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:w(e.onFocusOutside,(e=>{e.target!==l.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:w(e.onEscapeKeyDown,(e=>{i.onClose(),e.preventDefault()})),onKeyDown:w(e.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),t=ve[i.dir].includes(e.key);var r;n&&t&&(a.onOpenChange(!1),null===(r=l.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function sn(e){return e?"open":"closed"}function dn(e){return n=>"mouse"===n.pointerType?e(n):void 0}const fn=Ie,pn=xe,mn=ke,vn=Ze,gn=Ve,hn=Ge,wn=je,En=He,Cn=en,bn=on,_n=cn,yn=ln,Mn=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{},Rn=u["useId".toString()]||(()=>{});let Dn=0;function Pn(e){const[n,t]=o.useState(Rn());return Mn((()=>{e||t((e=>null!==e&&void 0!==e?e:String(Dn++)))}),[e]),e||(n?`radix-${n}`:"")}const In="DropdownMenu",[xn,On]=function(e,n=[]){let t=[];const r=()=>{const n=t.map((e=>(0,o.createContext)(e)));return function(t){const r=(null===t||void 0===t?void 0:t[e])||n;return(0,o.useMemo)((()=>({[`__scope${e}`]:{...t,[e]:r}})),[t,r])}};return r.scopeName=e,[function(n,r){const u=(0,o.createContext)(r),c=t.length;function a(n){const{scope:t,children:r,...a}=n,i=(null===t||void 0===t?void 0:t[e][c])||u,l=(0,o.useMemo)((()=>a),Object.values(a));return(0,o.createElement)(i.Provider,{value:l},r)}return t=[...t,r],a.displayName=n+"Provider",[a,function(t,a){const i=(null===a||void 0===a?void 0:a[e][c])||u,l=(0,o.useContext)(i);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},i(r,...n)]}(In,[be]),Tn=be(),[Sn,kn]=xn(In),Nn=e=>{const{__scopeDropdownMenu:n,children:t,dir:u,open:c,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,d=Tn(n),f=(0,o.useRef)(null),[p=!1,m]=s({prop:c,defaultProp:a,onChange:i});return(0,o.createElement)(Sn,{scope:n,triggerId:Pn(),triggerRef:f,contentId:Pn(),open:p,onOpenChange:m,onOpenToggle:(0,o.useCallback)((()=>m((e=>!e))),[m]),modal:l},(0,o.createElement)(fn,(0,r.Z)({},d,{open:p,onOpenChange:m,dir:u,modal:l}),t))},An="DropdownMenuTrigger",Fn=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,disabled:u=!1,...i}=e,l=kn(An,t),s=Tn(t);return(0,o.createElement)(pn,(0,r.Z)({asChild:!0},s),(0,o.createElement)(h.button,(0,r.Z)({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":u?"":void 0,disabled:u},i,{ref:a(n,l.triggerRef),onPointerDown:c(e.onPointerDown,(e=>{u||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())})),onKeyDown:c(e.onKeyDown,(e=>
1{u||(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),Zn=e=>{const{__scopeDropdownMenu:n,...t}=e,u=Tn(n);return(0,o.createElement)(mn,(0,r.Z)({},u,t))},Ln="DropdownMenuContent",Kn=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,...u}=e,a=kn(Ln,t),i=Tn(t),l=(0,o.useRef)(!1);return(0,o.createElement)(vn,(0,r.Z)({id:a.contentId,"aria-labelledby":a.triggerId},i,u,{ref:n,onCloseAutoFocus:c(e.onCloseAutoFocus,(e=>{var n;l.current||null===(n=a.triggerRef.current)||void 0===n||n.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:c(e.onInteractOutside,(e=>{const n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey,r=2===n.button||t;a.modal&&!r||(l.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)"}}))})),Un=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,...u}=e,c=Tn(t);return(0,o.createElement)(gn,(0,r.Z)({},c,u,{ref:n}))})),Vn=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,...u}=e,c=Tn(t);return(0,o.createElement)(hn,(0,r.Z)({},c,u,{ref:n}))})),Gn=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,...u}=e,c=Tn(t);return(0,o.createElement)(wn,(0,r.Z)({},c,u,{ref:n}))})),Bn=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,...u}=e,c=Tn(t);return(0,o.createElement)(En,(0,r.Z)({},c,u,{ref:n}))})),$n=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,...u}=e,c=Tn(t);return(0,o.createElement)(Cn,(0,r.Z)({},c,u,{ref:n}))})),jn=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,...u}=e,c=Tn(t);return(0,o.createElement)(_n,(0,r.Z)({},c,u,{ref:n}))})),Xn=(0,o.forwardRef)(((e,n)=>{const{__scopeDropdownMenu:t,...u}=e,c=Tn(t);return(0,o.createElement)(yn,(0,r.Z)({},c,u,{ref:n,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)"}}))})),Wn=Nn,Yn=Fn,zn=Zn,Hn=Kn,qn=Un,Jn=Vn,Qn=Gn,et=Bn,nt=$n,tt=e=>{const{__scopeDropdownMenu:n,children:t,open:u,onOpenChange:c,defaultOpen:a}=e,i=Tn(n),[l=!1,d]=s({prop:u,defaultProp:a,onChange:c});return(0,o.createElement)(bn,(0,r.Z)({},i,{open:l,onOpenChange:d}),t)},rt=jn,ot=Xn}}]);
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.