import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{C as t,w as n,x as r}from"./react-Cthodp0K.js";import{_ as i,y as a}from"./utils-CwZyhK1d.js";var o=e(n(),1),s=e(t(),1);function c(e){return Object.keys(e)}function l(e){return e&&typeof e==`object`&&!Array.isArray(e)}function u(e,t){let n={...e},r=t;return l(e)&&l(t)&&Object.keys(t).forEach(t=>{l(r[t])&&t in e?n[t]=u(n[t],r[t]):n[t]=r[t]}),n}function d(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function f(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function p(e){let t=f(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function m(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function h(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?m(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?m(n):n}}return r}return n}var g=h(`rem`,{shouldScale:!0}),_=h(`em`);function v(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function y(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function b(e){return Array.isArray(e)||e===null?!1:typeof e==`object`?e.type!==o.Fragment:!1}function x(e){let t=(0,o.createContext)(null);return[t,()=>{let n=(0,o.use)(t);if(n===null)throw Error(e);return n}]}function S(e,t){return n=>{if(typeof n!=`string`||n.trim().length===0)throw Error(t);return`${e}-${n}`}}function C(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function w(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function T(e,t,n){for(let n=e+1;n{n?.(s);let c=Array.from(C(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>E(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=T(l,c,r),d=w(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[T(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[w(c.length,c,!1)]?.focus();break}}}var O={app:100,modal:200,popover:300,overlay:400,max:9999};function k(e){return O[e]}var A=()=>{};function j(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||A:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function M(e,t=`size`,n=!0){if(e!==void 0)return y(e)?n?g(e):e:`var(--${t}-${e})`}function N(e){return M(e,`mantine-spacing`)}function P(e){return e===void 0?`var(--mantine-radius-default)`:M(e,`mantine-radius`)}function F(e){return M(e,`mantine-font-size`)}function I(e){return M(e,`mantine-line-height`,!1)}function L(e){if(e)return M(e,`mantine-shadow`,!1)}function R(e,t){return n=>{e?.(n),t?.(n)}}function z(e,t){return e in t?p(t[e]):p(e)}function B(e,t){let n=e.map(e=>({value:e,px:z(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function V(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function H(e,t,n){return n?Array.from(C(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function ee(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function U(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function te(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i{t.current=e}),(0,o.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function re(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,s=ne(e),c=(0,o.useRef)(0),l=(0,o.useRef)(0),u=(0,o.useRef)(null),d=(0,o.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(c.current),u.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function o(){window.clearTimeout(c.current),window.clearTimeout(l.current),c.current=0,l.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&l.current===0&&(l.current=window.setTimeout(()=>{if(c.current!==0){let e=u.current;o(),s(...e)}},a))}if(i&&r){s(...t),e.flush=()=>{c.current!==0&&(o(),s(...t))},e.cancel=()=>{o()},c.current=window.setTimeout(()=>{o()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{c.current!==0&&(o(),s(...t))},e.cancel=()=>{o()},c.current=window.setTimeout(()=>{o()},n),d();return}e._hasPendingCallback=!0;let f=()=>{c.current!==0&&(o(),s(...t))};e.flush=f,e.cancel=()=>{o()},c.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[s,n,i,a]);return(0,o.useEffect)(()=>()=>{r?d.flush():d.cancel()},[d,r]),d}var ie=[`mousedown`,`touchstart`];function W(e,t,n,r=!0){let i=(0,o.useRef)(null),a=t||ie,s=(0,o.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&r?.tagName!==`HTML`)return;let a=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!a.includes(e))&&e(t):i.current&&!a.includes(i.current)&&e(t)}),c=a.join(`,`);return(0,o.useEffect)(()=>{if(!r)return;let e=c.split(`,`);return e.forEach(e=>document.addEventListener(e,s)),()=>{e.forEach(e=>document.removeEventListener(e,s))}},[c,r]),i}function ae(e={}){let t=e.timeout??2e3,[n,r]=(0,o.useState)(null),[i,a]=(0,o.useState)(!1),s=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>{window.clearTimeout(s.current)},[]);let c=e=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>a(!1),t),a(e)};return{copy:e=>{`clipboard`in navigator?navigator.clipboard.writeText(e).then(()=>{r(null),c(!0)}).catch(e=>r(e)):r(Error(`useClipboard: navigator.clipboard is not supported`))},reset:()=>{a(!1),r(null),window.clearTimeout(s.current)},error:n,copied:i}}function G(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window?window.matchMedia(e).matches:!1}function K(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,o.useState)(n?t:G(e));return(0,o.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}function oe(e,t){return K(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}function se(e,t,n={leading:!1}){let[r,i]=(0,o.useState)(e),a=(0,o.useRef)(!1),s=(0,o.useRef)(null),c=(0,o.useRef)(!1),l=(0,o.useRef)(e);l.current=e;let u=(0,o.useCallback)(()=>{window.clearTimeout(s.current),s.current=null,c.current=!1},[]),d=(0,o.useCallback)(()=>{s.current&&(u(),c.current=!1,i(l.current))},[]);return(0,o.useEffect)(()=>{a.current&&(!c.current&&n.leading?(c.current=!0,i(e),s.current=window.setTimeout(()=>{c.current=!1},t)):(u(),s.current=window.setTimeout(()=>{c.current=!1,i(e)},t)))},[e,n.leading,t]),(0,o.useEffect)(()=>(a.current=!0,u),[]),[r,u,{cancel:u,flush:d}]}var ce=typeof document<`u`?o.useLayoutEffect:o.useEffect;function le(e,t){let n=(0,o.useRef)(!1);(0,o.useEffect)(()=>()=>{n.current=!1},[]),(0,o.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}function ue({opened:e,shouldReturnFocus:t=!0}){let n=(0,o.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return le(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var de=/input|select|textarea|button|object/,fe=`a, input, select, textarea, button, object, [tabindex]`;function pe(e){return e.style.display===`none`}function me(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&!(t===document.body||t.nodeType===11);){if(pe(t))return!1;t=t.parentNode}return!0}function he(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function ge(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(he(e));return(de.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&me(e)}function _e(e){let t=he(e);return(Number.isNaN(t)||t>=0)&&ge(e)}function ve(e){return Array.from(e.querySelectorAll(fe)).filter(_e)}function ye(e,t){let n=ve(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function be(e=!0){let t=(0,o.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(fe));t=n.find(_e)||n.find(ge)||null,!t&&ge(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,o.useCallback)(r=>{if(e){if(r===null){t.current=null;return}t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r)}},[e]);return(0,o.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&ye(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}var xe=e=>(e+1)%1e6;function Se(){let[,e]=(0,o.useReducer)(xe,0);return e}function Ce(e){let[t,n]=(0,o.useState)(`mantine-${(0,o.useId)().replace(/:/g,``)}`),r=(0,o.useRef)(!1);return ce(()=>{r.current||(r.current=!0,n(U()))},[]),typeof e==`string`?e:t}function we(e=[]){let[t,n]=(0,o.useState)(e),r=(0,o.useCallback)((...e)=>n(t=>[...t,...e]),[]),i=(0,o.useCallback)((...e)=>n(t=>[...e,...t]),[]),a=(0,o.useCallback)((e,...t)=>n(n=>[...n.slice(0,e),...t,...n.slice(e)]),[]),s=(0,o.useCallback)(e=>n(t=>t.map((t,n)=>e(t,n))),[]),c=(0,o.useCallback)((...e)=>n(t=>t.filter((t,n)=>!e.includes(n))),[]),l=(0,o.useCallback)(()=>n(e=>{let t=[...e];return t.pop(),t}),[]),u=(0,o.useCallback)(()=>n(e=>{let t=[...e];return t.shift(),t}),[]),d=(0,o.useCallback)(({from:e,to:t})=>n(n=>{let r=[...n],i=n[e];return r.splice(e,1),r.splice(t,0,i),r}),[]),f=(0,o.useCallback)(({from:e,to:t})=>n(n=>{let r=[...n],i=r[e],a=r[t];return r.splice(t,1,i),r.splice(e,1,a),r}),[]),p=(0,o.useCallback)((e,t)=>n(n=>{let r=[...n];return r[e]=t,r}),[]),m=(0,o.useCallback)((e,t,r)=>n(n=>{let i=[...n];return i[e]={...i[e],[t]:r},i}),[]),h=(0,o.useCallback)((e,t)=>n(n=>n.map((n,r)=>e(n,r)?t(n,r):n)),[]),g=(0,o.useCallback)(e=>{n(t=>t.filter(e))},[]);return[t,(0,o.useMemo)(()=>({setState:n,append:r,prepend:i,insert:a,pop:l,shift:u,apply:s,applyWhere:h,remove:c,reorder:d,swap:f,setItem:p,setItemProp:m,filter:g}),[])]}function Te(e,t,n){let r=(0,o.useEffectEvent)(t);(0,o.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Ee(e,t=`use-local-storage`){try{return JSON.stringify(e)}catch{throw Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function De(e){try{return e&&JSON.parse(e)}catch{return e}}function Oe(e){return{getItem:t=>{try{return window[e].getItem(t)}catch{return console.warn(`use-local-storage: Failed to get value from storage, localStorage is blocked`),null}},setItem:(t,n)=>{try{window[e].setItem(t,n)}catch{console.warn(`use-local-storage: Failed to set value to storage, localStorage is blocked`)}},removeItem:t=>{try{window[e].removeItem(t)}catch{console.warn(`use-local-storage: Failed to remove value from storage, localStorage is blocked`)}}}}function ke(e,t){let n=e===`localStorage`?`mantine-local-storage`:`mantine-session-storage`,{getItem:r,setItem:i,removeItem:a}=Oe(e);return function({key:s,defaultValue:c,getInitialValueInEffect:l=!0,sync:u=!0,deserialize:d=De,serialize:f=e=>Ee(e,t)}){let p=(0,o.useCallback)(t=>{let n;try{n=typeof window>`u`||!(e in window)||window[e]===null||!!t}catch{n=!0}if(n)return c;let i=r(s);return i===null?c:d(i)},[s,c]),[m,h]=(0,o.useState)(p(l)),g=(0,o.useCallback)(e=>{e instanceof Function?h(t=>{let r=e(t);return i(s,f(r)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:r}}))}),r}):(i(s,f(e)),window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:e}})),h(e))},[s]),_=(0,o.useCallback)(()=>{a(s),h(c),window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:c}}))},[s,c]);return Te(`storage`,t=>{u&&t.storageArea===window[e]&&t.key===s&&h(d(t.newValue??void 0))}),Te(n,e=>{u&&e.detail.key===s&&h(e.detail.value)}),(0,o.useEffect)(()=>{c!==void 0&&m===void 0&&g(c)},[c,m,g]),(0,o.useEffect)(()=>{let e=p();e!==void 0&&g(e)},[s]),[m===void 0?c:m,g,_]}}function Ae(e){let{getItem:t}=Oe(e);return function({key:n,defaultValue:r,deserialize:i=De}){let a;try{a=typeof window>`u`||!(e in window)||window[e]===null}catch{a=!0}if(a)return r;let o=t(n);return o===null?r:i(o)}}function je(e){return ke(`localStorage`,`use-local-storage`)(e)}Ae(`localStorage`);function Me(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Ne(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Me(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Me(e,null)}),t.clear()}}}function Pe(...e){return(0,o.useCallback)(Ne(...e),e)}function Fe(e){return{x:ee(e.x,0,1),y:ee(e.y,0,1)}}function Ie(e,t,n=`ltr`){let r=(0,o.useRef)(!1),i=(0,o.useRef)(!1),a=(0,o.useRef)(0),s=(0,o.useRef)(null),[c,l]=(0,o.useState)(!1);return(0,o.useEffect)(()=>(r.current=!0,()=>{s.current?.()}),[]),{ref:(0,o.useCallback)(o=>{let c=({x:t,y:i})=>{cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{if(r.current&&o){o.style.userSelect=`none`;let r=o.getBoundingClientRect();if(r.width&&r.height){let a=ee((t-r.left)/r.width,0,1);e({x:n===`ltr`?a:1-a,y:ee((i-r.top)/r.height,0,1)})}}})},u=()=>{document.addEventListener(`mousemove`,h),document.addEventListener(`mouseup`,p),document.addEventListener(`touchmove`,_,{passive:!1}),document.addEventListener(`touchend`,p)},d=()=>{document.removeEventListener(`mousemove`,h),document.removeEventListener(`mouseup`,p),document.removeEventListener(`touchmove`,_),document.removeEventListener(`touchend`,p)},f=()=>{!i.current&&r.current&&(i.current=!0,typeof t?.onScrubStart==`function`&&t.onScrubStart(),l(!0),u())},p=()=>{i.current&&r.current&&(i.current=!1,l(!1),d(),setTimeout(()=>{typeof t?.onScrubEnd==`function`&&t.onScrubEnd()},0))},m=e=>{f(),e.preventDefault(),h(e)},h=e=>c({x:e.clientX,y:e.clientY}),g=e=>{e.cancelable&&e.preventDefault(),f(),_(e)},_=e=>{e.cancelable&&e.preventDefault(),c({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY})};return o?.addEventListener(`mousedown`,m),o?.addEventListener(`touchstart`,g,{passive:!1}),s.current=()=>{d(),cancelAnimationFrame(a.current)},()=>{o&&(o.removeEventListener(`mousedown`,m),o.removeEventListener(`touchstart`,g))}},[n,e]),active:c}}function Le({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,o.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function Re(e,t){let n=t-e+1;return Array.from({length:n},(t,n)=>n+e)}var ze=`dots`;function Be({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:i,onChange:a,startValue:s=1}){let c=Math.max(Math.trunc(s),1),l=Math.max(Math.trunc(e),c),u=l-c+1,d=i??c,[f,p]=Le({value:r,onChange:a,defaultValue:d,finalValue:d}),m=(0,o.useCallback)(e=>{p(el?l:e)},[c,l,p]),h=(0,o.useCallback)(()=>m(f+1),[f,m]),g=(0,o.useCallback)(()=>m(f-1),[f,m]),_=(0,o.useCallback)(()=>m(c),[m,c]),v=(0,o.useCallback)(()=>m(l),[l,m]);return{range:(0,o.useMemo)(()=>{if(t*2+3+n*2>=u)return Re(c,l);let e=Math.max(f-t,c+n-1),r=Math.min(f+t,l-n),i=e>c+n+1,a=rt(Ge()),{passive:!0}),Te(`resize`,()=>t(Ge()),{passive:!0}),(0,o.useEffect)(()=>{t(Ge())},[]),[e,Ke]}var Je={" ":`space`,ArrowLeft:`arrowleft`,ArrowRight:`arrowright`,ArrowUp:`arrowup`,ArrowDown:`arrowdown`,Escape:`escape`,Esc:`escape`,esc:`escape`,Enter:`enter`,Tab:`tab`,Backspace:`backspace`,Delete:`delete`,Insert:`insert`,Home:`home`,End:`end`,PageUp:`pageup`,PageDown:`pagedown`,"+":`plus`,"-":`minus`,"*":`asterisk`,"/":`slash`};function Ye(e){let t=e.replace(`Key`,``).toLowerCase();return Je[e]||t}function Xe(e){let t=e.toLowerCase().split(`+`).map(e=>e.trim()),n={alt:t.includes(`alt`),ctrl:t.includes(`ctrl`),meta:t.includes(`meta`),mod:t.includes(`mod`),shift:t.includes(`shift`)},r=[`alt`,`ctrl`,`meta`,`shift`,`mod`],i=t.find(e=>!r.includes(e));return{...n,key:i===`[plus]`?`+`:i}}function Ze(e,t,n){let{alt:r,ctrl:i,meta:a,mod:o,shift:s,key:c}=e,{altKey:l,ctrlKey:u,metaKey:d,shiftKey:f,key:p,code:m}=t;if(r!==l)return!1;if(o){if(!u&&!d)return!1}else if(i!==u||a!==d)return!1;return s===f?!!(c&&(n?Ye(m)===Ye(c):Ye(p??m)===Ye(c))):!1}function Qe(e,t){return n=>Ze(Xe(e),n,t)}function $e(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function et(e,t=[`INPUT`,`TEXTAREA`,`SELECT`],n=!1){let r=(0,o.useEffectEvent)(r=>{e.forEach(([e,i,a={preventDefault:!0,usePhysicalKeys:!1}])=>{Qe(e,a.usePhysicalKeys)(r)&&$e(r,t,n)&&(a.preventDefault&&r.preventDefault(),i(r))})});(0,o.useEffect)(()=>(document.documentElement.addEventListener(`keydown`,r),()=>document.documentElement.removeEventListener(`keydown`,r)),[])}function tt(){let[e,t]=(0,o.useState)(!1),n=(0,o.useRef)(null),r=(0,o.useCallback)(()=>{t(!0)},[]),i=(0,o.useCallback)(()=>{t(!1)},[]);return{ref:(0,o.useCallback)(e=>(n.current&&(n.current.removeEventListener(`mouseenter`,r),n.current.removeEventListener(`mouseleave`,i)),e&&(e.addEventListener(`mouseenter`,r),e.addEventListener(`mouseleave`,i)),n.current=e,()=>{n.current=null,t(!1)}),[r,i]),hovered:e}}function nt(e=!1,t={}){let[n,r]=(0,o.useState)(e),i=(0,o.useCallback)(()=>{r(e=>e||(t.onOpen?.(),!0))},[t.onOpen]),a=(0,o.useCallback)(()=>{r(e=>e&&(t.onClose?.(),!1))},[t.onClose]);return[n,{open:i,close:a,toggle:(0,o.useCallback)(()=>{n?a():i()},[a,i,n]),set:r}]}function rt(e,t,n={autoInvoke:!1}){let r=(0,o.useRef)(null),i=ne(e),a=(0,o.useCallback)((...e)=>{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),s=(0,o.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,o.useEffect)(()=>(n.autoInvoke&&a(),s),[s,a]),{start:a,clear:s}}function it(e){let t=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}function at(e,t,n){let r=(0,o.useRef)(null);(0,o.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function ot(){let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>t(!0),[]),e}function st(e,{autoInvoke:t=!0,...n}={}){let[r,i]=(0,o.useState)(null),[a,s]=(0,o.useState)(!1),[c,l]=(0,o.useState)(null),u=(0,o.useRef)(null),d=(0,o.useCallback)(()=>(u.current&&u.current.abort(),u.current=new AbortController,s(!0),fetch(e,{...n,signal:u.current.signal}).then(e=>{if(!e.ok)throw Error(`Request failed with status ${e.status}`);return e.json()}).then(e=>(i(e),s(!1),e)).catch(e=>(s(!1),e.name!==`AbortError`&&l(e),e))),[e,JSON.stringify(n)]),f=(0,o.useCallback)(()=>{u.current&&u.current?.abort(``)},[]);return(0,o.useEffect)(()=>(t&&d(),()=>{u.current&&u.current.abort(``)}),[d,t]),{data:r,loading:a,error:c,refetch:d,abort:f}}function ct(e={}){let{scrollAmount:t=200,draggable:n=!0,onScrollStateChange:r}=e,i=(0,o.useRef)(null),[a,s]=(0,o.useState)(!1),[c,l]=(0,o.useState)(!1),[u,d]=(0,o.useState)(!1),f=(0,o.useRef)(!1),p=(0,o.useRef)(!1),m=(0,o.useRef)(0),h=(0,o.useRef)(0),g=(0,o.useRef)(r);g.current=r;let _=(0,o.useCallback)(()=>{let e=i.current;if(e){let{scrollLeft:t,scrollWidth:n,clientWidth:r}=e,i=getComputedStyle(e).direction===`rtl`,a,o;i?(a=t<-1,o=t>-(n-r)+1):(a=t>1,o=t{_();let e=i.current;if(e){e.addEventListener(`scroll`,_);let t=new ResizeObserver(_);return t.observe(e),()=>{e.removeEventListener(`scroll`,_),t.disconnect()}}},[_]);let v=(0,o.useCallback)(e=>{let n=i.current;if(n){let r=getComputedStyle(n).direction===`rtl`,i=t,a=e===`end`?i:-i,o=r?-a:a;n.scrollBy({left:o,behavior:`smooth`})}},[t]),y=(0,o.useCallback)(()=>v(`start`),[v]),b=(0,o.useCallback)(()=>v(`end`),[v]),x=(0,o.useCallback)(e=>{if(!n)return;let t=i.current;t&&(f.current=!0,p.current=!1,d(!0),m.current=e.pageX-t.offsetLeft,h.current=t.scrollLeft,t.style.cursor=`grabbing`,t.style.userSelect=`none`)},[n]),S=(0,o.useCallback)(e=>{if(!f.current)return;e.preventDefault();let t=i.current;if(t){let n=e.pageX-t.offsetLeft-m.current;Math.abs(n)>5&&(p.current=!0),t.scrollLeft=h.current-n}},[]),C=(0,o.useCallback)(()=>{let e=p.current;f.current=!1,p.current=!1,d(!1);let t=i.current;if(t&&(t.style.cursor=``,t.style.userSelect=``,e)){let e=n=>{n.stopPropagation(),n.preventDefault(),t.removeEventListener(`click`,e,!0)};t.addEventListener(`click`,e,!0)}},[]),w=(0,o.useCallback)(()=>{f.current&&C()},[C]);return{ref:(0,o.useCallback)(e=>{i.current=e,e&&_()},[_]),canScrollStart:a,canScrollEnd:c,scrollStart:y,scrollEnd:b,isDragging:u,dragHandlers:{onMouseDown:x,onMouseMove:S,onMouseUp:C,onMouseLeave:w}}}var lt=[`mouse`,`touch`],ut=10;function dt(e,t={}){let{threshold:n=400,events:r=lt,cancelOnMove:i=!1,onStart:a,onFinish:s,onCancel:c}=t,l=(0,o.useRef)(!1),u=(0,o.useRef)(!1),d=(0,o.useRef)(-1),f=(0,o.useRef)(null);return(0,o.useEffect)(()=>()=>window.clearTimeout(d.current),[]),(0,o.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,o=i===!0?ut:i===!1?0:i,p=t=>{!mt(t)&&!pt(t)||(a&&a(t),f.current=ft(t),u.current=!0,d.current=window.setTimeout(()=>{e(t),l.current=!0},n))},m=e=>{!mt(e)&&!pt(e)||(l.current?s&&s(e):u.current&&c&&c(e),l.current=!1,u.current=!1,f.current=null,d.current!==-1&&(window.clearTimeout(d.current),d.current=-1))},h=e=>{if(!t||!u.current||l.current)return;let n=ft(e);if(!n||!f.current)return;let r=n.x-f.current.x,i=n.y-f.current.y;Math.sqrt(r*r+i*i)>o&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,c,s,a,i,r.join(`,`)])}function ft(e){if(pt(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function pt(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function mt(e){return e.nativeEvent instanceof MouseEvent}function ht(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function gt(e){return e.current?e.current.scrollHeight:`auto`}function _t({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let c={height:0,overflow:`hidden`,...a?{}:{display:`none`}},l=(0,o.useEffectEvent)(()=>r?.()),u=(0,o.useRef)(null),[d,f]=(0,o.useState)(i?{}:c),[p,m]=(0,o.useState)(i?`entered`:`exited`),h=e=>{(0,s.flushSync)(()=>f(e))},g=e=>{h(t=>({...t,...e}))},_=n=>{let r=e??ht(n);return{transition:`height ${r}ms ${t}, opacity ${r}ms ${t}`}};le(()=>{e!==0&&l(),i?window.requestAnimationFrame(()=>{(0,s.flushSync)(()=>m(`entering`)),g({willChange:`height`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{let e=gt(u);g({..._(e),height:e})})}):window.requestAnimationFrame(()=>{(0,s.flushSync)(()=>m(`exiting`));let e=gt(u);g({..._(e),willChange:`height`,height:e}),window.requestAnimationFrame(()=>g({height:0,overflow:`hidden`}))})},[i]);let v=e=>{if(!(e.target!==u.current||e.propertyName!==`height`))if(i){let e=gt(u);e===d.height?h({}):g({height:e}),m(`entered`),n?.()}else d.height===0&&(h(c),m(`exited`),n?.())};return{state:p,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:Ne(u,e?.ref),onTransitionEnd:v,style:{boxSizing:`border-box`,...e?.style,...d}})}}function vt(e){if(!e||typeof e==`string`)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function yt(e){return e.current?e.current.scrollWidth:`auto`}function bt({transitionDuration:e,transitionTimingFunction:t=`ease`,onTransitionEnd:n,onTransitionStart:r,expanded:i,keepMounted:a}){let c={width:0,overflow:`hidden`,...a?{}:{display:`none`}},l=(0,o.useEffectEvent)(()=>r?.()),u=(0,o.useRef)(null),[d,f]=(0,o.useState)(i?{}:c),[p,m]=(0,o.useState)(i?`entered`:`exited`),h=e=>{(0,s.flushSync)(()=>f(e))},g=e=>{h(t=>({...t,...e}))},_=n=>{let r=e??vt(n);return{transition:`width ${r}ms ${t}, opacity ${r}ms ${t}`}};le(()=>{e!==0&&l(),i?window.requestAnimationFrame(()=>{(0,s.flushSync)(()=>m(`entering`)),g({willChange:`width`,display:`block`,overflow:`hidden`}),window.requestAnimationFrame(()=>{let e=yt(u);g({..._(e),width:e})})}):window.requestAnimationFrame(()=>{(0,s.flushSync)(()=>m(`exiting`));let e=yt(u);g({..._(e),willChange:`width`,width:e}),window.requestAnimationFrame(()=>g({width:0,overflow:`hidden`}))})},[i]);let v=e=>{if(!(e.target!==u.current||e.propertyName!==`width`))if(i){let e=yt(u);e===d.width?h({}):g({width:e}),m(`entered`),n?.()}else d.width===0&&(h(c),m(`exited`),n?.())};return{state:p,getCollapseProps:e=>({"aria-hidden":!i,inert:!i,ref:Ne(u,e?.ref),onTransitionEnd:v,style:{boxSizing:`border-box`,...e?.style,...d}})}}var xt=100;function St(e){return e>0?1:e<0?-1:0}function Ct(e){let t=e??0;return typeof t==`number`?[t,t]:t}function wt(){return{isActive:!1,pointerId:-1,startXY:[0,0],prevXY:[0,0],startTimestamp:0,prevTimestamp:0,thresholdMet:!1,firstFired:!1,lockedAxis:null,canceled:!1,lastVelocity:[0,0]}}function Tt(e,t={}){let[n,r]=(0,o.useState)(!1),i=(0,o.useRef)(e);i.current=e;let a=(0,o.useRef)(t);a.current=t;let s=(0,o.useRef)(wt()),c=(0,o.useRef)(null);return{ref:(0,o.useCallback)(e=>{if(!e)return;let t=new AbortController,n=e=>{let t=a.current,n=s.current;if(t.axis===`x`)return[e[0],0];if(t.axis===`y`)return[0,e[1]];if(t.axis===`lock`){if(n.lockedAxis===null){let r=t.axisThreshold??1;(Math.abs(e[0])>r||Math.abs(e[1])>r)&&(n.lockedAxis=Math.abs(e[0])>=Math.abs(e[1])?`x`:`y`)}if(n.lockedAxis===`x`)return[e[0],0];if(n.lockedAxis===`y`)return[0,e[1]]}return e},o=()=>{let e=s.current;e.isActive=!1,e.pointerId=-1,e.thresholdMet=!1,e.firstFired=!1,e.lockedAxis=null,e.canceled=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``,c.current?.abort(),c.current=null},l=()=>{s.current.isActive&&(s.current.canceled=!0,o())},u=()=>{r(!0),document.body.style.userSelect=`none`,document.body.style.webkitUserSelect=`none`},d=e=>{if(a.current.enabled===!1||e.button!==0||s.current.isActive)return;let t=s.current;t.isActive=!0,t.pointerId=e.pointerId,t.startXY=[e.clientX,e.clientY],t.prevXY=[e.clientX,e.clientY],t.startTimestamp=e.timeStamp,t.prevTimestamp=e.timeStamp,t.thresholdMet=!1,t.firstFired=!1,t.lockedAxis=null,t.canceled=!1,t.lastVelocity=[0,0];let[n,r]=Ct(a.current.threshold);n===0&&r===0&&(t.thresholdMet=!0,t.firstFired=!0,u(),i.current({xy:[e.clientX,e.clientY],initial:[e.clientX,e.clientY],movement:[0,0],delta:[0,0],distance:[0,0],direction:[0,0],velocity:[0,0],elapsedTime:0,first:!0,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})),c.current?.abort(),c.current=new AbortController;let o=c.current.signal;document.addEventListener(`pointermove`,f,{signal:o}),document.addEventListener(`pointerup`,p,{signal:o}),document.addEventListener(`pointercancel`,m,{signal:o})},f=e=>{let t=s.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=[e.clientX-t.startXY[0],e.clientY-t.startXY[1]];if(!t.thresholdMet){let[n,i]=Ct(a.current.threshold);if(Math.abs(r[0])0?[Math.abs(c[0])/d,Math.abs(c[1])/d]:t.lastVelocity;t.lastVelocity=f;let p=!t.firstFired;t.firstFired=!0,t.prevXY=[e.clientX,e.clientY],t.prevTimestamp=e.timeStamp,i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:o,delta:c,distance:[Math.abs(o[0]),Math.abs(o[1])],direction:[St(c[0]),St(c[1])],velocity:f,elapsedTime:e.timeStamp-t.startTimestamp,first:p,last:!1,active:!0,tap:!1,canceled:!1,cancel:l,event:e})},p=e=>{let t=s.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=a.current;if(!t.thresholdMet){if(r.filterTaps){let a=n([e.clientX-t.startXY[0],e.clientY-t.startXY[1]]),o=[Math.abs(a[0]),Math.abs(a[1])],s=Math.max(o[0],o[1])<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:a,delta:a,distance:o,direction:[St(a[0]),St(a[1])],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!0,last:!0,active:!1,tap:s,canceled:!1,cancel:l,event:e})}o();return}let c=n([e.clientX-t.startXY[0],e.clientY-t.startXY[1]]),u=[Math.abs(c[0]),Math.abs(c[1])],d=n([e.clientX-t.prevXY[0],e.clientY-t.prevXY[1]]),f=e.timeStamp-t.prevTimestamp>xt?[0,0]:t.lastVelocity,p=Math.max(u[0],u[1]),m=r.filterTaps===!0&&p<(r.tapThreshold??3);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:c,delta:d,distance:u,direction:[St(d[0]),St(d[1])],velocity:f,elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:m,canceled:!1,cancel:l,event:e}),o()},m=e=>{let t=s.current;if(!t.isActive||e.pointerId!==t.pointerId)return;let r=n([e.clientX-t.startXY[0],e.clientY-t.startXY[1]]);i.current({xy:[e.clientX,e.clientY],initial:[...t.startXY],movement:r,delta:[0,0],distance:[Math.abs(r[0]),Math.abs(r[1])],direction:[0,0],velocity:[0,0],elapsedTime:e.timeStamp-t.startTimestamp,first:!t.firstFired,last:!0,active:!1,tap:!1,canceled:!0,cancel:l,event:e}),o()};return e.addEventListener(`pointerdown`,d,{signal:t.signal}),()=>{t.abort(),c.current?.abort(),c.current=null,s.current.isActive&&(s.current.isActive=!1,r(!1),document.body.style.userSelect=``,document.body.style.webkitUserSelect=``)}},[]),active:n}}function Et(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}function Dt(e){function t(t){let n=Object.keys(t).reduce((n,r)=>(n[`${e}:${r}`]=e=>t[r](e.detail),n),{});ce(()=>(Object.keys(n).forEach(e=>{window.removeEventListener(e,n[e]),window.addEventListener(e,n[e])}),()=>Object.keys(n).forEach(e=>{window.removeEventListener(e,n[e])})),[n])}function n(t){return(...n)=>Et(`${e}:${String(t)}`,n[0])}return[t,n]}function Ot(){return`development`}function kt(e,t){return t.length===0?e:t.reduce((t,n)=>Math.abs(n-e){Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=Lt(t[e],n):t[e]=n})}),t}function Bt({theme:e,classNames:t,props:n,stylesCtx:r}){return zt((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||Rt))}function Vt({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function Ht(e){return e===`auto`||e===`dark`||e===`light`}function Ut({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return Ht(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&Ht(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Wt(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Gt(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Kt(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function qt(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function Jt(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function Yt(e){return Gt(e)?Kt(e):e.startsWith(`rgb`)?qt(e):e.startsWith(`hsl`)?Jt(e):{r:0,g:0,b:0,a:1}}function Xt(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Zt(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function Qt(e){if(e.startsWith(`oklch(`))return(Zt(e)||0)/100;let{r:t,g:n,b:r}=Yt(e),i=t/255,a=n/255,o=r/255,s=Xt(i),c=Xt(a),l=Xt(o);return .2126*s+.7152*c+.0722*l}function $t(e,t=.179){return e.startsWith(`var(`)?!1:Qt(e)>t}function en({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:$t(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:$t(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:$t(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Wt(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:$t(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:$t(e,t.luminanceThreshold),shade:a,variable:void 0}}function tn(e,t){let n=en({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function nn(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function rn(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=Yt(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function an(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=tn(n.from,t),i=tn(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function on(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=Yt(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var sn=on,cn=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=en({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&nn(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${g(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${g(1)} solid transparent`}:{background:e,hover:rn(e,.1),color:r,border:`${g(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${g(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:rn(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${g(1)} solid transparent`}}return{background:on(e,.1),hover:on(e,.12),color:e,border:`${g(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${g(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:on(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${g(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:on(e,.05),color:e,border:`${g(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${g(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:on(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${g(1)} solid transparent`}}return{background:`transparent`,hover:on(e,.12),color:e,border:`${g(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${g(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${g(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${g(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:rn(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${g(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:rn(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${g(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:rn(t.white,.01),color:e,border:`${g(1)} solid transparent`}:n===`gradient`?{background:an(r,t),hover:an(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${g(1)} solid var(--mantine-color-default-border)`}:{}};function ln(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, white ${t*100}%)`;let{r:n,g:r,b:i,a}=Yt(e),o=e=>Math.round(e+(255-e)*t);return`rgba(${o(n)}, ${o(r)}, ${o(i)}, ${a})`}function un({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&en({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function dn(e,t,n){return un({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function fn(e,t){let n=e.colors[e.primaryColor];return nn(n)?e.autoContrast?dn(n,e,t):`var(--mantine-color-white)`:un({color:n[Wt(e,t)],theme:e,autoContrast:null})}function pn(e,t){return typeof e==`boolean`?e:t.autoContrast}var mn=(0,o.createContext)(null);function hn(){let e=(0,o.use)(mn);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function gn(){return hn().cssVariablesResolver}function _n(){return hn().classNamesPrefix}function vn(){return hn().getStyleNonce}function yn(){return hn().withStaticClasses}function bn(){return hn().headless}function xn(){return hn().stylesTransform?.sx}function Sn(){return hn().stylesTransform?.styles}function Cn(){return hn().env||`default`}function wn(){return hn().deduplicateInlineStyles}function Tn(e){let t=document.createElement(`style`);return t.setAttribute(`data-mantine-styles`,`inline`),t.innerHTML=`*, *::before, *::after {transition: none !important;}`,t.setAttribute(`data-mantine-disable-transition`,`true`),e&&t.setAttribute(`nonce`,e),document.head.appendChild(t),()=>document.querySelectorAll(`[data-mantine-disable-transition]`).forEach(e=>e.remove())}function En({keepTransitions:e}={}){let t=(0,o.useRef)(A),n=(0,o.useRef)(-1),r=(0,o.use)(mn),i=(0,o.useRef)(vn()?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let a=a=>{r.setColorScheme(a),t.current=e?()=>{}:Tn(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:Tn(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},c=oe(`light`,{getInitialValueInEffect:!1}),l=r.colorScheme===`auto`?c:r.colorScheme,u=(0,o.useCallback)(()=>a(l===`light`?`dark`:`light`),[a,l]);return(0,o.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:a,clearColorScheme:s,toggleColorScheme:u}}function Dn(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function On({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,o.useRef)(null),[a,s]=(0,o.useState)(()=>e.get(t)),c=r||a,l=(0,o.useCallback)(t=>{r||(Dn(t,n),s(t),e.set(t))},[e.set,c,r]),u=(0,o.useCallback)(()=>{s(t),Dn(t,n),e.clear()},[e.clear,t]);return(0,o.useEffect)(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),ce(()=>{Dn(e.get(t),n)},[]),(0,o.useEffect)(()=>{if(r)return Dn(r,n),()=>{};r===void 0&&Dn(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&Dn(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:c,setColorScheme:l,clearColorScheme:u}}function kn(e,t={getInitialValueInEffect:!0}){let n=oe(e,t),{colorScheme:r}=En();return r===`auto`?n:r}var An={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},jn=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,Mn={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:An,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:cn,autoContrast:!1,luminanceThreshold:.3,fontFamily:jn,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:jn,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:g(34),lineHeight:`1.3`},h2:{fontSize:g(26),lineHeight:`1.35`},h3:{fontSize:g(22),lineHeight:`1.4`},h4:{fontSize:g(18),lineHeight:`1.45`},h5:{fontSize:g(16),lineHeight:`1.5`},h6:{fontSize:g(14),lineHeight:`1.5`}}},fontSizes:{xs:g(12),sm:g(14),md:g(16),lg:g(18),xl:g(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:g(2),sm:g(4),md:g(8),lg:g(16),xl:g(32)},spacing:{xs:g(10),sm:g(12),md:g(16),lg:g(20),xl:g(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${g(1)} ${g(3)} rgba(0, 0, 0, 0.05), 0 ${g(1)} ${g(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${g(1)} ${g(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${g(10)} ${g(15)} ${g(-5)}, rgba(0, 0, 0, 0.04) 0 ${g(7)} ${g(7)} ${g(-5)}`,md:`0 ${g(1)} ${g(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${g(20)} ${g(25)} ${g(-5)}, rgba(0, 0, 0, 0.04) 0 ${g(10)} ${g(10)} ${g(-5)}`,lg:`0 ${g(1)} ${g(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${g(28)} ${g(23)} ${g(-7)}, rgba(0, 0, 0, 0.04) 0 ${g(12)} ${g(12)} ${g(-7)}`,xl:`0 ${g(1)} ${g(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${g(36)} ${g(28)} ${g(-7)}, rgba(0, 0, 0, 0.04) 0 ${g(17)} ${g(17)} ${g(-7)}`},other:{},components:{}},Nn=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,Pn=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function Fn(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function In(e){if(!(e.primaryColor in e.colors))throw Error(Nn);if(typeof e.primaryShade==`object`&&(!Fn(e.primaryShade.dark)||!Fn(e.primaryShade.light))||typeof e.primaryShade==`number`&&!Fn(e.primaryShade))throw Error(Pn)}function Ln(e,t){if(!t)return In(e),e;let n=u(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),In(n),n}var J=r(),Rn=(0,o.createContext)(null),zn=()=>(0,o.use)(Rn)||Mn;function Bn(){let e=(0,o.use)(Rn);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function Vn({theme:e,children:t,inherit:n=!0}){let r=zn();return(0,J.jsx)(Rn,{value:(0,o.useMemo)(()=>Ln(n?r:Mn,e),[e,r,n]),children:t})}Vn.displayName=`@mantine/core/MantineThemeProvider`;function Hn(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function Un(e,t){let n=t?[t]:[`:root`,`:host`],r=Hn(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=Hn(e.dark),o=Hn(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function Wn({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Wt(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:sn(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Wt(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:rn(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:rn(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:sn(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function Gn(e,t,n){c(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var Kn=e=>{let t=Wt(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:g(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":fn(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":fn(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};Gn(r.variables,e.breakpoints,`breakpoint`),Gn(r.variables,e.spacing,`spacing`),Gn(r.variables,e.fontSizes,`font-size`),Gn(r.variables,e.lineHeights,`line-height`),Gn(r.variables,e.shadows,`shadow`),Gn(r.variables,e.radius,`radius`),Gn(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),c(e.colors).forEach(t=>{let n=e.colors[t];if(nn(n)){Object.assign(r.light,Wn({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,Wn({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=dn(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=dn(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,Wn({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,Wn({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return c(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function qn(){let e=Bn(),t=vn(),n=c(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=p(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:_(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:_(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,J.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function Jn({theme:e,generator:t}){let n=Kn(e),r=t?.(e);return r?u(n,r):n}var Yn=Kn(Mn);function Xn(e){let t={variables:{},light:{},dark:{}};return c(e.variables).forEach(n=>{Yn.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),c(e.light).forEach(n=>{Yn.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),c(e.dark).forEach(n=>{Yn.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Zn(e){return Un({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function Qn({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=Bn(),r=vn(),i=Jn({theme:n,generator:gn()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=Un(a?Xn(i):i,e);return o?(0,J.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:Zn(e)}`}}):null}Qn.displayName=`@mantine/CssVariables`;function $n({respectReducedMotion:e,getRootElement:t}){ce(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function er({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=Ut(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=On({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return $n({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,J.jsx)(mn,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,J.jsxs)(Vn,{theme:e,children:[o&&(0,J.jsx)(Qn,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,J.jsx)(qn,{}),t]})})}er.displayName=`@mantine/core/MantineProvider`;function tr({children:e,theme:t,env:n}){return(0,J.jsx)(mn,{value:{colorScheme:`auto`,setColorScheme:()=>{},clearColorScheme:()=>{},getRootElement:()=>document.documentElement,classNamesPrefix:`mantine`,cssVariablesSelector:`:root`,withStaticClasses:!1,headless:!0,env:n},children:(0,J.jsx)(Vn,{theme:t,children:e})})}tr.displayName=`@mantine/core/HeadlessMantineProvider`;function Y(e,t,n){let r=Bn(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...v(n)}}function nr(e){return e}function rr({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Wt(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:sn(e.colors[t][n],.1),[`--mantine-color-${r}-light-hover`]:sn(e.colors[t][n],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:sn(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Wt(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:sn(e.colors[t][Math.max(0,a-2)],.15),[`--mantine-color-${r}-light-hover`]:sn(e.colors[t][Math.max(0,a-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(a-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:sn(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function ir(e,t,n){c(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var ar=e=>{let t=Wt(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:g(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":fn(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":fn(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};ir(r.variables,e.breakpoints,`breakpoint`),ir(r.variables,e.spacing,`spacing`),ir(r.variables,e.fontSizes,`font-size`),ir(r.variables,e.lineHeights,`line-height`),ir(r.variables,e.shadows,`shadow`),ir(r.variables,e.radius,`radius`),ir(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),c(e.colors).forEach(t=>{let n=e.colors[t];if(nn(n)){Object.assign(r.light,rr({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,rr({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0}));return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,rr({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,rr({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return c(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function or({classNames:e,styles:t,props:n,stylesCtx:r}){let i=Bn();return{resolvedClassNames:e===void 0?void 0:Bt({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:Vt({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var sr={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function cr({theme:e,options:t,unstyled:n}){return Lt(t?.focusable&&!n&&(e.focusClassName||sr[e.focusRing]),t?.active&&!n&&e.activeClassName)}function lr({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return Bt({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function ur({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return Bt({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function dr({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function fr({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function pr({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function mr({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function hr({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return Lt(cr({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),mr({options:t,classes:s,selector:r,unstyled:c||m}),a[r],ur({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),lr({selector:r,stylesCtx:f,options:t,props:d,theme:e}),dr({rootSelector:u,selector:r,className:l}),fr({selector:r,classes:s,unstyled:c||m}),p&&!m&&pr({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function gr({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...gr({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function _r({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&Vt({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...gr({style:n?.style,theme:e})}}function vr(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...v(t[n])}}),e),{})}function yr({props:e,stylesCtx:t,themeName:n,theme:r}){let i=Sn()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function X({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=Bn(),m=_n(),h=yn(),g=bn(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=yr({props:n,stylesCtx:r,themeName:_,theme:p}),b=Bt({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>Bt({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:Vt({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=Vt({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=vr([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=gr({style:a,theme:p});return(e,a)=>({...f?.[e],className:hr({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:_r({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function br(e){return c(e).reduce((t,n)=>e[n]===void 0?t:`${t}${d(n)}:${e[n]};`,``).trim()}function xr({selector:e,styles:t,media:n,container:r}){let i=t?br(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${br(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${br(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function Sr(e){let t=5381;for(let n=0;n>>0).toString(36)}function Cr({deduplicate:e,...t}){let n=vn(),r=xr(t);return e?(0,J.jsx)(`style`,{href:`mantine-${Sr(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,J.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function wr(e){let t=5381;for(let n=0;n>>0).toString(36)}function Tr(e,t){return`__mdi__-${wr(`${e?br(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${br(e.styles)}`).join(`|`):``}`)}`}function Er(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:y,pe:b,ps:x,pis:S,pie:C,bd:w,bdrs:T,bg:E,c:D,opacity:O,ff:k,fz:A,fw:j,lts:M,ta:N,lh:P,fs:F,tt:I,td:L,w:R,miw:z,maw:B,h:V,mih:H,mah:ee,bgsz:U,bgp:te,bgr:ne,bga:re,pos:ie,top:W,left:ae,bottom:G,right:K,inset:oe,display:se,flex:ce,hiddenFrom:le,visibleFrom:ue,lightHidden:de,darkHidden:fe,sx:pe,...me}=e;return{styleProps:v({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:y,pis:S,pie:C,pe:b,ps:x,bd:w,bg:E,c:D,opacity:O,ff:k,fz:A,fw:j,lts:M,ta:N,lh:P,fs:F,tt:I,td:L,w:R,miw:z,maw:B,h:V,mih:H,mah:ee,bgsz:U,bgp:te,bgr:ne,bga:re,pos:ie,top:W,left:ae,bottom:G,right:K,inset:oe,display:se,flex:ce,bdrs:T,hiddenFrom:le,visibleFrom:ue,lightHidden:de,darkHidden:fe,sx:pe}),rest:me}}var Dr={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function Or(e,t){let n=en({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function kr(e,t){let n=en({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Or(e,t)}function Ar(e,t){if(typeof e==`number`)return g(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${g(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${Or(i.join(` `),t)}`),a.trim()}return e}var jr={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function Mr(e){return typeof e==`string`&&e in jr?jr[e]:e}var Nr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Pr(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&Nr.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?g(e):e}function Fr(e){return e}var Ir=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function Lr(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&Ir.includes(e)?`var(--mantine-${e}-line-height)`:e}function Rr(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?g(e):e}function zr(e){return typeof e==`number`?g(e):e}function Br(e,t){if(typeof e==`number`)return g(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return g(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var Vr={color:Or,textColor:kr,fontSize:Pr,spacing:Br,radius:Rr,identity:Fr,size:zr,lineHeight:Lr,fontFamily:Mr,border:Ar};function Hr(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function Ur({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(Hr(e))-Number(Hr(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function Wr(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return!(t.length===1&&t[0]===`base`)}function Gr(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function Kr(e){return typeof e==`object`&&e?c(e).filter(e=>e!==`base`):[]}function qr(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function Jr({styleProps:e,data:t,theme:n}){return Ur(c(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=Gr(e[i]);if(!Wr(e[i]))return o.forEach(e=>{r.inlineStyles[e]=Vr[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=Kr(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=Vr[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:Vr[a.type](qr(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Yr(){return`__m__-${(0,o.useId)().replace(/[:«»]/g,``)}`}function Xr(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Xr(n,t)}),{}):typeof e==`function`?e(t):e??{}}function Zr(e){return e}var Qr=Zr;function $r(e){return e}function Z(e){let t=e;return t.extend=$r,t.withProps=e=>{let n=n=>(0,J.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function ei(e){return Z(e)}function ti(e){let t=e;return t.withProps=e=>{let n=n=>(0,J.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=$r,t}function ni(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function ri(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[ni(n)]=e[n]),t},{})}function ii(e){return e?typeof e==`string`?{[ni(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...ii(t)}),{}):ri(e):null}function ai(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...ai(n,t)}),{}):typeof e==`function`?e(t):e??{}}function oi({theme:e,style:t,vars:n,styleProps:r}){let i=ai(t,e),a=ai(n,e);return{...i,...a,...r}}function si({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=Bn(),g=e||`div`,{styleProps:_,rest:v}=Er(m),b=xn()?.()?.(_.sx),x=Yr(),S=Jr({styleProps:_,theme:h,data:Dr}),C=wn(),w=C&&S.hasResponsiveStyles?Tr(S.styles,S.media):x,T={ref:p,style:oi({theme:h,style:t,vars:n,styleProps:S.inlineStyles}),className:Lt(r,b,{[w]:S.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":y(o)?void 0:o||void 0,size:f,...ii(a),...v};return(0,J.jsxs)(J.Fragment,{children:[S.hasResponsiveStyles&&(0,J.jsx)(Cr,{selector:`.${w}`,styles:S.styles,media:S.media,deduplicate:C}),typeof d==`function`?d(T):(0,J.jsx)(g,{...T})]})}si.displayName=`@mantine/core/Box`;var Q=Qr(si),ci=(0,o.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function li(){return(0,o.use)(ci)}function ui({children:e,initialDirection:t=`ltr`,detectDirection:n=!0}){let[r,i]=(0,o.useState)(t),a=(0,o.useCallback)(e=>{i(e),document.documentElement.getAttribute(`dir`)!==e&&document.documentElement.setAttribute(`dir`,e)},[]);return ce(()=>{if(n){let e=document.documentElement.getAttribute(`dir`);(e===`rtl`||e===`ltr`)&&i(e)}},[]),at((0,o.useCallback)(()=>{if(typeof document>`u`)return;let e=document.documentElement.getAttribute(`dir`);(e===`rtl`||e===`ltr`)&&i(t=>t===e?t:e)},[]),n?{attributes:!0,attributeFilter:[`dir`]}:{},typeof document<`u`&&n?document.documentElement:null),(0,J.jsx)(ci,{value:{dir:r,toggleDirection:()=>a(r===`ltr`?`rtl`:`ltr`),setDirection:a},children:e})}var di={transitionDuration:200,transitionTimingFunction:`ease`,animateOpacity:!0,orientation:`vertical`,keepMounted:!0},fi=Z(e=>{let{children:t,expanded:n,transitionDuration:r,transitionTimingFunction:i,style:a,onTransitionEnd:s,onTransitionStart:c,animateOpacity:l,keepMounted:u,ref:d,orientation:f,...p}=Y(`Collapse`,di,e),m=Cn(),h=Bn(),g=Ve(),_=h.respectReducedMotion&&g?0:r,v=(f===`horizontal`?bt:_t)({expanded:n,transitionDuration:_,transitionTimingFunction:i,onTransitionEnd:s,onTransitionStart:c,keepMounted:!1});if(_===0)return u===!0&&m!==`test`?(0,J.jsx)(o.Activity,{mode:n?`visible`:`hidden`,children:(0,J.jsx)(Q,{...p,style:a,ref:d,children:t})}):n?(0,J.jsx)(Q,{...p,style:a,ref:d,children:t}):null;let y=v.state===`exited`,b;return b=u===!1?y?null:t:u===!0?(0,J.jsx)(o.Activity,{mode:y?`hidden`:`visible`,children:t}):t,(0,J.jsx)(Q,{...p,...v.getCollapseProps({style:{opacity:n||!l?1:0,transition:l?`opacity ${_}ms ${i}`:`none`,...Xr(a,h)},ref:d}),children:b})});fi.displayName=`@mantine/core/Collapse`;var[pi,mi]=x(`ScrollArea.Root component was not found in tree`);function hi(e,t){let n=(0,o.useEffectEvent)(t);ce(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function gi(e){let{style:t,...n}=e,r=mi(),[i,a]=(0,o.useState)(0),[s,c]=(0,o.useState)(0),l=!!(i&&s);return hi(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),c(e)}),hi(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),l?(0,J.jsx)(`div`,{...n,style:{...t,width:i,height:s}}):null}function _i(e){let t=mi(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,J.jsx)(gi,{...e}):null}var vi={scrollHideDelay:1e3,type:`hover`};function yi(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...s}=Y(`ScrollAreaRoot`,vi,e),[c,l]=(0,o.useState)(null),[u,d]=(0,o.useState)(null),[f,p]=(0,o.useState)(null),[m,h]=(0,o.useState)(null),[g,_]=(0,o.useState)(null),[v,y]=(0,o.useState)(0),[b,x]=(0,o.useState)(0),[S,C]=(0,o.useState)(!1),[w,T]=(0,o.useState)(!1),E=Pe(a,l);return(0,J.jsx)(pi,{value:{type:t,scrollHideDelay:n,scrollArea:c,viewport:u,onViewportChange:d,content:f,onContentChange:p,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:_,scrollbarYEnabled:w,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeightChange:x,getStyles:i},children:(0,J.jsx)(Q,{...s,ref:E,__vars:{"--sa-corner-width":r===`xy`?`${v}px`:`0px`,"--sa-corner-height":r===`xy`?`${b}px`:`0px`}})})}yi.displayName=`@mantine/core/ScrollAreaRoot`;function bi(e,t){let n=e/t;return Number.isNaN(n)?0:n}function xi(e){let t=bi(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Si(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Ci(e,[t,n]){return Math.min(n,Math.max(t,e))}function wi(e,t,n=`ltr`){let r=xi(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Ci(e,n===`ltr`?[0,o]:[o*-1,0]);return Si([0,o],[0,s])(c)}function Ti(e,t,n,r=`ltr`){let i=xi(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return Si([c,l],d)(e)}function Ei(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[ki,Ai]=x(`ScrollAreaScrollbar was not found in tree`);function ji(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:l,onResize:u,ref:d,...f}=e,p=mi(),[m,h]=(0,o.useState)(null),g=Pe(d,h),_=(0,o.useRef)(null),v=(0,o.useRef)(``),{viewport:y}=p,b=t.content-t.viewport,x=(0,o.useEffectEvent)(l),S=ne(s),C=re(u,10),w=e=>{_.current&&c({x:e.clientX-_.current.left,y:e.clientY-_.current.top})};return(0,o.useEffect)(()=>{let e=e=>{let t=e.target;m?.contains(t)&&x(e,b)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[y,m,b]),(0,o.useEffect)(S,[t,S]),hi(m,C),hi(p.content,C),(0,J.jsx)(ki,{value:{scrollbar:m,hasThumb:n,onThumbChange:ne(r),onThumbPointerUp:ne(i),onThumbPositionChange:S,onThumbPointerDown:ne(a)},children:(0,J.jsx)(`div`,{...f,ref:g,"data-mantine-scrollbar":!0,style:{position:`absolute`,...f.style},onPointerDown:Oi(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,w(e))}),onPointerMove:Oi(e.onPointerMove,w),onPointerUp:Oi(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=v.current,_.current=null}})})}var Mi=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,s=mi(),[c,l]=(0,o.useState)(),u=(0,o.useRef)(null),d=Pe(i,u,s.onScrollbarXChange);return(0,o.useEffect)(()=>{u.current&&l(getComputedStyle(u.current))},[u]),(0,J.jsx)(ji,{"data-orientation":`horizontal`,...a,ref:d,sizes:t,style:{...r,"--sa-thumb-width":`${xi(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(s.viewport){let r=s.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),Ei(r,n)&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&c&&n({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Di(c.paddingLeft),paddingEnd:Di(c.paddingRight)}})}})};Mi.displayName=`@mantine/core/ScrollAreaScrollbarX`;function Ni(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,s=mi(),[c,l]=(0,o.useState)(),u=(0,o.useRef)(null),d=Pe(i,u,s.onScrollbarYChange);return(0,o.useEffect)(()=>{u.current&&l(window.getComputedStyle(u.current))},[]),(0,J.jsx)(ji,{...a,"data-orientation":`vertical`,ref:d,sizes:t,style:{"--sa-thumb-height":`${xi(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(s.viewport){let r=s.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),Ei(r,n)&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&c&&n({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Di(c.paddingTop),paddingEnd:Di(c.paddingBottom)}})}})}Ni.displayName=`@mantine/core/ScrollAreaScrollbarY`;function Pi(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=li(),i=mi(),a=(0,o.useRef)(null),s=(0,o.useRef)(0),[c,l]=(0,o.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=bi(c.viewport,c.content),d={...n,sizes:c,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:e=>{s.current=e}},f=(e,t)=>Ti(e,s.current,c,t);return t===`horizontal`?(0,J.jsx)(Mi,{...d,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=wi(e,c,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=f(e,r))}}):t===`vertical`?(0,J.jsx)(Ni,{...d,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=wi(e,c);c.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=f(e))}}):null}Pi.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function Fi(e){let t=mi(),{forceMount:n,...r}=e,[i,a]=(0,o.useState)(!1),s=e.orientation===`horizontal`,c=re(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,J.jsx)(Fi,{"data-state":i?`visible`:`hidden`,...n}):null}Ii.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function Li(e){let{forceMount:t,...n}=e,r=mi(),i=e.orientation===`horizontal`,[a,s]=(0,o.useState)(`hidden`),c=re(()=>s(`idle`),100);return(0,o.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>s(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,o.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(s(`scrolling`),c()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,c]),t||a!==`hidden`?(0,J.jsx)(Pi,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:Oi(e.onPointerEnter,()=>s(`interacting`)),onPointerLeave:Oi(e.onPointerLeave,()=>s(`idle`))}):null}function Ri(e){let{forceMount:t,...n}=e,r=mi(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,s=e.orientation===`horizontal`;return(0,o.useEffect)(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),r.type===`hover`?(0,J.jsx)(Ii,{...n,forceMount:t}):r.type===`scroll`?(0,J.jsx)(Li,{...n,forceMount:t}):r.type===`auto`?(0,J.jsx)(Fi,{...n,forceMount:t}):r.type===`always`?(0,J.jsx)(Pi,{...n}):null}Ri.displayName=`@mantine/core/ScrollAreaScrollbar`;function zi(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function Bi(e){let{style:t,ref:n,...r}=e,i=mi(),a=Ai(),{onThumbPositionChange:s}=a,c=Pe(n,a.onThumbChange),l=(0,o.useRef)(void 0),u=re(()=>{l.current&&=(l.current(),void 0)},100);return(0,o.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{u(),l.current||(l.current=zi(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,u,s]),(0,J.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:c,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:Oi(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:Oi(e.onPointerUp,a.onThumbPointerUp)})}Bi.displayName=`@mantine/core/ScrollAreaThumb`;function Vi(e){let{forceMount:t,...n}=e,r=Ai();return t||r.hasThumb?(0,J.jsx)(Bi,{...n}):null}Vi.displayName=`@mantine/core/ScrollAreaThumb`;function Hi({children:e,style:t,ref:n,onWheel:r,...i}){let a=mi(),o=Pe(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,J.jsx)(Q,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,J.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}Hi.displayName=`@mantine/core/ScrollAreaViewport`;var Ui={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function Wi(){return typeof window<`u`}function Gi(e){return Ji(e)?(e.nodeName||``).toLowerCase():`#document`}function Ki(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qi(e){return((Ji(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ji(e){return Wi()?e instanceof Node||e instanceof Ki(e).Node:!1}function Yi(e){return Wi()?e instanceof Element||e instanceof Ki(e).Element:!1}function Xi(e){return Wi()?e instanceof HTMLElement||e instanceof Ki(e).HTMLElement:!1}function Zi(e){return!Wi()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ki(e).ShadowRoot}function Qi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=la(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function $i(e){return/^(table|td|th)$/.test(Gi(e))}function ea(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ta=/transform|translate|scale|rotate|perspective|filter/,na=/paint|layout|strict|content/,ra=e=>!!e&&e!==`none`,ia;function aa(e){let t=Yi(e)?la(e):e;return ra(t.transform)||ra(t.translate)||ra(t.scale)||ra(t.rotate)||ra(t.perspective)||!sa()&&(ra(t.backdropFilter)||ra(t.filter))||ta.test(t.willChange||``)||na.test(t.contain||``)}function oa(e){let t=da(e);for(;Xi(t)&&!ca(t);){if(aa(t))return t;if(ea(t))return null;t=da(t)}return null}function sa(){return ia??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ia}function ca(e){return/^(html|body|#document)$/.test(Gi(e))}function la(e){return Ki(e).getComputedStyle(e)}function ua(e){return Yi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function da(e){if(Gi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Zi(e)&&e.host||qi(e);return Zi(t)?t.host:t}function fa(e){let t=da(e);return ca(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xi(t)&&Qi(t)?t:fa(t)}function pa(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=fa(e),i=r===e.ownerDocument?.body,a=Ki(r);if(i){let e=ma(a);return t.concat(a,a.visualViewport||[],Qi(r)?r:[],e&&n?pa(e):[])}else return t.concat(r,pa(r,[],n))}function ma(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ha=[`top`,`right`,`bottom`,`left`],ga=Math.min,_a=Math.max,va=Math.round,ya=Math.floor,ba=e=>({x:e,y:e}),xa={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Sa(e,t,n){return _a(e,ga(t,n))}function Ca(e,t){return typeof e==`function`?e(t):e}function wa(e){return e.split(`-`)[0]}function Ta(e){return e.split(`-`)[1]}function Ea(e){return e===`x`?`y`:`x`}function Da(e){return e===`y`?`height`:`width`}function Oa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ka(e){return Ea(Oa(e))}function Aa(e,t,n){n===void 0&&(n=!1);let r=Ta(e),i=ka(e),a=Da(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=za(o)),[o,za(o)]}function ja(e){let t=za(e);return[Ma(e),t,Ma(t)]}function Ma(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Na=[`left`,`right`],Pa=[`right`,`left`],Fa=[`top`,`bottom`],Ia=[`bottom`,`top`];function La(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Pa:Na:t?Na:Pa;case`left`:case`right`:return t?Fa:Ia;default:return[]}}function Ra(e,t,n,r){let i=Ta(e),a=La(wa(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ma)))),a}function za(e){let t=wa(e);return xa[t]+e.slice(t.length)}function Ba(e){return{top:0,right:0,bottom:0,left:0,...e}}function Va(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ba(e)}function Ha(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ua(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Wa(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function Ga(){return/apple/i.test(navigator.vendor)}function Ka(){return Ua().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function qa(){return Wa().includes(`jsdom/`)}var Ja=`data-floating-ui-focusable`,Ya=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function Xa(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Za(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Zi(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Qa(e){return`composedPath`in e?e.composedPath()[0]:e.target}function $a(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function eo(e){return e.matches(`html,body`)}function to(e){return e?.ownerDocument||document}function no(e){return Xi(e)&&e.matches(Ya)}function ro(e){if(!e||qa())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function io(e){return e?e.hasAttribute(Ja)?e:e.querySelector(`[data-floating-ui-focusable]`)||e:null}function ao(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...ao(e,t.id,n)])}function oo(e){return`nativeEvent`in e}function so(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var co=typeof document<`u`?o.useLayoutEffect:function(){},lo={...o};function uo(e){let t=o.useRef(e);return co(()=>{t.current=e}),t}var fo=lo.useInsertionEffect||(e=>e());function po(e){let t=o.useRef(()=>{});return fo(()=>{t.current=e}),o.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function mo(e,t,n){let{reference:r,floating:i}=e,a=Oa(t),o=ka(t),s=Da(o),c=wa(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ta(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ho(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ca(t,e),p=Va(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ha(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ha(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var go=50,_o=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ho},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=mo(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ca(e,t)||{};if(l==null)return{};let d=Va(u),f={x:n,y:r},p=ka(i),m=Da(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ga(d[_],T),D=ga(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Sa(O,A,k),M=!c.arrow&&Ta(i)!=null&&A!==j&&a.reference[m]/2-(Ae<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Oa(t))||T.every(e=>Oa(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Oa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function bo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xo(e){return ha.some(t=>e[t]>=0)}var So=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ca(e,t);switch(i){case`referenceHidden`:{let e=bo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:xo(e)}}}case`escaped`:{let e=bo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:xo(e)}}}default:return{}}}}};function Co(e){let t=ga(...e.map(e=>e.left)),n=ga(...e.map(e=>e.top)),r=_a(...e.map(e=>e.right)),i=_a(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function wo(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Ha(Co(e)))}var To=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Ca(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),d=wo(u),f=Ha(Co(u)),p=Va(s);function m(){if(d.length===2&&d[0].left>d[1].right&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(Oa(n)===`y`){let e=d[0],t=d[d.length-1],r=wa(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=wa(n)===`left`,t=_a(...d.map(e=>e.right)),r=ga(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom,s=r,c=t;return{top:a,bottom:o,left:s,right:c,width:c-s,height:o-a,x:s,y:a}}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Eo=new Set([`left`,`top`]);async function Do(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=wa(n),s=Ta(n),c=Oa(n)===`y`,l=Eo.has(o)?-1:1,u=a&&c?-1:1,d=Ca(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Oo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Do(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ko=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ca(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Oa(wa(i)),p=Ea(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Sa(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Sa(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Ao=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ca(e,t),u={x:n,y:r},d=Oa(i),f=Ea(d),p=u[f],m=u[d],h=Ca(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Eo.has(wa(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},jo=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ca(e,t),u=await o.detectOverflow(t,l),d=wa(i),f=Ta(i),p=Oa(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ga(h-u[g],v),x=ga(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=_a(u.left,0),t=_a(u.right,0),n=_a(u.top,0),r=_a(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:_a(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:_a(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Mo(e){let t=la(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Xi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=va(n)!==a||va(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function No(e){return Yi(e)?e:e.contextElement}function Po(e){let t=No(e);if(!Xi(t))return ba(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Mo(t),o=(a?va(n.width):n.width)/r,s=(a?va(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Fo=ba(0);function Io(e){let t=Ki(e);return!sa()||!t.visualViewport?Fo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ki(e)?!1:t}function Ro(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=No(e),o=ba(1);t&&(r?Yi(r)&&(o=Po(r)):o=Po(e));let s=Lo(a,n,r)?Io(a):ba(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ki(a),t=r&&Yi(r)?Ki(r):r,n=e,i=ma(n);for(;i&&r&&t!==n;){let e=Po(i),t=i.getBoundingClientRect(),r=la(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ki(i),i=ma(n)}}return Ha({width:u,height:d,x:c,y:l})}function zo(e,t){let n=ua(e).scrollLeft;return t?t.left+n:Ro(qi(e)).left+n}function Bo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-zo(e,n),y:n.top+t.scrollTop}}function Vo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=qi(r),s=t?ea(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ba(1),u=ba(0),d=Xi(r);if((d||!d&&!a)&&((Gi(r)!==`body`||Qi(o))&&(c=ua(r)),d)){let e=Ro(r);l=Po(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Bo(o,c):ba(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ho(e){return Array.from(e.getClientRects())}function Uo(e){let t=qi(e),n=ua(e),r=e.ownerDocument.body,i=_a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=_a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+zo(e),s=-n.scrollTop;return la(r).direction===`rtl`&&(o+=_a(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Wo=25;function Go(e,t){let n=Ki(e),r=qi(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=sa();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=zo(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Wo&&(a-=o)}else l<=Wo&&(a+=l);return{width:a,height:o,x:s,y:c}}function Ko(e,t){let n=Ro(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Xi(e)?Po(e):ba(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function qo(e,t,n){let r;if(t===`viewport`)r=Go(e,n);else if(t===`document`)r=Uo(qi(e));else if(Yi(t))r=Ko(t,n);else{let n=Io(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ha(r)}function Jo(e,t){let n=da(e);return n===t||!Yi(n)||ca(n)?!1:la(n).position===`fixed`||Jo(n,t)}function Yo(e,t){let n=t.get(e);if(n)return n;let r=pa(e,[],!1).filter(e=>Yi(e)&&Gi(e)!==`body`),i=null,a=la(e).position===`fixed`,o=a?da(e):e;for(;Yi(o)&&!ca(o);){let t=la(o),n=aa(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Qi(o)&&!n&&Jo(e,o))?r=r.filter(e=>e!==o):i=t,o=da(o)}return t.set(e,r),r}function Xo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ea(t)?[]:Yo(t,this._c):[].concat(n),r],o=qo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!as(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function ss(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=No(e),u=i||a?[...l?pa(l):[],...t?pa(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?os(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ro(e):null;c&&g();function g(){let t=Ro(e);h&&!as(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var cs=Oo,ls=ko,us=yo,ds=jo,fs=So,ps=vo,ms=To,hs=Ao,gs=(e,t,n)=>{let r=new Map,i={platform:is,...n},a={...i.platform,_c:r};return _o(e,t,{...i,platform:a})},_s=typeof document<`u`?o.useLayoutEffect:function(){};function vs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vs(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!vs(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ys(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bs(e,t){let n=ys(e);return Math.round(t*n)/n}function xs(e){let t=o.useRef(e);return _s(()=>{t.current=e}),t}function Ss(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=o.useState(r);vs(m,r)||h(r);let[g,_]=o.useState(null),[v,y]=o.useState(null),b=o.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=o.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=c||v,w=o.useRef(null),T=o.useRef(null),E=o.useRef(f),D=u!=null,O=xs(u),k=xs(i),A=xs(d),j=o.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),gs(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!vs(E.current,t)&&(E.current=t,s.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);_s(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let M=o.useRef(!1);_s(()=>(M.current=!0,()=>{M.current=!1}),[]),_s(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=o.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=o.useMemo(()=>({reference:S,floating:C}),[S,C]),F=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=bs(P.floating,f.x),r=bs(P.floating,f.y);return l?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ys(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,l,P.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:F}),[f,j,N,P,F])}var Cs=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:ps({element:r.current,padding:i}).fn(n):r?ps({element:r,padding:i}).fn(n):{}}}},ws=(e,t)=>{let n=cs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ts=(e,t)=>{let n=ls(e);return{name:n.name,fn:n.fn,options:[e,t]}},Es=(e,t)=>({fn:hs(e).fn,options:[e,t]}),Ds=(e,t)=>{let n=us(e);return{name:n.name,fn:n.fn,options:[e,t]}},Os=(e,t)=>{let n=ds(e);return{name:n.name,fn:n.fn,options:[e,t]}},ks=(e,t)=>{let n=fs(e);return{name:n.name,fn:n.fn,options:[e,t]}},As=(e,t)=>{let n=ms(e);return{name:n.name,fn:n.fn,options:[e,t]}},js=(e,t)=>{let n=Cs(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Ms(e){let t=o.useRef(void 0),n=o.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return o.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Ns=`data-floating-ui-focusable`,Ps=`active`,Fs=`selected`,Is=`ArrowLeft`,Ls=`ArrowRight`,Rs=`ArrowUp`,zs=`ArrowDown`,Bs=[Is,Ls],Vs=[Rs,zs];[...Bs,...Vs];var Hs={...o},Us=!1,Ws=0,Gs=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+ Ws++;function Ks(){let[e,t]=o.useState(()=>Us?Gs():void 0);return co(()=>{e??t(Gs())},[]),o.useEffect(()=>{Us=!0},[]),e}var qs=Hs.useId||Ks;function Js(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var Ys=o.createContext(null),Xs=o.createContext(null),Zs=()=>o.useContext(Ys)?.id||null,Qs=()=>o.useContext(Xs);function $s(e){return`data-floating-ui-`+e}function ec(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var tc=$s(`safe-polygon`);function nc(e,t,n){if(n&&!so(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function rc(e){return typeof e==`function`?e():e}function ic(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:s}=e,{enabled:c=!0,delay:l=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,m=Qs(),h=Zs(),g=uo(u),_=uo(l),v=uo(n),y=uo(f),b=o.useRef(),x=o.useRef(-1),S=o.useRef(),C=o.useRef(-1),w=o.useRef(!0),T=o.useRef(!1),E=o.useRef(()=>{}),D=o.useRef(!1),O=po(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});o.useEffect(()=>{if(!c)return;function e(e){let{open:t}=e;t||(ec(x),ec(C),w.current=!0,D.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[c,a]),o.useEffect(()=>{if(!c||!g.current||!n)return;function e(e){O()&&r(!1,e,`hover`)}let t=to(s.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[s.floating,n,r,c,g,O]);let k=o.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=nc(_.current,`close`,b.current);i&&!S.current?(ec(x),x.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(ec(x),r(!1,e,n))},[_,r]),A=po(()=>{E.current(),S.current=void 0}),j=po(()=>{if(T.current){let e=to(s.floating).body;e.style.pointerEvents=``,e.removeAttribute(tc),T.current=!1}}),M=po(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);o.useEffect(()=>{if(!c)return;function e(e){if(ec(x),w.current=!1,d&&!so(b.current)||rc(y.current)>0&&!nc(_.current,`open`))return;let t=nc(_.current,`open`,b.current);t?x.current=window.setTimeout(()=>{v.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(M()){j();return}E.current();let t=to(s.floating);if(ec(C),D.current=!1,g.current&&i.current.floatingContext){n||ec(x),S.current=g.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e,!0,`safe-polygon`)}});let r=S.current;t.addEventListener(`mousemove`,r),E.current=()=>{t.removeEventListener(`mousemove`,r)};return}(b.current!==`touch`||!Za(s.floating,e.relatedTarget))&&k(e)}function a(e){M()||i.current.floatingContext&&(g.current==null||g.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){j(),A(),M()||k(e)}})(e))}function o(){ec(x)}function l(e){M()||k(e,!1)}if(Yi(s.domReference)){let r=s.domReference,i=s.floating;return n&&r.addEventListener(`mouseleave`,a),p&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,o),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),p&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,o),i.removeEventListener(`mouseleave`,l))}}},[s,c,e,d,p,k,A,j,r,n,v,m,_,g,i,M,y]),co(()=>{var e;if(c&&n&&(e=g.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&O()){T.current=!0;let e=s.floating;if(Yi(s.domReference)&&e){var t;let n=to(s.floating).body;n.setAttribute(tc,``);let r=s.domReference,i=m==null||(t=m.nodesRef.current.find(e=>e.id===h))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[c,n,h,s,m,g,O]),co(()=>{n||(b.current=void 0,D.current=!1,A(),j())},[n,A,j]),o.useEffect(()=>()=>{A(),ec(x),ec(C),j()},[c,s.domReference,A,j]);let N=o.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!w.current&&!v.current&&r(!0,t,`hover`)}d&&!so(b.current)||n||rc(y.current)===0||D.current&&e.movementX**2+e.movementY**2<2||(ec(C),b.current===`touch`?i():(D.current=!0,C.current=window.setTimeout(i,rc(y.current))))}}},[d,r,n,v,y]);return o.useMemo(()=>c?{reference:N}:{},[c,N])}var ac=()=>{},oc=o.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:ac,setState:ac,isInstantPhase:!1}),sc=()=>o.useContext(oc);function cc(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=o.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=o.useRef(null),c=o.useCallback(e=>{a({currentId:e})},[]);return co(()=>{i.currentId?s.current===null?s.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),s.current=null)},[i.currentId,i.isInstantPhase]),(0,J.jsx)(oc.Provider,{value:o.useMemo(()=>({...i,setState:a,setCurrentId:c}),[i,c]),children:t})}function lc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=sc(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return co(()=>{o&&l&&(f({delay:{open:1,close:nc(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),co(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),co(()=>{o&&(u===ac||!n||u(s))},[o,n,u,s]),c}function uc(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Zi(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function dc(e){return`composedPath`in e?e.composedPath()[0]:e.target}var fc={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},pc={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},mc=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function hc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:u=`pointerdown`,referencePress:d=!1,referencePressEvent:f=`pointerdown`,ancestorScroll:p=!1,bubbles:m,capture:h}=t,g=Qs(),_=po(typeof l==`function`?l:()=>!1),v=typeof l==`function`?_:l,y=o.useRef(!1),{escapeKey:b,outsidePress:x}=mc(m),{escapeKey:S,outsidePress:C}=mc(h),w=o.useRef(!1),T=po(e=>{if(!n||!s||!c||e.key!==`Escape`||w.current)return;let t=a.current.floatingContext?.nodeId,i=g?ao(g.nodesRef.current,t):[];if(!b&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,oo(e)?e.nativeEvent:e,`escape-key`)}),E=po(e=>{var t;let n=()=>{var t;T(e),(t=Qa(e))==null||t.removeEventListener(`keydown`,n)};(t=Qa(e))==null||t.addEventListener(`keydown`,n)}),D=po(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=y.current;if(y.current=!1,u===`click`&&n||t||typeof v==`function`&&!v(e))return;let o=Qa(e),s=`[`+$s(`inert`)+`]`,c=to(i.floating).querySelectorAll(s),l=Yi(o)?o:null;for(;l&&!ca(l);){let e=da(l);if(ca(e)||!Yi(e))break;l=e}if(c.length&&Yi(o)&&!eo(o)&&!Za(o,i.floating)&&Array.from(c).every(e=>!Za(l,e)))return;if(Xi(o)&&A){let t=ca(o),n=la(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=g&&ao(g.nodesRef.current,d).some(t=>$a(e,t.context?.elements.floating));if($a(e,i.floating)||$a(e,i.domReference)||f)return;let p=g?ao(g.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),O=po(e=>{var t;let n=()=>{var t;D(e),(t=Qa(e))==null||t.removeEventListener(u,n)};(t=Qa(e))==null||t.addEventListener(u,n)});o.useEffect(()=>{if(!n||!s)return;a.current.__escapeKeyBubbles=b,a.current.__outsidePressBubbles=x;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function o(){window.clearTimeout(e),w.current=!0}function l(){e=window.setTimeout(()=>{w.current=!1},sa()?5:0)}let d=to(i.floating);c&&(d.addEventListener(`keydown`,S?E:T,S),d.addEventListener(`compositionstart`,o),d.addEventListener(`compositionend`,l)),v&&d.addEventListener(u,C?O:D,C);let f=[];return p&&(Yi(i.domReference)&&(f=pa(i.domReference)),Yi(i.floating)&&(f=f.concat(pa(i.floating))),!Yi(i.reference)&&i.reference&&i.reference.contextElement&&(f=f.concat(pa(i.reference.contextElement)))),f=f.filter(e=>e!==d.defaultView?.visualViewport),f.forEach(e=>{e.addEventListener(`scroll`,t,{passive:!0})}),()=>{c&&(d.removeEventListener(`keydown`,S?E:T,S),d.removeEventListener(`compositionstart`,o),d.removeEventListener(`compositionend`,l)),v&&d.removeEventListener(u,C?O:D,C),f.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,c,v,u,n,r,p,s,b,x,T,S,E,D,C,O]),o.useEffect(()=>{a.current.insideReactTree=!1},[a,v,u]);let k=o.useMemo(()=>({onKeyDown:T,...d&&{[fc[f]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...f!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[T,r,d,f]),A=o.useMemo(()=>{function e(e){e.button===0&&(y.current=!0)}return{onKeyDown:T,onMouseDown:e,onMouseUp:e,[pc[u]]:()=>{a.current.insideReactTree=!0}}},[T,u,a]);return o.useMemo(()=>s?{reference:k,floating:A}:{},[s,k,A])}function gc(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=qs(),a=o.useRef({}),[s]=o.useState(()=>Js()),c=Zs()!=null,[l,u]=o.useState(r.reference),d=po((e,t,r)=>{a.current.openEvent=e?t:void 0,s.emit(`openchange`,{open:e,event:t,reason:r,nested:c}),n?.(e,t,r)}),f=o.useMemo(()=>({setPositionReference:u}),[]),p=o.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return o.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:f}),[t,d,p,s,i,f])}function _c(e){e===void 0&&(e={});let{nodeId:t}=e,n=gc({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,s]=o.useState(null),[c,l]=o.useState(null),u=i?.domReference||a,d=o.useRef(null),f=Qs();co(()=>{u&&(d.current=u)},[u]);let p=Ss({...e,elements:{...i,...c&&{reference:c}}}),m=o.useCallback(e=>{let t=Yi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),p.refs.setReference(t)},[p.refs]),h=o.useCallback(e=>{(Yi(e)||e===null)&&(d.current=e,s(e)),(Yi(p.refs.reference.current)||p.refs.reference.current===null||e!==null&&!Yi(e))&&p.refs.setReference(e)},[p.refs]),g=o.useMemo(()=>({...p.refs,setReference:h,setPositionReference:m,domReference:d}),[p.refs,h,m]),_=o.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=o.useMemo(()=>({...p,...r,refs:g,elements:_,nodeId:t}),[p,g,_,t,r]);return co(()=>{r.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),o.useMemo(()=>({...p,context:v,refs:g,elements:_}),[p,g,_,v])}function vc(){return Ka()&&Ga()}function yc(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:s}=e,{enabled:c=!0,visibleOnly:l=!0}=t,u=o.useRef(!1),d=o.useRef(-1),f=o.useRef(!0);o.useEffect(()=>{if(!c)return;let e=Ki(s.domReference);function t(){!n&&Xi(s.domReference)&&s.domReference===Xa(to(s.domReference))&&(u.current=!0)}function r(){f.current=!0}function i(){f.current=!1}return e.addEventListener(`blur`,t),vc()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),vc()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[s.domReference,n,c]),o.useEffect(()=>{if(!c)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(u.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,c]),o.useEffect(()=>()=>{ec(d)},[]);let p=o.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;let t=Qa(e.nativeEvent);if(l&&Yi(t)){if(vc()&&!e.relatedTarget){if(!f.current&&!no(t))return}else if(!ro(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){u.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=Yi(t)&&t.hasAttribute($s(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;d.current=window.setTimeout(()=>{let e=Xa(s.domReference?s.domReference.ownerDocument:document);!t&&e===s.domReference||Za(a.current.floatingContext?.refs.floating.current,e)||Za(s.domReference,e)||i||r(!1,n,`focus`)})}}),[a,s.domReference,r,l]);return o.useMemo(()=>c?{reference:p}:{},[c,p])}function bc(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[Ps]:t,[Fs]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[Ns]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[Ps,Fs].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function xc(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=o.useCallback(t=>bc(t,e,`reference`),t),a=o.useCallback(t=>bc(t,e,`floating`),n),s=o.useCallback(t=>bc(t,e,`item`),r);return o.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}var Sc=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Cc(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:s=`dialog`}=t,c=qs(),l=r.domReference?.id||c,u=o.useMemo(()=>io(r.floating)?.id||i,[r.floating,i]),d=Sc.get(s)??s,f=Zs()!=null,p=o.useMemo(()=>d===`tooltip`||s===`label`?{[`aria-`+(s===`label`?`labelledby`:`describedby`)]:n?u:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":d===`alertdialog`?`dialog`:d,"aria-controls":n?u:void 0,...d===`listbox`&&{role:`combobox`},...d===`menu`&&{id:l},...d===`menu`&&f&&{role:`menuitem`},...s===`select`&&{"aria-autocomplete":`none`},...s===`combobox`&&{"aria-autocomplete":`list`}},[d,u,f,n,l,s]),m=o.useMemo(()=>{let e={id:u,...d&&{role:d}};return d===`tooltip`||s===`label`?e:{...e,...d===`menu`&&{"aria-labelledby":l}}},[d,u,l,s]),h=o.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:u+`-fui-option`}};switch(s){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[u,s]);return o.useMemo(()=>a?{reference:p,floating:m,item:h}:{},[a,p,m,h])}function wc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...wc(e,t.id,n)])}function Tc(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Ec(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Dc(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){ec(i),u()}if(ec(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=dc(e),v=e.type===`mouseleave`,y=uc(c.floating,_),b=uc(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=Ec(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,M=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&Yi(e.relatedTarget)&&uc(c.floating,e.relatedTarget)||f&&wc(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let N=[];switch(C){case`top`:N=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:N=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:N=[[S.right-1,M],[S.right-1,j],[x.left+1,j],[x.left+1,M]];break;case`right`:N=[[x.right-1,M],[x.right-1,j],[S.left+1,j],[S.left+1,M]];break}function P(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!Tc([m,h],N)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}Tc([m,h],P([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var Oc={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},kc=q((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":g(t),"--scrollarea-over-scroll-behavior":i}}}),Ac=Z(e=>{let t=Y(`ScrollArea`,Oc,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,scrollbarSize:c,vars:l,type:u,scrollHideDelay:d,viewportProps:f,viewportRef:p,onScrollPositionChange:m,children:h,offsetScrollbars:g,scrollbars:_,onBottomReached:v,onTopReached:y,onLeftReached:b,onRightReached:x,overscrollBehavior:S,startScrollPosition:C,attributes:w,...T}=t,[E,D]=(0,o.useState)(!1),[O,k]=(0,o.useState)(!1),[A,j]=(0,o.useState)(!1),M=(0,o.useRef)(!0),N=(0,o.useRef)(!1),P=(0,o.useRef)(!0),F=(0,o.useRef)(!1),I=X({name:`ScrollArea`,props:t,classes:Ui,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:w,vars:l,varsResolver:kc}),L=(0,o.useRef)(null),[R,z]=(0,o.useState)(null),B=Ms([p,L,(0,o.useCallback)(e=>{z(t=>t===e?t:e)},[])]);return hi(g===`present`?R:null,()=>{let e=L.current;e&&(k(e.scrollHeight>e.clientHeight),j(e.scrollWidth>e.clientWidth))}),ce(()=>{C&&L.current&&L.current.scrollTo({left:C.x??0,top:C.y??0})},[]),(0,J.jsxs)(yi,{getStyles:I,type:u===`never`?`always`:u,scrollHideDelay:d,scrollbars:_,...I(`root`),...T,children:[(0,J.jsx)(Hi,{...f,...I(`viewport`,{style:f?.style}),ref:B,"data-offset-scrollbars":g===!0?`xy`:g||void 0,"data-scrollbars":_||void 0,"data-horizontal-hidden":g===`present`&&!A?`true`:void 0,"data-vertical-hidden":g===`present`&&!O?`true`:void 0,onScroll:e=>{f?.onScroll?.(e),m?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!N.current&&v?.(),c&&!M.current&&y?.(),N.current=s,M.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!F.current&&x?.(),u&&!P.current&&b?.(),F.current=l,P.current=u},children:h}),(_===`xy`||_===`x`)&&(0,J.jsx)(Ri,{...I(`scrollbar`),orientation:`horizontal`,"data-hidden":u===`never`||g===`present`&&!A?!0:void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,J.jsx)(Vi,{...I(`thumb`)})}),(_===`xy`||_===`y`)&&(0,J.jsx)(Ri,{...I(`scrollbar`),orientation:`vertical`,"data-hidden":u===`never`||g===`present`&&!O?!0:void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,J.jsx)(Vi,{...I(`thumb`)})}),(0,J.jsx)(_i,{...I(`corner`),"data-hovered":E||void 0,"data-hidden":u===`never`||void 0})]})});Ac.displayName=`@mantine/core/ScrollArea`;var jc=Z(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:s,dir:c,offsetScrollbars:l,overscrollBehavior:u,viewportRef:d,onScrollPositionChange:f,unstyled:p,variant:m,viewportProps:h,scrollbars:g,style:_,vars:v,onBottomReached:y,onTopReached:b,startScrollPosition:x,onOverflowChange:S,...C}=Y(`ScrollAreaAutosize`,Oc,e),w=(0,o.useRef)(null),[T,E]=(0,o.useState)(null),D=Ms([d,w,(0,o.useCallback)(e=>{E(t=>t===e?t:e)},[])]),O=(0,o.useRef)(!1),k=(0,o.useRef)(!1),A=(0,o.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==O.current&&(k.current?S(t):(k.current=!0,t&&S(!0)),O.current=t)});return hi(S?T:null,A),(0,J.jsx)(Q,{...C,variant:m,style:[{display:`flex`,overflow:`hidden`},_],children:(0,J.jsx)(Q,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...g===`y`&&{minWidth:0},...g===`x`&&{minHeight:0},...g===`xy`&&{minWidth:0,minHeight:0},...g===!1&&{minWidth:0,minHeight:0}},children:(0,J.jsx)(Ac,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:s,dir:c,offsetScrollbars:l,overscrollBehavior:u,viewportRef:D,onScrollPositionChange:f,unstyled:p,variant:m,viewportProps:h,vars:v,scrollbars:g,onBottomReached:y,onTopReached:b,startScrollPosition:x,"data-autosize":`true`,children:t})})})});Ac.classes=Ui,Ac.varsResolver=kc,jc.displayName=`@mantine/core/ScrollAreaAutosize`,jc.classes=Ui,Ac.Autosize=jc;var Mc={root:`m_87cf2631`},Nc={__staticSelector:`UnstyledButton`},Pc=ti(e=>{let t=Y(`UnstyledButton`,Nc,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t;return(0,J.jsx)(Q,{...X({name:i,props:t,classes:Mc,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});Pc.classes=Mc,Pc.displayName=`@mantine/core/UnstyledButton`;var Fc={root:`m_515a97f8`},Ic=Z(e=>{let t=Y(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t;return(0,J.jsx)(Q,{component:`span`,...X({name:`VisuallyHidden`,classes:Fc,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c})(`root`),...l})});Ic.classes=Fc,Ic.displayName=`@mantine/core/VisuallyHidden`;var Lc={root:`m_1b7284a3`},Rc=q((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:P(t),"--paper-shadow":L(n)}})),zc=ti(e=>{let t=Y(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=X({name:`Paper`,props:t,classes:Lc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:Rc});return(0,J.jsx)(Q,{mod:[{"data-with-border":s},f],...h(`root`),variant:d,...m})});zc.classes=Lc,zc.varsResolver=Rc,zc.displayName=`@mantine/core/Paper`;function Bc(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Vc(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var Hc={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Uc({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function Wc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=Uc({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[Hc[c]]:r},d=-t/2;return c===`left`?{...u,...Bc(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...Bc(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...Vc(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...Vc(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function Gc({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function Kc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=li();return a?(0,J.jsx)(`div`,{role:`presentation`,...l,style:{...c,...Wc({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}Kc.displayName=`@mantine/core/FloatingArrow`;function qc(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function Jc({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,o.useRef)(-1),a=(0,o.useRef)(-1),s=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,o.useEffect)(()=>s,[]),{openDropdown:()=>{s(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{s(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}var Yc={root:`m_9814e45f`},Xc={zIndex:k(`modal`)},Zc=q((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&on(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${g(i)})`:void 0,"--overlay-radius":a===void 0?void 0:P(a),"--overlay-z-index":o?.toString()}})),Qc=ti(e=>{let t=Y(`Overlay`,Xc,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radius:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t;return(0,J.jsx)(Q,{...X({name:`Overlay`,props:t,classes:Yc,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Zc})(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});Qc.classes=Yc,Qc.varsResolver=Zc,Qc.displayName=`@mantine/core/Overlay`;function $c(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function el({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||$c(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=$c(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return $c(n)}var tl={reuseTargetNode:!0},nl=Z(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=Y(`Portal`,tl,e),[c,l]=(0,o.useState)(!1),u=(0,o.useRef)(null);return ce(()=>(l(!0),u.current=el({target:n,reuseTargetNode:r,...a}),Me(i,u.current),!n&&!r&&u.current&&document.body.appendChild(u.current),()=>{!n&&!r&&u.current&&document.body.removeChild(u.current)}),[n]),!c||!u.current?null:(0,s.createPortal)((0,J.jsx)(J.Fragment,{children:t}),u.current)});nl.displayName=`@mantine/core/Portal`;var rl=Z(({withinPortal:e=!0,children:t,...n})=>Cn()===`test`||!e?(0,J.jsx)(J.Fragment,{children:t}):(0,J.jsx)(nl,{...n,children:t}));rl.displayName=`@mantine/core/OptionalPortal`;var il=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),al={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...il(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...il(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...il(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...il(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...il(`top`),common:{transformOrigin:`top right`}}},ol={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function sl({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in al?{transitionProperty:al[e].transitionProperty,...i,...al[e].common,...al[e][ol[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[ol[t]]}}function cl({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:c,onExited:l,enterDelay:u,exitDelay:d}){let f=Bn(),p=Ve(),m=f.respectReducedMotion?p:!1,[h,g]=(0,o.useState)(m?0:e),[_,v]=(0,o.useState)(r?`entered`:`exited`),y=(0,o.useRef)(-1),b=(0,o.useRef)(-1),x=(0,o.useRef)(-1);function S(){window.clearTimeout(y.current),window.clearTimeout(b.current),cancelAnimationFrame(x.current)}let C=n=>{S();let r=n?i:a,o=n?c:l,u=m?0:n?e:t;g(u),u===0?(typeof r==`function`&&r(),typeof o==`function`&&o(),v(n?`entered`:`exited`)):x.current=requestAnimationFrame(()=>{s.flushSync(()=>{v(n?`pre-entering`:`pre-exiting`)}),x.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),v(n?`entering`:`exiting`),y.current=window.setTimeout(()=>{typeof o==`function`&&o(),v(n?`entered`:`exited`)},u)})})},w=e=>{if(S(),typeof(e?u:d)!=`number`){C(e);return}b.current=window.setTimeout(()=>{C(e)},e?u:d)};return le(()=>{w(r)},[r]),(0,o.useEffect)(()=>()=>{S()},[]),{transitionDuration:h,transitionStatus:_,transitionTimingFunction:n||`ease`}}function ll({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:s,timingFunction:c=`ease`,onExit:l,onEntered:u,onEnter:d,onExited:f,enterDelay:p,exitDelay:m}){let h=Cn(),{transitionDuration:g,transitionStatus:_,transitionTimingFunction:v}=cl({mounted:a,exitDuration:i,duration:r,timingFunction:c,onExit:l,onEntered:u,onEnter:d,onExited:f,enterDelay:p,exitDelay:m});if(h===`test`)return a?(0,J.jsx)(J.Fragment,{children:s({})}):e?s({display:`none`}):null;if(g===0)return e?t===`display-none`?a?(0,J.jsx)(J.Fragment,{children:s({})}):s({display:`none`}):(0,J.jsx)(o.Activity,{mode:a?`visible`:`hidden`,children:s({})}):a?(0,J.jsx)(J.Fragment,{children:s({})}):null;let y=_===`exited`;if(e){let e=s(y?t===`display-none`?{display:`none`}:{}:sl({transition:n,duration:g,state:_,timingFunction:v}));return t===`display-none`?e:(0,J.jsx)(o.Activity,{mode:y?`hidden`:`visible`,children:e})}return y?null:(0,J.jsx)(J.Fragment,{children:s(sl({transition:n,duration:g,state:_,timingFunction:v}))})}ll.displayName=`@mantine/core/Transition`;var ul={duration:100,transition:`fade`};function dl(e,t){return{...ul,...t,...e}}var[fl,pl]=x(`Popover component was not found in the tree`);function ml({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let s=(0,o.useRef)(!1),c=(0,o.useRef)(!1),l=(0,o.useRef)(null),u=(0,o.useRef)(t);u.current=t;let d=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},f=R(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),p=R(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!c.current&&(d(e.clientX,e.clientY,e.currentTarget),s.current&&(c.current=!0)))}),m=dt(e=>{if(u.current||c.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(d(n.clientX,n.clientY,l.current),c.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{s.current=!0,c.current=!1,l.current=e.currentTarget},onFinish:e=>{s.current=!1,c.current=!1,u.current||e.preventDefault()},onCancel:()=>{s.current=!1,c.current=!1}});return{onContextMenu:p,onMouseDown:f,onTouchStart:R(e.onTouchStart,m.onTouchStart),onTouchEnd:R(e.onTouchEnd,m.onTouchEnd),onTouchCancel:R(e.onTouchCancel,m.onTouchCancel),onTouchMove:R(e.onTouchMove,m.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function hl(e){let{children:t,disabled:n,longPressDelay:r}=Y(`PopoverContextMenu`,null,e),i=Ft(t);if(!i)throw Error(`Popover.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=pl();return(0,o.cloneElement)(i,ml({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}}))}hl.displayName=`@mantine/core/PopoverContextMenu`;function gl({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=Pe(be(t),r),a=Ft(e);return a?(0,o.cloneElement)(a,{[n]:i}):e}function _l(e){return(0,J.jsx)(Ic,{tabIndex:-1,"data-autofocus":!0,...e})}gl.displayName=`@mantine/core/FocusTrap`,_l.displayName=`@mantine/core/FocusTrapInitialFocus`,gl.InitialFocus=_l;var vl={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},yl=Z(e=>{let t=Y(`PopoverDropdown`,null,e),{className:n,style:r,vars:i,children:a,onKeyDownCapture:o,variant:s,classNames:c,styles:l,ref:u,...d}=t,f=pl(),{dir:p}=li(),m=f.arrowPosition===`merge`&&f.withArrow?Gc({position:f.placement,dir:p}):void 0,h=ue({opened:f.opened,shouldReturnFocus:f.returnFocus}),_=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:`dialog`,tabIndex:-1}:{},v=Pe(u,f.floating);return f.disabled?null:(0,J.jsx)(rl,{...f.portalProps,withinPortal:f.withinPortal,children:(0,J.jsx)(ll,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||`fade`,duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,keepMountedMode:f.keepMountedMode,exitDuration:typeof f.transitionProps?.exitDuration==`number`?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,J.jsx)(gl,{active:f.trapFocus&&f.opened,innerRef:v,children:(0,J.jsxs)(Q,{..._,...d,variant:s,onKeyDownCapture:j(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:h,onKeyDown:o}),"data-position":f.placement,"data-fixed":f.floatingStrategy===`fixed`||void 0,...f.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...m,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width===`target`?void 0:g(f.width),...f.referenceHidden?{display:`none`}:null},f.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,J.jsx)(Kc,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});yl.classes=vl,yl.displayName=`@mantine/core/PopoverDropdown`;var bl={refProp:`ref`,popupType:`dialog`},xl=Z(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=Y(`PopoverTarget`,bl,e),s=Ft(t);if(!s)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let c=a,l=pl(),u=Pe(l.reference,At(s),i),d=l.withRoles?{"aria-haspopup":r,"aria-expanded":l.opened,"aria-controls":l.opened?l.getDropdownId():void 0,id:l.getTargetId()}:{},f=s.props;return(0,o.cloneElement)(s,{...c,...d,...l.targetProps,className:Lt(l.targetProps.className,c.className,f.className),[n]:u,...l.controlled?null:{onClick:e=>{l.onToggle(),f.onClick?.(e)}}})});xl.displayName=`@mantine/core/PopoverTarget`;function Sl(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 Cl(e,t,n,r){let i=Sl(e.middlewares),a=[ws(e.offset),ks()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(Ds(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(Ts(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:Es(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?As():As(i.inline)),a.push(js({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(Os({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),a}function wl(e){let[t,n]=Le({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,o.useRef)(t),[i,a]=(0,o.useState)(null),s=e.preventPositionChangeWhenVisible!==!1,c=(0,o.useRef)(t);t!==c.current&&(c.current=t,t&&i!==null&&a(null));let l=(0,o.useCallback)(()=>a(null),[]),u=()=>{t&&!e.disabled&&n(!1)},d=()=>{e.disabled||n(!t)},f=_c({open:t,strategy:e.strategy,placement:s?i??e.position:e.position,middleware:Cl(e,()=>f,s&&i!==null,s),whileElementsMounted:e.keepMounted?void 0:ss});(0,o.useEffect)(()=>{if(!e.keepMounted)return;let n=f.refs.reference.current,r=f.refs.floating.current;if(t&&n&&r)return ss(n,r,f.update)},[e.keepMounted,t,f.update,f.elements.reference,f.elements.floating]);let p=(0,o.useRef)(!1);ce(()=>{if(!t){p.current=!1;return}if(!s||i!==null)return;let e=f.refs.floating.current;if(!(!e||e.offsetHeight===0||e.offsetWidth===0)){if(!p.current){p.current=!0,f.update();return}f.isPositioned&&a(f.placement)}},[s,t,f.isPositioned,f.placement,i,f.update]);let m=(0,o.useRef)(f.placement);return ce(()=>{m.current!==f.placement&&(m.current=f.placement,e.onPositionChange?.(f.placement))},[f.placement]),le(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:f,controlled:typeof e.opened==`boolean`,opened:t,onClose:u,onToggle:d,resetLockedPlacement:l}}var Tl={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],zIndex:k(`popover`),__staticSelector:`Popover`,width:`max-content`},El=q((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:P(t),"--popover-shadow":L(n)}}));function Dl(e){let t=Y(`Popover`,Tl,e),{children:n,position:r,offset:i,onPositionChange:a,opened:s,transitionProps:c,onExitTransitionEnd:l,onEnterTransitionEnd:u,width:d,middlewares:f,withArrow:p,arrowSize:m,arrowOffset:h,arrowRadius:g,arrowPosition:_,unstyled:v,classNames:y,styles:b,closeOnClickOutside:x,withinPortal:S,portalProps:C,closeOnEscape:w,clickOutsideEvents:T,trapFocus:E,onClose:D,onDismiss:O,onOpen:k,onChange:A,zIndex:j,radius:M,shadow:N,id:P,defaultOpened:F,__staticSelector:I,withRoles:L,disabled:R,returnFocus:z,variant:B,keepMounted:V,keepMountedMode:H,vars:ee,floatingStrategy:U,withOverlay:te,overlayProps:ne,hideDetached:re,attributes:ie,preventPositionChangeWhenVisible:ae,...G}=t,K=X({name:I,props:t,classes:vl,classNames:y,styles:b,unstyled:v,attributes:ie,rootSelector:`dropdown`,vars:ee,varsResolver:El}),{resolvedStyles:oe}=or({classNames:y,styles:b,props:t}),se=(0,o.useRef)(null),[ce,le]=(0,o.useState)(null),[ue,de]=(0,o.useState)(null),{dir:fe}=li(),pe=Cn(),me=Ce(P),he=wl({middlewares:f,width:d,position:qc(fe,r),offset:typeof i==`number`?i+(p?m/2:0):i,arrowRef:se,arrowOffset:h,onPositionChange:a,opened:s,defaultOpened:F,onChange:A,onOpen:k,onClose:D,onDismiss:O,strategy:U,disabled:R,preventPositionChangeWhenVisible:ae,keepMounted:V});W(()=>{x&&(he.onClose(),O?.())},T,[ce,ue]);let ge=(0,o.useCallback)(e=>{le(e),he.floating.refs.setReference(e)},[he.floating.refs.setReference]),_e=(0,o.useCallback)(e=>{de(e),he.floating.refs.setFloating(e)},[he.floating.refs.setFloating]),ve=(0,o.useCallback)(()=>{c?.onExited?.(),l?.(),he.resetLockedPlacement()},[c?.onExited,l,he.resetLockedPlacement]),ye=(0,o.useCallback)(()=>{c?.onEntered?.(),u?.()},[c?.onEntered,u]);return(0,J.jsxs)(fl,{value:{returnFocus:z,disabled:R,controlled:he.controlled,reference:ge,floating:_e,x:he.floating.x,y:he.floating.y,arrowX:he.floating?.middlewareData?.arrow?.x,arrowY:he.floating?.middlewareData?.arrow?.y,opened:he.opened,arrowRef:se,transitionProps:{...c,onExited:ve,onEntered:ye},width:d,withArrow:p,arrowSize:m,arrowOffset:h,arrowRadius:g,arrowPosition:_,placement:he.floating.placement,trapFocus:E,withinPortal:S,portalProps:C,zIndex:j,radius:M,shadow:N,closeOnEscape:w,onDismiss:O,onClose:he.onClose,onToggle:he.onToggle,getTargetId:()=>me,getDropdownId:()=>`${me}-dropdown`,withRoles:L,targetProps:G,__staticSelector:I,classNames:y,styles:b,unstyled:v,variant:B,keepMounted:V,keepMountedMode:H,getStyles:K,resolvedStyles:oe,floatingStrategy:U,referenceHidden:re&&pe!==`test`?he.floating.middlewareData.hide?.referenceHidden:!1},children:[n,te&&(0,J.jsx)(ll,{transition:`fade`,mounted:he.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:e=>(0,J.jsx)(rl,{withinPortal:S,children:(0,J.jsx)(Qc,{...ne,...K(`overlay`,{className:ne?.className,style:[e,ne?.style]})})})})]})}Dl.Target=xl,Dl.Dropdown=yl,Dl.ContextMenu=hl,Dl.varsResolver=El,Dl.displayName=`@mantine/core/Popover`,Dl.extend=e=>e,Dl.withProps=e=>{let t=t=>(0,J.jsx)(Dl,{...e,...t});return t.extend=Dl.extend,t.displayName=`WithProps(${Dl.displayName})`,t};var Ol={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},kl=({className:e,...t})=>(0,J.jsxs)(Q,{component:`span`,className:Lt(Ol.barsLoader,e),...t,children:[(0,J.jsx)(`span`,{className:Ol.bar}),(0,J.jsx)(`span`,{className:Ol.bar}),(0,J.jsx)(`span`,{className:Ol.bar})]});kl.displayName=`@mantine/core/Bars`;var Al=({className:e,...t})=>(0,J.jsxs)(Q,{component:`span`,className:Lt(Ol.dotsLoader,e),...t,children:[(0,J.jsx)(`span`,{className:Ol.dot}),(0,J.jsx)(`span`,{className:Ol.dot}),(0,J.jsx)(`span`,{className:Ol.dot})]});Al.displayName=`@mantine/core/Dots`;var jl=({className:e,...t})=>(0,J.jsx)(Q,{component:`span`,className:Lt(Ol.ovalLoader,e),...t});jl.displayName=`@mantine/core/Oval`;var Ml={bars:kl,oval:jl,dots:Al},Nl={loaders:Ml,type:`oval`},Pl=q((e,{size:t,color:n})=>({root:{"--loader-size":M(t,`loader-size`),"--loader-color":n?tn(n,e):void 0}})),Fl=Z(e=>{let t=Y(`Loader`,Nl,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=X({name:`Loader`,props:t,classes:Ol,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:Pl});return p?(0,J.jsx)(Q,{...g(`root`),...h,children:p}):(0,J.jsx)(Q,{...g(`root`),component:d[i],variant:f,size:n,...h})});Fl.defaultLoaders=Ml,Fl.classes=Ol,Fl.varsResolver=Pl,Fl.displayName=`@mantine/core/Loader`;var Il={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},Ll={orientation:`horizontal`},Rl=q((e,{borderWidth:t})=>({group:{"--ai-border-width":g(t)}})),zl=Z(e=>{let t=Y(`ActionIconGroup`,Ll,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t;return(0,J.jsx)(Q,{...X({name:`ActionIconGroup`,props:t,classes:Il,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:Rl,rootSelector:`group`})(`group`),variant:u,mod:[{"data-orientation":s},d],role:`group`,...p})});zl.classes=Il,zl.varsResolver=Rl,zl.displayName=`@mantine/core/ActionIconGroup`;var Bl=q((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":M(o,`section-height`),"--section-padding-x":M(o,`section-padding-x`),"--section-fz":F(o),"--section-radius":t===void 0?void 0:P(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Vl=Z(e=>{let t=Y(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,J.jsx)(Q,{...X({name:`ActionIconGroupSection`,props:t,classes:Il,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Bl,rootSelector:`groupSection`})(`groupSection`),variant:c,...p})});Vl.classes=Il,Vl.varsResolver=Bl,Vl.displayName=`@mantine/core/ActionIconGroupSection`;var Hl=q((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:{"--ai-size":M(t,`ai-size`),"--ai-radius":n===void 0?void 0:P(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),Ul=ti(e=>{let t=Y(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=X({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:Il,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:Hl});return(0,J.jsxs)(Pc,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,J.jsx)(ll,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,J.jsx)(Q,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,J.jsx)(Fl,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,J.jsx)(Q,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});Ul.classes=Il,Ul.varsResolver=Hl,Ul.displayName=`@mantine/core/ActionIcon`,Ul.Group=zl,Ul.GroupSection=Vl;function Wl({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,J.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,J.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Wl.displayName=`@mantine/core/CloseIcon`;var Gl={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},Kl={variant:`subtle`},ql=q((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":M(t,`cb-size`),"--cb-radius":n===void 0?void 0:P(n),"--cb-icon-size":g(r)}})),Jl=ti(e=>{let t=Y(`CloseButton`,Kl,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=X({name:_||`CloseButton`,props:t,className:o,style:c,classes:Gl,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:ql});return(0,J.jsxs)(Pc,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,J.jsx)(Wl,{}),r]})});Jl.classes=Gl,Jl.varsResolver=ql,Jl.displayName=`@mantine/core/CloseButton`;function Yl(e){return o.Children.toArray(e).filter(Boolean)}var Xl={root:`m_4081bf90`},Zl={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},Ql=q((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":N(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),$l=Z(e=>{let t=Y(`Group`,Zl,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=Yl(s),x=b.length,S=N(c??`md`);return(0,J.jsx)(Q,{...X({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:Xl,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:Ql})(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});$l.classes=Xl,$l.varsResolver=Ql,$l.displayName=`@mantine/core/Group`;var[eu,tu]=x(`ModalBase component was not found in tree`);function nu({opened:e,transitionDuration:t}){let[n,r]=(0,o.useState)(e),i=(0,o.useRef)(-1),a=Ve()?0:t;return(0,o.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function ru({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:s}){let c=Ce(e),[l,u]=(0,o.useState)(!1),[d,f]=(0,o.useState)(!1),p=nu({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return Te(`keydown`,e=>{e.key===`Escape`&&i&&!e.isComposing&&n&&e.target?.getAttribute(`data-mantine-stop-propagation`)!==`true`&&a()},{capture:!0}),ue({opened:n,shouldReturnFocus:r&&s}),{_id:c,titleMounted:l,bodyMounted:d,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:f}}var iu=function(){return iu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return Mu;var t=Pu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Iu=ju(),Lu=`data-scroll-locked`,Ru=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` .${lu} { overflow: hidden ${r}; padding-right: ${s}px ${r}; } body[${Lu}] { overflow: hidden ${r}; overscroll-behavior: contain; ${[t&&`position: relative ${r};`,n===`margin`&&` padding-left: ${i}px; padding-top: ${a}px; padding-right: ${o}px; margin-left:0; margin-top:0; margin-right: ${s}px ${r}; `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} } .${su} { right: ${s}px ${r}; } .${cu} { margin-right: ${s}px ${r}; } .${su} .${su} { right: 0 ${r}; } .${cu} .${cu} { margin-right: 0 ${r}; } body[${Lu}] { ${uu}: ${s}px; } `},zu=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Bu=function(){o.useEffect(function(){return document.body.setAttribute(Lu,(zu()+1).toString()),function(){var e=zu()-1;e<=0?document.body.removeAttribute(Lu):document.body.setAttribute(Lu,e.toString())}},[])},Vu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Bu();var a=o.useMemo(function(){return Fu(i)},[i]);return o.createElement(Iu,{styles:Ru(a,!t,i,n?``:`!important`)})},Hu=!1;if(typeof window<`u`)try{var Uu=Object.defineProperty({},"passive",{get:function(){return Hu=!0,!0}});window.addEventListener(`test`,Uu,Uu),window.removeEventListener(`test`,Uu,Uu)}catch{Hu=!1}var Wu=Hu?{passive:!1}:!1,Gu=function(e){return e.tagName===`TEXTAREA`},Ku=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Gu(e)&&n[t]===`visible`)},qu=function(e){return Ku(e,`overflowY`)},Ju=function(e){return Ku(e,`overflowX`)},Yu=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Qu(e,r)){var i=$u(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xu=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Zu=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Qu=function(e,t){return e===`v`?qu(t):Ju(t)},$u=function(e,t){return e===`v`?Xu(t):Zu(t)},ed=function(e,t){return e===`h`&&t===`rtl`?-1:1},td=function(e,t,n,r,i){var a=ed(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=$u(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Qu(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},nd=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rd=function(e){return[e.deltaX,e.deltaY]},id=function(e){return e&&`current`in e?e.current:e},ad=function(e,t){return e[0]===t[0]&&e[1]===t[1]},od=function(e){return` .block-interactivity-${e} {pointer-events: none;} .allow-interactivity-${e} {pointer-events: all;} `},sd=0,cd=[];function ld(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(sd++)[0],a=o.useState(ju)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=ou([e.lockRef.current],(e.shards||[]).map(id),!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 c=o.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var i=nd(e),a=n.current,o=`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(o)>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=Yu(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Yu(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(o||c)&&(r.current=l),!l)return!0;var h=r.current||l;return td(h,t,e,h===`h`?o:c,!0)},[]),l=o.useCallback(function(e){var n=e;if(!(!cd.length||cd[cd.length-1]!==a)){var r=`deltaY`in n?rd(n):nd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ad(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var o=(s.current.shards||[]).map(id).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?c(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=o.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ud(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=o.useCallback(function(e){n.current=nd(e),r.current=void 0},[]),f=o.useCallback(function(t){u(t.type,rd(t),t.target,c(t,e.lockRef.current))},[]),p=o.useCallback(function(t){u(t.type,nd(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return cd.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Wu),document.addEventListener(`touchmove`,l,Wu),document.addEventListener(`touchstart`,d,Wu),function(){cd=cd.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,Wu),document.removeEventListener(`touchmove`,l,Wu),document.removeEventListener(`touchstart`,d,Wu)}},[]);var m=e.removeScrollBar,h=e.inert;return o.createElement(o.Fragment,null,h?o.createElement(a,{styles:od(i)}):null,m?o.createElement(Vu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ud(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var dd=bu(xu,ld),fd=o.forwardRef(function(e,t){return o.createElement(Cu,iu({},e,{ref:t,sideCar:dd}))});fd.classNames=Cu.classNames;function pd({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:i,onExitTransitionEnd:a,onEnterTransitionEnd:o,trapFocus:s,closeOnEscape:c,returnFocus:l,closeOnClickOutside:u,withinPortal:d,portalProps:f,lockScroll:p,children:m,zIndex:h,shadow:g,padding:_,__vars:v,unstyled:y,removeScrollProps:b,...x}){let{_id:S,titleMounted:C,bodyMounted:w,shouldLockScroll:T,setTitleMounted:E,setBodyMounted:D}=ru({id:r,transitionProps:i,opened:t,trapFocus:s,closeOnEscape:c,onClose:n,returnFocus:l}),{key:O,...A}=b||{};return(0,J.jsx)(rl,{...f,withinPortal:d,children:(0,J.jsx)(eu,{value:{opened:t,onClose:n,closeOnClickOutside:u,onExitTransitionEnd:a,onEnterTransitionEnd:o,transitionProps:{...i,keepMounted:e},getTitleId:()=>`${S}-title`,getBodyId:()=>`${S}-body`,titleMounted:C,bodyMounted:w,setTitleMounted:E,setBodyMounted:D,trapFocus:s,closeOnEscape:c,zIndex:h,unstyled:y},children:(0,J.jsx)(fd,{enabled:T&&p,...A,children:(0,J.jsx)(Q,{...x,id:S,__vars:{...v,"--mb-z-index":(h||k(`modal`)).toString(),"--mb-shadow":L(g),"--mb-padding":N(_)},children:m})},O)})})}pd.displayName=`@mantine/core/ModalBase`;function md(){let e=tu();return(0,o.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var hd={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function gd({className:e,...t}){let n=md(),r=tu();return(0,J.jsx)(Q,{id:n,className:Lt({[hd.body]:!r.unstyled},e),...t})}gd.displayName=`@mantine/core/ModalBaseBody`;function _d({className:e,onClick:t,...n}){let r=tu();return(0,J.jsx)(Jl,{...n,onClick:e=>{r.onClose(),t?.(e)},className:Lt({[hd.close]:!r.unstyled},e),unstyled:r.unstyled})}_d.displayName=`@mantine/core/ModalBaseCloseButton`;function vd({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=tu();return(0,J.jsx)(ll,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,J.jsx)(`div`,{...n,className:Lt({[hd.inner]:!s.unstyled},n.className),children:(0,J.jsx)(gl,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,J.jsx)(zc,{...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:Lt({[hd.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}vd.displayName=`@mantine/core/ModalBaseContent`;function yd({className:e,...t}){let n=tu();return(0,J.jsx)(Q,{component:`header`,className:Lt({[hd.header]:!n.unstyled},e),...t})}yd.displayName=`@mantine/core/ModalBaseHeader`;var bd={duration:200,timingFunction:`ease`,transition:`fade`};function xd(e){let t=tu();return{...bd,...t.transitionProps,...e}}function Sd({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=tu(),o=xd(t);return(0,J.jsx)(ll,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,J.jsx)(Qc,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}Sd.displayName=`@mantine/core/ModalBaseOverlay`;function Cd(){let e=tu();return(0,o.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function wd({className:e,...t}){let n=Cd(),r=tu();return(0,J.jsx)(Q,{component:`h2`,className:Lt({[hd.title]:!r.unstyled},e),id:n,...t})}wd.displayName=`@mantine/core/ModalBaseTitle`;function Td({children:e}){return(0,J.jsx)(J.Fragment,{children:e})}var Ed=(0,o.createContext)({size:`sm`}),Dd=Z(e=>{let t=Y(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:s,...c}=t,l=(0,o.use)(Ed),{resolvedClassNames:u,resolvedStyles:d}=or({classNames:a,styles:s,props:t});return(0,J.jsx)(Jl,{variant:r||`transparent`,size:n||l?.size||`sm`,classNames:u,styles:d,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...c.style},...c})});Dd.displayName=`@mantine/core/InputClearButton`;var Od={xs:7,sm:8,md:10,lg:12,xl:15};function kd({__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,J.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:Od[i]},children:[o,n||r]}):n===null?null:n||o||r}var Ad=(0,o.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),jd={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`},Md=q((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${F(t)} - ${g(2)})`}})),Nd=Z(e=>{let t=Y(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,__staticSelector:l,__inheritStyles:u=!0,attributes:d,...f}=Y(`InputDescription`,null,t),p=(0,o.use)(Ad),m=X({name:[`InputWrapper`,l],props:t,classes:jd,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:d,rootSelector:`description`,vars:c,varsResolver:Md});return(0,J.jsx)(Q,{component:`p`,...(u&&p?.getStyles||m)(`description`,p?.getStyles?{className:r,style:i}:void 0),...f})});Nd.classes=jd,Nd.varsResolver=Md,Nd.displayName=`@mantine/core/InputDescription`;var Pd=q((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${F(t)} - ${g(2)})`}})),Fd=Z(e=>{let t=Y(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,attributes:l,__staticSelector:u,__inheritStyles:d=!0,...f}=t,p=X({name:[`InputWrapper`,u],props:t,classes:jd,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:l,rootSelector:`error`,vars:c,varsResolver:Pd}),m=(0,o.use)(Ad);return(0,J.jsx)(Q,{component:`p`,...(d&&m?.getStyles||p)(`error`,m?.getStyles?{className:r,style:i}:void 0),...f})});Fd.classes=jd,Fd.varsResolver=Pd,Fd.displayName=`@mantine/core/InputError`;var Id={labelElement:`label`},Ld=q((e,{size:t})=>({label:{"--input-label-size":F(t),"--input-asterisk-color":void 0}})),Rd=Z(e=>{let t=Y(`InputLabel`,Id,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,labelElement:l,required:u,htmlFor:d,onMouseDown:f,children:p,__staticSelector:m,mod:h,attributes:g,..._}=t,v=X({name:[`InputWrapper`,m],props:t,classes:jd,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:g,rootSelector:`label`,vars:c,varsResolver:Ld}),y=(0,o.use)(Ad),b=y?.getStyles||v;return(0,J.jsxs)(Q,{...b(`label`,y?.getStyles?{className:r,style:i}:void 0),component:l,htmlFor:l===`label`?d:void 0,mod:[{required:u},h],onMouseDown:e=>{f?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},..._,children:[p,u&&(0,J.jsx)(`span`,{...b(`required`),"aria-hidden":!0,children:` *`})]})});Rd.classes=jd,Rd.varsResolver=Ld,Rd.displayName=`@mantine/core/InputLabel`;var zd=Z(e=>{let t=Y(`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;return(0,J.jsx)(Q,{...X({name:[`InputPlaceholder`,c],props:t,classes:jd,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});zd.classes=jd,zd.displayName=`@mantine/core/InputPlaceholder`;var Bd=q((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${F(t)} - ${g(2)})`}})),Vd=Z(e=>{let t=Y(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,attributes:l,__staticSelector:u,__inheritStyles:d=!0,...f}=t,p=X({name:[`InputWrapper`,u],props:t,classes:jd,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:l,rootSelector:`success`,vars:c,varsResolver:Bd}),m=(0,o.use)(Ad);return(0,J.jsx)(Q,{component:`p`,...(d&&m?.getStyles||p)(`success`,m?.getStyles?{className:r,style:i}:void 0),...f})});Vd.classes=jd,Vd.varsResolver=Bd,Vd.displayName=`@mantine/core/InputSuccess`;function Hd(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`]},Wd=q((e,{size:t})=>({label:{"--input-label-size":F(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${F(t)} - ${g(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${F(t)} - ${g(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${F(t)} - ${g(2)})`}})),Gd=Z(e=>{let t=Y(`InputWrapper`,Ud,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,size:l,variant:u,__staticSelector:d,inputContainer:f,inputWrapperOrder:p,label:m,error:h,success:g,description:_,labelProps:v,descriptionProps:y,errorProps:b,successProps:x,labelElement:S,children:C,withAsterisk:w,id:T,required:E,__stylesApiProps:D,mod:O,attributes:k,...A}=t,j=X({name:[`InputWrapper`,d],props:D||t,classes:jd,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:k,vars:c,varsResolver:Wd}),M={size:l,variant:u,__staticSelector:d},N=Ce(T),P=typeof w==`boolean`?w:E,F=b?.id||`${N}-error`,I=x?.id||`${N}-success`,L=y?.id||`${N}-description`,R=N,z=!!h&&typeof h!=`boolean`,B=!!g&&typeof g!=`boolean`&&!h,V=!!_,H=z&&p.includes(`error`),ee=B&&p.includes(`error`),U=V&&p.includes(`description`),te=`${H?F:``} ${ee?I:``} ${U?L:``}`,ne=te.trim().length>0?te.trim():void 0,re=v?.id||`${N}-label`,ie=m&&(0,J.jsx)(Rd,{labelElement:S,id:re,htmlFor:R,required:P,...M,...v,children:m},`label`),W=V&&(0,J.jsx)(Nd,{...y,...M,size:y?.size||M.size,id:y?.id||L,children:_},`description`),ae=(0,J.jsx)(o.Fragment,{children:f(C)},`input`),G=z&&(0,o.createElement)(Fd,{...b,...M,size:b?.size||M.size,key:`error`,id:b?.id||F},h),K=B&&(0,o.createElement)(Vd,{...x,...M,size:x?.size||M.size,key:`success`,id:x?.id||I},g),oe=p.map(e=>{switch(e){case`label`:return ie;case`input`:return ae;case`description`:return W;case`error`:return G||K;default:return null}});return(0,J.jsx)(Ad,{value:{getStyles:j,describedBy:ne,inputId:R,labelId:re,...Hd(p,{hasDescription:V,hasError:z||B})},children:(0,J.jsx)(Q,{variant:u,size:l,mod:[{error:!!h,success:!!g&&!h},O],id:S===`label`?void 0:T,...j(`root`),...A,children:oe})})});Gd.classes=jd,Gd.varsResolver=Wd,Gd.displayName=`@mantine/core/InputWrapper`;var Kd={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},qd=q((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":M(t.size,`input-height`),"--input-fz":F(t.size),"--input-radius":t.radius===void 0?void 0:P(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:g(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:g(t.rightSectionWidth),"--input-padding-y":t.multiline?M(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),Jd=ti(e=>{let t=Y(`Input`,Kd,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,required:c,__staticSelector:l,__stylesApiProps:u,size:d,wrapperProps:f,error:p,success:m,disabled:h,leftSection:g,leftSectionProps:_,leftSectionWidth:v,rightSection:y,rightSectionProps:b,rightSectionWidth:x,rightSectionPointerEvents:S,leftSectionPointerEvents:C,variant:w,vars:T,pointer:E,multiline:D,radius:O,id:k,withAria:A,withErrorStyles:j,withSuccessStyles:M,mod:N,inputSize:P,attributes:F,__clearSection:I,__clearable:L,__clearSectionMode:R,__defaultRightSection:z,loading:B,loadingPosition:V,__bottomSection:H,__bottomSectionProps:ee,rootRef:U,dir:te,...ne}=t,{styleProps:re,rest:ie}=Er(ne),W=(0,o.use)(Ad),ae={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},G=X({name:[`Input`,l],props:u||t,classes:jd,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:F,stylesCtx:ae,rootSelector:`wrapper`,vars:T,varsResolver:qd}),K=A?{required:c,disabled:h,"aria-invalid":p?!0:void 0,"aria-describedby":W?.describedBy,id:W?.inputId||k}:{},oe=B?(0,J.jsx)(Fl,{size:V===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,se=B&&V===`left`?oe:g,ce=kd({__clearable:L,__clearSection:I,rightSection:B&&V===`right`?oe:y,__defaultRightSection:z,size:d,__clearSectionMode:R});return(0,J.jsx)(Ed,{value:{size:d||`sm`},children:(0,J.jsxs)(Q,{ref:U,dir:te,...G(`wrapper`),...re,...f,mod:[{error:!!p&&j,success:!!m&&!p&&M,pointer:E,disabled:h,multiline:D,"data-with-right-section":!!ce,"data-with-left-section":!!se,"data-with-bottom-section":!!H},N],variant:w,size:d,children:[se&&(0,J.jsx)(`div`,{..._,"data-position":`left`,...G(`section`,{className:_?.className,style:_?.style}),children:se}),(0,J.jsx)(Q,{component:`input`,...ie,...K,required:c,mod:{disabled:h,error:!!p&&j,success:!!m&&!p&&M},variant:w,__size:P,...G(`input`)}),H&&(0,J.jsx)(`div`,{...ee,...G(`bottomSection`,{className:ee?.className,style:ee?.style}),children:H}),ce&&(0,J.jsx)(`div`,{...b,"data-position":`right`,...G(`section`,{className:b?.className,style:b?.style}),children:ce})]})})});Jd.classes=jd,Jd.varsResolver=qd,Jd.Wrapper=Gd,Jd.Label=Rd,Jd.Error=Fd,Jd.Success=Vd,Jd.Description=Nd,Jd.Placeholder=zd,Jd.ClearButton=Dd,Jd.displayName=`@mantine/core/Input`;function Yd(e,t,n){let r=Y([`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}=Er(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 Xd={__staticSelector:`InputBase`,withAria:!0,size:`sm`},Zd=ti(e=>{let{inputProps:t,wrapperProps:n,...r}=Yd(`InputBase`,Xd,e);return(0,J.jsx)(Jd.Wrapper,{...n,children:(0,J.jsx)(Jd,{...t,...r})})});Zd.classes={...Jd.classes,...Jd.Wrapper.classes},Zd.displayName=`@mantine/core/InputBase`;var Qd={gap:{type:`spacing`,property:`gap`},rowGap:{type:`spacing`,property:`rowGap`},columnGap:{type:`spacing`,property:`columnGap`},align:{type:`identity`,property:`alignItems`},justify:{type:`identity`,property:`justifyContent`},wrap:{type:`identity`,property:`flexWrap`},direction:{type:`identity`,property:`flexDirection`}},$d={root:`m_8bffd616`},ef=ti(e=>{let t=Y(`Flex`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m,attributes:h,...g}=t,_=X({name:`Flex`,classes:$d,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),y=Bn(),b=Yr(),x=Jr({styleProps:{gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m},theme:y,data:Qd}),S=wn(),C=S&&x.hasResponsiveStyles?Tr(x.styles,x.media):b;return(0,J.jsxs)(J.Fragment,{children:[x.hasResponsiveStyles&&(0,J.jsx)(Cr,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),(0,J.jsx)(Q,{..._(`root`,{className:C,style:v(x.inlineStyles)}),...g})]})});ef.classes=$d,ef.displayName=`@mantine/core/Flex`;function tf(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function nf({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let s=(0,o.useRef)(-1),c=(0,o.useRef)(e),[l,u]=(0,o.useState)(!1),[d,f]=(0,o.useState)(typeof r==`boolean`?r:!1),p=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=window.getComputedStyle(e),o=window.getComputedStyle(t),s=Di(a.borderTopWidth)+Di(o.borderTopWidth),c=Di(a.borderLeftWidth)+Di(o.borderLeftWidth),l={top:r.top-i.top-s,left:r.left-i.left-c,width:r.width,height:r.height};n.current.style.transform=`translateY(${l.top}px) translateX(${l.left}px)`,n.current.style.width=`${l.width}px`,n.current.style.height=`${l.height}px`},m=()=>{window.clearTimeout(s.current),n.current&&(n.current.style.transitionDuration=`0ms`),p(),s.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},h=(0,o.useRef)(null),g=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(l&&c.current!==e&&i&&i(),c.current=e,p(),e)return h.current=new ResizeObserver(m),h.current.observe(e),t&&(g.current=new ResizeObserver(m),g.current.observe(t)),()=>{h.current?.disconnect(),g.current?.disconnect()}},[t,e]),(0,o.useEffect)(()=>{if(t){let e=e=>{tf(e.target,t)&&(m(),f(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,o.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),rt(()=>{Ot()!==`test`&&u(!0)},20,{autoInvoke:!0}),at(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&m()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:l,hidden:d}}var rf={root:`m_96b553a6`},af=q((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),of=Z(e=>{let t=Y(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,target:l,parent:u,transitionDuration:d,mod:f,displayAfterTransitionEnd:p,onTransitionStart:m,onTransitionEnd:h,attributes:g,ref:_,...v}=t,y=X({name:`FloatingIndicator`,classes:rf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:g,vars:c,varsResolver:af,stylesCtx:{shouldReduceMotion:Ve()}}),b=(0,o.useRef)(null),{initialized:x,hidden:S}=nf({target:l,parent:u,ref:b,displayAfterTransitionEnd:p,onTransitionStart:m,onTransitionEnd:h}),C=Pe(_,b);return!l||!u?null:(0,J.jsx)(Q,{ref:C,mod:[{initialized:x,hidden:S},f],...y(`root`),...v})});of.displayName=`@mantine/core/FloatingIndicator`,of.classes=rf,of.varsResolver=af;var[sf,cf]=x(`Accordion component was not found in the tree`);function lf({style:e,size:t=16,...n}){return(0,J.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:g(t),height:g(t),display:`block`},...n,children:(0,J.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`})})}lf.displayName=`@mantine/core/AccordionChevron`;var[uf,df]=x(`Accordion.Item component was not found in the tree`),ff={root:`m_9bdbb667`,panel:`m_df78851f`,content:`m_4ba554d4`,itemTitle:`m_8fa820a0`,control:`m_4ba585b8`,"control--default":`m_6939a5e9`,"control--contained":`m_4271d21b`,label:`m_df3ffa0f`,chevron:`m_3f35ae96`,icon:`m_9bd771fe`,item:`m_9bd7b098`,"item--default":`m_fe19b709`,"item--contained":`m_1f921b3b`,"item--filled":`m_2cdf939a`,"item--separated":`m_9f59b069`},pf=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,chevron:o,icon:s,onClick:c,onKeyDown:l,children:u,disabled:d,mod:f,...p}=Y(`AccordionControl`,null,e),{value:m}=df(),h=cf(),g=h.isItemActive(m),_=typeof h.order==`number`,v=`h${h.order}`,y=(0,J.jsxs)(Pc,{...h.getStyles(`control`,{className:n,classNames:t,style:r,styles:i,variant:h.variant}),unstyled:h.unstyled,mod:[`accordion-control`,{active:g,"chevron-position":h.chevronPosition,disabled:d},f],onClick:e=>{c?.(e),h.onChange(m)},type:`button`,disabled:d,"aria-expanded":g,"aria-controls":h.getRegionId(m),id:h.getControlId(m),onKeyDown:D({siblingSelector:`[data-accordion-control]`,parentSelector:`[data-accordion]`,activateOnFocus:!1,loop:h.loop,orientation:`vertical`,onKeyDown:l}),...p,children:[(0,J.jsx)(Q,{component:`span`,mod:{rotate:!h.disableChevronRotation&&g,position:h.chevronPosition},...h.getStyles(`chevron`,{classNames:t,styles:i}),children:o||h.chevron}),(0,J.jsx)(`span`,{...h.getStyles(`label`,{classNames:t,styles:i}),children:u}),s&&(0,J.jsx)(Q,{component:`span`,mod:{"chevron-position":h.chevronPosition},...h.getStyles(`icon`,{classNames:t,styles:i}),children:s})]});return _?(0,J.jsx)(v,{...h.getStyles(`itemTitle`,{classNames:t,styles:i}),children:y}):y});pf.displayName=`@mantine/core/AccordionControl`,pf.classes=ff;var mf=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,mod:s,...c}=Y(`AccordionItem`,null,e),l=cf();return(0,J.jsx)(uf,{value:{value:o},children:(0,J.jsx)(Q,{mod:[{active:l.isItemActive(o)},s],...l.getStyles(`item`,{className:n,classNames:t,styles:i,style:r,variant:l.variant}),...c})})});mf.displayName=`@mantine/core/AccordionItem`,mf.classes=ff;var hf=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,keepMounted:s,...c}=Y(`AccordionPanel`,null,e),{value:l}=df(),u=cf();return(0,J.jsx)(fi,{...u.getStyles(`panel`,{className:n,classNames:t,style:r,styles:i}),expanded:u.isItemActive(l),transitionDuration:u.transitionDuration??200,role:`region`,id:u.getRegionId(l),"aria-labelledby":u.getControlId(l),keepMounted:s??u.keepMounted,...c,children:(0,J.jsx)(`div`,{...u.getStyles(`content`,{classNames:t,styles:i}),children:o})})});hf.displayName=`@mantine/core/AccordionPanel`,hf.classes=ff;var gf={multiple:!1,loop:!0,disableChevronRotation:!1,chevronPosition:`right`,variant:`default`,chevronSize:`auto`,chevronIconSize:16},_f=q((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":t===void 0?void 0:`${t}ms`,"--accordion-chevron-size":n===void 0?void 0:g(n),"--accordion-radius":r===void 0?void 0:P(r)}})),vf=ei(e=>{let t=Y(`Accordion`,gf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,multiple:l,value:u,defaultValue:d,onChange:f,id:p,loop:m,transitionDuration:h,disableChevronRotation:g,chevronPosition:_,chevronSize:v,order:y,chevron:b,variant:x,radius:C,chevronIconSize:w,attributes:T,keepMounted:E,...D}=t,O=Ce(p),[k,A]=Le({value:u,defaultValue:d,finalValue:l?[]:null,onChange:f}),j=e=>Array.isArray(k)?k.includes(e):e===k,M=e=>{A(Array.isArray(k)?k.includes(e)?k.filter(t=>t!==e):[...k,e]:e===k?null:e)},N=X({name:`Accordion`,classes:ff,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:_f});return(0,J.jsx)(sf,{value:{isItemActive:j,onChange:M,getControlId:S(`${O}-control`,`Accordion.Item component was rendered with invalid value or without value`),getRegionId:S(`${O}-panel`,`Accordion.Item component was rendered with invalid value or without value`),chevron:b===null?null:b||(0,J.jsx)(lf,{size:w}),transitionDuration:h,disableChevronRotation:g,chevronPosition:_,order:y,loop:m,getStyles:N,variant:x,unstyled:o,keepMounted:E},children:(0,J.jsx)(Q,{...N(`root`),id:O,...D,variant:x,"data-accordion":!0,children:c})})});vf.classes=ff,vf.varsResolver=_f,vf.displayName=`@mantine/core/Accordion`,vf.Item=mf,vf.Panel=hf,vf.Control=pf,vf.Chevron=lf;var yf={root:`m_7f854edf`},bf={position:{bottom:0,right:0},zIndex:k(`modal`),withinPortal:!0},xf=q((e,{zIndex:t,position:n})=>({root:{"--affix-z-index":t?.toString(),"--affix-top":N(n?.top),"--affix-left":N(n?.left),"--affix-bottom":N(n?.bottom),"--affix-right":N(n?.right)}})),Sf=Z(e=>{let t=Y(`Affix`,bf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,portalProps:c,zIndex:l,withinPortal:u,position:d,attributes:f,...p}=t,m=X({name:`Affix`,classes:yf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:xf});return(0,J.jsx)(rl,{...c,withinPortal:u,children:(0,J.jsx)(Q,{...m(`root`),...p})})});Sf.classes=yf,Sf.varsResolver=xf,Sf.displayName=`@mantine/core/Affix`;var Cf={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},wf=q((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:P(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Tf=Z(e=>{let t=Y(`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=X({name:`Alert`,classes:Cf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:wf}),C=Ce(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,J.jsx)(Q,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,J.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,J.jsx)(`div`,{...S(`icon`),children:p}),(0,J.jsxs)(`div`,{...S(`body`),children:[u&&(0,J.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,J.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,J.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,J.jsx)(Jl,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Tf.classes=Cf,Tf.varsResolver=wf,Tf.displayName=`@mantine/core/Alert`;var Ef={root:`m_b6d8b162`};function Df(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Of={inherit:!1},kf=q((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":F(i),"--text-lh":I(i),"--text-gradient":t===`gradient`?an(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Af=ti(e=>{let t=Y(`Text`,Of,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;return(0,J.jsx)(Q,{...X({name:[`Text`,l],props:t,classes:Ef,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:kf})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{"data-truncate":Df(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},_],size:v,...b})});Af.classes=Ef,Af.varsResolver=kf,Af.displayName=`@mantine/core/Text`;var jf={root:`m_849cf0da`},Mf={underline:`hover`},Nf=ti(e=>{let{underline:t,className:n,unstyled:r,mod:i,...a}=Y(`Anchor`,Mf,e);return(0,J.jsx)(Af,{component:`a`,className:Lt({[jf.root]:!r},n),...a,mod:[{underline:t},i],__staticSelector:`Anchor`,unstyled:r})});Nf.classes=jf,Nf.displayName=`@mantine/core/Anchor`;var[Pf,Ff]=x(`AppShell was not found in tree`),If={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`},Lf=Z(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=Y(`AppShellAside`,null,e),d=Ff();return d.disabled?null:(0,J.jsx)(Q,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`aside`,{className:Lt({[fd.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`}})});Lf.classes=If,Lf.displayName=`@mantine/core/AppShellAside`;var Rf=Z(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=Y(`AppShellFooter`,null,e),d=Ff();return d.disabled?null:(0,J.jsx)(Q,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`footer`,{className:Lt({[fd.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()}})});Rf.classes=If,Rf.displayName=`@mantine/core/AppShellFooter`;var zf=Z(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=Y(`AppShellHeader`,null,e),d=Ff();return d.disabled?null:(0,J.jsx)(Q,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`header`,{className:Lt({[fd.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()}})});zf.classes=If,zf.displayName=`@mantine/core/AppShellHeader`;var Bf=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`AppShellMain`,null,e);return(0,J.jsx)(Q,{component:`main`,...Ff().getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});Bf.classes=If,Bf.displayName=`@mantine/core/AppShellMain`;var Vf=Z(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=Y(`AppShellNavbar`,null,e),d=Ff();return d.disabled?null:(0,J.jsx)(Q,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`navbar`,{className:n,classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`}})});Vf.classes=If,Vf.displayName=`@mantine/core/AppShellNavbar`;var Hf=ti(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=Y(`AppShellSection`,null,e),l=Ff();return(0,J.jsx)(Q,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});Hf.classes=If,Hf.displayName=`@mantine/core/AppShellSection`;function Uf(e){return typeof e==`object`?e.base:e}function Wf(e){let t=typeof e==`object`&&!!e&&e.base!==void 0&&Object.keys(e).length===1;return typeof e==`number`||typeof e==`string`||t}function Gf(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function Kf({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i,mode:a}){let o=r?.width,s=`translateX(var(--app-shell-aside-width))`,l=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(r?.breakpoint&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},a===`fixed`?(n[r?.breakpoint][`--app-shell-aside-width`]=`100%`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[r?.breakpoint][`--app-shell-aside-width`]=`0px`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`)),Wf(o)){let t=g(Uf(o));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}if(Gf(o)&&(o.base!==void 0&&(e[`--app-shell-aside-width`]=g(o.base),e[`--app-shell-aside-offset`]=g(o.base)),c(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=g(o[e]),t[e][`--app-shell-aside-offset`]=g(o[e]))})),r?.breakpoint&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-aside-position`]=`sticky`,t[r.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[r.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[r.breakpoint][`--app-shell-main-column-end`]=`3`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=s,t[e][`--app-shell-aside-transform-rtl`]=l,a===`fixed`?t[e][`--app-shell-aside-offset`]=`0px !important`:(t[e][`--app-shell-aside-width`]=`0px`,t[e][`--app-shell-aside-display`]=`none`,t[e][`--app-shell-main-column-end`]=`-1`),t[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`}if(r?.collapsed?.mobile){let e=z(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},a===`fixed`?(n[e][`--app-shell-aside-width`]=`100%`,n[e][`--app-shell-aside-offset`]=`0px`):n[e][`--app-shell-aside-width`]=`0px`,n[e][`--app-shell-aside-transform`]=s,n[e][`--app-shell-aside-transform-rtl`]=l,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`}}function qf({baseStyles:e,minMediaStyles:t,footer:n,mode:r}){let i=n?.height,a=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),Wf(i)){let t=g(Uf(i));e[`--app-shell-footer-height`]=t,a&&(e[`--app-shell-footer-offset`]=t)}Gf(i)&&(i.base!==void 0&&(e[`--app-shell-footer-height`]=g(i.base),a&&(e[`--app-shell-footer-offset`]=g(i.base))),c(i).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=g(i[e]),a&&(t[e][`--app-shell-footer-offset`]=g(i[e])))})),n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,r===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`))}function Jf({baseStyles:e,minMediaStyles:t,header:n,mode:r}){let i=n?.height,a=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),Wf(i)){let t=g(Uf(i));e[`--app-shell-header-height`]=t,a&&(e[`--app-shell-header-offset`]=t)}Gf(i)&&(i.base!==void 0&&(e[`--app-shell-header-height`]=g(i.base),a&&(e[`--app-shell-header-offset`]=g(i.base))),c(i).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=g(i[e]),a&&(t[e][`--app-shell-header-offset`]=g(i[e])))})),n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,r===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`))}function Yf({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i,mode:a}){let o=r?.width,s=`translateX(calc(var(--app-shell-navbar-width) * -1))`,l=`translateX(var(--app-shell-navbar-width))`;if(r?.breakpoint&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},n[r?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[r?.breakpoint][`--app-shell-navbar-width`]=`100%`,a===`static`&&(n[r?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`)),Wf(o)){let t=g(Uf(o));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}if(Gf(o)&&(o.base!==void 0&&(e[`--app-shell-navbar-width`]=g(o.base),e[`--app-shell-navbar-offset`]=g(o.base),a===`static`&&(e[`--app-shell-navbar-grid-width`]=g(o.base))),c(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=g(o[e]),t[e][`--app-shell-navbar-offset`]=g(o[e]),a===`static`&&(t[e][`--app-shell-navbar-grid-width`]=g(o[e])))})),r?.breakpoint&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[r.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[r.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[r.breakpoint][`--app-shell-main-column-start`]=`2`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=s,t[e][`--app-shell-navbar-transform-rtl`]=l,a===`fixed`?t[e][`--app-shell-navbar-offset`]=`0px !important`:(t[e][`--app-shell-navbar-width`]=`0px`,t[e][`--app-shell-navbar-display`]=`none`,t[e][`--app-shell-main-column-start`]=`1`)}if(r?.collapsed?.mobile){let e=z(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,a===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=s,n[e][`--app-shell-navbar-transform-rtl`]=l}}function Xf(e){return Number(e)===0?`0px`:N(e)}function Zf({padding:e,baseStyles:t,minMediaStyles:n}){Wf(e)&&(t[`--app-shell-padding`]=Xf(Uf(e))),Gf(e)&&(e.base&&(t[`--app-shell-padding`]=Xf(e.base)),c(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=Xf(e[t]))}))}function Qf({navbar:e,header:t,footer:n,aside:r,padding:i,theme:a,mode:o}){let s={},l={},u={};o===`static`&&(u[`--app-shell-main-grid-column`]=`1 / -1`,u[`--app-shell-main-grid-row`]=`2`),Yf({baseStyles:u,minMediaStyles:s,maxMediaStyles:l,navbar:e,theme:a,mode:o}),Kf({baseStyles:u,minMediaStyles:s,maxMediaStyles:l,aside:r,theme:a,mode:o}),Jf({baseStyles:u,minMediaStyles:s,header:t,mode:o}),qf({baseStyles:u,minMediaStyles:s,footer:n,mode:o}),Zf({baseStyles:u,minMediaStyles:s,padding:i});let d=B(c(s),a.breakpoints).map(e=>({query:`(min-width: ${_(e.px)})`,styles:s[e.value]})),f=B(c(l),a.breakpoints).map(e=>({query:`(max-width: ${_(e.px)})`,styles:l[e.value]}));return{baseStyles:u,media:[...d,...f]}}function $f({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o}){let s=Bn(),c=hn(),{media:l,baseStyles:u}=Qf({navbar:e,header:t,footer:r,aside:n,padding:i,theme:s,mode:a});return(0,J.jsx)(Cr,{media:l,styles:u,selector:o||c.cssVariablesSelector})}function ep({transitionDuration:e,disabled:t}){let[n,r]=(0,o.useState)(!0),i=(0,o.useRef)(-1),a=(0,o.useRef)(-1);return Te(`resize`,()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>(0,o.startTransition)(()=>{r(!1)}),200)}),ce(()=>{r(!0),clearTimeout(a.current),a.current=window.setTimeout(()=>(0,o.startTransition)(()=>{r(!1)}),e||0)},[t,e]),n}var tp={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:k(`app`),mode:`fixed`},np=q((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),rp=Z(e=>{let t=Y(`AppShell`,tp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,navbar:c,withBorder:l,padding:u,transitionDuration:d,transitionTimingFunction:f,header:p,zIndex:m,layout:h,disabled:g,aside:_,footer:v,offsetScrollbars:y=!0,mode:b,mod:x,attributes:S,id:C,...w}=t,T=X({name:`AppShell`,classes:If,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:np}),E=ep({disabled:g,transitionDuration:d}),D=Ce(C);return(0,J.jsxs)(Pf,{value:{getStyles:T,withBorder:l,zIndex:m,disabled:g,offsetScrollbars:y,mode:b},children:[(0,J.jsx)($f,{navbar:c,header:p,aside:_,footer:v,padding:u,mode:b,selector:b===`static`?`#${D}`:void 0}),(0,J.jsx)(Q,{...T(`root`),id:D,mod:[{resizing:E,layout:h,disabled:g,mode:b},x],...w})]})});rp.classes=If,rp.varsResolver=np,rp.displayName=`@mantine/core/AppShell`,rp.Navbar=Vf,rp.Header=zf,rp.Main=Bf,rp.Aside=Lf,rp.Footer=Rf,rp.Section=Hf;function ip(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=>ip(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function ap(e){return e?e.map(e=>ip(e)):[]}function op(e){return e.reduce((e,t)=>`group`in t?{...e,...op(t.items)}:(e[`${t.value}`]=t,e),{})}var sp={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`},cp={error:null},lp=q((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":M(t,`combobox-chevron-size`),"--combobox-chevron-color":n?tn(n,e):void 0}})),up=Z(e=>{let t=Y(`ComboboxChevron`,cp,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=X({name:`ComboboxChevron`,classes:sp,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:lp,attributes:u,rootSelector:`chevron`});return(0,J.jsx)(Q,{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,J.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`})})});up.classes=sp,up.varsResolver=lp,up.displayName=`@mantine/core/ComboboxChevron`;var[dp,fp]=x(`Combobox component was not found in tree`);function pp({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,J.jsx)(Jd.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}pp.displayName=`@mantine/core/ComboboxClearButton`;var mp=Z(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=Y(`ComboboxDropdown`,null,e),s=fp();return(0,J.jsx)(Dl.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})})});mp.classes=sp,mp.displayName=`@mantine/core/ComboboxDropdown`;var hp={refProp:`ref`},gp=Z(e=>{let{children:t,refProp:n,ref:r}=Y(`ComboboxDropdownTarget`,hp,e);if(fp(),!b(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,J.jsx)(Dl.Target,{ref:r,refProp:n,children:t})});gp.displayName=`@mantine/core/ComboboxDropdownTarget`;var _p=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ComboboxEmpty`,null,e);return(0,J.jsx)(Q,{...fp().getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});_p.classes=sp,_p.displayName=`@mantine/core/ComboboxEmpty`;function vp({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:s}){let c=fp(),[l,u]=(0,o.useState)(null),d=t=>{if(e?.(t),!c.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),c.store.dropdownOpened?u(c.store.selectNextOption()):(c.store.openDropdown(`keyboard`),u(c.store.selectActiveOption()),c.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),c.store.dropdownOpened?u(c.store.selectPreviousOption()):(c.store.openDropdown(`keyboard`),u(c.store.selectActiveOption()),c.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=c.store.getSelectedOptionIndex();c.store.dropdownOpened&&e!==-1?(t.preventDefault(),c.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),c.store.openDropdown(`keyboard`))}t.key===`Escape`&&c.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),c.store.toggleDropdown(`keyboard`))}},f=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(c.store.listId&&c.store.dropdownOpened):void 0,"aria-controls":c.store.dropdownOpened&&c.store.listId?c.store.listId:void 0,"aria-activedescendant":c.store.dropdownOpened&&l||void 0,autoComplete:s,"data-expanded":c.store.dropdownOpened||void 0,"data-mantine-stop-propagation":c.store.dropdownOpened||void 0}:{},p=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...f,onKeyDown:d,onClick:p}}var yp={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},bp=Z(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:s,autoComplete:c,ref:l,...u}=Y(`ComboboxEventsTarget`,yp,e),d=Ft(t);if(!d)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 f=fp();return(0,o.cloneElement)(d,{...vp({targetType:s,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:d.props.onKeyDown,onClick:d.props.onClick,autoComplete:c}),...u,[n]:Pe(l,f.store.targetRef,At(d))})});bp.displayName=`@mantine/core/ComboboxEventsTarget`;var xp=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ComboboxFooter`,null,e);return(0,J.jsx)(Q,{...fp().getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});xp.classes=sp,xp.displayName=`@mantine/core/ComboboxFooter`;var Sp=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=Y(`ComboboxGroup`,null,e),u=fp(),d=Ce(c),f=s!=null&&s!==!1&&s!==``;return(0,J.jsxs)(Q,{role:`group`,"aria-labelledby":f?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[f&&(0,J.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});Sp.classes=sp,Sp.displayName=`@mantine/core/ComboboxGroup`;var Cp=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ComboboxHeader`,null,e);return(0,J.jsx)(Q,{...fp().getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Cp.classes=sp,Cp.displayName=`@mantine/core/ComboboxHeader`;function wp({value:e,valuesDivider:t=`,`,...n}){return(0,J.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}wp.displayName=`@mantine/core/ComboboxHiddenInput`;var Tp=Z(e=>{let t=Y(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:s,onClick:c,id:l,active:u,onMouseDown:d,onMouseOver:f,disabled:p,selected:m,mod:h,...g}=t,_=fp(),v=(0,o.useId)(),y=l||v;return(0,J.jsx)(Q,{..._.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...g,id:y,mod:[`combobox-option`,{"combobox-active":u,"combobox-disabled":p,"combobox-selected":m},h],role:`option`,onClick:e=>{p?e.preventDefault():(_.onOptionSubmit?.(t.value,t),c?.(e))},onMouseDown:e=>{e.preventDefault(),d?.(e)},onMouseOver:e=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),f?.(e)}})});Tp.classes=sp,Tp.displayName=`@mantine/core/ComboboxOption`;var Ep=Z(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:s,labelledBy:c,...l}=Y(`ComboboxOptions`,null,e),u=fp(),d=Ce(a);return(0,o.useEffect)(()=>{u.store.setListId(d)},[d]),(0,J.jsx)(Q,{...u.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...l,id:d,role:`listbox`,"aria-labelledby":c,onMouseDown:e=>{e.preventDefault(),s?.(e)}})});Ep.classes=sp,Ep.displayName=`@mantine/core/ComboboxOptions`;var Dp={withAriaAttributes:!0,withKeyboardNavigation:!0},Op=Z(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=Y(`ComboboxSearch`,Dp,e),f=fp(),p=f.getStyles(`search`),m=vp({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,J.jsx)(Jd,{ref:Pe(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});Op.classes=sp,Op.displayName=`@mantine/core/ComboboxSearch`;var kp={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Ap=Z(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:s,autoComplete:c,ref:l,...u}=Y(`ComboboxTarget`,kp,e),d=Ft(t);if(!d)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 f=fp(),p=(0,o.cloneElement)(d,{...vp({targetType:s,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:d.props.onKeyDown,onClick:d.props.onClick,autoComplete:c}),...u});return(0,J.jsx)(Dl.Target,{refProp:n,ref:Pe(l,f.store.targetRef),children:p})});Ap.displayName=`@mantine/core/ComboboxTarget`;function jp(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 Mp(e,t,n){for(let n=e+1;n{c||(l(!0),i?.(e))},[l,i,c]),v=(0,o.useCallback)((e=`unknown`)=>{c&&(l(!1),r?.(e))},[l,r,c]),y=(0,o.useCallback)((e=`unknown`)=>{c?v(e):_(e)},[v,_,c]),b=(0,o.useCallback)(()=>{let e=Pt(p.current),t=Mt(`#${u.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),x=(0,o.useCallback)(e=>{let t=Pt(p.current),n=Mt(`#${u.current}`,t),r=n?Nt(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return d.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(b(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:s}),r[i].id):null},[s,b]),S=(0,o.useCallback)(()=>{let e=Pt(p.current),t=Mt(`#${u.current} [data-combobox-active]`,e);return x(t?Nt(`#${u.current} [data-combobox-option]`,e).findIndex(e=>e===t):0)},[x]),C=(0,o.useCallback)(()=>{let e=Pt(p.current),t=Nt(`#${u.current} [data-combobox-option]`,e);return x(Mp(d.current,t,a))},[x,a]),w=(0,o.useCallback)(()=>{let e=Pt(p.current),t=Nt(`#${u.current} [data-combobox-option]`,e);return x(jp(d.current,t,a))},[x,a]),T=(0,o.useCallback)(()=>{let e=Pt(p.current);return x(Np(Nt(`#${u.current} [data-combobox-option]`,e)))},[x]),E=(0,o.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){d.current=e;let n=Pt(p.current),r=Nt(`#${u.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:s});return}g.current=window.setTimeout(()=>{let n=Pt(p.current),r=Nt(`#${u.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));d.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:s})},0)},[]),D=(0,o.useCallback)(()=>{d.current=-1,b()},[b]),O=(0,o.useCallback)(()=>{let e=Pt(p.current);(Nt(`#${u.current} [data-combobox-option]`,e)?.[d.current])?.click()},[]),k=(0,o.useCallback)(e=>{u.current=e},[]),A=(0,o.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),j=(0,o.useCallback)(()=>{h.current=window.setTimeout(()=>p.current?.focus(),0)},[]),M=(0,o.useCallback)(()=>d.current,[]);return(0,o.useEffect)(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(h.current),window.clearTimeout(g.current)},[]),{dropdownOpened:c,openDropdown:_,closeDropdown:v,toggleDropdown:y,selectedOptionIndex:d.current,getSelectedOptionIndex:M,selectOption:x,selectFirstOption:T,selectActiveOption:S,selectNextOption:C,selectPreviousOption:w,resetSelectedOption:D,updateSelectedOptionIndex:E,listId:u.current,setListId:k,clickSelectedOption:O,searchRef:f,focusSearchInput:A,targetRef:p,focusTarget:j}}var Fp={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},Ip=q((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":F(t),"--combobox-option-padding":M(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:g(n),"--combobox-option-fz":F(t),"--combobox-option-padding":M(t,`combobox-option-padding`)}})),Lp=e=>{let t=Y(`Combobox`,Fp,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=Pp(),x=o||b,S=X({name:p||`Combobox`,classes:sp,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:Ip}),C=()=>{l?.(),x.closeDropdown()};return(0,J.jsx)(dp,{value:{getStyles:S,store:x,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m,floatingHeight:g},children:(0,J.jsx)(Dl,{opened:x.dropdownOpened,...v,middlewares:y,onChange:e=>!e&&C(),withRoles:!1,unstyled:i,children:a})})};Lp.extend=e=>e,Lp.classes=sp,Lp.varsResolver=Ip,Lp.displayName=`@mantine/core/Combobox`,Lp.Target=Ap,Lp.Dropdown=mp,Lp.Options=Ep,Lp.Option=Tp,Lp.Search=Op,Lp.Empty=_p,Lp.Chevron=up,Lp.Footer=xp,Lp.Header=Cp,Lp.EventsTarget=bp,Lp.DropdownTarget=gp,Lp.Group=Sp,Lp.ClearButton=pp,Lp.HiddenInput=wp;function Rp({children:e,role:t}){let n=(0,o.use)(Ad);return n?(0,J.jsx)(`div`,{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):(0,J.jsx)(J.Fragment,{children:e})}var zp=(0,o.createContext)(null),Bp={hiddenInputValuesSeparator:`,`},Vp=ei((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=Y(`CheckboxGroup`,Bp,e),[m,h]=Le({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=typeof e==`string`?e:e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,J.jsx)(zp,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,J.jsxs)(Jd.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`CheckboxGroup`,children:[(0,J.jsx)(Rp,{role:`group`,children:o}),(0,J.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));Vp.classes=Jd.Wrapper.classes,Vp.displayName=`@mantine/core/CheckboxGroup`;var Hp={card:`m_26775b0a`},Up=(0,o.createContext)(null),Wp={withBorder:!0},Gp=q((e,{radius:t})=>({card:{"--card-radius":P(t)}})),Kp=Z(e=>{let t=Y(`CheckboxCard`,Wp,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,checked:l,mod:u,withBorder:d,value:f,onClick:p,defaultChecked:m,onChange:h,attributes:g,..._}=t,v=X({name:`CheckboxCard`,classes:Hp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:g,vars:c,varsResolver:Gp,rootSelector:`card`}),y=(0,o.use)(zp),[b,x]=Le({value:typeof l==`boolean`?l:y?y.value.includes(f||``):void 0,defaultValue:m,finalValue:!1,onChange:h});return(0,J.jsx)(Up,{value:{checked:b},children:(0,J.jsx)(Pc,{mod:[{"with-border":d,checked:b},u],...v(`card`),..._,role:`checkbox`,"aria-checked":b,onClick:e=>{p?.(e),y?.onChange(f||``),x(!b)}})})});Kp.displayName=`@mantine/core/CheckboxCard`,Kp.classes=Hp,Kp.varsResolver=Gp;function qp({size:e,style:t,...n}){return(0,J.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:e===void 0?t:{width:g(e),height:g(e),...t},"aria-hidden":!0,...n,children:(0,J.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 Jp({indeterminate:e,...t}){return e?(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 32 6`,"aria-hidden":!0,...t,children:(0,J.jsx)(`rect`,{width:`32`,height:`6`,fill:`currentColor`,rx:`3`})}):(0,J.jsx)(qp,{...t})}var Yp={indicator:`m_5e5256ee`,icon:`m_1b1c543a`,"indicator--outline":`m_76e20374`},Xp={icon:Jp,variant:`filled`,radius:`sm`},Zp=q((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=en({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":M(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:P(t),"--checkbox-color":a===`outline`?c:tn(n,e),"--checkbox-icon-color":i?tn(i,e):pn(o,e)?un({color:n,theme:e,autoContrast:o}):void 0}}}),Qp=Z(e=>{let t=Y(`CheckboxIndicator`,Xp,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,icon:l,indeterminate:u,radius:d,color:f,iconColor:p,autoContrast:m,checked:h,mod:g,variant:_,disabled:v,attributes:y,...b}=t,x=X({name:`CheckboxIndicator`,classes:Yp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:y,vars:c,varsResolver:Zp,rootSelector:`indicator`}),S=(0,o.use)(Up),C=typeof h==`boolean`||typeof u==`boolean`?h||u:S?.checked||!1;return(0,J.jsx)(Q,{...x(`indicator`,{variant:_}),variant:_,mod:[{checked:C,disabled:v},g],...b,children:(0,J.jsx)(l,{indeterminate:u,...x(`icon`)})})});Qp.displayName=`@mantine/core/CheckboxIndicator`,Qp.classes=Yp,Qp.varsResolver=Zp;var $p={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,description:`m_328f68c0`,error:`m_8e8a99cc`},em=$p;function tm({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:a,children:o,label:s,description:c,id:l,disabled:u,error:d,size:f,labelPosition:p=`left`,bodyElement:m=`div`,labelElement:h=`label`,variant:g,style:_,vars:v,mod:y,attributes:b,...x}){let S=X({name:e,props:t,className:n,style:_,classes:$p,classNames:r,styles:i,unstyled:a,attributes:b}),C=c?`${l}-description`:void 0,w=d&&typeof d!=`boolean`?`${l}-error`:void 0;return(0,J.jsx)(Q,{...S(`root`),__vars:{"--label-fz":F(f),"--label-lh":M(f,`label-lh`)},mod:[{"label-position":p},y],variant:g,size:f,...x,children:(0,J.jsxs)(Q,{component:m,htmlFor:m===`label`?l:void 0,...S(`body`),children:[o,(0,J.jsxs)(`div`,{...S(`labelWrapper`),"data-disabled":u||void 0,children:[s&&(0,J.jsx)(Q,{component:h,htmlFor:h===`label`?l:void 0,...S(`label`),"data-disabled":u||void 0,children:s}),c&&(0,J.jsx)(Jd.Description,{id:C,size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,J.jsx)(Jd.Error,{id:w,size:f,__inheritStyles:!1,...S(`error`),children:d})]})]})})}tm.displayName=`@mantine/core/InlineInput`;var nm={root:`m_bf2d988c`,inner:`m_26062bec`,input:`m_26063560`,icon:`m_bf295423`,"input--outline":`m_215c4542`},rm={labelPosition:`right`,icon:Jp,withErrorStyles:!0,variant:`filled`,radius:`sm`},im=q((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=en({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":M(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:P(t),"--checkbox-color":a===`outline`?c:tn(n,e),"--checkbox-icon-color":i?tn(i,e):pn(o,e)?un({color:n,theme:e,autoContrast:o}):void 0}}}),am=Z(e=>{let t=Y(`Checkbox`,rm,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,color:l,label:u,id:d,size:f,radius:p,wrapperProps:m,checked:h,labelPosition:g,description:_,error:v,disabled:y,variant:b,indeterminate:x,icon:S,rootRef:C,iconColor:w,onChange:T,autoContrast:E,mod:D,attributes:O,readOnly:k,onClick:A,withErrorStyles:j,ref:M,...N}=t,P=(0,o.useRef)(null),F=(0,o.use)(zp),I=f||F?.size,L=X({name:`Checkbox`,props:t,classes:nm,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:O,vars:c,varsResolver:im}),{styleProps:R,rest:z}=Er(N),B=Ce(d),V=[_?`${B}-description`:void 0,v&&typeof v!=`boolean`?`${B}-error`:void 0,z[`aria-describedby`]].filter(Boolean).join(` `)||void 0,H={checked:F?.value.includes(z.value)??h,onChange:e=>{k||(F?.onChange(e),T?.(e))}},ee=F?.isDisabled?.(z.value)??!1,U=y||ee;return(0,o.useEffect)(()=>{P.current&&(P.current.indeterminate=x||!1,x?P.current.setAttribute(`data-indeterminate`,`true`):P.current.removeAttribute(`data-indeterminate`))},[x]),(0,J.jsx)(tm,{...L(`root`),__staticSelector:`Checkbox`,__stylesApiProps:t,id:B,size:I,labelPosition:g,label:u,description:_,error:v,disabled:U,classNames:n,styles:a,unstyled:s,"data-checked":H.checked||h||void 0,variant:b,ref:C,mod:D,attributes:O,inert:z.inert,...R,...m,children:(0,J.jsxs)(Q,{...L(`inner`),mod:{"data-label-position":g},children:[(0,J.jsx)(Q,{component:`input`,id:B,ref:Pe(P,M),mod:{error:!!v,"with-error-styles":j},...L(`input`,{focusable:!0,variant:b}),...z,...H,"aria-describedby":V,disabled:U,inert:z.inert,type:`checkbox`,onClick:e=>{k&&H.checked===void 0&&e.preventDefault(),A?.(e)}}),(0,J.jsx)(S,{indeterminate:x,...L(`icon`)})]})})});am.classes={...nm,...em},am.varsResolver=im,am.displayName=`@mantine/core/Checkbox`,am.Group=Vp,am.Indicator=Qp,am.Card=Kp;function om(e){return`group`in e}function sm({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a0)return!1;return!0}function lm(e,t=new Set){if(Array.isArray(e))for(let n of e)if(om(n))lm(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 um(e,t){return Array.isArray(e)?e.includes(t):e===t}function dm({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!om(e)){let s=um(r,e.value),c=t&&(s?(0,J.jsx)(qp,{className:sp.optionsDropdownCheckIcon}):n?(0,J.jsx)(`div`,{className:sp.optionsDropdownCheckPlaceholder}):null),l=(0,J.jsxs)(J.Fragment,{children:[i===`left`&&c,(0,J.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,J.jsx)(Lp.Option,{value:e.value,disabled:e.disabled,className:Lt({[sp.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,J.jsx)(dm,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,J.jsx)(Lp.Group,{label:e.group,children:s})}function fm({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=fp();lm(e);let x=typeof i==`string`?(r||sm)({options:e,search:l?i:``,limit:a??1/0}):e,S=cm(x),C=x.map((e,t)=>(0,J.jsx)(dm,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},om(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,J.jsx)(Lp.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,J.jsxs)(Lp.Options,{labelledBy:g,"aria-label":y,children:[c?(0,J.jsx)(Ac.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,J.jsx)(Lp.Empty,{children:m})]})})}function pm(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},hm=(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,hm(s.current,e.expectedValue)&&e.container?.querySelector(`[data-mantine-pill-index="${e.index}"]`)?.focus())});let c=(0,o.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:o}=r.current;if(o!==null&&a&&o!==e){let n=pm(s.current,o,e,a);n!==s.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`,o=a?e+1:e-1;if(n.altKey){if(o<0||o>=s.current.length)return;n.preventDefault(),n.stopPropagation();let c=a?`after`:`before`,l=pm(s.current,e,o,c);if(l===s.current)return;i.current={container:r.parentElement,index:o,expectedValue:l},t(l);return}if(o<0)return;let c=r.parentElement;if(c){if(n.preventDefault(),n.stopPropagation(),o>=s.current.length){mm(c)?.focus();return}c.querySelector(`[data-mantine-pill-index="${o}"]`)?.focus()}}}},getListProps:()=>n?{ref:c}:{},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())}}}var _m=Z(e=>{let t=Y([`Input`,`InputWrapper`,`Autocomplete`],{size:`sm`},e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:s,defaultDropdownOpened:c,onDropdownClose:l,onDropdownOpen:u,onFocus:d,onBlur:f,onClick:p,onChange:m,data:h,value:g,defaultValue:_,selectFirstOptionOnChange:v,selectFirstOptionOnDropdownOpen:y,onOptionSubmit:b,comboboxProps:x,readOnly:S,disabled:C,filter:w,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,id:A,renderOption:j,autoComplete:M,scrollAreaProps:N,onClear:P,clearButtonProps:F,error:I,clearable:L,clearSectionMode:R,rightSection:z,autoSelectOnBlur:B,openOnFocus:V=!0,attributes:H,...ee}=t,U=Ce(A),te=ap(h),ne=op(te),[re,ie]=Le({value:g,defaultValue:_,finalValue:``,onChange:m}),W=Pp({opened:s,defaultOpened:c,onDropdownOpen:()=>{u?.(),y&&W.selectFirstOption()},onDropdownClose:()=>{l?.(),setTimeout(W.resetSelectedOption,0)}}),ae=e=>{ie(e),W.resetSelectedOption()},{resolvedClassNames:G,resolvedStyles:K}=or({props:t,styles:r,classNames:n});(0,o.useEffect)(()=>{v&&W.selectFirstOption()},[v,re]);let oe=(0,J.jsx)(Lp.ClearButton,{...F,onClear:()=>{ae(``),P?.()}});return(0,J.jsxs)(Lp,{store:W,__staticSelector:`Autocomplete`,classNames:G,styles:K,unstyled:i,readOnly:S,size:k,attributes:H,floatingHeight:O,keepMounted:B,onOptionSubmit:e=>{b?.(e),ae(ne[e].label),W.closeDropdown()},...x,children:[(0,J.jsx)(Lp.Target,{autoComplete:M,withExpandedAttribute:!0,children:(0,J.jsx)(Zd,{...ee,size:k,__staticSelector:`Autocomplete`,__clearSection:oe,__clearable:L&&!!re&&!C&&!S,__clearSectionMode:R,rightSection:z,disabled:C,readOnly:S,value:re,error:I,onChange:e=>{ae(e.currentTarget.value),W.openDropdown(),v&&W.selectFirstOption()},onFocus:e=>{V&&W.openDropdown(),d?.(e)},onBlur:e=>{B&&W.clickSelectedOption(),W.closeDropdown(),f?.(e)},onClick:e=>{W.openDropdown(),p?.(e)},classNames:G,styles:K,unstyled:i,attributes:H,id:U})}),(0,J.jsx)(fm,{data:te,hidden:S||C,filter:w,search:re,limit:T,hiddenWhenEmpty:!0,withScrollArea:E,maxDropdownHeight:D,unstyled:i,labelId:ee.label?`${U}-label`:void 0,"aria-label":ee.label?void 0:ee[`aria-label`],renderOption:j,scrollAreaProps:N})]})});_m.classes={...Zd.classes,...Lp.classes},_m.displayName=`@mantine/core/Autocomplete`;var vm={group:`m_11def92b`,root:`m_f85678b6`,image:`m_11f8ac07`,placeholder:`m_104cd71f`},ym=(0,o.createContext)({withinGroup:!1}),bm=q((e,{spacing:t})=>({group:{"--ag-spacing":N(t)}})),xm=Z(e=>{let t=Y(`AvatarGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,spacing:c,attributes:l,...u}=t;return(0,J.jsx)(ym,{value:{withinGroup:!0},children:(0,J.jsx)(Q,{...X({name:`AvatarGroup`,classes:vm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:bm,rootSelector:`group`})(`group`),...u})})});xm.classes=vm,xm.varsResolver=bm,xm.displayName=`@mantine/core/AvatarGroup`;function Sm(e){return(0,J.jsx)(`svg`,{...e,"data-avatar-placeholder-icon":!0,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,J.jsx)(`path`,{d:`M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Cm(e){let t=0;for(let n=0;ne[0]).slice(0,t).join(``).toUpperCase()}var Dm=q((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o,name:s,allowedInitialsColors:c})=>{let l=a===`initials`&&typeof s==`string`?Tm(s,c):a,u=e.variantColorResolver({color:l||`gray`,theme:e,gradient:i,variant:r||`light`,autoContrast:o});return{root:{"--avatar-size":M(t,`avatar-size`),"--avatar-radius":n===void 0?void 0:P(n),"--avatar-bg":l||r?u.background:void 0,"--avatar-color":l||r?u.color:void 0,"--avatar-bd":l||r?u.border:void 0}}}),Om=ti(e=>{let t=Y(`Avatar`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,src:l,alt:u,radius:d,color:f,gradient:p,imageProps:m,children:h,autoContrast:g,mod:_,name:v,allowedInitialsColors:y,attributes:b,...x}=t,S=(0,o.use)(ym),[C,w]=(0,o.useState)(!l),T=X({name:`Avatar`,props:t,classes:vm,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:b,vars:c,varsResolver:Dm});return(0,o.useEffect)(()=>w(!l),[l]),(0,J.jsx)(Q,{...T(`root`),mod:[{"within-group":S.withinGroup},_],...x,children:C||!l?(0,J.jsx)(`span`,{...T(`placeholder`),title:u,children:h||typeof v==`string`&&Em(v)||(0,J.jsx)(Sm,{})}):(0,J.jsx)(`img`,{...m,...T(`image`),src:l,alt:u,onError:e=>{w(!0),m?.onError?.(e)}})})});Om.classes=vm,Om.varsResolver=Dm,Om.displayName=`@mantine/core/Avatar`,Om.Group=xm;var km={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},Am=q((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":M(a,`badge-height`),"--badge-padding-x":M(a,`badge-padding-x`),"--badge-fz":M(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:P(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`?tn(n,e):void 0}}}),jm=ti(e=>{let t=Y(`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=X({name:`Badge`,props:t,classes:km,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Am});return(0,J.jsxs)(Q,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,J.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,J.jsx)(`span`,{...x(`label`),children:p}),f&&(0,J.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});jm.classes=km,jm.varsResolver=Am,jm.displayName=`@mantine/core/Badge`;var Mm={root:`m_8b3717df`,breadcrumb:`m_f678d540`,separator:`m_3b8f2208`},Nm={separator:`/`},Pm=q((e,{separatorMargin:t})=>({root:{"--bc-separator-margin":N(t)}})),Fm=Z(e=>{let t=Y(`Breadcrumbs`,Nm,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,children:l,separator:u,separatorMargin:d,attributes:f,...p}=t,m=X({name:`Breadcrumbs`,classes:Mm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:f,vars:c,varsResolver:Pm}),h=o.Children.toArray(l).reduce((e,t,n,r)=>{let i=b(t)?(0,o.cloneElement)(t,{...m(`breadcrumb`,{className:t.props?.className}),key:n}):(0,o.createElement)(`div`,{...m(`breadcrumb`),key:n},t);return e.push(i),n!==r.length-1&&e.push((0,o.createElement)(Q,{...m(`separator`),key:`separator-${n}`},u)),e},[]);return(0,J.jsx)(Q,{...m(`root`),...p,children:h})});Fm.classes=Mm,Fm.varsResolver=Pm,Fm.displayName=`@mantine/core/Breadcrumbs`;var Im={root:`m_fea6bf1a`,burger:`m_d4fb9cad`},Lm=q((e,{color:t,size:n,lineSize:r,transitionDuration:i,transitionTimingFunction:a})=>({root:{"--burger-color":t?tn(t,e):void 0,"--burger-size":M(n,`burger-size`),"--burger-line-size":r?g(r):void 0,"--burger-transition-duration":i===void 0?void 0:`${i}ms`,"--burger-transition-timing-function":a}})),Rm=Z(e=>{let t=Y(`Burger`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,opened:c,children:l,transitionDuration:u,transitionTimingFunction:d,lineSize:f,attributes:p,...m}=t,h=X({name:`Burger`,classes:Im,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Lm});return(0,J.jsxs)(Pc,{...h(`root`),...m,children:[(0,J.jsx)(Q,{mod:[`reduce-motion`,{opened:c}],...h(`burger`)}),l]})});Rm.classes=Im,Rm.varsResolver=Lm,Rm.displayName=`@mantine/core/Burger`;var zm={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Bm={orientation:`horizontal`},Vm=q((e,{borderWidth:t})=>({group:{"--button-border-width":g(t)}})),Hm=Z(e=>{let t=Y(`ButtonGroup`,Bm,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=Y(`ButtonGroup`,Bm,e);return(0,J.jsx)(Q,{...X({name:`ButtonGroup`,props:t,classes:zm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Vm,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});Hm.classes=zm,Hm.varsResolver=Vm,Hm.displayName=`@mantine/core/ButtonGroup`;var Um=q((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":M(o,`section-height`),"--section-padding-x":M(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?F(o.replace(`compact-`,``)):F(o),"--section-radius":t===void 0?void 0:P(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Wm=Z(e=>{let t=Y(`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;return(0,J.jsx)(Q,{...X({name:`ButtonGroupSection`,props:t,classes:zm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Um,rootSelector:`groupSection`})(`groupSection`),...f})});Wm.classes=zm,Wm.varsResolver=Um,Wm.displayName=`@mantine/core/ButtonGroupSection`;var Gm={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${g(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Km=q((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":M(a,`button-height`),"--button-padding-x":M(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?F(a.replace(`compact-`,``)):F(a),"--button-radius":t===void 0?void 0:P(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}}}),qm=ti(e=>{let t=Y(`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=X({name:`Button`,props:t,classes:zm,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Km}),T=!!c,E=!!l;return(0,J.jsxs)(Pc,{...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,J.jsx)(ll,{mounted:p,transition:Gm,duration:150,children:e=>(0,J.jsx)(Q,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,J.jsx)(Fl,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,J.jsxs)(`span`,{...w(`inner`),children:[c&&(0,J.jsx)(Q,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,J.jsx)(Q,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,J.jsx)(Q,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});qm.classes=zm,qm.varsResolver=Km,qm.displayName=`@mantine/core/Button`,qm.Group=Hm,qm.GroupSection=Wm;var[Jm,Ym]=x(`Card component was not found in tree`),Xm={root:`m_e615b15f`,section:`m_599a2148`},Zm=ti(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,withBorder:o,inheritPadding:s,mod:c,...l}=Y(`CardSection`,null,e),u=Ym();return(0,J.jsx)(Q,{mod:[{"with-border":o,"inherit-padding":s},c],...u.getStyles(`section`,{className:n,style:r,styles:i,classNames:t}),...l})});Zm.classes=Xm,Zm.displayName=`@mantine/core/CardSection`;var Qm=q((e,{padding:t})=>({root:{"--card-padding":N(t)}})),$m={orientation:`vertical`},eh=ti(e=>{let t=Y(`Card`,$m,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,children:l,padding:u,attributes:d,orientation:f,...p}=t,m=X({name:`Card`,props:t,classes:Xm,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:d,vars:c,varsResolver:Qm}),h=o.Children.toArray(l),g=h.map((e,t)=>typeof e==`object`&&e&&`type`in e&&(e.type===Zm||e.type?.displayName===`@mantine/core/CardSection`)?(0,o.cloneElement)(e,{"data-orientation":f,"data-first-section":t===0||void 0,"data-last-section":t===h.length-1||void 0}):e);return(0,J.jsx)(Jm,{value:{getStyles:m},children:(0,J.jsx)(zc,{unstyled:s,"data-orientation":f,...m(`root`),...p,children:g})})});eh.classes=Xm,eh.varsResolver=Qm,eh.displayName=`@mantine/core/Card`,eh.Section=Zm;var th={root:`m_4451eb3a`},nh=ti(e=>{let t=Y(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=X({name:`Center`,props:t,classes:th,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,J.jsx)(Q,{mod:[{inline:c},l],...f(`root`),...d})});nh.classes=th,nh.displayName=`@mantine/core/Center`;var rh={root:`m_b183c0a2`},ih=q((e,{color:t})=>({root:{"--code-bg":t?tn(t,e):void 0}})),ah=Z(e=>{let t=Y(`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=X({name:`Code`,props:t,classes:rh,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:ih});return(0,J.jsx)(Q,{component:l?`pre`:`code`,mod:[{block:l},u],...p(`root`),...f,dir:`ltr`})});ah.classes=rh,ah.varsResolver=ih,ah.displayName=`@mantine/core/Code`;var oh={root:`m_de3d2490`,colorOverlay:`m_862f3d1b`,shadowOverlay:`m_98ae7f22`,alphaOverlay:`m_95709ac0`,childrenOverlay:`m_93e74e3`},sh={withShadow:!0},ch=q((e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:P(t),"--cs-size":g(n)}})),lh=ti(e=>{let t=Y(`ColorSwatch`,sh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,radius:l,withShadow:u,children:d,attributes:f,...p}=Y(`ColorSwatch`,sh,t),m=X({name:`ColorSwatch`,props:t,classes:oh,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:ch});return(0,J.jsxs)(Q,{...m(`root`,{focusable:!0}),...p,children:[(0,J.jsx)(`span`,{...m(`alphaOverlay`)}),u&&(0,J.jsx)(`span`,{...m(`shadowOverlay`)}),(0,J.jsx)(`span`,{...m(`colorOverlay`,{style:{backgroundColor:c}})}),(0,J.jsx)(`span`,{...m(`childrenOverlay`),children:d})]})});lh.classes=oh,lh.varsResolver=ch,lh.displayName=`@mantine/core/ColorSwatch`;function uh(e,t=0,n=10**t){return Math.round(n*e)/n}function dh({h:e,s:t,l:n,a:r}){let i=t*((n<50?n:100-n)/100);return{h:e,s:i>0?2*i/(n+i)*100:0,v:n+i,a:r}}var fh={grad:360/400,turn:360,rad:360/(Math.PI*2)};function ph(e,t=`deg`){return Number(e)*(fh[t]||1)}var mh=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function hh(e){let t=mh.exec(e);return t?dh({h:ph(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}}function gh({r:e,g:t,b:n,a:r}){let i=Math.max(e,t,n),a=i-Math.min(e,t,n),o=a?i===e?(t-n)/a:i===t?2+(n-e)/a:4+(e-t)/a:0;return{h:uh(60*(o<0?o+6:o),3),s:uh(i?a/i*100:0,3),v:uh(i/255*100,3),a:r}}function _h(e){let t=e[0]===`#`?e.slice(1):e;return t.length===3?gh({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):gh({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}function vh(e){let t=e[0]===`#`?e.slice(1):e,n=e=>uh(parseInt(e,16)/255,3);if(t.length===4){let e=t.slice(0,3),r=n(t[3]+t[3]);return{..._h(e),a:r}}let r=t.slice(0,6),i=n(t.slice(6,8));return{..._h(r),a:i}}var yh=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function bh(e){let t=yh.exec(e);return t?gh({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}}var xh={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},Sh={hex:_h,hexa:vh,rgb:bh,rgba:bh,hsl:hh,hsla:hh};function Ch(e){for(let[,t]of Object.entries(xh))if(t.test(e))return!0;return!1}function wh(e){if(typeof e!=`string`)return{h:0,s:0,v:0,a:1};if(e===`transparent`)return{h:0,s:0,v:0,a:0};let t=e.trim();for(let[e,n]of Object.entries(xh))if(n.test(t))return Sh[e](t);return{h:0,s:0,v:0,a:1}}var Th=(0,o.createContext)(null);function Eh({position:e,...t}){return(0,J.jsx)(Q,{__vars:{"--thumb-y-offset":`${e.y*100}%`,"--thumb-x-offset":`${e.x*100}%`},...t})}Eh.displayName=`@mantine/core/ColorPickerThumb`;var Dh={wrapper:`m_fee9c77`,preview:`m_9dddfbac`,body:`m_bffecc3e`,sliders:`m_3283bb96`,thumb:`m_40d572ba`,swatch:`m_d8ee6fd8`,swatches:`m_5711e686`,saturation:`m_202a296e`,saturationOverlay:`m_11b3db02`,slider:`m_d856d47d`,sliderOverlay:`m_8f327113`},Oh=Z(e=>{let t=Y(`ColorSlider`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,onChange:l,onChangeEnd:u,maxValue:d,round:f,size:p=`md`,focusable:m=!0,value:h,overlays:_,thumbColor:v=`transparent`,onScrubStart:y,onScrubEnd:b,__staticSelector:x=`ColorPicker`,attributes:S,ref:C,...w}=t,T=X({name:x,classes:Dh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:S,rootSelector:`slider`}),E=(0,o.use)(Th)?.getStyles||T,D=Bn(),[O,k]=(0,o.useState)({y:0,x:h/d}),A=(0,o.useRef)(O),j=e=>f?Math.round(e*d):e*d,{ref:M}=Ie(({x:e,y:t})=>{A.current={x:e,y:t},l?.(j(e))},{onScrubEnd:()=>{let{x:e}=A.current;u?.(j(e)),b?.()},onScrubStart:y});le(()=>{k({y:0,x:h/d})},[h]);let N=(e,t)=>{e.preventDefault();let n=Fe(t);l?.(j(n.x)),u?.(j(n.x))},P=e=>{switch(e.key){case`ArrowRight`:N(e,{x:O.x+.05,y:O.y});break;case`ArrowLeft`:N(e,{x:O.x-.05,y:O.y});break}},F=_.map((e,t)=>(0,o.createElement)(`div`,{...E(`sliderOverlay`),style:e,key:t}));return(0,J.jsxs)(Q,{...w,ref:Pe(M,C),...E(`slider`),size:p,role:`slider`,"aria-valuenow":h,"aria-valuemax":d,"aria-valuemin":0,tabIndex:m?0:-1,onKeyDown:P,"data-focus-ring":D.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${p})`},children:[F,(0,J.jsx)(Eh,{position:O,...E(`thumb`,{style:{top:g(1),background:v}})})]})});Oh.displayName=`@mantine/core/ColorSlider`,Oh.classes=Dh;var kh={__staticSelector:`AlphaSlider`},Ah=Z(e=>{let{value:t,onChange:n,onChangeEnd:r,color:i,...a}=Y(`AlphaSlider`,kh,e);return(0,J.jsx)(Oh,{...a,value:t,onChange:e=>n?.(uh(e,2)),onChangeEnd:e=>r?.(uh(e,2)),maxValue:1,round:!1,"data-alpha":!0,overlays:[{backgroundImage:`linear-gradient(45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(-45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--slider-checkers) 75%), linear-gradient(-45deg, var(--mantine-color-body) 75%, var(--slider-checkers) 75%)`,backgroundSize:`${g(8)} ${g(8)}`,backgroundPosition:`0 0, 0 ${g(4)}, ${g(4)} ${g(-4)}, ${g(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${i})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${g(1)} inset, rgb(0, 0, 0, .15) 0 0 ${g(4)} inset`}]})});Ah.displayName=`@mantine/core/AlphaSlider`,Ah.classes=Oh.classes;function jh({h:e,s:t,v:n,a:r}){let i=e/360*6,a=t/100,o=n/100,s=Math.floor(i),c=o*(1-a),l=o*(1-(i-s)*a),u=o*(1-(1-i+s)*a),d=s%6;return{r:uh([o,l,c,c,u,o][d]*255),g:uh([u,o,o,l,c,c][d]*255),b:uh([c,c,u,o,o,l][d]*255),a:uh(r,2)}}function Mh(e,t){let{r:n,g:r,b:i,a}=jh(e);return t?`rgba(${n}, ${r}, ${i}, ${uh(a,2)})`:`rgb(${n}, ${r}, ${i})`}function Nh({h:e,s:t,v:n,a:r},i){let a=(200-t)*n/100,o={h:Math.round(e),s:Math.round(a>0&&a<200?t*n/100/(a<=100?a:200-a)*100:0),l:Math.round(a/2)};return i?`hsla(${o.h}, ${o.s}%, ${o.l}%, ${uh(r,2)})`:`hsl(${o.h}, ${o.s}%, ${o.l}%)`}function Ph(e){let t=e.toString(16);return t.length<2?`0${t}`:t}function Fh(e){let{r:t,g:n,b:r}=jh(e);return`#${Ph(t)}${Ph(n)}${Ph(r)}`}function Ih(e){let t=Math.round(e.a*255);return`${Fh(e)}${Ph(t)}`}var Lh={hex:Fh,hexa:e=>Ih(e),rgb:e=>Mh(e,!1),rgba:e=>Mh(e,!0),hsl:e=>Nh(e,!1),hsla:e=>Nh(e,!0)};function Rh(e,t){return t?e in Lh?Lh[e](t):Lh.hex(t):`#000000`}var zh={__staticSelector:`HueSlider`},Bh=Z(e=>{let{value:t,onChange:n,onChangeEnd:r,color:i,...a}=Y(`HueSlider`,zh,e);return(0,J.jsx)(Oh,{...a,value:t,onChange:n,onChangeEnd:r,maxValue:360,thumbColor:`hsl(${t}, 100%, 50%)`,round:!0,"data-hue":!0,overlays:[{backgroundImage:`linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${g(1)} inset, rgb(0, 0, 0, .15) 0 0 ${g(4)} inset`}]})});Bh.displayName=`@mantine/core/HueSlider`,Bh.classes=Oh.classes;function Vh({className:e,onChange:t,onChangeEnd:n,value:r,saturationLabel:i,focusable:a=!0,size:s,color:c,onScrubStart:l,onScrubEnd:u,...d}){let{getStyles:f}=(0,o.use)(Th),[p,m]=(0,o.useState)({x:r.s/100,y:1-r.v/100}),h=(0,o.useRef)(p),{ref:g}=Ie(({x:e,y:n})=>{h.current={x:e,y:n},t({s:Math.round(e*100),v:Math.round((1-n)*100)})},{onScrubEnd:()=>{let{x:e,y:t}=h.current;n({s:Math.round(e*100),v:Math.round((1-t)*100)}),u?.()},onScrubStart:l});(0,o.useEffect)(()=>{m({x:r.s/100,y:1-r.v/100})},[r.s,r.v]);let _=(e,r)=>{e.preventDefault();let i=Fe(r);t({s:Math.round(i.x*100),v:Math.round((1-i.y)*100)}),n({s:Math.round(i.x*100),v:Math.round((1-i.y)*100)})},v=e=>{switch(e.key){case`ArrowUp`:_(e,{y:p.y-.05,x:p.x});break;case`ArrowDown`:_(e,{y:p.y+.05,x:p.x});break;case`ArrowRight`:_(e,{x:p.x+.05,y:p.y});break;case`ArrowLeft`:_(e,{x:p.x-.05,y:p.y});break}};return(0,J.jsxs)(Q,{...f(`saturation`),ref:g,...d,role:`slider`,"aria-label":i,"aria-valuenow":p.x,"aria-valuetext":Rh(`rgba`,r),tabIndex:a?0:-1,onKeyDown:v,children:[(0,J.jsx)(`div`,{...f(`saturationOverlay`,{style:{backgroundColor:`hsl(${r.h}, 100%, 50%)`}})}),(0,J.jsx)(`div`,{...f(`saturationOverlay`,{style:{backgroundImage:`linear-gradient(90deg, #fff, transparent)`}})}),(0,J.jsx)(`div`,{...f(`saturationOverlay`,{style:{backgroundImage:`linear-gradient(0deg, #000, transparent)`}})}),(0,J.jsx)(Eh,{position:p,...f(`thumb`,{style:{backgroundColor:c}})})]})}Vh.displayName=`@mantine/core/Saturation`;function Hh({className:e,datatype:t,setValue:n,onChangeEnd:r,size:i,focusable:a,data:s,swatchesPerRow:c,value:l,...u}){let d=(0,o.use)(Th),f=s.map((e,t)=>(0,o.createElement)(lh,{...d.getStyles(`swatch`),unstyled:d.unstyled,component:`button`,type:`button`,color:e,key:t,radius:`sm`,onClick:()=>{n(e),r?.(e)},"aria-label":e,tabIndex:a?0:-1,"data-swatch":!0},l===e&&(0,J.jsx)(qp,{size:`35%`,color:Qt(e)<.5?`white`:`black`})));return(0,J.jsx)(Q,{...d.getStyles(`swatches`),...u,children:f})}Hh.displayName=`@mantine/core/Swatches`;var Uh={swatchesPerRow:7,withPicker:!0,focusable:!0,size:`md`,__staticSelector:`ColorPicker`},Wh=q((e,{size:t,swatchesPerRow:n})=>({wrapper:{"--cp-preview-size":M(t,`cp-preview-size`),"--cp-width":M(t,`cp-width`),"--cp-body-spacing":N(t),"--cp-swatch-size":`${100/n}%`,"--cp-thumb-size":M(t,`cp-thumb-size`),"--cp-saturation-height":M(t,`cp-saturation-height`)}})),Gh=Z(e=>{let t=Y(`ColorPicker`,Uh,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,format:l=`hex`,value:u,defaultValue:d,onChange:f,onChangeEnd:p,withPicker:m,size:h,saturationLabel:g,hueLabel:_,alphaLabel:v,focusable:y,swatches:b,swatchesPerRow:x,fullWidth:S,onColorSwatchClick:C,__staticSelector:w,mod:T,attributes:E,name:D,hiddenInputProps:O,...k}=t,A=X({name:w,props:t,classes:Dh,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:E,rootSelector:`wrapper`,vars:c,varsResolver:Wh}),j=(0,o.useRef)(l||`hex`),M=(0,o.useRef)(``),N=(0,o.useRef)(-1),P=(0,o.useRef)(!1),F=l===`hexa`||l===`rgba`||l===`hsla`,[I,L,R]=Le({value:u,defaultValue:d,finalValue:`#FFFFFF`,onChange:f}),[z,B]=(0,o.useState)(wh(I)),V=()=>{window.clearTimeout(N.current),P.current=!0},H=()=>{window.clearTimeout(N.current),N.current=window.setTimeout(()=>{P.current=!1},200)},ee=e=>{B(t=>{let n={...t,...e};return M.current=Rh(j.current,n),n}),L(M.current)};return le(()=>{typeof u==`string`&&Ch(u)&&!P.current&&B(wh(u))},[u]),le(()=>{j.current=l||`hex`,L(Rh(j.current,z))},[l]),(0,J.jsx)(Th,{value:{getStyles:A,unstyled:s},children:(0,J.jsxs)(Q,{...A(`wrapper`),size:h,mod:[{"full-width":S},T],...k,children:[D&&(0,J.jsx)(`input`,{type:`hidden`,name:D,value:I,...O}),m&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Vh,{value:z,onChange:ee,onChangeEnd:({s:e,v:t})=>p?.(Rh(j.current,{...z,s:e,v:t})),color:I,size:h,focusable:y,saturationLabel:g,onScrubStart:V,onScrubEnd:H}),(0,J.jsxs)(`div`,{...A(`body`),children:[(0,J.jsxs)(`div`,{...A(`sliders`),children:[(0,J.jsx)(Bh,{value:z.h,onChange:e=>ee({h:e}),onChangeEnd:e=>p?.(Rh(j.current,{...z,h:e})),size:h,focusable:y,"aria-label":_,onScrubStart:V,onScrubEnd:H}),F&&(0,J.jsx)(Ah,{value:z.a,onChange:e=>ee({a:e}),onChangeEnd:e=>{p?.(Rh(j.current,{...z,a:e}))},size:h,color:Rh(`hex`,z),focusable:y,"aria-label":v,onScrubStart:V,onScrubEnd:H})]}),F&&(0,J.jsx)(lh,{color:I,radius:`sm`,size:`var(--cp-preview-size)`,...A(`preview`)})]})]}),Array.isArray(b)&&(0,J.jsx)(Hh,{data:b,swatchesPerRow:x,focusable:y,setValue:L,value:I,onChangeEnd:e=>{let t=Rh(l,wh(e));C?.(t),p?.(t),R||B(wh(e))}})]})})});Gh.classes=Dh,Gh.varsResolver=Wh,Gh.displayName=`@mantine/core/ColorPicker`;var Kh={root:`m_7485cace`},qh={strategy:`block`},Jh=q((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:M(t,`container-size`)}})),Yh=Z(e=>{let t=Y(`Container`,qh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:c,mod:l,attributes:u,strategy:d,...f}=t,p=X({name:`Container`,classes:Kh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Jh});return(0,J.jsx)(Q,{mod:[{fluid:c,strategy:d},l],...p(`root`),...f})});Yh.classes=Kh,Yh.varsResolver=Jh,Yh.displayName=`@mantine/core/Container`;var Xh={timeout:1e3};function Zh(e){let{children:t,timeout:n,value:r,...i}=Y(`CopyButton`,Xh,e),a=ae({timeout:n});return(0,J.jsx)(J.Fragment,{children:t({copy:()=>a.copy(r),copied:a.copied,...i})})}Zh.displayName=`@mantine/core/CopyButton`;var[Qh,$h]=x(`DataList component was not found in tree`),eg={root:`m_f84d0407`,item:`m_f848fe38`,itemLabel:`m_c791b39c`,itemValue:`m_c81ec619`},tg=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,mod:s,...c}=Y(`DataListItem`,null,e),l=$h(),u={classNames:t,styles:i};return(0,J.jsx)(Q,{...l.getStyles(`item`,{...u,className:n,style:r}),mod:s,...c,children:o})});tg.classes=eg,tg.displayName=`@mantine/core/DataListItem`;var ng=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,mod:s,...c}=Y(`DataListItemLabel`,null,e),l=$h(),u={classNames:t,styles:i};return(0,J.jsx)(Q,{component:`dt`,...l.getStyles(`itemLabel`,{...u,className:n,style:r}),mod:s,...c,children:o})});ng.classes=eg,ng.displayName=`@mantine/core/DataListItemLabel`;var rg=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,mod:s,...c}=Y(`DataListItemValue`,null,e),l=$h(),u={classNames:t,styles:i};return(0,J.jsx)(Q,{component:`dd`,...l.getStyles(`itemValue`,{...u,className:n,style:r}),mod:s,...c,children:o})});rg.classes=eg,rg.displayName=`@mantine/core/DataListItemValue`;var ig={orientation:`horizontal`},ag=q((e,{size:t,gap:n,labelWidth:r})=>({root:{"--data-list-fz":F(t),"--data-list-lh":I(t),"--data-list-gap":N(n),"--data-list-label-width":r===void 0?void 0:typeof r==`number`?`${r}px`:r}})),og=Z(e=>{let t=Y(`DataList`,ig,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,gap:l,orientation:u,withDivider:d,labelWidth:f,mod:p,attributes:m,...h}=t,g=X({name:`DataList`,classes:eg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:s,varsResolver:ag});return(0,J.jsx)(Qh,{value:{getStyles:g},children:(0,J.jsx)(Q,{...g(`root`),component:`dl`,mod:[{orientation:u,"with-divider":d},p],...h,children:c})})});og.classes=eg,og.varsResolver=ag,og.displayName=`@mantine/core/DataList`,og.Item=tg,og.ItemLabel=ng,og.ItemValue=rg;var sg={root:`m_3eebeb36`,label:`m_9e365f20`},cg={orientation:`horizontal`},lg=q((e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?tn(t,e):void 0,"--divider-border-style":n,"--divider-size":M(r,`divider-size`)}})),ug=Z(e=>{let t=Y(`Divider`,cg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,orientation:l,label:u,labelPosition:d,mod:f,attributes:p,...m}=t,h=X({name:`Divider`,classes:sg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:lg});return(0,J.jsx)(Q,{mod:[{orientation:l,withLabel:!!u},f],role:`separator`,...h(`root`),...m,children:u&&(0,J.jsx)(Q,{component:`span`,mod:{position:d},...h(`label`),children:u})})});ug.classes=sg,ug.varsResolver=lg,ug.displayName=`@mantine/core/Divider`;var[dg,fg]=x(`Drawer component was not found in tree`),pg={root:`m_f11b401e`,header:`m_5a7c2c9`,content:`m_b8a05bbd`,inner:`m_31cd769a`},mg=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`DrawerBody`,null,e);return(0,J.jsx)(gd,{...fg().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});mg.classes=pg,mg.displayName=`@mantine/core/DrawerBody`;var hg=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`DrawerCloseButton`,null,e);return(0,J.jsx)(_d,{...fg().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});hg.classes=pg,hg.displayName=`@mantine/core/DrawerCloseButton`;var gg=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,radius:s,__hidden:c,...l}=Y(`DrawerContent`,null,e),u=fg(),d=u.scrollAreaComponent||Td;return(0,J.jsx)(vd,{...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,J.jsx)(d,{style:{height:`calc(100vh - var(--drawer-offset) * 2)`},children:o})})});gg.classes=pg,gg.displayName=`@mantine/core/DrawerContent`;var _g=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`DrawerHeader`,null,e);return(0,J.jsx)(yd,{...fg().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});_g.classes=pg,_g.displayName=`@mantine/core/DrawerHeader`;var vg=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`DrawerOverlay`,null,e);return(0,J.jsx)(Sd,{...fg().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});vg.classes=pg,vg.displayName=`@mantine/core/DrawerOverlay`;function yg(e){switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return}}function bg(e){if(e===`top`||e===`bottom`)return`0 0 calc(100% - var(--drawer-offset, 0rem) * 2)`}var xg={top:`slide-down`,bottom:`slide-up`,left:`slide-right`,right:`slide-left`},Sg={top:`slide-down`,bottom:`slide-up`,right:`slide-right`,left:`slide-left`},Cg={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:k(`modal`),position:`left`},wg=q((e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":M(n,`drawer-size`),"--drawer-flex":bg(t),"--drawer-height":t===`left`||t===`right`?void 0:`var(--drawer-size)`,"--drawer-align":yg(t),"--drawer-justify":t===`right`?`flex-end`:void 0,"--drawer-offset":g(r)}})),Tg=Z(e=>{let t=Y(`DrawerRoot`,Cg,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}=li(),h=X({name:`Drawer`,classes:pg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:wg}),g=(m===`rtl`?Sg:xg)[l];return(0,J.jsx)(dg,{value:{scrollAreaComponent:c,getStyles:h,radius:d},children:(0,J.jsx)(pd,{...h(`root`),transitionProps:{transition:g,...u},"data-offset-scrollbars":c===Ac.Autosize||void 0,unstyled:o,...p})})});Tg.classes=pg,Tg.varsResolver=wg,Tg.displayName=`@mantine/core/DrawerRoot`;var Eg=(0,o.createContext)(null);function Dg({children:e}){let[t,n]=(0,o.useState)([]),[r,i]=(0,o.useState)(k(`modal`));return(0,J.jsx)(Eg,{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},children:e})}Dg.displayName=`@mantine/core/DrawerStack`;var Og=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`DrawerTitle`,null,e);return(0,J.jsx)(wd,{...fg().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});Og.classes=pg,Og.displayName=`@mantine/core/DrawerTitle`;var kg={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:k(`modal`),withOverlay:!0,withCloseButton:!0},Ag=Z(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:s,opened:c,stackId:l,zIndex:u,...d}=Y(`Drawer`,kg,e),f=(0,o.use)(Eg),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l)}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,o.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||k(`modal`)):f.removeModal(l))},[c,l,u]),(0,J.jsxs)(Tg,{opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,J.jsx)(vg,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,J.jsxs)(gg,{__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,J.jsxs)(_g,{children:[t&&(0,J.jsx)(Og,{children:t}),i&&(0,J.jsx)(hg,{...a})]}),(0,J.jsx)(mg,{children:s})]})]})});Ag.classes=pg,Ag.displayName=`@mantine/core/Drawer`,Ag.Root=Tg,Ag.Overlay=vg,Ag.Content=gg,Ag.Body=mg,Ag.Header=_g,Ag.Title=Og,Ag.CloseButton=hg,Ag.Stack=Dg;var jg={root:`m_e9408a47`,"root--default":`m_84c9523a`,"root--filled":`m_ef274e49`,"root--unstyled":`m_eda993d3`,legend:`m_90794832`,"legend--unstyled":`m_74ca27fe`},Mg={variant:`default`},Ng=q((e,{radius:t})=>({root:{"--fieldset-radius":t===void 0?void 0:P(t)}})),Pg=Z(e=>{let t=Y(`Fieldset`,Mg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,legend:c,variant:l,children:u,attributes:d,...f}=t,p=X({name:`Fieldset`,classes:jg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Ng});return(0,J.jsxs)(Q,{component:`fieldset`,variant:l,...p(`root`,{variant:l}),...f,children:[c&&(0,J.jsx)(`legend`,{...p(`legend`,{variant:l}),children:c}),u]})});Pg.classes=jg,Pg.varsResolver=Ng,Pg.displayName=`@mantine/core/Fieldset`;var Fg=ei(e=>{let{onChange:t,children:n,multiple:r,accept:i,name:a,form:s,resetRef:c,disabled:l,capture:u,inputProps:d,ref:f,...p}=Y(`FileButton`,null,e),m=(0,o.useRef)(null),h=()=>{!l&&m.current?.click()};return Me(c,()=>{m.current&&(m.current.value=``)}),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`input`,{style:{display:`none`},type:`file`,accept:i,multiple:r,onChange:e=>{if(e.currentTarget.files===null)return t(r?[]:null);t(r?Array.from(e.currentTarget.files):e.currentTarget.files[0]||null)},ref:Pe(f,m),name:a,form:s,capture:u,...d}),n({onClick:h,...p})]})});Fg.displayName=`@mantine/core/FileButton`;var[Ig,Lg]=x(`Grid component was not found in tree`),Rg=(e,t)=>{if(e===`content`)return`auto`;if(e===`auto`)return`0rem`;if(e)return e===t?`100%`:`calc(${100*e/t}% - ${(t-e)/t} * var(--grid-column-gap))`},zg=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:Rg(e,t),Bg=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},Vg=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function Hg({span:e,order:t,offset:n,align:r,selector:i}){let a=Bn(),o=Lg(),s=o.breakpoints||a.breakpoints,l=V(e),u=l===void 0?12:l,d=v({"--col-order":V(t)?.toString(),"--col-flex-grow":Bg(u,o.grow),"--col-flex-basis":Rg(u,o.columns),"--col-width":u===`content`?`auto`:void 0,"--col-max-width":zg(u,o.columns,o.grow),"--col-offset":Vg(V(n),o.columns),"--col-align-self":V(r)}),f=c(s).reduce((i,a)=>(i[a]||(i[a]={}),typeof t==`object`&&t[a]!==void 0&&(i[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(i[a][`--col-flex-grow`]=Bg(e[a],o.grow),i[a][`--col-flex-basis`]=Rg(e[a],o.columns),i[a][`--col-width`]=e[a]===`content`?`auto`:void 0,i[a][`--col-max-width`]=zg(e[a],o.columns,o.grow)),typeof n==`object`&&n[a]!==void 0&&(i[a][`--col-offset`]=Vg(n[a],o.columns)),typeof r==`object`&&r[a]!==void 0&&(i[a][`--col-align-self`]=r[a]),i),{}),p=B(c(f),s).filter(e=>c(f[e.value]).length>0).map(e=>({query:o.type===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:f[e.value]}));return(0,J.jsx)(Cr,{styles:d,media:o.type===`container`?void 0:p,container:o.type===`container`?p:void 0,selector:i})}var Ug={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},Wg={span:12},Gg=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,span:o,order:s,offset:c,align:l,...u}=Y(`GridCol`,Wg,e),d=Lg(),f=Yr();return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Hg,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,J.jsx)(Q,{...d.getStyles(`col`,{className:Lt(n,f),style:r,classNames:t,styles:i}),...u})]})});Gg.classes=Ug,Gg.displayName=`@mantine/core/GridCol`;function Kg({gap:e,rowGap:t,columnGap:n,selector:r,breakpoints:i,type:a}){let o=Bn(),s=i||o.breakpoints,l=v({"--grid-gap":N(V(e)),"--grid-row-gap":N(V(t)),"--grid-column-gap":N(V(n))}),u=c(s).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=N(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=N(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=N(n[i])),r),{}),d=B(c(u),s).filter(e=>c(u[e.value]).length>0).map(e=>({query:a===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:u[e.value]}));return(0,J.jsx)(Cr,{styles:l,media:a===`container`?void 0:d,container:a===`container`?d:void 0,selector:r})}var qg={gap:`md`,columns:12},Jg=q((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),Yg=Z(e=>{let t=Y(`Grid`,qg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,grow:c,gap:l,rowGap:u,columnGap:d,columns:f,align:p,justify:m,children:h,breakpoints:g,type:_,attributes:v,...y}=t,b=X({name:`Grid`,classes:Ug,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Jg}),x=Yr();return _===`container`&&g?(0,J.jsxs)(Ig,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,J.jsx)(Kg,{selector:`.${x}`,...t}),(0,J.jsx)(`div`,{...b(`container`),children:(0,J.jsx)(Q,{...b(`root`,{className:x}),...y,children:(0,J.jsx)(`div`,{...b(`inner`),children:h})})})]}):(0,J.jsxs)(Ig,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,J.jsx)(Kg,{selector:`.${x}`,...t}),(0,J.jsx)(Q,{...b(`root`,{className:x}),...y,children:(0,J.jsx)(`div`,{...b(`inner`),children:h})})]})});Yg.classes=Ug,Yg.varsResolver=Jg,Yg.displayName=`@mantine/core/Grid`,Yg.Col=Gg;function Xg({color:e,theme:t,defaultShade:n}){let r=en({color:e,theme:t});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:e}var Zg={root:`m_bcb3f3c2`},Qg={color:`yellow`},$g=q((e,{color:t})=>({root:{"--mark-bg-dark":Xg({color:t,theme:e,defaultShade:5}),"--mark-bg-light":Xg({color:t,theme:e,defaultShade:2})}})),e_=Z(e=>{let t=Y(`Mark`,Qg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,variant:l,attributes:u,...d}=t;return(0,J.jsx)(Q,{component:`mark`,variant:l,...X({name:`Mark`,props:t,className:r,style:i,classes:Zg,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:$g})(`root`),...d})});e_.classes=Zg,e_.varsResolver=$g,e_.displayName=`@mantine/core/Mark`;function t_(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`)}function n_(e){return e.normalize(`NFD`).replace(/\p{M}/gu,``)}function r_(e){let t=``,n=[],r=0;for(;ra&&i.push({chunk:e.slice(a,c),highlighted:!1}),i.push({chunk:e.slice(c,l),highlighted:!0}),a=l,o[0].length===0&&(t.lastIndex+=1)}return ae)}function a_(e,t,n={}){if(t==null)return[{chunk:e,highlighted:!1}];let{wholeWord:r=!1,caseInsensitive:i=!0,accentInsensitive:a=!0}=n,o=e=>a?n_(t_(e)):t_(e),s=Array.isArray(t)?t.map(o):o(t);if(!(Array.isArray(s)?s.filter(e=>e.trim().length>0).length>0:s.trim()!==``))return[{chunk:e,highlighted:!1}];let c=typeof s==`string`?s.trim():s.filter(e=>e.trim().length!==0).map(e=>e.trim()).sort((e,t)=>t.length-e.length).join(`|`),l=r?`(?({chunk:e,highlighted:t%2==1})).filter(({chunk:e})=>e)}var o_={color:`yellow`,wholeWord:!1,caseInsensitive:!0,accentInsensitive:!0},s_=ti(e=>{let{unstyled:t,children:n,highlight:r,highlightStyles:i,color:a,wholeWord:o,caseInsensitive:s,accentInsensitive:c,...l}=Y(`Highlight`,o_,e),u=Array.isArray(r)&&typeof r[0]==`object`,d=new Map,f=e=>{let t=e;return s&&(t=t.toLowerCase()),c&&(t=n_(t)),t},p;p=u?r.map(e=>(e.color&&d.set(f(e.text),e.color),e.text)):Array.isArray(r)?r:[r];let m=a_(n,p,{wholeWord:o,caseInsensitive:s,accentInsensitive:c});return(0,J.jsx)(Af,{unstyled:t,...l,__staticSelector:`Highlight`,children:m.map(({chunk:e,highlighted:n},r)=>n?(0,J.jsx)(e_,{unstyled:t,color:d.get(f(e))||a,style:i,"data-highlight":e,children:e},r):(0,J.jsx)(`span`,{children:e},r))})});s_.classes=Af.classes,s_.displayName=`@mantine/core/Highlight`;var[c_,l_]=x(`HoverCard component was not found in the tree`),u_=(0,o.createContext)({withinGroup:!1}),d_={openDelay:0,closeDelay:0};function f_(e){let{openDelay:t,closeDelay:n,children:r}=Y(`HoverCardGroup`,d_,e);return(0,J.jsx)(u_,{value:{withinGroup:!0},children:(0,J.jsx)(cc,{delay:{open:t,close:n},children:r})})}f_.displayName=`@mantine/core/HoverCardGroup`,f_.extend=e=>e;function p_(e){let{children:t,onMouseEnter:n,onMouseLeave:r,...i}=Y(`HoverCardDropdown`,null,e),a=l_();if((0,o.use)(u_).withinGroup&&a.getFloatingProps&&a.floating){let e=a.getFloatingProps();return(0,J.jsx)(Dl.Dropdown,{ref:a.floating,...e,onMouseEnter:R(n,e.onMouseEnter),onMouseLeave:R(r,e.onMouseLeave),...i,children:t})}let s=R(n,a.openDropdown),c=R(r,a.closeDropdown);return(0,J.jsx)(Dl.Dropdown,{onMouseEnter:s,onMouseLeave:c,...i,children:t})}p_.displayName=`@mantine/core/HoverCardDropdown`;var m_={refProp:`ref`};function h_(e){let{children:t,refProp:n,eventPropsWrapperName:r,...i}=Y(`HoverCardTarget`,m_,e),a=Ft(t);if(!a)throw Error(`HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=l_(),c=(0,o.use)(u_),l=Pe(At(a),s.assignTarget);if(c.withinGroup&&s.getReferenceProps&&s.reference){let e=s.getReferenceProps();return(0,J.jsx)(Dl.Target,{refProp:n,...i,children:(0,o.cloneElement)(a,r?{[r]:{...e,ref:s.reference}}:{...e,ref:s.reference})})}let u={onMouseEnter:R(a.props.onMouseEnter,s.openDropdown),onMouseLeave:R(a.props.onMouseLeave,s.closeDropdown)},d={...r?{[r]:u}:u,ref:l};return(0,J.jsx)(Dl.Target,{refProp:n,...i,children:(0,o.cloneElement)(a,d)})}h_.displayName=`@mantine/core/HoverCardTarget`;function g_(e){let[t,n]=(0,o.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,o.use)(u_).withinGroup,a=Ce(),s=(0,o.useRef)(-1),c=(0,o.useRef)(-1),l=(0,o.useRef)(null),u=(0,o.useCallback)(e=>{l.current=e},[]),d=(0,o.useCallback)(()=>{window.clearTimeout(s.current),window.clearTimeout(c.current)},[]),f=(0,o.useCallback)(t=>{n(t),t?(g(a),e.onOpen?.()):e.onClose?.()},[a,e.onOpen,e.onClose]),{context:p,refs:m}=_c({open:r,onOpenChange:f}),{delay:h,setCurrentId:g}=lc(p,{id:a}),{getReferenceProps:_,getFloatingProps:v}=xc([ic(p,{enabled:!0,delay:i?h:{open:e.openDelay,close:e.closeDelay}}),Cc(p,{role:`dialog`}),hc(p,{enabled:i})]),y=(0,o.useCallback)(()=>{i||(d(),e.openDelay===0||e.openDelay===void 0?f(!0):s.current=window.setTimeout(()=>f(!0),e.openDelay))},[i,d,e.openDelay,f]),b=(0,o.useCallback)(()=>{i||(d(),e.closeDelay===0||e.closeDelay===void 0?f(!1):c.current=window.setTimeout(()=>f(!1),e.closeDelay))},[i,d,e.closeDelay,f]),x=(0,o.useRef)(f);return x.current=f,(0,o.useEffect)(()=>()=>d(),[d]),(0,o.useEffect)(()=>{if(!r||i||typeof IntersectionObserver>`u`)return;let e=l.current;if(!e)return;let t=new IntersectionObserver(()=>{(!e.isConnected||e.getClientRects().length===0)&&(d(),x.current(!1))});return t.observe(e),()=>t.disconnect()},[r,i,d]),{opened:r,reference:m.setReference,floating:m.setFloating,assignTarget:u,getReferenceProps:_,getFloatingProps:v,openDropdown:y,closeDropdown:b}}var __={openDelay:0,closeDelay:150,initiallyOpened:!1};function v_(e){let{children:t,onOpen:n,onClose:r,openDelay:i,closeDelay:a,initiallyOpened:o,...s}=Y(`HoverCard`,__,e),c=g_({openDelay:i,closeDelay:a,defaultOpened:o,onOpen:n,onClose:r});return(0,J.jsx)(c_,{value:{openDropdown:c.openDropdown,closeDropdown:c.closeDropdown,assignTarget:c.assignTarget,getReferenceProps:c.getReferenceProps,getFloatingProps:c.getFloatingProps,reference:c.reference,floating:c.floating},children:(0,J.jsx)(Dl,{...s,opened:c.opened,__staticSelector:`HoverCard`,children:t})})}v_.displayName=`@mantine/core/HoverCard`,v_.Target=h_,v_.Dropdown=p_,v_.Group=f_,v_.extend=e=>e;var y_={root:`m_9e117634`},b_=q((e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:P(t),"--image-object-fit":n}})),x_=ti(e=>{let t=Y(`Image`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,onError:l,src:u,radius:d,fit:f,fallbackSrc:p,mod:m,attributes:h,...g}=t,[_,v]=(0,o.useState)(!u);(0,o.useEffect)(()=>v(!u),[u]);let y=X({name:`Image`,classes:y_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:h,vars:c,varsResolver:b_});return _&&p?(0,J.jsx)(Q,{component:`img`,src:p,...y(`root`),onError:l,mod:[`fallback`,m],...g}):(0,J.jsx)(Q,{component:`img`,...y(`root`),src:u,onError:e=>{l?.(e),v(!0)},mod:m,...g})});x_.classes=y_,x_.varsResolver=b_,x_.displayName=`@mantine/core/Image`;function S_(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,i=typeof t==`number`?t:t.y,a=g(r),o=g(i),[s,c]=e.split(`-`);return s===`top`&&(n[`--indicator-top`]=o,n[`--indicator-translate-y`]=`-50%`),s===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),s===`bottom`&&(n[`--indicator-bottom`]=o,n[`--indicator-translate-y`]=`50%`),c===`start`&&(n[`--indicator-left`]=a,n[`--indicator-translate-x`]=`-50%`),c===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),c===`end`&&(n[`--indicator-right`]=a,n[`--indicator-translate-x`]=`50%`),n}var C_={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},w_={position:`top-end`,offset:0,showZero:!0},T_=q((e,{color:t,position:n,offset:r,size:i,radius:a,zIndex:o,autoContrast:s})=>({root:{"--indicator-color":t?tn(t,e):void 0,"--indicator-text-color":pn(s,e)?un({color:t,theme:e,autoContrast:s}):void 0,"--indicator-size":g(i),"--indicator-radius":a===void 0?void 0:P(a),"--indicator-z-index":o?.toString(),...S_(n,r)}})),E_=Z(e=>{let t=Y(`Indicator`,w_,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,position:l,offset:u,inline:d,label:f,radius:p,color:m,withBorder:h,disabled:g,processing:_,zIndex:v,autoContrast:y,maxValue:b,showZero:x,mod:S,attributes:C,...w}=t,T=X({name:`Indicator`,classes:C_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:T_}),E=!x&&(f===0||f===`0`),D=b!==void 0&&typeof f==`number`&&f>b?`${b}+`:f;return(0,J.jsxs)(Q,{...T(`root`),mod:[{inline:d},S],...w,children:[!g&&!E&&(0,J.jsx)(Q,{mod:{"with-label":!!f,"with-border":h,processing:_},...T(`indicator`),children:D}),c]})});E_.classes=C_,E_.varsResolver=T_,E_.displayName=`@mantine/core/Indicator`;var D_=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],O_={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function k_(e){Object.keys(O_).forEach(t=>{e.style.setProperty(t,O_[t],`important`)})}function A_(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of D_)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var j_=null;function M_(e,t,n=1,r=1/0){j_||(j_=document.createElement(`textarea`),j_.setAttribute(`tabindex`,`-1`),j_.setAttribute(`aria-hidden`,`true`),j_.setAttribute(`aria-label`,`autosize measurement`),k_(j_)),j_.parentNode===null&&document.body.appendChild(j_);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{j_.style[e]=o[e]}),k_(j_),j_.value=t;let c=s===`border-box`?j_.scrollHeight+a:j_.scrollHeight-i;j_.value=t,c=s===`border-box`?j_.scrollHeight+a:j_.scrollHeight-i,j_.value=`x`;let l=j_.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function N_({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,s=(0,o.useRef)(null),c=Pe(s,r),l=(0,o.useRef)(0),u=(0,o.useRef)(0),d=()=>{let n=s.current;if(!n)return;let r=A_(n);if(!r)return;let[i]=M_(r,n.value||n.placeholder||`x`,t,e);l.current!==i&&(l.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},f=e=>{a||d(),n?.(e)};return(0,o.useLayoutEffect)(d),(0,o.useEffect)(()=>{let e=()=>d();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,o.useEffect)(()=>{let e=s.current;if(!e||typeof ResizeObserver>`u`)return;u.current=e.offsetWidth;let t=new ResizeObserver(()=>{s.current&&s.current.offsetWidth!==u.current&&(u.current=s.current.offsetWidth,d())});return t.observe(e),()=>t.disconnect()},[]),(0,o.useEffect)(()=>{let e=()=>d();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,o.useEffect)(()=>{let e=e=>{if(s.current?.form===e.target&&!a){let e=s.current.value;requestAnimationFrame(()=>{s.current&&e!==s.current.value&&d()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,J.jsx)(`textarea`,{rows:t,...i,onChange:f,ref:c})}var P_=Z(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,bottomSection:o,bottomSectionProps:s,...c}=Y([`Input`,`InputWrapper`,`Textarea`],null,e),l=t&&Ot()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,J.jsx)(Zd,{component:l?N_:`textarea`,...c,__staticSelector:i||`Textarea`,__bottomSection:o,__bottomSectionProps:s,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});P_.classes=Zd.classes,P_.displayName=`@mantine/core/Textarea`;function F_(e,t){if(typeof e==`string`&&e.trim().length===0)return!0;try{return t(e),!0}catch{return!1}}var I_={serialize:JSON.stringify,deserialize:JSON.parse,indentSpaces:2},L_=Z(e=>{let{value:t,defaultValue:n,onChange:r,formatOnBlur:i,validationError:a,serialize:s,deserialize:c,onFocus:l,onBlur:u,readOnly:d,error:f,indentSpaces:p,...m}=Y([`Input`,`InputWrapper`,`JsonInput`],I_,e),[h,g]=Le({value:t,defaultValue:n,finalValue:``,onChange:r}),[_,v]=(0,o.useState)(F_(h,c));return(0,J.jsx)(P_,{value:h,onChange:e=>g(e.currentTarget.value),onFocus:e=>{l?.(e),v(!0)},onBlur:e=>{u?.(e);let t=F_(e.currentTarget.value,c);i&&!d&&t&&e.currentTarget.value.trim()!==``&&g(s(c(e.currentTarget.value),null,p)),v(t)},readOnly:d,...m,autoComplete:`off`,__staticSelector:`JsonInput`,error:_?f:a||!0,"data-monospace":!0})});L_.classes=Zd.classes,L_.displayName=`@mantine/core/JsonInput`;var[R_,z_]=x(`List component was not found in tree`),B_={root:`m_abbac491`,item:`m_abb6bec2`,itemWrapper:`m_75cd9f71`,itemIcon:`m_60f83e5b`},V_=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,children:s,mod:c,...l}=Y(`ListItem`,null,e),u=z_(),d=o||u.icon,f={classNames:t,styles:i};return(0,J.jsx)(Q,{...u.getStyles(`item`,{...f,className:n,style:r}),component:`li`,mod:[{"with-icon":!!d,centered:u.center},c],...l,children:(0,J.jsxs)(`div`,{...u.getStyles(`itemWrapper`,f),children:[d&&(0,J.jsx)(`span`,{...u.getStyles(`itemIcon`,f),children:d}),(0,J.jsx)(`span`,{...u.getStyles(`itemLabel`,f),children:s})]})})});V_.classes=B_,V_.displayName=`@mantine/core/ListItem`;var H_={type:`unordered`},U_=q((e,{size:t,spacing:n})=>({root:{"--list-fz":F(t),"--list-lh":I(t),"--list-spacing":N(n)}})),W_=Z(e=>{let t=Y(`List`,H_,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,type:l,withPadding:u,icon:d,spacing:f,center:p,listStyleType:m,mod:h,attributes:g,..._}=t,v=X({name:`List`,classes:B_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:g,vars:s,varsResolver:U_});return(0,J.jsx)(R_,{value:{center:p,icon:d,getStyles:v},children:(0,J.jsx)(Q,{...v(`root`,{style:{listStyleType:m}}),component:l===`unordered`?`ul`:`ol`,mod:[{"with-padding":u,type:d?`none`:m},h],..._,children:c})})});W_.classes=B_,W_.varsResolver=U_,W_.displayName=`@mantine/core/List`,W_.Item=V_;var G_={root:`m_6e45937b`,loader:`m_e8eb006c`,overlay:`m_df587f17`},K_={transitionProps:{transition:`fade`,duration:0},overlayProps:{backgroundOpacity:.75},zIndex:k(`overlay`)},q_=q((e,{zIndex:t})=>({root:{"--lo-z-index":t?.toString()}})),J_=Z(e=>{let t=Y(`LoadingOverlay`,K_,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,transitionProps:c,loaderProps:l,overlayProps:u,visible:d,zIndex:f,attributes:p,onEnter:m,onEntered:h,onExit:g,onExited:_,...v}=t,y=Bn(),b=X({name:`LoadingOverlay`,classes:G_,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:q_}),x={...K_.overlayProps,...u};return(0,J.jsx)(ll,{transition:`fade`,...c,mounted:!!d,onEnter:m,onEntered:h,onExit:g,onExited:_,children:e=>(0,J.jsxs)(Q,{...b(`root`,{style:e}),...v,children:[(0,J.jsx)(Fl,{unstyled:o,...l,...b(`loader`,{className:l?.className,style:l?.style})}),(0,J.jsx)(Qc,{...x,...b(`overlay`,{className:x?.className,style:x?.style}),darkHidden:!0,unstyled:o,color:u?.color||y.white}),(0,J.jsx)(Qc,{...x,...b(`overlay`,{className:x?.className,style:x?.style}),lightHidden:!0,unstyled:o,color:u?.color||y.colors.dark[5]})]})})});J_.classes=G_,J_.varsResolver=q_,J_.displayName=`@mantine/core/LoadingOverlay`;var[Y_,X_]=x(`Menu component was not found in the tree`),Z_=(0,o.createContext)(null);function Q_(e){let{value:t,defaultValue:n,onChange:r,children:i}=Y(`MenuCheckboxGroup`,null,e),[a,s]=Le({value:t,defaultValue:n,finalValue:[],onChange:r});return(0,J.jsx)(Z_,{value:{values:a,onChange:(0,o.useCallback)(e=>{s(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,s])},children:i})}Q_.displayName=`@mantine/core/MenuCheckboxGroup`;var $_=(0,o.createContext)(null);function ev({role:e,checked:t,indicator:n,onSelect:r,color:i,closeMenuOnClick:a,rightSection:s,children:c,disabled:l,dataDisabled:u,className:d,style:f,styles:p,classNames:m,buttonRef:h,others:g}){let _=X_(),v=(0,o.use)($_),y=Bn(),{dir:b}=li(),x=(0,o.useRef)(null),S=R(g.onClick,()=>{u||(r(),a&&_.closeDropdownImmediately())}),C=R(g.onMouseMove,()=>{if(!_.hasSearch)return;let e=x.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==x.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),w=R(g.onKeyDown,e=>{e.key===`ArrowLeft`&&v&&(v.close(),v.focusParentItem())}),T=i?y.variantColorResolver({color:i,theme:y,variant:`light`}):void 0,E=i?en({color:i,theme:y}):null,O=_.alignItemsLabels!==`none`||t;return(0,J.jsxs)(Pc,{onMouseDown:e=>e.preventDefault(),...g,unstyled:_.unstyled,tabIndex:_.menuItemTabIndex,..._.getStyles(`item`,{className:d,style:f,styles:p,classNames:m}),ref:Pe(x,h),role:e,"aria-checked":t,disabled:l,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":l||u||void 0,"data-mantine-stop-propagation":!0,onClick:S,onMouseMove:C,onKeyDown:D({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:_.loop,dir:b,orientation:`vertical`,onKeyDown:w}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.hover},children:[O&&(0,J.jsx)(`div`,{..._.getStyles(`itemIndicator`,{styles:p,classNames:m}),"data-checked":t||void 0,children:t?n:null}),c&&(0,J.jsx)(`div`,{..._.getStyles(`itemLabel`,{styles:p,classNames:m}),"data-menu-item-label":!0,children:c}),s&&(0,J.jsx)(`div`,{..._.getStyles(`itemSection`,{styles:p,classNames:m}),"data-position":`right`,children:s})]})}var tv={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`},nv=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:s,closeMenuOnClick:c,rightSection:l,children:u,disabled:d,"data-disabled":f,value:p,checked:m,defaultChecked:h,onChange:g,checkIcon:_,ref:v,...y}=Y(`MenuCheckboxItem`,null,e),b=X_(),x=(0,o.use)(Z_),S=x&&p!==void 0?x.values.includes(p):void 0,[C,w]=Le({value:m??S,defaultValue:h,finalValue:!1,onChange:g});return(0,J.jsx)(ev,{role:`menuitemcheckbox`,checked:C,indicator:_??b.checkIcon??(0,J.jsx)(qp,{size:10}),onSelect:()=>{g?w(!C):x&&p!==void 0?x.onChange(p):w(!C)},color:s,closeMenuOnClick:c,rightSection:l,disabled:d,dataDisabled:f,className:n,style:r,styles:i,classNames:t,buttonRef:v,others:y,children:u})});nv.classes=tv,nv.displayName=`@mantine/core/MenuCheckboxItem`;function rv(e){let{children:t,disabled:n,longPressDelay:r}=Y(`MenuContextMenu`,null,e),i=Ft(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=X_(),s=pl();return(0,o.cloneElement)(i,ml({childProps:i.props,disabled:n||s.disabled,opened:a.opened,longPressDelay:r,setReference:s.reference,open:()=>a.openDropdown()}))}rv.displayName=`@mantine/core/MenuContextMenu`;var iv=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`MenuDivider`,null,e);return(0,J.jsx)(Q,{...X_().getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});iv.classes=tv,iv.displayName=`@mantine/core/MenuDivider`;var av=500;function ov(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function sv(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function cv({enabled:e,opened:t,getDropdown:n}){let r=(0,o.useRef)({buffer:``,timeoutId:null});return(0,o.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,o.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},av);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||sv(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:s,onMouseLeave:c,onKeyDown:l,children:u,ref:d,...f}=Y(`MenuDropdown`,null,e),p=(0,o.useRef)(null),m=X_(),h=cv({enabled:!m.hasSearch,opened:m.opened,getDropdown:()=>p.current}),g=R(l,e=>{h(e),!(e.defaultPrevented||m.hasSearch)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),p.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),_=R(s,()=>(m.trigger===`hover`||m.trigger===`click-hover`)&&m.openDropdown()),v=R(c,()=>(m.trigger===`hover`||m.trigger===`click-hover`)&&m.closeDropdown());return(0,J.jsxs)(Dl.Dropdown,{...f,onMouseEnter:_,onMouseLeave:v,role:`menu`,"aria-orientation":`vertical`,ref:Pe(d,p),...m.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:g,children:[m.withInitialFocusPlaceholder&&!m.hasSearch&&(0,J.jsx)(`div`,{role:`presentation`,tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),u]})});lv.classes=tv,lv.displayName=`@mantine/core/MenuDropdown`;var uv=ti(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:s,closeMenuOnClick:c,leftSection:l,rightSection:u,children:d,disabled:f,"data-disabled":p,ref:m,...h}=Y(`MenuItem`,null,e),g=X_(),_=(0,o.use)($_),v=Bn(),{dir:y}=li(),b=(0,o.useRef)(null),x=h,S=R(x.onClick,()=>{p||(typeof c==`boolean`?c&&g.closeDropdownImmediately():g.closeOnItemClick&&g.closeDropdownImmediately())}),C=R(x.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`)})}),w=s?v.variantColorResolver({color:s,theme:v,variant:`light`}):void 0,T=s?en({color:s,theme:v}):null,E=R(x.onKeyDown,e=>{e.key===`ArrowLeft`&&_&&(_.close(),_.focusParentItem())});return(0,J.jsxs)(Pc,{onMouseDown:e=>e.preventDefault(),...h,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Pe(b,m),role:`menuitem`,disabled:f,"data-menu-item":!0,"data-disabled":f||p||void 0,"data-mantine-stop-propagation":!0,onClick:S,onMouseMove:C,onKeyDown:D({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:E}),__vars:{"--menu-item-color":T?.isThemeColor&&T?.shade===void 0?`var(--mantine-color-${T.color}-6)`:w?.color,"--menu-item-hover":w?.hover},children:[g.alignItemsLabels===`all`&&(0,J.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),l&&(0,J.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:l}),d&&(0,J.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:d}),u&&(0,J.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:u})]})});uv.classes=tv,uv.displayName=`@mantine/core/MenuItem`;var dv=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`MenuLabel`,null,e);return(0,J.jsx)(Q,{...X_().getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});dv.classes=tv,dv.displayName=`@mantine/core/MenuLabel`;var fv=(0,o.createContext)(null);function pv(e){let{value:t,defaultValue:n,onChange:r,children:i}=Y(`MenuRadioGroup`,null,e),[a,o]=Le({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,J.jsx)(fv,{value:{value:a,onChange:e=>o(e)},children:i})}pv.displayName=`@mantine/core/MenuRadioGroup`;function mv({size:e,style:t,...n}){return(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:g(e),height:g(e),...t},"aria-hidden":!0,...n,children:(0,J.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var hv=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:s,closeMenuOnClick:c,rightSection:l,children:u,disabled:d,"data-disabled":f,value:p,checked:m,onChange:h,checkIcon:g,ref:_,...v}=Y(`MenuRadioItem`,null,e),y=X_(),b=(0,o.use)(fv),x=m??(b?b.value===p:!1);return(0,J.jsx)(ev,{role:`menuitemradio`,checked:x,indicator:g??y.checkIcon??(0,J.jsx)(mv,{size:5}),onSelect:()=>{x||(h?h(p):b&&b.onChange(p))},color:s,closeMenuOnClick:c,rightSection:l,disabled:d,dataDisabled:f,className:n,style:r,styles:i,classNames:t,buttonRef:_,others:v,children:u})});hv.classes=tv,hv.displayName=`@mantine/core/MenuRadioItem`;var gv=`[data-menu-item]:not([data-disabled])`,_v=`[data-menu-active]`;function vv(e){return e?.closest(`[data-menu-dropdown]`)}function yv(e){return e?Array.from(e.querySelectorAll(gv)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function bv(e){e&&e.querySelectorAll(_v).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function xv(e,t){bv(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function Sv(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var Cv={clearSearchOnClose:!0},wv=Z(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:s,ref:c,...l}=Y(`MenuSearch`,Cv,e),u=X_(),d=(0,o.useRef)(null),f=Pe(c,d),p=(0,o.useRef)(i);p.current=i,(0,o.useEffect)(()=>u.registerSearch(),[u.registerSearch]),(0,o.useEffect)(()=>{s?u.searchExitClearRef.current=()=>{p.current?.({currentTarget:{value:``}})}:u.searchExitClearRef.current=null},[s,u.searchExitClearRef]),(0,o.useEffect)(()=>{u.opened||bv(vv(d.current))},[u.opened]);let m=R(i,e=>{bv(vv(e.currentTarget))}),h=R(r,e=>{if(e.defaultPrevented)return;let t=vv(e.currentTarget),n=yv(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=Sv(n);xv(n[r>=n.length-1?u.loop?0:r:r+1]??null,t)}else if(e.key===`ArrowUp`){if(e.preventDefault(),n.length===0)return;let r=Sv(n);xv(n[r<=0?r===-1||u.loop?n.length-1:0:r-1]??null,t)}else if(e.key===`Home`)e.preventDefault(),n.length>0&&xv(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&xv(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[Sv(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowRight`,bubbles:!0}))):t.click())}}),g=u.getStyles(`search`);return(0,J.jsx)(Jd,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...l,ref:f,classNames:[{input:g.className},t],styles:[{input:g.style},n],onKeyDown:h,onChange:m,__staticSelector:`Menu`})});wv.classes=tv,wv.displayName=`@mantine/core/MenuSearch`;var Tv=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:s,onMouseLeave:c,onPointerEnter:l,onPointerLeave:u,onKeyDown:d,children:f,ref:p,...m}=Y(`MenuSubDropdown`,null,e),h=(0,o.useRef)(null),g=X_(),_=(0,o.use)($_),v=cv({enabled:!g.hasSearch,opened:_?.opened??!1,getDropdown:()=>h.current}),y=R(d,e=>{v(e),!e.ctrlKey&&!e.metaKey&&!e.altKey&&e.key.length===1&&e.key!==` `&&e.stopPropagation()}),b=_?.getFloatingProps({onMouseEnter:s,onMouseLeave:c,onPointerEnter:l,onPointerLeave:u});return(0,J.jsx)(Dl.Dropdown,{...m,...b,role:`menu`,"aria-orientation":`vertical`,ref:Pe(p,h,_?.setFloating),...g.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:f})});Tv.classes=tv,Tv.displayName=`@mantine/core/MenuSubDropdown`;var Ev=ti(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,closeMenuOnClick:p,ref:m,...h}=Y(`MenuSubItem`,null,e),g=X_(),_=(0,o.use)($_),v=Bn(),{dir:y}=li(),b=(0,o.useRef)(null),x=h,S=s?v.variantColorResolver({color:s,theme:v,variant:`light`}):void 0,C=s?en({color:s,theme:v}):null,w=R(x.onKeyDown,e=>{e.key===`ArrowRight`&&(_?.open(),_?.focusFirstItem()),e.key===`ArrowLeft`&&_?.parentContext&&(_.parentContext.close(),_.parentContext.focusParentItem())}),T=R(x.onClick,()=>{!f&&p&&g.closeDropdownImmediately()}),E=R(x.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`)})}),O=_?.getReferenceProps({onMouseEnter:x.onMouseEnter,onMouseLeave:x.onMouseLeave,onPointerEnter:x.onPointerEnter,onPointerLeave:x.onPointerLeave});return(0,J.jsxs)(Pc,{onMouseDown:e=>e.preventDefault(),...h,...O,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,...g.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Pe(b,m,_?.setReference),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:T,onMouseMove:E,onKeyDown:D({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:g.loop,dir:y,orientation:`vertical`,onKeyDown:w}),__vars:{"--menu-item-color":C?.isThemeColor&&C?.shade===void 0?`var(--mantine-color-${C.color}-6)`:S?.color,"--menu-item-hover":S?.hover},children:[g.alignItemsLabels===`all`&&(0,J.jsx)(`div`,{...g.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),c&&(0,J.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,J.jsx)(`div`,{...g.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:u}),(0,J.jsx)(`div`,{...g.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l||(0,J.jsx)(lf,{...g.getStyles(`chevron`),size:14})})]})});Ev.classes=tv,Ev.displayName=`@mantine/core/MenuSubItem`;function Dv({children:e,refProp:t}){if(!b(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 X_(),(0,J.jsx)(Dl.Target,{refProp:t,popupType:`menu`,children:e})}Dv.displayName=`@mantine/core/MenuSubTarget`;var Ov={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function kv(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:s,onChange:c,...l}=Y(`MenuSub`,Ov,e),u=Ce(),[d,f]=Le({value:s,finalValue:!1,onChange:c}),p=(0,o.use)($_),m=X_(),{dir:h}=li(),g=qc(h,i),_=p?.registerOpenSub??m.registerOpenSub,v=(0,o.useRef)(null),y=(0,o.useCallback)(e=>{let t=v.current;return t&&t!==e&&t(),v.current=e,()=>{v.current===e&&(v.current=null)}},[]),b=(0,o.useRef)(f);b.current=f;let x=(0,o.useCallback)(()=>b.current(!0),[]),S=(0,o.useCallback)(()=>b.current(!1),[]);(0,o.useEffect)(()=>{if(d)return _(S)},[d,_,S]);let{context:C,refs:w}=_c({placement:g,open:d,onOpenChange:e=>{e?x():S()}}),{getReferenceProps:T,getFloatingProps:E}=xc([ic(C,{handleClose:a?Dc(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,J.jsx)($_,{value:{opened:d,close:S,open:x,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${u}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${u}-target`)?.focus()},16),parentContext:p,setReference:w.setReference,setFloating:w.setFloating,getReferenceProps:T,getFloatingProps:E,registerOpenSub:y},children:(0,J.jsx)(Dl,{opened:d,onChange:e=>e?x():S(),withinPortal:!1,withArrow:!1,id:u,position:i,...l,children:t})})}kv.extend=e=>e,kv.displayName=`@mantine/core/MenuSub`,kv.Target=Dv,kv.Dropdown=Tv,kv.Item=Ev;var Av={refProp:`ref`};function jv(e){let{children:t,refProp:n,...r}=Y(`MenuTarget`,Av,e),i=Ft(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=X_(),s=i.props,c=R(s.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),l=R(s.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),u=R(s.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,J.jsx)(Dl.Target,{refProp:n,popupType:`menu`,...r,children:(0,o.cloneElement)(i,{onClick:c,onMouseEnter:l,onMouseLeave:u,"data-expanded":a.opened?!0:void 0})})}jv.displayName=`@mantine/core/MenuTarget`;var Mv={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},Nv=Z(e=>{let t=Y(`Menu`,Mv,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:s,trapFocus:c,onChange:l,closeOnItemClick:u,loop:d,closeOnEscape:f,trigger:p,openDelay:m,closeDelay:h,classNames:g,styles:_,unstyled:v,variant:y,vars:b,menuItemTabIndex:x,keepMounted:S,withInitialFocusPlaceholder:C,attributes:w,onExitTransitionEnd:T,alignItemsLabels:E,checkIcon:D,...O}=t,k=X({name:`Menu`,classes:tv,props:t,classNames:g,styles:_,unstyled:v,attributes:w}),[A,j]=Le({value:a,defaultValue:s,finalValue:!1,onChange:l}),[M,N]=(0,o.useState)(!1),P=()=>{j(!1),N(!1),A&&i?.()},F=()=>{j(!0),!A&&r?.()},I=()=>{A?P():F()},{openDropdown:L,closeDropdown:R}=Jc({open:F,close:P,closeDelay:h,openDelay:m}),z=(0,o.useRef)(null),B=(0,o.useCallback)(e=>{let t=z.current;return t&&t!==e&&t(),z.current=e,()=>{z.current===e&&(z.current=null)}},[]),V=(0,o.useRef)(0),[ee,U]=(0,o.useState)(!1),te=(0,o.useCallback)(()=>(V.current+=1,V.current===1&&U(!0),()=>{--V.current,V.current===0&&U(!1)}),[]),ne=(0,o.useRef)(null),re=()=>{ne.current?.(),T?.()},ie=e=>H(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:W,resolvedStyles:ae}=or({classNames:g,styles:_,props:t});return(0,J.jsx)(Y_,{value:{getStyles:k,opened:A,toggleDropdown:I,getItemIndex:ie,openedViaClick:M,setOpenedViaClick:N,closeOnItemClick:u,closeDropdown:p===`click`?P:R,openDropdown:p===`click`?F:L,closeDropdownImmediately:P,loop:d,trigger:p,unstyled:v,menuItemTabIndex:x,withInitialFocusPlaceholder:C,registerOpenSub:B,hasSearch:ee,registerSearch:te,searchExitClearRef:ne,alignItemsLabels:E,checkIcon:D},children:(0,J.jsx)(Dl,{returnFocus:!0,...O,opened:A,onChange:I,defaultOpened:s,trapFocus:S?!1:c,closeOnEscape:f,__staticSelector:`Menu`,classNames:W,styles:ae,unstyled:v,variant:y,keepMounted:S,onExitTransitionEnd:re,children:n})})});Nv.displayName=`@mantine/core/Menu`,Nv.classes=tv,Nv.Item=uv,Nv.Label=dv,Nv.Dropdown=lv,Nv.Target=jv,Nv.Divider=iv,Nv.Search=wv,Nv.Sub=kv,Nv.CheckboxItem=nv,Nv.CheckboxGroup=Q_,Nv.RadioItem=hv,Nv.RadioGroup=pv,Nv.ContextMenu=rv;var[Pv,Fv]=x(`Menubar component was not found in the tree`),[Iv,Lv]=x(`Menubar.Menu component was not found in the tree`);function Rv(e){let{onKeyDown:t,onMouseEnter:n,onMouseLeave:r,...i}=e,a=Fv(),o=Lv(),{dir:s}=li(),c=R(n,()=>a.cancelClose()),l=R(r,()=>{a.trigger===`hover`&&a.scheduleClose()}),u=e=>{let t=a.getAdjacentIndex(o.index,e);t!==o.index&&(a.setActiveIndex(t),a.openMenu(t,`click`),a.focusMenuItem(t,`first`))},d=R(t,e=>{let t=e.target;if(e.key===`Tab`){a.focusTarget(o.index),a.closeMenu();return}if(t.closest(`[data-menu-dropdown]`)!==e.currentTarget)return;let n=s===`rtl`?`ArrowLeft`:`ArrowRight`,r=s===`rtl`?`ArrowRight`:`ArrowLeft`;if(e.key===n){if(t.closest(`[data-menu-item]`)?.hasAttribute(`data-sub-menu-item`))return;e.preventDefault(),u(1)}else if(e.key===r)e.preventDefault(),u(-1);else if(e.key===`Escape`){let e=o.index;a.setActiveIndex(e),window.setTimeout(()=>a.focusTarget(e),0)}});return(0,J.jsx)(Nv.Dropdown,{...i,"data-menubar-dropdown":a.id,"data-mantine-stop-propagation":!0,onKeyDown:d,onMouseEnter:c,onMouseLeave:l})}Rv.displayName=`@mantine/core/MenubarDropdown`;var zv=150;function Bv({children:e,transitionProps:t,...n}){let r=Fv(),i=Ce(),[a,s]=(0,o.useState)(-1);ce(()=>{let e=r.getMenuIndex(i);s(t=>t===e?t:e)});let c=r.openIndex!==null&&a!==-1&&r.openIndex===a,l=e=>{e?(r.openMenu(a,`click`),r.setActiveIndex(a)):r.closeMenu()},u=t?.duration??zv,d=t?.exitDuration??u,f=r.getPreviousOpenIndex()===null,p=r.openIndex===null,m={...t,duration:f?u:0,exitDuration:p?d:0};return(0,J.jsx)(Iv,{value:{id:i,index:a,opened:c},children:(0,J.jsx)(Nv,{position:r.position,loop:r.loop,unstyled:r.unstyled,menuItemTabIndex:-1,trapFocus:!1,...n,transitionProps:m,opened:c,onChange:l,trigger:`click`,returnFocus:!1,children:e})})}Bv.displayName=`@mantine/core/MenubarMenu`;var Vv={refProp:`ref`};function Hv(e){return e.key.length===1&&e.key!==` `&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function Uv(e){return(e.textContent??``).trim().toLowerCase()}function Wv(e){let{children:t,refProp:n,className:r,style:i,disabled:a,"data-disabled":o,onClick:s,onMouseEnter:c,onMouseLeave:l,onFocus:u,onKeyDown:d,...f}=Y(`MenubarTarget`,Vv,e),p=Fv(),m=Lv(),{dir:h}=li(),g=a||o,_=p.activeIndex===m.index,v=m.index===-1&&!g,y=e=>{let t=p.getAdjacentIndex(m.index,e);p.setActiveIndex(t),p.focusTarget(t),p.openIndex!==null&&p.openMenu(t,`click`)},b=e=>{p.openMenu(m.index,`click`),p.setActiveIndex(m.index),p.focusMenuItem(m.index,e)},x=e=>{let t=p.getTargets();if(t.length===0)return;let n=e.key.toLowerCase();for(let r=1;r<=t.length;r+=1){let i=(m.index+r)%t.length,a=t[i];if(a&&!a.disabled&&!a.hasAttribute(`data-disabled`)&&Uv(a).startsWith(n)){e.preventDefault(),p.setActiveIndex(i),a.focus(),p.openIndex!==null&&p.openMenu(i,`click`);break}}},S=R(s,()=>{g||(p.openIndex===m.index&&p.getOpenSource()!==`hover`?p.closeMenu():(p.openMenu(m.index,`click`),p.setActiveIndex(m.index)))}),C=R(c,()=>{g||(p.cancelClose(),(p.trigger===`hover`||p.openIndex!==null&&p.openIndex!==m.index)&&(p.openMenu(m.index,`hover`),p.setActiveIndex(m.index)))}),w=R(l,()=>{p.trigger===`hover`&&p.scheduleClose()}),T=R(u,()=>p.setActiveIndex(m.index)),E=R(d,e=>{if(g)return;let t=h===`rtl`?`ArrowLeft`:`ArrowRight`,n=h===`rtl`?`ArrowRight`:`ArrowLeft`;if(e.key===t)e.preventDefault(),y(1);else if(e.key===n)e.preventDefault(),y(-1);else if(e.key===`ArrowDown`||e.key===`Enter`||e.key===` `)e.preventDefault(),b(`first`);else if(e.key===`ArrowUp`)e.preventDefault(),b(`last`);else if(e.key===`Home`){e.preventDefault();let t=p.getEnabledIndexes();t.length>0&&(p.setActiveIndex(t[0]),p.focusTarget(t[0]))}else if(e.key===`End`){e.preventDefault();let t=p.getEnabledIndexes();if(t.length>0){let e=t[t.length-1];p.setActiveIndex(e),p.focusTarget(e)}}else e.key===`Escape`||e.key===`Tab`?m.opened&&p.closeMenu():Hv(e)&&x(e)});return(0,J.jsx)(Dl.Target,{refProp:n,popupType:`menu`,children:(0,J.jsx)(Pc,{...f,unstyled:p.unstyled,role:`menuitem`,tabIndex:_||v?0:-1,disabled:a,"data-menubar-target":!0,"data-menubar-id":m.id,"data-disabled":o||void 0,"data-expanded":m.opened||void 0,"data-mantine-stop-propagation":m.opened||void 0,...p.getStyles(`target`,{className:r,style:i}),onClick:S,onMouseEnter:C,onMouseLeave:w,onFocus:T,onKeyDown:E,children:t})})}Wv.displayName=`@mantine/core/MenubarTarget`;var Gv={root:`m_de2654db`,target:`m_f08a2b4a`},Kv={trigger:`click`,loop:!0,position:`bottom-start`},qv=Z(e=>{let t=Y(`Menubar`,Kv,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,children:l,openIndex:u,defaultOpenIndex:d,onOpenChange:f,trigger:p,loop:m,position:h,attributes:g,mod:_,ref:v,...y}=t,b=X({name:`Menubar`,classes:Gv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:g}),x=(0,o.useRef)(null),S=Ce(),[C,w]=Le({value:u,defaultValue:d,finalValue:null,onChange:f}),[T,E]=(0,o.useState)(0),D=(0,o.useRef)(null),O=(0,o.useCallback)((e,t)=>{D.current=t,w(e)},[w]),k=(0,o.useCallback)(()=>{D.current=null,w(null)},[w]),A=(0,o.useRef)(-1),j=(0,o.useCallback)(()=>{window.clearTimeout(A.current)},[]),M=(0,o.useCallback)(()=>{window.clearTimeout(A.current),A.current=window.setTimeout(k,120)},[k]);ce(()=>()=>window.clearTimeout(A.current),[]);let N=(0,o.useCallback)(()=>D.current,[]),P=(0,o.useRef)(C),F=(0,o.useCallback)(()=>P.current,[]);ce(()=>{P.current=C});let I=(0,o.useCallback)(()=>Array.from(x.current?.querySelectorAll(`[data-menubar-target]`)??[]),[]),L=(0,o.useCallback)(e=>I().findIndex(t=>t.getAttribute(`data-menubar-id`)===e),[I]),R=(0,o.useCallback)(()=>I().reduce((e,t,n)=>(!t.disabled&&!t.hasAttribute(`data-disabled`)&&e.push(n),e),[]),[I]),z=(0,o.useCallback)(e=>{I()[e]?.focus()},[I]),B=(0,o.useCallback)((e,t)=>{window.setTimeout(()=>{let n=I()[e]?.getAttribute(`aria-controls`),r=(n?document.getElementById(n):document.querySelector(`[data-menubar-dropdown="${S}"]`))?.querySelectorAll(`[data-menu-item]:not([data-disabled])`);r&&r.length>0&&(t===`first`?r[0]:r[r.length-1])?.focus()},40)},[I]),V=(0,o.useCallback)((e,t)=>{let n=R();if(n.length===0)return e;let r=n.indexOf(e),i=r===-1?0:r+t;return i=m?(i+n.length)%n.length:Math.max(0,Math.min(n.length-1,i)),n[i]??e},[R,m]);return ce(()=>{let e=R();if(e.length!==0){if(C!==null&&e.includes(C)){T!==C&&E(C);return}e.includes(T)||E(e[0])}}),(0,J.jsx)(Pv,{value:{getStyles:b,id:S,openIndex:C,setOpenIndex:w,openMenu:O,closeMenu:k,scheduleClose:M,cancelClose:j,getOpenSource:N,getPreviousOpenIndex:F,activeIndex:T,setActiveIndex:E,trigger:p,loop:m,position:h,unstyled:s,getMenuIndex:L,getTargets:I,getEnabledIndexes:R,getAdjacentIndex:V,focusTarget:z,focusMenuItem:B},children:(0,J.jsx)(Q,{ref:Pe(v,x),role:`menubar`,"aria-orientation":`horizontal`,mod:_,...b(`root`),...y,"data-menubar":!0,children:l})})});qv.classes=Gv,qv.displayName=`@mantine/core/Menubar`,qv.Menu=Bv,qv.Target=Wv,qv.Dropdown=Rv;var[Jv,Yv]=x(`Modal component was not found in tree`),Xv={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},Zv=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ModalBody`,null,e);return(0,J.jsx)(gd,{...Yv().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});Zv.classes=Xv,Zv.displayName=`@mantine/core/ModalBody`;var Qv=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ModalCloseButton`,null,e);return(0,J.jsx)(_d,{...Yv().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});Qv.classes=Xv,Qv.displayName=`@mantine/core/ModalCloseButton`;var $v=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=Y(`ModalContent`,null,e),l=Yv(),u=l.scrollAreaComponent||Td;return(0,J.jsx)(vd,{...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,J.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${g(l.yOffset)} * 2))`},children:o})})});$v.classes=Xv,$v.displayName=`@mantine/core/ModalContent`;var ey=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ModalHeader`,null,e);return(0,J.jsx)(yd,{...Yv().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});ey.classes=Xv,ey.displayName=`@mantine/core/ModalHeader`;var ty=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ModalOverlay`,null,e);return(0,J.jsx)(Sd,{...Yv().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});ty.classes=Xv,ty.displayName=`@mantine/core/ModalOverlay`;var ny={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:k(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},ry=q((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:P(t),"--modal-size":M(n,`modal-size`),"--modal-y-offset":g(r),"--modal-x-offset":g(i)}})),iy=Z(e=>{let t=Y(`ModalRoot`,ny,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,_=X({name:m,classes:Xv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:ry});return(0,J.jsx)(Jv,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,J.jsx)(pd,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===Ac.Autosize||void 0,unstyled:o,...g})})});iy.classes=Xv,iy.varsResolver=ry,iy.displayName=`@mantine/core/ModalRoot`;var ay=(0,o.createContext)(null);function oy({children:e}){let[t,n]=(0,o.useState)([]),[r,i]=(0,o.useState)(k(`modal`));return(0,J.jsx)(ay,{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},children:e})}oy.displayName=`@mantine/core/ModalStack`;var sy=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ModalTitle`,null,e);return(0,J.jsx)(wd,{...Yv().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});sy.classes=Xv,sy.displayName=`@mantine/core/ModalTitle`;var cy={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:k(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},ly=Z(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:s,radius:c,opened:l,stackId:u,zIndex:d,...f}=Y(`Modal`,cy,e),p=(0,o.use)(ay),m=!!t||i,h=p&&u?{closeOnEscape:p.currentId===u,trapFocus:p.currentId===u,zIndex:p.getZIndex(u)}:{},g=n===!1?!1:u&&p?p.currentId===u:l;return(0,o.useEffect)(()=>{p&&u&&(l?p.addModal(u,d||k(`modal`)):p.removeModal(u))},[l,u,d]),(0,J.jsxs)(iy,{radius:c,opened:l,zIndex:p&&u?p.getZIndex(u):d,...f,...h,children:[n&&(0,J.jsx)(ty,{visible:g,transitionProps:p&&u?{duration:0}:void 0,...r}),(0,J.jsxs)($v,{radius:c,__hidden:p&&u&&l?u!==p.currentId:!1,children:[m&&(0,J.jsxs)(ey,{children:[t&&(0,J.jsx)(sy,{children:t}),i&&(0,J.jsx)(Qv,{...a})]}),(0,J.jsx)(Zv,{children:s})]})]})});ly.classes=Xv,ly.displayName=`@mantine/core/Modal`,ly.Root=iy,ly.Overlay=ty,ly.Content=$v,ly.Body=Zv,ly.Header=ey,ly.Title=sy,ly.CloseButton=Qv,ly.Stack=oy;var uy=(0,o.createContext)(null),dy={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},fy=(0,o.createContext)(null),py=q((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?M(n,`pg-gap`):M(t)}})),my=Z(e=>{let t=Y(`PillGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,size:l,disabled:u,attributes:d,...f}=t,p=(0,o.use)(uy)?.size||l||void 0,m=X({name:`PillGroup`,classes:dy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:d,vars:c,varsResolver:py,stylesCtx:{size:p},rootSelector:`group`});return(0,J.jsx)(fy,{value:{size:p,disabled:u},children:(0,J.jsx)(Q,{size:p,...m(`group`),...f})})});my.classes=dy,my.varsResolver=py,my.displayName=`@mantine/core/PillGroup`;var hy={variant:`default`},gy=q((e,{radius:t},{size:n})=>({root:{"--pill-fz":M(n,`pill-fz`),"--pill-height":M(n,`pill-height`),"--pill-radius":t===void 0?void 0:P(t)}})),_y=Z(e=>{let t=Y(`Pill`,hy,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,variant:l,children:u,withRemoveButton:d,onRemove:f,removeButtonProps:p,radius:m,size:h,disabled:g,mod:_,attributes:v,...y}=t,b=(0,o.use)(fy),x=(0,o.use)(uy),S=h||b?.size||void 0,C=x?.variant===`filled`?`contrast`:l||`default`,w=X({name:`Pill`,classes:dy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:v,vars:c,varsResolver:gy,stylesCtx:{size:S}});return(0,J.jsxs)(Q,{component:`span`,variant:C,size:S,...w(`root`,{variant:C}),mod:[{"with-remove":d&&!g,disabled:g||b?.disabled},_],...y,children:[(0,J.jsx)(`span`,{...w(`label`),children:u}),d&&(0,J.jsx)(Jl,{variant:`transparent`,radius:m,tabIndex:-1,"aria-hidden":!0,unstyled:s,...p,...w(`remove`,{className:p?.className,style:p?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),p?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),f?.(),p?.onClick?.(e)}})]})});_y.classes=dy,_y.varsResolver=gy,_y.displayName=`@mantine/core/Pill`,_y.Group=my;var vy={field:`m_45c4369d`},yy={type:`visible`},by=Z(e=>{let t=Y(`PillsInputField`,yy,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,type:l,disabled:u,id:d,pointer:f,mod:p,attributes:m,ref:h,...g}=t,_=(0,o.use)(uy),v=(0,o.use)(Ad),y=X({name:`PillsInputField`,classes:vy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:m,rootSelector:`field`}),b=u||_?.disabled;return(0,J.jsx)(Q,{component:`input`,ref:Pe(h,_?.fieldRef),"data-type":l,disabled:b,mod:[{disabled:b,pointer:f},p],...y(`field`),...g,id:v?.inputId||d,"aria-invalid":_?.hasError,"aria-describedby":v?.describedBy,type:`text`,onMouseDown:e=>!f&&e.stopPropagation()})});by.classes=vy,by.displayName=`@mantine/core/PillsInputField`;var xy={size:`sm`},Sy=Z(e=>{let{children:t,onMouseDown:n,onClick:r,size:i,disabled:a,__staticSelector:s,error:c,variant:l,...u}=Y([`Input`,`InputWrapper`,`PillsInput`],xy,e),d=(0,o.useRef)(null);return(0,J.jsx)(uy,{value:{fieldRef:d,size:i,disabled:a,hasError:!!c,variant:l},children:(0,J.jsx)(Zd,{size:i,error:c,variant:l,component:`div`,"data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),n?.(e),d.current?.focus()},onClick:e=>{e.preventDefault(),e.currentTarget.closest(`fieldset`)?.disabled||(d.current?.focus(),r?.(e))},...u,multiline:!0,disabled:a,__staticSelector:s||`PillsInput`,withAria:!1,children:t})})});Sy.displayName=`@mantine/core/PillsInput`,Sy.classes=Zd.classes,Sy.Field=by;function Cy(e){return typeof e==`string`?e.trim().toLowerCase():e}function wy({data:e,value:t}){let n=t.map(Cy);return e.reduce((e,t)=>(om(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(Cy(e.value))===-1)}):n.indexOf(Cy(t.value))===-1&&e.push(t),e),[])}var Ty={xs:41,sm:50,md:60,lg:72,xl:89},Ey={maxValues:1/0,withCheckIcon:!0,checkIconPosition:`left`,hiddenInputValuesDivider:`,`,clearSearchOnChange:!0,openOnFocus:!0,size:`sm`},Dy=ei(e=>{let t=Y([`Input`,`InputWrapper`,`MultiSelect`],Ey,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,size:l,value:u,defaultValue:d,onChange:f,onKeyDown:p,variant:m,data:h,dropdownOpened:g,defaultDropdownOpened:_,onDropdownOpen:v,onDropdownClose:y,selectFirstOptionOnChange:b,selectFirstOptionOnDropdownOpen:x,onOptionSubmit:S,comboboxProps:C,filter:w,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,searchValue:k,defaultSearchValue:A,onSearchChange:j,readOnly:M,disabled:N,onFocus:P,onBlur:F,radius:I,rightSection:L,rightSectionWidth:R,rightSectionPointerEvents:z,rightSectionProps:B,leftSection:V,leftSectionWidth:H,leftSectionPointerEvents:ee,leftSectionProps:U,inputContainer:te,inputWrapperOrder:ne,withAsterisk:re,labelProps:ie,descriptionProps:W,errorProps:ae,successProps:G,wrapperProps:K,description:oe,label:se,error:ce,success:le,maxValues:ue,searchable:de,nothingFoundMessage:fe,withCheckIcon:pe,withAlignedLabels:me,checkIconPosition:he,hidePickedOptions:ge,withErrorStyles:_e,withSuccessStyles:ve,name:ye,form:be,id:xe,clearable:Se,clearSectionMode:we,clearButtonProps:Te,hiddenInputProps:Ee,placeholder:De,hiddenInputValuesDivider:Oe,required:ke,mod:Ae,renderOption:je,renderPill:Me,onRemove:Ne,onClear:Pe,onMaxValues:Fe,scrollAreaProps:Ie,chevronColor:Re,attributes:ze,clearSearchOnChange:Be,openOnFocus:Ve,loading:He,loadingPosition:Ue,withPillsReorder:We,...Ge}=t,Ke=Ce(xe),qe=ap(h),Je=op(qe),Ye=(0,o.useRef)({}),Xe=Pp({opened:g,defaultOpened:_,onDropdownOpen:()=>{v?.(),x&&Xe.selectFirstOption()},onDropdownClose:()=>{y?.(),Xe.resetSelectedOption()}}),{styleProps:Ze,rest:{type:Qe,autoComplete:$e,...et}}=Er(Ge),[tt,nt]=Le({value:u,defaultValue:d,finalValue:[],onChange:f}),{getPillProps:rt,getListProps:it,handleInputKeyDown:at}=gm({value:tt,onChange:nt,enabled:We&&!N&&!M}),[ot,st]=Le({value:k,defaultValue:A,finalValue:``,onChange:j}),ct=e=>{st(e),Xe.resetSelectedOption()},lt=X({name:`MultiSelect`,classes:{},props:t,classNames:n,styles:a,unstyled:s,attributes:ze}),{resolvedClassNames:ut,resolvedStyles:dt}=or({props:t,styles:a,classNames:n}),ft=e=>{p?.(e),!e.defaultPrevented&&(e.key===` `&&!de&&(e.preventDefault(),Xe.toggleDropdown()),e.key===`Backspace`&&ot.length===0&&tt.length>0&&(Ne?.(tt[tt.length-1]),nt(tt.slice(0,tt.length-1))),at(e))},pt=tt.map((e,t)=>{let n=Je[`${e}`]||Ye.current[`${e}`],r=rt(t);return Me?(0,J.jsx)(o.Fragment,{children:Me({option:n,value:e,onRemove:()=>{nt(tt.filter(t=>e!==t)),Ne?.(e)},disabled:N,reorderProps:r})},`${e}-${t}`):(0,J.jsx)(_y,{withRemoveButton:!M&&!Je[`${e}`]?.disabled,onRemove:()=>{nt(tt.filter(t=>e!==t)),Ne?.(e)},unstyled:s,disabled:N,...lt(`pill`),...r,children:n?.label||e},`${e}-${t}`)});(0,o.useEffect)(()=>{b&&Xe.selectFirstOption()},[b,ot]),(0,o.useEffect)(()=>{tt.forEach(e=>{`${e}`in Je&&(Ye.current[`${e}`]=Je[`${e}`])})},[Je,tt]);let mt=(0,J.jsx)(Lp.ClearButton,{...Te,onClear:()=>{Pe?.(),nt([]),ct(``)}}),ht=wy({data:qe,value:tt}),gt=Se&&tt.length>0&&!N&&!M,_t=gt?{paddingInlineEnd:Ty[l]??Ty.sm}:void 0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(Lp,{store:Xe,classNames:ut,styles:dt,unstyled:s,size:l,readOnly:M,__staticSelector:`MultiSelect`,attributes:ze,floatingHeight:O,onOptionSubmit:e=>{S?.(e),Be&&ct(``),Xe.updateSelectedOptionIndex(`selected`),tt.includes(Je[`${e}`].value)?(nt(tt.filter(t=>t!==Je[`${e}`].value)),Ne?.(Je[`${e}`].value)):tt.lengthde?Xe.openDropdown():Xe.toggleDropdown(),"data-expanded":Xe.dropdownOpened||void 0,id:Ke,required:ke,mod:Ae,attributes:ze,children:(0,J.jsxs)(_y.Group,{attributes:ze,disabled:N,unstyled:s,...lt(`pillsList`,{style:_t}),...it(),children:[pt,(0,J.jsx)(Lp.EventsTarget,{autoComplete:$e,withExpandedAttribute:!0,children:(0,J.jsx)(Sy.Field,{...et,id:Ke,placeholder:De,type:!de&&!De?`hidden`:`visible`,...lt(`inputField`),unstyled:s,onFocus:e=>{P?.(e),Ve&&de&&Xe.openDropdown()},onBlur:e=>{F?.(e),Xe.closeDropdown(),ct(``)},onKeyDown:ft,value:ot,onChange:e=>{ct(e.currentTarget.value),de&&Xe.openDropdown(),b&&Xe.selectFirstOption()},disabled:N,readOnly:M||!de,pointer:!de})})]})})}),(0,J.jsx)(fm,{data:ge?ht:qe,hidden:M||N,filter:w,search:ot,limit:T,hiddenWhenEmpty:!fe,withScrollArea:E,maxDropdownHeight:D,filterOptions:de,value:tt,checkIconPosition:he,withCheckIcon:pe,withAlignedLabels:me,nothingFoundMessage:fe,unstyled:s,labelId:se?`${Ke}-label`:void 0,"aria-label":se?void 0:Ge[`aria-label`],renderOption:je,scrollAreaProps:Ie})]}),(0,J.jsx)(Lp.HiddenInput,{name:ye,valuesDivider:Oe,value:tt,form:be,disabled:N,...Ee})]})});Dy.classes={...Zd.classes,...Lp.classes},Dy.displayName=`@mantine/core/MultiSelect`;function Oy(e){return`group`in e}function ky({data:e}){if(Oy(e)){let t=e.items.map(e=>(0,J.jsx)(ky,{data:e},e.value));return(0,J.jsx)(`optgroup`,{label:e.group,children:t})}let{value:t,label:n,...r}=e;return(0,J.jsx)(`option`,{value:e.value,...r,children:e.label})}ky.displayName=`@mantine/core/NativeSelectOption`;var Ay={size:`sm`,rightSectionPointerEvents:`none`},jy=Z(e=>{let{data:t,children:n,size:r,error:i,rightSection:a,unstyled:o,...s}=Y([`Input`,`InputWrapper`,`NativeSelect`],Ay,e),c=ap(t).map((e,t)=>(0,J.jsx)(ky,{data:e},t));return(0,J.jsx)(Zd,{component:`select`,...s,__staticSelector:`NativeSelect`,size:r,pointer:!0,error:i,unstyled:o,rightSection:a||(0,J.jsx)(up,{size:r,error:i,unstyled:o}),children:n||c})});jy.classes=Zd.classes,jy.displayName=`@mantine/core/NativeSelect`;var My={root:`m_f0824112`,description:`m_57492dcc`,section:`m_690090b5`,label:`m_1f6ac4c4`,body:`m_f07af9d2`,children:`m_e17b862f`,chevron:`m_1fd8a00b`},Ny=q((e,{variant:t,color:n,childrenOffset:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:t||`light`,autoContrast:i});return{root:{"--nl-bg":n||t?a.background:void 0,"--nl-hover":n||t?a.hover:void 0,"--nl-color":n||t?a.color:void 0},children:{"--nl-offset":N(r)}}}),Py=ti(e=>{let t=Y(`NavLink`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,opened:c,defaultOpened:l,onChange:u,children:d,active:f,disabled:p,leftSection:m,rightSection:h,label:g,description:_,disableRightSectionRotation:v,noWrap:y,childrenOffset:b,autoContrast:x,mod:S,attributes:C,onClick:w,onKeyDown:T,keepMounted:E,...D}=t,O=X({name:`NavLink`,props:t,classes:My,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Ny}),[k,A]=Le({value:c,defaultValue:l,finalValue:!1,onChange:u}),j=!!d,M=e=>{w?.(e),j&&(e.preventDefault(),A(!k))};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(Pc,{...O(`root`),component:`a`,onClick:M,onKeyDown:e=>{T?.(e),e.nativeEvent.code===`Space`&&j&&(e.preventDefault(),A(!k))},unstyled:o,mod:[{disabled:p,active:f,expanded:k},S],...D,children:[m&&(0,J.jsx)(Q,{component:`span`,...O(`section`),mod:{position:`left`},children:m}),(0,J.jsxs)(Q,{...O(`body`),mod:{"no-wrap":y},children:[(0,J.jsx)(Q,{component:`span`,...O(`label`),children:g}),(0,J.jsx)(Q,{component:`span`,mod:{active:f},...O(`description`),children:_})]}),(j||h!==void 0)&&(0,J.jsx)(Q,{...O(`section`),component:`span`,mod:{rotate:k&&!v,position:`right`},children:j&&h===void 0?(0,J.jsx)(lf,{...O(`chevron`)}):h})]}),j&&(0,J.jsx)(fi,{expanded:k,keepMounted:E,...O(`collapse`),children:(0,J.jsx)(`div`,{...O(`children`),children:d})})]})});Py.classes=My,Py.varsResolver=Ny,Py.displayName=`@mantine/core/NavLink`;var Fy={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},Iy={withCloseButton:!0},Ly=q((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:P(t),"--notification-color":n?tn(n,e):void 0}})),Ry=Z(e=>{let t=Y(`Notification`,Iy,e),{className:n,color:r,radius:i,loading:a,withCloseButton:o,withBorder:s,title:c,icon:l,children:u,onClose:d,closeButtonProps:f,classNames:p,style:m,styles:h,unstyled:g,vars:_,mod:v,loaderProps:y,role:b,attributes:x,...S}=t,C=X({name:`Notification`,classes:Fy,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:Ly});return(0,J.jsxs)(Q,{...C(`root`),mod:[{"data-with-icon":!!l||a,"data-with-border":s},v],role:b||`alert`,...S,children:[l&&!a&&(0,J.jsx)(`div`,{...C(`icon`),children:l}),a&&(0,J.jsx)(Fl,{size:28,color:r,...C(`loader`),...y}),(0,J.jsxs)(`div`,{...C(`body`),children:[c&&(0,J.jsx)(`div`,{...C(`title`),children:c}),(0,J.jsx)(Q,{...C(`description`),mod:{"data-with-title":!!c},children:u})]}),o&&(0,J.jsx)(Jl,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});Ry.classes=Fy,Ry.varsResolver=Ly,Ry.displayName=`@mantine/core/Notification`;function zy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i=s?i+=eb(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function nb(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=Zy(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=$y(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function rb(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var ib=Hy(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&nn&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),ab=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function ob(e,t,n){return Math.min(Math.max(e,t),n)}function sb(e){return Math.max(e.selectionStart,e.selectionEnd)}function cb(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function lb(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function ub(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function db(e,t,n,r,i,a,o){o===void 0&&(o=ub);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function fb(e,t,n,r){var i=e.length;if(t=ob(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function pb(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;nC.length-o.length||SD||d>e.length-o.length)&&(E=d),e=e.substring(0,E),e=bb(y?`-`+e:e,i),e=(e.match(xb(m,!0))||[]).join(``);var O=e.indexOf(m);e=e.replace(new RegExp(qy(m),`g`),function(e,t){return t===O?`.`:``});var k=Zy(e,i),A=k.beforeDecimal,j=k.afterDecimal,M=k.addNegation;return l.end-l.starta?!1:i>=f.start&&in?n:e}function Hb(e){return e.toString().replace(`.`,``).length}function Ub(e,t){return(typeof e==`number`?e<2**53-1:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&Hb(t)<14&&t!==``}function Wb(e,t,n){return e===void 0?!0:(t===void 0||e>=t)&&(n===void 0||e<=n)}var Gb={size:`sm`,step:1,clampBehavior:`blur`,allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[`.`,`,`]},Kb=q((e,{size:t})=>({controls:{"--ni-chevron-size":M(t,`ni-chevron-size`)}}));function qb(e,t,n){let r=e.toString(),i=Nb.test(r),a=r.replace(/^0+(?=\d)/,``),o=parseFloat(a);if(Number.isNaN(o))return a;if(o>2**53-1)return t===void 0?a:t;let s=ee(o,n,t);return i?`${s.toString().replace(/^0+(?=\d)/,``)}.`:s}function Jb(e,t){if(e===``||e===`-`)return e;let n=zb(e);return n===null?e:t.clampBehavior===`blur`?Vb(n,t.min,t.max):n}var Yb=ei(e=>{let t=Y([`Input`,`InputWrapper`,`NumberInput`],Gb,e),{className:n,classNames:r,styles:i,unstyled:a,vars:s,onChange:c,onValueChange:l,value:u,defaultValue:d,max:f,min:p,step:m,hideControls:h,rightSection:g,isAllowed:_,clampBehavior:v,onBlur:y,allowDecimal:b,decimalScale:x,onKeyDown:S,onKeyDownCapture:C,handlersRef:w,startValue:T,disabled:E,rightSectionPointerEvents:D,allowNegative:O,readOnly:k,size:j,rightSectionWidth:M,stepHoldInterval:N,stepHoldDelay:P,allowLeadingZeros:F,withKeyboardEvents:I,trimLeadingZeroesOnBlur:L,allowedDecimalSeparators:R,selectAllOnFocus:z,onMinReached:B,onMaxReached:V,onFocus:H,attributes:U,ref:te,...ne}=t,re=O??!0,ie=F??!0,W=X({name:`NumberInput`,classes:kb,props:t,classNames:r,styles:i,unstyled:a,attributes:U,vars:s,varsResolver:Kb}),{resolvedClassNames:ae,resolvedStyles:G}=or({classNames:r,styles:i,props:t}),K=(0,o.useRef)(Fb(u)||Fb(d)?`bigint`:`number`);Fb(u)?K.current=`bigint`:typeof u==`number`&&(K.current=`number`);let oe=K.current===`bigint`,[se,ce]=Le({value:u,defaultValue:d,finalValue:``,onChange:c}),le=P!==void 0&&N!==void 0,ue=(0,o.useRef)(null),de=(0,o.useRef)(null),fe=(0,o.useRef)(0),pe=typeof p==`number`?p:void 0,me=typeof f==`number`?f:void 0,he=typeof m==`number`?m:Gb.step,ge=typeof T==`number`?T:Gb.startValue,_e=Bb(p),ve=Bb(f),ye=Bb(m)??BigInt(1),be=Bb(T)??BigInt(0),xe=e=>!Lb(e,re)||ie&&jb.test(e)?e:zb(e)??e,Se=e=>{let t=Number(e);return Number.isSafeInteger(t)?t:void 0},Ce=(e,t)=>{t.source===`event`&&ce(oe?xe(e.value):Ub(e.floatValue,e.value)&&!Ab.test(e.value)&&!(ie&&jb.test(e.value))&&!Mb.test(e.value)&&!Nb.test(e.value)?e.floatValue:e.value),l?.(e,t)},we=e=>{let t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},Te=e=>{ue.current&&e!==void 0&&ue.current.setSelectionRange(e,e)},Ee=(0,o.useRef)(A);Ee.current=()=>{if(oe){if(!Rb(se,re))return;let e,t=se;if(typeof t==`bigint`){let n=t+ye;ve!==void 0&&n>ve&&V?.(),e=ve!==void 0&&n>ve?ve:n}else if(typeof t==`string`&&t!==``){let n=zb(t);if(n===null)return;let r=n+ye;ve!==void 0&&r>ve&&V?.(),e=ve!==void 0&&r>ve?ve:r}else e=Vb(be,_e,ve);let n=e.toString();ce(e),l?.({floatValue:Se(e),formattedValue:n,value:n},{source:`increment`}),setTimeout(()=>Te(ue.current?.value.length),0);return}if(!Ib(se))return;let e,t=we(se),n=we(he),r=Math.max(t,n),i=10**r;if(!Pb(se)&&(typeof se!=`number`||Number.isNaN(se)))e=ee(ge,pe,me);else if(me!==void 0){let t=(Math.round(Number(se)*i)+Math.round(he*i))/i;t>me&&V?.(),e=t<=me?t:me}else e=(Math.round(Number(se)*i)+Math.round(he*i))/i;let a=e.toFixed(r);ce(parseFloat(a)),l?.({floatValue:parseFloat(a),formattedValue:a,value:a},{source:`increment`}),setTimeout(()=>Te(ue.current?.value.length),0)};let De=(0,o.useRef)(A);De.current=()=>{if(oe){if(!Rb(se,re))return;let e,t=_e===void 0?re?void 0:BigInt(0):_e,n=se;if(typeof n==`bigint`){let r=n-ye;t!==void 0&&rTe(ue.current?.value.length),0);return}if(!Ib(se))return;let e,t=pe===void 0?re?-(2**53-1):0:pe,n=we(se),r=we(he),i=Math.max(n,r),a=10**i;if(!Pb(se)&&typeof se!=`number`||Number.isNaN(se))e=ee(ge,t,me);else{let n=(Math.round(Number(se)*a)-Math.round(he*a))/a;t!==void 0&&nTe(ue.current?.value.length),0)};let Oe=e=>{let t=e.clipboardData.getData(`text`),n=ne.decimalSeparator||`.`,r=(R||[`.`,`,`]).filter(e=>e!==n);if(r.some(e=>t.includes(e))){e.preventDefault();let i=t;r.forEach(e=>{i=i.split(e).join(n)});let a=ue.current;if(a){let e=a.selectionStart??0,t=a.selectionEnd??0,n=a.value,r=n.substring(0,e)+i+n.substring(t);(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(a,r),a.dispatchEvent(new Event(`change`,{bubbles:!0}));let o=e+i.length;setTimeout(()=>Te(o),0)}}ne.onPaste?.(e)},ke=e=>{S?.(e),!(k||!I)&&(e.key===`ArrowUp`&&(e.preventDefault(),Ee.current?.()),e.key===`ArrowDown`&&(e.preventDefault(),De.current?.()))},Ae=e=>{if(C?.(e),e.key===`Backspace`){let t=ue.current;t&&t.selectionStart===0&&t.selectionStart===t.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>Te(0),0))}},je=e=>{z&&setTimeout(()=>e.currentTarget.select(),0),H?.(e)},Ne=e=>{let t=se;oe?(v===`blur`&&typeof t==`bigint`&&(t=Vb(t,_e,ve)),L&&typeof t==`string`&&(t=Jb(t,{min:_e,max:ve,clampBehavior:v}))):(v===`blur`&&typeof t==`number`&&(t=ee(t,pe,me)),L&&typeof t==`string`&&we(t)<15&&(t=qb(t,me,pe))),se!==t&&ce(t),y?.(e)};Me(w,{increment:Ee.current,decrement:De.current});let Fe=e=>{e?Ee.current?.():De.current?.(),fe.current+=1},Ie=e=>{if(Fe(e),le){let t=typeof N==`number`?N:N(fe.current);de.current=window.setTimeout(()=>Ie(e),t)}},Re=(e,t)=>{e.preventDefault(),ue.current?.focus(),Fe(t),le&&(de.current=window.setTimeout(()=>Ie(t),P))},ze=()=>{de.current&&window.clearTimeout(de.current),de.current=null,fe.current=0},Be=(0,J.jsxs)(`div`,{...W(`controls`),children:[(0,J.jsx)(Pc,{...W(`control`),tabIndex:-1,"aria-hidden":!0,disabled:E||typeof se==`number`&&me!==void 0&&se>=me||typeof se==`bigint`&&ve!==void 0&&se>=ve,mod:{direction:`up`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Re(e,!0)},onPointerUp:ze,onPointerLeave:ze,children:(0,J.jsx)(Ob,{direction:`up`})}),(0,J.jsx)(Pc,{...W(`control`),tabIndex:-1,"aria-hidden":!0,disabled:E||typeof se==`number`&&pe!==void 0&&se<=pe||typeof se==`bigint`&&_e!==void 0&&se<=_e,mod:{direction:`down`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Re(e,!1)},onPointerUp:ze,onPointerLeave:ze,children:(0,J.jsx)(Ob,{direction:`down`})})]});return(0,J.jsx)(Zd,{component:Db,allowNegative:O,className:Lt(kb.root,n),size:j,...ne,inputMode:oe?`numeric`:`decimal`,readOnly:k,disabled:E,value:typeof se==`bigint`?se.toString():se,getInputRef:Pe(te,ue),onValueChange:Ce,rightSection:h||k||!(oe?Rb(se,re):Ib(se))?g:g||Be,classNames:ae,styles:G,unstyled:a,__staticSelector:`NumberInput`,decimalScale:oe?0:b?x:0,onPaste:Oe,onFocus:je,onKeyDown:ke,onKeyDownCapture:Ae,rightSectionPointerEvents:D??(E?`none`:void 0),rightSectionWidth:M??`var(--ni-right-section-width-${j||`sm`})`,allowLeadingZeros:F,allowedDecimalSeparators:R,onBlur:Ne,attributes:U,isAllowed:e=>{if(!(!_||_(e)))return!1;if(v!==`strict`)return!0;if(!oe)return Wb(e.floatValue,pe,me);if(e.value===``||e.value===`-`)return!0;let t=zb(e.value);return t===null?!0:(_e===void 0||t>=_e)&&(ve===void 0||t<=ve)}})});Yb.classes={...Zd.classes,...kb},Yb.varsResolver=Kb,Yb.displayName=`@mantine/core/NumberInput`;function Xb(e){if(e.length===0)return{};let t={};return e.forEach(e=>{let n=e.getBoundingClientRect(),r=Math.round(n.top),i=Math.round(n.bottom);t[r]?t[r].bottom=Math.max(t[r].bottom,i):t[r]={elements:new Set,bottom:i,top:r},t[r].elements.add(e)}),t}function Zb(e,t){if(!e.current)return null;let n=e.current,r=Array.from(n.children).filter(e=>t.current!==e);if(r.length===0)return null;let i=Xb(r);return{itemsSizesMap:i,rowPositions:Object.keys(i).map(Number),children:r}}function Qb(e){let t=(0,o.useRef)(null),[n,r]=(0,o.useState)(null);return(0,o.useEffect)(()=>{if(e.current)return t.current=new ResizeObserver(e=>{if(e[0]){let t=e[0];(0,s.flushSync)(()=>{r({width:t.borderBoxSize[0]?.inlineSize??t.target.clientWidth,height:t.borderBoxSize[0]?.blockSize??t.target.clientHeight,contentWidth:t.contentRect.width,contentHeight:t.contentRect.height})})}}),t.current.observe(e.current),()=>{t.current&&=(t.current.disconnect(),null)}},[e.current]),n}var $b={root:`m_f62ab2af`},ex={maxRows:1,maxVisibleItems:1/0},tx=q((e,{gap:t})=>({root:{"--ol-gap":N(t)}}));function nx(e,t){return e.map((e,n)=>t?t(e,n):e!==null&&(typeof e==`object`||typeof e==`function`)?n:String(e)).join(`\0`)}var rx=ei(e=>{let t=Y(`OverflowList`,ex,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,attributes:l,data:u,renderOverflow:d,renderItem:f,maxRows:p,maxVisibleItems:m,collapseFrom:h,getItemKey:g,ref:_,...v}=t,y=X({name:`OverflowList`,classes:$b,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:l,vars:c,varsResolver:tx}),[b,x]=(0,o.useState)(u.length),[S,C]=(0,o.useState)(0),[w,T]=(0,o.useState)(`normal`),E=(0,o.useRef)(null),D=Pe(E,_),O=b-S,k=u.length-O>0&&w!==`measuring`,A=h===`start`,j=A?u.slice(0,u.length-O):u.slice(O),M=k?d?.(j):null,N=(0,o.useRef)(null),P=Pe(N,M?.ref),F=Qb(E);ce(()=>{T(`measuring`),x(u.length),C(0)},[(0,o.useMemo)(()=>nx(u,g),[u,g]),p,h]),ce(()=>{w===`measuring`&&(L(),T(`measuring-overflow-indicator`))},[w]),ce(()=>{w===`measuring-overflow-indicator`&&(R()||T(`normal`))},[w,S]),ce(()=>{w===`normal`&&(T(`measuring`),C(0))},[F]);let I=(e,t,n,r=0)=>{let i=1,a=0;for(let o=r;o0?r+n:r;if(a+s>t&&a>0){if(i++,i>p)return!1;a=r}else a+=s}return!0},L=()=>{let e=Zb(E,N);if(!e)return;let t=E.current;if(!t)return;if(A){let n=t.getBoundingClientRect().width,r=parseFloat(getComputedStyle(t).columnGap)||0,i=e.children.map(e=>e.getBoundingClientRect().width),a=0;for(let e=i.length-1;e>=0&&I(i,n,r,e);e--)a=i.length-e;a=Math.min(a,m),x(a);return}if(u.length===1){let n=e.itemsSizesMap[e.rowPositions[0]].elements.values().next().value,r=t.getBoundingClientRect().width;(n?.getBoundingClientRect().width??0)>r?x(0):x(1);return}let n=e.rowPositions.slice(0,p).reduce((t,n)=>t+e.itemsSizesMap[n].elements.size,0);n=Math.min(n,m),x(n)},R=()=>{if(!N.current)return!1;let e=Zb(E,N);if(!e)return!1;let{rowPositions:t,itemsSizesMap:n}=e;if(A){let t=E.current;if(!t)return!1;let n=t.getBoundingClientRect().width,r=parseFloat(getComputedStyle(t).columnGap)||0;return I([N.current.getBoundingClientRect().width,...e.children.map(e=>e.getBoundingClientRect().width)],n,r)?!1:(C(e=>e+1),!0)}let r=N.current.getBoundingClientRect();return r.top+r.height/2>n[t[t.length-1]].bottom?(C(e=>e+1),!0):!1},z=M?(0,o.cloneElement)(M,{ref:P}):null,B=u;m&&(B=A?B.slice(-m):B.slice(0,m));let V=A?u.length-B.length:0;return(0,J.jsxs)(Q,{ref:D,...y(`root`),...v,children:[A&&z,B.map((e,t)=>{if(!(w===`measuring`||(A?t>=B.length-O:t{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=Y(`PaginationControl`,sx,e),d=ax(),f=s||d.disabled;return(0,J.jsx)(Pc,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});cx.classes=ox,cx.displayName=`@mantine/core/PaginationControl`;function lx({style:e,children:t,path:n,...r}){return(0,J.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,J.jsx)(`path`,{d:n,fill:`currentColor`})})}var ux=e=>(0,J.jsx)(lx,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),dx=e=>(0,J.jsx)(lx,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),fx=e=>(0,J.jsx)(lx,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),px=e=>(0,J.jsx)(lx,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),mx={icon:e=>(0,J.jsx)(lx,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},hx=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=Y(`PaginationDots`,mx,e);return(0,J.jsx)(Q,{...ax().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,J.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});hx.classes=ox,hx.displayName=`@mantine/core/PaginationDots`;function gx({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=Y(t,i,e),s=ax(),c=r===`next`?s.active===s.total:s.active===1;return(0,J.jsx)(cx,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,J.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,Qr(a)}var _x=gx({icon:ux,name:`PaginationNext`,action:`onNext`,type:`next`}),vx=gx({icon:dx,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),yx=gx({icon:fx,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),bx=gx({icon:px,name:`PaginationLast`,action:`onLast`,type:`next`});function xx({dotsIcon:e}){let t=ax();return(0,J.jsx)(J.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,J.jsx)(hx,{icon:e},r):(0,J.jsx)(cx,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}xx.displayName=`@mantine/core/PaginationItems`;var Sx={formatLabel:({page:e,totalPages:t})=>`Page ${e} of ${t}`},Cx=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,formatLabel:o,...s}=Y(`PaginationLabel`,Sx,e),c=ax();return(0,J.jsx)(Q,{...c.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...s,children:o({page:c.active,totalPages:c.total})})});Cx.classes=ox,Cx.displayName=`@mantine/core/PaginationLabel`;var wx={siblings:1,boundaries:1},Tx=q((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:P(n),"--pagination-control-size":M(t,`pagination-control-size`),"--pagination-control-fz":F(t),"--pagination-active-bg":r?tn(r,e):void 0,"--pagination-active-color":pn(i,e)?un({color:r,theme:e,autoContrast:i}):void 0}})),Ex=Z(e=>{let t=Y(`PaginationRoot`,wx,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,layout:w,mod:T,attributes:E,...D}=t,O=X({name:`Pagination`,classes:ox,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:Tx}),{range:k,setPage:A,next:j,previous:M,active:N,first:P,last:F}=Be({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,J.jsx)(ix,{value:{total:c,range:k,active:N,disabled:f,layout:w,getItemProps:x,onChange:A,onNext:R(_,j),onPrevious:R(v,M),onFirst:R(y,P),onLast:R(b,F),getStyles:O},children:(0,J.jsx)(Q,{...O(`root`),mod:[{layout:w},T],...D})})});Ex.classes=ox,Ex.varsResolver=Tx,Ex.displayName=`@mantine/core/PaginationRoot`;var Dx={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8};function Ox({children:e}){return(0,J.jsx)(Q,{...ax().getStyles(`items`),children:e})}var kx=Z(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,layout:p,formatLabel:m,...h}=Y(`Pagination`,Dx,e);if(l<=0||d&&l===1)return null;let g=f?p===`responsive`?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ox,{children:(0,J.jsx)(xx,{dotsIcon:c})}),(0,J.jsx)(Cx,{formatLabel:m})]}):(0,J.jsx)(xx,{dotsIcon:c}):null;return(0,J.jsx)(Ex,{total:l,layout:p,...h,children:(0,J.jsxs)($l,{gap:u,children:[t&&(0,J.jsx)(yx,{icon:s,...r?.(`first`)}),n&&(0,J.jsx)(vx,{icon:a,...r?.(`previous`)}),g,n&&(0,J.jsx)(_x,{icon:i,...r?.(`next`)}),t&&(0,J.jsx)(bx,{icon:o,...r?.(`last`)})]})})});kx.classes=ox,kx.displayName=`@mantine/core/Pagination`,kx.Root=Ex,kx.Control=cx,kx.Dots=hx,kx.First=yx,kx.Last=bx,kx.Next=_x,kx.Previous=vx,kx.Items=xx,kx.Label=Cx;function Ax({reveal:e}){return(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,style:{width:`var(--psi-icon-size)`,height:`var(--psi-icon-size)`},children:e?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),(0,J.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M48 40l160 176M154.91 157.6a40 40 0 01-53.82-59.2M135.53 88.71a40 40 0 0132.3 35.53`}),(0,J.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 00-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0054-12.6`})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),(0,J.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72z`}),(0,J.jsx)(`circle`,{cx:`128`,cy:`128`,r:`40`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`})]})})}var jx={root:`m_f61ca620`,input:`m_ccf8da4c`,innerInput:`m_f2d85dd2`,visibilityToggle:`m_b1072d44`},Mx={visibilityToggleIcon:Ax,size:`sm`},Nx=q((e,{size:t})=>({root:{"--psi-icon-size":M(t,`psi-icon-size`),"--psi-button-size":M(t,`psi-button-size`)}})),Px=Z(e=>{let t=Y([`Input`,`InputWrapper`,`PasswordInput`],Mx,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,required:c,error:l,success:u,leftSection:d,disabled:f,id:p,variant:m,inputContainer:h,description:g,label:_,size:v,errorProps:y,successProps:b,descriptionProps:x,labelProps:S,withAsterisk:C,inputWrapperOrder:w,wrapperProps:T,radius:E,rightSection:D,rightSectionWidth:O,rightSectionPointerEvents:k,leftSectionWidth:A,visible:j,defaultVisible:M,onVisibilityChange:N,visibilityToggleIcon:P,visibilityToggleButtonProps:F,rightSectionProps:I,leftSectionProps:L,leftSectionPointerEvents:R,withErrorStyles:z,withSuccessStyles:B,mod:V,attributes:H,dir:ee,...U}=t,te=Ce(p),[ne,re]=Le({value:j,defaultValue:M,finalValue:!1,onChange:N}),ie=()=>re(!ne),W=X({name:`PasswordInput`,classes:jx,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:H,vars:s,varsResolver:Nx}),{resolvedClassNames:ae,resolvedStyles:G}=or({classNames:n,styles:a,props:t}),{styleProps:K,rest:oe}=Er(U),se=y?.id||`${te}-error`,ce=b?.id||`${te}-success`,le=x?.id||`${te}-description`,ue=!!l&&typeof l!=`boolean`,de=`${ue?se:``} ${u&&typeof u!=`boolean`&&!ue?ce:``} ${g?le:``}`,fe=de.trim().length>0?de.trim():void 0,pe=(0,J.jsx)(Ul,{...W(`visibilityToggle`),disabled:f,radius:E,"aria-pressed":ne,tabIndex:-1,"aria-label":`Toggle password visibility`,...F,variant:F?.variant??`subtle`,color:`gray`,unstyled:o,onTouchEnd:e=>{e.preventDefault(),F?.onTouchEnd?.(e),ie()},onMouseDown:e=>{e.preventDefault(),F?.onMouseDown?.(e),ie()},onKeyDown:e=>{F?.onKeyDown?.(e),e.key===` `&&(e.preventDefault(),ie())},children:(0,J.jsx)(P,{reveal:ne})});return(0,J.jsx)(Jd.Wrapper,{required:c,id:te,label:_,error:l,success:u,description:g,size:v,classNames:ae,styles:G,__staticSelector:`PasswordInput`,__stylesApiProps:t,unstyled:o,withAsterisk:C,inputWrapperOrder:w,inputContainer:h,variant:m,labelProps:{...S,htmlFor:te},descriptionProps:{...x,id:le},errorProps:{...y,id:se},successProps:{...b,id:ce},mod:V,attributes:H,...W(`root`),...K,...T,children:(0,J.jsx)(Jd,{component:`div`,dir:ee,error:l,success:u,leftSection:d,size:v,classNames:{...ae,input:Lt(jx.input,ae?.input)},styles:G,radius:E,disabled:f,__staticSelector:`PasswordInput`,__stylesApiProps:t,rightSectionWidth:O,rightSection:D??pe,variant:m,unstyled:o,leftSectionWidth:A,rightSectionPointerEvents:k||`all`,rightSectionProps:I,leftSectionProps:L,leftSectionPointerEvents:R,withAria:!1,withErrorStyles:z,withSuccessStyles:B,attributes:H,children:(0,J.jsx)(`input`,{required:c,"data-invalid":!!l||void 0,"data-with-left-section":!!d||void 0,...W(`innerInput`),disabled:f,id:te,dir:ee,...oe,"aria-describedby":fe,autoComplete:oe.autoComplete||`off`,type:ne?`text`:`password`})})})});Px.classes={...Zd.classes,...jx},Px.varsResolver=Nx,Px.displayName=`@mantine/core/PasswordInput`;var[Fx,Ix]=x(`Progress.Root component was not found in tree`),Lx={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},Rx=Z(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=Y(`ProgressLabel`,null,e);return(0,J.jsx)(Q,{...Ix().getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});Rx.classes=Lx,Rx.displayName=`@mantine/core/ProgressLabel`;var zx=q((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":M(t,`progress-size`),"--progress-radius":n===void 0?void 0:P(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),Bx=Z(e=>{let t=Y(`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=X({name:`Progress`,classes:Lx,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:zx});return(0,J.jsx)(Fx,{value:{getStyles:m,autoContrast:c},children:(0,J.jsx)(Q,{mod:[{orientation:u},f],...m(`root`),...p})})});Bx.classes=Lx,Bx.varsResolver=zx,Bx.displayName=`@mantine/core/ProgressRoot`;var Vx={withAria:!0},Hx=Z(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}=Y(`ProgressSection`,Vx,e),p=Ix(),m=Bn(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,J.jsx)(Q,{...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":tn(c,m),"--progress-label-color":pn(p.autoContrast,m)?un({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});Hx.classes=Lx,Hx.displayName=`@mantine/core/ProgressSection`;var Ux=Z(e=>{let t=Y(`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}=or({classNames:r,styles:i,props:t});return(0,J.jsx)(Bx,{classNames:d,styles:f,vars:a,...u,children:(0,J.jsx)(Hx,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});Ux.classes=Lx,Ux.displayName=`@mantine/core/Progress`,Ux.Section=Hx,Ux.Root=Bx,Ux.Label=Rx;var Wx=(0,o.createContext)(null),Gx=ei((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,name:s,readOnly:c,disabled:l,...u}=Y(`RadioGroup`,null,e),d=Ce(s),[f,p]=Le({value:t,defaultValue:n,finalValue:``,onChange:r});return(0,J.jsx)(Wx,{value:{value:f,onChange:e=>!c&&p(typeof e==`string`?e:e.currentTarget.value),size:i,name:d,disabled:l},children:(0,J.jsx)(Jd.Wrapper,{size:i,...a,...u,labelElement:`div`,__staticSelector:`RadioGroup`,children:(0,J.jsx)(Rp,{role:`radiogroup`,children:o})})})}));Gx.classes=Jd.Wrapper.classes,Gx.displayName=`@mantine/core/RadioGroup`;var Kx={card:`m_9dc8ae12`},qx=(0,o.createContext)(null),Jx={withBorder:!0},Yx=q((e,{radius:t})=>({card:{"--card-radius":P(t)}})),Xx=Z(e=>{let t=Y(`RadioCard`,Jx,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,checked:l,mod:u,withBorder:d,value:f,onClick:p,name:m,onKeyDown:h,attributes:g,..._}=t,v=X({name:`RadioCard`,classes:Kx,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:g,vars:c,varsResolver:Yx,rootSelector:`card`}),{dir:y}=li(),b=(0,o.use)(Wx),x=typeof l==`boolean`?l:b?.value===f||!1,S=m||b?.name,C=e=>{if(h?.(e),S&&[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`].includes(e.nativeEvent.code)){e.preventDefault();let t=Array.from(document.querySelectorAll(`[role="radio"][name="${S}"]`)),n=t.findIndex(t=>t===e.target),r=n+1>=t.length?0:n+1,i=n-1<0?t.length-1:n-1;e.nativeEvent.code===`ArrowDown`&&(t[r].focus(),t[r].click()),e.nativeEvent.code===`ArrowUp`&&(t[i].focus(),t[i].click()),e.nativeEvent.code===`ArrowLeft`&&(t[y===`ltr`?i:r].focus(),t[y===`ltr`?i:r].click()),e.nativeEvent.code===`ArrowRight`&&(t[y===`ltr`?r:i].focus(),t[y===`ltr`?r:i].click())}};return(0,J.jsx)(qx,{value:{checked:x},children:(0,J.jsx)(Pc,{mod:[{"with-border":d,checked:x},u],...v(`card`),..._,role:`radio`,"aria-checked":x,name:S,onClick:e=>{p?.(e),b?.onChange(f||``)},onKeyDown:C})})});Xx.displayName=`@mantine/core/RadioCard`,Xx.classes=Kx,Xx.varsResolver=Yx;var Zx={indicator:`m_717d7ff6`,icon:`m_3e4da632`,"indicator--outline":`m_2980836c`},Qx={icon:mv},$x=q((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=en({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--radio-size":M(r,`radio-size`),"--radio-radius":t===void 0?void 0:P(t),"--radio-color":a===`outline`?c:tn(n,e),"--radio-icon-size":typeof r==`number`?`calc(${M(r,`radio-size`)} * 0.4)`:M(r,`radio-icon-size`),"--radio-icon-color":i?tn(i,e):pn(o,e)?un({color:n,theme:e,autoContrast:o}):void 0}}}),eS=Z(e=>{let t=Y(`RadioIndicator`,Qx,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,icon:l,radius:u,color:d,iconColor:f,autoContrast:p,checked:m,mod:h,variant:g,disabled:_,attributes:v,...y}=t,b=X({name:`RadioIndicator`,classes:Zx,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:v,vars:c,varsResolver:$x,rootSelector:`indicator`}),x=(0,o.use)(qx),S=typeof m==`boolean`?m:x?.checked||!1;return(0,J.jsx)(Q,{...b(`indicator`,{variant:g}),variant:g,mod:[{checked:S,disabled:_},h],...y,children:(0,J.jsx)(l,{...b(`icon`)})})});eS.displayName=`@mantine/core/RadioIndicator`,eS.classes=Zx,eS.varsResolver=$x;var tS={root:`m_f3f1af94`,inner:`m_89c4f5e4`,icon:`m_f3ed6b2b`,radio:`m_8a3dbb89`,"radio--outline":`m_1bfe9d39`},nS={labelPosition:`right`,withErrorStyles:!0},rS=q((e,{size:t,radius:n,color:r,iconColor:i,variant:a,autoContrast:o})=>{let s=en({color:r||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--radio-size":M(t,`radio-size`),"--radio-radius":n===void 0?void 0:P(n),"--radio-color":a===`outline`?c:tn(r,e),"--radio-icon-color":i?tn(i,e):pn(o,e)?un({color:r,theme:e,autoContrast:o}):void 0,"--radio-icon-size":M(t,`radio-icon-size`)}}}),iS=Z(e=>{let t=Y(`Radio`,nS,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,id:l,size:u,label:d,labelPosition:f,description:p,error:m,radius:h,color:g,variant:_,disabled:v,wrapperProps:y,icon:b=mv,rootRef:x,iconColor:S,onChange:C,mod:w,attributes:T,withErrorStyles:E,checked:D,...O}=t,k=X({name:`Radio`,classes:tS,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:T,vars:c,varsResolver:rS}),A=(0,o.use)(Wx),j=A?.size??u,M=t.size?u:j,{styleProps:N,rest:P}=Er(O),F=Ce(l),I=[p?`${F}-description`:void 0,m&&typeof m!=`boolean`?`${F}-error`:void 0,P[`aria-describedby`]].filter(Boolean).join(` `)||void 0,L=A?A.value===P.value:void 0,R={checked:L??D,name:P.name??A?.name,onChange:e=>{A?.onChange(e),C?.(e)},disabled:A?.disabled??v};return(0,J.jsx)(tm,{...k(`root`),__staticSelector:`Radio`,__stylesApiProps:t,id:F,size:M,labelPosition:f,label:d,description:p,error:m,disabled:R.disabled,classNames:n,styles:a,unstyled:s,"data-checked":(L??D)||void 0,variant:_,ref:x,mod:w,attributes:T,...N,...y,children:(0,J.jsxs)(Q,{...k(`inner`),mod:{"label-position":f},children:[(0,J.jsx)(Q,{...k(`radio`,{focusable:!0,variant:_}),...P,...R,component:`input`,mod:{error:!!m,"with-error-styles":E},id:F,type:`radio`,"aria-describedby":I}),(0,J.jsx)(b,{...k(`icon`),"aria-hidden":!0})]})})});iS.classes=tS,iS.varsResolver=rS,iS.displayName=`@mantine/core/Radio`,iS.Group=Gx,iS.Card=Xx,iS.Indicator=eS;function aS({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,o.useState)(n),a=(0,o.useRef)(null),{x:s,y:c,elements:l,refs:u,update:d,placement:f}=_c({placement:t,middleware:[Ts({crossAxis:!0,padding:5,rootBoundary:`document`})]}),p=f.includes(`right`)?e:t.includes(`left`)?e*-1:0,m=f.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,h=(0,o.useCallback)(({clientX:e,clientY:t})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+p,top:t+m,right:e,bottom:t}}})},[l.reference]);return(0,o.useEffect)(()=>{if(u.floating.current){let e=a.current;e.addEventListener(`mousemove`,h);let t=pa(u.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,d)}),()=>{e.removeEventListener(`mousemove`,h),t.forEach(e=>{e.removeEventListener(`scroll`,d)})}}},[l.reference,u.floating.current,d,h,r]),{handleMouseMove:h,x:s,y:c,opened:r,setOpened:i,boundaryRef:a,floating:u.setFloating}}var oS={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},sS={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:k(`popover`)},cS=q((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:P(t),"--tooltip-bg":n?tn(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),lS=Z(e=>{let t=Y(`TooltipFloating`,sS,e),{children:n,refProp:r,withinPortal:i,style:a,className:s,classNames:c,styles:l,unstyled:u,radius:d,color:f,label:p,offset:m,position:h,multiline:g,zIndex:_,disabled:v,defaultOpened:y,variant:b,vars:x,portalProps:S,attributes:C,ref:w,...T}=t,E=Bn(),D=X({name:`TooltipFloating`,props:t,classes:oS,className:s,style:a,classNames:c,styles:l,unstyled:u,attributes:C,rootSelector:`tooltip`,vars:x,varsResolver:cS}),{handleMouseMove:O,x:k,y:A,opened:j,boundaryRef:M,floating:N,setOpened:P}=aS({offset:m,position:h,defaultOpened:y}),F=Ft(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 I=Pe(M,At(F),w),L=F.props,R=e=>{L.onMouseEnter?.(e),O(e),P(!0)},z=e=>{L.onMouseLeave?.(e),P(!1)};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(rl,{...S,withinPortal:i,children:(0,J.jsx)(Q,{...T,...D(`tooltip`,{style:{...Xr(a,E),zIndex:_,display:!v&&j?`block`:`none`,top:(A&&Math.round(A))??``,left:(k&&Math.round(k))??``}}),variant:b,ref:N,mod:{multiline:g},children:p})}),(0,o.cloneElement)(F,{...L,[r]:I,onMouseEnter:R,onMouseLeave:z})]})});lS.classes=oS,lS.varsResolver=cS,lS.displayName=`@mantine/core/TooltipFloating`;var uS=(0,o.createContext)({withinGroup:!1}),dS={openDelay:0,closeDelay:0};function fS(e){let{openDelay:t,closeDelay:n,children:r}=Y(`TooltipGroup`,dS,e);return(0,J.jsx)(uS,{value:{withinGroup:!0},children:(0,J.jsx)(cc,{delay:{open:t,close:n},children:r})})}fS.displayName=`@mantine/core/TooltipGroup`,fS.extend=e=>e;function pS(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 mS(e){let t=pS(e.middlewares),n=[ws(e.offset)];return t.shift&&n.push(Ts(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?Ds():Ds(t.flip)),n.push(js({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?As():As(t.inline)):e.inline&&n.push(As()),n}function hS(e){let[t,n]=(0,o.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,o.use)(uS).withinGroup,a=Ce(),s=(0,o.useCallback)(e=>{n(e),e&&_(a)},[a]),{x:c,y:l,context:u,refs:d,placement:f,middlewareData:{arrow:{x:p,y:m}={}}}=_c({strategy:e.strategy,placement:e.position,open:r,onOpenChange:s,middleware:mS(e),whileElementsMounted:ss}),{delay:h,currentId:g,setCurrentId:_}=lc(u,{id:a}),{getReferenceProps:v,getFloatingProps:y}=xc([ic(u,{enabled:e.events?.hover,delay:i?h:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),yc(u,{enabled:e.events?.focus,visibleOnly:!0}),Cc(u,{role:`tooltip`}),hc(u,{enabled:e.opened===void 0})]),b=(0,o.useRef)(f);ce(()=>{b.current!==f&&(b.current=f,e.onPositionChange?.(f))},[f]);let x=r&&g&&g!==a;return{x:c,y:l,arrowX:p,arrowY:m,reference:d.setReference,floating:d.setFloating,getFloatingProps:y,getReferenceProps:v,isGroupPhase:x,opened:r,placement:f}}var gS={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:k(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},_S=q((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:P(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),vS=Z(e=>{let t=Y(`Tooltip`,gS,e),{children:n,position:r,refProp:i,label:a,openDelay:s,closeDelay:c,onPositionChange:l,opened:u,defaultOpened:d,withinPortal:f,radius:p,color:m,classNames:h,styles:g,unstyled:_,style:v,className:y,withArrow:b,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,offset:T,transitionProps:E,multiline:D,events:O,zIndex:k,disabled:A,onClick:j,onMouseEnter:M,onMouseLeave:N,inline:P,variant:F,keepMounted:I,vars:L,portalProps:R,mod:z,floatingStrategy:B,middlewares:V,autoContrast:H,attributes:ee,target:U,ref:te,...ne}=t,{dir:re}=li(),ie=(0,o.useRef)(null),W=hS({position:qc(re,r),closeDelay:c,openDelay:s,onPositionChange:l,opened:u,defaultOpened:d,events:O,arrowRef:ie,arrowOffset:S,offset:typeof T==`number`?T+(b?x/2:0):T,inline:P,strategy:B,middlewares:V});(0,o.useEffect)(()=>{let e=U instanceof HTMLElement?U:typeof U==`string`?document.querySelector(U):U?.current||null;e&&W.reference(e)},[U,W]);let ae=X({name:`Tooltip`,props:t,classes:oS,className:y,style:v,classNames:h,styles:g,unstyled:_,attributes:ee,rootSelector:`tooltip`,vars:L,varsResolver:_S}),G=Ft(n);if(!U&&!G)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 K=ae(`tooltip`),oe=w===`merge`&&b?Gc({position:W.placement,dir:re}):void 0;if(U){let e=dl(E,{duration:100,transition:`fade`});return(0,J.jsx)(J.Fragment,{children:(0,J.jsx)(rl,{...R,withinPortal:f,children:(0,J.jsx)(ll,{...e,keepMounted:I,mounted:!A&&!!W.opened,duration:W.isGroupPhase?10:e.duration,children:e=>(0,J.jsxs)(Q,{...ne,"data-fixed":B===`fixed`||void 0,variant:F,mod:[{multiline:D},z],...K,...W.getFloatingProps({ref:W.floating,className:K.className,style:{...K.style,...e,...oe,zIndex:k,top:W.y??0,left:W.x??0}}),children:[a,(0,J.jsx)(Kc,{ref:ie,arrowX:W.arrowX,arrowY:W.arrowY,visible:b,position:W.placement,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,...ae(`arrow`)})]})})})})}let se=G.props,ce=Pe(W.reference,At(G),te),le=dl(E,{duration:100,transition:`fade`});return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(rl,{...R,withinPortal:f,children:(0,J.jsx)(ll,{...le,keepMounted:I,mounted:!A&&!!W.opened,duration:W.isGroupPhase?10:le.duration,children:e=>(0,J.jsxs)(Q,{...ne,"data-fixed":B===`fixed`||void 0,variant:F,mod:[{multiline:D},z],...W.getFloatingProps({ref:W.floating,className:ae(`tooltip`).className,style:{...ae(`tooltip`).style,...e,...oe,zIndex:k,top:W.y??0,left:W.x??0}}),children:[a,(0,J.jsx)(Kc,{ref:ie,arrowX:W.arrowX,arrowY:W.arrowY,visible:b,position:W.placement,arrowSize:x,arrowOffset:S,arrowRadius:C,arrowPosition:w,...ae(`arrow`)})]})})}),(0,o.cloneElement)(G,W.getReferenceProps({onClick:j,onMouseEnter:M,onMouseLeave:N,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...se,className:Lt(y,se.className),[i]:ce}))]})});vS.classes=oS,vS.varsResolver=_S,vS.displayName=`@mantine/core/Tooltip`,vS.Floating=lS,vS.Group=fS;function yS({size:e,thickness:t,sum:n,value:r,root:i,offset:a}){let o=(e*.9-t*2)/2,s=Math.PI*o*2/100,c=i||r===void 0?`${(100-n)*s}, ${n*s}`:`${r*s}, ${(100-r)*s}`;return{strokeWidth:Number.isNaN(t)?12:t,cx:e/2||0,cy:e/2||0,r:o||0,transform:i?`scale(1, -1) translate(0, -${e})`:void 0,strokeDasharray:c,strokeDashoffset:i?0:a||0}}function bS({size:e,value:t,offset:n,sum:r,thickness:i,root:a,color:o,lineRoundCaps:s,tooltip:c,getStyles:l,display:u,...d}){let f=Bn();return(0,J.jsx)(vS.Floating,{disabled:!c,label:c,children:(0,J.jsx)(Q,{component:`circle`,...d,...l(`curve`),__vars:{"--curve-color":o?tn(o,f):void 0},fill:`none`,strokeLinecap:s?`round`:`butt`,...yS({sum:r,size:e,thickness:i,value:t,offset:n,root:a})})})}bS.displayName=`@mantine/core/Curve`;function xS({size:e,thickness:t,sections:n,renderRoundedLineCaps:r,rootColor:i,sectionGap:a=0}){let o=n.reduce((e,t)=>e+t.value,0),s=Math.PI*((e*.9-t*2)/2)*2,c=s,l=[],u=[],d=a/360*100;for(let e=0;e2){u.push({...l[0],lineRoundCaps:r}),u.push({...l[l.length-2],lineRoundCaps:r});for(let e=1;e<=l.length-3;e+=1)u.push({...l[e],lineRoundCaps:!1})}else u.push({...l[0],lineRoundCaps:r});return u}var SS={root:`m_b32e4812`,svg:`m_d43b5134`,curve:`m_b1ca1fbf`,label:`m_b23f9dc4`};function CS(e,t){return Math.min(e||12,(t||120)/4)}var wS={size:120,thickness:12,startAngle:270},TS=q((e,{size:t,thickness:n,transitionDuration:r,startAngle:i})=>({root:{"--rp-size":g(t),"--rp-label-offset":g(n*2),"--rp-transition-duration":r?`${r}ms`:void 0},svg:{"--rp-start-angle":`${i}deg`}})),ES=Z(e=>{let t=Y(`RingProgress`,wS,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,label:l,sections:u,size:d,thickness:f,roundCaps:p,rootColor:m,transitionDuration:h,sectionGap:g,startAngle:_,attributes:v,...y}=t,b=X({name:`RingProgress`,classes:SS,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:v,vars:c,varsResolver:TS}),x=CS(f,d),S=xS({size:d,thickness:x,sections:u,renderRoundedLineCaps:p,rootColor:m,sectionGap:g}).map(({data:e,sum:t,root:n,lineRoundCaps:r,offset:i},a)=>(0,o.createElement)(bS,{...e,key:a,size:d,thickness:x,sum:t,offset:i,color:e?.color,root:n,lineRoundCaps:r,getStyles:b}));return(0,J.jsxs)(Q,{...b(`root`),size:d,...y,children:[(0,J.jsx)(`svg`,{...b(`svg`),viewBox:`0 0 ${d} ${d}`,children:S}),l&&(0,J.jsx)(`div`,{...b(`label`),children:l})]})});ES.classes=SS,ES.varsResolver=TS,ES.displayName=`@mantine/core/RingProgress`;var DS={root:`m_bc8f275`,container:`m_ee44dece`,content:`m_53e4f606`,chevron:`m_47754fc8`,control:`m_53e526ea`},OS={scrollAmount:200,draggable:!0},kS=q((e,{controlSize:t,edgeGradientColor:n})=>({root:{"--scroller-control-size":g(t),"--scroller-background-color":n?tn(n,e):void 0}})),AS=Z(e=>{let t=Y(`Scroller`,OS,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,scrollAmount:l,controlSize:u,edgeGradientColor:d,startControlProps:f,endControlProps:p,startControlIcon:m,endControlIcon:h,showStartControl:g,showEndControl:_,draggable:v,mod:y,ref:b,attributes:x,...S}=t,C=X({name:`Scroller`,classes:DS,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,vars:s,varsResolver:kS,attributes:x}),w=ct({scrollAmount:l,draggable:v}),T=g||w.canScrollStart,E=_||w.canScrollEnd;return(0,J.jsxs)(Q,{...C(`root`),ref:b,mod:y,...S,children:[(0,J.jsx)(Pc,{...C(`control`),onClick:w.scrollStart,"data-position":`start`,"data-hidden":!T||void 0,"aria-label":`Scroll left`,tabIndex:T?0:-1,...f,children:m||(0,J.jsx)(lf,{...C(`chevron`)})}),(0,J.jsx)(`div`,{...C(`container`),ref:w.ref,role:`presentation`,"data-draggable":v||void 0,...w.dragHandlers,children:(0,J.jsx)(`div`,{...C(`content`),children:c})}),(0,J.jsx)(Pc,{...C(`control`),onClick:w.scrollEnd,"data-position":`end`,"data-hidden":!E||void 0,"aria-label":`Scroll right`,tabIndex:E?0:-1,...p,children:h||(0,J.jsx)(lf,{...C(`chevron`)})})]})});AS.classes=DS,AS.varsResolver=kS,AS.displayName=`@mantine/core/Scroller`;var jS={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},MS={withItemsBorders:!0},NS=q((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:P(t),"--sc-color":n?tn(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":M(i,`sc-padding`),"--sc-font-size":F(i)}})),PS=ei(e=>{let t=Y(`SegmentedControl`,MS,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,data:l,value:u,defaultValue:d,onChange:f,size:p,name:m,disabled:h,readOnly:g,fullWidth:_,orientation:v,radius:y,color:b,transitionDuration:x,transitionTimingFunction:S,variant:C,autoContrast:w,withItemsBorders:T,mod:E,attributes:D,ref:O,...k}=t,A=X({name:`SegmentedControl`,props:t,classes:jS,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:D,vars:c,varsResolver:NS}),j=Bn(),M=l.map(e=>jt(e)?{label:`${e}`,value:e}:e),N=ot(),[P,F]=(0,o.useState)(U()),[I,L]=(0,o.useState)(null),[R,z]=(0,o.useState)({}),B=(e,t)=>{R[t]=e,z(R)},[V,H]=Le({value:u,defaultValue:d,finalValue:Array.isArray(l)?M.find(e=>!e.disabled)?.value??l[0]?.value??null:null,onChange:f}),ee=Ce(m),te=M.map(e=>(0,o.createElement)(Q,{...A(`control`),mod:{active:V===e.value,orientation:v},key:`${e.value}`},(0,o.createElement)(`input`,{...A(`input`),disabled:h||e.disabled,type:`radio`,name:ee,value:`${e.value}`,id:`${ee}-${e.value}`,checked:V===e.value,onChange:()=>!g&&H(e.value),"data-focus-ring":j.focusRing,key:`${e.value}-input`}),(0,o.createElement)(Q,{component:`label`,...A(`label`),mod:{active:V===e.value&&!(h||e.disabled),disabled:h||e.disabled,"read-only":g},htmlFor:`${ee}-${e.value}`,ref:t=>B(t,`${e.value}`),__vars:{"--sc-label-color":b===void 0?void 0:un({color:b,theme:j,autoContrast:w})},key:`${e.value}-label`},(0,J.jsx)(`span`,{...A(`innerLabel`),children:e.label})))),ne=Pe(O,L);return We(()=>{F(U())},[l.length]),l.length===0?null:(0,J.jsxs)(Q,{...A(`root`),variant:C,size:p,ref:ne,mod:[{"full-width":_,orientation:v,initialized:N,"with-items-borders":T},E],...k,role:`radiogroup`,"data-disabled":h,children:[V!==void 0&&(0,J.jsx)(of,{target:R[`${V}`],parent:I,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...A(`indicator`)},P),te]})});PS.classes=jS,PS.varsResolver=NS,PS.displayName=`@mantine/core/SegmentedControl`;var FS={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},IS=ei(e=>{let t=Y([`Input`,`InputWrapper`,`Select`],FS,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:s,defaultDropdownOpened:c,onDropdownClose:l,onDropdownOpen:u,onFocus:d,onBlur:f,onClick:p,onChange:m,data:h,value:g,defaultValue:_,selectFirstOptionOnChange:v,selectFirstOptionOnDropdownOpen:y,onOptionSubmit:b,comboboxProps:x,readOnly:S,disabled:C,filter:w,limit:T,withScrollArea:E,maxDropdownHeight:D,floatingHeight:O,size:k,searchable:A,rightSection:j,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,name:I,form:L,searchValue:R,defaultSearchValue:z,onSearchChange:B,allowDeselect:V,error:H,rightSectionPointerEvents:ee,id:U,clearable:te,clearSectionMode:ne,clearButtonProps:re,hiddenInputProps:ie,renderOption:W,onClear:ae,autoComplete:G,scrollAreaProps:K,__defaultRightSection:oe,__clearSection:se,__clearable:ce,chevronColor:le,autoSelectOnBlur:ue,openOnFocus:de,attributes:fe,...pe}=t,me=(0,o.useMemo)(()=>ap(h),[h]),he=(0,o.useRef)({}),ge=(0,o.useMemo)(()=>op(me),[me]),_e=Ce(U),[ve,ye,be]=Le({value:g,defaultValue:_,finalValue:null,onChange:m}),xe=ve==null?void 0:`${ve}`in ge?ge[`${ve}`]:he.current[`${ve}`],Se=it(xe),[we,Te,Ee]=Le({value:R,defaultValue:z,finalValue:xe?xe.label:``,onChange:B}),De=Pp({opened:s,defaultOpened:c,onDropdownOpen:()=>{u?.(),y?De.selectFirstOption():De.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{l?.(),setTimeout(De.resetSelectedOption,0)}}),Oe=e=>{Te(e),De.resetSelectedOption()},{resolvedClassNames:ke,resolvedStyles:Ae}=or({props:t,styles:r,classNames:n});(0,o.useEffect)(()=>{v&&De.selectFirstOption()},[v,we]),(0,o.useEffect)(()=>{g===null&&Oe(``),g!=null&&xe&&(Se?.value!==xe.value||Se?.label!==xe.label)&&Oe(xe.label)},[g,xe]),(0,o.useEffect)(()=>{!be&&!Ee&&Oe(ve==null?``:`${ve}`in ge?ge[`${ve}`]?.label:he.current[`${ve}`]?.label||``)},[ge,ve]),(0,o.useEffect)(()=>{ve&&`${ve}`in ge&&(he.current[`${ve}`]=ge[`${ve}`])},[ge,ve]);let je=(0,J.jsx)(Lp.ClearButton,{...re,onClear:()=>{ye(null,null),Oe(``),ae?.()}}),Me=te&&ve!=null&&!C&&!S;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(Lp,{store:De,__staticSelector:`Select`,classNames:ke,styles:Ae,unstyled:i,readOnly:S,size:k,attributes:fe,floatingHeight:O,keepMounted:ue,onOptionSubmit:e=>{b?.(e);let t=V&&`${ge[e].value}`==`${ve}`?null:ge[e],n=t?t.value:null;n!==ve&&ye(n,t),!be&&Oe(n==null?``:t?.label||``),De.closeDropdown()},...x,children:[(0,J.jsx)(Lp.Target,{targetType:A?`input`:`button`,autoComplete:G,withExpandedAttribute:!0,children:(0,J.jsx)(Zd,{id:_e,__defaultRightSection:(0,J.jsx)(Lp.Chevron,{size:k,error:H,unstyled:i,color:le}),__clearSection:je,__clearable:Me,__clearSectionMode:ne,rightSection:j,rightSectionPointerEvents:ee||`none`,...pe,size:k,__staticSelector:`Select`,disabled:C,readOnly:S||!A,value:we,onChange:e=>{Oe(e.currentTarget.value),De.openDropdown(),v&&De.selectFirstOption()},onFocus:e=>{de&&A&&De.openDropdown(),d?.(e)},onBlur:e=>{ue&&De.clickSelectedOption(),A&&De.closeDropdown();let t=ve!=null&&(`${ve}`in ge?ge[`${ve}`]:he.current[`${ve}`]);Oe(t&&t.label||``),f?.(e)},onClick:e=>{A?De.openDropdown():De.toggleDropdown(),p?.(e)},classNames:ke,styles:Ae,unstyled:i,pointer:!A,error:H,attributes:fe})}),(0,J.jsx)(fm,{data:me,hidden:S||C,filter:w,search:we,limit:T,hiddenWhenEmpty:!F,withScrollArea:E,maxDropdownHeight:D,filterOptions:!!A&&xe?.label!==we,value:ve,checkIconPosition:M,withCheckIcon:N,withAlignedLabels:P,nothingFoundMessage:F,unstyled:i,labelId:pe.label?`${_e}-label`:void 0,"aria-label":pe.label?void 0:pe[`aria-label`],renderOption:W,scrollAreaProps:K})]}),(0,J.jsx)(Lp.HiddenInput,{value:ve,name:I,form:L,disabled:C,...ie})]})});IS.classes={...Zd.classes,...Lp.classes},IS.displayName=`@mantine/core/Select`;function LS(e){if(e!==void 0)return typeof e==`number`?g(e):e}function RS({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=Bn(),s=t===void 0?e:t,l=r!==void 0,u=v({"--sg-spacing-x":N(V(e)),"--sg-spacing-y":N(V(s)),"--sg-auto-rows":i,...l?{"--sg-min-col-width":LS(r)}:{"--sg-cols":V(n)?.toString()}}),d=c(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=N(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=N(s[r])),!l&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,J.jsx)(Cr,{styles:u,media:B(c(d),o.breakpoints).filter(e=>c(d[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:d[e.value]})),selector:a})}function zS(e){return typeof e==`object`&&e?c(e):[]}function BS(e){return e.sort((e,t)=>p(e)-p(t))}function VS({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return BS(Array.from(new Set([...zS(e),...zS(t),...r===void 0?zS(n):[]])))}function HS({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=v({"--sg-spacing-x":N(V(e)),"--sg-spacing-y":N(V(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":LS(r)}:{"--sg-cols":V(n)?.toString()}}),l=VS({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`]=N(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=N(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,J.jsx)(Cr,{styles:c,container:l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]})),selector:a})}var US={container:`m_925c2d2c`,root:`m_2415a157`},WS={cols:1,spacing:`md`,type:`media`},GS=Z(e=>{let t=Y(`SimpleGrid`,WS,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,_=X({name:`SimpleGrid`,classes:US,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=Yr(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(HS,{...t,selector:`.${v}`}),(0,J.jsx)(`div`,{..._(`container`),children:(0,J.jsx)(Q,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(RS,{...t,selector:`.${v}`}),(0,J.jsx)(Q,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});GS.classes=US,GS.displayName=`@mantine/core/SimpleGrid`;var KS={root:`m_18320242`,"skeleton-fade":`m_299c329c`},qS={visible:!0,animate:!0},JS=q((e,{width:t,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":g(n),"--skeleton-width":g(i?n:t),"--skeleton-radius":i?`1000px`:r===void 0?void 0:P(r)}})),YS=Z(e=>{let t=Y(`Skeleton`,qS,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,width:c,height:l,circle:u,visible:d,radius:f,animate:p,mod:m,attributes:h,...g}=t;return(0,J.jsx)(Q,{...X({name:`Skeleton`,classes:KS,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:JS})(`root`),mod:[{visible:d,animate:p},m],...g})});YS.classes=KS,YS.varsResolver=JS,YS.displayName=`@mantine/core/Skeleton`;var[XS,ZS]=x(`SliderProvider was not found in tree`);function QS({size:e,disabled:t,variant:n,color:r,thumbSize:i,radius:a,orientation:o,...s}){let{getStyles:c}=ZS();return(0,J.jsx)(Q,{tabIndex:-1,variant:n,size:e,...c(`root`),mod:{orientation:o},...s})}QS.displayName=`@mantine/core/SliderRoot`;function $S({max:e,min:t,value:n,position:r,label:i,dragging:a,onMouseDown:s,onKeyDownCapture:c,labelTransitionProps:l,labelAlwaysOn:u,thumbLabel:d,thumbValueText:f,onFocus:p,onBlur:m,showLabelOnHover:h,isHovered:g,children:_=null,disabled:v,orientation:y=`horizontal`,ref:b}){let{getStyles:x}=ZS(),[S,C]=(0,o.useState)(!1),w=u||a||S||h&&g,T=typeof f==`function`?f(n):f;return(0,J.jsxs)(Q,{tabIndex:v?-1:0,role:`slider`,"aria-label":d,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":n,"aria-valuetext":T,"aria-disabled":v,"aria-orientation":y,ref:b,__vars:{"--slider-thumb-offset":`${r}%`},...x(`thumb`,{focusable:!0}),mod:{dragging:a,disabled:v},onFocus:e=>{C(!0),typeof p==`function`&&p(e)},onBlur:e=>{C(!1),typeof m==`function`&&m(e)},onTouchStart:s,onMouseDown:s,onKeyDownCapture:c,onClick:e=>e.stopPropagation(),children:[_,(0,J.jsx)(ll,{mounted:i!=null&&!!w,transition:`fade`,duration:0,...l,children:e=>(0,J.jsx)(`div`,{...x(`label`,{style:e}),children:i})})]})}$S.displayName=`@mantine/core/SliderThumb`;function eC({value:e,min:t,max:n}){let r=(e-t)/(n-t)*100;return Math.min(Math.max(r,0),100)}function tC({mark:e,offset:t,value:n,inverted:r=!1,startPointValue:i}){return typeof i==`number`&&!r?e.value>=i&&e.value<=n||e.value<=i&&e.value>=n:r?typeof t==`number`&&e.value<=t||e.value>=n:typeof t==`number`?e.value>=t&&e.value<=n:e.value<=n}function nC({marks:e,min:t,max:n,disabled:r,value:i,offset:a,inverted:s,startPointValue:c}){let{getStyles:l}=ZS();return e?(0,J.jsx)(`div`,{children:e.map((e,u)=>e.hidden?null:(0,o.createElement)(Q,{...l(`markWrapper`),__vars:{"--mark-offset":`${eC({value:e.value,min:t,max:n})}%`},key:u},(0,J.jsx)(Q,{...l(`mark`),mod:{filled:tC({mark:e,value:i,offset:a,inverted:s,startPointValue:c}),disabled:r}}),e.label&&(0,J.jsx)(`div`,{...l(`markLabel`),children:e.label})))}):null}nC.displayName=`@mantine/core/SliderMarks`;function rC({filled:e,children:t,offset:n,disabled:r,marksOffset:i,inverted:a,startPointValue:o,containerProps:s,...c}){let{getStyles:l}=ZS();return(0,J.jsx)(Q,{...l(`trackContainer`),mod:{disabled:r},...s,children:(0,J.jsxs)(Q,{...l(`track`),mod:{inverted:a,disabled:r},children:[(0,J.jsx)(Q,{mod:{inverted:a,disabled:r},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...l(`bar`)}),t,(0,J.jsx)(nC,{...c,offset:i,disabled:r,inverted:a,startPointValue:o})]})})}rC.displayName=`@mantine/core/SliderTrack`;function iC({value:e,containerWidth:t,min:n,max:r,step:i,precision:a}){let o=(t?Math.min(Math.max(e,0),t)/t:e)*(r-n),s=(o===0?0:Math.round(o/i)*i)+n,c=Math.max(s,n);return a===void 0?c:Number(c.toFixed(a))}function aC(e,t){return parseFloat(e.toFixed(t))}function oC(e){if(!e)return 0;let t=e.toString().split(`.`);return t.length>1?t[1].length:0}function sC(e,t){let n=[...t].sort((e,t)=>e.value-t.value).find(t=>t.value>e);return n?n.value:e}function cC(e,t){let n=[...t].sort((e,t)=>t.value-e.value).find(t=>t.valuee.value-t.value);return t.length>0?t[0].value:0}function uC(e){let t=[...e].sort((e,t)=>e.value-t.value);return t.length>0?t[t.length-1].value:100}var dC={root:`m_dd36362e`,label:`m_c9357328`,thumb:`m_c9a9a60a`,trackContainer:`m_a8645c2`,track:`m_c9ade57f`,bar:`m_38aeed47`,markWrapper:`m_b7b0423a`,mark:`m_dd33bc19`,markLabel:`m_68c77a5b`};function fC(e,t){if(`TouchEvent`in window&&e instanceof window.TouchEvent){let n=e.touches[0];return t===`vertical`?n.clientY:n.clientX}return t===`vertical`?e.clientY:e.clientX}var pC=q((e,{size:t,color:n,thumbSize:r,radius:i})=>({root:{"--slider-size":M(t,`slider-size`),"--slider-color":n?tn(n,e):void 0,"--slider-radius":i===void 0?void 0:P(i),"--slider-thumb-size":r===void 0?`calc(var(--slider-size) * 2)`:g(r)}})),mC={min:0,max:100,minRange:10,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:`fade`,duration:0},labelAlwaysOn:!1,showLabelOnHover:!0,disabled:!1,pushOnOverlap:!0,scale:e=>e,size:`md`,maxRange:1/0},hC=Z(e=>{let t=Y(`RangeSlider`,mC,e),{classNames:n,styles:r,value:i,onChange:a,onChangeEnd:s,size:c,min:l,max:u,domain:d,minRange:f,maxRange:p,step:m,precision:h,defaultValue:g,name:_,marks:v,label:y,labelTransitionProps:b,labelAlwaysOn:x,thumbFromLabel:S,thumbToLabel:C,thumbValueText:w,showLabelOnHover:T,thumbChildren:E,disabled:D,unstyled:O,scale:k,inverted:A,orientation:j,className:M,style:N,vars:P,hiddenInputProps:F,restrictToMarks:I,thumbProps:L,pushOnOverlap:R,attributes:z,ref:B,...V}=t,H=X({name:`RangeSlider`,props:t,classes:dC,classNames:n,className:M,styles:r,style:N,attributes:z,vars:P,varsResolver:pC,unstyled:O}),U=(0,o.useRef)(null),{dir:te}=li(),[ne,re]=(0,o.useState)(-1),[ie,W]=(0,o.useState)(!1),[ae,G]=Le({value:i,defaultValue:g,finalValue:[l,u],onChange:a}),K=(0,o.useRef)(ae),oe=(0,o.useRef)([]),se=(0,o.useRef)(null),ce=(0,o.useRef)(void 0),[le,ue]=d||[l,u],de=[eC({value:ae[0],min:le,max:ue}),eC({value:ae[1],min:le,max:ue})],fe=h??oC(m),pe=e=>{G(e),K.current=e};(0,o.useEffect)(()=>{Array.isArray(i)&&(K.current=i)},Array.isArray(i)?[i[0],i[1]]:[null,null]);let me=(e,t,n)=>{if(t===-1)return;let r=[...K.current];if(I&&v){let n=kt(e,v.map(e=>e.value)),i=r[t];r[t]=n;let a=+(t===0),o=uC(v),s=lC(v);n===o&&r[a]===o||n===s&&r[a]===s?r[t]=i:n===r[a]&&(i>r[a]?r[a]=cC(n,v):r[a]=sC(n,v))}else{let n=ee(e,l,u);r[t]=n,t===0&&(n>r[1]-(f-1e-9)&&(R?r[1]=Math.min(e+f,u):r[t]=K.current[t]),n>(u-(f-1e-9)||l)&&(r[t]=K.current[t]),r[1]-e>p&&(R?r[1]=e+p:r[t]=K.current[t])),t===1&&(np&&(R?r[0]=e-p:r[t]=K.current[t]))}if(r[0]=aC(r[0],fe),r[1]=aC(r[1],fe),r[0]>r[1]){let e=r[0];r[0]=r[1],r[1]=e}pe(r),n&&s?.(K.current)},he=e=>{!D&&ce.current!==void 0&&me(iC({value:e,min:le,max:ue,step:m,precision:fe}),ce.current,!1)},{ref:ge,active:_e}=Ie(({x:e,y:t})=>he(j===`vertical`?1-t:e),{onScrubEnd:()=>!D&&s?.(K.current)},te);function ve(e){ce.current=e}let ye=e=>{if(U.current){U.current.focus();let t=U.current.getBoundingClientRect(),n=fC(e.nativeEvent,j),r=iC(j===`vertical`?{value:t.bottom-n,max:u,min:l,step:m,containerWidth:t.height}:{value:n-t.left,max:u,min:l,step:m,containerWidth:t.width}),i=+(Math.abs(ae[0]-r)>Math.abs(ae[1]-r));ce.current=j===`vertical`||te===`ltr`?i:i===1?0:1}},be=()=>ne!==1&&ne!==0?(re(0),0):ne,xe=e=>{if(!D)switch(e.key){case`ArrowUp`:{e.preventDefault();let t=be();oe.current[t].focus(),me(aC(I&&v?sC(K.current[t],v):Math.min(Math.max(K.current[t]+m,le),ue),fe),t,!0);break}case`ArrowRight`:{e.preventDefault();let t=be();oe.current[t].focus(),me(aC(I&&v?(te===`rtl`?cC:sC)(K.current[t],v):Math.min(Math.max(te===`rtl`?K.current[t]-m:K.current[t]+m,le),ue),fe),t,!0);break}case`ArrowDown`:{e.preventDefault();let t=be();oe.current[t].focus(),me(aC(I&&v?cC(K.current[t],v):Math.min(Math.max(K.current[t]-m,le),ue),fe),t,!0);break}case`ArrowLeft`:{e.preventDefault();let t=be();oe.current[t].focus(),me(aC(I&&v?(te===`rtl`?sC:cC)(K.current[t],v):Math.min(Math.max(te===`rtl`?K.current[t]+m:K.current[t]-m,le),ue),fe),t,!0);break}default:break}},Se={max:u,min:l,size:c,labelTransitionProps:b,labelAlwaysOn:x,orientation:j,onBlur:()=>re(-1)},Ce=Array.isArray(E);return(0,J.jsx)(XS,{value:{getStyles:H},children:(0,J.jsxs)(QS,{...V,size:c,ref:Pe(B,se),disabled:D,orientation:j,onMouseDownCapture:()=>se.current?.focus(),onKeyDownCapture:()=>{oe.current[0]?.parentElement?.contains(document.activeElement)||oe.current[0]?.focus()},children:[(0,J.jsxs)(rC,{offset:de[0],marksOffset:ae[0],filled:de[1]-de[0],marks:v,inverted:A,min:le,max:ue,value:ae[1],disabled:D,containerProps:{ref:Pe(U,ge),onMouseEnter:T?()=>W(!0):void 0,onMouseLeave:T?()=>W(!1):void 0,onTouchStartCapture:ye,onTouchEndCapture:()=>{ce.current=-1},onMouseDownCapture:ye,onMouseUpCapture:()=>{ce.current=-1},onKeyDownCapture:xe},children:[(0,J.jsx)($S,{...Se,value:k(ae[0]),position:de[0],dragging:_e,label:typeof y==`function`?y(aC(k(ae[0]),fe)):y,ref:e=>{e&&(oe.current[0]=e)},thumbLabel:S,thumbValueText:w,onMouseDown:()=>ve(0),onFocus:()=>re(0),showLabelOnHover:T,isHovered:ie,disabled:D,...L?.(0),children:Ce?E[0]:E}),(0,J.jsx)($S,{...Se,thumbLabel:C,value:k(ae[1]),position:de[1],dragging:_e,label:typeof y==`function`?y(aC(k(ae[1]),fe)):y,ref:e=>{e&&(oe.current[1]=e)},thumbValueText:w,onMouseDown:()=>ve(1),onFocus:()=>re(1),showLabelOnHover:T,isHovered:ie,disabled:D,...L?.(1),children:Ce?E[1]:E})]}),(0,J.jsx)(`input`,{type:`hidden`,name:`${_}_from`,value:ae[0],...F}),(0,J.jsx)(`input`,{type:`hidden`,name:`${_}_to`,value:ae[1],...F})]})})});hC.classes=dC,hC.varsResolver=pC,hC.displayName=`@mantine/core/RangeSlider`;var gC={root:`m_6d731127`},_C={gap:`md`,align:`stretch`,justify:`flex-start`},vC=q((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":N(t),"--stack-align":n,"--stack-justify":r}})),yC=Z(e=>{let t=Y(`Stack`,_C,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;return(0,J.jsx)(Q,{...X({name:`Stack`,props:t,classes:gC,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:vC})(`root`),variant:d,...p})});yC.classes=gC,yC.varsResolver=vC,yC.displayName=`@mantine/core/Stack`;var bC=(0,o.createContext)(null),xC={hiddenInputValuesSeparator:`,`},SC=ei((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=Y(`SwitchGroup`,xC,e),[m,h]=Le({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,J.jsx)(bC,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,J.jsxs)(Jd.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,J.jsx)(Rp,{role:`group`,children:o}),(0,J.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));SC.classes=Jd.Wrapper.classes,SC.displayName=`@mantine/core/SwitchGroup`;var CC={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},wC={labelPosition:`right`,withThumbIndicator:!0},TC=q((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:P(t),"--switch-height":M(r,`switch-height`),"--switch-width":M(r,`switch-width`),"--switch-thumb-size":M(r,`switch-thumb-size`),"--switch-label-font-size":M(r,`switch-label-font-size`),"--switch-track-label-padding":M(r,`switch-track-label-padding`),"--switch-color":n?tn(n,e):void 0}})),EC=Z(e=>{let t=Y(`Switch`,wC,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,color:l,label:u,offLabel:d,onLabel:f,id:p,size:m,radius:h,wrapperProps:g,thumbIcon:_,checked:v,defaultChecked:y,onChange:b,labelPosition:x,description:S,error:C,disabled:w,variant:T,rootRef:E,mod:D,withThumbIndicator:O,attributes:k,...A}=t,j=(0,o.use)(bC),M=m||j?.size,N=X({name:`Switch`,props:t,classes:CC,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:k,vars:c,varsResolver:TC}),{styleProps:P,rest:F}=Er(A),I=Ce(p),L=[S?`${I}-description`:void 0,C&&typeof C!=`boolean`?`${I}-error`:void 0,F[`aria-describedby`]].filter(Boolean).join(` `)||void 0,R={checked:j?.value.includes(F.value)??v,onChange:e=>{j?.onChange(e),b?.(e)}},z=w||j?.isDisabled?.(F.value),[B,V]=Le({value:R.checked??v,defaultValue:y,finalValue:!1});return(0,J.jsxs)(tm,{...N(`root`),__staticSelector:`Switch`,__stylesApiProps:t,id:I,size:M,labelPosition:x,label:u,description:S,error:C,disabled:z,bodyElement:`label`,labelElement:`span`,classNames:n,styles:a,unstyled:s,"data-checked":R.checked,variant:T,ref:E,mod:D,attributes:k,inert:F.inert,...P,...g,children:[(0,J.jsx)(`input`,{...F,...R,disabled:z,checked:B,"data-checked":R.checked,onChange:e=>{R.onChange?.(e),V(e.currentTarget.checked)},id:I,type:`checkbox`,role:`switch`,inert:F.inert,"aria-describedby":L,...N(`input`)}),(0,J.jsxs)(Q,{"aria-hidden":`true`,component:`span`,mod:{error:C,"label-position":x,"without-labels":!f&&!d},...N(`track`),children:[(0,J.jsx)(Q,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":O&&!_},...N(`thumb`),children:_}),(0,J.jsx)(`span`,{...N(`trackLabel`),children:B?f:d})]})]})});EC.classes={...CC,...em},EC.varsResolver=TC,EC.displayName=`@mantine/core/Switch`,EC.Group=SC;var[DC,OC]=x(`Table component was not found in the tree`),kC={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 AC(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 jC(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=Z(r=>{let i=Y(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=OC();return(0,J.jsx)(Q,{component:e,...AC(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=kC,r}var MC=jC(`th`,{columnBorder:!0}),NC=jC(`td`,{columnBorder:!0}),PC=jC(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),FC=jC(`thead`,{stickyHeader:!0}),IC=jC(`tbody`),LC=jC(`tfoot`),RC=jC(`caption`,{captionSide:!0}),zC={type:`scrollarea`},BC=q((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":g(t),"--table-max-height":g(n),"--table-overflow":r===`native`?`auto`:void 0}})),VC=Z(e=>{let t=Y(`TableScrollContainer`,zC,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=X({name:`TableScrollContainer`,classes:kC,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:BC,rootSelector:`scrollContainer`});return(0,J.jsx)(Q,{component:d===`scrollarea`?Ac:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,J.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});VC.classes=kC,VC.varsResolver=BC,VC.displayName=`@mantine/core/TableScrollContainer`;function HC({data:e}){return(0,J.jsxs)(J.Fragment,{children:[e.caption&&(0,J.jsx)(RC,{children:e.caption}),e.head&&(0,J.jsx)(FC,{children:(0,J.jsx)(PC,{children:e.head.map((e,t)=>(0,J.jsx)(MC,{children:e},t))})}),e.body&&(0,J.jsx)(IC,{children:e.body.map((e,t)=>(0,J.jsx)(PC,{children:e.map((e,t)=>(0,J.jsx)(NC,{children:e},t))},t))}),e.foot&&(0,J.jsx)(LC,{children:(0,J.jsx)(PC,{children:e.foot.map((e,t)=>(0,J.jsx)(MC,{children:e},t))})})]})}HC.displayName=`@mantine/core/TableDataRenderer`;var UC={withRowBorders:!0,verticalSpacing:7},WC=q((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":N(r),"--table-vertical-spacing":N(i),"--table-border-color":a?tn(a,e):void 0,"--table-striped-color":c&&o?tn(o,e):void 0,"--table-highlight-on-hover-color":l&&s?tn(s,e):void 0,"--table-sticky-header-offset":d?g(u):void 0}})),GC=Z(e=>{let t=Y(`Table`,UC,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=X({name:`Table`,props:t,className:r,style:i,classes:kC,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:WC});return(0,J.jsx)(DC,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,J.jsx)(Q,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,J.jsx)(HC,{data:b})})})});GC.classes=kC,GC.varsResolver=WC,GC.displayName=`@mantine/core/Table`,GC.Td=NC,GC.Th=MC,GC.Tr=PC,GC.Thead=FC,GC.Tbody=IC,GC.Tfoot=LC,GC.Caption=RC,GC.ScrollContainer=VC,GC.DataRenderer=HC;var[KC,qC]=x(`Tabs component was not found in the tree`),JC={root:`m_89d60db1`,"list--default":`m_576c9d4`,list:`m_89d33d6d`,tab:`m_4ec4dce6`,panel:`m_b0c91715`,tabSection:`m_fc420b1f`,tabLabel:`m_42bbd1ae`,"tab--default":`m_539e827b`,"list--outline":`m_6772fbd5`,"tab--outline":`m_b59ab47c`,"tab--pills":`m_c3381914`},YC=Z(e=>{let t=Y(`TabsList`,null,e),{children:n,className:r,grow:i,justify:a,classNames:o,styles:s,style:c,mod:l,...u}=t,d=qC();return(0,J.jsx)(Q,{...d.getStyles(`list`,{className:r,style:c,classNames:o,styles:s,props:t,variant:d.variant}),role:`tablist`,variant:d.variant,mod:[{grow:i,orientation:d.orientation,placement:d.orientation===`vertical`&&d.placement,inverted:d.inverted},l],"aria-orientation":d.orientation,__vars:{"--tabs-justify":a},...u,children:n})});YC.classes=JC,YC.displayName=`@mantine/core/TabsList`;var XC=Z(e=>{let t=Y(`TabsPanel`,null,e),{children:n,className:r,value:i,classNames:a,styles:s,style:c,mod:l,keepMounted:u,...d}=t,f=Cn(),p=qC();(0,o.useEffect)(()=>(p.setMountedPanel(i,!0),()=>{p.setMountedPanel(i,!1)}),[i]);let m=p.value===i,h=p.keepMounted||u,g=p.keepMountedMode!==`display-none`,_=h&&g&&f!==`test`?(0,J.jsx)(o.Activity,{mode:m?`visible`:`hidden`,children:n}):h||m?n:null;return(0,J.jsx)(Q,{...p.getStyles(`panel`,{className:r,classNames:a,styles:s,style:[c,m?void 0:{display:`none`}],props:t}),mod:[{orientation:p.orientation},l],role:`tabpanel`,id:p.getPanelId(i),"aria-labelledby":p.getTabId(i),...d,children:_})});XC.classes=JC,XC.displayName=`@mantine/core/TabsPanel`;var ZC=Z(e=>{let t=Y(`TabsTab`,null,e),{className:n,children:r,rightSection:i,leftSection:a,value:o,onClick:s,onKeyDown:c,disabled:l,color:u,style:d,classNames:f,styles:p,vars:m,mod:h,tabIndex:g,..._}=t,v=Bn(),{dir:y}=li(),b=qC(),x=o===b.value,S=e=>{b.onChange(b.allowTabDeactivation&&o===b.value?null:o),s?.(e)},C={classNames:f,styles:p,props:t};return(0,J.jsxs)(Pc,{...b.getStyles(`tab`,{className:n,style:d,variant:b.variant,...C}),disabled:l,unstyled:b.unstyled,variant:b.variant,mod:[{active:x,disabled:l,orientation:b.orientation,inverted:b.inverted,placement:b.orientation===`vertical`&&b.placement},h],role:`tab`,id:b.getTabId(o),"aria-selected":x,tabIndex:g===void 0?x||b.value===null?0:-1:g,"aria-controls":b.mountedPanels.current.has(o)?b.getPanelId(o):void 0,onClick:S,__vars:{"--tabs-color":u?tn(u,v):void 0},onKeyDown:D({siblingSelector:`[role="tab"]`,parentSelector:`[role="tablist"]`,activateOnFocus:b.activateTabWithKeyboard,loop:b.loop,orientation:b.orientation||`horizontal`,dir:y,onKeyDown:c}),..._,children:[a&&(0,J.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`left`,children:a}),r&&(0,J.jsx)(`span`,{...b.getStyles(`tabLabel`,C),children:r}),i&&(0,J.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`right`,children:i})]})});ZC.classes=JC,ZC.displayName=`@mantine/core/TabsTab`;var QC=`Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value`,$C={keepMounted:!0,keepMountedMode:`activity`,orientation:`horizontal`,loop:!0,activateTabWithKeyboard:!0,variant:`default`,placement:`left`},ew=q((e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":P(t),"--tabs-color":tn(n,e),"--tabs-text-color":pn(r,e)?un({color:n,theme:e,autoContrast:r}):void 0}})),tw=Z(e=>{let t=Y(`Tabs`,$C,e),{defaultValue:n,value:r,onChange:i,orientation:a,children:s,loop:c,id:l,activateTabWithKeyboard:u,allowTabDeactivation:d,variant:f,color:p,radius:m,inverted:h,placement:g,keepMounted:_,keepMountedMode:v,classNames:y,styles:b,unstyled:x,className:C,style:w,vars:T,autoContrast:E,mod:D,attributes:O,...k}=t,A=Ce(l),j=(0,o.useRef)(new Set),M=Se(),N=(0,o.useCallback)((e,t)=>{let n=j.current;t&&!n.has(e)?(n.add(e),M()):!t&&n.has(e)&&(n.delete(e),M())},[]),[P,F]=Le({value:r,defaultValue:n,finalValue:null,onChange:i}),I=X({name:`Tabs`,props:t,classes:JC,className:C,style:w,classNames:y,styles:b,unstyled:x,attributes:O,vars:T,varsResolver:ew});return(0,J.jsx)(KC,{value:{placement:g,value:P,orientation:a,id:A,loop:c,activateTabWithKeyboard:u,getTabId:S(`${A}-tab`,QC),getPanelId:S(`${A}-panel`,QC),onChange:F,allowTabDeactivation:d,variant:f,color:p,radius:m,inverted:h,keepMounted:_,keepMountedMode:v,unstyled:x,getStyles:I,mountedPanels:j,setMountedPanel:N},children:(0,J.jsx)(Q,{id:A,variant:f,mod:[{orientation:a,inverted:a===`horizontal`&&h,placement:a===`vertical`&&g},D],...I(`root`),...k,children:s})})});tw.classes=JC,tw.varsResolver=ew,tw.displayName=`@mantine/core/Tabs`,tw.Tab=ZC,tw.Panel=XC,tw.List=YC;function nw({data:e,value:t}){let n=t.map(e=>e.trim().toLowerCase());return e.reduce((e,t)=>(om(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(e.label.toLowerCase().trim())===-1)}):n.indexOf(t.label.toLowerCase().trim())===-1&&e.push(t),e),[])}function rw(e,t){return e?t.split(RegExp(`[${e.join(``)}]`)).map(e=>e.trim()).filter(e=>e!==``):[t]}function iw({splitChars:e,allowDuplicates:t,maxTags:n,value:r,currentTags:i,isDuplicate:a,onDuplicate:o}){let s=rw(e,r),c=[];if(t)c.push(...i,...s);else{c.push(...i);for(let e of s)(a?e=>a(e,c):e=>c.some(t=>t.toLowerCase()===e.toLowerCase()))(e)?o?.(e):c.push(e)}return n?c.slice(0,n):c}var aw={maxTags:1/0,acceptValueOnBlur:!0,splitChars:[`,`],hiddenInputValuesDivider:`,`,openOnFocus:!0,size:`sm`},ow=Z(e=>{let t=Y([`Input`,`InputWrapper`,`TagsInput`],aw,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,size:l,value:u,defaultValue:d,onChange:f,onKeyDown:p,maxTags:m,allowDuplicates:h,onDuplicate:g,variant:_,data:v,dropdownOpened:y,defaultDropdownOpened:b,onDropdownOpen:x,onDropdownClose:S,selectFirstOptionOnChange:C,selectFirstOptionOnDropdownOpen:w,onOptionSubmit:T,comboboxProps:E,filter:D,limit:O,withScrollArea:k,maxDropdownHeight:A,floatingHeight:j,searchValue:M,defaultSearchValue:N,onSearchChange:P,readOnly:F,disabled:I,splitChars:L,onFocus:R,onBlur:z,onPaste:B,radius:V,rightSection:H,rightSectionWidth:ee,rightSectionPointerEvents:U,rightSectionProps:te,leftSection:ne,leftSectionWidth:re,leftSectionPointerEvents:ie,leftSectionProps:W,inputContainer:ae,inputWrapperOrder:G,withAsterisk:K,required:oe,labelProps:se,descriptionProps:ce,errorProps:le,successProps:ue,wrapperProps:de,description:fe,label:pe,error:me,success:he,withErrorStyles:ge,withSuccessStyles:_e,name:ve,form:ye,id:be,clearable:xe,clearSectionMode:Se,clearButtonProps:we,hiddenInputProps:Te,hiddenInputValuesDivider:Ee,mod:De,renderOption:Oe,renderPill:ke,onRemove:Ae,onClear:je,onMaxTags:Me,scrollAreaProps:Ne,acceptValueOnBlur:Fe,isDuplicate:Ie,openOnFocus:Re,attributes:ze,ref:Be,loading:Ve,loadingPosition:He,withPillsReorder:Ue,...We}=t,Ge=Ce(be),Ke=ap(v),qe=op(Ke),Je=(0,o.useRef)(null),Ye=Pe(Je,Be),Xe=Pp({opened:y,defaultOpened:b,onDropdownOpen:()=>{x?.(),w&&Xe.selectFirstOption()},onDropdownClose:()=>{S?.(),Xe.resetSelectedOption()}}),{styleProps:Ze,rest:{type:Qe,autoComplete:$e,...et}}=Er(We),[tt,nt]=Le({value:u,defaultValue:d,finalValue:[],onChange:f}),{getPillProps:rt,getListProps:it,handleInputKeyDown:at}=gm({value:tt,onChange:nt,enabled:Ue&&!I&&!F}),[ot,st]=Le({value:M,defaultValue:N,finalValue:``,onChange:P}),ct=e=>{st(e),Xe.resetSelectedOption()},lt=X({name:`TagsInput`,classes:{},props:t,classNames:n,styles:a,unstyled:s}),{resolvedClassNames:ut,resolvedStyles:dt}=or({props:t,styles:a,classNames:n}),ft=e=>{if((Ie?Ie(e,tt):tt.some(t=>t.toLowerCase()===e.toLowerCase()))&&(g?.(e),!h)){ct(``);return}if(tt.length>=m){Me?.(e);return}T?.(e),ct(``),e.length>0&&nt([...tt,e])},pt=e=>{if(p?.(e),e.defaultPrevented||e.isPropagationStopped())return;let t=ot.trim(),{length:n}=t;if(L.includes(e.key)&&n>0&&(nt(iw({splitChars:L,allowDuplicates:h,maxTags:m,value:ot,currentTags:tt,isDuplicate:Ie,onDuplicate:g})),ct(``),e.preventDefault()),e.key===`Enter`&&n>0&&!e.nativeEvent.isComposing){if(e.preventDefault(),document.querySelector(`#${Xe.listId} [data-combobox-option][data-combobox-selected]`))return;ft(t)}e.key===`Backspace`&&n===0&&tt.length>0&&!e.nativeEvent.isComposing&&!F&&(Ae?.(tt[tt.length-1]),nt(tt.slice(0,tt.length-1))),at(e)},mt=e=>{B?.(e),e.preventDefault(),e.clipboardData&&(nt(iw({splitChars:L,allowDuplicates:h,maxTags:m,value:`${ot}${e.clipboardData.getData(`text/plain`)}`,currentTags:tt,isDuplicate:Ie,onDuplicate:g})),ct(``))},ht=tt.map((e,t)=>{let n=()=>{let n=tt.slice();n.splice(t,1),nt(n),Ae?.(e)},r=rt(t);return ke?(0,J.jsx)(o.Fragment,{children:ke({option:qe[e]||{value:e,label:e,disabled:!1},value:e,onRemove:n,disabled:I||F,reorderProps:r})},`${e}-${t}`):(0,J.jsx)(_y,{withRemoveButton:!F,onRemove:n,unstyled:s,disabled:I,attributes:ze,...lt(`pill`),...r,children:e},`${e}-${t}`)});(0,o.useEffect)(()=>{C&&Xe.selectFirstOption()},[C,tt,ot]);let gt=(0,J.jsx)(Lp.ClearButton,{...we,onClear:()=>{nt([]),ct(``),Je.current?.focus(),Xe.openDropdown(),je?.()}});return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(Lp,{store:Xe,classNames:ut,styles:dt,unstyled:s,size:l,readOnly:F,__staticSelector:`TagsInput`,attributes:ze,floatingHeight:j,onOptionSubmit:e=>{T?.(e),ct(``),tt.length>=m?Me?.(e):nt([...tt,qe[e].value]),Xe.resetSelectedOption()},...E,children:[(0,J.jsx)(Lp.DropdownTarget,{children:(0,J.jsx)(Sy,{...Ze,__staticSelector:`TagsInput`,classNames:ut,styles:dt,unstyled:s,size:l,className:r,style:i,variant:_,disabled:I,radius:V,rightSection:H,__clearSection:gt,__clearable:xe&&tt.length>0&&!I&&!F,__clearSectionMode:Se,rightSectionWidth:ee,rightSectionPointerEvents:U,rightSectionProps:te,leftSection:ne,leftSectionWidth:re,leftSectionPointerEvents:ie,leftSectionProps:W,loading:Ve,loadingPosition:He,inputContainer:ae,inputWrapperOrder:G,withAsterisk:K,required:oe,labelProps:se,descriptionProps:ce,errorProps:le,successProps:ue,wrapperProps:de,description:fe,label:pe,error:me,success:he,withErrorStyles:ge,withSuccessStyles:_e,__stylesApiProps:{...t,multiline:!0},id:Ge,mod:De,attributes:ze,children:(0,J.jsxs)(_y.Group,{disabled:I,unstyled:s,...lt(`pillsList`),...it(),children:[ht,(0,J.jsx)(Lp.EventsTarget,{autoComplete:$e,withExpandedAttribute:!0,children:(0,J.jsx)(Sy.Field,{...et,ref:Ye,...lt(`inputField`),unstyled:s,onKeyDown:pt,onFocus:e=>{R?.(e),Re&&Xe.openDropdown()},onBlur:e=>{z?.(e),Fe&&ft(ot),Xe.closeDropdown()},onPaste:mt,value:ot,onChange:e=>ct(e.currentTarget.value),required:oe&&tt.length===0,disabled:I,readOnly:F,id:Ge})})]})})}),(0,J.jsx)(fm,{data:nw({data:Ke,value:tt}),hidden:F||I,filter:D,search:ot,limit:O,hiddenWhenEmpty:!0,withScrollArea:k,maxDropdownHeight:A,unstyled:s,labelId:pe?`${Ge}-label`:void 0,"aria-label":pe?void 0:We[`aria-label`],renderOption:Oe,scrollAreaProps:Ne})]}),(0,J.jsx)(Lp.HiddenInput,{name:ve,form:ye,value:tt,valuesDivider:Ee,disabled:I,...Te})]})});ow.classes={...Zd.classes,...Lp.classes},ow.displayName=`@mantine/core/TagsInput`;var sw=Z(e=>(0,J.jsx)(Zd,{component:`input`,...Y([`Input`,`InputWrapper`,`TextInput`],null,e),__staticSelector:`TextInput`}));sw.classes=Zd.classes,sw.displayName=`@mantine/core/TextInput`;var cw={root:`m_7341320d`},lw=q((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":M(t,`ti-size`),"--ti-radius":n===void 0?void 0:P(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}}}),uw=Z(e=>{let t=Y(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,J.jsx)(Q,{...X({name:`ThemeIcon`,classes:cw,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:lw})(`root`),...u})});uw.classes=cw,uw.varsResolver=lw,uw.displayName=`@mantine/core/ThemeIcon`;var dw=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],fw=[`xs`,`sm`,`md`,`lg`,`xl`];function pw(e,t){let n=t===void 0?`h${e}`:t;return dw.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:fw.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:g(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var mw={root:`m_8a5d1357`},hw={order:1},gw=q((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=pw(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),_w=Z(e=>{let t=Y(`Title`,hw,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=X({name:`Title`,props:t,classes:mw,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:gw});return[1,2,3,4,5,6].includes(s)?(0,J.jsx)(Q,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});_w.classes=mw,_w.varsResolver=gw,_w.displayName=`@mantine/core/Title`;var vw={root:`m_d08caa0`},yw=Z(e=>{let t=Y(`Typography`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,attributes:s,...c}=t;return(0,J.jsx)(Q,{...X({name:`Typography`,classes:vw,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:s})(`root`),...c})});yw.classes=vw,yw.displayName=`@mantine/core/Typography`;var bw=(0,o.createContext)(null);bw.displayName=`@mantine/modals/ModalsContext`;function xw(){let e=(0,o.use)(bw);if(!e)throw Error(`[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component`);return e}var[Sw,Cw]=Dt(`mantine-modals`),ww={open:e=>{let t=e.modalId||U();return Cw(`openModal`)({...e,modalId:t}),t},close:Cw(`closeModal`),closeAll:Cw(`closeAllModals`),openConfirmModal:e=>{let t=e.modalId||U();return Cw(`openConfirmModal`)({...e,modalId:t}),t},openContextModal:e=>{let t=e.modalId||U();return Cw(`openContextModal`)({...e,modalId:t}),t},updateModal:e=>Cw(`updateModal`)(e),updateContextModal:e=>Cw(`updateContextModal`)(e)};function Tw({id:e,cancelProps:t,confirmProps:n,labels:r={cancel:``,confirm:``},closeOnConfirm:i=!0,closeOnCancel:a=!0,groupProps:o,onCancel:s,onConfirm:c,children:l}){let{cancel:u,confirm:d}=r,f=xw(),p=n=>{typeof t?.onClick==`function`&&t?.onClick(n),typeof s==`function`&&s(),a&&f.closeModal(e)},m=t=>{typeof n?.onClick==`function`&&n?.onClick(t),typeof c==`function`&&c(),i&&f.closeModal(e)};return(0,J.jsxs)(J.Fragment,{children:[l&&(0,J.jsx)(Q,{mb:`md`,children:l}),(0,J.jsxs)($l,{mt:l?0:`md`,justify:`flex-end`,...o,children:[(0,J.jsx)(qm,{variant:`default`,...t,onClick:p,children:t?.children||u}),(0,J.jsx)(qm,{...n,onClick:m,children:n?.children||d})]})]})}function Ew(e,t){t&&e.type===`confirm`&&e.props.onCancel?.(),e.props.onClose?.()}function Dw(e,t){switch(t.type){case`OPEN`:return e.modals.some(e=>e.id===t.modal.id)?e:{current:t.modal,modals:[...e.modals,t.modal]};case`CLOSE`:{if(!e.modals.find(e=>e.id===t.modalId))return e;let n=e.modals.filter(e=>e.id!==t.modalId);return{current:n[n.length-1]||e.current,modals:n}}case`CLOSE_ALL`:return e.modals.length?{current:e.current,modals:[]}:e;case`UPDATE`:{let{modalId:n,newProps:r}=t,i=e.modals.map(e=>e.id===n?e.type===`content`||e.type===`confirm`?{...e,props:{...e.props,...r}}:e.type===`context`?{...e,props:{...e.props,...r,innerProps:{...e.props.innerProps,...r.innerProps}}}:e:e),a=e.current?.id===n&&i.find(e=>e.id===n)||e.current;return{...e,modals:i,current:a}}default:return e}}function Ow(e){if(!e)return{confirmProps:{},modalProps:{}};let{id:t,children:n,onCancel:r,onConfirm:i,closeOnConfirm:a,closeOnCancel:o,cancelProps:s,confirmProps:c,groupProps:l,labels:u,...d}=e;return{confirmProps:{id:t,children:n,onCancel:r,onConfirm:i,closeOnConfirm:a,closeOnCancel:o,cancelProps:s,confirmProps:c,groupProps:l,labels:u},modalProps:{id:t,...d}}}function kw({children:e,modalProps:t,labels:n,modals:r}){let[i,a]=(0,o.useReducer)(Dw,{modals:[],current:null}),s=(0,o.useRef)(i);s.current=i;let c=(0,o.useRef)(!1),l=(0,o.useCallback)(e=>{c.current||=(c.current=!0,s.current.modals.concat().reverse().forEach(t=>{Ew(t,e)}),!1),a({type:`CLOSE_ALL`,canceled:e})},[s,a]),u=(0,o.useCallback)(({modalId:e,...t})=>{let n=e||U();return a({type:`OPEN`,modal:{id:n,type:`content`,props:t}}),n},[a]),d=(0,o.useCallback)(({modalId:e,...t})=>{let n=e||U();return a({type:`OPEN`,modal:{id:n,type:`confirm`,props:t}}),n},[a]),f=(0,o.useCallback)((e,{modalId:t,...n})=>{let r=t||U();return a({type:`OPEN`,modal:{id:r,type:`context`,props:n,ctx:e}}),r},[a]),p=(0,o.useCallback)((e,t)=>{if(!c.current){let n=s.current.modals.find(t=>t.id===e);n&&(c.current=!0,Ew(n,t),c.current=!1)}a({type:`CLOSE`,modalId:e,canceled:t})},[s,a]),m=(0,o.useCallback)(({modalId:e,...t})=>{a({type:`UPDATE`,modalId:e,newProps:t})},[a]),h=(0,o.useCallback)(({modalId:e,...t})=>{a({type:`UPDATE`,modalId:e,newProps:t})},[a]);Sw({openModal:u,openConfirmModal:d,openContextModal:({modal:e,...t})=>f(e,t),closeModal:p,closeContextModal:p,closeAllModals:l,updateModal:m,updateContextModal:h});let g={modalProps:t||{},modals:i.modals,openModal:u,openConfirmModal:d,openContextModal:f,closeModal:p,closeContextModal:p,closeAll:l,updateModal:m,updateContextModal:h},{modalProps:_,content:v}=(()=>{let e=s.current.current;switch(e?.type){case`context`:{let{innerProps:t,...n}=e.props,i=r[e.ctx];return{modalProps:n,content:(0,J.jsx)(i,{innerProps:t,context:g,id:e.id})}}case`confirm`:{let{modalProps:t,confirmProps:r}=Ow(e.props);return{modalProps:t,content:(0,J.jsx)(Tw,{...r,id:e.id,labels:e.props.labels||n})}}case`content`:{let{children:t,...n}=e.props;return{modalProps:n,content:t}}default:return{modalProps:{},content:null}}})();return(0,J.jsxs)(bw,{value:g,children:[(0,J.jsx)(ly,{zIndex:k(`modal`)+1,...t,..._,opened:i.modals.length>0,onClose:()=>p(i.current?.id),children:v}),e]})}function Aw(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function jw(e){return(0,o.useSyncExternalStore)(e.subscribe,()=>e.getState(),()=>e.getState())}var Mw=0;function Nw(e,t,n){let r=[],i=[],a=new Map;for(let n of e){let e=n.position||t,r=a.get(e);r?r.push(n):a.set(e,[n])}for(let e of a.values())e.sort((e,t)=>(t.priority??0)-(e.priority??0)||(e.__sequence??0)-(t.__sequence??0)),e.forEach((e,t)=>{tjw(e);function Iw(e,t){let n=e.getState(),r=t([...n.notifications,...n.queue]);for(let e of r)e.__sequence===void 0&&(e.__sequence=Mw,Mw+=1);let i=Nw(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Lw(e,t=Pw){let n=e.id||U();return Iw(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function Rw(e,t=Pw){return Iw(t,t=>t.filter(t=>t.id===e?(t.onClose?.(t),!1):!0)),e}function zw(e,t=Pw){return Iw(t,t=>t.map(t=>t.id===e.id?{...t,...e}:t)),e.id}function Bw(e=Pw){Iw(e,()=>[])}function Vw(e=Pw){let{defaultPosition:t,limit:n}=e.getState();Iw(e,e=>Nw(e,t,n).notifications)}var Hw={show:Lw,hide:Rw,update:zw,clean:Bw,cleanQueue:Vw,updateState:Iw},Uw=[`bottom-center`,`bottom-left`,`bottom-right`,`top-center`,`top-left`,`top-right`];function Ww(e,t){return e.reduce((e,n)=>(e[n.position||t].push(n),e),Uw.reduce((e,t)=>(e[t]=[],e),{}))}var Gw={left:`translateX(-100%)`,right:`translateX(100%)`,"top-center":`translateY(-100%)`,"bottom-center":`translateY(100%)`},Kw={left:`translateX(0)`,right:`translateX(0)`,"top-center":`translateY(0)`,"bottom-center":`translateY(0)`};function qw({state:e,maxHeight:t,position:n,transitionDuration:r}){let[i,a]=n.split(`-`),o=a===`center`?`${i}-center`:a,s={opacity:0,maxHeight:t,transform:Gw[o],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:`cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear`,transitionProperty:`opacity, transform, max-height`},c={opacity:1,transform:Kw[o]},l={opacity:0,maxHeight:0,transform:Gw[o]},u={entering:c,entered:c,exiting:l,exited:l};return{...s,...u[e]}}function Jw(e,t){return typeof t==`number`?t:t===!1||e===!1?!1:e}var Yw=120;function Xw({data:e,onHide:t,autoClose:n,transitionDuration:r,allowDragDismiss:i,allowScrollDismiss:a,paused:s,onHoverStart:c,onHoverEnd:l,ref:u,style:d,...f}){let[p,m]=(0,o.useState)(0),[h,g]=(0,o.useState)(!1),[_,v]=(0,o.useState)(1),[y,b]=(0,o.useState)(!1),x=Bn(),{autoClose:S,message:C,allowClose:w,position:T,style:E,withCloseButton:D,onOpen:O,priority:k,__sequence:A,...j}=e,M=Jw(n,e.autoClose),N=(0,o.useRef)(-1),P=(0,o.useRef)(-1),F=(0,o.useRef)(-1),I=(0,o.useRef)(null),L=(0,o.useRef)(!1),R=(0,o.useRef)(0),z=w===!1,B=()=>window.clearTimeout(N.current),V=()=>window.clearTimeout(P.current),H=()=>window.clearTimeout(F.current),ee=e=>{R.current=e,m(e)},U=()=>{t(e.id),B(),V(),H()},te=()=>{h||K||s||L.current||typeof M!=`number`||(N.current=window.setTimeout(U,M))},ne=e=>e*((I.current?.offsetWidth??440)+40),re=(e,t)=>{let n=I.current?.offsetWidth??440;return Math.abs(e)>n*.35||t>.5},ie=()=>{H(),b(!1),ee(0)},W=e=>{v(e),g(!0),b(!1),ee(ne(e)),B(),V(),H(),P.current=window.setTimeout(U,r)},ae=()=>{H(),F.current=window.setTimeout(()=>{b(!1),ee(0),te()},Yw)},{ref:G,active:K}=Tt(e=>{if(!h)if(e.first&&B(),e.last){if(e.tap||e.canceled){ee(0),te();return}let t=e.movement[0],n=t===0?e.direction[0]===-1?-1:1:t>0?1:-1;re(t,e.velocity[0])?W(n):(ee(0),te())}else ee(e.movement[0])},{axis:`x`,threshold:5,filterTaps:!0,enabled:i&&!z&&!h}),oe=Pe(u,I,G),se=Xr(d,x),ce=Xr(E,x),le={...se,...ce},ue=typeof le.opacity==`number`?le.opacity:1,de=h?0:1-Math.min(Math.abs(p)/200,1)*.6,fe=le.transitionDuration??`${r}ms, ${r}ms, ${r}ms`,pe={...le,"--notifications-state-transform":typeof le.transform==`string`?le.transform:`translateX(0)`,"--notifications-state-opacity":String(ue),"--notifications-swipe-offset":`${p}px`,"--notifications-swipe-opacity":String(de),transform:`var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)`,opacity:`calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))`,transitionDuration:K||y?`0ms, 0ms, 0ms`:fe,cursor:`default`,touchAction:`pan-y`},me=()=>{L.current=!0,B(),c?.()},he=()=>{L.current=!1,y||(ie(),te()),l?.()},ge=(0,o.useEffectEvent)(e=>{if(h||K)return;let t=e.currentTarget===document;if(!t&&!L.current)return;let{deltaX:n,deltaY:r}=e;if(Math.abs(n)<=Math.abs(r)||n===0||!a||z)return;t||(e.preventDefault(),e.stopPropagation()),B(),b(!0);let i=R.current-n,o=i>0?1:-1;if(re(i,0)){W(o);return}ee(i),ae()});return(0,o.useEffect)(()=>{if(y)return document.addEventListener(`wheel`,ge,{passive:!1}),()=>document.removeEventListener(`wheel`,ge,{passive:!1})},[y]),(0,o.useEffect)(()=>{let e=()=>{h&&ee(ne(_))};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[_,h]),(0,o.useEffect)(()=>{let e=I.current;if(e)return e.addEventListener(`wheel`,ge,{passive:!1}),()=>e.removeEventListener(`wheel`,ge,{passive:!1})},[]),(0,o.useEffect)(()=>()=>{V(),H()},[]),(0,o.useEffect)(()=>{e.onOpen?.(e)},[]),(0,o.useEffect)(()=>(te(),B),[M,K,h]),(0,o.useEffect)(()=>(s?B():te(),B),[s]),(0,J.jsx)(Ry,{ref:oe,...f,style:pe,...j,withCloseButton:z?!1:D,onClose:U,onMouseEnter:me,onMouseLeave:he,children:C})}Xw.displayName=`@mantine/notifications/NotificationContainer`;var Zw={root:`m_b37d9ac7`,notification:`m_5ed0edd0`};function Qw(){return Qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t({root:{"--notifications-z-index":t?.toString(),"--notifications-container-width":g(n)}})),wT=Z(e=>{let t=Y(`Notifications`,ST,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,attributes:l,position:u,autoClose:d,transitionDuration:f,allowDragDismiss:p,allowScrollDismiss:m,containerWidth:h,notificationMaxHeight:g,limit:_,zIndex:v,store:y,portalProps:b,withinPortal:x,pauseResetOnHover:S,...C}=t,w=Bn(),T=Fw(y),E=Se(),D=Ve(),O=(0,o.useRef)({}),k=(0,o.useRef)(0),[A,j]=(0,o.useState)(0),M=(0,o.useCallback)(()=>j(e=>e+1),[]),N=(0,o.useCallback)(()=>j(e=>Math.max(0,e-1)),[]),P=w.respectReducedMotion&&D?1:f,F=X({name:`Notifications`,classes:Zw,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:l,vars:c,varsResolver:CT});(0,o.useEffect)(()=>{y?.updateState(e=>({...e,limit:_||5,defaultPosition:u}))},[_,u]),le(()=>{T.notifications.length>k.current&&setTimeout(()=>E(),0),k.current=T.notifications.length},[T.notifications]);let I=Ww(T.notifications,u),L=Uw.reduce((e,t)=>(e[t]=I[t].map(({style:e,...n})=>(0,J.jsx)(xT,{timeout:P,onEnter:()=>O.current[n.id].offsetHeight,nodeRef:{current:O.current[n.id]},children:r=>(0,J.jsx)(Xw,{ref:e=>{e?O.current[n.id]=e:delete O.current[n.id]},data:n,onHide:e=>Rw(e,y),autoClose:d,transitionDuration:P,allowDragDismiss:p,allowScrollDismiss:m,paused:S===`all`?A>0:!1,onHoverStart:M,onHoverEnd:N,...F(`notification`,{style:{...qw({state:r,position:t,transitionDuration:P,maxHeight:g}),...e}})})},n.id)),e),{});return(0,J.jsxs)(rl,{withinPortal:x,...b,children:[(0,J.jsx)(Q,{...F(`root`),"data-position":`top-center`,...C,children:(0,J.jsx)(bT,{children:L[`top-center`]})}),(0,J.jsx)(Q,{...F(`root`),"data-position":`top-left`,...C,children:(0,J.jsx)(bT,{children:L[`top-left`]})}),(0,J.jsx)(Q,{...F(`root`,{className:fd.classNames.fullWidth}),"data-position":`top-right`,...C,children:(0,J.jsx)(bT,{children:L[`top-right`]})}),(0,J.jsx)(Q,{...F(`root`,{className:fd.classNames.fullWidth}),"data-position":`bottom-right`,...C,children:(0,J.jsx)(bT,{children:L[`bottom-right`]})}),(0,J.jsx)(Q,{...F(`root`),"data-position":`bottom-left`,...C,children:(0,J.jsx)(bT,{children:L[`bottom-left`]})}),(0,J.jsx)(Q,{...F(`root`),"data-position":`bottom-center`,...C,children:(0,J.jsx)(bT,{children:L[`bottom-center`]})})]})});wT.classes=Zw,wT.varsResolver=CT,wT.displayName=`@mantine/notifications/Notifications`,wT.show=Hw.show,wT.hide=Hw.hide,wT.update=Hw.update,wT.clean=Hw.clean,wT.cleanQueue=Hw.cleanQueue,wT.updateState=Hw.updateState;function TT(e){let t=.5;return e>=0&&e<=20?t=10:e>=20&&e<=50?t=4:e>=50&&e<=80?t=2:e>=80&&e<=99?t=1:e>=99&&e<=100&&(t=0),e+t}var ET=()=>Aw({mounted:!1,progress:0,interval:0,step:1,stepInterval:100,timeouts:[]}),DT=e=>jw(e);function OT(e,t){let n=t.getState();t.setState({...n,...e(t.getState())})}function kT(e){OT(e=>({progress:Math.max(e.progress-e.step,0)}),e)}function AT(e,t){OT(()=>({progress:ee(e,0,100),mounted:!0}),t)}function jT(e){OT(e=>(window.clearInterval(e.interval),e.timeouts.forEach(e=>window.clearTimeout(e)),{timeouts:[]}),e)}function MT(e){jT(e),OT(t=>({progress:100,timeouts:[window.setTimeout(()=>{OT(()=>({mounted:!1}),e)},50),window.setTimeout(()=>{OT(()=>({progress:0}),e)},t.stepInterval+50)]}),e)}function NT(e){OT(e=>({progress:TT(e.progress),mounted:!0}),e),OT(t=>(window.clearInterval(t.interval),{interval:window.setInterval(()=>{OT(e=>({progress:TT(e.progress),mounted:!0}),e)},t.stepInterval),mounted:!0}),e)}function PT(e){OT(e=>(window.clearInterval(e.interval),{interval:-1}),e)}function FT(e){jT(e),PT(e),OT(()=>({progress:0,mounted:!1}),e)}function IT(e){OT(t=>{let n=Math.min(t.progress+t.step,100),r=n!==100&&n!==0;if(!r){let i=window.setTimeout(()=>FT(e),t.stepInterval+50);return{progress:n,mounted:r,timeouts:[...t.timeouts,i]}}return{progress:n,mounted:r}},e)}function LT(){let e=ET();return[e,{start:()=>NT(e),stop:()=>PT(e),reset:()=>FT(e),set:t=>AT(t,e),increment:()=>IT(e),decrement:()=>kT(e),complete:()=>MT(e),cleanup:()=>jT(e)}]}var[RT,zT]=LT(),{start:BT,stop:VT,reset:HT,set:UT,increment:WT,decrement:GT,complete:KT,cleanup:qT}=zT,JT={root:`m_8f2832ae`,section:`m_7a0fe999`};function YT({initialProgress:e=0,color:t,size:n=3,stepInterval:r=500,withinPortal:i=!0,portalProps:a,zIndex:s=k(`max`),store:c=RT,...l}){c.initialize({mounted:!1,progress:e,interval:-1,step:1,stepInterval:r,timeouts:[]});let u=DT(c);return(0,o.useEffect)(()=>()=>FT(c),[c]),(0,J.jsx)(rl,{...a,withinPortal:i,children:(0,J.jsx)(Ux,{radius:0,value:u.progress,size:n,color:t,classNames:JT,"data-mounted":u.mounted||void 0,__vars:{"--nprogress-z-index":s?.toString()},...l})})}YT.displayName=`@mantine/nprogress/NavigationProgress`;var $=e(a(),1);function XT({type:e,date:t,locale:n,format:r,labelSeparator:i}){let a=e=>(0,$.default)(e).locale(n).format(r);return e==="default"?t===null?``:a(t):e===`multiple`?t.map(a).join(`, `):e===`range`&&Array.isArray(t)?t[0]&&t[1]?`${a(t[0])} ${i} ${a(t[1])}`:t[0]?`${a(t[0])} ${i} `:``:``}function ZT({formatter:e,...t}){return(e||XT)(t)}function QT({direction:e,levelIndex:t,rowIndex:n,cellIndex:r,size:i}){switch(e){case`up`:return t===0&&n===0?null:n===0?{levelIndex:t-1,rowIndex:r<=i[t-1][i[t-1].length-1]-1?i[t-1].length-1:i[t-1].length-2,cellIndex:r}:{levelIndex:t,rowIndex:n-1,cellIndex:r};case`down`:return n===i[t].length-1||n===i[t].length-2&&r>=i[t][i[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:r}:{levelIndex:t,rowIndex:n+1,cellIndex:r};case`left`:return t===0&&n===0&&r===0?null:n===0&&r===0?{levelIndex:t-1,rowIndex:i[t-1].length-1,cellIndex:i[t-1][i[t-1].length-1]-1}:r===0?{levelIndex:t,rowIndex:n-1,cellIndex:i[t][n-1]-1}:{levelIndex:t,rowIndex:n,cellIndex:r-1};case`right`:return n===i[t].length-1&&r===i[t][n]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:r===i[t][n]-1?{levelIndex:t,rowIndex:n+1,cellIndex:0}:{levelIndex:t,rowIndex:n,cellIndex:r+1};default:return{levelIndex:t,rowIndex:n,cellIndex:r}}}function $T({controlsRef:e,direction:t,levelIndex:n,rowIndex:r,cellIndex:i,size:a}){let o=QT({direction:t,size:a,rowIndex:r,cellIndex:i,levelIndex:n});if(!o)return;let s=e.current?.[o.levelIndex]?.[o.rowIndex]?.[o.cellIndex];s&&(s.disabled||s.getAttribute(`data-hidden`)||s.getAttribute(`data-outside`)?$T({controlsRef:e,direction:t,levelIndex:o.levelIndex,cellIndex:o.cellIndex,rowIndex:o.rowIndex,size:a}):s.focus())}function eE(e){switch(e){case`ArrowDown`:return`down`;case`ArrowUp`:return`up`;case`ArrowRight`:return`right`;case`ArrowLeft`:return`left`;default:return null}}function tE(e){return e.current?.map(e=>e.map(e=>e.length))}function nE({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:r,event:i}){let a=eE(i.key);a&&(i.preventDefault(),$T({controlsRef:e,direction:a,levelIndex:t,rowIndex:n,cellIndex:r,size:tE(e)}))}function rE(e,t){let n=e?(0,$.default)(e):(0,$.default)();if(t===``)return n.format(`YYYY-MM-DD HH:mm:ss`);let[r,i,a=0]=t.split(`:`).map(Number);return n=n.set(`hour`,r),n=n.set(`minute`,i),n=n.set(`second`,a),n=n.set(`millisecond`,0),n.format(`YYYY-MM-DD HH:mm:ss`)}function iE(e){return e==null||e===``?e:(0,$.default)(e).format(`YYYY-MM-DD`)}function aE(e){return e==null||e===``?e:(0,$.default)(e).format(`YYYY-MM-DD HH:mm:ss`)}function oE({minDate:e,maxDate:t}){let n=(0,$.default)();return!e&&!t?iE(n):e&&(0,$.default)(n).isBefore(e)?iE(e):t&&(0,$.default)(n).isAfter(t)?iE(t):iE(n)}function sE(e,t,n){return!e&&!t?aE(n):e&&(0,$.default)(n).isBefore(e)?aE(e):t&&(0,$.default)(n).isAfter(t)?aE(t):aE(n)}var cE=(0,o.createContext)({locale:`en`,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:`–`,consistentWeeks:!1});function lE(){let e=(0,o.use)(cE),t=(0,o.useCallback)(t=>t||e.locale,[e.locale]),n=(0,o.useCallback)(t=>typeof t==`number`?t:e.firstDayOfWeek,[e.firstDayOfWeek]),r=(0,o.useCallback)(t=>Array.isArray(t)?t:e.weekendDays,[e.weekendDays]),i=(0,o.useCallback)(t=>typeof t==`string`?t:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getFirstDayOfWeek:n,getWeekendDays:r,getLabelSeparator:i}}function uE({value:e,type:t,withTime:n}){let r=n?aE:iE;if(t===`range`&&Array.isArray(e)){let t=r(e[0]),n=r(e[1]);return t?n?`${t} – ${n}`:`${t} –`:``}return t===`multiple`&&Array.isArray(e)?e.filter(Boolean).join(`, `):!Array.isArray(e)&&e?r(e):``}function dE({value:e,type:t,name:n,form:r,withTime:i=!1}){return(0,J.jsx)(`input`,{type:`hidden`,value:uE({value:e,type:t,withTime:i}),name:n,form:r})}dE.displayName=`@mantine/dates/HiddenDatesInput`;function fE(e){return e<10?`0${e}`:`${e}`}function pE(e){let[t=null,n=null,r=null]=e.split(`:`).map(Number);return{hours:t,minutes:n,seconds:r}}function mE(e,t){return`${e.getHours()}:${e.getMinutes()}${t?`:${e.getSeconds()}`:``}`}function hE({value:e,format:t,amPmLabels:n,withSeconds:r}){let i=pE(typeof e==`string`?e:mE(e,r));if(i.hours===null||i.minutes===null)return null;if(t===`24h`)return`${fE(i.hours)}:${fE(i.minutes)}${r?`:${fE(i.seconds||0)}`:``}`;let a=i.hours>=12;return`${i.hours%12==0?12:i.hours%12}:${fE(i.minutes)}${r?`:${fE(i.seconds||0)}`:``} ${a?n.pm:n.am}`}function gE({value:e,format:t=`24h`,amPmLabels:n={am:`AM`,pm:`PM`},withSeconds:r=!1}){return(0,J.jsx)(J.Fragment,{children:hE({value:e,format:t,amPmLabels:n,withSeconds:r})})}gE.displayName=`@mantine/dates/TimeValue`;var _E=e=>Number(e.toFixed(0)[0]);function vE({value:e,min:t,max:n,onChange:r,focusable:i,step:a,onNextInput:o,onPreviousInput:s,onFocus:c,readOnly:l,allowTemporaryZero:u=!1,placeholder:d=`--`,disableAutoAdvance:f=!1,...p}){let m=Number.isFinite(n),h=m?_E(n):1/0,g=m?n+1-a:n,_=e=>{if(l)return;let i=e.replace(/\D/g,``);if(i!==``){let a=0;for(let e=0;en?t:r}let s=u&&a===0&&t>0?0:ee(a,t,n);r(s),!f&&(s>h||e.startsWith(`00`))&&o?.()}};return(0,J.jsx)(`input`,{type:`text`,role:`spinbutton`,"aria-valuemin":t,"aria-valuemax":m?n:void 0,"aria-valuenow":e===null?0:e,"data-empty":e===null||void 0,inputMode:`numeric`,placeholder:d,value:e===null?``:fE(e),onChange:e=>_(e.currentTarget.value),onKeyDown:i=>{if(!l){if(i.key===`0`||i.key===`Num0`){let{selectionStart:t,selectionEnd:n,value:r}=i.currentTarget,a=r.length>0&&t===0&&n===r.length;e===0&&!a&&(i.preventDefault(),o?.())}i.key===`Home`&&(i.preventDefault(),r(t)),i.key===`End`&&m&&(i.preventDefault(),r(n)),(i.key===`Backspace`||i.key===`Delete`)&&(i.preventDefault(),e===null?s?.():r(null)),i.key===`ArrowRight`&&(i.preventDefault(),o?.()),i.key===`ArrowLeft`&&(i.preventDefault(),s?.()),i.key===`ArrowUp`&&(i.preventDefault(),r(e===null?t:ee(e+a,t,g))),i.key===`ArrowDown`&&(i.preventDefault(),r(e===null?m?g:t:ee(e-a,t,g)))}},onFocus:e=>{e.currentTarget.select(),c?.(e)},onClick:e=>{e.stopPropagation(),e.currentTarget.select()},onMouseDown:e=>e.stopPropagation(),...p})}vE.displayName=`@mantine/dates/SpinInput`;var[yE,bE]=x(`TimeInput component was not found in the component tree`);function xE({labels:e,value:t,onChange:n,className:r,style:i,onPreviousInput:a,readOnly:o,onMouseDown:s,onTouchStart:c,inputType:l,...u}){let d=bE(),f=r=>{o||(r.key===`Home`&&(r.preventDefault(),n(e.am)),r.key===`End`&&(r.preventDefault(),n(e.pm)),(r.key===`Backspace`||r.key===`Delete`)&&(r.preventDefault(),t===null?a?.():n(null)),r.key===`ArrowLeft`&&(r.preventDefault(),a?.()),(r.key===`ArrowUp`||r.key===`ArrowDown`)&&(r.preventDefault(),n(t===e.am?e.pm:e.am)),r.code===`KeyA`&&(r.preventDefault(),n(e.am)),r.code===`KeyP`&&(r.preventDefault(),n(e.pm)))};if(l===`input`){let e=t||`--`,a=e.length+1;return(0,J.jsx)(`input`,{...d.getStyles(`field`,{className:r,style:i}),value:e,size:a,onChange:e=>!o&&n(e.target.value||null),onClick:(e=>e.stopPropagation()),onKeyDown:f,onMouseDown:e=>{e.stopPropagation(),s?.(e)},"data-am-pm":!0,...u})}return(0,J.jsxs)(`select`,{...d.getStyles(`field`,{className:r,style:i}),value:t||``,onChange:e=>!o&&n(e.target.value||null),onClick:e=>e.stopPropagation(),onKeyDown:f,onMouseDown:e=>{e.stopPropagation(),s?.(e)},"data-am-pm":!0,...u,children:[(0,J.jsx)(`option`,{value:``,children:`--`}),(0,J.jsx)(`option`,{value:e.am,children:e.am}),(0,J.jsx)(`option`,{value:e.pm,children:e.pm})]})}xE.displayName=`@mantine/dates/AmPmInput`;function SE({value:e,active:t,onSelect:n}){let r=bE();return(0,J.jsx)(Pc,{mod:{active:t},onClick:()=>n(e),onMouseDown:e=>e.preventDefault(),"data-value":e,tabIndex:-1,...r.getStyles(`control`),children:typeof e==`number`?fE(e):e})}SE.displayName=`@mantine/dates/TimeControl`;function CE({labels:e,value:t,onSelect:n}){let r=bE(),i=[e.am,e.pm].map(e=>(0,J.jsx)(SE,{value:e,active:t===e,onSelect:n},e));return(0,J.jsx)(`div`,{...r.getStyles(`controlsList`),children:i})}CE.displayName=`@mantine/dates/AmPmControlsList`;function wE(e,t){if(!e||!t)return!1;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right}function TE(e,t,n){let r=[];for(let i=e;i<=t;i+=n)r.push(i);return r}function EE({min:e,max:t,step:n,value:r,onSelect:i,reversed:a}){let s=bE(),c=(0,o.useRef)(null),l=TE(e,t,n),u=(a?l.reverse():l).map(e=>(0,J.jsx)(SE,{value:e,active:r===e,onSelect:i},e));return(0,o.useEffect)(()=>{r!==null&&requestAnimationFrame(()=>{let e=c.current?.querySelector(`[data-value="${r}"]`);wE(e,c.current)||e?.scrollIntoView({block:`nearest`})})},[r]),(0,J.jsx)(Ac,{h:s.maxDropdownContentHeight,type:`never`,viewportRef:c,...s.getStyles(`scrollarea`),...s.scrollAreaProps,children:(0,J.jsx)(`div`,{...s.getStyles(`controlsList`),children:u})})}EE.displayName=`@mantine/dates/TimeControlsList`;function DE({time:e,compare:t,withSeconds:n}){let r=pE(e),i=pE(t);return n?r.hours===i.hours&&r.minutes===i.minutes&&r.seconds===i.seconds:r.hours===i.hours&&r.minutes===i.minutes}function OE({value:e,active:t,onChange:n,format:r,amPmLabels:i,withSeconds:a}){let o=bE();return(0,J.jsx)(Pc,{mod:{active:t},onClick:()=>n(e),...o.getStyles(`presetControl`),children:(0,J.jsx)(gE,{withSeconds:a,value:e,format:r,amPmLabels:i})})}OE.displayName=`@mantine/dates/TimePresetControl`;function kE({value:e,data:t,onChange:n,format:r,amPmLabels:i,withSeconds:a}){let o=bE(),s=t.values.map(t=>(0,J.jsx)(OE,{value:t,format:r,amPmLabels:i,withSeconds:a,active:DE({time:t,compare:e,withSeconds:a}),onChange:n},t));return(0,J.jsxs)(`div`,{...o.getStyles(`presetsGroup`),children:[(0,J.jsx)(`div`,{...o.getStyles(`presetsGroupLabel`),children:t.label}),(0,J.jsx)(GS,{cols:a?2:3,spacing:4,children:s})]})}kE.displayName=`@mantine/dates/TimePresetGroup`;function AE({presets:e,format:t,amPmLabels:n,withSeconds:r,value:i,onChange:a}){let o=bE();if(e.length===0)return null;if(typeof e[0]==`string`){let s=e.map(e=>(0,J.jsx)(OE,{value:e,format:t,amPmLabels:n,withSeconds:r,active:DE({time:e,compare:i,withSeconds:r}),onChange:a},e));return(0,J.jsx)(Ac.Autosize,{mah:o.maxDropdownContentHeight,type:`never`,...o.getStyles(`scrollarea`),...o.scrollAreaProps,children:(0,J.jsx)(`div`,{...o.getStyles(`presetsRoot`),children:(0,J.jsx)(GS,{cols:r?2:3,spacing:4,children:s})})})}let s=e.map((e,o)=>(0,J.jsx)(kE,{data:e,value:i,format:t,amPmLabels:n,withSeconds:r,onChange:a},o));return(0,J.jsx)(Ac.Autosize,{mah:o.maxDropdownContentHeight,type:`never`,...o.getStyles(`scrollarea`),...o.scrollAreaProps,children:(0,J.jsx)(`div`,{...o.getStyles(`presetsRoot`),children:s})})}AE.displayName=`@mantine/dates/TimePresets`;function jE(e){let[t=0,n=0,r=0]=e.split(`:`).map(Number);return t*3600+n*60+r}function ME(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return{timeString:`${fE(t)}:${fE(n)}:${fE(r)}`,hours:t,minutes:n,seconds:r}}function NE(e,t,n){let r=jE(e),i=t?jE(t):-1/0,a=n?jE(n):1/0;return ME(Math.max(i,Math.min(r,a)))}function PE({hours:e,minutes:t,seconds:n,amPmLabels:r}){if(e===null)return{hours:null,minutes:null,seconds:null,amPm:null};let i=e>=12?r.pm:r.am;return{hours:e%12==0?12:e%12,minutes:typeof t==`number`?t:null,seconds:typeof n==`number`?n:null,amPm:i}}function FE({time:e,format:t,amPmLabels:n}){if(e===``)return{hours:null,minutes:null,seconds:null,amPm:null};let{hours:r,minutes:i,seconds:a}=pE(e),o={hours:r,minutes:i,seconds:a};return t===`12h`?PE({...o,amPmLabels:n}):{...o,amPm:null}}function IE({hours:e,minutes:t,seconds:n,amPm:r,amPmLabels:i,withSeconds:a}){let o=e;return r===i.pm&&e!==12?o+=12:r===i.am&&e===12&&(o=0),`${fE(o)}:${fE(t)}${a?`:${fE(n||0)}`:``}`}function LE({hours:e,minutes:t,seconds:n,format:r,withSeconds:i,amPm:a,amPmLabels:o}){return e===null||t===null||i&&n===null?{valid:!1,value:``}:r===`24h`?{valid:!0,value:`${fE(e)}:${fE(t)}${i?`:${fE(n)}`:``}`}:a===null?{valid:!1,value:``}:{valid:!0,value:IE({hours:e,minutes:t,seconds:n,amPm:a,amPmLabels:o,withSeconds:i})}}function RE({value:e,defaultValue:t,onChange:n,format:r,amPmLabels:i,withSeconds:a=!1,min:s,max:c,clearable:l,readOnly:u,disabled:d,pasteSplit:f,type:p}){let m=FE({time:e||t||``,amPmLabels:i,format:r}),h=LE({hours:m.hours,minutes:m.minutes,seconds:m.seconds,format:r,withSeconds:a,amPm:m.amPm,amPmLabels:i}),g=(0,o.useRef)(!0),_=(0,o.useRef)(!h.valid),[v,y]=(0,o.useState)(m.hours),[b,x]=(0,o.useState)(m.minutes),[S,C]=(0,o.useState)(m.seconds),[w,T]=(0,o.useState)(m.amPm),E=l&&!u&&!d&&(v!==null||b!==null||S!==null||w!==null),D=(0,o.useRef)(null),O=(0,o.useRef)(null),k=(0,o.useRef)(null),A=(0,o.useRef)(null),j=e=>{e===`hours`&&D.current?.focus(),e===`minutes`&&O.current?.focus(),e===`seconds`&&k.current?.focus(),e===`amPm`&&A.current?.focus()},M=(e,t)=>{let o=LE({hours:e===`hours`?t:v,minutes:e===`minutes`?t:b,seconds:e===`seconds`?t:S,amPm:e===`amPm`?t:w,format:r,withSeconds:a,amPmLabels:i});o.valid?(g.current=!1,_.current=!1,e===`hours`&&y(t),e===`minutes`&&x(t),e===`seconds`&&C(t),e===`amPm`&&T(t),n?.(o.value)):(g.current=!1,_.current||=(n?.(``),!0))},N=e=>{g.current=!1;let t=FE({time:e,amPmLabels:i,format:r});y(t.hours),x(t.minutes),C(t.seconds),T(t.amPm),_.current=!LE({...t,format:r,withSeconds:a,amPmLabels:i}).valid,n?.(e)},P=e=>{let t=e;r===`12h`&&typeof e==`number`&&e>12&&(t=(e-1)%12+1),y(t),M(`hours`,t),j(`hours`)},F=e=>{x(e),M(`minutes`,e),j(`minutes`)},I=e=>{C(e),M(`seconds`,e),j(`seconds`)},L=e=>{T(e),M(`amPm`,e),j(`amPm`)},R=()=>{g.current=!1,y(null),x(null),C(null),T(null),n?.(``),_.current=!0,j(`hours`)},z=e=>{e.preventDefault();let t=e.clipboardData.getData(`text`),o=(f||FE)({time:t,format:r,amPmLabels:i}),l=LE({...o,format:r,withSeconds:a,amPmLabels:i});if(l.valid){g.current=!1;let e=p===`duration`?void 0:`23:59:59`,t=NE(l.value,s||`00:00:00`,c||e);n?.(t.timeString),y(o.hours),x(o.minutes),C(o.seconds),T(o.amPm)}},B=LE({hours:v,minutes:b,seconds:S,format:r,withSeconds:a,amPm:w,amPmLabels:i});return le(()=>{if(e===``){g.current=!1,y(null),x(null),C(null),T(null),g.current=!0;return}if(g.current&&typeof e==`string`){let t=FE({time:e||``,amPmLabels:i,format:r});y(t.hours),x(t.minutes),C(t.seconds),T(t.amPm)}g.current=!0},[e]),{refs:{hours:D,minutes:O,seconds:k,amPm:A},values:{hours:v,minutes:b,seconds:S,amPm:w},setHours:P,setMinutes:F,setSeconds:I,setAmPm:L,focus:j,clear:R,onPaste:z,setTimeString:N,isClearable:E,hiddenInputValue:B.value}}var zE={fieldsRoot:`m_7a8f1e6d`,fieldsGroup:`m_d6bb0a54`,controlsList:`m_b97ecb26`,controlsListGroup:`m_31fe42f9`,dropdown:`m_9c4817c3`,control:`m_154c536b`,presetControl:`m_7be09d0c`,presetsGroup:`m_7d00001d`,presetsGroupLabel:`m_d8d918d7`,field:`m_6b43ba88`},BE={type:`time`,hoursStep:1,minutesStep:1,secondsStep:1,format:`24h`,amPmLabels:{am:`AM`,pm:`PM`},pasteSplit:FE,maxDropdownContentHeight:200,hoursPlaceholder:`--`,minutesPlaceholder:`--`,secondsPlaceholder:`--`,minHoursDigits:2},VE=q((e,{size:t})=>({dropdown:{"--control-font-size":F(t)}})),HE=1/0,UE=Z(e=>{let t=Y([`Input`,`InputWrapper`,`TimePicker`],BE,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,onClick:l,type:u,format:d,value:f,defaultValue:p,onChange:m,hoursStep:h,minutesStep:g,secondsStep:_,withSeconds:v,hoursInputLabel:y,minutesInputLabel:b,secondsInputLabel:x,amPmInputLabel:S,amPmLabels:C,clearable:w,clearSectionMode:T,onMouseDown:E,onFocusCapture:D,onBlurCapture:O,min:k,max:A,popoverProps:j,withDropdown:M,rightSection:N,onFocus:P,onBlur:F,clearButtonProps:I,hoursInputProps:L,minutesInputProps:R,secondsInputProps:z,amPmSelectProps:B,readOnly:V,disabled:H,size:ee,name:U,form:te,hiddenInputProps:ne,labelProps:re,pasteSplit:ie,hoursRef:W,minutesRef:ae,secondsRef:G,amPmRef:K,presets:oe,closeDropdownOnPresetSelect:se,maxDropdownContentHeight:ce,scrollAreaProps:le,attributes:ue,reverseTimeControlsList:de,hoursPlaceholder:fe,minutesPlaceholder:pe,secondsPlaceholder:me,minHoursDigits:he,...ge}=t,_e=u===`duration`,ve=_e?`24h`:d,ye=_e&&fe===`--`?`-`.repeat(he):fe,{resolvedClassNames:be,resolvedStyles:xe}=or({classNames:n,styles:a,props:t}),Se=X({name:`TimePicker`,classes:zE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:ue,vars:c,varsResolver:VE}),we=RE({value:f,defaultValue:p,onChange:m,format:ve,amPmLabels:C,withSeconds:v,min:k,max:A,clearable:w,disabled:H,readOnly:V,pasteSplit:ie,type:u}),Te=Pe(we.refs.hours,W),Ee=Pe(we.refs.minutes,ae),De=Pe(we.refs.seconds,G),Oe=Pe(we.refs.amPm,K),ke=Ce(),Ae=(0,o.useRef)(!1),[je,Me]=(0,o.useState)(!1),Ne=e=>{Ae.current||(Ae.current=!0,P?.(e))},Fe=e=>{we.setTimeString(e),se&&(Me(!1),j?.onChange?.(!1))},Ie=e=>{if(!e.currentTarget.contains(e.relatedTarget)){let t=we.values,n=LE({...t,format:ve,amPmLabels:C,withSeconds:!!v});if(n.valid&&(k||A)){let e=NE(n.value,k,A);e.timeString!==n.value&&we.setTimeString(e.timeString)}Ae.current=!1,F?.(e)}};return(0,J.jsx)(yE,{value:{getStyles:Se,scrollAreaProps:le,maxDropdownContentHeight:ce},children:(0,J.jsxs)(Dl,{opened:je,transitionProps:{duration:0},position:`bottom-start`,withRoles:!1,disabled:H||V||!M||_e,...j,children:[(0,J.jsx)(Dl.Target,{children:(0,J.jsxs)(Zd,{component:`div`,size:ee,disabled:H,onClick:e=>{l?.(e),we.focus(`hours`),H||Me(!0)},onMouseDown:e=>{e.preventDefault(),E?.(e)},onFocusCapture:e=>{Me(!0),D?.(e)},onBlurCapture:e=>{Me(!1),O?.(e)},rightSection:N,__clearSection:(0,J.jsx)(Jl,{...I,size:ee,onClick:e=>{we.clear(),I?.onClick?.(e)},onMouseDown:e=>{e.preventDefault(),I?.onMouseDown?.(e)}}),__clearable:we.isClearable,__clearSectionMode:T,labelProps:{htmlFor:ke,...re},style:i,className:r,classNames:be,styles:xe,attributes:ue,__staticSelector:`TimePicker`,...ge,children:[(0,J.jsx)(`div`,{...Se(`fieldsRoot`),dir:`ltr`,children:(0,J.jsxs)(`div`,{...Se(`fieldsGroup`),onBlur:Ie,children:[(0,J.jsx)(vE,{id:ke,...L,...Se(`field`,{className:L?.className,style:_e?{width:`calc(${Math.max(he,fE(we.values.hours??0).length)}ch + 0.3em)`,...L?.style}:L?.style}),value:we.values.hours,onChange:we.setHours,onNextInput:()=>we.focus(`minutes`),min:+(ve===`12h`),max:_e?HE:ve===`12h`?12:23,allowTemporaryZero:ve===`12h`,disableAutoAdvance:_e,focusable:!0,step:h,ref:Te,"aria-label":y,readOnly:V,disabled:H,onPaste:we.onPaste,onFocus:e=>{Ne(e),L?.onFocus?.(e)},onBlur:e=>{let t=e.currentTarget.value;ve===`12h`&&(t?parseInt(t,10):null)===0&&we.setHours(12),L?.onBlur?.(e)},placeholder:ye}),(0,J.jsx)(`span`,{children:`:`}),(0,J.jsx)(vE,{...R,...Se(`field`,{className:R?.className,style:R?.style}),value:we.values.minutes,onChange:we.setMinutes,min:0,max:59,focusable:!0,step:g,ref:Ee,onPreviousInput:()=>we.focus(`hours`),onNextInput:()=>v?we.focus(`seconds`):we.focus(`amPm`),"aria-label":b,tabIndex:-1,readOnly:V,disabled:H,onPaste:we.onPaste,onFocus:e=>{Ne(e),R?.onFocus?.(e)},placeholder:pe}),v&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{children:`:`}),(0,J.jsx)(vE,{...z,...Se(`field`,{className:z?.className,style:z?.style}),value:we.values.seconds,onChange:we.setSeconds,min:0,max:59,focusable:!0,step:_,ref:De,onPreviousInput:()=>we.focus(`minutes`),onNextInput:()=>we.focus(`amPm`),"aria-label":x,tabIndex:-1,readOnly:V,disabled:H,onPaste:we.onPaste,onFocus:e=>{Ne(e),z?.onFocus?.(e)},placeholder:me})]}),ve===`12h`&&!_e&&(0,J.jsx)(xE,{...B,inputType:M?`input`:`select`,labels:C,value:we.values.amPm,onChange:we.setAmPm,ref:Oe,"aria-label":S,onPreviousInput:()=>v?we.focus(`seconds`):we.focus(`minutes`),readOnly:V,disabled:H,tabIndex:-1,onPaste:we.onPaste,onFocus:e=>{Ne(e),B?.onFocus?.(e)}})]})}),(0,J.jsx)(`input`,{type:`hidden`,name:U,form:te,value:we.hiddenInputValue,...ne})]})}),(0,J.jsx)(Dl.Dropdown,{...Se(`dropdown`),onMouseDown:e=>e.preventDefault(),children:oe?(0,J.jsx)(AE,{value:we.hiddenInputValue,onChange:Fe,format:ve,presets:oe,amPmLabels:C,withSeconds:v||!1}):(0,J.jsxs)(`div`,{...Se(`controlsListGroup`),children:[(0,J.jsx)(EE,{min:+(ve===`12h`),max:ve===`12h`?12:23,step:h,value:we.values.hours,onSelect:we.setHours,reversed:de}),(0,J.jsx)(EE,{min:0,max:59,step:g,value:we.values.minutes,onSelect:we.setMinutes,reversed:de}),v&&(0,J.jsx)(EE,{min:0,max:59,step:_,value:we.values.seconds,onSelect:we.setSeconds,reversed:de}),ve===`12h`&&(0,J.jsx)(CE,{labels:C,value:we.values.amPm,onSelect:we.setAmPm})]})})]})})});UE.displayName=`@mantine/dates/TimePicker`,UE.classes=zE,UE.varsResolver=VE;function WE({startTime:e,endTime:t,interval:n}){let r=[],i=jE(e),a=jE(t),o=jE(n);for(let e=i;e<=a;e+=o)r.push(ME(e).timeString);return r}var GE={day:`m_396ce5cb`},KE=q((e,{size:t})=>({day:{"--day-size":M(t,`day-size`)}})),qE=Z(e=>{let t=Y(`Day`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,date:c,disabled:l,__staticSelector:u,weekend:d,outside:f,selected:p,renderDay:m,inRange:h,firstInRange:g,lastInRange:_,hidden:v,static:y,highlightToday:b,fullWidth:x,attributes:S,...C}=t;return(0,J.jsx)(Pc,{...X({name:u||`Day`,classes:GE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:KE,rootSelector:`day`})(`day`,{style:v?{display:`none`}:void 0}),component:y?`div`:`button`,disabled:l,"data-today":(0,$.default)(c).isSame(new Date,`day`)||void 0,"data-hidden":v||void 0,"data-highlight-today":b||void 0,"data-disabled":l||void 0,"data-weekend":!l&&!f&&d||void 0,"data-outside":!l&&f||void 0,"data-selected":!l&&p||void 0,"data-in-range":h&&!l||void 0,"data-first-in-range":g&&!l||void 0,"data-last-in-range":_&&!l||void 0,"data-static":y||void 0,"data-full-width":x||void 0,unstyled:o,...C,children:m?.(c)||(0,$.default)(c).date()})});qE.classes=GE,qE.varsResolver=KE,qE.displayName=`@mantine/dates/Day`;function JE({locale:e,format:t=`dd`,firstDayOfWeek:n=1}){let r=(0,$.default)().day(n),i=[];for(let n=0;n<7;n+=1)typeof t==`string`?i.push((0,$.default)(r).add(n,`days`).locale(e).format(t)):i.push(t((0,$.default)(r).add(n,`days`).format(`YYYY-MM-DD`)));return i}var YE={weekday:`m_18a3eca`},XE=q((e,{size:t})=>({weekdaysRow:{"--wr-fz":F(t),"--wr-spacing":N(t)}})),ZE=Z(e=>{let t=Y(`WeekdaysRow`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,locale:c,firstDayOfWeek:l,weekdayFormat:u,cellComponent:d=`th`,__staticSelector:f,withWeekNumbers:p,attributes:m,...h}=t,g=X({name:f||`WeekdaysRow`,classes:YE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:s,varsResolver:XE,rootSelector:`weekdaysRow`}),_=lE(),v=JE({locale:_.getLocale(c),format:u,firstDayOfWeek:_.getFirstDayOfWeek(l)}).map((e,t)=>(0,J.jsx)(d,{...g(`weekday`),children:e},t));return(0,J.jsxs)(Q,{component:`tr`,...g(`weekdaysRow`),...h,children:[p&&(0,J.jsx)(d,{...g(`weekday`),children:`#`}),v]})});ZE.classes=YE,ZE.varsResolver=XE,ZE.displayName=`@mantine/dates/WeekdaysRow`;function QE(e,t=1){let n=(0,$.default)(e);if(!n.isValid())return n;let r=t===0?6:t-1;for(;n.day()!==r;)n=n.add(1,`day`);return n.format(`YYYY-MM-DD`)}function $E(e,t=1){let n=(0,$.default)(e);for(;n.day()!==t;)n=n.subtract(1,`day`);return n.format(`YYYY-MM-DD`)}function eD({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){let r=(0,$.default)((0,$.default)(e).subtract((0,$.default)(e).date()-1,`day`).format(`YYYY-M-D`)),i=r.format(`YYYY-MM-DD`),a=QE(r.add(r.daysInMonth()-1,`day`).format(`YYYY-MM-DD`),t),o=[],s=(0,$.default)($E(i,t));for(;(0,$.default)(s).isBefore(a,`day`);){let e=[];for(let t=0;t<7;t+=1)e.push(s.format(`YYYY-MM-DD`)),s=s.add(1,`day`);o.push(e)}if(n&&o.length<6){let e=o[o.length-1],t=e[e.length-1],n=(0,$.default)(t).add(1,`day`);for(;o.length<6;){let e=[];for(let t=0;t<7;t+=1)e.push(n.format(`YYYY-MM-DD`)),n=n.add(1,`day`);o.push(e)}}return o}function tD(e,t){return(0,$.default)(e).format(`YYYY-MM`)===(0,$.default)(t).format(`YYYY-MM`)}function nD(e,t){return t?(0,$.default)(e).isAfter((0,$.default)(t).subtract(1,`day`),`day`):!0}function rD(e,t){return t?(0,$.default)(e).isBefore((0,$.default)(t).add(1,`day`),`day`):!0}function iD({dates:e,minDate:t,maxDate:n,getDayProps:r,excludeDate:i,hideOutsideDates:a,month:o}){let s=e.flat().filter(e=>rD(e,n)&&nD(e,t)&&!i?.(e)&&!r?.(e)?.disabled&&(!a||tD(e,o)));return s.find(e=>r?.(e)?.selected)||s.find(e=>(0,$.default)().isSame(e,`date`))||s[0]}var aD=e(i(),1);$.default.extend(aD.default);function oD(e){return(0,$.default)(e.find(e=>(0,$.default)(e).day()===1)).isoWeek()}var sD={month:`m_cc9820d3`,monthCell:`m_8f457cd5`,weekNumber:`m_6cff9dea`},cD={withCellSpacing:!0},lD=q((e,{size:t})=>({weekNumber:{"--wn-fz":F(t),"--wn-size":M(t,`wn-size`)}})),uD=Z(e=>{let t=Y(`Month`,cD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,locale:l,firstDayOfWeek:u,weekdayFormat:d,month:f,weekendDays:p,getDayProps:m,excludeDate:h,minDate:g,maxDate:_,renderDay:v,hideOutsideDates:y,hideWeekdays:b,getDayAriaLabel:x,static:S,__getDayRef:C,__onDayKeyDown:w,__onDayClick:T,__onDayMouseEnter:E,__preventFocus:D,__stopPropagation:O,withCellSpacing:k,size:A,highlightToday:j,withWeekNumbers:M,fullWidth:N,attributes:P,...F}=t,I=X({name:c||`Month`,classes:sD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:P,vars:s,varsResolver:lD,rootSelector:`month`}),L=lE(),R=eD({month:f,firstDayOfWeek:L.getFirstDayOfWeek(u),consistentWeeks:L.consistentWeeks}),z=iD({dates:R,minDate:iE(g),maxDate:iE(_),getDayProps:m,excludeDate:h,hideOutsideDates:y,month:f}),{resolvedClassNames:B,resolvedStyles:V}=or({classNames:n,styles:a,props:t}),H=R.map((e,t)=>{let n=e.map((e,n)=>{let r=!tD(e,f),i=x?.(e)||(0,$.default)(e).locale(l||L.locale).format(`D MMMM YYYY`),a=m?.(e),s=(0,$.default)(e).isSame(z,`date`);return(0,J.jsx)(`td`,{...I(`monthCell`),"data-with-spacing":k||void 0,children:(0,J.jsx)(qE,{__staticSelector:c||`Month`,classNames:B,styles:V,attributes:P,unstyled:o,"data-mantine-stop-propagation":O||void 0,highlightToday:j,renderDay:v,date:e,size:A,weekend:L.getWeekendDays(p).includes((0,$.default)(e).get(`day`)),outside:r,hidden:y?r:!1,"aria-label":i,static:S,fullWidth:N,disabled:h?.(e)||!rD(e,iE(_))||!nD(e,iE(g)),ref:e=>{e&&C?.(t,n,e)},...a,onKeyDown:r=>{a?.onKeyDown?.(r),w?.(r,{rowIndex:t,cellIndex:n,date:e})},onMouseEnter:t=>{a?.onMouseEnter?.(t),E?.(t,e)},onClick:t=>{a?.onClick?.(t),T?.(t,e)},onMouseDown:e=>{a?.onMouseDown?.(e),D&&e.preventDefault()},tabIndex:D||!s?-1:0})},e.toString())});return(0,J.jsxs)(`tr`,{...I(`monthRow`),children:[M&&(0,J.jsx)(`td`,{...I(`weekNumber`),children:oD(e)}),n]},t)});return(0,J.jsxs)(Q,{component:`table`,...I(`month`),size:A,"data-full-width":N||void 0,...F,children:[!b&&(0,J.jsx)(`thead`,{...I(`monthThead`),children:(0,J.jsx)(ZE,{__staticSelector:c||`Month`,locale:l,firstDayOfWeek:u,weekdayFormat:d,withWeekNumbers:M,size:A,classNames:B,styles:V,unstyled:o,attributes:P})}),(0,J.jsx)(`tbody`,{...I(`monthTbody`),children:H})]})});uD.classes=sD,uD.varsResolver=lD,uD.displayName=`@mantine/dates/Month`;var dD={pickerControl:`m_dc6a3c71`},fD=q((e,{size:t})=>({pickerControl:{"--dpc-fz":F(t),"--dpc-size":M(t,`dpc-size`)}})),pD=Z(e=>{let t=Y(`PickerControl`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,firstInRange:c,lastInRange:l,inRange:u,__staticSelector:d,selected:f,disabled:p,fullWidth:m,attributes:h,...g}=t;return(0,J.jsx)(Pc,{...X({name:d||`PickerControl`,classes:dD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:fD,rootSelector:`pickerControl`})(`pickerControl`),unstyled:o,"data-picker-control":!0,"data-full-width":m||void 0,"data-selected":f&&!p||void 0,"data-disabled":p||void 0,"data-in-range":u&&!p&&!f||void 0,"data-first-in-range":c&&!p||void 0,"data-last-in-range":l&&!p||void 0,disabled:p,...g})});pD.classes=dD,pD.varsResolver=fD,pD.displayName=`@mantine/dates/PickerControl`;function mD({year:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&(0,$.default)(e).isBefore(t,`year`)||n&&(0,$.default)(e).isAfter(n,`year`))}function hD({years:e,minDate:t,maxDate:n,getYearControlProps:r}){let i=e.flat().filter(e=>!mD({year:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled);return i.find(e=>r?.(e)?.selected)||i.find(e=>(0,$.default)().isSame(e,`year`))||i[0]}function gD(e){let t=(0,$.default)(e).year(),n=t-t%10,r=0,i=[[],[],[],[]];for(let e=0;e<4;e+=1){let t=e===3?1:3;for(let a=0;a{let t=Y(`YearsList`,vD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,decade:c,yearsListFormat:l,locale:u,minDate:d,maxDate:f,getYearControlProps:p,__staticSelector:m,__getControlRef:h,__onControlKeyDown:g,__onControlClick:_,__onControlMouseEnter:v,__preventFocus:y,__stopPropagation:b,withCellSpacing:x,fullWidth:S,size:C,attributes:w,...T}=t,E=X({name:m||`YearsList`,classes:_D,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,rootSelector:`yearsList`}),D=lE(),O=gD(c),k=hD({years:O,minDate:d,maxDate:f,getYearControlProps:p}),A=O.map((e,t)=>{let n=e.map((e,n)=>{let r=p?.(e),i=(0,$.default)(e).isSame(k,`year`);return(0,J.jsx)(`td`,{...E(`yearsListCell`),"data-with-spacing":x||void 0,children:(0,J.jsx)(pD,{...E(`yearsListControl`),size:C,unstyled:o,fullWidth:S,"data-mantine-stop-propagation":b||void 0,disabled:mD({year:e,minDate:d,maxDate:f}),ref:e=>{e&&h?.(t,n,e)},...r,onKeyDown:i=>{r?.onKeyDown?.(i),g?.(i,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{r?.onClick?.(t),_?.(t,e)},onMouseEnter:t=>{r?.onMouseEnter?.(t),v?.(t,e)},onMouseDown:e=>{r?.onMouseDown?.(e),y&&e.preventDefault()},tabIndex:y||!i?-1:0,children:r?.children??(0,$.default)(e).locale(D.getLocale(u)).format(l)})},n)});return(0,J.jsx)(`tr`,{...E(`yearsListRow`),children:n},t)});return(0,J.jsx)(Q,{component:`table`,size:C,...E(`yearsList`),"data-full-width":S||void 0,...T,children:(0,J.jsx)(`tbody`,{children:A})})});yD.classes=_D,yD.displayName=`@mantine/dates/YearsList`;function bD({month:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&(0,$.default)(e).isBefore(t,`month`)||n&&(0,$.default)(e).isAfter(n,`month`))}function xD({months:e,minDate:t,maxDate:n,getMonthControlProps:r}){let i=e.flat().filter(e=>!bD({month:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled);return i.find(e=>r?.(e)?.selected)||i.find(e=>(0,$.default)().isSame(e,`month`))||i[0]}function SD(e){let t=(0,$.default)(e).startOf(`year`).toDate(),n=[[],[],[],[]],r=0;for(let e=0;e<4;e+=1)for(let i=0;i<3;i+=1)n[e].push((0,$.default)(t).add(r,`months`).format(`YYYY-MM-DD`)),r+=1;return n}var CD={monthsList:`m_2a6c32d`,monthsListCell:`m_fe27622f`},wD={monthsListFormat:`MMM`,withCellSpacing:!0},TD=Z(e=>{let t=Y(`MonthsList`,wD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,year:l,monthsListFormat:u,locale:d,minDate:f,maxDate:p,getMonthControlProps:m,__getControlRef:h,__onControlKeyDown:g,__onControlClick:_,__onControlMouseEnter:v,__preventFocus:y,__stopPropagation:b,withCellSpacing:x,fullWidth:S,size:C,attributes:w,...T}=t,E=X({name:c||`MonthsList`,classes:CD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,rootSelector:`monthsList`}),D=lE(),O=SD(l),k=xD({months:O,minDate:iE(f),maxDate:iE(p),getMonthControlProps:m}),A=O.map((e,t)=>{let n=e.map((e,n)=>{let r=m?.(e),i=(0,$.default)(e).isSame(k,`month`);return(0,J.jsx)(`td`,{...E(`monthsListCell`),"data-with-spacing":x||void 0,children:(0,J.jsx)(pD,{...E(`monthsListControl`),size:C,unstyled:o,fullWidth:S,__staticSelector:c||`MonthsList`,"data-mantine-stop-propagation":b||void 0,disabled:bD({month:e,minDate:iE(f),maxDate:iE(p)}),ref:e=>{e&&h?.(t,n,e)},...r,onKeyDown:i=>{r?.onKeyDown?.(i),g?.(i,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{r?.onClick?.(t),_?.(t,e)},onMouseEnter:t=>{r?.onMouseEnter?.(t),v?.(t,e)},onMouseDown:e=>{r?.onMouseDown?.(e),y&&e.preventDefault()},tabIndex:y||!i?-1:0,children:r?.children??(0,$.default)(e).locale(D.getLocale(d)).format(u)})},n)});return(0,J.jsx)(`tr`,{...E(`monthsListRow`),children:n},t)});return(0,J.jsx)(Q,{component:`table`,size:C,...E(`monthsList`),"data-full-width":S||void 0,...T,children:(0,J.jsx)(`tbody`,{children:A})})});TD.classes=CD,TD.displayName=`@mantine/dates/MonthsList`;var ED={calendarHeader:`m_730a79ed`,calendarHeaderLevel:`m_f6645d97`,calendarHeaderControl:`m_2351eeb0`,calendarHeaderControlIcon:`m_367dc749`},DD={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:[`previous`,`level`,`next`]},OD=q((e,{size:t})=>({calendarHeader:{"--dch-control-size":M(t,`dch-control-size`),"--dch-fz":F(t)}})),kD=Z(e=>{let t=Y(`CalendarHeader`,DD,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,nextIcon:l,previousIcon:u,nextLabel:d,previousLabel:f,onNext:p,onPrevious:m,onLevelClick:h,label:g,nextDisabled:_,previousDisabled:v,hasNextLevel:y,levelControlAriaLabel:b,withNext:x,withPrevious:S,headerControlsOrder:C,fullWidth:w,__staticSelector:T,__preventFocus:E,__stopPropagation:D,attributes:O,...k}=t,A=X({name:T||`CalendarHeader`,classes:ED,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:O,vars:c,varsResolver:OD,rootSelector:`calendarHeader`}),j=E?e=>e.preventDefault():void 0,M=S&&(0,o.createElement)(Pc,{...A(`calendarHeaderControl`),key:`previous`,"data-direction":`previous`,"aria-label":f,onClick:m,unstyled:s,onMouseDown:j,disabled:v,"data-disabled":v||void 0,tabIndex:E||v?-1:0,"data-mantine-stop-propagation":D||void 0},u||(0,J.jsx)(lf,{...A(`calendarHeaderControlIcon`),"data-direction":`previous`,size:`45%`})),N=(0,o.createElement)(Pc,{component:y?`button`:`div`,...A(`calendarHeaderLevel`),key:`level`,onClick:y?h:void 0,unstyled:s,onMouseDown:y?j:void 0,disabled:!y,"data-static":!y||void 0,"aria-label":b,tabIndex:E||!y?-1:0,"data-mantine-stop-propagation":D||void 0},g),P=x&&(0,o.createElement)(Pc,{...A(`calendarHeaderControl`),key:`next`,"data-direction":`next`,"aria-label":d,onClick:p,unstyled:s,onMouseDown:j,disabled:_,"data-disabled":_||void 0,tabIndex:E||_?-1:0,"data-mantine-stop-propagation":D||void 0},l||(0,J.jsx)(lf,{...A(`calendarHeaderControlIcon`),"data-direction":`next`,size:`45%`})),F=C.map(e=>e===`previous`?M:e===`level`?N:e===`next`?P:null);return(0,J.jsx)(Q,{...A(`calendarHeader`),"data-full-width":w||void 0,...k,children:F})});kD.classes=ED,kD.varsResolver=OD,kD.displayName=`@mantine/dates/CalendarHeader`;function AD(e){let t=gD(e);return[t[0][0],t[3][0]]}var jD={decadeLabelFormat:`YYYY`},MD=Z(e=>{let{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:d,__preventFocus:f,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,nextDisabled:y,previousDisabled:b,levelControlAriaLabel:x,withNext:S,withPrevious:C,headerControlsOrder:w,decadeLabelFormat:T,classNames:E,styles:D,unstyled:O,__staticSelector:k,__stopPropagation:A,size:j,fullWidth:M,attributes:N,...P}=Y(`DecadeLevel`,jD,e),F=lE(),[I,L]=AD(t),R={__staticSelector:k||`DecadeLevel`,classNames:E,styles:D,unstyled:O,size:j,attributes:N},z=typeof y==`boolean`?y:i?!(0,$.default)(L).endOf(`year`).isBefore(i):!1,B=typeof b==`boolean`?b:r?!(0,$.default)(I).startOf(`year`).isAfter(r):!1,V=(e,t)=>(0,$.default)(e).locale(n||F.locale).format(t);return(0,J.jsxs)(Q,{"data-decade-level":!0,size:j,...P,children:[(0,J.jsx)(kD,{label:typeof T==`function`?T(I,L):`${V(I,T)} – ${V(L,T)}`,__preventFocus:f,__stopPropagation:A,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,nextDisabled:z,previousDisabled:B,hasNextLevel:!1,levelControlAriaLabel:x,withNext:S,withPrevious:C,headerControlsOrder:w,fullWidth:M,...R}),(0,J.jsx)(yD,{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,__preventFocus:f,__stopPropagation:A,withCellSpacing:d,fullWidth:M,...R})]})});MD.classes={...yD.classes,...kD.classes},MD.displayName=`@mantine/dates/DecadeLevel`;var ND={yearLabelFormat:`YYYY`},PD=Z(e=>{let{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:d,__preventFocus:f,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,onLevelClick:y,nextDisabled:b,previousDisabled:x,hasNextLevel:S,levelControlAriaLabel:C,withNext:w,withPrevious:T,headerControlsOrder:E,yearLabelFormat:D,__staticSelector:O,__stopPropagation:k,size:A,classNames:j,styles:M,unstyled:N,fullWidth:P,attributes:F,...I}=Y(`YearLevel`,ND,e),L=lE(),R={__staticSelector:O||`YearLevel`,classNames:j,styles:M,unstyled:N,size:A,attributes:F},z=typeof b==`boolean`?b:i?!(0,$.default)(t).endOf(`year`).isBefore(i):!1,B=typeof x==`boolean`?x:r?!(0,$.default)(t).startOf(`year`).isAfter(r):!1;return(0,J.jsxs)(Q,{"data-year-level":!0,size:A,...I,children:[(0,J.jsx)(kD,{label:typeof D==`function`?D(t):(0,$.default)(t).locale(n||L.locale).format(D),__preventFocus:f,__stopPropagation:k,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,onLevelClick:y,nextDisabled:z,previousDisabled:B,hasNextLevel:S,levelControlAriaLabel:C,withNext:w,withPrevious:T,headerControlsOrder:E,fullWidth:P,...R}),(0,J.jsx)(TD,{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,__preventFocus:f,__stopPropagation:k,withCellSpacing:d,fullWidth:P,...R})]})});PD.classes={...kD.classes,...TD.classes},PD.displayName=`@mantine/dates/YearLevel`;var FD={monthLabelFormat:`MMMM YYYY`},ID=Z(e=>{let{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__getDayRef:m,__onDayKeyDown:h,__onDayClick:g,__onDayMouseEnter:_,withCellSpacing:v,highlightToday:y,withWeekNumbers:b,__preventFocus:x,__stopPropagation:S,nextIcon:C,previousIcon:w,nextLabel:T,previousLabel:E,onNext:D,onPrevious:O,onLevelClick:k,nextDisabled:A,previousDisabled:j,hasNextLevel:M,levelControlAriaLabel:N,withNext:P,withPrevious:F,headerControlsOrder:I,monthLabelFormat:L,classNames:R,styles:z,unstyled:B,__staticSelector:V,size:H,static:ee,fullWidth:U,attributes:te,...ne}=Y(`MonthLevel`,FD,e),re=lE(),ie={__staticSelector:V||`MonthLevel`,classNames:R,styles:z,unstyled:B,size:H,attributes:te},W=typeof A==`boolean`?A:l?!(0,$.default)(t).endOf(`month`).isBefore(l):!1,ae=typeof j==`boolean`?j:c?!(0,$.default)(t).startOf(`month`).isAfter(c):!1;return(0,J.jsxs)(Q,{"data-month-level":!0,size:H,...ne,children:[(0,J.jsx)(kD,{label:typeof L==`function`?L(t):(0,$.default)(t).locale(n||re.locale).format(L),__preventFocus:x,__stopPropagation:S,nextIcon:C,previousIcon:w,nextLabel:T,previousLabel:E,onNext:D,onPrevious:O,onLevelClick:k,nextDisabled:W,previousDisabled:ae,hasNextLevel:M,levelControlAriaLabel:N,withNext:P,withPrevious:F,headerControlsOrder:I,fullWidth:U,...ie}),(0,J.jsx)(uD,{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__getDayRef:m,__onDayKeyDown:h,__onDayClick:g,__onDayMouseEnter:_,__preventFocus:x,__stopPropagation:S,static:ee,withCellSpacing:v,highlightToday:y,withWeekNumbers:b,fullWidth:U,...ie})]})});ID.classes={...uD.classes,...kD.classes},ID.displayName=`@mantine/dates/MonthLevel`;var LD={levelsGroup:`m_30b26e33`},RD=Z(e=>{let t=Y(`LevelsGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,fullWidth:l,attributes:u,...d}=t;return(0,J.jsx)(Q,{...X({name:c||`LevelsGroup`,classes:LD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,rootSelector:`levelsGroup`})(`levelsGroup`),"data-full-width":l||void 0,...d})});RD.classes=LD,RD.displayName=`@mantine/dates/LevelsGroup`;var zD={numberOfColumns:1},BD=Z(e=>{let{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:s,__onControlClick:c,__onControlMouseEnter:l,withCellSpacing:u,__preventFocus:d,nextIcon:f,previousIcon:p,nextLabel:m,previousLabel:h,onNext:g,onPrevious:_,nextDisabled:v,previousDisabled:y,headerControlsOrder:b,classNames:x,styles:S,unstyled:C,__staticSelector:w,__stopPropagation:T,numberOfColumns:E,levelControlAriaLabel:D,decadeLabelFormat:O,size:k,fullWidth:A,vars:j,attributes:M,...N}=Y(`DecadeLevelGroup`,zD,e),P=(0,o.useRef)([]),F=Array(E).fill(0).map((e,o)=>{let j=(0,$.default)(t).add(o*10,`years`).format(`YYYY-MM-DD`);return(0,J.jsx)(MD,{size:k,yearsListFormat:a,decade:j,withNext:o===E-1,withPrevious:o===0,decadeLabelFormat:O,__onControlClick:c,__onControlMouseEnter:l,__onControlKeyDown:(e,t)=>nE({levelIndex:o,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:P}),__getControlRef:(e,t,n)=>{Array.isArray(P.current[o])||(P.current[o]=[]),Array.isArray(P.current[o][e])||(P.current[o][e]=[]),P.current[o][e][t]=n},levelControlAriaLabel:typeof D==`function`?D(j):D,locale:n,minDate:r,maxDate:i,__preventFocus:d,__stopPropagation:T,nextIcon:f,previousIcon:p,nextLabel:m,previousLabel:h,onNext:g,onPrevious:_,nextDisabled:v,previousDisabled:y,getYearControlProps:s,__staticSelector:w||`DecadeLevelGroup`,classNames:x,styles:S,unstyled:C,withCellSpacing:u,headerControlsOrder:b,fullWidth:A,attributes:M},o)});return(0,J.jsx)(RD,{classNames:x,styles:S,__staticSelector:w||`DecadeLevelGroup`,size:k,unstyled:C,fullWidth:A,attributes:M,...N,children:F})});BD.classes={...RD.classes,...MD.classes},BD.displayName=`@mantine/dates/DecadeLevelGroup`;var VD={numberOfColumns:1},HD=Z(e=>{let{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:s,__onControlClick:c,__onControlMouseEnter:l,withCellSpacing:u,__preventFocus:d,nextIcon:f,previousIcon:p,nextLabel:m,previousLabel:h,onNext:g,onPrevious:_,onLevelClick:v,nextDisabled:y,previousDisabled:b,hasNextLevel:x,headerControlsOrder:S,classNames:C,styles:w,unstyled:T,__staticSelector:E,__stopPropagation:D,numberOfColumns:O,levelControlAriaLabel:k,yearLabelFormat:A,size:j,fullWidth:M,vars:N,attributes:P,...F}=Y(`YearLevelGroup`,VD,e),I=(0,o.useRef)([]),L=Array(O).fill(0).map((e,o)=>{let N=(0,$.default)(t).add(o,`years`).format(`YYYY-MM-DD`);return(0,J.jsx)(PD,{size:j,monthsListFormat:a,year:N,withNext:o===O-1,withPrevious:o===0,yearLabelFormat:A,__stopPropagation:D,__onControlClick:c,__onControlMouseEnter:l,__onControlKeyDown:(e,t)=>nE({levelIndex:o,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:I}),__getControlRef:(e,t,n)=>{Array.isArray(I.current[o])||(I.current[o]=[]),Array.isArray(I.current[o][e])||(I.current[o][e]=[]),I.current[o][e][t]=n},levelControlAriaLabel:typeof k==`function`?k(N):k,locale:n,minDate:r,maxDate:i,__preventFocus:d,nextIcon:f,previousIcon:p,nextLabel:m,previousLabel:h,onNext:g,onPrevious:_,onLevelClick:v,nextDisabled:y,previousDisabled:b,hasNextLevel:x,getMonthControlProps:s,classNames:C,styles:w,unstyled:T,__staticSelector:E||`YearLevelGroup`,withCellSpacing:u,headerControlsOrder:S,fullWidth:M,attributes:P},o)});return(0,J.jsx)(RD,{classNames:C,styles:w,__staticSelector:E||`YearLevelGroup`,size:j,unstyled:T,fullWidth:M,attributes:P,...F,children:L})});HD.classes={...PD.classes,...RD.classes},HD.displayName=`@mantine/dates/YearLevelGroup`;var UD={numberOfColumns:1},WD=Z(e=>{let{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:s,excludeDate:c,minDate:l,maxDate:u,renderDay:d,hideOutsideDates:f,hideWeekdays:p,getDayAriaLabel:m,__onDayClick:h,__onDayMouseEnter:g,withCellSpacing:_,highlightToday:v,withWeekNumbers:y,__preventFocus:b,nextIcon:x,previousIcon:S,nextLabel:C,previousLabel:w,onNext:T,onPrevious:E,onLevelClick:D,nextDisabled:O,previousDisabled:k,hasNextLevel:A,headerControlsOrder:j,classNames:M,styles:N,unstyled:P,numberOfColumns:F,levelControlAriaLabel:I,monthLabelFormat:L,__staticSelector:R,__stopPropagation:z,size:B,static:V,fullWidth:H,vars:ee,attributes:U,...te}=Y(`MonthLevelGroup`,UD,e),ne=(0,o.useRef)([]),re=Array(F).fill(0).map((e,o)=>{let ee=(0,$.default)(t).add(o,`months`).format(`YYYY-MM-DD`);return(0,J.jsx)(ID,{month:ee,withNext:o===F-1,withPrevious:o===0,monthLabelFormat:L,__stopPropagation:z,__onDayClick:h,__onDayMouseEnter:g,__onDayKeyDown:(e,t)=>nE({levelIndex:o,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:ne}),__getDayRef:(e,t,n)=>{Array.isArray(ne.current[o])||(ne.current[o]=[]),Array.isArray(ne.current[o][e])||(ne.current[o][e]=[]),ne.current[o][e][t]=n},levelControlAriaLabel:typeof I==`function`?I(ee):I,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:s,excludeDate:c,minDate:l,maxDate:u,renderDay:d,hideOutsideDates:f,hideWeekdays:p,getDayAriaLabel:m,__preventFocus:b,nextIcon:x,previousIcon:S,nextLabel:C,previousLabel:w,onNext:T,onPrevious:E,onLevelClick:D,nextDisabled:O,previousDisabled:k,hasNextLevel:A,classNames:M,styles:N,unstyled:P,__staticSelector:R||`MonthLevelGroup`,size:B,static:V,withCellSpacing:_,highlightToday:v,withWeekNumbers:y,headerControlsOrder:j,fullWidth:H,attributes:U},o)});return(0,J.jsx)(RD,{classNames:M,styles:N,__staticSelector:R||`MonthLevelGroup`,size:B,fullWidth:H,attributes:U,...te,children:re})});WD.classes={...RD.classes,...ID.classes},WD.displayName=`@mantine/dates/MonthLevelGroup`;var GD={input:`m_6fa5e2aa`},KD=Z(e=>{let{inputProps:t,wrapperProps:n,placeholder:r,classNames:i,styles:a,unstyled:o,popoverProps:s,modalProps:c,dropdownType:l,children:u,formattedValue:d,dropdownHandlers:f,dropdownOpened:p,onClick:m,clearable:h,clearSectionMode:g,onClear:_,clearButtonProps:v,rightSection:y,shouldClear:b,readOnly:x,disabled:S,value:C,name:w,form:T,type:E,onDropdownClose:D,withTime:O,...k}=Yd(`PickerInputBase`,{size:`sm`},e),A=(0,J.jsx)(Jd.ClearButton,{onClick:_,unstyled:o,...v}),j=()=>{E===`range`&&Array.isArray(C)&&C[0]&&!C[1]&&_(),f.close()};return(0,J.jsxs)(J.Fragment,{children:[l===`modal`&&!x&&(0,J.jsx)(ly,{opened:p,onClose:j,withCloseButton:!1,size:`auto`,"data-dates-modal":!0,unstyled:o,...c,children:u}),(0,J.jsx)(Jd.Wrapper,{...n,children:(0,J.jsxs)(Dl,{position:`bottom-start`,opened:p,trapFocus:!0,returnFocus:!1,unstyled:o,onClose:D,...s,disabled:s?.disabled||l===`modal`||x,onChange:e=>{e||(s?.onClose?.(),j())},children:[(0,J.jsx)(Dl.Target,{children:(0,J.jsx)(Jd,{"data-dates-input":!0,"data-read-only":x||void 0,disabled:S,component:`button`,type:`button`,multiline:!0,onClick:e=>{m?.(e),f.toggle()},__clearSection:A,__clearable:h&&b&&!x&&!S,__clearSectionMode:g,rightSection:y,...t,classNames:{...i,input:Lt(GD.input,i?.input)},...k,children:d||(0,J.jsx)(Jd.Placeholder,{error:t.error,unstyled:o,classNames:i,styles:a,__staticSelector:t.__staticSelector,children:r})})}),(0,J.jsx)(Dl.Dropdown,{"data-dates-dropdown":!0,children:u})]})}),(0,J.jsx)(dE,{value:C,name:w,form:T,type:E,withTime:O})]})});KD.classes=GD,KD.displayName=`@mantine/dates/PickerInputBase`;var qD=e=>e===`range`?[null,null]:e===`multiple`?[]:null,JD=(e,t)=>{let n=t?aE:iE;return Array.isArray(e)?e.map(n):n(e)};function YD({type:e,value:t,defaultValue:n,onChange:r,withTime:i=!1}){let a=(0,o.useRef)(e),[s,c,l]=Le({value:JD(t,i),defaultValue:JD(n,i),finalValue:qD(e),onChange:r}),u=s;return a.current!==e&&(a.current=e,t===void 0&&(u=n===void 0?qD(e):n,c(u))),[u,c,l]}function XD(e,t){return e?e===`month`?0:e===`year`?1:2:t||0}function ZD(e){return e===0?`month`:e===1?`year`:`decade`}function QD(e,t,n){return ZD(ee(XD(e,0),XD(t,0),XD(n,2)))}var $D={maxLevel:`decade`,minLevel:`month`,__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},eO=Z(e=>{let t=Y(`Calendar`,$D,e),{vars:n,maxLevel:r,minLevel:i,defaultLevel:a,level:s,onLevelChange:c,date:l,defaultDate:u,onDateChange:d,numberOfColumns:f,columnsToScroll:p,ariaLabels:m,nextLabel:h,previousLabel:g,onYearSelect:_,onMonthSelect:v,onYearMouseEnter:y,onMonthMouseEnter:b,headerControlsOrder:x,__updateDateOnYearSelect:S,__updateDateOnMonthSelect:C,__setDateRef:w,__setLevelRef:T,firstDayOfWeek:E,weekdayFormat:D,weekendDays:O,getDayProps:k,excludeDate:A,renderDay:j,hideOutsideDates:M,hideWeekdays:N,getDayAriaLabel:P,monthLabelFormat:F,nextIcon:I,previousIcon:L,__onDayClick:R,__onDayMouseEnter:z,withCellSpacing:B,highlightToday:V,withWeekNumbers:H,monthsListFormat:ee,getMonthControlProps:U,yearLabelFormat:te,yearsListFormat:ne,getYearControlProps:re,decadeLabelFormat:ie,classNames:W,styles:ae,unstyled:G,minDate:K,maxDate:oe,locale:se,__staticSelector:ce,size:le,__preventFocus:ue,__stopPropagation:de,onNextDecade:fe,onPreviousDecade:pe,onNextYear:me,onPreviousYear:he,onNextMonth:ge,onPreviousMonth:_e,static:ve,enableKeyboardNavigation:ye,fullWidth:be,attributes:xe,ref:Se,...Ce}=t,{resolvedClassNames:we,resolvedStyles:Te}=or({classNames:W,styles:ae,props:t}),[Ee,De]=Le({value:s?QD(s,i,r):void 0,defaultValue:a?QD(a,i,r):void 0,finalValue:QD(void 0,i,r),onChange:c}),[Oe,ke]=YD({type:`default`,value:iE(l),defaultValue:iE(u),onChange:d});(0,o.useImperativeHandle)(w,()=>e=>{ke(e)}),(0,o.useImperativeHandle)(T,()=>e=>{De(e)});let Ae={__staticSelector:ce||`Calendar`,styles:Te,classNames:we,unstyled:G,size:le,attributes:xe},je=p||f||1,Me=(0,o.useRef)(null);if(Me.current===null){let e=new Date;Me.current=K&&(0,$.default)(e).isAfter(K)?K:(0,$.default)(e).format(`YYYY-MM-DD`)}let Ne=Oe||Me.current,Fe=()=>{let e=(0,$.default)(Ne).add(je,`month`).format(`YYYY-MM-DD`);ge?.(e),ke(e)},Ie=()=>{let e=(0,$.default)(Ne).subtract(je,`month`).format(`YYYY-MM-DD`);_e?.(e),ke(e)},Re=()=>{let e=(0,$.default)(Ne).add(je,`year`).format(`YYYY-MM-DD`);me?.(e),ke(e)},ze=()=>{let e=(0,$.default)(Ne).subtract(je,`year`).format(`YYYY-MM-DD`);he?.(e),ke(e)},Be=()=>{let e=(0,$.default)(Ne).add(10*je,`year`).format(`YYYY-MM-DD`);fe?.(e),ke(e)},Ve=()=>{let e=(0,$.default)(Ne).subtract(10*je,`year`).format(`YYYY-MM-DD`);pe?.(e),ke(e)},He=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!ye||ve)return;let e=e=>{if(!He.current?.contains(document.activeElement))return;let t=e.ctrlKey||e.metaKey,n=e.shiftKey;switch(e.key){case`ArrowUp`:t&&n?(e.preventDefault(),Ve()):t&&(e.preventDefault(),ze());break;case`ArrowDown`:t&&n?(e.preventDefault(),Be()):t&&(e.preventDefault(),Re());break;case`y`:case`Y`:Ee===`month`&&(e.preventDefault(),De(`year`));break}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[ye,ve,Ee,Re,ze,Be,Ve]),(0,J.jsxs)(Q,{ref:Pe(He,Se),size:le,"data-calendar":!0,"data-full-width":be||void 0,...Ce,children:[Ee===`month`&&(0,J.jsx)(WD,{month:Ne,minDate:K,maxDate:oe,firstDayOfWeek:E,weekdayFormat:D,weekendDays:O,getDayProps:k,excludeDate:A,renderDay:j,hideOutsideDates:M,hideWeekdays:N,getDayAriaLabel:P,onNext:Fe,onPrevious:Ie,hasNextLevel:r!==`month`,onLevelClick:()=>De(`year`),numberOfColumns:f,locale:se,levelControlAriaLabel:m?.monthLevelControl,nextLabel:m?.nextMonth??h,nextIcon:I,previousLabel:m?.previousMonth??g,previousIcon:L,monthLabelFormat:F,__onDayClick:R,__onDayMouseEnter:z,__preventFocus:ue,__stopPropagation:de,static:ve,withCellSpacing:B,highlightToday:V,withWeekNumbers:H,headerControlsOrder:x,fullWidth:be,...Ae}),Ee===`year`&&(0,J.jsx)(HD,{year:Ne,numberOfColumns:f,minDate:K,maxDate:oe,monthsListFormat:ee,getMonthControlProps:U,locale:se,onNext:Re,onPrevious:ze,hasNextLevel:r!==`month`&&r!==`year`,onLevelClick:()=>De(`decade`),levelControlAriaLabel:m?.yearLevelControl,nextLabel:m?.nextYear??h,nextIcon:I,previousLabel:m?.previousYear??g,previousIcon:L,yearLabelFormat:te,__onControlMouseEnter:b,__onControlClick:(e,t)=>{C&&ke(t),De(QD(`month`,i,r)),v?.(t)},__preventFocus:ue,__stopPropagation:de,withCellSpacing:B,headerControlsOrder:x,fullWidth:be,...Ae}),Ee===`decade`&&(0,J.jsx)(BD,{decade:Ne,minDate:K,maxDate:oe,yearsListFormat:ne,getYearControlProps:re,locale:se,onNext:Be,onPrevious:Ve,numberOfColumns:f,nextLabel:m?.nextDecade??h,nextIcon:I,previousLabel:m?.previousDecade??g,previousIcon:L,decadeLabelFormat:ie,__onControlMouseEnter:y,__onControlClick:(e,t)=>{S&&ke(t),De(QD(`year`,i,r)),_?.(t)},__preventFocus:ue,__stopPropagation:de,withCellSpacing:B,headerControlsOrder:x,fullWidth:be,...Ae})]})});eO.classes={...BD.classes,...HD.classes,...WD.classes},eO.displayName=`@mantine/dates/Calendar`;function tO(e){let{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:o,previousIcon:s,date:c,defaultDate:l,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:p,nextLabel:m,previousLabel:h,onYearSelect:g,onMonthSelect:_,onYearMouseEnter:v,onMonthMouseEnter:y,onNextMonth:b,onPreviousMonth:x,onNextYear:S,onPreviousYear:C,onNextDecade:w,onPreviousDecade:T,withCellSpacing:E,highlightToday:D,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:k,__setDateRef:A,__setLevelRef:j,withWeekNumbers:M,headerControlsOrder:N,firstDayOfWeek:P,weekdayFormat:F,weekendDays:I,getDayProps:L,excludeDate:R,renderDay:z,hideOutsideDates:B,hideWeekdays:V,getDayAriaLabel:H,monthLabelFormat:ee,monthsListFormat:U,getMonthControlProps:te,yearLabelFormat:ne,yearsListFormat:re,getYearControlProps:ie,decadeLabelFormat:W,allowSingleDateInRange:ae,allowDeselect:G,minDate:K,maxDate:oe,locale:se,...ce}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:o,previousIcon:s,date:c,defaultDate:l,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:p,nextLabel:m,previousLabel:h,onYearSelect:g,onMonthSelect:_,onYearMouseEnter:v,onMonthMouseEnter:y,onNextMonth:b,onPreviousMonth:x,onNextYear:S,onPreviousYear:C,onNextDecade:w,onPreviousDecade:T,withCellSpacing:E,highlightToday:D,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:k,__setDateRef:A,withWeekNumbers:M,headerControlsOrder:N,firstDayOfWeek:P,weekdayFormat:F,weekendDays:I,getDayProps:L,excludeDate:R,renderDay:z,hideOutsideDates:B,hideWeekdays:V,getDayAriaLabel:H,monthLabelFormat:ee,monthsListFormat:U,getMonthControlProps:te,yearLabelFormat:ne,yearsListFormat:re,getYearControlProps:ie,decadeLabelFormat:W,allowSingleDateInRange:ae,allowDeselect:G,minDate:K,maxDate:oe,locale:se},others:ce}}function nO(e,t){let n=[...t].sort((e,t)=>(0,$.default)(e).isAfter((0,$.default)(t))?1:-1);return(0,$.default)(n[0]).startOf(`day`).subtract(1,`ms`).isBefore(e)&&(0,$.default)(n[1]).endOf(`day`).add(1,`ms`).isAfter(e)}function rO({type:e,level:t,value:n,defaultValue:r,onChange:i,allowSingleDateInRange:a,allowDeselect:s,onMouseLeave:c}){let[l,u]=YD({type:e,value:n,defaultValue:r,onChange:i}),[d,f]=(0,o.useState)(e===`range`&&l[0]&&!l[1]?l[0]:null),[p,m]=(0,o.useState)(null),h=n=>{if(e===`range`){if(d&&!l[1]){if((0,$.default)(n).isSame(d,t)&&!a){f(null),m(null),u([null,null]);return}let e=[n,d];e.sort((e,t)=>(0,$.default)(e).isAfter((0,$.default)(t))?1:-1),u(e),m(null),f(null);return}if(l[0]&&!l[1]&&(0,$.default)(n).isSame(l[0],t)&&!a){f(null),m(null),u([null,null]);return}u([n,null]),m(null),f(n);return}if(e===`multiple`){l.some(e=>(0,$.default)(e).isSame(n,t))?u(l.filter(e=>!(0,$.default)(e).isSame(n,t))):u([...l,n]);return}l&&s&&(0,$.default)(n).isSame(l,t)?u(null):u(n)},g=e=>d&&p?nO(e,[p,d]):l[0]&&l[1]?nO(e,l):!1,_=e===`range`?e=>{c?.(e),m(null)}:c,v=e=>l[0]&&(0,$.default)(e).isSame(l[0],t)?!(p&&(0,$.default)(p).isBefore(l[0])):!1,y=e=>l[1]?(0,$.default)(e).isSame(l[1],t):!l[0]||!p?!1:(0,$.default)(p).isBefore(l[0])&&(0,$.default)(e).isSame(l[0],t),b=n=>{if(e===`range`)return{selected:l.some(e=>e&&(0,$.default)(e).isSame(n,t)),inRange:g(n),firstInRange:v(n),lastInRange:y(n),"data-autofocus":!!l[0]&&(0,$.default)(l[0]).isSame(n,t)||void 0};if(e===`multiple`)return{selected:l.some(e=>e&&(0,$.default)(e).isSame(n,t)),"data-autofocus":!!l[0]&&(0,$.default)(l[0]).isSame(n,t)||void 0};let r=(0,$.default)(l).isSame(n,t);return{selected:r,"data-autofocus":r||void 0}},x=e===`range`&&d?m:()=>{};return(0,o.useEffect)(()=>{if(e===`range`)if(l[0]&&!l[1])f(l[0]);else{let e=l[0]==null&&l[1]==null,t=l[0]!=null&&l[1]!=null;(e||t)&&(f(null),m(null))}},[l]),{onDateChange:h,onRootMouseLeave:_,onHoveredDateChange:x,getControlProps:b,_value:l,setValue:u}}var iO={datePickerRoot:`m_765a40cf`,presetsList:`m_d6a681e1`,presetButton:`m_acd30b22`},aO=q((e,{size:t})=>({datePickerRoot:{"--preset-font-size":F(t)}})),oO={type:`default`,defaultLevel:`month`,numberOfColumns:1,size:`sm`},sO=Z(e=>{let t=Y(`DatePicker`,oO,e),{allowDeselect:n,allowSingleDateInRange:r,value:i,defaultValue:a,onChange:s,onMouseLeave:c,classNames:l,styles:u,__staticSelector:d,__onDayClick:f,__onDayMouseEnter:p,__onPresetSelect:m,__stopPropagation:h,presets:g,className:_,style:v,unstyled:y,size:b,vars:x,attributes:S,fullWidth:C,...w}=t,{calendarProps:T,others:E}=tO(w),D=(0,o.useRef)(null),O=(0,o.useRef)(null),k=X({name:d||`DatePicker`,classes:iO,props:t,className:_,style:v,classNames:l,styles:u,unstyled:y,attributes:S,rootSelector:g?`datePickerRoot`:void 0,varsResolver:aO,vars:x}),{onDateChange:A,onRootMouseLeave:j,onHoveredDateChange:M,getControlProps:N,_value:P,setValue:F}=rO({type:E.type,level:`day`,allowDeselect:n,allowSingleDateInRange:r,value:i,defaultValue:a,onChange:s,onMouseLeave:c}),{resolvedClassNames:I,resolvedStyles:L}=or({classNames:l,styles:u,props:t}),R=(0,J.jsx)(eO,{classNames:I,styles:L,__staticSelector:d||`DatePicker`,onMouseLeave:j,size:b,fullWidth:C,...T,...g?{}:E,__stopPropagation:h,__setDateRef:D,__setLevelRef:O,minLevel:T.minLevel||`month`,__onDayMouseEnter:(e,t)=>{M(t),p?.(e,t)},__onDayClick:(e,t)=>{A(t),f?.(e,t)},getDayProps:e=>({...N(e),...T.getDayProps?.(e)}),getMonthControlProps:e=>({selected:typeof P==`string`?tD(e,P):!1,...T.getMonthControlProps?.(e)}),getYearControlProps:e=>({selected:typeof P==`string`?(0,$.default)(e).isSame(P,`year`):!1,...T.getYearControlProps?.(e)}),hideOutsideDates:T.hideOutsideDates??T.numberOfColumns!==1,attributes:S,...g?{}:{className:_,style:v}});if(!g)return R;let z=e=>{let t=Array.isArray(e)?e[0]:e;t!==void 0&&(D.current?.(t),O.current?.(`month`),m?m(e):F(e))},B=g.map((e,t)=>(0,J.jsx)(Pc,{...k(`presetButton`),onClick:()=>z(e.value),onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":h||void 0,children:e.label},t));return(0,J.jsxs)(Q,{...k(`datePickerRoot`),size:b,...E,children:[(0,J.jsx)(`div`,{...k(`presetsList`),children:B}),R]})});sO.classes=eO.classes,sO.varsResolver=aO,sO.displayName=`@mantine/dates/DatePicker`;function cO(e){if(e===null)return null;let t=new Date(e);return Number.isNaN(t.getTime())||!e?null:(0,$.default)(t).format(`YYYY-MM-DD`)}function lO({date:e,maxDate:t,minDate:n}){return!(e==null||Number.isNaN(new Date(e).getTime())||t&&(0,$.default)(e).isAfter(t,`date`)||n&&(0,$.default)(e).isBefore(n,`date`))}var uO={presetsRoot:`m_1f4d0c5`,presetsList:`m_1f20081`,presetButton:`m_eaf76082`},dO={valueFormat:`MMMM D, YYYY`,fixOnBlur:!0,size:`sm`},fO=Z(e=>{let t=Yd(`DateInput`,dO,e),{inputProps:n,wrapperProps:r,value:i,defaultValue:a,onChange:s,clearable:c,clearSectionMode:l,clearButtonProps:u,popoverProps:d,getDayProps:f,locale:p,valueFormat:m,withTime:h,dateParser:g,minDate:_,maxDate:v,fixOnBlur:y,onFocus:b,onBlur:x,onClick:S,onKeyDown:C,readOnly:w,name:T,form:E,rightSection:D,unstyled:O,classNames:k,styles:A,allowDeselect:j,date:M,defaultDate:N,onDateChange:P,getMonthControlProps:I,getYearControlProps:L,disabled:R,presets:z,...B}=t,V=X({name:`DateInput`,classes:uO,props:t,classNames:k,styles:A,unstyled:O,attributes:r.attributes}),H=(0,o.useRef)(null),ee=(0,o.useRef)(null),[U,te]=(0,o.useState)(!1),{calendarProps:ne,others:re}=tO(B),ie=lE(),ae=g||(e=>{let t=(0,$.default)(e,m,ie.getLocale(p)).toDate();return Number.isNaN(t.getTime())?cO(e):(0,$.default)(t).format(h?`YYYY-MM-DD HH:mm:ss`:`YYYY-MM-DD`)}),G=j===void 0?c:j,K=e=>e?(0,$.default)(e).locale(ie.getLocale(p)).format(m):``,[oe,se,ce]=YD({type:`default`,value:i,defaultValue:a,onChange:s,withTime:h}),[ue,de]=YD({type:`default`,value:M,defaultValue:a||N,onChange:P});(0,o.useEffect)(()=>{ce&&i!==null&&de(i)},[ce,i]);let[fe,pe]=(0,o.useState)(K(oe));(0,o.useEffect)(()=>{pe(K(oe))},[ie.getLocale(p)]);let me=e=>{let t=e.currentTarget.value;if(pe(t),te(!0),t.trim()===``&&(j||c))se(null);else{let e=ae(t);e&&lO({date:e,minDate:_,maxDate:v})&&(se(e),de(e))}},he=e=>{x?.(e),te(!1),y&&pe(K(oe))},ge=e=>{b?.(e),te(!0)},_e=e=>{S?.(e),te(!0)},ve=e=>{e.key===`Escape`&&te(!1),C?.(e)},ye=e=>({...f?.(e),selected:(0,$.default)(oe).isSame(e,`day`),onClick:t=>{f?.(e).onClick?.(t);let n=G&&(0,$.default)(oe).isSame(e,`day`)?null:e;se(n),!ce&&n&&pe(K(n)),te(!1)}}),be=e=>{se(e),e&&de(e),ce||pe(e?K(e):``),te(!1)},xe=z?.map((e,t)=>(0,J.jsx)(Pc,{...V(`presetButton`),onClick:()=>be(e.value),onMouseDown:e=>e.preventDefault(),children:e.label},t)),Se=(0,J.jsx)(Jd.ClearButton,{onClick:()=>{se(null),!ce&&pe(``),te(!1)},unstyled:O,...u}),Ce=c&&!!oe&&!w&&!R;le(()=>{oe!==void 0&&!U&&pe(K(oe))},[oe]),W(()=>te(!1),void 0,[H.current,ee.current]);let we=(0,J.jsx)(eO,{__staticSelector:`DateInput`,...ne,classNames:k,styles:A,unstyled:O,__preventFocus:!0,minDate:_,maxDate:v,locale:p,getDayProps:ye,size:n.size,date:ue,onDateChange:de,getMonthControlProps:e=>({selected:typeof oe==`string`?tD(e,oe):!1,...I?.(e)}),getYearControlProps:e=>({selected:typeof oe==`string`?(0,$.default)(e).isSame(oe,`year`):!1,...L?.(e)}),attributes:r.attributes});return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Jd.Wrapper,{...r,__staticSelector:`DateInput`,ref:H,children:(0,J.jsxs)(Dl,{opened:U,trapFocus:!1,position:`bottom-start`,disabled:w||R,withRoles:!1,unstyled:O,...d,children:[(0,J.jsx)(Dl.Target,{children:(0,J.jsx)(Jd,{"data-dates-input":!0,"data-read-only":w||void 0,autoComplete:`off`,value:fe,onChange:me,onBlur:he,onFocus:ge,onClick:_e,onKeyDown:ve,readOnly:w,rightSection:D,__clearSection:Se,__clearable:Ce,__clearSectionMode:l,...n,...re,disabled:R,__staticSelector:`DateInput`})}),(0,J.jsx)(Dl.Dropdown,{onMouseDown:e=>e.preventDefault(),"data-dates-dropdown":!0,ref:ee,children:z?(0,J.jsxs)(Q,{...V(`presetsRoot`,{style:{"--preset-font-size":F(n.size)}}),children:[(0,J.jsx)(`div`,{...V(`presetsList`),children:xe}),we]}):we})]})}),(0,J.jsx)(dE,{name:T,form:E,value:oe,type:`default`,withTime:h})]})});fO.classes={...Jd.classes,...eO.classes,...uO},fO.displayName=`@mantine/dates/DateInput`;function pO({minDate:e,value:t}){let n=e?(0,$.default)(e).format(`HH:mm:ss`):null;return t&&e&&t===e?n??void 0:void 0}function mO({maxDate:e,value:t}){let n=e?(0,$.default)(e).format(`HH:mm:ss`):null;return t&&e&&t===e?n??void 0:void 0}var hO={timeWrapper:`m_43bf4edb`,timeInput:`m_49f1412`,rangeInfo:`m_d6d672a0`,rangeTimeWrapper:`m_80eb36d4`,rangeTimeInput:`m_5566a64b`},gO={type:`default`,size:`sm`},_O=ei(e=>{let t=Y(`InlineDateTimePicker`,gO,e),{value:n,defaultValue:r,onChange:i,valueFormat:a,locale:s,classNames:c,styles:l,unstyled:u,timePickerProps:d,endTimePickerProps:f,submitButtonProps:p,withSeconds:m,level:h,defaultLevel:g,size:_,variant:v,vars:y,minDate:b,maxDate:x,defaultDate:S,defaultTimeValue:C,presets:w,attributes:T,onSubmit:E,labelSeparator:D,type:O,className:k,style:A,__stopPropagation:j,__staticSelector:M,__onEnter:N,__onPresetSelect:P,fullWidth:F,...I}=t,L=M||`InlineDateTimePicker`,R=X({name:L,classes:hO,props:t,classNames:c,styles:l,unstyled:u,attributes:T,vars:y}),{resolvedClassNames:z,resolvedStyles:B}=or({classNames:c,styles:l,props:t}),V=lE(),H=a||(m?`DD/MM/YYYY HH:mm:ss`:`DD/MM/YYYY HH:mm`),ee=V.getLabelSeparator(D),U=O===`range`,te=(0,o.useRef)(null),ne=Pe(te,d?.hoursRef),re=Pe((0,o.useRef)(null),f?.hoursRef),{calendarProps:{allowSingleDateInRange:ie,...W},others:ae}=tO(I),[G,K]=YD({type:O,value:n,defaultValue:r,onChange:i,withTime:!0}),oe=e=>e?(0,$.default)(e).format(m?`HH:mm:ss`:`HH:mm`):``,se=()=>C||(U?Array.isArray(G)?oe(G[0]):``:oe(G)),ce=()=>C||(U&&Array.isArray(G)?oe(G[1]):``),[ue,de]=(0,o.useState)(se),[fe,pe]=(0,o.useState)(ce),[me,he]=(0,o.useState)(h||g||`month`),ge=U?(Array.isArray(G)?G[0]:null)||S:G||S,_e=e=>{e&&K(rE(sE(b,x,e),ue||C||``)),te.current?.focus()},ve=e=>{let[t,n]=e;K([t?rE(sE(b,x,t),ue||C||``):null,n?rE(sE(b,x,n),fe||C||``):null]),t&&n&&te.current?.focus()},ye=e=>{U?ve(e):_e(e)},be=e=>{d?.onChange?.(e),de(e),e&&(U&&Array.isArray(G)?G[0]&&K([rE(G[0],e),G[1]]):K(rE(G,e)))},xe=e=>{if(f?.onChange?.(e),pe(e),e&&U&&Array.isArray(G)&&G[1]){let t=rE(G[1],e);K([G[0],t])}},Se=e=>{e.key===`Enter`&&(e.preventDefault(),N?.())},Ce=()=>{if(!U||!Array.isArray(G))return``;let e=e=>e?typeof H==`function`?H(e):(0,$.default)(e).locale(V.getLocale(s)).format(H):``,t=e(G[0]),n=e(G[1]);return t&&n?`${t} ${ee} ${n}`:t?`${t} ${ee} ...`:``};le(()=>{U&&Array.isArray(G)?(de(oe(G[0])),pe(oe(G[1]))):de(oe(G))},[G]);let we=pO(U?{minDate:b,value:Array.isArray(G)?G[0]:null}:{minDate:b,value:G}),Te=mO(U?{maxDate:x,value:Array.isArray(G)?G[0]:null}:{maxDate:x,value:G}),Ee=U?pO({minDate:b,value:Array.isArray(G)?G[1]:null}):void 0,De=U?mO({maxDate:x,value:Array.isArray(G)?G[1]:null}):void 0;return(0,J.jsxs)(Q,{...R(`root`,{className:k,style:A}),...ae,ref:t.ref,children:[(0,J.jsx)(sO,{fullWidth:F??!0,...W,maxDate:x,minDate:b,size:_,variant:v,type:O,value:G,defaultDate:ge||oE({maxDate:x,minDate:b}),onChange:ye,locale:s,classNames:z,styles:B,unstyled:u,__staticSelector:L,__stopPropagation:j,level:h,defaultLevel:g,onLevelChange:e=>{he(e),W.onLevelChange?.(e)},presets:w,allowSingleDateInRange:ie,__onPresetSelect:P,attributes:T}),me===`month`&&!U&&(0,J.jsxs)(`div`,{...R(`timeWrapper`),children:[(0,J.jsx)(UE,{value:ue,withSeconds:m,unstyled:u,min:we,max:Te,...d,...R(`timeInput`,{className:d?.className,style:d?.style}),onChange:be,onKeyDown:Se,size:_,"data-mantine-stop-propagation":j||void 0,hoursRef:ne}),(0,J.jsx)(Ul,{variant:`default`,size:`input-${_||`sm`}`,...R(`submitButton`,{className:p?.className,style:p?.style}),unstyled:u,"data-mantine-stop-propagation":j||void 0,children:(0,J.jsx)(qp,{size:`30%`}),...p,onClick:e=>{p?.onClick?.(e),E?.()}})]}),me===`month`&&U&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Af,{...R(`rangeInfo`),children:Ce()}),(0,J.jsxs)(`div`,{...R(`rangeTimeWrapper`),children:[(0,J.jsx)(UE,{value:ue,withSeconds:m,unstyled:u,min:we,max:Te,...d,...R(`rangeTimeInput`,{className:d?.className,style:d?.style}),onChange:be,onKeyDown:Se,size:_,"data-mantine-stop-propagation":j||void 0,hoursRef:ne}),(0,J.jsx)(UE,{value:fe,withSeconds:m,unstyled:u,min:Ee,max:De,...f,...R(`rangeTimeInput`,{className:f?.className,style:f?.style}),onChange:xe,onKeyDown:Se,size:_,"data-mantine-stop-propagation":j||void 0,hoursRef:re}),(0,J.jsx)(Ul,{variant:`default`,size:`input-${_||`sm`}`,...R(`submitButton`,{className:p?.className,style:p?.style}),unstyled:u,"data-mantine-stop-propagation":j||void 0,children:(0,J.jsx)(qp,{size:`30%`}),...p,onClick:e=>{p?.onClick?.(e),E?.()}})]})]})]})});_O.classes={...hO,...sO.classes},_O.displayName=`@mantine/dates/InlineDateTimePicker`;var vO={timeWrapper:`m_208d2562`,timeInput:`m_62ee059`,rangeInfo:`m_d8663ee7`,rangeTimeWrapper:`m_afb15cad`,rangeTimeInput:`m_8afe6e64`},yO={type:`default`,dropdownType:`popover`,size:`sm`},bO=ei(e=>{let t=Y([`Input`,`InputWrapper`,`DateTimePicker`],yO,e),{value:n,defaultValue:r,onChange:i,valueFormat:a,locale:s,classNames:c,styles:l,unstyled:u,timePickerProps:d,endTimePickerProps:f,submitButtonProps:p,withSeconds:m,level:h,defaultLevel:g,size:_,variant:v,dropdownType:y,vars:b,minDate:x,maxDate:S,defaultDate:C,defaultTimeValue:w,presets:T,attributes:E,onDropdownClose:D,type:O,labelSeparator:k,allowSingleDateInRange:A,...j}=t,M=O===`range`;X({name:`DateTimePicker`,classes:vO,props:t,classNames:c,styles:l,unstyled:u,attributes:E,vars:b});let{resolvedClassNames:N,resolvedStyles:P}=or({classNames:c,styles:l,props:t}),F=m||d?.withSeconds,I=a||(F?`DD/MM/YYYY HH:mm:ss`:`DD/MM/YYYY HH:mm`),{calendarProps:{allowSingleDateInRange:L,...R},others:z}=tO(j),B=lE(),V=B.getLabelSeparator(k),[H,ee]=YD({type:O,value:n,defaultValue:r,onChange:i,withTime:!0}),[U,te]=nt(!1),[ne,re]=(0,o.useState)(0),ie=e=>e?typeof I==`function`?I(e):(0,$.default)(e).locale(B.getLocale(s)).format(I):``,W=(()=>{if(M&&Array.isArray(H)){let e=ie(H[0]),t=ie(H[1]);return e&&t?`${e} ${V} ${t}`:e?`${e} ${V} ...`:``}return ie(H)})();le(()=>{U&&re(e=>e+1)},[U]);let ae=y===`popover`,G=()=>{M&&Array.isArray(H)&&H[0]&&!H[1]&&ee([null,null])},K=()=>{if(G(),M&&Array.isArray(H)){let e=H[0]?sE(x,S,H[0]):null,t=H[1]?sE(x,S,H[1]):null;(H[0]&&H[0]!==e||H[1]&&H[1]!==t)&&ee([e,t])}else if(H){let e=sE(x,S,H);H!==e&&ee(e)}D?.()},oe=()=>{K(),te.close()},se=()=>{ee(M?[null,null]:null)},ce=M?Array.isArray(H)&&!!H[0]:!!H,ue=e=>{ee(e)};return(0,J.jsx)(KD,{formattedValue:W,dropdownOpened:j.disabled?!1:U,dropdownHandlers:te,classNames:N,styles:P,unstyled:u,onClear:se,shouldClear:ce,value:H,size:_,variant:v,dropdownType:y,...z,type:O,__staticSelector:`DateTimePicker`,onDropdownClose:K,withTime:!0,attributes:E,children:(0,J.jsx)(_O,{...R,fullWidth:!1,type:O,value:H,onChange:ee,maxDate:S,minDate:x,size:_,variant:v,locale:s,classNames:N,styles:P,unstyled:u,level:h,defaultLevel:g,defaultDate:C,defaultTimeValue:w,presets:T,allowSingleDateInRange:A,timePickerProps:d,endTimePickerProps:f,submitButtonProps:p,withSeconds:m,valueFormat:a,labelSeparator:k,attributes:E,onSubmit:oe,__stopPropagation:ae,__staticSelector:`DateTimePicker`,__onEnter:oe,__onPresetSelect:ue},ne)})});bO.classes={...vO,...KD.classes,..._O.classes},bO.displayName=`@mantine/dates/DateTimePicker`;function xO({type:e,value:t,defaultValue:n,onChange:r,locale:i,format:a,closeOnChange:o,sortDates:s,labelSeparator:c,valueFormatter:l}){let u=lE(),[d,f]=nt(!1),[p,m]=YD({type:e,value:t,defaultValue:n,onChange:r}),h=ZT({type:e,date:p,locale:u.getLocale(i),format:a,labelSeparator:u.getLabelSeparator(c),formatter:l}),g=t=>{o&&(e==="default"&&f.close(),e===`range`&&t[0]&&t[1]&&f.close()),m(s&&e===`multiple`?[...t].sort((e,t)=>(0,$.default)(e).isAfter((0,$.default)(t))?1:-1):t)};return{_value:p,setValue:g,onClear:()=>g(e===`range`?[null,null]:e===`multiple`?[]:null),shouldClear:e===`range`?!!p[0]:e===`multiple`?p.length>0:p!==null,formattedValue:h,dropdownOpened:d,dropdownHandlers:f}}var SO={type:`default`,size:`sm`,valueFormat:`MMMM D, YYYY`,closeOnChange:!0,sortDates:!0,dropdownType:`popover`},CO=Z(e=>{let t=Y([`Input`,`InputWrapper`,`DatePickerInput`],SO,e),{type:n,value:r,defaultValue:i,onChange:a,valueFormat:o,labelSeparator:s,locale:c,classNames:l,styles:u,unstyled:d,closeOnChange:f,size:p,variant:m,dropdownType:h,sortDates:g,minDate:_,maxDate:v,vars:y,defaultDate:b,valueFormatter:x,presets:S,attributes:C,...w}=t,{resolvedClassNames:T,resolvedStyles:E}=or({classNames:l,styles:u,props:t}),{calendarProps:D,others:O}=tO(w),{_value:k,setValue:A,formattedValue:j,dropdownHandlers:M,dropdownOpened:N,onClear:P,shouldClear:F}=xO({type:n,value:r,defaultValue:i,onChange:a,locale:c,format:o,labelSeparator:s,closeOnChange:f,sortDates:g,valueFormatter:x}),I=Array.isArray(k)?k[0]||b:k||b;return(0,J.jsx)(KD,{formattedValue:j,dropdownOpened:N,dropdownHandlers:M,classNames:T,styles:E,unstyled:d,onClear:P,shouldClear:F,value:k,size:p,variant:m,dropdownType:h,...O,type:n,__staticSelector:`DatePickerInput`,attributes:C,children:(0,J.jsx)(sO,{...D,size:p,variant:m,type:n,value:k,defaultDate:I||oE({maxDate:v,minDate:_}),onChange:A,locale:c,classNames:T,styles:E,unstyled:d,__staticSelector:`DatePickerInput`,__stopPropagation:h===`popover`,minDate:_,maxDate:v,presets:S,attributes:C})})});CO.classes={...KD.classes,...sO.classes},CO.displayName=`@mantine/dates/DatePickerInput`;export{J_ as $,fi as $t,YS as A,et as An,Lp as At,kx as B,K as Bn,Jd as Bt,LC as C,en as Cn,Rm as Ct,EC as D,rt as Dn,_m as Dt,PC as E,st as En,Om as Et,ES as F,Te as Fn,Tf as Ft,jy as G,B as Gn,Fl as Gt,Yb as H,W as Hn,Jl as Ht,vS as I,we as In,Sf as It,qv as J,x as Jn,yl as Jt,Dy as K,P as Kn,Dl as Kt,iS as L,Ce as Ln,vf as Lt,IS as M,Le as Mn,rp as Mt,PS as N,Pe as Nn,Nf as Nt,yC as O,nt as On,am as Ot,AS as P,je as Pn,Af as Pt,lv as Q,c as Qn,Ac as Qt,Ux as R,le as Rn,ef as Rt,NC as S,tn as Sn,qm as St,FC as T,q as Tn,jm as Tt,Ry as U,ee as Un,Ul as Ut,rx as V,ae as Vn,$l as Vt,Py as W,V as Wn,zl as Wt,jv as X,g as Xn,zc as Xt,Nv as Y,v as Yn,ll as Yt,uv as Z,p as Zn,Pc as Zt,sw as _,ln as _n,lh as _t,WE as a,Zr as an,v_ as at,GC as b,on as bn,eh as bt,wT as c,X as cn,Fg as ct,jw as d,nr as dn,vg as dt,ui as en,W_ as et,kw as f,Y as fn,ug as ft,uw as g,En as gn,Gh as gt,_w as h,kn as hn,Yh as ht,sO as i,Z as in,x_ as it,GS as j,qe as jn,Pp as jt,hC as k,tt as kn,qp as kt,Hw as l,or as ln,Pg as lt,yw as m,Bn as mn,Zh as mt,bO as n,Q as nn,P_ as nt,YT as o,Yr as on,s_ as ot,ww as p,er as pn,og as pt,ly as q,k as qn,xl as qt,fO as r,ti as rn,E_ as rt,zT as s,Cr as sn,Yg as st,CO as t,li as tn,L_ as tt,Aw as u,ar as un,Ag as ut,ow as v,cn as vn,ah as vt,MC as w,Lt as wn,Fm as wt,IC as x,rn as xn,Zm as xt,tw as y,sn as yn,nh as yt,Px as z,se as zn,Zd as zt};