"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[802],{1246:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(47912);function i(e,t){let n=e;for((0,r.o)(n,t)&&(n=n.parentElement);n&&!(0,r.o)(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}var o=n(72166),l=n(49953),s=n(69202);const a="undefined"!=typeof window&&window.visualViewport,u=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),c=e=>{const t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflowY)},d=e=>{const t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflowX)},f=(e,t,n)=>{const r=t,i=e.style[r];return e.style[r]=n,()=>{e.style[r]=i}},p=e=>{const t=i(e);if(t!==document.documentElement&&t!==document.body){const n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}},v=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)});let g,h=0;const y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{isDisabled:t}=e;(0,l.N)((()=>{if(!t)return h+=1,1===h&&(g=(0,s.un)()?(()=>{let e,t=0,n=0;const r=window.pageXOffset,l=window.pageYOffset,s=(0,o.c)(f(document.documentElement,"paddingRight","".concat(window.innerWidth-document.documentElement.clientWidth,"px")),f(document.documentElement,"overflow","hidden")),g=(0,o.c)(v(document,"touchstart",(r=>{e=i(r.target),e===document.documentElement&&e===document.body||(t=r.changedTouches[0].pageY,n=r.changedTouches[0].pageX)}),{passive:!1,capture:!0}),v(document,"touchmove",(r=>{if(e===document.documentElement||e===document.body)return void r.preventDefault();const i=r.changedTouches[0].pageY,o=r.changedTouches[0].pageX,{scrollTop:l,scrollLeft:s}=e,a=e.scrollHeight-e.clientHeight,u=e.scrollWidth-e.clientWidth,f=l<=0&&i>t,p=l>=a&&in,g=s>=u&&o{const{target:t}=e;t instanceof HTMLInputElement&&!u.has(t.type)&&t!==document.activeElement&&(e.preventDefault(),t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),v(document,"focus",(e=>{const{target:t}=e;t instanceof HTMLInputElement&&!u.has(t.type)&&requestAnimationFrame((()=>{t.style.transform="",a&&(a.height{p(t)})):a.addEventListener("resize",(()=>p(t)),{once:!0}))}))}),!0),v(window,"scroll",(e=>{const{scrollingElement:t}=e.target;null!=t&&t.customScrolling?(document.documentElement.style.overflow="auto",setTimeout((()=>{document.documentElement.style.overflow="hidden"}),500)):e.preventDefault()})));return()=>{s(),g(),window.scrollTo(r,l)}})():(0,o.c)(f(document.documentElement,"paddingRight","".concat(window.innerWidth-document.documentElement.clientWidth,"px")),f(document.documentElement,"overflow","hidden"))),()=>{h-=1,0===h&&g()}}),[t])}},5987:(e,t,n)=>{n.d(t,{$:()=>s});const r=new Set(["id"]),i=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),o=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),l=/^(data-.*)$/;function s(e,t={}){let{labelable:n,isLink:s,propNames:a}=t,u={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r.has(t)||n&&i.has(t)||s&&o.has(t)||(null==a?void 0:a.has(t))||l.test(t))&&(u[t]=e[t]);return u}},8494:(e,t,n)=>{n.d(t,{v:()=>s});var r=n(95382),i=n(34164),o=n(32217),l=n(96540);function s(e){let{children:t,focusClass:n,focusRingClass:s}=e,{isFocused:a,isFocusVisible:u,focusProps:c}=(0,r.o)(e),d=l.Children.only(t);return l.cloneElement(d,(0,o.v)(d.props,{...c,className:(0,i.A)({[n||""]:a,[s||""]:u})}))}},10207:(e,t,n)=>{n.d(t,{q:()=>Ht});var r=n(58168),i=n(89379),o=n(80045),l=n(96540);const s=new WeakMap;function a(e,t){let n=s.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${r=t,"string"==typeof r?r.replace(/\s*/g,""):""+r}`;var r}var u=n(43051),c=n(69202),d=n(72166),f=n(5987),p=n(32268);const v=(0,l.createContext)({isNative:!0,open:function(e,t){y(e,(e=>h(e,t)))},useHref:e=>e});function g(){return(0,l.useContext)(v)}function h(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:s,shiftKey:a}=t;(0,c.gm)()&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&((0,c.cX)()?o=!0:l=!0);let u=(0,c.Tc)()&&(0,c.cX)()&&!(0,c.bh)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});h.isOpening=n,(0,p.e)(e),e.dispatchEvent(u),h.isOpening=!1}function y(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function m(e){var t;const n=g().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}h.isOpening=!1;var b=n(32217);function w(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function E(e){return function(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}(e,0)}function T(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...K(e,t),t],i=[...K(e,n),n],o=r.slice(0,i.length).findIndex(((e,t)=>e!==i[t]));return-1!==o?(t=r[o],n=i[o],t.index-n.index):r.findIndex((e=>e===n))>=0?1:(i.findIndex((e=>e===t)),-1)}function K(e,t){let n=[],r=t;for(;null!=(null==r?void 0:r.parentKey);)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const S=new WeakMap;function x(e){let t=S.get(e);if(null!=t)return t;let n=0,r=t=>{for(let i of t)"section"===i.type?r(w(i,e)):n++};return r(e),S.set(e,n),n}let L=!1,k=0;function P(){L=!0,setTimeout((()=>{L=!1}),50)}function O(e){"touch"===e.pointerType&&P()}function A(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",O):document.addEventListener("touchend",P),k++,()=>{k--,k>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",O):document.removeEventListener("touchend",P))}}function C(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=(0,l.useState)(!1),a=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,l.useEffect)(A,[]);let{hoverProps:u,triggerHoverEnd:c}=(0,l.useMemo)((()=>{let e=(e,r)=>{if(a.pointerType=r,i||"touch"===r||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let o=e.currentTarget;a.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),s(!0)},o=(e,t)=>{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),s(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{L&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{a.ignoreEmulatedMouseEvents||L||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[t,n,r,i,a]);return(0,l.useEffect)((()=>{i&&c({currentTarget:a.target},a.pointerType)}),[i]),{hoverProps:u,isHovered:o}}var M=n(95562);function D(e){return(0,c.lg)()?e.altKey:e.ctrlKey}var F=n(58374);function I(e){return(0,c.cX)()?e.metaKey:e.ctrlKey}const N="react-aria-update-activedescendant";var R=n(24836),B=n(47233);let H="default",V="",j=new WeakMap;function _(e){if((0,c.un)()){if("default"===H){const t=(0,R.T)(e);V=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}H="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(j.set(e,e.style.userSelect),e.style.userSelect="none")}function W(e){if((0,c.un)()){if("disabled"!==H)return;H="restoring",setTimeout((()=>{(0,B.v)((()=>{if("restoring"===H){const t=(0,R.T)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=V||""),V="",H="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&j.has(e)){let t=j.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),j.delete(e)}}const U=l.createContext({register:()=>{}});function z(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function $(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function q(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,z(e,t,"set"),n),n}U.displayName="PressResponderContext";var X=n(49953);function Y(e,t){(0,X.N)((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function G(){let e=(0,l.useRef)(new Map),t=(0,l.useCallback)(((t,n,r,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)}),[]),n=(0,l.useCallback)(((t,n,r,i)=>{var o;let l=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,l,i),e.current.delete(r)}),[]),r=(0,l.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,l.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var Z=n(7049),J=n(28948);function Q(e){let t=(0,l.useContext)(U);if(t){let{register:n,...r}=t;e=(0,b.v)(r,e),n()}return Y(t,e.ref),e}var ee=new WeakMap;class te{continuePropagation(){q(this,ee,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,z(e,ee,"get"));var e}constructor(e,t,n,r){var i;$(this,ee,{writable:!0,value:void 0}),q(this,ee,!0);let o=null!==(i=null==r?void 0:r.target)&&void 0!==i?i:n.currentTarget;const l=null==o?void 0:o.getBoundingClientRect();let s,a,u=0,c=null;null!=n.clientX&&null!=n.clientY&&(a=n.clientX,c=n.clientY),l&&(null!=a&&null!=c?(s=a-l.left,u=c-l.top):(s=l.width/2,u=l.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=u}}const ne=Symbol("linkClicked");function re(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:s,isPressed:a,preventFocusOnPress:u,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:v,ref:g,...y}=Q(e),[m,w]=(0,l.useState)(!1),E=(0,l.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:T,removeAllGlobalListeners:K}=G(),S=(0,Z.J)(((e,t)=>{let i=E.current;if(s||i.didFirePressStart)return!1;let o=!0;if(i.isTriggeringEvent=!0,r){let n=new te("pressstart",t,e);r(n),o=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,w(!0),o})),x=(0,Z.J)(((e,r,o=!0)=>{let l=E.current;if(!l.didFirePressStart)return!1;l.ignoreClickAfterPress=!0,l.didFirePressStart=!1,l.isTriggeringEvent=!0;let a=!0;if(i){let t=new te("pressend",r,e);i(t),a=t.shouldStopPropagation}if(n&&n(!1),w(!1),t&&o&&!s){let n=new te("press",r,e);t(n),a&&(a=n.shouldStopPropagation)}return l.isTriggeringEvent=!1,a})),L=(0,Z.J)(((e,t)=>{let n=E.current;if(s)return!1;if(o){n.isTriggeringEvent=!0;let r=new te("pressup",t,e);return o(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),k=(0,Z.J)((e=>{let t=E.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&x(ae(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,K(),v||W(t.target))})),P=(0,Z.J)((e=>{f&&k(e)})),O=(0,l.useMemo)((()=>{let e=E.current,t={onKeyDown(t){if(oe(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var r;de(t.target,t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,i=S(t,"keyboard");let r=t.currentTarget,o=t=>{oe(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&L(ae(e.target,t),"keyboard")};T((0,R.T)(t.currentTarget),"keyup",(0,d.c)(o,n),!0)}i&&t.stopPropagation(),t.metaKey&&(0,c.cX)()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!h.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,J.Y)(t.nativeEvent))){s||u||(0,p.e)(t.currentTarget);let e=S(t,"virtual"),r=L(t,"virtual"),i=x(t,"virtual");n=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&oe(t,e.target)){var r;de(t.target,t.key)&&t.preventDefault();let n=t.target;x(ae(e.target,t),"keyboard",e.target.contains(n)),K(),"Enter"!==t.key&&ie(e.target)&&e.target.contains(n)&&!t[ne]&&(t[ne]=!0,h(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,J.P)(t.nativeEvent))return void(e.pointerType="virtual");ce(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let o=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,s||u||(0,p.e)(t.currentTarget),v||_(e.target),o=S(t,e.pointerType),T((0,R.T)(t.currentTarget),"pointermove",n,!1),T((0,R.T)(t.currentTarget),"pointerup",r,!1),T((0,R.T)(t.currentTarget),"pointercancel",i,!1)),o&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(ce(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&ue(t,t.currentTarget)&&L(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&ue(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,S(ae(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,x(ae(e.target,t),e.pointerType,!1),P(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(ue(t,e.target)&&null!=e.pointerType?x(ae(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&x(ae(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,K(),v||W(e.target))},i=e=>{k(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&k(e)}}else{t.onMouseDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(ce(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,J.Y)(t.nativeEvent)?"virtual":"mouse",s||u||(0,p.e)(t.currentTarget),S(t,e.pointerType)&&t.stopPropagation(),T((0,R.T)(t.currentTarget),"mouseup",n,!1)},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=S(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=x(t,e.pointerType,!1),P(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||L(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,K(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&ue(t,e.target)&&null!=e.pointerType?x(ae(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&x(ae(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",s||u||(0,p.e)(t.currentTarget),v||_(e.target),S(se(e.target,t),e.pointerType)&&t.stopPropagation(),T((0,R.m)(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=le(t.nativeEvent,e.activePointerId),r=!0;n&&ue(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=S(se(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=x(se(e.target,t),e.pointerType,!1),P(se(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=le(t.nativeEvent,e.activePointerId),r=!0;n&&ue(n,t.currentTarget)&&null!=e.pointerType?(L(se(e.target,t),e.pointerType),r=x(se(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=x(se(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!v&&W(e.target),K()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&k(se(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&k({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&k(e)}}return t}),[T,s,u,K,v,k,P,x,S,L]);return(0,l.useEffect)((()=>()=>{var e;v||W(null!==(e=E.current.target)&&void 0!==e?e:void 0)}),[v]),{isPressed:a||m,pressProps:(0,b.v)(y,O)}}function ie(e){return"A"===e.tagName&&e.hasAttribute("href")}function oe(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||i instanceof(0,R.m)(i).HTMLInputElement&&!pe(i,n)||i instanceof(0,R.m)(i).HTMLTextAreaElement||i.isContentEditable||("link"===o||!o&&ie(i))&&"Enter"!==n)}function le(e,t){const n=e.changedTouches;for(let e=0;eo.right||o.left>i.right||i.top>o.bottom||o.top>i.bottom);var i,o}function ce(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function de(e,t){return e instanceof HTMLInputElement?!pe(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!ie(e)}const fe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pe(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:fe.has(e.type)}let ve=0;const ge=new Map;function he(e){let[t,n]=(0,l.useState)();return(0,X.N)((()=>{if(!e)return;let t=ge.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+ve++;n(r);let i=document.createElement("div");i.id=r,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},ge.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),ge.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}const ye=500;function me(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ye,accessibilityDescription:s}=e;const a=(0,l.useRef)(void 0);let{addGlobalListener:u,removeGlobalListener:c}=G(),{pressProps:d}=re({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),a.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...e,type:"longpress"}),a.current=void 0}),o),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};u(e.target,"contextmenu",t,{once:!0}),u(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){a.current&&clearTimeout(a.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}}),f=he(i&&!t?s:void 0);return{longPressProps:(0,b.v)(d,f)}}function be(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:s,focus:a,isDisabled:c,onAction:d,allowsDifferentPressOrigin:f,linkBehavior:p="action"}=e,v=g();t=(0,u.Bi)(t);let y=e=>{if("keyboard"===e.pointerType&&D(e))n.toggleSelection(r);else{if("none"===n.selectionMode)return;if(n.isLink(r)){if("selection"===p&&i.current){let t=n.getItemProps(r);return v.open(i.current,e,t.href,t.routerOptions),void n.setSelectedKeys(n.selectedKeys)}if("override"===p||"none"===p)return}"single"===n.selectionMode?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):"toggle"===n.selectionBehavior||e&&(I(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?n.toggleSelection(r):n.replaceSelection(r)}};(0,l.useEffect)((()=>{if(r===n.focusedKey&&n.isFocused)if(s){var e;let t=new CustomEvent(N,{cancelable:!0,bubbles:!0});null===(e=i.current)||void 0===e||e.dispatchEvent(t)}else a?a():document.activeElement!==i.current&&i.current&&(0,F.l)(i.current)}),[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),c=c||n.isDisabled(r);let m={};s||c?c&&(m.onMouseDown=e=>{e.preventDefault()}):m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}};let w=n.isLink(r)&&"override"===p,E=n.isLink(r)&&"selection"!==p&&"none"!==p,T=!c&&n.canSelectItem(r)&&!w,K=(d||E)&&!c,S=K&&("replace"===n.selectionBehavior?!T:!T||n.isEmpty),x=K&&T&&"replace"===n.selectionBehavior,L=S||x,k=(0,l.useRef)(null),P=L&&T,O=(0,l.useRef)(!1),A=(0,l.useRef)(!1),C=e=>{if(d&&d(),E&&i.current){let t=n.getItemProps(r);v.open(i.current,e,t.href,t.routerOptions)}},M={};o?(M.onPressStart=e=>{k.current=e.pointerType,O.current=P,"keyboard"!==e.pointerType||L&&!Ee()||y(e)},f?(M.onPressUp=S?void 0:e=>{"mouse"===e.pointerType&&T&&y(e)},M.onPress=S?C:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&T&&y(e)}):M.onPress=e=>{if(S||x&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!we())return;C(e)}else"keyboard"!==e.pointerType&&T&&y(e)}):(M.onPressStart=e=>{k.current=e.pointerType,O.current=P,A.current=S,T&&("mouse"===e.pointerType&&!S||"keyboard"===e.pointerType&&(!K||Ee()))&&y(e)},M.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&L&&we()||"mouse"===e.pointerType&&A.current)&&(L?C(e):T&&y(e))}),m["data-key"]=r,M.preventFocusOnPress=s;let{pressProps:R,isPressed:B}=re(M),H=x?e=>{"mouse"===k.current&&(e.stopPropagation(),e.preventDefault(),C(e))}:void 0,{longPressProps:V}=me({isDisabled:!P,onLongPress(e){"touch"===e.pointerType&&(y(e),n.setSelectionBehavior("toggle"))}}),j=n.isLink(r)?e=>{h.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,b.v)(m,T||S?R:{},P?V:{},{onDoubleClick:H,onDragStartCapture:e=>{"touch"===k.current&&O.current&&e.preventDefault()},onClick:j,id:t}),isPressed:B,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:T,hasAction:L}}function we(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function Ee(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}function Te(e,t,n){var r,i;let{key:o}=e,l=s.get(t);var p;let v=null!==(p=e.isDisabled)&&void 0!==p?p:t.selectionManager.isDisabled(o);var g;let h=null!==(g=e.isSelected)&&void 0!==g?g:t.selectionManager.isSelected(o);var y;let w=null!==(y=e.shouldSelectOnPressUp)&&void 0!==y?y:null==l?void 0:l.shouldSelectOnPressUp;var E;let T=null!==(E=e.shouldFocusOnHover)&&void 0!==E?E:null==l?void 0:l.shouldFocusOnHover;var K;let S=null!==(K=e.shouldUseVirtualFocus)&&void 0!==K?K:null==l?void 0:l.shouldUseVirtualFocus;var L;let k=null!==(L=e.isVirtualized)&&void 0!==L?L:null==l?void 0:l.isVirtualized,P=(0,u.X1)(),O=(0,u.X1)(),A={role:"option","aria-disabled":v||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?h:void 0};(0,c.cX)()&&(0,c.Tc)()||(A["aria-label"]=e["aria-label"],A["aria-labelledby"]=P,A["aria-describedby"]=O);let D=t.collection.getItem(o);if(k){let e=Number(null==D?void 0:D.index);A["aria-posinset"]=Number.isNaN(e)?void 0:e+1,A["aria-setsize"]=x(t.collection)}let F=(null==l?void 0:l.onAction)?()=>{var e;return null==l||null===(e=l.onAction)||void 0===e?void 0:e.call(l,o)}:void 0,I=a(t,o),{itemProps:N,isPressed:R,isFocused:B,hasAction:H,allowsSelection:V}=be({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:w,allowsDifferentPressOrigin:w&&T,isVirtualized:k,shouldUseVirtualFocus:S,isDisabled:v,onAction:F||(null==D||null===(r=D.props)||void 0===r?void 0:r.onAction)?(0,d.c)(null==D||null===(i=D.props)||void 0===i?void 0:i.onAction,F):void 0,linkBehavior:null==l?void 0:l.linkBehavior,id:I}),{hoverProps:j}=C({isDisabled:v||!T,onHoverStart(){(0,M.pP)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),_=(0,f.$)(null==D?void 0:D.props);delete _.id;let W=m(null==D?void 0:D.props);return{optionProps:{...A,...(0,b.v)(_,N,j,W),id:I},labelProps:{id:P},descriptionProps:{id:O},isFocused:B,isFocusVisible:B&&(0,M.pP)(),isSelected:h,isDisabled:v,isPressed:R,allowsSelection:V,hasAction:H}}var Ke=n(59461);function Se(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=(0,u.Bi)(n),i&&r){let e=new Set([n,...i.trim().split(/\s+/)]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function xe(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=(0,u.Bi)(t);let l=(0,u.Bi)(),s={};return n?(r=r?`${l} ${r}`:l,s={id:l,htmlFor:"label"===o?t:void 0}):r||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:Se({id:t,"aria-label":i,"aria-labelledby":r})}}function Le(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,l.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let o=1!==(l=e.key).length&&/^[A-Z]/i.test(l)?"":l;var l;if(o&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)){if(" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o,null!=t.getKeyForSearch){let e=t.getKeyForSearch(i.search,n.focusedKey);null==e&&(e=t.getKeyForSearch(i.search)),null!=e&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),1e3)}}:void 0}}}function ke(e,t,n,r){let i=(0,Z.J)(n),o=null==n;(0,l.useEffect)((()=>{if(o||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}),[e,t,r,o,i])}var Pe=n(47912);function Oe(e,t){const n=[];for(;e&&e!==document.documentElement;)(0,Pe.o)(e,t)&&n.push(e),e=e.parentElement;return n}function Ae(e,t){let n=Ce(e,t,"left"),r=Ce(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),v=l+parseInt(u,10),g=s+parseInt(a,10),h=v+e.clientWidth,y=g+e.clientHeight,m=parseInt(c,10)||0,b=parseInt(f,10)||0,w=parseInt(d,10)||0,E=parseInt(p,10)||0;n<=l+E?l=n-parseInt(u,10)-E:n+i>h-w&&(l+=n+i-h+w),r<=g+m?s=r-parseInt(a,10)-m:r+o>y-b&&(s+=r+o-y+b),e.scrollLeft=l,e.scrollTop=s}function Ce(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Me(e,t){if(e&&document.contains(e)){let l=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(l).overflow){let t=Oe(e);for(let n of t)Ae(n,e)}else{var n;let{left:l,top:s}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:a,top:u}=e.getBoundingClientRect();var r,i,o;if(Math.abs(l-a)>1||Math.abs(s-u)>1)null==t||null===(i=t.containingElement)||void 0===i||null===(r=i.scrollIntoView)||void 0===r||r.call(i,{block:"center",inline:"center"}),null===(o=e.scrollIntoView)||void 0===o||o.call(e,{block:"nearest"})}}}function De(e,t){const n=(0,l.useRef)(!0),r=(0,l.useRef)(null);(0,X.N)((()=>(n.current=!0,()=>{n.current=!1})),[]),(0,X.N)((()=>{n.current?n.current=!1:r.current&&!t.some(((e,t)=>!Object.is(e,r[t])))||e(),r.current=t}),t)}var Fe=n(40961),Ie=n(85652);const Ne=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Re=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Be(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return Ne.has(t.script)}let t=e.split("-")[0];return Re.has(t)}var He=n(60415);const Ve=Symbol.for("react-aria.i18n.locale");function je(){let e="undefined"!=typeof window&&window[Ve]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Be(e)?"rtl":"ltr"}}let _e=je(),We=new Set;function Ue(){_e=je();for(let e of We)e(_e)}function ze(){let e=(0,He.wR)(),[t,n]=(0,l.useState)(_e);return(0,l.useEffect)((()=>(0===We.size&&window.addEventListener("languagechange",Ue),We.add(n),()=>{We.delete(n),0===We.size&&window.removeEventListener("languagechange",Ue)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const $e=l.createContext(null);function qe(){let e=ze();return(0,l.useContext)($e)||e}function Xe(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:u="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:v,scrollRef:h=r,linkBehavior:y="action"}=e,{direction:m}=qe(),w=g(),E=(0,l.useRef)({top:0,left:0});ke(h,"scroll",v?void 0:()=>{var e,t,n,r;E.current={top:null!==(n=null===(e=h.current)||void 0===e?void 0:e.scrollTop)&&void 0!==n?n:0,left:null!==(r=null===(t=h.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==r?r:0}});let T=(0,l.useRef)(!1);ke(r,"react-aria-focus",d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),"first"===(null==n?void 0:n.focusStrategy)&&(T.current=!0)}:void 0);let K=(0,Z.J)((()=>{var e,i;let o=null!==(i=null===(e=n.getFirstKey)||void 0===e?void 0:e.call(n))&&void 0!==i?i:null;var l;null==o?(null===(l=r.current)||void 0===l||l.dispatchEvent(new CustomEvent(N,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(T.current=!1)):(t.setFocusedKey(o),T.current=!1)}));De((()=>{T.current&&K()}),[t.collection,K]);let S=(0,Z.J)((()=>{t.collection.size>0&&(T.current=!1)}));De((()=>{S()}),[t.focusedKey,S]),ke(r,"react-aria-clear-focus",d?e=>{e.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const x=(0,l.useRef)(i);(0,l.useEffect)((()=>{if(x.current){var e,o;let a=null;var l,s;"first"===i&&(a=null!==(l=null===(e=n.getFirstKey)||void 0===e?void 0:e.call(n))&&void 0!==l?l:null),"last"===i&&(a=null!==(s=null===(o=n.getLastKey)||void 0===o?void 0:o.call(n))&&void 0!==s?s:null);let u=t.selectedKeys;if(u.size)for(let e of u)if(t.canSelectItem(e)){a=e;break}t.setFocused(!0),t.setFocusedKey(a),null==a&&!d&&r.current&&(0,F.l)(r.current)}}),[]);let L=(0,l.useRef)(t.focusedKey);(0,l.useEffect)((()=>{if(t.isFocused&&null!=t.focusedKey&&(t.focusedKey!==L.current||x.current)&&h.current&&r.current){let e=(0,M.ME)(),n=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!n)return;("keyboard"===e||x.current)&&(Ae(h.current,n),"virtual"!==e&&Me(n,{containingElement:r.current}))}!d&&t.isFocused&&null==t.focusedKey&&null!=L.current&&r.current&&(0,F.l)(r.current),L.current=t.focusedKey,x.current=!1})),ke(r,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let k,P={onKeyDown:e=>{var i;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(i=r.current)||void 0===i?void 0:i.contains(e.target)))return;const l=(n,r)=>{if(null!=n){if(t.isLink(n)&&"selection"===y&&u&&!D(e)){var i;(0,Fe.flushSync)((()=>{t.setFocusedKey(n,r)}));let o=null===(i=h.current)||void 0===i?void 0:i.querySelector(`[data-key="${CSS.escape(n.toString())}"]`),l=t.getItemProps(n);return void(o&&w.open(o,e,l.href,l.routerOptions))}if(t.setFocusedKey(n,r),t.isLink(n)&&"override"===y)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):u&&!D(e)&&t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var c,d,v;let r=null!=t.focusedKey?null===(c=n.getKeyBelow)||void 0===c?void 0:c.call(n,t.focusedKey):null===(d=n.getFirstKey)||void 0===d?void 0:d.call(n);null==r&&o&&(r=null===(v=n.getFirstKey)||void 0===v?void 0:v.call(n,t.focusedKey)),null!=r&&(e.preventDefault(),l(r))}break;case"ArrowUp":if(n.getKeyAbove){var g,b,E;let r=null!=t.focusedKey?null===(g=n.getKeyAbove)||void 0===g?void 0:g.call(n,t.focusedKey):null===(b=n.getLastKey)||void 0===b?void 0:b.call(n);null==r&&o&&(r=null===(E=n.getLastKey)||void 0===E?void 0:E.call(n,t.focusedKey)),null!=r&&(e.preventDefault(),l(r))}break;case"ArrowLeft":if(n.getKeyLeftOf){var T,K,S;let r=null!=t.focusedKey?null===(T=n.getKeyLeftOf)||void 0===T?void 0:T.call(n,t.focusedKey):null;null==r&&o&&(r="rtl"===m?null===(K=n.getFirstKey)||void 0===K?void 0:K.call(n,t.focusedKey):null===(S=n.getLastKey)||void 0===S?void 0:S.call(n,t.focusedKey)),null!=r&&(e.preventDefault(),l(r,"rtl"===m?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var x,L,k;let r=null!=t.focusedKey?null===(x=n.getKeyRightOf)||void 0===x?void 0:x.call(n,t.focusedKey):null;null==r&&o&&(r="rtl"===m?null===(L=n.getLastKey)||void 0===L?void 0:L.call(n,t.focusedKey):null===(k=n.getFirstKey)||void 0===k?void 0:k.call(n,t.focusedKey)),null!=r&&(e.preventDefault(),l(r,"rtl"===m?"last":"first"))}break;case"Home":if(n.getFirstKey){if(null===t.focusedKey&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,I(e));t.setFocusedKey(r),null!=r&&(I(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):u&&t.replaceSelection(r))}break;case"End":if(n.getLastKey){if(null===t.focusedKey&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,I(e));t.setFocusedKey(r),null!=r&&(I(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):u&&t.replaceSelection(r))}break;case"PageDown":if(n.getKeyPageBelow&&null!=t.focusedKey){let r=n.getKeyPageBelow(t.focusedKey);null!=r&&(e.preventDefault(),l(r))}break;case"PageUp":if(n.getKeyPageAbove&&null!=t.focusedKey){let r=n.getKeyPageAbove(t.focusedKey);null!=r&&(e.preventDefault(),l(r))}break;case"a":I(e)&&"multiple"===t.selectionMode&&!0!==a&&(e.preventDefault(),t.selectAll());break;case"Escape":s||0===t.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(e.shiftKey)r.current.focus();else{let e,t,n=(0,Ie.N$)(r.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&(0,p.e)(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){var i,o;let r=e=>{null!=e&&(t.setFocusedKey(e),u&&t.replaceSelection(e))},a=e.relatedTarget;var l,s;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?r(null!==(l=t.lastSelectedKey)&&void 0!==l?l:null===(i=n.getLastKey)||void 0===i?void 0:i.call(n)):r(null!==(s=t.firstSelectedKey)&&void 0!==s?s:null===(o=n.getFirstKey)||void 0===o?void 0:o.call(n))}else!v&&h.current&&(h.current.scrollTop=E.current.top,h.current.scrollLeft=E.current.left);if(null!=t.focusedKey&&h.current){let e=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(e){e.contains(document.activeElement)||(0,p.e)(e),"keyboard"===(0,M.ME)()&&Me(e,{containingElement:r.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){h.current===e.target&&e.preventDefault()}},{typeSelectProps:O}=Le({keyboardDelegate:n,selectionManager:t});return c||(P=(0,b.v)(O,P)),k=d?-1:null==t.focusedKey?0:-1,{collectionProps:{...P,tabIndex:k}}}class Ye{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left+t.scrollLeft,y:i.top-r.top+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;var t,n;return{width:null!==(t=null==e?void 0:e.scrollWidth)&&void 0!==t?t:0,height:null!==(n=null==e?void 0:e.scrollHeight)&&void 0!==n?n:0}}getVisibleRect(){let e=this.ref.current;var t,n,r,i;return{x:null!==(t=null==e?void 0:e.scrollLeft)&&void 0!==t?t:0,y:null!==(n=null==e?void 0:e.scrollTop)&&void 0!==n?n:0,width:null!==(r=null==e?void 0:e.offsetWidth)&&void 0!==r?r:0,height:null!==(i=null==e?void 0:e.offsetHeight)&&void 0!==i?i:0}}constructor(e){this.ref=e}}class Ge{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;null!=n;){let e=this.collection.getItem(n);if("item"===(null==e?void 0:e.type)&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,(e=>this.collection.getKeyAfter(e)))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,(e=>this.collection.getKeyBefore(e)))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||null==r)return null;let o=i;do{if(r=t(r),null==r)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(o,i)&&null!=r);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getNextKey(e)),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getPreviousKey(e)),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,(e=>this.layoutDelegate[t](e)))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"rtl"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,(e=>this.layoutDelegate[t](e)))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"ltr"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,(e=>this.collection.getKeyAfter(e)))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,(e=>this.collection.getKeyBefore(e)))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!(0,Pe.o)(t))return this.getFirstKey();let r=e;if("horizontal"===this.orientation){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&null!=r;)r=this.getKeyAbove(r),n=null==r?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&null!=r;)r=this.getKeyAbove(r),n=null==r?null:this.layoutDelegate.getItemRect(r)}return null!=r?r:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!(0,Pe.o)(t))return this.getLastKey();let r=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.xe[0]o||new Ge({collection:n,disabledKeys:r,disabledBehavior:u,ref:i,collator:a,layoutDelegate:s})),[o,s,n,r,i,a,u]),{collectionProps:d}=Xe({...e,ref:i,selectionManager:t,keyboardDelegate:c});return{listProps:d}}class et{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.prevKey)&&void 0!==n?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.nextKey)&&void 0!==n?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=r++),n=t,n.nextKey=void 0;var i;this.lastKey=null!==(i=null==n?void 0:n.key)&&void 0!==i?i:null}}class tt extends Set{constructor(e,t,n){super(e),e instanceof tt?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=null!=t?t:null,this.currentKey=null!=n?n:null)}}function nt(e,t,n){let[r,i]=(0,l.useState)(e||t),o=(0,l.useRef)(void 0!==e),s=void 0!==e;(0,l.useEffect)((()=>{let e=o.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s}),[s]);let a=s?e:r,u=(0,l.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(a,e)||n(e,...t)),s||(a=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((n,...i)=>{let o=e(s?a:n,...i);return r(o,...t),s?n:o}))}else s||i(e),r(e,...t)}),[s,a,n]);return[a,u]}function rt(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,s=(0,l.useRef)(!1),[,a]=(0,l.useState)(!1),u=(0,l.useRef)(null),c=(0,l.useRef)(null),[,d]=(0,l.useState)(null),f=(0,l.useMemo)((()=>it(e.selectedKeys)),[e.selectedKeys]),p=(0,l.useMemo)((()=>it(e.defaultSelectedKeys,new tt)),[e.defaultSelectedKeys]),[v,g]=nt(f,p,e.onSelectionChange),h=(0,l.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[y,m]=(0,l.useState)(i);"replace"===i&&"toggle"===y&&"object"==typeof v&&0===v.size&&m("replace");let b=(0,l.useRef)(i);return(0,l.useEffect)((()=>{i!==b.current&&(m(i),b.current=i)}),[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:m,get isFocused(){return s.current},setFocused(e){s.current=e,a(e)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){u.current=e,c.current=t,d(e)},selectedKeys:v,setSelectedKeys(e){!r&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,v)||g(e)},disabledKeys:h,disabledBehavior:o}}function it(e,t){return e?"all"===e?"all":new tt(e):t}class ot{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&T(this.collection,n,e)<0)&&(e=n)}var t;return null!==(t=null==e?void 0:e.key)&&void 0!==t?t:null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&T(this.collection,n,e)>0)&&(e=n)}var t;return null!==(t=null==e?void 0:e.key)&&void 0!==t?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t,n=this.getKey(e);if(null!=n){if("all"===this.state.selectedKeys)t=new tt([n],n,n);else{let e=this.state.selectedKeys;var r;let o=null!==(r=e.anchorKey)&&void 0!==r?r:n;var i;t=new tt(e,o,n);for(let r of this.getKeyRange(o,null!==(i=e.currentKey)&&void 0!==i?i:n))t.delete(r);for(let e of this.getKeyRange(n,o))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?T(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;null!=i;){let e=this.collection.getItem(i);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);let t=this.getKey(e);if(null==t)return;let n=new tt("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),this.disallowEmptySelection&&0===n.size||this.state.setSelectedKeys(n)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let n=this.canSelectItem(t)?new tt([t],t,t):new tt;this.state.setSelectedKeys(n)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new tt;for(let n of e){let e=this.getKey(n);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){var r;let o=this.collection.getItem(n);var i;"item"===(null==o?void 0:o.type)&&e.push(n),(null==o?void 0:o.hasChildNodes)&&(this.allowsCellSelection||"item"!==o.type)&&t(null!==(i=null===(r=E(w(o,this.collection)))||void 0===r?void 0:r.key)&&void 0!==i?i:null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new tt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}class lt{build(e,t){return this.context=t,st((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if(l.isValidElement(t)&&t.type===l.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];l.Children.forEach(t,(t=>{t&&e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let i=t.value;if(null!=i){var o;let e=null!==(o=i.key)&&void 0!==o?o:i.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(l.isValidElement(e.element)&&e.element.type===l.Fragment){let o=[];var i;l.Children.forEach(e.element.props.children,(e=>{o.push(e)}));let s=null!==(i=e.index)&&void 0!==i?i:0;for(const e of o)yield*this.getFullNode({element:e,index:s++},t,n,r);return}let o=e.element;if(!o&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=r?r.key:null,void(yield n);o=t.renderer(e.value)}if(l.isValidElement(o)){let i=o.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e=o.type;throw new Error(`Unknown element <${e}> in collection.`)}let l=i.getCollectionNode(o.props,this.context);var s;let f=null!==(s=e.index)&&void 0!==s?s:0,p=l.next();for(;!p.done&&p.value;){let i=p.value;var a;e.index=f;let s=null!==(a=i.key)&&void 0!==a?a:null;null==s&&(s=i.element?null:this.getKey(o,e,t,n));let v=[...this.getFullNode({...i,key:s,index:f,wrapper:at(e.wrapper,i.wrapper)},this.getChildState(t,i),n?`${n}${o.key}`:o.key,r)];for(let t of v){var u,c,d;if(t.value=null!==(c=null!==(u=i.value)&&void 0!==u?u:e.value)&&void 0!==c?c:null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${ut(t.type)}> in <${ut(null!==(d=null==r?void 0:r.type)&&void 0!==d?d:"unknown parent type")}>. Only <${ut(e.type)}> is supported.`);f++,yield t}p=l.next(v)}return}if(null==e.key||null==e.type)return;let f=this;var p,v;let g={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:null!==(p=e.value)&&void 0!==p?p:null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:null!==(v=e.textValue)&&void 0!==v?v:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:st((function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${g.key}${r.key}`);let e=f.getFullNode({...r,index:n},f.getChildState(t,r),g.key,g);for(let t of e)n++,yield t}}))};yield g}constructor(){this.cache=new WeakMap}}function st(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function at(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function ut(e){return e[0].toUpperCase()+e.slice(1)}function ct(e,t,n){let r=(0,l.useMemo)((()=>new lt),[]),{children:i,items:o,collection:s}=e;return(0,l.useMemo)((()=>{if(s)return s;let e=r.build({children:i,items:o},n);return t(e)}),[r,i,o,s,n,t])}function dt(e){let{filter:t,layoutDelegate:n}=e,r=rt(e),i=(0,l.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),o=(0,l.useCallback)((e=>new et(t?t(e):e)),[t]),s=(0,l.useMemo)((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),a=ct(e,o,s),u=(0,l.useMemo)((()=>new ot(a,r,{layoutDelegate:n})),[a,r,n]);const c=(0,l.useRef)(null);return(0,l.useEffect)((()=>{if(null!=r.focusedKey&&!a.getItem(r.focusedKey)&&c.current){const d=c.current.getItem(r.focusedKey),f=[...c.current.getKeys()].map((e=>{const t=c.current.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e)),p=[...a.getKeys()].map((e=>{const t=a.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e));var e,t;const v=(null!==(e=null==f?void 0:f.length)&&void 0!==e?e:0)-(null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0);var n,i,o;let g=Math.min(v>1?Math.max((null!==(n=null==d?void 0:d.index)&&void 0!==n?n:0)-v+1,0):null!==(i=null==d?void 0:d.index)&&void 0!==i?i:0,(null!==(o=null==p?void 0:p.length)&&void 0!==o?o:0)-1),h=null,y=!1;for(;g>=0;){if(!u.isDisabled(p[g].key)){h=p[g];break}var l,s;if(g(null!==(l=null==d?void 0:d.index)&&void 0!==l?l:0)&&(g=null!==(s=null==d?void 0:d.index)&&void 0!==s?s:0),g--}r.setFocusedKey(h?h.key:null)}c.current=a}),[a,u,r,r.focusedKey]),{collection:a,disabledKeys:i,selectionManager:u}}function ft(e){var t;let[n,r]=nt(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),i=(0,l.useMemo)((()=>null!=n?[n]:[]),[n]),{collection:o,disabledKeys:s,selectionManager:a}=dt({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:t=>{if("all"===t)return;var i;let o=null!==(i=t.values().next().value)&&void 0!==i?i:null;o===n&&e.onSelectionChange&&e.onSelectionChange(o),r(o)}}),u=null!=n?o.getItem(n):null;return{collection:o,disabledKeys:s,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:u}}var pt=n(44896),vt=n(23444),gt=n(97987),ht=n(51462),yt=n(73620),mt=n(32485),bt=n.n(mt);const wt="andes-list__item",Et="medium";var Tt=n(81023);const Kt=()=>null;Kt.displayName="ListOption",Kt.getCollectionNode=vt.A;var St=Kt;const xt=["ListItem","DropdownItem"],Lt=["ListGroup","DropdownGroup"];var kt=function(e){var t,n,r,i;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return!!e&&((0,gt.A)(o,(null===(t=e.type)||void 0===t?void 0:t.displayName)||(null===(n=e.type)||void 0===n?void 0:n.name))||(0,gt.A)(o,(null===(r=e.type)||void 0===r||null===(r=r.wraps)||void 0===r?void 0:r.displayName)||(null===(i=e.type)||void 0===i?void 0:i.name)))};var Pt=e=>kt(e,Lt);var Ot=e=>kt(e,xt);var At=e=>l.Children.map(e,(e=>{if(Ot(e))return l.createElement(St,e.props);if(Pt(e)){const t=l.Children.map(e.props.children,(e=>Ot(e)?l.createElement(St,e.props):e));return l.createElement(pt.yq,e.props,t)}return e}));const Ct=["item","state"],Mt=["onClick","onKeyDown"],Dt=["onSelect"];var Ft=e=>{let{item:t,state:n}=e,s=(0,o.A)(e,Ct);const{key:a,props:u}=t,c=(0,l.useRef)(null),{optionProps:d,isSelected:f}=Te({key:a},n,c),p=(0,i.A)((0,i.A)({},u),{},{key:a,selected:f}),v=(e=>{var t;const{className:n,size:r=Et,selected:i,paddingSize:o,disabled:s,leftContent:a,description:u}=e,c=(0,l.isValidElement)(a)&&"Thumbnail"===(null==a||null===(t=a.type)||void 0===t?void 0:t.displayName),d=(null==a?void 0:a.src)&&"string"==typeof a.src;return bt()(wt,n,"".concat(wt,"--size-").concat(r),{["".concat(wt,"--selected-padding-0")]:i&&"0"===o,["".concat(wt,"--padding-").concat(o)]:o,["".concat(wt,"--disabled")]:s,["".concat(wt,"--selected")]:i,["".concat(wt,"-with-image")]:d||c,["".concat(wt,"-with-secondary")]:u&&"small"!==r})})((0,b.v)(p,d,s)),g=bt()(v,{"andes-list__item-with-selection-component":!!s.selectionComponent}),{onClick:h,onKeyDown:y}=d,m=(0,o.A)(d,Mt),{onSelect:w}=s,E=(0,o.A)(s,Dt),T=e=>{const{disabled:t,value:n,onSelect:r}=p,{onClick:i}=s;t||("function"==typeof i&&i(e,n),"function"==typeof h&&h(e),"function"==typeof r&&r(e,{value:n}),"function"==typeof w&&w(e,{value:n}))},K=(0,i.A)({},(0,b.v)(p,E)),{title:S,description:x,rightContent:L,primary:k,secondary:P,tertiary:O}=K,A=S||k,C=x||P,M=L||O,D=(0,ht.f)()?{onKeyDown:y}:{onClick:T,onKeyDown:e=>{"function"==typeof y&&y(e),e.code!==Tt.Fm&&e.code!==Tt.t6||T(e)}};return l.createElement("li",(0,r.A)({className:g,ref:c},m,D),(()=>{const{selectionComponent:e}=s;return(0,l.isValidElement)(e)?(0,yt.A)("div",{className:"andes-list__item-selection-control"},void 0,(0,l.cloneElement)(e,{checked:p.selected,disabled:p.disabled})):null})(),l.createElement(pt.be,(0,r.A)({},K,{title:A,description:C,rightContent:M})))};const It=["group","state","listId"];var Nt=e=>{let{group:t,state:n,listId:i}=e,s=(0,o.A)(e,It);const{rendered:a,"aria-label":c,props:d,index:f}=t,{itemProps:p,headingProps:v,groupProps:g}=function(e){let{heading:t,"aria-label":n}=e,r=(0,u.Bi)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:a,"aria-label":c});return v.id="".concat(i,"__group-heading-").concat(f),g["aria-labelledby"]=v.id,l.createElement(pt.yq,(0,r.A)({label:"",itemProps:p,headingProps:v,groupProps:g},d),[...t.childNodes].map((e=>l.createElement(Ft,(0,r.A)({key:e.key,item:e,state:n},s)))))};const Rt=(e,t)=>{let n;return e.forEach((e=>{var r,i;if(!kt(e,["ListOption","FloatingMenuItem"])||(null==e||null===(r=e.props)||void 0===r?void 0:r.value)!==t&&(null==e?void 0:e.key)!==t){if(kt(e,["ListGroup"])&&null!=e&&null!==(i=e.props)&&void 0!==i&&i.children){const r=Rt(e.props.children,t);r&&(n=r)}}else n=e})),n||null},Bt=["children","id","selectionComponent","selectionMode","isRadioList","defaultSelectedKeys","selectedKeys","onClick","onSelect","shouldUseVirtualFocus","srLabel"];var Ht=function(){const e=(0,l.forwardRef)(((e,t)=>{const{children:n,id:a,selectionComponent:c,selectionMode:d="single",isRadioList:p=!1,defaultSelectedKeys:v,selectedKeys:g,onClick:h,onSelect:y,shouldUseVirtualFocus:m,srLabel:w}=e,E=(0,o.A)(e,Bt),T=(0,l.useRef)(null),K=(0,l.useRef)({}),S=(0,l.useRef)([]),x=()=>{const{event:e,values:t,itemDetails:n}=K.current;e&&t&&n&&("function"==typeof y&&y(e,t,n),K.current={})},L=(e,t)=>{K.current.event=e,K.current.itemDetails=t,x()},{disabledKeys:k,listItemsIds:P}=(0,l.useMemo)((()=>(()=>{const e=[],t=[];return l.Children.forEach(n,(n=>{var r,i;Pt(n)&&l.Children.forEach(n.props.children,(n=>{var r,i;t.push("".concat(a,"-option-").concat(n.props.value)),(null!==(r=n.props)&&void 0!==r&&r.disabled||null!==(i=n.props)&&void 0!==i&&i.disableSelectionComponent)&&e.push(n.props.value)})),Ot(n)&&(null!==(r=n.props)&&void 0!==r&&r.disabled||null!==(i=n.props)&&void 0!==i&&i.disableSelectionComponent)&&e.push(n.props.value)})),{disabledKeys:e,listItemsIds:t.join(" ")}})()),[n]),O=At(n),A=e=>{var n,r,i,o;const l=S.current,s=[...e],a=s.filter((e=>!l.includes(e))),u=l.filter((e=>!s.includes(e))),c=a.length>0?a[0]:u[0],d=null===(n=t||T)||void 0===n||null===(n=n.current)||void 0===n||null===(r=n.querySelector)||void 0===r?void 0:r.call(n,'li[data-key="'.concat(c,'"]'));if(!d)return;const f=Rt(O,c),p=null==f||null===(i=f.props)||void 0===i?void 0:i.value,v=(e=>{const t=e?Object.assign(e,{value:void 0}):{},n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});return Object.defineProperty(n,"target",{get:()=>t}),n})(d);"function"==typeof h&&h(v,p),"function"==typeof y&&y(v,s,{value:p}),"function"==typeof(null==f||null===(o=f.props)||void 0===o?void 0:o.onSelect)&&f.props.onSelect(v,{value:p}),S.current=s},C=(p?ft:dt)((0,i.A)((0,i.A)({disabledKeys:k,selectionMode:d},e),{},{onSelectionChange:e=>{(0,ht.f)()?A(e):(K.current.values=Array.from(e||[]),x())},children:O})),{listBoxProps:M}=function(e,t,n){let r=(0,f.$)(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||("replace"===i?"action":"override");"toggle"===i&&"action"===o&&(o="override");let{listProps:l}=Qe({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:a}=(0,Ke.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=(0,u.Bi)(e.id);s.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:p}=xe({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:(0,b.v)(r,a,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,b.v)(p,l)})}}((0,i.A)((0,i.A)({"aria-label":w,disallowEmptySelection:!0,disabledKeys:k,selectionMode:d},e),{},{shouldUseVirtualFocus:m}),C,t||T);return l.createElement(pt.B8,(0,r.A)({"aria-owns":P.length?P:void 0,srLabel:w},(0,b.v)(E,M),{ref:t||T,"aria-label":void 0}),[...C.collection].map((e=>{const t=(0,i.A)({key:e.key,state:C,selectionComponent:c},(0,ht.f)()?{}:{onClick:h,onSelect:(t,n)=>{L(t,n),"function"==typeof e.onSelect&&e.onSelect(t,n)}});return"item"===e.type?l.createElement(Ft,(0,r.A)({item:e},t)):l.createElement(Nt,(0,r.A)({group:e},t,{listId:a}))})))}));return e.displayName="ListBox",e}()},11786:(e,t,n)=>{n.d(t,{J:()=>i});var r=n(24836);function i(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,r.m)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:i}=e.style,o="none"!==n&&"hidden"!==i&&"collapse"!==i;if(o){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);o="none"!==n&&"hidden"!==r&&"collapse"!==r}return o}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||i(e.parentElement,e))}},23444:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(96540),i=n(88460);const o=e=>{let{primary:t,children:n}=e;return t&&r.Children.count(n)>0},l=function*(e){const{children:t,primary:n,title:l,"aria-label":s}=e,a=l||n||t,u=("string"==typeof a?a:"")||s||"";(0,i.A)(u," needs some plain text contents for accessibility reasons. Please add a `title` or `aria-label` prop."),yield{type:"item",key:e.value,props:e,rendered:a,textValue:u,"aria-label":s||l||n,hasChildNodes:o,*childNodes(){if(n||l){const e=[];r.Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}}},24836:(e,t,n)=>{n.d(t,{T:()=>r,m:()=>i});const r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},i=e=>{if(e&&"window"in e&&e.window===e)return e;return r(e).defaultView||window}},28948:(e,t,n)=>{n.d(t,{P:()=>o,Y:()=>i});var r=n(69202);function i(e){return!(0!==e.mozInputSource||!e.isTrusted)||((0,r.m0)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function o(e){return!(0,r.m0)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},32217:(e,t,n)=>{n.d(t,{v:()=>l});var r=n(72166),i=n(43051),o=n(34164);function l(...e){let t={...e[0]};for(let n=1;n=65&&e.charCodeAt(2)<=90?t[e]=(0,r.c)(n,s):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof s?"id"===e&&n&&s?t.id=(0,i.Tw)(n,s):t[e]=void 0!==s?s:n:t[e]=(0,o.A)(n,s)}}return t}},32268:(e,t,n)=>{function r(e){if(function(){if(null==i){i=!1;try{document.createElement("div").focus({get preventScroll(){return i=!0,!0}})}catch{}}return i}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeightr});let i=null},33734:(e,t,n)=>{n.d(t,{N:()=>Et});var r=n(58168),i=n(73620),o=n(80045),l=n(96540),s=n(32485),a=n.n(s),u=n(40961),c=n(61678),d="top",f="bottom",p="right",v="left",g="auto",h=[d,f,p,v],y="start",m="end",b="viewport",w="popper",E=h.reduce((function(e,t){return e.concat([t+"-"+y,t+"-"+m])}),[]),T=[].concat(h,[g]).reduce((function(e,t){return e.concat([t,t+"-"+y,t+"-"+m])}),[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function S(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function L(e){return e instanceof x(e).Element||e instanceof Element}function k(e){return e instanceof x(e).HTMLElement||e instanceof HTMLElement}function P(e){return"undefined"!=typeof ShadowRoot&&(e instanceof x(e).ShadowRoot||e instanceof ShadowRoot)}var O={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];k(i)&&S(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});k(r)&&S(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function A(e){return e.split("-")[0]}var C=Math.max,M=Math.min,D=Math.round;function F(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function I(){return!/^((?!chrome|android).)*safari/i.test(F())}function N(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&k(e)&&(i=e.offsetWidth>0&&D(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&D(r.height)/e.offsetHeight||1);var l=(L(e)?x(e):window).visualViewport,s=!I()&&n,a=(r.left+(s&&l?l.offsetLeft:0))/i,u=(r.top+(s&&l?l.offsetTop:0))/o,c=r.width/i,d=r.height/o;return{width:c,height:d,top:u,right:a+c,bottom:u+d,left:a,x:a,y:u}}function R(e){var t=N(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function B(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&P(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function H(e){return x(e).getComputedStyle(e)}function V(e){return["table","td","th"].indexOf(S(e))>=0}function j(e){return((L(e)?e.ownerDocument:e.document)||window.document).documentElement}function _(e){return"html"===S(e)?e:e.assignedSlot||e.parentNode||(P(e)?e.host:null)||j(e)}function W(e){return k(e)&&"fixed"!==H(e).position?e.offsetParent:null}function U(e){for(var t=x(e),n=W(e);n&&V(n)&&"static"===H(n).position;)n=W(n);return n&&("html"===S(n)||"body"===S(n)&&"static"===H(n).position)?t:n||function(e){var t=/firefox/i.test(F());if(/Trident/i.test(F())&&k(e)&&"fixed"===H(e).position)return null;var n=_(e);for(P(n)&&(n=n.host);k(n)&&["html","body"].indexOf(S(n))<0;){var r=H(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $(e,t,n){return C(e,M(t,n))}function q(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function X(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Y={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,l=n.modifiersData.popperOffsets,s=A(n.placement),a=z(s),u=[v,p].indexOf(s)>=0?"height":"width";if(o&&l){var c=function(e,t){return q("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:X(e,h))}(i.padding,n),g=R(o),y="y"===a?d:v,m="y"===a?f:p,b=n.rects.reference[u]+n.rects.reference[a]-l[a]-n.rects.popper[u],w=l[a]-n.rects.reference[a],E=U(o),T=E?"y"===a?E.clientHeight||0:E.clientWidth||0:0,K=b/2-w/2,S=c[y],x=T-g[u]-c[m],L=T/2-g[u]/2+K,k=$(S,L,x),P=a;n.modifiersData[r]=((t={})[P]=k,t.centerOffset=k-L,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&B(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function G(e){return e.split("-")[1]}var Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,l=e.offsets,s=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,g=e.isFixed,h=l.x,y=void 0===h?0:h,b=l.y,w=void 0===b?0:b,E="function"==typeof c?c({x:y,y:w}):{x:y,y:w};y=E.x,w=E.y;var T=l.hasOwnProperty("x"),K=l.hasOwnProperty("y"),S=v,L=d,k=window;if(u){var P=U(n),O="clientHeight",A="clientWidth";if(P===x(n)&&"static"!==H(P=j(n)).position&&"absolute"===s&&(O="scrollHeight",A="scrollWidth"),i===d||(i===v||i===p)&&o===m)L=f,w-=(g&&P===k&&k.visualViewport?k.visualViewport.height:P[O])-r.height,w*=a?1:-1;if(i===v||(i===d||i===f)&&o===m)S=p,y-=(g&&P===k&&k.visualViewport?k.visualViewport.width:P[A])-r.width,y*=a?1:-1}var C,M=Object.assign({position:s},u&&Z),F=!0===c?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:D(n*i)/i||0,y:D(r*i)/i||0}}({x:y,y:w},x(n)):{x:y,y:w};return y=F.x,w=F.y,a?Object.assign({},M,((C={})[L]=K?"0":"",C[S]=T?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",C)):Object.assign({},M,((t={})[L]=K?w+"px":"",t[S]=T?y+"px":"",t.transform="",t))}var Q={passive:!0};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ne={start:"end",end:"start"};function re(e){return e.replace(/start|end/g,(function(e){return ne[e]}))}function ie(e){var t=x(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function oe(e){return N(j(e)).left+ie(e).scrollLeft}function le(e){var t=H(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function se(e){return["html","body","#document"].indexOf(S(e))>=0?e.ownerDocument.body:k(e)&&le(e)?e:se(_(e))}function ae(e,t){var n;void 0===t&&(t=[]);var r=se(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=x(r),l=i?[o].concat(o.visualViewport||[],le(r)?r:[]):r,s=t.concat(l);return i?s:s.concat(ae(_(l)))}function ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ce(e,t,n){return t===b?ue(function(e,t){var n=x(e),r=j(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,a=0;if(i){o=i.width,l=i.height;var u=I();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}return{width:o,height:l,x:s+oe(e),y:a}}(e,n)):L(t)?function(e,t){var n=N(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ue(function(e){var t,n=j(e),r=ie(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=C(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=C(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+oe(e),a=-r.scrollTop;return"rtl"===H(i||n).direction&&(s+=C(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:l,x:s,y:a}}(j(e)))}function de(e,t,n,r){var i="clippingParents"===t?function(e){var t=ae(_(e)),n=["absolute","fixed"].indexOf(H(e).position)>=0&&k(e)?U(e):e;return L(n)?t.filter((function(e){return L(e)&&B(e,n)&&"body"!==S(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),l=o[0],s=o.reduce((function(t,n){var i=ce(e,n,r);return t.top=C(i.top,t.top),t.right=M(i.right,t.right),t.bottom=M(i.bottom,t.bottom),t.left=C(i.left,t.left),t}),ce(e,l,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fe(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?A(i):null,l=i?G(i):null,s=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(o){case d:t={x:s,y:n.y-r.height};break;case f:t={x:s,y:n.y+n.height};break;case p:t={x:n.x+n.width,y:a};break;case v:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var u=o?z(o):null;if(null!=u){var c="y"===u?"height":"width";switch(l){case y:t[u]=t[u]-(n[c]/2-r[c]/2);break;case m:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function pe(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,l=void 0===o?e.strategy:o,s=n.boundary,a=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?b:u,v=n.elementContext,g=void 0===v?w:v,y=n.altBoundary,m=void 0!==y&&y,E=n.padding,T=void 0===E?0:E,K=q("number"!=typeof T?T:X(T,h)),S=g===w?"reference":w,x=e.rects.popper,k=e.elements[m?S:g],P=de(L(k)?k:k.contextElement||j(e.elements.popper),a,c,l),O=N(e.elements.reference),A=fe({reference:O,element:x,strategy:"absolute",placement:i}),C=ue(Object.assign({},x,A)),M=g===w?C:O,D={top:P.top-M.top+K.top,bottom:M.bottom-P.bottom+K.bottom,left:P.left-M.left+K.left,right:M.right-P.right+K.right},F=e.modifiersData.offset;if(g===w&&F){var I=F[i];Object.keys(D).forEach((function(e){var t=[p,f].indexOf(e)>=0?1:-1,n=[d,f].indexOf(e)>=0?"y":"x";D[e]+=I[n]*t}))}return D}function ve(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,l=n.padding,s=n.flipVariations,a=n.allowedAutoPlacements,u=void 0===a?T:a,c=G(r),d=c?s?E:E.filter((function(e){return G(e)===c})):h,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=pe(e,{placement:n,boundary:i,rootBoundary:o,padding:l})[A(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,l=n.altAxis,s=void 0===l||l,a=n.fallbackPlacements,u=n.padding,c=n.boundary,h=n.rootBoundary,m=n.altBoundary,b=n.flipVariations,w=void 0===b||b,E=n.allowedAutoPlacements,T=t.options.placement,K=A(T),S=a||(K===T||!w?[te(T)]:function(e){if(A(e)===g)return[];var t=te(e);return[re(e),t,re(t)]}(T)),x=[T].concat(S).reduce((function(e,n){return e.concat(A(n)===g?ve(t,{placement:n,boundary:c,rootBoundary:h,padding:u,flipVariations:w,allowedAutoPlacements:E}):n)}),[]),L=t.rects.reference,k=t.rects.popper,P=new Map,O=!0,C=x[0],M=0;M=0,R=N?"width":"height",B=pe(t,{placement:D,boundary:c,rootBoundary:h,altBoundary:m,padding:u}),H=N?I?p:v:I?f:d;L[R]>k[R]&&(H=te(H));var V=te(H),j=[];if(o&&j.push(B[F]<=0),s&&j.push(B[H]<=0,B[V]<=0),j.every((function(e){return e}))){C=D,O=!1;break}P.set(D,j)}if(O)for(var _=function(e){var t=x.find((function(t){var n=P.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},W=w?3:1;W>0;W--){if("break"===_(W))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function he(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(e){return[d,p,f,v].some((function(t){return e[t]>=0}))}var me={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,l=T.reduce((function(e,n){return e[n]=function(e,t,n){var r=A(e),i=[v,d].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=o[0],s=o[1];return l=l||0,s=(s||0)*i,[v,p].indexOf(r)>=0?{x:s,y:l}:{x:l,y:s}}(n,t.rects,o),e}),{}),s=l[t.placement],a=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}};var be={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,l=n.altAxis,s=void 0!==l&&l,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,g=n.padding,h=n.tether,m=void 0===h||h,b=n.tetherOffset,w=void 0===b?0:b,E=pe(t,{boundary:a,rootBoundary:u,padding:g,altBoundary:c}),T=A(t.placement),K=G(t.placement),S=!K,x=z(T),L="x"===x?"y":"x",k=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,D="function"==typeof w?w(Object.assign({},t.rects,{placement:t.placement})):w,F="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(k){if(o){var B,H="y"===x?d:v,V="y"===x?f:p,j="y"===x?"height":"width",_=k[x],W=_+E[H],q=_-E[V],X=m?-O[j]/2:0,Y=K===y?P[j]:O[j],Z=K===y?-O[j]:-P[j],J=t.elements.arrow,Q=m&&J?R(J):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[H],ne=ee[V],re=$(0,P[j],Q[j]),ie=S?P[j]/2-X-re-te-F.mainAxis:Y-re-te-F.mainAxis,oe=S?-P[j]/2+X+re+ne+F.mainAxis:Z+re+ne+F.mainAxis,le=t.elements.arrow&&U(t.elements.arrow),se=le?"y"===x?le.clientTop||0:le.clientLeft||0:0,ae=null!=(B=null==I?void 0:I[x])?B:0,ue=_+oe-ae,ce=$(m?M(W,_+ie-ae-se):W,_,m?C(q,ue):q);k[x]=ce,N[x]=ce-_}if(s){var de,fe="x"===x?d:v,ve="x"===x?f:p,ge=k[L],he="y"===L?"height":"width",ye=ge+E[fe],me=ge-E[ve],be=-1!==[d,v].indexOf(T),we=null!=(de=null==I?void 0:I[L])?de:0,Ee=be?ye:ge-P[he]-O[he]-we+F.altAxis,Te=be?ge+P[he]+O[he]-we-F.altAxis:me,Ke=m&&be?function(e,t,n){var r=$(e,t,n);return r>n?n:r}(Ee,ge,Te):$(m?Ee:ye,ge,m?Te:me);k[L]=Ke,N[L]=Ke-ge}t.modifiersData[r]=N}},requiresIfExists:["offset"]};function we(e,t,n){void 0===n&&(n=!1);var r,i,o=k(t),l=k(t)&&function(e){var t=e.getBoundingClientRect(),n=D(t.width)/e.offsetWidth||1,r=D(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=j(t),a=N(e,l,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==S(t)||le(s))&&(u=(r=t)!==x(r)&&k(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:ie(r)),k(t)?((c=N(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=oe(s))),{x:a.left+u.scrollLeft-c.x,y:a.top+u.scrollTop-c.y,width:a.width,height:a.height}}function Ee(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var Te={placement:"bottom",modifiers:[],strategy:"absolute"};function Ke(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function Ae(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ce(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Me(e){return[].concat(e)}function De(e,t){-1===e.indexOf(t)&&e.push(t)}function Fe(e){return[].slice.call(e)}function Ie(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ne(e){return["Element","Fragment"].some((function(t){return Oe(e,t)}))}function Re(e){return Ne(e)?[e]:function(e){return Oe(e,"NodeList")}(e)?Fe(e):Array.isArray(e)?e:Fe(document.querySelectorAll(e))}function Be(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function He(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ve(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function je(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var _e={isTouch:!1},We=0;function Ue(){_e.isTouch||(_e.isTouch=!0,window.performance&&document.addEventListener("mousemove",ze))}function ze(){var e=performance.now();e-We<20&&(_e.isTouch=!1,document.removeEventListener("mousemove",ze)),We=e}function $e(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var qe=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Xe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ye=Object.assign({appendTo:ke,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Xe,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ge=Object.keys(Ye);function Ze(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=Ye[i])?r:o);return t}),{});return Object.assign({},e,t)}function Je(e,t){var n=Object.assign({},t,{content:Ae(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ze(Object.assign({},Ye,{plugins:t}))):Ge).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Ye.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Qe(e){var t=e.firstElementChild,n=Fe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}var et=1,tt=[],nt=[];function rt(e,t){var n,r,i,o,l,s,a,u,c=Je(e,Object.assign({},Ye,Ze(Ie(t)))),d=!1,f=!1,p=!1,v=!1,g=[],h=Ce(q,c.interactiveDebounce),y=et++,m=(u=c.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:y,reference:e,popper:document.createElement("div"),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:m,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){0;if(b.state.isDestroyed)return;D("onBeforeUpdate",[b,t]),z();var n=b.props,r=Je(e,Object.assign({},n,Ie(t),{ignoreAttributes:!0}));b.props=r,U(),n.interactiveDebounce!==r.interactiveDebounce&&(N(),h=Ce(q,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Me(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");I(),M(),T&&T(n,r);b.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));D("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=_e.isTouch&&!b.props.touch,i=Pe(b.props.duration,0,Ye.duration);if(e||t||n||r)return;if(P().hasAttribute("disabled"))return;if(D("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(E.style.visibility="visible");M(),V(),b.state.isMounted||(E.style.transition="none");if(k()){var o=A();Be([o.box,o.content],0)}s=function(){var e;if(b.state.isVisible&&!v){if(v=!0,E.offsetHeight,E.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=A(),n=t.box,r=t.content;Be([n,r],i),He([n,r],"visible")}F(),I(),De(nt,b),null==(e=b.popperInstance)||e.forceUpdate(),D("onMount",[b]),b.props.animation&&k()&&function(e,t){_(e,t)}(i,(function(){b.state.isShown=!0,D("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=P();e=b.props.interactive&&t===ke||"parent"===t?n.parentNode:Ae(t,[n]);e.contains(E)||e.appendChild(E);b.state.isMounted=!0,Z(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Pe(b.props.duration,1,Ye.duration);if(e||t||n)return;if(D("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,v=!1,d=!1,k()&&(E.style.visibility="hidden");if(N(),j(),M(!0),k()){var i=A(),o=i.box,l=i.content;b.props.animation&&(Be([o,l],r),He([o,l],"hidden"))}F(),I(),b.props.animation?k()&&function(e,t){_(e,(function(){!b.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;O().addEventListener("mousemove",h),De(tt,h),h(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Q().forEach((function(e){e._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E);nt=nt.filter((function(e){return e!==b})),b.state.isMounted=!1,D("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),z(),delete e._tippy,b.state.isDestroyed=!0,D("onDestroy",[b])}};if(!c.render)return b;var w=c.render(b),E=w.popper,T=w.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+b.id,b.popper=E,e._tippy=b,E._tippy=b;var K=m.map((function(e){return e.fn(b)})),S=e.hasAttribute("aria-expanded");return U(),I(),M(),D("onCreate",[b]),c.showOnCreate&&ee(),E.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",h)})),b;function x(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function L(){return"hold"===x()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function P(){return a||e}function O(){var e,t,n=P().parentNode;return n?null!=(t=Me(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function A(){return Qe(E)}function C(e){return b.state.isMounted&&!b.state.isVisible||_e.isTouch||o&&"focus"===o.type?0:Pe(b.props.delay,e?0:1,Ye.delay)}function M(e){void 0===e&&(e=!1),E.style.pointerEvents=b.props.interactive&&!e?"":"none",E.style.zIndex=""+b.props.zIndex}function D(e,t,n){var r;(void 0===n&&(n=!0),K.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function F(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=E.id;Me(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function I(){!S&&b.props.aria.expanded&&Me(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")}))}function N(){O().removeEventListener("mousemove",h),tt=tt.filter((function(e){return e!==h}))}function R(t){if(!_e.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!je(E,n)){if(Me(b.props.triggerTarget||e).some((function(e){return je(e,n)}))){if(_e.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),f=!0,setTimeout((function(){f=!1})),b.state.isMounted||j())}}}function B(){p=!0}function H(){p=!1}function V(){var e=O();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Le),e.addEventListener("touchstart",H,Le),e.addEventListener("touchmove",B,Le)}function j(){var e=O();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Le),e.removeEventListener("touchstart",H,Le),e.removeEventListener("touchmove",B,Le)}function _(e,t){var n=A().box;function r(e){e.target===n&&(Ve(n,"remove",r),t())}if(0===e)return t();Ve(n,"remove",l),Ve(n,"add",r),l=r}function W(t,n,r){void 0===r&&(r=!1),Me(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})}))}function U(){var e;L()&&(W("touchstart",$,{passive:!0}),W("touchend",X,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(W(e,$),e){case"mouseenter":W("mouseleave",X);break;case"focus":W(qe?"focusout":"blur",Y);break;case"focusin":W("focusout",Y)}}))}function z(){g.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),g=[]}function $(e){var t,n=!1;if(b.state.isEnabled&&!G(e)&&!f){var r="focus"===(null==(t=o)?void 0:t.type);o=e,a=e.currentTarget,I(),!b.state.isVisible&&Oe(e,"MouseEvent")&&tt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function q(e){var t=e.target,n=P().contains(t)||E.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(E).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,l=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var a="bottom"===l?s.top.y:0,u="top"===l?s.bottom.y:0,c="right"===l?s.left.x:0,d="left"===l?s.right.x:0,f=t.top-r+a>o,p=r-t.bottom-u>o,v=t.left-n+c>o,g=n-t.right-d>o;return f||p||v||g}))})(r,e)&&(N(),te(e))}}function X(e){G(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Y(e){b.props.trigger.indexOf("focusin")<0&&e.target!==P()||b.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||te(e)}function G(e){return!!_e.isTouch&&L()!==e.type.indexOf("touch")>=0}function Z(){J();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,l=t.moveTransition,a=k()?Qe(E).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||P()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!l}},c];k()&&a&&d.push({name:"arrow",options:{element:a,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=xe(u,E,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:d}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return Fe(E.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&D("onTrigger",[b,e]),V();var t=C(!0),r=x(),i=r[0],o=r[1];_e.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),D("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=C(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else j()}}function it(e,t){void 0===t&&(t={});var n=Ye.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ue,Le),window.addEventListener("blur",$e);var r=Object.assign({},t,{plugins:n}),i=Re(e).reduce((function(e,t){var n=t&&rt(t,r);return n&&e.push(n),e}),[]);return Ne(e)?i[0]:i}function ot(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}it.defaultProps=Ye,it.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Ye[t]=e[t]}))},it.currentInput=_e,Object.assign({},O,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),it.setDefaultProps({animation:!1});var lt="undefined"!=typeof window&&"undefined"!=typeof document;function st(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function at(){return lt&&document.createElement("div")}function ut(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!ut(e[n],t[n]))return!1}return!0}return!1}function ct(e){var t=[];return e.forEach((function(e){t.find((function(t){return ut(e,t)}))||t.push(e)})),t}var dt=lt?l.useLayoutEffect:l.useEffect;function ft(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var pt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||ft(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&ft(t,"remove",e.props.className)},onAfterUpdate:r}}};function vt(e){return function(t){var n=t.children,r=t.content,i=t.visible,o=t.singleton,s=t.render,a=t.reference,c=t.disabled,d=void 0!==c&&c,f=t.ignoreAttributes,p=void 0===f||f;t.__source,t.__self;var v,g,h=ot(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),y=void 0!==i,m=void 0!==o,b=(0,l.useState)(!1),w=b[0],E=b[1],T=(0,l.useState)({}),K=T[0],S=T[1],x=(0,l.useState)(),L=x[0],k=x[1],P=(v=function(){return{container:at(),renders:1}},(g=(0,l.useRef)()).current||(g.current="function"==typeof v?v():v),g.current),O=Object.assign({ignoreAttributes:p},h,{content:P.container});y&&(O.trigger="manual",O.hideOnClick=!1),m&&(d=!0);var A=O,C=O.plugins||[];s&&(A=Object.assign({},O,{plugins:m?[].concat(C,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;k(n)}}}}]):C,render:function(){return{popper:P.container}}}));var M=[a].concat(n?[n.type]:[]);return dt((function(){var t=a;a&&a.hasOwnProperty("current")&&(t=a.current);var n=e(t||P.ref||at(),Object.assign({},A,{plugins:[pt].concat(O.plugins||[])}));return P.instance=n,d&&n.disable(),i&&n.show(),m&&o.hook({instance:n,content:r,props:A}),E(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),M),dt((function(){var e;if(1!==P.renders){var t,n,l,s,a=P.instance;a.setProps((t=a.props,n=A,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:ct([].concat((null==(l=t.popperOptions)?void 0:l.modifiers)||[],(null==(s=n.popperOptions)?void 0:s.modifiers)||[]))})}))),null==(e=a.popperInstance)||e.forceUpdate(),d?a.disable():a.enable(),y&&(i?a.show():a.hide()),m&&o.hook({instance:a,content:r,props:A})}else P.renders++})),dt((function(){var e;if(s){var t=P.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;K.placement===n.placement&&K.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&K.escaped===(null==r?void 0:r.hasPopperEscaped)||S({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[K.placement,K.referenceHidden,K.escaped].concat(M)),l.createElement(l.Fragment,null,n?(0,l.cloneElement)(n,{ref:function(e){P.ref=e,st(n.ref,e)}}):null,w&&(0,u.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(K),L,P.instance):r,P.container))}}var gt=function(e,t){return(0,l.forwardRef)((function(n,r){var i=n.children,o=ot(n,["children"]);return l.createElement(e,Object.assign({},t,o),i?(0,l.cloneElement)(i,{ref:function(e){st(r,e),st(i.ref,e)}}):null)}))},ht=gt(vt(it),{render:function(){return""}});var yt=e=>{let{onClickOutside:t,onHidden:n,onMount:r,focusScope:i}=e;const[o,s]=(0,l.useState)(void 0),a=(0,l.useRef)(!1),u={passive:!1,capture:!0},c=(0,l.useCallback)((e=>{a.current&&(a.current=!1,e.preventDefault(),"function"==typeof t&&t(null,e))}),[]);return{handleClickOutside:(e,n)=>{if(i){const r=n instanceof MouseEvent;r?n.preventDefault():a.current=!0,s(!0),null!=e&&e.reference&&e.reference.blur(),r&&"function"==typeof t&&t(e,n)}else"function"==typeof t&&t(e,n)},handleHiddenTippy:e=>{"function"==typeof n&&n(e,{preventFocus:o}),i&&document.removeEventListener("touchend",c,u),s(!1)},handleOnMountTippy:e=>{i&&document.addEventListener("touchend",c,u),"function"==typeof r&&r(e)}}};var mt=e=>{switch(e){case"default":case"16":return 16;case"0":return 0;case"24":return 24;case"32":return 32;default:return e}};const bt="bottom",wt=["appendTo","children","className","content","focusScope","id","interactive","interactiveDebounce","onClickOutside","onHidden","onMount","paddingSize","placement","popperOptions","style","trigger","visible","zIndex"];var Et=e=>{let{appendTo:t,children:n,className:s,content:u,focusScope:d=!1,id:f,interactive:p=!1,interactiveDebounce:v=0,onClickOutside:g,onHidden:h,onMount:y,paddingSize:m=0,placement:b=bt,popperOptions:w,style:E,trigger:T="click focus",visible:K,zIndex:S=9999}=e,x=(0,o.A)(e,wt);const L=a()("andes-popper",s),k=mt(m),{handleClickOutside:P,handleHiddenTippy:O,handleOnMountTippy:A}=yt({onClickOutside:g,onHidden:h,onMount:y,focusScope:d});return l.createElement(ht,(0,r.A)({render:(e,t,n)=>(0,i.A)(c.Zp,{id:f,paddingSize:k,style:E,className:L,"data-testid":"popper"},void 0,(0,i.A)(c.Wu,{},void 0,(0,l.isValidElement)(u)?l.cloneElement(u,{instance:n}):u)),appendTo:t,placement:b,trigger:void 0===K?T:void 0,visible:K,interactive:p,interactiveDebounce:v,popperOptions:w,onClickOutside:P,zIndex:S,onHidden:O,onMount:A},x),n)}},34164:(e,t,n)=>{function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;ti});const i=function(){for(var e,t,n=0,i="",o=arguments.length;n{n.d(t,{A:()=>i});var r=n(67627);n(96540);const i=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:n,srLabel:i}=e;return(0,r._)("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"12",height:"12",viewBox:"0 0 12 12",fill:t},void 0,i&&(0,r._)("title",{},void 0,i),(0,r._)("path",{d:"M9.35229 3.70447L6.00004 7.05672L2.64779 3.70447L1.85229 4.49996L6.00004 8.64771L10.1478 4.49996L9.35229 3.70447Z",fill:t}))}},39830:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(67627);n(96540);const i=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:n,srLabel:i}=e;return(0,r._)("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"12",height:"12",viewBox:"0 0 12 12",fill:t},void 0,i&&(0,r._)("title",{},void 0,i),(0,r._)("path",{d:"M6.72725 2.90906H5.27271L5.45452 6.90906H6.54543L6.72725 2.90906Z",fill:t}),(0,r._)("path",{d:"M5.99998 7.63633C6.40164 7.63633 6.72725 7.96194 6.72725 8.3636C6.72725 8.76527 6.40164 9.09088 5.99998 9.09088C5.59832 9.09088 5.27271 8.76527 5.27271 8.3636C5.27271 7.96194 5.59832 7.63633 5.99998 7.63633Z",fill:t}))}},42206:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(67627);n(96540);const i=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:n,srLabel:i}=e;return(0,r._)("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"16",height:"16",viewBox:"0 0 16 16",fill:t},void 0,i&&(0,r._)("title",{},void 0,i),(0,r._)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99742 10.8458C8.96319 11.6919 7.64125 12.1996 6.20073 12.1996C2.88713 12.1996 0.200928 9.51341 0.200928 6.19981C0.200928 2.88621 2.88713 0.200012 6.20073 0.200012C9.51432 0.200012 12.2005 2.88621 12.2005 6.19981C12.2005 7.6407 11.6926 8.96297 10.846 9.99731L14.8475 13.9987L13.9989 14.8473L9.99742 10.8458ZM1.40093 6.19981C1.40093 8.85067 3.54987 10.9996 6.20073 10.9996C8.85158 10.9996 11.0005 8.85067 11.0005 6.19981C11.0005 3.54896 8.85158 1.40001 6.20073 1.40001C3.54987 1.40001 1.40093 3.54896 1.40093 6.19981Z",fill:t}))}},46956:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(67627);n(96540);const i=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:n,srLabel:i}=e;return(0,r._)("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"20",height:"20",viewBox:"0 0 20 20",fill:t},void 0,i&&(0,r._)("title",{},void 0,i),(0,r._)("path",{d:"M8.27686 4.34644L7.42834 5.19496L12.224 9.99059L7.42334 14.7912L8.27187 15.6397L13.921 9.99059L8.27686 4.34644Z",fill:t}))}},47233:(e,t,n)=>{n.d(t,{v:()=>l});let r=new Map,i=new Set;function o(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let o=r.get(n.target);if(o&&(o.delete(n.propertyName),0===o.size&&(n.target.removeEventListener("transitioncancel",t),r.delete(n.target)),0===r.size)){for(let e of i)e();i.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let i=r.get(n.target);i||(i=new Set,r.set(n.target,i),n.target.addEventListener("transitioncancel",t,{once:!0})),i.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function l(e){requestAnimationFrame((()=>{0===r.size?e():i.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o))},47912:(e,t,n)=>{function r(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}n.d(t,{o:()=>r})},58374:(e,t,n)=>{n.d(t,{l:()=>s});var r=n(24836),i=n(47233),o=n(32268),l=n(95562);function s(e){const t=(0,r.T)(e);if("virtual"===(0,l.ME)()){let n=t.activeElement;(0,i.v)((()=>{t.activeElement===n&&e.isConnected&&(0,o.e)(e)}))}else(0,o.e)(e)}},59461:(e,t,n)=>{n.d(t,{R:()=>o});var r=n(62894),i=n(96540);function o(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:l}=e,s=(0,i.useRef)({isFocusWithin:!1}),a=(0,i.useCallback)((e=>{s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(e),l&&l(!1))}),[n,l,s]),u=(0,r.y)(a),c=(0,i.useCallback)((e=>{s.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),l&&l(!0),s.current.isFocusWithin=!0,u(e))}),[o,l,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}},62894:(e,t,n)=>{n.d(t,{y:()=>s});var r=n(96540),i=n(49953),o=n(7049);class l{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function s(e){let t=(0,r.useRef)({isFocused:!1,observer:null});(0,i.N)((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=(0,o.J)((t=>{null==e||e(t)}));return(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{t.current.isFocused=!1,r.disabled&&n(new l("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}},66202:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(67627);n(96540);const i=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:n,srLabel:i}=e;return(0,r._)("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"16",height:"16",viewBox:"0 0 16 16",fill:t},void 0,i&&(0,r._)("title",{},void 0,i),(0,r._)("path",{d:"M6.78786 9.39574L11.3645 4.81909L12.393 5.84761L6.78786 11.4528L3.60693 8.27185L4.63545 7.24333L6.78786 9.39574Z",fill:t}))}},67627:(e,t,n)=>{var r;function i(e,t,n,i){r||(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,l=arguments.length-3;if(t||0===l||(t={children:void 0}),1===l)t.children=i;else if(l>1){for(var s=Array(l),a=0;ai})},68273:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(95323).A},69202:(e,t,n)=>{function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function o(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{H8:()=>f,Tc:()=>d,bh:()=>a,cX:()=>l,gm:()=>v,lg:()=>c,m0:()=>p,un:()=>u});const l=o((function(){return i(/^Mac/i)})),s=o((function(){return i(/^iPhone/i)})),a=o((function(){return i(/^iPad/i)||l()&&navigator.maxTouchPoints>1})),u=o((function(){return s()||a()})),c=o((function(){return l()||u()})),d=o((function(){return r(/AppleWebKit/i)&&!f()})),f=o((function(){return r(/Chrome/i)})),p=o((function(){return r(/Android/i)})),v=o((function(){return r(/Firefox/i)}))},72166:(e,t,n)=>{function r(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}n.d(t,{c:()=>r})},81023:(e,t,n)=>{n.d(t,{Fm:()=>o,Jd:()=>i,_f:()=>l,il:()=>r,t6:()=>s,wn:()=>a});const r="ArrowUp",i="ArrowDown",o="Enter",l="Escape",s="Space",a="Tab"},82071:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(67627);n(96540);const i=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:n,srLabel:i}=e;return(0,r._)("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"20",height:"20",viewBox:"0 0 20 20",fill:t},void 0,i&&(0,r._)("title",{},void 0,i),(0,r._)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2238 13.3752C15.341 12.0645 16.0153 10.3649 16.0153 8.50766C16.0153 4.36129 12.654 1 8.50766 1C4.36129 1 1 4.36129 1 8.50766C1 12.654 4.36129 16.0153 8.50766 16.0153C10.3649 16.0153 12.0645 15.341 13.3752 14.2238L17.9528 18.8013L18.8013 17.9528L14.2238 13.3752ZM8.50766 14.8153C5.02403 14.8153 2.2 11.9913 2.2 8.50766C2.2 5.02403 5.02403 2.2 8.50766 2.2C11.9913 2.2 14.8153 5.02403 14.8153 8.50766C14.8153 11.9913 11.9913 14.8153 8.50766 14.8153Z",fill:t}))}},83611:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(67627);n(96540);const i=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:n,srLabel:i}=e;return(0,r._)("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"20",height:"20",viewBox:"0 0 20 20",fill:t},void 0,i&&(0,r._)("title",{},void 0,i),(0,r._)("path",{d:"M4.35156 5.19496L9.15406 9.99746L4.35156 14.8L5.20009 15.6485L10.0026 10.846L14.7963 15.6397L15.6449 14.7912L10.8511 9.99746L15.6449 5.20371L14.7963 4.35518L10.0026 9.14894L5.20009 4.34644L4.35156 5.19496Z",fill:t}))}},95382:(e,t,n)=>{n.d(t,{o:()=>u});var r=n(95562),i=n(62894),o=n(96540),l=n(24836);function s(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:s}=e;const a=(0,o.useCallback)((e=>{if(e.target===e.currentTarget)return r&&r(e),s&&s(!1),!0}),[r,s]),u=(0,i.y)(a),c=(0,o.useCallback)((e=>{const t=(0,l.T)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),s&&s(!0),u(e))}),[s,n,u]);return{focusProps:{onFocus:!t&&(n||s||r)?c:void 0,onBlur:t||!r&&!s?void 0:a}}}var a=n(59461);function u(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,l=(0,o.useRef)({isFocused:!1,isFocusVisible:t||(0,r.pP)()}),[u,c]=(0,o.useState)(!1),[d,f]=(0,o.useState)((()=>l.current.isFocused&&l.current.isFocusVisible)),p=(0,o.useCallback)((()=>f(l.current.isFocused&&l.current.isFocusVisible)),[]),v=(0,o.useCallback)((e=>{l.current.isFocused=e,c(e),p()}),[p]);(0,r.K7)((e=>{l.current.isFocusVisible=e,p()}),[],{isTextInput:n});let{focusProps:g}=s({isDisabled:i,onFocusChange:v}),{focusWithinProps:h}=(0,a.R)({isDisabled:!i,onFocusWithinChange:v});return{isFocused:u,isFocusVisible:d,focusProps:i?h:g}}},95562:(e,t,n)=>{n.d(t,{K7:()=>S,ME:()=>T,pP:()=>E});var r=n(69202),i=n(28948),o=n(24836),l=n(96540);let s=null,a=new Set,u=new Map,c=!1,d=!1;const f={Tab:!0,Escape:!0};function p(e,t){for(let n of a)n(e,t)}function v(e){c=!0,function(e){return!(e.metaKey||!(0,r.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(s="keyboard",p("keyboard",e))}function g(e){s="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(c=!0,p("pointer",e))}function h(e){(0,i.Y)(e)&&(c=!0,s="virtual")}function y(e){e.target!==window&&e.target!==document&&(c||d||(s="virtual",p("virtual",e)),c=!1,d=!1)}function m(){c=!1,d=!0}function b(e){if("undefined"==typeof window||u.get((0,o.m)(e)))return;const t=(0,o.m)(e),n=(0,o.T)(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){c=!0,r.apply(this,arguments)},n.addEventListener("keydown",v,!0),n.addEventListener("keyup",v,!0),n.addEventListener("click",h,!0),t.addEventListener("focus",y,!0),t.addEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",g,!0),n.addEventListener("pointermove",g,!0),n.addEventListener("pointerup",g,!0)):(n.addEventListener("mousedown",g,!0),n.addEventListener("mousemove",g,!0),n.addEventListener("mouseup",g,!0)),t.addEventListener("beforeunload",(()=>{w(e)}),{once:!0}),u.set(t,{focus:r})}const w=(e,t)=>{const n=(0,o.m)(e),r=(0,o.T)(e);t&&r.removeEventListener("DOMContentLoaded",t),u.has(n)&&(n.HTMLElement.prototype.focus=u.get(n).focus,r.removeEventListener("keydown",v,!0),r.removeEventListener("keyup",v,!0),r.removeEventListener("click",h,!0),n.removeEventListener("focus",y,!0),n.removeEventListener("blur",m,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",g,!0),r.removeEventListener("pointermove",g,!0),r.removeEventListener("pointerup",g,!0)):(r.removeEventListener("mousedown",g,!0),r.removeEventListener("mousemove",g,!0),r.removeEventListener("mouseup",g,!0)),u.delete(n))};function E(){return"pointer"!==s}function T(){return s}"undefined"!=typeof document&&function(e){const t=(0,o.T)(e);let n;"loading"!==t.readyState?b(e):(n=()=>{b(e)},t.addEventListener("DOMContentLoaded",n))}();const K=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function S(e,t,n){b(),(0,l.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?(0,o.m)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,l="undefined"!=typeof window?(0,o.m)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?(0,o.m)(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?(0,o.m)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!K.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof l||(null==n?void 0:n.target)instanceof s&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof a&&!f[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(E())};return a.add(t),()=>{a.delete(t)}}),t)}},97987:(e,t,n)=>{n.d(t,{A:()=>r});const r=(e,t)=>-1!==e.indexOf(t)},98746:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(67627);n(96540);const i=e=>{let{color:t="rgba(0, 0, 0, 0.9)",i18n:n,srLabel:i}=e;return(0,r._)("svg",{"aria-hidden":i?void 0:!i,"aria-label":i||void 0,role:i?"img":void 0,width:"16",height:"16",viewBox:"0 0 16 16",fill:t},void 0,i&&(0,r._)("title",{},void 0,i),(0,r._)("path",{d:"M12.4485 11.5996L8.87116 8.02227L12.4485 4.39446L11.594 3.5519L8.02261 7.17372L4.40077 3.55188L3.55225 4.40041L7.18003 8.02819L3.65246 11.6055L4.50692 12.4481L8.02858 8.87674L11.6 12.4481L12.4485 11.5996Z",fill:t}))}}}]); //# sourceMappingURL=802.de7abf8c.js.map