"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2189],{cChf:function(e,t,r){r.d(t,{c:function(){return useForm}});var n=r("q1tI"),o=r("aUsF"),i=r.n(o),a=r("x9nq"),u=r("7qP7"),l=r("ttMY");function shouldValidateOnChange(e,t){return!!t&&("boolean"==typeof t?t:!!Array.isArray(t)&&t.includes(e.replace(/[.][0-9]/g,`.${l.n}`)))}var s=r("fRT1"),c=r("2Y3n");function getValidationResults(e){let t=(0,a.c)(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function validateValues(e,t){return"function"==typeof e?getValidationResults(e(t)):getValidationResults(function validateRulesRecord(e,t,r="",n={}){return"object"!=typeof e||null===e?n:Object.keys(e).reduce((n,o)=>{let i=e[o],a=`${""===r?"":`${r}.`}${o}`,u=(0,c.D)(a,t),l=!1;return"function"==typeof i&&(n[a]=i(u,t,a)),"object"==typeof i&&Array.isArray(u)&&(l=!0,u.forEach((e,r)=>validateRulesRecord(i,t,`${a}.${r}`,n))),"object"!=typeof i||"object"!=typeof u||null===u||l||validateRulesRecord(i,t,a,n),n},n)}(e,t))}function validateFieldValue(e,t,r){if("string"!=typeof e)return{hasError:!1,error:null};let n=validateValues(t,r),o=Object.keys(n.errors).find(t=>e.split(".").every((e,r)=>e===t.split(".")[r]));return{hasError:!!o,error:o?n.errors[o]:null}}var f=r("FkjK"),d=r("kGoA"),p=r("y88A"),m=r("8oHd"),b=r("7MVl"),h=r("tgqo"),g=r("cJT9"),y=Object.defineProperty,v=Object.defineProperties,S=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&__defNormalProp(e,r,t[r]);if(E)for(var r of E(t))w.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>v(e,S(t));function useForm({initialValues:e={},initialErrors:t={},initialDirty:r={},initialTouched:o={},clearInputErrorOnChange:l=!0,validateInputOnChange:y=!1,validateInputOnBlur:v=!1,transformValues:S=e=>e,validate:E}={}){let[_,w]=(0,n.useState)(o),[k,P]=(0,n.useState)(r),[O,x]=(0,n.useState)(e),[C,N]=(0,n.useState)((0,a.c)(t)),j=(0,n.useRef)(e),setValuesSnapshot=e=>{j.current=e},R=(0,n.useCallback)(()=>w({}),[]),T=(0,n.useCallback)(e=>N(t=>(0,a.c)("function"==typeof e?e(t):e)),[]),V=(0,n.useCallback)(()=>N({}),[]),I=(0,n.useCallback)(()=>{x(e),V(),setValuesSnapshot(e),P({}),R()},[]),M=(0,n.useCallback)((e,t)=>T(r=>__spreadProps(__spreadValues({},r),{[e]:t})),[]),A=(0,n.useCallback)(e=>T(t=>{if("string"!=typeof e)return t;let r=__spreadValues({},t);return delete r[e],r}),[]),D=(0,n.useCallback)(e=>P(t=>{if("string"!=typeof e)return t;let r=(0,u.e)(e,t);return delete r[e],r}),[]),z=(0,n.useCallback)((e,t)=>{let r=shouldValidateOnChange(e,y);D(e),w(t=>__spreadProps(__spreadValues({},t),{[e]:!0})),x(n=>{let o=(0,s.R)(e,t,n);if(r){let t=validateFieldValue(e,E,o);t.hasError?M(e,t.error):A(e)}return o}),!r&&l&&M(e,null)},[]),$=(0,n.useCallback)(e=>{x(t=>{let r="function"==typeof e?e(t):e;return __spreadValues(__spreadValues({},t),r)}),l&&V()},[]),F=(0,n.useCallback)((e,t)=>{D(e),x(r=>(0,f.y)(e,t,r)),N(r=>(0,d.v)(e,t,r))},[]),q=(0,n.useCallback)((e,t)=>{D(e),x(r=>(0,p.j)(e,t,r)),N(r=>(0,m.R)(e,t,r,-1))},[]),L=(0,n.useCallback)((e,t,r)=>{D(e),x(n=>(0,b.f)(e,t,r,n)),N(t=>(0,m.R)(e,r,t,1))},[]),H=(0,n.useCallback)(()=>{let e=validateValues(E,O);return N(e.errors),e},[O,E]),G=(0,n.useCallback)(e=>{let t=validateFieldValue(e,E,O);return t.hasError?M(e,t.error):A(e),t},[O,E]),W=(0,n.useCallback)(e=>{e.preventDefault(),I()},[]),Y=(0,n.useCallback)(e=>(0,h.l)(_,e),[_]),B=(0,n.useCallback)(e=>e?!validateFieldValue(e,E,O).hasError:!validateValues(E,O).hasErrors,[O,E]);return{values:O,errors:C,setValues:$,setErrors:T,setFieldValue:z,setFieldError:M,clearFieldError:A,clearErrors:V,reset:I,validate:H,validateField:G,reorderListItem:F,removeListItem:q,insertListItem:L,getInputProps:(e,{type:t="input",withError:r=!0,withFocus:n=!0}={})=>{let o=(0,g.E)(t=>z(e,t)),i={onChange:o};return r&&(i.error=C[e]),"checkbox"===t?i.checked=(0,c.D)(e,O):i.value=(0,c.D)(e,O),n&&(i.onFocus=()=>w(t=>__spreadProps(__spreadValues({},t),{[e]:!0})),i.onBlur=()=>{if(shouldValidateOnChange(e,v)){let t=validateFieldValue(e,E,O);t.hasError?M(e,t.error):A(e)}}),i},onSubmit:(e,t)=>r=>{null==r||r.preventDefault();let n=H();n.hasErrors?null==t||t(n.errors,O,r):null==e||e(S(O),r)},onReset:W,isDirty:e=>{if(e){let t=(0,c.D)(e,k);if("boolean"==typeof t)return t;let r=(0,c.D)(e,O),n=(0,c.D)(e,j.current);return!i()(r,n)}let t=Object.keys(k).length>0;return t?(0,h.l)(k):!i()(O,j.current)},isTouched:Y,setTouched:w,setDirty:P,resetTouched:R,resetDirty:e=>{let t=e?__spreadValues(__spreadValues({},O),e):O;setValuesSnapshot(t),P({})},isValid:B,getTransformedValues:e=>S(e||O)}}},ZFu2:function(e,t,r){r.d(t,{U:function(){return isNotEmpty}});function isNotEmpty(e){let t=e||!0;return e=>"string"==typeof e?e.trim().length>0?null:t:Array.isArray(e)?e.length>0?null:t:null==e||!1===e?t:null}},ChHM:function(e,t,r){r.d(t,{O:function(){return useClickOutside}});var n=r("q1tI");let o=["mousedown","touchstart"];function useClickOutside(e,t,r){let i=(0,n.useRef)();return(0,n.useEffect)(()=>{let listener=t=>{let{target:n}=null!=t?t:{};if(Array.isArray(r)){let o=(null==n?void 0:n.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(n)&&"HTML"!==n.tagName,i=r.every(e=>!!e&&!t.composedPath().includes(e));i&&!o&&e()}else i.current&&!i.current.contains(n)&&e()};return(t||o).forEach(e=>document.addEventListener(e,listener)),()=>{(t||o).forEach(e=>document.removeEventListener(e,listener))}},[i,e,r]),i}},wKBT:function(e,t,r){r.d(t,{V:function(){return useClipboard}});var n=r("q1tI");function useClipboard({timeout:e=2e3}={}){let[t,r]=(0,n.useState)(null),[o,i]=(0,n.useState)(!1),[a,u]=(0,n.useState)(null),handleCopyResult=t=>{clearTimeout(a),u(setTimeout(()=>i(!1),e)),i(t)};return{copy:e=>{"clipboard"in navigator?navigator.clipboard.writeText(e).then(()=>handleCopyResult(!0)).catch(e=>r(e)):r(Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{i(!1),r(null),clearTimeout(a)},error:t,copied:o}}},jaE6:function(e,t,r){r.d(t,{C:function(){return useCounter}});var n=r("q1tI"),o=r("EXl/"),i=Object.defineProperty,a=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&__defNormalProp(e,r,t[r]);if(a)for(var r of a(t))l.call(t,r)&&__defNormalProp(e,r,t[r]);return e};let s={min:-1/0,max:1/0};function useCounter(e=0,t){let{min:r,max:i}=__spreadValues(__spreadValues({},s),t),[a,u]=(0,n.useState)((0,o.u)(e,r,i));return[a,{increment:()=>u(e=>(0,o.u)(e+1,r,i)),decrement:()=>u(e=>(0,o.u)(e-1,r,i)),set:e=>u((0,o.u)(e,r,i)),reset:()=>u((0,o.u)(e,r,i))}]}},"GjY/":function(e,t,r){r.d(t,{c:function(){return useDebouncedValue}});var n=r("q1tI");function useDebouncedValue(e,t,r={leading:!1}){let[o,i]=(0,n.useState)(e),a=(0,n.useRef)(!1),u=(0,n.useRef)(null),l=(0,n.useRef)(!1),cancel=()=>window.clearTimeout(u.current);return(0,n.useEffect)(()=>{a.current&&(!l.current&&r.leading?(l.current=!0,i(e)):(cancel(),u.current=window.setTimeout(()=>{l.current=!1,i(e)},t)))},[e,r.leading,t]),(0,n.useEffect)(()=>(a.current=!0,cancel),[]),[o,cancel]}},"4lv7":function(e,t,r){r.d(t,{l:function(){return useDidUpdate}});var n=r("q1tI");function useDidUpdate(e,t){let r=(0,n.useRef)(!1);(0,n.useEffect)(()=>()=>{r.current=!1},[]),(0,n.useEffect)(()=>{if(r.current)return e();r.current=!0},t)}},Iblh:function(e,t,r){r.d(t,{q:function(){return useDisclosure}});var n=r("q1tI");function useDisclosure(e=!1,t){let{onOpen:r,onClose:o}=t||{},[i,a]=(0,n.useState)(e),u=(0,n.useCallback)(()=>{a(e=>e||(null==r||r(),!0))},[r]),l=(0,n.useCallback)(()=>{a(e=>e?(null==o||o(),!1):e)},[o]),s=(0,n.useCallback)(()=>{i?l():u()},[l,u,i]);return[i,{open:u,close:l,toggle:s}]}},CtSg:function(e,t,r){r.d(t,{u:function(){return useFocusReturn}});var n=r("q1tI"),o=r("4lv7");function useFocusReturn({opened:e,shouldReturnFocus:t=!0}){let r=(0,n.useRef)(),returnFocus=()=>{var e;r.current&&"focus"in r.current&&"function"==typeof r.current.focus&&(null==(e=r.current)||e.focus({preventScroll:!0}))};return(0,o.l)(()=>{let n=-1,clearFocusTimeout=e=>{"Tab"===e.key&&window.clearTimeout(n)};return document.addEventListener("keydown",clearFocusTimeout),e?r.current=document.activeElement:t&&(n=window.setTimeout(returnFocus,10)),()=>{window.clearTimeout(n),document.removeEventListener("keydown",clearFocusTimeout)}},[e,t]),returnFocus}},"0dcm":function(e,t,r){r.d(t,{P:function(){return useFocusTrap}});var n=r("q1tI");let o=/input|select|textarea|button|object/,i="a, input, select, textarea, button, object, [tabindex]";function getElementTabIndex(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function focusable(e){let t=e.nodeName.toLowerCase(),r=!Number.isNaN(getElementTabIndex(e)),n=o.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r;return n&&function(e){let t=e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type");if(t)return!1;let r=e;for(;r&&r!==document.body&&11!==r.nodeType;){if("none"===r.style.display)return!1;r=r.parentNode}return!0}(e)}function tabbable(e){let t=getElementTabIndex(e),r=Number.isNaN(t);return(r||t>=0)&&focusable(e)}var a=r("GTxp");function useFocusTrap(e=!0){let t=(0,n.useRef)(),r=(0,n.useRef)(null),focusNode=e=>{let t=e.querySelector("[data-autofocus]");if(!t){let r=Array.from(e.querySelectorAll(i));!(t=r.find(tabbable)||r.find(focusable)||null)&&focusable(e)&&(t=e)}t&&t.focus({preventScroll:!0})},o=(0,n.useCallback)(n=>{if(e){if(null===n){r.current&&(r.current(),r.current=null);return}r.current=function(e,t="body > :not(script)"){let r=(0,a.k)(),n=Array.from(document.querySelectorAll(t)).map(t=>{var n;if((null==(n=null==t?void 0:t.shadowRoot)?void 0:n.contains(e))||t.contains(e))return;let o=t.getAttribute("aria-hidden"),i=t.getAttribute("data-hidden"),a=t.getAttribute("data-focus-id");return t.setAttribute("data-focus-id",r),null===o||"false"===o?t.setAttribute("aria-hidden","true"):i||a||t.setAttribute("data-hidden",o),{node:t,ariaHidden:i||null}});return()=>{n.forEach(e=>{e&&r===e.node.getAttribute("data-focus-id")&&(null===e.ariaHidden?e.node.removeAttribute("aria-hidden"):e.node.setAttribute("aria-hidden",e.ariaHidden),e.node.removeAttribute("data-focus-id"),e.node.removeAttribute("data-hidden"))})}}(n),t.current!==n&&(n?(setTimeout(()=>{n.getRootNode()&&focusNode(n)}),t.current=n):t.current=null)}},[e]);return(0,n.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>focusNode(t.current));let handleKeyDown=e=>{"Tab"===e.key&&t.current&&function(e,t){let r=Array.from(e.querySelectorAll(i)).filter(tabbable);if(!r.length){t.preventDefault();return}let n=r[t.shiftKey?0:r.length-1],o=e.getRootNode(),a=n===o.activeElement||e===o.activeElement;if(!a)return;t.preventDefault();let u=r[t.shiftKey?r.length-1:0];u&&u.focus()}(t.current,e)};return document.addEventListener("keydown",handleKeyDown),()=>{document.removeEventListener("keydown",handleKeyDown),r.current&&r.current()}},[e]),o}},TBEs:function(e,t,r){r.d(t,{M:function(){return useId}});var n=r("q1tI"),o=r("GGvd");let i=n["useId".toString()]||(()=>void 0);var a=r("GTxp");function useId(e){let t=function(){let e=i();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[r,u]=(0,n.useState)(t);return((0,o.Y)(()=>{u((0,a.k)())},[]),"string"==typeof e)?e:"undefined"==typeof window?t:r}},"3/P/":function(e,t,r){r.d(t,{c:function(){return useIdle}});var n=r("q1tI"),o=Object.defineProperty,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))a.call(t,r)&&__defNormalProp(e,r,t[r]);if(i)for(var r of i(t))u.call(t,r)&&__defNormalProp(e,r,t[r]);return e};let l={events:["keypress","mousemove","touchmove","click","scroll"],initialState:!0};function useIdle(e,t){let{events:r,initialState:o}=__spreadValues(__spreadValues({},l),t),[i,a]=(0,n.useState)(o),u=(0,n.useRef)();return(0,n.useEffect)(()=>{let handleEvents=()=>{a(!1),u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{a(!0)},e)};return r.forEach(e=>document.addEventListener(e,handleEvents)),()=>{r.forEach(e=>document.removeEventListener(e,handleEvents))}},[e]),i}},"4wSK":function(e,t,r){r.d(t,{s:function(){return useIntersection}});var n=r("q1tI");function useIntersection(e){let[t,r]=(0,n.useState)(null),o=(0,n.useRef)(),i=(0,n.useCallback)(t=>{if(o.current&&(o.current.disconnect(),o.current=null),null===t){r(null);return}o.current=new IntersectionObserver(([e])=>{r(e)},e),o.current.observe(t)},[null==e?void 0:e.rootMargin,null==e?void 0:e.root,null==e?void 0:e.threshold]);return{ref:i,entry:t}}},nCpW:function(e,t,r){r.d(t,{Y:function(){return useInterval}});var n=r("q1tI");function useInterval(e,t){let[r,o]=(0,n.useState)(!1),i=(0,n.useRef)(),a=(0,n.useRef)();(0,n.useEffect)(()=>{a.current=e},[e]);let start=()=>{o(e=>(e||i.current||(i.current=window.setInterval(a.current,t)),!0))},stop=()=>{o(!1),window.clearInterval(i.current),i.current=void 0};return{start,stop,toggle:()=>{r?stop():start()},active:r}}},GGvd:function(e,t,r){r.d(t,{Y:function(){return o}});var n=r("q1tI");let o="undefined"!=typeof document?n.useLayoutEffect:n.useEffect},"0TCZ":function(e,t,r){r.d(t,{n:function(){return useListState}});var n=r("q1tI"),o=Object.defineProperty,i=Object.defineProperties,a=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&__defNormalProp(e,r,t[r]);if(u)for(var r of u(t))s.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>i(e,a(t));function useListState(e=[]){let[t,r]=(0,n.useState)(e);return[t,{setState:r,append:(...e)=>r(t=>[...t,...e]),prepend:(...e)=>r(t=>[...e,...t]),insert:(e,...t)=>r(r=>[...r.slice(0,e),...t,...r.slice(e)]),pop:()=>r(e=>{let t=[...e];return t.pop(),t}),shift:()=>r(e=>{let t=[...e];return t.shift(),t}),apply:e=>r(t=>t.map((t,r)=>e(t,r))),applyWhere:(e,t)=>r(r=>r.map((r,n)=>e(r,n)?t(r,n):r)),remove:(...e)=>r(t=>t.filter((t,r)=>!e.includes(r))),reorder:({from:e,to:t})=>r(r=>{let n=[...r],o=r[e];return n.splice(e,1),n.splice(t,0,o),n}),setItem:(e,t)=>r(r=>{let n=[...r];return n[e]=t,n}),setItemProp:(e,t,n)=>r(r=>{let o=[...r];return o[e]=__spreadProps(__spreadValues({},o[e]),{[t]:n}),o}),filter:e=>{r(t=>t.filter(e))}}]}},T2a8:function(e,t,r){r.d(t,{a:function(){return useMediaQuery}});var n=r("q1tI");function useMediaQuery(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[o,i]=(0,n.useState)(r?t:"boolean"==typeof t?t:!!("undefined"!=typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches),a=(0,n.useRef)();return(0,n.useEffect)(()=>{if("matchMedia"in window)return a.current=window.matchMedia(e),i(a.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(r){return e.addListener(t),()=>e.removeListener(t)}}(a.current,e=>i(e.matches))},[e]),o}},QZqm:function(e,t,r){r.d(t,{Y:function(){return useMergedRef},l:function(){return mergeRefs}});var n=r("q1tI"),o=r("TB3q");function mergeRefs(...e){return t=>{e.forEach(e=>(0,o.k)(e,t))}}function useMergedRef(...e){return(0,n.useCallback)(mergeRefs(...e),e)}},eIDr:function(e,t,r){r.d(t,{r:function(){return useMove}});var n=r("q1tI"),o=r("EXl/");function useMove(e,t,r="ltr"){let i=(0,n.useRef)(),a=(0,n.useRef)(!1),u=(0,n.useRef)(!1),l=(0,n.useRef)(0),[s,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{a.current=!0},[]),(0,n.useEffect)(()=>{let onScrub=({x:t,y:n})=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{if(a.current&&i.current){i.current.style.userSelect="none";let a=i.current.getBoundingClientRect();if(a.width&&a.height){let i=(0,o.u)((t-a.left)/a.width,0,1);e({x:"ltr"===r?i:1-i,y:(0,o.u)((n-a.top)/a.height,0,1)})}}})},bindEvents=()=>{document.addEventListener("mousemove",onMouseMove),document.addEventListener("mouseup",stopScrubbing),document.addEventListener("touchmove",onTouchMove),document.addEventListener("touchend",stopScrubbing)},unbindEvents=()=>{document.removeEventListener("mousemove",onMouseMove),document.removeEventListener("mouseup",stopScrubbing),document.removeEventListener("touchmove",onTouchMove),document.removeEventListener("touchend",stopScrubbing)},startScrubbing=()=>{!u.current&&a.current&&(u.current=!0,"function"==typeof(null==t?void 0:t.onScrubStart)&&t.onScrubStart(),c(!0),bindEvents())},stopScrubbing=()=>{u.current&&a.current&&(u.current=!1,c(!1),unbindEvents(),setTimeout(()=>{"function"==typeof(null==t?void 0:t.onScrubEnd)&&t.onScrubEnd()},0))},onMouseDown=e=>{startScrubbing(),e.preventDefault(),onMouseMove(e)},onMouseMove=e=>onScrub({x:e.clientX,y:e.clientY}),onTouchStart=e=>{e.cancelable&&e.preventDefault(),startScrubbing(),onTouchMove(e)},onTouchMove=e=>{e.cancelable&&e.preventDefault(),onScrub({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY})};return i.current.addEventListener("mousedown",onMouseDown),i.current.addEventListener("touchstart",onTouchStart,{passive:!1}),()=>{i.current&&(i.current.removeEventListener("mousedown",onMouseDown),i.current.removeEventListener("touchstart",onTouchStart))}},[r,e]),{ref:i,active:s}}},aoqy:function(e,t,r){r.d(t,{i:function(){return useOs}});var n=r("q1tI"),o=r("GGvd");function getOS(){if("undefined"==typeof window)return"undetermined";let{userAgent:e}=window.navigator;return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)?"macos":/(iPhone)|(iPad)|(iPod)/i.test(e)?"ios":/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)?"windows":/Android/i.test(e)?"android":/Linux/i.test(e)?"linux":"undetermined"}function useOs(e={getValueInEffect:!0}){let[t,r]=(0,n.useState)(e.getValueInEffect?"undetermined":getOS());return(0,o.Y)(()=>{e.getValueInEffect&&r(getOS)},[]),t}},Degs:function(e,t,r){r.d(t,{J:function(){return useReducedMotion}});var n=r("T2a8");function useReducedMotion(e,t){return(0,n.a)("(prefers-reduced-motion: reduce)",e,t)}},xjta:function(e,t,r){r.d(t,{h:function(){return useElementSize},y:function(){return useResizeObserver}});var n=r("q1tI"),o=r("GGvd");let i={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function useResizeObserver(){let e=(0,n.useRef)(0),t=(0,n.useRef)(null),[r,a]=(0,n.useState)(i),u=(0,n.useMemo)(()=>"undefined"!=typeof window?new ResizeObserver(r=>{let n=r[0];n&&(cancelAnimationFrame(e.current),e.current=requestAnimationFrame(()=>{t.current&&a(n.contentRect)}))}):null,[]);return(0,o.Y)(()=>(t.current&&(u.observe(t.current),a(t.current.getBoundingClientRect())),()=>{u.disconnect(),e.current&&cancelAnimationFrame(e.current)}),[t.current]),[t,r]}function useElementSize(){let[e,{width:t,height:r}]=useResizeObserver();return{ref:e,width:t,height:r}}},vKRh:function(e,t,r){r.d(t,{g:function(){return useScrollIntoView}});var n=r("q1tI"),o=r("Degs"),i=r("Y8zf");let easeInOutQuad=e=>e<.5?2*e*e:-1+(4-2*e)*e,getRelativePosition=({axis:e,target:t,parent:r,alignment:n,offset:o,isList:i})=>{if(!t||!r&&"undefined"==typeof document)return 0;let a=!!r,u=r||document.body,l=u.getBoundingClientRect(),s=t.getBoundingClientRect(),getDiff=e=>s[e]-l[e];if("y"===e){let e=getDiff("top");if(0===e)return 0;if("start"===n){let t=e-o,r=t<=s.height*(i?0:1)||!i;return r?t:0}let t=a?l.height:window.innerHeight;if("end"===n){let r=e+o-t+s.height,n=r>=-s.height*(i?0:1)||!i;return n?r:0}return"center"===n?e-t/2+s.height/2:0}if("x"===e){let e=getDiff("left");if(0===e)return 0;if("start"===n){let t=e-o,r=t<=s.width||!i;return r?t:0}let t=a?l.width:window.innerWidth;if("end"===n){let r=e+o-t+s.width,n=r>=-s.width||!i;return n?r:0}if("center"===n)return e-t/2+s.width/2}return 0},getScrollStart=({axis:e,parent:t})=>{if(!t&&"undefined"==typeof document)return 0;let r="y"===e?"scrollTop":"scrollLeft";if(t)return t[r];let{body:n,documentElement:o}=document;return n[r]+o[r]},setScrollParam=({axis:e,parent:t,distance:r})=>{if(!t&&"undefined"==typeof document)return;let n="y"===e?"scrollTop":"scrollLeft";if(t)t[n]=r;else{let{body:e,documentElement:t}=document;e[n]=r,t[n]=r}};function useScrollIntoView({duration:e=1250,axis:t="y",onScrollFinish:r,easing:a=easeInOutQuad,offset:u=0,cancelable:l=!0,isList:s=!1}={}){let c=(0,n.useRef)(0),f=(0,n.useRef)(0),d=(0,n.useRef)(!1),p=(0,n.useRef)(null),m=(0,n.useRef)(null),b=(0,o.J)(),cancel=()=>{c.current&&cancelAnimationFrame(c.current)},h=(0,n.useCallback)(({alignment:n="start"}={})=>{var o;d.current=!1,c.current&&cancel();let i=null!=(o=getScrollStart({parent:p.current,axis:t}))?o:0,l=getRelativePosition({parent:p.current,target:m.current,axis:t,alignment:n,offset:u,isList:s})-(p.current?0:i);!function animateScroll(){0===f.current&&(f.current=performance.now());let n=performance.now(),o=n-f.current,u=b||0===e?1:o/e,s=i+l*a(u);setScrollParam({parent:p.current,axis:t,distance:s}),!d.current&&u<1?c.current=requestAnimationFrame(animateScroll):("function"==typeof r&&r(),f.current=0,c.current=0,cancel())}()},[t,e,a,s,u,r,b]),handleStop=()=>{l&&(d.current=!0)};return(0,i.s)("wheel",handleStop,{passive:!0}),(0,i.s)("touchmove",handleStop,{passive:!0}),(0,n.useEffect)(()=>cancel,[]),{scrollableRef:p,targetRef:m,scrollIntoView:h,cancel}}},wwAj:function(e,t,r){r.d(t,{K:function(){return useTimeout}});var n=r("q1tI");function useTimeout(e,t,r={autoInvoke:!1}){let o=(0,n.useRef)(null),i=(0,n.useRef)(null),a=(0,n.useCallback)((...e)=>{i.current||(i.current=window.setTimeout(()=>{o.current(e),i.current=null},t))},[t]),u=(0,n.useCallback)(()=>{i.current&&(window.clearTimeout(i.current),i.current=null)},[]);return(0,n.useEffect)(()=>{o.current=e},[e]),(0,n.useEffect)(()=>(r.autoInvoke&&a(),u),[u,t,r.autoInvoke,a]),{start:a,clear:u}}},"1z9F":function(e,t,r){r.d(t,{C:function(){return useUncontrolled}});var n=r("q1tI");function useUncontrolled({value:e,defaultValue:t,finalValue:r,onChange:o=()=>{}}){let[i,a]=(0,n.useState)(void 0!==t?t:r);return void 0!==e?[e,o,!0]:[i,e=>{a(e),null==o||o(e)},!1]}},jD9D:function(e,t,r){r.d(t,{n:function(){return useViewportSize}});var n=r("q1tI"),o=r("Y8zf");let i={passive:!0};function useViewportSize(){let[e,t]=(0,n.useState)({width:0,height:0}),r=(0,n.useCallback)(()=>{t({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return(0,o.s)("resize",r,i),(0,o.s)("orientationchange",r,i),(0,n.useEffect)(r,[]),e}},Y8zf:function(e,t,r){r.d(t,{s:function(){return useWindowEvent}});var n=r("q1tI");function useWindowEvent(e,t,r){(0,n.useEffect)(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}},"0EDw":function(e,t,r){r.d(t,{b:function(){return useWindowScroll}});var n=r("q1tI"),o=r("Y8zf");function getScrollPosition(){return"undefined"!=typeof window?{x:window.pageXOffset,y:window.pageYOffset}:{x:0,y:0}}function scrollTo({x:e,y:t}){if("undefined"!=typeof window){let r={behavior:"smooth"};"number"==typeof e&&(r.left=e),"number"==typeof t&&(r.top=t),window.scrollTo(r)}}function useWindowScroll(){let[e,t]=(0,n.useState)({x:0,y:0});return(0,o.s)("scroll",()=>t(getScrollPosition())),(0,o.s)("resize",()=>t(getScrollPosition())),(0,n.useEffect)(()=>{t(getScrollPosition())},[]),[e,scrollTo]}},TB3q:function(e,t,r){r.d(t,{k:function(){return assignRef}});function assignRef(e,t){"function"==typeof e?e(t):"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}},"EXl/":function(e,t,r){r.d(t,{u:function(){return clamp}});function clamp(e,t,r){return Math.min(Math.max(e,t),r)}},GTxp:function(e,t,r){r.d(t,{k:function(){return randomId}});function randomId(){return`mantine-${Math.random().toString(36).slice(2,11)}`}},INKa:function(e,t,r){r.d(t,{T:function(){return Notifications}});var n=r("q1tI"),o=r("Nlia"),i=r("MbkU"),a=r("i8i4"),u={disabled:!1},l=n.createContext(null),s="unmounted",c="exited",f="entering",d="entered",p="exiting",m=function(e){function Transition(t,r){n=e.call(this,t,r)||this;var n,o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=c,n.appearStatus=f):o=d:o=t.unmountOnExit||t.mountOnEnter?s:c,n.state={status:o},n.nextCallback=null,n}(0,i.Z)(Transition,e),Transition.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:c}:null};var t=Transition.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==d&&(t=f):(r===f||r===d)&&(t=p)}this.updateStatus(!1,t)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},t.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===f?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===c&&this.setState({status:s})},t.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[a.findDOMNode(this),n],i=o[0],l=o[1],s=this.getTimeouts(),c=n?s.appear:s.enter;if(!e&&!r||u.disabled){this.safeSetState({status:d},function(){t.props.onEntered(i)});return}this.props.onEnter(i,l),this.safeSetState({status:f},function(){t.props.onEntering(i,l),t.onTransitionEnd(c,function(){t.safeSetState({status:d},function(){t.props.onEntered(i,l)})})})},t.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:a.findDOMNode(this);if(!t||u.disabled){this.safeSetState({status:c},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:p},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(n)})})})},t.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},t.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},t.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],u=o[1];this.props.addEndListener(i,u)}null!=e&&setTimeout(this.nextCallback,e)},t.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n.createElement(l.Provider,{value:null},"function"==typeof r?r(e,i):n.cloneElement(n.Children.only(r),i))},Transition}(n.Component);function noop(){}m.contextType=l,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},m.UNMOUNTED=s,m.EXITED=c,m.ENTERING=f,m.ENTERED=d,m.EXITING=p;var b=r("+9dH"),h=r("Lr5L");function getChildMapping(e,t){var r=Object.create(null);return e&&n.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,n.isValidElement)(e)?t(e):e}),r}function getProp(e,t,r){return null!=r[t]?r[t]:e.props[t]}var g=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},y=function(e){function TransitionGroup(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind((0,h.Z)(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}(0,i.Z)(TransitionGroup,e);var t=TransitionGroup.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},TransitionGroup.getDerivedStateFromProps=function(e,t){var r,o,i=t.children,a=t.handleExited;return{children:t.firstRender?getChildMapping(e.children,function(t){return(0,n.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:getProp(t,"appear",e),enter:getProp(t,"enter",e),exit:getProp(t,"exit",e)})}):(Object.keys(o=function(e,t){function getValueForKey(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var r,n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a={};for(var u in t){if(n[u])for(r=0;r(e+1)%1e6;var w=r("Degs"),k=r("4lv7"),P=r("0Woy"),get_position_styles=function([e,t],r){let n={};return"top"===e&&(n.top=r),"bottom"===e&&(n.bottom=r),"left"===t&&(n.left=r),"right"===t&&(n.right=r),"center"===t&&(n.left="50%",n.transform="translateX(-50%)"),n},O=Object.defineProperty,x=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))C.call(t,r)&&__defNormalProp(e,r,t[r]);if(x)for(var r of x(t))N.call(t,r)&&__defNormalProp(e,r,t[r]);return e};let j={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},R={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};var get_notification_state_styles=function({state:e,maxHeight:t,positioning:r,transitionDuration:n}){let[o,i]=r,a="center"===i?`${o}-center`:i,u={opacity:0,maxHeight:t,transform:j[a],transitionDuration:`${n}ms, ${n}ms, ${n}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:R[a]},s={opacity:0,maxHeight:0,transform:j[a]};return __spreadValues(__spreadValues({},u),{entering:l,entered:l,exiting:s,exited:s}[e])},T=r("t/ng"),V=Object.defineProperty,I=Object.defineProperties,M=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,NotificationContainer_defNormalProp=(e,t,r)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NotificationContainer_spreadValues=(e,t)=>{for(var r in t||(t={}))D.call(t,r)&&NotificationContainer_defNormalProp(e,r,t[r]);if(A)for(var r of A(t))z.call(t,r)&&NotificationContainer_defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>I(e,M(t)),__objRest=(e,t)=>{var r={};for(var n in e)D.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&A)for(var n of A(e))0>t.indexOf(n)&&z.call(e,n)&&(r[n]=e[n]);return r};function NotificationContainer(e){var{notification:t,autoClose:r,onHide:o,innerRef:i}=e,a=__objRest(e,["notification","autoClose","onHide","innerRef"]);let{autoClose:u,message:l}=t,s=__objRest(t,["autoClose","message"]),c="number"==typeof u?u:!1!==u&&!1!==r&&r,f=(0,n.useRef)(),handleHide=()=>{o(t.id),window.clearTimeout(f.current)},cancelDelayedHide=()=>{clearTimeout(f.current)},handleDelayedHide=()=>{"number"==typeof c&&(f.current=window.setTimeout(handleHide,c))};return(0,n.useEffect)(()=>{"function"==typeof t.onOpen&&t.onOpen(t)},[]),(0,n.useEffect)(()=>(handleDelayedHide(),cancelDelayedHide),[r,t.autoClose]),n.createElement(T.P,__spreadProps(NotificationContainer_spreadValues(NotificationContainer_spreadValues({},s),a),{onClose:handleHide,onMouseEnter:cancelDelayedHide,onMouseLeave:handleDelayedHide,ref:i}),l)}NotificationContainer.displayName="@mantine/notifications/NotificationContainer";var $=(0,r("/npG").k)((e,{zIndex:t})=>({notifications:{width:`calc(100% - ${e.spacing.md} * 2)`,boxSizing:"border-box",position:"fixed",zIndex:t},notification:{"&:not(:first-of-type)":{marginTop:e.spacing.sm}}})),F=r("GTxp"),q=Object.defineProperty,L=Object.defineProperties,H=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,use_notifications_state_defNormalProp=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,use_notifications_state_spreadValues=(e,t)=>{for(var r in t||(t={}))W.call(t,r)&&use_notifications_state_defNormalProp(e,r,t[r]);if(G)for(var r of G(t))Y.call(t,r)&&use_notifications_state_defNormalProp(e,r,t[r]);return e},use_notifications_state_spreadProps=(e,t)=>L(e,H(t)),use_notifications_state=function({limit:e}){let{state:t,queue:r,update:o,cleanQueue:i}=function({initialValues:e=[],limit:t}){let[{state:r,queue:o},i]=(0,n.useState)({state:e.slice(0,t),queue:e.slice(t)});return{state:r,queue:o,add:(...e)=>i(r=>{let n=[...r.state,...r.queue,...e];return{state:n.slice(0,t),queue:n.slice(t)}}),update:e=>i(r=>{let n=e([...r.state,...r.queue]);return{state:n.slice(0,t),queue:n.slice(t)}}),cleanQueue:()=>i(e=>({state:e.state,queue:[]}))}}({initialValues:[],limit:e});return{notifications:t,queue:r,showNotification:e=>{let t=e.id||(0,F.k)();return o(r=>e.id&&r.some(t=>t.id===e.id)?r:[...r,use_notifications_state_spreadProps(use_notifications_state_spreadValues({},e),{id:t})]),t},updateNotification:e=>o(t=>{let r=t.findIndex(t=>t.id===e.id);if(-1===r)return t;let n=[...t];return n[r]=e,n}),hideNotification:e=>o(t=>t.filter(t=>t.id!==e||("function"==typeof t.onClose&&t.onClose(t),!1))),cleanQueue:i,clean:()=>o(()=>[])}},B=Object.defineProperty,K=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,Notifications_defNormalProp=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Notifications_spreadValues=(e,t)=>{for(var r in t||(t={}))U.call(t,r)&&Notifications_defNormalProp(e,r,t[r]);if(K)for(var r of K(t))X.call(t,r)&&Notifications_defNormalProp(e,r,t[r]);return e},Notifications_objRest=(e,t)=>{var r={};for(var n in e)U.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&K)for(var n of K(e))0>t.indexOf(n)&&X.call(e,n)&&(r[n]=e[n]);return r};let Z=["top-left","top-right","top-center","bottom-left","bottom-right","bottom-center"],Notifications=e=>{var{className:t,position:r="bottom-right",autoClose:o=4e3,transitionDuration:i=250,containerWidth:a=(0,v.h)(440),notificationMaxHeight:u=(0,v.h)(200),limit:l=5,zIndex:s=(0,S.w)("overlay"),style:c,children:f,target:d}=e,p=Notifications_objRest(e,["className","position","autoClose","transitionDuration","containerWidth","notificationMaxHeight","limit","zIndex","style","children","target"]);let b=function(){let[,e]=(0,n.useReducer)(reducer,0);return e}(),h=(0,n.useRef)({}),g=(0,n.useRef)(0),{notifications:O,showNotification:x,updateNotification:C,hideNotification:N,clean:j,cleanQueue:R}=use_notifications_state({limit:l}),{classes:T,cx:V,theme:I}=$({zIndex:s}),M=(0,w.J)(),A=!!I.respectReducedMotion&&M,D=A?1:i,z=(Z.includes(r)?r:"bottom-right").split("-");(0,k.l)(()=>{O.length>g.current&&setTimeout(()=>b(),0),g.current=O.length},[O]),(0,P.Gy)({show:x,hide:N,update:C,clean:j,cleanQueue:R});let F=O.map(e=>n.createElement(m,{key:e.id,timeout:D,onEnter:()=>h.current[e.id].offsetHeight,nodeRef:{current:h.current[e.id]}},t=>n.createElement(NotificationContainer,{innerRef:t=>{h.current[e.id]=t},notification:e,onHide:N,className:T.notification,autoClose:o,sx:[Notifications_spreadValues({},get_notification_state_styles({state:t,positioning:z,transitionDuration:D,maxHeight:u})),...Array.isArray(e.sx)?e.sx:[e.sx]]})));return n.createElement(E.h,{target:d},n.createElement(_.x,Notifications_spreadValues({className:V(T.notifications,t),style:c,sx:Notifications_spreadValues({maxWidth:a},get_position_styles(z,I.spacing.md))},p),n.createElement(y,null,F)))};Notifications.displayName="@mantine/notifications/Notifications",Notifications.show=P.N9.show,Notifications.hide=P.N9.hide,Notifications.update=P.N9.update,Notifications.clean=P.N9.clean,Notifications.cleanQueue=P.N9.cleanQueue},"0Woy":function(e,t,r){r.d(t,{N9:function(){return p},Gy:function(){return a}});var n,o=r("q1tI");let i="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,[a,u]=(n="mantine-notifications",[function(e){let t=Object.keys(e).reduce((t,r)=>(t[`${n}:${r}`]=t=>e[r](t.detail),t),{});i(()=>(Object.keys(t).forEach(e=>{window.removeEventListener(e,t[e]),window.addEventListener(e,t[e])}),()=>Object.keys(t).forEach(e=>{window.removeEventListener(e,t[e])})),[t])},function(e){return(...t)=>{var r,o;return r=`${n}:${String(e)}`,o=t[0],void window.dispatchEvent(new CustomEvent(r,{detail:o}))}}]),l=u("show"),s=u("hide"),c=u("clean"),f=u("cleanQueue"),d=u("update"),p={show:l,hide:s,clean:c,cleanQueue:f,update:d}},"8vDj":function(e,t,r){r.d(t,{Me:function(){return MantineProvider},N4:function(){return useComponentDefaultProps},T1:function(){return useMantineEmotionCache},O2:function(){return useMantineProviderStyles},rZ:function(){return useMantineTheme}});var n=r("q1tI"),o=r("q5MD"),i=r("AeFk"),a=r("Iv/n"),u=Object.defineProperty,l=Object.defineProperties,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))f.call(t,r)&&__defNormalProp(e,r,t[r]);if(c)for(var r of c(t))d.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>l(e,s(t));function GlobalStyles({theme:e}){return n.createElement(i.xB,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:"dark"===e.colorScheme?"dark":"light"},body:__spreadProps(__spreadValues({},e.fn.fontStyles()),{backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}var p=r("mYVa");function assignSizeVariables(e,t,r,n=p.h){Object.keys(t).forEach(o=>{e[`--mantine-${r}-${o}`]=n(t[o])})}function MantineCssVariables({theme:e}){let t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--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}`};assignSizeVariables(t,e.shadows,"shadow"),assignSizeVariables(t,e.fontSizes,"font-size"),assignSizeVariables(t,e.radius,"radius"),assignSizeVariables(t,e.spacing,"spacing"),assignSizeVariables(t,e.breakpoints,"breakpoints",p.em),Object.keys(e.colors).forEach(r=>{e.colors[r].forEach((e,n)=>{t[`--mantine-color-${r}-${n}`]=e})});let r=e.headings.sizes;return Object.keys(r).forEach(e=>{t[`--mantine-${e}-font-size`]=r[e].fontSize,t[`--mantine-${e}-line-height`]=`${r[e].lineHeight}`}),n.createElement(i.xB,{styles:{":root":t}})}var m=r("5CJR"),b=r("pE5a"),h=Object.defineProperty,g=Object.defineProperties,y=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,merge_theme_defNormalProp=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,merge_theme_spreadValues=(e,t)=>{for(var r in t||(t={}))S.call(t,r)&&merge_theme_defNormalProp(e,r,t[r]);if(v)for(var r of v(t))E.call(t,r)&&merge_theme_defNormalProp(e,r,t[r]);return e},merge_theme_spreadProps=(e,t)=>g(e,y(t)),_=r("X9sC");let w={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:`${(0,p.h)(1)} dotted ButtonText`},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"}};function NormalizeCSS(){return n.createElement(i.xB,{styles:w})}var k=Object.defineProperty,P=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,MantineProvider_defNormalProp=(e,t,r)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,MantineProvider_spreadValues=(e,t)=>{for(var r in t||(t={}))O.call(t,r)&&MantineProvider_defNormalProp(e,r,t[r]);if(P)for(var r of P(t))x.call(t,r)&&MantineProvider_defNormalProp(e,r,t[r]);return e};let C=(0,n.createContext)({theme:a.t0});function useMantineTheme(){var e;return(null==(e=(0,n.useContext)(C))?void 0:e.theme)||a.t0}function useMantineProviderStyles(e){let t=useMantineTheme(),getStyles=e=>{var r,n,o,i;return{styles:(null==(r=t.components[e])?void 0:r.styles)||{},classNames:(null==(n=t.components[e])?void 0:n.classNames)||{},variants:null==(o=t.components[e])?void 0:o.variants,sizes:null==(i=t.components[e])?void 0:i.sizes}};return Array.isArray(e)?e.map(getStyles):[getStyles(e)]}function useMantineEmotionCache(){var e;return null==(e=(0,n.useContext)(C))?void 0:e.emotionCache}function useComponentDefaultProps(e,t,r){var n;let o=useMantineTheme(),i=null==(n=o.components[e])?void 0:n.defaultProps,a="function"==typeof i?i(o):i;return MantineProvider_spreadValues(MantineProvider_spreadValues(MantineProvider_spreadValues({},t),a),(0,_.L)(r))}function MantineProvider({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:u=!1,withCSSVariables:l=!1,inherit:s=!1,children:c}){var f,d;let p=(0,n.useContext)(C),h=(f=a.t0,d=s?MantineProvider_spreadValues(MantineProvider_spreadValues({},p.theme),e):e,(0,m.P)(function(e,t){var r;if(!t)return e;let n=Object.keys(e).reduce((r,n)=>{if("headings"===n&&t.headings){let n=t.headings.sizes?Object.keys(e.headings.sizes).reduce((r,n)=>(r[n]=merge_theme_spreadValues(merge_theme_spreadValues({},e.headings.sizes[n]),t.headings.sizes[n]),r),{}):e.headings.sizes;return merge_theme_spreadProps(merge_theme_spreadValues({},r),{headings:merge_theme_spreadProps(merge_theme_spreadValues(merge_theme_spreadValues({},e.headings),t.headings),{sizes:n})})}if("breakpoints"===n&&t.breakpoints){let n=merge_theme_spreadValues(merge_theme_spreadValues({},e.breakpoints),t.breakpoints);return merge_theme_spreadProps(merge_theme_spreadValues({},r),{breakpoints:Object.fromEntries(Object.entries(n).sort((e,t)=>(0,b.oI)(e[1])-(0,b.oI)(t[1])))})}return r[n]="object"==typeof t[n]?merge_theme_spreadValues(merge_theme_spreadValues({},e[n]),t[n]):"number"==typeof t[n]||"boolean"==typeof t[n]||"function"==typeof t[n]?t[n]:t[n]||e[n],r},{});if((null==t?void 0:t.fontFamily)&&!(null==(r=null==t?void 0:t.headings)?void 0:r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),!(n.primaryColor in n.colors))throw Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return n}(f,d)));return n.createElement(o.a,{theme:h},n.createElement(C.Provider,{value:{theme:h,emotionCache:t}},r&&n.createElement(NormalizeCSS,null),u&&n.createElement(GlobalStyles,{theme:h}),l&&n.createElement(MantineCssVariables,{theme:h}),"function"==typeof h.globalStyles&&n.createElement(i.xB,{styles:h.globalStyles(h)}),c))}MantineProvider.displayName="@mantine/core/MantineProvider"},"Iv/n":function(e,t,r){r.d(t,{t0:function(){return a},j1:function(){return i}});let n={dark:["#C1C2C5","#A6A7AB","#909296","#5c5f66","#373A40","#2C2E33","#25262b","#1A1B1E","#141517","#101113"],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"]};var o=r("5CJR");Object.keys(n);let i=["xs","sm","md","lg","xl"],a=(0,o.P)({dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:n,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1)",sm:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 0.625rem 0.9375rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.4375rem 0.4375rem -0.3125rem",md:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.25rem 1.5625rem -0.3125rem, rgba(0, 0, 0, 0.04) 0 0.625rem 0.625rem -0.3125rem",lg:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 1.75rem 1.4375rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 0.75rem 0.75rem -0.4375rem",xl:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem"},radius:{xs:"0.125rem",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"2rem"},spacing:{xs:"0.625rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"1.5rem"},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:"2.125rem",lineHeight:1.3,fontWeight:void 0},h2:{fontSize:"1.625rem",lineHeight:1.35,fontWeight:void 0},h3:{fontSize:"1.375rem",lineHeight:1.4,fontWeight:void 0},h4:{fontSize:"1.125rem",lineHeight:1.45,fontWeight:void 0},h5:{fontSize:"1rem",lineHeight:1.5,fontWeight:void 0},h6:{fontSize:"0.875rem",lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(0.0625rem)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:"0.125rem",outline:`0.125rem solid ${e.colors[e.primaryColor]["dark"===e.colorScheme?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:e=>({outline:"none",borderColor:e.colors[e.primaryColor]["object"==typeof e.primaryShade?e.primaryShade[e.colorScheme]:e.primaryShade]})}})},"5CJR":function(e,t,r){r.d(t,{P:function(){return attachFunctions}});var n=Object.defineProperty,o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&__defNormalProp(e,r,t[r]);if(o)for(var r of o(t))a.call(t,r)&&__defNormalProp(e,r,t[r]);return e};function primaryShade(e){return t=>"number"==typeof e.primaryShade?e.primaryShade:e.primaryShade[t||e.colorScheme]}function themeColor(e){let t=primaryShade(e);return(r,n,o=!0,i=!0)=>{if("string"==typeof r&&r.includes(".")){let[t,o]=r.split("."),a=parseInt(o,10);if(t in e.colors&&a>=0&&a<10)return e.colors[t]["number"!=typeof n||i?a:n]}let a="number"==typeof n?n:t();return r in e.colors?e.colors[r][a]:o?e.colors[e.primaryColor][a]:r}}function getGradientColorStops(e){let t="";for(let r=1;r{let o={from:(null==n?void 0:n.from)||e.defaultGradient.from,to:(null==n?void 0:n.to)||e.defaultGradient.to,deg:(null==n?void 0:n.deg)||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}var u=r("pE5a");function toRgba(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){let e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}let r=parseInt(t,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:1}}(e):e.startsWith("rgb")?function(e){let[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}(e):{r:0,g:0,b:0,a:1}}function rgba(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(--"))return e;let{r,g:n,b:o}=toRgba(e);return`rgba(${r}, ${n}, ${o}, ${t})`}var l=r("mYVa");let s={fontStyles:function(e){return()=>({fontFamily:e.fontFamily||"sans-serif"})},themeColor:themeColor,focusStyles:function(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:__spreadValues({},"always"===e.focusRing||"auto"===e.focusRing?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:__spreadValues({},"auto"===e.focusRing||"never"===e.focusRing?e.focusRingStyles.resetStyles(e):null)})},linearGradient:function(e,...t){return`linear-gradient(${e}deg, ${getGradientColorStops(t)})`},radialGradient:function(...e){return`radial-gradient(circle, ${getGradientColorStops(e)})`},smallerThan:u.I4,largerThan:u.u4,rgba:rgba,cover:function(e=0){return{position:"absolute",top:(0,l.h)(e),right:(0,l.h)(e),left:(0,l.h)(e),bottom:(0,l.h)(e)}},darken:function(e,t){if("string"==typeof e&&e.startsWith("var(--"))return e;let{r,g:n,b:o,a:i}=toRgba(e),a=1-t,dark=e=>Math.round(e*a);return`rgba(${dark(r)}, ${dark(n)}, ${dark(o)}, ${i})`},lighten:function(e,t){if("string"==typeof e&&e.startsWith("var(--"))return e;let{r,g:n,b:o,a:i}=toRgba(e),light=e=>Math.round(e+(255-e)*t);return`rgba(${light(r)}, ${light(n)}, ${light(o)}, ${i})`},radius:function(e){return t=>{if("number"==typeof t)return(0,l.h)(t);let r="number"==typeof e.defaultRadius?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||r}},variant:function(e){let t=themeColor(e),r=primaryShade(e),n=gradient(e);return({variant:o,color:i,gradient:a,primaryFallback:u})=>{let l=function(e,t){if("string"==typeof e&&e.includes(".")){let[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}(i,e);switch(o){case"light":return{border:"transparent",background:rgba(t(i,"dark"===e.colorScheme?8:0,u,!1),"dark"===e.colorScheme?.2:1),color:"dark"===i?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(i,"dark"===e.colorScheme?2:r("light")),hover:rgba(t(i,"dark"===e.colorScheme?7:1,u,!1),"dark"===e.colorScheme?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:"dark"===i?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(i,"dark"===e.colorScheme?2:r("light")),hover:rgba(t(i,"dark"===e.colorScheme?8:0,u,!1),"dark"===e.colorScheme?.2:1)};case"outline":return{border:t(i,"dark"===e.colorScheme?5:r("light")),background:"transparent",color:t(i,"dark"===e.colorScheme?5:r("light")),hover:"dark"===e.colorScheme?rgba(t(i,5,u,!1),.05):rgba(t(i,0,u,!1),.35)};case"default":return{border:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4],background:"dark"===e.colorScheme?e.colors.dark[6]:e.white,color:"dark"===e.colorScheme?e.white:e.black,hover:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(i,r()),hover:null};case"transparent":return{border:"transparent",color:"dark"===i?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(i,"dark"===e.colorScheme?2:r("light")),background:"transparent",hover:null};case"gradient":return{background:n(a),color:e.white,border:"transparent",hover:null};default:{let n=r(),o=l.isSplittedColor?l.shade:n,a=l.isSplittedColor?l.key:i;return{border:"transparent",background:t(a,o,u),color:e.white,hover:t(a,9===o?8:o+1)}}}}},primaryShade:primaryShade,hover:function(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}},gradient:gradient,primaryColor:function(e){return t=>{let r=primaryShade(e)(t);return e.colors[e.primaryColor][r]}},placeholderStyles:function(e){return()=>({userSelect:"none",color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]})},dimmed:function(e){return()=>"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6]}};var c=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,attach_functions_defNormalProp=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,attach_functions_spreadValues=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&attach_functions_defNormalProp(e,r,t[r]);if(p)for(var r of p(t))b.call(t,r)&&attach_functions_defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>f(e,d(t));function attachFunctions(e){return __spreadProps(attach_functions_spreadValues({},e),{fn:{fontStyles:s.fontStyles(e),themeColor:s.themeColor(e),focusStyles:s.focusStyles(e),largerThan:s.largerThan(e),smallerThan:s.smallerThan(e),radialGradient:s.radialGradient,linearGradient:s.linearGradient,gradient:s.gradient(e),rgba:s.rgba,cover:s.cover,lighten:s.lighten,darken:s.darken,primaryShade:s.primaryShade(e),radius:s.radius(e),variant:s.variant(e),hover:s.hover,primaryColor:s.primaryColor(e),placeholderStyles:s.placeholderStyles(e),dimmed:s.dimmed(e)}})}},pE5a:function(e,t,r){r.d(t,{I4:function(){return smallerThan},oI:function(){return getBreakpointValue},u4:function(){return largerThan}});var n=r("mYVa"),o=r("sfiq");function getBreakpointValue(e){return"number"==typeof e?e:"string"==typeof e&&e.includes("rem")?16*Number(e.replace("rem","")):"string"==typeof e&&e.includes("em")?16*Number(e.replace("em","")):Number(e)}function largerThan(e){return t=>`@media (min-width: ${(0,n.em)(getBreakpointValue((0,o.a)({size:t,sizes:e.breakpoints})))})`}function smallerThan(e){return t=>`@media (max-width: ${(0,n.em)(getBreakpointValue((0,o.a)({size:t,sizes:e.breakpoints}))-1)})`}},X9sC:function(e,t,r){r.d(t,{L:function(){return filterProps}});function filterProps(e){return Object.keys(e).reduce((t,r)=>(void 0!==e[r]&&(t[r]=e[r]),t),{})}},uSTY:function(e,t,r){r.d(t,{w:function(){return getDefaultZIndex}});let n={app:100,modal:200,popover:300,overlay:400,max:9999};function getDefaultZIndex(e){return n[e]}},sfiq:function(e,t,r){r.d(t,{a:function(){return getSize}});var n=r("mYVa");function getSize({size:e,sizes:t,units:r}){return e in t?t[e]:"number"==typeof e?"em"===r?(0,n.em)(e):(0,n.h)(e):e||t.md}},mYVa:function(e,t,r){function createConverter(e){return t=>{if("number"==typeof t)return`${t/16}${e}`;if("string"==typeof t){let r=t.replace("px","");if(!Number.isNaN(Number(r)))return`${Number(r)/16}${e}`}return t}}r.d(t,{em:function(){return o},h:function(){return n}});let n=createConverter("rem"),o=createConverter("em")},"/npG":function(e,t,r){r.d(t,{k:function(){return createStyles}});var n=r("y76g"),o=r("8vDj"),i=Object.defineProperty,a=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&__defNormalProp(e,r,t[r]);if(a)for(var r of a(t))l.call(t,r)&&__defNormalProp(e,r,t[r]);return e};function assignAccStyles(e,t){return t&&Object.keys(t).forEach(r=>{e[r]?e[r]=__spreadValues(__spreadValues({},e[r]),t[r]):e[r]=__spreadValues({},t[r])}),e}function getStyles(e,t,r,n){let extractStyles=e=>"function"==typeof e?e(t,r||{},n):e||{};return Array.isArray(e)?e.map(e=>extractStyles(e.styles)).reduce((e,t)=>assignAccStyles(e,t),{}):extractStyles(e)}function createStyles(e){let t="function"==typeof e?e:()=>e;return function(e,r){let i=(0,o.rZ)(),a=(0,o.O2)(null==r?void 0:r.name),u=(0,o.T1)(),l={variant:null==r?void 0:r.variant,size:null==r?void 0:r.size},{css:s,cx:c}=(0,n.Z)(),f=t(i,e,l),d=getStyles(null==r?void 0:r.styles,i,e,l),p=getStyles(a,i,e,l),m=function({ctx:e,theme:t,params:r,variant:n,size:o}){return e.reduce((e,i)=>(i.variants&&n in i.variants&&assignAccStyles(e,i.variants[n](t,r,{variant:n,size:o})),i.sizes&&o in i.sizes&&assignAccStyles(e,i.sizes[o](t,r,{variant:n,size:o})),e),{})}({ctx:a,theme:i,params:e,variant:null==r?void 0:r.variant,size:null==r?void 0:r.size}),b=Object.fromEntries(Object.keys(f).map(e=>{let t=c({[s(f[e])]:!(null==r?void 0:r.unstyled)},s(m[e]),s(p[e]),s(d[e]));return[e,t]}));return{classes:function({cx:e,classes:t,context:r,classNames:n,name:o,cache:i}){let a=r.reduce((e,t)=>(Object.keys(t.classNames).forEach(r=>{"string"!=typeof e[r]?e[r]=`${t.classNames[r]}`:e[r]=`${e[r]} ${t.classNames[r]}`}),e),{});return Object.keys(t).reduce((r,u)=>(r[u]=e(t[u],a[u],null!=n&&n[u],Array.isArray(o)?o.filter(Boolean).map(e=>`${(null==i?void 0:i.key)||"mantine"}-${e}-${u}`).join(" "):o?`${(null==i?void 0:i.key)||"mantine"}-${o}-${u}`:null),r),{})}({cx:c,classes:b,context:a,classNames:null==r?void 0:r.classNames,name:null==r?void 0:r.name,cache:u}),cx:c,theme:i}}}},HC7W:function(e,t,r){r.d(t,{A:function(){return getStylesRef}});function getStylesRef(e){return`___ref-${e||""}`}},y76g:function(e,t,r){r.d(t,{Z:function(){return useCss}});var n=r("iuhU"),o=r("54pO"),i=r("eVQB"),a=r("q1tI"),u=r("9Igr");let l=(0,u.Z)({key:"mantine",prepend:!0});var s=r("8vDj"),c=Object.defineProperty,f=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&__defNormalProp(e,r,t[r]);if(f)for(var r of f(t))p.call(t,r)&&__defNormalProp(e,r,t[r]);return e};let{cssFactory:m}={cssFactory:function(e){let{cache:t}=e,css=(...e)=>{let{ref:r,args:n}=function(e){let t;if(1!==e.length)return{args:e,ref:t};let[r]=e;if(!(r instanceof Object)||!("ref"in r))return{args:e,ref:t};t=r.ref;let n=__spreadValues({},r);return delete n.ref,{args:[n],ref:t}}(e),a=(0,o.O)(n,t.registered);return(0,i.My)(t,a,!1),`${t.key}-${a.name}${void 0===r?"":` ${r}`}`};return{css,cx:(...e)=>(function(e,t,r){let n=[],o=(0,i.fp)(e,n,r);return n.length<2?r:o+t(n)})(t.registered,css,(0,n.default)(e))}}};function useCss(){let e=function(){let e=(0,s.T1)();return e||l}();return function(e,t){let r=(0,a.useRef)();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((e,r)=>e===t[r]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}(()=>m({cache:e}),[e])}},AfDi:function(e,t,r){r.d(t,{n:function(){return closeOnEscape}});let noop=()=>{};function closeOnEscape(e,t={active:!0}){return"function"==typeof e&&t.active?r=>{var n;"Escape"===r.key&&(e(r),null==(n=t.onTrigger)||n.call(t))}:t.onKeyDown||noop}},aeBa:function(e,t,r){r.d(t,{x:function(){return createEventHandler}});function createEventHandler(e,t){return r=>{null==e||e(r),null==t||t(r)}}},k8uC:function(e,t,r){r.d(t,{F:function(){return createPolymorphicComponent}});function createPolymorphicComponent(e){return e}},"18kz":function(e,t,r){r.d(t,{R:function(){return createSafeContext}});var n=r("q1tI");function createSafeContext(e){let t=(0,n.createContext)(null);return[({children:e,value:r})=>n.createElement(t.Provider,{value:r},e),()=>{let r=(0,n.useContext)(t);if(null===r)throw Error(e);return r}]}},YKAP:function(e,t,r){function findElementAncestor(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function createScopedKeydownHandler({parentSelector:e,siblingSelector:t,onKeyDown:r,loop:n=!0,activateOnFocus:o=!1,dir:i="rtl",orientation:a}){return u=>{var l;null==r||r(u);let s=Array.from((null==(l=findElementAncestor(u.currentTarget,e))?void 0:l.querySelectorAll(t))||[]).filter(t=>findElementAncestor(u.currentTarget,e)===findElementAncestor(t,e)),c=s.findIndex(e=>u.currentTarget===e),f=function(e,t,r){for(let r=e+1;r=0;r-=1)if(!t[r].disabled)return r;if(r){for(let e=t.length-1;e>-1;e-=1)if(!t[e].disabled)return e}return e}(c,s,n),p="rtl"===i?d:f,m="rtl"===i?f:d;switch(u.key){case"ArrowRight":"horizontal"===a&&(u.stopPropagation(),u.preventDefault(),s[p].focus(),o&&s[p].click());break;case"ArrowLeft":"horizontal"===a&&(u.stopPropagation(),u.preventDefault(),s[m].focus(),o&&s[m].click());break;case"ArrowUp":"vertical"===a&&(u.stopPropagation(),u.preventDefault(),s[d].focus(),o&&s[d].click());break;case"ArrowDown":"vertical"===a&&(u.stopPropagation(),u.preventDefault(),s[f].focus(),o&&s[f].click());break;case"Home":u.stopPropagation(),u.preventDefault(),s[0].disabled||s[0].focus();break;case"End":{u.stopPropagation(),u.preventDefault();let e=s.length-1;s[e].disabled||s[e].focus()}}}}r.d(t,{R:function(){return createScopedKeydownHandler}})},eN5P:function(e,t,r){r.d(t,{A:function(){return getSafeId}});function getSafeId(e,t){return r=>{if("string"!=typeof r||0===r.trim().length)throw Error(t);return`${e}-${r}`}}},ToEX:function(e,t,r){r.d(t,{j:function(){return groupOptions}});function groupOptions({data:e}){let t=[],r=[],n=e.reduce((e,t,n)=>(t.group?e[t.group]?e[t.group].push(n):e[t.group]=[n]:r.push(n),e),{});return Object.keys(n).forEach(r=>{t.push(...n[r].map(t=>e[t]))}),t.push(...r.map(t=>e[t])),t}},"5TC1":function(e,t,r){r.d(t,{k:function(){return isElement}});var n=r("q1tI");function isElement(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==n.Fragment}},Cxrj:function(e,t,r){r.d(t,{R:function(){return packSx}});function packSx(e){return Array.isArray(e)?e:[e]}}}]);