diff --git a/assets/index-DDqJmMM9.js b/assets/index-DMEzmQlp.js similarity index 95% rename from assets/index-DDqJmMM9.js rename to assets/index-DMEzmQlp.js index 7abbfd7..ad5e599 100644 --- a/assets/index-DDqJmMM9.js +++ b/assets/index-DMEzmQlp.js @@ -6,7 +6,7 @@ function ah(e,t){for(var n=0;n>>1,ee=P[J];if(0>>1;Jo($i,L))Bto(Xr,$i)?(P[J]=Xr,P[Bt]=L,J=Bt):(P[J]=$i,P[$t]=L,J=$t);else if(Bto(Xr,L))P[J]=Xr,P[Bt]=L,J=Bt;else break e}}return O}function o(P,O){var L=P.sortIndex-O.sortIndex;return L!==0?L:P.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],a=[],f=1,c=null,g=3,w=!1,d=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=P)r(a),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(a)}}function C(P){if(m=!1,v(P),!d)if(n(u)!==null)d=!0,Ii(_);else{var O=n(a);O!==null&&Ui(C,O.startTime-P)}}function _(P,O){d=!1,m&&(m=!1,y(R),R=-1),w=!0;var L=g;try{for(v(O),c=n(u);c!==null&&(!(c.expirationTime>O)||P&&!Ie());){var J=c.callback;if(typeof J=="function"){c.callback=null,g=c.priorityLevel;var ee=J(c.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?c.callback=ee:c===n(u)&&r(u),v(O)}else r(u);c=n(u)}if(c!==null)var Gr=!0;else{var $t=n(a);$t!==null&&Ui(C,$t.startTime-O),Gr=!1}return Gr}finally{c=null,g=L,w=!1}}var N=!1,T=null,R=-1,Z=5,A=-1;function Ie(){return!(e.unstable_now()-AP||125J?(P.sortIndex=L,t(a,P),n(u)===null&&P===n(a)&&(m?(y(R),R=-1):m=!0,Ui(C,L-J))):(P.sortIndex=ee,t(u,P),d||w||(d=!0,Ii(_))),P},e.unstable_shouldYield=Ie,e.unstable_wrapCallback=function(P){var O=g;return function(){var L=g;g=O;try{return P.apply(this,arguments)}finally{g=L}}}})(Xc);Gc.exports=Xc;var Lh=Gc.exports;/** + */(function(e){function t(P,O){var L=P.length;P.push(O);e:for(;0>>1,ee=P[J];if(0>>1;Jo($i,L))Bto(Xr,$i)?(P[J]=Xr,P[Bt]=L,J=Bt):(P[J]=$i,P[$t]=L,J=$t);else if(Bto(Xr,L))P[J]=Xr,P[Bt]=L,J=Bt;else break e}}return O}function o(P,O){var L=P.sortIndex-O.sortIndex;return L!==0?L:P.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],a=[],f=1,c=null,g=3,w=!1,d=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=P)r(a),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(a)}}function C(P){if(m=!1,v(P),!d)if(n(u)!==null)d=!0,Ii(_);else{var O=n(a);O!==null&&Ui(C,O.startTime-P)}}function _(P,O){d=!1,m&&(m=!1,y(R),R=-1),w=!0;var L=g;try{for(v(O),c=n(u);c!==null&&(!(c.expirationTime>O)||P&&!Ie());){var J=c.callback;if(typeof J=="function"){c.callback=null,g=c.priorityLevel;var ee=J(c.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?c.callback=ee:c===n(u)&&r(u),v(O)}else r(u);c=n(u)}if(c!==null)var qr=!0;else{var $t=n(a);$t!==null&&Ui(C,$t.startTime-O),qr=!1}return qr}finally{c=null,g=L,w=!1}}var N=!1,T=null,R=-1,Z=5,A=-1;function Ie(){return!(e.unstable_now()-AP||125J?(P.sortIndex=L,t(a,P),n(u)===null&&P===n(a)&&(m?(y(R),R=-1):m=!0,Ui(C,L-J))):(P.sortIndex=ee,t(u,P),d||w||(d=!0,Ii(_))),P},e.unstable_shouldYield=Ie,e.unstable_wrapCallback=function(P){var O=g;return function(){var L=g;g=O;try{return P.apply(this,arguments)}finally{g=L}}}})(Xc);qc.exports=Xc;var Lh=qc.exports;/** * @license React * react-dom.production.min.js * @@ -34,10 +34,10 @@ function ah(e,t){for(var n=0;ns||o[l]!==i[s]){var u=` -`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{Vi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?er(e):""}function Ih(e){switch(e.tag){case 5:return er(e.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 2:case 15:return e=Wi(e.type,!1),e;case 11:return e=Wi(e.type.render,!1),e;case 1:return e=Wi(e.type,!0),e;default:return""}}function Rl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fn:return"Fragment";case cn:return"Portal";case Pl:return"Profiler";case Us:return"StrictMode";case Nl:return"Suspense";case Tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ef:return(e.displayName||"Context")+".Consumer";case bc:return(e._context.displayName||"Context")+".Provider";case $s:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bs:return t=e.displayName||null,t!==null?t:Rl(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return Rl(e(t))}catch{}}return null}function Uh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rl(t);case 8:return t===Us?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $h(e){var t=nf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=$h(e))}function rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ol(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ta(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function of(e,t){t=t.checked,t!=null&&Is(e,"checked",t,!1)}function Ll(e,t){of(e,t);var n=Ot(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ml(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ml(e,t.type,Ot(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function na(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ml(e,t,n){(t!=="number"||Oo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tr=Array.isArray;function Cn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=to.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ir={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bh=["Webkit","ms","Moz","O"];Object.keys(ir).forEach(function(e){Bh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ir[t]=ir[e]})});function af(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ir.hasOwnProperty(e)&&ir[e]?(""+t).trim():t+"px"}function cf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=af(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Hh=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zl(e,t){if(t){if(Hh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Fl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Il=null;function Hs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,En=null,kn=null;function ia(e){if(e=Br(e)){if(typeof Ul!="function")throw Error(k(280));var t=e.stateNode;t&&(t=pi(t),Ul(e.stateNode,e.type,t))}}function ff(e){En?kn?kn.push(e):kn=[e]:En=e}function df(){if(En){var e=En,t=kn;if(kn=En=null,ia(e),t)for(e=0;e>>=0,e===0?32:31-(bh(e)/e1|0)|0}var no=64,ro=4194304;function nr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ao(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=nr(s):(i&=l,i!==0&&(r=nr(i)))}else l=n&~o,l!==0?r=nr(l):i!==0&&(r=nr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-We(t),e[t]=n}function o1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=sr),ha=" ",ma=!1;function Lf(e,t){switch(e){case"keyup":return L1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function D1(e,t){switch(e){case"compositionend":return Mf(t);case"keypress":return t.which!==32?null:(ma=!0,ha);case"textInput":return e=t.data,e===ha&&ma?null:e;default:return null}}function A1(e,t){if(dn)return e==="compositionend"||!Gs&&Lf(e,t)?(e=Rf(),So=Zs=wt=null,dn=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wa(n)}}function Ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function If(){for(var e=window,t=Oo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oo(e.document)}return t}function Xs(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")}function W1(e){var t=If(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ff(n.ownerDocument.documentElement,n)){if(r!==null&&Xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Sa(n,i);var l=Sa(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,pn=null,Kl=null,ar=null,Ql=!1;function xa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ql||pn==null||pn!==Oo(r)||(r=pn,"selectionStart"in r&&Xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ar&&Cr(ar,r)||(ar=r,r=Io(Kl,"onSelect"),0yn||(e.current=Yl[yn],Yl[yn]=null,yn--)}function U(e,t){yn++,Yl[yn]=e.current,e.current=t}var Lt={},ce=At(Lt),ve=At(!1),Xt=Lt;function Tn(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ge(e){return e=e.childContextTypes,e!=null}function $o(){B(ve),B(ce)}function Na(e,t,n){if(ce.current!==Lt)throw Error(k(168));U(ce,t),U(ve,n)}function Zf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,Uh(e)||"Unknown",o));return K({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Xt=ce.current,U(ce,e),U(ve,ve.current),!0}function Ta(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Zf(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,B(ve),B(ce),U(ce,e)):B(ve),U(ve,n)}var tt=null,hi=!1,ol=!1;function Jf(e){tt===null?tt=[e]:tt.push(e)}function nm(e){hi=!0,Jf(e)}function zt(){if(!ol&&tt!==null){ol=!0;var e=0,t=I;try{var n=tt;for(I=1;e>=l,o-=l,nt=1<<32-We(t)+o|n<R?(Z=T,T=null):Z=T.sibling;var A=g(y,T,v[R],C);if(A===null){T===null&&(T=Z);break}e&&T&&A.alternate===null&&t(y,T),h=i(A,h,R),N===null?_=A:N.sibling=A,N=A,T=Z}if(R===v.length)return n(y,T),H&&Ht(y,R),_;if(T===null){for(;RR?(Z=T,T=null):Z=T.sibling;var Ie=g(y,T,A.value,C);if(Ie===null){T===null&&(T=Z);break}e&&T&&Ie.alternate===null&&t(y,T),h=i(Ie,h,R),N===null?_=Ie:N.sibling=Ie,N=Ie,T=Z}if(A.done)return n(y,T),H&&Ht(y,R),_;if(T===null){for(;!A.done;R++,A=v.next())A=c(y,A.value,C),A!==null&&(h=i(A,h,R),N===null?_=A:N.sibling=A,N=A);return H&&Ht(y,R),_}for(T=r(y,T);!A.done;R++,A=v.next())A=w(T,y,R,A.value,C),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),h=i(A,h,R),N===null?_=A:N.sibling=A,N=A);return e&&T.forEach(function(Vn){return t(y,Vn)}),H&&Ht(y,R),_}function S(y,h,v,C){if(typeof v=="object"&&v!==null&&v.type===fn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case br:e:{for(var _=v.key,N=h;N!==null;){if(N.key===_){if(_=v.type,_===fn){if(N.tag===7){n(y,N.sibling),h=o(N,v.props.children),h.return=y,y=h;break e}}else if(N.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===mt&&La(_)===N.type){n(y,N.sibling),h=o(N,v.props),h.ref=Gn(y,N,v),h.return=y,y=h;break e}n(y,N);break}else t(y,N);N=N.sibling}v.type===fn?(h=qt(v.props.children,y.mode,C,v.key),h.return=y,y=h):(C=No(v.type,v.key,v.props,null,y.mode,C),C.ref=Gn(y,h,v),C.return=y,y=C)}return l(y);case cn:e:{for(N=v.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(y,h.sibling),h=o(h,v.children||[]),h.return=y,y=h;break e}else{n(y,h);break}else t(y,h);h=h.sibling}h=dl(v,y.mode,C),h.return=y,y=h}return l(y);case mt:return N=v._init,S(y,h,N(v._payload),C)}if(tr(v))return d(y,h,v,C);if(Kn(v))return m(y,h,v,C);co(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(y,h.sibling),h=o(h,v),h.return=y,y=h):(n(y,h),h=fl(v,y.mode,C),h.return=y,y=h),l(y)):n(y,h)}return S}var On=Yf(!0),bf=Yf(!1),Wo=At(null),Ko=null,wn=null,tu=null;function nu(){tu=wn=Ko=null}function ru(e){var t=Wo.current;B(Wo),e._currentValue=t}function ts(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jn(e,t){Ko=e,tu=wn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(tu!==e)if(e={context:e,memoizedValue:t,next:null},wn===null){if(Ko===null)throw Error(k(308));wn=e,Ko.dependencies={lanes:0,firstContext:e}}else wn=wn.next=e;return t}var Qt=null;function ou(e){Qt===null?Qt=[e]:Qt.push(e)}function ed(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ou(t)):(n.next=o.next,o.next=n),t.interleaved=n,st(e,r)}function st(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var yt=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function td(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,st(e,n)}return o=r.interleaved,o===null?(t.next=t,ou(r)):(t.next=o.next,o.next=t),r.interleaved=t,st(e,n)}function Co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ws(e,n)}}function Ma(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qo(e,t,n,r){var o=e.updateQueue;yt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?i=a:l.next=a,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(i!==null){var c=o.baseState;l=0,f=a=u=null,s=i;do{var g=s.lane,w=s.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var d=e,m=s;switch(g=t,w=n,m.tag){case 1:if(d=m.payload,typeof d=="function"){c=d.call(w,c,g);break e}c=d;break e;case 3:d.flags=d.flags&-65537|128;case 0:if(d=m.payload,g=typeof d=="function"?d.call(w,c,g):d,g==null)break e;c=K({},c,g);break e;case 2:yt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else w={eventTime:w,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=w,u=c):f=f.next=w,l|=g;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;g=s,s=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(f===null&&(u=c),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);en|=l,e.lanes=l,e.memoizedState=c}}function Da(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ll.transition;ll.transition={};try{e(!1),t()}finally{I=n,ll.transition=r}}function gd(){return Fe().memoizedState}function lm(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wd(e))Sd(t,n);else if(n=ed(e,t,n,r),n!==null){var o=de();Ke(n,e,r,o),xd(n,t,r)}}function sm(e,t,n){var r=Nt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wd(e))Sd(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Qe(s,l)){var u=t.interleaved;u===null?(o.next=o,ou(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=ed(e,t,o,r),n!==null&&(o=de(),Ke(n,e,r,o),xd(n,t,r))}}function wd(e){var t=e.alternate;return e===W||t!==null&&t===W}function Sd(e,t){cr=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ws(e,n)}}var qo={readContext:ze,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},um={readContext:ze,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ko(4194308,4,pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=Je();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Je();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lm.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:Aa,useDebugValue:pu,useDeferredValue:function(e){return Je().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=im.bind(null,e[1]),Je().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,o=Je();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));bt&30||id(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,za(sd.bind(null,r,i,e),[e]),r.flags|=2048,Rr(9,ld.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Je(),t=ne.identifierPrefix;if(H){var n=rt,r=nt;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{Vi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?er(e):""}function Ih(e){switch(e.tag){case 5:return er(e.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 2:case 15:return e=Wi(e.type,!1),e;case 11:return e=Wi(e.type.render,!1),e;case 1:return e=Wi(e.type,!0),e;default:return""}}function Rl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fn:return"Fragment";case cn:return"Portal";case Pl:return"Profiler";case Us:return"StrictMode";case Nl:return"Suspense";case Tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ef:return(e.displayName||"Context")+".Consumer";case bc:return(e._context.displayName||"Context")+".Provider";case $s:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bs:return t=e.displayName||null,t!==null?t:Rl(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return Rl(e(t))}catch{}}return null}function Uh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rl(t);case 8:return t===Us?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $h(e){var t=nf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=$h(e))}function rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ol(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ta(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function of(e,t){t=t.checked,t!=null&&Is(e,"checked",t,!1)}function Ll(e,t){of(e,t);var n=Ot(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ml(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ml(e,t.type,Ot(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function na(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ml(e,t,n){(t!=="number"||Oo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tr=Array.isArray;function Cn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=to.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ir={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bh=["Webkit","ms","Moz","O"];Object.keys(ir).forEach(function(e){Bh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ir[t]=ir[e]})});function af(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ir.hasOwnProperty(e)&&ir[e]?(""+t).trim():t+"px"}function cf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=af(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Hh=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zl(e,t){if(t){if(Hh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Fl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Il=null;function Hs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,En=null,kn=null;function ia(e){if(e=Br(e)){if(typeof Ul!="function")throw Error(k(280));var t=e.stateNode;t&&(t=pi(t),Ul(e.stateNode,e.type,t))}}function ff(e){En?kn?kn.push(e):kn=[e]:En=e}function df(){if(En){var e=En,t=kn;if(kn=En=null,ia(e),t)for(e=0;e>>=0,e===0?32:31-(bh(e)/e1|0)|0}var no=64,ro=4194304;function nr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ao(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=nr(s):(i&=l,i!==0&&(r=nr(i)))}else l=n&~o,l!==0?r=nr(l):i!==0&&(r=nr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-We(t),e[t]=n}function o1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=sr),ha=" ",ma=!1;function Lf(e,t){switch(e){case"keyup":return L1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function D1(e,t){switch(e){case"compositionend":return Mf(t);case"keypress":return t.which!==32?null:(ma=!0,ha);case"textInput":return e=t.data,e===ha&&ma?null:e;default:return null}}function A1(e,t){if(dn)return e==="compositionend"||!qs&&Lf(e,t)?(e=Rf(),So=Zs=wt=null,dn=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wa(n)}}function Ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function If(){for(var e=window,t=Oo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oo(e.document)}return t}function Xs(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")}function W1(e){var t=If(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ff(n.ownerDocument.documentElement,n)){if(r!==null&&Xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Sa(n,i);var l=Sa(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,pn=null,Kl=null,ar=null,Ql=!1;function xa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ql||pn==null||pn!==Oo(r)||(r=pn,"selectionStart"in r&&Xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ar&&Cr(ar,r)||(ar=r,r=Io(Kl,"onSelect"),0yn||(e.current=Yl[yn],Yl[yn]=null,yn--)}function U(e,t){yn++,Yl[yn]=e.current,e.current=t}var Lt={},ce=At(Lt),ve=At(!1),Xt=Lt;function Tn(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ge(e){return e=e.childContextTypes,e!=null}function $o(){B(ve),B(ce)}function Na(e,t,n){if(ce.current!==Lt)throw Error(k(168));U(ce,t),U(ve,n)}function Zf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,Uh(e)||"Unknown",o));return K({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Xt=ce.current,U(ce,e),U(ve,ve.current),!0}function Ta(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Zf(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,B(ve),B(ce),U(ce,e)):B(ve),U(ve,n)}var tt=null,hi=!1,ol=!1;function Jf(e){tt===null?tt=[e]:tt.push(e)}function nm(e){hi=!0,Jf(e)}function zt(){if(!ol&&tt!==null){ol=!0;var e=0,t=I;try{var n=tt;for(I=1;e>=l,o-=l,nt=1<<32-We(t)+o|n<R?(Z=T,T=null):Z=T.sibling;var A=g(y,T,v[R],C);if(A===null){T===null&&(T=Z);break}e&&T&&A.alternate===null&&t(y,T),h=i(A,h,R),N===null?_=A:N.sibling=A,N=A,T=Z}if(R===v.length)return n(y,T),H&&Ht(y,R),_;if(T===null){for(;RR?(Z=T,T=null):Z=T.sibling;var Ie=g(y,T,A.value,C);if(Ie===null){T===null&&(T=Z);break}e&&T&&Ie.alternate===null&&t(y,T),h=i(Ie,h,R),N===null?_=Ie:N.sibling=Ie,N=Ie,T=Z}if(A.done)return n(y,T),H&&Ht(y,R),_;if(T===null){for(;!A.done;R++,A=v.next())A=c(y,A.value,C),A!==null&&(h=i(A,h,R),N===null?_=A:N.sibling=A,N=A);return H&&Ht(y,R),_}for(T=r(y,T);!A.done;R++,A=v.next())A=w(T,y,R,A.value,C),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),h=i(A,h,R),N===null?_=A:N.sibling=A,N=A);return e&&T.forEach(function(Vn){return t(y,Vn)}),H&&Ht(y,R),_}function S(y,h,v,C){if(typeof v=="object"&&v!==null&&v.type===fn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case br:e:{for(var _=v.key,N=h;N!==null;){if(N.key===_){if(_=v.type,_===fn){if(N.tag===7){n(y,N.sibling),h=o(N,v.props.children),h.return=y,y=h;break e}}else if(N.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===mt&&La(_)===N.type){n(y,N.sibling),h=o(N,v.props),h.ref=qn(y,N,v),h.return=y,y=h;break e}n(y,N);break}else t(y,N);N=N.sibling}v.type===fn?(h=Gt(v.props.children,y.mode,C,v.key),h.return=y,y=h):(C=No(v.type,v.key,v.props,null,y.mode,C),C.ref=qn(y,h,v),C.return=y,y=C)}return l(y);case cn:e:{for(N=v.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(y,h.sibling),h=o(h,v.children||[]),h.return=y,y=h;break e}else{n(y,h);break}else t(y,h);h=h.sibling}h=dl(v,y.mode,C),h.return=y,y=h}return l(y);case mt:return N=v._init,S(y,h,N(v._payload),C)}if(tr(v))return d(y,h,v,C);if(Kn(v))return m(y,h,v,C);co(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(y,h.sibling),h=o(h,v),h.return=y,y=h):(n(y,h),h=fl(v,y.mode,C),h.return=y,y=h),l(y)):n(y,h)}return S}var On=Yf(!0),bf=Yf(!1),Wo=At(null),Ko=null,wn=null,tu=null;function nu(){tu=wn=Ko=null}function ru(e){var t=Wo.current;B(Wo),e._currentValue=t}function ts(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jn(e,t){Ko=e,tu=wn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(tu!==e)if(e={context:e,memoizedValue:t,next:null},wn===null){if(Ko===null)throw Error(k(308));wn=e,Ko.dependencies={lanes:0,firstContext:e}}else wn=wn.next=e;return t}var Qt=null;function ou(e){Qt===null?Qt=[e]:Qt.push(e)}function ed(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ou(t)):(n.next=o.next,o.next=n),t.interleaved=n,st(e,r)}function st(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var yt=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function td(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,st(e,n)}return o=r.interleaved,o===null?(t.next=t,ou(r)):(t.next=o.next,o.next=t),r.interleaved=t,st(e,n)}function Co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ws(e,n)}}function Ma(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qo(e,t,n,r){var o=e.updateQueue;yt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?i=a:l.next=a,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(i!==null){var c=o.baseState;l=0,f=a=u=null,s=i;do{var g=s.lane,w=s.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var d=e,m=s;switch(g=t,w=n,m.tag){case 1:if(d=m.payload,typeof d=="function"){c=d.call(w,c,g);break e}c=d;break e;case 3:d.flags=d.flags&-65537|128;case 0:if(d=m.payload,g=typeof d=="function"?d.call(w,c,g):d,g==null)break e;c=K({},c,g);break e;case 2:yt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else w={eventTime:w,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=w,u=c):f=f.next=w,l|=g;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;g=s,s=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(f===null&&(u=c),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);en|=l,e.lanes=l,e.memoizedState=c}}function Da(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ll.transition;ll.transition={};try{e(!1),t()}finally{I=n,ll.transition=r}}function gd(){return Fe().memoizedState}function lm(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wd(e))Sd(t,n);else if(n=ed(e,t,n,r),n!==null){var o=de();Ke(n,e,r,o),xd(n,t,r)}}function sm(e,t,n){var r=Nt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wd(e))Sd(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Qe(s,l)){var u=t.interleaved;u===null?(o.next=o,ou(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=ed(e,t,o,r),n!==null&&(o=de(),Ke(n,e,r,o),xd(n,t,r))}}function wd(e){var t=e.alternate;return e===W||t!==null&&t===W}function Sd(e,t){cr=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ws(e,n)}}var Go={readContext:ze,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},um={readContext:ze,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ko(4194308,4,pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=Je();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Je();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lm.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:Aa,useDebugValue:pu,useDeferredValue:function(e){return Je().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=im.bind(null,e[1]),Je().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,o=Je();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));bt&30||id(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,za(sd.bind(null,r,i,e),[e]),r.flags|=2048,Rr(9,ld.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Je(),t=ne.identifierPrefix;if(H){var n=rt,r=nt;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[qe]=t,e[_r]=r,Od(e,t,!1,!1),t.stateNode=e;e:{switch(l=Fl(n,r),n){case"dialog":$("cancel",e),$("close",e),o=r;break;case"iframe":case"object":case"embed":$("load",e),o=r;break;case"video":case"audio":for(o=0;oDn&&(t.flags|=128,r=!0,Xn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Zo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!H)return ue(t),null}else 2*q()-i.renderingStartTime>Dn&&n!==1073741824&&(t.flags|=128,r=!0,Xn(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=q(),t.sibling=null,n=V.current,U(V,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return wu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Se&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function ym(e,t){switch(bs(t),t.tag){case 1:return ge(t.type)&&$o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(),B(ve),B(ce),uu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return su(t),null;case 13:if(B(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(V),null;case 4:return Ln(),null;case 10:return ru(t.type._context),null;case 22:case 23:return wu(),null;case 24:return null;default:return null}}var po=!1,ae=!1,vm=typeof WeakSet=="function"?WeakSet:Set,j=null;function Sn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function cs(e,t,n){try{n()}catch(r){Q(e,t,r)}}var Za=!1;function gm(e,t){if(Zl=zo,e=If(),Xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,a=0,f=0,c=e,g=null;t:for(;;){for(var w;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(w=c.firstChild)!==null;)g=c,c=w;for(;;){if(c===e)break t;if(g===n&&++a===o&&(s=l),g===i&&++f===r&&(u=l),(w=c.nextSibling)!==null)break;c=g,g=c.parentNode}c=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jl={focusedElem:e,selectionRange:n},zo=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var d=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(d!==null){var m=d.memoizedProps,S=d.memoizedState,y=t.stateNode,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:$e(t.type,m),S);y.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(C){Q(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return d=Za,Za=!1,d}function fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&cs(t,n,i)}o=o.next}while(o!==r)}}function vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function fs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Dd(e){var t=e.alternate;t!==null&&(e.alternate=null,Dd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qe],delete t[_r],delete t[Xl],delete t[em],delete t[tm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ad(e){return e.tag===5||e.tag===3||e.tag===4}function Ja(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ad(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.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 ds(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Uo));else if(r!==4&&(e=e.child,e!==null))for(ds(e,t,n),e=e.sibling;e!==null;)ds(e,t,n),e=e.sibling}function ps(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ps(e,t,n),e=e.sibling;e!==null;)ps(e,t,n),e=e.sibling}var oe=null,Be=!1;function dt(e,t,n){for(n=n.child;n!==null;)zd(e,t,n),n=n.sibling}function zd(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(ai,n)}catch{}switch(n.tag){case 5:ae||Sn(n,t);case 6:var r=oe,o=Be;oe=null,dt(e,t,n),oe=r,Be=o,oe!==null&&(Be?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(Be?(e=oe,n=n.stateNode,e.nodeType===8?rl(e.parentNode,n):e.nodeType===1&&rl(e,n),Sr(e)):rl(oe,n.stateNode));break;case 4:r=oe,o=Be,oe=n.stateNode.containerInfo,Be=!0,dt(e,t,n),oe=r,Be=o;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&cs(n,t,l),o=o.next}while(o!==r)}dt(e,t,n);break;case 1:if(!ae&&(Sn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Q(n,t,s)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,dt(e,t,n),ae=r):dt(e,t,n);break;default:dt(e,t,n)}}function qa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vm),t.forEach(function(r){var o=Pm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sm(r/1960))-r,10e?16:e,St===null)var r=!1;else{if(e=St,St=null,Yo=0,F&6)throw Error(k(331));var o=F;for(F|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uq()-vu?Jt(e,0):yu|=n),we(e,t)}function Wd(e,t){t===0&&(e.mode&1?(t=ro,ro<<=1,!(ro&130023424)&&(ro=4194304)):t=1);var n=de();e=st(e,t),e!==null&&(Ur(e,t,n),we(e,n))}function jm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wd(e,n)}function Pm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Wd(e,n)}var Kd;Kd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,hm(e,t,n);ye=!!(e.flags&131072)}else ye=!1,H&&t.flags&1048576&&qf(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_o(e,t),e=t.pendingProps;var o=Tn(t,ce.current);jn(t,n),o=cu(null,t,r,e,o,n);var i=fu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(i=!0,Bo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,iu(t),o.updater=yi,t.stateNode=o,o._reactInternals=t,rs(t,r,e,n),t=ls(null,t,r,!0,i,n)):(t.tag=0,H&&i&&Ys(t),fe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_o(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Tm(r),e=$e(r,e),o){case 0:t=is(null,t,r,e,n);break e;case 1:t=Wa(null,t,r,e,n);break e;case 11:t=Ha(null,t,r,e,n);break e;case 14:t=Va(null,t,r,$e(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),is(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),Wa(e,t,r,o,n);case 3:e:{if(Nd(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,o=i.element,td(e,t),Qo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Mn(Error(k(423)),t),t=Ka(e,t,r,n,o);break e}else if(r!==o){o=Mn(Error(k(424)),t),t=Ka(e,t,r,n,o);break e}else for(xe=_t(t.stateNode.containerInfo.firstChild),Ee=t,H=!0,He=null,n=bf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rn(),r===o){t=ut(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return nd(t),e===null&&es(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,ql(r,o)?l=null:i!==null&&ql(r,i)&&(t.flags|=32),Pd(e,t),fe(e,t,l,n),t.child;case 6:return e===null&&es(t),null;case 13:return Td(e,t,n);case 4:return lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),Ha(e,t,r,o,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,U(Wo,r._currentValue),r._currentValue=l,i!==null)if(Qe(i.value,l)){if(i.children===o.children&&!ve.current){t=ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=ot(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),ts(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(k(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ts(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}fe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jn(t,n),o=ze(o),r=r(o),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,o=$e(r,t.pendingProps),o=$e(r.type,o),Va(e,t,r,o,n);case 15:return _d(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),_o(e,t),t.tag=1,ge(r)?(e=!0,Bo(t)):e=!1,jn(t,n),Cd(t,r,o),rs(t,r,o,n),ls(null,t,r,!0,e,n);case 19:return Rd(e,t,n);case 22:return jd(e,t,n)}throw Error(k(156,t.tag))};function Qd(e,t){return wf(e,t)}function Nm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(e,t,n,r){return new Nm(e,t,n,r)}function xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tm(e){if(typeof e=="function")return xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$s)return 11;if(e===Bs)return 14}return 2}function Tt(e,t){var n=e.alternate;return n===null?(n=Oe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function No(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")xu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fn:return qt(n.children,o,i,t);case Us:l=8,o|=8;break;case Pl:return e=Oe(12,n,t,o|2),e.elementType=Pl,e.lanes=i,e;case Nl:return e=Oe(13,n,t,o),e.elementType=Nl,e.lanes=i,e;case Tl:return e=Oe(19,n,t,o),e.elementType=Tl,e.lanes=i,e;case tf:return wi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bc:l=10;break e;case ef:l=9;break e;case $s:l=11;break e;case Bs:l=14;break e;case mt:l=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Oe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function qt(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function wi(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=tf,e.lanes=n,e.stateNode={isHidden:!1},e}function fl(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function dl(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rm(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qi(0),this.expirationTimes=Qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cu(e,t,n,r,o,i,l,s,u){return e=new Rm(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Oe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iu(i),e}function Om(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gd)}catch(e){console.error(e)}}Gd(),qc.exports=Pe;var zm=qc.exports,rc=zm;_l.createRoot=rc.createRoot,_l.hydrateRoot=rc.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function al(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function os(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fm=typeof WeakMap=="function"?WeakMap:Map;function Ed(e,t,n){n=ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xo||(Xo=!0,hs=r),os(e,t)},n}function kd(e,t,n){n=ot(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){os(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){os(e,t),typeof r!="function"&&(Pt===null?Pt=new Set([this]):Pt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Ua(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fm;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_m.bind(null,e,t,n),t.then(e,e))}function $a(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ba(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ot(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e)}var dm=at.ReactCurrentOwner,ye=!1;function fe(e,t,n,r){t.child=e===null?bf(t,null,n,r):On(t,e.child,n,r)}function Ha(e,t,n,r,o){n=n.render;var i=t.ref;return jn(t,o),r=cu(e,t,n,r,i,o),n=fu(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ut(e,t,o)):(H&&n&&Ys(t),t.flags|=1,fe(e,t,r,o),t.child)}function Va(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!xu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,_d(e,t,i,r,o)):(e=No(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Cr,n(l,r)&&e.ref===t.ref)return ut(e,t,o)}return t.flags|=1,e=Tt(i,r),e.ref=t.ref,e.return=t,t.child=e}function _d(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Cr(i,r)&&e.ref===t.ref)if(ye=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ye=!0);else return t.lanes=e.lanes,ut(e,t,o)}return is(e,t,n,r,o)}function jd(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(xn,Se),Se|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(xn,Se),Se|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,U(xn,Se),Se|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,U(xn,Se),Se|=r;return fe(e,t,o,n),t.child}function Pd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function is(e,t,n,r,o){var i=ge(n)?Xt:ce.current;return i=Tn(t,i),jn(t,o),n=cu(e,t,n,r,i,o),r=fu(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ut(e,t,o)):(H&&r&&Ys(t),t.flags|=1,fe(e,t,n,o),t.child)}function Wa(e,t,n,r,o){if(ge(n)){var i=!0;Bo(t)}else i=!1;if(jn(t,o),t.stateNode===null)_o(e,t),Cd(t,n,r),rs(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var u=l.context,a=n.contextType;typeof a=="object"&&a!==null?a=ze(a):(a=ge(n)?Xt:ce.current,a=Tn(t,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||u!==a)&&Ia(t,l,r,a),yt=!1;var g=t.memoizedState;l.state=g,Qo(t,r,l,o),u=t.memoizedState,s!==r||g!==u||ve.current||yt?(typeof f=="function"&&(ns(t,n,f,r),u=t.memoizedState),(s=yt||Fa(t,n,s,r,g,u,a))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=a,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,td(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:$e(t.type,s),l.props=a,c=t.pendingProps,g=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=ze(u):(u=ge(n)?Xt:ce.current,u=Tn(t,u));var w=n.getDerivedStateFromProps;(f=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==c||g!==u)&&Ia(t,l,r,u),yt=!1,g=t.memoizedState,l.state=g,Qo(t,r,l,o);var d=t.memoizedState;s!==c||g!==d||ve.current||yt?(typeof w=="function"&&(ns(t,n,w,r),d=t.memoizedState),(a=yt||Fa(t,n,a,r,g,d,u)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,d,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,d,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=d),l.props=r,l.state=d,l.context=u,r=a):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return ls(e,t,n,r,i,o)}function ls(e,t,n,r,o,i){Pd(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Ta(t,n,!1),ut(e,t,i);r=t.stateNode,dm.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=On(t,e.child,null,i),t.child=On(t,null,s,i)):fe(e,t,s,i),t.memoizedState=r.state,o&&Ta(t,n,!0),t.child}function Nd(e){var t=e.stateNode;t.pendingContext?Na(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Na(e,t.context,!1),lu(e,t.containerInfo)}function Ka(e,t,n,r,o){return Rn(),eu(o),t.flags|=256,fe(e,t,n,r),t.child}var ss={dehydrated:null,treeContext:null,retryLane:0};function us(e){return{baseLanes:e,cachePool:null,transitions:null}}function Td(e,t,n){var r=t.pendingProps,o=V.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),U(V,o&1),e===null)return es(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=wi(l,r,0,null),e=Gt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=us(n),t.memoizedState=ss,e):hu(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return pm(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Tt(o,u),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Tt(s,i):(i=Gt(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?us(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=ss,r}return i=e.child,e=i.sibling,r=Tt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function hu(e,t){return t=wi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fo(e,t,n,r){return r!==null&&eu(r),On(t,e.child,null,n),e=hu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pm(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=al(Error(k(422))),fo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=wi({mode:"visible",children:r.children},o,0,null),i=Gt(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&On(t,e.child,null,l),t.child.memoizedState=us(l),t.memoizedState=ss,i);if(!(t.mode&1))return fo(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(k(419)),r=al(i,r,void 0),fo(e,t,l,r)}if(s=(l&e.childLanes)!==0,ye||s){if(r=ne,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,st(e,o),Ke(r,e,o,-1))}return Su(),r=al(Error(k(421))),fo(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=jm.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,xe=_t(o.nextSibling),Ee=t,H=!0,He=null,e!==null&&(Te[Re++]=nt,Te[Re++]=rt,Te[Re++]=Yt,nt=e.id,rt=e.overflow,Yt=t),t=hu(t,r.children),t.flags|=4096,t)}function Qa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ts(e.return,t,n)}function cl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Rd(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(fe(e,t,r.children,n),r=V.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qa(e,n,t);else if(e.tag===19)Qa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(V,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Zo(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),cl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Zo(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}cl(t,!0,n,null,i);break;case"together":cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _o(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),en|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=Tt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hm(e,t,n){switch(t.tag){case 3:Nd(t),Rn();break;case 5:nd(t);break;case 1:ge(t.type)&&Bo(t);break;case 4:lu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;U(Wo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(V,V.current&1),t.flags|=128,null):n&t.child.childLanes?Td(e,t,n):(U(V,V.current&1),e=ut(e,t,n),e!==null?e.sibling:null);U(V,V.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),U(V,V.current),r)break;return null;case 22:case 23:return t.lanes=0,jd(e,t,n)}return ut(e,t,n)}var Od,as,Ld,Md;Od=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};as=function(){};Ld=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zt(Ye.current);var i=null;switch(n){case"input":o=Ol(e,o),r=Ol(e,r),i=[];break;case"select":o=K({},o,{value:void 0}),r=K({},r,{value:void 0}),i=[];break;case"textarea":o=Dl(e,o),r=Dl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Uo)}zl(n,r);var l;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var s=o[a];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(mr.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var u=r[a];if(s=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(l in s)!s.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&s[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(mr.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&$("scroll",e),i||s===u||(i=[])):(i=i||[]).push(a,u))}n&&(i=i||[]).push("style",n);var a=i;(t.updateQueue=a)&&(t.flags|=4)}};Md=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xn(e,t){if(!H)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mm(e,t,n){var r=t.pendingProps;switch(bs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(t),null;case 1:return ge(t.type)&&$o(),ue(t),null;case 3:return r=t.stateNode,Ln(),B(ve),B(ce),uu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ao(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,He!==null&&(vs(He),He=null))),as(e,t),ue(t),null;case 5:su(t);var o=Zt(Pr.current);if(n=t.type,e!==null&&t.stateNode!=null)Ld(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ue(t),null}if(e=Zt(Ye.current),ao(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ge]=t,r[_r]=i,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ge]=t,e[_r]=r,Od(e,t,!1,!1),t.stateNode=e;e:{switch(l=Fl(n,r),n){case"dialog":$("cancel",e),$("close",e),o=r;break;case"iframe":case"object":case"embed":$("load",e),o=r;break;case"video":case"audio":for(o=0;oDn&&(t.flags|=128,r=!0,Xn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Zo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!H)return ue(t),null}else 2*G()-i.renderingStartTime>Dn&&n!==1073741824&&(t.flags|=128,r=!0,Xn(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=G(),t.sibling=null,n=V.current,U(V,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return wu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Se&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function ym(e,t){switch(bs(t),t.tag){case 1:return ge(t.type)&&$o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(),B(ve),B(ce),uu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return su(t),null;case 13:if(B(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(V),null;case 4:return Ln(),null;case 10:return ru(t.type._context),null;case 22:case 23:return wu(),null;case 24:return null;default:return null}}var po=!1,ae=!1,vm=typeof WeakSet=="function"?WeakSet:Set,j=null;function Sn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function cs(e,t,n){try{n()}catch(r){Q(e,t,r)}}var Za=!1;function gm(e,t){if(Zl=zo,e=If(),Xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,a=0,f=0,c=e,g=null;t:for(;;){for(var w;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(w=c.firstChild)!==null;)g=c,c=w;for(;;){if(c===e)break t;if(g===n&&++a===o&&(s=l),g===i&&++f===r&&(u=l),(w=c.nextSibling)!==null)break;c=g,g=c.parentNode}c=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jl={focusedElem:e,selectionRange:n},zo=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var d=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(d!==null){var m=d.memoizedProps,S=d.memoizedState,y=t.stateNode,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:$e(t.type,m),S);y.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(C){Q(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return d=Za,Za=!1,d}function fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&cs(t,n,i)}o=o.next}while(o!==r)}}function vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function fs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Dd(e){var t=e.alternate;t!==null&&(e.alternate=null,Dd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[_r],delete t[Xl],delete t[em],delete t[tm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ad(e){return e.tag===5||e.tag===3||e.tag===4}function Ja(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ad(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.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 ds(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Uo));else if(r!==4&&(e=e.child,e!==null))for(ds(e,t,n),e=e.sibling;e!==null;)ds(e,t,n),e=e.sibling}function ps(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ps(e,t,n),e=e.sibling;e!==null;)ps(e,t,n),e=e.sibling}var oe=null,Be=!1;function dt(e,t,n){for(n=n.child;n!==null;)zd(e,t,n),n=n.sibling}function zd(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(ai,n)}catch{}switch(n.tag){case 5:ae||Sn(n,t);case 6:var r=oe,o=Be;oe=null,dt(e,t,n),oe=r,Be=o,oe!==null&&(Be?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(Be?(e=oe,n=n.stateNode,e.nodeType===8?rl(e.parentNode,n):e.nodeType===1&&rl(e,n),Sr(e)):rl(oe,n.stateNode));break;case 4:r=oe,o=Be,oe=n.stateNode.containerInfo,Be=!0,dt(e,t,n),oe=r,Be=o;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&cs(n,t,l),o=o.next}while(o!==r)}dt(e,t,n);break;case 1:if(!ae&&(Sn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Q(n,t,s)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,dt(e,t,n),ae=r):dt(e,t,n);break;default:dt(e,t,n)}}function Ga(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vm),t.forEach(function(r){var o=Pm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sm(r/1960))-r,10e?16:e,St===null)var r=!1;else{if(e=St,St=null,Yo=0,F&6)throw Error(k(331));var o=F;for(F|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uG()-vu?Jt(e,0):yu|=n),we(e,t)}function Wd(e,t){t===0&&(e.mode&1?(t=ro,ro<<=1,!(ro&130023424)&&(ro=4194304)):t=1);var n=de();e=st(e,t),e!==null&&(Ur(e,t,n),we(e,n))}function jm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wd(e,n)}function Pm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Wd(e,n)}var Kd;Kd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,hm(e,t,n);ye=!!(e.flags&131072)}else ye=!1,H&&t.flags&1048576&&Gf(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_o(e,t),e=t.pendingProps;var o=Tn(t,ce.current);jn(t,n),o=cu(null,t,r,e,o,n);var i=fu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(i=!0,Bo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,iu(t),o.updater=yi,t.stateNode=o,o._reactInternals=t,rs(t,r,e,n),t=ls(null,t,r,!0,i,n)):(t.tag=0,H&&i&&Ys(t),fe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_o(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Tm(r),e=$e(r,e),o){case 0:t=is(null,t,r,e,n);break e;case 1:t=Wa(null,t,r,e,n);break e;case 11:t=Ha(null,t,r,e,n);break e;case 14:t=Va(null,t,r,$e(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),is(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),Wa(e,t,r,o,n);case 3:e:{if(Nd(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,o=i.element,td(e,t),Qo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Mn(Error(k(423)),t),t=Ka(e,t,r,n,o);break e}else if(r!==o){o=Mn(Error(k(424)),t),t=Ka(e,t,r,n,o);break e}else for(xe=_t(t.stateNode.containerInfo.firstChild),Ee=t,H=!0,He=null,n=bf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rn(),r===o){t=ut(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return nd(t),e===null&&es(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Gl(r,o)?l=null:i!==null&&Gl(r,i)&&(t.flags|=32),Pd(e,t),fe(e,t,l,n),t.child;case 6:return e===null&&es(t),null;case 13:return Td(e,t,n);case 4:return lu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),Ha(e,t,r,o,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,U(Wo,r._currentValue),r._currentValue=l,i!==null)if(Qe(i.value,l)){if(i.children===o.children&&!ve.current){t=ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=ot(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),ts(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(k(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ts(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}fe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jn(t,n),o=ze(o),r=r(o),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,o=$e(r,t.pendingProps),o=$e(r.type,o),Va(e,t,r,o,n);case 15:return _d(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),_o(e,t),t.tag=1,ge(r)?(e=!0,Bo(t)):e=!1,jn(t,n),Cd(t,r,o),rs(t,r,o,n),ls(null,t,r,!0,e,n);case 19:return Rd(e,t,n);case 22:return jd(e,t,n)}throw Error(k(156,t.tag))};function Qd(e,t){return wf(e,t)}function Nm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(e,t,n,r){return new Nm(e,t,n,r)}function xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tm(e){if(typeof e=="function")return xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$s)return 11;if(e===Bs)return 14}return 2}function Tt(e,t){var n=e.alternate;return n===null?(n=Oe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function No(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")xu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fn:return Gt(n.children,o,i,t);case Us:l=8,o|=8;break;case Pl:return e=Oe(12,n,t,o|2),e.elementType=Pl,e.lanes=i,e;case Nl:return e=Oe(13,n,t,o),e.elementType=Nl,e.lanes=i,e;case Tl:return e=Oe(19,n,t,o),e.elementType=Tl,e.lanes=i,e;case tf:return wi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bc:l=10;break e;case ef:l=9;break e;case $s:l=11;break e;case Bs:l=14;break e;case mt:l=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Oe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Gt(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function wi(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=tf,e.lanes=n,e.stateNode={isHidden:!1},e}function fl(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function dl(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rm(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qi(0),this.expirationTimes=Qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cu(e,t,n,r,o,i,l,s,u){return e=new Rm(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Oe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iu(i),e}function Om(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qd)}catch(e){console.error(e)}}qd(),Gc.exports=Pe;var zm=Gc.exports,rc=zm;_l.createRoot=rc.createRoot,_l.hydrateRoot=rc.hydrateRoot;/** * @remix-run/router v1.16.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ju(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Im(){return Math.random().toString(36).substr(2,8)}function ic(e,t){return{usr:e.state,key:e.key,idx:t}}function gs(e,t,n,r){return n===void 0&&(n=null),Lr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?un(t):t,{state:n,key:t&&t.key||r||Im()})}function ti(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function un(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Um(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=xt.Pop,u=null,a=f();a==null&&(a=0,l.replaceState(Lr({},l.state,{idx:a}),""));function f(){return(l.state||{idx:null}).idx}function c(){s=xt.Pop;let S=f(),y=S==null?null:S-a;a=S,u&&u({action:s,location:m.location,delta:y})}function g(S,y){s=xt.Push;let h=gs(m.location,S,y);n&&n(h,S),a=f()+1;let v=ic(h,a),C=m.createHref(h);try{l.pushState(v,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(C)}i&&u&&u({action:s,location:m.location,delta:1})}function w(S,y){s=xt.Replace;let h=gs(m.location,S,y);n&&n(h,S),a=f();let v=ic(h,a),C=m.createHref(h);l.replaceState(v,"",C),i&&u&&u({action:s,location:m.location,delta:0})}function d(S){let y=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof S=="string"?S:ti(S);return h=h.replace(/ $/,"%20"),G(y,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,y)}let m={get action(){return s},get location(){return e(o,l)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(oc,c),u=S,()=>{o.removeEventListener(oc,c),u=null}},createHref(S){return t(o,S)},createURL:d,encodeLocation(S){let y=d(S);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:g,replace:w,go(S){return l.go(S)}};return m}var lc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lc||(lc={}));function $m(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?un(t):t,o=Pu(r.pathname||"/",n);if(o==null)return null;let i=Xd(e);Bm(i);let l=null;for(let s=0;l==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(G(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=Rt([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(G(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Xd(i.children,t,f,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:Jm(a,i.index),routesMeta:f})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let u of Yd(i.path))o(i,l,u)}),t}function Yd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Yd(r.join("/")),s=[];return s.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...l),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Bm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:qm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Hm=/^:[\w-]+$/,Vm=3,Wm=2,Km=1,Qm=10,Zm=-2,sc=e=>e==="*";function Jm(e,t){let n=e.split("/"),r=n.length;return n.some(sc)&&(r+=Zm),t&&(r+=Wm),n.filter(o=>!sc(o)).reduce((o,i)=>o+(Hm.test(i)?Vm:i===""?Km:Qm),r)}function qm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Gm(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:g,isOptional:w}=f;if(g==="*"){let m=s[c]||"";l=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const d=s[c];return w&&!d?a[g]=void 0:a[g]=(d||"").replace(/%2F/g,"/"),a},{}),pathname:i,pathnameBase:l,pattern:e}}function Ym(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ju(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function bm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ju(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Pu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function e0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?un(e):e;return{pathname:n?n.startsWith("/")?n:t0(n,t):t,search:o0(r),hash:i0(o)}}function t0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function pl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function n0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nu(e,t){let n=n0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tu(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=un(e):(o=Lr({},e),G(!o.pathname||!o.pathname.includes("?"),pl("?","pathname","search",o)),G(!o.pathname||!o.pathname.includes("#"),pl("#","pathname","hash",o)),G(!o.search||!o.search.includes("#"),pl("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),c-=1;o.pathname=g.join("/")}s=c>=0?t[c]:"/"}let u=e0(o,s),a=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||f)&&(u.pathname+="/"),u}const Rt=e=>e.join("/").replace(/\/\/+/g,"/"),r0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function l0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bd=["post","put","patch","delete"];new Set(bd);const s0=["get",...bd];new Set(s0);/** + */function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ju(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Im(){return Math.random().toString(36).substr(2,8)}function ic(e,t){return{usr:e.state,key:e.key,idx:t}}function gs(e,t,n,r){return n===void 0&&(n=null),Lr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?un(t):t,{state:n,key:t&&t.key||r||Im()})}function ti(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function un(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Um(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=xt.Pop,u=null,a=f();a==null&&(a=0,l.replaceState(Lr({},l.state,{idx:a}),""));function f(){return(l.state||{idx:null}).idx}function c(){s=xt.Pop;let S=f(),y=S==null?null:S-a;a=S,u&&u({action:s,location:m.location,delta:y})}function g(S,y){s=xt.Push;let h=gs(m.location,S,y);n&&n(h,S),a=f()+1;let v=ic(h,a),C=m.createHref(h);try{l.pushState(v,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(C)}i&&u&&u({action:s,location:m.location,delta:1})}function w(S,y){s=xt.Replace;let h=gs(m.location,S,y);n&&n(h,S),a=f();let v=ic(h,a),C=m.createHref(h);l.replaceState(v,"",C),i&&u&&u({action:s,location:m.location,delta:0})}function d(S){let y=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof S=="string"?S:ti(S);return h=h.replace(/ $/,"%20"),q(y,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,y)}let m={get action(){return s},get location(){return e(o,l)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(oc,c),u=S,()=>{o.removeEventListener(oc,c),u=null}},createHref(S){return t(o,S)},createURL:d,encodeLocation(S){let y=d(S);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:g,replace:w,go(S){return l.go(S)}};return m}var lc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lc||(lc={}));function $m(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?un(t):t,o=Pu(r.pathname||"/",n);if(o==null)return null;let i=Xd(e);Bm(i);let l=null;for(let s=0;l==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(q(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=Rt([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(q(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Xd(i.children,t,f,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:Jm(a,i.index),routesMeta:f})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let u of Yd(i.path))o(i,l,u)}),t}function Yd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Yd(r.join("/")),s=[];return s.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...l),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Bm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Gm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Hm=/^:[\w-]+$/,Vm=3,Wm=2,Km=1,Qm=10,Zm=-2,sc=e=>e==="*";function Jm(e,t){let n=e.split("/"),r=n.length;return n.some(sc)&&(r+=Zm),t&&(r+=Wm),n.filter(o=>!sc(o)).reduce((o,i)=>o+(Hm.test(i)?Vm:i===""?Km:Qm),r)}function Gm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function qm(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:g,isOptional:w}=f;if(g==="*"){let m=s[c]||"";l=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const d=s[c];return w&&!d?a[g]=void 0:a[g]=(d||"").replace(/%2F/g,"/"),a},{}),pathname:i,pathnameBase:l,pattern:e}}function Ym(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ju(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function bm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ju(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Pu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function e0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?un(e):e;return{pathname:n?n.startsWith("/")?n:t0(n,t):t,search:o0(r),hash:i0(o)}}function t0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function pl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function n0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Nu(e,t){let n=n0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Tu(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=un(e):(o=Lr({},e),q(!o.pathname||!o.pathname.includes("?"),pl("?","pathname","search",o)),q(!o.pathname||!o.pathname.includes("#"),pl("#","pathname","hash",o)),q(!o.search||!o.search.includes("#"),pl("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),c-=1;o.pathname=g.join("/")}s=c>=0?t[c]:"/"}let u=e0(o,s),a=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||f)&&(u.pathname+="/"),u}const Rt=e=>e.join("/").replace(/\/\/+/g,"/"),r0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function l0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bd=["post","put","patch","delete"];new Set(bd);const s0=["get",...bd];new Set(s0);/** * React Router v6.23.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),E.useCallback(function(a,f){if(f===void 0&&(f={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let c=Tu(a,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Rt([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,l,i,e])}function np(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Ft),{matches:o}=E.useContext(It),{pathname:i}=ct(),l=JSON.stringify(Nu(o,r.v7_relativeSplatPath));return E.useMemo(()=>Tu(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function f0(e,t){return d0(e,t)}function d0(e,t,n,r){Bn()||G(!1);let{navigator:o}=E.useContext(Ft),{matches:i}=E.useContext(It),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let a=ct(),f;if(t){var c;let S=typeof t=="string"?un(t):t;u==="/"||(c=S.pathname)!=null&&c.startsWith(u)||G(!1),f=S}else f=a;let g=f.pathname||"/",w=g;if(u!=="/"){let S=u.replace(/^\//,"").split("/");w="/"+g.replace(/^\//,"").split("/").slice(S.length).join("/")}let d=$m(e,{pathname:w}),m=v0(d&&d.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:Rt([u,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Rt([u,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&m?E.createElement(ki.Provider,{value:{location:Mr({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:xt.Pop}},m):m}function p0(){let e=x0(),t=l0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,null)}const h0=E.createElement(p0,null);class m0 extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(It.Provider,{value:this.props.routeContext},E.createElement(ep.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y0(e){let{routeContext:t,match:n,children:r}=e,o=E.useContext(Ru);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(It.Provider,{value:t},r)}function v0(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let f=l.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||G(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,a+1):l=[l[0]];break}}}return l.reduceRight((f,c,g)=>{let w,d=!1,m=null,S=null;n&&(w=s&&c.route.id?s[c.route.id]:void 0,m=c.route.errorElement||h0,u&&(a<0&&g===0?(d=!0,S=null):a===g&&(d=!0,S=c.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,g+1)),h=()=>{let v;return w?v=m:d?v=S:c.route.Component?v=E.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=f,E.createElement(y0,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:v})};return n&&(c.route.ErrorBoundary||c.route.errorElement||g===0)?E.createElement(m0,{location:n.location,revalidation:n.revalidation,component:m,error:w,children:h(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):h()},null)}var rp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rp||{}),ni=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ni||{});function g0(e){let t=E.useContext(Ru);return t||G(!1),t}function w0(e){let t=E.useContext(u0);return t||G(!1),t}function S0(e){let t=E.useContext(It);return t||G(!1),t}function op(e){let t=S0(),n=t.matches[t.matches.length-1];return n.route.id||G(!1),n.route.id}function x0(){var e;let t=E.useContext(ep),n=w0(ni.UseRouteError),r=op(ni.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function C0(){let{router:e}=g0(rp.UseNavigateStable),t=op(ni.UseNavigateStable),n=E.useRef(!1);return tp(()=>{n.current=!0}),E.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mr({fromRouteId:t},i)))},[e,t])}function E0(e){let{to:t,replace:n,state:r,relative:o}=e;Bn()||G(!1);let{future:i,static:l}=E.useContext(Ft),{matches:s}=E.useContext(It),{pathname:u}=ct(),a=Ut(),f=Tu(t,Nu(s,i.v7_relativeSplatPath),u,o==="path"),c=JSON.stringify(f);return E.useEffect(()=>a(JSON.parse(c),{replace:n,state:r,relative:o}),[a,c,o,n,r]),null}function ht(e){G(!1)}function k0(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xt.Pop,navigator:i,static:l=!1,future:s}=e;Bn()&&G(!1);let u=t.replace(/^\/*/,"/"),a=E.useMemo(()=>({basename:u,navigator:i,static:l,future:Mr({v7_relativeSplatPath:!1},s)}),[u,s,i,l]);typeof r=="string"&&(r=un(r));let{pathname:f="/",search:c="",hash:g="",state:w=null,key:d="default"}=r,m=E.useMemo(()=>{let S=Pu(f,u);return S==null?null:{location:{pathname:S,search:c,hash:g,state:w,key:d},navigationType:o}},[u,f,c,g,w,d,o]);return m==null?null:E.createElement(Ft.Provider,{value:a},E.createElement(ki.Provider,{children:n,value:m}))}function _0(e){let{children:t,location:n}=e;return f0(ws(t),n)}new Promise(()=>{});function ws(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let i=[...t,o];if(r.type===E.Fragment){n.push.apply(n,ws(r.props.children,i));return}r.type!==ht&&G(!1),!r.props.index||!r.props.children||G(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=ws(r.props.children,i)),n.push(l)}),n}/** + */function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),E.useCallback(function(a,f){if(f===void 0&&(f={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let c=Tu(a,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Rt([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,l,i,e])}function np(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Ft),{matches:o}=E.useContext(It),{pathname:i}=ct(),l=JSON.stringify(Nu(o,r.v7_relativeSplatPath));return E.useMemo(()=>Tu(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function f0(e,t){return d0(e,t)}function d0(e,t,n,r){Bn()||q(!1);let{navigator:o}=E.useContext(Ft),{matches:i}=E.useContext(It),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let a=ct(),f;if(t){var c;let S=typeof t=="string"?un(t):t;u==="/"||(c=S.pathname)!=null&&c.startsWith(u)||q(!1),f=S}else f=a;let g=f.pathname||"/",w=g;if(u!=="/"){let S=u.replace(/^\//,"").split("/");w="/"+g.replace(/^\//,"").split("/").slice(S.length).join("/")}let d=$m(e,{pathname:w}),m=v0(d&&d.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:Rt([u,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Rt([u,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&m?E.createElement(ki.Provider,{value:{location:Mr({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:xt.Pop}},m):m}function p0(){let e=x0(),t=l0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,null)}const h0=E.createElement(p0,null);class m0 extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(It.Provider,{value:this.props.routeContext},E.createElement(ep.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y0(e){let{routeContext:t,match:n,children:r}=e,o=E.useContext(Ru);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(It.Provider,{value:t},r)}function v0(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let f=l.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||q(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,a+1):l=[l[0]];break}}}return l.reduceRight((f,c,g)=>{let w,d=!1,m=null,S=null;n&&(w=s&&c.route.id?s[c.route.id]:void 0,m=c.route.errorElement||h0,u&&(a<0&&g===0?(d=!0,S=null):a===g&&(d=!0,S=c.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,g+1)),h=()=>{let v;return w?v=m:d?v=S:c.route.Component?v=E.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=f,E.createElement(y0,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:v})};return n&&(c.route.ErrorBoundary||c.route.errorElement||g===0)?E.createElement(m0,{location:n.location,revalidation:n.revalidation,component:m,error:w,children:h(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):h()},null)}var rp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rp||{}),ni=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ni||{});function g0(e){let t=E.useContext(Ru);return t||q(!1),t}function w0(e){let t=E.useContext(u0);return t||q(!1),t}function S0(e){let t=E.useContext(It);return t||q(!1),t}function op(e){let t=S0(),n=t.matches[t.matches.length-1];return n.route.id||q(!1),n.route.id}function x0(){var e;let t=E.useContext(ep),n=w0(ni.UseRouteError),r=op(ni.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function C0(){let{router:e}=g0(rp.UseNavigateStable),t=op(ni.UseNavigateStable),n=E.useRef(!1);return tp(()=>{n.current=!0}),E.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mr({fromRouteId:t},i)))},[e,t])}function E0(e){let{to:t,replace:n,state:r,relative:o}=e;Bn()||q(!1);let{future:i,static:l}=E.useContext(Ft),{matches:s}=E.useContext(It),{pathname:u}=ct(),a=Ut(),f=Tu(t,Nu(s,i.v7_relativeSplatPath),u,o==="path"),c=JSON.stringify(f);return E.useEffect(()=>a(JSON.parse(c),{replace:n,state:r,relative:o}),[a,c,o,n,r]),null}function ht(e){q(!1)}function k0(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xt.Pop,navigator:i,static:l=!1,future:s}=e;Bn()&&q(!1);let u=t.replace(/^\/*/,"/"),a=E.useMemo(()=>({basename:u,navigator:i,static:l,future:Mr({v7_relativeSplatPath:!1},s)}),[u,s,i,l]);typeof r=="string"&&(r=un(r));let{pathname:f="/",search:c="",hash:g="",state:w=null,key:d="default"}=r,m=E.useMemo(()=>{let S=Pu(f,u);return S==null?null:{location:{pathname:S,search:c,hash:g,state:w,key:d},navigationType:o}},[u,f,c,g,w,d,o]);return m==null?null:E.createElement(Ft.Provider,{value:a},E.createElement(ki.Provider,{children:n,value:m}))}function _0(e){let{children:t,location:n}=e;return f0(ws(t),n)}new Promise(()=>{});function ws(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let i=[...t,o];if(r.type===E.Fragment){n.push.apply(n,ws(r.props.children,i));return}r.type!==ht&&q(!1),!r.props.index||!r.props.children||q(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=ws(r.props.children,i)),n.push(l)}),n}/** * React Router DOM v6.23.0 * * Copyright (c) Remix Software Inc. @@ -64,12 +64,12 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function P0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function N0(e,t){return e.button===0&&(!t||t==="_self")&&!P0(e)}const T0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],R0="6";try{window.__reactRouterVersion=R0}catch{}const O0="startTransition",uc=kl[O0];function L0(e){let{basename:t,children:n,future:r,window:o}=e,i=E.useRef();i.current==null&&(i.current=Fm({window:o,v5Compat:!0}));let l=i.current,[s,u]=E.useState({action:l.action,location:l.location}),{v7_startTransition:a}=r||{},f=E.useCallback(c=>{a&&uc?uc(()=>u(c)):u(c)},[u,a]);return E.useLayoutEffect(()=>l.listen(f),[l,f]),E.createElement(k0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}const M0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",D0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hr=E.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:u,to:a,preventScrollReset:f,unstable_viewTransition:c}=t,g=j0(t,T0),{basename:w}=E.useContext(Ft),d,m=!1;if(typeof a=="string"&&D0.test(a)&&(d=a,M0))try{let v=new URL(window.location.href),C=a.startsWith("//")?new URL(v.protocol+a):new URL(a),_=Pu(C.pathname,w);C.origin===v.origin&&_!=null?a=_+C.search+C.hash:m=!0}catch{}let S=a0(a,{relative:o}),y=A0(a,{replace:l,state:s,target:u,preventScrollReset:f,relative:o,unstable_viewTransition:c});function h(v){r&&r(v),v.defaultPrevented||y(v)}return E.createElement("a",Ss({},g,{href:d||S,onClick:m||i?r:h,ref:n,target:u}))});var ac;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ac||(ac={}));var cc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cc||(cc={}));function A0(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s}=t===void 0?{}:t,u=Ut(),a=ct(),f=np(e,{relative:l});return E.useCallback(c=>{if(N0(c,n)){c.preventDefault();let g=r!==void 0?r:ti(a)===ti(f);u(e,{replace:g,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s})}},[a,u,f,r,o,n,e,i,l,s])}function ip(e,t){return function(){return e.apply(t,arguments)}}const{toString:z0}=Object.prototype,{getPrototypeOf:Ou}=Object,_i=(e=>t=>{const n=z0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>_i(t)===e),ji=e=>t=>typeof t===e,{isArray:Hn}=Array,Dr=ji("undefined");function F0(e){return e!==null&&!Dr(e)&&e.constructor!==null&&!Dr(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const lp=be("ArrayBuffer");function I0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&lp(e.buffer),t}const U0=ji("string"),Me=ji("function"),sp=ji("number"),Pi=e=>e!==null&&typeof e=="object",$0=e=>e===!0||e===!1,To=e=>{if(_i(e)!=="object")return!1;const t=Ou(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},B0=be("Date"),H0=be("File"),V0=be("Blob"),W0=be("FileList"),K0=e=>Pi(e)&&Me(e.pipe),Q0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((t=_i(e))==="formdata"||t==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},Z0=be("URLSearchParams"),J0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Hn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ap=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cp=e=>!Dr(e)&&e!==ap;function xs(){const{caseless:e}=cp(this)&&this||{},t={},n=(r,o)=>{const i=e&&up(t,o)||o;To(t[i])&&To(r)?t[i]=xs(t[i],r):To(r)?t[i]=xs({},r):Hn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Vr(t,(o,i)=>{n&&Me(o)?e[i]=ip(o,n):e[i]=o},{allOwnKeys:r}),e),G0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),X0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Y0=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Ou(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},b0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ey=e=>{if(!e)return null;if(Hn(e))return e;let t=e.length;if(!sp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ty=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ou(Uint8Array)),ny=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ry=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oy=be("HTMLFormElement"),iy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),fc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ly=be("RegExp"),fp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vr(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},sy=e=>{fp(e,(t,n)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Me(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uy=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Hn(e)?r(e):r(String(e).split(t)),n},ay=()=>{},cy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),hl="abcdefghijklmnopqrstuvwxyz",dc="0123456789",dp={DIGIT:dc,ALPHA:hl,ALPHA_DIGIT:hl+hl.toUpperCase()+dc},fy=(e=16,t=dp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function dy(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const py=e=>{const t=new Array(10),n=(r,o)=>{if(Pi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Hn(r)?[]:{};return Vr(r,(l,s)=>{const u=n(l,o+1);!Dr(u)&&(i[s]=u)}),t[o]=void 0,i}}return r};return n(e,0)},hy=be("AsyncFunction"),my=e=>e&&(Pi(e)||Me(e))&&Me(e.then)&&Me(e.catch),x={isArray:Hn,isArrayBuffer:lp,isBuffer:F0,isFormData:Q0,isArrayBufferView:I0,isString:U0,isNumber:sp,isBoolean:$0,isObject:Pi,isPlainObject:To,isUndefined:Dr,isDate:B0,isFile:H0,isBlob:V0,isRegExp:ly,isFunction:Me,isStream:K0,isURLSearchParams:Z0,isTypedArray:ty,isFileList:W0,forEach:Vr,merge:xs,extend:q0,trim:J0,stripBOM:G0,inherits:X0,toFlatObject:Y0,kindOf:_i,kindOfTest:be,endsWith:b0,toArray:ey,forEachEntry:ny,matchAll:ry,isHTMLForm:oy,hasOwnProperty:fc,hasOwnProp:fc,reduceDescriptors:fp,freezeMethods:sy,toObjectSet:uy,toCamelCase:iy,noop:ay,toFiniteNumber:cy,findKey:up,global:ap,isContextDefined:cp,ALPHABET:dp,generateString:fy,isSpecCompliantForm:dy,toJSONObject:py,isAsyncFn:hy,isThenable:my};function z(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}x.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pp=z.prototype,hp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hp[e]={value:e}});Object.defineProperties(z,hp);Object.defineProperty(pp,"isAxiosError",{value:!0});z.from=(e,t,n,r,o,i)=>{const l=Object.create(pp);return x.toFlatObject(e,l,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),z.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const yy=null;function Cs(e){return x.isPlainObject(e)||x.isArray(e)}function mp(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function pc(e,t,n){return e?e.concat(t).map(function(o,i){return o=mp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function vy(e){return x.isArray(e)&&!e.some(Cs)}const gy=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Ni(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,S){return!x.isUndefined(S[m])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function a(d){if(d===null)return"";if(x.isDate(d))return d.toISOString();if(!u&&x.isBlob(d))throw new z("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(d)||x.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,S){let y=d;if(d&&!S&&typeof d=="object"){if(x.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(x.isArray(d)&&vy(d)||(x.isFileList(d)||x.endsWith(m,"[]"))&&(y=x.toArray(d)))return m=mp(m),y.forEach(function(v,C){!(x.isUndefined(v)||v===null)&&t.append(l===!0?pc([m],C,i):l===null?m:m+"[]",a(v))}),!1}return Cs(d)?!0:(t.append(pc(S,m,i),a(d)),!1)}const c=[],g=Object.assign(gy,{defaultVisitor:f,convertValue:a,isVisitable:Cs});function w(d,m){if(!x.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(d),x.forEach(d,function(y,h){(!(x.isUndefined(y)||y===null)&&o.call(t,y,x.isString(h)?h.trim():h,m,g))===!0&&w(y,m?m.concat(h):[h])}),c.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return w(e),t}function hc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lu(e,t){this._pairs=[],e&&Ni(e,this,t)}const yp=Lu.prototype;yp.append=function(t,n){this._pairs.push([t,n])};yp.toString=function(t){const n=t?function(r){return t.call(this,r,hc)}:hc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function wy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vp(e,t,n){if(!t)return e;const r=n&&n.encode||wy,o=n&&n.serialize;let i;if(o?i=o(t,n):i=x.isURLSearchParams(t)?t.toString():new Lu(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class mc{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}const gp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sy=typeof URLSearchParams<"u"?URLSearchParams:Lu,xy=typeof FormData<"u"?FormData:null,Cy=typeof Blob<"u"?Blob:null,Ey={isBrowser:!0,classes:{URLSearchParams:Sy,FormData:xy,Blob:Cy},protocols:["http","https","file","blob","url","data"]},wp=typeof window<"u"&&typeof document<"u",ky=(e=>wp&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_y=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wp,hasStandardBrowserEnv:ky,hasStandardBrowserWebWorkerEnv:_y},Symbol.toStringTag,{value:"Module"})),Ge={...jy,...Ey};function Py(e,t){return Ni(e,new Ge.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ge.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Ny(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ty(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&x.isArray(o)?o.length:l,u?(x.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!x.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&x.isArray(o[l])&&(o[l]=Ty(o[l])),!s)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,o)=>{t(Ny(r),o,n,0)}),n}return null}function Ry(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wr={transitional:gp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(Sp(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Py(t,this.formSerializer).toString();if((s=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ni(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Ry(t)):t}],transformResponse:[function(t){const n=this.transitional||Wr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?z.from(s,z.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Wr.headers[e]={}});const Oy=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ly=e=>{const t={};let n,r,o;return e&&e.split(` + */function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function P0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function N0(e,t){return e.button===0&&(!t||t==="_self")&&!P0(e)}const T0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],R0="6";try{window.__reactRouterVersion=R0}catch{}const O0="startTransition",uc=kl[O0];function L0(e){let{basename:t,children:n,future:r,window:o}=e,i=E.useRef();i.current==null&&(i.current=Fm({window:o,v5Compat:!0}));let l=i.current,[s,u]=E.useState({action:l.action,location:l.location}),{v7_startTransition:a}=r||{},f=E.useCallback(c=>{a&&uc?uc(()=>u(c)):u(c)},[u,a]);return E.useLayoutEffect(()=>l.listen(f),[l,f]),E.createElement(k0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}const M0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",D0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hr=E.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:u,to:a,preventScrollReset:f,unstable_viewTransition:c}=t,g=j0(t,T0),{basename:w}=E.useContext(Ft),d,m=!1;if(typeof a=="string"&&D0.test(a)&&(d=a,M0))try{let v=new URL(window.location.href),C=a.startsWith("//")?new URL(v.protocol+a):new URL(a),_=Pu(C.pathname,w);C.origin===v.origin&&_!=null?a=_+C.search+C.hash:m=!0}catch{}let S=a0(a,{relative:o}),y=A0(a,{replace:l,state:s,target:u,preventScrollReset:f,relative:o,unstable_viewTransition:c});function h(v){r&&r(v),v.defaultPrevented||y(v)}return E.createElement("a",Ss({},g,{href:d||S,onClick:m||i?r:h,ref:n,target:u}))});var ac;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ac||(ac={}));var cc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cc||(cc={}));function A0(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s}=t===void 0?{}:t,u=Ut(),a=ct(),f=np(e,{relative:l});return E.useCallback(c=>{if(N0(c,n)){c.preventDefault();let g=r!==void 0?r:ti(a)===ti(f);u(e,{replace:g,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s})}},[a,u,f,r,o,n,e,i,l,s])}function ip(e,t){return function(){return e.apply(t,arguments)}}const{toString:z0}=Object.prototype,{getPrototypeOf:Ou}=Object,_i=(e=>t=>{const n=z0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>_i(t)===e),ji=e=>t=>typeof t===e,{isArray:Hn}=Array,Dr=ji("undefined");function F0(e){return e!==null&&!Dr(e)&&e.constructor!==null&&!Dr(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const lp=be("ArrayBuffer");function I0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&lp(e.buffer),t}const U0=ji("string"),Me=ji("function"),sp=ji("number"),Pi=e=>e!==null&&typeof e=="object",$0=e=>e===!0||e===!1,To=e=>{if(_i(e)!=="object")return!1;const t=Ou(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},B0=be("Date"),H0=be("File"),V0=be("Blob"),W0=be("FileList"),K0=e=>Pi(e)&&Me(e.pipe),Q0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((t=_i(e))==="formdata"||t==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},Z0=be("URLSearchParams"),J0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Hn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ap=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cp=e=>!Dr(e)&&e!==ap;function xs(){const{caseless:e}=cp(this)&&this||{},t={},n=(r,o)=>{const i=e&&up(t,o)||o;To(t[i])&&To(r)?t[i]=xs(t[i],r):To(r)?t[i]=xs({},r):Hn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Vr(t,(o,i)=>{n&&Me(o)?e[i]=ip(o,n):e[i]=o},{allOwnKeys:r}),e),q0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),X0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Y0=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Ou(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},b0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ey=e=>{if(!e)return null;if(Hn(e))return e;let t=e.length;if(!sp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ty=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ou(Uint8Array)),ny=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ry=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oy=be("HTMLFormElement"),iy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),fc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ly=be("RegExp"),fp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vr(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},sy=e=>{fp(e,(t,n)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Me(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uy=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Hn(e)?r(e):r(String(e).split(t)),n},ay=()=>{},cy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),hl="abcdefghijklmnopqrstuvwxyz",dc="0123456789",dp={DIGIT:dc,ALPHA:hl,ALPHA_DIGIT:hl+hl.toUpperCase()+dc},fy=(e=16,t=dp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function dy(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const py=e=>{const t=new Array(10),n=(r,o)=>{if(Pi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Hn(r)?[]:{};return Vr(r,(l,s)=>{const u=n(l,o+1);!Dr(u)&&(i[s]=u)}),t[o]=void 0,i}}return r};return n(e,0)},hy=be("AsyncFunction"),my=e=>e&&(Pi(e)||Me(e))&&Me(e.then)&&Me(e.catch),x={isArray:Hn,isArrayBuffer:lp,isBuffer:F0,isFormData:Q0,isArrayBufferView:I0,isString:U0,isNumber:sp,isBoolean:$0,isObject:Pi,isPlainObject:To,isUndefined:Dr,isDate:B0,isFile:H0,isBlob:V0,isRegExp:ly,isFunction:Me,isStream:K0,isURLSearchParams:Z0,isTypedArray:ty,isFileList:W0,forEach:Vr,merge:xs,extend:G0,trim:J0,stripBOM:q0,inherits:X0,toFlatObject:Y0,kindOf:_i,kindOfTest:be,endsWith:b0,toArray:ey,forEachEntry:ny,matchAll:ry,isHTMLForm:oy,hasOwnProperty:fc,hasOwnProp:fc,reduceDescriptors:fp,freezeMethods:sy,toObjectSet:uy,toCamelCase:iy,noop:ay,toFiniteNumber:cy,findKey:up,global:ap,isContextDefined:cp,ALPHABET:dp,generateString:fy,isSpecCompliantForm:dy,toJSONObject:py,isAsyncFn:hy,isThenable:my};function z(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}x.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pp=z.prototype,hp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hp[e]={value:e}});Object.defineProperties(z,hp);Object.defineProperty(pp,"isAxiosError",{value:!0});z.from=(e,t,n,r,o,i)=>{const l=Object.create(pp);return x.toFlatObject(e,l,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),z.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const yy=null;function Cs(e){return x.isPlainObject(e)||x.isArray(e)}function mp(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function pc(e,t,n){return e?e.concat(t).map(function(o,i){return o=mp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function vy(e){return x.isArray(e)&&!e.some(Cs)}const gy=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Ni(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,S){return!x.isUndefined(S[m])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function a(d){if(d===null)return"";if(x.isDate(d))return d.toISOString();if(!u&&x.isBlob(d))throw new z("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(d)||x.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,S){let y=d;if(d&&!S&&typeof d=="object"){if(x.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(x.isArray(d)&&vy(d)||(x.isFileList(d)||x.endsWith(m,"[]"))&&(y=x.toArray(d)))return m=mp(m),y.forEach(function(v,C){!(x.isUndefined(v)||v===null)&&t.append(l===!0?pc([m],C,i):l===null?m:m+"[]",a(v))}),!1}return Cs(d)?!0:(t.append(pc(S,m,i),a(d)),!1)}const c=[],g=Object.assign(gy,{defaultVisitor:f,convertValue:a,isVisitable:Cs});function w(d,m){if(!x.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(d),x.forEach(d,function(y,h){(!(x.isUndefined(y)||y===null)&&o.call(t,y,x.isString(h)?h.trim():h,m,g))===!0&&w(y,m?m.concat(h):[h])}),c.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return w(e),t}function hc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lu(e,t){this._pairs=[],e&&Ni(e,this,t)}const yp=Lu.prototype;yp.append=function(t,n){this._pairs.push([t,n])};yp.toString=function(t){const n=t?function(r){return t.call(this,r,hc)}:hc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function wy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vp(e,t,n){if(!t)return e;const r=n&&n.encode||wy,o=n&&n.serialize;let i;if(o?i=o(t,n):i=x.isURLSearchParams(t)?t.toString():new Lu(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class mc{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}const gp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sy=typeof URLSearchParams<"u"?URLSearchParams:Lu,xy=typeof FormData<"u"?FormData:null,Cy=typeof Blob<"u"?Blob:null,Ey={isBrowser:!0,classes:{URLSearchParams:Sy,FormData:xy,Blob:Cy},protocols:["http","https","file","blob","url","data"]},wp=typeof window<"u"&&typeof document<"u",ky=(e=>wp&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_y=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wp,hasStandardBrowserEnv:ky,hasStandardBrowserWebWorkerEnv:_y},Symbol.toStringTag,{value:"Module"})),qe={...jy,...Ey};function Py(e,t){return Ni(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return qe.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Ny(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ty(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&x.isArray(o)?o.length:l,u?(x.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!x.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&x.isArray(o[l])&&(o[l]=Ty(o[l])),!s)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,o)=>{t(Ny(r),o,n,0)}),n}return null}function Ry(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wr={transitional:gp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(Sp(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Py(t,this.formSerializer).toString();if((s=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ni(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Ry(t)):t}],transformResponse:[function(t){const n=this.transitional||Wr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?z.from(s,z.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Wr.headers[e]={}});const Oy=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ly=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Oy[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yc=Symbol("internals");function bn(e){return e&&String(e).trim().toLowerCase()}function Ro(e){return e===!1||e==null?e:x.isArray(e)?e.map(Ro):String(e)}function My(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Dy=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ml(e,t,n,r,o){if(x.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function Ay(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function zy(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class De{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,u,a){const f=bn(u);if(!f)throw new Error("header name must be a non-empty string");const c=x.findKey(o,f);(!c||o[c]===void 0||a===!0||a===void 0&&o[c]!==!1)&&(o[c||u]=Ro(s))}const l=(s,u)=>x.forEach(s,(a,f)=>i(a,f,u));return x.isPlainObject(t)||t instanceof this.constructor?l(t,n):x.isString(t)&&(t=t.trim())&&!Dy(t)?l(Ly(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=bn(t),t){const r=x.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return My(o);if(x.isFunction(n))return n.call(this,o,r);if(x.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=bn(t),t){const r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ml(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=bn(l),l){const s=x.findKey(r,l);s&&(!n||ml(r,r[s],s,n))&&(delete r[s],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ml(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return x.forEach(this,(o,i)=>{const l=x.findKey(r,i);if(l){n[l]=Ro(o),delete n[i];return}const s=t?Ay(i):String(i).trim();s!==i&&delete n[i],n[s]=Ro(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[yc]=this[yc]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=bn(l);r[s]||(zy(o,l),r[s]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}}De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(De.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});x.freezeMethods(De);function yl(e,t){const n=this||Wr,r=t||n,o=De.from(r.headers);let i=r.data;return x.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xp(e){return!!(e&&e.__CANCEL__)}function Kr(e,t,n){z.call(this,e??"canceled",z.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(Kr,z,{__CANCEL__:!0});function Fy(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Iy=Ge.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),x.isString(r)&&l.push("path="+r),x.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Uy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $y(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Cp(e,t){return e&&!Uy(t)?$y(e,t):t}const By=Ge.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const s=x.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Hy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vy(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[i];l||(l=a),n[o]=u,r[o]=a;let c=i,g=0;for(;c!==o;)g+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,s=i-n,u=r(s),a=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o};f[t?"download":"upload"]=!0,e(f)}}const Wy=typeof XMLHttpRequest<"u",Ky=Wy&&function(e){return new Promise(function(n,r){let o=e.data;const i=De.from(e.headers).normalize();let{responseType:l,withXSRFToken:s}=e,u;function a(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let f;if(x.isFormData(o)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[m,...S]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...S].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+S))}const g=Cp(e.baseURL,e.url);c.open(e.method.toUpperCase(),vp(g,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function w(){if(!c)return;const m=De.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};Fy(function(v){n(v),a()},function(v){r(v),a()},y),c=null}if("onloadend"in c?c.onloadend=w:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(w)},c.onabort=function(){c&&(r(new z("Request aborted",z.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new z("Network Error",z.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||gp;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new z(S,y.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,c)),c=null},Ge.hasStandardBrowserEnv&&(s&&x.isFunction(s)&&(s=s(e)),s||s!==!1&&By(g))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&Iy.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&x.forEach(i.toJSON(),function(S,y){c.setRequestHeader(y,S)}),x.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",vc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",vc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=m=>{c&&(r(!m||m.type?new Kr(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const d=Hy(g);if(d&&Ge.protocols.indexOf(d)===-1){r(new z("Unsupported protocol "+d+":",z.ERR_BAD_REQUEST,e));return}c.send(o||null)})},Es={http:yy,xhr:Ky};x.forEach(Es,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gc=e=>`- ${e}`,Qy=e=>x.isFunction(e)||e===null||e===!1,Ep={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[yc]=this[yc]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=bn(l);r[s]||(zy(o,l),r[s]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}}De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(De.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});x.freezeMethods(De);function yl(e,t){const n=this||Wr,r=t||n,o=De.from(r.headers);let i=r.data;return x.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xp(e){return!!(e&&e.__CANCEL__)}function Kr(e,t,n){z.call(this,e??"canceled",z.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(Kr,z,{__CANCEL__:!0});function Fy(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Iy=qe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),x.isString(r)&&l.push("path="+r),x.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Uy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $y(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Cp(e,t){return e&&!Uy(t)?$y(e,t):t}const By=qe.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const s=x.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Hy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vy(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[i];l||(l=a),n[o]=u,r[o]=a;let c=i,g=0;for(;c!==o;)g+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,s=i-n,u=r(s),a=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o};f[t?"download":"upload"]=!0,e(f)}}const Wy=typeof XMLHttpRequest<"u",Ky=Wy&&function(e){return new Promise(function(n,r){let o=e.data;const i=De.from(e.headers).normalize();let{responseType:l,withXSRFToken:s}=e,u;function a(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let f;if(x.isFormData(o)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[m,...S]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...S].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+S))}const g=Cp(e.baseURL,e.url);c.open(e.method.toUpperCase(),vp(g,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function w(){if(!c)return;const m=De.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};Fy(function(v){n(v),a()},function(v){r(v),a()},y),c=null}if("onloadend"in c?c.onloadend=w:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(w)},c.onabort=function(){c&&(r(new z("Request aborted",z.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new z("Network Error",z.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||gp;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new z(S,y.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,c)),c=null},qe.hasStandardBrowserEnv&&(s&&x.isFunction(s)&&(s=s(e)),s||s!==!1&&By(g))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&Iy.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&x.forEach(i.toJSON(),function(S,y){c.setRequestHeader(y,S)}),x.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",vc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",vc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=m=>{c&&(r(!m||m.type?new Kr(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const d=Hy(g);if(d&&qe.protocols.indexOf(d)===-1){r(new z("Unsupported protocol "+d+":",z.ERR_BAD_REQUEST,e));return}c.send(o||null)})},Es={http:yy,xhr:Ky};x.forEach(Es,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gc=e=>`- ${e}`,Qy=e=>x.isFunction(e)||e===null||e===!1,Ep={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : `+i.map(gc).join(` -`):" "+gc(i[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Es};function vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kr(null,e)}function wc(e){return vl(e),e.headers=De.from(e.headers),e.data=yl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ep.getAdapter(e.adapter||Wr.adapter)(e).then(function(r){return vl(e),r.data=yl.call(e,e.transformResponse,r),r.headers=De.from(r.headers),r},function(r){return xp(r)||(vl(e),r&&r.response&&(r.response.data=yl.call(e,e.transformResponse,r.response),r.response.headers=De.from(r.response.headers))),Promise.reject(r)})}const Sc=e=>e instanceof De?{...e}:e;function An(e,t){t=t||{};const n={};function r(a,f,c){return x.isPlainObject(a)&&x.isPlainObject(f)?x.merge.call({caseless:c},a,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function o(a,f,c){if(x.isUndefined(f)){if(!x.isUndefined(a))return r(void 0,a,c)}else return r(a,f,c)}function i(a,f){if(!x.isUndefined(f))return r(void 0,f)}function l(a,f){if(x.isUndefined(f)){if(!x.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,c){if(c in t)return r(a,f);if(c in e)return r(void 0,a)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(a,f)=>o(Sc(a),Sc(f),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=u[f]||o,g=c(e[f],t[f],f);x.isUndefined(g)&&c!==s||(n[f]=g)}),n}const kp="1.6.8",Mu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xc={};Mu.transitional=function(t,n,r){function o(i,l){return"[Axios v"+kp+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new z(o(l," has been removed"+(n?" in "+n:"")),z.ERR_DEPRECATED);return n&&!xc[l]&&(xc[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};function Zy(e,t,n){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const s=e[i],u=s===void 0||l(s,i,e);if(u!==!0)throw new z("option "+i+" must be "+u,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z("Unknown option "+i,z.ERR_BAD_OPTION)}}const ks={assertOptions:Zy,validators:Mu},pt=ks.validators;class Gt{constructor(t){this.defaults=t,this.interceptors={request:new mc,response:new mc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=An(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ks.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),o!=null&&(x.isFunction(o)?n.paramsSerializer={serialize:o}:ks.assertOptions(o,{encode:pt.function,serialize:pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&x.merge(i.common,i[n.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=De.concat(l,i);const s=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const a=[];this.interceptors.response.forEach(function(m){a.push(m.fulfilled,m.rejected)});let f,c=0,g;if(!u){const d=[wc.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,a),g=d.length,f=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new Kr(i,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Du(function(o){t=o}),cancel:t}}}function Jy(e){return function(n){return e.apply(null,n)}}function qy(e){return x.isObject(e)&&e.isAxiosError===!0}const _s={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_s).forEach(([e,t])=>{_s[t]=e});function _p(e){const t=new Gt(e),n=ip(Gt.prototype.request,t);return x.extend(n,Gt.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return _p(An(e,o))},n}const M=_p(Wr);M.Axios=Gt;M.CanceledError=Kr;M.CancelToken=Du;M.isCancel=xp;M.VERSION=kp;M.toFormData=Ni;M.AxiosError=z;M.Cancel=M.CanceledError;M.all=function(t){return Promise.all(t)};M.spread=Jy;M.isAxiosError=qy;M.mergeConfig=An;M.AxiosHeaders=De;M.formToJSON=e=>Sp(x.isHTMLForm(e)?new FormData(e):e);M.getAdapter=Ep.getAdapter;M.HttpStatusCode=_s;M.default=M;class Gy{constructor(){this.base="https://project-manager-jqsq.onrender.com/user",this.axios=M.create({withCredentials:!0})}getAll(t){return this.axios.get(`${this.base}/all?from=${t}`)}isLoggedIn(){return this.axios.get(`${this.base}/`)}signUp(t){return this.axios.post(`${this.base}/register`,t)}signIn(t){return this.axios.post(`${this.base}/login`,t)}signOut(){return this.axios.post(`${this.base}/logout`)}delete(){return this.axios.delete(`${this.base}/delete`)}}const Qr=new Gy,jp="SIGN_IN",Pp="SIGN_UP",Np="SIGN_OUT",Tp="USER",Rp="USERS",Xy="DELETE",zn="ERROR",Au=()=>async(e,t)=>{const n=t().auth.user,o=(await Qr.getAll(n.id)).data;e({type:Rp,payload:o.map(i=>n.id!=i.id?i:{...i,name:"myself"})})},zu=()=>async e=>{const t=await Qr.isLoggedIn();t.data.message!=="success"?e({type:zn,payload:t.data.message}):e({type:Tp,payload:t.data.user})},Yy=e=>async t=>{const n=await Qr.signIn(e);n.data.message!=="success"?t({type:zn,payload:n.data.message}):(t({type:jp,payload:n.data}),await t(zu()))},by=e=>async t=>{e.name=="myself"&&t({type:zn,payload:"'myself' can not be a username"});const n=await Qr.signUp(e);console.log(n),n.data.message!=="success"?t({type:zn,payload:n.data.message}):(t({type:Pp,payload:n.data}),await t(zu()))},ev=()=>async e=>{const t=await Qr.signOut();t.data.message!=="success"?e({type:zn,payload:t.data.message}):e({type:Np,payload:t.data})};var Op={exports:{}},Lp={};/** +`):" "+gc(i[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Es};function vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kr(null,e)}function wc(e){return vl(e),e.headers=De.from(e.headers),e.data=yl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ep.getAdapter(e.adapter||Wr.adapter)(e).then(function(r){return vl(e),r.data=yl.call(e,e.transformResponse,r),r.headers=De.from(r.headers),r},function(r){return xp(r)||(vl(e),r&&r.response&&(r.response.data=yl.call(e,e.transformResponse,r.response),r.response.headers=De.from(r.response.headers))),Promise.reject(r)})}const Sc=e=>e instanceof De?{...e}:e;function An(e,t){t=t||{};const n={};function r(a,f,c){return x.isPlainObject(a)&&x.isPlainObject(f)?x.merge.call({caseless:c},a,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function o(a,f,c){if(x.isUndefined(f)){if(!x.isUndefined(a))return r(void 0,a,c)}else return r(a,f,c)}function i(a,f){if(!x.isUndefined(f))return r(void 0,f)}function l(a,f){if(x.isUndefined(f)){if(!x.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,c){if(c in t)return r(a,f);if(c in e)return r(void 0,a)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(a,f)=>o(Sc(a),Sc(f),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=u[f]||o,g=c(e[f],t[f],f);x.isUndefined(g)&&c!==s||(n[f]=g)}),n}const kp="1.6.8",Mu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xc={};Mu.transitional=function(t,n,r){function o(i,l){return"[Axios v"+kp+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new z(o(l," has been removed"+(n?" in "+n:"")),z.ERR_DEPRECATED);return n&&!xc[l]&&(xc[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};function Zy(e,t,n){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const s=e[i],u=s===void 0||l(s,i,e);if(u!==!0)throw new z("option "+i+" must be "+u,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z("Unknown option "+i,z.ERR_BAD_OPTION)}}const ks={assertOptions:Zy,validators:Mu},pt=ks.validators;class qt{constructor(t){this.defaults=t,this.interceptors={request:new mc,response:new mc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=An(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ks.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),o!=null&&(x.isFunction(o)?n.paramsSerializer={serialize:o}:ks.assertOptions(o,{encode:pt.function,serialize:pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&x.merge(i.common,i[n.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=De.concat(l,i);const s=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const a=[];this.interceptors.response.forEach(function(m){a.push(m.fulfilled,m.rejected)});let f,c=0,g;if(!u){const d=[wc.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,a),g=d.length,f=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new Kr(i,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Du(function(o){t=o}),cancel:t}}}function Jy(e){return function(n){return e.apply(null,n)}}function Gy(e){return x.isObject(e)&&e.isAxiosError===!0}const _s={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_s).forEach(([e,t])=>{_s[t]=e});function _p(e){const t=new qt(e),n=ip(qt.prototype.request,t);return x.extend(n,qt.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return _p(An(e,o))},n}const M=_p(Wr);M.Axios=qt;M.CanceledError=Kr;M.CancelToken=Du;M.isCancel=xp;M.VERSION=kp;M.toFormData=Ni;M.AxiosError=z;M.Cancel=M.CanceledError;M.all=function(t){return Promise.all(t)};M.spread=Jy;M.isAxiosError=Gy;M.mergeConfig=An;M.AxiosHeaders=De;M.formToJSON=e=>Sp(x.isHTMLForm(e)?new FormData(e):e);M.getAdapter=Ep.getAdapter;M.HttpStatusCode=_s;M.default=M;class qy{constructor(){this.base="http://localhost:8000/user",this.axios=M.create({withCredentials:!0})}getAll(t){return this.axios.get(`${this.base}/all?from=${t}`)}isLoggedIn(){return this.axios.get(`${this.base}/`)}signUp(t){return this.axios.post(`${this.base}/register`,t)}signIn(t){return this.axios.post(`${this.base}/login`,t)}signOut(){return this.axios.post(`${this.base}/logout`)}delete(){return this.axios.delete(`${this.base}/delete`)}}const Qr=new qy,jp="SIGN_IN",Pp="SIGN_UP",Np="SIGN_OUT",Tp="USER",Rp="USERS",Xy="DELETE",zn="ERROR",Au=()=>async(e,t)=>{const n=t().auth.user,o=(await Qr.getAll(n.id)).data;e({type:Rp,payload:o.map(i=>n.id!=i.id?i:{...i,name:"myself"})})},zu=()=>async e=>{const t=await Qr.isLoggedIn();t.data.message!=="success"?e({type:zn,payload:t.data.message}):e({type:Tp,payload:t.data.user})},Yy=e=>async t=>{const n=await Qr.signIn(e);n.data.message!=="success"?t({type:zn,payload:n.data.message}):(t({type:jp,payload:n.data}),await t(zu()))},by=e=>async t=>{e.name=="myself"&&t({type:zn,payload:"'myself' can not be a username"});const n=await Qr.signUp(e);console.log(n),n.data.message!=="success"?t({type:zn,payload:n.data.message}):(t({type:Pp,payload:n.data}),await t(zu()))},ev=()=>async e=>{const t=await Qr.signOut();t.data.message!=="success"?e({type:zn,payload:t.data.message}):e({type:Np,payload:t.data})};var Op={exports:{}},Lp={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -77,4 +77,4 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Zr=E;function tv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nv=typeof Object.is=="function"?Object.is:tv,rv=Zr.useSyncExternalStore,ov=Zr.useRef,iv=Zr.useEffect,lv=Zr.useMemo,sv=Zr.useDebugValue;Lp.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=ov(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=lv(function(){function u(w){if(!a){if(a=!0,f=w,w=r(w),o!==void 0&&l.hasValue){var d=l.value;if(o(d,w))return c=d}return c=w}if(d=c,nv(f,w))return d;var m=r(w);return o!==void 0&&o(d,m)?d:(f=w,c=m)}var a=!1,f,c,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,r,o]);var s=rv(e,i[0],i[1]);return iv(function(){l.hasValue=!0,l.value=s},[s]),sv(s),s};Op.exports=Lp;var uv=Op.exports,Ce="default"in kl?Zc:kl,Cc=Symbol.for("react-redux-context"),Ec=typeof globalThis<"u"?globalThis:{};function av(){if(!Ce.createContext)return{};const e=Ec[Cc]??(Ec[Cc]=new Map);let t=e.get(Ce.createContext);return t||(t=Ce.createContext(null),e.set(Ce.createContext,t)),t}var Mt=av(),cv=()=>{throw new Error("uSES not initialized!")};function Fu(e=Mt){return function(){return Ce.useContext(e)}}var Mp=Fu(),Dp=cv,fv=e=>{Dp=e},dv=(e,t)=>e===t;function pv(e=Mt){const t=e===Mt?Mp:Fu(e),n=(r,o={})=>{const{equalityFn:i=dv,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:s,subscription:u,getServerState:a,stabilityCheck:f,identityFunctionCheck:c}=t();Ce.useRef(!0);const g=Ce.useCallback({[r.name](d){return r(d)}}[r.name],[r,f,l.stabilityCheck]),w=Dp(u.addNestedSub,s.getState,a||s.getState,g,i);return Ce.useDebugValue(w),w};return Object.assign(n,{withTypes:()=>n}),n}var Ae=pv();function hv(e){e()}function mv(){let e=null,t=null;return{clear(){e=null,t=null},notify(){hv(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var kc={notify(){},get:()=>[]};function yv(e,t){let n,r=kc,o=0,i=!1;function l(m){f();const S=r.subscribe(m);let y=!1;return()=>{y||(y=!0,S(),c())}}function s(){r.notify()}function u(){d.onStateChange&&d.onStateChange()}function a(){return i}function f(){o++,n||(n=e.subscribe(u),r=mv())}function c(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=kc)}function g(){i||(i=!0,f())}function w(){i&&(i=!1,c())}const d={addNestedSub:l,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:a,trySubscribe:g,tryUnsubscribe:w,getListeners:()=>r};return d}var vv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gv=typeof navigator<"u"&&navigator.product==="ReactNative",wv=vv||gv?Ce.useLayoutEffect:Ce.useEffect;function Sv({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const l=Ce.useMemo(()=>{const a=yv(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),s=Ce.useMemo(()=>e.getState(),[e]);wv(()=>{const{subscription:a}=l;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),s!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[l,s]);const u=t||Mt;return Ce.createElement(u.Provider,{value:l},n)}var xv=Sv;function Ap(e=Mt){const t=e===Mt?Mp:Fu(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Cv=Ap();function Ev(e=Mt){const t=e===Mt?Cv:Ap(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ft=Ev();fv(uv.useSyncExternalStoreWithSelector);function Iu({scale:e=1}){return p.jsx("div",{className:"logo",children:p.jsxs("svg",{width:`${52*e}`,height:`${53*e}`,viewBox:"0 0 52 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M41.0208 9.46202L41.4655 6.18356C41.5941 5.1578 40.9466 3.9206 39.9727 3.78519L38.3528 3.37342C37.9196 2.20635 37.2257 1.50963 36.1294 1.5C35.1555 1.5 34.3718 2.08429 33.906 2.90506L32.0374 2.68189C31.0635 2.54648 30.1319 3.56414 30.0034 4.5899L29.5587 7.86836L41.0208 9.46202Z",fill:"url(#paint0_linear_129_70)"}),p.jsx("path",{d:"M36.5741 3.37342C36.5741 3.63208 36.375 3.84177 36.1294 3.84177C35.8838 3.84177 35.6847 3.63208 35.6847 3.37342C35.6847 3.11475 35.8838 2.90506 36.1294 2.90506C36.375 2.90506 36.5741 3.11475 36.5741 3.37342Z",fill:"url(#paint1_linear_129_70)"}),p.jsx("path",{d:"M16.7317 47.7987L43.1829 51.4755C44.6437 51.6786 45.9843 50.5959 46.1771 49.0572L50.9768 10.7529C51.1696 9.21426 50.1416 7.80233 48.6807 7.59926L22.2296 3.92245C20.7687 3.71938 19.4281 4.80209 19.2353 6.34073C18.9276 8.79672 18.642 11.0755 18.3714 13.2354M25.9379 11.9733L43.7692 14.4525M42.8799 19.136L27.7656 17.0346M42.8799 23.8196L31.9302 22.2971M41.9905 28.5031L33.6265 27.3402M41.1012 33.1866L33.8335 32.1762M40.2118 37.8702L32.7851 36.8376M39.3225 42.5537L30.4068 41.3141M18.0819 18.864L18.2933 16.0627M28.0619 31.6424L30.7216 31.865M16.1403 44.5296L16.3517 41.7283M3.67566 29.6298L6.33533 29.8525M32.7851 36.8376C30.3922 43.2934 24.4297 47.867 17.453 47.867C8.36626 47.867 1 40.1085 1 30.5379C1 20.9674 8.36626 13.2088 17.453 13.2088C17.7612 13.2088 18.0674 13.2178 18.3714 13.2354M32.7851 36.8376C33.3289 35.3705 33.6883 33.8061 33.8335 32.1762M33.8335 32.1762C33.8815 31.6369 33.906 31.0904 33.906 30.5379C33.906 29.4455 33.81 28.3766 33.6265 27.3402M33.6265 27.3402C33.3088 25.5467 32.7289 23.8504 31.9302 22.2971M31.9302 22.2971C30.8844 20.2635 29.4637 18.475 27.7656 17.0346M27.7656 17.0346C25.1671 14.8303 21.919 13.441 18.3714 13.2354M41.4655 6.18356L41.0208 9.46202L29.5587 7.86836L30.0034 4.5899C30.1319 3.56414 31.0635 2.54648 32.0374 2.68189L33.906 2.90506C34.3718 2.08429 35.1555 1.5 36.1294 1.5C37.2257 1.50963 37.9196 2.20635 38.3528 3.37342L39.9727 3.78519C40.9466 3.9206 41.5941 5.1578 41.4655 6.18356ZM36.5741 3.37342C36.5741 3.63208 36.375 3.84177 36.1294 3.84177C35.8838 3.84177 35.6847 3.63208 35.6847 3.37342C35.6847 3.11475 35.8838 2.90506 36.1294 2.90506C36.375 2.90506 36.5741 3.11475 36.5741 3.37342ZM12.1169 29.1329L12.5616 29.2977C12.5616 29.2977 15.1394 32.1283 16.7317 33.8164L27.6805 23.981L28.5699 23.8196L16.8963 35.4702L12.1169 29.1329Z",stroke:"url(#paint2_linear_129_70)",strokeWidth:"1.9"}),p.jsxs("defs",{children:[p.jsxs("linearGradient",{id:"paint0_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]}),p.jsxs("linearGradient",{id:"paint1_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]}),p.jsxs("linearGradient",{id:"paint2_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]})]})]})})}function kv({loggedIn:e=!1}){const t=Ae(a=>a.auth.error),n=Ut(),[r,o]=E.useState(!1),[i,l]=E.useState({email:"",password:""}),s=ft(),u=a=>{a.preventDefault(),s(Yy(i))};return E.useEffect(()=>{e&&setTimeout(()=>{n(-1)},1e3)},[e]),e?p.jsx("p",{children:"please sign out first"}):p.jsxs("div",{className:"signInPage",children:[p.jsx(Iu,{scale:3}),p.jsx("h1",{children:"TaskMaster"}),p.jsxs("form",{onSubmit:u,children:[p.jsx("input",{type:"email",value:i.email,placeholder:"Email",onChange:a=>l({...i,email:a.target.value})}),p.jsxs("div",{className:"pass",children:[p.jsx("input",{type:r?"text":"password",value:i.password,placeholder:"Password",onChange:a=>l({...i,password:a.target.value})}),r?p.jsx("span",{className:"material-symbols-outlined",onClick:()=>o(!r),children:"visibility"}):p.jsx("span",{className:"material-symbols-outlined",onClick:()=>o(!r),children:"visibility_off"})]}),p.jsx("p",{className:"error",children:t}),p.jsx("button",{className:"primary-button",type:"submit",children:"sign in"}),p.jsx(hr,{to:"/sign-up",children:" don't have an account? sign up"})]})]})}function _v({loggedIn:e=!1}){const t=Ae(a=>a.auth.error),n=Ut(),[r,o]=E.useState(!1),[i,l]=E.useState({name:"",email:"",password:"",private:!1}),s=ft(),u=a=>{a.preventDefault(),s(by(i))};return E.useEffect(()=>{e&&setTimeout(()=>{n("home")},500)},[e]),e?p.jsx("p",{children:"please sign out first"}):p.jsxs("div",{className:"signUpPage",children:[p.jsx(Iu,{scale:3}),p.jsx("h1",{children:"TaskMaster"}),p.jsxs("form",{onSubmit:u,children:[p.jsx("input",{type:"text",value:i.name,placeholder:"Name",onChange:a=>{l({...i,name:a.target.value})},required:!0}),p.jsx("input",{type:"email",value:i.email,placeholder:"Email",onChange:a=>l({...i,email:a.target.value}),required:!0}),p.jsxs("div",{className:"pass",children:[p.jsx("input",{type:r?"text":"password",value:i.password,placeholder:"Password",onChange:a=>l({...i,password:a.target.value})}),r?p.jsx("span",{className:"material-symbols-outlined",onClick:()=>o(!r),children:"visibility"}):p.jsx("span",{className:"material-symbols-outlined",onClick:()=>o(!r),children:"visibility_off"})]}),p.jsxs("div",{className:"private",children:[p.jsx("input",{type:"checkbox",checked:i.private,onChange:a=>{l({...i,private:!i.private})}}),p.jsx("p",{children:"keep your account private?"})]}),p.jsx("p",{className:"error",children:t}),p.jsx("button",{className:"primary-button",type:"submit",children:"sign up"}),p.jsx(hr,{to:"/sign-in",children:" already have an account? sign in"})]})]})}function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var jv=typeof Symbol=="function"&&Symbol.observable||"@@observable",_c=jv,gl=()=>Math.random().toString(36).substring(7).split("").join("."),Pv={INIT:`@@redux/INIT${gl()}`,REPLACE:`@@redux/REPLACE${gl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gl()}`},ri=Pv;function Uu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function zp(e,t,n){if(typeof e!="function")throw new Error(re(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(re(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(re(1));return n(zp)(e,t)}let r=e,o=t,i=new Map,l=i,s=0,u=!1;function a(){l===i&&(l=new Map,i.forEach((S,y)=>{l.set(y,S)}))}function f(){if(u)throw new Error(re(3));return o}function c(S){if(typeof S!="function")throw new Error(re(4));if(u)throw new Error(re(5));let y=!0;a();const h=s++;return l.set(h,S),function(){if(y){if(u)throw new Error(re(6));y=!1,a(),l.delete(h),i=null}}}function g(S){if(!Uu(S))throw new Error(re(7));if(typeof S.type>"u")throw new Error(re(8));if(typeof S.type!="string")throw new Error(re(17));if(u)throw new Error(re(9));try{u=!0,o=r(o,S)}finally{u=!1}return(i=l).forEach(h=>{h()}),S}function w(S){if(typeof S!="function")throw new Error(re(10));r=S,g({type:ri.REPLACE})}function d(){const S=c;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(re(11));function h(){const C=y;C.next&&C.next(f())}return h(),{unsubscribe:S(h)}},[_c](){return this}}}return g({type:ri.INIT}),{dispatch:g,subscribe:c,getState:f,replaceReducer:w,[_c]:d}}function Nv(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ri.INIT})>"u")throw new Error(re(12));if(typeof n(void 0,{type:ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(re(13))})}function Fp(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw s&&s.type,new Error(re(14));a[c]=d,u=u||d!==w}return u=u||r.length!==Object.keys(l).length,u?a:l}}function oi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Tv(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(re(15))};const l={getState:o.getState,dispatch:(u,...a)=>i(u,...a)},s=e.map(u=>u(l));return i=oi(...s)(o.dispatch),{...o,dispatch:i}}}function Rv(e){return Uu(e)&&"type"in e&&typeof e.type=="string"}class Ov{constructor(){this.base="https://project-manager-jqsq.onrender.com/user/task"}create(t){return M.post(`${this.base}/create`,t)}all(t){return M.get(`${this.base}/list?owner=${t}`)}one(t){return M.get(`${this.base}/details?id=${t}`)}update(t){return M.put(`${this.base}/update`,t)}delete(t){return M.delete(`${this.base}/delete?id=${t}`)}}const Ti=new Ov,Ip="CREATE_TASK",Lv="UPDATE_TASK",Mv="DELETE_TASK",Up="ALL_TASK",$p="LOAD_TASK",Dv=e=>async(t,n)=>{try{const r=n().auth.user.id;e.deadline==""&&(e.deadline=null);const o=await Ti.create({...e,owner:r});return t({type:Ip,payload:o.data}),await t(Ar()),Promise.resolve(o.data)}catch(r){return Promise.reject(r)}},Ar=()=>async(e,t)=>{try{e({type:$p});const n=t().auth.user.id,r=await Ti.all(n);return e({type:Up,payload:r.data}),Promise.resolve(r.data)}catch(n){return Promise.reject(n)}},Av=e=>async t=>{try{e.deadline==""&&(e.deadline=null);const n=await Ti.update(e);return t({type:Lv,payload:n.data}),Ar()}catch(n){return Promise.reject(n)}},zv=e=>async t=>{try{const n=await Ti.delete(e);return t({type:Mv,payload:n.data}),Ar()}catch(n){return Promise.reject(n)}},jc={tasks:[],loading:!1};function Bp(e=jc,t){switch(t.type){case Ip:return{...e,tasks:[...e.tasks,t.payload]};case Up:return{...e,tasks:t.payload,loading:!1};case $p:return{...e,loading:!0};case qr:return jc;default:return e}}const Fv={user:null,error:null,all:[]};function Hp(e=Fv,t){switch(t.type){case Rp:return{...e,all:t.payload};case Pp:return{...e,user:t.payload};case jp:return{...e,user:t.payload,error:null};case Np:return{...e,user:null};case Tp:return{...e,user:t.payload,error:null};case Xy:return{...e,user:null};case zn:return{...e,error:t.payload};default:return e}}class Iv{constructor(){this.base="https://project-manager-jqsq.onrender.com/notes"}get(t){return M.get(`${this.base}/?owner=${t}`)}update(t){return console.log(t),M.post(`${this.base}/update`,t)}}const Vp=new Iv,$u="UPDATE",Uv=()=>async(e,t)=>{try{const n=t().auth.user.id,r=await Vp.get(n);e({type:$u,payload:r.data})}catch(n){console.log(n)}},$v=e=>async(t,n)=>{try{const r=n().auth.user.id,o=await Vp.update({...e,owner:r});t({type:$u,payload:o.data})}catch(r){console.log(r)}},Pc={content:""};function Wp(e=Pc,t){switch(t.type){case $u:return t.payload;case qr:return Pc;default:return e}}class Bv{constructor(){this.base="https://project-manager-jqsq.onrender.com/project"}getProjects(t){return M.get(`${this.base}/get-owned?owner=${t}`)}getProject(t){return M.get(`${this.base}/get?id=${t}`)}createProject(t){return M.post(`${this.base}/create`,t)}deleteProject(t){return M.delete(`${this.base}/delete?id=${t}`)}updateProject(t){return M.put(`${this.base}/update`,t)}}const Ri=new Bv;class Hv{constructor(){this.base="https://project-manager-jqsq.onrender.com/project/task"}create(t){return M.post(`${this.base}/create`,t)}all(t){return M.get(`${this.base}/list?owner=${t}`)}one(t){return M.get(`${this.base}/details?id=${t}`)}update(t){return M.put(`${this.base}/update`,t)}delete(t){return M.delete(`${this.base}/delete?id=${t}`)}status(t,n){return M.put(`${this.base}/status?id=${t}&status=${n}`)}}const Oi=new Hv,Kp="ALL_PROJECT_TASK",Vv="LOAD_PROJECT_TASK",Wv=(e,t)=>async n=>{try{const r=Object.keys(t).reduce((i,l)=>(t[l]!==null&&(i[l]=t[l]),i),{});r.deadline==""&&(r.deadline=null);const o=await Oi.create({...r,owner:e});await n(Jr())}catch(r){console.log(r)}},Jr=()=>async(e,t)=>{try{e({type:Vv});const n=t().project.one.id,r=await Oi.all(n);return e({type:Kp,payload:r.data}),Promise.resolve(r.data)}catch(n){console.log(n)}},Kv=e=>async t=>{try{const n=await Oi.delete(e);await t(Jr())}catch(n){console.log(n)}},wl=(e,t)=>async n=>{try{const r=await Oi.status(e,t);await n(Jr())}catch(r){console.log(r)}},Qp="CREATE_PROJECT",Zp="FETCH_PROJECTS",Bu="FETCH_PROJECT",Hu="LOADING_PROJECT",Qv=e=>async(t,n)=>{try{const r=n().auth.user.id;t({type:Hu,payload:!0}),e.due==""&&(e.due=null);const o=await Ri.createProject({...e,owner:r});t({type:Qp,payload:o.data})}catch(r){console.log(r)}},Vu=()=>async(e,t)=>{try{const n=t().auth.user.id;e({type:Hu,payload:!0});const r=await Ri.getProjects(n);e({type:Zp,payload:r.data}),r.data&&(e({type:Bu,payload:r.data[0]}),e(Jr()))}catch(n){console.log(n)}},Zv=e=>async t=>{const n=await Ri.getProject(e);n.data.due==null&&(n.data.due=""),t({type:Bu,payload:n.data})},Jv=e=>async t=>{e.due==""&&(e.due=null),await Ri.updateProject(e),await t(Vu())},Nc={projects:[],loading:!1,one:null};function Jp(e=Nc,t){switch(t.type){case Hu:return{...e,loading:t.payload};case Qp:return{...e,projects:[...e.projects,t.payload]};case Zp:return{...e,projects:t.payload,loading:!1};case Bu:return{...e,one:t.payload};case qr:return Nc;default:return e}}const Tc={tasks:[]};function qp(e=Tc,t){switch(t.type){case Kp:return{...e,tasks:t.payload};case qr:return Tc;default:return e}}const qr="CLEAR";Fp({task:Bp,auth:Hp,note:Wp,project:Jp,projectTask:qp});const qv=()=>p.jsx("svg",{width:"24",height:"28",viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M19.5 22V21H19.4741L19.4483 21.0013L19.5 22ZM5 7C4.44772 7 4 7.44772 4 8C4 8.55228 4.44772 9 5 9V7ZM19 9C19.5523 9 20 8.55228 20 8C20 7.44772 19.5523 7 19 7V9ZM5 12C4.44772 12 4 12.4477 4 13C4 13.5523 4.44772 14 5 14V12ZM19 14C19.5523 14 20 13.5523 20 13C20 12.4477 19.5523 12 19 12V14ZM5 17C4.44772 17 4 17.4477 4 18C4 18.5523 4.44772 19 5 19V17ZM19 19C19.5523 19 20 18.5523 20 18C20 17.4477 19.5523 17 19 17V19ZM17.5 27V28C17.7652 28 18.0196 27.8946 18.2071 27.7071L17.5 27ZM22.5 22L23.2071 22.7071C23.3946 22.5196 23.5 22.2652 23.5 22H22.5ZM3.5 2H20.5V0H3.5V2ZM2.5 25V3H0.5V25H2.5ZM3.5 26C2.94772 26 2.5 25.5523 2.5 25H0.5C0.5 26.6569 1.84315 28 3.5 28V26ZM19.4483 21.0013C17.8806 21.0825 16.3657 22.306 16.503 24.0773L18.497 23.9227C18.468 23.5481 18.8103 23.0371 19.5517 22.9987L19.4483 21.0013ZM20.5 2C21.0523 2 21.5 2.44772 21.5 3H23.5C23.5 1.34315 22.1569 0 20.5 0V2ZM3.5 0C1.84315 0 0.5 1.34315 0.5 3H2.5C2.5 2.44771 2.94772 2 3.5 2V0ZM5 9H19V7H5V9ZM5 14H19V12H5V14ZM5 19H19V17H5V19ZM16.5 24V27H18.5V24H16.5ZM17.5 26H3.5V28H17.5V26ZM21.5 3V22H23.5V3H21.5ZM22.5 21H19.5V23H22.5V21ZM21.7929 21.2929L16.7929 26.2929L18.2071 27.7071L23.2071 22.7071L21.7929 21.2929ZM17.8714 24.9285L22.8714 22.9285L22.1286 21.0715L17.1286 23.0715L17.8714 24.9285ZM18.5715 21.6286L16.5715 26.6286L18.4285 27.3714L20.4285 22.3714L18.5715 21.6286Z",fill:"black"})}),Gv=()=>p.jsx("svg",{width:"20",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M1.30608 0.598877L22.5193 21.8121M0.598999 21.8121L21.8122 0.5989",stroke:"#FF375F","stroke-width":"2"})}),Xv=()=>p.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M22.1765 17.4545C22.7288 17.4545 23.1765 17.0068 23.1765 16.4545C23.1765 15.9023 22.7288 15.4545 22.1765 15.4545V17.4545ZM0.292893 15.7474C-0.0976311 16.138 -0.0976311 16.7711 0.292893 17.1617L6.65685 23.5256C7.04738 23.9161 7.68054 23.9161 8.07107 23.5256C8.46159 23.1351 8.46159 22.5019 8.07107 22.1114L2.41421 16.4545L8.07107 10.7977C8.46159 10.4072 8.46159 9.774 8.07107 9.38348C7.68054 8.99295 7.04738 8.99295 6.65685 9.38348L0.292893 15.7474ZM9.70588 11.9091C9.70588 12.4614 10.1536 12.9091 10.7059 12.9091C11.2582 12.9091 11.7059 12.4614 11.7059 11.9091H9.70588ZM11.7059 21C11.7059 20.4477 11.2582 20 10.7059 20C10.1536 20 9.70588 20.4477 9.70588 21H11.7059ZM13.3529 2H28.3529V0H13.3529V2ZM30 3.72727V28.2727H32V3.72727H30ZM28.3529 30H13.3529V32H28.3529V30ZM13.3529 30C12.4712 30 11.7059 29.255 11.7059 28.2727H9.70588C9.70588 30.3029 11.3108 32 13.3529 32V30ZM30 28.2727C30 29.255 29.2347 30 28.3529 30V32C30.3951 32 32 30.3029 32 28.2727H30ZM28.3529 2C29.2347 2 30 2.74498 30 3.72727H32C32 1.69711 30.3951 0 28.3529 0V2ZM13.3529 0C11.3108 0 9.70588 1.69711 9.70588 3.72727H11.7059C11.7059 2.74498 12.4712 2 13.3529 2V0ZM22.1765 15.4545H10.7059V17.4545H22.1765V15.4545ZM10.7059 15.4545H1V17.4545H10.7059V15.4545ZM11.7059 11.9091V3.72727H9.70588V11.9091H11.7059ZM11.7059 28.2727V21H9.70588V28.2727H11.7059Z",fill:"#FF375F"})}),Sl=()=>p.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M14 4V1C14 0.734784 14.1054 0.48043 14.2929 0.292893C14.4804 0.105357 14.7348 0 15 0C15.2652 0 15.5196 0.105357 15.7071 0.292893C15.8946 0.48043 16 0.734784 16 1V4C16 4.26522 15.8946 4.51957 15.7071 4.70711C15.5196 4.89464 15.2652 5 15 5C14.7348 5 14.4804 4.89464 14.2929 4.70711C14.1054 4.51957 14 4.26522 14 4ZM15 7C13.4177 7 11.871 7.46919 10.5554 8.34824C9.23984 9.22729 8.21447 10.4767 7.60896 11.9385C7.00346 13.4003 6.84504 15.0089 7.15372 16.5607C7.4624 18.1126 8.22433 19.538 9.34315 20.6569C10.462 21.7757 11.8874 22.5376 13.4393 22.8463C14.9911 23.155 16.5997 22.9965 18.0615 22.391C19.5233 21.7855 20.7727 20.7602 21.6518 19.4446C22.5308 18.129 23 16.5823 23 15C22.9977 12.879 22.1541 10.8455 20.6543 9.3457C19.1545 7.84591 17.121 7.00232 15 7ZM6.2925 7.7075C6.48014 7.89514 6.73464 8.00056 7 8.00056C7.26536 8.00056 7.51986 7.89514 7.7075 7.7075C7.89514 7.51986 8.00056 7.26536 8.00056 7C8.00056 6.73464 7.89514 6.48014 7.7075 6.2925L5.7075 4.2925C5.51986 4.10486 5.26536 3.99944 5 3.99944C4.73464 3.99944 4.48014 4.10486 4.2925 4.2925C4.10486 4.48014 3.99944 4.73464 3.99944 5C3.99944 5.26536 4.10486 5.51986 4.2925 5.7075L6.2925 7.7075ZM6.2925 22.2925L4.2925 24.2925C4.10486 24.4801 3.99944 24.7346 3.99944 25C3.99944 25.2654 4.10486 25.5199 4.2925 25.7075C4.48014 25.8951 4.73464 26.0006 5 26.0006C5.26536 26.0006 5.51986 25.8951 5.7075 25.7075L7.7075 23.7075C7.80041 23.6146 7.87411 23.5043 7.92439 23.3829C7.97468 23.2615 8.00056 23.1314 8.00056 23C8.00056 22.8686 7.97468 22.7385 7.92439 22.6171C7.87411 22.4957 7.80041 22.3854 7.7075 22.2925C7.61459 22.1996 7.50429 22.1259 7.3829 22.0756C7.2615 22.0253 7.13139 21.9994 7 21.9994C6.86861 21.9994 6.7385 22.0253 6.6171 22.0756C6.49571 22.1259 6.38541 22.1996 6.2925 22.2925ZM23 8C23.1314 8.0001 23.2615 7.97432 23.3829 7.92414C23.5042 7.87395 23.6146 7.80033 23.7075 7.7075L25.7075 5.7075C25.8951 5.51986 26.0006 5.26536 26.0006 5C26.0006 4.73464 25.8951 4.48014 25.7075 4.2925C25.5199 4.10486 25.2654 3.99944 25 3.99944C24.7346 3.99944 24.4801 4.10486 24.2925 4.2925L22.2925 6.2925C22.1525 6.43236 22.0571 6.61061 22.0185 6.80469C21.9798 6.99878 21.9996 7.19997 22.0754 7.38279C22.1511 7.56561 22.2794 7.72185 22.444 7.83172C22.6086 7.94159 22.8021 8.00016 23 8ZM23.7075 22.2925C23.5199 22.1049 23.2654 21.9994 23 21.9994C22.7346 21.9994 22.4801 22.1049 22.2925 22.2925C22.1049 22.4801 21.9994 22.7346 21.9994 23C21.9994 23.2654 22.1049 23.5199 22.2925 23.7075L24.2925 25.7075C24.3854 25.8004 24.4957 25.8741 24.6171 25.9244C24.7385 25.9747 24.8686 26.0006 25 26.0006C25.1314 26.0006 25.2615 25.9747 25.3829 25.9244C25.5043 25.8741 25.6146 25.8004 25.7075 25.7075C25.8004 25.6146 25.8741 25.5043 25.9244 25.3829C25.9747 25.2615 26.0006 25.1314 26.0006 25C26.0006 24.8686 25.9747 24.7385 25.9244 24.6171C25.8741 24.4957 25.8004 24.3854 25.7075 24.2925L23.7075 22.2925ZM5 15C5 14.7348 4.89464 14.4804 4.70711 14.2929C4.51957 14.1054 4.26522 14 4 14H1C0.734784 14 0.48043 14.1054 0.292893 14.2929C0.105357 14.4804 0 14.7348 0 15C0 15.2652 0.105357 15.5196 0.292893 15.7071C0.48043 15.8946 0.734784 16 1 16H4C4.26522 16 4.51957 15.8946 4.70711 15.7071C4.89464 15.5196 5 15.2652 5 15ZM15 25C14.7348 25 14.4804 25.1054 14.2929 25.2929C14.1054 25.4804 14 25.7348 14 26V29C14 29.2652 14.1054 29.5196 14.2929 29.7071C14.4804 29.8946 14.7348 30 15 30C15.2652 30 15.5196 29.8946 15.7071 29.7071C15.8946 29.5196 16 29.2652 16 29V26C16 25.7348 15.8946 25.4804 15.7071 25.2929C15.5196 25.1054 15.2652 25 15 25ZM29 14H26C25.7348 14 25.4804 14.1054 25.2929 14.2929C25.1054 14.4804 25 14.7348 25 15C25 15.2652 25.1054 15.5196 25.2929 15.7071C25.4804 15.8946 25.7348 16 26 16H29C29.2652 16 29.5196 15.8946 29.7071 15.7071C29.8946 15.5196 30 15.2652 30 15C30 14.7348 29.8946 14.4804 29.7071 14.2929C29.5196 14.1054 29.2652 14 29 14Z",fill:"#A040CE"})}),xl=()=>p.jsx("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M12.5 25C19.4037 25 25 19.4037 25 12.5C25 11.9213 24.1325 11.825 23.8337 12.3213C23.1966 13.3767 22.3275 14.2733 21.2925 14.9431C20.2575 15.6129 19.0836 16.0384 17.8598 16.1874C16.636 16.3363 15.3943 16.2048 14.2288 15.8028C13.0633 15.4009 12.0046 14.7389 11.1329 13.8671C10.2611 12.9954 9.59915 11.9367 9.19715 10.7712C8.79516 9.60571 8.66366 8.36404 8.81262 7.14021C8.96158 5.91638 9.38709 4.7425 10.0569 3.70748C10.7267 2.67246 11.6233 1.80344 12.6787 1.16625C13.175 0.86625 13.0787 0 12.5 0C5.59625 0 0 5.59625 0 12.5C0 19.4037 5.59625 25 12.5 25Z",fill:"#A040CE"})});function Yv({setOpen:e,open:t,user:n}){const r=["home","projects","tasks"],o=ct(),i=Ut(),l=ft(),s=a=>{i(a.target.id),e()},u=()=>{l({type:qr}),l(ev())};return p.jsxs("div",{className:"sidebar",style:{left:t?0:""},children:[p.jsx("div",{className:"sidebar__options",children:r.map((a,f)=>p.jsx("div",{onClick:s,id:a,className:o.pathname.includes(a)?"sidebar__option active":"sidebar__option",children:a},f))}),n&&p.jsx("div",{onClick:u,color:"red",children:p.jsx(Xv,{})})]})}function bv({user:e,dark:t,isDark:n}){const r=ct(),[o,i]=E.useState(!1),l=Ae(s=>s.auth.error);return E.useEffect(()=>{},[n]),r.pathname=="/sign-in"||r.pathname=="/sign-up"?p.jsx("div",{className:"navbar",style:{position:"fixed",border:"none"},onClick:()=>t(),children:n?p.jsx(xl,{onClick:()=>t()}):p.jsx(Sl,{onClick:()=>t()})}):p.jsxs("div",{className:o?"top":"top over",children:[p.jsxs("nav",{className:"navbar",children:[p.jsxs("div",{className:"projectTitle",children:[p.jsx("div",{className:"sidebar__logo",onClick:()=>i(!o),children:"☰"}),p.jsx(Iu,{}),p.jsxs(hr,{to:"",children:["TaskMaster",l]})]}),e!=null?p.jsxs("div",{className:"user",children:[p.jsx("div",{onClick:()=>t(),children:n?p.jsx(xl,{onClick:t}):p.jsx(Sl,{onClick:()=>t()})}),p.jsx("div",{children:p.jsx("p",{id:"user-name",children:e.name})})]}):p.jsxs("div",{className:"sign",children:[p.jsx("div",{onClick:()=>t(),children:n?p.jsx(xl,{onClick:()=>t()}):p.jsx(Sl,{onClick:()=>t()})}),p.jsx("button",{className:"tertiary-button signIn",children:p.jsx(hr,{to:"/sign-in",children:"Sign In"})}),p.jsx("button",{className:"secondary-button signUp",children:p.jsx(hr,{to:"/sign-up",children:"Sign Up"})})]})]}),p.jsx(Yv,{setOpen:()=>i(!o),open:o,user:e!=null})]})}function e2(){return p.jsx("div",{className:"homePage",children:p.jsx("h1",{children:"Welcome to TaskMaster"})})}function t2({note:e,save:t,loggedIn:n}){const r=ct(),[o,i]=E.useState(e.content),[l,s]=E.useState(!1);return E.useEffect(()=>{i(e.content);const u=a=>{a.key==="Escape"?(s(!1),t(o)):a.shiftKey&&a.key==="n"&&s(!0)};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[e]),r.pathname=="/sign-in"||r.pathname=="/sign-up"?p.jsx(p.Fragment,{}):l?p.jsxs("div",{className:"notes",children:[p.jsx("div",{className:"notes-options",onClick:()=>{s(!1),t(o)},children:p.jsx(Gv,{})}),p.jsx("textarea",{disabled:!n,value:o,onChange:u=>i(u.target.value)})]}):p.jsx("div",{className:"notes",style:{height:"35px",border:"1px solid rgb(var(--second))"},onClick:()=>s(!0),children:p.jsx(qv,{})})}function n2({loggedIn:e}){const t=ft(),n=Ae(f=>f.task.tasks),[r,o]=E.useState(!1),[i,l]=E.useState(!1),[s,u]=E.useState({task:"",description:"",completion:0,deadline:""}),a=f=>{f.preventDefault(),console.log(s),r?(t(Av(s)).then(()=>{t(Ar())}),o(!1)):t(Dv(s)),l(!1)};return E.useEffect(()=>{e&&t(Ar())},[e]),p.jsxs("div",{className:"task-page",children:[p.jsxs("div",{className:"tasks-title",children:[p.jsx("h1",{children:"Tasks"}),p.jsx("div",{className:"task-add",children:p.jsx("button",{className:"secondary-button",onClick:()=>l(!i),children:"New"})})]}),i&&p.jsx("div",{className:"create-task",children:p.jsxs("form",{onSubmit:a,children:[p.jsx("input",{type:"text",value:s.task,onChange:f=>u({...s,task:f.target.value}),placeholder:"Task Name",required:!0}),p.jsx("textarea",{type:"text",value:s.description,onChange:f=>u({...s,description:f.target.value}),placeholder:"Task Description"}),p.jsxs("div",{className:"task-completion",children:[p.jsxs("output",{for:"completion",onforminput:"value = completion.valueAsNumber;",children:["Completion: ",s.completion,"%"]}),p.jsx("input",{type:"range",min:0,max:100,value:s.completion,onChange:f=>u({...s,completion:f.target.value}),name:"completion"})]}),p.jsx("input",{type:"date",min:new Date().toISOString().split("T")[0],value:s.deadline,onChange:f=>u({...s,deadline:f.target.value})}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>{o(!1),l(!1),u({task:"",description:"",completion:0,deadline:""})},children:"cancel"}),p.jsx("button",{type:"submit",children:r?"Update":"Create"})]})]})}),p.jsx("div",{className:"task-table-container",children:p.jsxs("table",{className:"task-table",children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{children:"Task"}),p.jsx("th",{children:"description"}),p.jsx("th",{children:"progress"}),p.jsx("th",{children:"deadline"}),p.jsx("th",{children:"Actions"})]})}),p.jsx("tbody",{children:n.map(f=>p.jsxs("tr",{style:{backgroundColor:`rgba(var(--low), ${f.completion/100})`},children:[p.jsx("td",{children:f.task}),p.jsx("td",{children:f.description}),p.jsxs("td",{children:[f.completion,"%"]}),p.jsx("td",{children:f.deadline&&f.deadline}),p.jsxs("td",{children:[p.jsx("button",{onClick:()=>{u({...f,deadline:f.deadline!=null?f.deadline:""}),l(!0),o(!0)},children:"update"}),p.jsx("button",{onClick:()=>t(zv(index)),children:"delete"})]})]},f.id))})]})})]})}function r2({tasks:e=[],newTask:t,users:n=[]}){const[r,o]=E.useState([]),[i,l]=E.useState([]),[s,u]=E.useState([]),a=ft(),f=()=>{try{r.map(d=>{e.find(m=>m.id==d.id).status!="To Do"&&a(wl(d.id,"To Do"))}),i.map(d=>{e.find(m=>m.id==d.id).status!="In Progress"&&a(wl(d.id,"In Progress"))}),s.map(d=>{e.find(m=>m.id==d.id).status!="Completed"&&a(wl(d.id,"Completed"))})}catch(d){console.log(d)}},c=(d,m)=>{d.dataTransfer.setData("from",m.from),d.dataTransfer.setData("id",m.id)},g=(d,m)=>{if(m=="delete"){a(Kv(d.dataTransfer.getData("id")));return}const S=d.dataTransfer.getData("from"),y=d.dataTransfer.getData("id");if(S==m)return;let h=null;S=="todo"?(h=r.find(v=>v.id==y),o(r.filter(v=>v.id!=y))):S=="in progress"?(h=i.find(v=>v.id==y),l(i.filter(v=>v.id!=y))):S=="completed"&&(h=s.find(v=>v.id==y),u(s.filter(v=>v.id!=y))),m=="todo"?o([...r,h]):m=="in progress"?l([...i,h]):m=="completed"&&u([...s,h])},w=d=>{d.preventDefault()};return E.useEffect(()=>(e.map(d=>{d.status==="To Do"?o(m=>[...m,d]):d.status==="In Progress"?l(m=>[...m,d]):d.status==="Completed"&&u(m=>[...m,d])}),()=>{o([]),l([]),u([])}),[e]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"project-item-grid",children:[p.jsx("div",{className:"project-task-title",children:"todo"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"todo"),children:r.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"todo",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-title",children:"inprogress"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"in progress"),children:i.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"in progress",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-title",children:"completed"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"completed"),children:s.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"completed",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-delete",onDragOver:w,onDrop:d=>g(d,"delete"),children:"delete"}),p.jsxs("div",{className:"project-task-options",children:[p.jsx("button",{onClick:t,children:"add Task"}),p.jsx("button",{onClick:()=>f(),children:"save changes"})]})]})})}function o2({close:e}){const t=ft(),n=Ut(),r=Ae(m=>m.auth.all),o=Ae(m=>m.project.one),i=Ae(m=>m.projectTask.tasks),[l,s]=E.useState(!1),[u,a]=E.useState(!1),[f,c]=E.useState({title:"",description:"",deadline:"",priority:null,difficulty:null,assigned_to:null}),g=()=>{n("/projects/modify",{state:{edit:!0}})},w=m=>{m.preventDefault(),console.log("created"),t(Wv(o.id,f)),c({title:"",description:"",completion:0,deadline:"",priority:null,difficulty:null,assigned_to:null}),s(!1)},d=()=>{u&&c({priority:null,difficulty:null,assigned_to:null}),a(!u)};return E.useEffect(()=>{t(Jr(o.id)),t(Au());const m=S=>{console.log(S.key),S.key==="Escape"&&e()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[]),r==null||o==null||i==null?p.jsx("h1",{children:"Loading"}):p.jsxs(p.Fragment,{children:[o&&p.jsxs("div",{className:"projectListTitle",children:[p.jsx("h1",{children:o.title}),p.jsx("div",{className:"projectListTitle--add",children:p.jsx("button",{className:"secondary-button",onClick:g,children:"edit"})})]}),l&&p.jsx("div",{className:"create-project-task",children:p.jsxs("form",{onSubmit:w,children:[p.jsx("input",{type:"text",value:f.title,onChange:m=>c({...f,title:m.target.value}),placeholder:"Task Title",required:!0}),p.jsx("textarea",{type:"text",value:f.description,onChange:m=>c({...f,description:m.target.value}),placeholder:"Task Description",required:!0}),p.jsx("input",{type:"date",min:new Date().toISOString().split("T")[0],value:f.deadline,onChange:m=>c({...f,deadline:m.target.value})}),p.jsxs("div",{className:"additional",onClick:d,children:[p.jsx("div",{children:"additional details"}),p.jsx("div",{children:u?"-":"+"})]}),u&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"element",children:[p.jsx("label",{for:"priority",children:"Priority"}),p.jsxs("select",{id:"priority",defaultValue:"default",onChange:m=>c({...f,priority:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"default"}),p.jsx("option",{value:"High",children:"High"}),p.jsx("option",{value:"Medium",children:"Medium"}),p.jsx("option",{value:"Low",children:"Low"})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("label",{htmlFor:"difficulty",children:"difficulty"}),p.jsxs("select",{id:"difficulty",defaultValue:"default",onChange:m=>c({...f,difficulty:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"default"}),p.jsx("option",{value:"High",children:"High"}),p.jsx("option",{value:"Medium",children:"Medium"}),p.jsx("option",{value:"Low",children:"Low"})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("label",{htmlFor:"assign",children:"Assign to"}),p.jsxs("select",{id:"assign",defaultValue:"Select",onChange:m=>c({...f,assigned_to:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"Select"}),r.map((m,S)=>m.name!="myself"?p.jsxs("option",{value:m.id,children:[m.name," -"," ",m.email]},S):p.jsx("option",{value:m.id,children:m.name},S))]})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>s(!1),children:"cancel"}),p.jsx("button",{type:"submit",children:"Create"})]})]})}),p.jsx(r2,{tasks:i,newTask:()=>s(!0),users:r})]})}function i2({loggedIn:e}){const t=ft(),n=Ae(s=>s.project),r=Ut(),[o,i]=E.useState(!1);E.useEffect(()=>{e&&t(Vu())},[e]);const l=s=>t(Zv(s)).then(()=>{i(!0)});return o?p.jsx(o2,{close:()=>i(!1)}):p.jsxs("div",{children:[p.jsxs("div",{className:"projectListTitle",children:[p.jsx("h1",{children:"Projects"}),p.jsx("div",{className:"projectListTitle--add",children:p.jsx("button",{className:"secondary-button",onClick:()=>r("/projects/modify"),children:"new"})})]}),n.loading?p.jsx("p",{children:"loading"}):p.jsx("div",{className:"projectList",children:n.projects.map((s,u)=>p.jsxs("div",{className:"project",onClick:()=>{l(s.id)},children:[p.jsxs("div",{className:"project-title",children:[p.jsx("div",{className:"title",children:s.title}),p.jsx("div",{className:"deadline",children:s.deadline&&s.deadline})]}),p.jsxs("div",{className:"project-description",children:["Description: ",p.jsx("br",{}),s.description||"empty"]})]},u))})]})}function l2(){const e=Ae(d=>d.auth.all),t=ft(),n=new Date().toISOString().split("T")[0],[r,o]=E.useState(null),[i,l]=E.useState([]),s=Ut(),u=ct(),a=Ae(d=>d.project.one),{edit:f}=u.state||!1,[c,g]=E.useState({title:"",description:"",due:"",group:!1,members:[]}),w=d=>{d.preventDefault(),f?(d.preventDefault(),t(Jv(c)).then(()=>{s("/projects")})):t(Qv(c)).then(()=>{t(Vu())}).then(()=>{s("/projects")})};return E.useEffect(()=>{if(t(Au()),f){g(a);const d=e.map(m=>{if(c.members.includes(m.id))return m.name}).filter(Boolean);l(d)}},[]),p.jsx("div",{className:"project-modify",children:p.jsxs("form",{onSubmit:w,children:[p.jsx("h2",{children:"Project"}),p.jsx("input",{type:"text",value:c.title,onChange:d=>g({...c,title:d.target.value}),required:!0,placeholder:"Project Title"}),p.jsx("textarea",{value:c.description,onChange:d=>g({...c,description:d.target.value}),required:!0,placeholder:"Project Description"}),p.jsx("input",{type:"date",value:c.due,min:n,onChange:d=>g({...c,due:d.target.value})}),p.jsxs("div",{children:["is this a group project?",p.jsx("input",{type:"checkbox",checked:c.group,onClick:d=>{g({...c,group:!c.group}),c.group||(l([]),o(null))}})]}),c.group?p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsxs("select",{defaultValue:"Select",onChange:d=>o(d.target.value),children:[p.jsx("option",{disabled:!0,children:"Select"}),e.map((d,m)=>{if(d.name!="myself")return p.jsxs("option",{value:m,children:[d.name," - ",d.email]},m)})]}),p.jsx("button",{type:"button",onClick:()=>{const d=e[r];r&&(!c.members.includes(d.id)||!i.includes(d.name))&&(g({...c,members:[...c.members,d.id]}),l([...i,d.name]))},children:"add member"})]}),p.jsxs("ul",{children:["members:",i.length==0?" None":"",i.map((d,m)=>p.jsx("li",{onClick:()=>{const S=i.filter((h,v)=>v!==m);l(S);const y=c.members.filter((h,v)=>v!=m);g({...c,members:y})},children:d},m))]})]}):p.jsx(p.Fragment,{}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>s("/projects"),children:"Cancel"}),p.jsx("button",{type:"submit",children:f?"Update":"Create"})]})]})})}function s2(){const e=Ae(l=>l.auth.user),t=Ae(l=>l.note),n=ft(),[r,o]=E.useState(document.body.classList.contains("dark")),i=()=>{document.body.classList.contains("dark")?(document.body.classList.remove("dark"),o(!1)):(document.body.classList.add("dark"),o(!0))};return E.useEffect(()=>{let l=!0;return window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&l&&(o(!0),document.body.classList.add("dark")),document.cookie.match("(^|;)\\s*user\\s*=\\s*([^;]+)")&&(n(zu()).then(()=>{n(Uv())}),n(Au())),()=>l=!1},[]),p.jsxs(L0,{children:[p.jsx(bv,{user:e,dark:i,isDark:r}),p.jsx(t2,{note:e==null?{content:""}:t,loggedIn:e!=null,save:l=>{t.content!=l&&n($v({...t,content:l}))}}),p.jsxs(_0,{children:[p.jsx(ht,{index:!0,path:"/home",element:p.jsx(e2,{})}),p.jsx(ht,{path:"/sign-in",element:p.jsx(kv,{loggedIn:e!=null})}),p.jsx(ht,{path:"/sign-up",element:p.jsx(_v,{loggedIn:e!=null})}),p.jsx(ht,{path:"/tasks",element:p.jsx(n2,{loggedIn:e!=null})}),p.jsx(ht,{path:"/projects",element:p.jsx(i2,{loggedIn:e!=null})}),p.jsx(ht,{path:"/projects/modify",element:p.jsx(l2,{})}),p.jsx(ht,{path:"*",element:p.jsx(E0,{to:"/home",replace:!0})})]})]})}var Gp=Symbol.for("immer-nothing"),Rc=Symbol.for("immer-draftable"),_e=Symbol.for("immer-state");function Ve(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fn=Object.getPrototypeOf;function nn(e){return!!e&&!!e[_e]}function rn(e){var t;return e?Xp(e)||Array.isArray(e)||!!e[Rc]||!!((t=e.constructor)!=null&&t[Rc])||Mi(e)||Di(e):!1}var u2=Object.prototype.constructor.toString();function Xp(e){if(!e||typeof e!="object")return!1;const t=Fn(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===u2}function ii(e,t){Li(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Li(e){const t=e[_e];return t?t.type_:Array.isArray(e)?1:Mi(e)?2:Di(e)?3:0}function js(e,t){return Li(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Yp(e,t,n){const r=Li(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function a2(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Mi(e){return e instanceof Map}function Di(e){return e instanceof Set}function Wt(e){return e.copy_||e.base_}function Ps(e,t){if(Mi(e))return new Map(e);if(Di(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Xp(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[_e];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=c2),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Wu(r,!0))),e}function c2(){Ve(2)}function Ai(e){return Object.isFrozen(e)}var f2={};function on(e){const t=f2[e];return t||Ve(0,e),t}var zr;function bp(){return zr}function d2(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Oc(e,t){t&&(on("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ns(e){Ts(e),e.drafts_.forEach(p2),e.drafts_=null}function Ts(e){e===zr&&(zr=e.parent_)}function Lc(e){return zr=d2(zr,e)}function p2(e){const t=e[_e];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Mc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_e].modified_&&(Ns(t),Ve(4)),rn(e)&&(e=li(t,e),t.parent_||si(t,e)),t.patches_&&on("Patches").generateReplacementPatches_(n[_e].base_,e,t.patches_,t.inversePatches_)):e=li(t,n,[]),Ns(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gp?e:void 0}function li(e,t,n){if(Ai(t))return t;const r=t[_e];if(!r)return ii(t,(o,i)=>Dc(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return si(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,l=!1;r.type_===3&&(i=new Set(o),o.clear(),l=!0),ii(i,(s,u)=>Dc(e,r,o,s,u,n,l)),si(e,o,!1),n&&e.patches_&&on("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Dc(e,t,n,r,o,i,l){if(nn(o)){const s=i&&t&&t.type_!==3&&!js(t.assigned_,r)?i.concat(r):void 0,u=li(e,o,s);if(Yp(n,r,u),nn(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(rn(o)&&!Ai(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;li(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&si(e,o)}}function si(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Wu(t,n)}function h2(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:bp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Ku;n&&(o=[r],i=Fr);const{revoke:l,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=l,s}var Ku={get(e,t){if(t===_e)return e;const n=Wt(e);if(!js(n,t))return m2(e,n,t);const r=n[t];return e.finalized_||!rn(r)?r:r===Cl(e.base_,t)?(El(e),e.copy_[t]=Os(r,e)):r},has(e,t){return t in Wt(e)},ownKeys(e){return Reflect.ownKeys(Wt(e))},set(e,t,n){const r=eh(Wt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Cl(Wt(e),t),i=o==null?void 0:o[_e];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(a2(n,o)&&(n!==void 0||js(e.base_,t)))return!0;El(e),Rs(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Cl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,El(e),Rs(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Wt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ve(11)},getPrototypeOf(e){return Fn(e.base_)},setPrototypeOf(){Ve(12)}},Fr={};ii(Ku,(e,t)=>{Fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Fr.deleteProperty=function(e,t){return Fr.set.call(this,e,t,void 0)};Fr.set=function(e,t,n){return Ku.set.call(this,e[0],t,n,e[0])};function Cl(e,t){const n=e[_e];return(n?Wt(n):e)[t]}function m2(e,t,n){var o;const r=eh(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function eh(e,t){if(!(t in e))return;let n=Fn(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fn(n)}}function Rs(e){e.modified_||(e.modified_=!0,e.parent_&&Rs(e.parent_))}function El(e){e.copy_||(e.copy_=Ps(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var y2=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const l=this;return function(u=i,...a){return l.produce(u,f=>n.call(this,f,...a))}}typeof n!="function"&&Ve(6),r!==void 0&&typeof r!="function"&&Ve(7);let o;if(rn(t)){const i=Lc(this),l=Os(t,void 0);let s=!0;try{o=n(l),s=!1}finally{s?Ns(i):Ts(i)}return Oc(i,r),Mc(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Gp&&(o=void 0),this.autoFreeze_&&Wu(o,!0),r){const i=[],l=[];on("Patches").generateReplacementPatches_(t,o,i,l),r(i,l)}return o}else Ve(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...s)=>this.produceWithPatches(l,u=>t(u,...s));let r,o;return[this.produce(t,n,(l,s)=>{r=l,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){rn(e)||Ve(8),nn(e)&&(e=th(e));const t=Lc(this),n=Os(e,void 0);return n[_e].isManual_=!0,Ts(t),n}finishDraft(e,t){const n=e&&e[_e];(!n||!n.isManual_)&&Ve(9);const{scope_:r}=n;return Oc(r,t),Mc(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=on("Patches").applyPatches_;return nn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Os(e,t){const n=Mi(e)?on("MapSet").proxyMap_(e,t):Di(e)?on("MapSet").proxySet_(e,t):h2(e,t);return(t?t.scope_:bp()).drafts_.push(n),n}function th(e){return nn(e)||Ve(10,e),nh(e)}function nh(e){if(!rn(e)||Ai(e))return e;const t=e[_e];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ps(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ps(e,!0);return ii(n,(r,o)=>{Yp(n,r,nh(o))}),t&&(t.finalized_=!1),n}var je=new y2;je.produce;je.produceWithPatches.bind(je);je.setAutoFreeze.bind(je);je.setUseStrictShallowCopy.bind(je);je.applyPatches.bind(je);je.createDraft.bind(je);je.finishDraft.bind(je);function v2(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function g2(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function w2(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ac=e=>Array.isArray(e)?e:[e];function S2(e){const t=Array.isArray(e[0])?e[0]:e;return w2(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function x2(e,t){const n=[],{length:r}=e;for(let o=0;o{n=yo(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function rh(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,l=0,s,u={},a=o.pop();typeof a=="object"&&(u=a,a=o.pop()),v2(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const f={...n,...u},{memoize:c,memoizeOptions:g=[],argsMemoize:w=Qu,argsMemoizeOptions:d=[],devModeChecks:m={}}=f,S=Ac(g),y=Ac(d),h=S2(o),v=c(function(){return i++,a.apply(null,arguments)},...S),C=w(function(){l++;const N=x2(h,arguments);return s=v.apply(null,N),s},...y);return Object.assign(C,{resultFunc:a,memoizedResultFunc:v,dependencies:h,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:c,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var _2=rh(Qu),j2=Object.assign((e,t=_2)=>{g2(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((l,s,u)=>(l[n[u]]=s,l),{}))},{withTypes:()=>j2});function oh(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var ih=oh(),P2=oh,N2=(...e)=>{const t=rh(...e),n=Object.assign((...r)=>{const o=t(...r),i=(l,...s)=>o(nn(l)?th(l):l,...s);return Object.assign(i,o),i},{withTypes:()=>n});return n};N2(Qu);var T2=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oi:oi.apply(null,arguments)};function zi(e,t){function n(...r){return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Rv(r)&&r.type===e,n}var lh=class or extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,or.prototype)}static get[Symbol.species](){return or}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new or(...t[0].concat(this)):new or(...t.concat(this))}};function R2(e){return typeof e=="boolean"}var O2=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let l=new lh;return n&&(R2(n)?l.push(ih):l.push(P2(n.extraArgument))),l},L2="RTK_autoBatch",sh=e=>t=>{setTimeout(t,e)},M2=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sh(10),D2=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,l=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?M2:e.type==="callback"?e.queueNotification:sh(e.timeout),a=()=>{l=!1,i&&(i=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const c=()=>o&&f(),g=r.subscribe(c);return s.add(f),()=>{g(),s.delete(f)}},dispatch(f){var c;try{return o=!((c=f==null?void 0:f.meta)!=null&&c[L2]),i=!o,i&&(l||(l=!0,u(a))),r.dispatch(f)}finally{o=!0}}})},A2=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new lh(e);return r&&o.push(D2(typeof r=="object"?r:void 0)),o},z2=!0;function F2(e){const t=O2(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(Uu(n))s=Fp(n);else throw new Error(Fi(1));let u;typeof r=="function"?u=r(t):u=t();let a=oi;o&&(a=T2({trace:!z2,...typeof o=="object"&&o}));const f=Tv(...u),c=A2(f);let g=typeof l=="function"?l(c):c();const w=a(...g);return zp(s,i,w)}var I2="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",U2=(e=21)=>{let t="",n=e;for(;n--;)t+=I2[Math.random()*64|0];return t},$2=(e,t)=>{if(typeof e!="function")throw new Error(Fi(32))},Zu="listenerMiddleware",B2=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=zi(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Fi(21));return $2(i),{predicate:o,type:t,effect:i}},H2=Object.assign(e=>{const{type:t,predicate:n,effect:r}=B2(e);return{id:U2(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Fi(22))}}},{withTypes:()=>H2}),V2=Object.assign(zi(`${Zu}/add`),{withTypes:()=>V2});zi(`${Zu}/removeAll`);var W2=Object.assign(zi(`${Zu}/remove`),{withTypes:()=>W2});function Fi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const K2=F2({reducer:{task:Bp,auth:Hp,note:Wp,project:Jp,projectTask:qp},middleware:e=>e().concat(ih)});_l.createRoot(document.getElementById("root")).render(p.jsx(xv,{store:K2,children:p.jsx(s2,{})})); + */var Zr=E;function tv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nv=typeof Object.is=="function"?Object.is:tv,rv=Zr.useSyncExternalStore,ov=Zr.useRef,iv=Zr.useEffect,lv=Zr.useMemo,sv=Zr.useDebugValue;Lp.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=ov(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=lv(function(){function u(w){if(!a){if(a=!0,f=w,w=r(w),o!==void 0&&l.hasValue){var d=l.value;if(o(d,w))return c=d}return c=w}if(d=c,nv(f,w))return d;var m=r(w);return o!==void 0&&o(d,m)?d:(f=w,c=m)}var a=!1,f,c,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,r,o]);var s=rv(e,i[0],i[1]);return iv(function(){l.hasValue=!0,l.value=s},[s]),sv(s),s};Op.exports=Lp;var uv=Op.exports,Ce="default"in kl?Zc:kl,Cc=Symbol.for("react-redux-context"),Ec=typeof globalThis<"u"?globalThis:{};function av(){if(!Ce.createContext)return{};const e=Ec[Cc]??(Ec[Cc]=new Map);let t=e.get(Ce.createContext);return t||(t=Ce.createContext(null),e.set(Ce.createContext,t)),t}var Mt=av(),cv=()=>{throw new Error("uSES not initialized!")};function Fu(e=Mt){return function(){return Ce.useContext(e)}}var Mp=Fu(),Dp=cv,fv=e=>{Dp=e},dv=(e,t)=>e===t;function pv(e=Mt){const t=e===Mt?Mp:Fu(e),n=(r,o={})=>{const{equalityFn:i=dv,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:s,subscription:u,getServerState:a,stabilityCheck:f,identityFunctionCheck:c}=t();Ce.useRef(!0);const g=Ce.useCallback({[r.name](d){return r(d)}}[r.name],[r,f,l.stabilityCheck]),w=Dp(u.addNestedSub,s.getState,a||s.getState,g,i);return Ce.useDebugValue(w),w};return Object.assign(n,{withTypes:()=>n}),n}var Ae=pv();function hv(e){e()}function mv(){let e=null,t=null;return{clear(){e=null,t=null},notify(){hv(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var kc={notify(){},get:()=>[]};function yv(e,t){let n,r=kc,o=0,i=!1;function l(m){f();const S=r.subscribe(m);let y=!1;return()=>{y||(y=!0,S(),c())}}function s(){r.notify()}function u(){d.onStateChange&&d.onStateChange()}function a(){return i}function f(){o++,n||(n=e.subscribe(u),r=mv())}function c(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=kc)}function g(){i||(i=!0,f())}function w(){i&&(i=!1,c())}const d={addNestedSub:l,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:a,trySubscribe:g,tryUnsubscribe:w,getListeners:()=>r};return d}var vv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gv=typeof navigator<"u"&&navigator.product==="ReactNative",wv=vv||gv?Ce.useLayoutEffect:Ce.useEffect;function Sv({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const l=Ce.useMemo(()=>{const a=yv(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),s=Ce.useMemo(()=>e.getState(),[e]);wv(()=>{const{subscription:a}=l;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),s!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[l,s]);const u=t||Mt;return Ce.createElement(u.Provider,{value:l},n)}var xv=Sv;function Ap(e=Mt){const t=e===Mt?Mp:Fu(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Cv=Ap();function Ev(e=Mt){const t=e===Mt?Cv:Ap(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ft=Ev();fv(uv.useSyncExternalStoreWithSelector);function Iu({scale:e=1}){return p.jsx("div",{className:"logo",children:p.jsxs("svg",{width:`${52*e}`,height:`${53*e}`,viewBox:"0 0 52 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M41.0208 9.46202L41.4655 6.18356C41.5941 5.1578 40.9466 3.9206 39.9727 3.78519L38.3528 3.37342C37.9196 2.20635 37.2257 1.50963 36.1294 1.5C35.1555 1.5 34.3718 2.08429 33.906 2.90506L32.0374 2.68189C31.0635 2.54648 30.1319 3.56414 30.0034 4.5899L29.5587 7.86836L41.0208 9.46202Z",fill:"url(#paint0_linear_129_70)"}),p.jsx("path",{d:"M36.5741 3.37342C36.5741 3.63208 36.375 3.84177 36.1294 3.84177C35.8838 3.84177 35.6847 3.63208 35.6847 3.37342C35.6847 3.11475 35.8838 2.90506 36.1294 2.90506C36.375 2.90506 36.5741 3.11475 36.5741 3.37342Z",fill:"url(#paint1_linear_129_70)"}),p.jsx("path",{d:"M16.7317 47.7987L43.1829 51.4755C44.6437 51.6786 45.9843 50.5959 46.1771 49.0572L50.9768 10.7529C51.1696 9.21426 50.1416 7.80233 48.6807 7.59926L22.2296 3.92245C20.7687 3.71938 19.4281 4.80209 19.2353 6.34073C18.9276 8.79672 18.642 11.0755 18.3714 13.2354M25.9379 11.9733L43.7692 14.4525M42.8799 19.136L27.7656 17.0346M42.8799 23.8196L31.9302 22.2971M41.9905 28.5031L33.6265 27.3402M41.1012 33.1866L33.8335 32.1762M40.2118 37.8702L32.7851 36.8376M39.3225 42.5537L30.4068 41.3141M18.0819 18.864L18.2933 16.0627M28.0619 31.6424L30.7216 31.865M16.1403 44.5296L16.3517 41.7283M3.67566 29.6298L6.33533 29.8525M32.7851 36.8376C30.3922 43.2934 24.4297 47.867 17.453 47.867C8.36626 47.867 1 40.1085 1 30.5379C1 20.9674 8.36626 13.2088 17.453 13.2088C17.7612 13.2088 18.0674 13.2178 18.3714 13.2354M32.7851 36.8376C33.3289 35.3705 33.6883 33.8061 33.8335 32.1762M33.8335 32.1762C33.8815 31.6369 33.906 31.0904 33.906 30.5379C33.906 29.4455 33.81 28.3766 33.6265 27.3402M33.6265 27.3402C33.3088 25.5467 32.7289 23.8504 31.9302 22.2971M31.9302 22.2971C30.8844 20.2635 29.4637 18.475 27.7656 17.0346M27.7656 17.0346C25.1671 14.8303 21.919 13.441 18.3714 13.2354M41.4655 6.18356L41.0208 9.46202L29.5587 7.86836L30.0034 4.5899C30.1319 3.56414 31.0635 2.54648 32.0374 2.68189L33.906 2.90506C34.3718 2.08429 35.1555 1.5 36.1294 1.5C37.2257 1.50963 37.9196 2.20635 38.3528 3.37342L39.9727 3.78519C40.9466 3.9206 41.5941 5.1578 41.4655 6.18356ZM36.5741 3.37342C36.5741 3.63208 36.375 3.84177 36.1294 3.84177C35.8838 3.84177 35.6847 3.63208 35.6847 3.37342C35.6847 3.11475 35.8838 2.90506 36.1294 2.90506C36.375 2.90506 36.5741 3.11475 36.5741 3.37342ZM12.1169 29.1329L12.5616 29.2977C12.5616 29.2977 15.1394 32.1283 16.7317 33.8164L27.6805 23.981L28.5699 23.8196L16.8963 35.4702L12.1169 29.1329Z",stroke:"url(#paint2_linear_129_70)",strokeWidth:"1.9"}),p.jsxs("defs",{children:[p.jsxs("linearGradient",{id:"paint0_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]}),p.jsxs("linearGradient",{id:"paint1_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]}),p.jsxs("linearGradient",{id:"paint2_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]})]})]})})}function kv({loggedIn:e=!1}){const t=Ae(a=>a.auth.error),n=Ut(),[r,o]=E.useState(!1),[i,l]=E.useState({email:"",password:""}),s=ft(),u=a=>{a.preventDefault(),s(Yy(i))};return E.useEffect(()=>{e&&setTimeout(()=>{n(-1)},1e3)},[e]),e?p.jsx("p",{children:"please sign out first"}):p.jsxs("div",{className:"signInPage",children:[p.jsx(Iu,{scale:3}),p.jsx("h1",{children:"TaskMaster"}),p.jsxs("form",{onSubmit:u,children:[p.jsx("input",{type:"email",value:i.email,placeholder:"Email",onChange:a=>l({...i,email:a.target.value})}),p.jsxs("div",{className:"pass",children:[p.jsx("input",{type:r?"text":"password",value:i.password,placeholder:"Password",onChange:a=>l({...i,password:a.target.value})}),r?p.jsx("span",{className:"material-symbols-outlined",onClick:()=>o(!r),children:"visibility"}):p.jsx("span",{className:"material-symbols-outlined",onClick:()=>o(!r),children:"visibility_off"})]}),p.jsx("p",{className:"error",children:t}),p.jsx("button",{className:"primary-button",type:"submit",children:"sign in"}),p.jsx(hr,{to:"/sign-up",children:" don't have an account? sign up"})]})]})}function _v({loggedIn:e=!1}){const t=Ae(a=>a.auth.error),n=Ut(),[r,o]=E.useState(!1),[i,l]=E.useState({name:"",email:"",password:"",private:!1}),s=ft(),u=a=>{a.preventDefault(),s(by(i))};return E.useEffect(()=>{e&&setTimeout(()=>{n("home")},500)},[e]),e?p.jsx("p",{children:"please sign out first"}):p.jsxs("div",{className:"signUpPage",children:[p.jsx(Iu,{scale:3}),p.jsx("h1",{children:"TaskMaster"}),p.jsxs("form",{onSubmit:u,children:[p.jsx("input",{type:"text",value:i.name,placeholder:"Name",onChange:a=>{l({...i,name:a.target.value})},required:!0}),p.jsx("input",{type:"email",value:i.email,placeholder:"Email",onChange:a=>l({...i,email:a.target.value}),required:!0}),p.jsxs("div",{className:"pass",children:[p.jsx("input",{type:r?"text":"password",value:i.password,placeholder:"Password",onChange:a=>l({...i,password:a.target.value})}),r?p.jsx("span",{className:"material-symbols-outlined",onClick:()=>o(!r),children:"visibility"}):p.jsx("span",{className:"material-symbols-outlined",onClick:()=>o(!r),children:"visibility_off"})]}),p.jsxs("div",{className:"private",children:[p.jsx("input",{type:"checkbox",checked:i.private,onChange:a=>{l({...i,private:!i.private})}}),p.jsx("p",{children:"keep your account private?"})]}),p.jsx("p",{className:"error",children:t}),p.jsx("button",{className:"primary-button",type:"submit",children:"sign up"}),p.jsx(hr,{to:"/sign-in",children:" already have an account? sign in"})]})]})}function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var jv=typeof Symbol=="function"&&Symbol.observable||"@@observable",_c=jv,gl=()=>Math.random().toString(36).substring(7).split("").join("."),Pv={INIT:`@@redux/INIT${gl()}`,REPLACE:`@@redux/REPLACE${gl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gl()}`},ri=Pv;function Uu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function zp(e,t,n){if(typeof e!="function")throw new Error(re(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(re(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(re(1));return n(zp)(e,t)}let r=e,o=t,i=new Map,l=i,s=0,u=!1;function a(){l===i&&(l=new Map,i.forEach((S,y)=>{l.set(y,S)}))}function f(){if(u)throw new Error(re(3));return o}function c(S){if(typeof S!="function")throw new Error(re(4));if(u)throw new Error(re(5));let y=!0;a();const h=s++;return l.set(h,S),function(){if(y){if(u)throw new Error(re(6));y=!1,a(),l.delete(h),i=null}}}function g(S){if(!Uu(S))throw new Error(re(7));if(typeof S.type>"u")throw new Error(re(8));if(typeof S.type!="string")throw new Error(re(17));if(u)throw new Error(re(9));try{u=!0,o=r(o,S)}finally{u=!1}return(i=l).forEach(h=>{h()}),S}function w(S){if(typeof S!="function")throw new Error(re(10));r=S,g({type:ri.REPLACE})}function d(){const S=c;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(re(11));function h(){const C=y;C.next&&C.next(f())}return h(),{unsubscribe:S(h)}},[_c](){return this}}}return g({type:ri.INIT}),{dispatch:g,subscribe:c,getState:f,replaceReducer:w,[_c]:d}}function Nv(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ri.INIT})>"u")throw new Error(re(12));if(typeof n(void 0,{type:ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(re(13))})}function Fp(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw s&&s.type,new Error(re(14));a[c]=d,u=u||d!==w}return u=u||r.length!==Object.keys(l).length,u?a:l}}function oi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Tv(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(re(15))};const l={getState:o.getState,dispatch:(u,...a)=>i(u,...a)},s=e.map(u=>u(l));return i=oi(...s)(o.dispatch),{...o,dispatch:i}}}function Rv(e){return Uu(e)&&"type"in e&&typeof e.type=="string"}class Ov{constructor(){this.base="https://project-manager-jqsq.onrender.com/user/task"}create(t){return M.post(`${this.base}/create`,t)}all(t){return M.get(`${this.base}/list?owner=${t}`)}one(t){return M.get(`${this.base}/details?id=${t}`)}update(t){return M.put(`${this.base}/update`,t)}delete(t){return M.delete(`${this.base}/delete?id=${t}`)}}const Ti=new Ov,Ip="CREATE_TASK",Lv="UPDATE_TASK",Mv="DELETE_TASK",Up="ALL_TASK",$p="LOAD_TASK",Dv=e=>async(t,n)=>{try{const r=n().auth.user.id;e.deadline==""&&(e.deadline=null);const o=await Ti.create({...e,owner:r});return t({type:Ip,payload:o.data}),await t(Ar()),Promise.resolve(o.data)}catch(r){return Promise.reject(r)}},Ar=()=>async(e,t)=>{try{e({type:$p});const n=t().auth.user.id,r=await Ti.all(n);return e({type:Up,payload:r.data}),Promise.resolve(r.data)}catch(n){return Promise.reject(n)}},Av=e=>async t=>{try{e.deadline==""&&(e.deadline=null);const n=await Ti.update(e);return t({type:Lv,payload:n.data}),Ar()}catch(n){return Promise.reject(n)}},zv=e=>async t=>{try{const n=await Ti.delete(e);return t({type:Mv,payload:n.data}),Ar()}catch(n){return Promise.reject(n)}},jc={tasks:[],loading:!1};function Bp(e=jc,t){switch(t.type){case Ip:return{...e,tasks:[...e.tasks,t.payload]};case Up:return{...e,tasks:t.payload,loading:!1};case $p:return{...e,loading:!0};case Gr:return jc;default:return e}}const Fv={user:null,error:null,all:[]};function Hp(e=Fv,t){switch(t.type){case Rp:return{...e,all:t.payload};case Pp:return{...e,user:t.payload};case jp:return{...e,user:t.payload,error:null};case Np:return{...e,user:null};case Tp:return{...e,user:t.payload,error:null};case Xy:return{...e,user:null};case zn:return{...e,error:t.payload};default:return e}}class Iv{constructor(){this.base="https://project-manager-jqsq.onrender.com/notes"}get(t){return M.get(`${this.base}/?owner=${t}`)}update(t){return console.log(t),M.post(`${this.base}/update`,t)}}const Vp=new Iv,$u="UPDATE",Uv=()=>async(e,t)=>{try{const n=t().auth.user.id,r=await Vp.get(n);e({type:$u,payload:r.data})}catch(n){console.log(n)}},$v=e=>async(t,n)=>{try{const r=n().auth.user.id,o=await Vp.update({...e,owner:r});t({type:$u,payload:o.data})}catch(r){console.log(r)}},Pc={content:""};function Wp(e=Pc,t){switch(t.type){case $u:return t.payload;case Gr:return Pc;default:return e}}class Bv{constructor(){this.base="https://project-manager-jqsq.onrender.com/project"}getProjects(t){return M.get(`${this.base}/get-owned?owner=${t}`)}getProject(t){return M.get(`${this.base}/get?id=${t}`)}createProject(t){return M.post(`${this.base}/create`,t)}deleteProject(t){return M.delete(`${this.base}/delete?id=${t}`)}updateProject(t){return M.put(`${this.base}/update`,t)}}const Ri=new Bv;class Hv{constructor(){this.base="https://project-manager-jqsq.onrender.com/project/task"}create(t){return M.post(`${this.base}/create`,t)}all(t){return M.get(`${this.base}/list?owner=${t}`)}one(t){return M.get(`${this.base}/details?id=${t}`)}update(t){return M.put(`${this.base}/update`,t)}delete(t){return M.delete(`${this.base}/delete?id=${t}`)}status(t,n){return M.put(`${this.base}/status?id=${t}&status=${n}`)}}const Oi=new Hv,Kp="ALL_PROJECT_TASK",Vv="LOAD_PROJECT_TASK",Wv=(e,t)=>async n=>{try{const r=Object.keys(t).reduce((i,l)=>(t[l]!==null&&(i[l]=t[l]),i),{});r.deadline==""&&(r.deadline=null);const o=await Oi.create({...r,owner:e});await n(Jr())}catch(r){console.log(r)}},Jr=()=>async(e,t)=>{try{e({type:Vv});const n=t().project.one.id,r=await Oi.all(n);return e({type:Kp,payload:r.data}),Promise.resolve(r.data)}catch(n){console.log(n)}},Kv=e=>async t=>{try{const n=await Oi.delete(e);await t(Jr())}catch(n){console.log(n)}},wl=(e,t)=>async n=>{try{const r=await Oi.status(e,t);await n(Jr())}catch(r){console.log(r)}},Qp="CREATE_PROJECT",Zp="FETCH_PROJECTS",Bu="FETCH_PROJECT",Hu="LOADING_PROJECT",Qv=e=>async(t,n)=>{try{const r=n().auth.user.id;t({type:Hu,payload:!0}),e.due==""&&(e.due=null);const o=await Ri.createProject({...e,owner:r});t({type:Qp,payload:o.data})}catch(r){console.log(r)}},Vu=()=>async(e,t)=>{try{const n=t().auth.user.id;e({type:Hu,payload:!0});const r=await Ri.getProjects(n);e({type:Zp,payload:r.data}),r.data&&(e({type:Bu,payload:r.data[0]}),e(Jr()))}catch(n){console.log(n)}},Zv=e=>async t=>{const n=await Ri.getProject(e);n.data.due==null&&(n.data.due=""),t({type:Bu,payload:n.data})},Jv=e=>async t=>{e.due==""&&(e.due=null),await Ri.updateProject(e),await t(Vu())},Nc={projects:[],loading:!1,one:null};function Jp(e=Nc,t){switch(t.type){case Hu:return{...e,loading:t.payload};case Qp:return{...e,projects:[...e.projects,t.payload]};case Zp:return{...e,projects:t.payload,loading:!1};case Bu:return{...e,one:t.payload};case Gr:return Nc;default:return e}}const Tc={tasks:[]};function Gp(e=Tc,t){switch(t.type){case Kp:return{...e,tasks:t.payload};case Gr:return Tc;default:return e}}const Gr="CLEAR";Fp({task:Bp,auth:Hp,note:Wp,project:Jp,projectTask:Gp});const Gv=()=>p.jsx("svg",{width:"24",height:"28",viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M19.5 22V21H19.4741L19.4483 21.0013L19.5 22ZM5 7C4.44772 7 4 7.44772 4 8C4 8.55228 4.44772 9 5 9V7ZM19 9C19.5523 9 20 8.55228 20 8C20 7.44772 19.5523 7 19 7V9ZM5 12C4.44772 12 4 12.4477 4 13C4 13.5523 4.44772 14 5 14V12ZM19 14C19.5523 14 20 13.5523 20 13C20 12.4477 19.5523 12 19 12V14ZM5 17C4.44772 17 4 17.4477 4 18C4 18.5523 4.44772 19 5 19V17ZM19 19C19.5523 19 20 18.5523 20 18C20 17.4477 19.5523 17 19 17V19ZM17.5 27V28C17.7652 28 18.0196 27.8946 18.2071 27.7071L17.5 27ZM22.5 22L23.2071 22.7071C23.3946 22.5196 23.5 22.2652 23.5 22H22.5ZM3.5 2H20.5V0H3.5V2ZM2.5 25V3H0.5V25H2.5ZM3.5 26C2.94772 26 2.5 25.5523 2.5 25H0.5C0.5 26.6569 1.84315 28 3.5 28V26ZM19.4483 21.0013C17.8806 21.0825 16.3657 22.306 16.503 24.0773L18.497 23.9227C18.468 23.5481 18.8103 23.0371 19.5517 22.9987L19.4483 21.0013ZM20.5 2C21.0523 2 21.5 2.44772 21.5 3H23.5C23.5 1.34315 22.1569 0 20.5 0V2ZM3.5 0C1.84315 0 0.5 1.34315 0.5 3H2.5C2.5 2.44771 2.94772 2 3.5 2V0ZM5 9H19V7H5V9ZM5 14H19V12H5V14ZM5 19H19V17H5V19ZM16.5 24V27H18.5V24H16.5ZM17.5 26H3.5V28H17.5V26ZM21.5 3V22H23.5V3H21.5ZM22.5 21H19.5V23H22.5V21ZM21.7929 21.2929L16.7929 26.2929L18.2071 27.7071L23.2071 22.7071L21.7929 21.2929ZM17.8714 24.9285L22.8714 22.9285L22.1286 21.0715L17.1286 23.0715L17.8714 24.9285ZM18.5715 21.6286L16.5715 26.6286L18.4285 27.3714L20.4285 22.3714L18.5715 21.6286Z",fill:"black"})}),qv=()=>p.jsx("svg",{width:"20",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M1.30608 0.598877L22.5193 21.8121M0.598999 21.8121L21.8122 0.5989",stroke:"#FF375F","stroke-width":"2"})}),Xv=()=>p.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M22.1765 17.4545C22.7288 17.4545 23.1765 17.0068 23.1765 16.4545C23.1765 15.9023 22.7288 15.4545 22.1765 15.4545V17.4545ZM0.292893 15.7474C-0.0976311 16.138 -0.0976311 16.7711 0.292893 17.1617L6.65685 23.5256C7.04738 23.9161 7.68054 23.9161 8.07107 23.5256C8.46159 23.1351 8.46159 22.5019 8.07107 22.1114L2.41421 16.4545L8.07107 10.7977C8.46159 10.4072 8.46159 9.774 8.07107 9.38348C7.68054 8.99295 7.04738 8.99295 6.65685 9.38348L0.292893 15.7474ZM9.70588 11.9091C9.70588 12.4614 10.1536 12.9091 10.7059 12.9091C11.2582 12.9091 11.7059 12.4614 11.7059 11.9091H9.70588ZM11.7059 21C11.7059 20.4477 11.2582 20 10.7059 20C10.1536 20 9.70588 20.4477 9.70588 21H11.7059ZM13.3529 2H28.3529V0H13.3529V2ZM30 3.72727V28.2727H32V3.72727H30ZM28.3529 30H13.3529V32H28.3529V30ZM13.3529 30C12.4712 30 11.7059 29.255 11.7059 28.2727H9.70588C9.70588 30.3029 11.3108 32 13.3529 32V30ZM30 28.2727C30 29.255 29.2347 30 28.3529 30V32C30.3951 32 32 30.3029 32 28.2727H30ZM28.3529 2C29.2347 2 30 2.74498 30 3.72727H32C32 1.69711 30.3951 0 28.3529 0V2ZM13.3529 0C11.3108 0 9.70588 1.69711 9.70588 3.72727H11.7059C11.7059 2.74498 12.4712 2 13.3529 2V0ZM22.1765 15.4545H10.7059V17.4545H22.1765V15.4545ZM10.7059 15.4545H1V17.4545H10.7059V15.4545ZM11.7059 11.9091V3.72727H9.70588V11.9091H11.7059ZM11.7059 28.2727V21H9.70588V28.2727H11.7059Z",fill:"#FF375F"})}),Sl=()=>p.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M14 4V1C14 0.734784 14.1054 0.48043 14.2929 0.292893C14.4804 0.105357 14.7348 0 15 0C15.2652 0 15.5196 0.105357 15.7071 0.292893C15.8946 0.48043 16 0.734784 16 1V4C16 4.26522 15.8946 4.51957 15.7071 4.70711C15.5196 4.89464 15.2652 5 15 5C14.7348 5 14.4804 4.89464 14.2929 4.70711C14.1054 4.51957 14 4.26522 14 4ZM15 7C13.4177 7 11.871 7.46919 10.5554 8.34824C9.23984 9.22729 8.21447 10.4767 7.60896 11.9385C7.00346 13.4003 6.84504 15.0089 7.15372 16.5607C7.4624 18.1126 8.22433 19.538 9.34315 20.6569C10.462 21.7757 11.8874 22.5376 13.4393 22.8463C14.9911 23.155 16.5997 22.9965 18.0615 22.391C19.5233 21.7855 20.7727 20.7602 21.6518 19.4446C22.5308 18.129 23 16.5823 23 15C22.9977 12.879 22.1541 10.8455 20.6543 9.3457C19.1545 7.84591 17.121 7.00232 15 7ZM6.2925 7.7075C6.48014 7.89514 6.73464 8.00056 7 8.00056C7.26536 8.00056 7.51986 7.89514 7.7075 7.7075C7.89514 7.51986 8.00056 7.26536 8.00056 7C8.00056 6.73464 7.89514 6.48014 7.7075 6.2925L5.7075 4.2925C5.51986 4.10486 5.26536 3.99944 5 3.99944C4.73464 3.99944 4.48014 4.10486 4.2925 4.2925C4.10486 4.48014 3.99944 4.73464 3.99944 5C3.99944 5.26536 4.10486 5.51986 4.2925 5.7075L6.2925 7.7075ZM6.2925 22.2925L4.2925 24.2925C4.10486 24.4801 3.99944 24.7346 3.99944 25C3.99944 25.2654 4.10486 25.5199 4.2925 25.7075C4.48014 25.8951 4.73464 26.0006 5 26.0006C5.26536 26.0006 5.51986 25.8951 5.7075 25.7075L7.7075 23.7075C7.80041 23.6146 7.87411 23.5043 7.92439 23.3829C7.97468 23.2615 8.00056 23.1314 8.00056 23C8.00056 22.8686 7.97468 22.7385 7.92439 22.6171C7.87411 22.4957 7.80041 22.3854 7.7075 22.2925C7.61459 22.1996 7.50429 22.1259 7.3829 22.0756C7.2615 22.0253 7.13139 21.9994 7 21.9994C6.86861 21.9994 6.7385 22.0253 6.6171 22.0756C6.49571 22.1259 6.38541 22.1996 6.2925 22.2925ZM23 8C23.1314 8.0001 23.2615 7.97432 23.3829 7.92414C23.5042 7.87395 23.6146 7.80033 23.7075 7.7075L25.7075 5.7075C25.8951 5.51986 26.0006 5.26536 26.0006 5C26.0006 4.73464 25.8951 4.48014 25.7075 4.2925C25.5199 4.10486 25.2654 3.99944 25 3.99944C24.7346 3.99944 24.4801 4.10486 24.2925 4.2925L22.2925 6.2925C22.1525 6.43236 22.0571 6.61061 22.0185 6.80469C21.9798 6.99878 21.9996 7.19997 22.0754 7.38279C22.1511 7.56561 22.2794 7.72185 22.444 7.83172C22.6086 7.94159 22.8021 8.00016 23 8ZM23.7075 22.2925C23.5199 22.1049 23.2654 21.9994 23 21.9994C22.7346 21.9994 22.4801 22.1049 22.2925 22.2925C22.1049 22.4801 21.9994 22.7346 21.9994 23C21.9994 23.2654 22.1049 23.5199 22.2925 23.7075L24.2925 25.7075C24.3854 25.8004 24.4957 25.8741 24.6171 25.9244C24.7385 25.9747 24.8686 26.0006 25 26.0006C25.1314 26.0006 25.2615 25.9747 25.3829 25.9244C25.5043 25.8741 25.6146 25.8004 25.7075 25.7075C25.8004 25.6146 25.8741 25.5043 25.9244 25.3829C25.9747 25.2615 26.0006 25.1314 26.0006 25C26.0006 24.8686 25.9747 24.7385 25.9244 24.6171C25.8741 24.4957 25.8004 24.3854 25.7075 24.2925L23.7075 22.2925ZM5 15C5 14.7348 4.89464 14.4804 4.70711 14.2929C4.51957 14.1054 4.26522 14 4 14H1C0.734784 14 0.48043 14.1054 0.292893 14.2929C0.105357 14.4804 0 14.7348 0 15C0 15.2652 0.105357 15.5196 0.292893 15.7071C0.48043 15.8946 0.734784 16 1 16H4C4.26522 16 4.51957 15.8946 4.70711 15.7071C4.89464 15.5196 5 15.2652 5 15ZM15 25C14.7348 25 14.4804 25.1054 14.2929 25.2929C14.1054 25.4804 14 25.7348 14 26V29C14 29.2652 14.1054 29.5196 14.2929 29.7071C14.4804 29.8946 14.7348 30 15 30C15.2652 30 15.5196 29.8946 15.7071 29.7071C15.8946 29.5196 16 29.2652 16 29V26C16 25.7348 15.8946 25.4804 15.7071 25.2929C15.5196 25.1054 15.2652 25 15 25ZM29 14H26C25.7348 14 25.4804 14.1054 25.2929 14.2929C25.1054 14.4804 25 14.7348 25 15C25 15.2652 25.1054 15.5196 25.2929 15.7071C25.4804 15.8946 25.7348 16 26 16H29C29.2652 16 29.5196 15.8946 29.7071 15.7071C29.8946 15.5196 30 15.2652 30 15C30 14.7348 29.8946 14.4804 29.7071 14.2929C29.5196 14.1054 29.2652 14 29 14Z",fill:"#A040CE"})}),xl=()=>p.jsx("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M12.5 25C19.4037 25 25 19.4037 25 12.5C25 11.9213 24.1325 11.825 23.8337 12.3213C23.1966 13.3767 22.3275 14.2733 21.2925 14.9431C20.2575 15.6129 19.0836 16.0384 17.8598 16.1874C16.636 16.3363 15.3943 16.2048 14.2288 15.8028C13.0633 15.4009 12.0046 14.7389 11.1329 13.8671C10.2611 12.9954 9.59915 11.9367 9.19715 10.7712C8.79516 9.60571 8.66366 8.36404 8.81262 7.14021C8.96158 5.91638 9.38709 4.7425 10.0569 3.70748C10.7267 2.67246 11.6233 1.80344 12.6787 1.16625C13.175 0.86625 13.0787 0 12.5 0C5.59625 0 0 5.59625 0 12.5C0 19.4037 5.59625 25 12.5 25Z",fill:"#A040CE"})});function Yv({setOpen:e,open:t,user:n}){const r=["home","projects","tasks"],o=ct(),i=Ut(),l=ft(),s=a=>{i(a.target.id),e()},u=()=>{l({type:Gr}),l(ev())};return p.jsxs("div",{className:"sidebar",style:{left:t?0:""},children:[p.jsx("div",{className:"sidebar__options",children:r.map((a,f)=>p.jsx("div",{onClick:s,id:a,className:o.pathname.includes(a)?"sidebar__option active":"sidebar__option",children:a},f))}),n&&p.jsx("div",{onClick:u,color:"red",children:p.jsx(Xv,{})})]})}function bv({user:e,dark:t,isDark:n}){const r=ct(),[o,i]=E.useState(!1),l=Ae(s=>s.auth.error);return E.useEffect(()=>{},[n]),r.pathname=="/sign-in"||r.pathname=="/sign-up"?p.jsx("div",{className:"navbar",style:{position:"fixed",border:"none"},onClick:()=>t(),children:n?p.jsx(xl,{onClick:()=>t()}):p.jsx(Sl,{onClick:()=>t()})}):p.jsxs("div",{className:o?"top":"top over",children:[p.jsxs("nav",{className:"navbar",children:[p.jsxs("div",{className:"projectTitle",children:[p.jsx("div",{className:"sidebar__logo",onClick:()=>i(!o),children:"☰"}),p.jsx(Iu,{}),p.jsxs(hr,{to:"",children:["TaskMaster",l]})]}),e!=null?p.jsxs("div",{className:"user",children:[p.jsx("div",{onClick:()=>t(),children:n?p.jsx(xl,{onClick:t}):p.jsx(Sl,{onClick:()=>t()})}),p.jsx("div",{children:p.jsx("p",{id:"user-name",children:e.name})})]}):p.jsxs("div",{className:"sign",children:[p.jsx("div",{onClick:()=>t(),children:n?p.jsx(xl,{onClick:()=>t()}):p.jsx(Sl,{onClick:()=>t()})}),p.jsx("button",{className:"tertiary-button signIn",children:p.jsx(hr,{to:"/sign-in",children:"Sign In"})}),p.jsx("button",{className:"secondary-button signUp",children:p.jsx(hr,{to:"/sign-up",children:"Sign Up"})})]})]}),p.jsx(Yv,{setOpen:()=>i(!o),open:o,user:e!=null})]})}function e2(){return p.jsx("div",{className:"homePage",children:p.jsx("h1",{children:"Welcome to TaskMaster"})})}function t2({note:e,save:t,loggedIn:n}){const r=ct(),[o,i]=E.useState(e.content),[l,s]=E.useState(!1);return E.useEffect(()=>{i(e.content);const u=a=>{a.key==="Escape"?(s(!1),t(o)):a.shiftKey&&a.key==="n"&&s(!0)};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[e]),r.pathname=="/sign-in"||r.pathname=="/sign-up"?p.jsx(p.Fragment,{}):l?p.jsxs("div",{className:"notes",children:[p.jsx("div",{className:"notes-options",onClick:()=>{s(!1),t(o)},children:p.jsx(qv,{})}),p.jsx("textarea",{disabled:!n,value:o,onChange:u=>i(u.target.value)})]}):p.jsx("div",{className:"notes",style:{height:"35px",border:"1px solid rgb(var(--second))"},onClick:()=>s(!0),children:p.jsx(Gv,{})})}function n2({loggedIn:e}){const t=ft(),n=Ae(f=>f.task.tasks),[r,o]=E.useState(!1),[i,l]=E.useState(!1),[s,u]=E.useState({task:"",description:"",completion:0,deadline:""}),a=f=>{f.preventDefault(),console.log(s),r?(t(Av(s)).then(()=>{t(Ar())}),o(!1)):t(Dv(s)),l(!1)};return E.useEffect(()=>{e&&t(Ar())},[e]),p.jsxs("div",{className:"task-page",children:[p.jsxs("div",{className:"tasks-title",children:[p.jsx("h1",{children:"Tasks"}),p.jsx("div",{className:"task-add",children:p.jsx("button",{className:"secondary-button",onClick:()=>l(!i),children:"New"})})]}),i&&p.jsx("div",{className:"create-task",children:p.jsxs("form",{onSubmit:a,children:[p.jsx("input",{type:"text",value:s.task,onChange:f=>u({...s,task:f.target.value}),placeholder:"Task Name",required:!0}),p.jsx("textarea",{type:"text",value:s.description,onChange:f=>u({...s,description:f.target.value}),placeholder:"Task Description"}),p.jsxs("div",{className:"task-completion",children:[p.jsxs("output",{for:"completion",onforminput:"value = completion.valueAsNumber;",children:["Completion: ",s.completion,"%"]}),p.jsx("input",{type:"range",min:0,max:100,value:s.completion,onChange:f=>u({...s,completion:f.target.value}),name:"completion"})]}),p.jsx("input",{type:"date",min:new Date().toISOString().split("T")[0],value:s.deadline,onChange:f=>u({...s,deadline:f.target.value})}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>{o(!1),l(!1),u({task:"",description:"",completion:0,deadline:""})},children:"cancel"}),p.jsx("button",{type:"submit",children:r?"Update":"Create"})]})]})}),p.jsx("div",{className:"task-table-container",children:p.jsxs("table",{className:"task-table",children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{children:"Task"}),p.jsx("th",{children:"description"}),p.jsx("th",{children:"progress"}),p.jsx("th",{children:"deadline"}),p.jsx("th",{children:"Actions"})]})}),p.jsx("tbody",{children:n.map(f=>p.jsxs("tr",{style:{backgroundColor:`rgba(var(--low), ${f.completion/100})`},children:[p.jsx("td",{children:f.task}),p.jsx("td",{children:f.description}),p.jsxs("td",{children:[f.completion,"%"]}),p.jsx("td",{children:f.deadline&&f.deadline}),p.jsxs("td",{children:[p.jsx("button",{onClick:()=>{u({...f,deadline:f.deadline!=null?f.deadline:""}),l(!0),o(!0)},children:"update"}),p.jsx("button",{onClick:()=>t(zv(index)),children:"delete"})]})]},f.id))})]})})]})}function r2({tasks:e=[],newTask:t,users:n=[]}){const[r,o]=E.useState([]),[i,l]=E.useState([]),[s,u]=E.useState([]),a=ft(),f=()=>{try{r.map(d=>{e.find(m=>m.id==d.id).status!="To Do"&&a(wl(d.id,"To Do"))}),i.map(d=>{e.find(m=>m.id==d.id).status!="In Progress"&&a(wl(d.id,"In Progress"))}),s.map(d=>{e.find(m=>m.id==d.id).status!="Completed"&&a(wl(d.id,"Completed"))})}catch(d){console.log(d)}},c=(d,m)=>{d.dataTransfer.setData("from",m.from),d.dataTransfer.setData("id",m.id)},g=(d,m)=>{if(m=="delete"){a(Kv(d.dataTransfer.getData("id")));return}const S=d.dataTransfer.getData("from"),y=d.dataTransfer.getData("id");if(S==m)return;let h=null;S=="todo"?(h=r.find(v=>v.id==y),o(r.filter(v=>v.id!=y))):S=="in progress"?(h=i.find(v=>v.id==y),l(i.filter(v=>v.id!=y))):S=="completed"&&(h=s.find(v=>v.id==y),u(s.filter(v=>v.id!=y))),m=="todo"?o([...r,h]):m=="in progress"?l([...i,h]):m=="completed"&&u([...s,h])},w=d=>{d.preventDefault()};return E.useEffect(()=>(e.map(d=>{d.status==="To Do"?o(m=>[...m,d]):d.status==="In Progress"?l(m=>[...m,d]):d.status==="Completed"&&u(m=>[...m,d])}),()=>{o([]),l([]),u([])}),[e]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"project-item-grid",children:[p.jsx("div",{className:"project-task-title",children:"todo"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"todo"),children:r.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"todo",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-title",children:"inprogress"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"in progress"),children:i.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"in progress",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-title",children:"completed"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"completed"),children:s.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"completed",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-delete",onDragOver:w,onDrop:d=>g(d,"delete"),children:"delete"}),p.jsxs("div",{className:"project-task-options",children:[p.jsx("button",{onClick:t,children:"add Task"}),p.jsx("button",{onClick:()=>f(),children:"save changes"})]})]})})}function o2({close:e}){const t=ft(),n=Ut(),r=Ae(m=>m.auth.all),o=Ae(m=>m.project.one),i=Ae(m=>m.projectTask.tasks),[l,s]=E.useState(!1),[u,a]=E.useState(!1),[f,c]=E.useState({title:"",description:"",deadline:"",priority:null,difficulty:null,assigned_to:null}),g=()=>{n("/projects/modify",{state:{edit:!0}})},w=m=>{m.preventDefault(),console.log("created"),t(Wv(o.id,f)),c({title:"",description:"",completion:0,deadline:"",priority:null,difficulty:null,assigned_to:null}),s(!1)},d=()=>{u&&c({priority:null,difficulty:null,assigned_to:null}),a(!u)};return E.useEffect(()=>{t(Jr(o.id)),t(Au());const m=S=>{console.log(S.key),S.key==="Escape"&&e()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[]),r==null||o==null||i==null?p.jsx("h1",{children:"Loading"}):p.jsxs(p.Fragment,{children:[o&&p.jsxs("div",{className:"projectListTitle",children:[p.jsx("h1",{children:o.title}),p.jsx("div",{className:"projectListTitle--add",children:p.jsx("button",{className:"secondary-button",onClick:g,children:"edit"})})]}),l&&p.jsx("div",{className:"create-project-task",children:p.jsxs("form",{onSubmit:w,children:[p.jsx("input",{type:"text",value:f.title,onChange:m=>c({...f,title:m.target.value}),placeholder:"Task Title",required:!0}),p.jsx("textarea",{type:"text",value:f.description,onChange:m=>c({...f,description:m.target.value}),placeholder:"Task Description",required:!0}),p.jsx("input",{type:"date",min:new Date().toISOString().split("T")[0],value:f.deadline,onChange:m=>c({...f,deadline:m.target.value})}),p.jsxs("div",{className:"additional",onClick:d,children:[p.jsx("div",{children:"additional details"}),p.jsx("div",{children:u?"-":"+"})]}),u&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"element",children:[p.jsx("label",{for:"priority",children:"Priority"}),p.jsxs("select",{id:"priority",defaultValue:"default",onChange:m=>c({...f,priority:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"default"}),p.jsx("option",{value:"High",children:"High"}),p.jsx("option",{value:"Medium",children:"Medium"}),p.jsx("option",{value:"Low",children:"Low"})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("label",{htmlFor:"difficulty",children:"difficulty"}),p.jsxs("select",{id:"difficulty",defaultValue:"default",onChange:m=>c({...f,difficulty:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"default"}),p.jsx("option",{value:"High",children:"High"}),p.jsx("option",{value:"Medium",children:"Medium"}),p.jsx("option",{value:"Low",children:"Low"})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("label",{htmlFor:"assign",children:"Assign to"}),p.jsxs("select",{id:"assign",defaultValue:"Select",onChange:m=>c({...f,assigned_to:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"Select"}),r.map((m,S)=>m.name!="myself"?p.jsxs("option",{value:m.id,children:[m.name," -"," ",m.email]},S):p.jsx("option",{value:m.id,children:m.name},S))]})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>s(!1),children:"cancel"}),p.jsx("button",{type:"submit",children:"Create"})]})]})}),p.jsx(r2,{tasks:i,newTask:()=>s(!0),users:r})]})}function i2({loggedIn:e}){const t=ft(),n=Ae(s=>s.project),r=Ut(),[o,i]=E.useState(!1);E.useEffect(()=>{e&&t(Vu())},[e]);const l=s=>t(Zv(s)).then(()=>{i(!0)});return o?p.jsx(o2,{close:()=>i(!1)}):p.jsxs("div",{children:[p.jsxs("div",{className:"projectListTitle",children:[p.jsx("h1",{children:"Projects"}),p.jsx("div",{className:"projectListTitle--add",children:p.jsx("button",{className:"secondary-button",onClick:()=>r("/projects/modify"),children:"new"})})]}),n.loading?p.jsx("p",{children:"loading"}):p.jsx("div",{className:"projectList",children:n.projects.map((s,u)=>p.jsxs("div",{className:"project",onClick:()=>{l(s.id)},children:[p.jsxs("div",{className:"project-title",children:[p.jsx("div",{className:"title",children:s.title}),p.jsx("div",{className:"deadline",children:s.deadline&&s.deadline})]}),p.jsxs("div",{className:"project-description",children:["Description: ",p.jsx("br",{}),s.description||"empty"]})]},u))})]})}function l2(){const e=Ae(d=>d.auth.all),t=ft(),n=new Date().toISOString().split("T")[0],[r,o]=E.useState(null),[i,l]=E.useState([]),s=Ut(),u=ct(),a=Ae(d=>d.project.one),{edit:f}=u.state||!1,[c,g]=E.useState({title:"",description:"",due:"",group:!1,members:[]}),w=d=>{d.preventDefault(),f?(d.preventDefault(),t(Jv(c)).then(()=>{s("/projects")})):t(Qv(c)).then(()=>{t(Vu())}).then(()=>{s("/projects")})};return E.useEffect(()=>{if(t(Au()),f){g(a);const d=e.map(m=>{if(c.members.includes(m.id))return m.name}).filter(Boolean);l(d)}},[]),p.jsx("div",{className:"project-modify",children:p.jsxs("form",{onSubmit:w,children:[p.jsx("h2",{children:"Project"}),p.jsx("input",{type:"text",value:c.title,onChange:d=>g({...c,title:d.target.value}),required:!0,placeholder:"Project Title"}),p.jsx("textarea",{value:c.description,onChange:d=>g({...c,description:d.target.value}),required:!0,placeholder:"Project Description"}),p.jsx("input",{type:"date",value:c.due,min:n,onChange:d=>g({...c,due:d.target.value})}),p.jsxs("div",{children:["is this a group project?",p.jsx("input",{type:"checkbox",checked:c.group,onClick:d=>{g({...c,group:!c.group}),c.group||(l([]),o(null))}})]}),c.group?p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsxs("select",{defaultValue:"Select",onChange:d=>o(d.target.value),children:[p.jsx("option",{disabled:!0,children:"Select"}),e.map((d,m)=>{if(d.name!="myself")return p.jsxs("option",{value:m,children:[d.name," - ",d.email]},m)})]}),p.jsx("button",{type:"button",onClick:()=>{const d=e[r];r&&(!c.members.includes(d.id)||!i.includes(d.name))&&(g({...c,members:[...c.members,d.id]}),l([...i,d.name]))},children:"add member"})]}),p.jsxs("ul",{children:["members:",i.length==0?" None":"",i.map((d,m)=>p.jsx("li",{onClick:()=>{const S=i.filter((h,v)=>v!==m);l(S);const y=c.members.filter((h,v)=>v!=m);g({...c,members:y})},children:d},m))]})]}):p.jsx(p.Fragment,{}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>s("/projects"),children:"Cancel"}),p.jsx("button",{type:"submit",children:f?"Update":"Create"})]})]})})}function s2(){const e=Ae(l=>l.auth.user),t=Ae(l=>l.note),n=ft(),[r,o]=E.useState(document.body.classList.contains("dark")),i=()=>{document.body.classList.contains("dark")?(document.body.classList.remove("dark"),o(!1)):(document.body.classList.add("dark"),o(!0))};return E.useEffect(()=>{let l=!0;return window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&l&&(o(!0),document.body.classList.add("dark")),document.cookie.match("(^|;)\\s*user\\s*=\\s*([^;]+)")&&(n(zu()).then(()=>{n(Uv())}),n(Au())),()=>l=!1},[]),p.jsxs(L0,{children:[p.jsx(bv,{user:e,dark:i,isDark:r}),p.jsx(t2,{note:e==null?{content:""}:t,loggedIn:e!=null,save:l=>{t.content!=l&&n($v({...t,content:l}))}}),p.jsxs(_0,{children:[p.jsx(ht,{index:!0,path:"/home",element:p.jsx(e2,{})}),p.jsx(ht,{path:"/sign-in",element:p.jsx(kv,{loggedIn:e!=null})}),p.jsx(ht,{path:"/sign-up",element:p.jsx(_v,{loggedIn:e!=null})}),p.jsx(ht,{path:"/tasks",element:p.jsx(n2,{loggedIn:e!=null})}),p.jsx(ht,{path:"/projects",element:p.jsx(i2,{loggedIn:e!=null})}),p.jsx(ht,{path:"/projects/modify",element:p.jsx(l2,{})}),p.jsx(ht,{path:"*",element:p.jsx(E0,{to:"/home",replace:!0})})]})]})}var qp=Symbol.for("immer-nothing"),Rc=Symbol.for("immer-draftable"),_e=Symbol.for("immer-state");function Ve(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fn=Object.getPrototypeOf;function nn(e){return!!e&&!!e[_e]}function rn(e){var t;return e?Xp(e)||Array.isArray(e)||!!e[Rc]||!!((t=e.constructor)!=null&&t[Rc])||Mi(e)||Di(e):!1}var u2=Object.prototype.constructor.toString();function Xp(e){if(!e||typeof e!="object")return!1;const t=Fn(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===u2}function ii(e,t){Li(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Li(e){const t=e[_e];return t?t.type_:Array.isArray(e)?1:Mi(e)?2:Di(e)?3:0}function js(e,t){return Li(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Yp(e,t,n){const r=Li(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function a2(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Mi(e){return e instanceof Map}function Di(e){return e instanceof Set}function Wt(e){return e.copy_||e.base_}function Ps(e,t){if(Mi(e))return new Map(e);if(Di(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Xp(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[_e];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=c2),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Wu(r,!0))),e}function c2(){Ve(2)}function Ai(e){return Object.isFrozen(e)}var f2={};function on(e){const t=f2[e];return t||Ve(0,e),t}var zr;function bp(){return zr}function d2(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Oc(e,t){t&&(on("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ns(e){Ts(e),e.drafts_.forEach(p2),e.drafts_=null}function Ts(e){e===zr&&(zr=e.parent_)}function Lc(e){return zr=d2(zr,e)}function p2(e){const t=e[_e];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Mc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_e].modified_&&(Ns(t),Ve(4)),rn(e)&&(e=li(t,e),t.parent_||si(t,e)),t.patches_&&on("Patches").generateReplacementPatches_(n[_e].base_,e,t.patches_,t.inversePatches_)):e=li(t,n,[]),Ns(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==qp?e:void 0}function li(e,t,n){if(Ai(t))return t;const r=t[_e];if(!r)return ii(t,(o,i)=>Dc(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return si(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,l=!1;r.type_===3&&(i=new Set(o),o.clear(),l=!0),ii(i,(s,u)=>Dc(e,r,o,s,u,n,l)),si(e,o,!1),n&&e.patches_&&on("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Dc(e,t,n,r,o,i,l){if(nn(o)){const s=i&&t&&t.type_!==3&&!js(t.assigned_,r)?i.concat(r):void 0,u=li(e,o,s);if(Yp(n,r,u),nn(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(rn(o)&&!Ai(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;li(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&si(e,o)}}function si(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Wu(t,n)}function h2(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:bp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Ku;n&&(o=[r],i=Fr);const{revoke:l,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=l,s}var Ku={get(e,t){if(t===_e)return e;const n=Wt(e);if(!js(n,t))return m2(e,n,t);const r=n[t];return e.finalized_||!rn(r)?r:r===Cl(e.base_,t)?(El(e),e.copy_[t]=Os(r,e)):r},has(e,t){return t in Wt(e)},ownKeys(e){return Reflect.ownKeys(Wt(e))},set(e,t,n){const r=eh(Wt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Cl(Wt(e),t),i=o==null?void 0:o[_e];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(a2(n,o)&&(n!==void 0||js(e.base_,t)))return!0;El(e),Rs(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Cl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,El(e),Rs(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Wt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ve(11)},getPrototypeOf(e){return Fn(e.base_)},setPrototypeOf(){Ve(12)}},Fr={};ii(Ku,(e,t)=>{Fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Fr.deleteProperty=function(e,t){return Fr.set.call(this,e,t,void 0)};Fr.set=function(e,t,n){return Ku.set.call(this,e[0],t,n,e[0])};function Cl(e,t){const n=e[_e];return(n?Wt(n):e)[t]}function m2(e,t,n){var o;const r=eh(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function eh(e,t){if(!(t in e))return;let n=Fn(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fn(n)}}function Rs(e){e.modified_||(e.modified_=!0,e.parent_&&Rs(e.parent_))}function El(e){e.copy_||(e.copy_=Ps(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var y2=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const l=this;return function(u=i,...a){return l.produce(u,f=>n.call(this,f,...a))}}typeof n!="function"&&Ve(6),r!==void 0&&typeof r!="function"&&Ve(7);let o;if(rn(t)){const i=Lc(this),l=Os(t,void 0);let s=!0;try{o=n(l),s=!1}finally{s?Ns(i):Ts(i)}return Oc(i,r),Mc(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===qp&&(o=void 0),this.autoFreeze_&&Wu(o,!0),r){const i=[],l=[];on("Patches").generateReplacementPatches_(t,o,i,l),r(i,l)}return o}else Ve(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...s)=>this.produceWithPatches(l,u=>t(u,...s));let r,o;return[this.produce(t,n,(l,s)=>{r=l,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){rn(e)||Ve(8),nn(e)&&(e=th(e));const t=Lc(this),n=Os(e,void 0);return n[_e].isManual_=!0,Ts(t),n}finishDraft(e,t){const n=e&&e[_e];(!n||!n.isManual_)&&Ve(9);const{scope_:r}=n;return Oc(r,t),Mc(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=on("Patches").applyPatches_;return nn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Os(e,t){const n=Mi(e)?on("MapSet").proxyMap_(e,t):Di(e)?on("MapSet").proxySet_(e,t):h2(e,t);return(t?t.scope_:bp()).drafts_.push(n),n}function th(e){return nn(e)||Ve(10,e),nh(e)}function nh(e){if(!rn(e)||Ai(e))return e;const t=e[_e];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ps(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ps(e,!0);return ii(n,(r,o)=>{Yp(n,r,nh(o))}),t&&(t.finalized_=!1),n}var je=new y2;je.produce;je.produceWithPatches.bind(je);je.setAutoFreeze.bind(je);je.setUseStrictShallowCopy.bind(je);je.applyPatches.bind(je);je.createDraft.bind(je);je.finishDraft.bind(je);function v2(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function g2(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function w2(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ac=e=>Array.isArray(e)?e:[e];function S2(e){const t=Array.isArray(e[0])?e[0]:e;return w2(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function x2(e,t){const n=[],{length:r}=e;for(let o=0;o{n=yo(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function rh(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,l=0,s,u={},a=o.pop();typeof a=="object"&&(u=a,a=o.pop()),v2(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const f={...n,...u},{memoize:c,memoizeOptions:g=[],argsMemoize:w=Qu,argsMemoizeOptions:d=[],devModeChecks:m={}}=f,S=Ac(g),y=Ac(d),h=S2(o),v=c(function(){return i++,a.apply(null,arguments)},...S),C=w(function(){l++;const N=x2(h,arguments);return s=v.apply(null,N),s},...y);return Object.assign(C,{resultFunc:a,memoizedResultFunc:v,dependencies:h,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:c,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var _2=rh(Qu),j2=Object.assign((e,t=_2)=>{g2(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((l,s,u)=>(l[n[u]]=s,l),{}))},{withTypes:()=>j2});function oh(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var ih=oh(),P2=oh,N2=(...e)=>{const t=rh(...e),n=Object.assign((...r)=>{const o=t(...r),i=(l,...s)=>o(nn(l)?th(l):l,...s);return Object.assign(i,o),i},{withTypes:()=>n});return n};N2(Qu);var T2=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oi:oi.apply(null,arguments)};function zi(e,t){function n(...r){return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Rv(r)&&r.type===e,n}var lh=class or extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,or.prototype)}static get[Symbol.species](){return or}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new or(...t[0].concat(this)):new or(...t.concat(this))}};function R2(e){return typeof e=="boolean"}var O2=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let l=new lh;return n&&(R2(n)?l.push(ih):l.push(P2(n.extraArgument))),l},L2="RTK_autoBatch",sh=e=>t=>{setTimeout(t,e)},M2=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sh(10),D2=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,l=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?M2:e.type==="callback"?e.queueNotification:sh(e.timeout),a=()=>{l=!1,i&&(i=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const c=()=>o&&f(),g=r.subscribe(c);return s.add(f),()=>{g(),s.delete(f)}},dispatch(f){var c;try{return o=!((c=f==null?void 0:f.meta)!=null&&c[L2]),i=!o,i&&(l||(l=!0,u(a))),r.dispatch(f)}finally{o=!0}}})},A2=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new lh(e);return r&&o.push(D2(typeof r=="object"?r:void 0)),o},z2=!0;function F2(e){const t=O2(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(Uu(n))s=Fp(n);else throw new Error(Fi(1));let u;typeof r=="function"?u=r(t):u=t();let a=oi;o&&(a=T2({trace:!z2,...typeof o=="object"&&o}));const f=Tv(...u),c=A2(f);let g=typeof l=="function"?l(c):c();const w=a(...g);return zp(s,i,w)}var I2="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",U2=(e=21)=>{let t="",n=e;for(;n--;)t+=I2[Math.random()*64|0];return t},$2=(e,t)=>{if(typeof e!="function")throw new Error(Fi(32))},Zu="listenerMiddleware",B2=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=zi(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Fi(21));return $2(i),{predicate:o,type:t,effect:i}},H2=Object.assign(e=>{const{type:t,predicate:n,effect:r}=B2(e);return{id:U2(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Fi(22))}}},{withTypes:()=>H2}),V2=Object.assign(zi(`${Zu}/add`),{withTypes:()=>V2});zi(`${Zu}/removeAll`);var W2=Object.assign(zi(`${Zu}/remove`),{withTypes:()=>W2});function Fi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const K2=F2({reducer:{task:Bp,auth:Hp,note:Wp,project:Jp,projectTask:Gp},middleware:e=>e().concat(ih)});_l.createRoot(document.getElementById("root")).render(p.jsx(xv,{store:K2,children:p.jsx(s2,{})})); diff --git a/index.html b/index.html index e8d0cf3..5d9c6c9 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" /> TaskMaster - +