PageSourceSearch

https://www.coverbase.com/_next/static/immutable/chunks/1av7iphuw-4l4.js

js coverbase.com collected 2026-10-04 13:24:45 UTC 121,077 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,427397,e=>{"use strict";var t=e.i(7667),n=e.i(880269),r=e.i(721472),i=e.i(303131),o=e.i(512042),l=e.i(871689),s=e.i(747054),u=e.i(473444),a=e.i(699397),c=e.i(400449),f=e.i(261569),d=e.i(516948),g=e.i(479995),p=e.i(114825),m=e.i(553796),h=e.i(484212),v=e.i(624582),b=e.i(24781),y=e.i(559945),E=e.i(520322),w=e.i(980547),x=e.i(611463),S=e.i(90173),R=e.i(568995),T=e.i(464999),C=e.i(668984),A=e.i(333134),O=e.i(169605),k=e.i(947714),L=e.i(727448);let I=[];function P(){I=I.filter(e=>e.deref()?.isConnected)}function M(e){P(),e&&"body"!==(0,n.getNodeName)(e)&&(I.push(new WeakRef(e)),I.length>20&&(I=I.slice(-20)))}function N(){return P(),I[I.length-1]?.deref()}function D(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,b.focusable)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,b.isTabbable)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),n=e.getAttribute("tabindex");0===t.length?"0"!==n&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==n||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}e.s(["FloatingFocusManager",0,function(e){let{context:I,children:W,disabled:F=!1,initialFocus:H=!0,returnFocus:_=!0,restoreFocus:B=!1,modal:V=!0,closeOnFocusOut:j=!0,openInteractionType:Y="",nextFocusableElement:U,previousFocusableElement:$,beforeContentFocusGuardRef:q,externalTree:K,getInsideElements:z}=e,G="rootStore"in I?I.rootStore:I,X=G.useState("open"),J=G.useState("domReferenceElement"),Q=G.useState("floatingElement"),{events:Z,dataRef:ee}=G.context,et=(0,s.useStableCallback)(()=>ee.current.floatingContext?.nodeId),en=(0,h.isTypeableCombobox)(J)&&!1===H,er=(0,l.useValueAsRef)(H),ei=(0,l.useValueAsRef)(_),eo=(0,l.useValueAsRef)(Y),el=(0,l.useValueAsRef)(X),es=(0,A.useFloatingTree)(K),eu=(0,C.usePortalContext)(),ea=t.useRef(!1),ec=t.useRef(!1),ef=t.useRef(!1),ed=t.useRef(null),eg=t.useRef(""),ep=t.useRef(""),em=t.useRef(null),eh=t.useRef(null),ev=(0,o.useMergedRefs)(em,q,eu?.beforeInsideRef),eb=(0,o.useMergedRefs)(eh,eu?.afterInsideRef),ey=(0,a.useTimeout)(),eE=(0,a.useTimeout)(),ew=(0,f.useAnimationFrame)(),ex=null!=eu,eS=(0,h.getFloatingFocusElement)(Q),eR=(0,s.useStableCallback)((e=eS)=>e?(0,b.tabbable)(e):[]),eT=(0,s.useStableCallback)(()=>z?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(F||!V)return;let e=(0,d.ownerDocument)(eS);return(0,r.addEventListener)(e,"keydown",function(e){"Tab"===e.key&&(0,m.contains)(eS,(0,m.activeElement)((0,d.ownerDocument)(eS)))&&0===eR().length&&!en&&(0,v.stopEvent)(e)})},[F,eS,V,en,eR]),t.useEffect(()=>{if(F||!X)return;let e=(0,d.ownerDocument)(eS);function t(){ef.current=!1}return(0,i.mergeCleanups)((0,r.addEventListener)(e,"pointerdown",function(e){let t=(0,m.getTarget)(e),n=eT();ef.current=!((0,m.contains)(Q,t)||(0,m.contains)(J,t)||(0,m.contains)(eu?.portalNode,t)||n.some(e=>e===t||(0,m.contains)(e,t))),ep.current=e.pointerType||"keyboard",t?.closest(`[${O.CLICK_TRIGGER_IDENTIFIER}]`)&&(ec.current=!0,eE.start(0,()=>{ec.current=!1}))},!0),(0,r.addEventListener)(e,"pointerup",t,!0),(0,r.addEventListener)(e,"pointercancel",t,!0),(0,r.addEventListener)(e,"keydown",function(){ep.current="keyboard"},!0),t)},[F,Q,J,eS,X,eu,eE,eT]),t.useEffect(()=>{if(F||!j)return;let e=(0,d.ownerDocument)(eS);function t(t){let r=t.relatedTarget,i=t.currentTarget,o=(0,m.getTarget)(t);V&&null==r&&null!=o&&(0,m.contains)(Q,o)&&M(o),queueMicrotask(()=>{let l=et(),s=G.context.triggerElements,u=eT(),a=r?.hasAttribute((0,S.createAttribute)("focus-guard"))&&[em.current,eh.current,eu?.beforeInsideRef.current,eu?.afterInsideRef.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,(0,k.resolveRef)($),(0,k.resolveRef)(U)].includes(r),c=!((0,m.contains)(J,r)||(0,m.contains)(Q,r)||(0,m.contains)(r,Q)||(0,m.contains)(eu?.portalNode,r)||u.some(e=>e===r||(0,m.contains)(e,r))||s.hasMatchingElement(e=>(0,m.contains)(e,r))||a||es&&((0,y.getNodeChildren)(es.nodesRef.current,l).find(e=>(0,m.contains)(e.context?.elements.floating,r)||(0,m.contains)(e.context?.elements.domReference,r))||(0,y.getNodeAncestors)(es.nodesRef.current,l).find(e=>[e.context?.elements.floating,(0,h.getFloatingFocusElement)(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===J&&eS&&D(eS),B&&i!==J&&!(0,E.isElementVisible)(o)&&(0,m.activeElement)(e)===e.body){if((0,n.isHTMLElement)(eS)&&(eS.focus(),"popup"===B))return void ew.request(()=>{eS.focus()});let e=eR(),t=ed.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||eS;(0,n.isHTMLElement)(r)&&r.focus()}if(ee.current.insideReactTree){ee.current.insideReactTree=!1;return}(en||!V)&&r&&c&&!ec.current&&(en||r!==N())&&(ea.current=!0,G.setOpen(!1,(0,w.createChangeEventDetails)(x.REASONS.focusOut,t)))})}let o=(0,n.isHTMLElement)(J)?J:null;if(Q||o)return(0,i.mergeCleanups)(o&&(0,r.addEventListener)(o,"focusout",t),o&&(0,r.addEventListener)(o,"pointerdown",function(){ec.current=!0,eE.start(0,()=>{ec.current=!1})}),Q&&(0,r.addEventListener)(Q,"focusin",function(e){let t=(0,m.getTarget)(e);(0,b.isTabbable)(t)&&(ed.current=t)}),Q&&(0,r.addEventListener)(Q,"focusout",t),Q&&eu&&(0,r.addEventListener)(Q,"focusout",function(){ef.current||(ee.current.insideReactTree=!0,ey.start(0,()=>{ee.current.insideReactTree=!1}))},!0))},[F,J,Q,eS,V,es,eu,G,j,B,eR,en,et,ee,ey,eE,ew,U,$,eT]),t.useEffect(()=>
1{if(F||!Q||!X)return;let e=Array.from(eu?.portalNode?.querySelectorAll(`[${(0,S.createAttribute)("portal")}]`)||[]),t=es?(0,y.getNodeAncestors)(es.nodesRef.current,et()):[],n=t.find(e=>(0,h.isTypeableCombobox)(e.context?.elements.domReference||null))?.context?.elements.domReference,r=[Q,...e,em.current,eh.current,eu?.beforeOutsideRef.current,eu?.afterOutsideRef.current,...eT(),n,(0,k.resolveRef)($),(0,k.resolveRef)(U),en?J:null].filter(e=>null!=e),i=(0,T.markOthers)(r,{ariaHidden:V||en,mark:!1}),o=[Q,...e].filter(e=>null!=e),l=(0,T.markOthers)(o);return()=>{l(),i()}},[X,F,J,Q,V,eu,en,es,et,U,$,eT]),(0,u.useIsoLayoutEffect)(()=>{if(!X||F||!(0,n.isHTMLElement)(eS))return;eg.current="",ep.current="";let e=(0,d.ownerDocument)(eS),t=(0,m.activeElement)(e);queueMicrotask(()=>{let n,r=er.current,i="function"==typeof r?r(eo.current||""):r;if(void 0===i||!1===i||(0,m.contains)(eS,t))return;let o=null,l=()=>(null==o&&(o=eR(eS)),o[0]||eS);n=(n=!0===i||null===i?l():(0,k.resolveRef)(i))||l();let s=(0,m.contains)(eS,(0,m.activeElement)(e));(0,R.enqueueFocus)(n,{preventScroll:n===eS,shouldFocus(){if(!el.current)return!1;if(s)return!0;let t=(0,m.activeElement)(e);return!(t!==n&&(0,m.contains)(eS,t))}})})},[F,X,eS,eR,er,eo,el]),(0,u.useIsoLayoutEffect)(()=>{if(F||!eS)return;let e=(0,d.ownerDocument)(eS),t=(0,m.activeElement)(e),r=null==eo.current;function i(e){var t,n;let r;if(e.open||(t=e.nativeEvent,n=ep.current,r=(0,g.ownerWindow)((0,m.getTarget)(t)),eg.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===x.REASONS.triggerHover&&"mouseleave"===e.nativeEvent.type&&(ea.current=!0),e.reason===x.REASONS.outsidePress)if(e.nested)ea.current=!1;else if((0,v.isVirtualClick)(e.nativeEvent)||(0,v.isVirtualPointerEvent)(e.nativeEvent))ea.current=!1;else{let e=!1;(0,d.ownerDocument)(eS).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ea.current=!1:ea.current=!0}}return M(t),Z.on("openchange",i),()=>{Z.off("openchange",i);let o=(0,m.activeElement)(e),l=eT(),s=(0,m.contains)(Q,o)||l.some(e=>e===o||(0,m.contains)(e,o))||es&&(0,y.getNodeChildren)(es.nodesRef.current,et(),!1).some(e=>(0,m.contains)(e.context?.elements.floating,o)),u=ei.current,a=eg.current,c=function(e){let i=ei.current,o="function"==typeof i?i(e):i;if(void 0===o||!1===o)return null;null===o&&(o=!0);let l=J?.isConnected?J:null,s=t?.isConnected&&"body"!==(0,n.getNodeName)(t)?t:null,u=r?s||l:l||s;return(u||(u=N()||null),"boolean"==typeof o)?u:(0,k.resolveRef)(o)||u||null}(a);queueMicrotask(()=>{let t=c?(0,b.isTabbable)(c)?c:(0,b.tabbable)(c)[0]||c:null;if(u&&!ea.current&&(0,n.isHTMLElement)(t)&&("boolean"!=typeof u||t===o||o===e.body||s)){let e={preventScroll:!0};"keyboard"===a&&(e.focusVisible=!0),t.focus(e)}ea.current=!1})}},[F,Q,eS,ei,eo,Z,es,J,et,eT]),(0,u.useIsoLayoutEffect)(()=>{if(!c.platform.engine.webkit||X||!Q)return;let e=(0,m.activeElement)((0,d.ownerDocument)(Q));(0,n.isHTMLElement)(e)&&(0,h.isTypeableElement)(e)&&(0,m.contains)(Q,e)&&e.blur()},[X,Q]),(0,u.useIsoLayoutEffect)(()=>{if(!F&&eu)return eu.setFocusManagerState({modal:V,closeOnFocusOut:j,open:X,onOpenChange:G.setOpen,domReference:J}),()=>{eu.setFocusManagerState(null)}},[F,eu,V,X,G,j,J]),(0,u.useIsoLayoutEffect)(()=>{if(!F&&eS)return D(eS),()=>{queueMicrotask(P)}},[F,eS]);let eC=!F&&(!V||!en)&&(ex||V);return(0,L.jsxs)(t.Fragment,{children:[eC&&(0,L.jsx)(p.FocusGuard,{"data-type":"inside",ref:ev,onFocus:e=>{if(V){let e=eR();(0,R.enqueueFocus)(e[e.length-1])}else if(eu?.portalNode)if(ea.current=!1,(0,b.isOutsideEvent)(e,eu.portalNode)){let e=(0,b.getNextTabbable)(J);e?.focus()}else(0,k.resolveRef)($??eu.beforeOutsideRef)?.focus()}}),W,eC&&(0,L.jsx)(p.FocusGuard,{"data-type":"inside",ref:eb,onFocus:e=>{if(V)(0,R.enqueueFocus)(eR()[0]);else if(eu?.portalNode)if(j&&(ea.current=!0),(0,b.isOutsideEvent)(e,eu.portalNode)){let e=(0,b.getPreviousTabbable)(J);e?.focus()}else(0,k.resolveRef)(U??eu.afterOutsideRef)?.focus()}})]})}])},668984,169605,e=>{"use strict";var t=e.i(7667),n=e.i(671770),r=e.i(880269),i=e.i(721472),o=e.i(303131),l=e.i(769762),s=e.i(473444),u=e.i(747054),a=e.i(251412),c=e.i(114825),f=e.i(24781),d=e.i(980547),g=e.i(611463),p=e.i(90173),m=e.i(388323);let h={clipPath:"inset(50%)",position:"fixed",top:0,left:0};e.s(["CLICK_TRIGGER_IDENTIFIER",0,"data-base-ui-click-trigger","DISABLED_TRANSITIONS_STYLE",0,{style:{transition:"none"}},"DROPDOWN_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"none"},"PATIENT_CLICK_THRESHOLD",0,500,"POPUP_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"end"},"TYPEAHEAD_RESET_MS",0,500,"ownerVisuallyHidden",0,h],169605);var v=e.i(727448);let b=t.createContext(null),y=()=>t.useContext(b),E=(0,p.createAttribute)("portal"),w=t.forwardRef(function(e,p){let{render:w,className:x,style:S,children:R,container:T,portalOwnerRole:C,...A}=e,{node:O,nodeId:k,subtree:L}=function(e={}){let{ref:i,container:o,componentProps:c=a.EMPTY_OBJECT,elementProps:f}=e,d=(0,l.useId)(),g=y(),p=g?.portalNode,[h,v]=t.useState(null),[b,w]=t.useState(null),x=(0,u.useStableCallback)(e=>{null!==e&&w(e)}),S=t.useRef(null);(0,s.useIsoLayoutEffect)(()=>
1{if(null===o){S.current&&(S.current=null,w(null),v(null));return}let e=(o&&((0,r.isNode)(o)?o:o.current))??p??document.body;if(null==e){S.current&&(S.current=null,w(null),v(null));return}S.current!==e&&(S.current=e,w(null),v(e))},[o,p]);let R=(0,m.useRenderElement)("div",c,{ref:[i,x],props:[{id:d,[E]:""},f]}),T=h&&R?n.createPortal(R,h):null;return{node:b,nodeId:t.isValidElement(R)?R.props.id:void 0,subtree:T}}({container:T,ref:p,componentProps:e,elementProps:A}),I=t.useRef(null),P=t.useRef(null),M=t.useRef(null),N=t.useRef(null),[D,W]=t.useState(null),F=t.useRef(!1),H=D?.modal,_=D?.open,B=!!D&&!D.modal&&D.open&&!!O;t.useEffect(()=>{if(O&&!H)return(0,o.mergeCleanups)((0,i.addEventListener)(O,"focusin",e,!0),(0,i.addEventListener)(O,"focusout",e,!0));function e(e){O&&e.relatedTarget&&(0,f.isOutsideEvent)(e)&&("focusin"===e.type?F.current&&((0,f.enableFocusInside)(O),F.current=!1):((0,f.disableFocusInside)(O),F.current=!0))}},[O,H]),(0,s.useIsoLayoutEffect)(()=>{O&&!0===_&&F.current&&((0,f.enableFocusInside)(O),F.current=!1)},[_,O]);let V=t.useMemo(()=>({beforeOutsideRef:I,afterOutsideRef:P,beforeInsideRef:M,afterInsideRef:N,portalNode:O,setFocusManagerState:W}),[O]);return(0,v.jsxs)(t.Fragment,{children:[L,(0,v.jsxs)(b.Provider,{value:V,children:[B&&O&&(0,v.jsx)(c.FocusGuard,{"data-type":"outside",ref:I,onFocus:e=>{if((0,f.isOutsideEvent)(e,O))M.current?.focus();else{let e=D?D.domReference:null,t=(0,f.getPreviousTabbable)(e);t?.focus()}}}),B&&O&&(0,v.jsx)("span",{role:C,"aria-owns":k,style:h}),O&&n.createPortal(R,O),B&&O&&(0,v.jsx)(c.FocusGuard,{"data-type":"outside",ref:P,onFocus:e=>{if((0,f.isOutsideEvent)(e,O))N.current?.focus();else{let t=D?D.domReference:null,n=(0,f.getNextTabbable)(t);n?.focus(),D?.closeOnFocusOut&&D?.onOpenChange(!1,(0,d.createChangeEventDetails)(g.REASONS.focusOut,e.nativeEvent))}}})]})]})});e.s(["FloatingPortal",0,w,"usePortalContext",0,y],668984)},284978,e=>{"use strict";var t=e.i(776988),n=e.i(123040),r=e.i(624582);let i={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class o extends t.ReactStore{constructor(e){const{syncOnly:t,nested:r,onOpenChange:o,triggerElements:l,...s}=e;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:(0,n.createEventEmitter)(),nested:r,triggerElements:l},i),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,r.isClickLikeEvent)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
1{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}e.s(["FloatingRootStore",0,o])},333134,123040,162517,e=>{"use strict";var t=e.i(7667),n=e.i(769762),r=e.i(473444),i=e.i(312207);function o(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}e.s(["createEventEmitter",0,o],123040);class l{nodesRef={current:[]};events=o();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}e.s(["FloatingTreeStore",0,l],162517);var s=e.i(727448);let u=t.createContext(null),a=t.createContext(null),c=()=>t.useContext(u)?.id||null,f=e=>{let n=t.useContext(a);return e??n};e.s(["FloatingNode",0,function(e){let{children:n,id:r}=e,i=c();return(0,s.jsx)(u.Provider,{value:t.useMemo(()=>({id:r,parentId:i}),[r,i]),children:n})},"FloatingTree",0,function(e){let{children:t,externalTree:n}=e,r=(0,i.useRefWithInit)(()=>n??new l).current;return(0,s.jsx)(a.Provider,{value:r,children:t})},"useFloatingNodeId",0,function(e){let t=(0,n.useId)(),i=f(e),o=c();return(0,r.useIsoLayoutEffect)(()=>{if(!t)return;let e={id:t,parentId:o};return i?.addNode(e),()=>{i?.removeNode(e)}},[i,t,o]),t},"useFloatingParentNodeId",0,c,"useFloatingTree",0,f],333134)},282103,e=>{"use strict";var t=e.i(7667),n=e.i(261569),r=e.i(699397),i=e.i(251412),o=e.i(553796),l=e.i(484212),s=e.i(624582),u=e.i(980547),a=e.i(611463);e.s(["useClick",0,function(e,c={}){let{enabled:f=!0,event:d="click",toggle:g=!0,ignoreMouse:p=!1,stickIfOpen:m=!0,touchOpenDelay:h=0,reason:v=a.REASONS.triggerPress}=c,b="rootStore"in e?e.rootStore:e,y=b.context.dataRef,E=t.useRef(void 0),w=(0,n.useAnimationFrame)(),x=(0,r.useTimeout)(),S=t.useMemo(()=>{function e(e,t,n,r){let i=(0,u.createChangeEventDetails)(v,t,n);e&&"touch"===r&&h>0?x.start(h,()=>{b.setOpen(!0,i)}):b.setOpen(e,i)}function t(e,t,n){let r=y.current.openEvent,i=b.select("domReferenceElement")!==t;return!!e&&!!i||!e||!g||!!r&&!!m&&!n(r.type)}return{onPointerDown(e){E.current=(0,s.isMouseLikePointerType)(e.pointerType,!0)&&(0,s.isVirtualPointerEvent)(e.nativeEvent)?"virtual":e.pointerType},onMouseDown(n){let r=E.current,i=n.nativeEvent,u=b.select("open");if(0!==n.button||"click"===d||(0,s.isMouseLikePointerType)(r,!0)&&p)return;let a=t(u,n.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,o.getTarget)(i);if((0,l.isTypeableElement)(c))return void e(a,i,c,r);let f=n.currentTarget;w.request(()=>{e(a,i,f,r)})},onClick(n){if("mousedown-only"===d)return;let r=E.current;if("mousedown"===d&&r){E.current=void 0;return}(0,s.isMouseLikePointerType)(r,!0)&&p||e(t(b.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,r)},onKeyDown(){E.current=void 0}}},[y,d,p,v,b,m,g,w,x,h]);return t.useMemo(()=>f?{reference:S}:i.EMPTY_OBJECT,[f,S])}])},643275,e=>{"use strict";var t=e.i(7667),n=e.i(721472),r=e.i(303131),i=e.i(516948),o=e.i(747054),l=e.i(699397),s=e.i(880269),u=e.i(400449),a=e.i(333134),c=e.i(980547),f=e.i(611463),d=e.i(90173),g=e.i(553796),p=e.i(484212),m=e.i(624582),h=e.i(559945);function v(){return!1}e.s(["useDismiss",0,function(e,b={}){let{enabled:y=!0,escapeKey:E=!0,outsidePress:w=!0,outsidePressEvent:x="sloppy",referencePress:S=v,bubbles:R,externalTree:T}=b,C="rootStore"in e?e.rootStore:e,A=C.useState("open"),O=C.useState("floatingElement"),{dataRef:k,events:L}=C.context,I=(0,a.useFloatingTree)(T),P=(0,o.useStableCallback)("function"==typeof w?w:()=>!1),M="function"==typeof w?P:w,N=!1!==M,D=(0,o.useStableCallback)(()=>x),{escapeKey:W,outsidePress:F}={escapeKey:"boolean"==typeof R?R:R?.escapeKey??!1,outsidePress:"boolean"==typeof R?R:R?.outsidePress??!0},H=t.useRef(!1),_=t.useRef(!1),B=t.useRef(!1),V=t.useRef(!1),j=t.useRef(!1),Y=t.useRef(""),U=t.useRef(null),$=(0,l.useTimeout)(),q=(0,l.useTimeout)(),K=(0,o.useStableCallback)(()=>{q.clear(),k.current.insideReactTree=!1}),z=(0,o.useStableCallback)(e=>{let t=k.current.floatingContext?.nodeId;return(I?(0,h.getNodeChildren)(I.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),G=(0,o.useStableCallback)(e=>(0,p.isEventTargetWithin)(e,C.select("floatingElement"))||(0,p.isEventTargetWithin)(e,C.select("domReferenceElement"))),X=(0,o.useStableCallback)(e=>{S()&&C.setOpen(!1,(0,c.createChangeEventDetails)(f.REASONS.triggerPress,e.nativeEvent))}),J=(0,o.useStableCallback)(e=>{if(!A||!y||!E||"Escape"!==e.key||j.current||!W&&z("__escapeKeyBubbles"))return;let t=(0,m.isReactEvent)(e)?e.nativeEvent:e,n=(0,c.createChangeEventDetails)(f.REASONS.escapeKey,t);C.setOpen(!1,n),n.isCanceled||e.preventDefault(),W||n.isPropagationAllowed||e.stopPropagation()}),Q=(0,o.useStableCallback)(()=>{k.current.insideReactTree=!0,q.start(0,K)}),Z=(0,o.useStableCallback)(e=>{if(!A||!y||0!==e.button)return;let t=(0,g.getTarget)(e.nativeEvent);(0,g.contains)(C.select("floatingElement"),t)&&(H.current||(H.current=!0,_.current=!1))}),ee=(0,o.useStableCallback)(e=>{!A||!y||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&H.current&&(_.current=!0)});t.useEffect(()=>{function e(e){e.open||(V.current=!1)}return L.on("openchange",e),()=>{L.off("openchange",e)}},[L]),t.useEffect(()=>{if(!A||!y)return A||(V.current=!1),K;k.current.__escapeKeyBubbles=W,k.current.__outsidePressBubbles=F;let e=new l.Timeout,t=new l.Timeout,o=(0,i.ownerDocument)(O);function a(){B.current=!0,t.start(0,()=>
1{B.current=!1})}function v(){H.current=!1,_.current=!1}function b(){let e=Y.current,t=D(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function w(e){let t=k.current.floatingContext?.nodeId,n=I&&(0,h.getNodeChildren)(I.nodesRef.current,t).some(t=>(0,p.isEventTargetWithin)(e,t.context?.elements.floating));return G(e)||n}function x(e){let n;if("intentional"===(n=b())&&"click"!==e.type||"sloppy"===n&&"click"===e.type){"click"===e.type||G(e)||(t.clear(),B.current=!1),K();return}if(k.current.insideReactTree)return void K();let r=(0,g.getTarget)(e),o=`[${(0,d.createAttribute)("inert")}]`,l=(0,s.isElement)(r)?r.getRootNode():null,u=Array.from(((0,s.isShadowRoot)(l)?l:(0,i.ownerDocument)(C.select("floatingElement"))).querySelectorAll(o)),a=C.context.triggerElements;if(r&&(a.hasElement(r)||a.hasMatchingElement(e=>(0,g.contains)(e,r))))return;let h=(0,s.isElement)(r)?r:null;for(;h&&!(0,s.isLastTraversableNode)(h);){let e=(0,s.getParentNode)(h);if((0,s.isLastTraversableNode)(e)||!(0,s.isElement)(e))break;h=e}if(!(u.length&&(0,s.isElement)(r)&&!(0,p.isRootElement)(r)&&!(0,g.contains)(r,C.select("floatingElement"))&&u.every(e=>!(0,g.contains)(h,e)))){if((0,s.isHTMLElement)(r)&&!("touches"in e)){let t=(0,s.isLastTraversableNode)(r),n=(0,s.getComputedStyle)(r),i=/auto|scroll/,o=t||i.test(n.overflowX),l=t||i.test(n.overflowY),u=o&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,a=l&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,c="rtl"===n.direction,f=a&&(c?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=u&&e.offsetY>r.clientHeight;if(f||d)return}if(!w(e)){if("intentional"===b()){if(0!==e.detail&&!(0,m.isVirtualClick)(e)&&!V.current)return;if(B.current){t.clear(),B.current=!1;return}}"function"==typeof M&&!M(e)||z("__outsidePressBubbles")||(C.setOpen(!1,(0,c.createChangeEventDetails)(f.REASONS.outsidePress,e)),K())}}}function S(e){if("sloppy"!==b()||!C.select("open")||!y||G(e))return;let t=e.touches[0];t&&(U.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},$.start(1e3,()=>{U.current&&(U.current.dismissOnTouchEnd=!1,U.current.dismissOnMouseDown=!1)}))}function R(e,t){let r=(0,g.getTarget)(e);if(!r)return;let i=(0,n.addEventListener)(r,e.type,()=>{t(e),i()})}function T(e){$.clear(),"pointerdown"===e.type&&(0===e.button&&(V.current=!0),Y.current=e.pointerType),("mousedown"!==e.type||!U.current||U.current.dismissOnMouseDown)&&R(e,e=>{if("pointerdown"===e.type)"sloppy"!==b()||"touch"===e.pointerType||!C.select("open")||!y||G(e)||x(e);else x(e)})}function L(e){if("pointercancel"===e.type&&(V.current=!1),!H.current)return;let n=_.current;if(v(),"intentional"===b()){if("pointercancel"===e.type){n&&a();return}w(e)||(n?a():("function"!=typeof M||M(e))&&(t.clear(),B.current=!0,K()))}}function P(e){if("sloppy"!==b()||!U.current||G(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-U.current.startX),r=Math.abs(t.clientY-U.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(U.current.dismissOnTouchEnd=!0),i>10&&(x(e),$.clear(),U.current=null)}function q(e){"sloppy"!==b()||!U.current||G(e)||(U.current.dismissOnTouchEnd&&x(e),$.clear(),U.current=null)}let X=(0,r.mergeCleanups)(E&&(0,r.mergeCleanups)((0,n.addEventListener)(o,"keydown",J),(0,n.addEventListener)(o,"compositionstart",function(){e.clear(),j.current=!0}),(0,n.addEventListener)(o,"compositionend",function(){e.start(5*!!u.platform.engine.webkit,()=>{j.current=!1})})),N&&(0,r.mergeCleanups)((0,n.addEventListener)(o,"click",T,!0),(0,n.addEventListener)(o,"pointerdown",T,!0),(0,n.addEventListener)(o,"pointerup",L,!0),(0,n.addEventListener)(o,"pointercancel",L,!0),(0,n.addEventListener)(o,"mousedown",T,!0),(0,n.addEventListener)(o,"mouseup",L,!0),(0,n.addEventListener)(o,"touchstart",function(e){Y.current="touch",R(e,S)},{capture:!0,passive:!0}),(0,n.addEventListener)(o,"touchmove",function(e){R(e,P)},{capture:!0,passive:!0}),(0,n.addEventListener)(o,"touchend",function(e){R(e,q)},{capture:!0,passive:!0})));return()=>{X(),e.clear(),t.clear(),v(),B.current=!1,K()}},[k,O,E,N,M,A,y,W,F,J,K,D,z,G,I,C,$]);let et=t.useMemo(()=>({onKeyDown:J,onPointerDown:X,onClick:X}),[J,X]),en=t.useMemo(()=>({onKeyDown:J,onPointerDown:ee,onMouseDown:ee,onClickCapture:Q,onMouseDownCapture(e){Q(),Z(e)},onPointerDownCapture(e){Q(),Z(e)},onMouseUpCapture:Q,onTouchEndCapture:Q,onTouchMoveCapture:Q}),[J,Q,Z,ee]);return t.useMemo(()=>y?{reference:et,floating:en,trigger:et}:{},[y,et,en])}])},349864,e=>{"use strict";e.i(817325);var t=e.i(7667),n=e.i(261569),r=e.i(473444),i=e.i(516948),o=e.i(747054),l=e.i(871689),s=e.i(400449),u=e.i(880269),a=e.i(980547),c=e.i(611463),f=e.i(333134),d=e.i(520322),g=e.i(520203),p=e.i(553796),m=e.i(484212),h=e.i(568995),v=e.i(624582);function b(e){return s.platform.engine.webkit&&0===e.movementX&&0===e.movementY}function y(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function E(e,t){return y(t,e===g.ARROW_UP||e===g.ARROW_DOWN,e===g.ARROW_LEFT||e===g.ARROW_RIGHT)}function w(e,t,n){return y(t,e===g.ARROW_DOWN,n?e===g.ARROW_LEFT:e===g.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,s){let{listRef:x,activeIndex:S,onNavigate:R=()=>{},enabled:T=!0,selectedIndex:C=null,allowEscape:A=!1,loopFocus:O=!1,nested:k=!1,rtl:L=!1,virtual:I=!1,focusItemOnOpen:P="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:N=!0,disabledIndices:D,orientation:W="vertical",parentOrientation:F,id:H,resetOnPointerLeave:_=!0,externalTree:B,grid:V}=s,j=null!=V,Y="rootStore"in e?e.rootStore:e,U=Y.useState("open"),$=Y.useState("floatingElement"),q=Y.useState("domReferenceElement"),K=Y.context.dataRef,z=(0,m.getFloatingFocusElement)($),G=(0,m.isTypeableCombobox)(q),X=(0,l.useValueAsRef)(z),J=(0,f.useFloatingParentNodeId)(),Q=(0,f.useFloatingTree)(B),Z=t.useRef(P),ee=t.useRef(C??-1),et=t.useRef(null),en=t.useRef(!0),er=(0,o.useStableCallback)(e=>{R(-1===ee.current?null:ee.current,e)}),ei=t.useRef(!!$),eo=t.useRef(U),el=t.useRef(!1),es=t.useRef(!1),eu=t.useRef(null),ea=(0,l.useValueAsRef)(D),ec=(0,l.useValueAsRef)(U),ef=(0,l.useValueAsRef)(C),ed=(0,l.useValueAsRef)(_),eg=(0,n.useAnimationFrame)(),ep=(0,n.useAnimationFrame)(),em=(0,o.useStableCallback)(()=>{function e(e){I?Q?.events.emit("virtualfocus",e):eu.current=(0,h.enqueueFocus)(e,{sync:el.current,preventScroll:!0})}let t=x.current[ee.current],n=es.current;t&&e(t),(el.current?e=>e():e=>eg.request(e))(()=>{let r=x.current[ee.current]||t;!r||(t||e(r),ew&&(n||!en.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,r.useIsoLayoutEffect)(()=>{K.current.orientation=W},[K,W]),(0,r.useIsoLayoutEffect)(()=>{T&&(U&&$?(ee.current=C??-1,Z.current&&null!=C&&(es.current=!0,er())):ei.current&&(ee.current=-1,er()))},[T,U,$,C,er]),(0,r.useIsoLayoutEffect)(()=>
1{if(T){if(!U){el.current=!1;return}if($)if(null==S){if(el.current=!1,null!=ef.current)return;if(ei.current&&(ee.current=-1,em()),(!eo.current||!ei.current)&&Z.current&&(null!=et.current||!0===Z.current&&null==et.current)){let e=0,t=()=>{null==x.current[0]?(e<2&&(e?e=>ep.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||w(et.current,W,L)||k?(0,d.getMinListIndex)(x):(0,d.getMaxListIndex)(x),et.current=null,er())};t()}}else(0,d.isIndexOutOfListBounds)(x.current,S)||(ee.current=S,em(),es.current=!1)}},[T,U,$,S,ef,k,x,W,L,er,em,ep]),(0,r.useIsoLayoutEffect)(()=>{if(!T||$||!Q||I||!ei.current)return;let e=Q.nodesRef.current,t=e.find(e=>e.id===J)?.context?.elements.floating,n=(0,p.activeElement)((0,i.ownerDocument)(q??t??null)),r=e.some(e=>e.context&&(0,p.contains)(e.context.elements.floating,n));t&&!r&&en.current&&t.focus({preventScroll:!0})},[T,$,q,Q,J,I]),(0,r.useIsoLayoutEffect)(()=>{eo.current=U,ei.current=!!$}),(0,r.useIsoLayoutEffect)(()=>{U||(et.current=null,Z.current=P)},[U,P]);let eh=null!=S,ev=(0,o.useStableCallback)(e=>{if(!ec.current)return;let t=x.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||S!==t)&&(ee.current=t,er(e))}),eb=(0,o.useStableCallback)(()=>F??Q?.nodesRef.current.find(e=>e.id===J)?.context?.dataRef?.current.orientation),ey=(0,o.useStableCallback)(()=>(0,d.getMinListIndex)(x,ea.current)),eE=(0,o.useStableCallback)(e=>{var t;let n,r;if(en.current=!1,el.current=!0,229===e.which||!ec.current&&e.currentTarget===X.current)return;if(k&&(t=e.key,n=L?t===g.ARROW_RIGHT:t===g.ARROW_LEFT,r=t===g.ARROW_UP,"both"===W||"horizontal"===W&&j?"Escape"===t:y(W,n,r))){E(e.key,eb())||(0,v.stopEvent)(e),Y.setOpen(!1,(0,a.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent)),(0,u.isHTMLElement)(q)&&(I?Q?.events.emit("virtualfocus",q):q.focus());return}let i=ee.current,o=(0,d.getMinListIndex)(x,D),l=(0,d.getMaxListIndex)(x,D);if(G||("Home"===e.key&&((0,v.stopEvent)(e),ee.current=o,er(e)),"End"===e.key&&((0,v.stopEvent)(e),ee.current=l,er(e))),null!=V){let t=V(e,ee.current,x,W,O,L,D,o,l);if(null!=t&&(ee.current=t,er(e)),"both"===W)return}if(E(e.key,W)){if((0,v.stopEvent)(e),U&&!I&&(0,p.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=w(e.key,W,L)?o:l,er(e);return}w(e.key,W,L)?O?i>=l?A&&i!==x.current.length?ee.current=-1:(el.current=!1,ee.current=o):ee.current=(0,d.findNonDisabledListIndex)(x.current,{startingIndex:i,disabledIndices:D}):ee.current=Math.min(l,(0,d.findNonDisabledListIndex)(x.current,{startingIndex:i,disabledIndices:D})):O?i<=o?A&&-1!==i?ee.current=x.current.length:(el.current=!1,ee.current=l):ee.current=(0,d.findNonDisabledListIndex)(x.current,{startingIndex:i,decrement:!0,disabledIndices:D}):ee.current=Math.max(o,(0,d.findNonDisabledListIndex)(x.current,{startingIndex:i,decrement:!0,disabledIndices:D})),(0,d.isIndexOutOfListBounds)(x.current,ee.current)&&(ee.current=-1),er(e)}}),ew=t.useMemo(()=>({onFocus(e){el.current=!0,ev(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!b(e)&&(el.current=!0,es.current=!1,M&&ev(e))},onPointerLeave(e){if(!ec.current||!en.current||"touch"===e.pointerType)return;el.current=!0;let t=e.relatedTarget;if(!(!M||x.current.includes(t))&&ed.current&&(eu.current?.(),eu.current=null,ee.current=-1,er(e),!I)){let e=X.current,t=(0,p.activeElement)((0,i.ownerDocument)(e));e&&(0,p.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[ev,ec,X,M,x,er,ed,I]),ex=t.useMemo(()=>I&&U&&eh&&{"aria-activedescendant":`${H}-${S}`},[I,U,eh,H,S]),eS=t.useMemo(()=>({...!G?ex:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&U&&!I){let t=(0,p.getTarget)(e.nativeEvent);if(t&&!(0,p.contains)(X.current,t))return;(0,v.stopEvent)(e),Y.setOpen(!1,(0,a.createChangeEventDetails)(c.REASONS.focusOut,e.nativeEvent)),(0,u.isHTMLElement)(q)&&q.focus();return}eE(e)},onPointerMove(e){b(e)||(en.current=!0)}}),[ex,eE,X,G,Y,U,I,q]),eR=t.useMemo(()=>{function e(e){Y.setOpen(!0,(0,a.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent,e.currentTarget))}function t(e){"auto"===P&&(0,v.isVirtualClick)(e.nativeEvent)&&(Z.current=!I)}function n(e){Z.current=P,"auto"===P&&(0,v.isVirtualPointerEvent)(e.nativeEvent)&&(Z.current=!0)}return{onKeyDown(t){var n,r;let i=Y.select("open");en.current=!1;let o=t.key.startsWith("Arrow"),l=(n=t.key,r=eb(),y(r,L?n===g.ARROW_LEFT:n===g.ARROW_RIGHT,n===g.ARROW_DOWN)),s=E(t.key,W),u=(k?l:s)||"Enter"===t.key||""===t.key.trim();if(I&&i)return eE(t);if(i||N||!o){if(u){let e=E(t.key,eb());et.current=k&&e?null:t.key}if(k){l&&((0,v.stopEvent)(t),i?(ee.current=ey(),er(t)):e(t));return}s&&(null!=ef.current&&(ee.current=ef.current),(0,v.stopEvent)(t),!i&&N?e(t):eE(t),i&&er(t))}},onFocus(e){Y.select("open")&&!I&&(ee.current=-1,er(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[eE,P,ey,k,er,Y,N,W,eb,L,ef,I]),eT=t.useMemo(()=>({...ex,...eR}),[ex,eR]);return t.useMemo(()=>T?{reference:eT,floating:eS,item:ew,trigger:eR}:{},[T,eT,eS,eR,ew])}])},950448,e=>{"use strict";var t=e.i(7667),n=e.i(473444),r=e.i(747054),i=e.i(699397),o=e.i(251412),l=e.i(520322),s=e.i(553796),u=e.i(624582);e.s(["useTypeahead",0,function(e,a){let{listRef:c,elementsRef:f,activeIndex:d,onMatch:g,disabledIndices:p,onTyping:m,enabled:h=!0,resetMs:v=750,selectedIndex:b=null}=a,y="rootStore"in e?e.rootStore:e,E=y.useState("open"),w=(0,i.useTimeout)(),x=t.useRef(""),S=t.useRef(b??d??-1),R=t.useRef(null),T=(0,r.useStableCallback)(e=>{function t(e){let t=f?.current[e];return!(t&&!(0,l.isElementVisible)(t)||t?.matches(":disabled"))&&(null==p||!(0,l.isListIndexDisabled)(o.EMPTY_ARRAY,e,p))}function n(e,r,i=0){if(0===e.length)return -1;let o=(i%e.length+e.length)%e.length,l=r.toLowerCase();for(let n=0;n<e.length;n+=1){let r=(o+n)%e.length,i=e[r];if(i?.toLowerCase().startsWith(l)&&t(r))return r}return -1}let r=c.current;if(x.current.length>0&&" "===e.key&&((0,u.stopEvent)(e),m?.(!0)),x.current.length>0&&" "!==x.current[0]&&-1===n(r,x.current)&&" "!==e.key&&m?.(!1),null==r||1!==e.ke
1y.length||e.ctrlKey||e.metaKey||e.altKey)return;E&&" "!==e.key&&((0,u.stopEvent)(e),m?.(!0));let i=""===x.current;i&&(S.current=b??d??-1),r.every((e,n)=>!(e&&t(n))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&x.current===e.key&&(x.current="",S.current=R.current),x.current+=e.key,w.start(v,()=>{x.current="",S.current=R.current,m?.(!1)});let s=i?b??d??-1:S.current,a=n(r,x.current,(s??0)+1);-1!==a?(g?.(a),R.current=a):" "!==e.key&&(x.current="",m?.(!1))}),C=(0,r.useStableCallback)(e=>{let t=e.relatedTarget,n=y.select("domReferenceElement"),r=y.select("floatingElement");(0,s.contains)(n,t)||(0,s.contains)(r,t)||(w.clear(),x.current="",S.current=R.current,m?.(!1))});(0,n.useIsoLayoutEffect)(()=>{(E||null===b)&&(w.clear(),R.current=null,""!==x.current&&(x.current=""))},[E,b,w]);let A=t.useMemo(()=>({onKeyDown:T,onBlur:C}),[T,C]);return t.useMemo(()=>h?{reference:A,floating:A}:{},[h,A])}])},520322,210242,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,i=Math.max,o=Math.round,l=Math.floor,s={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e){return e.split("-")[0]}function a(e){return e.split("-")[1]}function c(e){return"x"===e?"y":"x"}function f(e){return"y"===e?"height":"width"}function d(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return c(d(e))}function p(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let m=["left","right"],h=["right","left"],v=["top","bottom"],b=["bottom","top"];function y(e){let t=u(e);return s[t]+e.slice(t.length)}e.s(["clamp",0,function(e,t,n){return i(e,r(t,n))},"createCoords",0,e=>({x:e,y:e}),"evaluate",0,function(e,t){return"function"==typeof e?e(t):e},"floor",0,l,"getAlignment",0,a,"getAlignmentAxis",0,g,"getAlignmentSides",0,function(e,t,n){void 0===n&&(n=!1);let r=a(e),i=g(e),o=f(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=y(l)),[l,y(l)]},"getAxisLength",0,f,"getExpandedPlacements",0,function(e){let t=y(e);return[p(e),t,p(t)]},"getOppositeAlignmentPlacement",0,p,"getOppositeAxis",0,c,"getOppositeAxisPlacements",0,function(e,t,n,r){let i=a(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?h:m;return t?m:h;case"left":case"right":return t?v:b;default:return[]}}(u(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(p)))),o},"getOppositePlacement",0,y,"getPaddingObject",0,function(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}},"getSide",0,u,"getSideAxis",0,d,"max",0,i,"min",0,r,"placements",0,n,"rectToClientRect",0,function(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}},"round",0,o,"sides",0,t],210242);var E=e.i(880269),w=e.i(624582),x=e.i(520203);function S(e,t,n){return Math.floor(e/t)!==n}function R(e,t){return t<0||t>=e.length}function T(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let o=t;do o+=n?-i:i;while(o>=0&&o<=e.length-1&&C(e,o,r))return o}function C(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!!(!A(r)||r.matches(":disabled"))||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function A(e,t=e?(0,E.getComputedStyle)(e):null){var n;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(n=t).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}e.s(["findNonDisabledListIndex",0,T,"getGridNavigatedIndex",0,function(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:o,cols:s,disabledIndices:u,minIndex:a,maxIndex:c,prevIndex:f,stopEvent:d=!1}){let g,p=f;if(t.key===x.ARROW_UP?g="up":t.key===x.ARROW_DOWN&&(g="down"),g){let n=[],o=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(null==e)return;h+=1;let l=e.closest('[role="row"]');l&&(m=!0),(l!==t||-1===r)&&(t=l,n[r+=1]=[]),n[r].push(i),o[i]=r})}let v=!1,b=0;if(m)for(let e of n){let t=e.length;t>b&&(b=t),t!==s&&(v=!0)}let y=v&&h<e.length,E=b||s;d&&(0,w.stopEvent)(t);let x=(l=>{if(!v||-1===f)return;let s=o[f];if(null==s)return;let a=n[s].indexOf(f),c="up"===l?-1:1;for(let l=s+c,d=0;d<n.length;d+=1,l+=c){if(l<0||l>=n.length){if(!r||y)return;if(l=l<0?n.length-1:0,i){let e=Math.min(a,n[l].length-1);l=o[i(t,f,n[l][e]??n[l][0])]??l}}let s=n[l];for(let t=Math.min(a,s.length-1);t>=0;t-=1){let n=s[t];if(!C(e,n,u))return n}}})(g)??(t=>{if(!y||-1===f)return;let n=f%E,i="up"===t?-E:E,o=c-c%E,s=l(c/E)+1;for(let t=f-n+i,l=0;l<s;l+=1,t+=i){if(t<0||t>c){if(!r)return;t=t<0?o:0}let i=Math.min(t+E-1,c);for(let r=Math.min(t+n,i);r>=t;r-=1)if(!C(e,r,u))return r}})(g);if(void 0!==x)p=x;else if(-1===f)p="up"===g?c:a;else if(p=T(e,{startingIndex:f,amount:E,decrement:"up"===g,disabledIndices:u}),r){if("up"===g&&(f-E<a||p<0)){let e=f%E,n=c%E,r=c-(n-e);p=n===e?c:n>e?r:r-E,i&&(p=i(t,f,p))}"down"===g&&f+E>c&&(p=T(e,{startingIndex:f%E-E,amount:E,disabledIndices:u}),i&&(p=i(t,f,p)))}R(e,p)&&(p=f)}if("both"===n){let n=l(f/s);
1t.key===(o?x.ARROW_LEFT:x.ARROW_RIGHT)&&(d&&(0,w.stopEvent)(t),f%s!=s-1?(p=T(e,{startingIndex:f,disabledIndices:u}),r&&S(p,s,n)&&(p=T(e,{startingIndex:f-f%s-1,disabledIndices:u}),i&&(p=i(t,f,p)))):r&&(p=T(e,{startingIndex:f-f%s-1,disabledIndices:u}),i&&(p=i(t,f,p))),S(p,s,n)&&(p=f)),t.key===(o?x.ARROW_RIGHT:x.ARROW_LEFT)&&(d&&(0,w.stopEvent)(t),f%s!=0?(p=T(e,{startingIndex:f,decrement:!0,disabledIndices:u}),r&&S(p,s,n)&&(p=T(e,{startingIndex:f+(s-f%s),decrement:!0,disabledIndices:u}),i&&(p=i(t,f,p)))):r&&(p=T(e,{startingIndex:f+(s-f%s),decrement:!0,disabledIndices:u}),i&&(p=i(t,f,p))),S(p,s,n)&&(p=f));let a=l(c/s)===n;R(e,p)&&(r&&a?(p=t.key===(o?x.ARROW_RIGHT:x.ARROW_LEFT)?c:T(e,{startingIndex:f-f%s-1,disabledIndices:u}),i&&(p=i(t,f,p))):p=f)}return p},"getMaxListIndex",0,function(e,t){return T(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return T(e.current,{disabledIndices:t})},"isElementVisible",0,A,"isIndexOutOfListBounds",0,R,"isListIndexDisabled",0,C],520322)},90173,e=>{"use strict";e.s(["createAttribute",0,function(e){return`data-base-ui-${e}`}])},484212,568613,624582,e=>{"use strict";var t=e.i(880269),n=e.i(400449),r=e.i(553796),i=e.i(520203),o=e.i(69966);e.s(["CommonTriggerDataAttributes",0,o],568613);var o=o;o.popupOpen;let l="data-trigger-disabled";function s(e){return(0,t.isHTMLElement)(e)&&e.matches(i.TYPEABLE_SELECTOR)}e.s(["getFloatingFocusElement",0,function(e){return e?e.hasAttribute(i.FOCUSABLE_ATTRIBUTE)?e:e.querySelector(`[${i.FOCUSABLE_ATTRIBUTE}]`)||e:null},"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isInteractiveElement",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${i.TYPEABLE_SELECTOR}`)!=null},"isRootElement",0,function(e){return e.matches("html,body")},"isTargetInsideEnabledTrigger",0,function(e,n){if(!(0,t.isElement)(e))return!1;if(n.hasElement(e))return!e.hasAttribute(l);for(let[,t]of n.entries())if((0,r.contains)(t,e))return!t.hasAttribute(l);return!1},"isTypeableCombobox",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&s(e)},"isTypeableElement",0,s,"matchesFocusVisible",0,function(e){if(!e||n.platform.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],484212),e.s(["isClickLikeEvent",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"isMouseLikePointerType",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"isReactEvent",0,function(e){return"nativeEvent"in e},"isVirtualClick",0,function(e){return""===e.pointerType&&!!e.isTrusted||(n.platform.os.android&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"isVirtualPointerEvent",0,function(e){return!n.platform.env.jsdom&&(!n.platform.os.android&&0===e.width&&0===e.height||n.platform.os.android&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)},"stopEvent",0,function(e){e.preventDefault(),e.stopPropagation()}],624582)},568995,e=>{"use strict";var t=e.i(251412);let n=0;e.s(["enqueueFocus",0,function(e,r={}){let{preventScroll:i=!1,sync:o=!1,shouldFocus:l}=r;function s(){(!l||l())&&e?.focus({preventScroll:i})}if(cancelAnimationFrame(n),o)return s(),t.NOOP;let u=requestAnimationFrame(s);return n=u,()=>{n===u&&(cancelAnimationFrame(u),n=0)}}])},464999,e=>{"use strict";var t=e.i(880269),n=e.i(516948);let r={inert:new WeakMap,"aria-hidden":new WeakMap},i="data-base-ui-inert",o={inert:new WeakSet,"aria-hidden":new WeakSet},l=new WeakMap,s=0,u=(e,n)=>n.map(n=>{if(e.contains(n))return n;let r=function e(n){return n?(0,t.isShadowRoot)(n)?n.host:e(n.parentNode):null}(n);return e.contains(r)?r:null}).filter(e=>null!=e),a=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},c=(e,n,r)=>{let i=[],o=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,t.getNodeName)(e)&&(n.has(e)?o(e):i.push(e))})};return o(e),i};e.s(["markOthers",0,function(e,t={}){let{ariaHidden:f=!1,inert:d=!1,mark:g=!0}=t,p=(0,n.ownerDocument)(e[0]).body;return function(e,t,n,f,{mark:d=!0}){let g=null;f?g="inert":n&&(g="aria-hidden");let p=null,m=null,h=u(t,e),v=d?c(t,a(h),new Set(h)):[],b=[],y=[];if(g){let e=r[g],n=o[g];m=n,p=e;let i=u(t,Array.from(t.querySelectorAll("[aria-live]"))),l=h.concat(i);
1c(t,a(l),new Set(l)).forEach(t=>{let r=t.getAttribute(g),i=null!==r&&"false"!==r,o=(e.get(t)||0)+1;e.set(t,o),b.push(t),1===o&&i&&n.add(t),i||t.setAttribute(g,"inert"===g?"":"true")})}return d&&v.forEach(e=>{let t=(l.get(e)||0)+1;l.set(e,t),y.push(e),1===t&&e.setAttribute(i,"")}),s+=1,()=>{p&&b.forEach(e=>{let t=(p.get(e)||0)-1;p.set(e,t),t||(!m?.has(e)&&g&&e.removeAttribute(g),m?.delete(e))}),d&&y.forEach(e=>{let t=(l.get(e)||0)-1;l.set(e,t),t||e.removeAttribute(i)}),(s-=1)||(r.inert=new WeakMap,r["aria-hidden"]=new WeakMap,o.inert=new WeakSet,o["aria-hidden"]=new WeakSet,l=new WeakMap)}}(e,p,f,d,{mark:g})}])},559945,e=>{"use strict";e.s(["getNodeAncestors",0,function(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n},"getNodeChildren",0,function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}])},24781,e=>{"use strict";var t=e.i(880269),n=e.i(516948),r=e.i(553796),i=e.i(520322);function o(e){for(let n of Array.from(e.children))if("summary"===(0,t.getNodeName)(n))return n;return null}function l(e){let n=e?(0,t.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==n||null!=e.parentElement&&"details"===(0,t.getNodeName)(e.parentElement)&&o(e.parentElement)===e)&&("details"!==n||null==o(e))&&("input"!==n||"hidden"!==e.type)}function s(e){if(!l(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let n=e;n;n=function(e){let n=e.assignedSlot;if(n)return n;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,t.isShadowRoot)(r)?r.host:null}(n)){let l=n!==e,s="slot"===(0,t.getNodeName)(n);if(n.hasAttribute("inert")||l&&"details"===(0,t.getNodeName)(n)&&!n.open&&!function(e,t){let n=o(t);return!!n&&(e===n||(0,r.contains)(n,e))}(e,n)||n.hasAttribute("hidden")||!s&&!function(e,n){let r=(0,t.getComputedStyle)(e);return n?"none"!==r.display:(0,i.isElementVisible)(e,r)}(n,l))return!1}return!0}function u(e){let n=e.tabIndex;if(n<0){let n=(0,t.getNodeName)(e);if("details"===n||"audio"===n||"video"===n||(0,t.isHTMLElement)(e)&&e.isContentEditable)return 0}return n}function a(e){return"input"!==(0,t.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function c(e){if((0,t.isHTMLElement)(e)&&"slot"===(0,t.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,t.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function f(e){let t=[];return!function e(t,n){c(t).forEach(t=>{l(t)&&n.push(t),e(t,n)})}(e,t),t.filter(s)}function d(e){let t=f(e);return t.filter(e=>u(e)>=0&&function(e,t){let n=a(e);if(!n)return!0;let r=t.find(e=>{let t=a(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=a(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function g(e,t){let i=d(e),o=i.length;if(0===o)return;let l=(0,r.activeElement)((0,n.ownerDocument)(e)),s=i.indexOf(l);return i[-1===s?1===t?0:o-1:s+t]}function p(e,t){if(!e)return null;let r=d((0,n.ownerDocument)(e).body),i=r.length;if(0===i)return null;let o=r.indexOf(e);return -1===o?null:r[(o+t+i)%i]}e.s(["disableFocusInside",0,function(e){d(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})},"enableFocusInside",0,function(e){let n=[];!function e(n,r,i){c(n).forEach(n=>{(0,t.isHTMLElement)(n)&&n.matches(r)&&i.push(n),e(n,r,i)})}(e,"[data-tabindex]",n),n.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})},"focusable",0,f,"getNextTabbable",0,function(e){return g((0,n.ownerDocument)(e).body,1)||e},"getPreviousTabbable",0,function(e){return g((0,n.ownerDocument)(e).body,-1)||e},"getTabbableAfterElement",0,function(e){return p(e,1)},"getTabbableBeforeElement",0,function(e){return p(e,-1)},"isOutsideEvent",0,function(e,t){let n=t||e.currentTarget,i=e.relatedTarget;return!i||!(0,r.contains)(n,i)},"isTabbable",0,function(e){return s(e)&&u(e)>=0},"tabbable",0,d])},212617,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},373270,e=>{"use strict";var t=e.i(7667),n=e.i(312207),r=e.i(747054),i=e.i(473444),o=e.i(566527),l=e.i(727448);function s(){return new Map}function u(){return new Set}function a(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["CompositeList",0,function(e){let{children:c,elementsRef:f,labelsRef:d,onMapChange:g}=e,p=(0,r.useStableCallback)(g),[,m]=t.useState(!1),h=(0,n.useRefWithInit)(u).current,v=(0,n.useRefWithInit)(s).current,b=t.useRef(0),y=t.useRef(!0),E=t.useRef(null),w=t.useRef(null),x=(0,r.useStableCallback)(()=>{y.current||(y.current=!0,m(e=>!e))}),S=(0,r.useStableCallback)((e,t)=>{v.set(e,t),x()}),R=(0,r.useStableCallback)(e=>{v.delete(e),x()}),T=(0,r.useStableCallback)(e=>{let t=new Map;
1return f.current.length=0,d&&(d.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),f.current[e.index]=e.element,d&&(d.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),b.current=f.current.length,t}),C=(0,r.useStableCallback)(()=>{var e;let t,n,r,i,[o,l]=(e=v,t=new Set,n=[],r=[],e.forEach((e,i)=>{if(!i.isConnected)return;let o=e.index,l={index:o??-1,element:i,registration:e};null===o?r.push(l):o>=0&&(t.add(o),n.push(l))}),i=0,r.sort((e,t)=>a(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]),s=T(o),u=E.current,c=!u||u.length!==o.length||o.some((e,t)=>{let n=u[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});!function(e){if(w.current?.disconnect(),w.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(n=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&a(r,n)>0){t.disconnect(),x();return}r=n}});w.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=function(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}(l),E.current=o,y.current=!1,c&&(h.forEach(e=>e(s)),p(s))});(0,i.useIsoLayoutEffect)(()=>(!y.current&&E.current&&T(E.current),()=>{f.current=[],d&&(d.current=[])}),[f,d,T]),(0,i.useIsoLayoutEffect)(()=>{y.current&&C()}),(0,i.useIsoLayoutEffect)(()=>()=>{w.current?.disconnect(),y.current=!0},[]);let A=(0,r.useStableCallback)(e=>(h.add(e),()=>{h.delete(e)})),O=t.useMemo(()=>({register:S,unregister:R,subscribeMapChange:A,nextIndexRef:b}),[S,R,A,b]);return(0,l.jsx)(o.CompositeListContext.Provider,{value:O,children:c})}])},566527,e=>{"use strict";e.i(817325);var t=e.i(7667);let n=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});e.s(["CompositeListContext",0,n,"useCompositeListContext",0,function(){return t.useContext(n)}])},385568,e=>{"use strict";var t=e.i(7667),n=e.i(473444),r=e.i(566527);e.s(["useCompositeListItem",0,function(e={}){let{guess:i,label:o,metadata:l,textRef:s,index:u}=e,{register:a,unregister:c,subscribeMapChange:f,nextIndexRef:d}=(0,r.useCompositeListContext)(),g=t.useRef(-1),[p,m]=t.useState(null==u&&i?()=>{if(-1===g.current){let e=d.current;d.current+=1,g.current=e}return g.current}:-1),h=u??p,v=t.useRef(null),b=t.useCallback(e=>{let t=v.current;t&&c(t),v.current=e,e&&a(e,{metadata:l??null,index:u??null,label:o,textRef:s})},[u,a,c,l,o,s]);return(0,n.useIsoLayoutEffect)(()=>{if(null==u)return f(e=>{let t=v.current?e.get(v.current)?.index:null;null!=t&&m(t)})},[u,f]),{ref:b,index:h}}])},980547,e=>{"use strict";var t=e.i(251412);e.s(["createChangeEventDetails",0,function(e,n,r,i){let o=!1,l=!1,s=i??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),cancel(){o=!0},allowPropagation(){l=!0},get isCanceled(){return o},get isPropagationAllowed(){return l},trigger:r,...s}},"createGenericEventDetails",0,function(e,n,r){let i=r??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),...i}}])},158761,e=>{"use strict";e.i(817325);var t=e.i(7667);let n=t.createContext(void 0);e.s(["useDirection",0,function(){let e=t.useContext(n);return e?.direction??"ltr"}])},538014,e=>{"use strict";var t=e.i(251412),n=e.i(169605);e.s(["getDisabledMountTransitionStyles",0,function(e){return"starting"===e?n.DISABLED_TRANSITIONS_STYLE:t.EMPTY_OBJECT}])},704571,534907,982765,e=>{"use strict";e.s(["getStateAttributesProps",0,function(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);null!=e&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}],704571),e.s(["resolveClassName",0,function(e,t){return"function"==typeof e?e(t):e}],534907),e.s(["resolveStyle",0,function(e,t){return"function"==typeof e?e(t):e}],982765)},611463,e=>{"use strict";e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","initial",0,"initial","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","
1inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","missing",0,"missing","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],32577);var t=e.i(32577);e.s(["REASONS",0,t],611463)},160896,116901,e=>{"use strict";var t=e.i(212617);let n={[t.startingStyle]:""},r={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?n:"ending"===e?r:null}],160896);let i=t.startingStyle,o=t.endingStyle;e.s(["align",0,"data-align","anchorHidden",0,"data-anchor-hidden","closed",0,"data-closed","endingStyle",0,o,"open",0,"data-open","side",0,"data-side","startingStyle",0,i],116901)},266223,194634,479995,413923,e=>{"use strict";var t=e.i(7667),n=e.i(880269),r=e.i(747054),i=e.i(473444),o=e.i(410946),l=e.i(758737);let s=t.createContext(void 0);function u(e=!1){let n=t.useContext(s);if(void 0===n&&!e)throw Error((0,l.default)(16));return n}e.s(["useCompositeRootContext",0,u],194634);var a=n;e.s(["ownerWindow",()=>a.getWindow],479995);var a=n;function c(e,t,{detail:n=0}={}){e.dispatchEvent(new((0,a.getWindow)(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function f(e){return(0,n.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["dispatchClickWithModifiers",0,c],413923),e.s(["useButton",0,function(e={}){let{disabled:l=!1,focusableWhenDisabled:s,tabIndex:a=0,native:d=!0,composite:g}=e,p=t.useRef(null),m=u(!0),h=g??void 0!==m,{props:v}=function(e){let{focusableWhenDisabled:n,disabled:r,composite:i=!1,tabIndex:o=0,isNativeButton:l}=e,s=i&&!1!==n,u=i&&!1===n;return{props:t.useMemo(()=>{let e={onKeyDown(e){r&&n&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=o,!l&&r&&(e.tabIndex=n?o:-1)),(l&&(n||s)||!l&&r)&&(e["aria-disabled"]=r),l&&(!n||u)&&(e.disabled=r),e},[i,r,n,s,u,l,o])}}({focusableWhenDisabled:s,disabled:l,composite:h,tabIndex:a,isNativeButton:d}),b=t.useCallback(()=>{let e=p.current;f(e)&&h&&l&&void 0===v.disabled&&e.disabled&&(e.disabled=!1)},[l,v.disabled,h]);return(0,i.useIsoLayoutEffect)(b,[b]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:i,onKeyDown:s,onPointerDown:u,...a}=e;return(0,o.mergeProps)({onClick(e){l?e.preventDefault():t?.(e)},onMouseDown(e){l||r?.(e)},onKeyDown(e){var t;if(l||((0,o.makeEventPreventable)(e),s?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,u=f(i),a=!d&&(t=i,(0,n.isHTMLElement)(t)&&"A"===t.tagName&&!!t.href),g=r&&(d?u:!a),p="Enter"===e.key,m=" "===e.key,v=i.getAttribute("role"),b=v?.startsWith("menuitem")||"option"===v||"gridcell"===v;if(r&&h&&m){if(e.defaultPrevented&&b)return;e.preventDefault(),(!d||u)&&(e.preventBaseUIHandler(),c(i,e));return}if(!g||d||!m&&!p){r&&a&&m&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),p&&(e.preventBaseUIHandler(),c(i,e)))},onKeyUp(e){l||(((0,o.makeEventPreventable)(e),i?.(e),e.target===e.currentTarget&&d&&h&&f(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||d||h||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),c(e.currentTarget,e))))},onPointerDown(e){l?e.preventDefault():u?.(e)}},d?{type:"button"}:{role:"button"},v,a)},[l,v,h,d]),buttonRef:(0,r.useStableCallback)(e=>{p.current=e,b()})}}],266223)},305908,469992,821117,e=>{"use strict";var t=e.i(7667),n=e.i(210242),r=e.i(516948),i=e.i(479995),o=e.i(473444),l=e.i(871689),s=e.i(747054),u=e.i(825339),a=e.i(850213),c=e.i(996554),f=e.i(158761);let d={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,o=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||0===t&&0===n&&0===r&&0===i}}}},g={sideX:"left",sideY:"top"};e.s(["DEFAULT_SIDES",0,g],469992);let p="--available-width",m="--available-height",h="--anchor-width",v="--anchor-height",b="--transform-origin";function y(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function E(e,t,r){let{rects:i,placement:o}=e;return{side:y(t,(0,n.getSide)(o),r),align:(0,n.getAlignment)(o)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function w(e){return null!=e&&"current"in e}e.s(["anchorHeight",0,v,"anchorWidth",0,h,"availableHeight",0,m,"availableWidth",0,p,"positionerHeight",0,"--positioner-height","positionerWidth",0,"--positioner-width","transformOrigin",0,b],821117),e.s(["useAnchorPositioning",0,function(e){return function(e,c){let{anchor:x,positionMethod:S="absolute",side:R="bottom",sideOffset:T=0,align:C="center",alignOffset:A=0,collisionBoundary:O,collisionPadding:k=5,sticky:L=!1,arrowPadding:I=5,disableAnchorTracking:P=!1,inline:M,keepMounted:N=!1,floatingRootContext:D,mounted:W,collisionAvoidance:F,shift:H,nodeId:_,adaptiveOrigin:B,lazyFlip:V=!1,externalTree:j}=e,[Y,U]=t.useState(null);W||null===Y||U(null);let $=F.side||"flip",q=F.align||"flip",K=F.fallbackAxisSide||"end",z=H?.crossAxis??!1,G=H?.rootBoundary,X="function"==typeof x?x:void 0,J=(0,s.use
1StableCallback)(X),Q=X?J:x,Z=(0,l.useValueAsRef)(x),ee=(0,l.useValueAsRef)(W),et="rtl"===(0,f.useDirection)(),en=Y||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":et?"left":"right","inline-start":et?"right":"left"})[R],er="center"===C?en:`${en}-${C}`,ei=k;"number"==typeof ei?ei={top:ei,right:ei,bottom:ei,left:ei}:ei&&(ei={top:ei.top||0,right:ei.right||0,bottom:ei.bottom||0,left:ei.left||0});let eo=+("bottom"===R),el=+("top"===R),es=+("right"===R),eu=+("left"===R),ea={boundary:"clipping-ancestors"===O?"clippingAncestors":O,padding:ei},ec=t.useRef(null),ef=(0,l.useValueAsRef)(T),ed=(0,l.useValueAsRef)(A),eg="function"!=typeof T?T:0,ep="function"!=typeof A?A:0,em=[];M&&em.push(M),em.push((0,a.offset)(e=>{let t=E(e,R,et),n="function"==typeof ef.current?ef.current(t):ef.current,r="function"==typeof ed.current?ed.current(t):ed.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[eg,ep,et,R]));let eh="none"===q&&"shift"!==$,ev=!eh&&(L||z||"shift"===$),eb="none"===$?null:(0,a.flip)({...ea,padding:{top:ei.top+1+eo,right:ei.right+1+eu,bottom:ei.bottom+1+el,left:ei.left+1+es},mainAxis:!z&&"flip"===$,crossAxis:"flip"===q&&"alignment",fallbackAxisSideDirection:K}),ey=eh?null:(0,a.shift)({...ea,rootBoundary:G,mainAxis:"none"!==q,crossAxis:ev,limiter:L||z?void 0:(0,a.limitShift)(e=>{if(!ec.current)return{};let{width:t,height:r}=ec.current.getBoundingClientRect(),i=(0,n.getSideAxis)((0,n.getSide)(e.placement)),o="y"===i?ei.left+ei.right:ei.top+ei.bottom;return{offset:("y"===i?t:r)/2+o/2}})},[ea,L,z,G,ei,q]);"shift"===$||"shift"===q||"center"===C?em.push(ey,eb):em.push(eb,ey),em.push((0,a.size)({...ea,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!ee.current)return;let o=e.style;o.setProperty(p,`${t}px`),o.setProperty(m,`${n}px`);let l=(0,i.ownerWindow)(e).devicePixelRatio||1,{x:s,y:u,width:a,height:c}=r.reference,f=(Math.round((s+a)*l)-Math.round(s*l))/l,d=(Math.round((u+c)*l)-Math.round(u*l))/l;o.setProperty(h,`${f}px`),o.setProperty(v,`${d}px`)}}),((e,t)=>{let{name:r,fn:i}={name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:o,rects:l,platform:s,elements:u,middlewareData:a}=t,{element:c,padding:f=0,offsetParent:d="real"}=(0,n.evaluate)(e,t)||{};if(null==c)return{};let g=(0,n.getPaddingObject)(f),p={x:r,y:i},m=(0,n.getAlignmentAxis)(o),h=(0,n.getAxisLength)(m),v=await s.getDimensions(c),b="y"===m,y=b?"clientHeight":"clientWidth",E=l.reference[h]+l.reference[m]-p[m]-l.floating[h],w=p[m]-l.reference[m],x="real"===d?await s.getOffsetParent?.(c):u.floating,S=u.floating[y]||l.floating[h];S&&await s.isElement?.(x)||(S=u.floating[y]||l.floating[h]);let R=S/2-v[h]/2-1,T=Math.min(g[b?"top":"left"],R),C=Math.min(g[b?"bottom":"right"],R),A=S-v[h]-C,O=S/2-v[h]/2+(E/2-w/2),k=(0,n.clamp)(T,O,A),L=!a.arrow&&null!=(0,n.getAlignment)(o)&&O!==k&&l.reference[h]/2-(O<T?T:C)-v[h]/2<0,I=L?O<T?O-T:O-A:0;return{[m]:p[m]+I,data:{[m]:k,centerOffset:O-k-I,...L&&{alignmentOffset:I}},reset:L}}};return{name:r,fn:i,options:[e,t]}})(e=>({element:ec.current||(0,r.ownerDocument)(e.elements.floating).createElement("div"),padding:ec.current?I:0,offsetParent:"floating"}),[I]),{name:"transformOrigin",fn(e){let t,{elements:{floating:r},middlewareData:i,placement:o,platform:l,rects:s,y:u}=e,a=(0,n.getSide)(o),c=(0,n.getAlignment)(o),f="y"===(0,n.getSideAxis)(a),d=ec.current,g="function"==typeof T?T(E(e,R,et)):T;if(!d&&c&&1>=Math.abs(f?i.shift?.x||0:i.shift?.y||0))t="start"===c===(f&&l.isRTL?.(r)===!0)?"100%":"0%";else{let e=f?i.arrow?.x||0:i.arrow?.y||0,n=f?d?.clientWidth||0:d?.clientHeight||0;t=`${e+n/2}px`}let p="top"===a||"left"===a?`calc(100% + ${g}px)`:`${-g}px`;return ev&&f&&Math.abs(i.shift?.y||0)>g&&(p=`${s.reference.y+s.reference.height/2-u}px`),r.style.setProperty(b,f?`${t} ${p}`:`${p} ${t}`),{}}},d,B),(0,o.useIsoLayoutEffect)(()=>{!W&&D&&D.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[W,D]);let eE=t.useMemo(()=>({ancestorScroll:!P,elementResize:!P&&"u">typeof ResizeObserver,layoutShift:!P&&"u">typeof IntersectionObserver}),[P]),{refs:ew,elements:ex,x:eS,y:eR,middlewareData:eT,update:eC,placement:eA,context:eO,isPositioned:ek,floatingStyles:eL}=c({rootContext:D,open:N?W:void 0,placement:er,middleware:em,strategy:S,whileElementsMounted:N?void 0:(...e)=>(0,u.autoUpdate)(...e,eE),nodeId:_,externalTree:j}),{sideX:eI,sideY:eP}=eT.adaptiveOrigin||g,eM=ek?S:"fixed",eN=t.useMemo(()=>{let e;return(e=ek?B?{position:eM,[eI]:eS,[eP]:eR}:{...eL,position:eM}:{position:eM,top:0,left:0})[p]="100vw",e[m]="100vh",ek||(e.opacity=0),e},[B,eM,eI,eS,eP,eR,eL,ek]),eD=t.useRef(null);(0,o.useIsoLayoutEffect)(()=>
1{if(!W)return;let e=Z.current,t="function"==typeof e?e():e,n=(w(t)?t.current:t)||null;n!==eD.current&&(ew.setPositionReference(n),eD.current=n)},[W,ew,Q,Z]),t.useEffect(()=>{if(!W)return;let e=Z.current;"function"!=typeof e&&w(e)&&e.current!==eD.current&&(ew.setPositionReference(e.current),eD.current=e.current)},[W,ew,Q,Z]),t.useEffect(()=>{if(N&&W&&ex.reference&&ex.floating)return(0,u.autoUpdate)(ex.reference,ex.floating,eC,eE)},[N,W,ex,eC,eE]);let eW=(0,n.getSide)(eA),eF=y(R,eW,et),eH=(0,n.getAlignment)(eA)||"center",e_=!!eT.hide?.referenceHidden;(0,o.useIsoLayoutEffect)(()=>{V&&W&&ek&&eW!==en&&U(eW)},[V,W,ek,eW,en]);let eB=t.useMemo(()=>({position:"absolute",top:eT.arrow?.y,left:eT.arrow?.x}),[eT.arrow]),eV=eT.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eN,arrowStyles:eB,arrowRef:ec,arrowUncentered:eV,side:eF,align:eH,physicalSide:eW,anchorHidden:e_,refs:ew,context:eO,isPositioned:ek,update:eC}),[eN,eB,ec,eV,eF,eH,eW,e_,ew,eO,ek,eC])}(e,c.useBaseUIFloating)}],305908)},821893,e=>{"use strict";var t=e.i(769762);e.s(["useBaseUiId",0,function(e){return(0,t.useId)(e,"base-ui")}])},173575,646510,e=>{"use strict";var t=e.i(7667),n=e.i(747054),r=e.i(671770),i=e.i(261569),o=e.i(947714),l=e.i(212617);let s=null;function u(e,t=!1,a=!1){let c=(0,i.useAnimationFrame)();return(0,n.useStableCallback)((n,i=null)=>{c.cancel();let u=(0,o.resolveRef)(e);if(null==u)return;let f=()=>{if(!a)return void r.flushSync(n);if(!s){let e=[];s=e,queueMicrotask(()=>{s=null,r.flushSync(()=>{for(let t of e)t()})})}s.push(()=>{i?.aborted||n()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function d(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||f()},()=>{i?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?d():f())})}if(t){let e=l.startingStyle;if(!u.hasAttribute(e))return void c.request(d);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),d())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(d)})}e.s(["useAnimationsFinished",0,u],646510),e.s(["useOpenChangeComplete",0,function(e){let{enabled:r=!0,open:i,ref:o,batch:l=!1,onComplete:s}=e,a=(0,n.useStableCallback)(s),c=u(o,i,l);t.useEffect(()=>{if(!r)return;let e=new AbortController;return c(a,e.signal),()=>{e.abort()}},[r,i,a,c])}],173575)},388323,e=>{"use strict";e.i(817325);var t=e.i(758737),n=e.i(7667),r=e.i(512042),i=e.i(384961),o=e.i(694435);e.i(419147);var l=e.i(251412),s=e.i(704571),u=e.i(534907),a=e.i(982765),c=e.i(410946);let f=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,d,g={}){let p=d.render;!1!==g.enabled&&(p=function(e){if(e?.$$typeof!==f)return e;let t=n.Children.toArray(e)[0];return n.isValidElement(t)?t:e}(p));let m=function(e,t,n){var f;let{className:d,style:g}=e,{state:p=l.EMPTY_OBJECT,ref:m,props:h,stateAttributesMapping:v,enabled:b=!0}=t,y=b?(0,u.resolveClassName)(d,p):void 0,E=b?(0,a.resolveStyle)(g,p):void 0,w=b?(0,s.getStateAttributesProps)(p,v):l.EMPTY_OBJECT,x=b&&h?Array.isArray(f=h)?(0,c.mergePropsN)(f):(0,c.mergeProps)(void 0,f):void 0,S=b?(0,o.mergeObjects)(w,x)??{}:l.EMPTY_OBJECT;return("u">typeof document&&(b?Array.isArray(m)?S.ref=(0,r.useMergedRefsN)([S.ref,(0,i.getReactElementRef)(n),...m]):S.ref=(0,r.useMergedRefs)(S.ref,(0,i.getReactElementRef)(n),m):(0,r.useMergedRefs)(null,null)),b)?(void 0!==y&&(S.className=(0,c.mergeClassNames)(S.className,y)),void 0!==E&&(S.style=(0,o.mergeObjects)(S.style,E)),S):l.EMPTY_OBJECT}(d,g,p);return!1===g.enabled?null:function(e,r,i,o){if(r){if("function"==typeof r)return r(i,o);let e=(0,c.mergeProps)(i,r.props);return e.ref=i.ref,n.cloneElement(r,e)}if(e&&"string"==typeof e){var l,s;return l=e,s=i,"button"===l?(0,n.createElement)("button",{type:"button",...s,key:s.key}):"img"===l?(0,n.createElement)("img",{alt:"",...s,key:s.key}):n.createElement(l,s)}throw Error((0,t.default)(8))}(e,p,m,g.state??l.EMPTY_OBJECT)}])},46327,e=>{"use strict";var t=e.i(7667),n=e.i(473444),r=e.i(261569);e.s(["useTransitionStatus",0,function(e,i=!1,o=!1,l=!1){let[s,u]=t.useState(e&&i?"idle":void 0),[a,c]=t.useState(e&&!l);return e&&!a&&(c(!0),u("starting")),e||!a||"ending"===s||o||u("ending"),e||a||"ending"!==s||u(void 0),(0,n.useIsoLayoutEffect)(()=>
1{if(!e&&a&&"ending"!==s&&o){let e=r.AnimationFrame.request(()=>{u("ending")});return()=>{r.AnimationFrame.cancel(e)}}},[e,a,s,o]),(0,n.useIsoLayoutEffect)(()=>{if(!e||i)return;let t=r.AnimationFrame.request(()=>{u(void 0)});return()=>{r.AnimationFrame.cancel(t)}},[i,e]),(0,n.useIsoLayoutEffect)(()=>{if(!e||!i)return;e&&a&&"idle"!==s&&u("starting");let t=r.AnimationFrame.request(()=>{u("idle")});return()=>{r.AnimationFrame.cancel(t)}},[i,e,a,s]),{mounted:a,setMounted:c,transitionStatus:s}}])},410946,e=>{"use strict";var t=e.i(694435);let n={};function r(e){return l(e)?{...s(e,n)}:function(e){let t={...e};for(let e in t){let n=t[e];o(e,n)&&(t[e]=u(n))}return t}(e)}function i(e,n){return l(n)?s(n,e):function(e,n){if(!n)return e;for(let r in n){let i=n[r];switch(r){case"style":e[r]=(0,t.mergeObjects)(e.style,i);break;case"className":e[r]=c(e.className,i);break;default:o(r,i)?e[r]=function(e,t){return t?e?(...n)=>{let r=n[0];if(f(r)){a(r);let i=t(...n);return r.baseUIHandlerPrevented||e?.(...n),i}let i=t(...n);return e?.(...n),i}:u(t):e}(e[r],i):e[r]=i}}return e}(e,n)}function o(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===r&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function l(e){return"function"==typeof e}function s(e,t){return l(e)?e(t):e??n}function u(e){return e?(...t)=>{let n=t[0];return f(n)&&a(n),e(...t)}:e}function a(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function c(e,t){return t?e?t+" "+e:t:e}function f(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,a,"mergeClassNames",0,c,"mergeProps",0,function(e,t,n,o,l){if(!n&&!o&&!l&&!e)return r(t);let s=r(e);return t&&(s=i(s,t)),n&&(s=i(s,n)),o&&(s=i(s,o)),l&&(s=i(s,l)),s},"mergePropsN",0,function(e){if(0===e.length)return n;if(1===e.length)return r(e[0]);let t=r(e[0]);for(let n=1;n<e.length;n+=1)t=i(t,e[n]);return t}])},69966,e=>{"use strict";e.s(["popupOpen",0,"data-popup-open","pressed",0,"data-pressed"])},114825,e=>{"use strict";e.i(817325);var t=e.i(7667),n=e.i(473444),r=e.i(400449),i=e.i(239786),o=e.i(727448);let l=t.forwardRef(function(e,l){let[s,u]=t.useState();return(0,n.useIsoLayoutEffect)(()=>{r.platform.screenReader.voiceOver&&r.platform.engine.webkit&&u("button")},[]),(0,o.jsx)("span",{...e,ref:l,style:i.visuallyHidden,"aria-hidden":!s||void 0,...{tabIndex:0,role:s},"data-base-ui-focus-guard":""})});e.s(["FocusGuard",0,l])},923428,e=>{"use strict";e.i(817325);var t=e.i(7667),n=e.i(727448);let r=t.forwardRef(function(e,t){let r,{cutout:i,...o}=e;if(i){let e=i.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,n.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});e.s(["InternalBackdrop",0,r])},963146,e=>{"use strict";var t=e.i(479995),n=e.i(400449);e.s(["isMouseWithinBounds",0,function(e,r){let i=function(e){let r=e.getBoundingClientRect(),i=(0,t.ownerWindow)(e);if(n.platform.env.jsdom)return r;let o=i.getComputedStyle(e,"::before"),l=i.getComputedStyle(e,"::after");if("none"===o.content&&"none"===l.content)return r;let s=parseFloat(o.width)||0,u=parseFloat(o.height)||0,a=parseFloat(l.width)||0,c=parseFloat(l.height)||0,f=Math.max(r.width,s,a),d=Math.max(r.height,u,c),g=f-r.width,p=d-r.height;return{left:r.left-g/2,right:r.right+g/2,top:r.top-p/2,bottom:r.bottom+p/2}}(r);return e.clientX>=i.left-5&&e.clientX<=i.right+5&&e.clientY>=i.top-5&&e.clientY<=i.bottom+5}])},326318,e=>{"use strict";var t=e.i(160896),n=e.i(116901),r=e.i(69966);let i={[r.popupOpen]:""},o={[r.popupOpen]:"",[r.pressed]:""},l={[n.open]:""},s={[n.closed]:""},u={[n.anchorHidden]:""},a={open:e=>e?l:s,anchorHidden:e=>e?u:null},c={...a,...t.transitionStatusMapping};e.s(["popupStateMapping",0,a,"popupTransitionStateMapping",0,c,"pressableTriggerOpenStateMapping",0,{open:e=>e?o:null},"triggerOpenStateMapping",0,{open:e=>e?i:null}])},935150,e=>{"use strict";var t=e.i(7667);e.i(671770);var n=e.i(251412),r=e.i(747054),i=e.i(473444),o=e.i(520203),l=e.i(46327),s=e.i(173575),u=e.i(980547),a=e.i(611463);let c={tabIndex:-1,[o.FOCUSABLE_ATTRIBUTE]:""};function f(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function d(e,n){let i=t.useRef(null);return(0,r.useStableCallback)(t=>{let r=i.current;if(null!==r){if(r.element===t&&r.store===n&&r.id===e)return;i.current=null;let o=r.store;o.context.triggerElements.getById(r.id)===r.element&&(o.context.triggerElements.delete(r.id),f(o))}null!==t&&void 0!==e&&(i.current={store:n,id:e,element:t},n.context.triggerElements.add(e,t),f(n))})}e.s(["FOCUSABLE_POPUP_PROPS",0,c,"PopupHandleAttachment",0,function({handle:e,store:t}){return(0,i.useIsoLayoutEffect)(()=>e.attachStore(t),[e,t]),null},"attachPreventUnmountOnClose",0,function(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t},"createPopupOpenState",0,function(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let o=n?.id??null,l=e.activeTriggerId,s=e.activeTriggerElement;return(o||t)&&(l=o,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:l,activeTriggerElement:s}},"useImplicitActiveTrigger",0,function(e,n={}){let{closeOnActiveTriggerUnmount:r=!1}=n,o=t.useRef(null),l=e.useState("open"),s=e.useState("triggerCount"),c=e.useState("activeTriggerId"),f=e.useState("activeTriggerElement");(0,i.useIsoLayoutEffect)(()=>
1{if(!l){o.current=null,0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,n={};e.state.triggerCount!==t&&(n.triggerCount=t);let i=e.select("activeTriggerId"),s=null;if(i){let t=e.context.triggerElements.getById(i);if(t)o.current=i,t!==e.state.activeTriggerElement&&(n.activeTriggerElement=t);else{for(let[t,r]of e.context.triggerElements.entries())if(r===e.state.activeTriggerElement){n.activeTriggerId=t,n.activeTriggerElement=r,o.current=t;break}void 0===n.activeTriggerId&&(o.current===i?s=i:o.current=null)}}else o.current=null;if(!s&&!i&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,r]=t.value;n.activeTriggerId=e,n.activeTriggerElement=r,o.current=e}}(void 0!==n.triggerCount||void 0!==n.activeTriggerId||void 0!==n.activeTriggerElement)&&e.update(n),s&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===s&&!e.context.triggerElements.getById(s)){let t=(0,u.createChangeEventDetails)(a.REASONS.none);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[l,e,s,c,f,r])},"useOpenStateTransitions",0,function(e,t,n,i){let{mounted:o,setMounted:u,transitionStatus:a}=(0,l.useTransitionStatus)(e,!1,!1,i),c=t.useState("preventUnmountingOnClose"),f=!e&&c;t.useSyncedValues({mounted:o,transitionStatus:a,preventUnmountingOnClose:f});let d=(0,r.useStableCallback)(()=>{u(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return(0,s.useOpenChangeComplete)({enabled:o&&!e&&!f,open:e,ref:t.context.popupRef,onComplete(){e||d()}}),{forceUnmount:d,transitionStatus:a}},"usePopupInteractionProps",0,function(e,t){e.useSyncedValues(t),(0,i.useIsoLayoutEffect)(()=>()=>{e.update({activeTriggerProps:n.EMPTY_OBJECT,inactiveTriggerProps:n.EMPTY_OBJECT,popupProps:n.EMPTY_OBJECT})},[e])},"useTriggerDataForwarding",0,function(e,t,n,o){let l=n.useState("isMountedByTrigger",e),s=d(e,n),u=(0,r.useStableCallback)(t=>{let r=n.select("open"),i=n.select("activeTriggerId");if(i===e){let e={activeTriggerElement:t,...r?o:null};n.update(e);return}if(null==i&&r){let r={activeTriggerId:e??null,activeTriggerElement:t,...o};n.update(r)}}),a=(0,r.useStableCallback)(e=>{s(e),e&&u(e)});return(0,i.useIsoLayoutEffect)(()=>(a(t.current),()=>a(null)),[a,t,n,e]),(0,i.useIsoLayoutEffect)(()=>{if(l){let e={activeTriggerElement:t.current,...o};n.update(e)}},[l,n,t,...Object.values(o)]),{registerTrigger:a,isMountedByThisTrigger:l}},"useTriggerRegistration",0,d])},628279,e=>{"use strict";e.i(817325),e.s(["PopupTriggerMap",0,class{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}])},947714,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},505890,253151,e=>{"use strict";var t=e.i(7667),n=e.i(747054),r=e.i(400449),i=e.i(473444);function o(e,r){let o=t.useRef(e),l=(0,n.useStableCallback)(r);(0,i.useIsoLayoutEffect)(()=>{o.current!==e&&l(o.current),o.current=e},[e,l])}e.s(["useValueChanged",0,o],253151),e.s(["useOpenInteractionType",0,function(e){let[i,l]=t.useState(null),s=function(e,i){var o;let l,s,{onClick:u,onPointerDown:a}=(o=(0,n.useStableCallback)((t,n)=>{("function"==typeof e?e():e)||i(n||(r.platform.os.ios?"touch":""))}),l=t.useRef(""),s=t.useCallback(e=>{e.defaultPrevented||(l.current=e.pointerType,o(e,e.pointerType))},[o]),{onClick:t.useCallback(e=>{0===e.detail?o(e,"keyboard"):("pointerType"in e?o(e,e.pointerType):o(e,l.current),l.current="")},[o]),onPointerDown:s});return t.useMemo(()=>({onClick:u,onPointerDown:a}),[u,a])}(e,l);return o(e,t=>{t&&!e&&l(null)}),t.useMemo(()=>({openMethod:i,triggerProps:s}),[i,s])}],505890)},40563,988568,e=>{"use strict";var t=e.i(326318),n=e.i(388323),r=e.i(538014);e.s(["usePositioner",0,function(e,i,{styles:o,transitionStatus:l,props:s,refs:u,hidden:a,inert:c=!1}){let f={...o};return c&&(f.pointerEvents="none"),(0,n.useRenderElement)("div",e,{state:i,ref:u,props:[{role:"presentation",hidden:a,style:f},(0,r.getDisabledMountTransitionStyles)(l),s],stateAttributesMapping:t.popupStateMapping})}],40563);var i=e.i(7667),o=e.i(516948),l=e.i(880269),s=e.i(721472),u=e.i(400449),a=e.i(479995),c=e.i(473444),f=e.i(699397),d=e.i(261569);let g={},p={},m="";function h(e,t){return(0,l.isOverflowElement)(e)?e:t}function v(e,t,n){return/hidden|clip/.test(e.getComputedStyle(h(t,n)).overflowY)}class b{lockCount=0;restore=null;timeoutLock=f.Timeout.create();timeoutUnlock=f.Timeout.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,n,r;if(0===this.lockCount||null!==this.restore)return;let i=(0,o.ownerDocument)(e),l=i.documentElement,c=i.body,f=(0,a.ownerWindow)(l);if(v(f,l,c)){let t=new f.MutationObserver(()=>{v(f,l,c)||(t.disconnect(),this.restore=null,this.lock(e))}),n={attributes:!0};t.observe(l,n),t.observe(c,n),this.restore=()=>t.disconnect();return}let b=u.platform.os.ios||!function(e){if("u"<typeof document)return!1;let t=(0,o.ownerDocument)(e);return(0,a.ownerWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=b?(r={overflowY:(n=h((t=(0,o.ownerDocument)(e)).documentElement,t.body)).style.overflowY,overflowX:n.style.overflowX},Object.assign(n.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(n.style,r)}):function(e){let t=(0,o.ownerDocument)(e),n=t.documentElement,r=t.body,i=(0,a.ownerWindow)(n),l=0,c=0,f=!1,v=d.AnimationFrame.create();
1if(u.platform.engine.webkit&&(i.visualViewport?.scale??1)!==1)return()=>{};function b(){let t=i.getComputedStyle(n),s=i.getComputedStyle(r),u=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";l=n.scrollTop,c=n.scrollLeft,g={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},m=n.style.scrollBehavior,p={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let a=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,v="scroll"===t.overflowY||"scroll"===s.overflowY,b="scroll"===t.overflowX||"scroll"===s.overflowX,y=Math.max(0,i.innerWidth-r.clientWidth),E=Math.max(0,i.innerHeight-r.clientHeight),w=parseFloat(s.marginTop)+parseFloat(s.marginBottom),x=parseFloat(s.marginLeft)+parseFloat(s.marginRight),S=h(n,r);if(f=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=(0,o.ownerDocument)(e),n=t.documentElement,r=h(n,t.body),i=r.style.overflowY,l=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",r.style.overflowY="scroll";let s=r.offsetWidth;r.style.overflowY="hidden";let u=r.offsetWidth;return r.style.overflowY=i,n.style.scrollbarGutter=l,s===u}(e)){n.style.scrollbarGutter=u,S.style.overflowY="hidden",S.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:u,overflowY:"hidden",overflowX:"hidden"}),(a||v)&&(n.style.overflowY="scroll"),(d||b)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:w||E?`calc(100dvh - ${w+E}px)`:"100dvh",width:x||y?`calc(100vw - ${x+y}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=l,r.scrollLeft=c,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function y(){Object.assign(n.style,g),Object.assign(r.style,p),f||(n.scrollTop=l,n.scrollLeft=c,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=m)}b();let E=(0,s.addEventListener)(i,"resize",function(){y(),v.request(b)});return()=>{v.cancel(),y(),"function"==typeof i.removeEventListener&&E()}}(e)}}let y=new b;e.s(["useAnchoredPopupScrollLock",0,function(e,t,n,r){let[l,s]=i.useState(!1);(0,c.useIsoLayoutEffect)(()=>{if(!e||!t||null==n)return void s(!1);let r=(0,o.ownerDocument)(n).documentElement.clientWidth,i=n.offsetWidth;s(r>0&&i>0&&i>=r-20)},[e,t,n]),function(e=!0,t=null){(0,c.useIsoLayoutEffect)(()=>{if(e)return y.acquire(t)},[e,t])}(e&&(!t||l),r)}],988568)},721472,303131,e=>{"use strict";e.s(["addEventListener",0,function(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}],721472),e.s(["mergeCleanups",0,function(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}],303131)},251412,e=>{"use strict";let t=Object.freeze([]),n=Object.freeze({});e.s(["EMPTY_ARRAY",0,t,"EMPTY_OBJECT",0,n,"NOOP",0,function(){}])},513636,e=>{"use strict";let t;var n=e.i(7667),r=e.i(312207);let i=[];function o(e){let n=(n,o)=>{let s,u=(0,r.useRefWithInit)(l).current;try{for(let e of(t=u,i))e.before(u);for(let t of(s=e(n,o),i))t.after(u);u.didInitialize=!0}finally{t=void 0}return s};return n.displayName=e.displayName||e.name,n}function l(){return{didInitialize:!1}}e.s(["fastComponent",0,o,"fastComponentRef",0,function(e){return n.forwardRef(o(e))},"getInstance",0,function(){return t},"register",0,function(e){i.push(e)}])},758737,e=>{"use strict";let t=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`};e.s(["default",0,t])},384961,e=>{"use strict";var t=e.i(7667),n=e.i(10747);e.s(["getReactElementRef",0,function(e){if(!t.isValidElement(e))return null;let r=e.props;return((0,n.isReactVersionAtLeast)(19)?r?.ref:e.ref)??null}])},568505,825339,850213,996554,e=>{"use strict";var t=e.i(10747);e.s(["inertValue",0,function(e){return(0,t.isReactVersionAtLeast)(19)?e:e?"true":void 0}],568505);var n=e.i(210242);function r(e,t,r){let i,{reference:o,floating:l}=e,s=(0,n.getSideAxis)(t),u=(0,n.getAlignmentAxis)(t),a=(0,n.getAxisLength)(u),c=(0,n.getSide)(t),f=o.x+o.width/2-l.width/2,d=o.y+o.height/2-l.height/2,g=o[a]/2-l[a]/2;switch(c){case"top":i={x:f,y:o.y-l.height};break;case"bottom":i={x:f,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:d};break;case"left":i={x:o.x-l.width,y:d};break;default:i={x:o.x,y:o.y}}let p=(0,n.getAlignment)(t);return p&&(i[u]+=g*("end"===p?1:-1)*(r&&"y"===s?-1:1)),i}async function i(e,t){var r;void 0===t&&(t={});let{x:i,y:o,platform:l,rects:s,elements:u,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:g=!1,padding:p=0}
1=(0,n.evaluate)(t,e),m=(0,n.getPaddingObject)(p),h=u[g?"floating"===d?"reference":"floating":d],v=(0,n.rectToClientRect)(await l.getClippingRect({element:null==(r=await (null==l.isElement?void 0:l.isElement(h)))||r?h:h.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(u.floating)),boundary:c,rootBoundary:f,strategy:a})),b="floating"===d?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u.floating)),E=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},w=(0,n.rectToClientRect)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:b,offsetParent:y,strategy:a}):b);return{top:(v.top-w.top+m.top)/E.y,bottom:(w.bottom-v.bottom+m.bottom)/E.y,left:(v.left-w.left+m.left)/E.x,right:(w.right-v.right+m.right)/E.x}}let o=async(e,t,n)=>{let{placement:o="bottom",strategy:l="absolute",middleware:s=[],platform:u}=n,a=u.detectOverflow?u:{...u,detectOverflow:i},c=await (null==u.isRTL?void 0:u.isRTL(t)),f=await u.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:g}=r(f,o,c),p=o,m=0,h={};for(let n=0;n<s.length;n++){let i=s[n];if(!i)continue;let{name:v,fn:b}=i,{x:y,y:E,data:w,reset:x}=await b({x:d,y:g,initialPlacement:o,placement:p,strategy:l,middlewareData:h,rects:f,platform:a,elements:{reference:e,floating:t}});d=null!=y?y:d,g=null!=E?E:g,h[v]={...h[v],...w},x&&m<50&&(m++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(f=!0===x.rects?await u.getElementRects({reference:e,floating:t,strategy:l}):x.rects),{x:d,y:g}=r(f,p,c)),n=-1)}return{x:d,y:g,placement:p,strategy:l,middlewareData:h}};function l(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function s(e){return n.sides.some(t=>e[t]>=0)}function u(e){let t=(0,n.min)(...e.map(e=>e.left)),r=(0,n.min)(...e.map(e=>e.top));return{x:t,y:r,width:(0,n.max)(...e.map(e=>e.right))-t,height:(0,n.max)(...e.map(e=>e.bottom))-r}}let a=new Set(["left","top"]);async function c(e,t){let{placement:r,platform:i,elements:o}=e,l=await (null==i.isRTL?void 0:i.isRTL(o.floating)),s=(0,n.getSide)(r),u=(0,n.getAlignment)(r),c="y"===(0,n.getSideAxis)(r),f=a.has(s)?-1:1,d=l&&c?-1:1,g=(0,n.evaluate)(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:h}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&"number"==typeof h&&(m="end"===u?-1*h:h),c?{x:m*d,y:p*f}:{x:p*f,y:m*d}}var f=e.i(880269);function d(e){let t=(0,f.getComputedStyle)(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=(0,f.isHTMLElement)(e),l=o?e.offsetWidth:r,s=o?e.offsetHeight:i,u=(0,n.round)(r)!==l||(0,n.roun
vendor: 6,937 bytes, line 1
1d)(i)!==s;return u&&(r=l,i=s),{width:r,height:i,$:u}}function g(e){return(0,f.isElement)(e)?e:e.contextElement}function p(e){let t=g(e);if(!(0,f.isHTMLElement)(t))return(0,n.createCoords)(1);let r=t.getBoundingClientRect(),{width:i,height:o,$:l}=d(t),s=(l?(0,n.round)(r.width):r.width)/i,u=(l?(0,n.round)(r.height):r.height)/o;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let m=(0,n.createCoords)(0);function h(e){let t=(0,f.getWindow)(e);return(0,f.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:m}function v(e,t,r,i){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let l=e.getBoundingClientRect(),s=g(e),u=(0,n.createCoords)(1);t&&(i?(0,f.isElement)(i)&&(u=p(i)):u=p(e));let a=(void 0===(o=r)&&(o=!1),i&&o&&i===(0,f.getWindow)(s))?h(s):(0,n.createCoords)(0),c=(l.left+a.x)/u.x,d=(l.top+a.y)/u.y,m=l.width/u.x,v=l.height/u.y;if(s&&i){let e=(0,f.getWindow)(s),t=(0,f.isElement)(i)?(0,f.getWindow)(i):i,n=e,r=(0,f.getFrameElement)(n);for(;r&&t!==n;){let e=p(r),t=r.getBoundingClientRect(),i=(0,f.getComputedStyle)(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,m*=e.x,v*=e.y,c+=o,d+=l,n=(0,f.getWindow)(r),r=(0,f.getFrameElement)(n)}}return(0,n.rectToClientRect)({width:m,height:v,x:c,y:d})}function b(e,t){let n=(0,f.getNodeScroll)(e).scrollLeft;return t?t.left+n:v((0,f.getDocumentElement)(e)).left+n}function y(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-b(e,n),y:n.top+t.scrollTop}}function E(e,t,r){var i;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,f.getWindow)(e),o=(0,f.getDocumentElement)(e),l=i.visualViewport,s=o.clientWidth,u=o.clientHeight,a=0,c=0;if(l){let e=!(0,f.isWebKit)()||"fixed"===t;r?e||(a=-l.offsetLeft,c=-l.offsetTop):(s=l.width,u=l.height,e&&(a=l.offsetLeft,c=l.offsetTop))}if(0>=b(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;l<=25&&(s-=l)}return{width:s,height:u,x:a,y:c}}(e,r,t);else if("document"===t){let t,r,l,s,u,a;i=(0,f.getDocumentElement)(e),t=(0,f.getNodeScroll)(i),r=i.ownerDocument.body,l=(0,n.max)(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),s=(0,n.max)(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight),u=-t.scrollLeft+b(i),a=-t.scrollTop,"rtl"===(0,f.getComputedStyle)(r).direction&&(u+=(0,n.max)(i.clientWidth,r.clientWidth)-l),o={width:l,height:s,x:u,y:a}}else if((0,f.isElement)(t)){let e,n,i,l,s,u;n=(e=v(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,l=p(t),s=t.clientWidth*l.x,u=t.clientHeight*l.y,o={width:s,height:u,x:i*l.x,y:n*l.y}}else{let n=h(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,n.rectToClientRect)(o)}function w(e){return"static"===(0,f.getComputedStyle)(e).position}function x(e,t){if(!(0,f.isHTMLElement)(e)||"fixed"===(0,f.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,f.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function S(e,t){let n=(0,f.getWindow)(e);if((0,f.isTopLayer)(e))return n;if(!(0,f.isHTMLElement)(e)){let t=(0,f.getParentNode)(e);for(;t&&!(0,f.isLastTraversableNode)(t);){if((0,f.isElement)(t)&&!w(t))return t;t=(0,f.getParentNode)(t)}return n}let r=x(e,t);for(;r&&(0,f.isTableElement)(r)&&w(r);)r=x(r,t);return r&&(0,f.isLastTraversableNode)(r)&&w(r)&&!(0,f.isContainingBlock)(r)?n:r||(0,f.getContainingBlock)(e)||n}let R=async function(e){let t=this.getOffsetParent||S,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=(0,f.isHTMLElement)(t),o=(0,f.getDocumentElement)(t),l="fixed"===r,s=v(e,!0,l,t),u={scrollLeft:0,scrollTop:0},a=(0,n.createCoords)(0);if((i||!l)&&(("body"!==(0,f.getNodeName)(t)||(0,f.isOverflowElement)(o))&&(u=(0,f.getNodeScroll)(t)),i)){let e=v(t,!0,l,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!i&&o&&(a.x=b(o));let c=!o||i||l?(0,n.createCoords)(0):y(o,u);return{x:s.left+u.scrollLeft-a.x-c.x,y:s.top+u.scrollTop-a.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},T={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:o}=e,l="fixed"===o,s=(0,f.getDocumentElement)(i),u=!!t&&(0,f.isTopLayer)(t.floating);if(i===s||u&&l)return r;let a={scrollLeft:0,scrollTop:0},c=(0,n.createCoords)(1),d=(0,n.createCoords)(0),g=(0,f.isHTMLElement)(i);if((g||!l)&&(("body"!==(0,f.getNodeName)(i)||(0,f.isOverflowElement)(s))&&(a=(0,f.getNodeScroll)(i)),g)){let e=v(i);c=p(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}let m=!s||g||l?(0,n.createCoords)(0):y(s,a);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-a.scrollLeft*c.x+d.x+m.x,y:r.y*c.y-a.scrollTop*c.y+d.y+m.y}},getDocumentElement:f.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:o}=e,l=[..."clippingAncestors"===r?(0,f.isTopLayer)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,f.getOverflowAncestors)(e,[],!1).filter(e=>(0,f.isElement)(e)&&"body"!==(0,f.getNodeName)(e)),i=null,o="fixed"===(0,f.getComputedStyle)(e).position,l=o?(0,f.getParentNode)(e):e;for(;(0,f.isElement)(l)&&!(0,f.isLastTraversableNode)(l);){let e=(0,f.getComputedStyle)(l),t=(0,f.isContainingBlock)(l),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==l),l=(0,f.getParentNode)(l)}return t.set(e,r),r}(t,this._c):[].concat(r),i],s=E(t,l[0],o),u=s.top,a=s.right,c=s.bottom,d=s.left;for(let e=1;e<l.length;e++){let r=E(t,l[e],o);u=(0,n.max)(r.top,u),a=(0,n.min)(r.right,a),c=(0,n.min)(r.bottom,c),d=(0,n.max)(r.left,d)}return{width:a-d,height:c-u,x:d,y:u}},getOffsetParent:S,getElementRects:R,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=d(e);return{width:t,height:n}},getScale:p,isElement:f.isElement,isRTL:function(e){return"rtl"===(0,f.getComputedStyle)(e).direction}};function C(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let A=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:s}=t,u=await c(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:l}}}}},O=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:o,platform:l}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,n.evaluate)(e,t),f={x:r,y:i},d=await l.detectOverflow(t,c),g=(0,n.getSideAxis)(o),p=(0,n.getOppositeAxis)(g),m=f[p],h=f[g],v=(e,t)=>
1(0,n.clamp)(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);s&&(m=v(p,m)),u&&(h=v(g,h));let b=a.fn({...t,[p]:m,[g]:h});return{...b,data:{x:b.x-r,y:b.y-i,enabled:{[p]:s,[g]:u}}}}}},k=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,o,l,s;let{placement:u,middlewareData:a,rects:c,initialPlacement:f,platform:d,elements:g}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...E}=(0,n.evaluate)(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};let w=(0,n.getSide)(u),x=(0,n.getSideAxis)(f),S=(0,n.getSide)(f)===f,R=await (null==d.isRTL?void 0:d.isRTL(g.floating)),T=h||(S||!y?[(0,n.getOppositePlacement)(f)]:(0,n.getExpandedPlacements)(f)),C="none"!==b;!h&&C&&T.push(...(0,n.getOppositeAxisPlacements)(f,y,b,R));let A=[f,...T],O=await d.detectOverflow(t,E),k=[],L=(null==(i=a.flip)?void 0:i.overflows)||[];if(p&&k.push(O[w]),m){let e=(0,n.getAlignmentSides)(u,c,R);k.push(O[e[0]],O[e[1]])}if(L=[...L,{placement:u,overflows:k}],!k.every(e=>e<=0)){let e=((null==(o=a.flip)?void 0:o.index)||0)+1,t=A[e];if(t&&("alignment"!==m||x===(0,n.getSideAxis)(t)||L.every(e=>(0,n.getSideAxis)(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let r=null==(l=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!r)switch(v){case"bestFit":{let e=null==(s=L.filter(e=>{if(C){let t=(0,n.getSideAxis)(e.placement);return t===x||"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:s[0];e&&(r=e);break}case"initialPlacement":r=f}if(u!==r)return{reset:{placement:r}}}return{}}}},L=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,i,{placement:o,rects:l,platform:s,elements:u}=t,{apply:a=()=>{},...c}=(0,n.evaluate)(e,t),f=await s.detectOverflow(t,c),d=(0,n.getSide)(o),g=(0,n.getAlignment)(o),p="y"===(0,n.getSideAxis)(o),{width:m,height:h}=l.floating;"top"===d||"bottom"===d?(r=d,i=g===(await (null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(i=d,r="end"===g?"top":"bottom");let v=h-f.top-f.bottom,b=m-f.left-f.right,y=(0,n.min)(h-f[r],v),E=(0,n.min)(m-f[i],b),w=t.middlewareData.shift,x=!w,S=y,R=E;null!=w&&w.enabled.x&&(R=b),null!=w&&w.enabled.y&&(S=v),x&&!g&&(p?R=m-2*(0,n.max)(f.left,f.right):S=h-2*(0,n.max)(f.top,f.bottom)),await a({...t,availableWidth:R,availableHeight:S});let T=await s.getDimensions(u.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}},I=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,i,o,l;let{x:s,y:u,placement:c,rects:f,middlewareData:d}=t,{offset:g=0,mainAxis:p=!0,crossAxis:m=!0}=(0,n.evaluate)(e,t),h={x:s,y:u},v=(0,n.getSideAxis)(c),b=(0,n.getOppositeAxis)(v),y=h[b],E=h[v],w=(0,n.evaluate)(g,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(r=w.mainAxis)?r:0,crossAxis:null!=(i=w.crossAxis)?i:0};if(p){let e="y"===b?"height":"width",t=f.reference[b]-f.floating[e]+x.mainAxis,n=f.reference[b]+f.reference[e]-x.mainAxis;y<t?y=t:y>n&&(y=n)}if(m){let e="y"===b?"width":"height",t=a.has((0,n.getSide)(c)),r=f.reference[v]-f.floating[e]+(t&&(null==(o=d.offset)?void 0:o[v])||0)+(t?0:x.crossAxis),i=f.reference[v]+f.reference[e]+(t?0:(null==(l=d.offset)?void 0:l[v])||0)-(t?x.crossAxis:0);E<r?E=r:E>i&&(E=i)}return{[b]:y,[v]:E}}}},P=(e,t,n)=>{let r=new Map,i=null!=n?n:{},l={...T,...i.platform,_c:r};return o(e,t,{...i,platform:l})};e.s(["arrow",0,e=>({name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:o,rects:l,platform:s,elements:u,middlewareData:a}=t,{element:c,padding:f=0}=(0,n.evaluate)(e,t)||{};if(null==c)return{};let d=(0,n.getPaddingObject)(f),g={x:r,y:i},p=(0,n.getAlignmentAxis)(o),m=(0,n.getAxisLength)(p),h=await s.getDimensions(c),v="y"===p,b=v?"clientHeight":"clientWidth",y=l.reference[m]+l.reference[p]-g[p]-l.floating[m],E=g[p]-l.reference[p],w=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),x=w?w[b]:0;x&&await (null==s.isElement?void 0:s.isElement(w))||(x=u.floating[b]||l.floating[m]);let S=x/2-h[m]/2-1,R=(0,n.min)(d[v?"top":"left"],S),T=(0,n.min)(d[v?"bottom":"right"],S),C=x-h[m]-T,A=x/2-h[m]/2+(y/2-E/2),O=(0,n.clamp)(R,A,C),k=!a.arrow&&null!=(0,n.getAlignment)(o)&&A!==O&&l.reference[m]/2-(A<R?R:T)-h[m]/2<0,L=k?A<R?A-R:A-C:0;return{[p]:g[p]+L,data:{[p]:O,centerOffset:A-O-L,...k&&{alignmentOffset:L}},reset:k}}}),"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,o,l;let{rects:s,middlewareData:u,placement:a,platform:c,elements:f}=t,{crossAxis:d=!1,alignment:g,allowedPlacements:p=n.placements,autoAlignment:m=!0,...h}=(0,n.evaluate)(e,t),v=void 0!==g||p===n.placements?((l=g||null)?[...p.filter(e=>(0,n.getAlignment)(e)===l),...p.filter(e=>(0,n.getAlignment)(e)!==l)]:p.filter(e=>(0,n.getSide)(e)===e)).filter(e=>!l||(0,n.getAlignment)(e)===l||!!m&&(0,n.getOppositeAlignmentPlacement)(e)!==e):p,b=(null==(r=u.autoPlacement)?void 0:r.index)||0,y=v[b];if(null==y)return{};if(a!==y)return{reset:{placement:v[0]}};let E=await c.detectOverflow(t,h),w=(0,n.getAlignmentSides)(y,s,await (null==c.isRTL?void 0:c.isRTL(f.floating))),x=[E[(0,n.getSide)(y)],E[w[0]],E[w[1]]],S=[...(null==(i=u.autoPlacement)?void 0:i.overflows)||[],{placement:y,overflows:x}],R=v[b+1];if(R)return{data:{index:b+1,overflows:S},reset:{placement:R}};let T=S.map(e=>{let t=(0,n.getAlignment)(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(o=T.filter(e=>e[2].slice(0,(0,n.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||T[0][0];return C!==a?{data:{index:b+1,overflows:S},reset:{placement:C}}:{}}}},"autoUpdate",0,function(e,t,r,i){let o;void 0===i&&(i={});let{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,d=g(e),p=l||s?[...d?(0,f.getOverflowAncestors)(d):[],...t?(0,f.getOverflowAncestors)(t):[]]:[];p.forEach(e=>{l&&e.addEventListener("scroll",r),s&&e.addEventListener("resize",r)});let m=d&&a?function(e,t,r){let i,o=null,l=(0,f.getDocumentElement)(e);function s(){var e;clearTimeout(i),null==(e=o)||e.disconnect(),o=null}function u(r,a){void 0===r&&(r=!1),void 0===a&&(a=1),s();let c=e.getBoundingClientRect(),{left:f,top:d,width:g,height:p}=c;if(r||t(),!g||!p)return;let m={rootMargin:-(0,n.floor)(d)+"px "+-(0,n.floor)(l.clientWidth-(f+g))+"px "+-(0,n.floor)(l.clientHeight-(d+p))+"px "+-(0,n.floor)(f)+"px",threshold:(0,n.max)(0,(0,n.min)(1,a))||1},h=!0;function v(t){let n=t[0].intersectionRatio;if(!C(c,e.getBoundingClientRect()))return u();if(n!==a){if(!h)return u();n?u(!1,n):i=setTimeout(()=>{u(!1,1e-7)},1e3)}h=!1}try{o=new IntersectionObserver(v,{...m,root:l.ownerDocument})}catch(e){o=new IntersectionObserver(v,m)}o.observe(e)}let a=(0,f.getWindow)(e),c=()=>u(r);return a.addEventListener("resize",c),u(!0),()=>{a.removeEventListener("resize",c),s()}}(d,r,s):null,h=-1,b=null;u&&(b=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&b&&t&&(b.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),r()}),d&&!c&&b.observe(d),t&&b.observe(t));let y=c?v(e):null;return c&&function t(){let n=v(e);y&&!C(y,n)&&r(),y=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=b)||e.disconnect(),b=null,c&&cancelAnimationFrame(o)}},"computePosition",0,P,"flip",0,k,"hide",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:i}=t,{strategy:o="referenceHidden",...u}=(0,n.evaluate)(e,t);switch(o){case"referenceHidden":{let e=l(await i.detectOverflow(t,{...u,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:s(e)}}}case"escaped":{let e=l(await i.detectOverflow(t,{...u,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:s(e)}}}default:return{}}}}},"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:i,rects:o,platform:l,strategy:s}=t,{padding:a=2,x:c,y:f}=(0,n.evaluate)(e,t),d=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(i.reference))||[]);if(!d.length)return{};let g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),r=[],i=null;for(let e=0;e<t.length;e++){let n=t[e];!i||n.y-i.y>i.height/2?r.push([n]):r[r.length-1].push(n),i=n}return r.map(e=>(0,n.rectToClientRect)(u(e)))}(d),p=(0,n.rectToClientRect)(u(d)),m=(0,n.getPaddingObject)(a),h=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&(g[0].left>g[1].right||g[1].left>g[0].right)&&null!=c&&null!=f)return g.find(e=>c>e.left-m.left&&c<e.right+m.right&&f>e.top-m.top&&f<e.bottom+m.bottom)||p;if(g.length>=2){if("y"===(0,n.getSideAxis)(r)){let e=g[0],t=g[g.length-1],i="top"===(0,n.getSide)(r),o=e.top,l=t.bottom,s=i?e.left:t.left,u=i?e.right:t.right;return(0,n.rectToClientRect)({x:s,y:o,width:u-s,height:l-o})}let e="left"===(0,n.getSide)(r),t=(0,n.max)(...g.map(e=>e.right)),i=(0,n.min)(...g.map(e=>e.left)),o=g.filter(n=>e?n.left===i:n.right===t),l=o[0].top,s=o[o.length-1].bottom;return(0,n.rectToClientRect)({x:i,y:l,width:t-i,height:s-l})}return p}},floating:i.floating,strategy:s});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},"limitShift",0,I,"offset",0,A,"shift",0,O,"size",0,L],825339);var M=e.i(7667),N=e.i(671770),D="u">typeof document?M.useLayoutEffect:function(){};function W(e,t){let n,r,i;if(e===t)return!0;
1if(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(!W(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!W(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function F(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function H(e,t){let n=F(e);return Math.round(t*n)/n}function _(e){let t=M.useRef(e);return D(()=>{t.current=e}),t}function B(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:s=!0,whileElementsMounted:u,open:a}=e,[c,f]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,g]=M.useState(r);W(d,r)||g(r);let[p,m]=M.useState(null),[h,v]=M.useState(null),b=M.useCallback(e=>{e!==x.current&&(x.current=e,m(e))},[]),y=M.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),E=o||p,w=l||h,x=M.useRef(null),S=M.useRef(null),R=M.useRef(c),T=null!=u,C=_(u),A=_(i),O=_(a),k=M.useCallback(()=>{if(!x.current||!S.current)return;let e={placement:t,strategy:n,middleware:d};A.current&&(e.platform=A.current),P(x.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};L.current&&!W(R.current,t)&&(R.current=t,N.flushSync(()=>{f(t)}))})},[d,t,n,A,O]);D(()=>{!1===a&&R.current.isPositioned&&(R.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[a]);let L=M.useRef(!1);D(()=>(L.current=!0,()=>{L.current=!1}),[]),D(()=>{if(E&&(x.current=E),w&&(S.current=w),E&&w){if(C.current)return C.current(E,w,k);k()}},[E,w,k,C,T]);let I=M.useMemo(()=>({reference:x,floating:S,setReference:b,setFloating:y}),[b,y]),B=M.useMemo(()=>({reference:E,floating:w}),[E,w]),V=M.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=H(B.floating,c.x),r=H(B.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...F(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,B.floating,c.x,c.y]);return M.useMemo(()=>({...c,update:k,refs:I,elements:B,floatingStyles:V}),[c,k,I,B,V])}e.s(["flip",0,(e,t)=>{let n=k(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:I(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=A(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=O(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=L(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,B],850213);var V=e.i(473444),j=e.i(333134);e.s(["useBaseUIFloating",0,function(e){return function(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState("referenceElement"),o=t.useState("floatingElement"),l=t.useState("domReferenceElement"),s=t.useState("open"),u=t.useState("floatingId"),[a,c]=M.useState(null),[d,g]=M.useState(void 0),[p,m]=M.useState(void 0),h=M.useRef(null),v=(0,j.useFloatingTree)(r),b=M.useMemo(()=>({reference:i,floating:o,domReference:l}),[i,o,l]),y=B({...e,elements:{...b,...a&&{reference:a}}}),E=(0,f.isElement)(d)?d:null,w=void 0===p?t.state.floatingElement:p;t.useSyncedValue("referenceElement",d??null),t.useSyncedValue("domReferenceElement",void 0===d?l:E),t.useSyncedValue("floatingElement",w);let x=M.useCallback(e=>{let t=(0,f.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;c(t),y.refs.setReference(t)},[y.refs]),S=M.useCallback(e=>{((0,f.isElement)(e)||null===e)&&(h.current=e,g(e)),((0,f.isElement)(y.refs.reference.current)||null===y.refs.reference.current||null!==e&&!(0,f.isElement)(e))&&y.refs.setReference(e)},[y.refs,g]),R=M.useCallback(e=>{m(e),y.refs.setFloating(e)},[y.refs]),T=M.useMemo(()=>({...y.refs,setReference:S,setFloating:R,setPositionReference:x,domReference:h}),[y.refs,S,R,x]),C=M.useMemo(()=>({...y.elements,domReference:l}),[y.elements,l]),A=M.useMemo(()=>({...y,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:u,refs:T,elements:C,nodeId:n,rootStore:t}),[y,T,C,n,t,s,u]);return(0,V.useIsoLayoutEffect)(()=>{l&&(h.current=l)},[l]),(0,V.useIsoLayoutEffect)(()=>{t.context.dataRef.current.floatingContext=A;let e=v?.nodesRef.current.find(e=>e.id===n);e&&(e.context=A)}),M.useMemo(()=>({...y,context:A,refs:T,elements:C,rootStore:t}),[y,T,C,A,t])}(e,e.rootContext)}],996554)},694435,e=>{"use strict";e.s(["mergeObjects",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},516948,e=>{"use strict";e.s(["ownerDocument",0,function(e){return e?.ownerDocument||document}])},400449,e=>{"use strict";e.s([],543558),e.i(543558);let{userAgent:t,platform:n,maxTouchPoints:r}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},i=t.toLowerCase(),o=n.toLowerCase(),l=/^i(os$|p)/.test(o)||"macintel"===o&&r>1,s="android",u=o===s||i.includes(s),a=!l&&o.startsWith("mac"),c=o.startsWith("win"),f=!u&&/^(linux|chrome os)/.test(o),d=a||l;
1e.s(["android",0,u,"apple",0,d,"ios",0,l,"linux",0,f,"mac",0,a,"windows",0,c],648054);var g=e.i(648054);let p="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),m=!p&&i.includes("firefox"),h=!p&&i.includes("chrom");e.s(["blink",0,h,"gecko",0,m,"webkit",0,p],164884);var v=e.i(164884);e.s(["voiceOver",0,d],668688);var b=e.i(668688);let y=/jsdom|happydom/.test(i);e.s(["jsdom",0,y],833958);var E=e.i(833958);e.s(["iOS",0,"@supports (-webkit-touch-callout: none)"],480635);var w=e.i(480635);e.s(["engine",0,v,"env",0,E,"mediaQuery",0,w,"os",0,g,"screenReader",0,b],84470);var x=e.i(84470);e.s(["platform",0,x],400449)},10747,e=>{"use strict";let t=parseInt(e.i(7667).version,10);e.s(["isReactVersionAtLeast",0,function(e){return t>=e}])},957145,e=>{"use strict";let t={...e.i(7667)};e.s(["SafeReact",0,t])},553796,520203,e=>{"use strict";var t=e.i(880269);e.s(["activeElement",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"contains",0,function(e,n){if(!e||!n)return!1;let r=n.getRootNode?.();if(e.contains(n))return!0;if(r&&(0,t.isShadowRoot)(r)){let t=n;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}],553796),e.s(["ARROW_DOWN",0,"ArrowDown","ARROW_LEFT",0,"ArrowLeft","ARROW_RIGHT",0,"ArrowRight","ARROW_UP",0,"ArrowUp","FOCUSABLE_ATTRIBUTE",0,"data-base-ui-focusable","TYPEABLE_SELECTOR",0,"input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"],520203)},776988,e=>{"use strict";e.i(817325);var t=e.i(7667),n=e.i(922914),r=e.i(572412),i=e.i(747054),o=e.i(473444),l=e.i(251412);class s extends n.Store{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,n){t.useDebugValue(e);let r=this;(0,o.useIsoLayoutEffect)(()=>{r.state[e]!==n&&r.set(e,n)},[r,e,n])}useSyncedValueWithCleanup(e,t){let n=this;(0,o.useIsoLayoutEffect)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,o.useIsoLayoutEffect)(()=>{t.update(e)},[t,...n])}useControlledProp(e,n){t.useDebugValue(e);let r=this,i=void 0!==n;(0,o.useIsoLayoutEffect)(()=>{i&&!Object.is(r.state[e],n)&&r.setState({...r.state,[e]:n})},[r,e,n,i])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,n,i,o){return t.useDebugValue(e),(0,r.useStore)(this,this.selectors[e],n,i,o)}useContextCallback(e,n){t.useDebugValue(e);let r=(0,i.useStableCallback)(n??l.NOOP);this.context[e]=r}useStateSetter(e){let n=t.useRef(void 0);return void 0===n.current&&(n.current=t=>{this.set(e,t)}),n.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}e.s(["ReactStore",0,s])},922914,572412,e=>{"use strict";var t=e.i(7667),n=e.i(691487),r=e.i(404359),i=e.i(10747),o=e.i(513636);let l=(0,i.isReactVersionAtLeast)(19)?function(e,r,i,l,s){let u,a=(0,o.getInstance)();if(!a){let o;return o=t.useCallback(()=>r(e.getSnapshot(),i,l,s),[e,r,i,l,s]),(0,n.useSyncExternalStore)(e.subscribe,o,o)}let c=a.syncIndex;return a.syncIndex+=1,a.didInitialize?(u=a.syncHooks[c]).store===e&&u.selector===r&&Object.is(u.a1,i)&&Object.is(u.a2,l)&&Object.is(u.a3,s)||(u.store!==e&&(a.didChangeStore=!0),u.store=e,u.selector=r,u.a1=i,u.a2=l,u.a3=s,u.value=r(e.getSnapshot(),i,l,s)):(u={store:e,selector:r,a1:i,a2:l,a3:s,value:r(e.getSnapshot(),i,l,s)},a.syncHooks.push(u)),u.value}:function(e,t,n,i,o){return(0,r.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,i,o))};function s(e,t,n,r,i){return l(e,t,n,r,i)}(0,o.register)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,n.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}}),e.s(["useStore",0,s],572412),e.s(["Store",0,class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}
1subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return s(this,e,t,n,r)}}],922914)},261569,e=>{"use strict";e.i(817325);var t=e.i(312207),n=e.i(484269);let r=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class i{static create(){return new i}static request(e){return r.request(e)}static cancel(e){return r.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=r.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(r.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,i,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(i.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},665308,e=>{"use strict";e.i(817325);var t=e.i(7667);e.s(["useControlled",0,function({controlled:e,default:n,name:r,state:i="value"}){let{current:o}=t.useRef(void 0!==e),[l,s]=t.useState(n),u=t.useCallback(e=>{o||s(e)},[]);return[o&&void 0!==e?e:l,u]}])},769762,e=>{"use strict";var t=e.i(7667),n=e.i(957145);let r=0,i=n.SafeReact.useId;e.s(["useId",0,function(e,n){if(void 0!==i){let t=i();return e??(n?`${n}-${t}`:t)}return function(e,n="mui"){let[i,o]=t.useState(e),l=e||i;return t.useEffect(()=>{null==i&&(r+=1,o(`${n}-${r}`))},[i,n]),l}(e,n)}])},473444,e=>{"use strict";var t=e.i(7667);let n="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,n])},512042,e=>{"use strict";var t=e.i(312207);function n(){return{callback:null,cleanup:null,refs:[]}}function r(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(n);"function"==typeof t&&(r[e]=t);break}case"object":i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}e.s(["useMergedRefs",0,function(e,i,o,l){var s,u,a,c,f;let d=(0,t.useRefWithInit)(n).current;return s=d,u=e,a=i,c=o,f=l,(s.refs[0]!==u||s.refs[1]!==a||s.refs[2]!==c||s.refs[3]!==f)&&r(d,[e,i,o,l]),d.callback},"useMergedRefsN",0,function(e){var i,o;let l=(0,t.useRefWithInit)(n).current;return i=l,o=e,(i.refs.length!==o.length||i.refs.some((e,t)=>e!==o[t]))&&r(l,e),l.callback}])},484269,e=>{"use strict";var t=e.i(7667),n=e.i(251412);e.s(["useOnMount",0,function(e){t.useEffect(e,n.EMPTY_ARRAY)}])},312207,e=>{"use strict";var t=e.i(7667);let n={};e.s(["useRefWithInit",0,function(e,r){let i=t.useRef(n);return i.current===n&&(i.current=e(r)),i}])},747054,e=>{"use strict";e.i(817325);var t=e.i(957145),n=e.i(312207);let r=t.SafeReact.useInsertionEffect,i=r&&r!==t.SafeReact.useLayoutEffect?r:e=>e();function o(){let e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){}e.s(["useStableCallback",0,function(e){let t=(0,n.useRefWithInit)(o).current;return t.next=e,i(t.effect),t.trampoline}])},699397,e=>{"use strict";var t=e.i(312207),n=e.i(484269);class r{static create(){return new r}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,r,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(r.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},871689,e=>{"use strict";var t=e.i(473444),n=e.i(312207);function r(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["useValueAsRef",0,function(e){let i=(0,n.useRefWithInit)(r,e).current;return i.next=e,(0,t.useIsoLayoutEffect)(i.effect),i}])},239786,e=>{"use strict";
1let t={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},n={...t,position:"fixed",top:0,left:0},r={...t,position:"absolute"};e.s(["visuallyHidden",0,n,"visuallyHiddenInput",0,r])},419147,e=>{"use strict";e.s(["warn",0,function(){}],419147)},880269,e=>{"use strict";let t;function n(){return"u">typeof window}function r(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!n()&&(e instanceof Node||e instanceof i(e).Node)}function s(e){return!!n()&&(e instanceof Element||e instanceof i(e).Element)}function u(e){return!!n()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function a(e){return!(!n()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=b(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function f(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let d=/transform|translate|scale|rotate|perspective|filter/,g=/paint|layout|strict|content/,p=e=>!!e&&"none"!==e;function m(e){let t=s(e)?b(e):e;return p(t.transform)||p(t.translate)||p(t.scale)||p(t.rotate)||p(t.perspective)||!h()&&(p(t.backdropFilter)||p(t.filter))||d.test(t.willChange||"")||g.test(t.contain||"")}function h(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function v(e){return/^(html|body|#document)$/.test(r(e))}function b(e){return i(e).getComputedStyle(e)}function y(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||a(e)&&e.host||o(e);return a(t)?t.host:t}function E(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,b,"getContainingBlock",0,function(e){let t=y(e);for(;u(t)&&!v(t);){if(m(t))return t;if(f(t))break;t=y(t)}return null},"getDocumentElement",0,o,"getFrameElement",0,E,"getNodeName",0,r,"getNodeScroll",0,function(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=y(t);return v(n)?(t.ownerDocument||t).body:u(n)&&c(n)?n:e(n)}(t),s=l===(null==(o=t.ownerDocument)?void 0:o.body),a=i(l);if(!s)return n.concat(l,e(l,[],r));{let t=E(a);return n.concat(a,a.visualViewport||[],c(l)?l:[],t&&r?e(t):[])}},"getParentNode",0,y,"getWindow",0,i,"isContainingBlock",0,m,"isElement",0,s,"isHTMLElement",0,u,"isLastTraversableNode",0,v,"isNode",0,l,"isOverflowElement",0,c,"isShadowRoot",0,a,"isTableElement",0,function(e){return/^(table|td|th)$/.test(r(e))},"isTopLayer",0,f,"isWebKit",0,h])},919683,(e,t,n)=>{"use strict";var r=e.r(7667),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,l=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}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 n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,a(i)&&c({inst:i})},[e,n,t]),l(function(){return a(i)&&c({inst:i}),e(function(){a(i)&&c({inst:i})})},[e]),u(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},691487,(e,t,n)=>{"use strict";e.i(817325),t.exports=e.r(919683)},16867,(e,t,n)=>{"use strict";var r=e.r(7667),i=e.r(691487),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,a=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var g=l(e,(f=a(function(){function e(e){if(!u){if(u=!0,l=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return s=t}return s=e}if(t=s,o(l,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(l=e,t):(l=e,s=n)}var l,s,u=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,i]))[0],f[1]);return u(function(){d.hasValue=!0,d.value=g},[g]),c(g),g}},404359,(e,t,n)=>{"use strict";e.i(817325),t.exports=e.r(16867)}]);

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.