(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"+e+K":function(module,e,t){"use strict";var n=t("q1tI"),r=t("bwSB");function activeElement(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function contains(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Object(r.n)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function getPlatform(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function getUserAgent(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function isVirtualClick(e){return!(0!==e.mozInputSource||!e.isTrusted)||(isAndroid()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function isVirtualPointerEvent(e){return!getUserAgent().includes("jsdom/")&&(!isAndroid()&&0===e.width&&0===e.height||isAndroid()&&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)}function isSafari(){return/apple/i.test(navigator.vendor)}function isAndroid(){const e=/android/i;return e.test(getPlatform())||e.test(getUserAgent())}function isMac(){return getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function isMouseLikePointerType(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function getDocument(e){return(null==e?void 0:e.ownerDocument)||document}function isEventTargetWithin(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function getTarget(e){return"composedPath"in e?e.composedPath()[0]:e.target}const o="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function isTypeableElement(e){return Object(r.k)(e)&&e.matches(o)}function stopEvent(e){e.preventDefault(),e.stopPropagation()}function isTypeableCombobox(e){return!!e&&("combobox"===e.getAttribute("role")&&isTypeableElement(e))}t("V1XD"),t("4gpy");var i=t("U+Em"),c=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],u=c.join(","),s="undefined"==typeof Element,l=s?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!s&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},f=function isInert(e,t){var n;void 0===t&&(t=!0);var r=null==e?void 0:null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&isInert(e.parentNode)},getCandidates=function(e,t,n){if(f(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(u));return t&&l.call(e,u)&&r.unshift(e),r=r.filter(n)},d=function getCandidatesIteratively(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!f(i,!1))if("SLOT"===i.tagName){var c=i.assignedElements(),s=getCandidatesIteratively(c.length?c:i.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{l.call(i,u)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var a=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),d=!f(a,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(a&&d){var m=getCandidatesIteratively(!0===a?i.children:a.children,!0,n);n.flatten?r.push.apply(r,m):r.push({scopeParent:i,candidates:m})}else o.unshift.apply(o,i.children)}}return r},hasTabIndex=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},getTabIndex=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!hasTabIndex(e)?0:e.tabIndex},sortOrderedTabbables=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},isInput=function(e){return"INPUT"===e.tagName},isNonTabbableRadio=function(e){return function(e){return isInput(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||a(e),queryRadios=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=queryRadios(window.CSS.escape(e.name));else try{t=queryRadios(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(l.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return isZeroArea(e)}else{if("function"==typeof r){for(var i=e;e;){var c=e.parentElement,u=a(e);if(c&&!c.shadowRoot&&!0===r(c))return isZeroArea(e);e=e.assignedSlot?e.assignedSlot:c||u===e.ownerDocument?c:u.host}e=i}if(function(e){var t,n,r,o,i=e&&a(e),c=null===(t=i)||void 0===t?void 0:t.host,u=!1;if(i&&i!==e)for(u=!!(null!==(n=c)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(c)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!u&&c;){var s,l,f;u=!(null===(l=c=null===(s=i=a(c))||void 0===s?void 0:s.host)||void 0===l||null===(f=l.ownerDocument)||void 0===f||!f.contains(c))}return u}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},isNodeMatchingSelectorFocusable=function(e,t){return!(t.disabled||f(t)||function(e){return isInput(e)&&"hidden"===e.type}(t)||isHidden(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},m=function sortByOrder(e){var t=[],n=[];return e.forEach((function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,c=function(e,t){var n=getTabIndex(e);return n<0&&t&&!hasTabIndex(e)?0:n}(i,o),u=o?sortByOrder(e.candidates):i;0===c?o?t.push.apply(t,u):t.push(i):n.push({documentOrder:r,tabIndex:c,item:e,isScope:o,content:u})})),n.sort(sortOrderedTabbables).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(t)},tabbable=function(e,t){var n;return n=(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(e,t.includeContainer,isNodeMatchingSelectorTabbable.bind(null,t)),m(n)},isTabbable=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==l.call(e,u)&&isNodeMatchingSelectorTabbable(t,e)},g=t("i8i4");t.d(e,"a",(function(){return FloatingFocusManager})),t.d(e,"b",(function(){return FloatingPortal})),t.d(e,"c",(function(){return useClick})),t.d(e,"d",(function(){return useDismiss})),t.d(e,"e",(function(){return useFloating})),t.d(e,"f",(function(){return useFocus})),t.d(e,"g",(function(){return useHover})),t.d(e,"h",(function(){return useInteractions})),t.d(e,"i",(function(){return useRole}));const p={...n},v=p.useInsertionEffect||(e=>e());function useEffectEvent(e){const t=n.useRef(()=>{0});return v(()=>{t.current=e}),n.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;rnull==e?void 0:e.focus({preventScroll:n});o?exec():w=requestAnimationFrame(exec)}var E="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;const j=[y,O],x=[b,h];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+A++;const P=p.useId||function(){const[e,t]=n.useState(()=>R?genId():void 0);return E(()=>{null==e&&t(genId())},[]),n.useEffect(()=>{R=!0},[]),e};function createPubSub(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}const C=n.createContext(null),T=n.createContext(null),useFloatingParentNodeId=()=>{var e;return(null==(e=n.useContext(C))?void 0:e.id)||null},useFloatingTree=()=>n.useContext(T);function createAttribute(e){return"data-floating-ui-"+e}function useLatestRef(e){const t=Object(n.useRef)(e);return E(()=>{t.current=e}),t}const S=createAttribute("safe-polygon");function getDelay(e,t,n){return n&&!isMouseLikePointerType(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function useHover(e,t){void 0===t&&(t={});const{open:o,onOpenChange:i,dataRef:c,events:u,elements:{domReference:s,floating:l}}=e,{enabled:a=!0,delay:f=0,handleClose:d=null,mouseOnly:m=!1,restMs:g=0,move:p=!0}=t,v=useFloatingTree(),b=useFloatingParentNodeId(),h=useLatestRef(d),y=useLatestRef(f),O=n.useRef(),w=n.useRef(-1),j=n.useRef(),x=n.useRef(-1),R=n.useRef(!0),A=n.useRef(!1),P=n.useRef(()=>{}),C=n.useCallback(()=>{var e;const t=null==(e=c.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[c]);n.useEffect(()=>{if(a)return u.on("openchange",onOpenChange),()=>{u.off("openchange",onOpenChange)};function onOpenChange(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(x.current),R.current=!0)}},[a,u]),n.useEffect(()=>{if(!a||!h.current||!o)return;function onLeave(e){C()&&i(!1,e,"hover")}const e=getDocument(l).documentElement;return e.addEventListener("mouseleave",onLeave),()=>{e.removeEventListener("mouseleave",onLeave)}},[l,o,i,a,h,C]);const T=n.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=getDelay(y.current,"close",O.current);r&&!j.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>i(!1,e,n),r)):t&&(clearTimeout(w.current),i(!1,e,n))}),[y,i]),L=useEffectEvent(()=>{P.current(),j.current=void 0}),k=useEffectEvent(()=>{if(A.current){const e=getDocument(l).body;e.style.pointerEvents="",e.removeAttribute(S),A.current=!1}});return n.useEffect(()=>{if(a&&Object(r.j)(s)){const e=s;return o&&e.addEventListener("mouseleave",onScrollMouseLeave),null==l||l.addEventListener("mouseleave",onScrollMouseLeave),p&&e.addEventListener("mousemove",onMouseEnter,{once:!0}),e.addEventListener("mouseenter",onMouseEnter),e.addEventListener("mouseleave",onMouseLeave),()=>{o&&e.removeEventListener("mouseleave",onScrollMouseLeave),null==l||l.removeEventListener("mouseleave",onScrollMouseLeave),p&&e.removeEventListener("mousemove",onMouseEnter),e.removeEventListener("mouseenter",onMouseEnter),e.removeEventListener("mouseleave",onMouseLeave)}}function isClickLikeOpenEvent(){return!!c.current.openEvent&&["click","mousedown"].includes(c.current.openEvent.type)}function onMouseEnter(e){if(clearTimeout(w.current),R.current=!1,m&&!isMouseLikePointerType(O.current)||g>0&&!getDelay(y.current,"open"))return;const t=getDelay(y.current,"open",O.current);t?w.current=window.setTimeout(()=>{i(!0,e,"hover")},t):i(!0,e,"hover")}function onMouseLeave(e){if(isClickLikeOpenEvent())return;P.current();const t=getDocument(l);if(clearTimeout(x.current),h.current&&c.current.floatingContext){o||clearTimeout(w.current),j.current=h.current({...c.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){k(),L(),T(e,!0,"safe-polygon")}});const n=j.current;return t.addEventListener("mousemove",n),void(P.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==O.current||!contains(l,e.relatedTarget))&&T(e)}function onScrollMouseLeave(e){isClickLikeOpenEvent()||c.current.floatingContext&&(null==h.current||h.current({...c.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){k(),L(),T(e)}})(e))}},[s,l,a,e,m,g,p,T,L,k,i,o,v,y,h,c]),E(()=>{var e;if(a&&o&&null!=(e=h.current)&&e.__options.blockPointerEvents&&C()){const e=getDocument(l).body;if(e.setAttribute(S,""),e.style.pointerEvents="none",A.current=!0,Object(r.j)(s)&&l){var t;const e=s,n=null==v||null==(t=v.nodesRef.current.find(e=>e.id===b))||null==(t=t.context)?void 0:t.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{e.style.pointerEvents="",l.style.pointerEvents=""}}}},[a,o,b,l,s,v,h,C]),E(()=>{o||(O.current=void 0,L(),k())},[o,L,k]),n.useEffect(()=>()=>{L(),clearTimeout(w.current),clearTimeout(x.current),k()},[a,s,L,k]),n.useMemo(()=>{if(!a)return{};function setPointerRef(e){O.current=e.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(e){const{nativeEvent:t}=e;function handleMouseMove(){R.current||i(!0,t,"hover")}m&&!isMouseLikePointerType(O.current)||o||0===g||(clearTimeout(x.current),"touch"===O.current?handleMouseMove():x.current=window.setTimeout(handleMouseMove,g))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){T(e.nativeEvent,!1)}}}},[a,m,o,g,i,T])}function getChildren(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let L=new WeakMap,k=new WeakSet,D={},M=0;const supportsInert=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,unwrapHost=e=>e&&(e.host||unwrapHost(e.parentNode)),correctElements=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=unwrapHost(t);return e.contains(n)?n:null}).filter(e=>null!=e);function markOthers(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=getDocument(e[0]).body;return function(e,t,n,o){const i="data-floating-ui-inert",c=o?"inert":n?"aria-hidden":null,u=correctElements(t,e),s=new Set,l=new Set(u),a=[];D[i]||(D[i]=new WeakMap);const f=D[i];return u.forEach((function keep(e){if(!e||s.has(e))return;s.add(e),e.parentNode&&keep(e.parentNode)})),function deep(e){if(!e||l.has(e))return;[].forEach.call(e.children,e=>{if("script"!==Object(r.d)(e))if(s.has(e))deep(e);else{const t=c?e.getAttribute(c):null,n=null!==t&&"false"!==t,r=(L.get(e)||0)+1,o=(f.get(e)||0)+1;L.set(e,r),f.set(e,o),a.push(e),1===r&&n&&k.add(e),1===o&&e.setAttribute(i,""),!n&&c&&e.setAttribute(c,"true")}})}(t),s.clear(),M++,()=>{a.forEach(e=>{const t=(L.get(e)||0)-1,n=(f.get(e)||0)-1;L.set(e,t),f.set(e,n),t||(!k.has(e)&&c&&e.removeAttribute(c),k.delete(e)),n||e.removeAttribute(i)}),M--,M||(L=new WeakMap,L=new WeakMap,k=new WeakSet,D={})}}(e.concat(Array.from(o.querySelectorAll("[aria-live]"))),o,t,n)}const getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(e,t){const n=tabbable(e,getTabbableOptions());"prev"===t&&n.reverse();const r=n.indexOf(activeElement(getDocument(e)));return n.slice(r+1)[0]}function getNextTabbable(){return getTabbableIn(document.body,"next")}function getPreviousTabbable(){return getTabbableIn(document.body,"prev")}function isOutsideEvent(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!contains(n,r)}function disableFocusInside(e){tabbable(e,getTabbableOptions()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function enableFocusInside(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const F={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let N;function setActiveElementOnTab(e){"Tab"===e.key&&(e.target,clearTimeout(N))}const I=n.forwardRef((function(e,t){const[r,o]=n.useState();E(()=>(isSafari()&&o("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)}),[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[createAttribute("focus-guard")]:"",style:F};return(n.createElement("span",_extends({},e,i)))})),B=n.createContext(null),q=createAttribute("portal");function FloatingPortal(e){const{children:t,id:o,root:i=null,preserveTabOrder:c=!0}=e,u=function(e){void 0===e&&(e={});const{id:t,root:o}=e,i=P(),c=usePortalContext(),[u,s]=n.useState(null),l=n.useRef(null);return E(()=>()=>{null==u||u.remove(),queueMicrotask(()=>{l.current=null})},[u]),E(()=>{if(!i)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(q,""),e.appendChild(n),l.current=n,s(n)},[t,i]),E(()=>{if(!i)return;if(l.current)return;let e=o||(null==c?void 0:c.portalNode);e&&!Object(r.j)(e)&&(e=e.current),e=e||document.body;let n=null;t&&(n=document.createElement("div"),n.id=t,e.appendChild(n));const u=document.createElement("div");u.id=i,u.setAttribute(q,""),e=n||e,e.appendChild(u),l.current=u,s(u)},[t,o,i,c]),u}({id:o,root:i}),[s,l]=n.useState(null),a=n.useRef(null),f=n.useRef(null),d=n.useRef(null),m=n.useRef(null),p=!!s&&!s.modal&&s.open&&c&&!(!i&&!u);return n.useEffect(()=>{if(u&&c&&(null==s||!s.modal))return u.addEventListener("focusin",onFocus,!0),u.addEventListener("focusout",onFocus,!0),()=>{u.removeEventListener("focusin",onFocus,!0),u.removeEventListener("focusout",onFocus,!0)};function onFocus(e){if(u&&isOutsideEvent(e)){("focusin"===e.type?enableFocusInside:disableFocusInside)(u)}}},[u,c,null==s?void 0:s.modal]),n.createElement(B.Provider,{value:n.useMemo(()=>({preserveTabOrder:c,beforeOutsideRef:a,afterOutsideRef:f,beforeInsideRef:d,afterInsideRef:m,portalNode:u,setFocusManagerState:l}),[c,u])},p&&u&&n.createElement(I,{"data-type":"outside",ref:a,onFocus:e=>{if(isOutsideEvent(e,u)){var t;null==(t=d.current)||t.focus()}else{const e=getPreviousTabbable()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&u&&n.createElement("span",{"aria-owns":u.id,style:F}),u&&Object(g.createPortal)(t,u),p&&u&&n.createElement(I,{"data-type":"outside",ref:f,onFocus:e=>{if(isOutsideEvent(e,u)){var t;null==(t=m.current)||t.focus()}else{const t=getNextTabbable()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const usePortalContext=()=>n.useContext(B),W=20;let H=[];function addPreviouslyFocusedElement(e){H=H.filter(e=>e.isConnected);let t=e;if(t&&"body"!==Object(r.d)(t)){if(!isTabbable(t,getTabbableOptions())){const e=tabbable(t,getTabbableOptions())[0];e&&(t=e)}H.push(t),H.length>W&&(H=H.slice(-W))}}function getPreviouslyFocusedElement(){return H.slice().reverse().find(e=>e.isConnected)}const V=n.forwardRef((function(e,t){return n.createElement("button",_extends({},e,{type:"button",ref:t,tabIndex:-1,style:F}))}));function FloatingFocusManager(e){const{context:t,children:o,disabled:i=!1,order:c=["content"],guards:u=!0,initialFocus:s=0,returnFocus:l=!0,restoreFocus:a=!1,modal:f=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:m=!0}=e,{open:g,refs:p,nodeId:v,onOpenChange:b,events:h,dataRef:y,floatingId:O,elements:{domReference:w,floating:j}}=t,x="number"==typeof s&&s<0,R=isTypeableCombobox(w)&&x,A=!supportsInert()||u,P=useLatestRef(c),C=useLatestRef(s),T=useLatestRef(l),S=useFloatingTree(),L=usePortalContext(),k=n.useRef(null),D=n.useRef(null),M=n.useRef(!1),F=n.useRef(!1),N=n.useRef(-1),B=null!=L,q=null==j?void 0:j.firstElementChild,W=(null==q?void 0:q.id)===O?q:j,H=useEffectEvent((function(e){return void 0===e&&(e=W),e?tabbable(e,getTabbableOptions()):[]})),K=useEffectEvent(e=>{const t=H(e);return P.current.map(e=>w&&"reference"===e?w:W&&"floating"===e?W:t).filter(Boolean).flat()});function renderDismissButton(e){return!i&&d&&f?n.createElement(V,{ref:"start"===e?k:D,onClick:e=>b(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}n.useEffect(()=>{if(i)return;if(!f)return;function onKeyDown(e){if("Tab"===e.key){contains(W,activeElement(getDocument(W)))&&0===H().length&&!R&&stopEvent(e);const t=K(),n=getTarget(e);"reference"===P.current[0]&&n===w&&(stopEvent(e),e.shiftKey?enqueueFocus(t[t.length-1]):enqueueFocus(t[1])),"floating"===P.current[1]&&n===W&&e.shiftKey&&(stopEvent(e),enqueueFocus(t[0]))}}const e=getDocument(W);return e.addEventListener("keydown",onKeyDown),()=>{e.removeEventListener("keydown",onKeyDown)}},[i,w,W,f,P,R,H,K]),n.useEffect(()=>{if(!i&&j)return j.addEventListener("focusin",handleFocusIn),()=>{j.removeEventListener("focusin",handleFocusIn)};function handleFocusIn(e){const t=getTarget(e),n=H().indexOf(t);-1!==n&&(N.current=n)}},[i,j,H]),n.useEffect(()=>{if(!i&&m)return j&&Object(r.k)(w)?(w.addEventListener("focusout",handleFocusOutside),w.addEventListener("pointerdown",handlePointerDown),j.addEventListener("focusout",handleFocusOutside),()=>{w.removeEventListener("focusout",handleFocusOutside),w.removeEventListener("pointerdown",handlePointerDown),j.removeEventListener("focusout",handleFocusOutside)}):void 0;function handlePointerDown(){F.current=!0,setTimeout(()=>{F.current=!1})}function handleFocusOutside(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(contains(w,t)||contains(j,t)||contains(t,j)||contains(null==L?void 0:L.portalNode,t)||null!=t&&t.hasAttribute(createAttribute("focus-guard"))||S&&(getChildren(S.nodesRef.current,v).find(e=>{var n,r;return contains(null==(n=e.context)?void 0:n.elements.floating,t)||contains(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(S.nodesRef.current,v).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(a&&n&&activeElement(getDocument(W))===getDocument(W).body){Object(r.k)(W)&&(null==W||W.focus());const e=N.current,t=H(),n=t[e]||t[t.length-1]||W;Object(r.k)(n)&&n.focus()}!f&&t&&n&&!F.current&&t!==getPreviouslyFocusedElement()&&(M.current=!0,b(!1,e))})}},[i,w,j,W,f,v,S,L,b,m,a,H]),n.useEffect(()=>{var e;if(i)return;const t=Array.from((null==L||null==(e=L.portalNode)?void 0:e.querySelectorAll("["+createAttribute("portal")+"]"))||[]);if(j){const e=[j,...t,k.current,D.current,P.current.includes("reference")||R?w:null].filter(e=>null!=e),n=f||R?markOthers(e,A,!A):markOthers(e);return()=>{n()}}},[i,w,j,f,P,L,R,A]),E(()=>{if(i||!Object(r.k)(W))return;const e=activeElement(getDocument(W));queueMicrotask(()=>{const t=K(W),n=C.current,r=("number"==typeof n?t[n]:n.current)||W,o=contains(W,e);x||o||!g||enqueueFocus(r,{preventScroll:r===W})})},[i,g,W,x,K,C]),E(()=>{if(i||!W)return;let e=!1;const t=getDocument(W),n=activeElement(t);let o=y.current.openEvent;function onOpenChange(t){let{open:n,reason:r,event:i,nested:c}=t;n&&(o=i),"escape-key"===r&&p.domReference.current&&addPreviouslyFocusedElement(p.domReference.current),"hover"===r&&"mouseleave"===i.type&&(M.current=!0),"outside-press"===r&&(c?(M.current=!1,e=!0):M.current=!(isVirtualClick(i)||isVirtualPointerEvent(i)))}return addPreviouslyFocusedElement(n),h.on("openchange",onOpenChange),()=>{h.off("openchange",onOpenChange);const n=activeElement(t),i=contains(j,n)||S&&getChildren(S.nodesRef.current,v).some(e=>{var t;return contains(null==(t=e.context)?void 0:t.elements.floating,n)});(i||o&&["click","mousedown"].includes(o.type))&&p.domReference.current&&addPreviouslyFocusedElement(p.domReference.current);const c=getPreviouslyFocusedElement();T.current&&!M.current&&Object(r.k)(c)&&(c===n||n===t.body||i)&&enqueueFocus(c,{cancelPrevious:!1,preventScroll:e})}},[i,j,W,T,y,p,h,S,v]),E(()=>{if(!i&&L)return L.setFocusManagerState({modal:f,closeOnFocusOut:m,open:g,onOpenChange:b,refs:p}),()=>{L.setFocusManagerState(null)}},[i,L,f,g,b,p,m]),E(()=>{if(i)return;if(!W)return;if("function"!=typeof MutationObserver)return;if(x)return;const handleMutation=()=>{const e=W.getAttribute("tabindex"),t=H(),n=activeElement(getDocument(j)),r=t.indexOf(n);-1!==r&&(N.current=r),P.current.includes("floating")||n!==p.domReference.current&&0===t.length?"0"!==e&&W.setAttribute("tabindex","0"):"-1"!==e&&W.setAttribute("tabindex","-1")};handleMutation();const e=new MutationObserver(handleMutation);return e.observe(W,{childList:!0,subtree:!0,attributes:!0}),()=>{e.disconnect()}},[i,j,W,p,P,H,x]);const U=!i&&A&&(B||f);return(n.createElement(n.Fragment,null,U&&n.createElement(I,{"data-type":"inside",ref:null==L?void 0:L.beforeInsideRef,onFocus:e=>{if(f){const e=K();enqueueFocus("reference"===c[0]?e[0]:e[e.length-1])}else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(M.current=!1,isOutsideEvent(e,L.portalNode)){const e=getNextTabbable()||w;null==e||e.focus()}else{var t;null==(t=L.beforeOutsideRef.current)||t.focus()}}}),!R&&renderDismissButton("start"),o,renderDismissButton("end"),U&&n.createElement(I,{"data-type":"inside",ref:null==L?void 0:L.afterInsideRef,onFocus:e=>{if(f)enqueueFocus(K()[0]);else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(m&&(M.current=!0),isOutsideEvent(e,L.portalNode)){const e=getPreviousTabbable()||w;null==e||e.focus()}else{var t;null==(t=L.afterOutsideRef.current)||t.focus()}}})))}function isButtonTarget(e){return Object(r.k)(e.target)&&"BUTTON"===e.target.tagName}function isSpaceIgnored(e){return isTypeableElement(e)}function useClick(e,t){void 0===t&&(t={});const{open:r,onOpenChange:o,dataRef:i,elements:{domReference:c}}=e,{enabled:u=!0,event:s="click",toggle:l=!0,ignoreMouse:a=!1,keyboardHandlers:f=!0}=t,d=n.useRef(),m=n.useRef(!1);return n.useMemo(()=>u?{reference:{onPointerDown(e){d.current=e.pointerType},onMouseDown(e){0===e.button&&(isMouseLikePointerType(d.current,!0)&&a||"click"!==s&&(!r||!l||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===s&&d.current?d.current=void 0:isMouseLikePointerType(d.current,!0)&&a||(!r||!l||i.current.openEvent&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){d.current=void 0,e.defaultPrevented||!f||isButtonTarget(e)||(" "!==e.key||isSpaceIgnored(c)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&o(!r||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!f||isButtonTarget(e)||isSpaceIgnored(c)||" "===e.key&&m.current&&(m.current=!1,o(!r||!l,e.nativeEvent,"click"))}}}:{},[u,i,s,a,f,c,l,r,o])}const K={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},U={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeProp=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function useDismiss(e,t){void 0===t&&(t={});const{open:o,onOpenChange:i,elements:{reference:c,domReference:u,floating:s},dataRef:l}=e,{enabled:a=!0,escapeKey:f=!0,outsidePress:d=!0,outsidePressEvent:m="pointerdown",referencePress:g=!1,referencePressEvent:p="pointerdown",ancestorScroll:v=!1,bubbles:b,capture:h}=t,y=useFloatingTree(),O=useEffectEvent("function"==typeof d?d:()=>!1),w="function"==typeof d?O:d,E=n.useRef(!1),j=n.useRef(!1),{escapeKey:x,outsidePress:R}=normalizeProp(b),{escapeKey:A,outsidePress:P}=normalizeProp(h),C=useEffectEvent(e=>{var t;if(!o||!a||!f||"Escape"!==e.key)return;const n=null==(t=l.current.floatingContext)?void 0:t.nodeId,r=y?getChildren(y.nodesRef.current,n):[];if(!x&&(e.stopPropagation(),r.length>0)){let e=!0;if(r.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),T=useEffectEvent(e=>{var t;const callback=()=>{var t;C(e),null==(t=getTarget(e))||t.removeEventListener("keydown",callback)};null==(t=getTarget(e))||t.addEventListener("keydown",callback)}),S=useEffectEvent(e=>{var t;const n=E.current;E.current=!1;const o=j.current;if(j.current=!1,"click"===m&&o)return;if(n)return;if("function"==typeof w&&!w(e))return;const c=getTarget(e),a="["+createAttribute("inert")+"]",f=getDocument(s).querySelectorAll(a);let d=Object(r.j)(c)?c:null;for(;d&&!Object(r.l)(d);){const e=Object(r.g)(d);if(Object(r.l)(e)||!Object(r.j)(e))break;d=e}if(f.length&&Object(r.j)(c)&&!function(e){return e.matches("html,body")}(c)&&!contains(c,s)&&Array.from(f).every(e=>!contains(d,e)))return;if(Object(r.k)(c)&&s){const t=c.clientWidth>0&&c.scrollWidth>c.clientWidth,n=c.clientHeight>0&&c.scrollHeight>c.clientHeight;let o=n&&e.offsetX>c.clientWidth;if(n){"rtl"===Object(r.a)(c).direction&&(o=e.offsetX<=c.offsetWidth-c.clientWidth)}if(o||t&&e.offsetY>c.clientHeight)return}const g=null==(t=l.current.floatingContext)?void 0:t.nodeId,p=y&&getChildren(y.nodesRef.current,g).some(t=>{var n;return isEventTargetWithin(e,null==(n=t.context)?void 0:n.elements.floating)});if(isEventTargetWithin(e,s)||isEventTargetWithin(e,u)||p)return;const v=y?getChildren(y.nodesRef.current,g):[];if(v.length>0){let e=!0;if(v.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}i(!1,e,"outside-press")}),L=useEffectEvent(e=>{var t;const callback=()=>{var t;S(e),null==(t=getTarget(e))||t.removeEventListener(m,callback)};null==(t=getTarget(e))||t.addEventListener(m,callback)});return n.useEffect(()=>{if(!o||!a)return;function onScroll(e){i(!1,e,"ancestor-scroll")}l.current.__escapeKeyBubbles=x,l.current.__outsidePressBubbles=R;const e=getDocument(s);f&&e.addEventListener("keydown",A?T:C,A),w&&e.addEventListener(m,P?L:S,P);let t=[];return v&&(Object(r.j)(u)&&(t=Object(r.f)(u)),Object(r.j)(s)&&(t=t.concat(Object(r.f)(s))),!Object(r.j)(c)&&c&&c.contextElement&&(t=t.concat(Object(r.f)(c.contextElement)))),t=t.filter(t=>{var n;return t!==(null==(n=e.defaultView)?void 0:n.visualViewport)}),t.forEach(e=>{e.addEventListener("scroll",onScroll,{passive:!0})}),()=>{f&&e.removeEventListener("keydown",A?T:C,A),w&&e.removeEventListener(m,P?L:S,P),t.forEach(e=>{e.removeEventListener("scroll",onScroll)})}},[l,s,u,c,f,w,m,o,i,v,a,x,R,C,A,T,S,P,L]),n.useEffect(()=>{E.current=!1},[w,m]),n.useMemo(()=>a?{reference:{onKeyDown:C,[K[p]]:e=>{g&&i(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:C,onMouseDown(){j.current=!0},onMouseUp(){j.current=!0},[U[m]]:()=>{E.current=!0}}}:{},[a,g,m,p,i,C])}function useFloating(e){void 0===e&&(e={});const{nodeId:t}=e,o=function(e){const{open:t=!1,onOpenChange:r,elements:o}=e,i=P(),c=n.useRef({}),[u]=n.useState(()=>createPubSub()),s=null!=useFloatingParentNodeId(),[l,a]=n.useState(o.reference),f=useEffectEvent((e,t,n)=>{c.current.openEvent=e?t:void 0,u.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==r||r(e,t,n)}),d=n.useMemo(()=>({setPositionReference:a}),[]),m=n.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return n.useMemo(()=>({dataRef:c,open:t,onOpenChange:f,elements:m,events:u,floatingId:i,refs:d}),[t,f,m,u,i,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),c=e.rootContext||o,u=c.elements,[s,l]=n.useState(null),[a,f]=n.useState(null),d=(null==u?void 0:u.reference)||s,m=n.useRef(null),g=useFloatingTree();E(()=>{d&&(m.current=d)},[d]);const p=Object(i.g)({...e,elements:{...u,...a&&{reference:a}}}),v=n.useCallback(e=>{const t=Object(r.j)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;f(t),p.refs.setReference(t)},[p.refs]),b=n.useCallback(e=>{(Object(r.j)(e)||null===e)&&(m.current=e,l(e)),(Object(r.j)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Object(r.j)(e))&&p.refs.setReference(e)},[p.refs]),h=n.useMemo(()=>({...p.refs,setReference:b,setPositionReference:v,domReference:m}),[p.refs,b,v]),y=n.useMemo(()=>({...p.elements,domReference:d}),[p.elements,d]),O=n.useMemo(()=>({...p,...c,refs:h,elements:y,nodeId:t}),[p,h,y,t,c]);return E(()=>{c.dataRef.current.floatingContext=O;const e=null==g?void 0:g.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),n.useMemo(()=>({...p,context:O,refs:h,elements:y}),[p,h,y,O])}function useFocus(e,t){void 0===t&&(t={});const{open:o,onOpenChange:i,events:c,dataRef:u,elements:{domReference:s}}=e,{enabled:l=!0,visibleOnly:a=!0}=t,f=n.useRef(!1),d=n.useRef(),m=n.useRef(!0);return n.useEffect(()=>{if(!l)return;const e=Object(r.h)(s);function onBlur(){!o&&Object(r.k)(s)&&s===activeElement(getDocument(s))&&(f.current=!0)}function onKeyDown(){m.current=!0}return e.addEventListener("blur",onBlur),e.addEventListener("keydown",onKeyDown,!0),()=>{e.removeEventListener("blur",onBlur),e.removeEventListener("keydown",onKeyDown,!0)}},[s,o,l]),n.useEffect(()=>{if(l)return c.on("openchange",onOpenChange),()=>{c.off("openchange",onOpenChange)};function onOpenChange(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(f.current=!0)}},[c,l]),n.useEffect(()=>()=>{clearTimeout(d.current)},[]),n.useMemo(()=>l?{reference:{onPointerDown(e){isVirtualPointerEvent(e.nativeEvent)||(m.current=!1)},onMouseLeave(){f.current=!1},onFocus(e){if(f.current)return;const t=getTarget(e.nativeEvent);if(a&&Object(r.j)(t))try{if(isSafari()&&isMac())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!isTypeableElement(t))return}i(!0,e.nativeEvent,"focus")},onBlur(e){f.current=!1;const t=e.relatedTarget,n=Object(r.j)(t)&&t.hasAttribute(createAttribute("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout(()=>{var r;const o=activeElement(s?s.ownerDocument:document);(t||o!==s)&&(contains(null==(r=u.current.floatingContext)?void 0:r.refs.floating.current,o)||contains(s,o)||n||i(!1,e.nativeEvent,"focus"))})}}}:{},[l,a,u,s,i])}const X="active",z="selected";function mergeProps(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[X]:_,[z]:t,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var c;o&&[X,z].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(c=r.get(n))||c.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;ie(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function useInteractions(e){void 0===e&&(e=[]);const t=e,r=n.useCallback(t=>mergeProps(t,e,"reference"),t),o=n.useCallback(t=>mergeProps(t,e,"floating"),t),i=n.useCallback(t=>mergeProps(t,e,"item"),e.map(e=>null==e?void 0:e.item));return n.useMemo(()=>({getReferenceProps:r,getFloatingProps:o,getItemProps:i}),[r,o,i])}const Y=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(e,t){var r;void 0===t&&(t={});const{open:o,floatingId:i}=e,{enabled:c=!0,role:u="dialog"}=t,s=null!=(r=Y.get(u))?r:u,l=P(),a=null!=useFloatingParentNodeId();return n.useMemo(()=>{if(!c)return{};const e={id:i,...s&&{role:s}};return"tooltip"===s||"label"===u?{reference:{["aria-"+("label"===u?"labelledby":"describedby")]:o?i:void 0},floating:e}:{reference:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":o?i:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&a&&{role:"menuitem"},..."select"===u&&{"aria-autocomplete":"none"},..."combobox"===u&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===s&&{"aria-labelledby":l}},item(e){let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(u){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}},[c,u,s,o,i,l,a])}},"4gpy":function(module,e,t){"use strict";var n=t("V1XD");function computeCoordsFromPlacement(e,t,r){let{reference:o,floating:i}=e;const c=Object(n.p)(t),u=Object(n.f)(t),s=Object(n.h)(u),l=Object(n.o)(t),a="y"===c,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[s]/2-i[s]/2;let g;switch(l){case"top":g={x:f,y:o.y-i.height};break;case"bottom":g={x:f,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:d};break;case"left":g={x:o.x-i.width,y:d};break;default:g={x:o.x,y:o.y}}switch(Object(n.e)(t)){case"start":g[u]-=m*(r&&a?-1:1);break;case"end":g[u]+=m*(r&&a?-1:1)}return g}async function detectOverflow(e,t){var r;void 0===t&&(t={});const{x:o,y:i,platform:c,rects:u,elements:s,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=Object(n.c)(t,e),p=Object(n.n)(g),v=s[m?"floating"===d?"reference":"floating":d],b=Object(n.t)(await c.getClippingRect({element:null==(r=await(null==c.isElement?void 0:c.isElement(v)))||r?v:v.contextElement||await(null==c.getDocumentElement?void 0:c.getDocumentElement(s.floating)),boundary:a,rootBoundary:f,strategy:l})),h="floating"===d?{x:o,y:i,width:u.floating.width,height:u.floating.height}:u.reference,y=await(null==c.getOffsetParent?void 0:c.getOffsetParent(s.floating)),O=await(null==c.isElement?void 0:c.isElement(y))&&await(null==c.getScale?void 0:c.getScale(y))||{x:1,y:1},w=Object(n.t)(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:h,offsetParent:y,strategy:l}):h);return{top:(b.top-w.top+p.top)/O.y,bottom:(w.bottom-b.bottom+p.bottom)/O.y,left:(b.left-w.left+p.left)/O.x,right:(w.right-b.right+p.right)/O.x}}function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return n.v.some(t=>e[t]>=0)}function getBoundingRect(e){const t=Object(n.r)(...e.map(e=>e.left)),r=Object(n.r)(...e.map(e=>e.top));return{x:t,y:r,width:Object(n.q)(...e.map(e=>e.right))-t,height:Object(n.q)(...e.map(e=>e.bottom))-r}}var r=t("bwSB");function getCssDimensions(e){const t=Object(r.a)(e);let o=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const c=Object(r.k)(e),u=c?e.offsetWidth:o,s=c?e.offsetHeight:i,l=Object(n.u)(o)!==u||Object(n.u)(i)!==s;return l&&(o=u,i=s),{width:o,height:i,$:l}}function unwrapElement(e){return Object(r.j)(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!Object(r.k)(t))return Object(n.b)(1);const o=t.getBoundingClientRect(),{width:i,height:c,$:$}=getCssDimensions(t);let u=($?Object(n.u)(o.width):o.width)/i,s=($?Object(n.u)(o.height):o.height)/c;return u&&Number.isFinite(u)||(u=1),s&&Number.isFinite(s)||(s=1),{x:u,y:s}}t.d(e,"a",(function(){return floating_ui_dom_esm_arrow})),t.d(e,"b",(function(){return floating_ui_dom_esm_autoPlacement})),t.d(e,"c",(function(){return autoUpdate})),t.d(e,"d",(function(){return floating_ui_dom_esm_computePosition})),t.d(e,"e",(function(){return u})),t.d(e,"f",(function(){return floating_ui_dom_esm_flip})),t.d(e,"g",(function(){return floating_ui_dom_esm_hide})),t.d(e,"h",(function(){return floating_ui_dom_esm_inline})),t.d(e,"i",(function(){return floating_ui_dom_esm_limitShift})),t.d(e,"j",(function(){return floating_ui_dom_esm_offset})),t.d(e,"k",(function(){return c})),t.d(e,"l",(function(){return floating_ui_dom_esm_shift})),t.d(e,"m",(function(){return floating_ui_dom_esm_size}));const o=Object(n.b)(0);function getVisualOffsets(e){const t=Object(r.h)(e);return Object(r.p)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:o}function floating_ui_dom_esm_getBoundingClientRect(e,t,o,i){void 0===t&&(t=!1),void 0===o&&(o=!1);const c=e.getBoundingClientRect(),u=unwrapElement(e);let s=Object(n.b)(1);t&&(i?Object(r.j)(i)&&(s=getScale(i)):s=getScale(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Object(r.h)(e))&&t}(u,o,i)?getVisualOffsets(u):Object(n.b)(0);let a=(c.left+l.x)/s.x,f=(c.top+l.y)/s.y,d=c.width/s.x,m=c.height/s.y;if(u){const e=Object(r.h)(u),t=i&&Object(r.j)(i)?Object(r.h)(i):i;let n=e,o=n.frameElement;for(;o&&i&&t!==n;){const e=getScale(o),t=o.getBoundingClientRect(),i=Object(r.a)(o),c=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,u=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;a*=e.x,f*=e.y,d*=e.x,m*=e.y,a+=c,f+=u,n=Object(r.h)(o),o=n.frameElement}}return Object(n.t)({width:d,height:m,x:a,y:f})}const i=[":popover-open",":modal"];function isTopLayer(e){return i.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function getWindowScrollBarX(e){return floating_ui_dom_esm_getBoundingClientRect(Object(r.c)(e)).left+Object(r.e)(e).scrollLeft}function getClientRectFromClippingAncestor(e,t,o){let i;if("viewport"===t)i=function(e,t){const n=Object(r.h)(e),o=Object(r.c)(e),i=n.visualViewport;let c=o.clientWidth,u=o.clientHeight,s=0,l=0;if(i){c=i.width,u=i.height;const e=Object(r.p)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:c,height:u,x:s,y:l}}(e,o);else if("document"===t)i=function(e){const t=Object(r.c)(e),o=Object(r.e)(e),i=e.ownerDocument.body,c=Object(n.q)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),u=Object(n.q)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+getWindowScrollBarX(e);const l=-o.scrollTop;return"rtl"===Object(r.a)(i).direction&&(s+=Object(n.q)(t.clientWidth,i.clientWidth)-c),{width:c,height:u,x:s,y:l}}(Object(r.c)(e));else if(Object(r.j)(t))i=function(e,t){const o=floating_ui_dom_esm_getBoundingClientRect(e,!0,"fixed"===t),i=o.top+e.clientTop,c=o.left+e.clientLeft,u=Object(r.k)(e)?getScale(e):Object(n.b)(1);return{width:e.clientWidth*u.x,height:e.clientHeight*u.y,x:c*u.x,y:i*u.y}}(t,o);else{const n=getVisualOffsets(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return Object(n.t)(i)}function hasFixedPositionAncestor(e,t){const n=Object(r.g)(e);return!(n===t||!Object(r.j)(n)||Object(r.l)(n))&&("fixed"===Object(r.a)(n).position||hasFixedPositionAncestor(n,t))}function getRectRelativeToOffsetParent(e,t,o){const i=Object(r.k)(t),c=Object(r.c)(t),u="fixed"===o,s=floating_ui_dom_esm_getBoundingClientRect(e,!0,u,t);let l={scrollLeft:0,scrollTop:0};const a=Object(n.b)(0);if(i||!i&&!u)if(("body"!==Object(r.d)(t)||Object(r.m)(c))&&(l=Object(r.e)(t)),i){const e=floating_ui_dom_esm_getBoundingClientRect(t,!0,u,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else c&&(a.x=getWindowScrollBarX(c));return{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function isStaticPositioned(e){return"static"===Object(r.a)(e).position}function getTrueOffsetParent(e,t){return Object(r.k)(e)&&"fixed"!==Object(r.a)(e).position?t?t(e):e.offsetParent:null}function getOffsetParent(e,t){const n=Object(r.h)(e);if(isTopLayer(e))return n;if(!Object(r.k)(e)){let t=Object(r.g)(e);for(;t&&!Object(r.l)(t);){if(Object(r.j)(t)&&!isStaticPositioned(t))return t;t=Object(r.g)(t)}return n}let o=getTrueOffsetParent(e,t);for(;o&&Object(r.o)(o)&&isStaticPositioned(o);)o=getTrueOffsetParent(o,t);return o&&Object(r.l)(o)&&isStaticPositioned(o)&&!Object(r.i)(o)?n:o||Object(r.b)(e)||n}const c={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:i,strategy:c}=e;const u="fixed"===c,s=Object(r.c)(i),l=!!t&&isTopLayer(t.floating);if(i===s||l&&u)return o;let a={scrollLeft:0,scrollTop:0},f=Object(n.b)(1);const d=Object(n.b)(0),m=Object(r.k)(i);if((m||!m&&!u)&&(("body"!==Object(r.d)(i)||Object(r.m)(s))&&(a=Object(r.e)(i)),Object(r.k)(i))){const e=floating_ui_dom_esm_getBoundingClientRect(i);f=getScale(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-a.scrollLeft*f.x+d.x,y:o.y*f.y-a.scrollTop*f.y+d.y}},getDocumentElement:r.c,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:i,strategy:c}=e;const u=[..."clippingAncestors"===o?isTopLayer(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=Object(r.f)(e,[],!1).filter(e=>Object(r.j)(e)&&"body"!==Object(r.d)(e)),i=null;const c="fixed"===Object(r.a)(e).position;let u=c?Object(r.g)(e):e;for(;Object(r.j)(u)&&!Object(r.l)(u);){const t=Object(r.a)(u),n=Object(r.i)(u);n||"fixed"!==t.position||(i=null),(c?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||Object(r.m)(u)&&!n&&hasFixedPositionAncestor(e,u))?o=o.filter(e=>e!==u):i=t,u=Object(r.g)(u)}return t.set(e,o),o}(t,this._c):[].concat(o),i],s=u[0],l=u.reduce((e,r)=>{const o=getClientRectFromClippingAncestor(t,r,c);return e.top=Object(n.q)(o.top,e.top),e.right=Object(n.r)(o.right,e.right),e.bottom=Object(n.r)(o.bottom,e.bottom),e.left=Object(n.q)(o.left,e.left),e},getClientRectFromClippingAncestor(t,s,c));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:getOffsetParent,getElementRects:async function(e){const t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,r=await n(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}},getScale:getScale,isElement:r.j,isRTL:function(e){return"rtl"===Object(r.a)(e).direction}};function autoUpdate(e,t,o,i){void 0===i&&(i={});const{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,f=unwrapElement(e),d=c||u?[...f?Object(r.f)(f):[],...Object(r.f)(t)]:[];d.forEach(e=>{c&&e.addEventListener("scroll",o,{passive:!0}),u&&e.addEventListener("resize",o)});const m=f&&l?function(e,t){let o,i=null;const c=Object(r.c)(e);function cleanup(){var e;clearTimeout(o),null==(e=i)||e.disconnect(),i=null}return function refresh(r,u){void 0===r&&(r=!1),void 0===u&&(u=1),cleanup();const{left:s,top:l,width:a,height:f}=e.getBoundingClientRect();if(r||t(),!a||!f)return;const d={rootMargin:-Object(n.d)(l)+"px "+-Object(n.d)(c.clientWidth-(s+a))+"px "+-Object(n.d)(c.clientHeight-(l+f))+"px "+-Object(n.d)(s)+"px",threshold:Object(n.q)(0,Object(n.r)(1,u))||1};let m=!0;function handleObserve(e){const t=e[0].intersectionRatio;if(t!==u){if(!m)return refresh();t?refresh(!1,t):o=setTimeout(()=>{refresh(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(handleObserve,{...d,root:c.ownerDocument})}catch(e){i=new IntersectionObserver(handleObserve,d)}i.observe(e)}(!0),cleanup}(f,o):null;let g,p=-1,v=null;s&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),o()}),f&&!a&&v.observe(f),v.observe(t));let b=a?floating_ui_dom_esm_getBoundingClientRect(e):null;return a&&function frameLoop(){const t=floating_ui_dom_esm_getBoundingClientRect(e);!b||t.x===b.x&&t.y===b.y&&t.width===b.width&&t.height===b.height||o();b=t,g=requestAnimationFrame(frameLoop)}(),o(),()=>{var e;d.forEach(e=>{c&&e.removeEventListener("scroll",o),u&&e.removeEventListener("resize",o)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,a&&cancelAnimationFrame(g)}}const u=detectOverflow,floating_ui_dom_esm_offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:c,placement:u,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:o,elements:i}=e,c=await(null==o.isRTL?void 0:o.isRTL(i.floating)),u=Object(n.o)(r),s=Object(n.e)(r),l="y"===Object(n.p)(r),a=["left","top"].includes(u)?-1:1,f=c&&l?-1:1,d=Object(n.c)(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(g="end"===s?-1*p:p),l?{x:g*f,y:m*a}:{x:m*a,y:g*f}}(t,e);return u===(null==(r=s.offset)?void 0:r.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:c+l.y,data:{...l,placement:u}}}}},floating_ui_dom_esm_autoPlacement=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,i;const{rects:c,middlewareData:u,placement:s,platform:l,elements:a}=t,{crossAxis:f=!1,alignment:d,allowedPlacements:m=n.s,autoAlignment:g=!0,...p}=Object(n.c)(e,t),v=void 0!==d||m===n.s?function(e,t,r){return(e?[...r.filter(t=>Object(n.e)(t)===e),...r.filter(t=>Object(n.e)(t)!==e)]:r.filter(e=>Object(n.o)(e)===e)).filter(r=>!e||(Object(n.e)(r)===e||!!t&&Object(n.j)(r)!==r))}(d||null,g,m):m,b=await detectOverflow(t,p),h=(null==(r=u.autoPlacement)?void 0:r.index)||0,y=v[h];if(null==y)return{};const O=Object(n.g)(y,c,await(null==l.isRTL?void 0:l.isRTL(a.floating)));if(s!==y)return{reset:{placement:v[0]}};const w=[b[Object(n.o)(y)],b[O[0]],b[O[1]]],E=[...(null==(o=u.autoPlacement)?void 0:o.overflows)||[],{placement:y,overflows:w}],j=v[h+1];if(j)return{data:{index:h+1,overflows:E},reset:{placement:j}};const x=E.map(e=>{const t=Object(n.e)(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),R=(null==(i=x.filter(e=>e[2].slice(0,Object(n.e)(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||x[0][0];return R!==s?{data:{index:h+1,overflows:E},reset:{placement:R}}:{}}}},floating_ui_dom_esm_shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Object(n.c)(e,t),a={x:r,y:o},f=await detectOverflow(t,l),d=Object(n.p)(Object(n.o)(i)),m=Object(n.k)(d);let g=a[m],p=a[d];if(c){const e="y"===m?"bottom":"right",t=g+f["y"===m?"top":"left"],r=g-f[e];g=Object(n.a)(t,g,r)}if(u){const e="y"===d?"bottom":"right",t=p+f["y"===d?"top":"left"],r=p-f[e];p=Object(n.a)(t,p,r)}const v=s.fn({...t,[m]:g,[d]:p});return{...v,data:{x:v.x-r,y:v.y-o}}}}},floating_ui_dom_esm_flip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:c,rects:u,initialPlacement:s,platform:l,elements:a}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...b}=Object(n.c)(e,t);if(null!=(r=c.arrow)&&r.alignmentOffset)return{};const h=Object(n.o)(i),y=Object(n.o)(s)===s,O=await(null==l.isRTL?void 0:l.isRTL(a.floating)),w=m||(y||!v?[Object(n.m)(s)]:Object(n.i)(s));m||"none"===p||w.push(...Object(n.l)(s,v,p,O));const E=[s,...w],j=await detectOverflow(t,b),x=[];let R=(null==(o=c.flip)?void 0:o.overflows)||[];if(f&&x.push(j[h]),d){const e=Object(n.g)(i,u,O);x.push(j[e[0]],j[e[1]])}if(R=[...R,{placement:i,overflows:x}],!x.every(e=>e<=0)){var A,P;const e=((null==(A=c.flip)?void 0:A.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==(P=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(g){case"bestFit":{var C;const e=null==(C=R.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:C[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},floating_ui_dom_esm_size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:i,elements:c}=t,{apply:u=(()=>{}),...s}=Object(n.c)(e,t),l=await detectOverflow(t,s),a=Object(n.o)(r),f=Object(n.e)(r),d="y"===Object(n.p)(r),{width:m,height:g}=o.floating;let p,v;"top"===a||"bottom"===a?(p=a,v=f===(await(null==i.isRTL?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(v=a,p="end"===f?"top":"bottom");const b=g-l.top-l.bottom,h=m-l.left-l.right,y=Object(n.r)(g-l[p],b),O=Object(n.r)(m-l[v],h),w=!t.middlewareData.shift;let E=y,j=O;if(d?j=f||w?Object(n.r)(O,h):h:E=f||w?Object(n.r)(y,b):b,w&&!f){const e=Object(n.q)(l.left,0),t=Object(n.q)(l.right,0),r=Object(n.q)(l.top,0),o=Object(n.q)(l.bottom,0);d?j=m-2*(0!==e||0!==t?e+t:Object(n.q)(l.left,l.right)):E=g-2*(0!==r||0!==o?r+o:Object(n.q)(l.top,l.bottom))}await u({...t,availableWidth:j,availableHeight:E});const x=await i.getDimensions(c.floating);return m!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}},floating_ui_dom_esm_hide=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...i}=Object(n.c)(e,t);switch(o){case"referenceHidden":{const e=getSideOffsets(await detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:isAnySideFullyClipped(e)}}}case"escaped":{const e=getSideOffsets(await detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:isAnySideFullyClipped(e)}}}default:return{}}}}},floating_ui_dom_esm_arrow=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:c,platform:u,elements:s,middlewareData:l}=t,{element:a,padding:f=0}=Object(n.c)(e,t)||{};if(null==a)return{};const d=Object(n.n)(f),m={x:r,y:o},g=Object(n.f)(i),p=Object(n.h)(g),v=await u.getDimensions(a),b="y"===g,h=b?"top":"left",y=b?"bottom":"right",O=b?"clientHeight":"clientWidth",w=c.reference[p]+c.reference[g]-m[g]-c.floating[p],E=m[g]-c.reference[g],j=await(null==u.getOffsetParent?void 0:u.getOffsetParent(a));let x=j?j[O]:0;x&&await(null==u.isElement?void 0:u.isElement(j))||(x=s.floating[O]||c.floating[p]);const R=w/2-E/2,A=x/2-v[p]/2-1,P=Object(n.r)(d[h],A),C=Object(n.r)(d[y],A),T=P,S=x-v[p]-C,L=x/2-v[p]/2+R,k=Object(n.a)(T,L,S),D=!l.arrow&&null!=Object(n.e)(i)&&L!==k&&c.reference[p]/2-(Le.y-t.y),r=[];let o=null;for(let e=0;eo.height/2?r.push([n]):r[r.length-1].push(n),o=n}return r.map(e=>Object(n.t)(getBoundingRect(e)))}(f),m=Object(n.t)(getBoundingRect(f)),g=Object(n.n)(s);const p=await c.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=a)return d.find(e=>l>e.left-g.left&&le.top-g.top&&a=2){if("y"===Object(n.p)(r)){const e=d[0],t=d[d.length-1],o="top"===Object(n.o)(r),i=e.top,c=t.bottom,u=o?e.left:t.left,s=o?e.right:t.right;return{top:i,bottom:c,left:u,right:s,width:s-u,height:c-i,x:u,y:i}}const e="left"===Object(n.o)(r),t=Object(n.q)(...d.map(e=>e.right)),o=Object(n.r)(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===o:n.right===t),c=i[0].top,u=i[i.length-1].bottom;return{top:c,bottom:u,left:o,right:t,width:t-o,height:u-c,x:o,y:c}}return m}},floating:o.floating,strategy:u});return i.reference.x!==p.reference.x||i.reference.y!==p.reference.y||i.reference.width!==p.reference.width||i.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},floating_ui_dom_esm_limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:i,rects:c,middlewareData:u}=t,{offset:s=0,mainAxis:l=!0,crossAxis:a=!0}=Object(n.c)(e,t),f={x:r,y:o},d=Object(n.p)(i),m=Object(n.k)(d);let g=f[m],p=f[d];const v=Object(n.c)(s,t),b="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const e="y"===m?"height":"width",t=c.reference[m]-c.floating[e]+b.mainAxis,n=c.reference[m]+c.reference[e]-b.mainAxis;gn&&(g=n)}if(a){var h,y;const e="y"===m?"width":"height",t=["top","left"].includes(Object(n.o)(i)),r=c.reference[d]-c.floating[e]+(t&&(null==(h=u.offset)?void 0:h[d])||0)+(t?0:b.crossAxis),o=c.reference[d]+c.reference[e]+(t?0:(null==(y=u.offset)?void 0:y[d])||0)-(t?b.crossAxis:0);po&&(p=o)}return{[m]:g,[d]:p}}}},floating_ui_dom_esm_computePosition=(e,t,n)=>{const r=new Map,o={platform:c,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:c}=n,u=i.filter(Boolean),s=await(null==c.isRTL?void 0:c.isRTL(t));let l=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:a,y:f}=computeCoordsFromPlacement(l,r,s),d=r,m={},g=0;for(let n=0;n{t.current=e}),t}function useFloating(e){void 0===e&&(e={});const{placement:t="bottom",strategy:c="absolute",middleware:u=[],platform:s,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:d,open:m}=e,[g,p]=r.useState({x:0,y:0,strategy:c,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=r.useState(u);deepEqual(v,u)||b(u);const[h,y]=r.useState(null),[O,w]=r.useState(null),E=r.useCallback(e=>{e!==A.current&&(A.current=e,y(e))},[]),j=r.useCallback(e=>{e!==P.current&&(P.current=e,w(e))},[]),x=l||h,R=a||O,A=r.useRef(null),P=r.useRef(null),C=r.useRef(g),T=null!=d,S=useLatestRef(d),L=useLatestRef(s),k=r.useCallback(()=>{if(!A.current||!P.current)return;const e={placement:t,strategy:c,middleware:v};L.current&&(e.platform=L.current),Object(n.d)(A.current,P.current,e).then(e=>{const t={...e,isPositioned:!0};D.current&&!deepEqual(C.current,t)&&(C.current=t,o.flushSync(()=>{p(t)}))})},[v,t,c,L]);i(()=>{!1===m&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[m]);const D=r.useRef(!1);i(()=>(D.current=!0,()=>{D.current=!1}),[]),i(()=>{if(x&&(A.current=x),R&&(P.current=R),x&&R){if(S.current)return S.current(x,R,k);k()}},[x,R,k,S,T]);const M=r.useMemo(()=>({reference:A,floating:P,setReference:E,setFloating:j}),[E,j]),F=r.useMemo(()=>({reference:x,floating:R}),[x,R]),N=r.useMemo(()=>{const e={position:c,left:0,top:0};if(!F.floating)return e;const t=roundByDPR(F.floating,g.x),n=roundByDPR(F.floating,g.y);return f?{...e,transform:"translate("+t+"px, "+n+"px)",...getDPR(F.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:t,top:n}},[c,f,F.floating,g.x,g.y]);return r.useMemo(()=>({...g,update:k,refs:M,elements:F,floatingStyles:N}),[g,k,M,F,N])}const arrow$1=e=>{return{name:"arrow",options:e,fn(t){const{element:r,padding:o}="function"==typeof e?e(t):e;return r&&(i=r,{}.hasOwnProperty.call(i,"current"))?null!=r.current?Object(n.a)({element:r.current,padding:o}).fn(t):{}:r?Object(n.a)({element:r,padding:o}).fn(t):{};var i}}},offset=(e,t)=>({...Object(n.j)(e),options:[e,t]}),shift=(e,t)=>({...Object(n.l)(e),options:[e,t]}),limitShift=(e,t)=>({...Object(n.i)(e),options:[e,t]}),flip=(e,t)=>({...Object(n.f)(e),options:[e,t]}),hide=(e,t)=>({...Object(n.g)(e),options:[e,t]}),arrow=(e,t)=>({...arrow$1(e),options:[e,t]})},V1XD:function(module,e,t){"use strict";t.d(e,"a",(function(){return clamp})),t.d(e,"b",(function(){return createCoords})),t.d(e,"c",(function(){return evaluate})),t.d(e,"d",(function(){return s})),t.d(e,"e",(function(){return getAlignment})),t.d(e,"f",(function(){return getAlignmentAxis})),t.d(e,"g",(function(){return getAlignmentSides})),t.d(e,"h",(function(){return getAxisLength})),t.d(e,"i",(function(){return getExpandedPlacements})),t.d(e,"j",(function(){return getOppositeAlignmentPlacement})),t.d(e,"k",(function(){return getOppositeAxis})),t.d(e,"l",(function(){return getOppositeAxisPlacements})),t.d(e,"m",(function(){return getOppositePlacement})),t.d(e,"n",(function(){return getPaddingObject})),t.d(e,"o",(function(){return getSide})),t.d(e,"p",(function(){return getSideAxis})),t.d(e,"q",(function(){return c})),t.d(e,"r",(function(){return i})),t.d(e,"s",(function(){return o})),t.d(e,"t",(function(){return rectToClientRect})),t.d(e,"u",(function(){return u})),t.d(e,"v",(function(){return n}));const n=["top","right","bottom","left"],r=["start","end"],o=n.reduce((e,t)=>e.concat(t,t+"-"+r[0],t+"-"+r[1]),[]),i=Math.min,c=Math.max,u=Math.round,s=Math.floor,createCoords=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function clamp(e,t,n){return c(e,i(t,n))}function evaluate(e,t){return"function"==typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);const r=getAlignment(e),o=getAlignmentAxis(e),i=getAxisLength(o);let c="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=getOppositePlacement(c)),[c,getOppositePlacement(c)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>a[e])}function getOppositeAxisPlacements(e,t,n,r){const o=getAlignment(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:c;default:return[]}}(getSide(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(getOppositeAlignmentPlacement)))),i}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>l[e])}function getPaddingObject(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},bwSB:function(module,e,t){"use strict";function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){const t=isWebKit(),n=getComputedStyle(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;t=getParentNode(t)}return null}function isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getOverflowAncestors(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),c=getWindow(o);return i?t.concat(c,c.visualViewport||[],isOverflowElement(o)?o:[],c.frameElement&&n?getOverflowAncestors(c.frameElement):[]):t.concat(o,getOverflowAncestors(o,[],n))}t.d(e,"a",(function(){return getComputedStyle})),t.d(e,"b",(function(){return getContainingBlock})),t.d(e,"c",(function(){return getDocumentElement})),t.d(e,"d",(function(){return getNodeName})),t.d(e,"e",(function(){return getNodeScroll})),t.d(e,"f",(function(){return getOverflowAncestors})),t.d(e,"g",(function(){return getParentNode})),t.d(e,"h",(function(){return getWindow})),t.d(e,"i",(function(){return isContainingBlock})),t.d(e,"j",(function(){return isElement})),t.d(e,"k",(function(){return isHTMLElement})),t.d(e,"l",(function(){return isLastTraversableNode})),t.d(e,"m",(function(){return isOverflowElement})),t.d(e,"n",(function(){return isShadowRoot})),t.d(e,"o",(function(){return isTableElement})),t.d(e,"p",(function(){return isWebKit}))}}]); //# sourceMappingURL=7.f01a303a30010887996f.js.map