1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1647],{13839:(e,t,r)=>{var n=r(14232),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,l=n.useEffect,a=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return a(function(){o.value=r,o.getSnapshot=t,u(o)&&c({inst:o})},[e,r,t]),l(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},14966:(e,t,r)=>{r.d(t,{jH:()=>i});var n=r(14232);r(37876);var o=n.createContext(void 0);function i(e){let t=n.useContext(o);return e||t||"ltr"}},24624:(e,t,r)=>{r.d(t,{H4:()=>k,_V:()=>C,bL:()=>R});var n=r(14232),o=r(91844),i=r(62146),l=r(81285),a=r(57797),s=r(46192);function u(){return()=>{}}var c=r(37876),f="Avatar",[d,p]=(0,o.A)(f),[h,m]=d(f),g=n.forwardRef((e,t)=>{let{__scopeAvatar:r,...o}=e,[i,l]=n.useState("idle");return(0,c.jsx)(h,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:(0,c.jsx)(a.sG.span,{...o,ref:t})})});g.displayName=f;var y="AvatarImage",v=n.forwardRef((e,t)=>{let{__scopeAvatar:r,src:o,onLoadingStatusChange:f=()=>{},...d}=e,p=m(y,r),h=function(e,{referrerPolicy:t,crossOrigin:r}){let o=(0,s.useSyncExternalStore)(u,()=>!0,()=>!1),i=n.useRef(null),a=o?(i.current||(i.current=new window.Image),i.current):null,[c,f]=n.useState(()=>b(a,e));return(0,l.N)(()=>{f(b(a,e))},[a,e]),(0,l.N)(()=>{let e=e=>()=>{f(e)};if(!a)return;let n=e("loaded"),o=e("error");return a.addEventListener("load",n),a.addEventListener("error",o),t&&(a.referrerPolicy=t),"string"==typeof r&&(a.crossOrigin=r),()=>{a.removeEventListener("load",n),a.removeEventListener("error",o)}},[a,r,t]),c}(o,d),g=(0,i.c)(e=>{f(e),p.onImageLoadingStatusChange(e)});return(0,l.N)(()=>{"idle"!==h&&g(h)},[h,g]),"loaded"===h?(0,c.jsx)(a.sG.img,{...d,ref:t,src:o}):null});v.displayName=y;var w="AvatarFallback",x=n.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:o,...i}=e,l=m(w,r),[s,u]=n.useState(void 0===o);return n.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>u(!0),o);return()=>window.clearTimeout(e)}},[o]),s&&"loaded"!==l.imageLoadingStatus?(0,c.jsx)(a.sG.span,{...i,ref:t}):null});function b(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}x.displayName=w;var R=g,C=v,k=x},33134:(e,t,r)=>{r.d(t,{N:()=>c});var n=r(14232),o=r(91844),i=r(10714),l=r(37876);function a(e){var t;let r,o=(t=e,(r=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var l;let e,a,s=(l=r,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,i.t)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=n.forwardRef((e,t)=>{let{children:r,...i}=e,a=n.Children.toArray(r),s=a.find(u);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,l.jsx)(o,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,l.jsx)(o,{...i,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}var s=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}function c(e){let t=e+"CollectionProvider",[r,s]=(0,o.A)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),f=e=>{let{scope:t,children:r}=e,o=n.useRef(null),i=n.useRef(new Map).current;return(0,l.jsx)(u,{scope:t,itemMap:i,collectionRef:o,children:r})};f.displayName=t;let d=e+"CollectionSlot",p=a(d),h=n.forwardRef((e,t)=>
1{let{scope:r,children:n}=e,o=c(d,r),a=(0,i.s)(t,o.collectionRef);return(0,l.jsx)(p,{ref:a,children:n})});h.displayName=d;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=a(m),v=n.forwardRef((e,t)=>{let{scope:r,children:o,...a}=e,s=n.useRef(null),u=(0,i.s)(t,s),f=c(m,r);return n.useEffect(()=>(f.itemMap.set(s,{ref:s,...a}),()=>void f.itemMap.delete(s))),(0,l.jsx)(y,{...{[g]:""},ref:u,children:o})});return v.displayName=m,[{Provider:f,Slot:h,ItemSlot:v},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}var f=new WeakMap;function d(e,t){var r,n;let o,i,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,o=r.length,(l=(i=p(n))>=0?i:o+i)<0||l>=o?-1:l);return -1===a?void 0:e[a]}function p(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],f.set(this,!0)}set(e,t){return f.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,l=p(e),a=l>=0?l:i+l,s=a<0||a>=i?-1:a;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,r),this;let u=this.size+ +!o;l<0&&a++;let c=[...this.#e],f=!1;for(let e=a;e<u;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=d(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=d(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return d(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}})},46192:(e,t,r)=>{e.exports=r(13839)},54804:(e,t,r)=>{let n,o,i;r.d(t,{UC:()=>eY,q7:()=>eZ,ZL:()=>eq,bL:()=>eU,l9:()=>eX});var l=r(14232),a=r(33716),s=r(10714),u=r(91844),c=r(58162),f=r(57797),d=r(33
1134),p=r(14966),h=r(73520),m=r(22658),g=r(90870),y=r(70294),v=r(68212),w=r(31893),x=r(96822),b=r(64455),R=r(37876),C=Symbol("radix.slottable");function k(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===C}var A=r(62146),S=r(94769),j=r(50223),E=["Enter"," "],M=["ArrowUp","PageDown","End"],D=["ArrowDown","PageUp","Home",...M],O={ltr:[...E,"ArrowRight"],rtl:[...E,"ArrowLeft"]},P={ltr:["ArrowLeft"],rtl:["ArrowRight"]},L="Menu",[T,_,N]=(0,d.N)(L),[I,K]=(0,u.A)(L,[N,v.Bk,b.RG]),F=(0,v.Bk)(),G=(0,b.RG)(),[z,B]=I(L),[H,W]=I(L),V=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=F(t),[u,c]=l.useState(null),f=l.useRef(!1),d=(0,A.c)(i),h=(0,p.jH)(o);return l.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,R.jsx)(v.bL,{...s,children:(0,R.jsx)(z,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:c,children:(0,R.jsx)(H,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:h,modal:a,children:n})})})};V.displayName=L;var $=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=F(r);return(0,R.jsx)(v.Mz,{...o,...n,ref:t})});$.displayName="MenuAnchor";var U="MenuPortal",[X,q]=I(U,{forceMount:void 0}),Y=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=B(U,t);return(0,R.jsx)(X,{scope:t,forceMount:r,children:(0,R.jsx)(x.C,{present:r||i.open,children:(0,R.jsx)(w.Z,{asChild:!0,container:o,children:n})})})};Y.displayName=U;var Z="MenuContent",[J,Q]=I(Z),ee=l.forwardRef((e,t)=>{let r=q(Z,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=B(Z,e.__scopeMenu),l=W(Z,e.__scopeMenu);return(0,R.jsx)(T.Provider,{scope:e.__scopeMenu,children:(0,R.jsx)(x.C,{present:n||i.open,children:(0,R.jsx)(T.Slot,{scope:e.__scopeMenu,children:l.modal?(0,R.jsx)(et,{...o,ref:t}):(0,R.jsx)(er,{...o,ref:t})})})})}),et=l.forwardRef((e,t)=>{let r=B(Z,e.__scopeMenu),n=l.useRef(null),o=(0,s.s)(t,n);return l.useEffect(()=>{let e=n.current;if(e)return(0,S.Eq)(e)},[]),(0,R.jsx)(eo,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),er=l.forwardRef((e,t)=>{let r=B(Z,e.__scopeMenu);return(0,R.jsx)(eo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),en=((i=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(l.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==l.Fragment&&(u.ref=t?(0,s.t)(t,a):a),l.cloneElement(r,u)}return l.Children.count(r)>1?l.Children.only(null):null})).displayName="MenuContent.ScrollLock.SlotClone",n=i,(o=l.forwardRef((e,t)=>{let{children:r,...o}=e,i=l.Children.toArray(r),a=i.find(k);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,R.jsx)(n,{...o,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,R.jsx)(n,{...o,ref:t,children:r})})).displayName="MenuContent.ScrollLock.Slot",o),eo=l.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:y,onInteractOutside:w,onDismiss:x,disableOutsideScroll:C,...k}=e,A=B(Z,r),S=W(Z,r),E=F(r),O=G(r),P=_(r),[L,T]=l.useState(null),N=l.useRef(null),I=(0,s.s)(t,N,A.onContentChange),K=l.useRef(0),z=l.useRef(""),H=l.useRef(0),V=l.useRef(null),$=l.useRef("right"),U=l.useRef(0),X=C?j.A:l.Fragment;l.useEffect(()=>()=>window.clearTimeout(K.current),[]),(0,m.Oh)();let q=l.useCallback(e=>{var t,r;return $.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;
1i=e++){let l=t[e],a=t[i],s=l.x,u=l.y,c=a.x,f=a.y;u>n!=f>n&&r<(c-s)*(n-u)/(f-u)+s&&(o=!o)}return o}({x:t.clientX,y:t.clientY},r))},[]);return(0,R.jsx)(J,{scope:r,searchRef:z,onItemEnter:l.useCallback(e=>{q(e)&&e.preventDefault()},[q]),onItemLeave:l.useCallback(e=>{q(e)||(N.current?.focus(),T(null))},[q]),onTriggerLeave:l.useCallback(e=>{q(e)&&e.preventDefault()},[q]),pointerGraceTimerRef:H,onPointerGraceIntentChange:l.useCallback(e=>{V.current=e},[]),children:(0,R.jsx)(X,{...C?{as:en,allowPinchZoom:!0}:void 0,children:(0,R.jsx)(g.n,{asChild:!0,trapped:o,onMountAutoFocus:(0,a.mK)(i,e=>{e.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,R.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:y,onInteractOutside:w,onDismiss:x,children:(0,R.jsx)(b.bL,{asChild:!0,...O,dir:S.dir,orientation:"vertical",loop:n,currentTabStopId:L,onCurrentTabStopIdChange:T,onEntryFocus:(0,a.mK)(f,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,R.jsx)(v.UC,{role:"menu","aria-orientation":"vertical","data-state":eD(A.open),"data-radix-menu-content":"",dir:S.dir,...E,...k,ref:I,style:{outline:"none",...k.style},onKeyDown:(0,a.mK)(k.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;if(t){var o;let t,i,l,a,s,u;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=z.current+o,i=P().filter(e=>!e.disabled),l=document.activeElement,a=i.find(e=>e.ref.current===l)?.textValue,s=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,l=(n=Math.max(i,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(l=l.filter(e=>e!==r));let a=l.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===s)?.ref.current,function e(t){z.current=t,window.clearTimeout(K.current),""!==t&&(K.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=N.current;if(e.target!==i||!D.includes(e.key))return;e.preventDefault();let l=P().filter(e=>!e.disabled).map(e=>e.ref.current);M.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(l)}),onBlur:(0,a.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(K.current),z.current="")}),onPointerMove:(0,a.mK)(e.onPointerMove,eL(e=>{let t=e.target,r=U.current!==e.clientX;e.currentTarget.contains(t)&&r&&($.current=e.clientX>U.current?"right":"left",U.current=e.clientX)}))})})})})})})});ee.displayName=Z;var ei=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,R.jsx)(f.sG.div,{role:"group",...n,ref:t})});ei.displayName="MenuGroup";var el=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,R.jsx)(f.sG.div,{...n,ref:t})});el.displayName="MenuLabel";var ea="MenuItem",es="menu.itemSelect",eu=l.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,i=l.useRef(null),u=W(ea,e.__scopeMenu),c=Q(ea,e.__scopeMenu),d=(0,s.s)(t,i),p=l.useRef(!1);return(0,R.jsx)(ec,{...o,ref:d,disabled:r,onClick:(0,a.mK)(e.onClick,()=>{let e=i.current;if(!r&&e){let t=new CustomEvent(es,{bubbles:!0,cancelable:!0});e.addEventListener(es,e=>n?.(e),{once:!0}),(0,f.hO)(e,t),t.defaultPrevented?p.current=!1:u.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),p.current=!0},onPointerUp:(0,a.mK)(e.onPointerUp,e=>{p.current||e.currentTarget?.click()}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{let t=""!==c.searchRef.current;r||t&&" "===e.key||E.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eu.displayName=ea;var ec=l.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,u=Q(ea,r),c=G(r),d=l.useRef(null),p=(0,s.s)(t,d),[h,m]=l.useState(!1),[g,y]=l.useState("");return l.useEffect(()=>{let e=d.current;e&&y((e.textContent??"").trim())},[i.children]),(0,R.jsx)(T.ItemSlot,{scope:r,disabled:n,textValue:o??g,children:(0,R.jsx)(b.q7,{asChild:!0,...c,focusable:!n,children:(0,R.jsx)(f.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:p,onPointerMove:(0,a.mK)(e.onPointerMove,eL(e=>{n?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focu
1s({preventScroll:!0}))})),onPointerLeave:(0,a.mK)(e.onPointerLeave,eL(e=>u.onItemLeave(e))),onFocus:(0,a.mK)(e.onFocus,()=>m(!0)),onBlur:(0,a.mK)(e.onBlur,()=>m(!1))})})})}),ef=l.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,R.jsx)(ew,{scope:e.__scopeMenu,checked:r,children:(0,R.jsx)(eu,{role:"menuitemcheckbox","aria-checked":eO(r)?"mixed":r,...o,ref:t,"data-state":eP(r),onSelect:(0,a.mK)(o.onSelect,()=>n?.(!!eO(r)||!r),{checkForDefaultPrevented:!1})})})});ef.displayName="MenuCheckboxItem";var ed="MenuRadioGroup",[ep,eh]=I(ed,{value:void 0,onValueChange:()=>{}}),em=l.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,i=(0,A.c)(n);return(0,R.jsx)(ep,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,R.jsx)(ei,{...o,ref:t})})});em.displayName=ed;var eg="MenuRadioItem",ey=l.forwardRef((e,t)=>{let{value:r,...n}=e,o=eh(eg,e.__scopeMenu),i=r===o.value;return(0,R.jsx)(ew,{scope:e.__scopeMenu,checked:i,children:(0,R.jsx)(eu,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":eP(i),onSelect:(0,a.mK)(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});ey.displayName=eg;var ev="MenuItemIndicator",[ew,ex]=I(ev,{checked:!1}),eb=l.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,i=ex(ev,r);return(0,R.jsx)(x.C,{present:n||eO(i.checked)||!0===i.checked,children:(0,R.jsx)(f.sG.span,{...o,ref:t,"data-state":eP(i.checked)})})});eb.displayName=ev;var eR=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,R.jsx)(f.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eR.displayName="MenuSeparator";var eC=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=F(r);return(0,R.jsx)(v.i3,{...o,...n,ref:t})});eC.displayName="MenuArrow";var[ek,eA]=I("MenuSub"),eS="MenuSubTrigger",ej=l.forwardRef((e,t)=>{let r=B(eS,e.__scopeMenu),n=W(eS,e.__scopeMenu),o=eA(eS,e.__scopeMenu),i=Q(eS,e.__scopeMenu),u=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=i,d={__scopeMenu:e.__scopeMenu},p=l.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return l.useEffect(()=>p,[p]),l.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,R.jsx)($,{asChild:!0,...d,children:(0,R.jsx)(ec,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":eD(r.open),...e,ref:(0,s.t)(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.mK)(e.onPointerMove,eL(t=>{i.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||u.current||(i.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,a.mK)(e.onPointerLeave,eL(e=>{p();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,o="right"===n,l=t[o?"left":"right"],a=t[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:l,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:l,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.mK)(e.onKeyDown,t=>{let o=""!==i.searchRef.current;e.disabled||o&&" "===t.key||O[n.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});ej.displayName=eS;var eE="MenuSubContent",eM=l.forwardRef((e,t)=>{let r=q(Z,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=B(Z,e.__scopeMenu),u=W(Z,e.__scopeMenu),c=eA(eE,e.__scopeMenu),f=l.useRef(null),d=(0,s.s)(t,f);return(0,R.jsx)(T.Provider,{scope:e.__scopeMenu,children:(0,R.jsx)(x.C,{present:n||i.open,children:(0,R.jsx)(T.Slot,{scope:e.__scopeMenu,children:(0,R.jsx)(eo,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:d,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,a.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=P[u.dir].includes(e.ke
1y);t&&r&&(i.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function eD(e){return e?"open":"closed"}function eO(e){return"indeterminate"===e}function eP(e){return eO(e)?"indeterminate":e?"checked":"unchecked"}function eL(e){return t=>"mouse"===t.pointerType?e(t):void 0}eM.displayName=eE;var eT="DropdownMenu",[e_,eN]=(0,u.A)(eT,[K]),eI=K(),[eK,eF]=e_(eT),eG=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,u=eI(t),f=l.useRef(null),[d,p]=(0,c.i)({prop:o,defaultProp:i??!1,onChange:a,caller:eT});return(0,R.jsx)(eK,{scope:t,triggerId:(0,y.B)(),triggerRef:f,contentId:(0,y.B)(),open:d,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,R.jsx)(V,{...u,open:d,onOpenChange:p,dir:n,modal:s,children:r})})};eG.displayName=eT;var ez="DropdownMenuTrigger",eB=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=eF(ez,r),l=eI(r);return(0,R.jsx)($,{asChild:!0,...l,children:(0,R.jsx)(f.sG.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,s.t)(t,i.triggerRef),onPointerDown:(0,a.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eB.displayName=ez;var eH=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eI(t);return(0,R.jsx)(Y,{...n,...r})};eH.displayName="DropdownMenuPortal";var eW="DropdownMenuContent",eV=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eF(eW,r),i=eI(r),s=l.useRef(!1);return(0,R.jsx)(ee,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:(0,a.mK)(e.onCloseAutoFocus,e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,a.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(s.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)"}})});eV.displayName=eW,l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(ei,{...o,...n,ref:t})}).displayName="DropdownMenuGroup",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(el,{...o,...n,ref:t})}).displayName="DropdownMenuLabel";var e$=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(eu,{...o,...n,ref:t})});e$.displayName="DropdownMenuItem",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(ef,{...o,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(em,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(ey,{...o,...n,ref:t})}).displayName="DropdownMenuRadioItem",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(eb,{...o,...n,ref:t})}).displayName="DropdownMenuItemIndicator",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(eR,{...o,...n,ref:t})}).displayName="DropdownMenuSeparator",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(eC,{...o,...n,ref:t})}).displayName="DropdownMenuArrow",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(ej,{...o,...n,ref:t})}).displayName="DropdownMenuSubTrigger",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=eI(r);return(0,R.jsx)(eM,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var eU=eG,eX=eB,eq=eH,eY=eV,eZ=e$},61676:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(14232);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},64455:(e,t,r)=>{r.d(t,{RG:()=>b,bL:()=>D,q7:()=>O});
1var n=r(14232),o=r(33716),i=r(33134),l=r(10714),a=r(91844),s=r(70294),u=r(57797),c=r(62146),f=r(58162),d=r(14966),p=r(37876),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[y,v,w]=(0,i.N)(g),[x,b]=(0,a.A)(g,[w]),[R,C]=x(g),k=n.forwardRef((e,t)=>(0,p.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(A,{...e,ref:t})})}));k.displayName=g;var A=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:s,currentTabStopId:y,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:x,onEntryFocus:b,preventScrollOnEntryFocus:C=!1,...k}=e,A=n.useRef(null),S=(0,l.s)(t,A),j=(0,d.jH)(s),[E,D]=(0,f.i)({prop:y,defaultProp:w??null,onChange:x,caller:g}),[O,P]=n.useState(!1),L=(0,c.c)(b),T=v(r),_=n.useRef(!1),[N,I]=n.useState(0);return n.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(h,L),()=>e.removeEventListener(h,L)},[L]),(0,p.jsx)(R,{scope:r,orientation:i,dir:j,loop:a,currentTabStopId:E,onItemFocus:n.useCallback(e=>D(e),[D]),onItemShiftTab:n.useCallback(()=>P(!0),[]),onFocusableItemAdd:n.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>I(e=>e-1),[]),children:(0,p.jsx)(u.sG.div,{tabIndex:O||0===N?-1:0,"data-orientation":i,...k,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{_.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),C)}}_.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>P(!1))})})}),S="RovingFocusGroupItem",j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:l=!1,tabStopId:a,children:c,...f}=e,d=(0,s.B)(),h=a||d,m=C(S,r),g=m.currentTabStopId===h,w=v(r),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:R}=m;return n.useEffect(()=>{if(i)return x(),()=>b()},[i,x,b]),(0,p.jsx)(y.ItemSlot,{scope:r,id:h,focusable:i,active:l,children:(0,p.jsx)(u.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...f,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{i?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.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 E[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=w().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=m.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>M(o))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=R}):c})})});j.displayName=S;var E={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var D=k,O=j},68212:(e,t,r)=>{let n;r.d(t,{Mz:()=>eq,i3:()=>eZ,UC:()=>eY,bL:()=>eX,Bk:()=>eP});var o=r(14232);let i=["top","right","bottom","left"],l=Math.min,a=Math.max,s=Math.round,u=Math.floor,c=e=>({x:e,y:e}
1),f={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],x=["right","left"],b=["top","bottom"],R=["bottom","top"];function C(e){let t=p(e);return f[t]+e.slice(t.length)}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function S(e,t,r){let n,{reference:o,floating:i}=e,l=y(t),a=m(y(t)),s=g(a),u=p(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,v=o[s]/2-i[s]/2;switch(u){case"top":n={x:f,y:o.y-i.height};break;case"bottom":n={x:f,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:d};break;case"left":n={x:o.x-i.width,y:d};break;default:n={x:o.x,y:o.y}}switch(h(t)){case"start":n[a]-=v*(r&&c?-1:1);break;case"end":n[a]+=v*(r&&c?-1:1)}return n}async function j(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=k(h),g=a[p?"floating"===f?"reference":"floating":f],y=A(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===f?{x:n,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=A(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:s}):v);return{top:(y.top-b.top+m.top)/x.y,bottom:(b.bottom-y.bottom+m.bottom)/x.y,left:(y.left-b.left+m.left)/x.x,right:(b.right-y.right+m.right)/x.x}}let E=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=l.detectOverflow?l:{...l,detectOverflow:j},s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=S(u,n,s),d=n,p=0,h={};for(let r=0;r<i.length;r++){let m=i[r];if(!m)continue;let{name:g,fn:y}=m,{x:v,y:w,data:x,reset:b}=await y({x:c,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=w?w:f,h[g]={...h[g],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=S(u,d,s)),r=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:h}};function M(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return i.some(t=>e[t]>=0)}let O=new Set(["left","top"]);async function P(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),l=p(r),a=h(r),s="y"===y(r),u=O.has(l)?-1:1,c=i&&s?-1:1,f=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof v&&(g="end"===a?-1*v:v),s?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function L(){return"u">typeof window}function T(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!L()&&(e instanceof Node||e instanceof _(e).Node)}function K(e){return!!L()&&(e instanceof Element||e instanceof _(e).Element)}function F(e){return!!L()&&(e instanceof HTMLElement||e instanceof _(e).HTMLElement)}function G(e){return!(!L()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof _(e).ShadowRoot)}function z(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function B(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let H=/transform|translate|scale|rotate|perspective|filter/,W=/paint|layout|strict|content/,V=e=>!!e&&"none"!==e;function $(e){let t=K(e)?q(e):e;return V(t.transform)||V(t.translate)||V(t.scale)||V(t.rotate)||V(t.perspective)||!U()&&(V(t.backdropFilter)||V(t.filter))||H.test(t.willChange||"")||W.test(t.contain||"")}function U(){return null==n&&(n="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function X(e){return/^(html|body|#document)$/.test(T(e))}function q(e){return _(e).getComputedStyle(e)}function Y(e){return K(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===T(e))return e;let t=e.assignedSlot||e.parentNode||G(e)&&e.host||N(e);return G(t)?t.host:t}function J(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=Z(t);return X(r)?t.ownerDocument?t.ownerDocument.body:t.body:F(r)&&z(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=_(o);if(!i)return t.concat(o,J(o,[],r));{let e=Q(l);
1return t.concat(l,l.visualViewport||[],z(o)?o:[],e&&r?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=q(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=F(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=s(r)!==i||s(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function et(e){return K(e)?e:e.contextElement}function er(e){let t=et(e);if(!F(t))return c(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ee(t),l=(i?s(r.width):r.width)/n,a=(i?s(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let en=c(0);function eo(e){let t=_(e);return U()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function ei(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),l=et(e),a=c(1);t&&(n?K(n)&&(a=er(n)):a=er(e));let s=(void 0===(o=r)&&(o=!1),n&&(!o||n===_(l))&&o)?eo(l):c(0),u=(i.left+s.x)/a.x,f=(i.top+s.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=_(l),t=n&&K(n)?_(n):n,r=e,o=Q(r);for(;o&&n&&t!==r;){let e=er(o),t=o.getBoundingClientRect(),n=q(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,f*=e.y,d*=e.x,p*=e.y,u+=i,f+=l,o=Q(r=_(o))}}return A({width:d,height:p,x:u,y:f})}function el(e,t){let r=Y(e).scrollLeft;return t?t.left+r:ei(N(e)).left+r}function ea(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-el(e,r),y:r.top+t.scrollTop}}function es(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=_(e),n=N(e),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=U();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let u=el(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else u<=25&&(i+=u);return{width:i,height:l,x:a,y:s}}(e,r);else if("document"===t){let t,r,i,l,s,u,c;n=N(e),t=N(n),r=Y(n),i=n.ownerDocument.body,l=a(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=a(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),u=-r.scrollLeft+el(n),c=-r.scrollTop,"rtl"===q(i).direction&&(u+=a(t.clientWidth,i.clientWidth)-l),o={width:l,height:s,x:u,y:c}}else if(K(t)){let e,n,i,l,a,s;n=(e=ei(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,l=F(t)?er(t):c(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:a,height:s,x:i*l.x,y:n*l.y}}else{let r=eo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return A(o)}function eu(e){return"static"===q(e).position}function ec(e,t){if(!F(e)||"fixed"===q(e).position)return null;if(t)return t(e);let r=e.offsetParent;return N(e)===r&&(r=r.ownerDocument.body),r}function ef(e,t){var r;let n=_(e);if(B(e))return n;if(!F(e)){let t=Z(e);for(;t&&!X(t);){if(K(t)&&!eu(t))return t;t=Z(t)}return n}let o=ec(e,t);for(;o&&(r=o,/^(table|td|th)$/.test(T(r)))&&eu(o);)o=ec(o,t);return o&&X(o)&&eu(o)&&!$(o)?n:o||function(e){let t=Z(e);for(;F(t)&&!X(t);){if($(t))return t;if(B(t))break;t=Z(t)}return null}(e)||n}let ed=async function(e){let t=this.getOffsetParent||ef,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=F(t),o=N(t),i="fixed"===r,l=ei(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=c(0);if(n||!n&&!i)if(("body"!==T(t)||z(o))&&(a=Y(t)),n){let e=ei(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=el(o));i&&!n&&o&&(s.x=el(o));let u=!o||n||i?c(0):ea(o,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i="fixed"===o,l=N(n),a=!!t&&B(t.floating);if(n===l||a&&i)return r;let s={scrollLeft:0,scrollTop:0},u=c(1),f=c(0),d=F(n);if((d||!d&&!i)&&(("body"!==T(n)||z(l))&&(s=Y(n)),d)){let e=ei(n);u=er(n),f.x=e.x+n.clientLeft,f.y=e.y+n.clientTop}let p=!l||d||i?c(0):ea(l,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+f.x+p.x,y:r.y*u.y-s.scrollTop*u.y+f.y+p.y}},getDocumentElement:N,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,i=[..."clippingAncestors"===r?B(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=J(e,[],!1).filter(e=>K(e)&&"body"!==T(e)),o=null,i="fixed"===q(e).position,l=i?Z(e):e;for(;K(l)&&!X(l);){let t=q(l),r=$(l);r||"fixed"!==t.position||(o=null),(i?r||o:!(!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||z(l)&&!r&&function e(t,r){let n=Z(t);return!(n===r||!K(n)||X(n))&&("fixed"===q(n).position||e(n,r))}(e,l)))?o=t:n=n.filter(e=>e!==l),l=Z(l)}return t.set(e,n),n}
1(t,this._c):[].concat(r),n],s=es(t,i[0],o),u=s.top,c=s.right,f=s.bottom,d=s.left;for(let e=1;e<i.length;e++){let r=es(t,i[e],o);u=a(r.top,u),c=l(r.right,c),f=l(r.bottom,f),d=a(r.left,d)}return{width:c-d,height:f-u,x:d,y:u}},getOffsetParent:ef,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ee(e);return{width:t,height:r}},getScale:er,isElement:K,isRTL:function(e){return"rtl"===q(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:s,elements:u,middlewareData:c}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let v=k(p),w={x:r,y:n},x=m(y(o)),b=g(x),R=await s.getDimensions(f),C="y"===x,A=C?"clientHeight":"clientWidth",S=i.reference[b]+i.reference[x]-w[x]-i.floating[b],j=w[x]-i.reference[x],E=await (null==s.getOffsetParent?void 0:s.getOffsetParent(f)),M=E?E[A]:0;M&&await (null==s.isElement?void 0:s.isElement(E))||(M=u.floating[A]||i.floating[b]);let D=M/2-R[b]/2-1,O=l(v[C?"top":"left"],D),P=l(v[C?"bottom":"right"],D),L=M-R[b]-P,T=M/2-R[b]/2+(S/2-j/2),_=a(O,l(T,L)),N=!c.arrow&&null!=h(o)&&T!==_&&i.reference[b]/2-(T<O?O:P)-R[b]/2<0,I=N?T<O?T-O:T-L:0;return{[x]:w[x]+I,data:{[x]:_,centerOffset:T-_-I,...N&&{alignmentOffset:I}},reset:N}}});var eg=r(98477),ey="u">typeof document?o.useLayoutEffect:function(){};function ev(e,t){let r,n,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ev(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!ev(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ew(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ex(e,t){let r=ew(e);return Math.round(t*r)/r}function eb(e){let t=o.useRef(e);return ey(()=>{t.current=e}),t}var eR=r(57797),eC=r(37876),ek=o.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...i}=e;return(0,eC.jsx)(eR.sG.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ek.displayName="Arrow";var eA=r(10714),eS=r(91844),ej=r(62146),eE=r(81285),eM=r(87552),eD="Popper",[eO,eP]=(0,eS.A)(eD),[eL,eT]=eO(eD),e_=e=>{let{__scopePopper:t,children:r}=e,[n,i]=o.useState(null);return(0,eC.jsx)(eL,{scope:t,anchor:n,onAnchorChange:i,children:r})};e_.displayName=eD;var eN="PopperAnchor",eI=o.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,l=eT(eN,r),a=o.useRef(null),s=(0,eA.s)(t,a),u=o.useRef(null);return o.useEffect(()=>{let e=u.current;u.current=n?.current||a.current,e!==u.current&&l.onAnchorChange(u.current)}),n?null:(0,eC.jsx)(eR.sG.div,{...i,ref:s})});eI.displayName=eN;var eK="PopperContent",[eF,eG]=eO(eK),ez=o.forwardRef((e,t)=>{var r,n,i,s,c,f,k,A,S,j,L,T,_;let I,K,F,G,z,B,{__scopePopper:H,side:W="bottom",sideOffset:V=0,align:$="center",alignOffset:U=0,arrowPadding:X=0,avoidCollisions:q=!0,collisionBoundary:Y=[],collisionPadding:Z=0,sticky:Q="partial",hideWhenDetached:ee=!1,updatePositionStrategy:er="optimized",onPlaced:en,...eo}=e,el=eT(eK,H),[ea,es]=o.useState(null),eu=(0,eA.s)(t,e=>es(e)),[ec,ef]=o.useState(null),ed=(0,eM.X)(ec),ek=ed?.width??0,eS=ed?.height??0,eD="number"==typeof Z?Z:{top:0,right:0,bottom:0,left:0,...Z},eO=Array.isArray(Y)?Y:[Y],eP=eO.length>0,eL={padding:eD,boundary:eO.filter(eV),altBoundary:eP},{refs:e_,floatingStyles:eN,placement:eI,isPositioned:eG,middlewareData:ez}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[f,d]=o.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(n);ev(p,n)||h(n);let[m,g]=o.useState(null),[y,v]=o.useState(null),w=o.useCallback(e=>
1{e!==C.current&&(C.current=e,g(e))},[]),x=o.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),b=l||m,R=a||y,C=o.useRef(null),k=o.useRef(null),A=o.useRef(f),S=null!=u,j=eb(u),M=eb(i),D=eb(c),O=o.useCallback(()=>{var e,n;let o,i,l;if(!C.current||!k.current)return;let a={placement:t,strategy:r,middleware:p};M.current&&(a.platform=M.current),(e=C.current,n=k.current,o=new Map,l={...(i={platform:ep,...a}).platform,_c:o},E(e,n,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==D.current};P.current&&!ev(A.current,t)&&(A.current=t,eg.flushSync(()=>{d(t)}))})},[p,t,r,M,D]);ey(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let P=o.useRef(!1);ey(()=>(P.current=!0,()=>{P.current=!1}),[]),ey(()=>{if(b&&(C.current=b),R&&(k.current=R),b&&R){if(j.current)return j.current(b,R,O);O()}},[b,R,O,j,S]);let L=o.useMemo(()=>({reference:C,floating:k,setReference:w,setFloating:x}),[w,x]),T=o.useMemo(()=>({reference:b,floating:R}),[b,R]),_=o.useMemo(()=>{let e={position:r,left:0,top:0};if(!T.floating)return e;let t=ex(T.floating,f.x),n=ex(T.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...ew(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,T.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:O,refs:L,elements:T,floatingStyles:_}),[f,O,L,T,_])}({strategy:"fixed",placement:W+("center"!==$?"-"+$:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,p=et(e),h=i||s?[...p?J(p):[],...t?J(t):[]]:[];h.forEach(e=>{i&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let m=p&&f?function(e,t){let r,n=null,o=N(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function s(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),i();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(c||t(),!m||!g)return;let y={rootMargin:-u(h)+"px "+-u(o.clientWidth-(p+m))+"px "+-u(o.clientHeight-(h+g))+"px "+-u(p)+"px",threshold:a(0,l(1,f))||1},v=!0;function w(t){let n=t[0].intersectionRatio;if(n!==f){if(!v)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||eh(d,e.getBoundingClientRect())||s(),v=!1}try{n=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(w,y)}n.observe(e)}(!0),i}(p,r):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),r()}),p&&!d&&y.observe(p),t&&y.observe(t));let v=d?ei(e):null;return d&&function t(){let n=ei(e);v&&!eh(v,n)&&r(),v=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{i&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===er}),elements:{reference:el.anchor},middleware:[{name:(I={name:"offset",options:n=r={mainAxis:V+eS,alignmentAxis:U},async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,s=await P(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}).name,fn:I.fn,options:[r,void 0]},q&&{name:(K={name:"shift",options:c=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===Q?{fn:(i=void 0,{options:i={},fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=d(i,e),c={x:t,y:r},f=y(n),h=m(f),g=c[h],v=c[f],w=d(a,e),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+x.mainAxis,r=o.reference[h]+o.reference[e]-x.mainAxis;g<t?g=t:g>r&&(g=r)}if(u){var b,R;let e="y"===h?"width":"height",t=O.has(p(n)),r=o.reference[f]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[f])||0)+(t?0:x.crossAxis),i=o.reference[f]+o.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[f])||0)-(t?x.crossAxis:0);v<r?v=r:v>i&&(v=i)}return{[h]:g,[f]:v}}}).fn,options:[void 0,void 0]}:void 0,...eL},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...f}=d(c,e),h={x:t,y:r},g=await o.detectOverflow(e,f),v=y(p(n)),w=m(v),x=h[w],b=h[v];if(i){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",r=x+g[e],n=x-g[t];x=a(r,l(x,n))}if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=b+g[e],n=b-g[t];b=a(r,l(b,n))}let R=u.fn({...e,[w]:x,[v]:b});return{...R,data:{x:R.x-t,y:R.y-r,enabled:{[w]:i,[v]:s}}}}}).name,fn:K.fn,options:[s,void 0]},q&&{name:(F={name:"flip",options:k=f={...eL},async fn(e){var t,r,n,o,i,l,a,s;let u,c,f,{placement:A,middlewareData:S,rects:j,initialPlacement:E,platform:M,elements:D}=e,{mainAxis:O=!0,crossAxis:P=!0,fallbackPlacements:L,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:N=!0,...I}=d(k,e);if(null!=(t=S.arrow)&&t.alignmentOffset)return{};let K=p(A),F=y(E),G=p(E)===E,z=await (null==M.isRTL?void 0:M.isRTL(D.floating)),B=L||(G||!N?[C(E)]:(u=C(E),[v(E),u,v(u)])),H="none"!==_;!L&&H&&B.push(...(c=h(E),f=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?x:w;return t?w:x;case"left":case"right":return t?b:R;default:return[]}}(p(E),"start"===_,z),c&&(f=f.map(e=>e+"-"+c),N&&(f=f.concat(f.map(v)))),f));let W=[E,...B],V=await M.detectOverflow(e,I),$=[],U=(null==(r=S.flip)?void 0:r.overflows)||[];if(O&&$.push(V[K]),P){let e,t,r,n,o=(l=A,a=j,void 0===(s=z)&&(s=!1),e=h(l),r=g(t=m(y(l))),n="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[r]>a.floating[r]&&(n=C(n)),[n,C(n)]);$.push(V[o[0]],V[o[1]])}if(U=[...U,{placement:A,overflows:$}],!$.every(e=>e<=0)){let e=((null==(n=S.flip)?void 0:n.index)||0)+1,t=W[e];if(t&&("alignment"!==P||F===y(t)||U.every(e=>y(e.placement)!==F||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let r=null==(o=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(T){case"bestFit":{let e=null==(i=U.filter(e=>{if(H){let t=y(e.placement);return t===F||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(r=e);break}case"initialPlacement":r=E}if(A!==r)return{reset:{placement:r}}}return{}}}).name,fn:F.fn,options:[f,void 0]},{name:(G={name:"size",options:S=A={...eL,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,r;let n,o,{placement:i,rects:s,platform:u,elements:c}=e,{apply:f=()=>{},...m}=d(S,e),g=await u.detectOverflow(e,m),v=p(i),w=h(i),x="y"===y(i),{width:b,height:R}=s.floating;"top"===v||"bottom"===v?(n=v,o=w===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(o=v,n="end"===w?"top":"bottom");let C=R-g.top-g.bottom,k=b-g.left-g.right,A=l(R-g[n],C),j=l(b-g[o],k),E=!e.middlewareData.shift,M=A,D=j;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(D=k),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(M=C),E&&!w){let e=a(g.left,0),t=a(g.right,0),r=a(g.top,0),n=a(g.bottom,0);x?D=b-2*(0!==e||0!==t?e+t:a(g.left,g.right)):M=R-2*(0!==r||0!==n?r+n:a(g.top,g.bottom))}await f({...e,availableWidth:D,availableHeight:M});let O=await u.getDimensions(c.floating);return b!==O.width||R!==O.height?{reset:{rects:!0}}:{}}}).name,fn:G.fn,options:[A,void 0]},ec&&{name:(z={name:"arrow",options:L=j={element:ec,padding:X},fn(e){let{element:t,padding:r}="function"==typeof L?L(e):L;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?em({element:t.current,padding:r}).fn(e):{}:t?em({element:t,padding:r}).fn(e):{}}}).name,fn:z.fn,options:[j,void 0]},e$({arrowWidth:ek,arrowHeight:eS}),ee&&{name:(B={name:"hide",options:_=T={strategy:"referenceHidden",...eL},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...o}=d(_,e);switch(n){case"referenceHidden":{let n=M(await r.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:D(n)}}}case"escaped":{let n=M(await r.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:D(n)}}}default:return{}}}}).name,fn:B.fn,options:[T,void 0]}]}),[eB,eH]=eU(eI),eW=(0,ej.c)(en);(0,eE.N)(()=>{eG&&eW?.()},[eG,eW]);let eX=ez.arrow?.x,eq=ez.arrow?.y,eY=ez.arrow?.centerOffset!==0,[eZ,eJ]=o.useState();return(0,eE.N)(()=>{ea&&eJ(window.getComputedStyle(ea).zIndex)},[ea]),(0,eC.jsx)("div",{ref:e_.setFloating,"data-radix-popper-content-wrapper":"",style:{...eN,transform:eG?eN.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eZ,"--radix-popper-transform-origin":[ez.transformOrigin?.x,ez.transformOrigin?.y].join(" "),...ez.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eC.jsx)(eF,{scope:H,placedSide:eB,onArrowChange:ef,arrowX:eX,arrowY:eq,shouldHideArrow:eY,children:(0,eC.jsx)(eR.sG.div,{"data-side":eB,"data-align":eH,...eo,ref:eu,style:{...eo.style,animation:eG?void 0:"none"}})})})});ez.displayName=eK;var eB="PopperArrow",eH={top:"bottom",right:"left",bottom:"top",left:"right"},eW=o.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=eG(eB,r),i=eH[o.placedSide];return(0,eC.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eC.jsx)(ek,{...n,ref:t,style:{...n.style,display:"block"}})})});function eV(e){return null!==e}eW.displayName=eB;var e$=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,u]=eU(r),c={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?c:`${f}px`,h=`${-a}px`):"top"===s?(p=i?c:`${f}px`,h=`${n.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?c:`${d}px`):"left"===s&&(p=`${n.floating.width+a}px`,h=i?c:`${d}px`),{data:{x:p,y:h}}}});function eU(e){let[t,r="center"]=e.split("-");return[t,r]}var eX=e_,eq=eI,eY=ez,eZ=eW},87552:(e,t,r)=>{r.d(t,{X:()=>i});var n=r(14232),o=r(81285);function i(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>
1{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;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;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},98295:(e,t,r)=>{r.d(t,{bL:()=>R,zi:()=>C});var n=r(14232),o=r(33716),i=r(10714),l=r(91844),a=r(58162),s=r(61676),u=r(87552),c=r(57797),f=r(37876),d="Switch",[p,h]=(0,l.A)(d),[m,g]=p(d),y=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:l,checked:s,defaultChecked:u,required:p,disabled:h,value:g="on",onCheckedChange:y,form:v,...w}=e,[R,C]=n.useState(null),k=(0,i.s)(t,e=>C(e)),A=n.useRef(!1),S=!R||v||!!R.closest("form"),[j,E]=(0,a.i)({prop:s,defaultProp:u??!1,onChange:y,caller:d});return(0,f.jsxs)(m,{scope:r,checked:j,disabled:h,children:[(0,f.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":j,"aria-required":p,"data-state":b(j),"data-disabled":h?"":void 0,disabled:h,value:g,...w,ref:k,onClick:(0,o.mK)(e.onClick,e=>{E(e=>!e),S&&(A.current=e.isPropagationStopped(),A.current||e.stopPropagation())})}),S&&(0,f.jsx)(x,{control:R,bubbles:!A.current,name:l,value:g,checked:j,required:p,disabled:h,form:v,style:{transform:"translateX(-100%)"}})]})});y.displayName=d;var v="SwitchThumb",w=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,o=g(v,r);return(0,f.jsx)(c.sG.span,{"data-state":b(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});w.displayName=v;var x=n.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:o=!0,...l},a)=>{let c=n.useRef(null),d=(0,i.s)(c,a),p=(0,s.Z)(r),h=(0,u.X)(t);return n.useEffect(()=>{let e=c.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[p,r,o]),(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function b(e){return e?"checked":"unchecked"}x.displayName="SwitchBubbleInput";var R=y,C=w}}]);
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.