var T2=Object.defineProperty;var R2=(n,l,o)=>l in n?T2(n,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[l]=o;var Vy=(n,l,o)=>R2(n,typeof l!="symbol"?l+"":l,o);function _2(n,l){for(var o=0;or[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function o(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(s){if(s.ep)return;s.ep=!0;const c=o(s);fetch(s.href,c)}})();function F0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ud={exports:{}},Ei={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ky;function N2(){if(ky)return Ei;ky=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(r,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;return s=c.ref,{$$typeof:n,type:r,key:f,ref:s!==void 0?s:null,props:c}}return Ei.Fragment=l,Ei.jsx=o,Ei.jsxs=o,Ei}var Yy;function j2(){return Yy||(Yy=1,Ud.exports=N2()),Ud.exports}var v=j2(),Vd={exports:{}},ze={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Xy;function A2(){if(Xy)return ze;Xy=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,j={};function N(A,H,Q){this.props=A,this.context=H,this.refs=j,this.updater=Q||C}N.prototype.isReactComponent={},N.prototype.setState=function(A,H){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,H,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function E(){}E.prototype=N.prototype;function _(A,H,Q){this.props=A,this.context=H,this.refs=j,this.updater=Q||C}var D=_.prototype=new E;D.constructor=_,R(D,N.prototype),D.isPureReactComponent=!0;var L=Array.isArray;function U(){}var V={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function P(A,H,Q){var ee=Q.ref;return{$$typeof:n,type:A,key:H,ref:ee!==void 0?ee:null,props:Q}}function ae(A,H){return P(A.type,H,A.props)}function te(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function W(A){var H={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Q){return H[Q]})}var oe=/\/+/g;function K(A,H){return typeof A=="object"&&A!==null&&A.key!=null?W(""+A.key):H.toString(36)}function ie(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(U,U):(A.status="pending",A.then(function(H){A.status==="pending"&&(A.status="fulfilled",A.value=H)},function(H){A.status==="pending"&&(A.status="rejected",A.reason=H)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,H,Q,ee,se){var de=typeof A;(de==="undefined"||de==="boolean")&&(A=null);var pe=!1;if(A===null)pe=!0;else switch(de){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(A.$$typeof){case n:case l:pe=!0;break;case b:return pe=A._init,O(pe(A._payload),H,Q,ee,se)}}if(pe)return se=se(A),pe=ee===""?"."+K(A,0):ee,L(se)?(Q="",pe!=null&&(Q=pe.replace(oe,"$&/")+"/"),O(se,H,Q,"",function(He){return He})):se!=null&&(te(se)&&(se=ae(se,Q+(se.key==null||A&&A.key===se.key?"":(""+se.key).replace(oe,"$&/")+"/")+pe)),H.push(se)),1;pe=0;var _e=ee===""?".":ee+":";if(L(A))for(var Me=0;Me>>1,J=O[G];if(0>>1;Gs(Q,B))ees(se,Q)?(O[G]=se,O[ee]=B,G=ee):(O[G]=Q,O[H]=B,G=H);else if(ees(se,B))O[G]=se,O[ee]=B,G=ee;else break e}}return M}function s(O,M){var B=O.sortIndex-M.sortIndex;return B!==0?B:O.id-M.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var h=[],p=[],b=1,g=null,y=3,w=!1,C=!1,R=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function D(O){for(var M=o(p);M!==null;){if(M.callback===null)r(p);else if(M.startTime<=O)r(p),M.sortIndex=M.expirationTime,l(h,M);else break;M=o(p)}}function L(O){if(R=!1,D(O),!C)if(o(h)!==null)C=!0,U||(U=!0,W());else{var M=o(p);M!==null&&ie(L,M.startTime-O)}}var U=!1,V=-1,k=5,P=-1;function ae(){return j?!0:!(n.unstable_now()-PO&&ae());){var G=g.callback;if(typeof G=="function"){g.callback=null,y=g.priorityLevel;var J=G(g.expirationTime<=O);if(O=n.unstable_now(),typeof J=="function"){g.callback=J,D(O),M=!0;break t}g===o(h)&&r(h),D(O)}else r(h);g=o(h)}if(g!==null)M=!0;else{var A=o(p);A!==null&&ie(L,A.startTime-O),M=!1}}break e}finally{g=null,y=B,w=!1}M=void 0}}finally{M?W():U=!1}}}var W;if(typeof _=="function")W=function(){_(te)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,K=oe.port2;oe.port1.onmessage=te,W=function(){K.postMessage(null)}}else W=function(){N(te,0)};function ie(O,M){V=N(function(){O(n.unstable_now())},M)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125G?(O.sortIndex=B,l(p,O),o(h)===null&&O===o(p)&&(R?(E(V),V=-1):R=!0,ie(L,B-G))):(O.sortIndex=J,l(h,O),C||w||(C=!0,U||(U=!0,W()))),O},n.unstable_shouldYield=ae,n.unstable_wrapCallback=function(O){var M=y;return function(){var B=y;y=M;try{return O.apply(this,arguments)}finally{y=B}}}})(Xd)),Xd}var Zy;function M2(){return Zy||(Zy=1,Yd.exports=O2()),Yd.exports}var qd={exports:{}},Jt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Qy;function D2(){if(Qy)return Jt;Qy=1;var n=km();function l(h){var p="https://react.dev/errors/"+h;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),qd.exports=D2(),qd.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Iy;function z2(){if(Iy)return Ti;Iy=1;var n=M2(),l=km(),o=P0();function r(e){var t="https://react.dev/errors/"+e;if(1J||(e.current=G[J],G[J]=null,J--)}function Q(e,t){J++,G[J]=e.current,e.current=t}var ee=A(null),se=A(null),de=A(null),pe=A(null);function _e(e,t){switch(Q(de,t),Q(se,e),Q(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?cy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=cy(t),e=uy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(ee),Q(ee,e)}function Me(){H(ee),H(se),H(de)}function He(e){e.memoizedState!==null&&Q(pe,e);var t=ee.current,a=uy(t,e.type);t!==a&&(Q(se,e),Q(ee,a))}function st(e){se.current===e&&(H(ee),H(se)),pe.current===e&&(H(pe),Si._currentValue=B)}var je,Qe;function $e(e){if(je===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);je=t&&t[1]||"",Qe=-1)":-1u||z[i]!==q[u]){var ne=` `+z[i].replace(" at new "," at ");return e.displayName&&ne.includes("")&&(ne=ne.replace("",e.displayName)),ne}while(1<=i&&0<=u);break}}}finally{Ce=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$e(a):""}function me(e,t){switch(e.tag){case 26:case 27:case 5:return $e(e.type);case 16:return $e("Lazy");case 13:return e.child!==t&&t!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return ct(e.type,!1);case 11:return ct(e.type.render,!1);case 1:return ct(e.type,!0);case 31:return $e("Activity");default:return""}}function he(e){try{var t="",a=null;do t+=me(e,a),a=e,e=e.return;while(e);return t}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var Ee=Object.prototype.hasOwnProperty,Ae=n.unstable_scheduleCallback,Ye=n.unstable_cancelCallback,Oe=n.unstable_shouldYield,be=n.unstable_requestPaint,Ue=n.unstable_now,xe=n.unstable_getCurrentPriorityLevel,Te=n.unstable_ImmediatePriority,yt=n.unstable_UserBlockingPriority,Ve=n.unstable_NormalPriority,Cn=n.unstable_LowPriority,En=n.unstable_IdlePriority,Ut=n.log,qt=n.unstable_setDisableYieldValue,jt=null,ut=null;function Ie(e){if(typeof Ut=="function"&&qt(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(jt,e)}catch{}}var tt=Math.clz32?Math.clz32:Tr,aa=Math.log,Er=Math.LN2;function Tr(e){return e>>>=0,e===0?32:31-(aa(e)/Er|0)|0}var il=256,Aa=262144,dt=4194304;function wt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Tn(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,d=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var T=i&134217727;return T!==0?(i=T&~d,i!==0?u=wt(i):(S&=T,S!==0?u=wt(S):a||(a=T&~e,a!==0&&(u=wt(a))))):(T=i&~d,T!==0?u=wt(T):S!==0?u=wt(S):a||(a=i&~e,a!==0&&(u=wt(a)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:u}function Yl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Se(){var e=dt;return dt<<=1,(dt&62914560)===0&&(dt=4194304),e}function Bt(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function un(e,t,a,i,u,d){var S=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var T=e.entanglements,z=e.expirationTimes,q=e.hiddenUpdates;for(a=S&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var bx=/[\n"\\]/g;function Vn(e){return e.replace(bx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mu(e,t,a,i,u,d,S,T){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),t!=null?S==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Un(t)):e.value!==""+Un(t)&&(e.value=""+Un(t)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),t!=null?Du(e,S,Un(t)):a!=null?Du(e,S,Un(a)):i!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+Un(T):e.removeAttribute("name")}function ap(e,t,a,i,u,d,S,T){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Ou(e);return}a=a!=null?""+Un(a):"",t=t!=null?""+Un(t):a,T||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=T?e.checked:!!i,e.defaultChecked=!!i,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),Ou(e)}function Du(e,t,a){t==="number"&&ts(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Or(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$u=!1;if(Da)try{var $o={};Object.defineProperty($o,"passive",{get:function(){$u=!0}}),window.addEventListener("test",$o,$o),window.removeEventListener("test",$o,$o)}catch{$u=!1}var sl=null,Uu=null,as=null;function up(){if(as)return as;var e,t=Uu,a=t.length,i,u="value"in sl?sl.value:sl.textContent,d=u.length;for(e=0;e=ko),vp=" ",gp=!1;function yp(e,t){switch(e){case"keyup":return Qx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function Ix(e,t){switch(e){case"compositionend":return bp(t);case"keypress":return t.which!==32?null:(gp=!0,vp);case"textInput":return e=t.data,e===vp&&gp?null:e;default:return null}}function Fx(e,t){if(Br)return e==="compositionend"||!qu&&yp(e,t)?(e=up(),as=Uu=sl=null,Br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=_p(a)}}function jp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ap(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ts(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ts(e.document)}return t}function Qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lw=Da&&"documentMode"in document&&11>=document.documentMode,Lr=null,Ku=null,Go=null,Iu=!1;function Op(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Iu||Lr==null||Lr!==ts(i)||(i=Lr,"selectionStart"in i&&Qu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Go&&qo(Go,i)||(Go=i,i=Fs(Ku,"onSelect"),0>=S,u-=S,ha=1<<32-tt(t)+u|a<Le?(Ze=we,we=null):Ze=we.sibling;var Je=Z(Y,we,X[Le],le);if(Je===null){we===null&&(we=Ze);break}e&&we&&Je.alternate===null&&t(Y,we),$=d(Je,$,Le),Fe===null?Re=Je:Fe.sibling=Je,Fe=Je,we=Ze}if(Le===X.length)return a(Y,we),Ke&&Ba(Y,Le),Re;if(we===null){for(;LeLe?(Ze=we,we=null):Ze=we.sibling;var Al=Z(Y,we,Je.value,le);if(Al===null){we===null&&(we=Ze);break}e&&we&&Al.alternate===null&&t(Y,we),$=d(Al,$,Le),Fe===null?Re=Al:Fe.sibling=Al,Fe=Al,we=Ze}if(Je.done)return a(Y,we),Ke&&Ba(Y,Le),Re;if(we===null){for(;!Je.done;Le++,Je=X.next())Je=re(Y,Je.value,le),Je!==null&&($=d(Je,$,Le),Fe===null?Re=Je:Fe.sibling=Je,Fe=Je);return Ke&&Ba(Y,Le),Re}for(we=i(we);!Je.done;Le++,Je=X.next())Je=I(we,Y,Le,Je.value,le),Je!==null&&(e&&Je.alternate!==null&&we.delete(Je.key===null?Le:Je.key),$=d(Je,$,Le),Fe===null?Re=Je:Fe.sibling=Je,Fe=Je);return e&&we.forEach(function(E2){return t(Y,E2)}),Ke&&Ba(Y,Le),Re}function it(Y,$,X,le){if(typeof X=="object"&&X!==null&&X.type===R&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case w:e:{for(var Re=X.key;$!==null;){if($.key===Re){if(Re=X.type,Re===R){if($.tag===7){a(Y,$.sibling),le=u($,X.props.children),le.return=Y,Y=le;break e}}else if($.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===k&&Wl(Re)===$.type){a(Y,$.sibling),le=u($,X.props),Jo(le,X),le.return=Y,Y=le;break e}a(Y,$);break}else t(Y,$);$=$.sibling}X.type===R?(le=Kl(X.props.children,Y.mode,le,X.key),le.return=Y,Y=le):(le=ms(X.type,X.key,X.props,null,Y.mode,le),Jo(le,X),le.return=Y,Y=le)}return S(Y);case C:e:{for(Re=X.key;$!==null;){if($.key===Re)if($.tag===4&&$.stateNode.containerInfo===X.containerInfo&&$.stateNode.implementation===X.implementation){a(Y,$.sibling),le=u($,X.children||[]),le.return=Y,Y=le;break e}else{a(Y,$);break}else t(Y,$);$=$.sibling}le=nf(X,Y.mode,le),le.return=Y,Y=le}return S(Y);case k:return X=Wl(X),it(Y,$,X,le)}if(ie(X))return ye(Y,$,X,le);if(W(X)){if(Re=W(X),typeof Re!="function")throw Error(r(150));return X=Re.call(X),Ne(Y,$,X,le)}if(typeof X.then=="function")return it(Y,$,Ss(X),le);if(X.$$typeof===_)return it(Y,$,vs(Y,X),le);xs(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,$!==null&&$.tag===6?(a(Y,$.sibling),le=u($,X),le.return=Y,Y=le):(a(Y,$),le=tf(X,Y.mode,le),le.return=Y,Y=le),S(Y)):a(Y,$)}return function(Y,$,X,le){try{Fo=0;var Re=it(Y,$,X,le);return Qr=null,Re}catch(we){if(we===Zr||we===ys)throw we;var Fe=Nn(29,we,null,Y.mode);return Fe.lanes=le,Fe.return=Y,Fe}finally{}}}var tr=ev(!0),tv=ev(!1),ml=!1;function pf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pl(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(et&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=ds(e),$p(e,null,a),t}return fs(e,i,t,a),ds(e)}function Po(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,bt(e,a)}}function gf(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var u=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?u=d=S:d=d.next=S,a=a.next}while(a!==null);d===null?u=d=t:d=d.next=t}else u=d=t;a={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var yf=!1;function Wo(){if(yf){var e=Gr;if(e!==null)throw e}}function ei(e,t,a,i){yf=!1;var u=e.updateQueue;ml=!1;var d=u.firstBaseUpdate,S=u.lastBaseUpdate,T=u.shared.pending;if(T!==null){u.shared.pending=null;var z=T,q=z.next;z.next=null,S===null?d=q:S.next=q,S=z;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,T=ne.lastBaseUpdate,T!==S&&(T===null?ne.firstBaseUpdate=q:T.next=q,ne.lastBaseUpdate=z))}if(d!==null){var re=u.baseState;S=0,ne=q=z=null,T=d;do{var Z=T.lane&-536870913,I=Z!==T.lane;if(I?(Ge&Z)===Z:(i&Z)===Z){Z!==0&&Z===qr&&(yf=!0),ne!==null&&(ne=ne.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var ye=e,Ne=T;Z=t;var it=a;switch(Ne.tag){case 1:if(ye=Ne.payload,typeof ye=="function"){re=ye.call(it,re,Z);break e}re=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ne.payload,Z=typeof ye=="function"?ye.call(it,re,Z):ye,Z==null)break e;re=g({},re,Z);break e;case 2:ml=!0}}Z=T.callback,Z!==null&&(e.flags|=64,I&&(e.flags|=8192),I=u.callbacks,I===null?u.callbacks=[Z]:I.push(Z))}else I={lane:Z,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ne===null?(q=ne=I,z=re):ne=ne.next=I,S|=Z;if(T=T.next,T===null){if(T=u.shared.pending,T===null)break;I=T,T=I.next,I.next=null,u.lastBaseUpdate=I,u.shared.pending=null}}while(!0);ne===null&&(z=re),u.baseState=z,u.firstBaseUpdate=q,u.lastBaseUpdate=ne,d===null&&(u.shared.lanes=0),Sl|=S,e.lanes=S,e.memoizedState=re}}function nv(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function av(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ed?d:8;var S=O.T,T={};O.T=T,Hf(e,!1,t,a);try{var z=u(),q=O.S;if(q!==null&&q(T,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ne=mw(z,i);ai(e,t,ne,Dn(e))}else ai(e,t,i,Dn(e))}catch(re){ai(e,t,{then:function(){},status:"rejected",reason:re},Dn())}finally{M.p=d,S!==null&&T.types!==null&&(S.types=T.types),O.T=S}}function bw(){}function Bf(e,t,a,i){if(e.tag!==5)throw Error(r(476));var u=Bv(e).queue;zv(e,u,t,B,a===null?bw:function(){return Lv(e),a(i)})}function Bv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:B},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lv(e){var t=Bv(e);t.next===null&&(t=e.alternate.memoizedState),ai(e,t.next.queue,{},Dn())}function Lf(){return Zt(Si)}function Hv(){return Nt().memoizedState}function $v(){return Nt().memoizedState}function Sw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Dn();e=hl(a);var i=pl(t,e,a);i!==null&&(bn(i,t,a),Po(i,t,a)),t={cache:ff()},e.payload=t;return}t=t.return}}function xw(e,t,a){var i=Dn();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Os(e)?Vv(t,a):(a=Wu(e,t,a,i),a!==null&&(bn(a,e,i),kv(a,t,i)))}function Uv(e,t,a){var i=Dn();ai(e,t,a,i)}function ai(e,t,a,i){var u={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Os(e))Vv(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var S=t.lastRenderedState,T=d(S,a);if(u.hasEagerState=!0,u.eagerState=T,_n(T,S))return fs(e,t,u,0),ft===null&&us(),!1}catch{}finally{}if(a=Wu(e,t,u,i),a!==null)return bn(a,e,i),kv(a,t,i),!0}return!1}function Hf(e,t,a,i){if(i={lane:2,revertLane:pd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(r(479))}else t=Wu(e,a,i,2),t!==null&&bn(t,e,2)}function Os(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Vv(e,t){Ir=Es=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function kv(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,bt(e,a)}}var li={readContext:Zt,use:_s,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};li.useEffectEvent=Ct;var Yv={readContext:Zt,use:_s,useCallback:function(e,t){return an().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:Tv,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,js(4194308,4,jv.bind(null,t,e),a)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){js(4,2,e,t)},useMemo:function(e,t){var a=an();t=t===void 0?null:t;var i=e();if(nr){Ie(!0);try{e()}finally{Ie(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=an();if(a!==void 0){var u=a(t);if(nr){Ie(!0);try{a(t)}finally{Ie(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=xw.bind(null,Be,e),[i.memoizedState,e]},useRef:function(e){var t=an();return e={current:e},t.memoizedState=e},useState:function(e){e=Af(e);var t=e.queue,a=Uv.bind(null,Be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Df,useDeferredValue:function(e,t){var a=an();return zf(a,e,t)},useTransition:function(){var e=Af(!1);return e=zv.bind(null,Be,e.queue,!0,!1),an().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Be,u=an();if(Ke){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),ft===null)throw Error(r(349));(Ge&127)!==0||cv(i,t,a)}u.memoizedState=a;var d={value:a,getSnapshot:t};return u.queue=d,Tv(fv.bind(null,i,d,e),[e]),i.flags|=2048,Jr(9,{destroy:void 0},uv.bind(null,i,d,a,t),null),a},useId:function(){var e=an(),t=ft.identifierPrefix;if(Ke){var a=pa,i=ha;a=(i&~(1<<32-tt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ts++,0<\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?S.createElement("select",{is:i.is}):S.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?S.createElement(u,{is:i.is}):S.createElement(u)}}d[Lt]=t,d[mn]=i;e:for(S=t.child;S!==null;){if(S.tag===5||S.tag===6)d.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===t)break e;for(;S.sibling===null;){if(S.return===null||S.return===t)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}t.stateNode=d;e:switch(Kt(d,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ka(t)}}return pt(t),Jf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ka(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=de.current,Yr(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,u=Gt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||iy(e.nodeValue,a)),e||fl(t,!0)}else e=Js(e).createTextNode(i),e[Lt]=t,t.stateNode=e}return pt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=Yr(t),a!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Lt]=t}else Il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),e=!1}else a=of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(An(t),t):(An(t),null);if((t.flags&128)!==0)throw Error(r(558))}return pt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Yr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[Lt]=t}else Il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),u=!1}else u=of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(An(t),t):(An(t),null)}return An(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==u&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ls(t,t.updateQueue),pt(t),null);case 4:return Me(),e===null&&bd(t.stateNode.containerInfo),pt(t),null;case 10:return Ha(t.type),pt(t),null;case 19:if(H(_t),i=t.memoizedState,i===null)return pt(t),null;if(u=(t.flags&128)!==0,d=i.rendering,d===null)if(u)oi(i,!1);else{if(Et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Cs(e),d!==null){for(t.flags|=128,oi(i,!1),e=d.updateQueue,t.updateQueue=e,Ls(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Up(a,e),a=a.sibling;return Q(_t,_t.current&1|2),Ke&&Ba(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ue()>ks&&(t.flags|=128,u=!0,oi(i,!1),t.lanes=4194304)}else{if(!u)if(e=Cs(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Ls(t,e),oi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ke)return pt(t),null}else 2*Ue()-i.renderingStartTime>ks&&a!==536870912&&(t.flags|=128,u=!0,oi(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ue(),e.sibling=null,a=_t.current,Q(_t,u?a&1|2:a&1),Ke&&Ba(t,i.treeForkCount),e):(pt(t),null);case 22:case 23:return An(t),Sf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),a=t.updateQueue,a!==null&&Ls(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&H(Pl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ha(At),pt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Rw(e,t){switch(lf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ha(At),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return st(t),null;case 31:if(t.memoizedState!==null){if(An(t),t.alternate===null)throw Error(r(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(An(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(_t),null;case 4:return Me(),null;case 10:return Ha(t.type),null;case 22:case 23:return An(t),Sf(),e!==null&&H(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ha(At),null;case 25:return null;default:return null}}function dg(e,t){switch(lf(t),t.tag){case 3:Ha(At),Me();break;case 26:case 27:case 5:st(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&An(t);break;case 13:An(t);break;case 19:H(_t);break;case 10:Ha(t.type);break;case 22:case 23:An(t),Sf(),e!==null&&H(Pl);break;case 24:Ha(At)}}function ii(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){i=void 0;var d=a.create,S=a.inst;i=d(),S.destroy=i}a=a.next}while(a!==u)}}catch(T){at(t,t.return,T)}}function yl(e,t,a){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var d=u.next;i=d;do{if((i.tag&e)===e){var S=i.inst,T=S.destroy;if(T!==void 0){S.destroy=void 0,u=t;var z=a,q=T;try{q()}catch(ne){at(u,z,ne)}}}i=i.next}while(i!==d)}}catch(ne){at(t,t.return,ne)}}function mg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{av(t,a)}catch(i){at(e,e.return,i)}}}function hg(e,t,a){a.props=ar(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){at(e,t,i)}}function si(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(u){at(e,t,u)}}function va(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(u){at(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){at(e,t,u)}else a.current=null}function pg(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(u){at(e,e.return,u)}}function Pf(e,t,a){try{var i=e.stateNode;Kw(i,e.type,a,t),i[mn]=t}catch(u){at(e,e.return,u)}}function vg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Wf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ed(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ma));else if(i!==4&&(i===27&&Tl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ed(e,t,a),e=e.sibling;e!==null;)ed(e,t,a),e=e.sibling}function Hs(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Tl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hs(e,t,a),e=e.sibling;e!==null;)Hs(e,t,a),e=e.sibling}function gg(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Kt(t,i,a),t[Lt]=e,t[mn]=a}catch(d){at(e,e.return,d)}}var Ya=!1,Dt=!1,td=!1,yg=typeof WeakSet=="function"?WeakSet:Set,kt=null;function _w(e,t){if(e=e.containerInfo,wd=lc,e=Ap(e),Qu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var S=0,T=-1,z=-1,q=0,ne=0,re=e,Z=null;t:for(;;){for(var I;re!==a||u!==0&&re.nodeType!==3||(T=S+u),re!==d||i!==0&&re.nodeType!==3||(z=S+i),re.nodeType===3&&(S+=re.nodeValue.length),(I=re.firstChild)!==null;)Z=re,re=I;for(;;){if(re===e)break t;if(Z===a&&++q===u&&(T=S),Z===d&&++ne===i&&(z=S),(I=re.nextSibling)!==null)break;re=Z,Z=re.parentNode}re=I}a=T===-1||z===-1?null:{start:T,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(Cd={focusedElem:e,selectionRange:a},lc=!1,kt=t;kt!==null;)if(t=kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,kt=e;else for(;kt!==null;){switch(t=kt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),Kt(d,i,a),d[Lt]=e,Vt(d),i=d;break e;case"link":var S=Ey("link","href",u).get(i+(a.href||""));if(S){for(var T=0;Tit&&(S=it,it=Ne,Ne=S);var Y=Np(T,Ne),$=Np(T,it);if(Y&&$&&(I.rangeCount!==1||I.anchorNode!==Y.node||I.anchorOffset!==Y.offset||I.focusNode!==$.node||I.focusOffset!==$.offset)){var X=re.createRange();X.setStart(Y.node,Y.offset),I.removeAllRanges(),Ne>it?(I.addRange(X),I.extend($.node,$.offset)):(X.setEnd($.node,$.offset),I.addRange(X))}}}}for(re=[],I=T;I=I.parentNode;)I.nodeType===1&&re.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;Ta?32:a,O.T=null,a=sd,sd=null;var d=wl,S=Qa;if(Ht=0,no=wl=null,Qa=0,(et&6)!==0)throw Error(r(331));var T=et;if(et|=4,jg(d.current),Rg(d,d.current,S,a),et=T,hi(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(jt,d)}catch{}return!0}finally{M.p=u,O.T=i,Qg(e,t)}}function Ig(e,t,a){t=Yn(a,t),t=kf(e.stateNode,t,2),e=pl(e,t,2),e!==null&&(Rn(e,2),ga(e))}function at(e,t,a){if(e.tag===3)Ig(e,e,a);else for(;t!==null;){if(t.tag===3){Ig(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(xl===null||!xl.has(i))){e=Yn(a,e),a=Fv(2),i=pl(t,a,2),i!==null&&(Jv(a,i,t,e),Rn(i,2),ga(i));break}}t=t.return}}function dd(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Aw;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(a)||(ld=!0,u.add(a),e=Bw.bind(null,e,t,a),t.then(e,e))}function Bw(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ft===e&&(Ge&a)===a&&(Et===4||Et===3&&(Ge&62914560)===Ge&&300>Ue()-Vs?(et&2)===0&&ao(e,0):rd|=a,to===Ge&&(to=0)),ga(e)}function Fg(e,t){t===0&&(t=Se()),e=Ql(e,t),e!==null&&(Rn(e,t),ga(e))}function Lw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fg(e,a)}function Hw(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),Fg(e,a)}function $w(e,t){return Ae(e,t)}var Qs=null,ro=null,md=!1,Ks=!1,hd=!1,El=0;function ga(e){e!==ro&&e.next===null&&(ro===null?Qs=ro=e:ro=ro.next=e),Ks=!0,md||(md=!0,Vw())}function hi(e,t){if(!hd&&Ks){hd=!0;do for(var a=!1,i=Qs;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var d=0;else{var S=i.suspendedLanes,T=i.pingedLanes;d=(1<<31-tt(42|e)+1)-1,d&=u&~(S&~T),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,ey(i,d))}else d=Ge,d=Tn(i,i===ft?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||Yl(i,d)||(a=!0,ey(i,d));i=i.next}while(a);hd=!1}}function Uw(){Jg()}function Jg(){Ks=md=!1;var e=0;El!==0&&Fw()&&(e=El);for(var t=Ue(),a=null,i=Qs;i!==null;){var u=i.next,d=Pg(i,t);d===0?(i.next=null,a===null?Qs=u:a.next=u,u===null&&(ro=a)):(a=i,(e!==0||(d&3)!==0)&&(Ks=!0)),i=u}Ht!==0&&Ht!==5||hi(e),El!==0&&(El=0)}function Pg(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0T)break;var ne=z.transferSize,re=z.initiatorType;ne&&sy(re)&&(z=z.responseEnd,S+=ne*(z"u"?null:document;function Sy(e,t,a){var i=oo;if(i&&typeof t=="string"&&t){var u=Vn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),by.has(u)||(by.add(u),e={rel:e,crossOrigin:a,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Kt(t,"link",e),Vt(t),i.head.appendChild(t)))}}function r2(e){Ka.D(e),Sy("dns-prefetch",e,null)}function o2(e,t){Ka.C(e,t),Sy("preconnect",e,t)}function i2(e,t,a){Ka.L(e,t,a);var i=oo;if(i&&e&&t){var u='link[rel="preload"][as="'+Vn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Vn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Vn(a.imageSizes)+'"]')):u+='[href="'+Vn(e)+'"]';var d=u;switch(t){case"style":d=io(e);break;case"script":d=so(e)}Kn.has(d)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kn.set(d,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(yi(d))||t==="script"&&i.querySelector(bi(d))||(t=i.createElement("link"),Kt(t,"link",e),Vt(t),i.head.appendChild(t)))}}function s2(e,t){Ka.m(e,t);var a=oo;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Vn(i)+'"][href="'+Vn(e)+'"]',d=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=so(e)}if(!Kn.has(d)&&(e=g({rel:"modulepreload",href:e},t),Kn.set(d,e),a.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bi(d)))return}i=a.createElement("link"),Kt(i,"link",e),Vt(i),a.head.appendChild(i)}}}function c2(e,t,a){Ka.S(e,t,a);var i=oo;if(i&&e){var u=jr(i).hoistableStyles,d=io(e);t=t||"default";var S=u.get(d);if(!S){var T={loading:0,preload:null};if(S=i.querySelector(yi(d)))T.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kn.get(d))&&Ad(e,a);var z=S=i.createElement("link");Vt(z),Kt(z,"link",e),z._p=new Promise(function(q,ne){z.onload=q,z.onerror=ne}),z.addEventListener("load",function(){T.loading|=1}),z.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Ws(S,t,i)}S={type:"stylesheet",instance:S,count:1,state:T},u.set(d,S)}}}function u2(e,t){Ka.X(e,t);var a=oo;if(a&&e){var i=jr(a).hoistableScripts,u=so(e),d=i.get(u);d||(d=a.querySelector(bi(u)),d||(e=g({src:e,async:!0},t),(t=Kn.get(u))&&Od(e,t),d=a.createElement("script"),Vt(d),Kt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}function f2(e,t){Ka.M(e,t);var a=oo;if(a&&e){var i=jr(a).hoistableScripts,u=so(e),d=i.get(u);d||(d=a.querySelector(bi(u)),d||(e=g({src:e,async:!0,type:"module"},t),(t=Kn.get(u))&&Od(e,t),d=a.createElement("script"),Vt(d),Kt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}function xy(e,t,a,i){var u=(u=de.current)?Ps(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=io(a.href),a=jr(u).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=io(a.href);var d=jr(u).hoistableStyles,S=d.get(e);if(S||(u=u.ownerDocument||u,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,S),(d=u.querySelector(yi(e)))&&!d._p&&(S.instance=d,S.state.loading=5),Kn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kn.set(e,a),d||d2(u,e,a,S.state))),t&&i===null)throw Error(r(528,""));return S}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=so(a),a=jr(u).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function io(e){return'href="'+Vn(e)+'"'}function yi(e){return'link[rel="stylesheet"]['+e+"]"}function wy(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function d2(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Kt(t,"link",a),Vt(t),e.head.appendChild(t))}function so(e){return'[src="'+Vn(e)+'"]'}function bi(e){return"script[async]"+e}function Cy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Vn(a.href)+'"]');if(i)return t.instance=i,Vt(i),i;var u=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Vt(i),Kt(i,"style",u),Ws(i,a.precedence,e),t.instance=i;case"stylesheet":u=io(a.href);var d=e.querySelector(yi(u));if(d)return t.state.loading|=4,t.instance=d,Vt(d),d;i=wy(a),(u=Kn.get(u))&&Ad(i,u),d=(e.ownerDocument||e).createElement("link"),Vt(d);var S=d;return S._p=new Promise(function(T,z){S.onload=T,S.onerror=z}),Kt(d,"link",i),t.state.loading|=4,Ws(d,a.precedence,e),t.instance=d;case"script":return d=so(a.src),(u=e.querySelector(bi(d)))?(t.instance=u,Vt(u),u):(i=a,(u=Kn.get(d))&&(i=g({},a),Od(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),Vt(u),Kt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ws(i,a.precedence,e));return t.instance}function Ws(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,d=u,S=0;S title"):null)}function m2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ry(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function h2(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=io(i.href),d=t.querySelector(yi(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,Vt(d);return}d=t.ownerDocument||t,i=wy(i),(u=Kn.get(u))&&Ad(i,u),d=d.createElement("link"),Vt(d);var S=d;S._p=new Promise(function(T,z){S.onload=T,S.onerror=z}),Kt(d,"link",i),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=tc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Md=0;function p2(e,t){return e.stylesheets&&e.count===0&&ac(e,e.stylesheets),0Md?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ac(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nc=null;function ac(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nc=new Map,t.forEach(v2,e),nc=null,tc.call(e))}function v2(e,t){if(!(t.state.loading&4)){var a=nc.get(e);if(a)var i=a.get(null);else{a=new Map,nc.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),kd.exports=z2(),kd.exports}var L2=B2();function Ft(n){return Object.keys(n)}function Gd(n){return n&&typeof n=="object"&&!Array.isArray(n)}function Ym(n,l){const o={...n},r=l;return Gd(n)&&Gd(l)&&Object.keys(l).forEach(s=>{Gd(r[s])&&s in n?o[s]=Ym(o[s],r[s]):o[s]=r[s]}),o}function H2(n){return n.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}function $2(n){var l;return typeof n!="string"||!n.includes("var(--mantine-scale)")?n:(l=n.match(/^calc\((.*?)\)$/))==null?void 0:l[1].split("*")[0].trim()}function vm(n){const l=$2(n);return typeof l=="number"?l:typeof l=="string"?l.includes("calc")||l.includes("var")?l:l.includes("px")?Number(l.replace("px","")):l.includes("rem")?Number(l.replace("rem",""))*16:l.includes("em")?Number(l.replace("em",""))*16:Number(l):NaN}function Jy(n){return n==="0rem"?"0rem":`calc(${n} * var(--mantine-scale))`}function W0(n,{shouldScale:l=!1}={}){function o(r){if(r===0||r==="0")return`0${n}`;if(typeof r=="number"){const s=`${r/16}${n}`;return l?Jy(s):s}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(c=>o(c)).join(",");if(r.includes(" "))return r.split(" ").map(c=>o(c)).join(" ");const s=r.replace("px","");if(!Number.isNaN(Number(s))){const c=`${Number(s)/16}${n}`;return l?Jy(c):c}}return r}return o}const F=W0("rem",{shouldScale:!0}),_c=W0("em");function Xm(n){return Object.keys(n).reduce((l,o)=>(n[o]!==void 0&&(l[o]=n[o]),l),{})}function eb(n){if(typeof n=="number")return!0;if(typeof n=="string"){if(n.startsWith("calc(")||n.startsWith("var(")||n.includes(" ")&&n.trim()!=="")return!0;const l=/^[+-]?[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 n.trim().split(/\s+/).every(o=>l.test(o))}return!1}function tb(n){return Array.isArray(n)||n===null?!1:typeof n=="object"?n.type!==x.Fragment:!1}function Ea(n){const l=x.createContext(null);return[l,()=>{const r=x.use(l);if(r===null)throw new Error(n);return r}]}const U2={app:100,modal:200,popover:300,overlay:400,max:9999};function on(n){return U2[n]}const gm=()=>{};function V2(n,l={active:!0}){return typeof n!="function"||!l.active?l.onKeyDown||gm:o=>{var r;o.key==="Escape"&&(n(o),(r=l.onTrigger)==null||r.call(l))}}function Pe(n,l="size",o=!0){if(n!==void 0)return eb(n)?o?F(n):n:`var(--${l}-${n})`}function el(n){return Pe(n,"mantine-spacing")}function Xt(n){return n===void 0?"var(--mantine-radius-default)":Pe(n,"mantine-radius")}function Wt(n){return Pe(n,"mantine-font-size")}function k2(n){return Pe(n,"mantine-line-height",!1)}function qm(n){if(n)return Pe(n,"mantine-shadow",!1)}function Py(n,l){return o=>{n==null||n(o),l==null||l(o)}}function Gm(n,l){return n in l?vm(l[n]):vm(n)}function Wy(n,l){const o=n.map(r=>({value:r,px:Gm(r,l)}));return o.sort((r,s)=>r.px-s.px),o}function yc(n,l,o){return l===void 0&&o===void 0?n:l!==void 0&&o===void 0?Math.max(n,l):Math.min(l===void 0&&o!==void 0?n:Math.max(n,l),o)}function nb(n="mantine-"){return`${n}${Math.random().toString(36).slice(2,11)}`}function Ni(n){const l=x.useRef(n);return x.useEffect(()=>{l.current=n}),x.useMemo(()=>((...o)=>{var r;return(r=l.current)==null?void 0:r.call(l,...o)}),[])}function $c(n,l){const{delay:o,flushOnUnmount:r,leading:s,maxWait:c}=typeof l=="number"?{delay:l,flushOnUnmount:!1,leading:!1,maxWait:void 0}:l,f=Ni(n),m=x.useRef(0),h=x.useRef(0),p=x.useRef(null),b=x.useMemo(()=>{const g=Object.assign((...y)=>{window.clearTimeout(m.current),p.current=y;const w=g._isFirstCall;g._isFirstCall=!1;function C(){window.clearTimeout(m.current),window.clearTimeout(h.current),m.current=0,h.current=0,g._isFirstCall=!0,g._hasPendingCallback=!1}function R(){c!==void 0&&h.current===0&&(h.current=window.setTimeout(()=>{if(m.current!==0){const E=p.current;C(),f(...E)}},c))}if(s&&w){f(...y);const E=()=>{C()},_=()=>{m.current!==0&&(C(),f(...y))},D=()=>{C()};g.flush=_,g.cancel=D,m.current=window.setTimeout(E,o),R();return}if(s&&!w){g._hasPendingCallback=!0;const E=()=>{m.current!==0&&(C(),f(...y))},_=()=>{C()};g.flush=E,g.cancel=_;const D=()=>{C()};m.current=window.setTimeout(D,o),R();return}g._hasPendingCallback=!0;const j=()=>{m.current!==0&&(C(),f(...y))},N=()=>{C()};g.flush=j,g.cancel=N,m.current=window.setTimeout(j,o),R()},{flush:()=>{},cancel:()=>{},isPending:()=>g._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return g},[f,o,s,c]);return x.useEffect(()=>()=>{r?b.flush():b.cancel()},[b,r]),b}const Y2=["mousedown","touchstart"];function X2(n,l,o,r=!0){const s=x.useRef(null),c=l||Y2,f=x.useEffectEvent(h=>{const{target:p}=h??{};if(!document.body.contains(p)&&(p==null?void 0:p.tagName)!=="HTML")return;const b=h.composedPath();Array.isArray(o)?o.every(g=>!!g&&!b.includes(g))&&n(h):s.current&&!b.includes(s.current)&&n(h)}),m=c.join(",");return x.useEffect(()=>{if(!r)return;const h=m.split(",");return h.forEach(p=>document.addEventListener(p,f)),()=>{h.forEach(p=>document.removeEventListener(p,f))}},[m,r]),s}function q2(n={}){const l=n.timeout??2e3,[o,r]=x.useState(null),[s,c]=x.useState(!1),f=x.useRef(null);x.useEffect(()=>()=>{window.clearTimeout(f.current)},[]);const m=b=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c(!1),l),c(b)};return{copy:b=>{"clipboard"in navigator?navigator.clipboard.writeText(b).then(()=>{r(null),m(!0)}).catch(g=>r(g)):r(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{c(!1),r(null),window.clearTimeout(f.current)},error:o,copied:s}}function G2(n,l){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(n).matches:!1}function Z2(n,l,{getInitialValueInEffect:o}={getInitialValueInEffect:!0}){const[r,s]=x.useState(o?l:G2(n));return x.useEffect(()=>{try{if("matchMedia"in window){const c=window.matchMedia(n);s(c.matches);const f=m=>s(m.matches);return c.addEventListener("change",f),()=>{c.removeEventListener("change",f)}}}catch{return}},[n]),r||!1}const wa=typeof document<"u"?x.useLayoutEffect:x.useEffect;function Eo(n,l){const o=x.useRef(!1);x.useEffect(()=>()=>{o.current=!1},[]),x.useEffect(()=>{if(o.current)return n();o.current=!0},l)}function ab({opened:n,shouldReturnFocus:l=!0}){const o=x.useRef(null),r=()=>{var s;o.current&&"focus"in o.current&&typeof o.current.focus=="function"&&((s=o.current)==null||s.focus({preventScroll:!0}))};return Eo(()=>{let s=-1;const c=f=>{f.key==="Tab"&&window.clearTimeout(s)};if(document.addEventListener("keydown",c),n)o.current=document.activeElement;else if(l){const f=document.activeElement;s=window.setTimeout(()=>{const m=document.activeElement;(m===null||m===document.body||m===f)&&r()},10)}return()=>{window.clearTimeout(s),document.removeEventListener("keydown",c)}},[n,l]),r}const Q2=/input|select|textarea|button|object/,lb="a, input, select, textarea, button, object, [tabindex]";function K2(n){return n.style.display==="none"}function I2(n){if(n.getAttribute("aria-hidden")||n.getAttribute("hidden")||n.getAttribute("type")==="hidden")return!1;let l=n;for(;l&&!(l===document.body||l.nodeType===11);){if(K2(l))return!1;l=l.parentNode}return!0}function rb(n){let l=n.getAttribute("tabindex");return l===null&&(l=void 0),parseInt(l,10)}function ym(n){const l=n.nodeName.toLowerCase(),o=!Number.isNaN(rb(n));return(Q2.test(l)&&!n.disabled||n instanceof HTMLAnchorElement&&n.href||o)&&I2(n)}function ob(n){const l=rb(n);return(Number.isNaN(l)||l>=0)&&ym(n)}function F2(n){return Array.from(n.querySelectorAll(lb)).filter(ob)}function J2(n,l){const o=F2(n);if(!o.length){l.preventDefault();return}const r=o[l.shiftKey?0:o.length-1],s=n.getRootNode();let c=r===s.activeElement||n===s.activeElement;const f=s.activeElement;if(f.tagName==="INPUT"&&f.getAttribute("type")==="radio"&&(c=o.filter(h=>h.getAttribute("type")==="radio"&&h.getAttribute("name")===f.getAttribute("name")).includes(r)),!c)return;l.preventDefault();const m=o[l.shiftKey?o.length-1:0];m&&m.focus()}function P2(n=!0){const l=x.useRef(null),o=s=>{let c=s.querySelector("[data-autofocus]");if(!c){const f=Array.from(s.querySelectorAll(lb));c=f.find(ob)||f.find(ym)||null,!c&&ym(s)&&(c=s)}c?c.focus({preventScroll:!0}):console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",s)},r=x.useCallback(s=>{if(n){if(s===null){l.current=null;return}l.current!==s&&(setTimeout(()=>{s.getRootNode()?o(s):console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom",s)}),l.current=s)}},[n]);return x.useEffect(()=>{if(!n)return;l.current&&setTimeout(()=>{l.current&&o(l.current)});const s=c=>{c.key==="Tab"&&l.current&&J2(l.current,c)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n]),r}const W2=n=>(n+1)%1e6;function eC(){const[,n]=x.useReducer(W2,0);return n}function Ta(n){const[l,o]=x.useState(`mantine-${x.useId().replace(/:/g,"")}`);return wa(()=>{o(nb())},[]),typeof n=="string"?n:l}function ib(n,l,o){const r=x.useEffectEvent(l);x.useEffect(()=>(window.addEventListener(n,r,o),()=>window.removeEventListener(n,r,o)),[n])}function Nc(n,l){if(typeof n=="function")return n(l);typeof n=="object"&&n!==null&&"current"in n&&(n.current=l)}function Zm(...n){const l=new Map;return o=>{if(n.forEach(r=>{const s=Nc(r,o);s&&l.set(r,s)}),l.size>0)return()=>{n.forEach(r=>{const s=l.get(r);s&&typeof s=="function"?s():Nc(r,null)}),l.clear()}}}function en(...n){return x.useCallback(Zm(...n),n)}function Bl({value:n,defaultValue:l,finalValue:o,onChange:r=()=>{}}){const[s,c]=x.useState(l!==void 0?l:o),f=(m,...h)=>{c(m),r==null||r(m,...h)};return n!==void 0?[n,r,!0]:[s,f,!1]}function Uc(n,l){return Z2("(prefers-reduced-motion: reduce)",n,l)}function jc(n=!1,l={}){const[o,r]=x.useState(n),s=x.useCallback(()=>{r(f=>{var m;return f||((m=l.onOpen)==null||m.call(l),!0)})},[l.onOpen]),c=x.useCallback(()=>{r(f=>{var m;return f&&((m=l.onClose)==null||m.call(l),!1)})},[l.onClose]);return[o,{open:s,close:c,toggle:x.useCallback(()=>{o?c():s()},[c,s,o]),set:r}]}function tC(n){const l=x.useRef(void 0);return x.useEffect(()=>{l.current=n},[n]),l.current}var Ja=P0();const ji=F0(Ja);function nC(n){if(!n||typeof n=="string")return 0;const l=n/36;return Math.round((4+15*l**.25+l/5)*10)}function Zd(n){return n.current?n.current.scrollHeight:"auto"}function aC({transitionDuration:n,transitionTimingFunction:l="ease",onTransitionEnd:o,onTransitionStart:r,expanded:s,keepMounted:c}){const f={height:0,overflow:"hidden",...c?{}:{display:"none"}},m=x.useEffectEvent(()=>r==null?void 0:r()),h=x.useRef(null),[p,b]=x.useState(s?{}:f),[g,y]=x.useState(s?"entered":"exited"),w=N=>{Ja.flushSync(()=>b(N))},C=N=>{w(E=>({...E,...N}))},R=N=>{const E=n??nC(N);return{transition:`height ${E}ms ${l}, opacity ${E}ms ${l}`}};Eo(()=>{n!==0&&m(),s?window.requestAnimationFrame(()=>{Ja.flushSync(()=>y("entering")),C({willChange:"height",display:"block",overflow:"hidden"}),window.requestAnimationFrame(()=>{const N=Zd(h);C({...R(N),height:N})})}):window.requestAnimationFrame(()=>{Ja.flushSync(()=>y("exiting"));const N=Zd(h);C({...R(N),willChange:"height",height:N}),window.requestAnimationFrame(()=>C({height:0,overflow:"hidden"}))})},[s]);const j=N=>{if(!(N.target!==h.current||N.propertyName!=="height"))if(s){const E=Zd(h);E===p.height?w({}):C({height:E}),y("entered"),o==null||o()}else p.height===0&&(w(f),y("exited"),o==null||o())};return{state:g,getCollapseProps:N=>({"aria-hidden":!s,inert:!s,ref:Zm(h,N==null?void 0:N.ref),onTransitionEnd:j,style:{boxSizing:"border-box",...N==null?void 0:N.style,...p}})}}function lC(n){if(!n||typeof n=="string")return 0;const l=n/36;return Math.round((4+15*l**.25+l/5)*10)}function Qd(n){return n.current?n.current.scrollWidth:"auto"}function rC({transitionDuration:n,transitionTimingFunction:l="ease",onTransitionEnd:o,onTransitionStart:r,expanded:s,keepMounted:c}){const f={width:0,overflow:"hidden",...c?{}:{display:"none"}},m=x.useEffectEvent(()=>r==null?void 0:r()),h=x.useRef(null),[p,b]=x.useState(s?{}:f),[g,y]=x.useState(s?"entered":"exited"),w=N=>{Ja.flushSync(()=>b(N))},C=N=>{w(E=>({...E,...N}))},R=N=>{const E=n??lC(N);return{transition:`width ${E}ms ${l}, opacity ${E}ms ${l}`}};Eo(()=>{n!==0&&m(),s?window.requestAnimationFrame(()=>{Ja.flushSync(()=>y("entering")),C({willChange:"width",display:"block",overflow:"hidden"}),window.requestAnimationFrame(()=>{const N=Qd(h);C({...R(N),width:N})})}):window.requestAnimationFrame(()=>{Ja.flushSync(()=>y("exiting"));const N=Qd(h);C({...R(N),willChange:"width",width:N}),window.requestAnimationFrame(()=>C({width:0,overflow:"hidden"}))})},[s]);const j=N=>{if(!(N.target!==h.current||N.propertyName!=="width"))if(s){const E=Qd(h);E===p.width?w({}):C({width:E}),y("entered"),o==null||o()}else p.width===0&&(w(f),y("exited"),o==null||o())};return{state:g,getCollapseProps:N=>({"aria-hidden":!s,inert:!s,ref:Zm(h,N==null?void 0:N.ref),onTransitionEnd:j,style:{boxSizing:"border-box",...N==null?void 0:N.style,...p}})}}const oC=100;function uo(n){return n>0?1:n<0?-1:0}function e0(n){const l=n??0;return typeof l=="number"?[l,l]:l}function iC(){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 sC(n,l={}){const[o,r]=x.useState(!1),s=x.useRef(n);s.current=n;const c=x.useRef(l);c.current=l;const f=x.useRef(iC()),m=x.useRef(null);return{ref:x.useCallback(h=>{if(!h)return;const p=new AbortController,b=E=>{const _=c.current,D=f.current;if(_.axis==="x")return[E[0],0];if(_.axis==="y")return[0,E[1]];if(_.axis==="lock"){if(D.lockedAxis===null){const L=_.axisThreshold??1;(Math.abs(E[0])>L||Math.abs(E[1])>L)&&(D.lockedAxis=Math.abs(E[0])>=Math.abs(E[1])?"x":"y")}if(D.lockedAxis==="x")return[E[0],0];if(D.lockedAxis==="y")return[0,E[1]]}return E},g=()=>{var _;const E=f.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="",(_=m.current)==null||_.abort(),m.current=null},y=()=>{f.current.isActive&&(f.current.canceled=!0,g())},w=()=>{r(!0),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none"},C=E=>{var V;if(c.current.enabled===!1||E.button!==0||f.current.isActive)return;const _=f.current;_.isActive=!0,_.pointerId=E.pointerId,_.startXY=[E.clientX,E.clientY],_.prevXY=[E.clientX,E.clientY],_.startTimestamp=E.timeStamp,_.prevTimestamp=E.timeStamp,_.thresholdMet=!1,_.firstFired=!1,_.lockedAxis=null,_.canceled=!1,_.lastVelocity=[0,0];const[D,L]=e0(c.current.threshold);D===0&&L===0&&(_.thresholdMet=!0,_.firstFired=!0,w(),s.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:y,event:E})),(V=m.current)==null||V.abort(),m.current=new AbortController;const U=m.current.signal;document.addEventListener("pointermove",R,{signal:U}),document.addEventListener("pointerup",j,{signal:U}),document.addEventListener("pointercancel",N,{signal:U})},R=E=>{const _=f.current;if(!_.isActive||E.pointerId!==_.pointerId)return;const D=[E.clientX-_.startXY[0],E.clientY-_.startXY[1]];if(!_.thresholdMet){const[ae,te]=e0(c.current.threshold);if(Math.abs(D[0])0?[Math.abs(U[0])/V,Math.abs(U[1])/V]:_.lastVelocity;_.lastVelocity=k;const P=!_.firstFired;_.firstFired=!0,_.prevXY=[E.clientX,E.clientY],_.prevTimestamp=E.timeStamp,s.current({xy:[E.clientX,E.clientY],initial:[..._.startXY],movement:L,delta:U,distance:[Math.abs(L[0]),Math.abs(L[1])],direction:[uo(U[0]),uo(U[1])],velocity:k,elapsedTime:E.timeStamp-_.startTimestamp,first:P,last:!1,active:!0,tap:!1,canceled:!1,cancel:y,event:E})},j=E=>{const _=f.current;if(!_.isActive||E.pointerId!==_.pointerId)return;const D=c.current;if(!_.thresholdMet){if(D.filterTaps){const te=b([E.clientX-_.startXY[0],E.clientY-_.startXY[1]]),W=[Math.abs(te[0]),Math.abs(te[1])],oe=Math.max(W[0],W[1])<(D.tapThreshold??3);s.current({xy:[E.clientX,E.clientY],initial:[..._.startXY],movement:te,delta:te,distance:W,direction:[uo(te[0]),uo(te[1])],velocity:[0,0],elapsedTime:E.timeStamp-_.startTimestamp,first:!0,last:!0,active:!1,tap:oe,canceled:!1,cancel:y,event:E})}g();return}const L=b([E.clientX-_.startXY[0],E.clientY-_.startXY[1]]),U=[Math.abs(L[0]),Math.abs(L[1])],V=b([E.clientX-_.prevXY[0],E.clientY-_.prevXY[1]]),k=E.timeStamp-_.prevTimestamp>oC?[0,0]:_.lastVelocity,P=Math.max(U[0],U[1]),ae=D.filterTaps===!0&&P<(D.tapThreshold??3);s.current({xy:[E.clientX,E.clientY],initial:[..._.startXY],movement:L,delta:V,distance:U,direction:[uo(V[0]),uo(V[1])],velocity:k,elapsedTime:E.timeStamp-_.startTimestamp,first:!_.firstFired,last:!0,active:!1,tap:ae,canceled:!1,cancel:y,event:E}),g()},N=E=>{const _=f.current;if(!_.isActive||E.pointerId!==_.pointerId)return;const D=b([E.clientX-_.startXY[0],E.clientY-_.startXY[1]]);s.current({xy:[E.clientX,E.clientY],initial:[..._.startXY],movement:D,delta:[0,0],distance:[Math.abs(D[0]),Math.abs(D[1])],direction:[0,0],velocity:[0,0],elapsedTime:E.timeStamp-_.startTimestamp,first:!_.firstFired,last:!0,active:!1,tap:!1,canceled:!0,cancel:y,event:E}),g()};return h.addEventListener("pointerdown",C,{signal:p.signal}),()=>{var E;p.abort(),(E=m.current)==null||E.abort(),m.current=null,f.current.isActive&&(f.current.isActive=!1,r(!1),document.body.style.userSelect="",document.body.style.webkitUserSelect="")}},[]),active:o}}function Vc(n){var o;const l=Yt.version;return typeof Yt.version!="string"||l.startsWith("18.")?n==null?void 0:n.ref:(o=n==null?void 0:n.props)==null?void 0:o.ref}function bc(n,l=document){const o=l.querySelector(n);if(o)return o;const r=l.querySelectorAll("*");for(let s=0;s{Object.entries(o).forEach(([r,s])=>{l[r]?l[r]=zt(l[r],s):l[r]=s})}),l}function zi({theme:n,classNames:l,props:o,stylesCtx:r}){return uC((Array.isArray(l)?l:[l]).map(s=>typeof s=="function"?s(n,o,r):s||cC))}function Ac({theme:n,styles:l,props:o,stylesCtx:r}){const s=Array.isArray(l)?l:[l],c={};for(const f of s)typeof f=="function"?Object.assign(c,f(n,o,r)):f&&Object.assign(c,f);return c}function t0(n){return n==="auto"||n==="dark"||n==="light"}function fC({key:n="mantine-color-scheme-value"}={}){let l;return{get:o=>{if(typeof window>"u")return o;try{const r=window.localStorage.getItem(n);return t0(r)?r:o}catch{return o}},set:o=>{try{window.localStorage.setItem(n,o)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:o=>{l=r=>{r.storageArea===window.localStorage&&r.key===n&&t0(r.newValue)&&o(r.newValue)},window.addEventListener("storage",l)},unsubscribe:()=>{window.removeEventListener("storage",l)},clear:()=>{window.localStorage.removeItem(n)}}}function Bi(n,l){return typeof n.primaryShade=="number"?n.primaryShade:l==="dark"?n.primaryShade.dark:n.primaryShade.light}function dC(n){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(n)}function mC(n){let l=n.replace("#","");if(l.length===3){const r=l.split("");l=[r[0],r[0],r[1],r[1],r[2],r[2]].join("")}if(l.length===8){const r=parseInt(l.slice(6,8),16)/255;return{r:parseInt(l.slice(0,2),16),g:parseInt(l.slice(2,4),16),b:parseInt(l.slice(4,6),16),a:r}}const o=parseInt(l,16);return{r:o>>16&255,g:o>>8&255,b:o&255,a:1}}function hC(n){const[l,o,r,s]=n.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:l,g:o,b:r,a:s===void 0?1:s}}function pC(n){const l=n.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!l)return{r:0,g:0,b:0,a:1};const o=parseInt(l[1],10),r=parseInt(l[2],10)/100,s=parseInt(l[3],10)/100,c=l[5]?parseFloat(l[5]):void 0,f=(1-Math.abs(2*s-1))*r,m=o/60,h=f*(1-Math.abs(m%2-1)),p=s-f/2;let b,g,y;return m>=0&&m<1?(b=f,g=h,y=0):m>=1&&m<2?(b=h,g=f,y=0):m>=2&&m<3?(b=0,g=f,y=h):m>=3&&m<4?(b=0,g=h,y=f):m>=4&&m<5?(b=h,g=0,y=f):(b=f,g=0,y=h),{r:Math.round((b+p)*255),g:Math.round((g+p)*255),b:Math.round((y+p)*255),a:c||1}}function Qm(n){return dC(n)?mC(n):n.startsWith("rgb")?hC(n):n.startsWith("hsl")?pC(n):{r:0,g:0,b:0,a:1}}function Kd(n){return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}function vC(n){const l=n.match(/oklch\((.*?)%\s/);return l?parseFloat(l[1]):null}function gC(n){if(n.startsWith("oklch("))return(vC(n)||0)/100;const{r:l,g:o,b:r}=Qm(n),s=l/255,c=o/255,f=r/255,m=Kd(s),h=Kd(c),p=Kd(f);return .2126*m+.7152*h+.0722*p}function Ri(n,l=.179){return n.startsWith("var(")?!1:gC(n)>l}function Vi({color:n,theme:l,colorScheme:o}){if(typeof n!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof n}`);if(n==="bright")return{color:n,value:o==="dark"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Ri(o==="dark"?l.white:l.black,l.luminanceThreshold),variable:"--mantine-color-bright"};if(n==="dimmed")return{color:n,value:o==="dark"?l.colors.dark[2]:l.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Ri(o==="dark"?l.colors.dark[2]:l.colors.gray[6],l.luminanceThreshold),variable:"--mantine-color-dimmed"};if(n==="white"||n==="black")return{color:n,value:n==="white"?l.white:l.black,shade:void 0,isThemeColor:!1,isLight:Ri(n==="white"?l.white:l.black,l.luminanceThreshold),variable:`--mantine-color-${n}`};const[r,s]=n.split("."),c=s?Number(s):void 0,f=r in l.colors;if(f){const m=c!==void 0?l.colors[r][c]:l.colors[r][Bi(l,o||"light")];return{color:r,value:m,shade:c,isThemeColor:f,isLight:Ri(m,l.luminanceThreshold),variable:s?`--mantine-color-${r}-${c}`:`--mantine-color-${r}-filled`}}return{color:n,value:n,isThemeColor:f,isLight:Ri(n,l.luminanceThreshold),shade:c,variable:void 0}}function Fn(n,l){const o=Vi({color:n||l.primaryColor,theme:l});return o.variable?`var(${o.variable})`:n}function ur(n,l){if(n.startsWith("var("))return`color-mix(in srgb, ${n}, black ${l*100}%)`;const{r:o,g:r,b:s,a:c}=Qm(n),f=1-l,m=h=>Math.round(h*f);return`rgba(${m(o)}, ${m(r)}, ${m(s)}, ${c})`}function bm(n,l){const o={from:(n==null?void 0:n.from)||l.defaultGradient.from,to:(n==null?void 0:n.to)||l.defaultGradient.to,deg:(n==null?void 0:n.deg)??l.defaultGradient.deg??0},r=Fn(o.from,l),s=Fn(o.to,l);return`linear-gradient(${o.deg}deg, ${r} 0%, ${s} 100%)`}function Ol(n,l){if(typeof n!="string"||l>1||l<0)return"rgba(0, 0, 0, 1)";if(n.startsWith("var("))return`color-mix(in srgb, ${n}, transparent ${(1-l)*100}%)`;if(n.startsWith("oklch"))return n.includes("/")?n.replace(/\/\s*[\d.]+\s*\)/,`/ ${l})`):n.replace(")",` / ${l})`);const{r:o,g:r,b:s}=Qm(n);return`rgba(${o}, ${r}, ${s}, ${l})`}const n0=Ol,yC=({color:n,theme:l,variant:o,gradient:r,autoContrast:s})=>{const c=Vi({color:n,theme:l}),f=typeof s=="boolean"?s:l.autoContrast;if(o==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(o==="filled"){const m=f&&c.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return c.isThemeColor?c.shade===void 0?{background:`var(--mantine-color-${n}-filled)`,hover:`var(--mantine-color-${n}-filled-hover)`,color:m,border:`${F(1)} solid transparent`}:{background:`var(--mantine-color-${c.color}-${c.shade})`,hover:`var(--mantine-color-${c.color}-${c.shade===9?8:c.shade+1})`,color:m,border:`${F(1)} solid transparent`}:{background:n,hover:ur(n,.1),color:m,border:`${F(1)} solid transparent`}}if(o==="light"){if(c.isThemeColor){if(c.shade===void 0)return{background:`var(--mantine-color-${n}-light)`,hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${F(1)} solid transparent`};const m=l.colors[c.color][c.shade];return{background:m,hover:ur(m,.1),color:`var(--mantine-color-${c.color}-light-color)`,border:`${F(1)} solid transparent`}}return{background:Ol(n,.1),hover:Ol(n,.12),color:n,border:`${F(1)} solid transparent`}}if(o==="outline")return c.isThemeColor?c.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${n}-outline-hover)`,color:`var(--mantine-color-${n}-outline)`,border:`${F(1)} solid var(--mantine-color-${n}-outline)`}:{background:"transparent",hover:Ol(l.colors[c.color][c.shade],.05),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${F(1)} solid var(--mantine-color-${c.color}-${c.shade})`}:{background:"transparent",hover:Ol(n,.05),color:n,border:`${F(1)} solid ${n}`};if(o==="subtle"){if(c.isThemeColor){if(c.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${n}-light-hover)`,color:`var(--mantine-color-${n}-light-color)`,border:`${F(1)} solid transparent`};const m=l.colors[c.color][c.shade];return{background:"transparent",hover:Ol(m,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${F(1)} solid transparent`}}return{background:"transparent",hover:Ol(n,.12),color:n,border:`${F(1)} solid transparent`}}return o==="transparent"?c.isThemeColor?c.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${n}-light-color)`,border:`${F(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${F(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:n,border:`${F(1)} solid transparent`}:o==="white"?c.isThemeColor?c.shade===void 0?{background:"var(--mantine-color-white)",hover:ur(l.white,.01),color:`var(--mantine-color-${n}-filled)`,border:`${F(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:ur(l.white,.01),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${F(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:ur(l.white,.01),color:n,border:`${F(1)} solid transparent`}:o==="gradient"?{background:bm(r,l),hover:bm(r,l),color:"var(--mantine-color-white)",border:"none"}:o==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${F(1)} solid var(--mantine-color-default-border)`}:{}};function cb({color:n,theme:l,autoContrast:o}){return(typeof o=="boolean"?o:l.autoContrast)&&Vi({color:n||l.primaryColor,theme:l}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function a0(n,l){return cb({color:n.colors[n.primaryColor][Bi(n,l)],theme:n,autoContrast:null})}function bC(n,l){return typeof n=="boolean"?n:l.autoContrast}const ub=x.createContext(null);function Ra(){const n=x.use(ub);if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");return n}function SC(){return Ra().cssVariablesResolver}function xC(){return Ra().classNamesPrefix}function Km(){return Ra().getStyleNonce}function wC(){return Ra().withStaticClasses}function CC(){return Ra().headless}function EC(){var n;return(n=Ra().stylesTransform)==null?void 0:n.sx}function TC(){var n;return(n=Ra().stylesTransform)==null?void 0:n.styles}function kc(){return Ra().env||"default"}function RC(){return Ra().deduplicateInlineStyles}function fo(n,l){var s,c;const o=typeof window<"u"&&"matchMedia"in window&&((s=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:s.matches),r=n!=="auto"?n:o?"dark":"light";(c=l())==null||c.setAttribute("data-mantine-color-scheme",r)}function _C({manager:n,defaultColorScheme:l,getRootElement:o,forceColorScheme:r}){const s=x.useRef(null),[c,f]=x.useState(()=>n.get(l)),m=r||c,h=x.useCallback(b=>{r||(fo(b,o),f(b),n.set(b))},[n.set,m,r]),p=x.useCallback(()=>{f(l),fo(l,o),n.clear()},[n.clear,l]);return x.useEffect(()=>(n.subscribe(h),n.unsubscribe),[n.subscribe,n.unsubscribe]),wa(()=>{fo(n.get(l),o)},[]),x.useEffect(()=>{var g;if(r)return fo(r,o),()=>{};r===void 0&&fo(c,o),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const b=y=>{c==="auto"&&fo(y.matches?"dark":"light",o)};return(g=s.current)==null||g.addEventListener("change",b),()=>{var y;return(y=s.current)==null?void 0:y.removeEventListener("change",b)}},[c,r]),{colorScheme:m,setColorScheme:h,clearColorScheme:p}}const NC={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"]},l0="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Im={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:NC,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:yC,autoContrast:!1,luminanceThreshold:.3,fontFamily:l0,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:l0,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:F(34),lineHeight:"1.3"},h2:{fontSize:F(26),lineHeight:"1.35"},h3:{fontSize:F(22),lineHeight:"1.4"},h4:{fontSize:F(18),lineHeight:"1.45"},h5:{fontSize:F(16),lineHeight:"1.5"},h6:{fontSize:F(14),lineHeight:"1.5"}}},fontSizes:{xs:F(12),sm:F(14),md:F(16),lg:F(18),xl:F(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:F(2),sm:F(4),md:F(8),lg:F(16),xl:F(32)},spacing:{xs:F(10),sm:F(12),md:F(16),lg:F(20),xl:F(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), 0 ${F(1)} ${F(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(10)} ${F(15)} ${F(-5)}, rgba(0, 0, 0, 0.04) 0 ${F(7)} ${F(7)} ${F(-5)}`,md:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(20)} ${F(25)} ${F(-5)}, rgba(0, 0, 0, 0.04) 0 ${F(10)} ${F(10)} ${F(-5)}`,lg:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(28)} ${F(23)} ${F(-7)}, rgba(0, 0, 0, 0.04) 0 ${F(12)} ${F(12)} ${F(-7)}`,xl:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(36)} ${F(28)} ${F(-7)}, rgba(0, 0, 0, 0.04) 0 ${F(17)} ${F(17)} ${F(-7)}`},other:{},components:{}},jC="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",r0="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Id(n){return n<0||n>9?!1:parseInt(n.toString(),10)===n}function o0(n){if(!(n.primaryColor in n.colors))throw new Error(jC);if(typeof n.primaryShade=="object"&&(!Id(n.primaryShade.dark)||!Id(n.primaryShade.light)))throw new Error(r0);if(typeof n.primaryShade=="number"&&!Id(n.primaryShade))throw new Error(r0)}function AC(n,l){var r;if(!l)return o0(n),n;const o=Ym(n,l);return l.fontFamily&&!((r=l.headings)!=null&&r.fontFamily)&&(o.headings={...o.headings,fontFamily:l.fontFamily}),o0(o),o}const Fm=x.createContext(null),OC=()=>x.use(Fm)||Im;function Wn(){const n=x.use(Fm);if(!n)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return n}function fb({theme:n,children:l,inherit:o=!0}){const r=OC();return v.jsx(Fm,{value:x.useMemo(()=>AC(o?r:Im,n),[n,r,o]),children:l})}fb.displayName="@mantine/core/MantineThemeProvider";function Fd(n){return Object.entries(n).map(([l,o])=>`${l}: ${o};`).join("")}function db(n,l){const o=l?[l]:[":root",":host"],r=Fd(n.variables),s=r?`${o.join(", ")}{${r}}`:"",c=Fd(n.dark),f=Fd(n.light),m=h=>o.map(p=>p===":host"?`${p}([data-mantine-color-scheme="${h}"])`:`${p}[data-mantine-color-scheme="${h}"]`).join(", ");return`${s} ${c?`${m("dark")}{${c}}`:""} ${f?`${m("light")}{${f}}`:""}`}function fc({theme:n,color:l,colorScheme:o,name:r=l,withColorValues:s=!0}){if(!n.colors[l])return{};if(o==="light"){const m=Bi(n,"light"),h={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${m})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${m===9?8:m+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}-${m})`,[`--mantine-color-${r}-outline-hover`]:n0(n.colors[l][m],.05)};return s?{[`--mantine-color-${r}-0`]:n.colors[l][0],[`--mantine-color-${r}-1`]:n.colors[l][1],[`--mantine-color-${r}-2`]:n.colors[l][2],[`--mantine-color-${r}-3`]:n.colors[l][3],[`--mantine-color-${r}-4`]:n.colors[l][4],[`--mantine-color-${r}-5`]:n.colors[l][5],[`--mantine-color-${r}-6`]:n.colors[l][6],[`--mantine-color-${r}-7`]:n.colors[l][7],[`--mantine-color-${r}-8`]:n.colors[l][8],[`--mantine-color-${r}-9`]:n.colors[l][9],...h}:h}const c=Bi(n,"dark"),f={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${c})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${c===9?8:c+1})`,[`--mantine-color-${r}-light`]:ur(n.colors[l][9],.5),[`--mantine-color-${r}-light-hover`]:ur(n.colors[l][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(c-4,0)})`,[`--mantine-color-${r}-outline-hover`]:n0(n.colors[l][Math.max(c-4,0)],.05)};return s?{[`--mantine-color-${r}-0`]:n.colors[l][0],[`--mantine-color-${r}-1`]:n.colors[l][1],[`--mantine-color-${r}-2`]:n.colors[l][2],[`--mantine-color-${r}-3`]:n.colors[l][3],[`--mantine-color-${r}-4`]:n.colors[l][4],[`--mantine-color-${r}-5`]:n.colors[l][5],[`--mantine-color-${r}-6`]:n.colors[l][6],[`--mantine-color-${r}-7`]:n.colors[l][7],[`--mantine-color-${r}-8`]:n.colors[l][8],[`--mantine-color-${r}-9`]:n.colors[l][9],...f}:f}function MC(n){return!!n&&typeof n=="object"&&"mantine-virtual-color"in n}function or(n,l,o){Ft(l).forEach(r=>Object.assign(n,{[`--mantine-${o}-${r}`]:l[r]}))}const mb=n=>{const l=Bi(n,"light"),o=n.defaultRadius in n.radius?n.radius[n.defaultRadius]:F(n.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":n.scale.toString(),"--mantine-cursor-type":n.cursorType,"--mantine-webkit-font-smoothing":n.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":n.fontSmoothing?"grayscale":"unset","--mantine-color-white":n.white,"--mantine-color-black":n.black,"--mantine-line-height":n.lineHeights.md,"--mantine-font-family":n.fontFamily,"--mantine-font-family-monospace":n.fontFamilyMonospace,"--mantine-font-family-headings":n.headings.fontFamily,"--mantine-heading-font-weight":n.headings.fontWeight,"--mantine-heading-text-wrap":n.headings.textWrap,"--mantine-radius-default":o,"--mantine-primary-color-filled":`var(--mantine-color-${n.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${n.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${n.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${n.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${n.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":a0(n,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":n.black,"--mantine-color-body":n.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${n.primaryColor}-${l})`,"--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":a0(n,"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-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${n.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)"}};or(r.variables,n.breakpoints,"breakpoint"),or(r.variables,n.spacing,"spacing"),or(r.variables,n.fontSizes,"font-size"),or(r.variables,n.lineHeights,"line-height"),or(r.variables,n.shadows,"shadow"),or(r.variables,n.radius,"radius"),or(r.variables,n.fontWeights,"font-weight"),n.colors[n.primaryColor].forEach((c,f)=>{r.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${n.primaryColor}-${f})`}),Ft(n.colors).forEach(c=>{const f=n.colors[c];if(MC(f)){Object.assign(r.light,fc({theme:n,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,fc({theme:n,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0}));return}f.forEach((m,h)=>{r.variables[`--mantine-color-${c}-${h}`]=m}),Object.assign(r.light,fc({theme:n,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,fc({theme:n,color:c,colorScheme:"dark",withColorValues:!1}))});const s=n.headings.sizes;return Ft(s).forEach(c=>{r.variables[`--mantine-${c}-font-size`]=s[c].fontSize,r.variables[`--mantine-${c}-line-height`]=s[c].lineHeight,r.variables[`--mantine-${c}-font-weight`]=s[c].fontWeight||n.headings.fontWeight}),r};function DC(){const n=Wn(),l=Km(),o=Ft(n.breakpoints).reduce((r,s)=>{const c=n.breakpoints[s].includes("px"),f=vm(n.breakpoints[s]);return`${r}@media (max-width: ${c?`${f-.1}px`:_c(f-.1)}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${c?`${f}px`:_c(f)}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return v.jsx("style",{"data-mantine-styles":"classes",nonce:l==null?void 0:l(),dangerouslySetInnerHTML:{__html:o}})}function zC({theme:n,generator:l}){const o=mb(n),r=l==null?void 0:l(n);return r?Ym(o,r):o}const Jd=mb(Im);function BC(n){const l={variables:{},light:{},dark:{}};return Ft(n.variables).forEach(o=>{Jd.variables[o]!==n.variables[o]&&(l.variables[o]=n.variables[o])}),Ft(n.light).forEach(o=>{Jd.light[o]!==n.light[o]&&(l.light[o]=n.light[o])}),Ft(n.dark).forEach(o=>{Jd.dark[o]!==n.dark[o]&&(l.dark[o]=n.dark[o])}),l}function LC(n){return db({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},n)}function hb({cssVariablesSelector:n,deduplicateCssVariables:l}){const o=Wn(),r=Km(),s=zC({theme:o,generator:SC()}),c=(n===void 0||n===":root"||n===":host")&&l,f=db(c?BC(s):s,n);return f?v.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${f}${c?"":LC(n)}`}}):null}hb.displayName="@mantine/CssVariables";function HC({respectReducedMotion:n,getRootElement:l}){wa(()=>{var o;n&&((o=l())==null||o.setAttribute("data-respect-reduced-motion","true"))},[n])}function pb({theme:n,children:l,getStyleNonce:o,withStaticClasses:r=!0,withGlobalClasses:s=!0,deduplicateCssVariables:c=!0,withCssVariables:f=!0,cssVariablesSelector:m,classNamesPrefix:h="mantine",colorSchemeManager:p=fC(),defaultColorScheme:b="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:y,forceColorScheme:w,stylesTransform:C,env:R,deduplicateInlineStyles:j=!1}){const{colorScheme:N,setColorScheme:E,clearColorScheme:_}=_C({defaultColorScheme:b,forceColorScheme:w,manager:p,getRootElement:g});return HC({respectReducedMotion:(n==null?void 0:n.respectReducedMotion)||!1,getRootElement:g}),v.jsx(ub,{value:{colorScheme:N,setColorScheme:E,clearColorScheme:_,getRootElement:g,classNamesPrefix:h,getStyleNonce:o,cssVariablesResolver:y,cssVariablesSelector:m??":root",withStaticClasses:r,stylesTransform:C,env:R,deduplicateInlineStyles:j},children:v.jsxs(fb,{theme:n,children:[f&&v.jsx(hb,{cssVariablesSelector:m,deduplicateCssVariables:c}),s&&v.jsx(DC,{}),l]})})}pb.displayName="@mantine/core/MantineProvider";function ce(n,l,o){var f;const r=Wn(),s=(Array.isArray(n)?n:[n]).filter(Boolean);let c={};for(const m of s){const h=(f=r.components[m])==null?void 0:f.defaultProps,p=typeof h=="function"?h(r):h;p&&(c={...c,...p})}return{...l,...c,...Xm(o)}}function Yc({classNames:n,styles:l,props:o,stylesCtx:r}){const s=Wn();return{resolvedClassNames:n===void 0?void 0:zi({theme:s,classNames:n,props:o,stylesCtx:r||void 0}),resolvedStyles:l===void 0?void 0:Ac({theme:s,styles:l,props:o,stylesCtx:r||void 0})}}const $C={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function UC({theme:n,options:l,unstyled:o}){return zt((l==null?void 0:l.focusable)&&!o&&(n.focusClassName||$C[n.focusRing]),(l==null?void 0:l.active)&&!o&&n.activeClassName)}function VC({selector:n,stylesCtx:l,options:o,props:r,theme:s}){return zi({theme:s,classNames:o==null?void 0:o.classNames,props:(o==null?void 0:o.props)||r,stylesCtx:l})[n]}function kC({selector:n,stylesCtx:l,theme:o,classNames:r,props:s}){return zi({theme:o,classNames:r,props:s,stylesCtx:l})[n]}function YC({rootSelector:n,selector:l,className:o}){return n===l?o:void 0}function XC({selector:n,classes:l,unstyled:o}){return o?void 0:l[n]}function qC({themeName:n,classNamesPrefix:l,selector:o,withStaticClass:r}){return r===!1?[]:n.map(s=>`${l}-${s}-${o}`)}function GC({options:n,classes:l,selector:o,unstyled:r}){return n!=null&&n.variant&&!r?l[`${o}--${n.variant}`]:void 0}function ZC({theme:n,options:l,themeName:o,selector:r,classNamesPrefix:s,resolvedClassNames:c,resolvedThemeClassNames:f,classes:m,unstyled:h,className:p,rootSelector:b,props:g,stylesCtx:y,withStaticClasses:w,headless:C,transformedStyles:R}){return zt(UC({theme:n,options:l,unstyled:h||C}),f.map(j=>j[r]),GC({options:l,classes:m,selector:r,unstyled:h||C}),c[r],kC({selector:r,stylesCtx:y,theme:n,classNames:R,props:g}),VC({selector:r,stylesCtx:y,options:l,props:g,theme:n}),YC({rootSelector:b,selector:r,className:p}),XC({selector:r,classes:m,unstyled:h||C}),w&&!C&&qC({themeName:o,classNamesPrefix:s,selector:r,withStaticClass:l==null?void 0:l.withStaticClass}),l==null?void 0:l.className)}function Jm({style:n,theme:l}){return Array.isArray(n)?n.reduce((o,r)=>({...o,...Jm({style:r,theme:l})}),{}):typeof n=="function"?n(l):n??{}}function QC({theme:n,selector:l,options:o,props:r,stylesCtx:s,rootSelector:c,withStylesTransform:f,resolvedStyles:m,resolvedThemeStyles:h,resolvedVars:p,resolvedRootStyle:b}){return{...h[l],...m[l],...!f&&Ac({theme:n,styles:o==null?void 0:o.styles,props:(o==null?void 0:o.props)||r,stylesCtx:s})[l],...p[l],...c===l?b:null,...Jm({style:o==null?void 0:o.style,theme:n})}}function KC(n){return n.reduce((l,o)=>(o&&Object.keys(o).forEach(r=>{l[r]={...l[r],...Xm(o[r])}}),l),{})}function IC({props:n,stylesCtx:l,themeName:o,theme:r}){var f;const s=(f=TC())==null?void 0:f();return{getTransformedStyles:m=>s?[...m.map(h=>s(h,{props:n,theme:r,ctx:l})),...o.map(h=>{var p;return s((p=r.components[h])==null?void 0:p.styles,{props:n,theme:r,ctx:l})})].filter(Boolean):[],withStylesTransform:!!s}}function De({name:n,classes:l,props:o,stylesCtx:r,className:s,style:c,rootSelector:f="root",unstyled:m,classNames:h,styles:p,vars:b,varsResolver:g,attributes:y}){var ae;const w=Wn(),C=xC(),R=wC(),j=CC(),N=(Array.isArray(n)?n:[n]).filter(te=>te),{withStylesTransform:E,getTransformedStyles:_}=IC({props:o,stylesCtx:r,themeName:N,theme:w}),D=zi({theme:w,classNames:h,props:o,stylesCtx:r}),L=N.map(te=>{var W;return zi({theme:w,classNames:(W=w.components[te])==null?void 0:W.classNames,props:o,stylesCtx:r})}),U=E?{}:Ac({theme:w,styles:p,props:o,stylesCtx:r}),V={};if(!E)for(const te of N){const W=Ac({theme:w,styles:(ae=w.components[te])==null?void 0:ae.styles,props:o,stylesCtx:r});for(const oe of Object.keys(W))V[oe]={...V[oe],...W[oe]}}const k=KC([j?{}:g==null?void 0:g(w,o,r),...N.map(te=>{var W,oe,K;return(K=(oe=(W=w.components)==null?void 0:W[te])==null?void 0:oe.vars)==null?void 0:K.call(oe,w,o,r)}),b==null?void 0:b(w,o,r)]),P=Jm({style:c,theme:w});return(te,W)=>({...y==null?void 0:y[te],className:ZC({theme:w,options:W,themeName:N,selector:te,classNamesPrefix:C,resolvedClassNames:D,resolvedThemeClassNames:L,classes:l,unstyled:m,className:s,rootSelector:f,props:o,stylesCtx:r,withStaticClasses:R,headless:j,transformedStyles:_([W==null?void 0:W.styles,p])}),style:QC({theme:w,selector:te,options:W,props:o,stylesCtx:r,rootSelector:f,withStylesTransform:E,resolvedStyles:U,resolvedThemeStyles:V,resolvedVars:k,resolvedRootStyle:P})})}function Mi(n){return Ft(n).reduce((l,o)=>n[o]!==void 0?`${l}${H2(o)}:${n[o]};`:l,"").trim()}function FC({selector:n,styles:l,media:o,container:r}){const s=l?Mi(l):"",c=Array.isArray(o)?o.map(m=>`@media${m.query}{${n}{${Mi(m.styles)}}}`):[],f=Array.isArray(r)?r.map(m=>`@container ${m.query}{${n}{${Mi(m.styles)}}}`):[];return`${s?`${n}{${s}}`:""}${c.join("")}${f.join("")}`.trim()}function JC(n){let l=5381;for(let o=0;o>>0).toString(36)}function vb({deduplicate:n,...l}){const o=Km(),r=FC(l);return n?v.jsx("style",{href:`mantine-${JC(r)}`,precedence:"mantine",nonce:o==null?void 0:o(),children:r}):v.jsx("style",{"data-mantine-styles":"inline",nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:r}})}function PC(n){let l=5381;for(let o=0;o>>0).toString(36)}function WC(n,l){return`__mdi__-${PC(`${n?Mi(n):""}|${Array.isArray(l)?l.map(o=>`${o.query}:${Mi(o.styles)}`).join("|"):""}`)}`}function Xc(n){const{m:l,mx:o,my:r,mt:s,mb:c,ml:f,mr:m,me:h,ms:p,mis:b,mie:g,p:y,px:w,py:C,pt:R,pb:j,pl:N,pr:E,pe:_,ps:D,pis:L,pie:U,bd:V,bdrs:k,bg:P,c:ae,opacity:te,ff:W,fz:oe,fw:K,lts:ie,ta:O,lh:M,fs:B,tt:G,td:J,w:A,miw:H,maw:Q,h:ee,mih:se,mah:de,bgsz:pe,bgp:_e,bgr:Me,bga:He,pos:st,top:je,left:Qe,bottom:$e,right:Ce,inset:ct,display:me,flex:he,hiddenFrom:Ee,visibleFrom:Ae,lightHidden:Ye,darkHidden:Oe,sx:be,...Ue}=n;return{styleProps:Xm({m:l,mx:o,my:r,mt:s,mb:c,ml:f,mr:m,me:h,ms:p,mis:b,mie:g,p:y,px:w,py:C,pt:R,pb:j,pl:N,pr:E,pis:L,pie:U,pe:_,ps:D,bd:V,bg:P,c:ae,opacity:te,ff:W,fz:oe,fw:K,lts:ie,ta:O,lh:M,fs:B,tt:G,td:J,w:A,miw:H,maw:Q,h:ee,mih:se,mah:de,bgsz:pe,bgp:_e,bgr:Me,bga:He,pos:st,top:je,left:Qe,bottom:$e,right:Ce,inset:ct,display:me,flex:he,bdrs:k,hiddenFrom:Ee,visibleFrom:Ae,lightHidden:Ye,darkHidden:Oe,sx:be}),rest:Ue}}const eE={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 Pm(n,l){const o=Vi({color:n,theme:l});return o.color==="dimmed"?"var(--mantine-color-dimmed)":o.color==="bright"?"var(--mantine-color-bright)":o.variable?`var(${o.variable})`:o.color}function tE(n,l){const o=Vi({color:n,theme:l});return o.isThemeColor&&o.shade===void 0?`var(--mantine-color-${o.color}-text)`:Pm(n,l)}function nE(n,l){if(typeof n=="number")return F(n);if(typeof n=="string"){const[o,r,...s]=n.split(" ").filter(f=>f.trim()!=="");let c=`${F(o)}`;return r&&(c+=` ${r}`),s.length>0&&(c+=` ${Pm(s.join(" "),l)}`),c.trim()}return n}const i0={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 aE(n){return typeof n=="string"&&n in i0?i0[n]:n}const lE=["h1","h2","h3","h4","h5","h6"];function rE(n,l){return typeof n=="string"&&n in l.fontSizes?`var(--mantine-font-size-${n})`:typeof n=="string"&&lE.includes(n)?`var(--mantine-${n}-font-size)`:typeof n=="number"||typeof n=="string"?F(n):n}function oE(n){return n}const iE=["h1","h2","h3","h4","h5","h6"];function sE(n,l){return typeof n=="string"&&n in l.lineHeights?`var(--mantine-line-height-${n})`:typeof n=="string"&&iE.includes(n)?`var(--mantine-${n}-line-height)`:n}function cE(n,l){return typeof n=="string"&&n in l.radius?`var(--mantine-radius-${n})`:typeof n=="number"||typeof n=="string"?F(n):n}function uE(n){return typeof n=="number"?F(n):n}function fE(n,l){if(typeof n=="number")return F(n);if(typeof n=="string"){const o=n.replace("-","");if(!(o in l.spacing))return F(n);const r=`--mantine-spacing-${o}`;return n.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return n}const Pd={color:Pm,textColor:tE,fontSize:rE,spacing:fE,radius:cE,identity:oE,size:uE,lineHeight:sE,fontFamily:aE,border:nE};function s0(n){return n.replace("(min-width: ","").replace("em)","")}function dE({media:n,...l}){const o=Object.keys(n).sort((r,s)=>Number(s0(r))-Number(s0(s))).map(r=>({query:r,styles:n[r]}));return{...l,media:o}}function mE(n){if(typeof n!="object"||n===null)return!1;const l=Object.keys(n);return!(l.length===1&&l[0]==="base")}function hE(n){return typeof n=="object"&&n!==null?"base"in n?n.base:void 0:n}function pE(n){return typeof n=="object"&&n!==null?Ft(n).filter(l=>l!=="base"):[]}function vE(n,l){return typeof n=="object"&&n!==null&&l in n?n[l]:n}function gE({styleProps:n,data:l,theme:o}){return dE(Ft(n).reduce((r,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return r;const c=l[s],f=Array.isArray(c.property)?c.property:[c.property],m=hE(n[s]);if(!mE(n[s]))return f.forEach(p=>{r.inlineStyles[p]=Pd[c.type](m,o)}),r;r.hasResponsiveStyles=!0;const h=pE(n[s]);return f.forEach(p=>{m!=null&&(r.styles[p]=Pd[c.type](m,o)),h.forEach(b=>{const g=`(min-width: ${o.breakpoints[b]})`;r.media[g]={...r.media[g],[p]:Pd[c.type](vE(n[s],b),o)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function yE(){return`__m__-${x.useId().replace(/[:«»]/g,"")}`}function Li(n,l){return Array.isArray(n)?[...n].reduce((o,r)=>({...o,...Li(r,l)}),{}):typeof n=="function"?n(l):n??{}}function bE(n){return n}const SE=bE;function gb(n){return n}function ge(n){const l=n;return l.extend=gb,l.withProps=o=>{const r=s=>v.jsx(l,{...o,...s});return r.extend=l.extend,r.displayName=`WithProps(${l.displayName})`,r},l}function Wm(n){return ge(n)}function sn(n){const l=n;return l.withProps=o=>{const r=s=>v.jsx(l,{...o,...s});return r.extend=l.extend,r.displayName=`WithProps(${l.displayName})`,r},l.extend=gb,l}function yb(n){return`data-${(n.startsWith("data-")?n.slice(5):n).replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}`}function xE(n){return Object.keys(n).reduce((l,o)=>{const r=n[o];return r===void 0||r===""||r===!1||r===null||(l[yb(o)]=n[o]),l},{})}function bb(n){return n?typeof n=="string"?{[yb(n)]:!0}:Array.isArray(n)?[...n].reduce((l,o)=>({...l,...bb(o)}),{}):xE(n):null}function Sm(n,l){return Array.isArray(n)?[...n].reduce((o,r)=>({...o,...Sm(r,l)}),{}):typeof n=="function"?n(l):n??{}}function wE({theme:n,style:l,vars:o,styleProps:r}){const s=Sm(l,n),c=Sm(o,n);return{...s,...c,...r}}function Sb({component:n,style:l,__vars:o,className:r,variant:s,mod:c,size:f,hiddenFrom:m,visibleFrom:h,lightHidden:p,darkHidden:b,renderRoot:g,__size:y,ref:w,...C}){var P,ae;const R=Wn(),j=n||"div",{styleProps:N,rest:E}=Xc(C),_=(ae=(P=EC())==null?void 0:P())==null?void 0:ae(N.sx),D=yE(),L=gE({styleProps:N,theme:R,data:eE}),U=RC(),V=U&&L.hasResponsiveStyles?WC(L.styles,L.media):D,k={ref:w,style:wE({theme:R,style:l,vars:o,styleProps:L.inlineStyles}),className:zt(r,_,{[V]:L.hasResponsiveStyles,"mantine-light-hidden":p,"mantine-dark-hidden":b,[`mantine-hidden-from-${m}`]:m,[`mantine-visible-from-${h}`]:h}),"data-variant":s,"data-size":eb(f)?void 0:f||void 0,size:y,...bb(c),...E};return v.jsxs(v.Fragment,{children:[L.hasResponsiveStyles&&v.jsx(vb,{selector:`.${V}`,styles:L.styles,media:L.media,deduplicate:U}),typeof g=="function"?g(k):v.jsx(j,{...k})]})}Sb.displayName="@mantine/core/Box";const fe=SE(Sb),CE=x.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function To(){return x.use(CE)}const EE={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0,orientation:"vertical"},xb=ge(n=>{const{children:l,expanded:o,transitionDuration:r,transitionTimingFunction:s,style:c,onTransitionEnd:f,onTransitionStart:m,animateOpacity:h,keepMounted:p,ref:b,orientation:g,...y}=ce("Collapse",EE,n),w=kc(),C=Wn(),R=Uc(),j=C.respectReducedMotion&&R?0:r,N=(g==="horizontal"?rC:aC)({expanded:o,transitionDuration:j,transitionTimingFunction:s,onTransitionEnd:f,onTransitionStart:m,keepMounted:!1});if(j===0)return p===!0&&w!=="test"?v.jsx(x.Activity,{mode:o?"visible":"hidden",children:v.jsx(fe,{...y,children:l})}):o?v.jsx(fe,{...y,children:l}):null;const E=N.state==="exited";let _;return p===!1?_=E?null:l:p===!0?_=v.jsx(x.Activity,{mode:E?"hidden":"visible",children:l}):_=l,v.jsx(fe,{...y,...N.getCollapseProps({style:{opacity:o||!h?1:0,transition:h?`opacity ${j}ms ${s}`:"none",...Li(c,C)},ref:b}),children:_})});xb.displayName="@mantine/core/Collapse";const[TE,ea]=Ea("ScrollArea.Root component was not found in tree");function Ll(n,l){const o=x.useEffectEvent(l);wa(()=>{let r=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(o)});return s.observe(n),()=>{window.cancelAnimationFrame(r),s.unobserve(n)}}},[n])}function RE(n){const{style:l,...o}=n,r=ea(),[s,c]=x.useState(0),[f,m]=x.useState(0),h=!!(s&&f);return Ll(r.scrollbarX,()=>{var b;const p=((b=r.scrollbarX)==null?void 0:b.offsetHeight)||0;r.onCornerHeightChange(p),m(p)}),Ll(r.scrollbarY,()=>{var b;const p=((b=r.scrollbarY)==null?void 0:b.offsetWidth)||0;r.onCornerWidthChange(p),c(p)}),h?v.jsx("div",{...o,style:{...l,width:s,height:f}}):null}function _E(n){const l=ea(),o=!!(l.scrollbarX&&l.scrollbarY);return l.type!=="scroll"&&o?v.jsx(RE,{...n}):null}const NE={scrollHideDelay:1e3,type:"hover"};function wb(n){const{type:l,scrollHideDelay:o,scrollbars:r,getStyles:s,ref:c,...f}=ce("ScrollAreaRoot",NE,n),[m,h]=x.useState(null),[p,b]=x.useState(null),[g,y]=x.useState(null),[w,C]=x.useState(null),[R,j]=x.useState(null),[N,E]=x.useState(0),[_,D]=x.useState(0),[L,U]=x.useState(!1),[V,k]=x.useState(!1),P=en(c,h);return v.jsx(TE,{value:{type:l,scrollHideDelay:o,scrollArea:m,viewport:p,onViewportChange:b,content:g,onContentChange:y,scrollbarX:w,onScrollbarXChange:C,scrollbarXEnabled:L,onScrollbarXEnabledChange:U,scrollbarY:R,onScrollbarYChange:j,scrollbarYEnabled:V,onScrollbarYEnabledChange:k,onCornerWidthChange:E,onCornerHeightChange:D,getStyles:s},children:v.jsx(fe,{...f,ref:P,__vars:{"--sa-corner-width":r!=="xy"?"0px":`${N}px`,"--sa-corner-height":r!=="xy"?"0px":`${_}px`}})})}wb.displayName="@mantine/core/ScrollAreaRoot";function Cb(n,l){const o=n/l;return Number.isNaN(o)?0:o}function qc(n){const l=Cb(n.viewport,n.content),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,r=(n.scrollbar.size-o)*l;return Math.max(r,18)}function Eb(n,l){return o=>{if(n[0]===n[1]||l[0]===l[1])return l[0];const r=(l[1]-l[0])/(n[1]-n[0]);return l[0]+r*(o-n[0])}}function jE(n,[l,o]){return Math.min(o,Math.max(l,n))}function c0(n,l,o="ltr"){const r=qc(l),s=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,c=l.scrollbar.size-s,f=l.content-l.viewport,m=c-r,h=jE(n,o==="ltr"?[0,f]:[f*-1,0]);return Eb([0,f],[0,m])(h)}function AE(n,l,o,r="ltr"){const s=qc(o),c=s/2,f=l||c,m=s-f,h=o.scrollbar.paddingStart+f,p=o.scrollbar.size-o.scrollbar.paddingEnd-m,b=o.content-o.viewport,g=r==="ltr"?[0,b]:[b*-1,0];return Eb([h,p],g)(n)}function Tb(n,l){return n>0&&n{n==null||n(r),(o===!1||!r.defaultPrevented)&&(l==null||l(r))}}const[OE,Rb]=Ea("ScrollAreaScrollbar was not found in tree");function _b(n){const{sizes:l,hasThumb:o,onThumbChange:r,onThumbPointerUp:s,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:m,onWheelScroll:h,onResize:p,ref:b,...g}=n,y=ea(),[w,C]=x.useState(null),R=en(b,C),j=x.useRef(null),N=x.useRef(""),{viewport:E}=y,_=l.content-l.viewport,D=x.useEffectEvent(h),L=Ni(f),U=$c(p,10),V=k=>{j.current&&m({x:k.clientX-j.current.left,y:k.clientY-j.current.top})};return x.useEffect(()=>{const k=P=>{const ae=P.target;w!=null&&w.contains(ae)&&D(P,_)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[E,w,_]),x.useEffect(L,[l,L]),Ll(w,U),Ll(y.content,U),v.jsx(OE,{value:{scrollbar:w,hasThumb:o,onThumbChange:Ni(r),onThumbPointerUp:Ni(s),onThumbPositionChange:L,onThumbPointerDown:Ni(c)},children:v.jsx("div",{...g,ref:R,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:hr(n.onPointerDown,k=>{k.preventDefault(),k.button===0&&(k.target.setPointerCapture(k.pointerId),j.current=w.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",V(k))}),onPointerMove:hr(n.onPointerMove,V),onPointerUp:hr(n.onPointerUp,k=>{const P=k.target;P.hasPointerCapture(k.pointerId)&&(k.preventDefault(),P.releasePointerCapture(k.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=N.current,j.current=null}})})}const Nb=n=>{const{sizes:l,onSizesChange:o,style:r,ref:s,...c}=n,f=ea(),[m,h]=x.useState(),p=x.useRef(null),b=en(s,p,f.onScrollbarXChange);return x.useEffect(()=>{p.current&&h(getComputedStyle(p.current))},[p]),v.jsx(_b,{"data-orientation":"horizontal",...c,ref:b,sizes:l,style:{...r,"--sa-thumb-width":`${qc(l)}px`},onThumbPointerDown:g=>n.onThumbPointerDown(g.x),onDragScroll:g=>n.onDragScroll(g.x),onWheelScroll:(g,y)=>{if(f.viewport){const w=f.viewport.scrollLeft+g.deltaX;n.onWheelScroll(w),Tb(w,y)&&g.preventDefault()}},onResize:()=>{p.current&&f.viewport&&m&&o({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Oc(m.paddingLeft),paddingEnd:Oc(m.paddingRight)}})}})};Nb.displayName="@mantine/core/ScrollAreaScrollbarX";function jb(n){const{sizes:l,onSizesChange:o,style:r,ref:s,...c}=n,f=ea(),[m,h]=x.useState(),p=x.useRef(null),b=en(s,p,f.onScrollbarYChange);return x.useEffect(()=>{p.current&&h(window.getComputedStyle(p.current))},[]),v.jsx(_b,{...c,"data-orientation":"vertical",ref:b,sizes:l,style:{"--sa-thumb-height":`${qc(l)}px`,...r},onThumbPointerDown:g=>n.onThumbPointerDown(g.y),onDragScroll:g=>n.onDragScroll(g.y),onWheelScroll:(g,y)=>{if(f.viewport){const w=f.viewport.scrollTop+g.deltaY;n.onWheelScroll(w),Tb(w,y)&&g.preventDefault()}},onResize:()=>{p.current&&f.viewport&&m&&o({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Oc(m.paddingTop),paddingEnd:Oc(m.paddingBottom)}})}})}jb.displayName="@mantine/core/ScrollAreaScrollbarY";function Gc(n){const{orientation:l="vertical",...o}=n,{dir:r}=To(),s=ea(),c=x.useRef(null),f=x.useRef(0),[m,h]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=Cb(m.viewport,m.content),b={...o,sizes:m,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:y=>{c.current=y},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:y=>{f.current=y}},g=(y,w)=>AE(y,f.current,m,w);return l==="horizontal"?v.jsx(Nb,{...b,onThumbPositionChange:()=>{if(s.viewport&&c.current){const y=s.viewport.scrollLeft,w=c0(y,m,r);c.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:y=>{s.viewport&&(s.viewport.scrollLeft=y)},onDragScroll:y=>{s.viewport&&(s.viewport.scrollLeft=g(y,r))}}):l==="vertical"?v.jsx(jb,{...b,onThumbPositionChange:()=>{if(s.viewport&&c.current){const y=s.viewport.scrollTop,w=c0(y,m);m.scrollbar.size===0?c.current.style.setProperty("--thumb-opacity","0"):c.current.style.setProperty("--thumb-opacity","1"),c.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:y=>{s.viewport&&(s.viewport.scrollTop=y)},onDragScroll:y=>{s.viewport&&(s.viewport.scrollTop=g(y))}}):null}Gc.displayName="@mantine/core/ScrollAreaScrollbarVisible";function eh(n){const l=ea(),{forceMount:o,...r}=n,[s,c]=x.useState(!1),f=n.orientation==="horizontal",m=$c(()=>{if(l.viewport){const h=l.viewport.offsetWidth{const{scrollArea:f}=r;let m=0;if(f){const h=()=>{window.clearTimeout(m),c(!0)},p=()=>{m=window.setTimeout(()=>c(!1),r.scrollHideDelay)};return f.addEventListener("pointerenter",h),f.addEventListener("pointerleave",p),()=>{window.clearTimeout(m),f.removeEventListener("pointerenter",h),f.removeEventListener("pointerleave",p)}}},[r.scrollArea,r.scrollHideDelay]),l||s?v.jsx(eh,{"data-state":s?"visible":"hidden",...o}):null}Ab.displayName="@mantine/core/ScrollAreaScrollbarHover";function ME(n){const{forceMount:l,...o}=n,r=ea(),s=n.orientation==="horizontal",[c,f]=x.useState("hidden"),m=$c(()=>f("idle"),100);return x.useEffect(()=>{if(c==="idle"){const h=window.setTimeout(()=>f("hidden"),r.scrollHideDelay);return()=>window.clearTimeout(h)}},[c,r.scrollHideDelay]),x.useEffect(()=>{const{viewport:h}=r,p=s?"scrollLeft":"scrollTop";if(h){let b=h[p];const g=()=>{const y=h[p];b!==y&&(f("scrolling"),m()),b=y};return h.addEventListener("scroll",g),()=>h.removeEventListener("scroll",g)}},[r.viewport,s,m]),l||c!=="hidden"?v.jsx(Gc,{"data-state":c==="hidden"?"hidden":"visible",...o,onPointerEnter:hr(n.onPointerEnter,()=>f("interacting")),onPointerLeave:hr(n.onPointerLeave,()=>f("idle"))}):null}function xm(n){const{forceMount:l,...o}=n,r=ea(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=r,f=n.orientation==="horizontal";return x.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),r.type==="hover"?v.jsx(Ab,{...o,forceMount:l}):r.type==="scroll"?v.jsx(ME,{...o,forceMount:l}):r.type==="auto"?v.jsx(eh,{...o,forceMount:l}):r.type==="always"?v.jsx(Gc,{...o}):null}xm.displayName="@mantine/core/ScrollAreaScrollbar";function DE(n,l=()=>{}){let o={left:n.scrollLeft,top:n.scrollTop},r=0;return(function s(){const c={left:n.scrollLeft,top:n.scrollTop},f=o.left!==c.left,m=o.top!==c.top;(f||m)&&l(),o=c,r=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(r)}function Ob(n){const{style:l,ref:o,...r}=n,s=ea(),c=Rb(),{onThumbPositionChange:f}=c,m=en(o,c.onThumbChange),h=x.useRef(void 0),p=$c(()=>{h.current&&(h.current(),h.current=void 0)},100);return x.useEffect(()=>{const{viewport:b}=s;if(b){const g=()=>{p(),h.current||(h.current=DE(b,f),f())};return f(),b.addEventListener("scroll",g),()=>b.removeEventListener("scroll",g)}},[s.viewport,p,f]),v.jsx("div",{"data-state":c.hasThumb?"visible":"hidden",...r,ref:m,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...l},onPointerDownCapture:hr(n.onPointerDownCapture,b=>{const g=b.target.getBoundingClientRect(),y=b.clientX-g.left,w=b.clientY-g.top;c.onThumbPointerDown({x:y,y:w})}),onPointerUp:hr(n.onPointerUp,c.onThumbPointerUp)})}Ob.displayName="@mantine/core/ScrollAreaThumb";function wm(n){const{forceMount:l,...o}=n,r=Rb();return l||r.hasThumb?v.jsx(Ob,{...o}):null}wm.displayName="@mantine/core/ScrollAreaThumb";function Mb({children:n,style:l,ref:o,onWheel:r,...s}){const c=ea(),f=en(o,c.onViewportChange),m=h=>{if(r==null||r(h),c.scrollbarXEnabled&&c.viewport&&h.shiftKey){const{scrollTop:p,scrollHeight:b,clientHeight:g,scrollWidth:y,clientWidth:w}=c.viewport,C=p<1,R=p>=b-g-1;y>w&&(C||R)&&h.stopPropagation()}};return v.jsx(fe,{...s,ref:f,onWheel:m,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...l},children:v.jsx("div",{...c.getStyles("content"),ref:c.onContentChange,children:n})})}Mb.displayName="@mantine/core/ScrollAreaViewport";var th={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};function Zc(){return typeof window<"u"}function Ro(n){return Db(n)?(n.nodeName||"").toLowerCase():"#document"}function xn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function _a(n){var l;return(l=(Db(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Db(n){return Zc()?n instanceof Node||n instanceof xn(n).Node:!1}function vt(n){return Zc()?n instanceof Element||n instanceof xn(n).Element:!1}function ta(n){return Zc()?n instanceof HTMLElement||n instanceof xn(n).HTMLElement:!1}function Cm(n){return!Zc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof xn(n).ShadowRoot}function ki(n){const{overflow:l,overflowX:o,overflowY:r,display:s}=Pn(n);return/auto|scroll|overlay|hidden|clip/.test(l+r+o)&&s!=="inline"&&s!=="contents"}function zE(n){return/^(table|td|th)$/.test(Ro(n))}function Qc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const BE=/transform|translate|scale|rotate|perspective|filter/,LE=/paint|layout|strict|content/,ir=n=>!!n&&n!=="none";let Wd;function nh(n){const l=vt(n)?Pn(n):n;return ir(l.transform)||ir(l.translate)||ir(l.scale)||ir(l.rotate)||ir(l.perspective)||!Kc()&&(ir(l.backdropFilter)||ir(l.filter))||BE.test(l.willChange||"")||LE.test(l.contain||"")}function HE(n){let l=tl(n);for(;ta(l)&&!Pa(l);){if(nh(l))return l;if(Qc(l))return null;l=tl(l)}return null}function Kc(){return Wd==null&&(Wd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wd}function Pa(n){return/^(html|body|#document)$/.test(Ro(n))}function Pn(n){return xn(n).getComputedStyle(n)}function Ic(n){return vt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function tl(n){if(Ro(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Cm(n)&&n.host||_a(n);return Cm(l)?l.host:l}function zb(n){const l=tl(n);return Pa(l)?n.ownerDocument?n.ownerDocument.body:n.body:ta(l)&&ki(l)?l:zb(l)}function Wa(n,l,o){var r;l===void 0&&(l=[]),o===void 0&&(o=!0);const s=zb(n),c=s===((r=n.ownerDocument)==null?void 0:r.body),f=xn(s);if(c){const m=Em(f);return l.concat(f,f.visualViewport||[],ki(s)?s:[],m&&o?Wa(m):[])}else return l.concat(s,Wa(s,[],o))}function Em(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const $E=["top","right","bottom","left"],fa=Math.min,Pt=Math.max,Mc=Math.round,dc=Math.floor,Sa=n=>({x:n,y:n}),UE={left:"right",right:"left",bottom:"top",top:"bottom"};function Tm(n,l,o){return Pt(n,fa(l,o))}function Ca(n,l){return typeof n=="function"?n(l):n}function da(n){return n.split("-")[0]}function _o(n){return n.split("-")[1]}function ah(n){return n==="x"?"y":"x"}function lh(n){return n==="y"?"height":"width"}function sa(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function rh(n){return ah(sa(n))}function VE(n,l,o){o===void 0&&(o=!1);const r=_o(n),s=rh(n),c=lh(s);let f=s==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return l.reference[c]>l.floating[c]&&(f=Dc(f)),[f,Dc(f)]}function kE(n){const l=Dc(n);return[Rm(n),l,Rm(l)]}function Rm(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const u0=["left","right"],f0=["right","left"],YE=["top","bottom"],XE=["bottom","top"];function qE(n,l,o){switch(n){case"top":case"bottom":return o?l?f0:u0:l?u0:f0;case"left":case"right":return l?YE:XE;default:return[]}}function GE(n,l,o,r){const s=_o(n);let c=qE(da(n),o==="start",r);return s&&(c=c.map(f=>f+"-"+s),l&&(c=c.concat(c.map(Rm)))),c}function Dc(n){const l=da(n);return UE[l]+n.slice(l.length)}function ZE(n){return{top:0,right:0,bottom:0,left:0,...n}}function oh(n){return typeof n!="number"?ZE(n):{top:n,right:n,bottom:n,left:n}}function So(n){const{x:l,y:o,width:r,height:s}=n;return{width:r,height:s,top:o,left:l,right:l+r,bottom:o+s,x:l,y:o}}function QE(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function KE(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(l=>{let{brand:o,version:r}=l;return o+"/"+r}).join(" "):navigator.userAgent}function IE(){return/apple/i.test(navigator.vendor)}function FE(){return QE().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function JE(){return KE().includes("jsdom/")}const d0="data-floating-ui-focusable",PE="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function m0(n){let l=n.activeElement;for(;((o=l)==null||(o=o.shadowRoot)==null?void 0:o.activeElement)!=null;){var o;l=l.shadowRoot.activeElement}return l}function Hi(n,l){if(!n||!l)return!1;const o=l.getRootNode==null?void 0:l.getRootNode();if(n.contains(l))return!0;if(o&&Cm(o)){let r=l;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function vo(n){return"composedPath"in n?n.composedPath()[0]:n.target}function em(n,l){if(l==null)return!1;if("composedPath"in n)return n.composedPath().includes(l);const o=n;return o.target!=null&&l.contains(o.target)}function WE(n){return n.matches("html,body")}function dr(n){return(n==null?void 0:n.ownerDocument)||document}function eT(n){return ta(n)&&n.matches(PE)}function tT(n){if(!n||JE())return!0;try{return n.matches(":focus-visible")}catch{return!0}}function nT(n){return n?n.hasAttribute(d0)?n:n.querySelector("["+d0+"]")||n:null}function Sc(n,l,o){return o===void 0&&(o=!0),n.filter(s=>{var c;return s.parentId===l&&(!o||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Sc(n,s.id,o)])}function aT(n){return"nativeEvent"in n}function _m(n,l){const o=["mouse","pen"];return o.push("",void 0),o.includes(n)}var lT=typeof document<"u",rT=function(){},xa=lT?x.useLayoutEffect:rT;const oT={...J0};function mc(n){const l=x.useRef(n);return xa(()=>{l.current=n}),l}const iT=oT.useInsertionEffect,sT=iT||(n=>n());function ya(n){const l=x.useRef(()=>{});return sT(()=>{l.current=n}),x.useCallback(function(){for(var o=arguments.length,r=new Array(o),s=0;s{const{placement:r="bottom",strategy:s="absolute",middleware:c=[],platform:f}=o,m=f.detectOverflow?f:{...f,detectOverflow:cT},h=await(f.isRTL==null?void 0:f.isRTL(l));let p=await f.getElementRects({reference:n,floating:l,strategy:s}),{x:b,y:g}=h0(p,r,h),y=r,w=0;const C={};for(let R=0;R({name:"arrow",options:n,async fn(l){const{x:o,y:r,placement:s,rects:c,platform:f,elements:m,middlewareData:h}=l,{element:p,padding:b=0}=Ca(n,l)||{};if(p==null)return{};const g=oh(b),y={x:o,y:r},w=rh(s),C=lh(w),R=await f.getDimensions(p),j=w==="y",N=j?"top":"left",E=j?"bottom":"right",_=j?"clientHeight":"clientWidth",D=c.reference[C]+c.reference[w]-y[w]-c.floating[C],L=y[w]-c.reference[w],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let V=U?U[_]:0;(!V||!await(f.isElement==null?void 0:f.isElement(U)))&&(V=m.floating[_]||c.floating[C]);const k=D/2-L/2,P=V/2-R[C]/2-1,ae=fa(g[N],P),te=fa(g[E],P),W=ae,oe=V-R[C]-te,K=V/2-R[C]/2+k,ie=Tm(W,K,oe),O=!h.arrow&&_o(s)!=null&&K!==ie&&c.reference[C]/2-(KK<=0)){var te,W;const K=(((te=c.flip)==null?void 0:te.index)||0)+1,ie=V[K];if(ie&&(!(g==="alignment"?E!==sa(ie):!1)||ae.every(B=>sa(B.placement)===E?B.overflows[0]>0:!0)))return{data:{index:K,overflows:ae},reset:{placement:ie}};let O=(W=ae.filter(M=>M.overflows[0]<=0).sort((M,B)=>M.overflows[1]-B.overflows[1])[0])==null?void 0:W.placement;if(!O)switch(w){case"bestFit":{var oe;const M=(oe=ae.filter(B=>{if(U){const G=sa(B.placement);return G===E||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,J)=>G+J,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:oe[0];M&&(O=M);break}case"initialPlacement":O=m;break}if(s!==O)return{reset:{placement:O}}}return{}}}};function p0(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function v0(n){return $E.some(l=>n[l]>=0)}const hT=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:r}=l,{strategy:s="referenceHidden",...c}=Ca(n,l);switch(s){case"referenceHidden":{const f=await r.detectOverflow(l,{...c,elementContext:"reference"}),m=p0(f,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:v0(m)}}}case"escaped":{const f=await r.detectOverflow(l,{...c,altBoundary:!0}),m=p0(f,o.floating);return{data:{escapedOffsets:m,escaped:v0(m)}}}default:return{}}}}};function Bb(n){const l=fa(...n.map(c=>c.left)),o=fa(...n.map(c=>c.top)),r=Pt(...n.map(c=>c.right)),s=Pt(...n.map(c=>c.bottom));return{x:l,y:o,width:r-l,height:s-o}}function pT(n){const l=n.slice().sort((s,c)=>s.y-c.y),o=[];let r=null;for(let s=0;sr.height/2?o.push([c]):o[o.length-1].push(c),r=c}return o.map(s=>So(Bb(s)))}const vT=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(l){const{placement:o,elements:r,rects:s,platform:c,strategy:f}=l,{padding:m=2,x:h,y:p}=Ca(n,l),b=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(r.reference))||[]),g=pT(b),y=So(Bb(b)),w=oh(m);function C(){if(g.length===2&&g[0].left>g[1].right&&h!=null&&p!=null)return g.find(j=>h>j.left-w.left&&hj.top-w.top&&p=2){if(sa(o)==="y"){const ae=g[0],te=g[g.length-1],W=da(o)==="top",oe=ae.top,K=te.bottom,ie=W?ae.left:te.left,O=W?ae.right:te.right,M=O-ie,B=K-oe;return{top:oe,bottom:K,left:ie,right:O,width:M,height:B,x:ie,y:oe}}const j=da(o)==="left",N=Pt(...g.map(ae=>ae.right)),E=fa(...g.map(ae=>ae.left)),_=g.filter(ae=>j?ae.left===E:ae.right===N),D=_[0].top,L=_[_.length-1].bottom,U=E,V=N,k=V-U,P=L-D;return{top:D,bottom:L,left:U,right:V,width:k,height:P,x:U,y:D}}return y}const R=await c.getElementRects({reference:{getBoundingClientRect:C},floating:r.floating,strategy:f});return s.reference.x!==R.reference.x||s.reference.y!==R.reference.y||s.reference.width!==R.reference.width||s.reference.height!==R.reference.height?{reset:{rects:R}}:{}}}},Lb=new Set(["left","top"]);async function gT(n,l){const{placement:o,platform:r,elements:s}=n,c=await(r.isRTL==null?void 0:r.isRTL(s.floating)),f=da(o),m=_o(o),h=sa(o)==="y",p=Lb.has(f)?-1:1,b=c&&h?-1:1,g=Ca(l,n);let{mainAxis:y,crossAxis:w,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof C=="number"&&(w=m==="end"?C*-1:C),h?{x:w*b,y:y*p}:{x:y*p,y:w*b}}const yT=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,r;const{x:s,y:c,placement:f,middlewareData:m}=l,h=await gT(l,n);return f===((o=m.offset)==null?void 0:o.placement)&&(r=m.arrow)!=null&&r.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},bT=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:r,placement:s,platform:c}=l,{mainAxis:f=!0,crossAxis:m=!1,limiter:h={fn:N=>{let{x:E,y:_}=N;return{x:E,y:_}}},...p}=Ca(n,l),b={x:o,y:r},g=await c.detectOverflow(l,p),y=sa(da(s)),w=ah(y);let C=b[w],R=b[y];if(f){const N=w==="y"?"top":"left",E=w==="y"?"bottom":"right",_=C+g[N],D=C-g[E];C=Tm(_,C,D)}if(m){const N=y==="y"?"top":"left",E=y==="y"?"bottom":"right",_=R+g[N],D=R-g[E];R=Tm(_,R,D)}const j=h.fn({...l,[w]:C,[y]:R});return{...j,data:{x:j.x-o,y:j.y-r,enabled:{[w]:f,[y]:m}}}}}},ST=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:r,placement:s,rects:c,middlewareData:f}=l,{offset:m=0,mainAxis:h=!0,crossAxis:p=!0}=Ca(n,l),b={x:o,y:r},g=sa(s),y=ah(g);let w=b[y],C=b[g];const R=Ca(m,l),j=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(h){const _=y==="y"?"height":"width",D=c.reference[y]-c.floating[_]+j.mainAxis,L=c.reference[y]+c.reference[_]-j.mainAxis;wL&&(w=L)}if(p){var N,E;const _=y==="y"?"width":"height",D=Lb.has(da(s)),L=c.reference[g]-c.floating[_]+(D&&((N=f.offset)==null?void 0:N[g])||0)+(D?0:j.crossAxis),U=c.reference[g]+c.reference[_]+(D?0:((E=f.offset)==null?void 0:E[g])||0)-(D?j.crossAxis:0);CU&&(C=U)}return{[y]:w,[g]:C}}}},xT=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,r;const{placement:s,rects:c,platform:f,elements:m}=l,{apply:h=()=>{},...p}=Ca(n,l),b=await f.detectOverflow(l,p),g=da(s),y=_o(s),w=sa(s)==="y",{width:C,height:R}=c.floating;let j,N;g==="top"||g==="bottom"?(j=g,N=y===(await(f.isRTL==null?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(N=g,j=y==="end"?"top":"bottom");const E=R-b.top-b.bottom,_=C-b.left-b.right,D=fa(R-b[j],E),L=fa(C-b[N],_),U=!l.middlewareData.shift;let V=D,k=L;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(k=_),(r=l.middlewareData.shift)!=null&&r.enabled.y&&(V=E),U&&!y){const ae=Pt(b.left,0),te=Pt(b.right,0),W=Pt(b.top,0),oe=Pt(b.bottom,0);w?k=C-2*(ae!==0||te!==0?ae+te:Pt(b.left,b.right)):V=R-2*(W!==0||oe!==0?W+oe:Pt(b.top,b.bottom))}await h({...l,availableWidth:k,availableHeight:V});const P=await f.getDimensions(m.floating);return C!==P.width||R!==P.height?{reset:{rects:!0}}:{}}}};function Hb(n){const l=Pn(n);let o=parseFloat(l.width)||0,r=parseFloat(l.height)||0;const s=ta(n),c=s?n.offsetWidth:o,f=s?n.offsetHeight:r,m=Mc(o)!==c||Mc(r)!==f;return m&&(o=c,r=f),{width:o,height:r,$:m}}function ih(n){return vt(n)?n:n.contextElement}function yo(n){const l=ih(n);if(!ta(l))return Sa(1);const o=l.getBoundingClientRect(),{width:r,height:s,$:c}=Hb(l);let f=(c?Mc(o.width):o.width)/r,m=(c?Mc(o.height):o.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const wT=Sa(0);function $b(n){const l=xn(n);return!Kc()||!l.visualViewport?wT:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function CT(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==xn(n)?!1:l}function vr(n,l,o,r){l===void 0&&(l=!1),o===void 0&&(o=!1);const s=n.getBoundingClientRect(),c=ih(n);let f=Sa(1);l&&(r?vt(r)&&(f=yo(r)):f=yo(n));const m=CT(c,o,r)?$b(c):Sa(0);let h=(s.left+m.x)/f.x,p=(s.top+m.y)/f.y,b=s.width/f.x,g=s.height/f.y;if(c){const y=xn(c),w=r&&vt(r)?xn(r):r;let C=y,R=Em(C);for(;R&&r&&w!==C;){const j=yo(R),N=R.getBoundingClientRect(),E=Pn(R),_=N.left+(R.clientLeft+parseFloat(E.paddingLeft))*j.x,D=N.top+(R.clientTop+parseFloat(E.paddingTop))*j.y;h*=j.x,p*=j.y,b*=j.x,g*=j.y,h+=_,p+=D,C=xn(R),R=Em(C)}}return So({width:b,height:g,x:h,y:p})}function Fc(n,l){const o=Ic(n).scrollLeft;return l?l.left+o:vr(_a(n)).left+o}function Ub(n,l){const o=n.getBoundingClientRect(),r=o.left+l.scrollLeft-Fc(n,o),s=o.top+l.scrollTop;return{x:r,y:s}}function ET(n){let{elements:l,rect:o,offsetParent:r,strategy:s}=n;const c=s==="fixed",f=_a(r),m=l?Qc(l.floating):!1;if(r===f||m&&c)return o;let h={scrollLeft:0,scrollTop:0},p=Sa(1);const b=Sa(0),g=ta(r);if((g||!g&&!c)&&((Ro(r)!=="body"||ki(f))&&(h=Ic(r)),g)){const w=vr(r);p=yo(r),b.x=w.x+r.clientLeft,b.y=w.y+r.clientTop}const y=f&&!g&&!c?Ub(f,h):Sa(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-h.scrollLeft*p.x+b.x+y.x,y:o.y*p.y-h.scrollTop*p.y+b.y+y.y}}function TT(n){return Array.from(n.getClientRects())}function RT(n){const l=_a(n),o=Ic(n),r=n.ownerDocument.body,s=Pt(l.scrollWidth,l.clientWidth,r.scrollWidth,r.clientWidth),c=Pt(l.scrollHeight,l.clientHeight,r.scrollHeight,r.clientHeight);let f=-o.scrollLeft+Fc(n);const m=-o.scrollTop;return Pn(r).direction==="rtl"&&(f+=Pt(l.clientWidth,r.clientWidth)-s),{width:s,height:c,x:f,y:m}}const g0=25;function _T(n,l){const o=xn(n),r=_a(n),s=o.visualViewport;let c=r.clientWidth,f=r.clientHeight,m=0,h=0;if(s){c=s.width,f=s.height;const b=Kc();(!b||b&&l==="fixed")&&(m=s.offsetLeft,h=s.offsetTop)}const p=Fc(r);if(p<=0){const b=r.ownerDocument,g=b.body,y=getComputedStyle(g),w=b.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(r.clientWidth-g.clientWidth-w);C<=g0&&(c-=C)}else p<=g0&&(c+=p);return{width:c,height:f,x:m,y:h}}function NT(n,l){const o=vr(n,!0,l==="fixed"),r=o.top+n.clientTop,s=o.left+n.clientLeft,c=ta(n)?yo(n):Sa(1),f=n.clientWidth*c.x,m=n.clientHeight*c.y,h=s*c.x,p=r*c.y;return{width:f,height:m,x:h,y:p}}function y0(n,l,o){let r;if(l==="viewport")r=_T(n,o);else if(l==="document")r=RT(_a(n));else if(vt(l))r=NT(l,o);else{const s=$b(n);r={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return So(r)}function Vb(n,l){const o=tl(n);return o===l||!vt(o)||Pa(o)?!1:Pn(o).position==="fixed"||Vb(o,l)}function jT(n,l){const o=l.get(n);if(o)return o;let r=Wa(n,[],!1).filter(m=>vt(m)&&Ro(m)!=="body"),s=null;const c=Pn(n).position==="fixed";let f=c?tl(n):n;for(;vt(f)&&!Pa(f);){const m=Pn(f),h=nh(f);!h&&m.position==="fixed"&&(s=null),(c?!h&&!s:!h&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||ki(f)&&!h&&Vb(n,f))?r=r.filter(b=>b!==f):s=m,f=tl(f)}return l.set(n,r),r}function AT(n){let{element:l,boundary:o,rootBoundary:r,strategy:s}=n;const f=[...o==="clippingAncestors"?Qc(l)?[]:jT(l,this._c):[].concat(o),r],m=y0(l,f[0],s);let h=m.top,p=m.right,b=m.bottom,g=m.left;for(let y=1;y{f(!1,1e-7)},1e3)}V===1&&!Yb(p,n.getBoundingClientRect())&&f(),D=!1}try{o=new IntersectionObserver(L,{..._,root:s.ownerDocument})}catch{o=new IntersectionObserver(L,_)}o.observe(n)}return f(!0),c}function Nm(n,l,o,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=ih(n),b=s||c?[...p?Wa(p):[],...l?Wa(l):[]]:[];b.forEach(N=>{s&&N.addEventListener("scroll",o,{passive:!0}),c&&N.addEventListener("resize",o)});const g=p&&m?LT(p,o):null;let y=-1,w=null;f&&(w=new ResizeObserver(N=>{let[E]=N;E&&E.target===p&&w&&l&&(w.unobserve(l),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var _;(_=w)==null||_.observe(l)})),o()}),p&&!h&&w.observe(p),l&&w.observe(l));let C,R=h?vr(n):null;h&&j();function j(){const N=vr(n);R&&!Yb(R,N)&&o(),R=N,C=requestAnimationFrame(j)}return o(),()=>{var N;b.forEach(E=>{s&&E.removeEventListener("scroll",o),c&&E.removeEventListener("resize",o)}),g==null||g(),(N=w)==null||N.disconnect(),w=null,h&&cancelAnimationFrame(C)}}const HT=yT,$T=bT,UT=mT,VT=xT,kT=hT,S0=dT,YT=vT,XT=ST,qT=(n,l,o)=>{const r=new Map,s={platform:BT,...o},c={...s.platform,_c:r};return fT(n,l,{...s,platform:c})};var GT=typeof document<"u",ZT=function(){},xc=GT?x.useLayoutEffect:ZT;function zc(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let o,r,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==l.length)return!1;for(r=o;r--!==0;)if(!zc(n[r],l[r]))return!1;return!0}if(s=Object.keys(n),o=s.length,o!==Object.keys(l).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(l,s[r]))return!1;for(r=o;r--!==0;){const c=s[r];if(!(c==="_owner"&&n.$$typeof)&&!zc(n[c],l[c]))return!1}return!0}return n!==n&&l!==l}function Xb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function x0(n,l){const o=Xb(n);return Math.round(l*o)/o}function nm(n){const l=x.useRef(n);return xc(()=>{l.current=n}),l}function QT(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:r=[],platform:s,elements:{reference:c,floating:f}={},transform:m=!0,whileElementsMounted:h,open:p}=n,[b,g]=x.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[y,w]=x.useState(r);zc(y,r)||w(r);const[C,R]=x.useState(null),[j,N]=x.useState(null),E=x.useCallback(B=>{B!==U.current&&(U.current=B,R(B))},[]),_=x.useCallback(B=>{B!==V.current&&(V.current=B,N(B))},[]),D=c||C,L=f||j,U=x.useRef(null),V=x.useRef(null),k=x.useRef(b),P=h!=null,ae=nm(h),te=nm(s),W=nm(p),oe=x.useCallback(()=>{if(!U.current||!V.current)return;const B={placement:l,strategy:o,middleware:y};te.current&&(B.platform=te.current),qT(U.current,V.current,B).then(G=>{const J={...G,isPositioned:W.current!==!1};K.current&&!zc(k.current,J)&&(k.current=J,Ja.flushSync(()=>{g(J)}))})},[y,l,o,te,W]);xc(()=>{p===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[p]);const K=x.useRef(!1);xc(()=>(K.current=!0,()=>{K.current=!1}),[]),xc(()=>{if(D&&(U.current=D),L&&(V.current=L),D&&L){if(ae.current)return ae.current(D,L,oe);oe()}},[D,L,oe,ae,P]);const ie=x.useMemo(()=>({reference:U,floating:V,setReference:E,setFloating:_}),[E,_]),O=x.useMemo(()=>({reference:D,floating:L}),[D,L]),M=x.useMemo(()=>{const B={position:o,left:0,top:0};if(!O.floating)return B;const G=x0(O.floating,b.x),J=x0(O.floating,b.y);return m?{...B,transform:"translate("+G+"px, "+J+"px)",...Xb(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:G,top:J}},[o,m,O.floating,b.x,b.y]);return x.useMemo(()=>({...b,update:oe,refs:ie,elements:O,floatingStyles:M}),[b,oe,ie,O,M])}const KT=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:r,padding:s}=typeof n=="function"?n(o):n;return r&&l(r)?r.current!=null?S0({element:r.current,padding:s}).fn(o):{}:r?S0({element:r,padding:s}).fn(o):{}}}},qb=(n,l)=>{const o=HT(n);return{name:o.name,fn:o.fn,options:[n,l]}},sh=(n,l)=>{const o=$T(n);return{name:o.name,fn:o.fn,options:[n,l]}},w0=(n,l)=>({fn:XT(n).fn,options:[n,l]}),jm=(n,l)=>{const o=UT(n);return{name:o.name,fn:o.fn,options:[n,l]}},IT=(n,l)=>{const o=VT(n);return{name:o.name,fn:o.fn,options:[n,l]}},FT=(n,l)=>{const o=kT(n);return{name:o.name,fn:o.fn,options:[n,l]}},Di=(n,l)=>{const o=YT(n);return{name:o.name,fn:o.fn,options:[n,l]}},Gb=(n,l)=>{const o=KT(n);return{name:o.name,fn:o.fn,options:[n,l]}};function Zb(n){const l=x.useRef(void 0),o=x.useCallback(r=>{const s=n.map(c=>{if(c!=null){if(typeof c=="function"){const f=c,m=f(r);return typeof m=="function"?m:()=>{f(null)}}return c.current=r,()=>{c.current=null}}});return()=>{s.forEach(c=>c==null?void 0:c())}},n);return x.useMemo(()=>n.every(r=>r==null)?null:r=>{l.current&&(l.current(),l.current=void 0),r!=null&&(l.current=o(r))},n)}const JT="data-floating-ui-focusable",C0="active",E0="selected",PT={...J0};let T0=!1,WT=0;const R0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+WT++;function eR(){const[n,l]=x.useState(()=>T0?R0():void 0);return xa(()=>{n==null&&l(R0())},[]),x.useEffect(()=>{T0=!0},[]),n}const tR=PT.useId,Qb=tR||eR;function nR(){const n=new Map;return{emit(l,o){var r;(r=n.get(l))==null||r.forEach(s=>s(o))},on(l,o){n.has(l)||n.set(l,new Set),n.get(l).add(o)},off(l,o){var r;(r=n.get(l))==null||r.delete(o)}}}const aR=x.createContext(null),lR=x.createContext(null),ch=()=>{var n;return((n=x.useContext(aR))==null?void 0:n.id)||null},uh=()=>x.useContext(lR);function fh(n){return"data-floating-ui-"+n}function In(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const _0=fh("safe-polygon");function wc(n,l,o){if(o&&!_m(o))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const r=n();return typeof r=="number"?r:r==null?void 0:r[l]}return n==null?void 0:n[l]}function am(n){return typeof n=="function"?n():n}function rR(n,l){l===void 0&&(l={});const{open:o,onOpenChange:r,dataRef:s,events:c,elements:f}=n,{enabled:m=!0,delay:h=0,handleClose:p=null,mouseOnly:b=!1,restMs:g=0,move:y=!0}=l,w=uh(),C=ch(),R=mc(p),j=mc(h),N=mc(o),E=mc(g),_=x.useRef(),D=x.useRef(-1),L=x.useRef(),U=x.useRef(-1),V=x.useRef(!0),k=x.useRef(!1),P=x.useRef(()=>{}),ae=x.useRef(!1),te=ya(()=>{var M;const B=(M=s.current.openEvent)==null?void 0:M.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"});x.useEffect(()=>{if(!m)return;function M(B){let{open:G}=B;G||(In(D),In(U),V.current=!0,ae.current=!1)}return c.on("openchange",M),()=>{c.off("openchange",M)}},[m,c]),x.useEffect(()=>{if(!m||!R.current||!o)return;function M(G){te()&&r(!1,G,"hover")}const B=dr(f.floating).documentElement;return B.addEventListener("mouseleave",M),()=>{B.removeEventListener("mouseleave",M)}},[f.floating,o,r,m,R,te]);const W=x.useCallback(function(M,B,G){B===void 0&&(B=!0),G===void 0&&(G="hover");const J=wc(j.current,"close",_.current);J&&!L.current?(In(D),D.current=window.setTimeout(()=>r(!1,M,G),J)):B&&(In(D),r(!1,M,G))},[j,r]),oe=ya(()=>{P.current(),L.current=void 0}),K=ya(()=>{if(k.current){const M=dr(f.floating).body;M.style.pointerEvents="",M.removeAttribute(_0),k.current=!1}}),ie=ya(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);x.useEffect(()=>{if(!m)return;function M(H){if(In(D),V.current=!1,b&&!_m(_.current)||am(E.current)>0&&!wc(j.current,"open"))return;const Q=wc(j.current,"open",_.current);Q?D.current=window.setTimeout(()=>{N.current||r(!0,H,"hover")},Q):o||r(!0,H,"hover")}function B(H){if(ie()){K();return}P.current();const Q=dr(f.floating);if(In(U),ae.current=!1,R.current&&s.current.floatingContext){o||In(D),L.current=R.current({...s.current.floatingContext,tree:w,x:H.clientX,y:H.clientY,onClose(){K(),oe(),ie()||W(H,!0,"safe-polygon")}});const se=L.current;Q.addEventListener("mousemove",se),P.current=()=>{Q.removeEventListener("mousemove",se)};return}(_.current==="touch"?!Hi(f.floating,H.relatedTarget):!0)&&W(H)}function G(H){ie()||s.current.floatingContext&&(R.current==null||R.current({...s.current.floatingContext,tree:w,x:H.clientX,y:H.clientY,onClose(){K(),oe(),ie()||W(H)}})(H))}function J(){In(D)}function A(H){ie()||W(H,!1)}if(vt(f.domReference)){const H=f.domReference,Q=f.floating;return o&&H.addEventListener("mouseleave",G),y&&H.addEventListener("mousemove",M,{once:!0}),H.addEventListener("mouseenter",M),H.addEventListener("mouseleave",B),Q&&(Q.addEventListener("mouseleave",G),Q.addEventListener("mouseenter",J),Q.addEventListener("mouseleave",A)),()=>{o&&H.removeEventListener("mouseleave",G),y&&H.removeEventListener("mousemove",M),H.removeEventListener("mouseenter",M),H.removeEventListener("mouseleave",B),Q&&(Q.removeEventListener("mouseleave",G),Q.removeEventListener("mouseenter",J),Q.removeEventListener("mouseleave",A))}}},[f,m,n,b,y,W,oe,K,r,o,N,w,j,R,s,ie,E]),xa(()=>{var M;if(m&&o&&(M=R.current)!=null&&(M=M.__options)!=null&&M.blockPointerEvents&&te()){k.current=!0;const G=f.floating;if(vt(f.domReference)&&G){var B;const J=dr(f.floating).body;J.setAttribute(_0,"");const A=f.domReference,H=w==null||(B=w.nodesRef.current.find(Q=>Q.id===C))==null||(B=B.context)==null?void 0:B.elements.floating;return H&&(H.style.pointerEvents=""),J.style.pointerEvents="none",A.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{J.style.pointerEvents="",A.style.pointerEvents="",G.style.pointerEvents=""}}}},[m,o,C,f,w,R,te]),xa(()=>{o||(_.current=void 0,ae.current=!1,oe(),K())},[o,oe,K]),x.useEffect(()=>()=>{oe(),In(D),In(U),K()},[m,f.domReference,oe,K]);const O=x.useMemo(()=>{function M(B){_.current=B.pointerType}return{onPointerDown:M,onPointerEnter:M,onMouseMove(B){const{nativeEvent:G}=B;function J(){!V.current&&!N.current&&r(!0,G,"hover")}b&&!_m(_.current)||o||am(E.current)===0||ae.current&&B.movementX**2+B.movementY**2<2||(In(U),_.current==="touch"?J():(ae.current=!0,U.current=window.setTimeout(J,am(E.current))))}}},[b,r,o,N,E]);return x.useMemo(()=>m?{reference:O}:{},[m,O])}const Am=()=>{},Kb=x.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Am,setState:Am,isInstantPhase:!1}),oR=()=>x.useContext(Kb);function iR(n){const{children:l,delay:o,timeoutMs:r=0}=n,[s,c]=x.useReducer((h,p)=>({...h,...p}),{delay:o,timeoutMs:r,initialDelay:o,currentId:null,isInstantPhase:!1}),f=x.useRef(null),m=x.useCallback(h=>{c({currentId:h})},[]);return xa(()=>{s.currentId?f.current===null?f.current=s.currentId:s.isInstantPhase||c({isInstantPhase:!0}):(s.isInstantPhase&&c({isInstantPhase:!1}),f.current=null)},[s.currentId,s.isInstantPhase]),v.jsx(Kb.Provider,{value:x.useMemo(()=>({...s,setState:c,setCurrentId:m}),[s,m]),children:l})}function sR(n,l){l===void 0&&(l={});const{open:o,onOpenChange:r,floatingId:s}=n,{id:c,enabled:f=!0}=l,m=c??s,h=oR(),{currentId:p,setCurrentId:b,initialDelay:g,setState:y,timeoutMs:w}=h;return xa(()=>{f&&p&&(y({delay:{open:1,close:wc(g,"close")}}),p!==m&&r(!1))},[f,m,r,y,p,g]),xa(()=>{function C(){r(!1),y({delay:g,currentId:null})}if(f&&p&&!o&&p===m){if(w){const R=window.setTimeout(C,w);return()=>{clearTimeout(R)}}C()}},[f,o,y,p,m,r,g,w]),xa(()=>{f&&(b===Am||!o||b(m))},[f,o,b,m]),h}const cR={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},uR={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},N0=n=>{var l,o;return{escapeKey:typeof n=="boolean"?n:(l=n==null?void 0:n.escapeKey)!=null?l:!1,outsidePress:typeof n=="boolean"?n:(o=n==null?void 0:n.outsidePress)!=null?o:!0}};function fR(n,l){l===void 0&&(l={});const{open:o,onOpenChange:r,elements:s,dataRef:c}=n,{enabled:f=!0,escapeKey:m=!0,outsidePress:h=!0,outsidePressEvent:p="pointerdown",referencePress:b=!1,referencePressEvent:g="pointerdown",ancestorScroll:y=!1,bubbles:w,capture:C}=l,R=uh(),j=ya(typeof h=="function"?h:()=>!1),N=typeof h=="function"?j:h,E=x.useRef(!1),{escapeKey:_,outsidePress:D}=N0(w),{escapeKey:L,outsidePress:U}=N0(C),V=x.useRef(!1),k=ya(K=>{var ie;if(!o||!f||!m||K.key!=="Escape"||V.current)return;const O=(ie=c.current.floatingContext)==null?void 0:ie.nodeId,M=R?Sc(R.nodesRef.current,O):[];if(!_&&(K.stopPropagation(),M.length>0)){let B=!0;if(M.forEach(G=>{var J;if((J=G.context)!=null&&J.open&&!G.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}r(!1,aT(K)?K.nativeEvent:K,"escape-key")}),P=ya(K=>{var ie;const O=()=>{var M;k(K),(M=vo(K))==null||M.removeEventListener("keydown",O)};(ie=vo(K))==null||ie.addEventListener("keydown",O)}),ae=ya(K=>{var ie;const O=c.current.insideReactTree;c.current.insideReactTree=!1;const M=E.current;if(E.current=!1,p==="click"&&M||O||typeof N=="function"&&!N(K))return;const B=vo(K),G="["+fh("inert")+"]",J=dr(s.floating).querySelectorAll(G);let A=vt(B)?B:null;for(;A&&!Pa(A);){const se=tl(A);if(Pa(se)||!vt(se))break;A=se}if(J.length&&vt(B)&&!WE(B)&&!Hi(B,s.floating)&&Array.from(J).every(se=>!Hi(A,se)))return;if(ta(B)&&oe){const se=Pa(B),de=Pn(B),pe=/auto|scroll/,_e=se||pe.test(de.overflowX),Me=se||pe.test(de.overflowY),He=_e&&B.clientWidth>0&&B.scrollWidth>B.clientWidth,st=Me&&B.clientHeight>0&&B.scrollHeight>B.clientHeight,je=de.direction==="rtl",Qe=st&&(je?K.offsetX<=B.offsetWidth-B.clientWidth:K.offsetX>B.clientWidth),$e=He&&K.offsetY>B.clientHeight;if(Qe||$e)return}const H=(ie=c.current.floatingContext)==null?void 0:ie.nodeId,Q=R&&Sc(R.nodesRef.current,H).some(se=>{var de;return em(K,(de=se.context)==null?void 0:de.elements.floating)});if(em(K,s.floating)||em(K,s.domReference)||Q)return;const ee=R?Sc(R.nodesRef.current,H):[];if(ee.length>0){let se=!0;if(ee.forEach(de=>{var pe;if((pe=de.context)!=null&&pe.open&&!de.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}r(!1,K,"outside-press")}),te=ya(K=>{var ie;const O=()=>{var M;ae(K),(M=vo(K))==null||M.removeEventListener(p,O)};(ie=vo(K))==null||ie.addEventListener(p,O)});x.useEffect(()=>{if(!o||!f)return;c.current.__escapeKeyBubbles=_,c.current.__outsidePressBubbles=D;let K=-1;function ie(J){r(!1,J,"ancestor-scroll")}function O(){window.clearTimeout(K),V.current=!0}function M(){K=window.setTimeout(()=>{V.current=!1},Kc()?5:0)}const B=dr(s.floating);m&&(B.addEventListener("keydown",L?P:k,L),B.addEventListener("compositionstart",O),B.addEventListener("compositionend",M)),N&&B.addEventListener(p,U?te:ae,U);let G=[];return y&&(vt(s.domReference)&&(G=Wa(s.domReference)),vt(s.floating)&&(G=G.concat(Wa(s.floating))),!vt(s.reference)&&s.reference&&s.reference.contextElement&&(G=G.concat(Wa(s.reference.contextElement)))),G=G.filter(J=>{var A;return J!==((A=B.defaultView)==null?void 0:A.visualViewport)}),G.forEach(J=>{J.addEventListener("scroll",ie,{passive:!0})}),()=>{m&&(B.removeEventListener("keydown",L?P:k,L),B.removeEventListener("compositionstart",O),B.removeEventListener("compositionend",M)),N&&B.removeEventListener(p,U?te:ae,U),G.forEach(J=>{J.removeEventListener("scroll",ie)}),window.clearTimeout(K)}},[c,s,m,N,p,o,r,y,f,_,D,k,L,P,ae,U,te]),x.useEffect(()=>{c.current.insideReactTree=!1},[c,N,p]);const W=x.useMemo(()=>({onKeyDown:k,...b&&{[cR[g]]:K=>{r(!1,K.nativeEvent,"reference-press")},...g!=="click"&&{onClick(K){r(!1,K.nativeEvent,"reference-press")}}}}),[k,r,b,g]),oe=x.useMemo(()=>{function K(ie){ie.button===0&&(E.current=!0)}return{onKeyDown:k,onMouseDown:K,onMouseUp:K,[uR[p]]:()=>{c.current.insideReactTree=!0}}},[k,p,c]);return x.useMemo(()=>f?{reference:W,floating:oe}:{},[f,W,oe])}function dR(n){const{open:l=!1,onOpenChange:o,elements:r}=n,s=Qb(),c=x.useRef({}),[f]=x.useState(()=>nR()),m=ch()!=null,[h,p]=x.useState(r.reference),b=ya((w,C,R)=>{c.current.openEvent=w?C:void 0,f.emit("openchange",{open:w,event:C,reason:R,nested:m}),o==null||o(w,C,R)}),g=x.useMemo(()=>({setPositionReference:p}),[]),y=x.useMemo(()=>({reference:h||r.reference||null,floating:r.floating||null,domReference:r.reference}),[h,r.reference,r.floating]);return x.useMemo(()=>({dataRef:c,open:l,onOpenChange:b,elements:y,events:f,floatingId:s,refs:g}),[l,b,y,f,s,g])}function dh(n){n===void 0&&(n={});const{nodeId:l}=n,o=dR({...n,elements:{reference:null,floating:null,...n.elements}}),r=n.rootContext||o,s=r.elements,[c,f]=x.useState(null),[m,h]=x.useState(null),b=(s==null?void 0:s.domReference)||c,g=x.useRef(null),y=uh();xa(()=>{b&&(g.current=b)},[b]);const w=QT({...n,elements:{...s,...m&&{reference:m}}}),C=x.useCallback(_=>{const D=vt(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;h(D),w.refs.setReference(D)},[w.refs]),R=x.useCallback(_=>{(vt(_)||_===null)&&(g.current=_,f(_)),(vt(w.refs.reference.current)||w.refs.reference.current===null||_!==null&&!vt(_))&&w.refs.setReference(_)},[w.refs]),j=x.useMemo(()=>({...w.refs,setReference:R,setPositionReference:C,domReference:g}),[w.refs,R,C]),N=x.useMemo(()=>({...w.elements,domReference:b}),[w.elements,b]),E=x.useMemo(()=>({...w,...r,refs:j,elements:N,nodeId:l}),[w,j,N,l,r]);return xa(()=>{r.dataRef.current.floatingContext=E;const _=y==null?void 0:y.nodesRef.current.find(D=>D.id===l);_&&(_.context=E)}),x.useMemo(()=>({...w,context:E,refs:j,elements:N}),[w,j,N,E])}function lm(){return FE()&&IE()}function mR(n,l){l===void 0&&(l={});const{open:o,onOpenChange:r,events:s,dataRef:c,elements:f}=n,{enabled:m=!0,visibleOnly:h=!0}=l,p=x.useRef(!1),b=x.useRef(-1),g=x.useRef(!0);x.useEffect(()=>{if(!m)return;const w=xn(f.domReference);function C(){!o&&ta(f.domReference)&&f.domReference===m0(dr(f.domReference))&&(p.current=!0)}function R(){g.current=!0}function j(){g.current=!1}return w.addEventListener("blur",C),lm()&&(w.addEventListener("keydown",R,!0),w.addEventListener("pointerdown",j,!0)),()=>{w.removeEventListener("blur",C),lm()&&(w.removeEventListener("keydown",R,!0),w.removeEventListener("pointerdown",j,!0))}},[f.domReference,o,m]),x.useEffect(()=>{if(!m)return;function w(C){let{reason:R}=C;(R==="reference-press"||R==="escape-key")&&(p.current=!0)}return s.on("openchange",w),()=>{s.off("openchange",w)}},[s,m]),x.useEffect(()=>()=>{In(b)},[]);const y=x.useMemo(()=>({onMouseLeave(){p.current=!1},onFocus(w){if(p.current)return;const C=vo(w.nativeEvent);if(h&&vt(C)){if(lm()&&!w.relatedTarget){if(!g.current&&!eT(C))return}else if(!tT(C))return}r(!0,w.nativeEvent,"focus")},onBlur(w){p.current=!1;const C=w.relatedTarget,R=w.nativeEvent,j=vt(C)&&C.hasAttribute(fh("focus-guard"))&&C.getAttribute("data-type")==="outside";b.current=window.setTimeout(()=>{var N;const E=m0(f.domReference?f.domReference.ownerDocument:document);!C&&E===f.domReference||Hi((N=c.current.floatingContext)==null?void 0:N.refs.floating.current,E)||Hi(f.domReference,E)||j||r(!1,R,"focus")})}}),[c,f.domReference,r,h]);return x.useMemo(()=>m?{reference:y}:{},[m,y])}function rm(n,l,o){const r=new Map,s=o==="item";let c=n;if(s&&n){const{[C0]:f,[E0]:m,...h}=n;c=h}return{...o==="floating"&&{tabIndex:-1,[JT]:""},...c,...l.map(f=>{const m=f?f[o]:null;return typeof m=="function"?n?m(n):null:m}).concat(n).reduce((f,m)=>(m&&Object.entries(m).forEach(h=>{let[p,b]=h;if(!(s&&[C0,E0].includes(p)))if(p.indexOf("on")===0){if(r.has(p)||r.set(p,[]),typeof b=="function"){var g;(g=r.get(p))==null||g.push(b),f[p]=function(){for(var y,w=arguments.length,C=new Array(w),R=0;Rj(...C)).find(j=>j!==void 0)}}}else f[p]=b}),f),{})}}function hR(n){n===void 0&&(n=[]);const l=n.map(m=>m==null?void 0:m.reference),o=n.map(m=>m==null?void 0:m.floating),r=n.map(m=>m==null?void 0:m.item),s=x.useCallback(m=>rm(m,n,"reference"),l),c=x.useCallback(m=>rm(m,n,"floating"),o),f=x.useCallback(m=>rm(m,n,"item"),r);return x.useMemo(()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:f}),[s,c,f])}const pR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function vR(n,l){var o,r;l===void 0&&(l={});const{open:s,elements:c,floatingId:f}=n,{enabled:m=!0,role:h="dialog"}=l,p=Qb(),b=((o=c.domReference)==null?void 0:o.id)||p,g=x.useMemo(()=>{var E;return((E=nT(c.floating))==null?void 0:E.id)||f},[c.floating,f]),y=(r=pR.get(h))!=null?r:h,C=ch()!=null,R=x.useMemo(()=>y==="tooltip"||h==="label"?{["aria-"+(h==="label"?"labelledby":"describedby")]:s?g:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":y==="alertdialog"?"dialog":y,"aria-controls":s?g:void 0,...y==="listbox"&&{role:"combobox"},...y==="menu"&&{id:b},...y==="menu"&&C&&{role:"menuitem"},...h==="select"&&{"aria-autocomplete":"none"},...h==="combobox"&&{"aria-autocomplete":"list"}},[y,g,C,s,b,h]),j=x.useMemo(()=>{const E={id:g,...y&&{role:y}};return y==="tooltip"||h==="label"?E:{...E,...y==="menu"&&{"aria-labelledby":b}}},[y,g,b,h]),N=x.useCallback(E=>{let{active:_,selected:D}=E;const L={role:"option",..._&&{id:g+"-fui-option"}};switch(h){case"select":case"combobox":return{...L,"aria-selected":D}}return{}},[g,h]);return x.useMemo(()=>m?{reference:R,floating:j,item:N}:{},[m,R,j,N])}const Ib={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Fb=(n,{scrollbarSize:l,overscrollBehavior:o,scrollbars:r})=>{let s=o;return o&&r&&(r==="x"?s=`${o} auto`:r==="y"&&(s=`auto ${o}`)),{root:{"--scrollarea-scrollbar-size":F(l),"--scrollarea-over-scroll-behavior":s}}},Na=ge(n=>{const l=ce("ScrollArea",Ib,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,scrollbarSize:m,vars:h,type:p,scrollHideDelay:b,viewportProps:g,viewportRef:y,onScrollPositionChange:w,children:C,offsetScrollbars:R,scrollbars:j,onBottomReached:N,onTopReached:E,onLeftReached:_,onRightReached:D,overscrollBehavior:L,startScrollPosition:U,attributes:V,...k}=l,[P,ae]=x.useState(!1),[te,W]=x.useState(!1),[oe,K]=x.useState(!1),ie=x.useRef(!0),O=x.useRef(!1),M=x.useRef(!0),B=x.useRef(!1),G=De({name:"ScrollArea",props:l,classes:th,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:V,vars:h,varsResolver:Fb}),J=x.useRef(null),[A,H]=x.useState(null),Q=Zb([y,J,x.useCallback(ee=>{H(se=>se===ee?se:ee)},[])]);return Ll(R==="present"?A:null,()=>{const ee=J.current;ee&&(W(ee.scrollHeight>ee.clientHeight),K(ee.scrollWidth>ee.clientWidth))}),wa(()=>{U&&J.current&&J.current.scrollTo({left:U.x??0,top:U.y??0})},[]),v.jsxs(wb,{getStyles:G,type:p==="never"?"always":p,scrollHideDelay:b,scrollbars:j,...G("root"),...k,children:[v.jsx(Mb,{...g,...G("viewport",{style:g==null?void 0:g.style}),ref:Q,"data-offset-scrollbars":R===!0?"xy":R||void 0,"data-scrollbars":j||void 0,"data-horizontal-hidden":R==="present"&&!oe?"true":void 0,"data-vertical-hidden":R==="present"&&!te?"true":void 0,onScroll:ee=>{var Ce;(Ce=g==null?void 0:g.onScroll)==null||Ce.call(g,ee),w==null||w({x:ee.currentTarget.scrollLeft,y:ee.currentTarget.scrollTop});const{scrollTop:se,scrollHeight:de,clientHeight:pe,scrollLeft:_e,scrollWidth:Me,clientWidth:He}=ee.currentTarget,st=se-(de-pe)>=-.8,je=se===0;st&&!O.current&&(N==null||N()),je&&!ie.current&&(E==null||E()),O.current=st,ie.current=je;const Qe=_e-(Me-He)>=-.8,$e=_e===0;Qe&&!B.current&&(D==null||D()),$e&&!M.current&&(_==null||_()),B.current=Qe,M.current=$e},children:C}),(j==="xy"||j==="x")&&v.jsx(xm,{...G("scrollbar"),orientation:"horizontal","data-hidden":p==="never"||R==="present"&&!oe?!0:void 0,forceMount:!0,onMouseEnter:()=>ae(!0),onMouseLeave:()=>ae(!1),children:v.jsx(wm,{...G("thumb")})}),(j==="xy"||j==="y")&&v.jsx(xm,{...G("scrollbar"),orientation:"vertical","data-hidden":p==="never"||R==="present"&&!te?!0:void 0,forceMount:!0,onMouseEnter:()=>ae(!0),onMouseLeave:()=>ae(!1),children:v.jsx(wm,{...G("thumb")})}),v.jsx(_E,{...G("corner"),"data-hovered":P||void 0,"data-hidden":p==="never"||void 0})]})});Na.displayName="@mantine/core/ScrollArea";const mh=ge(n=>{const{children:l,classNames:o,styles:r,scrollbarSize:s,scrollHideDelay:c,type:f,dir:m,offsetScrollbars:h,overscrollBehavior:p,viewportRef:b,onScrollPositionChange:g,unstyled:y,variant:w,viewportProps:C,scrollbars:R,style:j,vars:N,onBottomReached:E,onTopReached:_,startScrollPosition:D,onOverflowChange:L,...U}=ce("ScrollAreaAutosize",Ib,n),V=x.useRef(null),[k,P]=x.useState(null),ae=Zb([b,V,x.useCallback(K=>{P(ie=>ie===K?ie:K)},[])]),te=x.useRef(!1),W=x.useRef(!1),oe=x.useEffectEvent(()=>{const K=V.current;if(!K||!L)return;const ie=K.scrollHeight>K.clientHeight;ie!==te.current&&(W.current?L(ie):(W.current=!0,ie&&L(!0)),te.current=ie)});return Ll(L?k:null,oe),v.jsx(fe,{...U,variant:w,style:[{display:"flex",overflow:"hidden"},j],children:v.jsx(fe,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...R==="y"&&{minWidth:0},...R==="x"&&{minHeight:0},...R==="xy"&&{minWidth:0,minHeight:0},...R===!1&&{minWidth:0,minHeight:0}},children:v.jsx(Na,{classNames:o,styles:r,scrollHideDelay:c,scrollbarSize:s,type:f,dir:m,offsetScrollbars:h,overscrollBehavior:p,viewportRef:ae,onScrollPositionChange:g,unstyled:y,variant:w,viewportProps:C,vars:N,scrollbars:R,onBottomReached:E,onTopReached:_,startScrollPosition:D,"data-autosize":"true",children:l})})})});Na.classes=th;Na.varsResolver=Fb;mh.displayName="@mantine/core/ScrollAreaAutosize";mh.classes=th;Na.Autosize=mh;var Jb={root:"m_87cf2631"};const gR={__staticSelector:"UnstyledButton"},Hl=sn(n=>{const l=ce("UnstyledButton",gR,n),{className:o,component:r="button",__staticSelector:s,unstyled:c,classNames:f,styles:m,style:h,attributes:p,...b}=l;return v.jsx(fe,{...De({name:s,props:l,classes:Jb,className:o,style:h,classNames:f,styles:m,unstyled:c,attributes:p})("root",{focusable:!0}),component:r,type:r==="button"?"button":void 0,...b})});Hl.classes=Jb;Hl.displayName="@mantine/core/UnstyledButton";var Pb={root:"m_515a97f8"};const hh=ge(n=>{const l=ce("VisuallyHidden",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,attributes:h,...p}=l;return v.jsx(fe,{component:"span",...De({name:"VisuallyHidden",classes:Pb,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:h})("root"),...p})});hh.classes=Pb;hh.displayName="@mantine/core/VisuallyHidden";var Wb={root:"m_1b7284a3"};const e1=(n,{radius:l,shadow:o})=>({root:{"--paper-radius":l===void 0?void 0:Xt(l),"--paper-shadow":qm(o)}}),Yi=sn(n=>{const l=ce("Paper",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,withBorder:m,vars:h,radius:p,shadow:b,variant:g,mod:y,attributes:w,...C}=l,R=De({name:"Paper",props:l,classes:Wb,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:w,vars:h,varsResolver:e1});return v.jsx(fe,{mod:[{"data-with-border":m},y],...R("root"),variant:g,...C})});Yi.classes=Wb;Yi.varsResolver=e1;Yi.displayName="@mantine/core/Paper";function j0(n,l,o,r){return n==="center"||r==="center"?{top:l}:n==="end"?{bottom:o}:n==="start"?{top:o}:{}}function A0(n,l,o,r,s){return n==="center"||r==="center"?{left:l}:n==="end"?{[s==="ltr"?"right":"left"]:o}:n==="start"?{[s==="ltr"?"left":"right"]:o}:{}}const yR={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function bR({position:n,arrowSize:l,dir:o}){const[r,s]=n.split("-");if(!s)return;const c={width:l,height:l,position:"absolute"};if(r==="bottom"){const f=s==="start",m=f?o==="ltr"?"left":"right":o==="ltr"?"right":"left";return{...c,top:-l,[m]:0,clipPath:f!==(o==="rtl")?"polygon(0% 0%, 0% 100%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}if(r==="top"){const f=s==="start",m=f?o==="ltr"?"left":"right":o==="ltr"?"right":"left";return{...c,bottom:-l,[m]:0,clipPath:f!==(o==="rtl")?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 100% 0%, 100% 100%)"}}if(r==="left")return{...c,right:-l,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 0% 100%)":"polygon(0% 0%, 0% 100%, 100% 100%)"};if(r==="right")return{...c,left:-l,[s==="start"?"top":"bottom"]:0,clipPath:s==="start"?"polygon(0% 0%, 100% 0%, 100% 100%)":"polygon(100% 0%, 0% 100%, 100% 100%)"}}function SR({position:n,arrowSize:l,arrowOffset:o,arrowRadius:r,arrowPosition:s,arrowX:c,arrowY:f,dir:m}){if(s==="merge"){const y=bR({position:n,arrowSize:l,dir:m});if(y)return y}const[h,p="center"]=n.split("-"),b={width:l,height:l,transform:"rotate(45deg)",position:"absolute",[yR[h]]:r},g=-l/2;return h==="left"?{...b,...j0(p,f,o,s),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:h==="right"?{...b,...j0(p,f,o,s),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:h==="top"?{...b,...A0(p,c,o,s,m),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:h==="bottom"?{...b,...A0(p,c,o,s,m),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}function t1({position:n,dir:l}){const[o,r]=n.split("-");if(!r)return;const s=r==="start"&&l==="ltr"||r==="end"&&l==="rtl";if(o==="bottom")return s?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(o==="top")return s?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(o==="left")return r==="start"?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(o==="right")return r==="start"?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function Bc({position:n,arrowSize:l,arrowOffset:o,arrowRadius:r,arrowPosition:s,visible:c,arrowX:f,arrowY:m,style:h,...p}){const{dir:b}=To();return c?v.jsx("div",{...p,style:{...h,...SR({position:n,arrowSize:l,arrowOffset:o,arrowRadius:r,arrowPosition:s,dir:b,arrowX:f,arrowY:m})}}):null}Bc.displayName="@mantine/core/FloatingArrow";function n1(n,l){if(n==="rtl"&&(l.includes("right")||l.includes("left"))){const[o,r]=l.split("-"),s=o==="right"?"left":"right";return r===void 0?s:`${s}-${r}`}return l}var a1={root:"m_9814e45f"};const xR={zIndex:on("modal")},l1=(n,{gradient:l,color:o,backgroundOpacity:r,blur:s,radius:c,zIndex:f})=>({root:{"--overlay-bg":l||(o!==void 0||r!==void 0)&&Ol(o||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${F(s)})`:void 0,"--overlay-radius":c===void 0?void 0:Xt(c),"--overlay-z-index":f==null?void 0:f.toString()}}),Xi=sn(n=>{const l=ce("Overlay",xR,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,fixed:h,center:p,children:b,radius:g,zIndex:y,gradient:w,blur:C,color:R,backgroundOpacity:j,mod:N,attributes:E,..._}=l;return v.jsx(fe,{...De({name:"Overlay",props:l,classes:a1,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:E,vars:m,varsResolver:l1})("root"),mod:[{center:p,fixed:h},N],..._,children:b})});Xi.classes=a1;Xi.varsResolver=l1;Xi.displayName="@mantine/core/Overlay";function om(n){const l=document.createElement("div");return l.setAttribute("data-portal","true"),typeof n.className=="string"&&l.classList.add(...n.className.split(" ").filter(Boolean)),typeof n.style=="object"&&Object.assign(l.style,n.style),typeof n.id=="string"&&l.setAttribute("id",n.id),l}function wR({target:n,reuseTargetNode:l,...o}){if(n)return typeof n=="string"?document.querySelector(n)||om(o):n;if(l){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=om(o);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return om(o)}const CR={reuseTargetNode:!0},r1=ge(n=>{const{children:l,target:o,reuseTargetNode:r,ref:s,...c}=ce("Portal",CR,n),[f,m]=x.useState(!1),h=x.useRef(null);return wa(()=>(m(!0),h.current=wR({target:o,reuseTargetNode:r,...c}),Nc(s,h.current),!o&&!r&&h.current&&document.body.appendChild(h.current),()=>{!o&&!r&&h.current&&document.body.removeChild(h.current)}),[o]),!f||!h.current?null:Ja.createPortal(v.jsx(v.Fragment,{children:l}),h.current)});r1.displayName="@mantine/core/Portal";const $l=ge(({withinPortal:n=!0,children:l,...o})=>kc()==="test"||!n?v.jsx(v.Fragment,{children:l}):v.jsx(r1,{...o,children:l}));$l.displayName="@mantine/core/OptionalPortal";const _i=n=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${n==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),hc={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:{..._i("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{..._i("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{..._i("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{..._i("top"),common:{transformOrigin:"top left"}},"pop-top-right":{..._i("top"),common:{transformOrigin:"top right"}}},O0={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function M0({transition:n,state:l,duration:o,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${o}ms`,transitionTimingFunction:r};return typeof n=="string"?n in hc?{transitionProperty:hc[n].transitionProperty,...s,...hc[n].common,...hc[n][O0[l]]}:{}:{transitionProperty:n.transitionProperty,...s,...n.common,...n[O0[l]]}}function ER({duration:n,exitDuration:l,timingFunction:o,mounted:r,onEnter:s,onExit:c,onEntered:f,onExited:m,enterDelay:h,exitDelay:p}){const b=Wn(),g=Uc(),y=b.respectReducedMotion?g:!1,[w,C]=x.useState(y?0:n),[R,j]=x.useState(r?"entered":"exited"),N=x.useRef(-1),E=x.useRef(-1),_=x.useRef(-1);function D(){window.clearTimeout(N.current),window.clearTimeout(E.current),cancelAnimationFrame(_.current)}const L=V=>{D();const k=V?s:c,P=V?f:m,ae=y?0:V?n:l;C(ae),ae===0?(typeof k=="function"&&k(),typeof P=="function"&&P(),j(V?"entered":"exited")):_.current=requestAnimationFrame(()=>{ji.flushSync(()=>{j(V?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof k=="function"&&k(),j(V?"entering":"exiting"),N.current=window.setTimeout(()=>{typeof P=="function"&&P(),j(V?"entered":"exited")},ae)})})},U=V=>{if(D(),typeof(V?h:p)!="number"){L(V);return}E.current=window.setTimeout(()=>{L(V)},V?h:p)};return Eo(()=>{U(r)},[r]),x.useEffect(()=>()=>{D()},[]),{transitionDuration:w,transitionStatus:R,transitionTimingFunction:o||"ease"}}function nl({keepMounted:n,transition:l="fade",duration:o=250,exitDuration:r=o,mounted:s,children:c,timingFunction:f="ease",onExit:m,onEntered:h,onEnter:p,onExited:b,enterDelay:g,exitDelay:y}){const w=kc(),{transitionDuration:C,transitionStatus:R,transitionTimingFunction:j}=ER({mounted:s,exitDuration:r,duration:o,timingFunction:f,onExit:m,onEntered:h,onEnter:p,onExited:b,enterDelay:g,exitDelay:y});if(w==="test")return s?v.jsx(v.Fragment,{children:c({})}):n?c({display:"none"}):null;if(C===0)return n?v.jsx(x.Activity,{mode:s?"visible":"hidden",children:c({})}):s?v.jsx(v.Fragment,{children:c({})}):null;const N=R==="exited";return n?v.jsx(x.Activity,{mode:N?"hidden":"visible",children:c(N?{}:M0({transition:l,duration:C,state:R,timingFunction:j}))}):N?null:v.jsx(v.Fragment,{children:c(M0({transition:l,duration:C,state:R,timingFunction:j}))})}nl.displayName="@mantine/core/Transition";const TR={duration:100,transition:"fade"};function D0(n,l){return{...TR,...l,...n}}const[RR,ph]=Ea("Popover component was not found in the tree");function _R({childProps:n,disabled:l,opened:o,setReference:r,open:s}){const c=Py(n.onMouseDown,f=>{l||f.button===2&&f.stopPropagation()});return{onContextMenu:Py(n.onContextMenu,f=>{if(l||f.defaultPrevented)return;f.preventDefault();const{clientX:m,clientY:h}=f,p=f.currentTarget;r({getBoundingClientRect:()=>({x:m,y:h,width:0,height:0,top:h,left:m,right:m,bottom:h,toJSON:()=>{}}),contextElement:p}),s()}),onMouseDown:c,"data-expanded":o?!0:void 0}}function o1(n){const{children:l,disabled:o}=ce("PopoverContextMenu",null,n),r=br(l);if(!r)throw new 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");const s=ph();return x.cloneElement(r,_R({childProps:r.props,disabled:o||s.disabled,opened:s.opened,setReference:s.reference,open:()=>{s.opened||s.onToggle()}}))}o1.displayName="@mantine/core/PopoverContextMenu";function Jc({children:n,active:l=!0,refProp:o="ref",innerRef:r}){const s=en(P2(l),r),c=br(n);return c?x.cloneElement(c,{[o]:s}):n}function i1(n){return v.jsx(hh,{tabIndex:-1,"data-autofocus":!0,...n})}Jc.displayName="@mantine/core/FocusTrap";i1.displayName="@mantine/core/FocusTrapInitialFocus";Jc.InitialFocus=i1;var s1={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const vh=ge(n=>{var E,_,D,L;const l=ce("PopoverDropdown",null,n),{className:o,style:r,vars:s,children:c,onKeyDownCapture:f,variant:m,classNames:h,styles:p,ref:b,...g}=l,y=ph(),{dir:w}=To(),C=y.arrowPosition==="merge"&&y.withArrow?t1({position:y.placement,dir:w}):void 0,R=ab({opened:y.opened,shouldReturnFocus:y.returnFocus}),j=y.withRoles?{"aria-labelledby":y.getTargetId(),id:y.getDropdownId(),role:"dialog",tabIndex:-1}:{},N=en(b,y.floating);return y.disabled?null:v.jsx($l,{...y.portalProps,withinPortal:y.withinPortal,children:v.jsx(nl,{mounted:y.opened,...y.transitionProps,transition:((E=y.transitionProps)==null?void 0:E.transition)||"fade",duration:((_=y.transitionProps)==null?void 0:_.duration)??150,keepMounted:y.keepMounted,exitDuration:typeof((D=y.transitionProps)==null?void 0:D.exitDuration)=="number"?y.transitionProps.exitDuration:(L=y.transitionProps)==null?void 0:L.duration,children:U=>{var V;return v.jsx(Jc,{active:y.trapFocus&&y.opened,innerRef:N,children:v.jsxs(fe,{...j,...g,variant:m,onKeyDownCapture:V2(()=>{var k,P;(k=y.onClose)==null||k.call(y),(P=y.onDismiss)==null||P.call(y)},{active:y.closeOnEscape,onTrigger:R,onKeyDown:f}),"data-position":y.placement,"data-fixed":y.floatingStrategy==="fixed"||void 0,...y.getStyles("dropdown",{className:o,props:l,classNames:h,styles:p,style:[{...U,...C,zIndex:y.zIndex,top:y.y??0,left:y.x??0,width:y.width==="target"?void 0:F(y.width),...y.referenceHidden?{display:"none"}:null},(V=y.resolvedStyles)==null?void 0:V.dropdown,p==null?void 0:p.dropdown,r]}),children:[c,v.jsx(Bc,{ref:y.arrowRef,arrowX:y.arrowX,arrowY:y.arrowY,visible:y.withArrow,position:y.placement,arrowSize:y.arrowSize,arrowRadius:y.arrowRadius,arrowOffset:y.arrowOffset,arrowPosition:y.arrowPosition,...y.getStyles("arrow",{props:l,classNames:h,styles:p})})]})})}})})});vh.classes=s1;vh.displayName="@mantine/core/PopoverDropdown";const NR={refProp:"ref",popupType:"dialog"},c1=ge(n=>{const{children:l,refProp:o,popupType:r,ref:s,...c}=ce("PopoverTarget",NR,n),f=br(l);if(!f)throw new 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");const m=c,h=ph(),p=en(h.reference,Vc(f),s),b=h.withRoles?{"aria-haspopup":r,"aria-expanded":h.opened,"aria-controls":h.opened?h.getDropdownId():void 0,id:h.getTargetId()}:{},g=f.props;return x.cloneElement(f,{...m,...b,...h.targetProps,className:zt(h.targetProps.className,m.className,g.className),[o]:p,...h.controlled?null:{onClick:y=>{var w;h.onToggle(),(w=g.onClick)==null||w.call(g,y)}}})});c1.displayName="@mantine/core/PopoverTarget";function jR(n){if(n===void 0)return{shift:!0,flip:!0};const l={...n};return n.shift===void 0&&(l.shift=!0),n.flip===void 0&&(l.flip=!0),l}function AR(n,l,o,r){const s=jR(n.middlewares),c=[qb(n.offset),FT()];if(s.flip&&!o){const f=typeof s.flip=="boolean"?{}:s.flip,m=r?{fallbackStrategy:"initialPlacement",...f}:f;c.push(jm(m))}return s.shift&&c.push(sh(typeof s.shift=="boolean"?{limiter:w0(),padding:5}:{limiter:w0(),padding:5,...s.shift})),s.inline&&c.push(typeof s.inline=="boolean"?Di():Di(s.inline)),c.push(Gb({element:n.arrowRef,padding:n.arrowOffset})),(s.size||n.width==="target")&&c.push(IT({...typeof s.size=="boolean"?{}:s.size,apply({rects:f,availableWidth:m,availableHeight:h,...p}){var g;const b=((g=l().refs.floating.current)==null?void 0:g.style)??{};s.size&&(typeof s.size=="object"&&s.size.apply?s.size.apply({rects:f,availableWidth:m,availableHeight:h,...p}):Object.assign(b,{maxWidth:`${m}px`,maxHeight:`${h}px`})),n.width==="target"&&Object.assign(b,{width:`${f.reference.width}px`})}})),c}function OR(n){const[l,o]=Bl({value:n.opened,defaultValue:n.defaultOpened,finalValue:!1,onChange:n.onChange}),r=x.useRef(l),[s,c]=x.useState(null),f=n.preventPositionChangeWhenVisible!==!1,m=x.useRef(l);l!==m.current&&(m.current=l,l&&s!==null&&c(null));const h=x.useCallback(()=>c(null),[]),p=()=>{l&&!n.disabled&&o(!1)},b=()=>{n.disabled||o(!l)},g=dh({open:l,strategy:n.strategy,placement:f?s??n.position:n.position,middleware:AR(n,()=>g,f&&s!==null,f),whileElementsMounted:n.keepMounted?void 0:Nm});x.useEffect(()=>{if(!(!g.refs.reference.current||!g.refs.floating.current)&&l)return Nm(g.refs.reference.current,g.refs.floating.current,g.update)},[l,g.update]);const y=x.useRef(!1);wa(()=>{if(!l){y.current=!1;return}if(!f||s!==null)return;const C=g.refs.floating.current;if(!(!C||C.offsetHeight===0||C.offsetWidth===0)){if(!y.current){y.current=!0,g.update();return}g.isPositioned&&c(g.placement)}},[f,l,g.isPositioned,g.placement,s,g.update]);const w=x.useRef(g.placement);return wa(()=>{var C;w.current!==g.placement&&(w.current=g.placement,(C=n.onPositionChange)==null||C.call(n,g.placement))},[g.placement]),Eo(()=>{var C,R;l!==r.current&&(l?(R=n.onOpen)==null||R.call(n):(C=n.onClose)==null||C.call(n)),r.current=l},[l,n.onClose,n.onOpen]),{floating:g,controlled:typeof n.opened=="boolean",opened:l,onClose:p,onToggle:b,resetLockedPlacement:h}}const MR={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:on("popover"),__staticSelector:"Popover",width:"max-content"},u1=(n,{radius:l,shadow:o})=>({dropdown:{"--popover-radius":l===void 0?void 0:Xt(l),"--popover-shadow":qm(o)}});function Sn(n){var Ve,Cn,En,Ut,qt,jt,ut;const l=ce("Popover",MR,n),{children:o,position:r,offset:s,onPositionChange:c,opened:f,transitionProps:m,onExitTransitionEnd:h,onEnterTransitionEnd:p,width:b,middlewares:g,withArrow:y,arrowSize:w,arrowOffset:C,arrowRadius:R,arrowPosition:j,unstyled:N,classNames:E,styles:_,closeOnClickOutside:D,withinPortal:L,portalProps:U,closeOnEscape:V,clickOutsideEvents:k,trapFocus:P,onClose:ae,onDismiss:te,onOpen:W,onChange:oe,zIndex:K,radius:ie,shadow:O,id:M,defaultOpened:B,__staticSelector:G,withRoles:J,disabled:A,returnFocus:H,variant:Q,keepMounted:ee,vars:se,floatingStrategy:de,withOverlay:pe,overlayProps:_e,hideDetached:Me,attributes:He,preventPositionChangeWhenVisible:st,...je}=l,Qe=De({name:G,props:l,classes:s1,classNames:E,styles:_,unstyled:N,attributes:He,rootSelector:"dropdown",vars:se,varsResolver:u1}),{resolvedStyles:$e}=Yc({classNames:E,styles:_,props:l}),Ce=x.useRef(null),[ct,me]=x.useState(null),[he,Ee]=x.useState(null),{dir:Ae}=To(),Ye=kc(),Oe=Ta(M),be=OR({middlewares:g,width:b,position:n1(Ae,r),offset:typeof s=="number"?s+(y?w/2:0):s,arrowRef:Ce,arrowOffset:C,onPositionChange:c,opened:f,defaultOpened:B,onChange:oe,onOpen:W,onClose:ae,onDismiss:te,strategy:de,disabled:A,preventPositionChangeWhenVisible:st,keepMounted:ee});X2(()=>{D&&(be.onClose(),te==null||te())},k,[ct,he]);const Ue=x.useCallback(Ie=>{me(Ie),be.floating.refs.setReference(Ie)},[be.floating.refs.setReference]),xe=x.useCallback(Ie=>{Ee(Ie),be.floating.refs.setFloating(Ie)},[be.floating.refs.setFloating]),Te=x.useCallback(()=>{var Ie;(Ie=m==null?void 0:m.onExited)==null||Ie.call(m),h==null||h(),be.resetLockedPlacement()},[m==null?void 0:m.onExited,h,be.resetLockedPlacement]),yt=x.useCallback(()=>{var Ie;(Ie=m==null?void 0:m.onEntered)==null||Ie.call(m),p==null||p()},[m==null?void 0:m.onEntered,p]);return v.jsxs(RR,{value:{returnFocus:H,disabled:A,controlled:be.controlled,reference:Ue,floating:xe,x:be.floating.x,y:be.floating.y,arrowX:(En=(Cn=(Ve=be.floating)==null?void 0:Ve.middlewareData)==null?void 0:Cn.arrow)==null?void 0:En.x,arrowY:(jt=(qt=(Ut=be.floating)==null?void 0:Ut.middlewareData)==null?void 0:qt.arrow)==null?void 0:jt.y,opened:be.opened,arrowRef:Ce,transitionProps:{...m,onExited:Te,onEntered:yt},width:b,withArrow:y,arrowSize:w,arrowOffset:C,arrowRadius:R,arrowPosition:j,placement:be.floating.placement,trapFocus:P,withinPortal:L,portalProps:U,zIndex:K,radius:ie,shadow:O,closeOnEscape:V,onDismiss:te,onClose:be.onClose,onToggle:be.onToggle,getTargetId:()=>Oe,getDropdownId:()=>`${Oe}-dropdown`,withRoles:J,targetProps:je,__staticSelector:G,classNames:E,styles:_,unstyled:N,variant:Q,keepMounted:ee,getStyles:Qe,resolvedStyles:$e,floatingStrategy:de,referenceHidden:Me&&Ye!=="test"?(ut=be.floating.middlewareData.hide)==null?void 0:ut.referenceHidden:!1},children:[o,pe&&v.jsx(nl,{transition:"fade",mounted:be.opened,duration:(m==null?void 0:m.duration)||250,exitDuration:(m==null?void 0:m.exitDuration)||250,children:Ie=>v.jsx($l,{withinPortal:L,children:v.jsx(Xi,{..._e,...Qe("overlay",{className:_e==null?void 0:_e.className,style:[Ie,_e==null?void 0:_e.style]})})})})]})}Sn.Target=c1;Sn.Dropdown=vh;Sn.ContextMenu=o1;Sn.varsResolver=u1;Sn.displayName="@mantine/core/Popover";Sn.extend=n=>n;Sn.withProps=n=>{const l=o=>v.jsx(Sn,{...n,...o});return l.extend=Sn.extend,l.displayName=`WithProps(${Sn.displayName})`,l};var ca={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"};const f1=({className:n,...l})=>v.jsxs(fe,{component:"span",className:zt(ca.barsLoader,n),...l,children:[v.jsx("span",{className:ca.bar}),v.jsx("span",{className:ca.bar}),v.jsx("span",{className:ca.bar})]});f1.displayName="@mantine/core/Bars";const d1=({className:n,...l})=>v.jsxs(fe,{component:"span",className:zt(ca.dotsLoader,n),...l,children:[v.jsx("span",{className:ca.dot}),v.jsx("span",{className:ca.dot}),v.jsx("span",{className:ca.dot})]});d1.displayName="@mantine/core/Dots";const m1=({className:n,...l})=>v.jsx(fe,{component:"span",className:zt(ca.ovalLoader,n),...l});m1.displayName="@mantine/core/Oval";const h1={bars:f1,oval:m1,dots:d1},DR={loaders:h1,type:"oval"},p1=(n,{size:l,color:o})=>({root:{"--loader-size":Pe(l,"loader-size"),"--loader-color":o?Fn(o,n):void 0}}),Hn=ge(n=>{const l=ce("Loader",DR,n),{size:o,color:r,type:s,vars:c,className:f,style:m,classNames:h,styles:p,unstyled:b,loaders:g,variant:y,children:w,attributes:C,...R}=l,j=De({name:"Loader",props:l,classes:ca,className:f,style:m,classNames:h,styles:p,unstyled:b,attributes:C,vars:c,varsResolver:p1});return w?v.jsx(fe,{...j("root"),...R,children:w}):v.jsx(fe,{...j("root"),component:g[s],variant:y,size:o,...R})});Hn.defaultLoaders=h1;Hn.classes=ca;Hn.varsResolver=p1;Hn.displayName="@mantine/core/Loader";var No={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const z0={orientation:"horizontal"},v1=(n,{borderWidth:l})=>({group:{"--ai-border-width":F(l)}}),Pc=ge(n=>{const l=ce("ActionIconGroup",z0,n),{className:o,style:r,classNames:s,styles:c,unstyled:f,orientation:m,vars:h,borderWidth:p,variant:b,mod:g,attributes:y,...w}=ce("ActionIconGroup",z0,n);return v.jsx(fe,{...De({name:"ActionIconGroup",props:l,classes:No,className:o,style:r,classNames:s,styles:c,unstyled:f,attributes:y,vars:h,varsResolver:v1,rootSelector:"group"})("group"),variant:b,mod:[{"data-orientation":m},g],role:"group",...w})});Pc.classes=No;Pc.varsResolver=v1;Pc.displayName="@mantine/core/ActionIconGroup";const g1=(n,{radius:l,color:o,gradient:r,variant:s,autoContrast:c,size:f})=>{const m=n.variantColorResolver({color:o||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Pe(f,"section-height"),"--section-padding-x":Pe(f,"section-padding-x"),"--section-fz":Wt(f),"--section-radius":l===void 0?void 0:Xt(l),"--section-bg":o||s?m.background:void 0,"--section-color":m.color,"--section-bd":o||s?m.border:void 0}}},Wc=ge(n=>{const l=ce("ActionIconGroupSection",null,n),{className:o,style:r,classNames:s,styles:c,unstyled:f,vars:m,variant:h,gradient:p,radius:b,autoContrast:g,attributes:y,...w}=l;return v.jsx(fe,{...De({name:"ActionIconGroupSection",props:l,classes:No,className:o,style:r,classNames:s,styles:c,unstyled:f,attributes:y,vars:m,varsResolver:g1,rootSelector:"groupSection"})("groupSection"),variant:h,...w})});Wc.classes=No;Wc.varsResolver=g1;Wc.displayName="@mantine/core/ActionIconGroupSection";const y1=(n,{size:l,radius:o,variant:r,gradient:s,color:c,autoContrast:f})=>{const m=n.variantColorResolver({color:c||n.primaryColor,theme:n,gradient:s,variant:r||"filled",autoContrast:f});return{root:{"--ai-size":Pe(l,"ai-size"),"--ai-radius":o===void 0?void 0:Xt(o),"--ai-bg":c||r?m.background:void 0,"--ai-hover":c||r?m.hover:void 0,"--ai-hover-color":c||r?m.hoverColor:void 0,"--ai-color":m.color,"--ai-bd":c||r?m.border:void 0}}},Jn=sn(n=>{const l=ce("ActionIcon",null,n),{className:o,unstyled:r,variant:s,classNames:c,styles:f,style:m,loading:h,loaderProps:p,size:b,color:g,radius:y,__staticSelector:w,gradient:C,vars:R,children:j,disabled:N,"data-disabled":E,autoContrast:_,mod:D,attributes:L,...U}=l,V=De({name:["ActionIcon",w],props:l,className:o,style:m,classes:No,classNames:c,styles:f,unstyled:r,attributes:L,vars:R,varsResolver:y1});return v.jsxs(Hl,{...V("root",{active:!N&&!h&&!E}),...U,unstyled:r,variant:s,size:b,disabled:N||h,mod:[{loading:h,disabled:N||E},D],children:[typeof h=="boolean"&&v.jsx(nl,{mounted:h,transition:"slide-down",duration:150,children:k=>v.jsx(fe,{component:"span",...V("loader",{style:k}),"aria-hidden":!0,children:v.jsx(Hn,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...p})})}),v.jsx(fe,{component:"span",mod:{loading:h},...V("icon"),children:j})]})});Jn.classes=No;Jn.varsResolver=y1;Jn.displayName="@mantine/core/ActionIcon";Jn.Group=Pc;Jn.GroupSection=Wc;function b1({size:n="var(--cb-icon-size, 70%)",style:l,...o}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...l,width:n,height:n},...o,children:v.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"})})}b1.displayName="@mantine/core/CloseIcon";var S1={root:"m_86a44da5","root--subtle":"m_220c80f2"};const zR={variant:"subtle"},x1=(n,{size:l,radius:o,iconSize:r})=>({root:{"--cb-size":Pe(l,"cb-size"),"--cb-radius":o===void 0?void 0:Xt(o),"--cb-icon-size":F(r)}}),Sr=sn(n=>{const l=ce("CloseButton",zR,n),{iconSize:o,children:r,vars:s,radius:c,className:f,classNames:m,style:h,styles:p,unstyled:b,"data-disabled":g,disabled:y,variant:w,icon:C,mod:R,attributes:j,__staticSelector:N,...E}=l,_=De({name:N||"CloseButton",props:l,className:f,style:h,classes:S1,classNames:m,styles:p,unstyled:b,attributes:j,vars:s,varsResolver:x1});return v.jsxs(Hl,{...E,unstyled:b,variant:w,disabled:y,mod:[{disabled:y||g},R],..._("root",{variant:w,active:!y&&!g}),children:[C||v.jsx(b1,{}),r]})});Sr.classes=S1;Sr.varsResolver=x1;Sr.displayName="@mantine/core/CloseButton";function BR(n){return x.Children.toArray(n).filter(Boolean)}var w1={root:"m_4081bf90"};const LR={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},C1=(n,{grow:l,preventGrowOverflow:o,gap:r,align:s,justify:c,wrap:f},{childWidth:m})=>({root:{"--group-child-width":l&&o?m:void 0,"--group-gap":el(r),"--group-align":s,"--group-justify":c,"--group-wrap":f}}),gt=ge(n=>{const l=ce("Group",LR,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,children:m,gap:h,align:p,justify:b,wrap:g,grow:y,preventGrowOverflow:w,vars:C,variant:R,__size:j,mod:N,attributes:E,..._}=l,D=BR(m),L=D.length,U=el(h??"md");return v.jsx(fe,{...De({name:"Group",props:l,stylesCtx:{childWidth:`calc(${100/L}% - (${U} - ${U} / ${L}))`},className:r,style:s,classes:w1,classNames:o,styles:c,unstyled:f,attributes:E,vars:C,varsResolver:C1})("root"),variant:R,mod:[{grow:y},N],size:j,..._,children:D})});gt.classes=w1;gt.varsResolver=C1;gt.displayName="@mantine/core/Group";const[HR,al]=Ea("ModalBase component was not found in tree");function $R({opened:n,transitionDuration:l}){const[o,r]=x.useState(n),s=x.useRef(-1),c=Uc()?0:l;return x.useEffect(()=>(n?(r(!0),window.clearTimeout(s.current)):c===0?r(!1):s.current=window.setTimeout(()=>r(!1),c),()=>window.clearTimeout(s.current)),[n,c]),o}function UR({id:n,transitionProps:l,opened:o,trapFocus:r,closeOnEscape:s,onClose:c,returnFocus:f}){const m=Ta(n),[h,p]=x.useState(!1),[b,g]=x.useState(!1),y=$R({opened:o,transitionDuration:typeof(l==null?void 0:l.duration)=="number"?l==null?void 0:l.duration:200});return ib("keydown",w=>{var C;w.key==="Escape"&&s&&!w.isComposing&&o&&((C=w.target)==null?void 0:C.getAttribute("data-mantine-stop-propagation"))!=="true"&&c()},{capture:!0}),ab({opened:o,shouldReturnFocus:r&&f}),{_id:m,titleMounted:h,bodyMounted:b,shouldLockScroll:y,setTitleMounted:p,setBodyMounted:g}}var ba=function(){return ba=Object.assign||function(l){for(var o,r=1,s=arguments.length;r"u")return n3;var l=a3(n),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,r-o+l[2]-l[0])}},r3=_1(),bo="data-scroll-locked",o3=function(n,l,o,r){var s=n.left,c=n.top,f=n.right,m=n.gap;return o===void 0&&(o="margin"),` .`.concat(kR,` { overflow: hidden `).concat(r,`; padding-right: `).concat(m,"px ").concat(r,`; } body[`).concat(bo,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([l&&"position: relative ".concat(r,";"),o==="margin"&&` padding-left: `.concat(s,`px; padding-top: `).concat(c,`px; padding-right: `).concat(f,`px; margin-left:0; margin-top:0; margin-right: `).concat(m,"px ").concat(r,`; `),o==="padding"&&"padding-right: ".concat(m,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(Cc,` { right: `).concat(m,"px ").concat(r,`; } .`).concat(Ec,` { margin-right: `).concat(m,"px ").concat(r,`; } .`).concat(Cc," .").concat(Cc,` { right: 0 `).concat(r,`; } .`).concat(Ec," .").concat(Ec,` { margin-right: 0 `).concat(r,`; } body[`).concat(bo,`] { `).concat(YR,": ").concat(m,`px; } `)},L0=function(){var n=parseInt(document.body.getAttribute(bo)||"0",10);return isFinite(n)?n:0},i3=function(){x.useEffect(function(){return document.body.setAttribute(bo,(L0()+1).toString()),function(){var n=L0()-1;n<=0?document.body.removeAttribute(bo):document.body.setAttribute(bo,n.toString())}},[])},s3=function(n){var l=n.noRelative,o=n.noImportant,r=n.gapMode,s=r===void 0?"margin":r;i3();var c=x.useMemo(function(){return l3(s)},[s]);return x.createElement(r3,{styles:o3(c,!l,s,o?"":"!important")})},Om=!1;if(typeof window<"u")try{var pc=Object.defineProperty({},"passive",{get:function(){return Om=!0,!0}});window.addEventListener("test",pc,pc),window.removeEventListener("test",pc,pc)}catch{Om=!1}var mo=Om?{passive:!1}:!1,c3=function(n){return n.tagName==="TEXTAREA"},N1=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!c3(n)&&o[l]==="visible")},u3=function(n){return N1(n,"overflowY")},f3=function(n){return N1(n,"overflowX")},H0=function(n,l){var o=l.ownerDocument,r=l;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=j1(n,r);if(s){var c=A1(n,r),f=c[1],m=c[2];if(f>m)return!0}r=r.parentNode}while(r&&r!==o.body);return!1},d3=function(n){var l=n.scrollTop,o=n.scrollHeight,r=n.clientHeight;return[l,o,r]},m3=function(n){var l=n.scrollLeft,o=n.scrollWidth,r=n.clientWidth;return[l,o,r]},j1=function(n,l){return n==="v"?u3(l):f3(l)},A1=function(n,l){return n==="v"?d3(l):m3(l)},h3=function(n,l){return n==="h"&&l==="rtl"?-1:1},p3=function(n,l,o,r,s){var c=h3(n,window.getComputedStyle(l).direction),f=c*r,m=o.target,h=l.contains(m),p=!1,b=f>0,g=0,y=0;do{if(!m)break;var w=A1(n,m),C=w[0],R=w[1],j=w[2],N=R-j-c*C;(C||N)&&j1(n,m)&&(g+=N,y+=C);var E=m.parentNode;m=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!h&&m!==document.body||h&&(l.contains(m)||l===m));return(b&&Math.abs(g)<1||!b&&Math.abs(y)<1)&&(p=!0),p},vc=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},$0=function(n){return[n.deltaX,n.deltaY]},U0=function(n){return n&&"current"in n?n.current:n},v3=function(n,l){return n[0]===l[0]&&n[1]===l[1]},g3=function(n){return` .block-interactivity-`.concat(n,` {pointer-events: none;} .allow-interactivity-`).concat(n,` {pointer-events: all;} `)},y3=0,ho=[];function b3(n){var l=x.useRef([]),o=x.useRef([0,0]),r=x.useRef(),s=x.useState(y3++)[0],c=x.useState(_1)[0],f=x.useRef(n);x.useEffect(function(){f.current=n},[n]),x.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var R=VR([n.lockRef.current],(n.shards||[]).map(U0),!0).filter(Boolean);return R.forEach(function(j){return j.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),R.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=x.useCallback(function(R,j){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!f.current.allowPinchZoom;var N=vc(R),E=o.current,_="deltaX"in R?R.deltaX:E[0]-N[0],D="deltaY"in R?R.deltaY:E[1]-N[1],L,U=R.target,V=Math.abs(_)>Math.abs(D)?"h":"v";if("touches"in R&&V==="h"&&U.type==="range")return!1;var k=window.getSelection(),P=k&&k.anchorNode,ae=P?P===U||P.contains(U):!1;if(ae)return!1;var te=H0(V,U);if(!te)return!0;if(te?L=V:(L=V==="v"?"h":"v",te=H0(V,U)),!te)return!1;if(!r.current&&"changedTouches"in R&&(_||D)&&(r.current=L),!L)return!0;var W=r.current||L;return p3(W,j,R,W==="h"?_:D)},[]),h=x.useCallback(function(R){var j=R;if(!(!ho.length||ho[ho.length-1]!==c)){var N="deltaY"in j?$0(j):vc(j),E=l.current.filter(function(L){return L.name===j.type&&(L.target===j.target||j.target===L.shadowParent)&&v3(L.delta,N)})[0];if(E&&E.should){j.cancelable&&j.preventDefault();return}if(!E){var _=(f.current.shards||[]).map(U0).filter(Boolean).filter(function(L){return L.contains(j.target)}),D=_.length>0?m(j,_[0]):!f.current.noIsolation;D&&j.cancelable&&j.preventDefault()}}},[]),p=x.useCallback(function(R,j,N,E){var _={name:R,delta:j,target:N,should:E,shadowParent:S3(N)};l.current.push(_),setTimeout(function(){l.current=l.current.filter(function(D){return D!==_})},1)},[]),b=x.useCallback(function(R){o.current=vc(R),r.current=void 0},[]),g=x.useCallback(function(R){p(R.type,$0(R),R.target,m(R,n.lockRef.current))},[]),y=x.useCallback(function(R){p(R.type,vc(R),R.target,m(R,n.lockRef.current))},[]);x.useEffect(function(){return ho.push(c),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",h,mo),document.addEventListener("touchmove",h,mo),document.addEventListener("touchstart",b,mo),function(){ho=ho.filter(function(R){return R!==c}),document.removeEventListener("wheel",h,mo),document.removeEventListener("touchmove",h,mo),document.removeEventListener("touchstart",b,mo)}},[]);var w=n.removeScrollBar,C=n.inert;return x.createElement(x.Fragment,null,C?x.createElement(c,{styles:g3(s)}):null,w?x.createElement(s3,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function S3(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const x3=IR(R1,b3);var gr=x.forwardRef(function(n,l){return x.createElement(eu,ba({},n,{ref:l,sideCar:x3}))});gr.classNames=eu.classNames;function gh({keepMounted:n,opened:l,onClose:o,id:r,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:f,trapFocus:m,closeOnEscape:h,returnFocus:p,closeOnClickOutside:b,withinPortal:g,portalProps:y,lockScroll:w,children:C,zIndex:R,shadow:j,padding:N,__vars:E,unstyled:_,removeScrollProps:D,...L}){const{_id:U,titleMounted:V,bodyMounted:k,shouldLockScroll:P,setTitleMounted:ae,setBodyMounted:te}=UR({id:r,transitionProps:s,opened:l,trapFocus:m,closeOnEscape:h,onClose:o,returnFocus:p}),{key:W,...oe}=D||{};return v.jsx($l,{...y,withinPortal:g,children:v.jsx(HR,{value:{opened:l,onClose:o,closeOnClickOutside:b,onExitTransitionEnd:c,onEnterTransitionEnd:f,transitionProps:{...s,keepMounted:n},getTitleId:()=>`${U}-title`,getBodyId:()=>`${U}-body`,titleMounted:V,bodyMounted:k,setTitleMounted:ae,setBodyMounted:te,trapFocus:m,closeOnEscape:h,zIndex:R,unstyled:_},children:v.jsx(gr,{enabled:P&&w,...oe,children:v.jsx(fe,{...L,id:U,__vars:{...E,"--mb-z-index":(R||on("modal")).toString(),"--mb-shadow":qm(j),"--mb-padding":el(N)},children:C})},W)})})}gh.displayName="@mantine/core/ModalBase";function w3(){const n=al();return x.useEffect(()=>(n.setBodyMounted(!0),()=>n.setBodyMounted(!1)),[]),n.getBodyId()}var xo={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};function yh({className:n,...l}){const o=w3(),r=al();return v.jsx(fe,{id:o,className:zt({[xo.body]:!r.unstyled},n),...l})}yh.displayName="@mantine/core/ModalBaseBody";function bh({className:n,onClick:l,...o}){const r=al();return v.jsx(Sr,{...o,onClick:s=>{r.onClose(),l==null||l(s)},className:zt({[xo.close]:!r.unstyled},n),unstyled:r.unstyled})}bh.displayName="@mantine/core/ModalBaseCloseButton";function Sh({transitionProps:n,className:l,innerProps:o,onKeyDown:r,style:s,ref:c,...f}){const m=al();return v.jsx(nl,{mounted:m.opened,transition:"pop",...m.transitionProps,onExited:()=>{var h,p,b;(h=m.onExitTransitionEnd)==null||h.call(m),(b=(p=m.transitionProps)==null?void 0:p.onExited)==null||b.call(p)},onEntered:()=>{var h,p,b;(h=m.onEnterTransitionEnd)==null||h.call(m),(b=(p=m.transitionProps)==null?void 0:p.onEntered)==null||b.call(p)},...n,children:h=>v.jsx("div",{...o,className:zt({[xo.inner]:!m.unstyled},o.className),children:v.jsx(Jc,{active:m.opened&&m.trapFocus,innerRef:c,children:v.jsx(Yi,{...f,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":m.bodyMounted?m.getBodyId():void 0,"aria-labelledby":m.titleMounted?m.getTitleId():void 0,style:[s,h],className:zt({[xo.content]:!m.unstyled},l),unstyled:m.unstyled,children:f.children})})})})}Sh.displayName="@mantine/core/ModalBaseContent";function xh({className:n,...l}){const o=al();return v.jsx(fe,{component:"header",className:zt({[xo.header]:!o.unstyled},n),...l})}xh.displayName="@mantine/core/ModalBaseHeader";const C3={duration:200,timingFunction:"ease",transition:"fade"};function E3(n){const l=al();return{...C3,...l.transitionProps,...n}}function wh({onClick:n,transitionProps:l,style:o,visible:r,...s}){const c=al(),f=E3(l);return v.jsx(nl,{mounted:r!==void 0?r:c.opened,...f,transition:"fade",children:m=>v.jsx(Xi,{fixed:!0,style:[o,m],zIndex:c.zIndex,unstyled:c.unstyled,onClick:h=>{n==null||n(h),c.closeOnClickOutside&&c.onClose()},...s})})}wh.displayName="@mantine/core/ModalBaseOverlay";function T3(){const n=al();return x.useEffect(()=>(n.setTitleMounted(!0),()=>n.setTitleMounted(!1)),[]),n.getTitleId()}function Ch({className:n,...l}){const o=T3(),r=al();return v.jsx(fe,{component:"h2",className:zt({[xo.title]:!r.unstyled},n),id:o,...l})}Ch.displayName="@mantine/core/ModalBaseTitle";function O1({children:n}){return v.jsx(v.Fragment,{children:n})}const M1=x.createContext({size:"sm"}),D1=ge(n=>{const l=ce("InputClearButton",null,n),{size:o,variant:r,vars:s,classNames:c,styles:f,...m}=l,h=x.use(M1),{resolvedClassNames:p,resolvedStyles:b}=Yc({classNames:c,styles:f,props:l});return v.jsx(Sr,{variant:r||"transparent",size:o||(h==null?void 0:h.size)||"sm",classNames:p,styles:b,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...m.style},...m})});D1.displayName="@mantine/core/InputClearButton";const R3={xs:7,sm:8,md:10,lg:12,xl:15};function _3({__clearable:n,__clearSection:l,rightSection:o,__defaultRightSection:r,size:s="sm",__clearSectionMode:c="both"}){const f=n&&l;return c==="rightSection"?o===null?null:o||r:c==="clear"?o===null?null:f||r:f&&(o||r)?v.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:R3[s]},children:[f,o||r]}):o===null?null:o||f||r}const jo=x.createContext({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var na={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",description:"m_fe47ce59"};const z1=(n,{size:l})=>({description:{"--input-description-size":l===void 0?void 0:`calc(${Wt(l)} - ${F(2)})`}}),qi=ge(n=>{const l=ce("InputDescription",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,__staticSelector:h,__inheritStyles:p=!0,attributes:b,...g}=ce("InputDescription",null,l),y=x.use(jo),w=De({name:["InputWrapper",h],props:l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:b,rootSelector:"description",vars:m,varsResolver:z1});return v.jsx(fe,{component:"p",...(p&&(y==null?void 0:y.getStyles)||w)("description",y!=null&&y.getStyles?{className:r,style:s}:void 0),...g})});qi.classes=na;qi.varsResolver=z1;qi.displayName="@mantine/core/InputDescription";const B1=(n,{size:l})=>({error:{"--input-error-size":l===void 0?void 0:`calc(${Wt(l)} - ${F(2)})`}}),Gi=ge(n=>{const l=ce("InputError",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,attributes:h,__staticSelector:p,__inheritStyles:b=!0,...g}=l,y=De({name:["InputWrapper",p],props:l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:h,rootSelector:"error",vars:m,varsResolver:B1}),w=x.use(jo);return v.jsx(fe,{component:"p",...(b&&(w==null?void 0:w.getStyles)||y)("error",w!=null&&w.getStyles?{className:r,style:s}:void 0),...g})});Gi.classes=na;Gi.varsResolver=B1;Gi.displayName="@mantine/core/InputError";const N3={labelElement:"label"},L1=(n,{size:l})=>({label:{"--input-label-size":Wt(l),"--input-asterisk-color":void 0}}),Zi=ge(n=>{const l=ce("InputLabel",N3,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,labelElement:h,required:p,htmlFor:b,onMouseDown:g,children:y,__staticSelector:w,mod:C,attributes:R,...j}=l,N=De({name:["InputWrapper",w],props:l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:R,rootSelector:"label",vars:m,varsResolver:L1}),E=x.use(jo),_=(E==null?void 0:E.getStyles)||N;return v.jsxs(fe,{..._("label",E!=null&&E.getStyles?{className:r,style:s}:void 0),component:h,htmlFor:h==="label"?b:void 0,mod:[{required:p},C],onMouseDown:D=>{g==null||g(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()},...j,children:[y,p&&v.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});Zi.classes=na;Zi.varsResolver=L1;Zi.displayName="@mantine/core/InputLabel";const Eh=ge(n=>{const l=ce("InputPlaceholder",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,__staticSelector:h,error:p,mod:b,attributes:g,...y}=l;return v.jsx(fe,{...De({name:["InputPlaceholder",h],props:l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:g,rootSelector:"placeholder"})("placeholder"),mod:[{error:!!p},b],component:"span",...y})});Eh.classes=na;Eh.displayName="@mantine/core/InputPlaceholder";function j3(n,{hasDescription:l,hasError:o}){const r=n.findIndex(m=>m==="input"),s=n.slice(0,r),c=n.slice(r+1),f=l&&s.includes("description")||o&&s.includes("error");return{offsetBottom:l&&c.includes("description")||o&&c.includes("error"),offsetTop:f}}const A3={labelElement:"label",inputContainer:n=>n,inputWrapperOrder:["label","description","input","error"]},H1=(n,{size:l})=>({label:{"--input-label-size":Wt(l),"--input-asterisk-color":void 0},error:{"--input-error-size":l===void 0?void 0:`calc(${Wt(l)} - ${F(2)})`},description:{"--input-description-size":l===void 0?void 0:`calc(${Wt(l)} - ${F(2)})`}}),tu=ge(n=>{const l=ce("InputWrapper",A3,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,size:h,variant:p,__staticSelector:b,inputContainer:g,inputWrapperOrder:y,label:w,error:C,description:R,labelProps:j,descriptionProps:N,errorProps:E,labelElement:_,children:D,withAsterisk:L,id:U,required:V,__stylesApiProps:k,mod:P,attributes:ae,...te}=l,W=De({name:["InputWrapper",b],props:k||l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:ae,vars:m,varsResolver:H1}),oe={size:h,variant:p,__staticSelector:b},K=Ta(U),ie=typeof L=="boolean"?L:V,O=(E==null?void 0:E.id)||`${K}-error`,M=(N==null?void 0:N.id)||`${K}-description`,B=K,G=!!C&&typeof C!="boolean",J=!!R,A=`${G?O:""} ${J?M:""}`,H=A.trim().length>0?A.trim():void 0,Q=(j==null?void 0:j.id)||`${K}-label`,ee=w&&v.jsx(Zi,{labelElement:_,id:Q,htmlFor:B,required:ie,...oe,...j,children:w},"label"),se=J&&v.jsx(qi,{...N,...oe,size:(N==null?void 0:N.size)||oe.size,id:(N==null?void 0:N.id)||M,children:R},"description"),de=v.jsx(x.Fragment,{children:g(D)},"input"),pe=G&&x.createElement(Gi,{...E,...oe,size:(E==null?void 0:E.size)||oe.size,key:"error",id:(E==null?void 0:E.id)||O},C),_e=y.map(Me=>{switch(Me){case"label":return ee;case"input":return de;case"description":return se;case"error":return pe;default:return null}});return v.jsx(jo,{value:{getStyles:W,describedBy:H,inputId:B,labelId:Q,...j3(y,{hasDescription:J,hasError:G})},children:v.jsx(fe,{variant:p,size:h,mod:[{error:!!C},P],id:_==="label"?void 0:U,...W("root"),...te,children:_e})})});tu.classes=na;tu.varsResolver=H1;tu.displayName="@mantine/core/InputWrapper";const O3={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm",loading:!1,loadingPosition:"right"},$1=(n,l,o)=>({wrapper:{"--input-margin-top":o.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":o.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Pe(l.size,"input-height"),"--input-fz":Wt(l.size),"--input-radius":l.radius===void 0?void 0:Xt(l.radius),"--input-left-section-width":l.leftSectionWidth!==void 0?F(l.leftSectionWidth):void 0,"--input-right-section-width":l.rightSectionWidth!==void 0?F(l.rightSectionWidth):void 0,"--input-padding-y":l.multiline?Pe(l.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":l.leftSectionPointerEvents,"--input-right-section-pointer-events":l.rightSectionPointerEvents}}),$t=sn(n=>{const l=ce("Input",O3,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,required:m,__staticSelector:h,__stylesApiProps:p,size:b,wrapperProps:g,error:y,disabled:w,leftSection:C,leftSectionProps:R,leftSectionWidth:j,rightSection:N,rightSectionProps:E,rightSectionWidth:_,rightSectionPointerEvents:D,leftSectionPointerEvents:L,variant:U,vars:V,pointer:k,multiline:P,radius:ae,id:te,withAria:W,withErrorStyles:oe,mod:K,inputSize:ie,attributes:O,__clearSection:M,__clearable:B,__clearSectionMode:G,__defaultRightSection:J,loading:A,loadingPosition:H,__bottomSection:Q,__bottomSectionProps:ee,rootRef:se,dir:de,...pe}=l,{styleProps:_e,rest:Me}=Xc(pe),He=x.use(jo),st={offsetBottom:He==null?void 0:He.offsetBottom,offsetTop:He==null?void 0:He.offsetTop},je=De({name:["Input",h],props:p||l,classes:na,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:O,stylesCtx:st,rootSelector:"wrapper",vars:V,varsResolver:$1}),Qe=W?{required:m,disabled:w,"aria-invalid":y?!0:void 0,"aria-describedby":He==null?void 0:He.describedBy,id:(He==null?void 0:He.inputId)||te}:{},$e=A?v.jsx(Hn,{size:H==="left"?"calc(var(--input-left-section-size) / 2)":"calc(var(--input-right-section-size) / 2)"}):null,Ce=A&&H==="left"?$e:C,ct=_3({__clearable:B,__clearSection:M,rightSection:A&&H==="right"?$e:N,__defaultRightSection:J,size:b,__clearSectionMode:G});return v.jsx(M1,{value:{size:b||"sm"},children:v.jsxs(fe,{ref:se,dir:de,...je("wrapper"),..._e,...g,mod:[{error:!!y&&oe,pointer:k,disabled:w,multiline:P,"data-with-right-section":!!ct,"data-with-left-section":!!Ce,"data-with-bottom-section":!!Q},K],variant:U,size:b,children:[Ce&&v.jsx("div",{...R,"data-position":"left",...je("section",{className:R==null?void 0:R.className,style:R==null?void 0:R.style}),children:Ce}),v.jsx(fe,{component:"input",...Me,...Qe,required:m,mod:{disabled:w,error:!!y&&oe},variant:U,__size:ie,...je("input")}),Q&&v.jsx("div",{...ee,...je("bottomSection",{className:ee==null?void 0:ee.className,style:ee==null?void 0:ee.style}),children:Q}),ct&&v.jsx("div",{...E,"data-position":"right",...je("section",{className:E==null?void 0:E.className,style:E==null?void 0:E.style}),children:ct})]})})});$t.classes=na;$t.varsResolver=$1;$t.Wrapper=tu;$t.Label=Zi;$t.Error=Gi;$t.Description=qi;$t.Placeholder=Eh;$t.ClearButton=D1;$t.displayName="@mantine/core/Input";function M3(n,l,o){const r=ce(["Input","InputWrapper",n],l,o),{label:s,description:c,error:f,required:m,classNames:h,styles:p,className:b,unstyled:g,__staticSelector:y,__stylesApiProps:w,errorProps:C,labelProps:R,descriptionProps:j,wrapperProps:N,id:E,size:_,style:D,inputContainer:L,inputWrapperOrder:U,withAsterisk:V,variant:k,vars:P,mod:ae,attributes:te,...W}=r,{styleProps:oe,rest:K}=Xc(W),ie={label:s,description:c,error:f,required:m,classNames:h,className:b,__staticSelector:y,__stylesApiProps:w||r,errorProps:C,labelProps:R,descriptionProps:j,unstyled:g,styles:p,size:_,style:D,inputContainer:L,inputWrapperOrder:U,withAsterisk:V,variant:k,id:E,mod:ae,attributes:te,...N};return{...K,classNames:h,styles:p,unstyled:g,wrapperProps:{...ie,...oe},inputProps:{required:m,classNames:h,styles:p,unstyled:g,size:_,__staticSelector:y,__stylesApiProps:w||r,error:f,variant:k,id:E,attributes:te}}}const D3={__staticSelector:"InputBase",withAria:!0,size:"sm"},Vl=sn(n=>{const{inputProps:l,wrapperProps:o,...r}=M3("InputBase",D3,n);return v.jsx($t.Wrapper,{...o,children:v.jsx($t,{...l,...r})})});Vl.classes={...$t.classes,...$t.Wrapper.classes};Vl.displayName="@mantine/core/InputBase";function U1({style:n,size:l=16,...o}){return v.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:F(l),height:F(l),display:"block"},...o,children:v.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"})})}U1.displayName="@mantine/core/AccordionChevron";var V1={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const k1=(n,{radius:l,color:o,variant:r,autoContrast:s})=>{const c=n.variantColorResolver({color:o||n.primaryColor,theme:n,variant:r||"light",autoContrast:s});return{root:{"--alert-radius":l===void 0?void 0:Xt(l),"--alert-bg":o||r?c.background:void 0,"--alert-color":c.color,"--alert-bd":o||r?c.border:void 0}}},wo=ge(n=>{const l=ce("Alert",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,radius:h,color:p,title:b,children:g,id:y,icon:w,withCloseButton:C,onClose:R,closeButtonLabel:j,variant:N,autoContrast:E,role:_,attributes:D,...L}=l,U=De({name:"Alert",classes:V1,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:D,vars:m,varsResolver:k1}),V=Ta(y),k=b&&`${V}-title`||void 0,P=`${V}-body`;return v.jsx(fe,{id:V,...U("root",{variant:N}),variant:N,...L,role:_||"alert","aria-describedby":g?P:void 0,"aria-labelledby":b?k:void 0,children:v.jsxs("div",{...U("wrapper"),children:[w&&v.jsx("div",{...U("icon"),children:w}),v.jsxs("div",{...U("body"),children:[b&&v.jsx("div",{...U("title"),"data-with-close-button":C||void 0,children:v.jsx("span",{id:k,...U("label"),children:b})}),g&&v.jsx("div",{id:P,...U("message"),"data-variant":N,children:g})]}),C&&v.jsx(Sr,{...U("closeButton"),onClick:R,variant:"transparent",size:16,iconSize:16,"aria-label":j,unstyled:f})]})})});wo.classes=V1;wo.varsResolver=k1;wo.displayName="@mantine/core/Alert";var Y1={root:"m_b6d8b162"};function z3(n){if(n==="start")return"start";if(n==="end"||n)return"end"}const B3={inherit:!1},X1=(n,{variant:l,lineClamp:o,gradient:r,size:s,textWrap:c})=>({root:{"--text-fz":Wt(s),"--text-lh":k2(s),"--text-gradient":l==="gradient"?bm(r,n):void 0,"--text-line-clamp":typeof o=="number"?o.toString():void 0,"--text-text-wrap":c}}),ke=sn(n=>{const l=ce("Text",B3,n),{lineClamp:o,truncate:r,inline:s,inherit:c,gradient:f,span:m,textWrap:h,__staticSelector:p,vars:b,className:g,style:y,classNames:w,styles:C,unstyled:R,variant:j,mod:N,size:E,attributes:_,...D}=l;return v.jsx(fe,{...De({name:["Text",p],props:l,classes:Y1,className:g,style:y,classNames:w,styles:C,unstyled:R,attributes:_,vars:b,varsResolver:X1})("root",{focusable:!0}),component:m?"span":"p",variant:j,mod:[{"data-truncate":z3(r),"data-line-clamp":typeof o=="number","data-inline":s,"data-inherit":c},N],size:E,...D})});ke.classes=Y1;ke.varsResolver=X1;ke.displayName="@mantine/core/Text";const[L3,Ao]=Ea("AppShell was not found in tree");var kl={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const Th=ge(n=>{const{classNames:l,className:o,style:r,styles:s,unstyled:c,vars:f,withBorder:m,zIndex:h,mod:p,...b}=ce("AppShellAside",null,n),g=Ao();return g.disabled?null:v.jsx(fe,{component:"aside",mod:[{"with-border":m??g.withBorder},p],...g.getStyles("aside",{className:zt({[gr.classNames.zeroRight]:g.offsetScrollbars},o),classNames:l,styles:s,style:r}),...b,__vars:{"--app-shell-aside-z-index":`calc(${h??g.zIndex} + 1)`}})});Th.classes=kl;Th.displayName="@mantine/core/AppShellAside";const Rh=ge(n=>{var y;const{classNames:l,className:o,style:r,styles:s,unstyled:c,vars:f,withBorder:m,zIndex:h,mod:p,...b}=ce("AppShellFooter",null,n),g=Ao();return g.disabled?null:v.jsx(fe,{component:"footer",mod:[{"with-border":m??g.withBorder},p],...g.getStyles("footer",{className:zt({[gr.classNames.zeroRight]:g.offsetScrollbars},o),classNames:l,styles:s,style:r}),...b,__vars:{"--app-shell-footer-z-index":(y=h??g.zIndex)==null?void 0:y.toString()}})});Rh.classes=kl;Rh.displayName="@mantine/core/AppShellFooter";const _h=ge(n=>{var y;const{classNames:l,className:o,style:r,styles:s,unstyled:c,vars:f,withBorder:m,zIndex:h,mod:p,...b}=ce("AppShellHeader",null,n),g=Ao();return g.disabled?null:v.jsx(fe,{component:"header",mod:[{"with-border":m??g.withBorder},p],...g.getStyles("header",{className:zt({[gr.classNames.zeroRight]:g.offsetScrollbars},o),classNames:l,styles:s,style:r}),...b,__vars:{"--app-shell-header-z-index":(y=h??g.zIndex)==null?void 0:y.toString()}})});_h.classes=kl;_h.displayName="@mantine/core/AppShellHeader";const Nh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("AppShellMain",null,n);return v.jsx(fe,{component:"main",...Ao().getStyles("main",{className:o,style:r,classNames:l,styles:s}),...f})});Nh.classes=kl;Nh.displayName="@mantine/core/AppShellMain";const jh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,unstyled:c,vars:f,withBorder:m,zIndex:h,mod:p,...b}=ce("AppShellNavbar",null,n),g=Ao();return g.disabled?null:v.jsx(fe,{component:"nav",mod:[{"with-border":m??g.withBorder},p],...g.getStyles("navbar",{className:o,classNames:l,styles:s,style:r}),...b,__vars:{"--app-shell-navbar-z-index":`calc(${h??g.zIndex} + 1)`}})});jh.classes=kl;jh.displayName="@mantine/core/AppShellNavbar";const Ah=sn(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,grow:f,mod:m,...h}=ce("AppShellSection",null,n),p=Ao();return v.jsx(fe,{mod:[{grow:f},m],...p.getStyles("section",{className:o,style:r,classNames:l,styles:s}),...h})});Ah.classes=kl;Ah.displayName="@mantine/core/AppShellSection";function Qi(n){return typeof n=="object"?n.base:n}function Ki(n){const l=typeof n=="object"&&n!==null&&typeof n.base<"u"&&Object.keys(n).length===1;return typeof n=="number"||typeof n=="string"||l}function Ii(n){return!(typeof n!="object"||n===null||Object.keys(n).length===1&&"base"in n)}function H3({baseStyles:n,minMediaStyles:l,maxMediaStyles:o,aside:r,theme:s,mode:c}){var p,b,g;const f=r==null?void 0:r.width,m="translateX(var(--app-shell-aside-width))",h="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((p=r==null?void 0:r.collapsed)!=null&&p.mobile)&&(o[r==null?void 0:r.breakpoint]=o[r==null?void 0:r.breakpoint]||{},c==="fixed"?(o[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",o[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"):(o[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="0px",o[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px")),Ki(f)){const y=F(Qi(f));n["--app-shell-aside-width"]=y,n["--app-shell-aside-offset"]=y}if(Ii(f)&&(typeof f.base<"u"&&(n["--app-shell-aside-width"]=F(f.base),n["--app-shell-aside-offset"]=F(f.base)),Ft(f).forEach(y=>{y!=="base"&&(l[y]=l[y]||{},l[y]["--app-shell-aside-width"]=F(f[y]),l[y]["--app-shell-aside-offset"]=F(f[y]))})),r!=null&&r.breakpoint&&c==="static"&&(l[r.breakpoint]=l[r.breakpoint]||{},l[r.breakpoint]["--app-shell-aside-position"]="sticky",l[r.breakpoint]["--app-shell-aside-grid-row"]="2",l[r.breakpoint]["--app-shell-aside-grid-column"]="3",l[r.breakpoint]["--app-shell-main-column-end"]="3"),(b=r==null?void 0:r.collapsed)!=null&&b.desktop){const y=r.breakpoint;l[y]=l[y]||{},l[y]["--app-shell-aside-transform"]=m,l[y]["--app-shell-aside-transform-rtl"]=h,c==="fixed"?l[y]["--app-shell-aside-offset"]="0px !important":(l[y]["--app-shell-aside-width"]="0px",l[y]["--app-shell-aside-display"]="none",l[y]["--app-shell-main-column-end"]="-1"),l[y]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if((g=r==null?void 0:r.collapsed)!=null&&g.mobile){const y=Gm(r.breakpoint,s.breakpoints)-.1;o[y]=o[y]||{},c==="fixed"?(o[y]["--app-shell-aside-width"]="100%",o[y]["--app-shell-aside-offset"]="0px"):o[y]["--app-shell-aside-width"]="0px",o[y]["--app-shell-aside-transform"]=m,o[y]["--app-shell-aside-transform-rtl"]=h,o[y]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}function $3({baseStyles:n,minMediaStyles:l,footer:o,mode:r}){const s=o==null?void 0:o.height,c="translateY(var(--app-shell-footer-height))",f=r==="static"?!0:(o==null?void 0:o.offset)??!0;if(r==="static"&&o&&(n["--app-shell-footer-position"]="sticky",n["--app-shell-footer-grid-column"]="1 / -1",n["--app-shell-footer-grid-row"]="3"),Ki(s)){const m=F(Qi(s));n["--app-shell-footer-height"]=m,f&&(n["--app-shell-footer-offset"]=m)}Ii(s)&&(typeof s.base<"u"&&(n["--app-shell-footer-height"]=F(s.base),f&&(n["--app-shell-footer-offset"]=F(s.base))),Ft(s).forEach(m=>{m!=="base"&&(l[m]=l[m]||{},l[m]["--app-shell-footer-height"]=F(s[m]),f&&(l[m]["--app-shell-footer-offset"]=F(s[m])))})),o!=null&&o.collapsed&&(n["--app-shell-footer-transform"]=c,r==="fixed"&&(n["--app-shell-footer-offset"]="0px !important"))}function U3({baseStyles:n,minMediaStyles:l,header:o,mode:r}){const s=o==null?void 0:o.height,c="translateY(calc(var(--app-shell-header-height) * -1))",f=r==="static"?!0:(o==null?void 0:o.offset)??!0;if(r==="static"&&o&&(n["--app-shell-header-position"]="sticky",n["--app-shell-header-grid-column"]="1 / -1",n["--app-shell-header-grid-row"]="1"),Ki(s)){const m=F(Qi(s));n["--app-shell-header-height"]=m,f&&(n["--app-shell-header-offset"]=m)}Ii(s)&&(typeof s.base<"u"&&(n["--app-shell-header-height"]=F(s.base),f&&(n["--app-shell-header-offset"]=F(s.base))),Ft(s).forEach(m=>{m!=="base"&&(l[m]=l[m]||{},l[m]["--app-shell-header-height"]=F(s[m]),f&&(l[m]["--app-shell-header-offset"]=F(s[m])))})),o!=null&&o.collapsed&&(n["--app-shell-header-transform"]=c,r==="fixed"&&(n["--app-shell-header-offset"]="0px !important"))}function V3({baseStyles:n,minMediaStyles:l,maxMediaStyles:o,navbar:r,theme:s,mode:c}){var p,b,g;const f=r==null?void 0:r.width,m="translateX(calc(var(--app-shell-navbar-width) * -1))",h="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((p=r==null?void 0:r.collapsed)!=null&&p.mobile)&&(o[r==null?void 0:r.breakpoint]=o[r==null?void 0:r.breakpoint]||{},o[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px",o[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",c==="static"&&(o[r==null?void 0:r.breakpoint]["--app-shell-navbar-grid-width"]="0px")),Ki(f)){const y=F(Qi(f));n["--app-shell-navbar-width"]=y,n["--app-shell-navbar-offset"]=y,c==="static"&&(n["--app-shell-navbar-grid-width"]=y)}if(Ii(f)&&(typeof f.base<"u"&&(n["--app-shell-navbar-width"]=F(f.base),n["--app-shell-navbar-offset"]=F(f.base),c==="static"&&(n["--app-shell-navbar-grid-width"]=F(f.base))),Ft(f).forEach(y=>{y!=="base"&&(l[y]=l[y]||{},l[y]["--app-shell-navbar-width"]=F(f[y]),l[y]["--app-shell-navbar-offset"]=F(f[y]),c==="static"&&(l[y]["--app-shell-navbar-grid-width"]=F(f[y])))})),r!=null&&r.breakpoint&&c==="static"&&(l[r.breakpoint]=l[r.breakpoint]||{},l[r.breakpoint]["--app-shell-navbar-position"]="sticky",l[r.breakpoint]["--app-shell-navbar-grid-row"]="2",l[r.breakpoint]["--app-shell-navbar-grid-column"]="1",l[r.breakpoint]["--app-shell-main-column-start"]="2"),(b=r==null?void 0:r.collapsed)!=null&&b.desktop){const y=r.breakpoint;l[y]=l[y]||{},l[y]["--app-shell-navbar-transform"]=m,l[y]["--app-shell-navbar-transform-rtl"]=h,c==="fixed"?l[y]["--app-shell-navbar-offset"]="0px !important":(l[y]["--app-shell-navbar-width"]="0px",l[y]["--app-shell-navbar-display"]="none",l[y]["--app-shell-main-column-start"]="1")}if((g=r==null?void 0:r.collapsed)!=null&&g.mobile){const y=Gm(r.breakpoint,s.breakpoints)-.1;o[y]=o[y]||{},o[y]["--app-shell-navbar-width"]="100%",o[y]["--app-shell-navbar-offset"]="0px",c==="static"&&(o[y]["--app-shell-navbar-grid-width"]="0px"),o[y]["--app-shell-navbar-transform"]=m,o[y]["--app-shell-navbar-transform-rtl"]=h}}function um(n){return Number(n)===0?"0px":el(n)}function k3({padding:n,baseStyles:l,minMediaStyles:o}){Ki(n)&&(l["--app-shell-padding"]=um(Qi(n))),Ii(n)&&(n.base&&(l["--app-shell-padding"]=um(n.base)),Ft(n).forEach(r=>{r!=="base"&&(o[r]=o[r]||{},o[r]["--app-shell-padding"]=um(n[r]))}))}function Y3({navbar:n,header:l,footer:o,aside:r,padding:s,theme:c,mode:f}){const m={},h={},p={};f==="static"&&(p["--app-shell-main-grid-column"]="1 / -1",p["--app-shell-main-grid-row"]="2"),V3({baseStyles:p,minMediaStyles:m,maxMediaStyles:h,navbar:n,theme:c,mode:f}),H3({baseStyles:p,minMediaStyles:m,maxMediaStyles:h,aside:r,theme:c,mode:f}),U3({baseStyles:p,minMediaStyles:m,header:l,mode:f}),$3({baseStyles:p,minMediaStyles:m,footer:o,mode:f}),k3({baseStyles:p,minMediaStyles:m,padding:s});const b=Wy(Ft(m),c.breakpoints).map(y=>({query:`(min-width: ${_c(y.px)})`,styles:m[y.value]})),g=Wy(Ft(h),c.breakpoints).map(y=>({query:`(max-width: ${_c(y.px)})`,styles:h[y.value]}));return{baseStyles:p,media:[...b,...g]}}function X3({navbar:n,header:l,aside:o,footer:r,padding:s,mode:c,selector:f}){const m=Wn(),h=Ra(),{media:p,baseStyles:b}=Y3({navbar:n,header:l,footer:r,aside:o,padding:s,theme:m,mode:c});return v.jsx(vb,{media:p,styles:b,selector:f||h.cssVariablesSelector})}function q3({transitionDuration:n,disabled:l}){const[o,r]=x.useState(!0),s=x.useRef(-1),c=x.useRef(-1);return ib("resize",()=>{r(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>x.startTransition(()=>{r(!1)}),200)}),wa(()=>{r(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>x.startTransition(()=>{r(!1)}),n||0)},[l,n]),o}const G3={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:on("app"),mode:"fixed"},q1=(n,{transitionDuration:l,transitionTimingFunction:o})=>({root:{"--app-shell-transition-duration":`${l}ms`,"--app-shell-transition-timing-function":o}}),Bn=ge(n=>{const l=ce("AppShell",G3,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,navbar:h,withBorder:p,padding:b,transitionDuration:g,transitionTimingFunction:y,header:w,zIndex:C,layout:R,disabled:j,aside:N,footer:E,offsetScrollbars:_=!0,mode:D,mod:L,attributes:U,id:V,...k}=l,P=De({name:"AppShell",classes:kl,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:U,vars:m,varsResolver:q1}),ae=q3({disabled:j,transitionDuration:g}),te=Ta(V);return v.jsxs(L3,{value:{getStyles:P,withBorder:p,zIndex:C,disabled:j,offsetScrollbars:_,mode:D},children:[v.jsx(X3,{navbar:h,header:w,aside:N,footer:E,padding:b,mode:D,selector:D==="static"?`#${te}`:void 0}),v.jsx(fe,{...P("root"),id:te,mod:[{resizing:ae,layout:R,disabled:j,mode:D},L],...k})]})});Bn.classes=kl;Bn.varsResolver=q1;Bn.displayName="@mantine/core/AppShell";Bn.Navbar=jh;Bn.Header=_h;Bn.Main=Nh;Bn.Aside=Th;Bn.Footer=Rh;Bn.Section=Ah;function G1(n){return typeof n=="string"?{value:n,label:n}:typeof n=="object"&&"value"in n&&!("label"in n)?{value:n.value,label:`${n.value}`,disabled:n.disabled}:typeof n=="object"&&"group"in n?{group:n.group,items:n.items.map(l=>G1(l))}:typeof n=="number"||typeof n=="bigint"||typeof n=="boolean"?{value:n,label:`${n}`}:n}function Z3(n){return n?n.map(l=>G1(l)):[]}function Z1(n){return n.reduce((l,o)=>"group"in o?{...l,...Z1(o.items)}:(l[`${o.value}`]=o,l),{})}var ln={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"};const Q3={error:null},Q1=(n,{size:l,color:o})=>({chevron:{"--combobox-chevron-size":Pe(l,"combobox-chevron-size"),"--combobox-chevron-color":o?Fn(o,n):void 0}}),nu=ge(n=>{const l=ce("ComboboxChevron",Q3,n),{size:o,error:r,style:s,className:c,classNames:f,styles:m,unstyled:h,vars:p,attributes:b,mod:g,...y}=l,w=De({name:"ComboboxChevron",classes:ln,props:l,style:s,className:c,classNames:f,styles:m,unstyled:h,vars:p,varsResolver:Q1,attributes:b,rootSelector:"chevron"});return v.jsx(fe,{component:"svg",...y,...w("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},g],children:v.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"})})});nu.classes=ln;nu.varsResolver=Q1;nu.displayName="@mantine/core/ComboboxChevron";const[K3,$n]=Ea("Combobox component was not found in tree");function K1({onMouseDown:n,onClick:l,onClear:o,...r}){return v.jsx($t.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:s=>{s.preventDefault(),n==null||n(s)},onClick:s=>{o(),l==null||l(s)}})}K1.displayName="@mantine/core/ComboboxClearButton";const Oh=ge(n=>{const{classNames:l,styles:o,className:r,style:s,hidden:c,...f}=ce("ComboboxDropdown",null,n),m=$n();return v.jsx(Sn.Dropdown,{...f,role:"presentation","data-hidden":c||void 0,"data-floating-height":m.floatingHeight||void 0,...m.getStyles("dropdown",{className:r,style:s,classNames:l,styles:o})})});Oh.classes=ln;Oh.displayName="@mantine/core/ComboboxDropdown";const I3={refProp:"ref"},I1=ge(n=>{const{children:l,refProp:o,ref:r}=ce("ComboboxDropdownTarget",I3,n);if($n(),!tb(l))throw new 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 v.jsx(Sn.Target,{ref:r,refProp:o,children:l})});I1.displayName="@mantine/core/ComboboxDropdownTarget";const Mh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ComboboxEmpty",null,n);return v.jsx(fe,{...$n().getStyles("empty",{className:o,classNames:l,styles:s,style:r}),...f})});Mh.classes=ln;Mh.displayName="@mantine/core/ComboboxEmpty";function Dh({onKeyDown:n,onClick:l,withKeyboardNavigation:o,withAriaAttributes:r,withExpandedAttribute:s,targetType:c,autoComplete:f}){const m=$n(),[h,p]=x.useState(null),b=w=>{if(n==null||n(w),!m.readOnly&&o){if(w.nativeEvent.isComposing)return;if(w.nativeEvent.code==="ArrowDown"&&(w.preventDefault(),m.store.dropdownOpened?p(m.store.selectNextOption()):(m.store.openDropdown("keyboard"),p(m.store.selectActiveOption()),m.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="ArrowUp"&&(w.preventDefault(),m.store.dropdownOpened?p(m.store.selectPreviousOption()):(m.store.openDropdown("keyboard"),p(m.store.selectActiveOption()),m.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),w.nativeEvent.code==="Enter"||w.nativeEvent.code==="NumpadEnter"){if(w.nativeEvent.keyCode===229)return;const C=m.store.getSelectedOptionIndex();m.store.dropdownOpened&&C!==-1?(w.preventDefault(),m.store.clickSelectedOption()):c==="button"&&(w.preventDefault(),m.store.openDropdown("keyboard"))}w.key==="Escape"&&m.store.closeDropdown("keyboard"),w.nativeEvent.code==="Space"&&c==="button"&&(w.preventDefault(),m.store.toggleDropdown("keyboard"))}};return{...r?{...s?{role:"combobox"}:{},"aria-haspopup":"listbox","aria-expanded":s?!!(m.store.listId&&m.store.dropdownOpened):void 0,"aria-controls":m.store.dropdownOpened&&m.store.listId?m.store.listId:void 0,"aria-activedescendant":m.store.dropdownOpened&&h||void 0,autoComplete:f,"data-expanded":m.store.dropdownOpened||void 0,"data-mantine-stop-propagation":m.store.dropdownOpened||void 0}:{},onKeyDown:b,onClick:w=>{c==="button"&&w.currentTarget.focus(),l==null||l(w)}}}const F3={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},F1=ge(n=>{const{children:l,refProp:o,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:c,targetType:f,autoComplete:m,ref:h,...p}=ce("ComboboxEventsTarget",F3,n),b=br(l);if(!b)throw new 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");const g=$n();return x.cloneElement(b,{...Dh({targetType:f,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:c,onKeyDown:b.props.onKeyDown,onClick:b.props.onClick,autoComplete:m}),...p,[o]:en(h,g.store.targetRef,Vc(b))})});F1.displayName="@mantine/core/ComboboxEventsTarget";const zh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ComboboxFooter",null,n);return v.jsx(fe,{...$n().getStyles("footer",{className:o,classNames:l,style:r,styles:s}),...f,onMouseDown:m=>{m.preventDefault()}})});zh.classes=ln;zh.displayName="@mantine/core/ComboboxFooter";const Bh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,children:f,label:m,id:h,...p}=ce("ComboboxGroup",null,n),b=$n(),g=Ta(h);return v.jsxs(fe,{role:"group","aria-labelledby":m?g:void 0,...b.getStyles("group",{className:o,classNames:l,style:r,styles:s}),...p,children:[m&&v.jsx("div",{id:g,...b.getStyles("groupLabel",{classNames:l,styles:s}),children:m}),f]})});Bh.classes=ln;Bh.displayName="@mantine/core/ComboboxGroup";const Lh=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ComboboxHeader",null,n);return v.jsx(fe,{...$n().getStyles("header",{className:o,classNames:l,style:r,styles:s}),...f,onMouseDown:m=>{m.preventDefault()}})});Lh.classes=ln;Lh.displayName="@mantine/core/ComboboxHeader";function J1({value:n,valuesDivider:l=",",...o}){return v.jsx("input",{type:"hidden",value:Array.isArray(n)?n.join(l):n?`${n}`:"",...o})}J1.displayName="@mantine/core/ComboboxHiddenInput";const Hh=ge(n=>{const l=ce("ComboboxOption",null,n),{classNames:o,className:r,style:s,styles:c,vars:f,onClick:m,id:h,active:p,onMouseDown:b,onMouseOver:g,disabled:y,selected:w,mod:C,...R}=l,j=$n(),N=x.useId(),E=h||N;return v.jsx(fe,{...j.getStyles("option",{className:r,classNames:o,styles:c,style:s}),...R,id:E,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":y,"combobox-selected":w},C],role:"option",onClick:_=>{var D;y?_.preventDefault():((D=j.onOptionSubmit)==null||D.call(j,l.value,l),m==null||m(_))},onMouseDown:_=>{_.preventDefault(),b==null||b(_)},onMouseOver:_=>{j.resetSelectionOnOptionHover&&j.store.resetSelectedOption(),g==null||g(_)}})});Hh.classes=ln;Hh.displayName="@mantine/core/ComboboxOption";const $h=ge(n=>{const{classNames:l,className:o,style:r,styles:s,id:c,onMouseDown:f,labelledBy:m,...h}=ce("ComboboxOptions",null,n),p=$n(),b=Ta(c);return x.useEffect(()=>{p.store.setListId(b)},[b]),v.jsx(fe,{...p.getStyles("options",{className:o,style:r,classNames:l,styles:s}),...h,id:b,role:"listbox","aria-labelledby":m,onMouseDown:g=>{g.preventDefault(),f==null||f(g)}})});$h.classes=ln;$h.displayName="@mantine/core/ComboboxOptions";const J3={withAriaAttributes:!0,withKeyboardNavigation:!0},Uh=ge(n=>{const{classNames:l,styles:o,unstyled:r,vars:s,withAriaAttributes:c,onKeyDown:f,onClick:m,withKeyboardNavigation:h,size:p,ref:b,...g}=ce("ComboboxSearch",J3,n),y=$n(),w=y.getStyles("search"),C=Dh({targetType:"input",withAriaAttributes:c,withKeyboardNavigation:h,withExpandedAttribute:!1,onKeyDown:f,onClick:m,autoComplete:"off"});return v.jsx($t,{ref:en(b,y.store.searchRef),classNames:[{input:w.className},l],styles:[{input:w.style},o],size:p||y.size,...C,...g,__staticSelector:"Combobox"})});Uh.classes=ln;Uh.displayName="@mantine/core/ComboboxSearch";const P3={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},P1=ge(n=>{const{children:l,refProp:o,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:c,targetType:f,autoComplete:m,ref:h,...p}=ce("ComboboxTarget",P3,n),b=br(l);if(!b)throw new 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");const g=$n(),y=x.cloneElement(b,{...Dh({targetType:f,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:c,onKeyDown:b.props.onKeyDown,onClick:b.props.onClick,autoComplete:m}),...p});return v.jsx(Sn.Target,{refProp:o,ref:en(h,g.store.targetRef),children:y})});P1.displayName="@mantine/core/ComboboxTarget";function W3(n,l,o){for(let r=n-1;r>=0;r-=1)if(!l[r].hasAttribute("data-combobox-disabled"))return r;if(o){for(let r=l.length-1;r>-1;r-=1)if(!l[r].hasAttribute("data-combobox-disabled"))return r}return n}function e_(n,l,o){for(let r=n+1;r{m||(h(!0),s==null||s(O))},[h,s,m]),N=x.useCallback((O="unknown")=>{m&&(h(!1),r==null||r(O))},[h,r,m]),E=x.useCallback((O="unknown")=>{m?N(O):j(O)},[N,j,m]),_=x.useCallback(()=>{const O=Ia(y.current),M=bc(`#${p.current} [data-combobox-selected]`,O);M==null||M.removeAttribute("data-combobox-selected"),M==null||M.removeAttribute("aria-selected")},[]),D=x.useCallback(O=>{const M=Ia(y.current),B=bc(`#${p.current}`,M),G=B?Fa("[data-combobox-option]",B):null;if(!G)return null;const J=O>=G.length?0:O<0?G.length-1:O;return b.current=J,G!=null&&G[J]&&!G[J].hasAttribute("data-combobox-disabled")?(_(),G[J].setAttribute("data-combobox-selected","true"),G[J].setAttribute("aria-selected","true"),G[J].scrollIntoView({block:"nearest",behavior:f}),G[J].id):null},[f,_]),L=x.useCallback(()=>{const O=Ia(y.current),M=bc(`#${p.current} [data-combobox-active]`,O);return D(M?Fa(`#${p.current} [data-combobox-option]`,O).findIndex(B=>B===M):0)},[D]),U=x.useCallback(()=>{const O=Ia(y.current),M=Fa(`#${p.current} [data-combobox-option]`,O);return D(e_(b.current,M,c))},[D,c]),V=x.useCallback(()=>{const O=Ia(y.current),M=Fa(`#${p.current} [data-combobox-option]`,O);return D(W3(b.current,M,c))},[D,c]),k=x.useCallback(()=>{const O=Ia(y.current);return D(t_(Fa(`#${p.current} [data-combobox-option]`,O)))},[D]),P=x.useCallback((O="selected",M)=>{var B;if(typeof O=="number"){b.current=O;const G=Ia(y.current),J=Fa(`#${p.current} [data-combobox-option]`,G);M!=null&&M.scrollIntoView&&((B=J[O])==null||B.scrollIntoView({block:"nearest",behavior:f}));return}R.current=window.setTimeout(()=>{var H;const G=Ia(y.current),J=Fa(`#${p.current} [data-combobox-option]`,G),A=J.findIndex(Q=>Q.hasAttribute(`data-combobox-${O}`));b.current=A,M!=null&&M.scrollIntoView&&((H=J[A])==null||H.scrollIntoView({block:"nearest",behavior:f}))},0)},[]),ae=x.useCallback(()=>{b.current=-1,_()},[_]),te=x.useCallback(()=>{var M,B;const O=Ia(y.current);(B=(M=Fa(`#${p.current} [data-combobox-option]`,O))==null?void 0:M[b.current])==null||B.click()},[]),W=x.useCallback(O=>{p.current=O},[]),oe=x.useCallback(()=>{w.current=window.setTimeout(()=>{var O;return(O=g.current)==null?void 0:O.focus()},0)},[]),K=x.useCallback(()=>{C.current=window.setTimeout(()=>{var O;return(O=y.current)==null?void 0:O.focus()},0)},[]),ie=x.useCallback(()=>b.current,[]);return x.useEffect(()=>()=>{window.clearTimeout(w.current),window.clearTimeout(C.current),window.clearTimeout(R.current)},[]),{dropdownOpened:m,openDropdown:j,closeDropdown:N,toggleDropdown:E,selectedOptionIndex:b.current,getSelectedOptionIndex:ie,selectOption:D,selectFirstOption:k,selectActiveOption:L,selectNextOption:U,selectPreviousOption:V,resetSelectedOption:ae,updateSelectedOptionIndex:P,listId:p.current,setListId:W,clickSelectedOption:te,searchRef:g,focusSearchInput:oe,targetRef:y,focusTarget:K}}const n_={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},eS=(n,{size:l,dropdownPadding:o})=>({options:{"--combobox-option-fz":Wt(l),"--combobox-option-padding":Pe(l,"combobox-option-padding")},dropdown:{"--combobox-padding":o===void 0?void 0:F(o),"--combobox-option-fz":Wt(l),"--combobox-option-padding":Pe(l,"combobox-option-padding")}}),lt=n=>{const l=ce("Combobox",n_,n),{classNames:o,styles:r,unstyled:s,children:c,store:f,vars:m,onOptionSubmit:h,onClose:p,size:b,dropdownPadding:g,resetSelectionOnOptionHover:y,__staticSelector:w,readOnly:C,attributes:R,floatingHeight:j,middlewares:N,...E}=l,_=j==="viewport"?{...N,flip:!1,size:{...typeof(N==null?void 0:N.size)=="object"?N.size:{},padding:typeof(N==null?void 0:N.size)=="object"&&N.size.padding!==void 0?N.size.padding:10,apply:({availableHeight:k,availableWidth:P,elements:ae,...te})=>{ae.floating.style.setProperty("--combobox-floating-max-height",`${k}px`);const W=N==null?void 0:N.size;typeof W=="object"&&W.apply?W.apply({availableHeight:k,availableWidth:P,elements:ae,...te}):W&&Object.assign(ae.floating.style,{maxWidth:`${P}px`,maxHeight:`${k}px`})}}}:N,D=W1(),L=f||D,U=De({name:w||"Combobox",classes:ln,props:l,classNames:o,styles:r,unstyled:s,attributes:R,vars:m,varsResolver:eS}),V=()=>{p==null||p(),L.closeDropdown()};return v.jsx(K3,{value:{getStyles:U,store:L,onOptionSubmit:h,size:b,resetSelectionOnOptionHover:y,readOnly:C,floatingHeight:j},children:v.jsx(Sn,{opened:L.dropdownOpened,...E,middlewares:_,onChange:k=>!k&&V(),withRoles:!1,unstyled:s,children:c})})},a_=n=>n;lt.extend=a_;lt.classes=ln;lt.varsResolver=eS;lt.displayName="@mantine/core/Combobox";lt.Target=P1;lt.Dropdown=Oh;lt.Options=$h;lt.Option=Hh;lt.Search=Uh;lt.Empty=Mh;lt.Chevron=nu;lt.Footer=zh;lt.Header=Lh;lt.EventsTarget=F1;lt.DropdownTarget=I1;lt.Group=Bh;lt.ClearButton=K1;lt.HiddenInput=J1;function l_({children:n,role:l}){const o=x.use(jo);return o?v.jsx("div",{role:l,"aria-labelledby":o.labelId,"aria-describedby":o.describedBy,children:n}):v.jsx(v.Fragment,{children:n})}function r_({size:n,style:l,...o}){return v.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n!==void 0?{width:F(n),height:F(n),...l}:l,"aria-hidden":!0,...o,children:v.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"})})}var tS={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const o_=tS;function nS({__staticSelector:n,__stylesApiProps:l,className:o,classNames:r,styles:s,unstyled:c,children:f,label:m,description:h,id:p,disabled:b,error:g,size:y,labelPosition:w="left",bodyElement:C="div",labelElement:R="label",variant:j,style:N,vars:E,mod:_,attributes:D,...L}){const U=De({name:n,props:l,className:o,style:N,classes:tS,classNames:r,styles:s,unstyled:c,attributes:D}),V=h?`${p}-description`:void 0,k=g&&typeof g!="boolean"?`${p}-error`:void 0;return v.jsx(fe,{...U("root"),__vars:{"--label-fz":Wt(y),"--label-lh":Pe(y,"label-lh")},mod:[{"label-position":w},_],variant:j,size:y,...L,children:v.jsxs(fe,{component:C,htmlFor:C==="label"?p:void 0,...U("body"),children:[f,v.jsxs("div",{...U("labelWrapper"),"data-disabled":b||void 0,children:[m&&v.jsx(fe,{component:R,htmlFor:R==="label"?p:void 0,...U("label"),"data-disabled":b||void 0,children:m}),h&&v.jsx($t.Description,{id:V,size:y,__inheritStyles:!1,...U("description"),children:h}),g&&typeof g!="boolean"&&v.jsx($t.Error,{id:k,size:y,__inheritStyles:!1,...U("error"),children:g})]})]})})}nS.displayName="@mantine/core/InlineInput";function $i(n){return"group"in n}function aS({options:n,search:l,limit:o}){const r=l.trim().toLowerCase(),s=[];for(let c=0;c0)return!1;return!0}function lS(n,l=new Set){if(Array.isArray(n))for(const o of n)if($i(o))lS(o.items,l);else{if(typeof o.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(l.has(o.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${o.value}" was provided more than once`);l.add(o.value)}}function s_(n,l){return Array.isArray(n)?n.includes(l):n===l}function rS({data:n,withCheckIcon:l,withAlignedLabels:o,value:r,checkIconPosition:s,unstyled:c,renderOption:f}){if(!$i(n)){const h=s_(r,n.value),p=l&&(h?v.jsx(r_,{className:ln.optionsDropdownCheckIcon}):o?v.jsx("div",{className:ln.optionsDropdownCheckPlaceholder}):null),b=v.jsxs(v.Fragment,{children:[s==="left"&&p,v.jsx("span",{children:n.label}),s==="right"&&p]});return v.jsx(lt.Option,{value:n.value,disabled:n.disabled,className:zt({[ln.optionsDropdownOption]:!c}),"data-reverse":s==="right"||void 0,"data-checked":h||void 0,"aria-selected":h,active:h,children:typeof f=="function"?f({option:n,checked:h}):b})}const m=n.items.map(h=>v.jsx(rS,{data:h,value:r,unstyled:c,withCheckIcon:l,withAlignedLabels:o,checkIconPosition:s,renderOption:f},`${h.value}`));return v.jsx(lt.Group,{label:n.group,children:m})}function c_({data:n,hidden:l,hiddenWhenEmpty:o,filter:r,search:s,limit:c,maxDropdownHeight:f,floatingHeight:m,withScrollArea:h=!0,filterOptions:p=!0,withCheckIcon:b=!1,withAlignedLabels:g=!1,value:y,checkIconPosition:w,nothingFoundMessage:C,unstyled:R,labelId:j,renderOption:N,scrollAreaProps:E,"aria-label":_}){const D=$n();lS(n);const L=typeof s=="string"?(r||aS)({options:n,search:p?s:"",limit:c??1/0}):n,U=i_(L),V=L.map(k=>v.jsx(rS,{data:k,withCheckIcon:b,withAlignedLabels:g,value:y,checkIconPosition:w,unstyled:R,renderOption:N},$i(k)?k.group:`${k.value}`));return v.jsx(lt.Dropdown,{hidden:l||o&&U,"data-composed":!0,children:v.jsxs(lt.Options,{labelledBy:j,"aria-label":_,children:[h?v.jsx(Na.Autosize,{mah:(m??D.floatingHeight)==="viewport"?"var(--combobox-floating-options-max-height)":f??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...E,children:V}):V,U&&C&&v.jsx(lt.Empty,{children:C})]})})}var oS={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const iS=(n,{radius:l,color:o,gradient:r,variant:s,size:c,autoContrast:f,circle:m})=>{const h=n.variantColorResolver({color:o||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:f});return{root:{"--badge-height":Pe(c,"badge-height"),"--badge-padding-x":Pe(c,"badge-padding-x"),"--badge-fz":Pe(c,"badge-fz"),"--badge-radius":m||l===void 0?void 0:Xt(l),"--badge-bg":o||s?h.background:void 0,"--badge-color":o||s?h.color:void 0,"--badge-bd":o||s?h.border:void 0,"--badge-dot-color":s==="dot"?Fn(o,n):void 0}}},Tt=sn(n=>{const l=ce("Badge",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,radius:h,color:p,gradient:b,leftSection:g,rightSection:y,children:w,variant:C,fullWidth:R,autoContrast:j,circle:N,mod:E,attributes:_,...D}=l,L=De({name:"Badge",props:l,classes:oS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:_,vars:m,varsResolver:iS});return v.jsxs(fe,{variant:C,mod:[{block:R,circle:N,"with-right-section":!!y,"with-left-section":!!g},E],...L("root",{variant:C}),...D,children:[g&&v.jsx("span",{...L("section"),"data-position":"left",children:g}),v.jsx("span",{...L("label"),children:w}),y&&v.jsx("span",{...L("section"),"data-position":"right",children:y})]})});Tt.classes=oS;Tt.varsResolver=iS;Tt.displayName="@mantine/core/Badge";var Oo={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const V0={orientation:"horizontal"},sS=(n,{borderWidth:l})=>({group:{"--button-border-width":F(l)}}),au=ge(n=>{const l=ce("ButtonGroup",V0,n),{className:o,style:r,classNames:s,styles:c,unstyled:f,orientation:m,vars:h,borderWidth:p,mod:b,attributes:g,...y}=ce("ButtonGroup",V0,n);return v.jsx(fe,{...De({name:"ButtonGroup",props:l,classes:Oo,className:o,style:r,classNames:s,styles:c,unstyled:f,attributes:g,vars:h,varsResolver:sS,rootSelector:"group"})("group"),mod:[{"data-orientation":m},b],role:"group",...y})});au.classes=Oo;au.varsResolver=sS;au.displayName="@mantine/core/ButtonGroup";const cS=(n,{radius:l,color:o,gradient:r,variant:s,autoContrast:c,size:f})=>{const m=n.variantColorResolver({color:o||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Pe(f,"section-height"),"--section-padding-x":Pe(f,"section-padding-x"),"--section-fz":f!=null&&f.includes("compact")?Wt(f.replace("compact-","")):Wt(f),"--section-radius":l===void 0?void 0:Xt(l),"--section-bg":o||s?m.background:void 0,"--section-color":m.color,"--section-bd":o||s?m.border:void 0}}},lu=ge(n=>{const l=ce("ButtonGroupSection",null,n),{className:o,style:r,classNames:s,styles:c,unstyled:f,vars:m,gradient:h,radius:p,autoContrast:b,attributes:g,...y}=l;return v.jsx(fe,{...De({name:"ButtonGroupSection",props:l,classes:Oo,className:o,style:r,classNames:s,styles:c,unstyled:f,attributes:g,vars:m,varsResolver:cS,rootSelector:"groupSection"})("groupSection"),...y})});lu.classes=Oo;lu.varsResolver=cS;lu.displayName="@mantine/core/ButtonGroupSection";const u_={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${F(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},uS=(n,{radius:l,color:o,gradient:r,variant:s,size:c,justify:f,autoContrast:m})=>{const h=n.variantColorResolver({color:o||n.primaryColor,theme:n,gradient:r,variant:s||"filled",autoContrast:m});return{root:{"--button-justify":f,"--button-height":Pe(c,"button-height"),"--button-padding-x":Pe(c,"button-padding-x"),"--button-fz":c!=null&&c.includes("compact")?Wt(c.replace("compact-","")):Wt(c),"--button-radius":l===void 0?void 0:Xt(l),"--button-bg":o||s?h.background:void 0,"--button-hover":o||s?h.hover:void 0,"--button-color":h.color,"--button-bd":o||s?h.border:void 0,"--button-hover-color":o||s?h.hoverColor:void 0}}},Rt=sn(n=>{const l=ce("Button",null,n),{style:o,vars:r,className:s,color:c,disabled:f,children:m,leftSection:h,rightSection:p,fullWidth:b,variant:g,radius:y,loading:w,loaderProps:C,gradient:R,classNames:j,styles:N,unstyled:E,"data-disabled":_,autoContrast:D,mod:L,attributes:U,...V}=l,k=De({name:"Button",props:l,classes:Oo,className:s,style:o,classNames:j,styles:N,unstyled:E,attributes:U,vars:r,varsResolver:uS}),P=!!h,ae=!!p;return v.jsxs(Hl,{...k("root",{active:!f&&!w&&!_}),unstyled:E,variant:g,disabled:f||w,mod:[{disabled:f||_,loading:w,block:b,"with-left-section":P,"with-right-section":ae},L],...V,children:[typeof w=="boolean"&&v.jsx(nl,{mounted:w,transition:u_,duration:150,children:te=>v.jsx(fe,{component:"span",...k("loader",{style:te}),"aria-hidden":!0,children:v.jsx(Hn,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...C})})}),v.jsxs("span",{...k("inner"),children:[h&&v.jsx(fe,{component:"span",...k("section"),mod:{position:"left"},children:h}),v.jsx(fe,{component:"span",mod:{loading:w},...k("label"),children:m}),p&&v.jsx(fe,{component:"span",...k("section"),mod:{position:"right"},children:p})]})]})});Rt.classes=Oo;Rt.varsResolver=uS;Rt.displayName="@mantine/core/Button";Rt.Group=au;Rt.GroupSection=lu;const[f_,d_]=Ea("Card component was not found in tree");var Vh={root:"m_e615b15f",section:"m_599a2148"};const ru=sn(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,withBorder:f,inheritPadding:m,mod:h,...p}=ce("CardSection",null,n),b=d_();return v.jsx(fe,{mod:[{"with-border":f,"inherit-padding":m},h],...b.getStyles("section",{className:o,style:r,styles:s,classNames:l}),...p})});ru.classes=Vh;ru.displayName="@mantine/core/CardSection";const fS=(n,{padding:l})=>({root:{"--card-padding":el(l)}}),m_={orientation:"vertical"},Ul=sn(n=>{const l=ce("Card",m_,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,children:h,padding:p,attributes:b,orientation:g,...y}=l,w=De({name:"Card",props:l,classes:Vh,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:b,vars:m,varsResolver:fS}),C=x.Children.toArray(h),R=C.map((j,N)=>{var E;return typeof j=="object"&&j&&"type"in j&&(j.type===ru||((E=j.type)==null?void 0:E.displayName)==="@mantine/core/CardSection")?x.cloneElement(j,{"data-orientation":g,"data-first-section":N===0||void 0,"data-last-section":N===C.length-1||void 0}):j});return v.jsx(f_,{value:{getStyles:w},children:v.jsx(Yi,{unstyled:f,"data-orientation":g,...w("root"),...y,children:R})})});Ul.classes=Vh;Ul.varsResolver=fS;Ul.displayName="@mantine/core/Card";Ul.Section=ru;var dS={root:"m_4451eb3a"};const Lc=sn(n=>{const l=ce("Center",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,inline:h,mod:p,attributes:b,...g}=l,y=De({name:"Center",props:l,classes:dS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:b,vars:m});return v.jsx(fe,{mod:[{inline:h},p],...y("root"),...g})});Lc.classes=dS;Lc.displayName="@mantine/core/Center";const h_={timeout:1e3};function kh(n){const{children:l,timeout:o,value:r,...s}=ce("CopyButton",h_,n),c=q2({timeout:o}),f=()=>c.copy(r);return v.jsx(v.Fragment,{children:l({copy:f,copied:c.copied,...s})})}kh.displayName="@mantine/core/CopyButton";const[p_,Mo]=Ea("Drawer component was not found in tree");var ll={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const ou=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerBody",null,n);return v.jsx(yh,{...Mo().getStyles("body",{classNames:l,style:r,styles:s,className:o}),...f})});ou.classes=ll;ou.displayName="@mantine/core/DrawerBody";const iu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerCloseButton",null,n);return v.jsx(bh,{...Mo().getStyles("close",{classNames:l,style:r,styles:s,className:o}),...f})});iu.classes=ll;iu.displayName="@mantine/core/DrawerCloseButton";const su=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,children:f,radius:m,__hidden:h,...p}=ce("DrawerContent",null,n),b=Mo(),g=b.scrollAreaComponent||O1;return v.jsx(Sh,{...b.getStyles("content",{className:o,style:r,styles:s,classNames:l}),innerProps:b.getStyles("inner",{className:o,style:r,styles:s,classNames:l}),...p,radius:m||b.radius||0,"data-hidden":h||void 0,children:v.jsx(g,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:f})})});su.classes=ll;su.displayName="@mantine/core/DrawerContent";const cu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerHeader",null,n);return v.jsx(xh,{...Mo().getStyles("header",{classNames:l,style:r,styles:s,className:o}),...f})});cu.classes=ll;cu.displayName="@mantine/core/DrawerHeader";const uu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerOverlay",null,n);return v.jsx(wh,{...Mo().getStyles("overlay",{classNames:l,style:r,styles:s,className:o}),...f})});uu.classes=ll;uu.displayName="@mantine/core/DrawerOverlay";function v_(n){switch(n){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function g_(n){if(n==="top"||n==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const y_={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},b_={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},S_={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:on("modal"),position:"left"},mS=(n,{position:l,size:o,offset:r})=>({root:{"--drawer-size":Pe(o,"drawer-size"),"--drawer-flex":g_(l),"--drawer-height":l==="left"||l==="right"?void 0:"var(--drawer-size)","--drawer-align":v_(l),"--drawer-justify":l==="right"?"flex-end":void 0,"--drawer-offset":F(r)}}),Fi=ge(n=>{const l=ce("DrawerRoot",S_,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,scrollAreaComponent:h,position:p,transitionProps:b,radius:g,attributes:y,...w}=l,{dir:C}=To(),R=De({name:"Drawer",classes:ll,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:y,vars:m,varsResolver:mS}),j=(C==="rtl"?b_:y_)[p];return v.jsx(p_,{value:{scrollAreaComponent:h,getStyles:R,radius:g},children:v.jsx(gh,{...R("root"),transitionProps:{transition:j,...b},"data-offset-scrollbars":h===Na.Autosize||void 0,unstyled:f,...w})})});Fi.classes=ll;Fi.varsResolver=mS;Fi.displayName="@mantine/core/DrawerRoot";const hS=x.createContext(null);function pS({children:n}){const[l,o]=x.useState([]),[r,s]=x.useState(on("modal"));return v.jsx(hS,{value:{stack:l,addModal:(c,f)=>{o(m=>[...new Set([...m,c])]),s(m=>typeof f=="number"&&typeof m=="number"?Math.max(m,f):m)},removeModal:c=>o(f=>f.filter(m=>m!==c)),getZIndex:c=>`calc(${r} + ${l.indexOf(c)} + 1)`,currentId:l[l.length-1],maxZIndex:r},children:n})}pS.displayName="@mantine/core/DrawerStack";const fu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("DrawerTitle",null,n);return v.jsx(Ch,{...Mo().getStyles("title",{classNames:l,style:r,styles:s,className:o}),...f})});fu.classes=ll;fu.displayName="@mantine/core/DrawerTitle";const x_={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:on("modal"),withOverlay:!0,withCloseButton:!0},ma=ge(n=>{const{title:l,withOverlay:o,overlayProps:r,withCloseButton:s,closeButtonProps:c,children:f,opened:m,stackId:h,zIndex:p,...b}=ce("Drawer",x_,n),g=x.use(hS),y=!!l||s,w=g&&h?{closeOnEscape:g.currentId===h,trapFocus:g.currentId===h,zIndex:g.getZIndex(h)}:{},C=o===!1?!1:h&&g?g.currentId===h:m;return x.useEffect(()=>{g&&h&&(m?g.addModal(h,p||on("modal")):g.removeModal(h))},[m,h,p]),v.jsxs(Fi,{opened:m,zIndex:g&&h?g.getZIndex(h):p,...b,...w,children:[o&&v.jsx(uu,{visible:C,transitionProps:g&&h?{duration:0}:void 0,...r}),v.jsxs(su,{__hidden:g&&h&&m?h!==g.currentId:!1,children:[y&&v.jsxs(cu,{children:[l&&v.jsx(fu,{children:l}),s&&v.jsx(iu,{...c})]}),v.jsx(ou,{children:f})]})]})});ma.classes=ll;ma.displayName="@mantine/core/Drawer";ma.Root=Fi;ma.Overlay=uu;ma.Content=su;ma.Body=ou;ma.Header=cu;ma.Title=fu;ma.CloseButton=iu;ma.Stack=pS;function w_(n="top-end",l=0){const o={"--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 l=="number"?l:l.x,s=typeof l=="number"?l:l.y,c=F(r),f=F(s),[m,h]=n.split("-");return m==="top"&&(o["--indicator-top"]=f,o["--indicator-translate-y"]="-50%"),m==="middle"&&(o["--indicator-top"]="50%",o["--indicator-translate-y"]="-50%"),m==="bottom"&&(o["--indicator-bottom"]=f,o["--indicator-translate-y"]="50%"),h==="start"&&(o["--indicator-left"]=c,o["--indicator-translate-x"]="-50%"),h==="center"&&(o["--indicator-left"]="50%",o["--indicator-translate-x"]="-50%"),h==="end"&&(o["--indicator-right"]=c,o["--indicator-translate-x"]="50%"),o}var vS={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const C_={position:"top-end",offset:0,showZero:!0},gS=(n,{color:l,position:o,offset:r,size:s,radius:c,zIndex:f,autoContrast:m})=>({root:{"--indicator-color":l?Fn(l,n):void 0,"--indicator-text-color":bC(m,n)?cb({color:l,theme:n,autoContrast:m}):void 0,"--indicator-size":F(s),"--indicator-radius":c===void 0?void 0:Xt(c),"--indicator-z-index":f==null?void 0:f.toString(),...w_(o,r)}}),du=ge(n=>{const l=ce("Indicator",C_,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,children:h,position:p,offset:b,inline:g,label:y,radius:w,color:C,withBorder:R,disabled:j,processing:N,zIndex:E,autoContrast:_,maxValue:D,showZero:L,mod:U,attributes:V,...k}=l,P=De({name:"Indicator",classes:vS,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:V,vars:m,varsResolver:gS}),ae=!L&&(y===0||y==="0"),te=D!==void 0&&typeof y=="number"&&y>D?`${D}+`:y;return v.jsxs(fe,{...P("root"),mod:[{inline:g},U],...k,children:[!j&&!ae&&v.jsx(fe,{mod:{"with-label":!!y,"with-border":R,processing:N},...P("indicator"),children:te}),h]})});du.classes=vS;du.varsResolver=gS;du.displayName="@mantine/core/Indicator";const[E_,Do]=Ea("Modal component was not found in tree");var rl={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const mu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalBody",null,n);return v.jsx(yh,{...Do().getStyles("body",{classNames:l,style:r,styles:s,className:o}),...f})});mu.classes=rl;mu.displayName="@mantine/core/ModalBody";const hu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalCloseButton",null,n);return v.jsx(bh,{...Do().getStyles("close",{classNames:l,style:r,styles:s,className:o}),...f})});hu.classes=rl;hu.displayName="@mantine/core/ModalCloseButton";const pu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,children:f,__hidden:m,...h}=ce("ModalContent",null,n),p=Do(),b=p.scrollAreaComponent||O1;return v.jsx(Sh,{...p.getStyles("content",{className:o,style:r,styles:s,classNames:l}),innerProps:p.getStyles("inner",{className:o,style:r,styles:s,classNames:l}),"data-full-screen":p.fullScreen||void 0,"data-modal-content":!0,"data-hidden":m||void 0,...h,children:v.jsx(b,{style:{maxHeight:p.fullScreen?"100dvh":`calc(100dvh - (${F(p.yOffset)} * 2))`},children:f})})});pu.classes=rl;pu.displayName="@mantine/core/ModalContent";const vu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalHeader",null,n);return v.jsx(xh,{...Do().getStyles("header",{classNames:l,style:r,styles:s,className:o}),...f})});vu.classes=rl;vu.displayName="@mantine/core/ModalHeader";const gu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalOverlay",null,n);return v.jsx(wh,{...Do().getStyles("overlay",{classNames:l,style:r,styles:s,className:o}),...f})});gu.classes=rl;gu.displayName="@mantine/core/ModalOverlay";const T_={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:on("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},yS=(n,{radius:l,size:o,yOffset:r,xOffset:s})=>({root:{"--modal-radius":l===void 0?void 0:Xt(l),"--modal-size":Pe(o,"modal-size"),"--modal-y-offset":F(r),"--modal-x-offset":F(s)}}),Ji=ge(n=>{const l=ce("ModalRoot",T_,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,yOffset:h,scrollAreaComponent:p,radius:b,fullScreen:g,centered:y,xOffset:w,__staticSelector:C,attributes:R,...j}=l,N=De({name:C,classes:rl,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:R,vars:m,varsResolver:yS});return v.jsx(E_,{value:{yOffset:h,scrollAreaComponent:p,getStyles:N,fullScreen:g},children:v.jsx(gh,{...N("root"),"data-full-screen":g||void 0,"data-centered":y||void 0,"data-offset-scrollbars":p===Na.Autosize||void 0,unstyled:f,...j})})});Ji.classes=rl;Ji.varsResolver=yS;Ji.displayName="@mantine/core/ModalRoot";const bS=x.createContext(null);function SS({children:n}){const[l,o]=x.useState([]),[r,s]=x.useState(on("modal"));return v.jsx(bS,{value:{stack:l,addModal:(c,f)=>{o(m=>[...new Set([...m,c])]),s(m=>typeof f=="number"&&typeof m=="number"?Math.max(m,f):m)},removeModal:c=>o(f=>f.filter(m=>m!==c)),getZIndex:c=>`calc(${r} + ${l.indexOf(c)} + 1)`,currentId:l[l.length-1],maxZIndex:r},children:n})}SS.displayName="@mantine/core/ModalStack";const yu=ge(n=>{const{classNames:l,className:o,style:r,styles:s,vars:c,...f}=ce("ModalTitle",null,n);return v.jsx(Ch,{...Do().getStyles("title",{classNames:l,style:r,styles:s,className:o}),...f})});yu.classes=rl;yu.displayName="@mantine/core/ModalTitle";const R_={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:on("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},cn=ge(n=>{const{title:l,withOverlay:o,overlayProps:r,withCloseButton:s,closeButtonProps:c,children:f,radius:m,opened:h,stackId:p,zIndex:b,...g}=ce("Modal",R_,n),y=x.use(bS),w=!!l||s,C=y&&p?{closeOnEscape:y.currentId===p,trapFocus:y.currentId===p,zIndex:y.getZIndex(p)}:{},R=o===!1?!1:p&&y?y.currentId===p:h;return x.useEffect(()=>{y&&p&&(h?y.addModal(p,b||on("modal")):y.removeModal(p))},[h,p,b]),v.jsxs(Ji,{radius:m,opened:h,zIndex:y&&p?y.getZIndex(p):b,...g,...C,children:[o&&v.jsx(gu,{visible:R,transitionProps:y&&p?{duration:0}:void 0,...r}),v.jsxs(pu,{radius:m,__hidden:y&&p&&h?p!==y.currentId:!1,children:[w&&v.jsxs(vu,{children:[l&&v.jsx(yu,{children:l}),s&&v.jsx(hu,{...c})]}),v.jsx(mu,{children:f})]})]})});cn.classes=rl;cn.displayName="@mantine/core/Modal";cn.Root=Ji;cn.Overlay=gu;cn.Content=pu;cn.Body=mu;cn.Header=vu;cn.Title=yu;cn.CloseButton=hu;cn.Stack=SS;var xS={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const wS=(n,{variant:l,color:o,childrenOffset:r,autoContrast:s})=>{const c=n.variantColorResolver({color:o||n.primaryColor,theme:n,variant:l||"light",autoContrast:s});return{root:{"--nl-bg":o||l?c.background:void 0,"--nl-hover":o||l?c.hover:void 0,"--nl-color":o||l?c.color:void 0},children:{"--nl-offset":el(r)}}},bu=sn(n=>{const l=ce("NavLink",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,opened:h,defaultOpened:p,onChange:b,children:g,active:y,disabled:w,leftSection:C,rightSection:R,label:j,description:N,disableRightSectionRotation:E,noWrap:_,childrenOffset:D,autoContrast:L,mod:U,attributes:V,onClick:k,onKeyDown:P,keepMounted:ae,...te}=l,W=De({name:"NavLink",props:l,classes:xS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:V,vars:m,varsResolver:wS}),[oe,K]=Bl({value:h,defaultValue:p,finalValue:!1,onChange:b}),ie=!!g,O=M=>{k==null||k(M),ie&&(M.preventDefault(),K(!oe))};return v.jsxs(v.Fragment,{children:[v.jsxs(Hl,{...W("root"),component:"a",onClick:O,onKeyDown:M=>{P==null||P(M),M.nativeEvent.code==="Space"&&ie&&(M.preventDefault(),K(!oe))},unstyled:f,mod:[{disabled:w,active:y,expanded:oe},U],...te,children:[C&&v.jsx(fe,{component:"span",...W("section"),mod:{position:"left"},children:C}),v.jsxs(fe,{...W("body"),mod:{"no-wrap":_},children:[v.jsx(fe,{component:"span",...W("label"),children:j}),v.jsx(fe,{component:"span",mod:{active:y},...W("description"),children:N})]}),(ie||R!==void 0)&&v.jsx(fe,{...W("section"),component:"span",mod:{rotate:oe&&!E,position:"right"},children:ie?R!==void 0?R:v.jsx(U1,{...W("chevron")}):R})]}),ie&&v.jsx(xb,{expanded:oe,keepMounted:ae,...W("collapse"),children:v.jsx("div",{...W("children"),children:g})})]})});bu.classes=xS;bu.varsResolver=wS;bu.displayName="@mantine/core/NavLink";var CS={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const __={withCloseButton:!0},ES=(n,{radius:l,color:o})=>({root:{"--notification-radius":l===void 0?void 0:Xt(l),"--notification-color":o?Fn(o,n):void 0}}),Su=ge(n=>{const l=ce("Notification",__,n),{className:o,color:r,radius:s,loading:c,withCloseButton:f,withBorder:m,title:h,icon:p,children:b,onClose:g,closeButtonProps:y,classNames:w,style:C,styles:R,unstyled:j,vars:N,mod:E,loaderProps:_,role:D,attributes:L,...U}=l,V=De({name:"Notification",classes:CS,props:l,className:o,style:C,classNames:w,styles:R,unstyled:j,attributes:L,vars:N,varsResolver:ES});return v.jsxs(fe,{...V("root"),mod:[{"data-with-icon":!!p||c,"data-with-border":m},E],role:D||"alert",...U,children:[p&&!c&&v.jsx("div",{...V("icon"),children:p}),c&&v.jsx(Hn,{size:28,color:r,...V("loader"),..._}),v.jsxs("div",{...V("body"),children:[h&&v.jsx("div",{...V("title"),children:h}),v.jsx(fe,{...V("description"),mod:{"data-with-title":!!h},children:b})]}),f&&v.jsx(Sr,{iconSize:16,color:"gray",...y,unstyled:j,onClick:k=>{var P;(P=y==null?void 0:y.onClick)==null||P.call(y,k),g==null||g()},...V("closeButton")})]})});Su.classes=CS;Su.varsResolver=ES;Su.displayName="@mantine/core/Notification";function TS(n,l){var o={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&l.indexOf(r)<0&&(o[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s=m?s=s+Y0("0",f-m):s=(s.substring(0,f)||"0")+"."+s.substring(f),o+s}function X0(n,l,o){if(["","-"].indexOf(n)!==-1)return n;var r=(n.indexOf(".")!==-1||o)&&l,s=Yh(n),c=s.beforeDecimal,f=s.afterDecimal,m=s.hasNegation,h=parseFloat("0."+(f||"0")),p=f.length<=l?"0."+f:h.toFixed(l),b=p.split("."),g=c;c&&Number(b[0])&&(g=c.split("").reverse().reduce(function(R,j,N){return R.length>N?(Number(R[0])+Number(j)).toString()+R.substring(1,R.length):j+R},b[0]));var y=NS(b[1]||"",l,o),w=m?"-":"",C=r?".":"";return""+w+g+C+y}function fr(n,l){if(n.value=n.value,n!==null){if(n.createTextRange){var o=n.createTextRange();return o.move("character",l),o.select(),!0}return n.selectionStart||n.selectionStart===0?(n.focus(),n.setSelectionRange(l,l),!0):(n.focus(),!1)}}var AS=N_(function(n,l){for(var o=0,r=0,s=n.length,c=l.length;n[o]===l[o]&&oo&&s-r>o;)r++;return{from:{start:o,end:s-r},to:{start:o,end:c-r}}}),D_=function(n,l){var o=Math.min(n.selectionStart,l);return{from:{start:o,end:n.selectionEnd},to:{start:o,end:l}}};function z_(n,l,o){return Math.min(Math.max(n,l),o)}function fm(n){return Math.max(n.selectionStart,n.selectionEnd)}function B_(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function L_(n){return{from:{start:0,end:0},to:{start:0,end:n.length},lastValue:""}}function H_(n){var l=n.currentValue,o=n.formattedValue,r=n.currentValueIndex,s=n.formattedValueIndex;return l[r]===o[s]}function $_(n,l,o,r,s,c,f){f===void 0&&(f=H_);var m=s.findIndex(function(D){return D}),h=n.slice(0,m);!l&&!o.startsWith(h)&&(l=h,o=h+o,r=r+h.length);for(var p=o.length,b=n.length,g={},y=new Array(p),w=0;w0&&y[N]===-1;)N--;var _=N===-1||y[N]===-1?0:y[N]+1;return _>E?E:r-_=0&&!o[l];)l--;l===-1&&(l=o.indexOf(!0))}else{for(;l<=s&&!o[l];)l++;l>s&&(l=o.lastIndexOf(!0))}return l===-1&&(l=s),l}function U_(n){for(var l=Array.from({length:n.length+1}).map(function(){return!0}),o=0,r=l.length;oV.length-f.length||Ute||g>n.length-f.length)&&(ae=g),n=n.substring(0,ae),n=X_(_?"-"+n:n,s),n=(n.match(q_(C))||[]).join("");var W=n.indexOf(C);n=n.replace(new RegExp(_S(C),"g"),function(M,B){return B===W?".":""});var oe=Yh(n,s),K=oe.beforeDecimal,ie=oe.afterDecimal,O=oe.addNegation;return p.end-p.startA?!1:J>=se.start&&Jo?o:n}function W_(n){return n.toString().replace(".","").length}function eN(n,l){return(typeof n=="number"?n=l)&&(o===void 0||n<=o)}const pm={size:"sm",step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[".",","]},zS=(n,{size:l})=>({controls:{"--ni-chevron-size":Pe(l,"ni-chevron-size")}});function nN(n,l,o){const r=n.toString(),s=MS.test(r),c=r.replace(/^0+(?=\d)/,""),f=parseFloat(c);if(Number.isNaN(f))return c;if(f>Number.MAX_SAFE_INTEGER)return l!==void 0?l:c;const m=yc(f,o,l);return s?`${m.toString().replace(/^0+(?=\d)/,"")}.`:m}function aN(n,l){if(n===""||n==="-")return n;const o=Ai(n);return o===null?n:l.clampBehavior==="blur"?Tc(o,l.min,l.max):o}const wu=Wm(n=>{const l=ce(["Input","InputWrapper","NumberInput"],pm,n),{className:o,classNames:r,styles:s,unstyled:c,vars:f,onChange:m,onValueChange:h,value:p,defaultValue:b,max:g,min:y,step:w,hideControls:C,rightSection:R,isAllowed:j,clampBehavior:N,onBlur:E,allowDecimal:_,decimalScale:D,onKeyDown:L,onKeyDownCapture:U,handlersRef:V,startValue:k,disabled:P,rightSectionPointerEvents:ae,allowNegative:te,readOnly:W,size:oe,rightSectionWidth:K,stepHoldInterval:ie,stepHoldDelay:O,allowLeadingZeros:M,withKeyboardEvents:B,trimLeadingZeroesOnBlur:G,allowedDecimalSeparators:J,selectAllOnFocus:A,onMinReached:H,onMaxReached:Q,onFocus:ee,attributes:se,ref:de,...pe}=l,_e=te??!0,Me=M??!0,He=De({name:"NumberInput",classes:Mm,props:l,classNames:r,styles:s,unstyled:c,attributes:se,vars:f,varsResolver:zS}),{resolvedClassNames:st,resolvedStyles:je}=Yc({classNames:r,styles:s,props:l}),Qe=x.useRef(dm(p)||dm(b)?"bigint":"number");dm(p)?Qe.current="bigint":typeof p=="number"&&(Qe.current="number");const $e=Qe.current==="bigint",[Ce,ct]=Bl({value:p,defaultValue:b,finalValue:"",onChange:m}),me=O!==void 0&&ie!==void 0,he=x.useRef(null),Ee=x.useRef(null),Ae=x.useRef(0),Ye=typeof y=="number"?y:void 0,Oe=typeof g=="number"?g:void 0,be=typeof w=="number"?w:pm.step,Ue=typeof k=="number"?k:pm.startValue,xe=gc(y),Te=gc(g),yt=gc(w)??BigInt(1),Ve=gc(k)??BigInt(0),Cn=ve=>!DS(ve,_e)||Me&&Q0.test(ve)?ve:Ai(ve)??ve,En=ve=>{const Se=Number(ve);return Number.isSafeInteger(Se)?Se:void 0},Ut=(ve,Se)=>{Se.source==="event"&&ct($e?Cn(ve.value):eN(ve.floatValue,ve.value)&&!J_.test(ve.value)&&!(Me&&Q0.test(ve.value))&&!P_.test(ve.value)&&!MS.test(ve.value)?ve.floatValue:ve.value),h==null||h(ve,Se)},qt=ve=>{const Se=String(ve).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Se?Math.max(0,(Se[1]?Se[1].length:0)-(Se[2]?+Se[2]:0)):0},jt=ve=>{he.current&&typeof ve<"u"&&he.current.setSelectionRange(ve,ve)},ut=x.useRef(gm);ut.current=()=>{if($e){if(!hm(Ce,_e))return;let bt;const We=Ce;if(typeof We=="bigint"){const St=We+yt;Te!==void 0&&St>Te&&(Q==null||Q()),bt=Te!==void 0&&St>Te?Te:St}else if(typeof We=="string"&&We!==""){const St=Ai(We);if(St===null)return;const la=St+yt;Te!==void 0&&la>Te&&(Q==null||Q()),bt=Te!==void 0&&la>Te?Te:la}else bt=Tc(Ve,xe,Te);const mt=bt.toString();ct(bt),h==null||h({floatValue:En(bt),formattedValue:mt,value:mt},{source:"increment"}),setTimeout(()=>{var St;return jt((St=he.current)==null?void 0:St.value.length)},0);return}if(!mm(Ce))return;let ve;const Se=qt(Ce),Bt=qt(be),Rn=Math.max(Se,Bt),un=10**Rn;if(!Dm(Ce)&&(typeof Ce!="number"||Number.isNaN(Ce)))ve=yc(Ue,Ye,Oe);else if(Oe!==void 0){const bt=(Math.round(Number(Ce)*un)+Math.round(be*un))/un;bt>Oe&&(Q==null||Q()),ve=bt<=Oe?bt:Oe}else ve=(Math.round(Number(Ce)*un)+Math.round(be*un))/un;const fn=ve.toFixed(Rn);ct(parseFloat(fn)),h==null||h({floatValue:parseFloat(fn),formattedValue:fn,value:fn},{source:"increment"}),setTimeout(()=>{var bt;return jt((bt=he.current)==null?void 0:bt.value.length)},0)};const Ie=x.useRef(gm);Ie.current=()=>{if($e){if(!hm(Ce,_e))return;let We;const mt=xe!==void 0?xe:_e?void 0:BigInt(0),St=Ce;if(typeof St=="bigint"){const nn=St-yt;mt!==void 0&&nn{var nn;return jt((nn=he.current)==null?void 0:nn.value.length)},0);return}if(!mm(Ce))return;let ve;const Se=Ye!==void 0?Ye:_e?Number.MIN_SAFE_INTEGER:0,Bt=qt(Ce),Rn=qt(be),un=Math.max(Bt,Rn),fn=10**un;if(!Dm(Ce)&&typeof Ce!="number"||Number.isNaN(Ce))ve=yc(Ue,Se,Oe);else{const We=(Math.round(Number(Ce)*fn)-Math.round(be*fn))/fn;Se!==void 0&&We{var We;return jt((We=he.current)==null?void 0:We.value.length)},0)};const tt=ve=>{var un,fn,bt;const Se=ve.clipboardData.getData("text"),Bt=pe.decimalSeparator||".",Rn=(J||[".",","]).filter(We=>We!==Bt);if(Rn.some(We=>Se.includes(We))){ve.preventDefault();let We=Se;Rn.forEach(St=>{We=We.split(St).join(Bt)});const mt=he.current;if(mt){const St=mt.selectionStart??0,la=mt.selectionEnd??0,nn=mt.value,dn=nn.substring(0,St)+We+nn.substring(la);(fn=(un=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:un.set)==null||fn.call(mt,dn),mt.dispatchEvent(new Event("change",{bubbles:!0}));const Lt=St+We.length;setTimeout(()=>jt(Lt),0)}}(bt=pe.onPaste)==null||bt.call(pe,ve)},aa=ve=>{var Se,Bt;L==null||L(ve),!(W||!B)&&(ve.key==="ArrowUp"&&(ve.preventDefault(),(Se=ut.current)==null||Se.call(ut)),ve.key==="ArrowDown"&&(ve.preventDefault(),(Bt=Ie.current)==null||Bt.call(Ie)))},Er=ve=>{if(U==null||U(ve),ve.key==="Backspace"){const Se=he.current;Se&&Se.selectionStart===0&&Se.selectionStart===Se.selectionEnd&&(ve.preventDefault(),window.setTimeout(()=>jt(0),0))}},Tr=ve=>{A&&setTimeout(()=>ve.currentTarget.select(),0),ee==null||ee(ve)},il=ve=>{let Se=Ce;$e?(N==="blur"&&typeof Se=="bigint"&&(Se=Tc(Se,xe,Te)),G&&typeof Se=="string"&&(Se=aN(Se,{min:xe,max:Te,clampBehavior:N}))):(N==="blur"&&typeof Se=="number"&&(Se=yc(Se,Ye,Oe)),G&&typeof Se=="string"&&qt(Se)<15&&(Se=nN(Se,Oe,Ye))),Ce!==Se&&ct(Se),E==null||E(ve)};Nc(V,{increment:ut.current,decrement:Ie.current});const Aa=ve=>{var Se,Bt;ve?(Se=ut.current)==null||Se.call(ut):(Bt=Ie.current)==null||Bt.call(Ie),Ae.current+=1},dt=ve=>{if(Aa(ve),me){const Se=typeof ie=="number"?ie:ie(Ae.current);Ee.current=window.setTimeout(()=>dt(ve),Se)}},wt=(ve,Se)=>{var Bt;ve.preventDefault(),(Bt=he.current)==null||Bt.focus(),Aa(Se),me&&(Ee.current=window.setTimeout(()=>dt(Se),O))},Tn=()=>{Ee.current&&window.clearTimeout(Ee.current),Ee.current=null,Ae.current=0},Yl=v.jsxs("div",{...He("controls"),children:[v.jsx(Hl,{...He("control"),tabIndex:-1,"aria-hidden":!0,disabled:P||typeof Ce=="number"&&Oe!==void 0&&Ce>=Oe||typeof Ce=="bigint"&&Te!==void 0&&Ce>=Te,mod:{direction:"up"},onMouseDown:ve=>ve.preventDefault(),onPointerDown:ve=>{wt(ve,!0)},onPointerUp:Tn,onPointerLeave:Tn,children:v.jsx(Z0,{direction:"up"})}),v.jsx(Hl,{...He("control"),tabIndex:-1,"aria-hidden":!0,disabled:P||typeof Ce=="number"&&Ye!==void 0&&Ce<=Ye||typeof Ce=="bigint"&&xe!==void 0&&Ce<=xe,mod:{direction:"down"},onMouseDown:ve=>ve.preventDefault(),onPointerDown:ve=>{wt(ve,!1)},onPointerUp:Tn,onPointerLeave:Tn,children:v.jsx(Z0,{direction:"down"})})]});return v.jsx(Vl,{component:F_,allowNegative:te,className:zt(Mm.root,o),size:oe,...pe,inputMode:$e?"numeric":"decimal",readOnly:W,disabled:P,value:typeof Ce=="bigint"?Ce.toString():Ce,getInputRef:en(de,he),onValueChange:Ut,rightSection:C||W||!($e?hm(Ce,_e):mm(Ce))?R:R||Yl,classNames:st,styles:je,unstyled:c,__staticSelector:"NumberInput",decimalScale:$e?0:_?D:0,onPaste:tt,onFocus:Tr,onKeyDown:aa,onKeyDownCapture:Er,rightSectionPointerEvents:ae??(P?"none":void 0),rightSectionWidth:K??`var(--ni-right-section-width-${oe||"sm"})`,allowLeadingZeros:M,allowedDecimalSeparators:J,onBlur:il,attributes:se,isAllowed:ve=>{if(!(!j||j(ve)))return!1;if(N!=="strict")return!0;if(!$e)return tN(ve.floatValue,Ye,Oe);if(ve.value===""||ve.value==="-")return!0;const Se=Ai(ve.value);return Se===null?!0:(xe===void 0||Se>=xe)&&(Te===void 0||Se<=Te)}})});wu.classes={...Vl.classes,...Mm};wu.varsResolver=zS;wu.displayName="@mantine/core/NumberInput";function lN({offset:n,position:l,defaultOpened:o}){const[r,s]=x.useState(o),c=x.useRef(null),{x:f,y:m,elements:h,refs:p,update:b,placement:g}=dh({placement:l,middleware:[sh({crossAxis:!0,padding:5,rootBoundary:"document"})]}),y=g.includes("right")?n:l.includes("left")?n*-1:0,w=g.includes("bottom")?n:l.includes("top")?n*-1:0,C=x.useCallback(({clientX:R,clientY:j})=>{p.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:R,y:j,left:R+y,top:j+w,right:R,bottom:j}}})},[h.reference]);return x.useEffect(()=>{if(p.floating.current){const R=c.current;R.addEventListener("mousemove",C);const j=Wa(p.floating.current);return j.forEach(N=>{N.addEventListener("scroll",b)}),()=>{R.removeEventListener("mousemove",C),j.forEach(N=>{N.removeEventListener("scroll",b)})}}},[h.reference,p.floating.current,b,C,r]),{handleMouseMove:C,x:f,y:m,opened:r,setOpened:s,boundaryRef:c,floating:p.setFloating}}var Cu={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const rN={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:on("popover")},BS=(n,{radius:l,color:o})=>({tooltip:{"--tooltip-radius":l===void 0?void 0:Xt(l),"--tooltip-bg":o?Fn(o,n):void 0,"--tooltip-color":o?"var(--mantine-color-white)":void 0}}),Eu=ge(n=>{const l=ce("TooltipFloating",rN,n),{children:o,refProp:r,withinPortal:s,style:c,className:f,classNames:m,styles:h,unstyled:p,radius:b,color:g,label:y,offset:w,position:C,multiline:R,zIndex:j,disabled:N,defaultOpened:E,variant:_,vars:D,portalProps:L,attributes:U,ref:V,...k}=l,P=Wn(),ae=De({name:"TooltipFloating",props:l,classes:Cu,className:f,style:c,classNames:m,styles:h,unstyled:p,attributes:U,rootSelector:"tooltip",vars:D,varsResolver:BS}),{handleMouseMove:te,x:W,y:oe,opened:K,boundaryRef:ie,floating:O,setOpened:M}=lN({offset:w,position:C,defaultOpened:E}),B=br(o);if(!B)throw new 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");const G=en(ie,Vc(B),V),J=B.props,A=Q=>{var ee;(ee=J.onMouseEnter)==null||ee.call(J,Q),te(Q),M(!0)},H=Q=>{var ee;(ee=J.onMouseLeave)==null||ee.call(J,Q),M(!1)};return v.jsxs(v.Fragment,{children:[v.jsx($l,{...L,withinPortal:s,children:v.jsx(fe,{...k,...ae("tooltip",{style:{...Li(c,P),zIndex:j,display:!N&&K?"block":"none",top:(oe&&Math.round(oe))??"",left:(W&&Math.round(W))??""}}),variant:_,ref:O,mod:{multiline:R},children:y})}),x.cloneElement(B,{...J,[r]:G,onMouseEnter:A,onMouseLeave:H})]})});Eu.classes=Cu;Eu.varsResolver=BS;Eu.displayName="@mantine/core/TooltipFloating";const LS=x.createContext({withinGroup:!1}),oN={openDelay:0,closeDelay:0};function Xh(n){const{openDelay:l,closeDelay:o,children:r}=ce("TooltipGroup",oN,n);return v.jsx(LS,{value:{withinGroup:!0},children:v.jsx(iR,{delay:{open:l,close:o},children:r})})}Xh.displayName="@mantine/core/TooltipGroup";Xh.extend=n=>n;function iN(n){if(n===void 0)return{shift:!0,flip:!0};const l={...n};return n.shift===void 0&&(l.shift=!0),n.flip===void 0&&(l.flip=!0),l}function sN(n){const l=iN(n.middlewares),o=[qb(n.offset)];return l.shift&&o.push(sh(typeof l.shift=="boolean"?{padding:8}:{padding:8,...l.shift})),l.flip&&o.push(typeof l.flip=="boolean"?jm():jm(l.flip)),o.push(Gb({element:n.arrowRef,padding:n.arrowOffset})),l.inline?o.push(typeof l.inline=="boolean"?Di():Di(l.inline)):n.inline&&o.push(Di()),o}function cN(n){var L,U,V;const[l,o]=x.useState(n.defaultOpened),r=typeof n.opened=="boolean"?n.opened:l,s=x.use(LS).withinGroup,c=Ta(),f=x.useCallback(k=>{o(k),k&&j(c)},[c]),{x:m,y:h,context:p,refs:b,placement:g,middlewareData:{arrow:{x:y,y:w}={}}}=dh({strategy:n.strategy,placement:n.position,open:r,onOpenChange:f,middleware:sN(n),whileElementsMounted:Nm}),{delay:C,currentId:R,setCurrentId:j}=sR(p,{id:c}),{getReferenceProps:N,getFloatingProps:E}=hR([rR(p,{enabled:(L=n.events)==null?void 0:L.hover,delay:s?C:{open:n.openDelay,close:n.closeDelay},mouseOnly:!((U=n.events)!=null&&U.touch)}),mR(p,{enabled:(V=n.events)==null?void 0:V.focus,visibleOnly:!0}),vR(p,{role:"tooltip"}),fR(p,{enabled:typeof n.opened>"u"})]),_=x.useRef(g);wa(()=>{var k;_.current!==g&&(_.current=g,(k=n.onPositionChange)==null||k.call(n,g))},[g]);const D=r&&R&&R!==c;return{x:m,y:h,arrowX:y,arrowY:w,reference:b.setReference,floating:b.setFloating,getFloatingProps:E,getReferenceProps:N,isGroupPhase:D,opened:r,placement:g}}const uN={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:on("popover"),middlewares:{flip:!0,shift:!0,inline:!1}},HS=(n,{radius:l,color:o,variant:r,autoContrast:s})=>{const c=n.variantColorResolver({theme:n,color:o||n.primaryColor,autoContrast:s,variant:r||"filled"});return{tooltip:{"--tooltip-radius":l===void 0?void 0:Xt(l),"--tooltip-bg":o?c.background:void 0,"--tooltip-color":o?c.color:void 0}}},It=ge(n=>{const l=ce("Tooltip",uN,n),{children:o,position:r,refProp:s,label:c,openDelay:f,closeDelay:m,onPositionChange:h,opened:p,defaultOpened:b,withinPortal:g,radius:y,color:w,classNames:C,styles:R,unstyled:j,style:N,className:E,withArrow:_,arrowSize:D,arrowOffset:L,arrowRadius:U,arrowPosition:V,offset:k,transitionProps:P,multiline:ae,events:te,zIndex:W,disabled:oe,onClick:K,onMouseEnter:ie,onMouseLeave:O,inline:M,variant:B,keepMounted:G,vars:J,portalProps:A,mod:H,floatingStrategy:Q,middlewares:ee,autoContrast:se,attributes:de,target:pe,ref:_e,...Me}=l,{dir:He}=To(),st=x.useRef(null),je=cN({position:n1(He,r),closeDelay:m,openDelay:f,onPositionChange:h,opened:p,defaultOpened:b,events:te,arrowRef:st,arrowOffset:L,offset:typeof k=="number"?k+(_?D/2:0):k,inline:M,strategy:Q,middlewares:ee});x.useEffect(()=>{const Ae=pe instanceof HTMLElement?pe:typeof pe=="string"?document.querySelector(pe):(pe==null?void 0:pe.current)||null;Ae&&je.reference(Ae)},[pe,je]);const Qe=De({name:"Tooltip",props:l,classes:Cu,className:E,style:N,classNames:C,styles:R,unstyled:j,attributes:de,rootSelector:"tooltip",vars:J,varsResolver:HS}),$e=br(o);if(!pe&&!$e)throw new 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");const Ce=Qe("tooltip"),ct=V==="merge"&&_?t1({position:je.placement,dir:He}):void 0;if(pe){const Ae=D0(P,{duration:100,transition:"fade"});return v.jsx(v.Fragment,{children:v.jsx($l,{...A,withinPortal:g,children:v.jsx(nl,{...Ae,keepMounted:G,mounted:!oe&&!!je.opened,duration:je.isGroupPhase?10:Ae.duration,children:Ye=>v.jsxs(fe,{...Me,"data-fixed":Q==="fixed"||void 0,variant:B,mod:[{multiline:ae},H],...Ce,...je.getFloatingProps({ref:je.floating,className:Ce.className,style:{...Ce.style,...Ye,...ct,zIndex:W,top:je.y??0,left:je.x??0}}),children:[c,v.jsx(Bc,{ref:st,arrowX:je.arrowX,arrowY:je.arrowY,visible:_,position:je.placement,arrowSize:D,arrowOffset:L,arrowRadius:U,arrowPosition:V,...Qe("arrow")})]})})})})}const me=$e.props,he=en(je.reference,Vc($e),_e),Ee=D0(P,{duration:100,transition:"fade"});return v.jsxs(v.Fragment,{children:[v.jsx($l,{...A,withinPortal:g,children:v.jsx(nl,{...Ee,keepMounted:G,mounted:!oe&&!!je.opened,duration:je.isGroupPhase?10:Ee.duration,children:Ae=>v.jsxs(fe,{...Me,"data-fixed":Q==="fixed"||void 0,variant:B,mod:[{multiline:ae},H],...je.getFloatingProps({ref:je.floating,className:Qe("tooltip").className,style:{...Qe("tooltip").style,...Ae,...ct,zIndex:W,top:je.y??0,left:je.x??0}}),children:[c,v.jsx(Bc,{ref:st,arrowX:je.arrowX,arrowY:je.arrowY,visible:_,position:je.placement,arrowSize:D,arrowOffset:L,arrowRadius:U,arrowPosition:V,...Qe("arrow")})]})})}),x.cloneElement($e,je.getReferenceProps({onClick:K,onMouseEnter:ie,onMouseLeave:O,onMouseMove:l.onMouseMove,onPointerDown:l.onPointerDown,onPointerEnter:l.onPointerEnter,...me,className:zt(E,me.className),[s]:he}))]})});It.classes=Cu;It.varsResolver=HS;It.displayName="@mantine/core/Tooltip";It.Floating=Eu;It.Group=Xh;const fN={size:"sm",withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left",openOnFocus:!0},Tu=Wm(n=>{const l=ce(["Input","InputWrapper","Select"],fN,n),{classNames:o,styles:r,unstyled:s,vars:c,dropdownOpened:f,defaultDropdownOpened:m,onDropdownClose:h,onDropdownOpen:p,onFocus:b,onBlur:g,onClick:y,onChange:w,data:C,value:R,defaultValue:j,selectFirstOptionOnChange:N,selectFirstOptionOnDropdownOpen:E,onOptionSubmit:_,comboboxProps:D,readOnly:L,disabled:U,filter:V,limit:k,withScrollArea:P,maxDropdownHeight:ae,floatingHeight:te,size:W,searchable:oe,rightSection:K,checkIconPosition:ie,withCheckIcon:O,withAlignedLabels:M,nothingFoundMessage:B,name:G,form:J,searchValue:A,defaultSearchValue:H,onSearchChange:Q,allowDeselect:ee,error:se,rightSectionPointerEvents:de,id:pe,clearable:_e,clearSectionMode:Me,clearButtonProps:He,hiddenInputProps:st,renderOption:je,onClear:Qe,autoComplete:$e,scrollAreaProps:Ce,__defaultRightSection:ct,__clearSection:me,__clearable:he,chevronColor:Ee,autoSelectOnBlur:Ae,openOnFocus:Ye,attributes:Oe,...be}=l,Ue=x.useMemo(()=>Z3(C),[C]),xe=x.useRef({}),Te=x.useMemo(()=>Z1(Ue),[Ue]),yt=Ta(pe),[Ve,Cn,En]=Bl({value:R,defaultValue:j,finalValue:null,onChange:w}),Ut=Ve!=null?`${Ve}`in Te?Te[`${Ve}`]:xe.current[`${Ve}`]:void 0,qt=tC(Ut),[jt,ut,Ie]=Bl({value:A,defaultValue:H,finalValue:Ut?Ut.label:"",onChange:Q}),tt=W1({opened:f,defaultOpened:m,onDropdownOpen:()=>{p==null||p(),E?tt.selectFirstOption():tt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{h==null||h(),setTimeout(tt.resetSelectedOption,0)}}),aa=dt=>{ut(dt),tt.resetSelectedOption()},{resolvedClassNames:Er,resolvedStyles:Tr}=Yc({props:l,styles:r,classNames:o});x.useEffect(()=>{N&&tt.selectFirstOption()},[N,jt]),x.useEffect(()=>{R===null&&aa(""),R!=null&&Ut&&((qt==null?void 0:qt.value)!==Ut.value||(qt==null?void 0:qt.label)!==Ut.label)&&aa(Ut.label)},[R,Ut]),x.useEffect(()=>{var dt,wt;!En&&!Ie&&aa(Ve!=null?`${Ve}`in Te?(dt=Te[`${Ve}`])==null?void 0:dt.label:((wt=xe.current[`${Ve}`])==null?void 0:wt.label)||"":"")},[Te,Ve]),x.useEffect(()=>{Ve&&`${Ve}`in Te&&(xe.current[`${Ve}`]=Te[`${Ve}`])},[Te,Ve]);const il=v.jsx(lt.ClearButton,{...He,onClear:()=>{Cn(null,null),aa(""),Qe==null||Qe()}}),Aa=_e&&Ve!=null&&!U&&!L;return v.jsxs(v.Fragment,{children:[v.jsxs(lt,{store:tt,__staticSelector:"Select",classNames:Er,styles:Tr,unstyled:s,readOnly:L,size:W,attributes:Oe,floatingHeight:te,keepMounted:Ae,onOptionSubmit:dt=>{_==null||_(dt);const wt=ee&&`${Te[dt].value}`==`${Ve}`?null:Te[dt],Tn=wt?wt.value:null;Tn!==Ve&&Cn(Tn,wt),!En&&aa(Tn!=null&&(wt==null?void 0:wt.label)||""),tt.closeDropdown()},...D,children:[v.jsx(lt.Target,{targetType:oe?"input":"button",autoComplete:$e,withExpandedAttribute:!0,children:v.jsx(Vl,{id:yt,__defaultRightSection:v.jsx(lt.Chevron,{size:W,error:se,unstyled:s,color:Ee}),__clearSection:il,__clearable:Aa,__clearSectionMode:Me,rightSection:K,rightSectionPointerEvents:de||"none",...be,size:W,__staticSelector:"Select",disabled:U,readOnly:L||!oe,value:jt,onChange:dt=>{aa(dt.currentTarget.value),tt.openDropdown(),N&&tt.selectFirstOption()},onFocus:dt=>{Ye&&oe&&tt.openDropdown(),b==null||b(dt)},onBlur:dt=>{Ae&&tt.clickSelectedOption(),oe&&tt.closeDropdown();const wt=Ve!=null&&(`${Ve}`in Te?Te[`${Ve}`]:xe.current[`${Ve}`]);aa(wt&&wt.label||""),g==null||g(dt)},onClick:dt=>{oe?tt.openDropdown():tt.toggleDropdown(),y==null||y(dt)},classNames:Er,styles:Tr,unstyled:s,pointer:!oe,error:se,attributes:Oe})}),v.jsx(c_,{data:Ue,hidden:L||U,filter:V,search:jt,limit:k,hiddenWhenEmpty:!B,withScrollArea:P,maxDropdownHeight:ae,filterOptions:!!oe&&(Ut==null?void 0:Ut.label)!==jt,value:Ve,checkIconPosition:ie,withCheckIcon:O,withAlignedLabels:M,nothingFoundMessage:B,unstyled:s,labelId:be.label?`${yt}-label`:void 0,"aria-label":be.label?void 0:be["aria-label"],renderOption:je,scrollAreaProps:Ce})]}),v.jsx(lt.HiddenInput,{value:Ve,name:G,form:J,disabled:U,...st})]})});Tu.classes={...Vl.classes,...lt.classes};Tu.displayName="@mantine/core/Select";var $S={root:"m_6d731127"};const dN={gap:"md",align:"stretch",justify:"flex-start"},US=(n,{gap:l,align:o,justify:r})=>({root:{"--stack-gap":el(l),"--stack-align":o,"--stack-justify":r}}),rn=ge(n=>{const l=ce("Stack",dN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,align:h,justify:p,gap:b,variant:g,attributes:y,...w}=l;return v.jsx(fe,{...De({name:"Stack",props:l,classes:$S,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:y,vars:m,varsResolver:US})("root"),variant:g,...w})});rn.classes=$S;rn.varsResolver=US;rn.displayName="@mantine/core/Stack";const VS=x.createContext(null),mN={hiddenInputValuesSeparator:","},qh=Wm((n=>{const{value:l,defaultValue:o,onChange:r,size:s,wrapperProps:c,children:f,readOnly:m,name:h,hiddenInputValuesSeparator:p,hiddenInputProps:b,maxSelectedValues:g,disabled:y,...w}=ce("SwitchGroup",mN,n),[C,R]=Bl({value:l,defaultValue:o,finalValue:[],onChange:r}),j=_=>{const D=_.currentTarget.value;if(m)return;const L=C.includes(D);!L&&g&&C.length>=g||R(L?C.filter(U=>U!==D):[...C,D])},N=_=>{if(y)return!0;if(!g)return!1;const D=C.includes(_),L=C.length>=g;return!D&&L},E=C.join(p);return v.jsx(VS,{value:{value:C,onChange:j,size:s,isDisabled:N},children:v.jsxs($t.Wrapper,{size:s,...c,...w,labelElement:"div",__staticSelector:"SwitchGroup",children:[v.jsx(l_,{role:"group",children:f}),v.jsx("input",{type:"hidden",name:h,value:E,...b})]})})}));qh.classes=$t.Wrapper.classes;qh.displayName="@mantine/core/SwitchGroup";var kS={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const hN={labelPosition:"right",withThumbIndicator:!0},YS=(n,{radius:l,color:o,size:r})=>({root:{"--switch-radius":l===void 0?void 0:Xt(l),"--switch-height":Pe(r,"switch-height"),"--switch-width":Pe(r,"switch-width"),"--switch-thumb-size":Pe(r,"switch-thumb-size"),"--switch-label-font-size":Pe(r,"switch-label-font-size"),"--switch-track-label-padding":Pe(r,"switch-track-label-padding"),"--switch-color":o?Fn(o,n):void 0}}),pr=ge(n=>{var se;const l=ce("Switch",hN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,color:h,label:p,offLabel:b,onLabel:g,id:y,size:w,radius:C,wrapperProps:R,thumbIcon:j,checked:N,defaultChecked:E,onChange:_,labelPosition:D,description:L,error:U,disabled:V,variant:k,rootRef:P,mod:ae,withThumbIndicator:te,attributes:W,...oe}=l,K=x.use(VS),ie=w||(K==null?void 0:K.size),O=De({name:"Switch",props:l,classes:kS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:W,vars:m,varsResolver:YS}),{styleProps:M,rest:B}=Xc(oe),G=Ta(y),J=[L?`${G}-description`:void 0,U&&typeof U!="boolean"?`${G}-error`:void 0,B["aria-describedby"]].filter(Boolean).join(" ")||void 0,A={checked:(K==null?void 0:K.value.includes(B.value))??N,onChange:de=>{K==null||K.onChange(de),_==null||_(de)}},H=V||((se=K==null?void 0:K.isDisabled)==null?void 0:se.call(K,B.value)),[Q,ee]=Bl({value:A.checked??N,defaultValue:E,finalValue:!1});return v.jsxs(nS,{...O("root"),__staticSelector:"Switch",__stylesApiProps:l,id:G,size:ie,labelPosition:D,label:p,description:L,error:U,disabled:H,bodyElement:"label",labelElement:"span",classNames:o,styles:c,unstyled:f,"data-checked":A.checked,variant:k,ref:P,mod:ae,attributes:W,inert:B.inert,...M,...R,children:[v.jsx("input",{...B,...A,disabled:H,checked:Q,"data-checked":A.checked,onChange:de=>{var pe;(pe=A.onChange)==null||pe.call(A,de),ee(de.currentTarget.checked)},id:G,type:"checkbox",role:"switch",inert:B.inert,"aria-describedby":J,...O("input")}),v.jsxs(fe,{"aria-hidden":"true",component:"span",mod:{error:U,"label-position":D,"without-labels":!g&&!b},...O("track"),children:[v.jsx(fe,{component:"span",mod:{"reduce-motion":!0,"with-thumb-indicator":te&&!j},...O("thumb"),children:j}),v.jsx("span",{...O("trackLabel"),children:Q?g:b})]})]})});pr.classes={...kS,...o_};pr.varsResolver=YS;pr.displayName="@mantine/core/Switch";pr.Group=qh;const[pN,vN]=Ea("Table component was not found in the tree");var Pi={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 gN(n,l){if(!l)return;const o={};return l.columnBorder&&n.withColumnBorders&&(o["data-with-column-border"]=!0),l.rowBorder&&n.withRowBorders&&(o["data-with-row-border"]=!0),l.striped&&n.striped&&(o["data-striped"]=n.striped),l.highlightOnHover&&n.highlightOnHover&&(o["data-hover"]=!0),l.captionSide&&n.captionSide&&(o["data-side"]=n.captionSide),l.stickyHeader&&n.stickyHeader&&(o["data-sticky"]=!0),o}function xr(n,l){const o=`Table${n.charAt(0).toUpperCase()}${n.slice(1)}`,r=ge(s=>{const c=ce(o,{},s),{classNames:f,className:m,style:h,styles:p,...b}=c,g=vN();return v.jsx(fe,{component:n,...gN(g,l),...g.getStyles(n,{className:m,classNames:f,style:h,styles:p,props:c}),...b})});return r.displayName=`@mantine/core/${o}`,r.classes=Pi,r}const zm=xr("th",{columnBorder:!0}),XS=xr("td",{columnBorder:!0}),Rc=xr("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),qS=xr("thead",{stickyHeader:!0}),GS=xr("tbody"),ZS=xr("tfoot"),QS=xr("caption",{captionSide:!0}),yN={type:"scrollarea"},KS=(n,{minWidth:l,maxHeight:o,type:r})=>({scrollContainer:{"--table-min-width":F(l),"--table-max-height":F(o),"--table-overflow":r==="native"?"auto":void 0}}),Ru=ge(n=>{const l=ce("TableScrollContainer",yN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,children:h,minWidth:p,maxHeight:b,type:g,scrollAreaProps:y,attributes:w,...C}=l,R=De({name:"TableScrollContainer",classes:Pi,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:w,vars:m,varsResolver:KS,rootSelector:"scrollContainer"});return v.jsx(fe,{component:g==="scrollarea"?Na:"div",...g==="scrollarea"?b?{offsetScrollbars:"xy",...y}:{offsetScrollbars:"x",...y}:{},...R("scrollContainer"),...C,children:v.jsx("div",{...R("scrollContainerInner"),children:h})})});Ru.classes=Pi;Ru.varsResolver=KS;Ru.displayName="@mantine/core/TableScrollContainer";function Gh({data:n}){return v.jsxs(v.Fragment,{children:[n.caption&&v.jsx(QS,{children:n.caption}),n.head&&v.jsx(qS,{children:v.jsx(Rc,{children:n.head.map((l,o)=>v.jsx(zm,{children:l},o))})}),n.body&&v.jsx(GS,{children:n.body.map((l,o)=>v.jsx(Rc,{children:l.map((r,s)=>v.jsx(XS,{children:r},s))},o))}),n.foot&&v.jsx(ZS,{children:v.jsx(Rc,{children:n.foot.map((l,o)=>v.jsx(zm,{children:l},o))})})]})}Gh.displayName="@mantine/core/TableDataRenderer";const bN={withRowBorders:!0,verticalSpacing:7},IS=(n,{layout:l,captionSide:o,horizontalSpacing:r,verticalSpacing:s,borderColor:c,stripedColor:f,highlightOnHoverColor:m,striped:h,highlightOnHover:p,stickyHeaderOffset:b,stickyHeader:g})=>({table:{"--table-layout":l,"--table-caption-side":o,"--table-horizontal-spacing":el(r),"--table-vertical-spacing":el(s),"--table-border-color":c?Fn(c,n):void 0,"--table-striped-color":h&&f?Fn(f,n):void 0,"--table-highlight-on-hover-color":p&&m?Fn(m,n):void 0,"--table-sticky-header-offset":g?F(b):void 0}}),ue=ge(n=>{const l=ce("Table",bN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,horizontalSpacing:h,verticalSpacing:p,captionSide:b,stripedColor:g,highlightOnHoverColor:y,striped:w,highlightOnHover:C,withColumnBorders:R,withRowBorders:j,withTableBorder:N,borderColor:E,layout:_,data:D,children:L,stickyHeader:U,stickyHeaderOffset:V,mod:k,tabularNums:P,attributes:ae,...te}=l,W=De({name:"Table",props:l,className:r,style:s,classes:Pi,classNames:o,styles:c,unstyled:f,attributes:ae,rootSelector:"table",vars:m,varsResolver:IS});return v.jsx(pN,{value:{getStyles:W,stickyHeader:U,striped:w===!0?"odd":w||void 0,highlightOnHover:C,withColumnBorders:R,withRowBorders:j,captionSide:b||"bottom"},children:v.jsx(fe,{component:"table",mod:[{"data-with-table-border":N,"data-tabular-nums":P},k],...W("table"),...te,children:L||!!D&&v.jsx(Gh,{data:D})})})});ue.classes=Pi;ue.varsResolver=IS;ue.displayName="@mantine/core/Table";ue.Td=XS;ue.Th=zm;ue.Tr=Rc;ue.Thead=qS;ue.Tbody=GS;ue.Tfoot=ZS;ue.Caption=QS;ue.ScrollContainer=Ru;ue.DataRenderer=Gh;const ua=ge(n=>v.jsx(Vl,{component:"input",...ce(["Input","InputWrapper","TextInput"],null,n),__staticSelector:"TextInput"}));ua.classes=Vl.classes;ua.displayName="@mantine/core/TextInput";var FS={root:"m_7341320d"};const JS=(n,{size:l,radius:o,variant:r,gradient:s,color:c,autoContrast:f})=>{const m=n.variantColorResolver({color:c||n.primaryColor,theme:n,gradient:s,variant:r||"filled",autoContrast:f});return{root:{"--ti-size":Pe(l,"ti-size"),"--ti-radius":o===void 0?void 0:Xt(o),"--ti-bg":c||r?m.background:void 0,"--ti-color":c||r?m.color:void 0,"--ti-bd":c||r?m.border:void 0}}},_u=ge(n=>{const l=ce("ThemeIcon",null,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,autoContrast:h,attributes:p,...b}=l;return v.jsx(fe,{...De({name:"ThemeIcon",classes:FS,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:p,vars:m,varsResolver:JS})("root"),...b})});_u.classes=FS;_u.varsResolver=JS;_u.displayName="@mantine/core/ThemeIcon";const SN=["h1","h2","h3","h4","h5","h6"],xN=["xs","sm","md","lg","xl"];function wN(n,l){const o=l!==void 0?l:`h${n}`;return SN.includes(o)?{fontSize:`var(--mantine-${o}-font-size)`,fontWeight:`var(--mantine-${o}-font-weight)`,lineHeight:`var(--mantine-${o}-line-height)`}:xN.includes(o)?{fontSize:`var(--mantine-font-size-${o})`,fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}:{fontSize:F(o),fontWeight:`var(--mantine-h${n}-font-weight)`,lineHeight:`var(--mantine-h${n}-line-height)`}}var PS={root:"m_8a5d1357"};const CN={order:1},WS=(n,{order:l,size:o,lineClamp:r,textWrap:s})=>{const c=wN(l||1,o);return{root:{"--title-fw":c.fontWeight,"--title-lh":c.lineHeight,"--title-fz":c.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":s}}},wr=ge(n=>{const l=ce("Title",CN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,order:m,vars:h,size:p,variant:b,lineClamp:g,textWrap:y,mod:w,attributes:C,...R}=l,j=De({name:"Title",props:l,classes:PS,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:C,vars:h,varsResolver:WS});return[1,2,3,4,5,6].includes(m)?v.jsx(fe,{...j("root"),component:`h${m}`,variant:b,mod:[{order:m,"data-line-clamp":typeof g=="number"},w],size:p,...R}):null});wr.classes=PS;wr.varsResolver=WS;wr.displayName="@mantine/core/Title";function EN(n){let l=n,o=!1;const r=new Set;return{getState(){return l},updateState(s){l=typeof s=="function"?s(l):s},setState(s){this.updateState(s),r.forEach(c=>c(l))},initialize(s){o||(l=s,o=!0)},subscribe(s){return r.add(s),()=>r.delete(s)}}}function TN(n){return x.useSyncExternalStore(n.subscribe,()=>n.getState(),()=>n.getState())}function RN(n,l,o){const r=[],s=[],c={};for(const f of n){const m=f.position||l;c[m]=c[m]||0,c[m]+=1,c[m]<=o?s.push(f):r.push(f)}return{notifications:s,queue:r}}const _N=()=>EN({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Cr=_N(),NN=(n=Cr)=>TN(n);function zo(n,l){const o=n.getState(),r=RN(l([...o.notifications,...o.queue]),o.defaultPosition,o.limit);n.setState({notifications:r.notifications,queue:r.queue,limit:o.limit,defaultPosition:o.defaultPosition})}function jN(n,l=Cr){const o=n.id||nb();return zo(l,r=>n.id&&r.some(s=>s.id===n.id)?r:[...r,{...n,id:o}]),o}function ex(n,l=Cr){return zo(l,o=>o.filter(r=>{var s;return r.id===n?((s=r.onClose)==null||s.call(r,r),!1):!0})),n}function AN(n,l=Cr){return zo(l,o=>o.map(r=>r.id===n.id?{...r,...n}:r)),n.id}function ON(n=Cr){zo(n,()=>[])}function MN(n=Cr){zo(n,l=>l.slice(0,n.getState().limit))}const wn={show:jN,hide:ex,update:AN,clean:ON,cleanQueue:MN,updateState:zo},tx=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function DN(n,l){return n.reduce((o,r)=>(o[r.position||l].push(r),o),tx.reduce((o,r)=>(o[r]=[],o),{}))}const K0={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},zN={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function BN({state:n,maxHeight:l,position:o,transitionDuration:r}){const[s,c]=o.split("-"),f=c==="center"?`${s}-center`:c,m={opacity:0,maxHeight:l,transform:K0[f],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"},h={opacity:1,transform:zN[f]},p={opacity:0,maxHeight:0,transform:K0[f]};return{...m,...{entering:h,entered:h,exiting:p,exited:p}[n]}}function LN(n,l){return typeof l=="number"?l:l===!1||n===!1?!1:n}const HN=120;function nx({data:n,onHide:l,autoClose:o,transitionDuration:r,allowDragDismiss:s,allowScrollDismiss:c,paused:f,onHoverStart:m,onHoverEnd:h,ref:p,style:b,...g}){const[y,w]=x.useState(0),[C,R]=x.useState(!1),[j,N]=x.useState(1),[E,_]=x.useState(!1),D=Wn(),{autoClose:L,message:U,allowClose:V,position:k,style:P,withCloseButton:ae,onOpen:te,...W}=n,oe=LN(o,n.autoClose),K=x.useRef(-1),ie=x.useRef(-1),O=x.useRef(-1),M=x.useRef(null),B=x.useRef(!1),G=x.useRef(0),J=V===!1,A=()=>window.clearTimeout(K.current),H=()=>window.clearTimeout(ie.current),Q=()=>window.clearTimeout(O.current),ee=xe=>{G.current=xe,w(xe)},se=()=>{l(n.id),A(),H(),Q()},de=()=>{C||Qe||f||B.current||typeof oe!="number"||(K.current=window.setTimeout(se,oe))},pe=xe=>{var Te;return xe*((((Te=M.current)==null?void 0:Te.offsetWidth)??440)+40)},_e=(xe,Te)=>{var Ve;const yt=((Ve=M.current)==null?void 0:Ve.offsetWidth)??440;return Math.abs(xe)>yt*.35||Te>.5},Me=()=>{Q(),_(!1),ee(0)},He=xe=>{N(xe),R(!0),_(!1),ee(pe(xe)),A(),H(),Q(),ie.current=window.setTimeout(se,r)},st=()=>{Q(),O.current=window.setTimeout(()=>{_(!1),ee(0),de()},HN)},{ref:je,active:Qe}=sC(xe=>{if(!C)if(xe.first&&A(),xe.last){if(xe.tap||xe.canceled){ee(0),de();return}const Te=xe.movement[0],yt=Te===0?xe.direction[0]===-1?-1:1:Te>0?1:-1;_e(Te,xe.velocity[0])?He(yt):(ee(0),de())}else ee(xe.movement[0])},{axis:"x",threshold:5,filterTaps:!0,enabled:s&&!J&&!C}),$e=en(p,M,je),Ce=Li(b,D),ct=Li(P,D),me={...Ce,...ct},he=typeof me.opacity=="number"?me.opacity:1,Ee=C?0:1-Math.min(Math.abs(y)/200,1)*.6,Ae=me.transitionDuration??`${r}ms, ${r}ms, ${r}ms`,Ye={...me,"--notifications-state-transform":typeof me.transform=="string"?me.transform:"translateX(0)","--notifications-state-opacity":String(he),"--notifications-swipe-offset":`${y}px`,"--notifications-swipe-opacity":String(Ee),transform:"var(--notifications-state-transform) translate3d(var(--notifications-swipe-offset), 0, 0)",opacity:"calc(var(--notifications-state-opacity) * var(--notifications-swipe-opacity))",transitionDuration:Qe||E?"0ms, 0ms, 0ms":Ae,cursor:"default",touchAction:"pan-y"},Oe=()=>{B.current=!0,A(),m==null||m()},be=()=>{B.current=!1,E||(Me(),de()),h==null||h()},Ue=x.useEffectEvent(xe=>{if(C||Qe)return;const Te=xe.currentTarget===document;if(!Te&&!B.current)return;const{deltaX:yt,deltaY:Ve}=xe;if(Math.abs(yt)<=Math.abs(Ve)||yt===0||!c||J)return;Te||(xe.preventDefault(),xe.stopPropagation()),A(),_(!0);const Cn=G.current-yt,En=Cn>0?1:-1;if(_e(Cn,0)){He(En);return}ee(Cn),st()});return x.useEffect(()=>{if(E)return document.addEventListener("wheel",Ue,{passive:!1}),()=>document.removeEventListener("wheel",Ue,{passive:!1})},[E]),x.useEffect(()=>{const xe=()=>{C&&ee(pe(j))};return window.addEventListener("resize",xe),()=>window.removeEventListener("resize",xe)},[j,C]),x.useEffect(()=>{const xe=M.current;if(xe)return xe.addEventListener("wheel",Ue,{passive:!1}),()=>xe.removeEventListener("wheel",Ue,{passive:!1})},[]),x.useEffect(()=>()=>{H(),Q()},[]),x.useEffect(()=>{var xe;(xe=n.onOpen)==null||xe.call(n,n)},[]),x.useEffect(()=>(de(),A),[oe,Qe,C]),x.useEffect(()=>(f?A():de(),A),[f]),v.jsx(Su,{ref:$e,...g,style:Ye,...W,withCloseButton:J?!1:ae,onClose:se,onMouseEnter:Oe,onMouseLeave:be,children:U})}nx.displayName="@mantine/notifications/NotificationContainer";var ax={root:"m_b37d9ac7",notification:"m_5ed0edd0"};function Bm(){return Bm=Object.assign?Object.assign.bind():function(n){for(var l=1;l({root:{"--notifications-z-index":l==null?void 0:l.toString(),"--notifications-container-width":F(o)}}),ja=ge(n=>{const l=ce("Notifications",ZN,n),{classNames:o,className:r,style:s,styles:c,unstyled:f,vars:m,attributes:h,position:p,autoClose:b,transitionDuration:g,allowDragDismiss:y,allowScrollDismiss:w,containerWidth:C,notificationMaxHeight:R,limit:j,zIndex:N,store:E,portalProps:_,withinPortal:D,pauseResetOnHover:L,...U}=l,V=Wn(),k=NN(E),P=eC(),ae=Uc(),te=x.useRef({}),W=x.useRef(0),[oe,K]=x.useState(0),ie=x.useCallback(()=>K(A=>A+1),[]),O=x.useCallback(()=>K(A=>Math.max(0,A-1)),[]),M=V.respectReducedMotion&&ae?1:g,B=De({name:"Notifications",classes:ax,props:l,className:r,style:s,classNames:o,styles:c,unstyled:f,attributes:h,vars:m,varsResolver:ox});x.useEffect(()=>{E==null||E.updateState(A=>({...A,limit:j||5,defaultPosition:p}))},[j,p]),Eo(()=>{k.notifications.length>W.current&&setTimeout(()=>P(),0),W.current=k.notifications.length},[k.notifications]);const G=DN(k.notifications,p),J=tx.reduce((A,H)=>(A[H]=G[H].map(({style:Q,...ee})=>v.jsx(GN,{timeout:M,onEnter:()=>te.current[ee.id].offsetHeight,nodeRef:{current:te.current[ee.id]},children:se=>v.jsx(nx,{ref:de=>{de&&(te.current[ee.id]=de)},data:ee,onHide:de=>ex(de,E),autoClose:b,transitionDuration:M,allowDragDismiss:y,allowScrollDismiss:w,paused:L==="all"?oe>0:!1,onHoverStart:ie,onHoverEnd:O,...B("notification",{style:{...BN({state:se,position:H,transitionDuration:M,maxHeight:R}),...Q}})})},ee.id)),A),{});return v.jsxs($l,{withinPortal:D,..._,children:[v.jsx(fe,{...B("root"),"data-position":"top-center",...U,children:v.jsx(Ml,{children:J["top-center"]})}),v.jsx(fe,{...B("root"),"data-position":"top-left",...U,children:v.jsx(Ml,{children:J["top-left"]})}),v.jsx(fe,{...B("root",{className:gr.classNames.fullWidth}),"data-position":"top-right",...U,children:v.jsx(Ml,{children:J["top-right"]})}),v.jsx(fe,{...B("root",{className:gr.classNames.fullWidth}),"data-position":"bottom-right",...U,children:v.jsx(Ml,{children:J["bottom-right"]})}),v.jsx(fe,{...B("root"),"data-position":"bottom-left",...U,children:v.jsx(Ml,{children:J["bottom-left"]})}),v.jsx(fe,{...B("root"),"data-position":"bottom-center",...U,children:v.jsx(Ml,{children:J["bottom-center"]})})]})});ja.classes=ax;ja.varsResolver=ox;ja.displayName="@mantine/notifications/Notifications";ja.show=wn.show;ja.hide=wn.hide;ja.update=wn.update;ja.clean=wn.clean;ja.cleanQueue=wn.cleanQueue;ja.updateState=wn.updateState;const QN=["#f1edff","#dcd3ff","#b5a3f5","#8d70ed","#6c47e6","#5a2fe2","#5023e0","#4119c7","#3915b3","#2f0f9e"],KN={primaryColor:"brand",colors:{brand:QN},fontFamily:"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",defaultRadius:"md",headings:{fontWeight:"650"}};class Qh extends Error{constructor(o,r){super(o);Vy(this,"status");this.status=r}}async function zn(n,l){const o=await fetch(n,{headers:{"Content-Type":"application/json"},...l}),r=await o.text();let s=null;if(r)try{s=JSON.parse(r)}catch{s=r}if(!o.ok){const c=s&&typeof s=="object"&&"error"in s?String(s.error):`HTTP ${o.status}`;throw new Qh(c,o.status)}return s}const Ln={me:()=>zn("/api/me"),cluster:()=>zn("/api/cluster"),listRooms:()=>zn("/api/rooms"),createRoom:n=>zn("/api/rooms",{method:"POST",body:JSON.stringify(n)}),listMembers:n=>zn(`/api/rooms/${encodeURIComponent(n)}/members`),invite:(n,l)=>zn(`/api/rooms/${encodeURIComponent(n)}/invite`,{method:"POST",body:JSON.stringify(l)}),kick:(n,l)=>zn(`/api/rooms/${encodeURIComponent(n)}/kick`,{method:"POST",body:JSON.stringify({endpoint:l})}),listUsers:()=>zn("/api/users"),addUser:n=>zn("/api/users",{method:"POST",body:JSON.stringify(n)}),revokeUser:n=>zn("/api/users/revoke",{method:"POST",body:JSON.stringify({sign_pub:n})}),deleteUser:n=>zn(`/api/users/${encodeURIComponent(n)}`,{method:"DELETE"}),listInvites:()=>zn("/api/invites"),createInvite:n=>zn("/api/invites",{method:"POST",body:JSON.stringify(n)})};/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */var IN={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const tn=(n,l,o,r)=>{const s=x.forwardRef(({color:c="currentColor",size:f=24,stroke:m=2,title:h,className:p,children:b,...g},y)=>x.createElement("svg",{ref:y,...IN[n],width:f,height:f,className:["tabler-icon",`tabler-icon-${l}`,p].join(" "),strokeWidth:m,stroke:c,...g},[h&&x.createElement("title",{key:"svg-title"},h),...r.map(([w,C])=>x.createElement(w,C)),...Array.isArray(b)?b:[b]]));return s.displayName=`${o}`,s};/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const FN=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],ix=tn("outline","alert-triangle","AlertTriangle",FN);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const JN=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],$m=tn("outline","check","Check",JN);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const PN=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],sx=tn("outline","copy","Copy",PN);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const WN=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-5a4 4 0 0 1 8 0",key:"svg-2"}]],ej=tn("outline","lock-open","LockOpen",WN);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const tj=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],nj=tn("outline","lock","Lock",tj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const aj=[["path",{d:"M21 14l-3 -3h-7a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1h9a1 1 0 0 1 1 1v10",key:"svg-0"}],["path",{d:"M14 15v2a1 1 0 0 1 -1 1h-7l-3 3v-10a1 1 0 0 1 1 -1h2",key:"svg-1"}]],lj=tn("outline","messages","Messages",aj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const rj=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],cx=tn("outline","plus","Plus",rj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const oj=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],Kh=tn("outline","refresh","Refresh",oj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const ij=[["path",{d:"M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2",key:"svg-0"}],["path",{d:"M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2",key:"svg-1"}],["path",{d:"M7 8l0 .01",key:"svg-2"}],["path",{d:"M7 16l0 .01",key:"svg-3"}],["path",{d:"M11 8h6",key:"svg-4"}],["path",{d:"M11 16h6",key:"svg-5"}]],ux=tn("outline","server-2","Server2",ij);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const sj=[["path",{d:"M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3",key:"svg-0"}],["path",{d:"M11 11a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 12l0 2.5",key:"svg-2"}]],cj=tn("outline","shield-lock","ShieldLock",sj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const uj=[["path",{d:"M15 5l0 2",key:"svg-0"}],["path",{d:"M15 11l0 2",key:"svg-1"}],["path",{d:"M15 17l0 2",key:"svg-2"}],["path",{d:"M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2",key:"svg-3"}]],Um=tn("outline","ticket","Ticket",uj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const fj=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],fx=tn("outline","trash","Trash",fj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const dj=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.348 0 .686 .045 1.009 .128",key:"svg-1"}],["path",{d:"M16 19h6",key:"svg-2"}]],mj=tn("outline","user-minus","UserMinus",dj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const hj=[["path",{d:"M8.18 8.189a4.01 4.01 0 0 0 2.616 2.627m3.507 -.545a4 4 0 1 0 -5.59 -5.552",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.412 0 .81 .062 1.183 .178m2.633 2.618c.12 .38 .184 .785 .184 1.204v2",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]],pj=tn("outline","user-off","UserOff",hj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const vj=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-3"}]],gj=tn("outline","user-plus","UserPlus",vj);/** * @license @tabler/icons-react v3.44.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. */const yj=[["path",{d:"M5 7a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]],dx=tn("outline","users","Users",yj);function yr(n,l=10,o=6){return n?n.length<=l+o+1?n:`${n.slice(0,l)}…${n.slice(-o)}`:""}function Vm(n){if(!n)return"—";const l=new Date(n);return Number.isNaN(l.getTime())?n:l.toLocaleString()}function bj({p:n,up:l}){if(!l)return v.jsx(ke,{c:"dimmed",size:"sm",children:"—"});const o=(r,s)=>v.jsx(Tt,{size:"sm",variant:r?"filled":"outline",color:r?"teal":"gray",children:s},s);return v.jsxs(gt,{gap:6,wrap:"wrap",children:[o(n.enforce,"enforce"),o(n.acl,"acl"),o(n.tls,"tls"),o(n.cluster,"cluster"),v.jsxs(Tt,{size:"sm",variant:"light",color:"brand",style:{textTransform:"none"},children:["store: ",n.store||"?"]})]})}function Sj(){const[n,l]=x.useState(null),[o,r]=x.useState(null),[s,c]=x.useState(!1),f=x.useCallback(()=>{c(!0),Ln.cluster().then(h=>{l(h),r(null)}).catch(h=>r(h.message)).finally(()=>c(!1))},[]);x.useEffect(()=>{f();const h=setInterval(f,1e4);return()=>clearInterval(h)},[f]);const m=(n==null?void 0:n.filter(h=>h.up).length)??0;return v.jsxs(rn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(wr,{order:3,children:"Cluster"}),n&&v.jsxs(Tt,{color:m===n.length?"teal":m===0?"red":"yellow",variant:"light",children:[m,"/",n.length," up"]})]}),v.jsx(It,{label:"Refrescar",children:v.jsx(Jn,{variant:"light",color:"brand",onClick:f,loading:s,children:v.jsx(Kh,{size:18})})})]}),o&&v.jsx(ke,{c:"red",children:o}),!n&&!o&&v.jsx(Hn,{color:"brand"}),n&&v.jsx(Ul,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(ue,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Nodo"}),v.jsx(ue.Th,{children:"Estado"}),v.jsx(ue.Th,{children:"Latencia"}),v.jsx(ue.Th,{children:"Posture"}),v.jsx(ue.Th,{children:"URL"})]})}),v.jsx(ue.Tbody,{children:n.map(h=>v.jsxs(ue.Tr,{children:[v.jsx(ue.Td,{children:v.jsxs(gt,{gap:8,wrap:"nowrap",children:[v.jsx(du,{color:h.up?"teal":"red",size:9,processing:h.up,children:v.jsx(ux,{size:18})}),v.jsx(ke,{fw:600,children:h.name})]})}),v.jsx(ue.Td,{children:h.up?v.jsx(Tt,{color:"teal",variant:"light",children:"up"}):v.jsx(It,{label:h.error||"sin respuesta",multiline:!0,w:260,children:v.jsx(Tt,{color:"red",variant:"light",children:"down"})})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"sm",c:"dimmed",children:h.up?`${h.latency_ms} ms`:"—"})}),v.jsx(ue.Td,{children:v.jsx(bj,{p:h.posture,up:h.up})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:h.url})})]},h.name))})]})}),v.jsxs(ke,{size:"xs",c:"dimmed",children:["Posture leída de ",v.jsx("code",{children:"GET /healthz"})," de cada nodo (enforce + ACL + TLS + cluster + backend de store). El meta-leader y el tamaño de quórum requieren el endpoint de monitoreo de NATS (gap conocido)."]})]})}function Ih(n){wn.show({color:"red",title:"Error",message:n instanceof Qh?n.message:String(n)})}function xj(){const[n,l]=x.useState(null),[o,r]=x.useState(null),[s,c]=x.useState(!1),[f,m]=jc(!1),[h,p]=x.useState(null),b=x.useCallback(()=>{c(!0),Ln.listRooms().then(g=>{l(g),r(null)}).catch(g=>r(g.message)).finally(()=>c(!1))},[]);return x.useEffect(()=>{b()},[b]),v.jsxs(rn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(wr,{order:3,children:"Rooms"}),n&&v.jsx(Tt,{color:"brand",variant:"light",children:n.length})]}),v.jsxs(gt,{gap:"xs",children:[v.jsx(It,{label:"Refrescar",children:v.jsx(Jn,{variant:"light",color:"brand",onClick:b,loading:s,children:v.jsx(Kh,{size:18})})}),v.jsx(Rt,{leftSection:v.jsx(cx,{size:16}),onClick:m.open,children:"Crear room"})]})]}),o&&v.jsx(ke,{c:"red",children:o}),!n&&!o&&v.jsx(Hn,{color:"brand"}),n&&n.length===0&&v.jsx(ke,{c:"dimmed",children:"El admin no posee ni pertenece a ninguna room todavía."}),n&&n.length>0&&v.jsx(Ul,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(ue,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Subject"}),v.jsx(ue.Th,{children:"Modo"}),v.jsx(ue.Th,{children:"Persist"}),v.jsx(ue.Th,{children:"Firmado"}),v.jsx(ue.Th,{children:"Epoch"}),v.jsx(ue.Th,{children:"Rol"}),v.jsx(ue.Th,{})]})}),v.jsx(ue.Tbody,{children:n.map(g=>v.jsxs(ue.Tr,{children:[v.jsxs(ue.Td,{children:[v.jsx(ke,{fw:600,children:g.subject}),v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:yr(g.room_id,14,4)})]}),v.jsx(ue.Td,{children:g.encrypt?v.jsx(Tt,{color:"teal",variant:"light",leftSection:v.jsx(nj,{size:12}),children:"E2E"}):v.jsx(Tt,{color:"orange",variant:"light",leftSection:v.jsx(ej,{size:12}),children:"cleartext"})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"sm",c:"dimmed",children:g.persist?"sí":"no"})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"sm",c:"dimmed",children:g.sign_msgs?"sí":"no"})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"default",children:g.epoch})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"dot",color:g.role==="owner"?"brand":"gray",children:g.role})}),v.jsx(ue.Td,{children:v.jsx(It,{label:"Ver miembros / claves",children:v.jsx(Jn,{variant:"subtle",color:"brand",onClick:()=>p(g),children:v.jsx(dx,{size:18})})})})]},g.room_id))})]})}),v.jsx(wj,{opened:f,onClose:m.close,onCreated:b}),v.jsx(Cj,{room:h,onClose:()=>p(null)})]})}function wj({opened:n,onClose:l,onCreated:o}){const[r,s]=x.useState(""),[c,f]=x.useState(!0),[m,h]=x.useState(!0),[p,b]=x.useState(!0),[g,y]=x.useState(!1),w=async()=>{y(!0);try{const C=await Ln.createRoom({subject:r.trim(),encrypt:c,persist:m,sign_msgs:p});wn.show({color:"teal",title:"Room creada",message:`${C.subject} (${yr(C.room_id,12,4)})`}),s(""),l(),o()}catch(C){Ih(C)}finally{y(!1)}};return v.jsx(cn,{opened:n,onClose:l,title:"Crear room",centered:!0,children:v.jsxs(rn,{gap:"md",children:[v.jsx(ua,{label:"Subject",description:"Identificador del canal en NATS (ej. team.general)",placeholder:"team.general",value:r,onChange:C=>s(C.currentTarget.value),"data-autofocus":!0}),v.jsx(pr,{label:"Cifrado de extremo a extremo (E2E)",description:"Recomendado. En despliegue público los nodos rechazan rooms en claro.",checked:c,onChange:C=>f(C.currentTarget.checked)}),v.jsx(pr,{label:"Persistente (JetStream / historial)",checked:m,onChange:C=>h(C.currentTarget.checked)}),v.jsx(pr,{label:"Mensajes firmados",checked:p,onChange:C=>b(C.currentTarget.checked)}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:l,children:"Cancelar"}),v.jsx(Rt,{onClick:w,loading:g,disabled:r.trim().length===0,children:"Crear"})]})]})})}function Cj({room:n,onClose:l}){const[o,r]=x.useState(null),[s,c]=x.useState(null),[f,m]=jc(!1),h=x.useCallback(()=>{n&&(r(null),c(null),Ln.listMembers(n.room_id).then(r).catch(b=>c(b.message)))},[n]);x.useEffect(()=>{h()},[h]);const p=async b=>{if(n&&window.confirm(`¿Expulsar a ${b}? Esto rota la clave de la room (epoch nuevo) y el expulsado deja de poder descifrar.`))try{await Ln.kick(n.room_id,b),wn.show({color:"teal",title:"Rekey",message:"Miembro expulsado y clave rotada"}),h()}catch(g){Ih(g)}};return v.jsx(ma,{opened:n!==null,onClose:l,position:"right",size:"lg",title:n?v.jsx(ke,{fw:700,children:n.subject}):"",children:n&&v.jsxs(rn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(ke,{size:"sm",c:"dimmed",children:["epoch ",n.epoch," · ",n.encrypt?"E2E":"cleartext"]}),v.jsx(Rt,{size:"xs",leftSection:v.jsx(gj,{size:14}),onClick:m.open,disabled:n.role!=="owner",children:"Invitar"})]}),s&&v.jsx(ke,{c:"red",size:"sm",children:s}),!o&&!s&&v.jsx(Hn,{color:"brand",size:"sm"}),o&&v.jsxs(ue,{verticalSpacing:"xs",horizontalSpacing:"sm",children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Endpoint"}),v.jsx(ue.Th,{children:"Rol"}),v.jsx(ue.Th,{children:"sign_pub"}),v.jsx(ue.Th,{})]})}),v.jsx(ue.Tbody,{children:o.map(b=>v.jsxs(ue.Tr,{children:[v.jsx(ue.Td,{children:v.jsx(ke,{size:"sm",style:{fontFamily:"monospace"},children:yr(b.endpoint,14,6)})}),v.jsx(ue.Td,{children:v.jsx(Tt,{size:"sm",variant:"dot",color:b.role==="owner"?"brand":"gray",children:b.role})}),v.jsx(ue.Td,{children:v.jsx(It,{label:b.sign_pub,children:v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:yr(b.sign_pub,10,6)})})}),v.jsx(ue.Td,{children:b.role!=="owner"&&n.role==="owner"&&v.jsx(It,{label:"Expulsar + rekey",children:v.jsx(Jn,{variant:"subtle",color:"red",onClick:()=>p(b.endpoint),children:v.jsx(mj,{size:16})})})})]},b.endpoint))})]}),v.jsx(Ej,{room:n,opened:f,onClose:m.close,onInvited:h})]})})}function Ej({room:n,opened:l,onClose:o,onInvited:r}){const[s,c]=x.useState(""),[f,m]=x.useState(""),[h,p]=x.useState(""),[b,g]=x.useState(!1),y=async()=>{g(!0);try{await Ln.invite(n.room_id,{endpoint:s.trim(),sign_pub:f.trim(),kex_pub:h.trim()}),wn.show({color:"teal",title:"Invitado",message:"Clave de room sellada para el nuevo miembro"}),c(""),m(""),p(""),o(),r()}catch(C){Ih(C)}finally{g(!1)}},w=f.trim().length===64&&h.trim().length===64;return v.jsx(cn,{opened:l,onClose:o,title:`Invitar a ${n.subject}`,centered:!0,children:v.jsxs(rn,{gap:"sm",children:[v.jsx(ke,{size:"sm",c:"dimmed",children:"Para una room E2E la clave se sella contra la clave X25519 del invitado, por eso se piden ambas claves públicas (hex de 64 chars)."}),v.jsx(ua,{label:"Endpoint (opcional)",description:"Se deriva de sign_pub si se deja vacío",value:s,onChange:C=>c(C.currentTarget.value)}),v.jsx(ua,{label:"sign_pub (hex, 64)",value:f,onChange:C=>m(C.currentTarget.value),error:f.length>0&&f.trim().length!==64?"64 chars hex":void 0}),v.jsx(ua,{label:"kex_pub (hex, 64)",value:h,onChange:C=>p(C.currentTarget.value),error:h.length>0&&h.trim().length!==64?"64 chars hex":void 0}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:o,children:"Cancelar"}),v.jsx(Rt,{onClick:y,loading:b,disabled:!w,children:"Invitar"})]})]})})}function Nu(n){wn.show({color:"red",title:"Error",message:n instanceof Qh?n.message:String(n)})}function mx(n){return n.join_url?n.join_url:`${window.location.origin}/join?token=${n.token}`}function Tj({usersBackend:n,joinBaseURL:l}){const[o,r]=x.useState(null),[s,c]=x.useState([]),[f,m]=x.useState(null),[h,p]=x.useState(!1),[b,g]=jc(!1),[y,w]=jc(!1),[C,R]=x.useState(null),j=x.useCallback(()=>{p(!0),Promise.all([Ln.listUsers(),Ln.listInvites().catch(()=>[])]).then(([E,_])=>{r(E),c(_),m(null)}).catch(E=>m(E.message)).finally(()=>p(!1))},[]);x.useEffect(()=>{j()},[j]);const N=async E=>{if(window.confirm(`¿Revocar a "${E.handle}"? Pierde acceso al bus en AMBOS planos de inmediato (control y datos). La identidad permanece en la lista como revocada (auditable).`))try{await Ln.revokeUser(E.sign_pub),wn.show({color:"teal",title:"Revocado",message:E.handle}),j()}catch(_){Nu(_)}};return v.jsxs(rn,{gap:"md",children:[v.jsxs(gt,{justify:"space-between",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(wr,{order:3,children:"Users"}),o&&v.jsx(Tt,{color:"brand",variant:"light",children:o.length}),v.jsx(It,{label:"Vía de gestión de la allowlist del bus",children:v.jsxs(Tt,{variant:"outline",color:"teal",style:{textTransform:"none"},children:["backend: ",n]})})]}),v.jsxs(gt,{gap:"xs",children:[v.jsx(It,{label:"Refrescar",children:v.jsx(Jn,{variant:"light",color:"brand",onClick:j,loading:h,children:v.jsx(Kh,{size:18})})}),v.jsx(Rt,{variant:"default",leftSection:v.jsx(cx,{size:16}),onClick:g.open,children:"Añadir user (clave conocida)"}),v.jsx(Rt,{leftSection:v.jsx(Um,{size:16}),onClick:w.open,children:"Crear usuario"})]})]}),f&&v.jsx(ke,{c:"red",children:f}),!o&&!f&&v.jsx(Hn,{color:"brand"}),s.length>0&&v.jsx(Ul,{withBorder:!0,bg:"dark.7",radius:"md",children:v.jsxs(rn,{gap:"sm",children:[v.jsxs(gt,{gap:"sm",children:[v.jsx(Um,{size:18}),v.jsx(ke,{fw:600,children:"Invitaciones pendientes"}),v.jsx(Tt,{color:"brand",variant:"light",children:s.length})]}),v.jsxs(ue,{verticalSpacing:"xs",horizontalSpacing:"md",children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Handle"}),v.jsx(ue.Th,{children:"Rol"}),v.jsx(ue.Th,{children:"Token"}),v.jsx(ue.Th,{children:"Caduca"}),v.jsx(ue.Th,{children:"Enlace"})]})}),v.jsx(ue.Tbody,{children:s.map(E=>v.jsxs(ue.Tr,{children:[v.jsx(ue.Td,{children:v.jsx(ke,{fw:600,children:E.handle})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"dot",color:E.role==="admin"?"brand":"gray",children:E.role})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:yr(E.token,10,6)})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"xs",c:"dimmed",children:Vm(E.expires_at)})}),v.jsx(ue.Td,{children:v.jsx(kh,{value:mx(E),children:({copied:_,copy:D})=>v.jsx(Rt,{size:"xs",variant:"light",color:_?"teal":"brand",leftSection:_?v.jsx($m,{size:14}):v.jsx(sx,{size:14}),onClick:D,children:_?"Copiado":"Copiar enlace"})})})]},E.token))})]})]})}),o&&v.jsx(Ul,{withBorder:!0,bg:"dark.7",p:0,radius:"md",children:v.jsxs(ue,{verticalSpacing:"sm",horizontalSpacing:"md",highlightOnHover:!0,children:[v.jsx(ue.Thead,{children:v.jsxs(ue.Tr,{children:[v.jsx(ue.Th,{children:"Handle"}),v.jsx(ue.Th,{children:"Rol"}),v.jsx(ue.Th,{children:"Estado"}),v.jsx(ue.Th,{children:"sign_pub"}),v.jsx(ue.Th,{children:"Creado"}),v.jsx(ue.Th,{})]})}),v.jsx(ue.Tbody,{children:o.map(E=>v.jsxs(ue.Tr,{children:[v.jsx(ue.Td,{children:v.jsx(ke,{fw:600,children:E.handle})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"dot",color:E.role==="admin"?"brand":"gray",children:E.role})}),v.jsx(ue.Td,{children:v.jsx(Tt,{variant:"light",color:E.status==="active"?"teal":"red",children:E.status})}),v.jsx(ue.Td,{children:v.jsx(It,{label:E.sign_pub,children:v.jsx(ke,{size:"xs",c:"dimmed",style:{fontFamily:"monospace"},children:yr(E.sign_pub,12,8)})})}),v.jsx(ue.Td,{children:v.jsx(ke,{size:"xs",c:"dimmed",children:Vm(E.created_at)})}),v.jsx(ue.Td,{children:v.jsxs(gt,{gap:4,justify:"flex-end",wrap:"nowrap",children:[E.status==="active"&&v.jsx(It,{label:"Revocar acceso (deja rastro auditable)",children:v.jsx(Jn,{variant:"subtle",color:"orange",onClick:()=>N(E),children:v.jsx(pj,{size:16})})}),v.jsx(It,{label:"Eliminar (borrado permanente)",children:v.jsx(Jn,{variant:"subtle",color:"red",onClick:()=>R(E),children:v.jsx(fx,{size:16})})})]})})]},E.sign_pub))})]})}),v.jsx(Rj,{opened:b,onClose:g.close,onAdded:j}),v.jsx(_j,{opened:y,onClose:w.close,onCreated:j,joinBaseURL:l}),v.jsx(Nj,{user:C,onClose:()=>R(null),onDeleted:j})]})}function Rj({opened:n,onClose:l,onAdded:o}){const[r,s]=x.useState(""),[c,f]=x.useState(""),[m,h]=x.useState("member"),[p,b]=x.useState(!1),g=async()=>{b(!0);try{await Ln.addUser({handle:r.trim(),sign_pub:c.trim(),role:m}),wn.show({color:"teal",title:"User añadido",message:r}),s(""),f(""),h("member"),l(),o()}catch(w){Nu(w)}finally{b(!1)}},y=r.trim().length>0&&c.trim().length===64;return v.jsx(cn,{opened:n,onClose:l,title:"Añadir user (clave ya conocida)",centered:!0,children:v.jsxs(rn,{gap:"sm",children:[v.jsx(ke,{size:"xs",c:"dimmed",children:"Para cuando ya tienes la clave pública del usuario. Para el alta normal sin manejar claves, usa «Crear usuario» (enlace de invitación)."}),v.jsx(ua,{label:"Handle",placeholder:"ana",value:r,onChange:w=>s(w.currentTarget.value),"data-autofocus":!0}),v.jsx(ua,{label:"sign_pub (hex, 64)",description:"Clave pública Ed25519 del usuario (la misma que autentica control + datos)",placeholder:"48bc0dc8…",value:c,onChange:w=>f(w.currentTarget.value),error:c.length>0&&c.trim().length!==64?"64 chars hex":void 0}),v.jsx(Tu,{label:"Rol",data:[{value:"member",label:"member"},{value:"admin",label:"admin"}],value:m,onChange:w=>h(w||"member"),allowDeselect:!1}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:l,children:"Cancelar"}),v.jsx(Rt,{onClick:g,loading:p,disabled:!y,children:"Añadir"})]})]})})}function _j({opened:n,onClose:l,onCreated:o,joinBaseURL:r}){const[s,c]=x.useState(""),[f,m]=x.useState("member"),[h,p]=x.useState(7),[b,g]=x.useState(!1),[y,w]=x.useState(null),C=()=>{c(""),m("member"),p(7),w(null)},R=()=>{C(),l()},j=async()=>{g(!0);try{const _=typeof h=="number"?h*86400:0,D=await Ln.createInvite({handle:s.trim(),role:f,ttl_secs:_});w(D),o()}catch(_){Nu(_)}finally{g(!1)}},N=s.trim().length>0,E=y?mx(y):"";return v.jsx(cn,{opened:n,onClose:R,title:"Crear usuario (enlace de invitación)",centered:!0,children:y?v.jsxs(rn,{gap:"sm",children:[v.jsxs(wo,{color:"teal",icon:v.jsx($m,{size:16}),title:`Invitación para "${y.handle}" (${y.role})`,children:["Comparte este enlace con el usuario. Es de un solo uso y caduca el ",Vm(y.expires_at),"."]}),!r&&v.jsxs(wo,{color:"yellow",icon:v.jsx(ix,{size:16}),title:"Base URL del cliente sin configurar",children:["El enlace usa el origen de este panel como respaldo. Configura el cliente real con",v.jsx(ke,{span:!0,fw:600,children:" --join-base-url "})," o la variable",v.jsx(ke,{span:!0,fw:600,children:" UNIBUS_JOIN_BASE_URL "})," en el gateway."]}),v.jsx(ua,{readOnly:!0,value:E,styles:{input:{fontFamily:"monospace",fontSize:12}}}),v.jsxs(gt,{justify:"space-between",children:[v.jsx(kh,{value:E,children:({copied:_,copy:D})=>v.jsx(Rt,{color:_?"teal":"brand",leftSection:_?v.jsx($m,{size:16}):v.jsx(sx,{size:16}),onClick:D,children:_?"Copiado":"Copiar enlace"})}),v.jsx(Rt,{variant:"default",onClick:R,children:"Cerrar"})]})]}):v.jsxs(rn,{gap:"sm",children:[v.jsx(ke,{size:"xs",c:"dimmed",children:"Genera un enlace de un solo uso. El usuario lo abre en su dispositivo, crea ahí su clave (la privada nunca sale de su equipo) y se registra. Tú no manejas ninguna clave."}),v.jsx(ua,{label:"Handle",placeholder:"ana",value:s,onChange:_=>c(_.currentTarget.value),"data-autofocus":!0}),v.jsx(Tu,{label:"Rol",data:[{value:"member",label:"member"},{value:"admin",label:"admin"}],value:f,onChange:_=>m(_||"member"),allowDeselect:!1}),v.jsx(wu,{label:"Caducidad (días)",min:1,max:90,value:h,onChange:p}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:R,children:"Cancelar"}),v.jsx(Rt,{onClick:j,loading:b,disabled:!N,leftSection:v.jsx(Um,{size:16}),children:"Crear enlace"})]})]})})}function Nj({user:n,onClose:l,onDeleted:o}){const[r,s]=x.useState(""),[c,f]=x.useState(!1);if(x.useEffect(()=>{s("")},[n]),!n)return null;const m=async()=>{f(!0);try{await Ln.deleteUser(n.sign_pub),wn.show({color:"red",title:"Usuario eliminado",message:`${n.handle} purgado del allowlist`}),l(),o()}catch(p){Nu(p)}finally{f(!1)}},h=r.trim()===n.handle;return v.jsx(cn,{opened:!!n,onClose:l,title:"Borrado permanente",centered:!0,children:v.jsxs(rn,{gap:"sm",children:[v.jsx(wo,{color:"red",icon:v.jsx(ix,{size:16}),title:"Esto NO es revocar",children:v.jsxs(ke,{size:"sm",children:["Vas a ",v.jsx(ke,{span:!0,fw:700,children:"BORRAR PERMANENTEMENTE"})," a «",n.handle,"» del allowlist del bus. Se elimina por completo (sin rastro auditable, a diferencia de revocar). El usuario deja de poder autenticarse en ambos planos; sus membresías de rooms quedan inertes. Esta acción es irreversible."]})}),v.jsx(ua,{label:`Escribe «${n.handle}» para confirmar`,placeholder:n.handle,value:r,onChange:p=>s(p.currentTarget.value),"data-autofocus":!0}),v.jsxs(gt,{justify:"flex-end",children:[v.jsx(Rt,{variant:"default",onClick:l,children:"Cancelar"}),v.jsx(Rt,{color:"red",leftSection:v.jsx(fx,{size:16}),onClick:m,loading:c,disabled:!h,children:"Eliminar permanentemente"})]})]})})}const jj=[{key:"cluster",label:"Cluster",icon:ux,desc:"Salud y posture de los 3 nodos"},{key:"rooms",label:"Rooms",icon:lj,desc:"Salas, miembros, claves"},{key:"users",label:"Users",icon:dx,desc:"Allowlist del bus"}];function Aj({me:n}){const[l,o]=x.useState("cluster");return v.jsxs(Bn,{header:{height:56},navbar:{width:240,breakpoint:"sm"},padding:"md",styles:{main:{backgroundColor:"var(--mantine-color-dark-8)"}},children:[v.jsx(Bn.Header,{bg:"dark.9",children:v.jsxs(gt,{h:"100%",px:"md",justify:"space-between",wrap:"nowrap",children:[v.jsxs(gt,{gap:"sm",wrap:"nowrap",children:[v.jsx(_u,{size:34,radius:"md",variant:"light",color:"brand",children:v.jsx(cj,{size:20})}),v.jsxs(fe,{children:[v.jsx(wr,{order:4,lh:1,children:"unibus · admin"}),v.jsx(ke,{size:"xs",c:"dimmed",children:"plano de control"})]})]}),v.jsxs(gt,{gap:"xs",wrap:"nowrap",children:[n.mock&&v.jsx(Tt,{color:"yellow",variant:"light",children:"MOCK"}),v.jsx(It,{label:`endpoint ${n.endpoint}`,multiline:!0,children:v.jsx(Tt,{color:"brand",variant:"light",style:{textTransform:"none"},children:yr(n.endpoint,12,6)})})]})]})}),v.jsx(Bn.Navbar,{bg:"dark.9",p:"xs",children:v.jsx(Na,{children:jj.map(r=>v.jsx(bu,{active:l===r.key,label:r.label,description:r.desc,leftSection:v.jsx(r.icon,{size:18}),onClick:()=>o(r.key),variant:"filled",mb:4},r.key))})}),v.jsxs(Bn.Main,{children:[l==="cluster"&&v.jsx(Sj,{}),l==="rooms"&&v.jsx(xj,{}),l==="users"&&v.jsx(Tj,{usersBackend:n.users_backend,joinBaseURL:n.join_base_url})]})]})}function Oj(){const[n,l]=x.useState(null),[o,r]=x.useState(null);return x.useEffect(()=>{Ln.me().then(l).catch(s=>r(s.message))},[]),o?v.jsx(Lc,{h:"100vh",bg:"dark.9",children:v.jsxs(rn,{align:"center",gap:"xs",children:[v.jsx(ke,{c:"red",children:"No se pudo contactar el gateway"}),v.jsx(ke,{c:"dimmed",size:"sm",children:o})]})}):n?v.jsx(Aj,{me:n}):v.jsx(Lc,{h:"100vh",bg:"dark.9",children:v.jsx(Hn,{color:"brand"})})}L2.createRoot(document.getElementById("root")).render(v.jsx(x.StrictMode,{children:v.jsxs(pb,{theme:KN,forceColorScheme:"dark",children:[v.jsx(ja,{position:"top-right"}),v.jsx(Oj,{})]})}));