diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c941b738..3650fba5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,20 +30,37 @@ jobs: - name: Validate CalVer tag and lineage run: | set -euo pipefail - [[ "${GITHUB_REF_NAME}" =~ ^v[0-9]{4}\.([1-9]|1[0-2])\.([0-9]|[1-9][0-9]*)$ ]] || { - echo "release tag must match v{YYYY}.{M}.{N}" >&2 + tag_pattern='^v([0-9]{4})\.([1-9]|1[0-2])\.(0|[1-9][0-9]*)(-(alpha|beta|rc))?$' + [[ "${GITHUB_REF_NAME}" =~ ${tag_pattern} ]] || { + echo "release tag must match v{YYYY}.{M}.{N}[-alpha|-beta|-rc]" >&2 exit 1 } + release_year=$((10#${BASH_REMATCH[1]})) + release_month=${BASH_REMATCH[2]} + release_number=${BASH_REMATCH[3]} git fetch origin main --tags git merge-base --is-ancestor "${GITHUB_SHA}" origin/main || { echo "release tag is not on main" >&2 exit 1 } - newest="$(git tag --list 'v*.*.*' --sort=-v:refname | head -1)" - [ "${newest}" = "${GITHUB_REF_NAME}" ] || { - echo "${GITHUB_REF_NAME} is not the newest release tag (${newest})" >&2 - exit 1 - } + tags="$(git tag --list 'v*.*.*')" + while IFS= read -r tag; do + [[ "${tag}" =~ ${tag_pattern} ]] || continue + year=$((10#${BASH_REMATCH[1]})) + month=${BASH_REMATCH[2]} + number=${BASH_REMATCH[3]} + if ((year == release_year && month == release_month && number == release_number)) && + [ "${tag}" != "${GITHUB_REF_NAME}" ]; then + echo "${tag} shares the release number of ${GITHUB_REF_NAME}" >&2 + exit 1 + fi + if ((year > release_year || + (year == release_year && month > release_month) || + (year == release_year && month == release_month && number > release_number))); then + echo "${GITHUB_REF_NAME} is not the newest release tag (${tag})" >&2 + exit 1 + fi + done <<< "${tags}" - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod @@ -285,6 +302,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -euo pipefail + # Maturity lives in the tag; keep this a full release so /releases/latest resolves. gh release create "${GITHUB_REF_NAME}" \ --title "${GITHUB_REF_NAME}" \ --generate-notes \ diff --git a/README.md b/README.md index 57cb6885..843e52bf 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ export FANOUT_AUTH_CODE_SECRET=$(openssl rand -hex 32) fanout ``` -Set `FANOUT_VERSION=v{YYYY.M}.{N}` to pin a release and `FANOUT_PREFIX` to choose the installation +Set `FANOUT_VERSION=v2026.10.1-alpha` to pin a release and `FANOUT_PREFIX` to choose the installation directory. Native installs bind `127.0.0.1:7520`; set `FANOUT_ADDR=:7520` for remote access, then follow the same first-boot setup. @@ -205,16 +205,18 @@ generated assets, hooks, and project layout. ## Releases -Versions are CalVer — `v{YYYY.M}.{N}`, numbered from 0 within each month. Tagged releases publish +Versions are CalVer — `vYYYY.M.N[-alpha|-beta|-rc]`, numbered from 0 within each month across all +maturity suffixes. Fanout is currently alpha (for example, `v2026.10.1-alpha`); GA has no suffix. +Container tags omit the leading `v`, and every release moves `latest`. Tagged releases publish identical manifests to Docker Hub (`labstack/fanout`) and GHCR (`ghcr.io/labstack/fanout`); GHCR is canonical and also carries development images. | Image tag | Points at | | --- | --- | | `labstack/fanout:latest` | the newest release, mirrored on Docker Hub | -| `labstack/fanout:2026.8.0` | that exact release, mirrored on Docker Hub | +| `labstack/fanout:2026.10.1-alpha` | that exact release, mirrored on Docker Hub | | `ghcr.io/labstack/fanout:latest` | the newest release | -| `ghcr.io/labstack/fanout:2026.8.0` | that exact release | +| `ghcr.io/labstack/fanout:2026.10.1-alpha` | that exact release | | `ghcr.io/labstack/fanout:main` | the tip of `main` | | `ghcr.io/labstack/fanout:sha-` | one specific commit | diff --git a/docs/images/system-overview-dark.png b/docs/images/system-overview-dark.png index 13efb960..66218574 100644 Binary files a/docs/images/system-overview-dark.png and b/docs/images/system-overview-dark.png differ diff --git a/docs/images/system-overview-light.png b/docs/images/system-overview-light.png index 88273477..87244994 100644 Binary files a/docs/images/system-overview-light.png and b/docs/images/system-overview-light.png differ diff --git a/docs/release.md b/docs/release.md index f08bc1d3..27edeed5 100644 --- a/docs/release.md +++ b/docs/release.md @@ -13,9 +13,14 @@ Fanout publishes one release from a verified commit on `main`. A release contain ## Version contract -Tags use unpadded CalVer: `vYYYY.M.N`. The first release in a month is `.0`. -Container tags omit the leading `v`, so `v2026.8.0` publishes -`ghcr.io/labstack/fanout:2026.8.0` and `labstack/fanout:2026.8.0`. +Tags use unpadded CalVer: `vYYYY.M.N[-alpha|-beta|-rc]`. The suffix states product +maturity; GA has no suffix. The first release in a month is `.0`, and every +release increments `N` regardless of suffix. Fanout is currently alpha; after +`v2026.10.0`, the next release is `v2026.10.1-alpha`. +Container tags omit the leading `v`, so `v2026.10.1-alpha` publishes +`ghcr.io/labstack/fanout:2026.10.1-alpha` and `labstack/fanout:2026.10.1-alpha`. +Every release moves `latest`. GitHub Releases are not marked as prereleases: +the tag carries maturity, and the installer's `/releases/latest` must resolve. Only release and `latest` tags are mirrored to Docker Hub; `main` and commit tags remain GHCR-only. @@ -60,15 +65,15 @@ also be verified directly: ```sh sha256sum -c SHA256SUMS -gh attestation verify fanout_v2026.8.0_linux_amd64.tar.gz \ +gh attestation verify fanout_v2026.10.1-alpha_linux_amd64.tar.gz \ --repo labstack/fanout ``` For containers, pin or record the digest returned by the registry: ```sh -docker buildx imagetools inspect ghcr.io/labstack/fanout:2026.8.0 -docker buildx imagetools inspect docker.io/labstack/fanout:2026.8.0 +docker buildx imagetools inspect ghcr.io/labstack/fanout:2026.10.1-alpha +docker buildx imagetools inspect docker.io/labstack/fanout:2026.10.1-alpha ``` ## Supply-chain scope diff --git a/internal/mcp/apps/panels.html b/internal/mcp/apps/panels.html index ea0f8c2d..78f5400b 100644 --- a/internal/mcp/apps/panels.html +++ b/internal/mcp/apps/panels.html @@ -47,7 +47,7 @@ `},ou=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},su=function(){A.useEffect(function(){return document.body.setAttribute(iu,(ou()+1).toString()),function(){var e=ou()-1;e<=0?document.body.removeAttribute(iu):document.body.setAttribute(iu,e.toString())}},[])},cu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;su();var a=A.useMemo(function(){return nu(i)},[i]);return A.createElement(ru,{styles:au(a,!t,i,n?``:`!important`)})},lu=!1;if(typeof window<`u`)try{var uu=Object.defineProperty({},"passive",{get:function(){return lu=!0,!0}});window.addEventListener(`test`,uu,uu),window.removeEventListener(`test`,uu,uu)}catch{lu=!1}var du=lu?{passive:!1}:!1,fu=function(e){return e.tagName===`TEXTAREA`},pu=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!fu(e)&&n[t]===`visible`)},mu=function(e){return pu(e,`overflowY`)},hu=function(e){return pu(e,`overflowX`)},gu=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),yu(e,r)){var i=bu(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_u=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},vu=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},yu=function(e,t){return e===`v`?mu(t):hu(t)},bu=function(e,t){return e===`v`?_u(t):vu(t)},xu=function(e,t){return e===`h`&&t===`rtl`?-1:1},Su=function(e,t,n,r,i){var a=xu(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=bu(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&yu(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Cu=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wu=function(e){return[e.deltaX,e.deltaY]},Tu=function(e){return e&&`current`in e?e.current:e},Eu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Du=function(e){return` .block-interactivity-${e} {pointer-events: none;} .allow-interactivity-${e} {pointer-events: all;} -`},Ou=0,ku=[];function Au(e){var t=A.useRef([]),n=A.useRef([0,0]),r=A.useRef(),i=A.useState(Ou++)[0],a=A.useState(Ql)[0],o=A.useRef(e);A.useEffect(function(){o.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=El([e.lockRef.current],(e.shards||[]).map(Tu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=A.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Cu(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=gu(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=gu(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Su(h,t,e,h===`h`?s:c,!0)},[]),c=A.useCallback(function(e){var n=e;if(ku.length&&ku[ku.length-1]===a){var r=`deltaY`in n?wu(n):Cu(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Eu(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Tu).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=A.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ju(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=A.useCallback(function(e){n.current=Cu(e),r.current=void 0},[]),d=A.useCallback(function(t){l(t.type,wu(t),t.target,s(t,e.lockRef.current))},[]),f=A.useCallback(function(t){l(t.type,Cu(t),t.target,s(t,e.lockRef.current))},[]);A.useEffect(function(){return ku.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,du),document.addEventListener(`touchmove`,c,du),document.addEventListener(`touchstart`,u,du),function(){ku=ku.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,du),document.removeEventListener(`touchmove`,c,du),document.removeEventListener(`touchstart`,u,du)}},[]);var p=e.removeScrollBar,m=e.inert;return A.createElement(A.Fragment,null,m?A.createElement(a,{styles:Du(i)}):null,p?A.createElement(cu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ju(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Mu=Hl(Ul,Au),Nu=A.forwardRef(function(e,t){return A.createElement(Gl,wl({},e,{ref:t,sideCar:Mu}))});Nu.classNames=Gl.classNames;function Pu({keepMounted:e,keepMountedMode:t=`activity`,opened:n,onClose:r,id:i,transitionProps:a,onExitTransitionEnd:o,onEnterTransitionEnd:s,trapFocus:c,closeOnEscape:l,returnFocus:u,closeOnClickOutside:d,withinPortal:f,portalProps:p,lockScroll:m,children:h,zIndex:g,shadow:_,padding:v,__vars:y,unstyled:b,removeScrollProps:x,__handledEscapeEvents:S,...C}){let{_id:w,titleMounted:T,bodyMounted:E,shouldLockScroll:D,setTitleMounted:O,setBodyMounted:k}=Cl({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u,handledEscapeEvents:S}),{key:A,...j}=x||{};return(0,R.jsx)(Cc,{...p,withinPortal:f,children:(0,R.jsx)(bl,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:o,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${w}-title`,getBodyId:()=>`${w}-body`,titleMounted:T,bodyMounted:E,setTitleMounted:O,setBodyMounted:k,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,R.jsx)(Nu,{enabled:D&&m,...j,children:(0,R.jsx)(B,{...C,id:w,__vars:{...y,"--mb-z-index":(g||I(`modal`)).toString(),"--mb-shadow":ue(_),"--mb-padding":oe(v)},children:h})},A)})})}Pu.displayName=`@mantine/core/ModalBase`;function Fu(){let e=xl();return(0,A.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Iu={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function Lu({className:e,...t}){let n=Fu(),r=xl();return(0,R.jsx)(B,{id:n,className:it({[Iu.body]:!r.unstyled},e),...t})}Lu.displayName=`@mantine/core/ModalBaseBody`;function Ru({className:e,onClick:t,...n}){let r=xl();return(0,R.jsx)(ml,{...n,onClick:e=>{r.onClose(),t?.(e)},className:it({[Iu.close]:!r.unstyled},e),unstyled:r.unstyled})}Ru.displayName=`@mantine/core/ModalBaseCloseButton`;function zu({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=xl();return(0,R.jsx)(kc,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,R.jsx)(`div`,{...n,className:it({[Iu.inner]:!s.unstyled},n.className),children:(0,R.jsx)(Ic,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,R.jsx)(ic,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:it({[Iu.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}zu.displayName=`@mantine/core/ModalBaseContent`;function Bu({className:e,...t}){let n=xl();return(0,R.jsx)(B,{component:`header`,className:it({[Iu.header]:!n.unstyled},e),...t})}Bu.displayName=`@mantine/core/ModalBaseHeader`;var Vu={duration:200,timingFunction:`ease`,transition:`fade`};function Hu(e){let t=xl();return{...Vu,...t.transitionProps,...e}}function Uu({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=xl(),o=Hu(t);return(0,R.jsx)(kc,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,R.jsx)(_c,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}Uu.displayName=`@mantine/core/ModalBaseOverlay`;function Wu(){let e=xl();return(0,A.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function Gu({className:e,...t}){let n=Wu(),r=xl();return(0,R.jsx)(B,{component:`h2`,className:it({[Iu.title]:!r.unstyled},e),id:n,...t})}Gu.displayName=`@mantine/core/ModalBaseTitle`;function Ku({children:e}){return(0,R.jsx)(R.Fragment,{children:e})}var qu=(0,A.createContext)({size:`sm`}),Ju=xr(e=>{let t=z(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,A.use)(qu),{resolvedClassNames:l,resolvedStyles:u}=wn({classNames:a,styles:o,props:t});return(0,R.jsx)(ml,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});Ju.displayName=`@mantine/core/InputClearButton`;var Yu={xs:7,sm:8,md:10,lg:12,xl:15};function Xu({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,R.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:Yu[i]},children:[o,n||r]}):n===null?null:n||o||r}var Zu=(0,A.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Qu={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},$u=nt((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${ce(t)} - ${E(2)})`}})),ed=xr(e=>{let t=z(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=z(`InputDescription`,null,t),f=(0,A.use)(Zu),p=zn({name:[`InputWrapper`,c],props:t,classes:Qu,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:$u}),m=l&&f?.getStyles||p;return(0,R.jsx)(B,{component:`p`,...m(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});ed.classes=Qu,ed.varsResolver=$u,ed.displayName=`@mantine/core/InputDescription`;var td=nt((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${ce(t)} - ${E(2)})`}})),nd=xr(e=>{let t=z(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=zn({name:[`InputWrapper`,l],props:t,classes:Qu,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:td}),p=(0,A.use)(Zu),m=u&&p?.getStyles||f;return(0,R.jsx)(B,{component:`p`,...m(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});nd.classes=Qu,nd.varsResolver=td,nd.displayName=`@mantine/core/InputError`;var rd={labelElement:`label`},id=nt((e,{size:t})=>({label:{"--input-label-size":ce(t),"--input-asterisk-color":void 0}})),ad=xr(e=>{let t=z(`InputLabel`,rd,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=zn({name:[`InputWrapper`,p],props:t,classes:Qu,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:id}),v=(0,A.use)(Zu),y=v?.getStyles||_,b=g.component||c,x=typeof b!=`string`||b===`label`;return(0,R.jsxs)(B,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:x?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,R.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});ad.classes=Qu,ad.varsResolver=id,ad.displayName=`@mantine/core/InputLabel`;var od=xr(e=>{let t=z(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t,p=zn({name:[`InputPlaceholder`,c],props:t,classes:Qu,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`});return(0,R.jsx)(B,{...p(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});od.classes=Qu,od.displayName=`@mantine/core/InputPlaceholder`;var sd=nt((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${ce(t)} - ${E(2)})`}})),cd=xr(e=>{let t=z(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=zn({name:[`InputWrapper`,l],props:t,classes:Qu,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:sd}),p=(0,A.use)(Zu),m=u&&p?.getStyles||f;return(0,R.jsx)(B,{component:`p`,...m(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});cd.classes=Qu,cd.varsResolver=sd,cd.displayName=`@mantine/core/InputSuccess`;function ld(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var ud={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},dd=nt((e,{size:t})=>({label:{"--input-label-size":ce(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${ce(t)} - ${E(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${ce(t)} - ${E(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${ce(t)} - ${E(2)})`}})),fd=xr(e=>{let t=z(`InputWrapper`,ud,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:h,description:g,labelProps:_,descriptionProps:v,errorProps:y,successProps:b,labelElement:x,children:S,withAsterisk:C,id:w,required:T,__stylesApiProps:E,mod:D,attributes:O,...k}=t,j=zn({name:[`InputWrapper`,u],props:E||t,classes:Qu,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:dd}),M={size:c,variant:l,__staticSelector:u},N=Le(w),P=typeof C==`boolean`?C:T,F=y?.id||`${N}-error`,ee=b?.id||`${N}-success`,te=v?.id||`${N}-description`,ne=N,I=!!m&&typeof m!=`boolean`,re=!!h&&typeof h!=`boolean`&&!m,ie=!!g,ae=I&&f.includes(`error`),oe=re&&f.includes(`error`),se=ie&&f.includes(`description`),ce=`${ae?F:``} ${oe?ee:``} ${se?te:``}`,le=ce.trim().length>0?ce.trim():void 0,ue=_?.id||`${N}-label`,de=p&&(0,R.jsx)(ad,{labelElement:x,id:ue,htmlFor:ne,required:P,...M,..._,children:p},`label`),fe=ie&&(0,R.jsx)(ed,{...v,...M,size:v?.size||M.size,id:v?.id||te,children:g},`description`),pe=(0,R.jsx)(A.Fragment,{children:d(S)},`input`),L=I&&(0,A.createElement)(nd,{...y,...M,size:y?.size||M.size,key:`error`,id:y?.id||F},m),me=re&&(0,A.createElement)(cd,{...b,...M,size:b?.size||M.size,key:`success`,id:b?.id||ee},h),he=f.map(e=>{switch(e){case`label`:return de;case`input`:return pe;case`description`:return fe;case`error`:return L||me;default:return null}});return(0,R.jsx)(Zu,{value:{getStyles:j,describedBy:le,inputId:ne,labelId:de&&f.includes(`label`)?ue:void 0,...ld(f,{hasDescription:ie,hasError:I||re})},children:(0,R.jsx)(B,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},D],id:x===`label`?void 0:w,...j(`root`),...k,children:he})})});fd.classes=Qu,fd.varsResolver=dd,fd.displayName=`@mantine/core/InputWrapper`;var pd={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},md=nt((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":ae(t.size,`input-height`),"--input-fz":ce(t.size),"--input-radius":t.radius===void 0?void 0:se(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:E(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:E(t.rightSectionWidth),"--input-padding-y":t.multiline?ae(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),hd=Cr(e=>{let t=z(`Input`,pd,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:h,leftSectionProps:g,leftSectionWidth:_,rightSection:v,rightSectionProps:y,rightSectionWidth:b,rightSectionPointerEvents:x,leftSectionPointerEvents:S,variant:C,vars:w,pointer:T,multiline:E,radius:D,id:O,withAria:k,withErrorStyles:j,withSuccessStyles:M,mod:N,inputSize:P,attributes:F,__clearSection:ee,__clearable:te,__clearSectionMode:ne,__defaultRightSection:I,loading:re,loadingPosition:ie,__bottomSection:ae,__bottomSectionProps:oe,rootRef:se,dir:ce,...le}=t,{styleProps:ue,rest:de}=qn(le),fe=(0,A.use)(Zu),pe={offsetBottom:fe?.offsetBottom,offsetTop:fe?.offsetTop},L=zn({name:[`Input`,c],props:l||t,classes:Qu,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:F,stylesCtx:pe,rootSelector:`wrapper`,vars:w,varsResolver:md}),me=k?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":fe?.describedBy,id:fe?.inputId||O}:{},he=re?(0,R.jsx)(tl,{size:ie===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,ge=re&&ie===`left`?he:h,_e=Xu({__clearable:te,__clearSection:ee,rightSection:re&&ie===`right`?he:v,__defaultRightSection:I,size:u,__clearSectionMode:ne});return(0,R.jsx)(qu,{value:{size:u||`sm`},children:(0,R.jsxs)(B,{ref:se,dir:ce,...L(`wrapper`),...ue,...d,mod:[{error:!!f&&j,success:!!p&&!f&&M,pointer:T,disabled:m,multiline:E,withRightSection:!!_e,withLeftSection:!!ge,withBottomSection:!!ae},N],variant:C,size:u,children:[ge&&(0,R.jsx)(`div`,{...g,"data-position":`left`,...L(`section`,{className:g?.className,style:g?.style}),children:ge}),(0,R.jsx)(B,{component:`input`,...de,...me,required:s,mod:{disabled:m,error:!!f&&j,success:!!p&&!f&&M},variant:C,__size:P,...L(`input`)}),ae&&(0,R.jsx)(`div`,{...oe,...L(`bottomSection`,{className:oe?.className,style:oe?.style}),children:ae}),_e&&(0,R.jsx)(`div`,{...y,"data-position":`right`,...L(`section`,{className:y?.className,style:y?.style}),children:_e})]})})});hd.classes=Qu,hd.varsResolver=md,hd.Wrapper=fd,hd.Label=ad,hd.Error=nd,hd.Success=cd,hd.Description=ed,hd.Placeholder=od,hd.ClearButton=Ju,hd.displayName=`@mantine/core/Input`;function gd(e,t,n){let r=z([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:M}=qn(A),N={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...M,classNames:l,styles:u,unstyled:f,wrapperProps:{...N,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var _d={__staticSelector:`InputBase`,withAria:!0,size:`sm`},vd=Cr(e=>{let{inputProps:t,wrapperProps:n,...r}=gd(`InputBase`,_d,e);return(0,R.jsx)(hd.Wrapper,{...n,children:(0,R.jsx)(hd,{...t,...r})})});vd.classes={...hd.classes,...hd.Wrapper.classes},vd.displayName=`@mantine/core/InputBase`;function yd({style:e,size:t=16,...n}){return(0,R.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:E(t),height:E(t),display:`block`},...n,children:(0,R.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}yd.displayName=`@mantine/core/AccordionChevron`;var bd={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},xd=nt((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:se(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Sd=xr(e=>{let t=z(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=zn({name:`Alert`,classes:bd,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:xd}),C=Le(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,R.jsx)(B,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,R.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,R.jsx)(`div`,{...S(`icon`),children:p}),(0,R.jsxs)(`div`,{...S(`body`),children:[u&&(0,R.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,R.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,R.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,R.jsx)(ml,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Sd.classes=bd,Sd.varsResolver=xd,Sd.displayName=`@mantine/core/Alert`;var Cd={root:`m_b6d8b162`};function wd(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Td={inherit:!1},Ed=nt((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":ce(i),"--text-lh":le(i),"--text-gradient":t===`gradient`?Tt(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Dd=Cr(e=>{let t=z(`Text`,Td,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t,x=zn({name:[`Text`,l],props:t,classes:Cd,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Ed});return(0,R.jsx)(B,{...x(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{truncate:wd(r),lineClamp:typeof n==`number`,inline:i,inherit:a},_],size:v,...b})});Dd.classes=Cd,Dd.varsResolver=Ed,Dd.displayName=`@mantine/core/Text`;var Od={root:`m_849cf0da`},kd={underline:`hover`},Ad=Cr(e=>{let{underline:t,className:n,unstyled:r,mod:i,...a}=z(`Anchor`,kd,e);return(0,R.jsx)(Dd,{component:`a`,className:it({[Od.root]:!r},n),...a,mod:[{underline:t},i],__staticSelector:`Anchor`,unstyled:r})});Ad.classes=Od,Ad.displayName=`@mantine/core/Anchor`;function jd(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>jd(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function Md(e){return e?e.map(e=>jd(e)):[]}function Nd(e){return e.reduce((e,t)=>`group`in t?{...e,...Nd(t.items)}:(e[`${t.value}`]=t,e),{})}var Pd={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Fd={error:null},Id=nt((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":ae(t,`combobox-chevron-size`),"--combobox-chevron-color":n?St(n,e):void 0}})),Ld=xr(e=>{let t=z(`ComboboxChevron`,Fd,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=zn({name:`ComboboxChevron`,classes:Pd,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:Id,attributes:u,rootSelector:`chevron`});return(0,R.jsx)(B,{component:`svg`,...f,...p(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},d],children:(0,R.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});Ld.classes=Pd,Ld.varsResolver=Id,Ld.displayName=`@mantine/core/ComboboxChevron`;var[Rd,zd]=M(`Combobox component was not found in tree`);function Bd({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,R.jsx)(hd.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Bd.displayName=`@mantine/core/ComboboxClearButton`;var Vd=xr(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=z(`ComboboxDropdown`,null,e),s=zd();return(0,R.jsx)(qc.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});Vd.classes=Pd,Vd.displayName=`@mantine/core/ComboboxDropdown`;var Hd={refProp:`ref`},Ud=xr(e=>{let{children:t,refProp:n,ref:r}=z(`ComboboxDropdownTarget`,Hd,e);if(zd(),!j(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,R.jsx)(qc.Target,{ref:r,refProp:n,children:t})});Ud.displayName=`@mantine/core/ComboboxDropdownTarget`;var Wd=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ComboboxEmpty`,null,e),s=zd();return(0,R.jsx)(B,{...s.getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});Wd.classes=Pd,Wd.displayName=`@mantine/core/ComboboxEmpty`;function Gd({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=zd(),[c,l]=(0,A.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var Kd={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},qd=xr(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=z(`ComboboxEventsTarget`,Kd,e),u=tt(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=zd(),f=Gd({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s});return(0,A.cloneElement)(u,{...f,...l,[n]:Ve(c,d.store.targetRef,Ze(u))})});qd.displayName=`@mantine/core/ComboboxEventsTarget`;var Jd=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ComboboxFooter`,null,e),s=zd();return(0,R.jsx)(B,{...s.getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Jd.classes=Pd,Jd.displayName=`@mantine/core/ComboboxFooter`;var Yd=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=z(`ComboboxGroup`,null,e),u=zd(),d=Le(c),f=s!=null&&s!==!1&&s!==``;return(0,R.jsxs)(B,{role:`group`,"aria-labelledby":f?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[f&&(0,R.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});Yd.classes=Pd,Yd.displayName=`@mantine/core/ComboboxGroup`;var Xd=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ComboboxHeader`,null,e),s=zd();return(0,R.jsx)(B,{...s.getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Xd.classes=Pd,Xd.displayName=`@mantine/core/ComboboxHeader`;function Zd({value:e,valuesDivider:t=`,`,...n}){return(0,R.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}Zd.displayName=`@mantine/core/ComboboxHiddenInput`;var Qd=xr(e=>{let t=z(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...h}=t,g=zd(),_=(0,A.useId)(),v=c||_;return(0,R.jsx)(B,{...g.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),"aria-disabled":f||void 0,...h,id:v,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{f?e.preventDefault():(g.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{g.resetSelectionOnOptionHover&&g.store.resetSelectedOption(),d?.(e)}})});Qd.classes=Pd,Qd.displayName=`@mantine/core/ComboboxOption`;var $d=xr(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=z(`ComboboxOptions`,null,e),l=zd(),u=Le(a);return(0,A.useEffect)(()=>{l.store.setListId(u)},[u]),(0,R.jsx)(B,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});$d.classes=Pd,$d.displayName=`@mantine/core/ComboboxOptions`;var ef={withAriaAttributes:!0,withKeyboardNavigation:!0},tf=xr(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=z(`ComboboxSearch`,ef,e),f=zd(),p=f.getStyles(`search`),m=Gd({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,R.jsx)(hd,{ref:Ve(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});tf.classes=Pd,tf.displayName=`@mantine/core/ComboboxSearch`;var nf={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},rf=xr(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=z(`ComboboxTarget`,nf,e),u=tt(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=zd(),f=Gd({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),p=(0,A.cloneElement)(u,{...f,...l});return(0,R.jsx)(qc.Target,{refProp:n,ref:Ve(c,d.store.targetRef),children:p})});rf.displayName=`@mantine/core/ComboboxTarget`;function af(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function of(e,t,n){for(let n=e+1;n{s||(c(!0),i?.(e))},[c,i,s]),_=(0,A.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,A.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,A.useCallback)(()=>{let e=et(f.current);Qe(`#${l.current} [data-combobox-selected]`,e)?.removeAttribute(`data-combobox-selected`)},[]),b=(0,A.useCallback)(e=>{let t=et(f.current),n=Qe(`#${l.current}`,t),r=n?$e(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,A.useCallback)(()=>{let e=et(f.current),t=Qe(`#${l.current} [data-combobox-active]`,e);if(t){let n=$e(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return b(n)}return b(0)},[b]),S=(0,A.useCallback)(()=>{let e=et(f.current),t=$e(`#${l.current} [data-combobox-option]`,e);return b(of(u.current,t,a))},[b,a]),C=(0,A.useCallback)(()=>{let e=et(f.current),t=$e(`#${l.current} [data-combobox-option]`,e);return b(af(u.current,t,a))},[b,a]),w=(0,A.useCallback)(()=>{let e=et(f.current),t=$e(`#${l.current} [data-combobox-option]`,e);return b(sf(t))},[b]),T=(0,A.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=et(f.current),r=$e(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o});return}h.current=window.setTimeout(()=>{let n=et(f.current),r=$e(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),E=(0,A.useCallback)(()=>{u.current=-1,y()},[y]),D=(0,A.useCallback)(()=>{let e=et(f.current);($e(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),O=(0,A.useCallback)(e=>{l.current=e},[]),k=(0,A.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),j=(0,A.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),M=(0,A.useCallback)(()=>u.current,[]);return(0,A.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:M,selectOption:b,selectFirstOption:w,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:E,updateSelectedOptionIndex:T,listId:l.current,setListId:O,clickSelectedOption:D,searchRef:d,focusSearchInput:k,targetRef:f,focusTarget:j}}var lf={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},uf=nt((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":ce(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:E(n),"--combobox-option-fz":ce(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)}})),df=e=>{let t=z(`Combobox`,lf,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,floatingHeight:g,middlewares:_,...v}=t,y=g===`viewport`?{..._,flip:!1,size:{...typeof _?.size==`object`?_.size:{},padding:typeof _?.size==`object`&&_.size.padding!==void 0?_.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=_?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:_,b=cf(),x=o||b,S=zn({name:p||`Combobox`,classes:Pd,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:uf}),C=()=>{l?.(),x.closeDropdown()};return(0,R.jsx)(Rd,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,R.jsx)(qc,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};df.extend=e=>e,df.classes=Pd,df.varsResolver=uf,df.displayName=`@mantine/core/Combobox`,df.Target=rf,df.Dropdown=Vd,df.Options=$d,df.Option=Qd,df.Search=tf,df.Empty=Wd,df.Chevron=Ld,df.Footer=Jd,df.Header=Xd,df.EventsTarget=qd,df.DropdownTarget=Ud,df.Group=Yd,df.ClearButton=Bd,df.HiddenInput=Zd;function ff({size:e,style:t,...n}){let r=e===void 0?t:{width:E(e),height:E(e),...t};return(0,R.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:r,"aria-hidden":!0,...n,children:(0,R.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function pf(e){return`group`in e}function mf({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a0)return!1;return!0}function gf(e,t=new Set){if(Array.isArray(e))for(let n of e)if(pf(n))gf(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function _f(e,t){return Array.isArray(e)?e.includes(t):e===t}function vf({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!pf(e)){let s=_f(r,e.value),c=t&&(s?(0,R.jsx)(ff,{className:Pd.optionsDropdownCheckIcon}):n?(0,R.jsx)(`div`,{className:Pd.optionsDropdownCheckPlaceholder}):null),l=(0,R.jsxs)(R.Fragment,{children:[i===`left`&&c,(0,R.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,R.jsx)(df.Option,{value:e.value,disabled:e.disabled,className:it({[Pd.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,R.jsx)(vf,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,R.jsx)(df.Group,{label:e.group,children:s})}function yf({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=zd();gf(e);let x=typeof i==`string`?(r||mf)({options:e,search:l?i:``,limit:a??1/0}):e,S=hf(x),C=x.map((e,t)=>(0,R.jsx)(vf,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},pf(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,R.jsx)(df.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,R.jsxs)(df.Options,{labelledBy:g,"aria-label":y,children:[c?(0,R.jsx)(Ys.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,R.jsx)(df.Empty,{children:m})]})})}function bf(e,t,n,r){if(t===n||r===`before`&&n===t+1||r===`after`&&n===t-1)return e;let i=e.slice(),[a]=i.splice(t,1),o=t{let t=e.lastElementChild;return t?t instanceof HTMLInputElement?t:t.querySelector(`input`):null},Sf=(e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let e=i.current;e&&(i.current=null,Sf(o.current,e.expectedValue)&&e.container?.querySelector(`[data-mantine-pill-index="${e.index}"]`)?.focus())});let s=(0,A.useCallback)(e=>{a.current=e},[]);return{getPillProps:e=>{if(n)return{draggable:!0,tabIndex:-1,"data-mantine-pill-index":e,"aria-keyshortcuts":`Alt+ArrowLeft Alt+ArrowRight`,onMouseDown:e=>{e.button===0&&e.stopPropagation()},onDragStart:t=>{t.stopPropagation(),t.dataTransfer.effectAllowed=`move`,t.dataTransfer.setData(`text/plain`,String(e)),r.current.draggedIndex=e;let n=t.currentTarget,i=n.getBoundingClientRect(),a=n.cloneNode(!0);a.removeAttribute(`data-dragging`),a.removeAttribute(`data-drag-over`),a.style.position=`fixed`,a.style.top=`-9999px`,a.style.left=`-9999px`,a.style.width=`${i.width}px`,a.style.height=`${i.height}px`,a.style.pointerEvents=`none`,document.body.appendChild(a),t.dataTransfer.setDragImage(a,t.clientX-i.left,t.clientY-i.top),setTimeout(()=>a.parentNode?.removeChild(a),0),requestAnimationFrame(()=>{n.setAttribute(`data-dragging`,`true`)})},onDragOver:t=>{let{draggedIndex:n}=r.current;if(n===null||n===e)return;let i=t.currentTarget,a=i.getBoundingClientRect(),o=t.clientX-a.left,s=(getComputedStyle(i).direction===`rtl`?o>a.width/2:o{let t=e.currentTarget,n=e.relatedTarget;n&&t.contains(n)||(t.removeAttribute(`data-drag-over`),r.current.currentDropTarget===t&&(r.current.currentDropTarget=null))},onDrop:n=>{n.preventDefault(),n.stopPropagation();let i=n.currentTarget,a=i.getAttribute(`data-drag-over`);i.removeAttribute(`data-drag-over`);let{draggedIndex:s}=r.current;if(s!==null&&a&&s!==e){let n=bf(o.current,s,e,a);n!==o.current&&t(n)}r.current.draggedIndex=null,r.current.currentDropTarget=null},onDragEnd:e=>{e.currentTarget.removeAttribute(`data-dragging`);let t=r.current.currentDropTarget;t&&t.removeAttribute(`data-drag-over`),r.current.draggedIndex=null,r.current.currentDropTarget=null},onKeyDown:n=>{if(n.key!==`ArrowLeft`&&n.key!==`ArrowRight`)return;let r=n.currentTarget,a=getComputedStyle(r).direction===`rtl`?n.key===`ArrowLeft`:n.key===`ArrowRight`,s=a?e+1:e-1;if(n.altKey){if(s<0||s>=o.current.length)return;n.preventDefault(),n.stopPropagation();let c=a?`after`:`before`,l=bf(o.current,e,s,c);if(l===o.current)return;i.current={container:r.parentElement,index:s,expectedValue:l},t(l);return}if(s<0)return;let c=r.parentElement;if(c){if(n.preventDefault(),n.stopPropagation(),s>=o.current.length){xf(c)?.focus();return}c.querySelector(`[data-mantine-pill-index="${s}"]`)?.focus()}}}},getListProps:()=>n?{ref:s}:{},handleInputKeyDown:e=>{if(!n||e.key!==`ArrowLeft`)return;let t=e.currentTarget;if(!(t.value.length===0||t.selectionStart===0&&t.selectionEnd===0))return;let r=a.current;if(!r)return;let i=r.querySelectorAll(`[data-mantine-pill-index]`);i.length!==0&&(e.preventDefault(),i[i.length-1].focus())}}}function wf({id:e,label:t,labelProps:n,inputWrapperOrder:r}){if(t&&(!r||r.includes(`label`)))return n?.id||`${e}-label`}var Tf={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},Ef=nt((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":ae(a,`badge-height`),"--badge-padding-x":ae(a,`badge-padding-x`),"--badge-fz":ae(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:se(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?St(n,e):void 0}}}),Df=Cr(e=>{let t=z(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=zn({name:`Badge`,props:t,classes:Tf,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Ef});return(0,R.jsxs)(B,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,R.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,R.jsx)(`span`,{...x(`label`),children:p}),f&&(0,R.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});Df.classes=Tf,Df.varsResolver=Ef,Df.displayName=`@mantine/core/Badge`;var Of={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},kf={orientation:`horizontal`},Af=nt((e,{borderWidth:t})=>({group:{"--button-border-width":E(t)}})),jf=xr(e=>{let t=z(`ButtonGroup`,kf,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=z(`ButtonGroup`,kf,e),p=zn({name:`ButtonGroup`,props:t,classes:Of,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Af,rootSelector:`group`});return(0,R.jsx)(B,{...p(`group`),mod:[{orientation:s},u],role:`group`,...f})});jf.classes=Of,jf.varsResolver=Af,jf.displayName=`@mantine/core/ButtonGroup`;var Mf=nt((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":ae(o,`section-height`),"--section-padding-x":ae(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?ce(o.replace(`compact-`,``)):ce(o),"--section-radius":t===void 0?void 0:se(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Nf=xr(e=>{let t=z(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t,p=zn({name:`ButtonGroupSection`,props:t,classes:Of,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Mf,rootSelector:`groupSection`});return(0,R.jsx)(B,{...p(`groupSection`),...f})});Nf.classes=Of,Nf.varsResolver=Mf,Nf.displayName=`@mantine/core/ButtonGroupSection`;var Pf={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${E(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Ff=nt((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":ae(a,`button-height`),"--button-padding-x":ae(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?ce(a.replace(`compact-`,``)):ce(a),"--button-radius":t===void 0?void 0:se(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),If=Cr(e=>{let t=z(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=zn({name:`Button`,props:t,classes:Of,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Ff}),T=!!c,E=!!l;return(0,R.jsxs)($s,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,R.jsx)(kc,{mounted:p,transition:Pf,duration:150,children:e=>(0,R.jsx)(B,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,R.jsx)(tl,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,R.jsxs)(`span`,{...w(`inner`),children:[c&&(0,R.jsx)(B,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,R.jsx)(B,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,R.jsx)(B,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});If.classes=Of,If.varsResolver=Ff,If.displayName=`@mantine/core/Button`,If.Group=jf,If.GroupSection=Nf;function Lf(e){let t=e.currentTarget;return et(t).activeElement!==t}var Rf={root:`m_4451eb3a`},zf=Cr(e=>{let t=z(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=zn({name:`Center`,props:t,classes:Rf,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,R.jsx)(B,{mod:[{inline:c},l],...f(`root`),...d})});zf.classes=Rf,zf.displayName=`@mantine/core/Center`;var Bf={root:`m_b183c0a2`},Vf=nt((e,{color:t})=>({root:{"--code-bg":t?St(t,e):void 0}})),Hf=xr(e=>{let t=z(`Code`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,block:l,mod:u,attributes:d,...f}=t,p=zn({name:`Code`,props:t,classes:Bf,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Vf});return(0,R.jsx)(B,{component:l?`pre`:`code`,mod:[{block:l},u],...p(`root`),...f,dir:`ltr`})});Hf.classes=Bf,Hf.varsResolver=Vf,Hf.displayName=`@mantine/core/Code`;var[Uf,Wf]=M(`Drawer component was not found in tree`),Gf={root:`m_f11b401e`,header:`m_5a7c2c9`,content:`m_b8a05bbd`,inner:`m_31cd769a`},Kf=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`DrawerBody`,null,e),s=Wf();return(0,R.jsx)(Lu,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});Kf.classes=Gf,Kf.displayName=`@mantine/core/DrawerBody`;var qf=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`DrawerCloseButton`,null,e),s=Wf();return(0,R.jsx)(Ru,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});qf.classes=Gf,qf.displayName=`@mantine/core/DrawerCloseButton`;var Jf=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,radius:s,__hidden:c,...l}=z(`DrawerContent`,null,e),u=Wf(),d=u.scrollAreaComponent||Ku;return(0,R.jsx)(zu,{...u.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:u.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),...l,radius:s||u.radius||0,"data-hidden":c||void 0,children:(0,R.jsx)(d,{style:{height:`calc(100vh - var(--drawer-offset) * 2)`},children:o})})});Jf.classes=Gf,Jf.displayName=`@mantine/core/DrawerContent`;var Yf=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`DrawerHeader`,null,e),s=Wf();return(0,R.jsx)(Bu,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});Yf.classes=Gf,Yf.displayName=`@mantine/core/DrawerHeader`;var Xf=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`DrawerOverlay`,null,e),s=Wf();return(0,R.jsx)(Uu,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});Xf.classes=Gf,Xf.displayName=`@mantine/core/DrawerOverlay`;function Zf(e){switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return}}function Qf(e){if(e===`top`||e===`bottom`)return`0 0 calc(100% - var(--drawer-offset, 0rem) * 2)`}var $f={top:`slide-down`,bottom:`slide-up`,left:`slide-right`,right:`slide-left`},ep={top:`slide-down`,bottom:`slide-up`,right:`slide-right`,left:`slide-left`},tp={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:I(`modal`),position:`left`},np=nt((e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":ae(n,`drawer-size`),"--drawer-flex":Qf(t),"--drawer-height":t===`left`||t===`right`?void 0:`var(--drawer-size)`,"--drawer-align":Zf(t),"--drawer-justify":t===`right`?`flex-end`:void 0,"--drawer-offset":E(r)}})),rp=xr(e=>{let t=z(`DrawerRoot`,tp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,scrollAreaComponent:c,position:l,transitionProps:u,radius:d,attributes:f,...p}=t,{dir:m}=jr(),h=zn({name:`Drawer`,classes:Gf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:np}),g=(m===`rtl`?ep:$f)[l];return(0,R.jsx)(Uf,{value:{scrollAreaComponent:c,getStyles:h,radius:d},children:(0,R.jsx)(Pu,{...h(`root`),transitionProps:{transition:g,...u},"data-offset-scrollbars":c===Ys.Autosize||void 0,unstyled:o,...p})})});rp.classes=Gf,rp.varsResolver=np,rp.displayName=`@mantine/core/DrawerRoot`;var ip=(0,A.createContext)(null);function ap({children:e}){let[t,n]=(0,A.useState)([]),[r,i]=(0,A.useState)(I(`modal`)),[a]=(0,A.useState)(()=>new WeakSet);return(0,R.jsx)(ip,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r,handledEscapeEvents:a},children:e})}ap.displayName=`@mantine/core/DrawerStack`;var op=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`DrawerTitle`,null,e),s=Wf();return(0,R.jsx)(Gu,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});op.classes=Gf,op.displayName=`@mantine/core/DrawerTitle`;var sp={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:I(`modal`),withOverlay:!0,withCloseButton:!0},cp=xr(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,opened:s,stackId:c,zIndex:l,...u}=z(`Drawer`,sp,e),d=(0,A.use)(ip),f=!!t||i,p=d&&c?{closeOnEscape:d.currentId===c,trapFocus:d.currentId===c,zIndex:d.getZIndex(c),__handledEscapeEvents:d.handledEscapeEvents}:{},m=n===!1?!1:c&&d?d.currentId===c:s;return(0,A.useEffect)(()=>{d&&c&&(s?d.addModal(c,l||I(`modal`)):d.removeModal(c))},[s,c,l]),(0,R.jsxs)(rp,{opened:s,zIndex:d&&c?d.getZIndex(c):l,...u,...p,children:[n&&(0,R.jsx)(Xf,{visible:m,transitionProps:d&&c?{duration:0}:void 0,...r}),(0,R.jsxs)(Jf,{__hidden:d&&c&&s?c!==d.currentId:!1,children:[f&&(0,R.jsxs)(Yf,{children:[t&&(0,R.jsx)(op,{children:t}),i&&(0,R.jsx)(qf,{...a})]}),(0,R.jsx)(Kf,{children:o})]})]})});cp.classes=Gf,cp.displayName=`@mantine/core/Drawer`,cp.Root=rp,cp.Overlay=Xf,cp.Content=Jf,cp.Body=Kf,cp.Header=Yf,cp.Title=op,cp.CloseButton=qf,cp.Stack=ap;var[lp,up]=M(`Menu component was not found in the tree`),dp=(0,A.createContext)(null);function fp(e){let{value:t,defaultValue:n,onChange:r,children:i}=z(`MenuCheckboxGroup`,null,e),[a,o]=He({value:t,defaultValue:n,finalValue:[],onChange:r}),s=(0,A.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o]);return(0,R.jsx)(dp,{value:{values:a,onChange:s},children:i})}fp.displayName=`@mantine/core/MenuCheckboxGroup`;var pp=(0,A.createContext)(null);function mp({role:e,checked:t,indicator:n,onSelect:r,color:i,closeMenuOnClick:a,rightSection:o,children:s,disabled:c,dataDisabled:l,className:u,style:d,styles:f,classNames:p,buttonRef:m,others:h}){let g=up(),_=(0,A.use)(pp),v=cn(),{dir:y}=jr(),b=(0,A.useRef)(null),x=de(h.onClick,()=>{l||(r(),a&&g.closeDropdownImmediately())}),S=de(h.onMouseMove,()=>{if(!g.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),C=de(h.onKeyDown,e=>{e.key===`ArrowLeft`&&_&&(_.close(),_.focusParentItem())}),w=i?v.variantColorResolver({color:i,theme:v,variant:`light`}):void 0,T=i?xt({color:i,theme:v}):null,E=g.alignItemsLabels!==`none`||t;return(0,R.jsxs)($s,{onMouseDown:e=>e.preventDefault(),...h,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:Ve(b,m),role:e,"aria-checked":t,disabled:c,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:x,onMouseMove:S,onKeyDown:te({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:C}),__vars:{"--menu-item-color":T?.isThemeColor&&T?.shade===void 0?`var(--mantine-color-${T.color}-6)`:w?.color,"--menu-item-hover":w?.hover},children:[E&&(0,R.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:f,classNames:p}),"data-checked":t||void 0,children:t?n:null}),s&&(0,R.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:f,classNames:p}),"data-menu-item-label":!0,children:s}),o&&(0,R.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:f,classNames:p}),"data-position":`right`,children:o})]})}var hp={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,search:`m_ef8769b6`,itemLabel:`m_5476e0d3`,itemIndicator:`m_8395186e`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},gp=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,defaultChecked:m,onChange:h,checkIcon:g,ref:_,...v}=z(`MenuCheckboxItem`,null,e),y=up(),b=(0,A.use)(dp),x=b&&f!==void 0?b.values.includes(f):void 0,[S,C]=He({value:p??x,defaultValue:m,finalValue:!1,onChange:h}),w=g??y.checkIcon??(0,R.jsx)(ff,{size:10});return(0,R.jsx)(mp,{role:`menuitemcheckbox`,checked:S,indicator:w,onSelect:()=>{h?C(!S):b&&f!==void 0?b.onChange(f):C(!S)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:_,others:v,children:l})});gp.classes=hp,gp.displayName=`@mantine/core/MenuCheckboxItem`;function _p(e){let{children:t,disabled:n,longPressDelay:r}=z(`MenuContextMenu`,null,e),i=tt(t);if(!i)throw Error(`Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=up(),o=Nc(),s=Pc({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()});return(0,A.cloneElement)(i,s)}_p.displayName=`@mantine/core/MenuContextMenu`;var vp=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`MenuDivider`,null,e),s=up();return(0,R.jsx)(B,{...s.getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});vp.classes=hp,vp.displayName=`@mantine/core/MenuDivider`;var yp=500;function bp(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function xp(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function Sp({enabled:e,opened:t,getDropdown:n}){let r=(0,A.useRef)({buffer:``,timeoutId:null});return(0,A.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,A.useEffect)(()=>()=>{let{timeoutId:e}=r.current;e!==null&&window.clearTimeout(e)},[]),t=>{if(!e||t.defaultPrevented||t.ctrlKey||t.metaKey||t.altKey||t.key.length!==1||t.key===` `)return;let i=t.target;if(i&&(i.tagName===`INPUT`||i.tagName===`TEXTAREA`||i.tagName===`SELECT`||i.isContentEditable))return;let a=n();if(!a)return;let o=Array.from(a.querySelectorAll(`[data-menu-item]:not([data-disabled])`)).filter(e=>e.closest(`[data-menu-dropdown]`)===a);if(o.length===0)return;let s=r.current;s.buffer=(s.buffer+t.key).toLowerCase(),s.timeoutId!==null&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(()=>{s.buffer=``,s.timeoutId=null},yp);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||xp(s.buffer)){let e=s.buffer[0],t=l+1;for(let n=0;n{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=z(`MenuDropdown`,null,e),f=(0,A.useRef)(null),p=up(),m=Sp({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),h=de(c,e=>{m(e),!(e.defaultPrevented||p.hasSearch)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),g=de(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),_=de(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,R.jsxs)(qc.Dropdown,{...d,onMouseEnter:g,onMouseLeave:_,role:`menu`,"aria-orientation":`vertical`,ref:Ve(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[p.withInitialFocusPlaceholder&&!p.hasSearch&&(0,R.jsx)(`div`,{role:`presentation`,tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});Cp.classes=hp,Cp.displayName=`@mantine/core/MenuDropdown`;var wp=Cr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=z(`MenuItem`,null,e),h=up(),g=(0,A.use)(pp),_=cn(),{dir:v}=jr(),y=(0,A.useRef)(null),b=m,x=de(b.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),S=de(b.onMouseMove,()=>{if(!h.hasSearch)return;let e=y.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==y.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),C=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,w=o?xt({color:o,theme:_}):null,T=de(b.onKeyDown,e=>{e.key===`ArrowLeft`&&g&&(g.close(),g.focusParentItem())});return(0,R.jsxs)($s,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Ve(y,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:x,onMouseMove:S,onKeyDown:te({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:T}),__vars:{"--menu-item-color":w?.isThemeColor&&w?.shade===void 0?`var(--mantine-color-${w.color}-6)`:C?.color,"--menu-item-hover":C?.hover},children:[h.alignItemsLabels===`all`&&(0,R.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),c&&(0,R.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,R.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:u}),l&&(0,R.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});wp.classes=hp,wp.displayName=`@mantine/core/MenuItem`;var Tp=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`MenuLabel`,null,e),s=up();return(0,R.jsx)(B,{...s.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Tp.classes=hp,Tp.displayName=`@mantine/core/MenuLabel`;var Ep=(0,A.createContext)(null);function Dp(e){let{value:t,defaultValue:n,onChange:r,children:i}=z(`MenuRadioGroup`,null,e),[a,o]=He({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,R.jsx)(Ep,{value:{value:a,onChange:e=>o(e)},children:i})}Dp.displayName=`@mantine/core/MenuRadioGroup`;function Op({size:e,style:t,...n}){return(0,R.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:E(e),height:E(e),...t},"aria-hidden":!0,...n,children:(0,R.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var kp=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,onChange:m,checkIcon:h,ref:g,..._}=z(`MenuRadioItem`,null,e),v=up(),y=(0,A.use)(Ep),b=p??(y?y.value===f:!1),x=h??v.checkIcon??(0,R.jsx)(Op,{size:5});return(0,R.jsx)(mp,{role:`menuitemradio`,checked:b,indicator:x,onSelect:()=>{b||(m?m(f):y&&y.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:g,others:_,children:l})});kp.classes=hp,kp.displayName=`@mantine/core/MenuRadioItem`;var Ap=`[data-menu-item]:not([data-disabled])`,jp=`[data-menu-active]`;function Mp(e){return e?.closest(`[data-menu-dropdown]`)}function Np(e){return e?Array.from(e.querySelectorAll(Ap)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function Pp(e){e&&e.querySelectorAll(jp).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function Fp(e,t){Pp(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function Ip(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var Lp={clearSearchOnClose:!0},Rp=xr(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=z(`MenuSearch`,Lp,e),l=up(),u=(0,A.useRef)(null),d=Ve(s,u),f=(0,A.useRef)(i);f.current=i,(0,A.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,A.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{f.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,A.useEffect)(()=>{l.opened||Pp(Mp(u.current))},[l.opened]);let p=de(i,e=>{Pp(Mp(e.currentTarget))}),m=de(r,e=>{if(e.defaultPrevented)return;let t=Mp(e.currentTarget),n=Np(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=Ip(n);Fp(n[r>=n.length-1?l.loop?0:r:r+1]??null,t)}else if(e.key===`ArrowUp`){if(e.preventDefault(),n.length===0)return;let r=Ip(n);Fp(n[r<=0?r===-1||l.loop?n.length-1:0:r-1]??null,t)}else if(e.key===`Home`)e.preventDefault(),n.length>0&&Fp(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&Fp(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[Ip(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowRight`,bubbles:!0}))):t.click())}}),h=l.getStyles(`search`);return(0,R.jsx)(hd,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...c,ref:d,classNames:[{input:h.className},t],styles:[{input:h.style},n],onKeyDown:m,onChange:p,__staticSelector:`Menu`})});Rp.classes=hp,Rp.displayName=`@mantine/core/MenuSearch`;var zp=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l,onKeyDown:u,children:d,ref:f,...p}=z(`MenuSubDropdown`,null,e),m=(0,A.useRef)(null),h=up(),g=(0,A.use)(pp),_=Sp({enabled:!h.hasSearch,opened:g?.opened??!1,getDropdown:()=>m.current}),v=de(u,e=>{_(e),!e.ctrlKey&&!e.metaKey&&!e.altKey&&e.key.length===1&&e.key!==` `&&e.stopPropagation()}),y=g?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,R.jsx)(qc.Dropdown,{...p,...y,role:`menu`,"aria-orientation":`vertical`,ref:Ve(f,m,g?.setFloating),...h.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:d})});zp.classes=hp,zp.displayName=`@mantine/core/MenuSubDropdown`;var Bp=Cr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=z(`MenuSubItem`,null,e),h=up(),g=(0,A.use)(pp),_=cn(),{dir:v}=jr(),y=(0,A.useRef)(null),b=m,x=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,S=o?xt({color:o,theme:_}):null,C=de(b.onKeyDown,e=>{e.key===`ArrowRight`&&(g?.open(),g?.focusFirstItem()),e.key===`ArrowLeft`&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),w=de(b.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),T=de(b.onMouseMove,()=>{if(!h.hasSearch)return;let e=y.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==y.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),E=g?.getReferenceProps({onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave,onPointerEnter:b.onPointerEnter,onPointerLeave:b.onPointerLeave});return(0,R.jsxs)($s,{onMouseDown:e=>e.preventDefault(),...m,...E,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Ve(y,p,g?.setReference),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onClick:w,onMouseMove:T,onKeyDown:te({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:C}),__vars:{"--menu-item-color":S?.isThemeColor&&S?.shade===void 0?`var(--mantine-color-${S.color}-6)`:x?.color,"--menu-item-hover":x?.hover},children:[h.alignItemsLabels===`all`&&(0,R.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),s&&(0,R.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,R.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:l}),(0,R.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,R.jsx)(yd,{...h.getStyles(`chevron`),size:14})})]})});Bp.classes=hp,Bp.displayName=`@mantine/core/MenuSubItem`;function Vp({children:e,refProp:t}){if(!j(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return up(),(0,R.jsx)(qc.Target,{refProp:t,popupType:`menu`,children:e})}Vp.displayName=`@mantine/core/MenuSubTarget`;var Hp={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Up(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=z(`MenuSub`,Hp,e),l=Le(),[u,d]=He({value:o,finalValue:!1,onChange:s}),f=(0,A.use)(pp),p=up(),{dir:m}=jr(),h=fc(m,i),g=f?.registerOpenSub??p.registerOpenSub,_=(0,A.useRef)(null),v=(0,A.useCallback)(e=>{let t=_.current;return t&&t!==e&&t(),_.current=e,()=>{_.current===e&&(_.current=null)}},[]),y=(0,A.useRef)(d);y.current=d;let b=(0,A.useCallback)(()=>y.current(!0),[]),x=(0,A.useCallback)(()=>y.current(!1),[]);(0,A.useEffect)(()=>{if(u)return g(x)},[u,g,x]);let{context:S,refs:C}=Is({placement:h,open:u,onOpenChange:e=>{e?b():x()}}),{getReferenceProps:w,getFloatingProps:T}=Bs([Cs(S,{handleClose:a?Ks(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,R.jsx)(pp,{value:{opened:u,close:x,open:b,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-target`)?.focus()},16),parentContext:f,setReference:C.setReference,setFloating:C.setFloating,getReferenceProps:w,getFloatingProps:T,registerOpenSub:v},children:(0,R.jsx)(qc,{opened:u,onChange:e=>e?b():x(),withArrow:!1,id:l,position:i,...c,withinPortal:!1,children:t})})}Up.extend=e=>e,Up.displayName=`@mantine/core/MenuSub`,Up.Target=Vp,Up.Dropdown=zp,Up.Item=Bp;var Wp={refProp:`ref`};function Gp(e){let{children:t,refProp:n,...r}=z(`MenuTarget`,Wp,e),i=tt(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=up(),o=i.props,s=de(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=de(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=de(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,R.jsx)(qc.Target,{refProp:n,popupType:`menu`,...r,children:(0,A.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}Gp.displayName=`@mantine/core/MenuTarget`;var Kp={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},qp=xr(e=>{let t=z(`Menu`,Kp,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:h,styles:g,unstyled:_,variant:v,vars:y,menuItemTabIndex:b,keepMounted:x,withInitialFocusPlaceholder:S,attributes:C,onExitTransitionEnd:w,alignItemsLabels:T,checkIcon:E,...D}=t,O=zn({name:`Menu`,classes:hp,props:t,classNames:h,styles:g,unstyled:_,attributes:C}),[k,j]=He({value:a,defaultValue:o,finalValue:!1,onChange:c}),[M,N]=(0,A.useState)(!1),P=()=>{j(!1),N(!1),k&&i?.()},F=()=>{j(!0),!k&&r?.()},ee=()=>{k?P():F()},{openDropdown:te,closeDropdown:ne}=pc({open:F,close:P,closeDelay:m,openDelay:p}),I=(0,A.useRef)(null),re=(0,A.useCallback)(e=>{let t=I.current;return t&&t!==e&&t(),I.current=e,()=>{I.current===e&&(I.current=null)}},[]),ie=(0,A.useRef)(0),[ae,oe]=(0,A.useState)(!1),se=(0,A.useCallback)(()=>(ie.current+=1,ie.current===1&&oe(!0),()=>{--ie.current,ie.current===0&&oe(!1)}),[]),ce=(0,A.useRef)(null),le=()=>{ce.current?.(),w?.()},ue=e=>me(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:de,resolvedStyles:fe}=wn({classNames:h,styles:g,props:t});return(0,R.jsx)(lp,{value:{getStyles:O,opened:k,toggleDropdown:ee,getItemIndex:ue,openedViaClick:M,setOpenedViaClick:N,closeOnItemClick:l,closeDropdown:f===`click`?P:ne,openDropdown:f===`click`?F:te,closeDropdownImmediately:P,loop:u,trigger:f,unstyled:_,menuItemTabIndex:b,withInitialFocusPlaceholder:S,registerOpenSub:re,hasSearch:ae,registerSearch:se,searchExitClearRef:ce,alignItemsLabels:T,checkIcon:E},children:(0,R.jsx)(qc,{returnFocus:!0,...D,opened:k,onChange:ee,defaultOpened:o,trapFocus:!x&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:de,styles:fe,unstyled:_,variant:v,keepMounted:x,onExitTransitionEnd:le,children:n})})});qp.displayName=`@mantine/core/Menu`,qp.classes=hp,qp.Item=wp,qp.Label=Tp,qp.Dropdown=Cp,qp.Target=Gp,qp.Divider=vp,qp.Search=Rp,qp.Sub=Up,qp.CheckboxItem=gp,qp.CheckboxGroup=fp,qp.RadioItem=kp,qp.RadioGroup=Dp,qp.ContextMenu=_p;var[Jp,Yp]=M(`Modal component was not found in tree`),Xp={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},Zp=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ModalBody`,null,e),s=Yp();return(0,R.jsx)(Lu,{...s.getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});Zp.classes=Xp,Zp.displayName=`@mantine/core/ModalBody`;var Qp=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ModalCloseButton`,null,e),s=Yp();return(0,R.jsx)(Ru,{...s.getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});Qp.classes=Xp,Qp.displayName=`@mantine/core/ModalCloseButton`;var $p=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=z(`ModalContent`,null,e),l=Yp(),u=l.scrollAreaComponent||Ku;return(0,R.jsx)(zu,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,R.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${E(l.yOffset)} * 2))`},children:o})})});$p.classes=Xp,$p.displayName=`@mantine/core/ModalContent`;var em=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ModalHeader`,null,e),s=Yp();return(0,R.jsx)(Bu,{...s.getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});em.classes=Xp,em.displayName=`@mantine/core/ModalHeader`;var tm=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ModalOverlay`,null,e),s=Yp();return(0,R.jsx)(Uu,{...s.getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});tm.classes=Xp,tm.displayName=`@mantine/core/ModalOverlay`;var nm={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:I(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},rm=nt((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:se(t),"--modal-size":ae(n,`modal-size`),"--modal-y-offset":E(r),"--modal-x-offset":E(i)}})),im=xr(e=>{let t=z(`ModalRoot`,nm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=zn({name:m,classes:Xp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:rm});return(0,R.jsx)(Jp,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,R.jsx)(Pu,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===Ys.Autosize||void 0,unstyled:o,...g})})});im.classes=Xp,im.varsResolver=rm,im.displayName=`@mantine/core/ModalRoot`;var am=(0,A.createContext)(null);function om({children:e}){let[t,n]=(0,A.useState)([]),[r,i]=(0,A.useState)(I(`modal`)),[a]=(0,A.useState)(()=>new WeakSet);return(0,R.jsx)(am,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r,handledEscapeEvents:a},children:e})}om.displayName=`@mantine/core/ModalStack`;var sm=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ModalTitle`,null,e),s=Yp();return(0,R.jsx)(Gu,{...s.getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});sm.classes=Xp,sm.displayName=`@mantine/core/ModalTitle`;var cm={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:I(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},lm=xr(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=z(`Modal`,cm,e),f=(0,A.use)(am),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l),__handledEscapeEvents:f.handledEscapeEvents}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,A.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||I(`modal`)):f.removeModal(l))},[c,l,u]),(0,R.jsxs)(im,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,R.jsx)(tm,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,R.jsxs)($p,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,R.jsxs)(em,{children:[t&&(0,R.jsx)(sm,{children:t}),i&&(0,R.jsx)(Qp,{...a})]}),(0,R.jsx)(Zp,{children:o})]})]})});lm.classes=Xp,lm.displayName=`@mantine/core/Modal`,lm.Root=im,lm.Overlay=tm,lm.Content=$p,lm.Body=Zp,lm.Header=em,lm.Title=sm,lm.CloseButton=Qp,lm.Stack=om;var um=(0,A.createContext)(null),dm={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},fm=(0,A.createContext)(null),pm=nt((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?ae(n,`pg-gap`):ae(t)}})),mm=xr(e=>{let t=z(`PillGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,disabled:l,attributes:u,...d}=t,f=(0,A.use)(um)?.size||c||void 0,p=zn({name:`PillGroup`,classes:dm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:pm,stylesCtx:{size:f},rootSelector:`group`});return(0,R.jsx)(fm,{value:{size:f,disabled:l},children:(0,R.jsx)(B,{size:f,...p(`group`),...d})})});mm.classes=dm,mm.varsResolver=pm,mm.displayName=`@mantine/core/PillGroup`;var hm={variant:`default`},gm=nt((e,{radius:t},{size:n})=>({root:{"--pill-fz":ae(n,`pill-fz`),"--pill-height":ae(n,`pill-height`),"--pill-radius":t===void 0?void 0:se(t)}})),_m=xr(e=>{let t=z(`Pill`,hm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,variant:c,children:l,withRemoveButton:u,onRemove:d,removeButtonProps:f,radius:p,size:m,disabled:h,mod:g,attributes:_,...v}=t,y=(0,A.use)(fm),b=(0,A.use)(um),x=m||y?.size||void 0,S=b?.variant===`filled`?`contrast`:c||`default`,C=zn({name:`Pill`,classes:dm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:gm,stylesCtx:{size:x}});return(0,R.jsxs)(B,{component:`span`,variant:S,size:x,...C(`root`,{variant:S}),mod:[{"with-remove":u&&!h,disabled:h||y?.disabled},g],...v,children:[(0,R.jsx)(`span`,{...C(`label`),children:l}),u&&(0,R.jsx)(ml,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...C(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});_m.classes=dm,_m.varsResolver=gm,_m.displayName=`@mantine/core/Pill`,_m.Group=mm;var vm={field:`m_45c4369d`},ym={type:`visible`},bm=xr(e=>{let t=z(`PillsInputField`,ym,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,type:c,disabled:l,id:u,pointer:d,mod:f,attributes:p,ref:m,...h}=t,g=(0,A.use)(um),_=(0,A.use)(Zu),v=zn({name:`PillsInputField`,classes:vm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,rootSelector:`field`}),y=l||g?.disabled;return(0,R.jsx)(B,{component:`input`,ref:Ve(m,g?.fieldRef),"data-type":c,disabled:y,mod:[{disabled:y,pointer:d},f],...v(`field`),...h,id:_?.inputId||u,"aria-invalid":g?.hasError,"aria-describedby":_?.describedBy,type:`text`,onMouseDown:e=>!d&&e.stopPropagation()})});bm.classes=vm,bm.displayName=`@mantine/core/PillsInputField`;var xm={size:`sm`},Sm=xr(e=>{let{children:t,onMouseDown:n,onClick:r,size:i,disabled:a,__staticSelector:o,error:s,variant:c,...l}=z([`Input`,`InputWrapper`,`PillsInput`],xm,e),u=(0,A.useRef)(null);return(0,R.jsx)(um,{value:{fieldRef:u,size:i,disabled:a,hasError:!!s,variant:c},children:(0,R.jsx)(vd,{size:i,error:s,variant:c,component:`div`,"data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),n?.(e),u.current?.focus()},onClick:e=>{e.preventDefault(),e.currentTarget.closest(`fieldset`)?.disabled||(u.current?.focus(),r?.(e))},...l,multiline:!0,disabled:a,__staticSelector:o||`PillsInput`,withAria:!1,children:t})})});Sm.displayName=`@mantine/core/PillsInput`,Sm.classes=vd.classes,Sm.Field=bm;function Cm(e,t){let n=t.trim().toLowerCase();if(n===``)return;let r=Object.values(e).filter(e=>!e.disabled&&e.label.trim().toLowerCase()===n);return r.length===1?r[0]:void 0}function wm(e){return typeof e==`string`?e.trim().toLowerCase():e}function Tm({data:e,value:t}){let n=t.map(wm);return e.reduce((e,t)=>(pf(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(wm(e.value))===-1)}):n.indexOf(wm(t.value))===-1&&e.push(t),e),[])}var Em={xs:41,sm:50,md:60,lg:72,xl:89},Dm={maxValues:1/0,withCheckIcon:!0,checkIconPosition:`left`,hiddenInputValuesDivider:`,`,clearSearchOnChange:!0,openOnFocus:!0,size:`sm`},Om=Sr(e=>{let t=z([`Input`,`InputWrapper`,`MultiSelect`],Dm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,value:l,defaultValue:u,onChange:d,onKeyDown:f,variant:p,data:m,dropdownOpened:h,defaultDropdownOpened:g,onDropdownOpen:_,onDropdownClose:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,filter:C,limit:w,withScrollArea:T,maxDropdownHeight:E,floatingHeight:D,searchValue:O,defaultSearchValue:k,onSearchChange:j,readOnly:M,disabled:N,onFocus:P,onBlur:F,radius:ee,rightSection:te,rightSectionWidth:ne,rightSectionPointerEvents:I,rightSectionProps:re,leftSection:ie,leftSectionWidth:ae,leftSectionPointerEvents:oe,leftSectionProps:se,inputContainer:ce,inputWrapperOrder:le,withAsterisk:ue,labelProps:de,descriptionProps:fe,errorProps:pe,successProps:L,wrapperProps:me,description:he,label:ge,error:_e,success:ve,maxValues:ye,searchable:be,nothingFoundMessage:xe,withCheckIcon:Se,withAlignedLabels:Ce,checkIconPosition:we,hidePickedOptions:Te,withErrorStyles:Ee,withSuccessStyles:De,name:Oe,form:ke,id:Ae,clearable:je,clearSectionMode:Me,clearButtonProps:Ne,hiddenInputProps:Pe,placeholder:Fe,hiddenInputValuesDivider:Ie,required:Re,mod:ze,renderOption:Be,renderPill:Ve,onRemove:Ue,onClear:We,onMaxValues:Ge,scrollAreaProps:Ke,chevronColor:qe,attributes:Je,clearSearchOnChange:Ye,openOnFocus:Xe,loading:Ze,loadingPosition:Qe,withPillsReorder:$e,...et}=t,tt=Le(Ae),nt=wf({id:tt,label:ge,labelProps:de,inputWrapperOrder:le}),rt=Md(m),it=Nd(rt),at=(0,A.useRef)({}),ot=cf({opened:h,defaultOpened:g,onDropdownOpen:()=>{_?.(),b&&ot.selectFirstOption()},onDropdownClose:()=>{v?.(),ot.resetSelectedOption()}}),{styleProps:st,rest:{type:ct,autoComplete:lt,...ut}}=qn(et),[dt,ft]=He({value:l,defaultValue:u,finalValue:[],onChange:d}),{getPillProps:pt,getListProps:mt,handleInputKeyDown:ht}=Cf({value:dt,onChange:ft,enabled:$e&&!N&&!M}),[gt,_t]=He({value:O,defaultValue:k,finalValue:``,onChange:j}),vt=e=>{_t(e),ot.resetSelectedOption()},yt=zn({name:`MultiSelect`,classes:{},props:t,classNames:n,styles:a,unstyled:o,attributes:Je}),{resolvedClassNames:bt,resolvedStyles:xt}=wn({props:t,styles:a,classNames:n}),St=e=>{f?.(e),!e.defaultPrevented&&(e.key===` `&&!be&&(e.preventDefault(),ot.toggleDropdown()),e.key===`Backspace`&>.length===0&&dt.length>0&&(Ue?.(dt[dt.length-1]),ft(dt.slice(0,dt.length-1))),ht(e))},Ct=dt.map((e,t)=>{let n=it[`${e}`]||at.current[`${e}`],r=pt(t);return Ve?(0,R.jsx)(A.Fragment,{children:Ve({option:n,value:e,onRemove:()=>{ft(dt.filter(t=>e!==t)),Ue?.(e)},disabled:N,reorderProps:r})},`${e}-${t}`):(0,R.jsx)(_m,{withRemoveButton:!M&&!it[`${e}`]?.disabled,onRemove:()=>{ft(dt.filter(t=>e!==t)),Ue?.(e)},unstyled:o,disabled:N,...yt(`pill`),...r,children:n?.label||e},`${e}-${t}`)});(0,A.useEffect)(()=>{y&&ot.selectFirstOption()},[y,gt]),(0,A.useEffect)(()=>{dt.forEach(e=>{`${e}`in it&&(at.current[`${e}`]=it[`${e}`])})},[it,dt]);let wt=(0,R.jsx)(df.ClearButton,{...Ne,onClear:()=>{We?.(),ft([]),vt(``)}}),Tt=Tm({data:rt,value:dt}),Et=je&&dt.length>0&&!N&&!M,Dt=Et?{paddingInlineEnd:Em[c]??Em.sm}:void 0;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(df,{store:ot,classNames:bt,styles:xt,unstyled:o,size:c,readOnly:M,__staticSelector:`MultiSelect`,attributes:Je,floatingHeight:D,onOptionSubmit:e=>{x?.(e),Ye&&vt(``),ot.updateSelectedOptionIndex(`selected`),dt.includes(it[`${e}`].value)?(ft(dt.filter(t=>t!==it[`${e}`].value)),Ue?.(it[`${e}`].value)):dt.lengthbe?ot.openDropdown():ot.toggleDropdown(),"data-expanded":ot.dropdownOpened||void 0,id:tt,required:Re,mod:ze,attributes:Je,children:(0,R.jsxs)(_m.Group,{attributes:Je,disabled:N,unstyled:o,...yt(`pillsList`,{style:Dt}),...mt(),children:[Ct,(0,R.jsx)(df.EventsTarget,{autoComplete:lt,withExpandedAttribute:!0,children:(0,R.jsx)(Sm.Field,{...ut,id:tt,placeholder:Fe,type:!be&&!Fe?`hidden`:`visible`,...yt(`inputField`),unstyled:o,onFocus:e=>{P?.(e),Xe&&be&&ot.openDropdown()},onBlur:e=>{F?.(e),ot.closeDropdown(),vt(``)},onKeyDown:St,value:gt,onChange:e=>{if(Lf(e)){if(!M){let t=Cm(it,e.currentTarget.value);t&&!dt.includes(t.value)&&dt.length{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=z(`ProgressLabel`,null,e),s=Am();return(0,R.jsx)(B,{...s.getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});Mm.classes=jm,Mm.displayName=`@mantine/core/ProgressLabel`;var Nm=nt((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":ae(t,`progress-size`),"--progress-radius":n===void 0?void 0:se(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),Pm=xr(e=>{let t=z(`ProgressRoot`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,transitionDuration:l,orientation:u,attributes:d,mod:f,...p}=t,m=zn({name:`Progress`,classes:jm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Nm});return(0,R.jsx)(km,{value:{getStyles:m,autoContrast:c},children:(0,R.jsx)(B,{mod:[{orientation:u},f],...m(`root`),...p})})});Pm.classes=jm,Pm.varsResolver=Nm,Pm.displayName=`@mantine/core/ProgressRoot`;var Fm={withAria:!0},Im=xr(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,withAria:s,color:c,striped:l,animated:u,mod:d,...f}=z(`ProgressSection`,Fm,e),p=Am(),m=cn(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,R.jsx)(B,{...p.getStyles(`section`,{className:n,classNames:t,styles:i,style:r}),...f,...h,mod:[{striped:l||u,animated:u},d],__vars:{"--progress-section-size":`${o}%`,"--progress-section-color":St(c,m),"--progress-label-color":Mt(p.autoContrast,m)?kt({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});Im.classes=jm,Im.displayName=`@mantine/core/ProgressSection`;var Lm=xr(e=>{let t=z(`Progress`,null,e),{value:n,classNames:r,styles:i,vars:a,color:o,striped:s,animated:c,"aria-label":l,...u}=t,{resolvedClassNames:d,resolvedStyles:f}=wn({classNames:r,styles:i,props:t});return(0,R.jsx)(Pm,{classNames:d,styles:f,vars:a,...u,children:(0,R.jsx)(Im,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});Lm.classes=jm,Lm.displayName=`@mantine/core/Progress`,Lm.Section=Im,Lm.Root=Pm,Lm.Label=Mm;function Rm({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,A.useState)(n),a=(0,A.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Is({placement:t,middleware:[Wo({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,A.useCallback)(({clientX:e,clientY:t})=>{Number.isFinite(e)&&Number.isFinite(t)&&l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,A.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Mi(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var zm={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},Bm={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:I(`popover`)},Vm=nt((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:se(t),"--tooltip-bg":n?St(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),Hm=xr(e=>{let t=z(`TooltipFloating`,Bm,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...w}=t,T=cn(),E=zn({name:`TooltipFloating`,props:t,classes:zm,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:Vm}),{handleMouseMove:D,x:O,y:k,opened:j,boundaryRef:M,floating:N,setOpened:P}=Rm({offset:p,position:m,defaultOpened:v}),F=tt(n);if(!F)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let ee=Ve(M,Ze(F),C),te=F.props,ne=e=>{te.onMouseEnter?.(e),D(e),P(!0)},I=e=>{te.onMouseLeave?.(e),P(!1)};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Cc,{...x,withinPortal:i,children:(0,R.jsx)(B,{...w,...E(`tooltip`,{style:{..._r(a,T),zIndex:g,display:!_&&j?`block`:`none`,top:Number.isFinite(k)?Math.round(k):``,left:Number.isFinite(O)?Math.round(O):``}}),variant:y,ref:N,mod:{multiline:h},children:f})}),(0,A.cloneElement)(F,{...te,[r]:ee,onMouseEnter:ne,onMouseLeave:I})]})});Hm.classes=zm,Hm.varsResolver=Vm,Hm.displayName=`@mantine/core/TooltipFloating`;var Um=(0,A.createContext)({withinGroup:!1}),Wm={openDelay:0,closeDelay:0};function Gm(e){let{openDelay:t,closeDelay:n,children:r}=z(`TooltipGroup`,Wm,e);return(0,R.jsx)(Um,{value:{withinGroup:!0},children:(0,R.jsx)(Ds,{delay:{open:t,close:n},children:r})})}Gm.displayName=`@mantine/core/TooltipGroup`,Gm.extend=e=>e;function Km(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function qm(e){let t=Km(e.middlewares),n=[Uo(e.offset),Jo()];return t.shift&&n.push(Wo(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?Ko():Ko(t.flip)),n.push(Xo({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?Yo():Yo(t.inline)):e.inline&&n.push(Yo()),n}function Jm(e){let[t,n]=(0,A.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,A.use)(Um).withinGroup,a=Le(),o=Ht(),s=(0,A.useCallback)(e=>{n(e),e&&v(a)},[a]),{x:c,y:l,context:u,refs:d,placement:f,middlewareData:{arrow:{x:p,y:m}={},hide:h}}=Is({strategy:e.strategy,placement:e.position,open:r,onOpenChange:s,middleware:qm(e),whileElementsMounted:To}),{delay:g,currentId:_,setCurrentId:v}=Os(u,{id:a}),{getReferenceProps:y,getFloatingProps:b}=Bs([Cs(u,{enabled:e.events?.hover,delay:i?g:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Ks():null}),Rs(u,{enabled:e.events?.focus,visibleOnly:!0}),Hs(u,{role:`tooltip`}),Ps(u,{enabled:e.opened===void 0})]),x=(0,A.useRef)(f);Ce(()=>{x.current!==f&&(x.current=f,e.onPositionChange?.(f))},[f]);let S=r&&_&&_!==a;return{x:c,y:l,arrowX:p,arrowY:m,reference:d.setReference,floating:d.setFloating,getFloatingProps:b,getReferenceProps:y,isGroupPhase:S,opened:r,placement:f,referenceHidden:e.hideDetached&&o!==`test`?h?.referenceHidden:!1}}var Ym={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:I(`popover`),middlewares:{flip:!0,shift:!0,inline:!1},hideDetached:!0},Xm=nt((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:se(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),Zm=xr(e=>{let t=z(`Tooltip`,Ym,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:T,multiline:E,events:D,interactive:O,zIndex:k,disabled:j,onClick:M,onMouseEnter:N,onMouseLeave:P,inline:F,variant:ee,keepMounted:te,vars:ne,portalProps:I,mod:re,floatingStrategy:ie,middlewares:ae,autoContrast:oe,attributes:se,target:ce,hideDetached:le,ref:ue,...de}=t,{dir:fe}=jr(),pe=(0,A.useRef)(null),L=Jm({position:fc(fe,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:D,interactive:O,arrowRef:pe,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:F,strategy:ie,middlewares:ae,hideDetached:le});(0,A.useEffect)(()=>{let e=ce instanceof HTMLElement?ce:typeof ce==`string`?document.querySelector(ce):ce?.current||null;e&&L.reference(e)},[ce,L]);let me=zn({name:`Tooltip`,props:t,classes:zm,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:se,rootSelector:`tooltip`,vars:ne,varsResolver:Xm}),he=tt(n);if(!ce&&!he)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let ge=me(`tooltip`),_e=O&&!j&&!!L.opened,ve=C===`merge`&&y?uc({position:L.placement,dir:fe}):void 0;if(ce){let e=jc(T,{duration:100,transition:`fade`});return(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(Cc,{...I,withinPortal:d,children:(0,R.jsx)(kc,{...e,keepMounted:te,mounted:!j&&!!L.opened,duration:L.isGroupPhase?10:e.duration,children:e=>(0,R.jsxs)(B,{...de,"data-fixed":ie===`fixed`||void 0,variant:ee,mod:[{multiline:E,interactive:_e},re],...ge,...L.getFloatingProps({ref:L.floating,className:ge.className,style:{...ge.style,...e,...ve,zIndex:k,top:L.y??0,left:L.x??0,...L.referenceHidden?{display:`none`}:null}}),children:[a,(0,R.jsx)(dc,{ref:pe,arrowX:L.arrowX,arrowY:L.arrowY,visible:y,position:L.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...me(`arrow`)})]})})})})}let ye=he.props,be=Ve(L.reference,Ze(he),ue),xe=jc(T,{duration:100,transition:`fade`});return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Cc,{...I,withinPortal:d,children:(0,R.jsx)(kc,{...xe,keepMounted:te,mounted:!j&&!!L.opened,duration:L.isGroupPhase?10:xe.duration,children:e=>(0,R.jsxs)(B,{...de,"data-fixed":ie===`fixed`||void 0,variant:ee,mod:[{multiline:E,interactive:_e},re],...L.getFloatingProps({ref:L.floating,className:me(`tooltip`).className,style:{...me(`tooltip`).style,...e,...ve,zIndex:k,top:L.y??0,left:L.x??0,...L.referenceHidden?{display:`none`}:null}}),children:[a,(0,R.jsx)(dc,{ref:pe,arrowX:L.arrowX,arrowY:L.arrowY,visible:y,position:L.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...me(`arrow`)})]})})}),(0,A.cloneElement)(he,L.getReferenceProps({onClick:M,onMouseEnter:N,onMouseLeave:P,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...ye,className:it(v,ye.className),[i]:be}))]})});Zm.classes=zm,Zm.varsResolver=Xm,Zm.displayName=`@mantine/core/Tooltip`,Zm.Floating=Hm,Zm.Group=Gm;var Qm={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},$m=Sr(e=>{let t=z([`Input`,`InputWrapper`,`Select`],Qm,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:w,withScrollArea:T,maxDropdownHeight:E,floatingHeight:D,size:O,searchable:k,rightSection:j,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,name:ee,form:te,searchValue:ne,defaultSearchValue:I,onSearchChange:re,allowDeselect:ie,error:ae,rightSectionPointerEvents:oe,id:se,clearable:ce,clearSectionMode:le,clearButtonProps:ue,hiddenInputProps:de,renderOption:fe,onClear:pe,autoComplete:L,scrollAreaProps:me,__defaultRightSection:he,__clearSection:ge,__clearable:_e,chevronColor:ve,autoSelectOnBlur:ye,openOnFocus:be,attributes:xe,...Se}=t,Ce=(0,A.useMemo)(()=>Md(m),[m]),we=(0,A.useRef)({}),Te=(0,A.useMemo)(()=>Nd(Ce),[Ce]),Ee=Le(se),De=wf({id:Ee,label:Se.label,labelProps:Se.labelProps,inputWrapperOrder:Se.inputWrapperOrder}),[Oe,ke,Ae]=He({value:h,defaultValue:g,finalValue:null,onChange:p}),je=Oe==null?void 0:`${Oe}`in Te?Te[`${Oe}`]:we.current[`${Oe}`],Me=We(je),[Ne,Pe,Fe]=He({value:ne,defaultValue:I,finalValue:je?je.label:``,onChange:re}),Ie=cf({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v?Ie.selectFirstOption():Ie.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Ie.resetSelectedOption,0)}}),Re=e=>{Pe(e),Ie.resetSelectedOption()},{resolvedClassNames:ze,resolvedStyles:Be}=wn({props:t,styles:r,classNames:n});(0,A.useEffect)(()=>{_&&Ie.selectFirstOption()},[_,Ne]),(0,A.useEffect)(()=>{h===null&&Re(``),h!=null&&je&&(Me?.value!==je.value||Me?.label!==je.label)&&Re(je.label)},[h,je]),(0,A.useEffect)(()=>{!Ae&&!Fe&&Re(Oe==null?``:`${Oe}`in Te?Te[`${Oe}`]?.label:we.current[`${Oe}`]?.label||``)},[Te,Oe]),(0,A.useEffect)(()=>{Oe&&`${Oe}`in Te&&(we.current[`${Oe}`]=Te[`${Oe}`])},[Te,Oe]);let Ve=(0,R.jsx)(df.ClearButton,{...ue,onClear:()=>{ke(null,null),Re(``),pe?.()}}),Ue=ce&&Oe!=null&&!S&&!x;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(df,{store:Ie,__staticSelector:`Select`,classNames:ze,styles:Be,unstyled:i,readOnly:x,size:O,attributes:xe,floatingHeight:D,keepMounted:ye,onOptionSubmit:e=>{y?.(e);let t=ie&&`${Te[e].value}`==`${Oe}`?null:Te[e],n=t?t.value:null;n!==Oe&&ke(n,t),!Ae&&Re(n==null?``:t?.label||``),Ie.closeDropdown()},...b,children:[(0,R.jsx)(df.Target,{targetType:k?`input`:`button`,autoComplete:L,withExpandedAttribute:!0,children:(0,R.jsx)(vd,{id:Ee,__defaultRightSection:(0,R.jsx)(df.Chevron,{size:O,error:ae,unstyled:i,color:ve}),__clearSection:Ve,__clearable:Ue,__clearSectionMode:le,rightSection:j,rightSectionPointerEvents:oe||`none`,...Se,size:O,__staticSelector:`Select`,disabled:S,readOnly:x||!k,value:Ne,onChange:e=>{if(Lf(e)){if(!x){let t=Cm(Te,e.currentTarget.value);t&&`${t.value}`!=`${Oe}`&&(ke(t.value,t),!Ae&&Re(t.label))}return}Re(e.currentTarget.value),Ie.openDropdown(),_&&Ie.selectFirstOption()},onFocus:e=>{be&&k&&Ie.openDropdown(),u?.(e)},onBlur:e=>{ye&&Ie.clickSelectedOption(),Ie.closeDropdown();let t=Oe!=null&&(`${Oe}`in Te?Te[`${Oe}`]:we.current[`${Oe}`]);Re(t&&t.label||``),d?.(e)},onClick:e=>{k?Ie.openDropdown():Ie.toggleDropdown(),f?.(e)},classNames:ze,styles:Be,unstyled:i,pointer:!k,error:ae,attributes:xe})}),(0,R.jsx)(yf,{data:Ce,hidden:x||S,filter:C,search:Ne,limit:w,hiddenWhenEmpty:!F,withScrollArea:T,maxDropdownHeight:E,filterOptions:!!k&&je?.label!==Ne,value:Oe,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,unstyled:i,labelId:De,"aria-label":De?void 0:Se[`aria-label`],renderOption:fe,scrollAreaProps:me})]}),(0,R.jsx)(df.HiddenInput,{value:Oe,name:ee,form:te,disabled:S,...de})]})});$m.classes={...vd.classes,...df.classes},$m.displayName=`@mantine/core/Select`;function eh(e){if(e!==void 0)return typeof e==`number`?E(e):e}function th({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=cn(),s=t===void 0?e:t,c=r!==void 0,l=O({"--sg-spacing-x":oe(L(e)),"--sg-spacing-y":oe(L(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":eh(r)}:{"--sg-cols":L(n)?.toString()}}),u=v(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=oe(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=oe(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),d=pe(v(u),o.breakpoints).filter(e=>v(u[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:u[e.value]}));return(0,R.jsx)(Wn,{styles:l,media:d,selector:a})}function nh(e){return typeof e==`object`&&e?v(e):[]}function rh(e){return e.sort((e,t)=>C(e)-C(t))}function ih({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return rh(Array.from(new Set([...nh(e),...nh(t),...r===void 0?nh(n):[]])))}function ah({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=O({"--sg-spacing-x":oe(L(e)),"--sg-spacing-y":oe(L(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":eh(r)}:{"--sg-cols":L(n)?.toString()}}),l=ih({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=oe(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=oe(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{}),d=l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]}));return(0,R.jsx)(Wn,{styles:c,container:d,selector:a})}var oh={container:`m_925c2d2c`,root:`m_2415a157`},sh={cols:1,spacing:`md`,type:`media`},ch=xr(e=>{let t=z(`SimpleGrid`,sh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=zn({name:`SimpleGrid`,classes:oh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=gr(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(ah,{...t,selector:`.${v}`}),(0,R.jsx)(`div`,{..._(`container`),children:(0,R.jsx)(B,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(th,{...t,selector:`.${v}`}),(0,R.jsx)(B,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});ch.classes=oh,ch.displayName=`@mantine/core/SimpleGrid`;var lh={root:`m_6d731127`},uh={gap:`md`,align:`stretch`,justify:`flex-start`},dh=nt((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":oe(t),"--stack-align":n,"--stack-justify":r}})),fh=xr(e=>{let t=z(`Stack`,uh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t,m=zn({name:`Stack`,props:t,classes:lh,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:dh});return(0,R.jsx)(B,{...m(`root`),variant:d,...p})});fh.classes=lh,fh.varsResolver=dh,fh.displayName=`@mantine/core/Stack`;var[ph,mh]=M(`Table component was not found in the tree`),hh={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function gh(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function _h(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=xr(r=>{let i=z(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=mh();return(0,R.jsx)(B,{component:e,...gh(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=hh,r}var vh=_h(`th`,{columnBorder:!0}),yh=_h(`td`,{columnBorder:!0}),bh=_h(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),xh=_h(`thead`,{stickyHeader:!0}),Sh=_h(`tbody`),Ch=_h(`tfoot`),wh=_h(`caption`,{captionSide:!0}),Th={type:`scrollarea`},Eh=nt((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":E(t),"--table-max-height":E(n),"--table-overflow":r===`native`?`auto`:void 0}})),Dh=xr(e=>{let t=z(`TableScrollContainer`,Th,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=zn({name:`TableScrollContainer`,classes:hh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Eh,rootSelector:`scrollContainer`});return(0,R.jsx)(B,{component:d===`scrollarea`?Ys:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,R.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});Dh.classes=hh,Dh.varsResolver=Eh,Dh.displayName=`@mantine/core/TableScrollContainer`;function Oh({data:e}){return(0,R.jsxs)(R.Fragment,{children:[e.caption&&(0,R.jsx)(wh,{children:e.caption}),e.head&&(0,R.jsx)(xh,{children:(0,R.jsx)(bh,{children:e.head.map((e,t)=>(0,R.jsx)(vh,{children:e},t))})}),e.body&&(0,R.jsx)(Sh,{children:e.body.map((e,t)=>(0,R.jsx)(bh,{children:e.map((e,t)=>(0,R.jsx)(yh,{children:e},t))},t))}),e.foot&&(0,R.jsx)(Ch,{children:(0,R.jsx)(bh,{children:e.foot.map((e,t)=>(0,R.jsx)(vh,{children:e},t))})})]})}Oh.displayName=`@mantine/core/TableDataRenderer`;var kh={withRowBorders:!0,verticalSpacing:7},Ah=nt((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":oe(r),"--table-vertical-spacing":oe(i),"--table-border-color":a?St(a,e):void 0,"--table-striped-color":c&&o?St(o,e):void 0,"--table-highlight-on-hover-color":l&&s?St(s,e):void 0,"--table-sticky-header-offset":d?E(u):void 0}})),jh=xr(e=>{let t=z(`Table`,kh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=zn({name:`Table`,props:t,className:r,style:i,classes:hh,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:Ah,stable:!0}),k=p===!0?`odd`:p||void 0,j=u||`bottom`,M=(0,A.useMemo)(()=>({getStyles:O,stickyHeader:S,striped:k,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:j}),[O,S,k,m,h,g,j]);return(0,R.jsx)(ph,{value:M,children:(0,R.jsx)(B,{component:`table`,mod:[{withTableBorder:_,tabularNums:T},w],...O(`table`),...D,children:x||!!b&&(0,R.jsx)(Oh,{data:b})})})});jh.classes=hh,jh.varsResolver=Ah,jh.displayName=`@mantine/core/Table`,jh.Td=yh,jh.Th=vh,jh.Tr=bh,jh.Thead=xh,jh.Tbody=Sh,jh.Tfoot=Ch,jh.Caption=wh,jh.ScrollContainer=Dh,jh.DataRenderer=Oh;var Mh=xr(e=>{let t=z([`Input`,`InputWrapper`,`TextInput`],null,e);return(0,R.jsx)(vd,{component:`input`,...t,__staticSelector:`TextInput`})});Mh.classes=vd.classes,Mh.displayName=`@mantine/core/TextInput`;var Nh={root:`m_7341320d`},Ph=nt((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":ae(t,`ti-size`),"--ti-radius":n===void 0?void 0:se(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),Fh=xr(e=>{let t=z(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t,d=zn({name:`ThemeIcon`,classes:Nh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:Ph});return(0,R.jsx)(B,{...d(`root`),...u})});Fh.classes=Nh,Fh.varsResolver=Ph,Fh.displayName=`@mantine/core/ThemeIcon`;var Ih=A.createContext(void 0),Lh=e=>{let t=A.useContext(Ih);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Rh=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,R.jsx)(Ih.Provider,{value:e,children:t})),zh={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Bh=new class{#e=zh;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Vh(e){setTimeout(e,0)}var Hh=typeof window>`u`||`Deno`in globalThis;function Uh(){}function Wh(e,t){return typeof e==`function`?e(t):e}function Gh(e){return typeof e==`number`&&e>=0&&e!==1/0}function Kh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qh(e,t){return typeof e==`function`?e(t):e}function Jh(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Xh(o,t.options))return!1}else if(!Qh(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Yh(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Zh(t.options.mutationKey)!==Zh(a))return!1}else if(!Qh(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Xh(e,t){return(t?.queryKeyHashFn||Zh)(e)}function Zh(e){return JSON.stringify(e,(e,t)=>rg(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Qh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n500)return t;let r=ng(e)&&ng(t);if(!r&&!(rg(e)&&rg(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{Bh.setTimeout(t,e)})}function og(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:eg(e,t)}function sg(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function cg(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var lg=Symbol();function ug(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===lg?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function dg(e,t){return typeof e==`function`?e(...t):!!e}function eee(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var tee=()=>Hh,fg=()=>tee(),pg=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},mg=new class extends pg{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},nee=Vh;function ree(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=nee,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var hg=ree(),gg=new class extends pg{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function iee(e){return Math.min(1e3*2**e,3e4)}function _g(e){return(e??`online`)!==`online`||gg.isOnline()}var vg=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function yg(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(Uh);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new vg(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>mg.isFocused()&&(e.networkMode===`always`||gg.isOnline())&&e.canRun(),p=()=>_g(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(fg()?0:3),a=e.retryDelay??iee,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&nf()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var bg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gh(this.gcTime)&&(this.#e=Bh.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fg()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(Bh.clearTimeout(this.#e),this.#e=void 0)}};function aee(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{eee(e,()=>t.signal,()=>n=!0)},u=ug(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?cg:sg;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?oee:xg,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:xg(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function xg(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function oee(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var see=class extends bg{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=wg(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=wg(this.options);e.data!==void 0&&(this.setState(Cg(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=og(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Uh).catch(Uh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>qh(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lg||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>qh(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Kh(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ug(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?aee(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=yg({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof vg&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof vg){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Sg(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Cg(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),hg.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Sg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_g(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Cg(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function wg(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var cee=class extends pg{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Tg(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Eg(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eg(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof qh(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!tg(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Dg(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||qh(this.options.enabled,this.#t)!==qh(t.enabled,this.#t)||qh(this.options.staleTime,this.#t)!==qh(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||qh(this.options.enabled,this.#t)!==qh(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return tg(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Uh)),t}#h(e){return!fg()&&qh(this.options.enabled,this.#t)!==!1&&Gh(e)}#g(){this.#b();let e=qh(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=Kh(this.#r.dataUpdatedAt,e)+1;this.#u=Bh.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return qh(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=Bh.setInterval(()=>{(this.options.refetchIntervalInBackground||mg.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(Bh.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(Bh.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Tg(e,t),o=i&&Dg(e,n,t,r);(a||o)&&(l={...l,...Sg(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=og(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=og(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Og(e,t),refetch:this.refetch,isEnabled:qh(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),tg(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();hg.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function lee(e,t){return qh(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||qh(t.retryOnMount,e)!==!1)}function Tg(e,t){return lee(e,t)||e.state.data!==void 0&&Eg(e,t,t.refetchOnMount)}function Eg(e,t,n){if(qh(t.enabled,e)!==!1&&qh(t.staleTime,e)!==`static`){let r=qh(n,e);return r===`always`||r!==!1&&Og(e,t)}return!1}function Dg(e,t,n,r){return(e!==t||qh(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Og(e,n)}function Og(e,t){return qh(t.enabled,e)!==!1&&e.isStaleByTime(qh(t.staleTime,e))}var uee=class extends bg{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||dee(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=yg({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),hg.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function dee(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var fee=class extends pg{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new uee({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=kg(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=kg(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=kg(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=kg(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){hg.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Yh(t,e))}findAll(e={}){return this.getAll().filter(t=>Yh(e,t))}notify(e){hg.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return hg.batch(()=>Promise.all(e.map(e=>e.continue().catch(Uh))))}};function kg(e){return e.options.scope?.id}var pee=class extends pg{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??Xh(r,t),a=this.get(i);return a||(a=new see({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){hg.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Jh(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Jh(e,t)):t}notify(e){hg.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){hg.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){hg.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},mee=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new pee,this.#t=e.mutationCache||new fee,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=mg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=gg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(qh(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Wh(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return hg.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;hg.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return hg.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=hg.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Uh).catch(Uh)}invalidateQueries(e,t={}){return hg.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=hg.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Uh)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Uh)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(qh(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(qh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Uh).catch(Uh)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Uh).catch(Uh)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return gg.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Zh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Qh(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Zh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Qh(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Xh(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===lg&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ag=A.createContext(!1),hee=()=>A.useContext(Ag);Ag.Provider;function gee(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _ee=A.createContext(gee()),vee=()=>A.useContext(_ee),yee=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?dg(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},bee=e=>{A.useEffect(()=>{e.clearReset()},[e])},xee=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||dg(n,[e.error,r])),See=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Cee=(e,t)=>e?.suspense&&t.isPending,wee=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Tee(e,t,n){let r=hee(),i=vee(),a=Lh(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,See(o),yee(o,i,s),bee(i);let[l]=A.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(A.useSyncExternalStore(A.useCallback(e=>{let t=d?l.subscribe(hg.batchCalls(e)):Uh;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),A.useEffect(()=>{l.setOptions(o)},[o,l]),Cee(o,u))throw wee(o,l,i);if(xee({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function jg(e,t){return Tee(e,cee,t)}var Eee=_(),Dee=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],Mg=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],Ng=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],Pg=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],Fg=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],Ig=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],Lg={dark:{text:`#bfbdb6`,muted:`#8b8e99`,grid:`#1d2433`,surface:`#131721`,border:`#626777`},light:{text:`#4a5058`,muted:`#6b7280`,grid:`#eceef0`,surface:`#fcfcfc`,border:`#8c939d`}},Oee={dark:[`#3987e5`,`#d95926`,`#199e70`,`#9085e9`,`#c98500`,`#d55181`],light:[`#2a78d6`,`#eb6834`,`#1baf7a`,`#4a3aa7`,`#eda100`,`#e87ba4`]},Rg={micro:11,small:12,body:14,title:16,section:22,page:32},zg={display:`"Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"Geist Variable", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},Bg={brand:Mg,ok:Ng,warn:Pg,bad:Fg,info:Ig},Vg={light:7,dark:5};function Hg(e){let t=e.replace(`#`,``),n=t.length===3?[...t].map(e=>e+e).join(``):t,r=e=>{let t=parseInt(n.slice(e,e+2),16)/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*r(0)+.7152*r(2)+.0722*r(4)}function Ug(e){let t=Hg(e),n=1.05/(t+.05);return(t+.05)/.05>n?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Wg(e){return Object.fromEntries(Object.entries(Bg).map(([t,n])=>[`--fanout-color-${t}-contrast`,Ug(n[Vg[e]])]))}function kee(e){return t=>{let n=t.color??Gg.primaryColor,r=e({...t,color:n}),i=t.variant===`filled`||t.variant===void 0;return t.autoContrast===!1||!i||!Object.hasOwn(Bg,n)?r:{...r,color:`var(--fanout-color-${n}-contrast)`}}}var Aee=.25,jee={xs:9,sm:10,md:11,lg:13,xl:16},Gg={primaryColor:`brand`,primaryShade:Vg,autoContrast:!0,luminanceThreshold:Aee,colors:{dark:Dee,brand:Mg,ok:Ng,warn:Pg,bad:Fg,info:Ig},defaultRadius:`md`,fontFamily:zg.body,fontFamilyMonospace:zg.display,headings:{fontFamily:zg.body,fontWeight:`600`},cursorType:`pointer`,components:{Tabs:{styles:(e,t)=>({tab:Kg(t.color,`--tabs-text-color`)})},Pagination:{styles:(e,t)=>({control:Kg(t.color,`--pagination-active-color`)})},Badge:{vars:(e,t)=>({root:Nee(t.size)})},Menu:{defaultProps:{withInitialFocusPlaceholder:!1}},Drawer:{defaultProps:{closeButtonProps:{"aria-label":`Close`}}},Modal:{defaultProps:{closeButtonProps:{"aria-label":`Close`}}}}},Mee=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{"--mantine-color-dimmed":Lg.light.muted,...Wg(`light`)},dark:Wg(`dark`)});function Nee(e){let t=jee[e??`md`];return t===void 0||t>=Rg.micro?{}:{"--badge-fz":`${Rg.micro/16}rem`}}function Kg(e,t){return!e||e===Gg.primaryColor?{[t]:`var(--fanout-color-${Gg.primaryColor}-contrast)`}:{}}var Pee=kee(Ot),Fee=Cn({...Gg,variantColorResolver:Pee});function Iee(e){return e.dashboard.panels.length===1?e.dashboard.panels[0].title:e.dashboard.name}function qg(e){if(!e||typeof e!=`object`||Array.isArray(e))throw Error(`Missing panel view`);let t=e;if(!t.view||![`preset`,`query`].includes(t.view.kind)||!/^[a-f0-9]{64}$/.test(t.view.key))throw Error(`Invalid panel view identity`);if(t.dashboard?.version!==1||!Array.isArray(t.dashboard.panels)||!t.dashboard.panels.length||t.dashboard.panels.length>40||!Array.isArray(t.results)||t.dashboard.panels.some(e=>!e||typeof e.id!=`string`||!e.id)||t.results.some(e=>!e||typeof e.id!=`string`))throw Error(`Invalid panel view`);let n=new Set(t.dashboard.panels.map(e=>e.id));if(n.size!==t.dashboard.panels.length||t.results.length!==n.size||new Set(t.results.map(e=>e.id)).size!==n.size||t.results.some(e=>!n.has(e.id)||![`ok`,`empty`,`error`].includes(e.status)))throw Error(`Panel results do not match the view`);if(t.vars!==void 0&&(!t.vars||typeof t.vars!=`object`||Array.isArray(t.vars)||Object.values(t.vars).some(e=>typeof e!=`string`&&!(Array.isArray(e)&&e.every(e=>typeof e==`string`)))))throw Error(`Invalid panel variables`);if(t.trace!==void 0&&(!t.trace?.data||!Array.isArray(t.trace.data.spans)||!Array.isArray(t.trace.data.logs)||!Array.isArray(t.trace.data.services)))throw Error(`Invalid trace detail`);return t}var Jg=`$__all`;function Yg(e,t,n){if(e.kind===`constant`)return e.value??``;let r=e.kind===`custom`?e.options?.map(e=>({value:e}))??[]:n===null?[]:n,i=t[e.name],a=!e.multi&&Array.isArray(i)&&i.length===0?void 0:i;if(a===`$__all`){if(e.include_all)return Jg}else if(a!==void 0){if(e.kind===`text`||r===void 0)return a;let t=new Set(r.map(e=>e.value));if(Array.isArray(a)){if(a.length===0&&e.multi)return[];let n=a.filter(e=>t.has(e));if(n.length>0)return n}else if(t.has(a))return a}return e.default?e.default:e.include_all?Jg:r?.[0]?.value??``}var Xg=(e,t)=>e.replace(/\$([a-z][a-z0-9_]*)/g,(e,n)=>{let r=t[n];return r===void 0?e:r===`$__all`?`all`:Array.isArray(r)?r.join(`, `):r});function Zg(e,t,n){let r={};for(let i of e??[]){let e=Yg(i,t,n?.[i.name]);(i.kind!==`query`||e!==``)&&(r[i.name]=e)}return r}function Qg(e){return e===`healthy`?`ok`:e===`degraded`?`warn`:e===`unknown`?`gray`:`bad`}function $g(e){return Lg[e?`dark`:`light`]}function e_(e){let t=e?5:7;return{ok:Ng[t],warn:Pg[t],bad:Fg[t],info:Ig[t]}}function t_(e,t){return Oee[t?`dark`:`light`][e]??$g(t).muted}function Lee(e){return e===`unhealthy`?`diamond`:e===`degraded`?`roundRect`:`circle`}function Ree(e){return e===`unknown`?`dashed`:`solid`}var n_=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function zee(e){return Number.isFinite(e)?e>0&&e<1e-4?`<0.01%`:`${(e*100).toFixed(e>=.1?1:2)}%`:`—`}function r_(e){if(!Number.isFinite(e))return`—`;if(e<0)return`-${r_(-e)}`;if(e===0)return`0ms`;if(e<.01)return`<0.01ms`;if(e<1)return`${e.toFixed(2)}ms`;if(Math.round(e*10)/10<100)return`${e.toFixed(1)}ms`;if(Math.round(e)<1e3)return`${Math.round(e)}ms`;let t=Math.round(e/100)/10;if(t<10)return`${(e/1e3).toFixed(2)}s`;if(t<60)return`${t.toFixed(1)}s`;let n=Math.round(e/1e3),r=Math.floor(n/60),i=n%60;if(r<60)return i===0?`${r}m`:`${r}m ${i}s`;let a=Math.floor(r/60),o=r%60;return o===0?`${a}h`:`${a}h ${o}m`}function Bee({icon:e,title:t,children:n,tall:r=!1}){return(0,R.jsx)(zf,{mih:r?220:130,p:`xl`,children:(0,R.jsxs)(yl,{wrap:`nowrap`,children:[(0,R.jsx)(Fh,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,R.jsxs)(B,{children:[(0,R.jsx)(Dd,{fw:700,size:`sm`,children:t}),(0,R.jsx)(Dd,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function Vee(e,t=8){let[n,r]=(0,A.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,A.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length?a+1:0,to:Math.min(a+t,e.length),total:e.length}}function Hee({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,R.jsxs)(yl,{justify:`space-between`,mt:`xs`,children:[(0,R.jsxs)(Dd,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,R.jsx)(yl,{gap:4,children:[{label:`First page`,page:1,disabled:e===1},{label:`Previous page`,page:e-1,disabled:e===1},{label:`Next page`,page:e+1,disabled:e===t},{label:`Last page`,page:t,disabled:e===t}].map(e=>(0,R.jsx)(If,{size:`compact-xs`,variant:`subtle`,"aria-label":e.label,disabled:e.disabled,onClick:()=>a(e.page),children:e.label},e.label))})]})}var Uee=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z`}))]]),Wee=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M208,48V208H48V48Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z`}))]]),Gee=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),i_=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M208,160H48l80-80Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z`}))]]),a_=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M172,108a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,108Zm-12,28H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm76-8A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm40-104a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,144Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M166,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M168,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm-8,24H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm72-8A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M164,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-12A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z`}))]]),o_=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),s_=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z`}))]]),c_=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),l_=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,144H36V68H220ZM52,128a12,12,0,0,1,12-12H192a12,12,0,0,1,0,24H64A12,12,0,0,1,52,128Zm0-36A12,12,0,0,1,64,80H192a12,12,0,0,1,0,24H64A12,12,0,0,1,52,92Zm0,72a12,12,0,0,1,12-12h8a12,12,0,0,1,0,24H64A12,12,0,0,1,52,164Zm108,0a12,12,0,0,1-12,12H108a12,12,0,0,1,0-24h40A12,12,0,0,1,160,164Zm44,0a12,12,0,0,1-12,12h-8a12,12,0,0,1,0-24h8A12,12,0,0,1,204,164Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M232,64V192a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H224A8,8,0,0,1,232,64Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192Zm-16-64a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16H200A8,8,0,0,1,208,128Zm0-32a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16H200A8,8,0,0,1,208,96ZM72,160a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16h8A8,8,0,0,1,72,160Zm96,0a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,160Zm40,0a8,8,0,0,1-8,8h-8a8,8,0,0,1,0-16h8A8,8,0,0,1,208,160Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM64,168H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm96,0H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm48,0H192a8,8,0,0,1,0-16h16a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H208a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H208a8,8,0,0,1,0,16Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,50H32A14,14,0,0,0,18,64V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50Zm2,142a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2Zm-20-64a6,6,0,0,1-6,6H56a6,6,0,0,1,0-12H200A6,6,0,0,1,206,128Zm0-32a6,6,0,0,1-6,6H56a6,6,0,0,1,0-12H200A6,6,0,0,1,206,96ZM70,160a6,6,0,0,1-6,6H56a6,6,0,0,1,0-12h8A6,6,0,0,1,70,160Zm96,0a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,160Zm40,0a6,6,0,0,1-6,6h-8a6,6,0,0,1,0-12h8A6,6,0,0,1,206,160Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192Zm-16-64a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16H200A8,8,0,0,1,208,128Zm0-32a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16H200A8,8,0,0,1,208,96ZM72,160a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16h8A8,8,0,0,1,72,160Zm96,0a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,160Zm40,0a8,8,0,0,1-8,8h-8a8,8,0,0,1,0-16h8A8,8,0,0,1,208,160Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,52H32A12,12,0,0,0,20,64V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52Zm4,140a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4Zm-24-64a4,4,0,0,1-4,4H56a4,4,0,0,1,0-8H200A4,4,0,0,1,204,128Zm0-32a4,4,0,0,1-4,4H56a4,4,0,0,1,0-8H200A4,4,0,0,1,204,96ZM68,160a4,4,0,0,1-4,4H56a4,4,0,0,1,0-8h8A4,4,0,0,1,68,160Zm96,0a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,160Zm40,0a4,4,0,0,1-4,4h-8a4,4,0,0,1,0-8h8A4,4,0,0,1,204,160Z`}))]]),u_=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M76,64A12,12,0,0,1,88,52H216a12,12,0,0,1,0,24H88A12,12,0,0,1,76,64Zm140,52H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,112a16,16,0,1,0,16,16A16,16,0,0,0,44,112Zm0-64A16,16,0,1,0,60,64,16,16,0,0,0,44,48Zm0,128a16,16,0,1,0,16,16A16,16,0,0,0,44,176Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,64V192H88V64Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM68,188a12,12,0,1,1,12-12A12,12,0,0,1,68,188Zm0-48a12,12,0,1,1,12-12A12,12,0,0,1,68,140Zm0-48A12,12,0,1,1,80,80,12,12,0,0,1,68,92Zm124,92H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M82,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H88A6,6,0,0,1,82,64Zm134,58H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm0,64H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM44,54A10,10,0,1,0,54,64,10,10,0,0,0,44,54Zm0,128a10,10,0,1,0,10,10A10,10,0,0,0,44,182Zm0-64a10,10,0,1,0,10,10A10,10,0,0,0,44,118Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M84,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H88A4,4,0,0,1,84,64Zm132,60H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm0,64H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM44,120a8,8,0,1,0,8,8A8,8,0,0,0,44,120Zm0-64a8,8,0,1,0,8,8A8,8,0,0,0,44,56Zm0,128a8,8,0,1,0,8,8A8,8,0,0,0,44,184Z`}))]]),Kee=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),qee=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z`}))]]),Jee=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),Yee=new Map([[`bold`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M230.47,67.5a12,12,0,0,0-19.26-4.32L172.43,99l-12.68-2.72L157,83.57l35.79-38.78a12,12,0,0,0-4.32-19.26A76.07,76.07,0,0,0,88.41,121.64L30.92,174.18a4.68,4.68,0,0,0-.39.38,36,36,0,0,0,50.91,50.91l.38-.39,52.54-57.49A76.05,76.05,0,0,0,230.47,67.5ZM160,148a51.5,51.5,0,0,1-23.35-5.52,12,12,0,0,0-14.26,2.62L64.31,208.66a12,12,0,0,1-17-17l63.55-58.07a12,12,0,0,0,2.62-14.26A51.5,51.5,0,0,1,108,96a52.06,52.06,0,0,1,52-52h.89L135.17,71.87a12,12,0,0,0-2.91,10.65l5.66,26.35a12,12,0,0,0,9.21,9.21l26.35,5.66a12,12,0,0,0,10.65-2.91L212,95.12c0,.3,0,.59,0,.89A52.06,52.06,0,0,1,160,148Z`}))],[`duotone`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224,96a64,64,0,0,1-94.94,56L73,217A24,24,0,0,1,39,183L104,126.94a64,64,0,0,1,80-90.29L144,80l5.66,26.34L176,112l43.35-40A63.8,63.8,0,0,1,224,96Z`,opacity:`0.2`}),A.createElement(`path`,{d:`M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z`}))],[`fill`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M232,96a72,72,0,0,1-100.94,66L79,222.22c-.12.14-.26.29-.39.42a32,32,0,0,1-45.26-45.26c.14-.13.28-.27.43-.39L94,124.94a72.07,72.07,0,0,1,83.54-98.78,8,8,0,0,1,3.93,13.19L144,80l5.66,26.35L176,112l40.65-37.52a8,8,0,0,1,13.19,3.93A72.6,72.6,0,0,1,232,96Z`}))],[`light`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M224.91,69.75a6,6,0,0,0-9.63-2.16l-41.07,37.9L154.7,101.3l-4.19-19.51,37.9-41.07a6,6,0,0,0-2.16-9.63,70,70,0,0,0-89.77,94.39l-61.39,53c-.11.09-.21.19-.32.3A30,30,0,0,0,77.2,221.23c.11-.11.21-.21.3-.32l53-61.39a70,70,0,0,0,94.39-89.77ZM160,154a58,58,0,0,1-28-7.22,6,6,0,0,0-7.45,1.33L68.57,212.88a18,18,0,0,1-25.45-25.45l64.76-55.94A6,6,0,0,0,109.2,124a58,58,0,0,1,64-84.53L139.58,75.93a6,6,0,0,0-1.45,5.33l5.65,26.35a6,6,0,0,0,4.61,4.61l26.35,5.65a6,6,0,0,0,5.33-1.45L216.49,82.8A58.06,58.06,0,0,1,160,154Z`}))],[`regular`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z`}))],[`thin`,A.createElement(A.Fragment,null,A.createElement(`path`,{d:`M223.05,70.5a4,4,0,0,0-6.42-1.44l-41.82,38.6L153,103l-4.68-21.79,38.6-41.82a4,4,0,0,0-1.44-6.43A68,68,0,0,0,98.94,126L36.4,180l-.21.2a28,28,0,0,0,39.6,39.6l.2-.21,54-62.54A68,68,0,0,0,228,96,67.51,67.51,0,0,0,223.05,70.5ZM160,156a60,60,0,0,1-29-7.47,4,4,0,0,0-5,.89L70,214.25A20,20,0,0,1,41.75,186l64.82-56a4,4,0,0,0,.89-5,60,60,0,0,1,69.46-86.59L141.05,77.29a4,4,0,0,0-1,3.55l5.66,26.35a4,4,0,0,0,3.07,3.07l26.35,5.66a4,4,0,0,0,3.55-1l38.87-35.87A60.05,60.05,0,0,1,160,156Z`}))]]),Xee=(0,A.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),d_=A.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=A.useContext(Xee);return A.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&A.createElement(`title`,null,n),s,c.get(a??f))});d_.displayName=`IconBase`;var f_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:Uee}));f_.displayName=`ArrowCounterClockwiseIcon`;var Zee=f_,p_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:Wee}));p_.displayName=`ArrowsOutIcon`;var m_=p_,h_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:Gee}));h_.displayName=`CaretDownIcon`;var Qee=h_,g_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:i_}));g_.displayName=`CaretUpIcon`;var $ee=g_,__=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:a_}));__.displayName=`ChatCircleTextIcon`;var ete=__,v_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:o_}));v_.displayName=`CopyIcon`;var y_=v_,b_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:s_}));b_.displayName=`DotsThreeIcon`;var tte=b_,x_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:c_}));x_.displayName=`InfoIcon`;var nte=x_,S_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:l_}));S_.displayName=`KeyboardIcon`;var rte=S_,C_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:u_}));C_.displayName=`ListBulletsIcon`;var w_=C_,T_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:Kee}));T_.displayName=`ListMagnifyingGlassIcon`;var E_=T_,D_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:qee}));D_.displayName=`TrashIcon`;var O_=D_,k_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:Jee}));k_.displayName=`WarningCircleIcon`;var A_=k_,j_=A.forwardRef((e,t)=>A.createElement(d_,{ref:t,...e,weights:Yee}));j_.displayName=`WrenchIcon`;var M_=j_;function N_({spans:e,dark:t,onSpan:n}){let r=Math.min(...e.map(e=>new Date(e.start).valueOf())),i=Math.max(...e.map(e=>new Date(e.start).valueOf()+e.duration_ms)),a=Math.max(i-r,1),o=[...new Set(e.map(e=>e.service))],s=Vee(e,8);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(jh.ScrollContainer,{minWidth:680,children:(0,R.jsxs)(jh,{highlightOnHover:!!n,verticalSpacing:`sm`,children:[(0,R.jsx)(jh.Thead,{children:(0,R.jsxs)(jh.Tr,{children:[(0,R.jsx)(jh.Th,{w:230,children:`Operation`}),(0,R.jsx)(jh.Th,{children:`Timeline`}),(0,R.jsx)(jh.Th,{w:90,ta:`right`,children:`Duration`})]})}),(0,R.jsx)(jh.Tbody,{children:s.pageItems.map(e=>{let i=(new Date(e.start).valueOf()-r)/a*100,s=Math.max(e.duration_ms/a*100,.6),c=e.status.toUpperCase().includes(`ERROR`);return(0,R.jsxs)(jh.Tr,{tabIndex:n?0:void 0,onClick:n?()=>n(e):void 0,onKeyDown:n?t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(e))}:void 0,style:{cursor:n?`pointer`:void 0},children:[(0,R.jsx)(jh.Td,{children:(0,R.jsxs)(yl,{gap:`xs`,wrap:`nowrap`,children:[(0,R.jsx)(B,{w:8,h:8,bg:t_(o.indexOf(e.service),t),style:{borderRadius:`50%`,flex:`0 0 auto`}}),(0,R.jsxs)(B,{miw:0,children:[(0,R.jsx)(Dd,{fw:600,size:`sm`,truncate:!0,children:e.operation}),(0,R.jsx)(Dd,{c:`dimmed`,size:`xs`,truncate:!0,children:e.service})]})]})}),(0,R.jsx)(jh.Td,{children:(0,R.jsx)(Zm,{label:`${e.service} · ${e.operation} · ${r_(e.duration_ms)}`,withArrow:!0,children:(0,R.jsx)(B,{pos:`relative`,h:14,bg:`var(--mantine-color-default-hover)`,role:`img`,"aria-label":`${e.operation} on ${e.service} took ${r_(e.duration_ms)}`,style:{borderRadius:`var(--mantine-radius-sm)`},children:(0,R.jsx)(B,{pos:`absolute`,left:`${i}%`,w:`${Math.min(s,100-i)}%`,h:`100%`,bg:c?`bad`:t_(o.indexOf(e.service),t),style:{borderRadius:`var(--mantine-radius-sm)`,minWidth:3}})})})}),(0,R.jsx)(jh.Td,{ta:`right`,children:(0,R.jsx)(Dd,{size:`sm`,ff:`monospace`,children:r_(e.duration_ms)})})]},e.span_id)})})]})}),(0,R.jsx)(Hee,{...s,onChange:s.setPage})]})}function P_(e){try{let t=typeof e==`string`?e:JSON.stringify(e);if(!t||t.length>4096)return;let n=typeof e==`string`?JSON.parse(e):e;if(!n||typeof n!=`object`)return;let r=n;return typeof r.panel_id!=`string`||!/^([a-z][a-z0-9_]{0,39})$/.test(r.panel_id)||r.kind!==`traces`&&r.kind!==`logs`||typeof r.from!=`string`||typeof r.to!=`string`||!Number.isFinite(Date.parse(r.from))||!Number.isFinite(Date.parse(r.to))||Date.parse(r.from)>=Date.parse(r.to)||Date.parse(r.to)-Date.parse(r.from)>2592e6||typeof r.window_from!=`string`||typeof r.window_to!=`string`||!Number.isFinite(Date.parse(r.window_from))||!Number.isFinite(Date.parse(r.window_to))||Date.parse(r.window_from)>=Date.parse(r.window_to)||Date.parse(r.window_to)-Date.parse(r.window_from)>2592e6||Date.parse(r.from)Date.parse(r.window_to)||!r.dimensions||Array.isArray(r.dimensions)||typeof r.dimensions!=`object`||Object.keys(r.dimensions).length>3||Object.values(r.dimensions).some(e=>typeof e!=`string`||e.length>500)||r.trace_id!==void 0&&(typeof r.trace_id!=`string`||r.trace_id.length>128)||r.namespace!==void 0&&(typeof r.namespace!=`string`||r.namespace.length>200)||r.bucket&&(!Number.isFinite(r.bucket.lower)||r.bucket.lower<0||r.bucket.upper!==void 0&&(!Number.isFinite(r.bucket.upper)||r.bucket.upper<=r.bucket.lower))?void 0:{panel_id:r.panel_id,kind:r.kind,from:r.from,to:r.to,window_from:r.window_from,window_to:r.window_to,dimensions:r.dimensions,trace_id:r.trace_id,namespace:r.namespace,bucket:r.bucket}}catch{return}}function F_(e,t,n){if(!e.drill&&e.viz!==`service_map`&&!n.trace_id||t.from_ms===void 0||t.to_ms===void 0)return;let r=t.from_ms,i=t.to_ms;if(n.from!==void 0&&n.to!==void 0&&(r=Math.max(r,Date.parse(n.from)),i=Math.min(i,Date.parse(n.to))),n.time!==void 0&&!n.trace_id){let e=/^(\d+)(s|m|h|d)$/.exec(t.interval??``),a=e?Number(e[1])*{s:1e3,m:6e4,h:36e5,d:864e5}[e[2]]:6e4;r=Math.max(r,n.time),i=Math.min(i,n.time+a)}return P_(JSON.stringify({panel_id:e.id,kind:n.trace_id||e.viz===`service_map`?`traces`:e.drill,from:n.from&&Date.parse(n.from)===r?n.from:new Date(r).toISOString(),to:n.to&&Date.parse(n.to)===i?n.to:new Date(i).toISOString(),window_from:new Date(t.from_ms).toISOString(),window_to:new Date(t.to_ms).toISOString(),dimensions:n.dimensions,trace_id:n.trace_id,namespace:n.namespace,bucket:n.bucket}))}function ite(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))for(let e of Array.isArray(r)?r:[r]){if(e===void 0)continue;let r=typeof e==`string`&&/^[{"]/.test(e);t.append(n,r||typeof e==`object`&&e?JSON.stringify(e):String(e))}let n=t.toString();return n?`?${n}`:``}function ate(e){let t=Object.create(null),n=e=>{if(e.startsWith(`{`)||e.startsWith(`"`))try{let t=JSON.parse(e);if(typeof t==`string`)return/^[{"]/.test(t)?t:e;if(typeof t==`object`&&t&&!Array.isArray(t))return t}catch{}return e},r=new URLSearchParams(e);for(let e of new Set(r.keys())){let i=r.getAll(e).map(n);t[e]=i.length===1?i[0]:i}return t}var ote=[`5m`,`15m`,`1h`,`3h`,`6h`,`12h`,`24h`,`2d`,`7d`,`30d`],I_=e=>{if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}[Tt](?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:[Zz]|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/.test(e)||Number.isNaN(Date.parse(e)))return!1;let[t,n,r]=e.slice(0,10).split(`-`).map(Number),i=new Date(0);return i.setUTCFullYear(t,n-1,r),i.setUTCHours(0,0,0,0),i.getUTCFullYear()===t&&i.getUTCMonth()===n-1&&i.getUTCDate()===r},L_=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):void 0;function ste(e){let t={};typeof e.range==`string`&&ote.includes(e.range)?t.range=e.range:I_(e.from)&&I_(e.to)&&Date.parse(e.from)typeof e==`string`)&&(i[e]=t)}}else{let t=L_(n);t!==void 0&&(i[e]=t)}}}Object.keys(i).length>0&&(t.vars=i);let a=P_(e.drill);return a&&(t.drill=JSON.stringify(a)),t}function cte(e){let t={};e.drill&&(t.drill=JSON.parse(e.drill)),e.range&&(t.range=e.range),e.from&&e.to&&(t.from=e.from,t.to=e.to),e.compare&&(t.compare=e.compare),e.view&&(t.view=e.view),e.edit&&(t.edit=e.edit);for(let[n,r]of Object.entries(e.vars??{}))t[`var-${n}`]=Array.isArray(r)?{values:r}:r;return t}function R_(e,t){let n=new URL(e);return n.search=ite(cte({...ste(ate(n.search)),drill:JSON.stringify(t)})),n.href}function z_(e){return Array.from({length:e.rows},(t,n)=>Object.fromEntries(e.columns.map((t,r)=>{let i=e.values[r]?.[n]??null;return[t.name,typeof i==`number`&&!Number.isFinite(i)?null:i]})))}function B_(e,t){return e.viz!==`logs`||!t||t.rows<2?[]:t.columns.flatMap((e,n)=>{if(e.role!==`dimension`||e.type!==`string`||[`body`,`body_template`,`severity`,`status`].includes(e.name)||/(^id$|_id$)/.test(e.name))return[];let r=t.values[n][0];return typeof r==`string`&&r!==``&&t.values[n].slice(0,t.rows).every(e=>e===r)?[{name:e.name,value:r}]:[]})}function V_(e,t){let n=t.frame??{columns:[],values:[],rows:0};return{columns:n.columns.map(e=>e.name),rows:z_(n),selection:t=>{let n={};for(let r of e.query?.by??[]){let e=r.startsWith(`attributes[`)||r.startsWith(`resource[`)?r.slice(r.indexOf(`'`)+1,r.lastIndexOf(`'`)):r;t[e]!==void 0&&t[e]!==null&&(n[r]=String(t[e]))}return{time:typeof t.time==`number`?t.time:typeof t.start==`number`?t.start:void 0,dimensions:n,trace_id:typeof t.trace_id==`string`?t.trace_id:void 0,namespace:typeof t.namespace==`string`?t.namespace:void 0}}}}function lte(e){return ute(e)||typeof e==`function`||dte(e)}function ute(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function dte(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function H_(e,t){return e==null?null:lte(e)?A.createElement(e,t):e}function fte(e){if(`cell`in e&&e.cell){let t=e.cell,n=t.column.columnDef,r=t,i=n;return r.getIsAggregated?.()?H_(i.aggregatedCell??n.cell,t.getContext()):r.getIsPlaceholder?.()?null:H_(n.cell,t.getContext())}return`header`in e&&e.header?H_(e.header.column.columnDef.header,e.header.getContext()):`footer`in e&&e.footer?H_(e.footer.column.columnDef.footer,e.footer.getContext()):null}function pte({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function mte(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var U_=[],W_=0,{link:G_,unlink:hte,propagate:gte,checkDirty:K_,shallowPropagate:q_}=pte({update(e){return e._update()},notify(e){U_[Y_++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Q_(e))}}),J_=0,Y_=0,X_,Z_=0;function _te(e){try{++Z_,e()}finally{--Z_||$_()}}function Q_(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=hte(n,e)}function $_(){if(!(Z_>0)){for(;J_{i.get(),n.current?(X_=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=X_,o=t?.compare??Object.is;if(n)X_=i,++W_,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{X_=a,n&&(i.flags&=-5),Q_(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&K_(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&q_(e)}}else e&32&&(i.flags=e&-33);return X_!==void 0&&G_(i,X_,W_),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(gte(e),q_(e),$_())}},i}function yte(e){let t=()=>{let t=X_;X_=n,++W_,n.depsTail=void 0,n.flags=6;try{return e()}finally{X_=t,n.flags&=-5,Q_(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&K_(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Q_(this)}};return t(),n}function ev(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=tv(e);if(n.length!==tv(t).length)return!1;for(let r=0;r{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),xte=o(((e,t)=>{t.exports=bte()})),Ste=o((e=>{var t=d(),n=xte();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=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Cte=o(((e,t)=>{t.exports=Ste()}))();function wte(e,t){return e===t}function nv(e,t=e=>e,n){let r=n?.compare??wte,i=(0,A.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,A.useCallback)(()=>e.get(),[e]);return(0,Cte.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Tte(e){let t=nv(e.source,e.selector,{compare:ev});return typeof e.children==`function`?e.children(t):e.children}function Ete(e){let t=e;return Object.defineProperty(e,"state",{get(){return e.get()}}),`set`in e&&(t.setState=e.set.bind(e)),t}function Dte(e){let{createAtom:t,batch:n}=e,r=t(0);return{createOptionsStore:!1,wrapExternalAtoms:!1,addSubscription:()=>{throw Error(`Feature not supported in current reactivity implementation`)},unmount:()=>{throw Error(`Feature not supported in current reactivity implementation`)},schedule:e.schedule??(e=>queueMicrotask(e)),batch:n,untrack:e=>e(),createReadonlyAtom:(e,n)=>{let i=n?.compare??Object.is,a=!1,o,s=()=>{let t=e();return(!a||!i(o,t))&&(o=t,a=!0),o},c=t(()=>(r.get(),s()),{compare:i});return{get:s,subscribe:c.subscribe.bind(c)}},createWritableAtom:(e,n)=>t(e,{compare:n?.compare}),commit:()=>{r.set(e=>e+1)}}}function Ote(e,t=Object.is){let n=!1,r;return{get:e.get,markCommitted:e=>{r=e,n=!0},subscribe:i=>e.subscribe(e=>{(!n||!t(r,e))&&i(e)})}}function kte(){return Dte({createAtom:vte,batch:_te})}function rv(e,t){return typeof e==`function`?e(t):e}function iv(e){if(Array.isArray(e))return e.map(iv);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=t===null?av():{},r=Object.keys(e);for(let t=0;t{(t.options.atoms?.[e]??t.baseAtoms[e]).set(e=>rv(n,e))}}function sv(e){if(typeof e!=`object`||!e)return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function cv(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var Mte=3;function Nte(e,t){return lv(e,t,Mte)}function lv(e,t,n){if(Object.is(e,t))return!0;if(n<=0||!sv(e)||!sv(t)||(Array.isArray(e)||Array.isArray(t))&&(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length))return!1;let r=cv(e),i=cv(t);if(r.length!==i.length)return!1;let a=e,o=t;for(let e=0;e{let t=rv(n,e);return r(e,t)?e:t})}function Pte(e){return e instanceof Function}function Fte(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i.length&&r(i)})};return r(e),n}var Ite=({fn:e,memoDeps:t,onAfterCompare:n,onAfterUpdate:r,onBeforeCompare:i,onBeforeUpdate:a})=>{let o=[],s;return c=>{i?.();let l=t?.(c),u=!l||l.length!==o?.length;if(!u&&l){for(let e=0;e{if(!t){t=!0;return}e()}}function fv({feature:e,fnName:t,objectId:n,onAfterUpdate:r,table:i,...a}){let o=()=>{if(!r)return;let{schedule:e,untrack:t}=i._reactivity;e(()=>t(()=>r()))},s={onAfterUpdate:()=>{o()}};return Ite({...a,...s})}function pv(e,t=`_`){let[n,r]=e.split(t);return{fnKey:r,fnName:`${n}.${r}`,parentName:n}}function mv(e,t,n){for(let[r,{fn:i,memoDeps:a}]of Object.entries(n)){let{fnKey:n,fnName:o}=pv(r);t[n]=a?fv({memoDeps:a,fn:i,fnName:o,table:t,feature:e}):i}}function hv(e,t,n,r){for(let[i,{fn:a,memoDeps:o}]of Object.entries(r)){let{fnKey:r,fnName:s}=pv(i);if(o){let i=`_memo_${r}`;t[r]=function(...t){if(!this[i]){let t=this;this[i]=fv({memoDeps:e=>o(t,e),fn:(...e)=>a(t,...e),fnName:s,objectId:t.id,table:n,feature:e})}return this[i](...t)}}else t[r]=function(...e){return a(this,...e)}}}function gv(e,t,n,...r){return e[t]?.(...r)??n(e,...r)}function Lte(e){return e.row.getValue(e.column.id)}function Rte(e){return e.getValue()??e.table.options.renderFallbackValue}function zte(e){return{table:e.table,column:e.column,row:e.row,cell:e,getValue:()=>e.getValue(),renderValue:()=>e.renderValue()}}var Bte={assignCellPrototype:(e,t)=>{hv(`coreCellsFeature`,e,t,{cell_getValue:{fn:e=>Lte(e)},cell_renderValue:{fn:e=>Rte(e)},cell_getContext:{fn:e=>zte(e),memoDeps:e=>[e]}})}};function Vte(e){if(!e._headerPrototype){e._headerPrototype={table:e};let t=Object.values(e._features);for(let n=0;ngv(e,`getIsVisible`,vv)):(ov(t,e.id)?t[e.id]:void 0)??!0}function Ute(e){return e.getAllLeafColumns().filter(e=>gv(e,`getIsVisible`,vv))}function yv(e,t=1){let n=t;for(let r=0;r0&&bv(s,t-1,n,r,i,a)}function xv(e){for(let t=0;t{let n=t;for(let t=0;te[i.accessorKey]}if(!s)throw Error();let l=qte(e),u=Object.create(l);u.accessorFn=c,u.columnDef=i,u.columns=[],u.depth=n,u.id=`${String(s)}`,u.parent=r;let d=e._columnInstanceInitFns;for(let e=0;e{let r=[];if(!t?.length)r=n;else{let e=new Map;for(let t=0;t!n.includes(e.id));if(r===`remove`)return i;let a=new Map;for(let e=0;ee.getFlatColumns())]}function Zte(e){if(e.columns.length){let t=e.columns.flatMap(e=>e.getLeafColumns());return gv(e.table,`getOrderColumns`,Cv)(t)}return[e]}function Qte(e){return{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>e.renderValue()?.toString?.()??null,...Object.values(e._features).reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef?.()),{}),...e.options.defaultColumn}}function wv(e,t,n,r=0){let i=Array(t.length);for(let a=0;ae.getFlatColumns())}function tne(e){let t=av(),n=e.getAllFlatColumns();for(let e=0;ee.getLeafColumns());return gv(e,`getOrderColumns`,Cv)(t)}function rne(e){let t=av(),n=e.getAllLeafColumns();for(let e=0;e{hv(`coreColumnsFeature`,e,t,{column_getFlatColumns:{fn:e=>Xte(e),memoDeps:e=>[e.table.options.columns]},column_getLeafColumns:{fn:e=>Zte(e),memoDeps:e=>[e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),e.table.options.columns,e.table.options.groupedColumnMode]}})},constructTableAPIs:e=>{mv(`coreColumnsFeature`,e,{table_getDefaultColumnDef:{fn:()=>Qte(e),memoDeps:()=>[e.options.defaultColumn]},table_getAllColumns:{fn:()=>$te(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumns:{fn:()=>ene(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumnsById:{fn:()=>tne(e),memoDeps:()=>[e.options.columns]},table_getAllLeafColumns:{fn:()=>nne(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getAllLeafColumnsById:{fn:()=>rne(e),memoDeps:()=>[e.getAllLeafColumns()]},table_getColumn:{fn:t=>ine(e,t)}})}};function Tv(e,t){for(let n=0;n!t.includes(e.id)&&!n.includes(e.id));return Sv(r,[...o,...c,...s],e)}function Ev(e){return[...e.getHeaderGroups()].reverse()}function Dv(e){let t=e.getHeaderGroups(),n=[];for(let e=0;e{hv(`coreHeadersFeature`,e,t,{header_getLeafHeaders:{fn:e=>one(e),memoDeps:e=>[e.column.table.options.columns]},header_getContext:{fn:e=>sne(e),memoDeps:e=>[e.column.table.options.columns]}})},constructTableAPIs:e=>{mv(`coreHeadersFeature`,e,{table_getHeaderGroups:{fn:()=>cne(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.options.groupedColumnMode]},table_getFooterGroups:{fn:()=>Ev(e),memoDeps:()=>[e.getHeaderGroups()]},table_getFlatHeaders:{fn:()=>Dv(e),memoDeps:()=>[e.getHeaderGroups()]},table_getLeafHeaders:{fn:()=>Ov(e),memoDeps:()=>[e.getHeaderGroups()]}})}};function Av(e){if(!e._rowPrototype){e._rowPrototype={table:e};let t=Object.values(e._features);for(let n=0;n{let s=Av(e),c=Object.create(s);c._displayIndexCache=-1,c._uniqueValuesCache=av(),c._valuesCache=av(),c.depth=i,c.id=t,c.index=r,c.original=n,c.parentId=o,c.subRows=a??[];let l=e._rowInstanceInitFns;for(let e=0;e{let i=e.getValue(r),a=n.getValue(r),o=t.resolveDataValue;return o&&(i=o(i),a=o(a)),t.sort(i,a,e,n,r)},e);return t}var Pv=Nv({resolveDataValue:e=>Rv(e).toLowerCase(),sort:(e,t)=>zv(e,t)});Nv({resolveDataValue:e=>Rv(e),sort:(e,t)=>zv(e,t)}),Nv({resolveDataValue:e=>Rv(e).toLowerCase(),sort:(e,t)=>Iv(e,t)}),Nv({resolveDataValue:e=>Rv(e),sort:(e,t)=>Iv(e,t)}),Nv({resolveDataValue:e=>Lv(e),sort:(e,t)=>e>t?1:eIv(e,t)});function Iv(e,t){return e===t?0:e>t?1:-1}function Lv(e){return e instanceof Date?e.getTime():e}function Rv(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function zv(e,t){let n=0,r=0,i=e.length,a=t.length;for(;n=48&&e<=57}function Vv(e,t,n){let r=t+1;for(;ro)return 1;if(o>a)return-1}return o>s?1:s>o?-1:0}function Uv(e,t,n,r,i,a){let o=t;for(;oi?1:i>t?-1:0}let u=parseInt(e.slice(t,n),10),d=parseInt(r.slice(i,a),10);return u>d?1:d>u?-1:0}function Wv(e,t,n){let r=0;for(let i=t;ilne(e))}function dne(e){e.atoms.expanded&&(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding)&&e._reactivity.schedule(()=>fne(e))}function fne(e,t){let n=e.initialState.expanded;uv(e,`expanded`,t?av():n===!0||Object.assign(av(),iv(n??{})))}var qv=0;function Jv(e){if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if((e.atoms.pagination?.get()?.pageIndex??qv)===qv)return;hne(e,!0)}}function pne(e,t){uv(e,`pagination`,t)}function mne(e,t){pne(e,n=>{let r=rv(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})}function hne(e,t){mne(e,t?qv:e.initialState.pagination?.pageIndex??qv)}function gne(){return[]}function Yv(e,t){uv(e,`sorting`,t)}function Xv(e,t){Yv(e,t?[]:iv(e.initialState.sorting??[]))}function _ne(e){e.atoms.sorting&&(e.options.autoResetAll??e.options.autoResetSorting??!1)&&Xv(e)}function Zv(e){let t=e.table._rowModelFns.sortFns,n=e.table.getFilteredRowModel().flatRows.slice(0,10),r,i=!1;for(let t=0;t1)){r=`alphanumeric`;break}}if(!r&&i&&(r=`text`),r){let e=t?.[r];if(e||r===`alphanumeric`&&(e=t?.text),e)return e}return Fv}function Qv(e){let t=e.table.getFilteredRowModel().flatRows.slice(0,10);for(let n=0;n{let o=a.findIndex(t=>t.id===e.id),s=o===-1?void 0:a[o],c=[],l,u=i?t:r===`desc`,d=!!(a.length&&iy(e)&&n);return l=d?s?`toggle`:`add`:s?`toggle`:`replace`,l===`toggle`&&(i||r||(l=`remove`)),l===`add`?(c=[...a,{id:e.id,desc:u}],c.splice(0,c.length-(e.table.options.maxMultiSortColCount??2**53-1))):c=l===`toggle`?d?a.map(t=>t.id===e.id?{...t,desc:u}:t):[{id:e.id,desc:u}]:l===`remove`?d?a.filter(t=>t.id!==e.id):[]:[{id:e.id,desc:u}],c})}function ty(e){return e.columnDef.sortDescFirst??e.table.options.sortDescFirst??Qv(e)===`desc`?`desc`:`asc`}function ny(e,t){let n=ty(e),r=ay(e);return r?r!==n&&(e.table.options.enableSortingRemoval??!0)&&(!t||(e.table.options.enableMultiRemove??!0))?!1:r===`desc`?`asc`:`desc`:n}function ry(e){return(e.columnDef.enableSorting??!0)&&(e.table.options.enableSorting??!0)&&!!e.accessorFn}function iy(e){return e.columnDef.enableMultiSort??e.table.options.enableMultiSort??!!e.accessorFn}function ay(e){let t=e.table.atoms.sorting?.get()?.find(t=>t.id===e.id);return t?t.desc?`desc`:`asc`:!1}function vne(e){return e.table.atoms.sorting?.get()?.findIndex(t=>t.id===e.id)??-1}function yne(e){Yv(e.table,t=>t.length?t.filter(t=>t.id!==e.id):[])}function bne(e){let t=ry(e);return n=>{t&&ey(e,void 0,iy(e)?e.table.options.isMultiSortEvent?.(n):!1)}}function xne(){return e=>fv({feature:`coreRowModelsFeature`,table:e,fnName:`table.getCoreRowModel`,memoDeps:()=>[e.options.data],fn:()=>Sne(e,e.options.data),onAfterUpdate:dv(()=>{dne(e),Jv(e),_ne(e),une(e)})})}function oy(e,t,n,r=0,i){let a=[];for(let o=0;o{mv(`coreRowModelsFeature`,e,{table_getCoreRowModel:{fn:()=>Cne(e)},table_getPreFilteredRowModel:{fn:()=>wne(e)},table_getFilteredRowModel:{fn:()=>Tne(e)},table_getPreGroupedRowModel:{fn:()=>Ene(e)},table_getGroupedRowModel:{fn:()=>Dne(e)},table_getPreSortedRowModel:{fn:()=>One(e)},table_getSortedRowModel:{fn:()=>kne(e)},table_getPreExpandedRowModel:{fn:()=>Ane(e)},table_getExpandedRowModel:{fn:()=>jne(e)},table_getPrePaginatedRowModel:{fn:()=>Mne(e)},table_getPaginatedRowModel:{fn:()=>Nne(e)},table_getRowModel:{fn:()=>Pne(e)}})}};function Ine(e){if(!e._cellPrototype){e._cellPrototype={table:e};let t=Object.values(e._features);for(let n=0;n{t._displayIndexCache=e.length,e.push(t),t.subRows.length&&t.getIsExpanded?.()&&t.subRows.forEach(n)};return t.forEach(n),e}for(let e=0;ee.subRows)}function Wne(e){let t=e.getCoreRowModel().flatRows,n=0;for(let e=0;e{hv(`coreRowsFeature`,e,t,{row_getDisplayIndex:{fn:e=>Rne(e)},row_getAllCellsByColumnId:{fn:e=>Jne(e),memoDeps:e=>[e.getAllCells()]},row_getAllCells:{fn:e=>qne(e),memoDeps:e=>[e.table.getAllLeafColumns()]},row_getLeafRows:{fn:e=>Une(e),memoDeps:e=>[e.subRows]},row_getParentRow:{fn:e=>Gne(e)},row_getParentRows:{fn:e=>Kne(e)},row_getUniqueValues:{fn:(e,t)=>Vne(e,t)},row_getValue:{fn:(e,t)=>Bne(e,t)},row_renderValue:{fn:(e,t)=>Hne(e,t)}})},constructTableAPIs:e=>{mv(`coreRowsFeature`,e,{table_getRowsInDisplayOrder:{fn:()=>zne(e),memoDeps:()=>[e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows===!1?e.atoms.expanded?.get():void 0]},table_getRowId:{fn:(t,n,r)=>Yne(t,e,n,r)},table_getRow:{fn:(t,n)=>Xne(e,t,n)},table_getMaxSubRowDepth:{fn:()=>Wne(e),memoDeps:()=>[e.getCoreRowModel()]}})}};function sy(e,t,n=(e,t)=>e===t){let r=t===void 0?e.options.state:t;e._reactivity.batch(()=>{if(r)for(let t in r){let i=e.baseAtoms[t];if(!i)continue;let a=r[t],o=a===void 0?e.initialState[t]:a;n(e._reactivity.untrack(()=>i.get()),o)||i.set(()=>o)}})}function cy(e,t,n=(e,t)=>e===t){e._reactivity.batch(()=>{sy(e,t,n),e._reactivity.commit?.()})}function Qne(e){let t=iv(e.initialState);e._reactivity.batch(()=>{let n=Object.keys(t);for(let r=0;rr):e.options=r,n?.syncExternalState!==!1&&cy(e,r.state??null)}var ere={coreCellsFeature:Bte,coreColumnsFeature:ane,coreHeadersFeature:kv,coreRowModelsFeature:Fne,coreRowsFeature:Zne,coreTablesFeature:{constructTableAPIs:e=>{mv(`coreTablesFeature`,e,{table_reset:{fn:()=>Qne(e)},table_setOptions:{fn:t=>ly(e,t)}})}}};function tre(e){return e}function nre(e,t={}){return Object.values(e).forEach(e=>{t=e.getInitialState?.(t)??t}),iv(t)}function rre(e){let t=e.features.coreReactivityFeature,{aggregationFns:n,columnMeta:r,coreRowModel:i,expandedRowModel:a,facetedMinMaxValues:o,facetedRowModel:s,facetedUniqueValues:c,filterFns:l,filterMeta:u,filteredRowModel:d,groupedRowModel:f,paginatedRowModel:p,sortFns:m,sortedRowModel:h,tableMeta:g,..._}=e.features,v={_cellInstanceInitFns:[],_columnInstanceInitFns:[],_features:{...ere,..._},_headerGroupInstanceInitFns:[],_headerInstanceInitFns:[],_reactivity:t,_rowInstanceInitFns:[],_rowModelFns:{aggregationFns:n,filterFns:l,sortFns:m},_rowModels:{},atoms:{},baseAtoms:{}},y=Object.values(v._features),b={...y.reduce((e,t)=>Object.assign(e,t.getDefaultTableOptions?.(v)),{}),...e};if(t.wrapExternalAtoms&&b.atoms)for(let[e,n]of Object.entries(b.atoms)){let r=n,i=t.createWritableAtom(r.get(),{debugName:`externalAtom/${e}`});b.atoms[e]=i;let a=!1,o=r.subscribe(e=>{a||i.set(e)}),s=i.subscribe(e=>{a=!0,r.set(e),a=!1});t.addSubscription(o),t.addSubscription(s)}t.createOptionsStore?(v.optionsStore=t.createWritableAtom(b,{debugName:`table/optionsStore`}),Object.defineProperty(v,"options",{configurable:!0,enumerable:!0,get(){return v.optionsStore.get()},set(e){v.optionsStore.set(()=>e)}})):v.options=b,v.initialState=nre(v._features,v.options.initialState);let x=Object.keys(v.initialState);for(let e=0;e{let e=v.options,t=e.atoms?.[n],r=t?t.get():v.baseAtoms[n].get();if(t)return r;let i=e.state;if(i&&ov(i,n)){let e=i[n];return e===void 0?v.initialState[n]:e}return r},{debugName:`table/atoms/${n}`})}sy(v),v.store=Ete(t.createReadonlyAtom(()=>{let e={};for(let t=0;te.shiftKey}},assignColumnPrototype(e,t){hv(`rowSortingFeature`,e,t,{column_getAutoSortFn:{fn:e=>Zv(e)},column_getAutoSortDir:{fn:e=>Qv(e)},column_getSortFn:{fn:e=>$v(e)},column_toggleSorting:{fn:(e,t,n)=>ey(e,t,n)},column_getFirstSortDir:{fn:e=>ty(e)},column_getNextSortingOrder:{fn:(e,t)=>ny(e,t)},column_getCanSort:{fn:e=>ry(e)},column_getCanMultiSort:{fn:e=>iy(e)},column_getIsSorted:{fn:e=>ay(e)},column_getSortIndex:{fn:e=>vne(e)},column_clearSorting:{fn:e=>yne(e)},column_getToggleSortingHandler:{fn:e=>bne(e)}})},constructTableAPIs(e){mv(`rowSortingFeature`,e,{table_setSorting:{fn:t=>Yv(e,t)},table_resetSorting:{fn:t=>Xv(e,t)}})}};function are(){return e=>{let t=e;return fv({feature:`rowSortingFeature`,table:t,fnName:`table.getSortedRowModel`,memoDeps:()=>[t.atoms.sorting?.get(),t.getPreSortedRowModel()],fn:()=>ore(t),onAfterUpdate:dv(()=>Jv(t))})}}function ore(e){let t=e.getPreSortedRowModel(),n=e.atoms.sorting?.get();if(!t.rows.length||!n?.length)return t;let r=[],i=n.filter(t=>{let n=e.getColumn(t.id);return n?ry(n):!1});if(!i.length)return t;let a=[];for(let t=0;t{for(let n=0;n{let t=e.slice();t.sort(o);let n=!1;for(let i=0;i`u`?A.useEffect:A.useLayoutEffect;function cre(e,t){let[{table:n,rootSource:r}]=(0,A.useState)(()=>{let t=rre({...e,features:{coreReactivityFeature:kte(),...e.features}});return t.Subscribe=(e=>Tte({...e,source:e.source??t.store})),t.FlexRender=fte,{table:t,rootSource:Ote(t.store,ev)}}),i=n;ly(i,t=>({...t,...e}),{syncExternalState:!1});let a=i.options.state,o=r.get(),s=nv(r,t,{compare:ev});return sre(()=>{r.markCommitted(o),cy(i,a??null,ev)}),(0,A.useMemo)(()=>({...n,options:e,state:s}),[n,e,s])}var uy={ok:0,warn:1,bad:2};function dy(e){if(!e?.length)return;let t=[...e].sort((e,t)=>uy[e.status]-uy[t.status]),n=t[0],r=t[t.length-1];return uy[r.status]>uy[n.status]&&r.value!==n.value?r.value>n.value?`lower`:`higher`:`lower`}function fy(e,t,n){if(e===null||!t||t.length===0)return null;n??=dy(t);let r=`ok`;for(let i of t)(n===`lower`?e>=i.value:e<=i.value)&&uy[i.status]>uy[r]&&(r=i.status);return r}var py=new Intl.NumberFormat(`en`,{notation:`compact`,maximumFractionDigits:1}),my=new Intl.NumberFormat(`en`,{maximumFractionDigits:2});function hy(e){return Math.abs(e)<1e-4?e.toExponential(2).replace(/\.?(0+)(?=e)/,``):String(Number(e.toPrecision(3)))}function gy(e,t=my){return e!==0&&Math.abs(e)<1?hy(e):t.format(e)}function lre(e,t){let n=t===`s`?e*1e3:t===`ns`?e/1e6:e;return e!==0&&n===0?`${hy(e)}${t}`:n!==0&&Math.abs(n)<1?`${hy(n)}ms`:r_(n)}function ure(e){let t=[`B`,`KiB`,`MiB`,`GiB`,`TiB`],n=e,r=0;for(;Math.abs(n)>=1024&&r=1e4?py:my);default:return gy(t,Math.abs(t)>=1e4?py:my)}}function vy(e){return t=>e===`ms`||e===`s`||e===`ns`?_y(e,t).replace(/(\.\d*?)0+([a-z]*)$/,`$1$2`).replace(/\.([a-z]*)$/,`$1`):_y(e,t)}function yy(e,t){return vy(e)(t??NaN).replace(/(?<=\d)(ms|ns|s|m|h)\b/g,` $1`)}function by(e){return Math.max(3,Math.min(10,Math.round(e/70)))-1}function xy(e,t){let n=t===`ms`?1:t===`s`?1e3:t===`ns`?1e-6:void 0,r=e=>{let t=10**Math.floor(Math.log10(e));return[1,2,5,10].map(e=>e*t).find(t=>t>=e)};if(n===void 0)return r(e);let i=e*n,a=[1,10,100,1e3,1e4,6e4,6e5,36e5,36e6].flatMap(e=>[1,2,5].map(t=>e*t)).sort((e,t)=>e-t);return(i<1?r(i):a.find(e=>e>=i)??r(i/36e5)*36e5)/n}function Sy(e,t,n,r){e=Number.isFinite(e)?Math.min(0,e):0,t=Number.isFinite(t)?Math.max(0,t):1,t===e&&(t=e+1);let i=by(r),a=xy(Math.max(t-e,2**-52)/i,n);for(;Math.ceil(t/a)-Math.floor(e/a)>i;)a=xy(a*1.01,n);return{min:Math.floor(e/a)*a,max:Math.ceil(t/a)*a,interval:a,splitNumber:i,fanout_unit:n}}function Cy(e,t){return e.type!==`value`&&e.type!==`log`?e:{...e,...e.type===`value`&&typeof e.min==`number`&&typeof e.max==`number`?Sy(e.min,e.max,typeof e.fanout_unit==`string`?e.fanout_unit:void 0,t):{splitNumber:by(t)}}}function dre(e,t,n){let r=e=>_y(n,e),i=``;if(n===`ms`||n===`s`||n===`ns`){let a=n===`s`?1e3:n===`ns`?1e-6:1,o=Math.abs((e??t??0)*a),s=o>=6e4?6e4:o>=1e3?1e3:1;i=s===6e4?` min`:s===1e3?` s`:` ms`;let c=s===6e4?1:s===1e3?+(o<1e4):2,l=new Intl.NumberFormat(void 0,{maximumFractionDigits:c});r=e=>l.format(e*a/s)}return t===null&&e!==null?`≥${r(e)}${i}`:(e===null||e===0)&&t!==null?`<${r(t)}${i}`:`${e===null?`−∞`:r(e)}–${t===null?`∞`:r(t)}${i}`}function wy(e){let t=new Date(e);return t.getHours()===0&&t.getMinutes()===0&&t.getSeconds()===0?t.toLocaleDateString(void 0,{month:`short`,day:`numeric`}):t.toLocaleTimeString(void 0,{hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`})}function Ty(e,t=new Date,n){let r=new Date(e);if(!Number.isFinite(r.getTime()))return`—`;let i=new Intl.DateTimeFormat(n,{month:`short`,day:`numeric`,...r.getFullYear()===t.getFullYear()?{}:{year:`numeric`},hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`}).formatToParts(r),a=i.filter(e=>[`month`,`day`,`year`].includes(e.type)).map(e=>e.value),o=i.filter(e=>[`hour`,`minute`,`second`].includes(e.type)).map(e=>e.value);return`${a.join(` `)} ${o.join(`:`)}`}var Ey=e=>typeof e==`number`&&Number.isFinite(e)?e:null;function Dy(e){return e.columns.flatMap((e,t)=>e.role===`measure`?[t]:[])}function fre(e){let t=e.columns.findIndex(e=>e.role===`time`);if(t<0)return[];let n=e.columns.findIndex(e=>e.role===`dimension`),r=Dy(e);if(n>=0&&r.length>0){let i=r[0],a=new Map;for(let r=0;r({name:e.columns[n].name,unit:e.columns[n].unit,points:e.values[t].map((t,r)=>[Number(t),Ey(e.values[n][r])])}))}function pre(e){let t=e.columns.flatMap((e,t)=>e.role===`dimension`?[t]:[]),n=Dy(e);if(t.length===0||n.length===0)return{categories:[],series:[]};let r=t[0],i=[];for(let t=0;t1){let a=t[1],o=n[0],s=new Map;for(let t=0;tnull)),s.get(n)[i.indexOf(String(e.values[r][t]??``))]=Ey(e.values[o][t])}return{categories:i,series:[...s.entries()].map(([t,n])=>({name:t,unit:e.columns[o].unit,values:n}))}}return{categories:i,series:n.map(t=>({name:e.columns[t].name,unit:e.columns[t].unit,values:e.values[t].map(Ey)}))}}function Oy(e,t){let n=e.filter(e=>e!==null);if(n.length===0)return null;switch(t){case`last`:return n[n.length-1];case`min`:return Math.min(...n);case`max`:return Math.max(...n);case`sum`:return n.reduce((e,t)=>e+t,0);default:return n.reduce((e,t)=>e+t,0)/n.length}}function ky(e,t){let n=Dy(t)[0];return n===void 0?null:(e.reduce??`window`)===`window`?t.totals?Ey(t.totals[n]):Oy(t.values[n].map(Ey),`mean`):Oy(t.values[n].map(Ey),e.reduce??`mean`)}function mre(e){let t=Dy(e)[0];return t===void 0?[]:e.values[t].map(Ey)}function hre(e,t){return!t.previous||(e.reduce??`window`)===`window`&&!t.previous.totals?null:ky(e,t.previous)}function Ay(e){return e.replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e])}var jy=e=>e.map(Ay).join(`
`);function My(e,t=!1){return n=>{let r=Array.isArray(n)?n:[n];return jy([...r[0]?.axisValueLabel?[r[0].axisValueLabel]:[],...r.map(n=>{let r=n.value,i=Array.isArray(r)?t?r.slice(1):r:[r];return`${n.seriesName??``}${n.name?` · ${n.name}`:``}: ${i.map(t=>typeof t==`number`?e(t,n.seriesName):String(t??`—`)).join(` · `)}`})])}}var Ny=e=>/^Other(?: \(\d+\))?$/.test(e??``);function Py(e,t){let n=Math.min(6,Math.max(1,Math.floor(t.options?.top||6))),r=e.filter(e=>!Ny(e.name)),i=r.slice(0,n).map(e=>({name:e.name,items:[e]})),a=[...e.filter(e=>Ny(e.name)),...r.slice(n)];return a.length&&i.push({name:a.length===1&&Ny(a[0].name)?a[0].name:`Other (${a.reduce((e,t)=>e+(Ny(t.name)?Number(t.name.match(/\d+/)?.[0]??1):1),0)})`,items:a}),i}function gre(e){let t=e.filter(e=>e!==null);return t.length?t.reduce((e,t)=>e+t,0):null}function Fy(e,t){let n=Math.min(6,Math.max(1,Math.floor(t.options?.top||6))),r=e.filter(e=>!Ny(e.name));return{shown:[...r.slice(0,n),...e.filter(e=>Ny(e.name))],hidden:Math.max(0,r.length-n)}}function Iy(e,t){return e>0?[{type:`text`,right:8,bottom:2,silent:!0,style:{text:`${e} more series not shown`,fill:t,fontSize:11}}]:[]}function Ly(e,t,n,r,i=`sans-serif`,a){let o=e=>Array.from(e).length>24?`${Array.from(e).slice(0,23).join(``)}…`:e,s=Math.max(1,t-16),c=1,l=0;for(let t of e){let e=15+(a?.(o(t),`12px ${i}`)??Array.from(o(t)).length*7.2);l&&l+10+e>s&&(c++,l=0),l+=(l?10:0)+e}let u=c>2;return{top:n?u?30:c*20+2:12,option:{type:u?`scroll`:`plain`,show:n,top:0,left:0,right:0,padding:0,itemGap:6,icon:`roundRect`,itemWidth:10,itemHeight:10,itemStyle:{borderColor:r,borderWidth:1},textStyle:{color:r,fontSize:12,lineHeight:14},data:e,formatter:o,tooltip:{show:!0,renderMode:`html`,formatter:e=>Ay(e.name)}}}}function Ry(e,t){let n=Hg(e),r=Hg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function zy(e,t){return`rgba(${[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)).join(`, `)}, ${t})`}function By(e,t){return{color:e,...Ry(e,t.surface)<3?{borderColor:t.text,borderWidth:1}:{}}}function _re(e,t){return{color:e,...Ry(e,t.surface)<3?{shadowColor:t.text,shadowBlur:2}:{}}}function Vy(e,t){return{ok:Ng,warn:Pg,bad:Fg}[e][t?5:8]}function Hy(e){let t=$g(e),n=e_(e);return{dark:e,text:t.text,muted:t.muted,grid:t.grid,surface:t.surface,border:t.border,status:{ok:n.ok,warn:n.warn,bad:n.bad},font:zg.display}}function Uy(e,t,n){if(!Array.isArray(e.series))return e;let r=e.series,i=Array.isArray(e.yAxis)?e.yAxis:[e.yAxis],a=[],o=r.map((e,o)=>{let s=e.endLabel;if(!s?.show||!Array.isArray(e.data))return e;let c;for(let t=e.data.length-1;t>=0;t--){let n=e.data[t];if(Array.isArray(n)&&typeof n[1]==`number`&&Number.isFinite(n[1])){c=n;break}}let l=i[Number(e.yAxisIndex??0)];if(!c||!l)return{...e,endLabel:{...s,show:!1}};let u=l.type===`log`?Math.log:e=>e,d=l.min??1/0,f=l.max??0;if(l.type===`log`&&(l.min===void 0||l.max===void 0)){for(let t of r)if(Number(t.yAxisIndex??0)===Number(e.yAxisIndex??0)&&Array.isArray(t.data))for(let e of t.data)Array.isArray(e)&&typeof e[1]==`number`&&Number.isFinite(e[1])&&e[1]>0&&(l.min===void 0&&(d=Math.min(d,e[1])),l.max===void 0&&(f=Math.max(f,e[1])))}Number.isFinite(d)||(d=1);let p=u(l.type===`log`?d:l.min??0),m=u(l.type===`log`?Math.max(f,d*1.01):l.max??1),h=n?.(o,c),g=Number.isFinite(h)?h:t.y+t.height*(1-(u(c[1])-p)/(m-p)),_=((s.lineHeight??14)+2)/2,v=[Math.max(t.y+_,Math.min(t.y+t.height-_,g)),...a.flatMap(e=>[e.y-e.half-_,e.y+e.half+_])].filter(e=>Number.isFinite(e)&&e-_>=t.y&&e+_<=t.y+t.height&&a.every(t=>Math.abs(t.y-e)>=t.half+_)).sort((e,t)=>Math.abs(e-g)-Math.abs(t-g))[0];return v===void 0?{...e,endLabel:{...s,show:!1}}:(a.push({y:v,half:_}),{...e,labelLayout:{dy:v-g,hideOverlap:!0}})});return{...e,series:o}}var Wy=(e,t,n)=>Ny(e)?n.muted:t_(t,n.dark);function Gy(e,t){let n=fre(e);if(!e.columns.some(e=>e.role===`dimension`))for(let e of n){let t=e.name;e.name=/^p\d+(?:\(.*\))?$/.test(t)&&[`ms`,`s`,`ns`].includes(e.unit??``)?`${t.match(/^p\d+/)[0]} latency`:/^error_rate(?:\(\))?$/.test(t)?`Error rate`:/^rate(?:\(\))?$/.test(t)?`Request rate`:t.replaceAll(`_`,` `).replace(/^./,e=>e.toUpperCase())}return Fy(n,t)}function Ky(e,t){return{animationDuration:200,textStyle:{fontFamily:e.font,color:e.muted,fontSize:11},grid:{left:8,right:16,top:28,bottom:8,containLabel:!0},tooltip:{trigger:`axis`,formatter:My(e=>_y(t,e)),confine:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},valueFormatter:e=>_y(t,e),axisPointer:{type:`line`,lineStyle:{color:e.border}}},aria:{enabled:!0}}}function vre(e,t,n){return(e.thresholds??[]).map(r=>({yAxis:r.value,label:{formatter:`${r.label??r.status} ${vy(n??e.unit)(r.value).replace(/(?<=\d)(ms|s|m|h)$/,` $1`)}`,position:`insideStartTop`,color:t.muted,textBorderColor:t.surface,textBorderWidth:3,fontSize:12},lineStyle:{color:t.status[r.status],type:[4,3],width:1}}))}function yre(e,t,n,r={width:500,height:248}){let i=t.frame?Gy(t.frame,e):{shown:[],hidden:0},a=i.shown,o=a[0]?.unit??e.unit,s=new Set(a.map(e=>e.name)),c=a.find(e=>Ny(e.name)),l=t.previous&&t.shift_ms!==void 0?Gy(t.previous,e).shown.flatMap(e=>Ny(e.name)?c?[e]:[]:s.has(e.name)?[e]:[]):[],u=[...new Set([...a,...l].map(t=>t.unit??e.unit))];u.length===0&&u.push(e.unit);let d=e.options?.style??`line`,f=a.length>=2&&a.length<=6&&i.hidden===0&&d!==`bars`&&d!==`stacked`,p=f?Math.max(40,...a.map(e=>{let t=Array.from(e.name).slice(0,24).join(``);return r.measureText?.(t,`12px ${n.font}`)??Array.from(t).length*7.2}))+12:0,m=f?p+8:0,h=(e.options?.legend??`auto`)!==`hidden`&&a.length>1,g=Ly(a.map(e=>e.name),r.width,h,n.text,n.font,r.measureText),_=r.height-g.top-(i.hidden?24:8)-22,v=Math.max(0,Math.floor(_/16)),y=t.shift_ms,b=a.map((t,r)=>{let i=Wy(t.name,r,n);return{name:t.name,interactive:!0,yAxisIndex:u.indexOf(t.unit??e.unit),tooltip:{valueFormatter:n=>_y(t.unit??e.unit,n)},type:d===`bars`||d===`stacked`?`bar`:`line`,data:t.points,endLabel:f?{show:r0?{symbol:[`none`,`none`],silent:!0,data:vre(e,n,o)}:void 0}}),x=y===void 0?[]:l.map(t=>({name:`${t.name} · previous`,interactive:!1,yAxisIndex:u.indexOf(t.unit??e.unit),tooltip:{valueFormatter:n=>_y(t.unit??e.unit,n)},type:`line`,data:t.points.map(([e,t])=>[e+y,t]),showSymbol:!1,silent:!0,z:1,lineStyle:{width:1,type:`dashed`,color:n.muted},itemStyle:{color:n.muted}})),S=u.map((t,n)=>{let r=[...a,...l].filter(n=>(n.unit??e.unit)===t).flatMap(e=>e.points.flatMap(([,e])=>e===null?[]:[e]));if(d===`stacked`){let n=new Map;for(let r of a.filter(n=>(n.unit??e.unit)===t))for(let[e,t]of r.points){let r=n.get(e)??{positive:0,negative:0};t!==null&&(t>0?r.positive+=t:r.negative+=t),n.set(e,r)}r.push(...[...n.values()].flatMap(e=>[e.positive,e.negative]))}return n===0&&r.push(...(e.thresholds??[]).map(e=>e.value)),Sy(Math.min(0,...r),Math.max(0,...r),t,_)}),C=u.map((t,r)=>({...e.options?.scale===`log`?{splitNumber:by(_)}:S[r],type:e.options?.scale===`log`?`log`:`value`,position:r===0?`left`:`right`,offset:Math.max(0,r-1)*56,axisLine:{show:!1},splitLine:{show:r===0,lineStyle:{color:n.grid}},axisLabel:{color:n.muted,fontFamily:n.font,fontSize:11,hideOverlap:!0,formatter:vy(t)}}));return Uy({...Ky(n,o),tooltip:{...Ky(n,o).tooltip,formatter:My((t,n)=>_y([...a,...l].find(e=>e.name===n||`${e.name} · previous`===n)?.unit??e.unit,t),!0)},legend:g.option,grid:{left:8,right:16+(f?m:0)+Math.max(0,u.length-2)*56,top:g.top,bottom:i.hidden?24:8,containLabel:!0},xAxis:{type:`time`,min:t.from_ms,max:t.to_ms,axisLine:{lineStyle:{color:n.grid}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:n.muted,fontFamily:n.font,fontSize:11,hideOverlap:!0,formatter:wy}},yAxis:C.length===1?C[0]:C,series:[...b,...x],graphic:Iy(i.hidden,n.muted)},{y:g.top,height:_})}function bre(e,t,n){if(n(e)<=t)return e;let r=Array.from(e);for(let e=r.length-1;e>0;e--){let i=Math.floor(e*.45),a=e-i,o=r.slice(0,i).join(``)+`…`+r.slice(-a).join(``);if(n(o)<=t)return o}return`…`}function xre(e,t,n,r={width:500,height:248}){let i=pre(t),a=i.categories,{shown:o,hidden:s}=Fy(i.series,e),c=t.columns.flatMap((e,t)=>e.role===`dimension`?[t]:[]),l=new Map;for(let n=0;nString(t.values[e][n]??``))),{dimensions:r,...i})}let u=o[0]?.unit??e.unit,d=[...new Set(o.map(t=>t.unit??e.unit))];d.length===0&&d.push(e.unit);let f=o.length>1,p=!!(t.periods?.[`Before deploy`]||t.periods?.[`Since deploy`]),m=e=>r.measureText?.(e,`11px ${n.font}`)??Array.from(e).length*6.6,h=Math.min(r.width*.4,Math.max(40,...a.map(m))),g=Ly(o.map(e=>e.name),r.width,f&&e.options?.legend!==`hidden`,n.text,n.font,r.measureText),_=d.map((t,i)=>({...Sy(Math.min(0,...o.filter(n=>(n.unit??e.unit)===t).flatMap(e=>e.values.filter(e=>e!==null))),Math.max(0,...o.filter(n=>(n.unit??e.unit)===t).flatMap(e=>e.values.filter(e=>e!==null))),t,r.width-h-80),type:`value`,position:i===0?`bottom`:`top`,offset:Math.max(0,i-1)*36,splitLine:{show:i===0,lineStyle:{color:n.grid}},axisLabel:{color:n.muted,fontFamily:n.font,fontSize:11,formatter:e=>yy(t,e),hideOverlap:!0}}));return{...Ky(n,u),tooltip:{...Ky(n,u).tooltip,formatter:My((t,n)=>_y(o.find(e=>e.name===n)?.unit??e.unit,t)),axisPointer:{type:`shadow`}},legend:g.option,grid:{left:8,right:56,top:(f?g.top:8)+Math.max(0,d.length-1)*36,bottom:s?24:8,containLabel:!0},yAxis:{type:`category`,inverse:!0,data:a,splitLine:{show:!1},axisLine:{lineStyle:{color:n.grid}},axisTick:{show:!1},axisLabel:{color:n.muted,fontFamily:n.font,fontSize:11,width:h,overflow:`truncate`,formatter:e=>bre(e,h,m)}},xAxis:_.length===1?_[0]:_,series:o.map((t,r)=>({name:t.name,interactive:!0,xAxisIndex:d.indexOf(t.unit??e.unit),tooltip:{valueFormatter:n=>_y(t.unit??e.unit,n)},type:`bar`,data:t.values.map((e,n)=>({value:e,selection:l.get(JSON.stringify(c.length>1?[a[n],t.name]:[a[n]]))})),barMaxWidth:p&&t.name===`Before deploy`?7:14,barGap:`20%`,itemStyle:{...By(p?t.name===`Before deploy`?n.muted:t_(0,n.dark):Wy(t.name,r,n),n),borderRadius:[0,4,4,0]},label:{show:p?t.name===`Since deploy`:!f||r===0,position:`right`,color:n.text,fontFamily:n.font,fontSize:11,formatter:({value:n})=>yy(t.unit??e.unit,n)}})),graphic:Iy(s,n.muted)}}function Sre(e,t,n,r=e.unit,i={width:270,height:140}){let a=e.min??0,o=e.max??100,s=Cre(e,a,o,n),c=_y(r,t),l=fy(t,e.thresholds,e.better),u=l===`bad`?`◆ Bad`:l===`warn`?`■ Warn`:l===`ok`?`● OK`:t===null?`○ Unknown`:void 0,d=e=>`${e}40`,f=i.measureText?.(c,`600 28px ${n.font}`)??c.length*28*.6,p=i.measureText?.(u??``,`11px ${n.font}`)??(u?.length??0)*11*.6,m=i.width{let r=y;return y=e,{type:`rect`,shape:{x:4+r*_,y:g,width:(e-r)*_,height:10,r:[n===0?5:0,n===s.length-1?5:0,n===s.length-1?5:0,n===0?5:0]},style:{fill:d(t)}}}),{id:`gauge-fill`,type:`rect`,shape:{x:4,y:g,width:v*_,height:10,r:5},style:{fill:l?n.status[l]:t_(0,n.dark)}},{id:`gauge-marker`,type:`rect`,shape:{x:3+v*_,y:g-2,width:2,height:14,r:1},style:{fill:n.text}},{type:`text`,left:4,top:g+12,style:{text:_y(r,a),fill:n.muted,fontSize:11,fontFamily:n.font}},{type:`text`,right:4,top:g+12,style:{text:_y(r,o),fill:n.muted,fontSize:11,fontFamily:n.font}}]}}function Cre(e,t,n,r){let i=n-t||1,a=[t,...(e.thresholds??[]).map(e=>Math.min(n,Math.max(t,e.value))),n].sort((e,t)=>e-t),o=[];for(let t=0;t[(e.end-t)/i,r.status[e.status]])}function wre({panel:e,result:t,dark:n=!1,compare:r=!0,range:i}){let a=t.frame,o=ky(e,a),s=a.columns.find(e=>e.role===`measure`)?.unit??e.unit,c=e.better??t.better??dy(e.thresholds),l=fy(o,e.thresholds,c)??(a.health?.health===`healthy`?`ok`:a.health?.health===`degraded`?`warn`:a.health?.health===`unhealthy`?`bad`:null),u=hre(e,t),d=mre(a),f=e.thresholds?.find(e=>e.status===l&&o!==null&&(c===`higher`?o<=e.value:o>=e.value))?.label,p=Hy(n);return(0,R.jsxs)(B,{h:`100%`,style:{display:`flex`,flexDirection:`column`,justifyContent:`space-between`,gap:4},children:[(0,R.jsxs)(yl,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,gap:`xs`,children:[(0,R.jsx)(Dd,{"data-stat-value":!0,fz:32,fw:700,lh:1.1,lts:`-0.02em`,ff:`var(--mantine-font-family-monospace)`,children:_y(s,o)}),l&&(0,R.jsxs)(Dd,{"data-stat-status":!0,fz:12,fw:500,style:{borderRadius:999,padding:`1px 8px`,whiteSpace:`nowrap`,background:`${p.status[l]}22`,color:p.text},children:[(0,R.jsx)(`span`,{style:{color:p.status[l]},children:l===`bad`?`◆`:l===`warn`?`■`:`●`}),` `,f??(l===`bad`?`Unhealthy`:l===`warn`?`Degraded`:`Healthy`)]})]}),r&&u!==null&&o!==null&&(0,R.jsx)(Tre,{dark:n,value:o,previous:u,better:c,unit:s,period:Ere(i,t)}),(0,R.jsx)(qy,{points:d,area:!0,dark:n,height:40})]})}function Tre({value:e,previous:t,better:n,unit:r,period:i,dark:a}){let o=r===`percent`,s=o?e-t:t===0?e===0?0:1/0:(e-t)/Math.abs(t)*100,c=s>=0,l=s===0||!n?null:c?n===`higher`:n===`lower`,u=Number.isFinite(s)?o?`${c?`+`:`−`}${Math.abs(s).toFixed(1)} pts`:`${c?`+`:`−`}${Math.abs(s).toFixed(0)}%`:`new`;return(0,R.jsxs)(yl,{gap:6,children:[(0,R.jsxs)(Dd,{"data-stat-delta":!0,fz:12,fw:600,style:{color:l===null?`var(--mantine-color-dimmed)`:Vy(l?`ok`:`bad`,a)},children:[c?`▲`:`▼`,` `,u]}),(0,R.jsxs)(Dd,{fz:12,c:`dimmed`,children:[`vs previous `,i]})]})}function Ere(e,t){let n=t.from_ms!==void 0&&t.to_ms!==void 0?t.to_ms-t.from_ms:t.shift_ms,r=/^(\d+)(s|m|h|d|w)$/.exec(e??``),i=r?Number(r[1])*{s:1e3,m:6e4,h:36e5,d:864e5,w:6048e5}[r[2]]:n;if(!i)return`period`;let a=i>=6048e5?`week`:i>=864e5?`day`:i>=36e5?`hour`:i>=6e4?`minute`:`second`,o=i/{week:6048e5,day:864e5,hour:36e5,minute:6e4,second:1e3}[a];return o===1?a:`${Number(o.toFixed(2))} ${a}s`}function qy({points:e,area:t=!1,dark:n=!1,height:r=32}){let i=e.filter(e=>e!==null&&Number.isFinite(e));if(i.length<2)return null;let a=Math.min(...i),o=Math.max(...i),s=r,c=t=>t/(e.length-1)*200,l=e=>s-2-(e-a)/(o-a||1)*(s-4),u=e.map((t,n)=>t===null||!Number.isFinite(t)?``:`${n===0||e[n-1]===null||!Number.isFinite(e[n-1])?`M`:`L`}${c(n).toFixed(1)},${l(t).toFixed(1)}`).join(``),d=[];return e.forEach((t,n)=>{if(t!==null&&Number.isFinite(t)){if(!n||e[n-1]===null||!Number.isFinite(e[n-1]))d.push({start:n,end:n,path:`M${c(n).toFixed(1)},${l(t).toFixed(1)}`});else{let e=d.at(-1);e.end=n,e.path+=`L${c(n).toFixed(1)},${l(t).toFixed(1)}`}}}),(0,R.jsxs)(`svg`,{viewBox:`0 0 200 ${s}`,preserveAspectRatio:`none`,width:`100%`,height:s,role:`img`,"aria-label":`Value over this panel's time range`,children:[t&&d.filter(e=>e.end>e.start).map(e=>(0,R.jsx)(`path`,{"data-sparkline-area":!0,d:`${e.path}L${c(e.end)},${s}L${c(e.start)},${s}Z`,fill:t_(0,n),opacity:.18},e.start)),(0,R.jsx)(`path`,{"data-sparkline-line":!0,d:u,fill:`none`,stroke:t?t_(0,n):`var(--mantine-primary-color-filled)`,strokeWidth:1.5,vectorEffect:`non-scaling-stroke`})]})}function Dre(e,t,n,r,i,a){e.format===`status`&&e.unit&&typeof t==`string`&&t.trim()!==``&&Number.isFinite(Number(t))&&(t=Number(t));let o=t===null?`—`:String(t),s={kind:e.format,text:o};if([`unit`,`bar`,`status`,`sparkline`].includes(e.format)&&(s.text=typeof t==`number`?_y(e.unit,t):o),e.format===`bar`&&(s.fraction=typeof t==`number`&&n>0?Math.max(0,Math.min(1,t/n)):0),e.format===`status`&&typeof t==`number`&&(s.status=fy(Number.isFinite(t)?t:null,r?.thresholds,r?.better??i)),e.format===`service_link`&&(s.variable=e.variable),e.format===`sparkline`&&a)return s.points=a.slice(0,240),s;if(e.format===`sparkline`)try{let e=JSON.parse(o);Array.isArray(e)?s.points=e.slice(0,240).map(e=>typeof e==`number`&&Number.isFinite(e)?e:null):s.unsupported=`Sparkline requires an array column`}catch{s.unsupported=`Sparkline requires an array column`}return s}function Jy({text:e,template:t=!1,highlight:n=``}){let r=Jt(`light`)===`dark`,i=Mg[r?5:7],a=[1,3,5].map(e=>parseInt(i.slice(e,e+2),16)).join(`, `),o=[];if(n){let t=e.toLowerCase(),r=n.toLowerCase();for(let e=t.indexOf(r);e!==-1;e=t.indexOf(r,e+r.length))o.push(e)}let s=(t,i)=>{let s=[],c=t;for(let l of o){let o=Math.max(t,l),u=Math.min(i,l+n.length);o>=u||(s.push(e.slice(c,o),(0,R.jsx)(`mark`,{"data-highlight-match":!0,style:{background:`rgba(${a}, ${r?.22:.3})`,color:`inherit`,borderRadius:3,padding:`0 2px`},children:e.slice(o,u)},o)),c=u)}return s.push(e.slice(c,i)),s},c=[],l=0;if(t)for(let t of e.matchAll(/<\*>||||