PageSourceSearch

https://cdn.mercury.com/builds/5ae8add9e1b1cf7fc8d221a20f4e72a7e19…/js/useModalContextZIndexClass-C-YEo7w8.js

js mercury.com collected 2026-09-24 17:10:46 UTC 73,020 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`5ae8add9e1b1cf7fc8d221a20f4e72a7e1903a7f-app.mercury.com`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`33a00584-27db-4956-93bf-275f64e14cfd`,e._sentryDebugIdIdentifier=`sentry-dbid-33a00584-27db-4956-93bf-275f64e14cfd`)}catch{}})();import{o as e,t}from"./rolldown-runtime-dXcnzKUm.js";import{t as n}from"./react-BzePN1c-.js";import{t as r}from"./react-dom-C08mHCX-.js";import{t as i}from"./jsx-runtime-DNHIfA0O.js";var a=i(),o=e(n(),1),s=(0,o.createContext)(!0);function c(e){return Array.isArray(e)?e:e===void 0?[]:[e]}function l(e){let t=[];for(let n of e)t.push(...n);return t}function u(e){return e.slice().reverse()}function d(...e){}function f(e,t){if(e===t)return!0;if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t),{length:i}=n;if(r.length!==i)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}function p(e,t){return m(e)?e(h(t)?t():t):e}function m(e){return typeof e==`function`}function h(e){return typeof e==`function`}function g(e,t){return typeof Object.hasOwn==`function`?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function _(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function v(e){return e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``)}function y(e,t){let n={...e};for(let e of t)g(n,e)&&delete n[e];return n}function b(e,t){let n={};for(let r of t)g(e,r)&&(n[r]=e[r]);return n}function x(e){return e}function S(e=d){let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)}function C(e,t){if(!e)throw Error(typeof t==`string`?t:`Invariant failed`)}function w(e){return Object.keys(e)}function T(e,...t){let n=typeof e==`function`?e(...t):e;return n!=null&&!n}function E(e){return e.disabled||e[`aria-disabled`]===!0||e[`aria-disabled`]===`true`}function D(e){return e.getAttribute(`aria-disabled`)===`true`||`disabled`in e&&e.disabled===!0}function O(e){let t={};for(let n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function k(...e){for(let t of e)if(t!==void 0)return t}var A=j();function j(){return typeof window<`u`&&!!window.document?.createElement}function M(e){return e?`self`in e?e.document:e.ownerDocument||document:document}function N(e){return e?`self`in e?e.self:M(e).defaultView||window:self}function P(e,t=!1){let{activeElement:n}=M(e);if(!n?.nodeName)return null;if(L(n)&&n.contentDocument?.body)return P(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=M(n).getElementById(e);if(t)return t}}return n}function F(e,t){return e===t||e.contains(t)}function I(e){return e?.nodeType===1}function ee(e){return typeof e?.nodeType==`number`}function L(e){return e.tagName===`IFRAME`}function te(e){let t=e.tagName.toLowerCase();return t===`button`?!0:t===`input`&&e.type?ne.indexOf(e.type)!==-1:!1}var ne=[`button`,`color`,`file`,`image`,`reset`,`submit`];function re(e){if(typeof e.checkVisibility==`function`)return e.checkVisibility();let t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function R(e){try{return e.tagName===`TEXTAREA`||e.tagName===`INPUT`&&e.selectionStart!==null}catch{return!1}}function ie(e){return e.isContentEditable||R(e)}function ae(e){if(R(e))return e.value;if(e.isContentEditable){let t=M(e).createRange();return t.selectNodeContents(e),t.toString()}return``}function oe(e){let t=0,n=0;if(R(e))t=e.selectionStart||0,n=e.selectionEnd||0;else if(e.isContentEditable){let r=M(e).getSelection();if(r?.rangeCount&&r.anchorNode&&F(e,r.anchorNode)&&r.focusNode&&F(e,r.focusNode)){let i=r.getRangeAt(0),a=i.cloneRange();a.selectNodeContents(e),a.setEnd(i.startContainer,i.startOffset),t=a.toString().length,a.setEnd(i.endContainer,i.endOffset),n=a.toString().length}}return{start:t,end:n}}var se=[`dialog`,`menu`,`listbox`,`tree`,`grid`],ce={menu:`menuitem`,listbox:`option`,tree:`treeitem`};function le(e,t){let n=e?.getAttribute(`role`);return n&&se.indexOf(n)!==-1?n:t}function ue(e){if(e!=null&&g(ce,e))return ce[e]}function de(e,t){let n=le(e);return typeof n==`string`?ue(n)??t:t}function fe(e){if(!e)return null;let t=e=>e===`auto`||e===`scroll`;if(e.clientHeight&&e.scrollHeight>e.clientHeight){let{overflowY:n}=getComputedStyle(e);
1if(t(n))return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){let{overflowX:n}=getComputedStyle(e);if(t(n))return e}let n=M(e);return fe(e.parentElement)||n.scrollingElement||n.body}function pe(e,...t){/text|search|password|tel|url/i.test(e.type)&&e.setSelectionRange(...t)}function me(e,t){let n=e.map((e,t)=>[t,e]),r=!1;return n.sort(([e,n],[i,a])=>{let o=t(n),s=t(a);return o===s||!o||!s?0:he(o,s)?(e>i&&(r=!0),-1):(e<i&&(r=!0),1)}),r?n.map(([e,t])=>t):e}function he(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function ge(){return A&&!!navigator.maxTouchPoints}function _e(){return A?/mac|iphone|ipad|ipod/i.test(navigator.platform):!1}function ve(){return A&&_e()&&/apple/i.test(navigator.vendor)}function ye(){return A&&/firefox\//i.test(navigator.userAgent)}function be(){return A&&navigator.platform.startsWith(`Mac`)&&!ge()}function xe(e){let{currentTarget:t,target:n}=e;return t?!ee(n)||!F(t,n):!1}function Se(e){return e.target===e.currentTarget}function Ce(e){if(!I(e))return!1;let t=e,n=t.tagName.toLowerCase();return n===`a`||n===`button`&&t.type===`submit`||n===`input`&&t.type===`submit`}function we(e){let t=_e();return t&&!e.metaKey||!t&&!e.ctrlKey?!1:Ce(e.currentTarget)}function Te(e){return e.altKey?Ce(e.currentTarget):!1}function Ee(e,t,n){let r=new Event(t,n);return e.dispatchEvent(r)}function De(e,t){let n=new FocusEvent(`blur`,t),r=e.dispatchEvent(n),i={...t,bubbles:!0};return e.dispatchEvent(new FocusEvent(`focusout`,i)),r}function Oe(e,t,n){let r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}function ke(e,t){let n=new MouseEvent(`click`,t);return e.dispatchEvent(n)}function Ae(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!ee(r)||!F(n,r)}function je(e){let t=`nativeEvent`in e?e.nativeEvent:e;if(t&&`inputType`in t&&typeof t.inputType==`string`)return t.inputType}function Me(e){return e.type===`input`}function Ne(e,t,n,r){let i=(e=>{if(r){let t=setTimeout(e,r);return()=>clearTimeout(t)}let t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})(()=>{e.removeEventListener(t,a,!0),n()}),a=()=>{i(),n()};return e.addEventListener(t,a,{once:!0,capture:!0}),()=>{i(),e.removeEventListener(t,a,!0)}}function z(e,t,n,r=window){let i=[];try{r.document.addEventListener(e,t,n);for(let a of Array.from(r.frames))i.push(z(e,t,n,a))}catch{}return()=>{try{r.document.removeEventListener(e,t,n)}catch{}for(let e of i)e()}}var Pe=`input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])`;function Fe(e){return Number.parseInt(e.getAttribute(`tabindex`)||`0`,10)<0}function B(e){return!(!e.matches(Pe)||!re(e)||e.closest(`[inert]`))}function Ie(e){if(!B(e)||Fe(e))return!1;if(!(`form`in e)||!e.form||e.checked||e.type!==`radio`)return!0;let t=e.form.elements.namedItem(e.name);if(!t||!(`length`in t))return!0;let n=P(e);return!n||n===e||!(`form`in n)||n.form!==e.form||n.name!==e.name}function Le(e,t){let n=Array.from(e.querySelectorAll(Pe));t&&n.unshift(e);let r=n.filter(B);return r.forEach((e,t)=>{if(!L(e))return;let n=e.contentDocument?.body;n&&r.splice(t,1,...Le(n))}),r}function Re(e,t){let[n]=Le(e,t);return n||null}function ze(e,t,n){let r=Array.from(e.querySelectorAll(Pe)).filter(Ie);return t&&Ie(e)&&r.unshift(e),r.forEach((e,t)=>{if(!L(e))return;let i=e.contentDocument?.body;if(!i)return;let a=ze(i,!1,n);r.splice(t,1,...a)}),!r.length&&n?Le(e):r}function Be(e,t,n){if(t&&Ie(e)){if(!L(e))return e;let t=e.contentDocument?.body;if(!t)return e;let r=Be(t,!1,n);if(r)return r}let r=e.querySelectorAll(Pe);for(let e of r)if(Ie(e)){if(L(e)){let t=e.contentDocument?.body;if(!t)return e;let r=Be(t,!1,n);if(r)return r;continue}return e}return n?Re(e):null}function Ve({container:e,includeContainer:t,reverse:n,fallbackToEdge:r,fallbackToFocusable:i}){let a=P(e),o=Le(e,t);n&&o.reverse();let s=o.indexOf(a),c=o.slice(s+1);return c.find(Ie)||(r?o.find(Ie):null)||(i?c[0]:null)||null}function He(e,t,n,r){return Ve({container:e,includeContainer:t,fallbackToEdge:n,fallbackToFocusable:r})}
1function Ue(e,t){return He(document.body,!1,e,t)}function We(e,t,n,r){return Ve({container:e,includeContainer:t,reverse:!0,fallbackToEdge:n,fallbackToFocusable:r})}function Ge(e,t){return We(document.body,!1,e,t)}function Ke(e){for(;e&&!B(e);)e=e.parentElement?.closest(Pe)??null;return e||null}function qe(e){let t=P(e);if(!t)return!1;if(t===e)return!0;let n=t.getAttribute(`aria-activedescendant`);return n?n===e.id:!1}function Je(e){let t=P(e);if(!t)return!1;if(F(e,t))return!0;let n=t.getAttribute(`aria-activedescendant`);return!n||!(`id`in e)?!1:n===e.id||!!e.querySelector(`#${CSS.escape(n)}`)}function Ye(e){let t=e.getAttribute(`tabindex`)??``;e.setAttribute(`data-tabindex`,t),e.setAttribute(`tabindex`,`-1`)}function Xe(e,t){let n=ze(e,t);for(let e of n)Ye(e)}function Ze(e){let t=e.querySelectorAll(`[data-tabindex]`),n=e=>{let t=e.getAttribute(`data-tabindex`);e.removeAttribute(`data-tabindex`),t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)};e.hasAttribute(`data-tabindex`)&&n(e);for(let e of t)n(e)}function Qe(e,t){`scrollIntoView`in e?(e.focus({preventScroll:!0}),e.scrollIntoView({block:`nearest`,inline:`nearest`,...t})):e.focus()}function $e(e){return async()=>{let t=await e?.();return $e(async()=>(await t?.(),e))}}var et=tt();function tt({limit:e=100}={}){let t=[],n=[],r=null,i=()=>t.length>0,a=()=>n.length>0;return{canUndo:i,canRedo:a,undo:async()=>{i()&&(r=null,n.push(await t.pop()?.()))},redo:async()=>{a()&&(r=null,t.push(await n.pop()?.()))},execute:async(i,a)=>
1{if(!i)return;let o=a===r;r=a??null;let s=o?Math.max(0,t.length-1):t.length,c=await i();if(!c)return;n=[];let l=t[s];for(t[s]=$e(async()=>{await c?.();let e=await l?.();return async()=>{await e?.(),await i?.()}});t.length>e;)t.shift()}}}function nt(e,t){if(typeof e==`function`){let n=e(t);if(typeof n==`function`)return n}else e&&(e.current=t)}function rt(e){return!e||!(0,o.isValidElement)(e)?!1:`ref`in e.props||`ref`in e}function it(e){return rt(e)?{...e.props}.ref||e.ref:null}function at(e,t){let n={...e};for(let r in t){if(!g(t,r))continue;if(r===`className`){let r=`className`,i=e[r],a=t[r];n[r]=i&&a?`${i} ${a}`:a||i;continue}if(r===`style`){let r=`style`;n[r]=e[r]?{...e[r],...t[r]}:t[r];continue}let i=t[r];if(r.startsWith(`on`)){if(typeof i!=`function`)continue;let t=e[r];if(typeof t==`function`){n[r]=(...e)=>{i(...e),t(...e)};continue}}n[r]=i}return n}var ot={...o},st=ot.useId;ot.useDeferredValue;var ct=ot.useInsertionEffect,V=A?o.useLayoutEffect:o.useEffect;function lt(e){let[t]=(0,o.useState)(e);return t}function ut(e){let t=(0,o.useRef)(e);return V(()=>{t.current=e}),t}function H(e){let t=(0,o.useRef)(()=>{throw Error(`Cannot call an event handler while rendering.`)});return ct?ct(()=>{t.current=e}):t.current=e,(0,o.useCallback)((...e)=>t.current?.(...e),[])}function dt(e){let[t,n]=(0,o.useState)(null);return V(()=>{if(t==null||!e)return;let n=null;return e(e=>(n=e,t)),()=>{e(n)}},[t,e]),[t,n]}function U(...e){return(0,o.useMemo)(()=>{if(e.some(Boolean))return t=>{let n=[];for(let r of e){if(!r)continue;let e=nt(r,t);n.push({ref:r,cleanup:typeof e==`function`?e:void 0})}if(n.some(e=>e.cleanup))return()=>{for(let{ref:e,cleanup:t}of n)t?t():nt(e,null)}}},e)}function ft(e){if(st){let t=st();return e||t}let[t,n]=(0,o.useState)(e);return V(()=>{if(e||t)return;let r=Math.random().toString(36).slice(2,8);n(`id-${r}`)},[e,t]),e||t}function pt(e,t){let n=e=>{if(typeof e==`string`)return e},[r,i]=(0,o.useState)(()=>n(t));return V(()=>{let r=e&&`current`in e?e.current:e;i(r?.tagName.toLowerCase()||n(t))},[e,t]),r}function mt(e,t,n){let r=lt(n),[i,a]=(0,o.useState)(r);return(0,o.useEffect)(()=>{let n=e&&`current`in e?e.current:e;if(!n)return;let i=()=>{let e=n.getAttribute(t);a(e??r)},o=new MutationObserver(i);return o.observe(n,{attributeFilter:[t]}),i(),()=>o.disconnect()},[e,t,r]),i}function ht(e,t){let n=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(n.current)return e();n.current=!0},t),(0,o.useEffect)(()=>()=>{n.current=!1},[])}function gt(e,t){let n=(0,o.useRef)(!1);V(()=>{if(n.current)return e();n.current=!0},t),V(()=>()=>{n.current=!1},[])}function _t(){return(0,o.useReducer)(()=>[],[])}function vt(e){return H(typeof e==`function`?e:()=>e)}function W(e,t,n=[]){let r=(0,o.useCallback)(n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n)),[...n,e.wrapElement]);return{...e,wrapElement:r}}function yt(e=!1,t){let[n,r]=(0,o.useState)(null);return{portalRef:U(r,t),portalNode:n,domReady:!e||n}}function bt(e,t,n){let r=e.onLoadedMetadataCapture,i=(0,o.useMemo)(()=>Object.assign(()=>{},r,...n===void 0?[]:[{[t]:n}]),[r,t,n]);return[r?.[t],{onLoadedMetadataCapture:i}]}var xt=!1;function St(){return(0,o.useEffect)(()=>{xt||=(z(`mousemove`,Dt,!0),z(`mousedown`,Ot,!0),z(`mouseup`,Ot,!0),z(`keydown`,Ot,!0),z(`scroll`,Ot,!0),!0)},[]),H(()=>Ct)}var Ct=!1,wt=0,Tt=0;function Et(e){let t=e.movementX||e.screenX-wt,n=e.movementY||e.screenY-Tt;return wt=e.screenX,Tt=e.screenY,t||n||!1}function Dt(e){Et(e)&&(Ct=!0)}function Ot(){Ct=!1}function G(e){let t=o.forwardRef((t,n)=>e({...t,ref:n}));return t.displayName=e.displayName||e.name,t}function kt(e,t){return o.memo(e,t)}function K(e,t){let{wrapElement:n,render:r,...i}=t,s=U(t.ref,it(r)),c;if(o.isValidElement(r)){let e={...r.props,ref:s};c=o.cloneElement(r,at(i,e))}else c=r?r(i):(0,a.jsx)(e,{...i});return n?n(c):c}function q(e){let t=(t={})=>e(t);return t.displayName=e.name,t}function At(e=[],t=[]){let n=o.createContext(void 0),r=o.createContext(void 0),i=()=>o.useContext(n),s=(e=!1)=>
1{let t=o.useContext(r),n=i();return e?t:t||n},c=()=>{let e=o.useContext(r),t=i();if(!(e&&e===t))return t},l=t=>e.reduceRight((e,n)=>(0,a.jsx)(n,{...t,children:e}),(0,a.jsx)(n.Provider,{...t}));return{context:n,scopedContext:r,useContext:i,useScopedContext:s,useProviderContext:c,ContextProvider:l,ScopedContextProvider:e=>(0,a.jsx)(l,{...e,children:t.reduceRight((t,n)=>(0,a.jsx)(n,{...e,children:t}),(0,a.jsx)(r.Provider,{...e}))})}}var jt=`div`,Mt=Symbol(`accessibleWhenDisabled`),Nt=ve(),Pt=1,Ft=2,It=3,Lt=[`text`,`search`,`url`,`tel`,`email`,`password`,`number`,`date`,`month`,`week`,`time`,`datetime`,`datetime-local`];function Rt(e){let{tagName:t,readOnly:n,type:r}=e;return t===`TEXTAREA`&&!n||t===`SELECT`&&!n?!0:t===`INPUT`&&!n?Lt.includes(r):!!(e.isContentEditable||e.getAttribute(`role`)===`combobox`&&e.dataset.name)}function zt(e){return!e||e===`button`||e===`summary`||e===`input`||e===`select`||e===`textarea`||e===`a`}function Bt(e){return!e||e===`button`||e===`input`||e===`select`||e===`textarea`}function Vt(e){let t=0;return zt(e)&&(t|=Pt),Bt(e)&&(t|=Ft),t}function Ht(e){if(e.tagName===`BUTTON`){let{type:t}=e;return t===`submit`}if(e.tagName===`INPUT`){let{type:t}=e;return t===`submit`||t===`image`}return!1}function Ut({focusable:e,trulyDisabled:t,nativeTabbable:n,supportsDisabled:r,safariTabIndex:i,tabIndexProp:a}){return e?t?n&&!r?-1:void 0:n?i&&a==null?0:a:a??0:a}function Wt(e,t){return H(n=>{e?.(n),!n.defaultPrevented&&t&&(n.stopPropagation(),n.preventDefault())})}var Gt=!1,Kt=!0;function qt(e){let t=e.target;I(t)&&!t.hasAttribute(`data-focus-visible`)&&(Kt=!1)}function Jt(e){e.metaKey||e.ctrlKey||e.altKey||(Kt=!0)}var Yt=q(function({focusable:e=!0,accessibleWhenDisabled:t,autoFocus:n,onFocusVisible:r,...i}){let a=(0,o.useRef)(null),[c,l]=bt(i,Mt,t);t??=c,(0,o.useEffect)(()=>{e&&(Gt||=(z(`mousedown`,qt,!0),z(`keydown`,Jt,!0),!0))},[e]);let u=e&&E(i),d=u&&!t,[f,p]=(0,o.useState)(!1),m=(0,o.useRef)(!1),h=(0,o.useRef)(null),g=H(e=>{h.current?.(),h.current=null,m.current=!1,e?.removeAttribute(`data-focus-visible`)});(0,o.useEffect)(()=>{e&&!d||(g(a.current),f&&p(!1))},[e,d,f,g]),(0,o.useEffect)(()=>{if(!e||!f)return;let t=a.current;if(!t||typeof IntersectionObserver>`u`)return;let n=new IntersectionObserver(()=>{B(t)||(m.current=!1,p(!1))});return n.observe(t),()=>n.disconnect()},[e,f]),(0,o.useEffect)(()=>()=>h.current?.(),[]);let _=Wt(i.onKeyPressCapture,u),v=Wt(i.onMouseDownCapture,u),y=Wt(i.onClickCapture,u),b=(t,n)=>{if(n&&(t.currentTarget=n),!e)return;let i=t.currentTarget;if(i&&qe(i)&&(r?.(t),!t.defaultPrevented)){if(i.dataset.focusVisible=`true`,m.current=!0,Ht(i)){if(h.current?.(),h.current=null,typeof IntersectionObserver<`u`){let e=new IntersectionObserver(()=>{B(i)||g(i)});e.observe(i),h.current=()=>e.disconnect()}return}p(!0)}},x=i.onKeyDownCapture,S=H(t=>{if(x?.(t),t.defaultPrevented||!e||f||m.current||t.metaKey||t.altKey||t.ctrlKey||!Se(t))return;let n=t.currentTarget;Ne(n,`focusout`,()=>b(t,n))}),C=i.onFocusCapture,w=H(t=>{if(C?.(t),t.defaultPrevented||!e)return;if(!Se(t)){p(!1);return}let n=t.currentTarget;Kt||Rt(t.target)?Ne(t.target,`focusout`,()=>b(t,n)):p(!1)}),T=i.onBlur,D=H(t=>{T?.(t),e&&Ae(t)&&(g(t.currentTarget),p(!1))}),k=(0,o.useContext)(s),A=H(t=>{e&&n&&t&&k&&queueMicrotask(()=>{qe(t)||B(t)&&t.focus()})}),[j,M]=(0,o.useState)(It);V(()=>{let e=a.current;if(!e)return;let t=Vt(e.tagName.toLowerCase());t!==It&&M(t)},[]);let N=e&&!!(j&Pt),P=e&&!!(j&Ft),[F,I]=(0,o.useState)(!1);Nt&&(0,o.useEffect)(()=>{if(!e)return;let t=a.current;if(!t)return;let{type:n}=t,r=t.tagName===`INPUT`&&(n===`checkbox`||n===`radio`);I(te(t)||r)},[e]);let ee=i.style,L=(0,o.useMemo)(()=>d?{pointerEvents:`none`,...ee}:ee,[d,ee]);return i={"data-focus-visible":e&&f||void 0,"data-autofocus":n||void 0,"aria-disabled":u||void 0,...i,...l,ref:U(a,A,i.ref),style:L,tabIndex:Ut({focusable:e,trulyDisabled:d,nativeTabbable:N,supportsDisabled:P,safariTabIndex:F,tabIndexProp:i.tabIndex}),disabled:P&&d?!0:void 0,contentEditable:u?void 0:i.contentEditable,onKeyPressCapture:_,onClickCapture:y,onMouseDownCapture:v,onKeyDownCapture:S,onFocusCapture:w,onBlur:D},O(i)});G(function(e){return K(jt,Yt(e))});function Xt(e,t){let n=e.__unstableInternals;return C(n,`Invalid store`),n[t]}function Zt(e,t){if(!e)return!0;for(let n of e)if(t instanceof Set){if(t.has(n))return!0}else if(Qt(n,t))return!0;return!1}function Qt(e,t){return e===t||e!==e&&t!==t}function $t(e,t,n,r){let i;for(let a of w(t))Qt(t[a],n[a])||r!==void 0&&Zt([a],r)||(i??={...e},i[a]=t[a]);return i}var en=100;function tn(e,t,n){if(t)for(let r of t){let t=e.get(r);t||(t=new Set,e.set(r,t)),t.add(n)}}function nn(e,t,n){if(e&&t)for(let r of t){let t=e.get(r);t&&(t.delete(n),t.size||e.delete(r))}}function rn(e){let t=new Set,n=e.currentListener;if(!n)return t;for(let r of e.keyedListeners)if(t.add(r),r===n)return t;return t.clear(),t.add(n),t}function an(e){e.notifiedListeners??=rn(e)}function on(e,t){if(!e.currentListener)return!1;let n=!1;for(let r of e.keyedListeners){if(r===e.currentListener){n=!0;continue}if(n&&r===t)return!1}let r=!1;for(let n of e.group.listeners){if(n===e.currentListener)return r;n===t&&(r=!0)}return!1}function sn(e,t,n){for(let r of e)if(r.group===t&&!r.recovering&&!(n&&!r.keyedListeners.has(n))){an(r);for(let e of r.group.listeners){if(e===r.currentListener)break;on(r,e)&&r.notifiedListeners?.add(e)}}}function cn(e,t,n){for(let r of e)r.group===t&&(r.recovering||on(r,n)&&(an(r),r.notifiedListeners?.add(n)))}function ln({fastPathFrames:e,group:t,keys:n,listener:r}){let i=t.listeners.has(r);for(let a of e)a.group===t&&(a.recovering||n.includes(a.updatedKey)&&(on(a,r)?(an(a),a.notifiedListeners?.add(r)):i&&(an(a),a.recoverToLive=!0)))}
1function un(e,t,n){for(let r of e)r.group===t&&r.notifiedListeners?.delete(n)}function dn({fastPathFrames:e,group:t,keys:n,listener:r}){for(let i of e)i.group===t&&(i.recovering||n.includes(i.updatedKey)&&i.keyedListeners.add(r))}function fn(e,t){if(!e.disposables.size)return;let n=e.disposables.get(t);n&&(e.disposables.delete(t),n())}function pn(e,t,n){let r=e.disposables.get(t);if(!r){e.disposables.set(t,n);return}e.disposables.set(t,()=>{r(),n()})}function mn(e,t,n,r,i,a){if(e.suspendCounts?.has(t))return;let{disposables:o}=e,s=o.size?o.get(t):void 0;if(s){o.delete(t);let e=n;s(),n=i?.()??n,n!==e&&(r=$t(r,n,e,a)??r)}let c=t(n,r);c&&pn(e,t,c)}function hn({group:e,getState:t,prevState:n,updatedKey:r,notifiedListeners:i}){let a=e.allKeysListeners;for(let o of e.listeners)i?.has(o)||!a?.has(o)&&!Zt(e.listenerKeys.get(o),r)||(i?.add(o),mn(e,o,t(),n,t,r))}function gn(e,...t){let n=e,r=n,i=d,a=!1,o=!1,s=new Set,c=new Set,l=new Set,u={listeners:new Set,disposables:new Map,listenerKeys:new WeakMap},f={listeners:new Set,disposables:new Map,listenerKeys:new WeakMap},m=e=>(l.add(e),()=>l.delete(e)),h=()=>{let e=c.size,r=Symbol();c.add(r);let a=()=>{c.delete(r)&&(c.size||i())};if(e)return a;let o=w(n),s=[];for(let e of t){let n=e?.getState?.();if(!n)continue;let r=o.filter(e=>g(n,e));if(r.length){if(t.length===1||r.length===o.length){for(let t of r)s.push(bn(e,[t],e=>{M(t,e[t],!0)}));continue}s.push(yn(e,r,(e,t)=>{for(let n of r)e[n]!==t[n]&&M(n,e[n],!0)}));for(let t of r){let n=e?.getState?.();n&&M(t,n[t],!0)}}}let u=[];for(let e of l)u.push(e());let d=t.map(vn);return i=_(...s,...u,...d),a},v=(e,t,n)=>{n!==void 0&&(n?nn(e.listenersByKey,n,t):e.allKeysListeners?.delete(t))},x=[],S=(e,t,n=u)=>{let r=e?[...e]:null,i=n.listeners.has(t);return i||un(x,n,t),r?ln({fastPathFrames:x,group:n,keys:r,listener:t}):(i&&sn(x,n),cn(x,n,t)),i&&(sn(x,n,t),v(n,t,n.listenerKeys.get(t))),n.listeners.add(t),r?(n.listenersByKey??=new Map,tn(n.listenersByKey,r,t),dn({fastPathFrames:x,group:n,keys:r,listener:t})):(n.allKeysListeners??=new Set,n.allKeysListeners.add(t)),n.listenerKeys.set(t,r),()=>{let e=n.disposables.get(t);n.disposables.delete(t),sn(x,n,t);let i=n.listenerKeys.get(t);v(n,t,r),i!==r&&v(n,t,i),n.listenerKeys.delete(t),n.listeners.delete(t),e?.()}},C=(e,t)=>S(e,t),T=(e,t,r)=>{let i=e.listeners.has(t);if(i){e.suspendCounts??=new Map;let n=e.suspendCounts.get(t)??0;e.suspendCounts.set(t,n+1)}let a;try{let i=n;fn(e,t),n!==i&&(a=$t(r,n,i));let o=t(n,a??r);o&&pn(e,t,o)}finally{if(i){let n=e.suspendCounts,r=n?.get(t);r&&r>1?n?.set(t,r-1):n?.delete(t),n?.size||delete e.suspendCounts}}},E=(e,t)=>(T(u,t,n),S(e,t)),D=(e,t)=>(!f.listeners.size&&!o&&(r=n),T(f,t,r),S(e,t,f)),O=e=>gn(b(n,e),N),k=e=>gn(y(n,e),N),A=()=>n,j=(e,t,r)=>
1{if(!(r instanceof Set)&&!e.allKeysListeners?.size){let i=e.listenersByKey?.get(r);if(!i)return;let a={group:e,keyedListeners:i,updatedKey:r,currentListener:null};x.push(a);try{for(let o of i){if(a.notifiedListeners?.has(o)||(a.currentListener=o,a.notifiedListeners?.add(o),mn(e,o,n,t,A,r),!e.allKeysListeners?.size&&!a.recoverToLive))continue;let i=a.notifiedListeners??rn(a);a.notifiedListeners=i,a.recovering=!0,hn({group:e,getState:A,prevState:t,updatedKey:r,notifiedListeners:i});return}}finally{x.pop()}return}hn({group:e,getState:A,prevState:t,updatedKey:r})},M=(e,i,c=!1)=>{if(!g(n,e))return;let l=n[e],d=p(i,()=>l);if(Qt(d,l))return;let m=o;o=!0;let h=n,_={...n,[e]:d};n=_;let v=!1;try{if(!c&&t.length){for(let r of t)if(r?.setState?.(e,d),!Qt(n[e],d)){v=!0;break}if(v){let r=0;for(;r<en;r+=1){let r=!1;for(let i of t){let t=n[e];i?.setState?.(e,t),Qt(n[e],t)||(r=!0)}if(!r)break}}}if(!v){let t=n===_?h:{...n,[e]:h[e]};j(u,t,e)}}finally{o=m}if(!f.listeners.size){o||(r=n);return}s.add(e),!a&&(a=!0,queueMicrotask(()=>{a=!1;let e=n,t=s;s=new Set;let i=r;j(f,i,t),r===i&&(r=e)}))},N={getState:A,setState:M,__unstableInternals:{setup:m,init:h,subscribe:C,sync:E,batch:D,pick:O,omit:k}};return N}function _n(e,...t){if(e)return Xt(e,`setup`)(...t)}function vn(e,...t){if(e)return Xt(e,`init`)(...t)}function yn(e,...t){if(e)return Xt(e,`subscribe`)(...t)}function bn(e,...t){if(e)return Xt(e,`sync`)(...t)}function xn(e,...t){if(e)return Xt(e,`batch`)(...t)}function Sn(e,...t){if(e)return Xt(e,`omit`)(...t)}function Cn(e,...t){if(e)return Xt(e,`pick`)(...t)}function wn(...e){let t={};for(let n of e){let e=n?.getState?.();e&&Object.assign(t,e)}let n=gn(t,...e);return Object.assign({},...e,n)}function Tn(e,t){}var En=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Dn=t(((e,t)=>{t.exports=En()})),On=Dn(),kn=()=>()=>{};function An(e){return Array.isArray(e)}function jn(e,t){return e===t||e!==e&&t!==t}function Mn(e,t){if(e?.length!==t.length)return!1;for(let n=0;n<e.length;n+=1){let r=e[n];if(r===void 0||!jn(r,t[n]))return!1}return!0}function Nn(e){let t=o.useRef(null),n=t.current;if(e===null)return t.current=null,null;if(Mn(n,e))return n;let r=[...e];return t.current=r,r}function J(e,t=x,n){let r=Nn(An(t)?t:typeof t==`function`?null:[t]),i=o.useCallback(t=>!e||r?.length===0?kn():yn(e,r,t),[e,r]),a=()=>{let r=e?.getState();if(An(t))return n?.(r);if(typeof t==`function`)return t(r);if(r&&g(r,t))return r[t]};return(0,On.useSyncExternalStore)(i,a,a)}function Pn(e,t){let n=[],r=!1;for(let t in e){let i=e[t];if(i!==void 0){if(typeof i==`function`){r=!0;continue}n.includes(i)||n.push(i)}}if(!r)return n;if(!t)return null;for(let e of t)n.includes(e)||n.push(e);return n}function Fn(e,t,n){let r=An(t)?n??{}:t,i=An(t)?t:void 0,a=o.useRef({}
1),s=Nn(Pn(r,i)),c=o.useCallback(t=>!e||s?.length===0?kn():yn(e,s,t),[e,s]),l=()=>{let t=e?.getState(),n=!1,i=a.current;for(let e in r){let a=r[e];if(a===void 0)continue;if(typeof a==`function`){let r=a(t);Object.is(r,i[e])||(i[e]=r,n=!0)}if(typeof a==`function`)continue;let o=t&&g(t,a)?t[a]:void 0;Object.is(o,i[e])||(i[e]=o,n=!0)}return n&&(a.current={...i}),a.current};return(0,On.useSyncExternalStore)(c,l,l)}function In(e,t,n,r){let i=g(t,n)?t[n]:void 0,a=r?t[r]:void 0,o=!!a,s=ut({value:i,setValue:a});V(()=>{if(o)return yn(e,[n],(e,t)=>{let{value:r,setValue:i}=s.current;i&&(jn(e[n],t[n])||jn(e[n],r)||i(e[n]))})},[e,n,o]),V(()=>{if(i!==void 0)return e.setState(n,i),xn(e,[n],()=>{i!==void 0&&e.setState(n,i)})})}function Ln(e,t){let[n,r]=o.useState(()=>e(t));V(()=>vn(n),[n]);let i=o.useCallback(e=>J(n,e),[n]);return[o.useMemo(()=>({...n,useState:i}),[n,i]),H(()=>{r(n=>e({...t,...n.getState()}))})]}var Rn=At();Rn.useContext,Rn.useScopedContext;var zn=Rn.useProviderContext,Bn=Rn.ContextProvider,Vn=Rn.ScopedContextProvider,Hn=At([Bn],[Vn]);Hn.useContext,Hn.useScopedContext;var Un=Hn.useProviderContext,Wn=Hn.ContextProvider,Gn=Hn.ScopedContextProvider,Kn=(0,o.createContext)(void 0),qn=(0,o.createContext)(void 0),Jn=e(r(),1),Yn=`div`;function Xn(e,t){let n=setTimeout(t,e);return()=>clearTimeout(n)}function Zn(e){let t=e?.trim()||`0s`,n=t.endsWith(`ms`)?1:1e3,r=Number.parseFloat(t)*n;return Number.isNaN(r)?0:r}function Qn(e,t,n){let r=e.split(`,`),i=t.split(`,`),a=n.split(`,`),o=0;for(let[e,t]of r.entries()){if(t.trim()===`none`)continue;let n=Zn(i[e%i.length]),r=Zn(a[e%a.length]);o=Math.max(o,n+r)}return o}function $n(e){let{transitionProperty:t,transitionDuration:n,transitionDelay:r,animationName:i,animationDuration:a,animationDelay:o}=getComputedStyle(e);return Math.max(Qn(t,r,n),Qn(i,o,a))}function er(e,t,n){return!n&&t!==!1&&(!e||!!t)}var tr=q(function({store:e,alwaysVisible:t,unstable_otherElementRef:n,...r}){let i=zn();e||=i,C(e,!1);let s=(0,o.useRef)(null),c=ft(r.id),[l,u]=(0,o.useState)(null),{open:d,mounted:f,animated:p,contentElement:m}
1=Fn(e,{open:`open`,mounted:`mounted`,animated:`animated`,contentElement:`contentElement`}),h=J(e.disclosure,`contentElement`),g=(0,o.useRef)(!1);V(()=>{s.current&&e?.setContentElement(s.current)},[e]),V(()=>{let t;return e?.setState(`animated`,e=>(t=e,!0)),()=>{t!==void 0&&e?.setState(`animated`,t)}},[e]),V(()=>{if(!p){d?g.current&&(g.current=!1,u(`enter`)):(g.current=!0,u(null));return}if(!m?.isConnected){u(null);return}return S(()=>{u(d?`enter`:f?`leave`:null)})},[p,m,d,f]),V(()=>{if(!e||!p||!l||!m)return;let t=()=>e?.setState(`animating`,!1),r=()=>(0,Jn.flushSync)(t);if(l===`leave`&&d||l===`enter`&&!d)return;if(typeof p==`number`)return Xn(p,r);let i=[m];h&&i.push(h);let a=n?.current;a&&i.push(a);let o=Math.max(...i.map($n));if(!o){l===`enter`&&e.setState(`animated`,!1),t();return}return Xn(Math.max(o-1e3/60,0),r)},[e,p,m,h,n,d,l]),r=W(r,t=>(0,a.jsx)(Gn,{value:e,children:t}),[e]);let _=er(f,r.hidden,t),v=r.style,y=(0,o.useMemo)(()=>_?{...v,display:`none`}:v,[_,v]);return r={"data-open":d||void 0,"data-enter":l===`enter`||void 0,"data-leave":l===`leave`||void 0,hidden:_,...r,id:c,ref:U(c?e.setContentElement:null,s,r.ref),style:y},O(r)}),nr=G(function(e){return K(Yn,tr(e))});G(function({unmountOnHide:e,...t}){let n=zn();return J(t.store||n,[`mounted`],t=>!e||t?.mounted)===!1?null:(0,a.jsx)(nr,{...t})});function rr(e={}){let t=e.store||e.disclosure?wn(e.store,Sn(e.disclosure,[`contentElement`,`disclosureElement`])):void 0,n=t?.getState(),r=k(e.open,n?.open,e.defaultOpen,!1),i=k(e.animated,n?.animated,!1),a={open:r,animated:i,animating:!!i&&r,mounted:r,contentElement:k(n?.contentElement,null),disclosureElement:k(n?.disclosureElement,null)},o=t?gn(a,t):gn(a);return _n(o,()=>bn(o,[`animated`,`animating`],e=>{e.animated||o.setState(`animating`,!1)})),_n(o,()=>yn(o,[`open`],()=>{o.getState().animated&&o.setState(`animating`,!0)})),_n(o,()=>bn(o,[`open`,`animating`],e=>{o.setState(`mounted`,e.open||e.animating)})),{...o,disclosure:e.disclosure,setOpen:e=>o.setState(`open`,e),show:()=>o.setState(`open`,!0),hide:()=>o.setState(`open`,!1),toggle:()=>o.setState(`open`,e=>!e),stopAnimation:()=>o.setState(`animating`,!1),setContentElement:e=>o.setState(`contentElement`,e),setDisclosureElement:e=>o.setState(`disclosureElement`,e)}}function ir(e,t,n){return ht(t,[n.store,n.disclosure]),In(e,n,`open`,`setOpen`),In(e,n,`mounted`,`setMounted`),In(e,n,`animated`),Object.assign(e,{disclosure:n.disclosure})}function ar(e={}){let[t,n]=Ln(rr,e);return ir(t,n,e)}var or=At([Wn],[Gn]),sr=or.useContext;or.useScopedContext;var cr=or.useProviderContext,lr=or.ContextProvider,ur=or.ScopedContextProvider,dr=`div`,fr=q(function({autoFocusOnShow:e=!0,...t}){return t=W(t,t=>(0,a.jsx)(s.Provider,{value:e,children:t}),[e]),t});G(function(e){return K(dr,fr(e))});var pr=(0,o.createContext)(0);function mr({level:e,children:t}){let n=(0,o.useContext)(pr),r=Math.max(Math.min(e||n+1,6),1);return(0,a.jsx)(pr.Provider,{value:r,children:t})}var hr=`span`;function gr(e){return{borderWidth:0,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,whiteSpace:`nowrap`,width:`1px`,...e}}var _r=q(function(e){return e={...e,style:gr(e.style)},e}),vr=G(function(e){return K(hr,_r(e))}),yr=`span`,br=q(function(e){return e={"data-focus-trap":``,tabIndex:0,"aria-hidden":!0,...e,style:{position:`fixed`,top:0,left:0,...e.style}},e=_r(e),e}),xr=G(function(e){return K(yr,br(e))}),Sr=(0,o.createContext)(null),Cr=`div`;function wr(e){let t=M(e),{fullscreenElement:n}=t,r=t.defaultView?.HTMLElement;return r&&n instanceof r?n:t.body}function Tr(e,t){return t?typeof t==`function`?t(e):t:M(e).createElement(`div`)}function Er(e=`id`){return`${e?`${e}-`:``}${Math.random().toString(36).slice(2,8)}`}function Dr(e){queueMicrotask(()=>{e?.focus()})}function Or(e,t){return{ref:e,node:t,cleanup:nt(e,t)}}function kr(e){typeof e.cleanup==`function`?e.cleanup():nt(e.ref,null)}var Ar=q(function({preserveTabOrder:e,preserveTabOrderAnchor:t,portalElement:n,portalRef:r,portal:i=!0,...s}){let c=(0,o.useRef)(null),l=U(c,s.ref),u=(0,o.useContext)(Sr),[d,f]=(0,o.useState)(null),[p,m]=(0,o.useState)(null),h=(0,o.useRef)(null),g=(0,o.useRef)(null),_=(0,o.useRef)(null),v=(0,o.useRef)(null),y=ut(r),b=(0,o.useRef)(null);return V(()=>
1{let e=c.current;if(!e||!i){f(null);return}let t=Tr(e,n);if(!t){f(null);return}let r=t.isConnected;return r||(u||wr(e)).appendChild(t),t.id||=e.id?`portal/${e.id}`:Er(),f(t),b.current=Or(y.current,t),()=>{let e=b.current;e&&(b.current=null,kr(e)),r||t.remove()}},[i,n,u]),V(()=>{let e=b.current;e&&e.ref!==r&&(kr(e),b.current=Or(r,e.node))},[r]),(0,o.useEffect)(()=>{if(!d||u||n)return;let e=M(d),t=()=>{let e=wr(d);d.parentElement!==e&&e.appendChild(d)};return d.isConnected&&t(),e.addEventListener(`fullscreenchange`,t),()=>{e.removeEventListener(`fullscreenchange`,t)}},[d,u,n]),V(()=>{if(!i||!e||!t)return;let n=M(t).createElement(`span`);return n.style.position=`fixed`,t.insertAdjacentElement(`afterend`,n),m(n),()=>{n.remove(),m(null)}},[i,e,t]),(0,o.useEffect)(()=>{if(!d||!e)return;let t=0,n=e=>{if(!Ae(e))return;let n=e.type===`focusin`;if(cancelAnimationFrame(t),n)return Ze(d);t=requestAnimationFrame(()=>{Xe(d,!0)})};return d.addEventListener(`focusin`,n,!0),d.addEventListener(`focusout`,n,!0),()=>{cancelAnimationFrame(t),d.removeEventListener(`focusin`,n,!0),d.removeEventListener(`focusout`,n,!0)}},[d,e]),s=W(s,t=>{if(t=(0,a.jsx)(Sr.Provider,{value:d||u,children:t}),!i)return t;if(!d)return(0,a.jsx)(`span`,{ref:l,id:s.id,style:{position:`fixed`},hidden:!0});t=(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsx)(xr,{ref:g,"data-focus-trap":s.id,className:`__focus-trap-inner-before`,onFocus:e=>{Ae(e,d)?Dr(Ue()):Dr(h.current)}}),t,e&&(0,a.jsx)(xr,{ref:_,"data-focus-trap":s.id,className:`__focus-trap-inner-after`,onFocus:e=>{Ae(e,d)?Dr(Ge()):Dr(v.current)}})]}),t=(0,Jn.createPortal)(t,d);let n=(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsx)(xr,{ref:h,"data-focus-trap":s.id,className:`__focus-trap-outer-before`,onFocus:e=>{e.relatedTarget!==v.current&&Ae(e,d)?Dr(g.current):Dr(Ge())}}),e&&(0,a.jsx)(`span`,{"aria-owns":d.id,style:{position:`fixed`}}),e&&(0,a.jsx)(xr,{ref:v,"data-focus-trap":s.id,className:`__focus-trap-outer-after`,onFocus:e=>{if(Ae(e,d))Dr(_.current);else{let e=Ue();if(e===g.current){requestAnimationFrame(()=>Ue()?.focus());return}Dr(e)}}})]});return p&&e&&(n=(0,Jn.createPortal)(n,p)),(0,a.jsxs)(a.Fragment,{children:[n,t]})},[d,u,i,s.id,e,p]),s={...s,ref:l},s});G(function(e){return K(Cr,Ar(e))});function jr(e,...t){if(!e)return!1;let n=e.getAttribute(`data-backdrop`);return n==null?!1:n===``||n===`true`||!t.length||t.some(e=>n===e)}var Mr=new WeakMap;function Nr(e,t,n){for(;n.length;){let r=n[n.length-1];if(!r){e.delete(t);return}if(!r.disposed)return;n.pop(),r.cleanup()}e.delete(t)}function Pr(e,t,n){let r=Mr.get(e);r||(r=new Map,Mr.set(e,r));let i=r.get(t)??[],a={cleanup:n(),disposed:!1};return i.length||r.set(t,i),i.push(a),()=>{i.includes(a)&&(a.disposed=!0,Nr(r,t,i))}}function Fr(e,t,n){return Pr(e,t,()=>{let r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r==null?e.removeAttribute(t):e.setAttribute(t,r)}})}function Ir(e,t,n){return Pr(e,t,()=>{let r=t in e,i=e[t];return e[t]=n,()=>{r?e[t]=i:delete e[t]}})}function Lr(e,t){return e?Pr(e,`style`,()=>{let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}):()=>{}}function Rr(e,t,n){return e?Pr(e,t,()=>{let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{r?e.style.setProperty(t,r,i):e.style.removeProperty(t)}}):()=>{}}function zr(e=``,t=`outside`){return`__ariakit-dialog-${t}${e?`-${e}`:``}`}function Br(e,t=``){return _(Ir(e,zr(),!0),Ir(e,zr(t),!0))}function Vr(e,t=``){return _(Ir(e,zr(``,`ancestor`),!0),Ir(e,zr(t,`ancestor`),!0))}function Hr(e,t){return _(...t.map(t=>{if(t)return Ir(t,zr(e,`inside`),!0)}))}function Ur(e,t){let n=zr(t,`inside`);do{if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function Wr(e,t){let n=zr(t,`ancestor`);if(e[n])return!0;let r=zr(t);do{if(e[r])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function Gr({cleanups:e,element:t,id:n,ids:r}){jr(t,...r)||e.push(Br(t,n))}function Kr({cleanups:e,ancestor:t,element:n,id:r}){n.hasAttribute(`data-dialog`)&&n.id!==r||e.push(Vr(t,r))}function qr(e){for(let t=e.length-1;t>=0;--t)e[t]?.()}var Jr=[`SCRIPT`,`STYLE`];
1function Yr(e){return`__ariakit-dialog-snapshot-${e}`}function Xr(e,t){let n=M(t),r=Yr(e);if(!n.body[r])return!0;do{if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}while(!0)}function Zr(e,t,n){return Jr.includes(t.tagName)||!Xr(e,t)?!1:!n.some(e=>e&&F(t,e))}function Qr(e,t,n,r){for(let i of t){if(!i?.isConnected)continue;let a=t.some(e=>!e||e===i?!1:e.contains(i)),o=M(i),s=i;for(;i.parentElement&&i!==o.body;){if(r?.(i.parentElement,s),!a)for(let r of i.parentElement.children)Zr(e,r,t)&&n(r,s);i=i.parentElement}}}function $r(e,t){let{body:n}=M(t[0]),r=[];return Qr(e,t,t=>{r.push(Ir(t,Yr(e),!0))}),_(Ir(n,Yr(e),!0),()=>{for(let e of r)e()})}function ei(e,t){let n=[],r=t.map(e=>e?.id);return Qr(e,t,t=>{Gr({cleanups:n,element:t,id:e,ids:r})},(t,r)=>{Kr({cleanups:n,ancestor:t,element:r,id:e})}),()=>{qr(n)}}var ti=`div`,ni=`a.button.details.dialog.div.form.h1.h2.h3.h4.h5.h6.header.img.input.label.li.nav.ol.p.section.select.span.summary.textarea.ul.svg`.split(`.`);q(function(e){return e});var ri=G(function(e){return K(ti,e)});Object.assign(ri,ni.reduce((e,t)=>(e[t]=G(function(e){return K(t,e)}),e),{}));function ii({store:e,backdrop:t,backdropRef:n,alwaysVisible:r,hidden:i}){let s=(0,o.useRef)(null),c=ar({disclosure:e}),l=J(e,`contentElement`);V(()=>{let e=s.current,t=l;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)},[l]),V(()=>{let e=l?.id;if(!e)return;let t=s.current;if(t)return Vr(t,e)},[l]);let u=tr({ref:U(s,n),store:c,role:`presentation`,"data-backdrop":l?.id||``,alwaysVisible:r,hidden:i??void 0,style:{position:`fixed`,top:0,right:0,bottom:0,left:0}});if(!t)return null;if((0,o.isValidElement)(t))return(0,a.jsx)(ri,{...u,render:t});let d=typeof t==`boolean`?`div`:t;return(0,a.jsx)(ri,{...u,render:(0,a.jsx)(d,{})})}function ai(e={}){return rr(e)}function oi(e,t,n){return ir(e,t,n)}function si(e={}){let[t,n]=Ln(ai,e);return oi(t,n,e)}function ci(){return`inert`in HTMLElement.prototype}function li(e){return Fr(e,`aria-hidden`,`true`)}function ui(e,...t){if(!e)return!1;let n=e.getAttribute(`data-focus-trap`);return n==null?!1:!t.length||n!==``&&t.some(e=>n===e)}function di(e,t){return`style`in e?ci()?Ir(e,`inert`,!0):_(...ze(e,!0).map(e=>{if(t?.some(t=>t&&F(t,e)))return d;let n=Pr(e,`focus`,()=>(e.focus=d,()=>{delete e.focus}));return _(Fr(e,`tabindex`,`-1`),n)}),li(e),Lr(e,{pointerEvents:`none`,userSelect:`none`,cursor:`default`})):d}function fi({cleanups:e,element:t,elements:n,ids:r}){jr(t,...r)||ui(t,...r)||e.push(di(t,n))}function pi(e,t,n){t.hasAttribute(`role`)&&(n.some(e=>e&&F(e,t))||e.push(Fr(t,`role`,`none`)))}function mi(e,t){let n=[],r=t.map(e=>e?.id);return Qr(e,t,i=>{Gr({cleanups:n,element:i,id:e,ids:r}),fi({cleanups:n,element:i,elements:t,ids:r})},(r,i)=>{Kr({cleanups:n,ancestor:r,element:i,id:e}),pi(n,r,t)}),()=>{qr(n)}}function hi(e,t){let n=M(e).createElement(`button`);return n.type=`button`,n.tabIndex=-1,n.textContent=`Dismiss popup`,Object.assign(n.style,gr()),n.addEventListener(`click`,t),e.prepend(n),()=>{n.removeEventListener(`click`,t),n.remove()}}function gi(e,t){let n=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!e){n.current=null;return}return z(`mousedown`,e=>{n.current=e.target},!0,t)},[e,t]),n}function _i(e){return e.tagName===`HTML`||F(M(e).body,e)}function vi(e,t){if(!e)return!1;if(F(e,t))return!0;let n=t.getAttribute(`aria-activedescendant`);if(n){let t=M(e).getElementById(n);if(t)return F(e,t)}return!1}function yi(e,t){if(!(`clientY`in e))return!1;let n=t.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}function bi({store:e,type:t,listener:n,capture:r,open:i,contentElement:a,focusedRef:s}){let c=H(n);(0,o.useEffect)(()=>i?z(t,t=>{let{contentElement:n,disclosureElement:r}=e.getState(),i=t.target;n&&I(i)&&_i(i)&&(F(n,i)||vi(r,i)||i.hasAttribute(`data-focus-trap`)||yi(t,n)||Ur(i,n.id)||s.current&&!Wr(i,n.id)||c(t))},r,a?N(a):void 0):void 0,[i,r,e,t,c,a,s])}function xi(e,t){return typeof e==`function`?e(t):!!e}function Si(e,t,n,r){let i=J(e,`open`),a=J(e,`contentElement`),s=gi(i,a?N(a):void 0),c=(0,o.useRef)(!1);V(()=>
1{if(!i||!n||!a)return;c.current=!1;let e=()=>{c.current=!0};return a.addEventListener(`focusin`,e,!0),()=>a.removeEventListener(`focusin`,e,!0)},[i,n,a]);let l={store:e,capture:!0,open:i,contentElement:a,focusedRef:c};bi({...l,type:`click`,listener:n=>{let{contentElement:i}=e.getState(),a=s.current;a&&Wr(a,i?.id)&&xi(t,n)&&(r&&(r.current=!0),e.hide())}}),bi({...l,type:`focusin`,listener:n=>{let{contentElement:r}=e.getState();r&&n.target!==M(r)&&xi(t,n)&&e.hide()}}),bi({...l,type:`contextmenu`,listener:n=>{xi(t,n)&&(r&&(r.current=!0),e.hide())}})}var Ci=(0,o.createContext)({});function wi(e){let t=(0,o.useContext)(Ci),[n,r]=(0,o.useState)([]),i=(0,o.useCallback)(e=>(r(t=>[...t,e]),_(t.add?.(e),()=>{r(t=>t.filter(t=>t!==e))})),[t]);V(()=>bn(e,[`open`,`contentElement`],n=>{if(n.open&&n.contentElement)return t.add?.(e)}),[e,t]);let s=(0,o.useMemo)(()=>({store:e,add:i}),[e,i]);return{wrapElement:(0,o.useCallback)(e=>(0,a.jsx)(Ci.Provider,{value:s,children:e}),[s]),nestedDialogs:n}}function Ti({attribute:e,contentId:t,contentElement:n,enabled:r}){let[i,a]=_t(),s=(0,o.useCallback)(()=>{if(!r||!n)return!1;let{body:i}=M(n),a=i.getAttribute(e);return!a||a===t},[i,r,n,e,t]);return V(()=>{if(!r||!t||!n)return;let{body:i}=M(n);if(s())return i.setAttribute(e,t),()=>i.removeAttribute(e);let o=new MutationObserver(()=>(0,Jn.flushSync)(a));return o.observe(i,{attributeFilter:[e]}),()=>o.disconnect()},[i,r,t,n,s,e]),s}var Ei=_e()&&!be();function Di(e){let{CSS:t}=e;return!!t?.supports(`scrollbar-gutter`,`stable`)}function Oi(e){let t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?`paddingLeft`:`paddingRight`}function ki(e,t,n){let r=Ti({attribute:`data-dialog-prevent-body-scroll`,contentElement:e,contentId:t,enabled:n});(Ei?o.useEffect:V)(()=>{if(!r()||!e)return;let t=M(e),n=N(e),{documentElement:i,body:a}=t,o=i.style.getPropertyValue(`--scrollbar-width`),s=o?Number.parseInt(o,10):n.innerWidth-i.clientWidth,c=()=>{let e=n.getComputedStyle(i),t=e.getPropertyValue(`scrollbar-gutter`),r=t.includes(`stable`),o=e=>!e||e===`visible`,c=!o(e.getPropertyValue(`overflow-x`))||!o(e.getPropertyValue(`overflow-y`)),l=()=>_(Rr(i,`overflow-x`,`hidden`),Rr(i,`overflow-y`,`hidden`)),u=e=>c?_(e,l()):e;return!r&&!s?u(Lr(a,{overflow:`hidden`})):r||Di(n)?_(Rr(i,`scrollbar-gutter`,r?t:`stable`),l()):u(_(Rr(i,`--scrollbar-width`,`${s}px`),Lr(a,{overflow:`hidden`,[Oi(i)]:`${s}px`})))},l=()=>{let{scrollX:e,scrollY:t,visualViewport:r}=n,o=r?.offsetLeft??0,c=r?.offsetTop??0,l=Lr(a,{position:`fixed`,overflow:`hidden`,top:`${-(t-Math.floor(c))}px`,left:`${-(e-Math.floor(o))}px`,right:`0`,[Oi(i)]:`${s}px`});return()=>{l(),n.scrollTo({left:e,top:t,behavior:`instant`})}};if(Ei)return l();let u=c();return()=>{queueMicrotask(u)}},[r,e])}var Ai=`div`,ji=ve();function Mi(e){let t=P(e);return!t||e&&F(e,t)?!1:!!B(t)}function Ni(e,t=!1){if(!e)return null;let n=`current`in e?e.current:e;return n?t?B(n)?n:null:n:null}var Pi=q(function({store:e,open:t,onClose:n,focusable:r=!0,modal:i=!0,portal:s=i,backdrop:c=i,hideOnEscape:l=!0,hideOnInteractOutside:u=!0,getPersistentElements:d,preventBodyScroll:f=i,autoFocusOnShow:p=!0,autoFocusOnHide:m=!0,initialFocus:h,finalFocus:g,unmountOnHide:v,unstable_treeSnapshotKey:y,...b}){let x=Un(),S=(0,o.useRef)(null),C=(0,o.useRef)(null),w=si({store:e||x,open:t,setOpen(e){if(e)return;let t=S.current;if(!t)return;let r=new Event(`close`,{bubbles:!1,cancelable:!0});n&&t.addEventListener(`close`,n,{once:!0}),t.dispatchEvent(r),r.defaultPrevented&&w.setOpen(!0)}}),{portalRef:T,domReady:E}=yt(s,b.portalRef),D=b.preserveTabOrder,O=J(w,[`mounted`],e=>D&&!i&&e.mounted),k=ft(b.id),A=J(w,`open`),j=J(w,`mounted`),L=J(w,`contentElement`),te=er(j,b.hidden,b.alwaysVisible);ki(L,k,f&&!te);let ne=(0,o.useRef)(!1);V(()=>bn(w,[`open`],e=>{e.open&&(ne.current=!1)}),[w]),Si(w,u,E,ne);let{wrapElement:re,nestedDialogs:R}=wi(w);b=W(b,re,[re]);let ie=(0,o.useRef)(null);ji&&(0,o.useEffect)(()=>{if(!E)return;let e=S.current;if(!e)return;let t=M(e),n=e=>{ie.current=e.target};return t.addEventListener(`mousedown`,n,!0),()=>{t.removeEventListener(`mousedown`,n,!0)}},[E]),V(()=>
1{if(!A)return;let e=S.current,t=P(e,!0);if(t){if(t.tagName===`BODY`){let t=ie.current;if(ie.current=null,!t?.isConnected||!B(t)||e&&F(e,t))return;w.setDisclosureElement(t);return}e&&F(e,t)||w.setDisclosureElement(t)}},[w,A]),(0,o.useEffect)(()=>{if(!j||!E)return;let e=S.current;if(!e)return;let t=N(e),n=t.visualViewport||t,r=()=>{let n=t.visualViewport?.height??t.innerHeight;e.style.setProperty(`--dialog-viewport-height`,`${n}px`)};return r(),n.addEventListener(`resize`,r),()=>{n.removeEventListener(`resize`,r)}},[j,E]),(0,o.useEffect)(()=>{if(!i||!j||!E)return;let e=S.current;if(e&&!e.querySelector(`[data-dialog-dismiss]`))return hi(e,w.hide)},[w,i,j,E]),V(()=>{if(!ci()||A||!j||!E)return;let e=S.current;if(e)return di(e)},[A,j,E]);let ae=A&&E;V(()=>{if(!k||!ae)return;let e=S.current;return $r(k,[e])},[k,ae,y]);let oe=H(d);V(()=>{if(!k||!ae)return;let{disclosureElement:e}=w.getState(),t=[S.current,...oe()||[],...R.map(e=>e.getState().contentElement)],n=Hr(k,t);return i?_(n,mi(k,t)):_(n,ei(k,[e,...t]))},[k,w,ae,oe,R,i,y]);let se=!!p,ce=vt(p),[le,ue]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(!A||!se||!E||!L?.isConnected)return;let e=Ni(h,!0)||L.querySelector(`[data-autofocus=true],[autofocus]`)||Be(L,!0,s&&O)||L,t=B(e);ce(t?e:null)&&(ue(!0),queueMicrotask(()=>{w.getState().open&&(e.focus(),ji&&t&&e.scrollIntoView({block:`nearest`,inline:`nearest`}))}))},[A,se,E,L,h,s,O,w,ce]);let de=!!m,fe=vt(m),[pe,me]=(0,o.useState)(!1);V(()=>{if(A)return me(!0),()=>me(!1)},[A]);let he=(0,o.useCallback)((e,t=!0)=>{if(ne.current)return;let{disclosureElement:n}=w.getState();if(Mi(e))return;let r=Ni(g)||n;if(r?.id){let e=M(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!B(r)){let e=r.closest(`[data-dialog]`);if(e?.id){let t=M(e),n=`[aria-controls~="${e.id}"]`,i=t.querySelector(n);i&&(r=i)}}let i=r&&B(r);if(!i&&t){requestAnimationFrame(()=>he(e,!1));return}fe(i?r:null)&&i&&r?.focus()},[w,g,fe]),ge=(0,o.useRef)(!1);V(()=>{if(A||!pe||!de)return;let e=S.current;ge.current=!0,he(e)},[A,pe,E,de,he]),(0,o.useEffect)(()=>{if(!pe||!de)return;let e=S.current;return()=>{if(ge.current){ge.current=!1;return}he(e)}},[pe,de,he]);let _e=vt(l);(0,o.useEffect)(()=>!E||!j?void 0:z(`keydown`,e=>{if(e.key!==`Escape`||e.defaultPrevented)return;let t=S.current;if(!t||Wr(t))return;let n=e.target;if(!ee(n))return;let{disclosureElement:r}=w.getState();(I(n)&&n.tagName===`BODY`||F(t,n)||!r||F(r,n)||I(n)&&Wr(n,t.id))&&_e(e)&&w.hide()},!0,L?N(L):void 0),[w,E,j,L,_e]),b=W(b,e=>(0,a.jsx)(mr,{level:i?1:void 0,children:e}),[i]);let ve=b.hidden,ye=b.alwaysVisible;b=W(b,e=>c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ii,{store:w,backdrop:c,backdropRef:C,hidden:ve,alwaysVisible:ye}),e]}):e,[w,c,ve,ye]);let[be,xe]=(0,o.useState)(),[Se,Ce]=(0,o.useState)();return b=W(b,e=>(0,a.jsx)(Gn,{value:w,children:(0,a.jsx)(Kn.Provider,{value:xe,children:(0,a.jsx)(qn.Provider,{value:Ce,children:e})})}),[w]),b={"data-dialog":``,role:`dialog`,tabIndex:r?-1:void 0,"aria-labelledby":b[`aria-label`]==null?be:void 0,"aria-describedby":Se,...b,id:k,ref:U(S,b.ref)},b=fr({...b,autoFocusOnShow:le}),b=tr({store:w,...b,unstable_otherElementRef:C}),b=Yt({...b,focusable:r}),b=Ar({portal:s,...b,portalRef:T,preserveTabOrder:O}),b});function Fi(e,t=Un){return G(function(n){let r=t();return J(n.store||r,[`mounted`],e=>!n.unmountOnHide||e?.mounted||!!n.open)?(0,a.jsx)(e,{...n}):null})}var Ii=Fi(G(function(e){return K(Ai,Pi(e))}),Un),Li=G(function(e){let t=si({open:e.open});return(0,a.jsx)(Ii,{...e,store:t})});G(function(e){let t=Un();return e.store||t||!e.unmountOnHide?(0,a.jsx)(Ii,{...e}):(0,a.jsx)(Li,{...e})});function Ri(e){return e.split(`-`)[0]}function zi(e){return e.split(`-`)[1]}function Bi(e){return e===`y`?`height`:`width`}function Y(e){return e.split(`-`)[0]}function Vi(e){return[`top`,`bottom`].includes(Y(e))?`x`:`y`}function Hi(e,t,n){let{reference:r,floating:i}=e,a=r.x+r.width/2-i.width/2,o=r.y+r.height/2-i.height/2,s=Vi(t),c=Bi(s),l=r[c]/2-i[c]/2,u=s===`x`,d;switch(Y(t)){case`top`:d={x:a,y:r.y-i.height};break;case`bottom`:d={x:a,y:r.y+r.height};break;case`right`:d={x:r.x+r.width,y:o};break;case`left`:d={x:r.x-i.width,y:o};break;default:d={x:r.x,y:r.y}}switch(zi(t)){case`start`:d[s]-=l*(n&&u?-1:1);break;case`end`:d[s]+=l*(n&&u?-1:1)}return d}var Ui=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}
1=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Hi(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=!0===y.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Hi(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};function Wi(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e)}function Gi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Ki(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=t,m=Wi(p),h=s[f?d===`floating`?`reference`:`floating`:d],g=Gi(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(h)))==null||n?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),_=d===`floating`?{...o.floating,x:r,y:i}:o.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),y=await(a.isElement==null?void 0:a.isElement(v))&&await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1},b=Gi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:v,strategy:c}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var qi=Math.min,Ji=Math.max;function Yi(e,t,n){return Ji(e,qi(t,n))}var Xi=e=>({name:`arrow`,options:e,async fn(t){let{element:n,padding:r=0}=e||{},{x:i,y:a,placement:o,rects:s,platform:c,elements:l}=t;if(n==null)return{};let u=Wi(r),d={x:i,y:a},f=Vi(o),p=Bi(f),m=await c.getDimensions(n),h=f===`y`,g=h?`top`:`left`,_=h?`bottom`:`right`,v=h?`clientHeight`:`clientWidth`,y=s.reference[p]+s.reference[f]-d[f]-s.floating[p],b=d[f]-s.reference[f],x=await(c.getOffsetParent==null?void 0:c.getOffsetParent(n)),S=x?x[v]:0;S&&await(c.isElement==null?void 0:c.isElement(x))||(S=l.floating[v]||s.floating[p]);let C=y/2-b/2,w=u[g],T=S-m[p]-u[_],E=S/2-m[p]/2+C,D=Yi(w,E,T),O=zi(o)!=null&&E!=D&&s.reference[p]/2-(E<w?u[g]:u[_])-m[p]/2<0;return{[f]:d[f]-(O?E<w?w-E:T-E:0),data:{[f]:D,centerOffset:E-D}}}});[`top`,`right`,`bottom`,`left`].reduce(((e,t)=>e.concat(t,t+`-start`,t+`-end`)),[]);var Zi={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Qi(e){return e.replace(/left|right|bottom|top/g,(e=>Zi[e]))}function $i(e,t,n){n===void 0&&(n=!1);let r=zi(e),i=Vi(e),a=Bi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Qi(o)),{main:o,cross:Qi(o)}}var ea={start:`end`,end:`start`};function ta(e){return e.replace(/start|end/g,(e=>ea[e]))}var na=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){let{placement:n,middlewareData:r,rects:i,initialPlacement:a,platform:o,elements:s}=t,{mainAxis:c=!0,crossAxis:l=!0,fallbackPlacements:u,fallbackStrategy:d=`bestFit`,fallbackAxisSideDirection:f=`none`,flipAlignment:p=!0,...m}=e,h=Y(n),g=Y(a)===a,_=await(o.isRTL==null?void 0:o.isRTL(s.floating)),v=u||(g||!p?[Qi(a)]:function(e){let t=Qi(e);return[ta(e),t,ta(t)]}(a));u||f===`none`||v.push(...function(e,t,n,r){let i=zi(e),a=function(e,t,n){let r=[`left`,`right`],i=[`right`,`left`],a=[`top`,`bottom`],o=[`bottom`,`top`];switch(e){case`top`:case`bottom`:return n?t?i:r:t?r:i;case`left`:case`right`:return t?a:o;default:return[]}}(Y(e),n===`start`,r);return i&&(a=a.map((e=>e+`-`+i)),t&&(a=a.concat(a.map(ta)))),a}(a,p,f,_));let y=[a,...v],b=await Ki(t,m),x=[],S=r.flip?.overflows||[];if(c&&x.push(b[h]),l){let{main:e,cross:t}=$i(n,i,_);x.push(b[e],b[t])}if(S=[...S,{placement:n,overflows:x}],!x.every((e=>e<=0))){let e=(r.flip?.index||0)+1,t=y[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let i=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0]?.placement;if(!i)switch(d){case`bestFit`:{let e=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0]?.[0];e&&(i=e);break}case`initialPlacement`:i=a}if(n!==i)return{reset:{placement:i}}}return{}}}},ra=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Y(n),s=zi(n),c=Vi(n)===`x`,l=[`left`,`top`].includes(o)?-1:1,u=a&&c?-1:1,d=typeof t==`function`?t(e):t,{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof m==`number`&&(p=s===`end`?-1*m:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function ia(e){return e===`x`?`y`:`x`}var aa=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,l={x:n,y:r},u=await Ki(t,c),d=Vi(Y(i)),f=ia(d),p=l[d],m=l[f];if(a){let e=d===`y`?`bottom`:`right`;p=Yi(p+u[d===`y`?`top`:`left`],p,p-u[e])}if(o){let e=f===`y`?`bottom`:`right`;m=Yi(m+u[f===`y`?`top`:`left`],m,m-u[e])}let h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},oa=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=e,u={x:n,y:r},d=Vi(i),f=ia(d),p=u[d],m=u[f],h=typeof s==`function`?s(t):s,g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=d===`y`?`height`:`width`,t=a.reference[d]-a.floating[e]+g.mainAxis,n=a.reference[d]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=d===`y`?`width`:`height`,t=[`top`,`left`].includes(Y(i)),n=a.reference[f]-a.floating[e]+(t&&o.offset?.[f]||0)+(t?0:g.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:o.offset?.[f]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},sa=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=(()=>{}),...s}=e,c=await Ki(t,s),l=Y(n),u=zi(n),d=Vi(n)===`x`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c[m],_=f-c[h],v=g,y=_;if(d?y=qi(f-c.right-c.left,_):v=qi(p-c.bottom-c.top,g),!t.middlewareData.shift&&!u){let e=Ji(c.left,0),t=Ji(c.right,0),n=Ji(c.top,0),r=Ji(c.bottom,0);d?y=f-2*(e!==0||t!==0?e+t:Ji(c.left,c.right)):v=p-2*(n!==0||r!==0?n+r:Ji(c.top,c.bottom))}await o({...t,availableWidth:y,availableHeight:v});let b=await i.getDimensions(a.floating);return f!==b.width||p!==b.height?{reset:{rects:!0}}:{}}}};function X(e){return e.ownerDocument?.defaultView||window}function Z(e){return X(e).getComputedStyle(e)}function ca(e){return e instanceof X(e).Node}function la(e){return ca(e)?(e.nodeName||``).toLowerCase():``}var ua;function da(){if(ua)return ua;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ua=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),ua):navigator.userAgent}function Q(e){return e instanceof X(e).HTMLElement}function $(e){return e instanceof X(e).Element}function fa(e){return typeof ShadowRoot>`u`?!1:e instanceof X(e).ShadowRoot||e instanceof ShadowRoot}function pa(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function ma(e){return[`table`,`td`,`th`].includes(la(e))}function ha(e){let t=/firefox/i.test(da()),n=Z(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function ga(){return/^((?!chrome|android).)*safari/i.test(da())}function _a(e){return[`html`,`body`,`#document`].includes(la(e))}var va=Math.min,ya=Math.max,ba=Math.round;function xa(e){let t=Z(e),n=parseFloat(t.width),r=parseFloat(t.height),i=Q(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ba(n)!==a||ba(r)!==o;return s&&(n=a,r=o),{width:n,height:r,fallback:s}}function Sa(e){return $(e)?e:e.contextElement}var Ca={x:1,y:1};function wa(e){let t=Sa(e);if(!Q(t))return Ca;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=xa(t),o=(a?ba(n.width):n.width)/r,s=(a?ba(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function Ta(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Sa(e),o=Ca;t&&(r?$(r)&&(o=wa(r)):o=wa(e));let s=a?X(a):window,c=ga()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=X(a),t=r&&$(r)?X(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=wa(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=X(n).frameElement}}return Gi({width:d,height:f,x:l,y:u})}function Ea(e){return((ca(e)?e.ownerDocument:e.document)||window.document).documentElement}function Da(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Oa(e){return Ta(Ea(e)).left+Da(e).scrollLeft}function ka(e){if(la(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||fa(e)&&e.host||Ea(e);return fa(t)?t.host:t}function Aa(e){let t=ka(e);return _a(t)?t.ownerDocument.body:Q(t)&&pa(t)?t:Aa(t)}function ja(e,t){t===void 0&&(t=[]);let n=Aa(e),r=n===e.ownerDocument?.body,i=X(n);return r?t.concat(i,i.visualViewport||[],pa(n)?n:[]):t.concat(n,ja(n))}function Ma(e,t,n){let r;if(t===`viewport`)r=function(e,t){let n=X(e),r=Ea(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=ga();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n);else if(t===`document`)r=function(e){let t=Ea(e),n=Da(e),r=e.ownerDocument.body,i=ya(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ya(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Oa(e),s=-n.scrollTop;return Z(r).direction===`rtl`&&(o+=ya(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(Ea(e));else if($(t))r=function(e,t){let n=Ta(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Q(e)?wa(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n);else{let n={...t};if(ga()){let t=X(e);n.x-=t.visualViewport?.offsetLeft||0,n.y-=t.visualViewport?.offsetTop||0}r=n}return Gi(r)}function Na(e,t){return Q(e)&&Z(e).position!==`fixed`?t?t(e):e.offsetParent:null}function Pa(e,t){let n=X(e);if(!Q(e))return n;let r=Na(e,t);for(;r&&ma(r)&&Z(r).position===`static`;)r=Na(r,t);return r&&(la(r)===`html`||la(r)===`body`&&Z(r).position===`static`&&!ha(r))?n:r||function(e){let t=ka(e);for(;Q(t)&&!_a(t);){if(ha(t))return t;t=ka(t)}return null}(e)||n}function Fa(e,t,n){let r=Q(t),i=Ea(t),a=Ta(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((la(t)!==`body`||pa(i))&&(o=Da(t)),Q(t)){let e=Ta(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Oa(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Ia={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=ja(e).filter((e=>$(e)&&la(e)!==`body`)),i=null,a=Z(e).position===`fixed`,o=a?ka(e):e;for(;$(o)&&!_a(o);){let e=Z(o),t=ha(o);e.position===`fixed`?i=null:(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=ka(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=Ma(t,n,i);return e.top=ya(r.top,e.top),e.right=va(r.right,e.right),e.bottom=va(r.bottom,e.bottom),e.left=ya(r.left,e.left),e}),Ma(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=Q(n),a=Ea(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((la(n)!==`body`||pa(a))&&(o=Da(n)),Q(n))
1){let e=Ta(n);s=wa(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:$,getDimensions:function(e){return xa(e)},getOffsetParent:Pa,getDocumentElement:Ea,getScale:wa,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Pa,a=this.getDimensions;return{reference:Fa(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Z(e).direction===`rtl`};function La(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,c=i&&!s,l=c||a?[...$(e)?ja(e):e.contextElement?ja(e.contextElement):[],...ja(t)]:[];l.forEach((e=>{c&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)}));let u,d=null;if(o){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),$(e)&&!s&&d.observe(e),$(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Ta(e):null;return s&&function t(){let r=Ta(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{c&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)})),(e=d)==null||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}var Ra=(e,t,n)=>{let r=new Map,i={platform:Ia,...n},a={...i.platform,_c:r};return Ui(e,t,{...i,platform:a})},za=`div`;function Ba(e=0,t=0,n=0,r=0){if(typeof DOMRect==`function`)return new DOMRect(e,t,n,r);let i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function Va(e){if(!e)return Ba();let{x:t,y:n,width:r,height:i}=e;return Ba(t,n,r,i)}function Ha(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{let n=e,r=t?.(n);return r||!n?Va(r):n.getBoundingClientRect()}}}function Ua(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function Wa(e){let t=window.devicePixelRatio||1;return Math.round(e*t)/t}function Ga(e){return typeof e==`number`?e:Math.max(e.left??0,e.right??0)}function Ka(e,t){return ra(({placement:n})=>{let r=(e?.clientHeight||0)/2,i=typeof t.gutter==`number`?t.gutter+r:t.gutter??r;return{crossAxis:n.split(`-`)[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}})}function qa(e){if(e.flip===!1)return;let t=typeof e.flip==`string`?e.flip.split(` `):void 0;return C(!t||t.every(Ua),!1),na({padding:e.overflowPadding,fallbackPlacements:t})}function Ja(e){if(!(!e.slide&&!e.overlap))return aa({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:oa()})}function Ya(e,t){return sa({padding:e.overflowPadding,apply({elements:n,availableWidth:r,availableHeight:i,rects:a}){if(t?.())return;let o=n.floating,s=Math.round(a.reference.width);r=Math.floor(r),i=Math.floor(i),o.style.setProperty(`--popover-anchor-width`,`${s}px`),o.style.setProperty(`--popover-available-width`,`${r}px`),o.style.setProperty(`--popover-available-height`,`${i}px`),e.sameWidth&&(o.style.width=`${s}px`),e.fitViewport&&(o.style.maxWidth=`${r}px`,o.style.maxHeight=`${i}px`)}})}function Xa(e,t){if(e)return Xi({element:e,padding:t.arrowPadding})}var Za=q(function({store:e,modal:t=!1,portal:n=t,preserveTabOrder:r=!0,autoFocusOnShow:i=!0,wrapperProps:s,fixed:c=!1,flip:l=!0,shift:u=0,slide:d=!0,overlap:f=!1,sameWidth:p=!1,fitViewport:m=!1,gutter:h,arrowPadding:g=4,overflowPadding:_=8,getAnchorRect:v,updatePosition:y,...b}){let x=cr();e||=x,C(e,!1);let S=J(e,`arrowElement`),w=J(e,`anchorElement`),T=J(e,`disclosureElement`),E=J(e,`popoverElement`),D=J(e,`contentElement`),O=J(e,`placement`),k=J(e,`mounted`),A=J(e,`rendered`),j=(0,o.useRef)(null),[M,N]=(0,o.useState)(!1),{portalRef:P,domReady:F}=yt(n,b.portalRef),I=H(v),ee=H(y),L=!!y,te=typeof _==`number`?_:_.top??0,ne=typeof _==`number`?_:_.right??0,re=typeof _==`number`?_:_.bottom??0,R=typeof _==`number`?_:_.left??0;V(()=>{if(!E?.isConnected)return;let t={top:te,right:ne,bottom:re,left:R};E.style.setProperty(`--popover-overflow-padding`,`${Ga(t)}px`);let n=Ha(w,I),r=!1,i=()=>!!(r||!E.isConnected),a=async()=>
1{if(i()||!k)return;S||(j.current=j.current||document.createElement(`div`));let r=S||j.current,a=[Ka(r,{gutter:h,shift:u}),qa({flip:l,overflowPadding:t}),Ja({slide:d,shift:u,overlap:f,overflowPadding:t}),Xa(r,{arrowPadding:g}),Ya({sameWidth:p,fitViewport:m,overflowPadding:t},i)],o=await Ra(n,E,{placement:O,strategy:c?`fixed`:`absolute`,middleware:a});if(i())return;e?.setState(`currentPlacement`,o.placement),N(!0);let s=Wa(o.x),_=Wa(o.y);if(Object.assign(E.style,{top:`0`,left:`0`,transform:`translate3d(${s}px,${_}px,0)`}),r&&o.middlewareData.arrow){let{x:e,y:t}=o.middlewareData.arrow,n=Ri(o.placement),i=r.clientWidth/2,a=r.clientHeight/2,s=e==null?-i:e+i,c=t==null?-a:t+a;E.style.setProperty(`--popover-transform-origin`,{top:`${s}px calc(100% + ${a}px)`,bottom:`${s}px ${-a}px`,left:`calc(100% + ${i}px) ${c}px`,right:`${-i}px ${c}px`}[n]),Object.assign(r.style,{left:e==null?``:`${e}px`,top:t==null?``:`${t}px`,right:``,bottom:``,[n]:`100%`})}},o=La(n,E,async()=>{if(!i()){if(L){if(await ee({updatePosition:a}),i())return;N(!0)}else await a()}},{elementResize:typeof ResizeObserver==`function`});return()=>{r=!0,N(!1),o()}},[e,A,E,S,w,O,k,F,c,l,u,d,f,p,m,h,g,te,ne,re,R,I,L,ee]),V(()=>{if(!k||!F||!E?.isConnected||!D?.isConnected)return;let e=()=>{E.style.zIndex=getComputedStyle(D).zIndex};e();let t=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>cancelAnimationFrame(t)},[k,F,E,D]);let ie=c?`fixed`:`absolute`;return b=W(b,t=>(0,a.jsx)(`div`,{...s,style:{position:ie,top:0,left:0,width:`max-content`,...s?.style},ref:e?.setPopoverElement,children:t}),[e,ie,s]),b=W(b,t=>(0,a.jsx)(ur,{value:e,children:t}),[e]),b={"data-placing":!M||void 0,...b,style:{position:`relative`,...b.style}},b=Pi({store:e,modal:t,portal:n,preserveTabOrder:r,preserveTabOrderAnchor:T||w,autoFocusOnShow:M&&i,...b,portalRef:P}),b}),Qa=Fi(G(function(e){return K(za,Za(e))}),cr),$a=`M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z`,eo=`div`,to=30,no=to/2,ro={top:`rotate(180 ${no} ${no})`,right:`rotate(-90 ${no} ${no})`,bottom:`rotate(0 ${no} ${no})`,left:`rotate(90 ${no} ${no})`};function io(e){let[t,n]=(0,o.useState)(),r=J(e,`contentElement`);return V(()=>{if(!r)return;let e=N(r).getComputedStyle(r);n(e)},[r]),t}function ao(e){let t=``,n=0;for(let r of e){if(r===`(`){n+=1,t+=r;continue}if(r===`)`){n=Math.max(0,n-1),t+=r;continue}t+=n>0?` `:r}return t}var oo=/(?:^|\s)0(?:px)?\s+0(?:px)?\s+0(?:px)?\s+((?:\d*\.)?\d+)px(?=\s|$)/;function so(e,t){let n=t.match(oo);if(!n)return;let r=n[1];if(!r)return;let i=Number.parseFloat(r);if(!i)return;let a=n.index??0,o=a+n[0].length;return{width:i,color:`${e.slice(0,a)} ${e.slice(o)}`.replace(/\binset\b/g,` `).trim()||void 0}}function co(e){if(!e)return;let t=e.getPropertyValue(`box-shadow`);if(!t||t===`none`)return;let n=ao(t),r=0;for(let e=0;e<=n.length;e+=1){if(e!==n.length&&n[e]!==`,`)continue;let i=so(t.slice(r,e),n.slice(r,e));if(i)return i;r=e+1}}var lo=q(function({store:e,size:t=to,borderWidth:n,...r}){let i=sr();e||=i,C(e,!1);let s=J(e,[`currentPlacement`],e=>Ri(e.currentPlacement)),c=ft(),l=io(e),u=l?.getPropertyValue(`background-color`)||`none`,[d,f,p]=(0,o.useMemo)(()=>{if(n!=null)return[n,!1,void 0];if(!l)return[0,!1,void 0];let e=co(l);if(e)return[Math.ceil(e.width),!0,e.color];let t=l.getPropertyValue(`border-${s}-width`);if(t){let e=Number.parseFloat(t);if(!Number.isNaN(e))return[Math.ceil(e),!1,void 0]}return[0,!1,void 0]},[n,l,s]),m=f?l?.getPropertyValue(`color`):l?.getPropertyValue(`border-${s}-color`),h=p||m||`none`,g=d*2*(to/t),_=ro[s];return r={children:(0,o.useMemo)(()=>(0,a.jsx)(`svg`,{display:`block`,viewBox:`0 0 30 30`,children:(0,a.jsxs)(`g`,{transform:_,children:[!f&&(0,a.jsx)(`path`,{fill:`none`,stroke:u,d:`M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z`,mask:`url(#${c})`}),(0,a.jsx)(`path`,{fill:`none`,d:$a,mask:`url(#${c})`}),(0,a.jsx)(`path`,{stroke:`none`,d:$a}),(0,a.jsx)(`mask`,{id:c,maskUnits:`userSpaceOnUse`,children:(0,a.jsx)(`rect`,{x:`-15`,y:`0`,width:`60`,height:`30`,fill:`white`,stroke:`black`})})]})}),[_,f,u,c]),"aria-hidden":!0,...r,ref:U(e.setArrowElement,r.ref),style:{position:`absolute`,fontSize:t,width:`1em`,height:`1em`,pointerEvents:`none`,fill:u,stroke:h,strokeWidth:g,...r.style}},O(r)}),uo=kt(G(function(e){return K(eo,lo(e))}));function fo({popover:e,...t}={}
1){let n=wn(t.store,Sn(e,[`arrowElement`,`anchorElement`,`contentElement`,`popoverElement`,`disclosureElement`])),r=n?.getState(),i=ai({...t,store:n}),a=k(t.placement,r?.placement,`bottom`),o=gn({...i.getState(),placement:a,currentPlacement:a,anchorElement:k(r?.anchorElement,null),popoverElement:k(r?.popoverElement,null),arrowElement:k(r?.arrowElement,null),rendered:Symbol(`rendered`)},i,n);return{...i,...o,setAnchorElement:e=>o.setState(`anchorElement`,e),setPopoverElement:e=>o.setState(`popoverElement`,e),setArrowElement:e=>o.setState(`arrowElement`,e),render:()=>o.setState(`rendered`,Symbol(`rendered`))}}function po(e,t,n){return ht(t,[n.popover]),In(e,n,`placement`),oi(e,t,n)}function mo(e={}){let[t,n]=Ln(fo,e);return po(t,n,e)}var ho=o.createContext(!1),go={zIndexDefault:`_zIndexDefault_1fl3q_5`,zIndexAboveModal:`_zIndexAboveModal_1fl3q_9`,zIndexAboveHelpMenu:`_zIndexAboveHelpMenu_1fl3q_13`,zIndexDefaultAboveSiblingPopover:`_zIndexDefaultAboveSiblingPopover_1fl3q_21`,zIndexAboveModalAndSiblingPopover:`_zIndexAboveModalAndSiblingPopover_1fl3q_27`,zIndexAboveHelpMenuAndSiblingPopover:`_zIndexAboveHelpMenuAndSiblingPopover_1fl3q_31`},_o=({aboveSiblingPopover:e=!1}={})=>{let t=(0,o.useContext)(ho);return t===`helpMenu`?e?go.zIndexAboveHelpMenuAndSiblingPopover:go.zIndexAboveHelpMenu:t?e?go.zIndexAboveModalAndSiblingPopover:go.zIndexAboveModal:e?go.zIndexDefaultAboveSiblingPopover:go.zIndexDefault};export{ft as $,Se as $t,J as A,je as At,yn as B,x as Bt,tr as C,Oe as Ct,zn as D,Ke as Dt,Un as E,P as Et,vn as F,oe as Ft,q as G,I as Gt,Tn as H,_e as Ht,wn as I,ae as It,kt as J,Ae as Jt,At as K,T as Kt,Sn as L,qe as Lt,Dn as M,de as Mt,xn as N,le as Nt,Ln as O,M as Ot,gn as P,fe as Pt,_t as Q,ve as Qt,Cn as R,Je as Rt,er as S,Ee as St,Kn as T,Qe as Tt,Yt as U,te as Ut,bn as V,C as Vt,K as W,Te as Wt,vt as X,we as Xt,mt as Y,Me as Yt,H as Z,xe as Zt,lr as _,k as _t,fo as a,Ne as an,yt as at,cr as b,De as bt,Qa as c,pe as cn,dt as ct,Fi as d,c as dn,W as dt,R as en,lt as et,ri as f,et as ft,pr as g,F as gt,gr as h,_ as ht,po as i,v as in,bt as it,Fn as j,ue as jt,In as k,Be as kt,Za as l,f as ln,ht as lt,vr as m,p as mt,ho as n,ge as nn,ut as nt,uo as o,O as on,V as ot,Sr as p,z as pt,G as q,ye as qt,mo as r,d as rn,U as rt,lo as s,u as sn,pt as st,_o as t,ie as tn,St as tt,Ri as u,me as un,gt as ut,ur as v,D as vt,qn as w,l as wt,ar as x,ke as xt,sr as y,E as yt,_n as z,g as zt};
2//# sourceMappingURL=useModalContextZIndexClass-C-YEo7w8.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.