1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4028],{20063:(e,t,n)=>{var r=n(47260);n.o(r,"permanentRedirect")&&n.d(t,{permanentRedirect:function(){return r.permanentRedirect}}),n.o(r,"redirect")&&n.d(t,{redirect:function(){return r.redirect}}),n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}}),n.o(r,"useSelectedLayoutSegments")&&n.d(t,{useSelectedLayoutSegments:function(){return r.useSelectedLayoutSegments}})},24033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},49227:(e,t,n)=>{n.d(t,{UC:()=>tu,YJ:()=>ts,q7:()=>tf,JU:()=>tc,ZL:()=>ta,bL:()=>ti,wv:()=>td,l9:()=>tl});var r,o=n(12115),i=n(92556),l=n(94446),a=n(3468),u=n(23558),s=n(97602);function c(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function f(e,t){var n=c(e,t,"get");return n.get?n.get.call(e):n.value}function d(e,t,n){var r=c(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}var p=n(32467),h=n(95155);function m(e){let t=e+"CollectionProvider",[n,r]=(0,a.A)(t),[i,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=o.useRef(null),l=o.useRef(new Map).current;return(0,h.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})};s.displayName=t;let c=e+"CollectionSlot",f=(0,p.TL)(c),d=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=u(c,n),i=(0,l.s)(t,o.collectionRef);return(0,h.jsx)(f,{ref:i,children:r})});d.displayName=c;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,p.TL)(m),w=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=o.useRef(null),s=(0,l.s)(t,a),c=u(m,n);return o.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),(0,h.jsx)(g,{...{[v]:""},ref:s,children:r})});return w.displayName=m,[{Provider:s,Slot:d,ItemSlot:w},function(t){let n=u(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var v=new WeakMap;function g(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=w(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function w(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap,class e extends Map{set(e,t){return v.get(this)&&(this.has(e)?f(this,r)[f(this,r).indexOf(e)]=e:f(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let o,i=this.has(t),l=f(this,r).length,a=w(e),u=a>=0?a:l+a,s=u<0||u>=l?-1:u;if(s===this.size||i&&s===this.size-1||-1===s)return this.set(t,n),this;let c=this.size+ +!i;a<0&&u++;let d=[...f(this,r)],p=!1;for(let e=u;e<c;e++)if(u===e){let r=d[e];d[e]===t&&(r=d[e+1]),i&&this.delete(t),o=this.get(r),this.set(t,n)}else{p||d[e-1]!==t||(p=!0);let n=d[p?e:e-1],r=o;o=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=f(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let o=f(this,r).indexOf(e);return -1===o?this:this.insert(o,t,n)}after(e){let t=f(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let o=f(this,r).indexOf(e);return -1===o?this:this.insert(o+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return d(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&f(this,r).splice(f(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=g(f(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=g(f(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return f(this,r).indexOf(e)}keyAt(e){return g(f(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,l=null!=o?o:this.at(0);for(let e of this)l=0===i&&1===t.length?e:Reflect.apply(r,this,[l,e,i,this]),i++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,r,{writable:!0,value:void 0}),d(this,r,[...super.keys()]),v.set(this,!0)}};var y=o.createContext(void 0);function x(e){let t=o.useContext(y);return e||t||"ltr"}var b=n(44831),R=n(19526),C=n(69666),A=n(68946),M=n(57641),S=n(75433),D=n(76842),k=n(70222),P="rovingFocusGroup.onEntryFocus",j={bubbles:!1,cancelable:!0},E="RovingFocusGroup",[O,T,L]=m(E),[_,I]=(0,a.A)(E,[L]),[K,F]=_(E),N=o.forwardRef((e,t)=>(0,h.jsx)(O.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(O.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(z,{...e,ref:t})})}));N.displayName=E;var z=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...g}=e,w=o.useRef(null),y=(0,l.s)(t,w),b=x(c),[R,C]=(0,u.i)({prop:f,defaultProp:null!=d?d:null,onChange:p,caller:E}),[A,M]=o.useState(!1),S=(0,k.c)(m),D=T(n),O=o.useRef(!1),[L,_]=o.useState(0);return o.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(P,S),()=>e.removeEventListener(P,S)},[S]),(0,h.jsx)(K,{scope:n,orientation:r,dir:b,loop:a,currentTabStopId:R,onItemFocus:o.useCallback(e=>C(e),[C]),onItemShiftTab:o.useCallback(()=>M(!0),[]),onFocusableItemAdd:o.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>_(e=>e-1),[]),children:(0,h.jsx)(s.sG.div,{tabIndex:A||0===L?-1:0,"data-orientation":r,...g,ref:y,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(P,j);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);W([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),v)}}O.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>M(!1))})})}),B="RovingFocusGroupItem",G=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:l=!1,tabStopId:a,children:u,...c}=e,f=(0,A.B)(),d=a||f,p=F(B,n),m=p.currentTabStopId===d,v=T(n),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:y}=p;return o.useEffect(()=>{if(r)return g(),()=>w()},[r,g,w]),(0,h.jsx)(O.ItemSlot,{scope:n,id:d,focusable:r,active:l,children:(0,h.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{r?p.onItemFocus(d):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return H[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>W(n))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=y}):u})})});G.displayName=B;var H={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function W(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var V=n(97745),U=n(14432),X=["Enter"," "],Y=["ArrowUp","PageDown","End"],q=["ArrowDown","PageUp","Home",...Y],$={ltr:[...X,"ArrowRight"],rtl:[...X,"ArrowLeft"]},Z={ltr:["ArrowLeft"],rtl:["ArrowRight"]},J="Menu",[Q,ee,et]=m(J),[en,er]=(0,a.A)(J,[et,M.Bk,I]),eo=(0,M.Bk)(),ei=I(),[el,ea]=en(J),[eu,es]=en(J),ec=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:a=!0}=e,u=eo(t),[s,c]=o.useState(null),f=o.useRef(!1),d=(0,k.c)(l),p=x(i);return o.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})}},[]),o.useEffect(()=>{if(!n)return;let e=()=>d(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,d]),(0,h.jsx)(M.bL,{...u,children:(0,h.jsx)(el,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:c,children:(0,h.jsx)(eu,{scope:t,onClose:o.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:a,children:r})})})};ec.displayName=J;var ef=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=eo(n);return(0,h.jsx)(M.Mz,{...o,...r,ref:t})});ef.displayName="MenuAnchor";var ed="MenuPortal",[ep,eh]=en(ed,{forceMount:void 0}),em=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=ea(ed,t);return(0,h.jsx)(ep,{scope:t,forceMount:n,children:(0,h.jsx)(D.C,{present:n||i.open,children:(0,h.jsx)(S.Z,{asChild:!0,container:o,children:r})})})};em.displayName=ed;var ev="MenuContent",[eg,ew]=en(ev),ey=o.forwardRef((e,t)=>{let n=eh(ev,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ea(ev,e.__scopeMenu),l=es(ev,e.__scopeMenu);return(0,h.jsx)(Q.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(D.C,{present:r||i.open,children:(0,h.jsx)(Q.Slot,{scope:e.__scopeMenu,children:l.modal?(0,h.jsx)(ex,{...o,ref:t}):(0,h.jsx)(eb,{...o,ref:t})})})})}),ex=o.forwardRef((e,t)=>{let n=ea(ev,e.__scopeMenu),r=o.useRef(null),a=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,V.Eq)(e)},[]),(0,h.jsx)(eC,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eb=o.forwardRef((e,t)=>{let n=ea(ev,e.__scopeMenu);return(0,h.jsx)(eC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),eR=(0,p.TL)("MenuContent.ScrollLock"),eC=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,onDismiss:g,disableOutsideScroll:w,...y}=e,x=ea(ev,n),A=es(ev,n),S=eo(n),D=ei(n),k=ee(n),[P,j]=o.useState(null),E=o.useRef(null),O=(0,l.s)(t,E,x.onContentChange),T=o.useRef(0),L=o.useRef(""),_=o.useRef(0),I=o.useRef(null),K=o.useRef("right"),F=o.useRef(0),z=w?U.A:o.Fragment;o.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,R.Oh)();let B=o.useCallback(e=>{var t,n;return K.current===(null==(t=I.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;
1i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,c=a.x,f=a.y;s>r!=f>r&&n<(c-u)*(r-s)/(f-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=I.current)?void 0:n.area)},[]);return(0,h.jsx)(eg,{scope:n,searchRef:L,onItemEnter:o.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:o.useCallback(e=>{var t;B(e)||(null==(t=E.current)||t.focus(),j(null))},[B]),onTriggerLeave:o.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:_,onPointerGraceIntentChange:o.useCallback(e=>{I.current=e},[]),children:(0,h.jsx)(z,{...w?{as:eR,allowPinchZoom:!0}:void 0,children:(0,h.jsx)(C.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.mK)(u,e=>{var t;e.preventDefault(),null==(t=E.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,h.jsx)(b.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,onDismiss:g,children:(0,h.jsx)(N,{asChild:!0,...D,dir:A.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:j,onEntryFocus:(0,i.mK)(f,e=>{A.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,h.jsx)(M.UC,{role:"menu","aria-orientation":"vertical","data-state":eq(x.open),"data-radix-menu-content":"",dir:A.dir,...S,...y,ref:O,style:{outline:"none",...y.style},onKeyDown:(0,i.mK)(y.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=L.current+e,o=k().filter(e=>!e.disabled),i=document.activeElement,l=null==(t=o.find(e=>e.ref.current===i))?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,l=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(l=l.filter(e=>e!==n));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,l),u=null==(n=o.find(e=>e.textValue===a))?void 0:n.ref.current;!function e(t){L.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())})(e.key));let o=E.current;if(e.target!==o||!q.includes(e.key))return;e.preventDefault();let i=k().filter(e=>!e.disabled).map(e=>e.ref.current);Y.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),L.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,eJ(e=>{let t=e.target,n=F.current!==e.clientX;e.currentTarget.contains(t)&&n&&(K.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});ey.displayName=ev;var eA=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(s.sG.div,{role:"group",...r,ref:t})});eA.displayName="MenuGroup";var eM=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(s.sG.div,{...r,ref:t})});eM.displayName="MenuLabel";var eS="MenuItem",eD="menu.itemSelect",ek=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...a}=e,u=o.useRef(null),c=es(eS,e.__scopeMenu),f=ew(eS,e.__scopeMenu),d=(0,l.s)(t,u),p=o.useRef(!1);return(0,h.jsx)(eP,{...a,ref:d,disabled:n,onClick:(0,i.mK)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(eD,{bubbles:!0,cancelable:!0});e.addEventListener(eD,e=>null==r?void 0:r(e),{once:!0}),(0,s.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),p.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;n||t&&" "===e.key||X.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ek.displayName=eS;var eP=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...u}=e,c=ew(eS,n),f=ei(n),d=o.useRef(null),p=(0,l.s)(t,d),[m,v]=o.useState(!1),[g,w]=o.useState("");return o.useEffect(()=>{let e=d.current;if(e){var t;w((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,h.jsx)(Q.ItemSlot,{scope:n,disabled:r,textValue:null!=a?a:g,children:(0,h.jsx)(G,{asChild:!0,...f,focusable:!r,children:(0,h.jsx)(s.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:p,onPointerMove:(0,i.mK)(e.onPointerMove,eJ(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focu
1s({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eJ(e=>c.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>v(!0)),onBlur:(0,i.mK)(e.onBlur,()=>v(!1))})})})}),ej=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,h.jsx)(eF,{scope:e.__scopeMenu,checked:n,children:(0,h.jsx)(ek,{role:"menuitemcheckbox","aria-checked":e$(n)?"mixed":n,...o,ref:t,"data-state":eZ(n),onSelect:(0,i.mK)(o.onSelect,()=>null==r?void 0:r(!!e$(n)||!n),{checkForDefaultPrevented:!1})})})});ej.displayName="MenuCheckboxItem";var eE="MenuRadioGroup",[eO,eT]=en(eE,{value:void 0,onValueChange:()=>{}}),eL=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,k.c)(r);return(0,h.jsx)(eO,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,h.jsx)(eA,{...o,ref:t})})});eL.displayName=eE;var e_="MenuRadioItem",eI=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=eT(e_,e.__scopeMenu),l=n===o.value;return(0,h.jsx)(eF,{scope:e.__scopeMenu,checked:l,children:(0,h.jsx)(ek,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":eZ(l),onSelect:(0,i.mK)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});eI.displayName=e_;var eK="MenuItemIndicator",[eF,eN]=en(eK,{checked:!1}),ez=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=eN(eK,n);return(0,h.jsx)(D.C,{present:r||e$(i.checked)||!0===i.checked,children:(0,h.jsx)(s.sG.span,{...o,ref:t,"data-state":eZ(i.checked)})})});ez.displayName=eK;var eB=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(s.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eB.displayName="MenuSeparator";var eG=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=eo(n);return(0,h.jsx)(M.i3,{...o,...r,ref:t})});eG.displayName="MenuArrow";var[eH,eW]=en("MenuSub"),eV="MenuSubTrigger",eU=o.forwardRef((e,t)=>{let n=ea(eV,e.__scopeMenu),r=es(eV,e.__scopeMenu),a=eW(eV,e.__scopeMenu),u=ew(eV,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=u,d={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>p,[p]),o.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,h.jsx)(ef,{asChild:!0,...d,children:(0,h.jsx)(eP,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?a.contentId:void 0,"data-state":eq(n.open),...e,ref:(0,l.t)(t,a.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,eJ(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eJ(e=>{var t,r;p();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],a=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:l,y:o.bottom}],side:t}),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,i.mK)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&$[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null==(i=n.content)||i.focus(),t.preventDefault()}})})})});eU.displayName=eV;var eX="MenuSubContent",eY=o.forwardRef((e,t)=>{let n=eh(ev,e.__scopeMenu),{forceMount:r=n.forceMount,align:a="start",...u}=e,s=ea(ev,e.__scopeMenu),c=es(ev,e.__scopeMenu),f=eW(eX,e.__scopeMenu),d=o.useRef(null),p=(0,l.s)(t,d);return(0,h.jsx)(Q.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(D.C,{present:r||s.open,children:(0,h.jsx)(Q.Slot,{scope:e.__scopeMenu,children:(0,h.jsx)(eC,{id:f.contentId,"aria-labelledby":f.triggerId,...u,ref:p,align:a,side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;
1c.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Z[c.dir].includes(e.key);if(t&&n){var r;s.onOpenChange(!1),null==(r=f.trigger)||r.focus(),e.preventDefault()}})})})})})});function eq(e){return e?"open":"closed"}function e$(e){return"indeterminate"===e}function eZ(e){return e$(e)?"indeterminate":e?"checked":"unchecked"}function eJ(e){return t=>"mouse"===t.pointerType?e(t):void 0}eY.displayName=eX;var eQ="DropdownMenu",[e0,e1]=(0,a.A)(eQ,[er]),e2=er(),[e5,e4]=e0(eQ),e6=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:a,modal:s=!0}=e,c=e2(t),f=o.useRef(null),[d,p]=(0,u.i)({prop:i,defaultProp:null!=l&&l,onChange:a,caller:eQ});return(0,h.jsx)(e5,{scope:t,triggerId:(0,A.B)(),triggerRef:f,contentId:(0,A.B)(),open:d,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,h.jsx)(ec,{...c,open:d,onOpenChange:p,dir:r,modal:s,children:n})})};e6.displayName=eQ;var e7="DropdownMenuTrigger",e3=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=e4(e7,n),u=e2(n);return(0,h.jsx)(ef,{asChild:!0,...u,children:(0,h.jsx)(s.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,l.t)(t,a.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e3.displayName=e7;var e9=e=>{let{__scopeDropdownMenu:t,...n}=e,r=e2(t);return(0,h.jsx)(em,{...r,...n})};e9.displayName="DropdownMenuPortal";var e8="DropdownMenuContent",te=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,l=e4(e8,n),a=e2(n),u=o.useRef(!1);return(0,h.jsx)(ey,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=l.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(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)"}})});te.displayName=e8;var tt=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(eA,{...o,...r,ref:t})});tt.displayName="DropdownMenuGroup";var tn=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(eM,{...o,...r,ref:t})});tn.displayName="DropdownMenuLabel";var tr=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(ek,{...o,...r,ref:t})});tr.displayName="DropdownMenuItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(ej,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(eL,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(eI,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(ez,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator";var to=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(eB,{...o,...r,ref:t})});to.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(eG,{...o,...r,ref:t})}).displayName="DropdownMenuArrow",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(eU,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=e2(n);return(0,h.jsx)(eY,{...o,...r,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 ti=e6,tl=e3,ta=e9,tu=te,ts=tt,tc=tn,tf=tr,td=to},57641:(e,t,n)=>{let r;n.d(t,{Mz:()=>eY,i3:()=>e$,UC:()=>eq,bL:()=>eX,Bk:()=>eE});var o=n(12115);let i=["top","right","bottom","left"],l=Math.min,a=Math.max,u=Math.round,s=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 v(e){return"y"===e?"height":"width"}function g(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function w(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["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 A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function M(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function S(e,t,n){let r,{reference:o,floating:i}=e,l=g(t),a=m(g(t)),u=v(a),s=p(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,w=o[u]/2-i[u]/2;switch(s){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(h(t)){case"start":r[a]-=w*(n&&c?-1:1);break;case"end":r[a]+=w*(n&&c?-1:1)}return r}async function D(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=A(h),v=a[p?"floating"===f?"reference":"floating":f],g=M(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),w="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=M(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:u}):w);return{top:(g.top-b.top+m.top)/x.y,bottom:(b.bottom-g.bottom+m.bottom)/x.y,left:(g.left-b.left+m.left)/x.x,right:(b.right-g.right+m.right)/x.x}}let k=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:D},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=S(s,r,u),d=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:v,fn:g}=m,{x:w,y:y,data:x,reset:b}=await g({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=w?w:c,f=null!=y?y:f,h[v]={...h[v],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=S(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:h}};function P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return i.some(t=>e[t]>=0)}let E=new Set(["left","top"]);async function O(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=p(n),a=h(n),u="y"===g(n),s=E.has(l)?-1:1,c=i&&u?-1:1,f=d(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:w}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof w&&(v="end"===a?-1*w:w),u?{x:v*c,y:m*s}:{x:m*s,y:v*c}}function T(){return"undefined"!=typeof window}function L(e){return K(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(K(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function K(e){return!!T()&&(e instanceof Node||e instanceof _(e).Node)}function F(e){return!!T()&&(e instanceof Element||e instanceof _(e).Element)}function N(e){return!!T()&&(e instanceof HTMLElement||e instanceof _(e).HTMLElement)}function z(e){return!!T()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof _(e).ShadowRoot)}function B(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function G(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 U(e){let t=F(e)?q(e):e;return V(t.transform)||V(t.translate)||V(t.scale)||V(t.rotate)||V(t.perspective)||!X()&&(V(t.backdropFilter)||V(t.filter))||H.test(t.willChange||"")||W.test(t.contain||"")}function X(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Y(e){return/^(html|body|#document)$/.test(L(e))}function q(e){return _(e).getComputedStyle(e)}function $(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===L(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||I(e);return z(t)?t.host:t}function J(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=Z(t);return Y(n)?t.ownerDocument?t.ownerDocument.body:t.body:N(n)&&B(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=_(o);if(!i)return t.concat(o,J(o,[],n));{let e=Q(l);
1return t.concat(l,l.visualViewport||[],B(o)?o:[],e&&n?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=N(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=u(n)!==i||u(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function et(e){return F(e)?e:e.contextElement}function en(e){let t=et(e);if(!N(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ee(t),l=(i?u(n.width):n.width)/r,a=(i?u(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let er=c(0);function eo(e){let t=_(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function ei(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=et(e),a=c(1);t&&(r?F(r)&&(a=en(r)):a=en(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===_(l))&&o)?eo(l):c(0),s=(i.left+u.x)/a.x,f=(i.top+u.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=_(l),t=r&&F(r)?_(r):r,n=e,o=Q(n);for(;o&&r&&t!==n;){let e=en(o),t=o.getBoundingClientRect(),r=q(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,f*=e.y,d*=e.x,p*=e.y,s+=i,f+=l,o=Q(n=_(o))}}return M({width:d,height:p,x:s,y:f})}function el(e,t){let n=$(e).scrollLeft;return t?t.left+n:ei(I(e)).left+n}function ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}function eu(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=_(e),r=I(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=X();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=el(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=I(e),n=$(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+el(e),u=-n.scrollTop;return"rtl"===q(r).direction&&(l+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:u}}(I(e));else if(F(t))r=function(e,t){let n=ei(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=N(e)?en(e):c(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return M(r)}function es(e){return"static"===q(e).position}function ec(e,t){if(!N(e)||"fixed"===q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function ef(e,t){var n;let r=_(e);if(G(e))return r;if(!N(e)){let t=Z(e);for(;t&&!Y(t);){if(F(t)&&!es(t))return t;t=Z(t)}return r}let o=ec(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(L(n)))&&es(o);)o=ec(o,t);return o&&Y(o)&&es(o)&&!U(o)?r:o||function(e){let t=Z(e);for(;N(t)&&!Y(t);){if(U(t))return t;if(G(t))break;t=Z(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||ef,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=N(t),o=I(t),i="fixed"===n,l=ei(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=c(0);if(r||!r&&!i)if(("body"!==L(t)||B(o))&&(a=$(t)),r){let e=ei(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=el(o));i&&!r&&o&&(u.x=el(o));let s=!o||r||i?c(0):ea(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=I(r),a=!!t&&G(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=c(1),f=c(0),d=N(r);if((d||!d&&!i)&&(("body"!==L(r)||B(l))&&(u=$(r)),d)){let e=ei(r);s=en(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||i?c(0):ea(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+f.x+p.x,y:n.y*s.y-u.scrollTop*s.y+f.y+p.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?G(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=J(e,[],!1).filter(e=>F(e)&&"body"!==L(e)),o=null,i="fixed"===q(e).position,l=i?Z(e):e;for(;F(l)&&!Y(l);){let t=q(l),n=U(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||B(l)&&!n&&function e(t,n){let r=Z(t);return!(r===n||!F(r)||Y(r))&&("fixed"===q(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=Z(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=eu(t,i[0],o),s=u.top,c=u.right,f=u.bottom,d=u.left;for(let e=1;e<i.length;e++){let n=eu(t,i[e],o);s=a(n.top,s),c=l(n.right,c),f=l(n.bottom,f),d=a(n.left,d)}return{width:c-d,height:f-s,x:d,y:s}},getOffsetParent:ef,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:F,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:n,y:r,placement:o,rects:i,platform:u,elements:s,middlewareData:c}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let w=A(p),y={x:n,y:r},x=m(g(o)),b=v(x),R=await u.getDimensions(f),C="y"===x,M=C?"clientHeight":"clientWidth",S=i.reference[b]+i.reference[x]-y[x]-i.floating[b],D=y[x]-i.reference[x],k=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),P=k?k[M]:0;P&&await (null==u.isElement?void 0:u.isElement(k))||(P=s.floating[M]||i.floating[b]);
1let j=P/2-R[b]/2-1,E=l(w[C?"top":"left"],j),O=l(w[C?"bottom":"right"],j),T=P-R[b]-O,L=P/2-R[b]/2+(S/2-D/2),_=a(E,l(L,T)),I=!c.arrow&&null!=h(o)&&L!==_&&i.reference[b]/2-(L<E?E:O)-R[b]/2<0,K=I?L<E?L-E:L-T:0;return{[x]:y[x]+K,data:{[x]:_,centerOffset:L-_-K,...I&&{alignmentOffset:K}},reset:I}}});var ev=n(47650),eg="undefined"!=typeof document?o.useLayoutEffect:function(){};function ew(e,t){let n,r,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((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ew(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ew(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ey(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ex(e,t){let n=ey(e);return Math.round(t*n)/n}function eb(e){let t=o.useRef(e);return eg(()=>{t.current=e}),t}var eR=n(97602),eC=n(95155),eA=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eC.jsx)(eR.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eA.displayName="Arrow";var eM=n(94446),eS=n(3468),eD=n(70222),ek=n(4129),eP="Popper",[ej,eE]=(0,eS.A)(eP),[eO,eT]=ej(eP),eL=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,a]=o.useState(void 0);return(0,eC.jsx)(eO,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:a,children:n})};eL.displayName=eP;var e_="PopperAnchor",eI=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=eT(e_,n),a=o.useRef(null),u=l.onAnchorChange,s=o.useCallback(e=>{a.current=e,e&&u(e)},[u]),c=(0,eM.s)(t,s),f=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=f.current;f.current=r.current,e!==f.current&&u(f.current)});let d=l.placementState&&eU(l.placementState),p=null==d?void 0:d[0],h=null==d?void 0:d[1];return r?null:(0,eC.jsx)(eR.sG.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...i,ref:c})});eI.displayName=e_;var eK="PopperContent",[eF,eN]=ej(eK),ez=o.forwardRef((e,t)=>{var n,r,i,u,c,f,A,M;let{__scopePopper:S,side:D="bottom",sideOffset:T=0,align:L="center",alignOffset:_=0,arrowPadding:K=0,avoidCollisions:F=!0,collisionBoundary:N=[],collisionPadding:z=0,sticky:B="partial",hideWhenDetached:G=!1,updatePositionStrategy:H="optimized",onPlaced:W,...V}=e,U=eT(eK,S),[X,Y]=o.useState(null),q=(0,eM.s)(t,e=>Y(e)),[$,Z]=o.useState(null),Q=function(e){let[t,n]=o.useState(void 0);return(0,ek.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,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;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}($),ee=null!=(A=null==Q?void 0:Q.width)?A:0,en=null!=(M=null==Q?void 0:Q.height)?M:0,er="number"==typeof z?z:{top:0,right:0,bottom:0,left:0,...z},eo=Array.isArray(N)?N:[N],el=eo.length>0,ea={padding:er,boundary:eo.filter(eW),altBoundary:el},{refs:eu,floatingStyles:es,placement:ec,isPositioned:ef,middlewareData:ed}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);ew(p,r)||h(r);let[m,v]=o.useState(null),[g,w]=o.useState(null),y=o.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),x=o.useCallback(e=>{e!==A.current&&(A.current=e,w(e))},[]),b=l||m,R=a||g,C=o.useRef(null),A=o.useRef(null),M=o.useRef(f),S=null!=s,D=eb(s),P=eb(i),j=eb(c),E=o.useCallback(()=>{if(!C.current||!A.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),((e,t,n)=>{let r=new Map,o={platform:ep,...n},i={...o.platform,_c:r};return k(e,t,{...o,platform:i})})(C.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};O.current&&!ew(M.current,t)&&(M.current=t,ev.flushSync(()=>{d(t)}))})},[p,t,n,P,j]);eg(()=>{!1===c&&M.current.isPositioned&&(M.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let O=o.useRef(!1);eg(()=>(O.current=!0,()=>{O.current=!1}),[]),eg(()=>{if(b&&(C.current=b),R&&(A.current=R),b&&R){if(D.current)return D.current(b,R,E);E()}},[b,R,E,D,S]);let T=o.useMemo(()=>({reference:C,floating:A,setReference:y,setFloating:x}),[y,x]),L=o.useMemo(()=>({reference:b,floating:R}),[b,R]),_=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=ex(L.floating,f.x),r=ex(L.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...ey(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,L.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:E,refs:T,elements:L,floatingStyles:_}),[f,E,T,L,_])}({strategy:"fixed",placement:D+("center"!==L?"-"+L:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=et(e),h=i||u?[...p?J(p):[],...t?J(t):[]]:[];
1h.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&f?function(e,t){let n,r=null,o=I(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),i();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=d;if(c||t(),!m||!v)return;let g=s(h),w=s(o.clientWidth-(p+m)),y={rootMargin:-g+"px "+-w+"px "+-s(o.clientHeight-(h+v))+"px "+-s(p)+"px",threshold:a(0,l(1,f))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==f){if(!x)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||eh(d,e.getBoundingClientRect())||u(),x=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),i}(p,n):null,v=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),t&&g.observe(t));let w=d?ei(e):null;return d&&function t(){let r=ei(e);w&&!eh(w,r)&&n(),w=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{i&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===H})},elements:{reference:U.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await O(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:T+en,alignmentAxis:_}),F&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:u=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=d(e,t),h={x:n,y:r},v=await i.detectOverflow(t,f),w=g(p(o)),y=m(w),x=h[y],b=h[w];if(u){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+v[e],r=x-v[t];x=a(n,l(x,r))}if(s){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=b+v[e],r=b-v[t];b=a(n,l(b,r))}let R=c.fn({...t,[y]:x,[w]:b});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[y]:u,[w]:s}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===B?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=d(e,t),c={x:n,y:r},f=g(o),h=m(f),v=c[h],w=c[f],y=d(a,t),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+x.mainAxis,n=i.reference[h]+i.reference[e]-x.mainAxis;v<t?v=t:v>n&&(v=n)}if(s){var b,R;let e="y"===h?"width":"height",t=E.has(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[f])||0)+(t?0:x.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[f])||0)-(t?x.crossAxis:0);w<n?w=n:w>r&&(w=r)}return{[h]:v,[f]:w}}}}(e).fn,options:[e,t]}))():void 0,...ea}),F&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:A}=t,{mainAxis:M=!0,crossAxis:S=!0,fallbackPlacements:D,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:j=!0,...E}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let O=p(a),T=g(c),L=p(c)===c,_=await (null==f.isRTL?void 0:f.isRTL(A.floating)),I=D||(L||!j?[C(c)]:function(e){let t=C(e);return[w(e),t,w(t)]}(c)),K="none"!==P;!D&&K&&I.push(...function(e,t,n,r){let o=h(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:y;return t?y:x;case"left":case"right":return t?b:R;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}(c,j,P,_));let F=[c,...I],N=await f.detectOverflow(t,E),z=[],B=(null==(r=u.flip)?void 0:r.overflows)||[];if(M&&z.push(N[O]),S){let e=function(e,t,n){void 0===n&&(n=!1);
1let r=h(e),o=m(g(e)),i=v(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=C(l)),[l,C(l)]}(a,s,_);z.push(N[e[0]],N[e[1]])}if(B=[...B,{placement:a,overflows:z}],!z.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=F[e];if(t&&("alignment"!==S||T===g(t)||B.every(e=>g(e.placement)!==T||e.overflows[0]>0)))return{data:{index:e,overflows:B},reset:{placement:t}};let n=null==(i=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(k){case"bestFit":{let e=null==(l=B.filter(e=>{if(K){let t=g(e.placement);return t===T||"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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ea}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:u,rects:s,platform:c,elements:f}=t,{apply:m=()=>{},...v}=d(e,t),w=await c.detectOverflow(t,v),y=p(u),x=h(u),b="y"===g(u),{width:R,height:C}=s.floating;"top"===y||"bottom"===y?(o=y,i=x===(await (null==c.isRTL?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(i=y,o="end"===x?"top":"bottom");let A=C-w.top-w.bottom,M=R-w.left-w.right,S=l(C-w[o],A),D=l(R-w[i],M),k=!t.middlewareData.shift,P=S,j=D;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=M),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=A),k&&!x){let e=a(w.left,0),t=a(w.right,0),n=a(w.top,0),r=a(w.bottom,0);b?j=R-2*(0!==e||0!==t?e+t:a(w.left,w.right)):P=C-2*(0!==n||0!==r?n+r:a(w.top,w.bottom))}await m({...t,availableWidth:j,availableHeight:P});let E=await c.getDimensions(f.floating);return R!==E.width||C!==E.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ea,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),$&&((e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?em({element:n.current,padding:r}).fn(t):{}:n?em({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:$,padding:K}),eV({arrowWidth:ee,arrowHeight:en}),G&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=d(e,t);switch(o){case"referenceHidden":{let e=P(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:j(e)}}}case"escaped":{let e=P(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:j(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...ea,boundary:el?ea.boundary:void 0})]}),eA=U.setPlacementState;(0,ek.N)(()=>(eA(ec),()=>{eA(void 0)}),[ec,eA]);let[eS,eP]=eU(ec),ej=(0,eD.c)(W);(0,ek.N)(()=>{ef&&(null==ej||ej())},[ef,ej]);let eE=null==(n=ed.arrow)?void 0:n.x,eO=null==(r=ed.arrow)?void 0:r.y,eL=(null==(i=ed.arrow)?void 0:i.centerOffset)!==0,[e_,eI]=o.useState();return(0,ek.N)(()=>{X&&eI(window.getComputedStyle(X).zIndex)},[X]),(0,eC.jsx)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...es,transform:ef?es.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e_,"--radix-popper-transform-origin":[null==(u=ed.transformOrigin)?void 0:u.x,null==(c=ed.transformOrigin)?void 0:c.y].join(" "),...(null==(f=ed.hide)?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eC.jsx)(eF,{scope:S,placedSide:eS,placedAlign:eP,onArrowChange:Z,arrowX:eE,arrowY:eO,shouldHideArrow:eL,children:(0,eC.jsx)(eR.sG.div,{"data-side":eS,"data-align":eP,...V,ref:q,style:{...V.style,animation:ef?void 0:"none"}})})})});
1ez.displayName=eK;var eB="PopperArrow",eG={top:"bottom",right:"left",bottom:"top",left:"right"},eH=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eN(eB,n),i=eG[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)(eA,{...r,ref:t,style:{...r.style,display:"block"}})})});function eW(e){return null!==e}eH.displayName=eB;var eV=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=eU(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+f/2,g=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+d/2,w="",y="";return"bottom"===p?(w=c?m:"".concat(v,"px"),y="".concat(-d,"px")):"top"===p?(w=c?m:"".concat(v,"px"),y="".concat(u.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),y=c?m:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+d,"px"),y=c?m:"".concat(g,"px")),{data:{x:w,y}}}});function eU(e){let[t,n="center"]=e.split("-");return[t,n]}var eX=eL,eY=eI,eq=ez,e$=eH},84497:(e,t,n)=>{n.d(t,{A:()=>r});function r(e){return e}},85921:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])}}]);
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.