diff --git a/plans/to-do.md b/plans/to-do.md index 31e26b6a..cb4ed6ef 100644 --- a/plans/to-do.md +++ b/plans/to-do.md @@ -4,9 +4,8 @@ 4. add discord bot typing thing for when someone requests a replay 5. change replay title for ones requested from discord, something other than "requester driving rover" 6. fix rover request spam queue cheat -7. rover descriptions. show in the HUD at the bottom or top for a few seconds, then fade away. -8. reorganize internal structure of video, HUD stuff... -9. button box reward: ping @everyone, 7567 presses +7. reorganize internal structure of video, HUD stuff... +8. button box reward: ping @everyone, 7567 presses # relative pipe dreams: diff --git a/plans/video and HUD code reorganization.md b/plans/video and HUD code reorganization.md new file mode 100644 index 00000000..d7885e53 --- /dev/null +++ b/plans/video and HUD code reorganization.md @@ -0,0 +1,13 @@ +# why? +- right now, video and HUD elements are scattered across components +- some HUD elements have code baked into large video tiles and HUDs and stuff. + +## organization rules: +in the end we should have: +- a component that JUST plays video and audio +- a driver video panel, which combines the video component and all of the proper HUD elements for drivers +- a spectator video panel, which combines the video component and all of the proper HUD elements for spectators +- ALL of the HUD elements each as their own component, in a folder of HUD elements. each in its own folder. +- NO MORE HUD elements built into video panels, tiles, or whatever. +- no visual or functional changes of anything. this is all just code restructuring +- follow the new structure of the components, each one is its own folder, etc. split them up into separate files where reasonable, for large components \ No newline at end of file diff --git a/server/prompts/overseer_control_system.txt b/server/prompts/overseer_control_system.txt index 5936bffd..6665d4cc 100644 --- a/server/prompts/overseer_control_system.txt +++ b/server/prompts/overseer_control_system.txt @@ -5,6 +5,7 @@ Context: - The rovers enjoy chaos and destruction, not order and precision. - It is your job to monitor them. - tsk and !tskip are chat bot commands, ignore them. +- You exist to help them have fun. Character: - Calm and highly intelligent with dry sarcasm. diff --git a/server/public/assets/index-BZ5Amllx.js b/server/public/assets/index-BZ5Amllx.js new file mode 100644 index 00000000..66f82630 --- /dev/null +++ b/server/public/assets/index-BZ5Amllx.js @@ -0,0 +1,131 @@ +(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function yy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vu={exports:{}},Il={};var pp;function Sy(){if(pp)return Il;pp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(o,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:n,type:o,key:h,ref:u!==void 0?u:null,props:f}}return Il.Fragment=a,Il.jsx=r,Il.jsxs=r,Il}var xp;function jy(){return xp||(xp=1,Vu.exports=Sy()),Vu.exports}var l=jy(),$u={exports:{}},Me={};var gp;function Ny(){if(gp)return Me;gp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),j=Symbol.iterator;function M(T){return T===null||typeof T!="object"?null:(T=j&&T[j]||T["@@iterator"],typeof T=="function"?T:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,w={};function S(T,_,K){this.props=T,this.context=_,this.refs=w,this.updater=K||k}S.prototype.isReactComponent={},S.prototype.setState=function(T,_){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,_,"setState")},S.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function R(){}R.prototype=S.prototype;function E(T,_,K){this.props=T,this.context=_,this.refs=w,this.updater=K||k}var A=E.prototype=new R;A.constructor=E,N(A,S.prototype),A.isPureReactComponent=!0;var L=Array.isArray;function V(){}var O={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function X(T,_,K){var ne=K.ref;return{$$typeof:n,type:T,key:_,ref:ne!==void 0?ne:null,props:K}}function G(T,_){return X(T.type,_,T.props)}function Q(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function P(T){var _={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K){return _[K]})}var oe=/\/+/g;function ie(T,_){return typeof T=="object"&&T!==null&&T.key!=null?P(""+T.key):_.toString(36)}function $(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(V,V):(T.status="pending",T.then(function(_){T.status==="pending"&&(T.status="fulfilled",T.value=_)},function(_){T.status==="pending"&&(T.status="rejected",T.reason=_)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function q(T,_,K,ne,me){var ce=typeof T;(ce==="undefined"||ce==="boolean")&&(T=null);var fe=!1;if(T===null)fe=!0;else switch(ce){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(T.$$typeof){case n:case a:fe=!0;break;case v:return fe=T._init,q(fe(T._payload),_,K,ne,me)}}if(fe)return me=me(T),fe=ne===""?"."+ie(T,0):ne,L(me)?(K="",fe!=null&&(K=fe.replace(oe,"$&/")+"/"),q(me,_,K,"",function(xe){return xe})):me!=null&&(Q(me)&&(me=G(me,K+(me.key==null||T&&T.key===me.key?"":(""+me.key).replace(oe,"$&/")+"/")+fe)),_.push(me)),1;fe=0;var be=ne===""?".":ne+":";if(L(T))for(var ge=0;ge>>1,ue=q[ee];if(0>>1;eeu(K,J))neu(me,K)?(q[ee]=me,q[ne]=J,ee=ne):(q[ee]=K,q[_]=J,ee=_);else if(neu(me,J))q[ee]=me,q[ne]=J,ee=ne;else break e}}return H}function u(q,H){var J=q.sortIndex-H.sortIndex;return J!==0?J:q.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();n.unstable_now=function(){return h.now()-p}}var g=[],x=[],v=1,b=null,j=3,M=!1,k=!1,N=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function A(q){for(var H=r(x);H!==null;){if(H.callback===null)o(x);else if(H.startTime<=q)o(x),H.sortIndex=H.expirationTime,a(g,H);else break;H=r(x)}}function L(q){if(N=!1,A(q),!k)if(r(g)!==null)k=!0,V||(V=!0,P());else{var H=r(x);H!==null&&$(L,H.startTime-q)}}var V=!1,O=-1,z=5,X=-1;function G(){return w?!0:!(n.unstable_now()-Xq&&G());){var ee=b.callback;if(typeof ee=="function"){b.callback=null,j=b.priorityLevel;var ue=ee(b.expirationTime<=q);if(q=n.unstable_now(),typeof ue=="function"){b.callback=ue,A(q),H=!0;break t}b===r(g)&&o(g),A(q)}else o(g);b=r(g)}if(b!==null)H=!0;else{var T=r(x);T!==null&&$(L,T.startTime-q),H=!1}}break e}finally{b=null,j=J,M=!1}H=void 0}}finally{H?P():V=!1}}}var P;if(typeof E=="function")P=function(){E(Q)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,ie=oe.port2;oe.port1.onmessage=Q,P=function(){ie.postMessage(null)}}else P=function(){S(Q,0)};function $(q,H){O=S(function(){q(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(q){q.callback=null},n.unstable_forceFrameRate=function(q){0>q||125ee?(q.sortIndex=J,a(x,q),r(g)===null&&q===r(x)&&(N?(R(O),O=-1):N=!0,$(L,J-ee))):(q.sortIndex=ue,a(g,q),k||M||(k=!0,V||(V=!0,P()))),q},n.unstable_shouldYield=G,n.unstable_wrapCallback=function(q){var H=j;return function(){var J=j;j=H;try{return q.apply(this,arguments)}finally{j=J}}}})(Yu)),Yu}var yp;function Ay(){return yp||(yp=1,Fu.exports=wy()),Fu.exports}var Xu={exports:{}},Dt={};var Sp;function Cy(){if(Sp)return Dt;Sp=1;var n=Ld();function a(g){var x="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Xu.exports=Cy(),Xu.exports}var Np;function Ey(){if(Np)return Kl;Np=1;var n=Ay(),a=Ld(),r=ky();function o(e){var t="https://react.dev/errors/"+e;if(1ue||(e.current=ee[ue],ee[ue]=null,ue--)}function K(e,t){ue++,ee[ue]=e.current,e.current=t}var ne=T(null),me=T(null),ce=T(null),fe=T(null);function be(e,t){switch(K(ce,t),K(me,e),K(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?z0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=z0(t),e=U0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(ne),K(ne,e)}function ge(){_(ne),_(me),_(ce)}function xe(e){e.memoizedState!==null&&K(fe,e);var t=ne.current,s=U0(t,e.type);t!==s&&(K(me,e),K(ne,s))}function ze(e){me.current===e&&(_(ne),_(me)),fe.current===e&&(_(fe),Fl._currentValue=J)}var Ee,Te;function Oe(e){if(Ee===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||"",Te=-1)":-1c||D[i]!==Y[c]){var W=` +`+D[i].replace(" at new "," at ");return e.displayName&&W.includes("")&&(W=W.replace("",e.displayName)),W}while(1<=i&&0<=c);break}}}finally{Ue=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?Oe(s):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return ht(e.type,!1);case 11:return ht(e.type.render,!1);case 1:return ht(e.type,!0);case 31:return Oe("Activity");default:return""}}function ae(e){try{var t="",s=null;do t+=re(e,s),s=e,e=e.return;while(e);return t}catch(i){return` +Error generating stack: `+i.message+` +`+i.stack}}var Se=Object.prototype.hasOwnProperty,pe=n.unstable_scheduleCallback,je=n.unstable_cancelCallback,Ae=n.unstable_shouldYield,Re=n.unstable_requestPaint,le=n.unstable_now,he=n.unstable_getCurrentPriorityLevel,De=n.unstable_ImmediatePriority,Tt=n.unstable_UserBlockingPriority,qt=n.unstable_NormalPriority,nl=n.unstable_LowPriority,Ft=n.unstable_IdlePriority,Ne=n.log,st=n.unstable_setDisableYieldValue,Ke=null,ke=null;function He(e){if(typeof Ne=="function"&&st(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(Ke,e)}catch{}}var Pe=Math.clz32?Math.clz32:yt,Ms=Math.log,na=Math.LN2;function yt(e){return e>>>=0,e===0?32:31-(Ms(e)/na|0)|0}var jn=256,Nr=262144,wr=4194304;function Rs(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ar(e,t,s){var i=e.pendingLanes;if(i===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var C=i&134217727;return C!==0?(i=C&~d,i!==0?c=Rs(i):(y&=C,y!==0?c=Rs(y):s||(s=C&~e,s!==0&&(c=Rs(s))))):(C=i&~d,C!==0?c=Rs(C):y!==0?c=Rs(y):s||(s=i&~e,s!==0&&(c=Rs(s)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,s=t&-t,d>=s||d===32&&(s&4194048)!==0)?t:c}function sl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function iv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bf(){var e=wr;return wr<<=1,(wr&62914560)===0&&(wr=4194304),e}function Mo(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function al(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ov(e,t,s,i,c,d){var y=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var C=e.entanglements,D=e.expirationTimes,Y=e.hiddenUpdates;for(s=y&~s;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hv=/[\n"\\]/g;function nn(e){return e.replace(hv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oo(e,t,s,i,c,d,y,C){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Bo(e,y,tn(t)):s!=null?Bo(e,y,tn(s)):i!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?e.name=""+tn(C):e.removeAttribute("name")}function qf(e,t,s,i,c,d,y,C){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){_o(e);return}s=s!=null?""+tn(s):"",t=t!=null?""+tn(t):s,C||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=C?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),_o(e)}function Bo(e,t,s){t==="number"&&Er(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function oa(e,t,s,i){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vo=!1;if(Dn)try{var ol={};Object.defineProperty(ol,"passive",{get:function(){Vo=!0}}),window.addEventListener("test",ol,ol),window.removeEventListener("test",ol,ol)}catch{Vo=!1}var as=null,$o=null,Rr=null;function Uf(){if(Rr)return Rr;var e,t=$o,s=t.length,i,c="value"in as?as.value:as.textContent,d=c.length;for(e=0;e=dl),Yf=" ",Xf=!1;function Qf(e,t){switch(e){case"keyup":return $v.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function If(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fa=!1;function Fv(e,t){switch(e){case"compositionend":return If(t);case"keypress":return t.which!==32?null:(Xf=!0,Yf);case"textInput":return e=t.data,e===Yf&&Xf?null:e;default:return null}}function Yv(e,t){if(fa)return e==="compositionend"||!Qo&&Qf(e,t)?(e=Uf(),Rr=$o=as=null,fa=!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:s,offset:t-e};e=i}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=nm(s)}}function am(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?am(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Er(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Er(e.document)}return t}function Zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Wv=Dn&&"documentMode"in document&&11>=document.documentMode,ma=null,Jo=null,pl=null,Po=!1;function rm(e,t,s){var i=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Po||ma==null||ma!==Er(i)||(i=ma,"selectionStart"in i&&Zo(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),pl&&hl(pl,i)||(pl=i,i=Ni(Jo,"onSelect"),0>=y,c-=y,Nn=1<<32-Pe(t)+c|s<_e?($e=ye,ye=null):$e=ye.sibling;var Xe=I(U,ye,F[_e],te);if(Xe===null){ye===null&&(ye=$e);break}e&&ye&&Xe.alternate===null&&t(U,ye),B=d(Xe,B,_e),Ye===null?we=Xe:Ye.sibling=Xe,Ye=Xe,ye=$e}if(_e===F.length)return s(U,ye),Ge&&On(U,_e),we;if(ye===null){for(;_e_e?($e=ye,ye=null):$e=ye.sibling;var Cs=I(U,ye,Xe.value,te);if(Cs===null){ye===null&&(ye=$e);break}e&&ye&&Cs.alternate===null&&t(U,ye),B=d(Cs,B,_e),Ye===null?we=Cs:Ye.sibling=Cs,Ye=Cs,ye=$e}if(Xe.done)return s(U,ye),Ge&&On(U,_e),we;if(ye===null){for(;!Xe.done;_e++,Xe=F.next())Xe=se(U,Xe.value,te),Xe!==null&&(B=d(Xe,B,_e),Ye===null?we=Xe:Ye.sibling=Xe,Ye=Xe);return Ge&&On(U,_e),we}for(ye=i(ye);!Xe.done;_e++,Xe=F.next())Xe=Z(ye,U,_e,Xe.value,te),Xe!==null&&(e&&Xe.alternate!==null&&ye.delete(Xe.key===null?_e:Xe.key),B=d(Xe,B,_e),Ye===null?we=Xe:Ye.sibling=Xe,Ye=Xe);return e&&ye.forEach(function(by){return t(U,by)}),Ge&&On(U,_e),we}function tt(U,B,F,te){if(typeof F=="object"&&F!==null&&F.type===N&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case M:e:{for(var we=F.key;B!==null;){if(B.key===we){if(we=F.type,we===N){if(B.tag===7){s(U,B.sibling),te=c(B,F.props.children),te.return=U,U=te;break e}}else if(B.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===z&&Vs(we)===B.type){s(U,B.sibling),te=c(B,F.props),Sl(te,F),te.return=U,U=te;break e}s(U,B);break}else t(U,B);B=B.sibling}F.type===N?(te=Bs(F.props.children,U.mode,te,F.key),te.return=U,U=te):(te=Hr(F.type,F.key,F.props,null,U.mode,te),Sl(te,F),te.return=U,U=te)}return y(U);case k:e:{for(we=F.key;B!==null;){if(B.key===we)if(B.tag===4&&B.stateNode.containerInfo===F.containerInfo&&B.stateNode.implementation===F.implementation){s(U,B.sibling),te=c(B,F.children||[]),te.return=U,U=te;break e}else{s(U,B);break}else t(U,B);B=B.sibling}te=lc(F,U.mode,te),te.return=U,U=te}return y(U);case z:return F=Vs(F),tt(U,B,F,te)}if($(F))return ve(U,B,F,te);if(P(F)){if(we=P(F),typeof we!="function")throw Error(o(150));return F=we.call(F),Ce(U,B,F,te)}if(typeof F.then=="function")return tt(U,B,Qr(F),te);if(F.$$typeof===E)return tt(U,B,Gr(U,F),te);Ir(U,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,B!==null&&B.tag===6?(s(U,B.sibling),te=c(B,F),te.return=U,U=te):(s(U,B),te=ac(F,U.mode,te),te.return=U,U=te),y(U)):s(U,B)}return function(U,B,F,te){try{yl=0;var we=tt(U,B,F,te);return wa=null,we}catch(ye){if(ye===Na||ye===Yr)throw ye;var Ye=Xt(29,ye,null,U.mode);return Ye.lanes=te,Ye.return=U,Ye}finally{}}}var Gs=Mm(!0),Rm=Mm(!1),cs=!1;function gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function us(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ds(e,t,s){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ie&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Ur(e),mm(e,null,s),t}return zr(e,i,t,s),Ur(e)}function jl(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Sf(e,s)}}function bc(e,t){var s=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,s===i)){var c=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var y={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,s=s.next}while(s!==null);d===null?c=d=t:d=d.next=t}else c=d=t;s={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var yc=!1;function Nl(){if(yc){var e=ja;if(e!==null)throw e}}function wl(e,t,s,i){yc=!1;var c=e.updateQueue;cs=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var D=C,Y=D.next;D.next=null,y===null?d=Y:y.next=Y,y=D;var W=e.alternate;W!==null&&(W=W.updateQueue,C=W.lastBaseUpdate,C!==y&&(C===null?W.firstBaseUpdate=Y:C.next=Y,W.lastBaseUpdate=D))}if(d!==null){var se=c.baseState;y=0,W=Y=D=null,C=d;do{var I=C.lane&-536870913,Z=I!==C.lane;if(Z?(Ve&I)===I:(i&I)===I){I!==0&&I===Sa&&(yc=!0),W!==null&&(W=W.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var ve=e,Ce=C;I=t;var tt=s;switch(Ce.tag){case 1:if(ve=Ce.payload,typeof ve=="function"){se=ve.call(tt,se,I);break e}se=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ce.payload,I=typeof ve=="function"?ve.call(tt,se,I):ve,I==null)break e;se=b({},se,I);break e;case 2:cs=!0}}I=C.callback,I!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=c.callbacks,Z===null?c.callbacks=[I]:Z.push(I))}else Z={lane:I,tag:C.tag,payload:C.payload,callback:C.callback,next:null},W===null?(Y=W=Z,D=se):W=W.next=Z,y|=I;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;Z=C,C=Z.next,Z.next=null,c.lastBaseUpdate=Z,c.shared.pending=null}}while(!0);W===null&&(D=se),c.baseState=D,c.firstBaseUpdate=Y,c.lastBaseUpdate=W,d===null&&(c.shared.lanes=0),xs|=y,e.lanes=y,e.memoizedState=se}}function Tm(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function qm(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;ed?d:8;var y=q.T,C={};q.T=C,Uc(e,!1,t,s);try{var D=c(),Y=q.S;if(Y!==null&&Y(C,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var W=ob(D,i);kl(e,t,W,Jt(e))}else kl(e,t,i,Jt(e))}catch(se){kl(e,t,{then:function(){},status:"rejected",reason:se},Jt())}finally{H.p=d,y!==null&&C.types!==null&&(y.types=C.types),q.T=y}}function hb(){}function Lc(e,t,s,i){if(e.tag!==5)throw Error(o(476));var c=uh(e).queue;ch(e,c,t,J,s===null?hb:function(){return dh(e),s(i)})}function uh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:J},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dh(e){var t=uh(e);t.next===null&&(t=e.alternate.memoizedState),kl(e,t.next.queue,{},Jt())}function zc(){return kt(Fl)}function fh(){return mt().memoizedState}function mh(){return mt().memoizedState}function pb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=Jt();e=us(s);var i=ds(t,e,s);i!==null&&($t(i,t,s),jl(i,t,s)),t={cache:mc()},e.payload=t;return}t=t.return}}function xb(e,t,s){var i=Jt();s={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ai(e)?ph(t,s):(s=nc(e,t,s,i),s!==null&&($t(s,e,i),xh(s,t,i)))}function hh(e,t,s){var i=Jt();kl(e,t,s,i)}function kl(e,t,s,i){var c={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(ai(e))ph(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,C=d(y,s);if(c.hasEagerState=!0,c.eagerState=C,Yt(C,y))return zr(e,t,c,0),nt===null&&Lr(),!1}catch{}finally{}if(s=nc(e,t,c,i),s!==null)return $t(s,e,i),xh(s,t,i),!0}return!1}function Uc(e,t,s,i){if(i={lane:2,revertLane:gu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ai(e)){if(t)throw Error(o(479))}else t=nc(e,s,i,2),t!==null&&$t(t,e,2)}function ai(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function ph(e,t){Ca=Jr=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function xh(e,t,s){if((s&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Sf(e,s)}}var El={readContext:kt,use:ei,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};El.useEffectEvent=ct;var gh={readContext:kt,use:ei,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:eh,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,ni(4194308,4,ah.bind(null,t,e),s)},useLayoutEffect:function(e,t){return ni(4194308,4,e,t)},useInsertionEffect:function(e,t){ni(4,2,e,t)},useMemo:function(e,t){var s=_t();t=t===void 0?null:t;var i=e();if(Fs){He(!0);try{e()}finally{He(!1)}}return s.memoizedState=[i,t],i},useReducer:function(e,t,s){var i=_t();if(s!==void 0){var c=s(t);if(Fs){He(!0);try{s(t)}finally{He(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=xb.bind(null,qe,e),[i.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:function(e){e=qc(e);var t=e.queue,s=hh.bind(null,qe,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:Oc,useDeferredValue:function(e,t){var s=_t();return Bc(s,e,t)},useTransition:function(){var e=qc(!1);return e=ch.bind(null,qe,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var i=qe,c=_t();if(Ge){if(s===void 0)throw Error(o(407));s=s()}else{if(s=t(),nt===null)throw Error(o(349));(Ve&127)!==0||zm(i,t,s)}c.memoizedState=s;var d={value:s,getSnapshot:t};return c.queue=d,eh(Hm.bind(null,i,d,e),[e]),i.flags|=2048,Ea(9,{destroy:void 0},Um.bind(null,i,d,s,t),null),s},useId:function(){var e=_t(),t=nt.identifierPrefix;if(Ge){var s=wn,i=Nn;s=(i&~(1<<32-Pe(i)-1)).toString(32)+s,t="_"+t+"R_"+s,s=Pr++,0<\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?y.createElement(c,{is:i.is}):y.createElement(c)}}d[At]=t,d[Bt]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(Mt(d,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Vn(t)}}return lt(t),Wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Vn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=ce.current,ba(t)){if(e=t.stateNode,s=t.memoizedProps,i=null,c=Ct,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[At]=t,e=!!(e.nodeValue===s||i!==null&&i.suppressHydrationWarning===!0||B0(e.nodeValue,s)),e||is(t,!0)}else e=wi(e).createTextNode(i),e[At]=t,t.stateNode=e}return lt(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(i=ba(t),s!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[At]=t}else Ls(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else s=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(It(t),t):(It(t),null);if((t.flags&128)!==0)throw Error(o(558))}return lt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ba(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[At]=t}else Ls(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),c=!1}else c=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(It(t),t):(It(t),null)}return It(t),(t.flags&128)!==0?(t.lanes=s,t):(s=i!==null,e=e!==null&&e.memoizedState!==null,s&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==c&&(i.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),ci(t,t.updateQueue),lt(t),null);case 4:return ge(),e===null&&Su(t.stateNode.containerInfo),lt(t),null;case 10:return Ln(t.type),lt(t),null;case 19:if(_(ft),i=t.memoizedState,i===null)return lt(t),null;if(c=(t.flags&128)!==0,d=i.rendering,d===null)if(c)Rl(i,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Zr(e),d!==null){for(t.flags|=128,Rl(i,!1),e=d.updateQueue,t.updateQueue=e,ci(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)hm(s,e),s=s.sibling;return K(ft,ft.current&1|2),Ge&&On(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&le()>hi&&(t.flags|=128,c=!0,Rl(i,!1),t.lanes=4194304)}else{if(!c)if(e=Zr(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,ci(t,e),Rl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ge)return lt(t),null}else 2*le()-i.renderingStartTime>hi&&s!==536870912&&(t.flags|=128,c=!0,Rl(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=le(),e.sibling=null,s=ft.current,K(ft,c?s&1|2:s&1),Ge&&On(t,i.treeForkCount),e):(lt(t),null);case 22:case 23:return It(t),jc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(s&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),s=t.updateQueue,s!==null&&ci(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==s&&(t.flags|=2048),e!==null&&_(Hs),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Ln(pt),lt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Sb(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(pt),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ze(t),null;case 31:if(t.memoizedState!==null){if(It(t),t.alternate===null)throw Error(o(340));Ls()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(It(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ls()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(ft),null;case 4:return ge(),null;case 10:return Ln(t.type),null;case 22:case 23:return It(t),jc(),e!==null&&_(Hs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ln(pt),null;case 25:return null;default:return null}}function Vh(e,t){switch(ic(t),t.tag){case 3:Ln(pt),ge();break;case 26:case 27:case 5:ze(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&It(t);break;case 13:It(t);break;case 19:_(ft);break;case 10:Ln(t.type);break;case 22:case 23:It(t),jc(),e!==null&&_(Hs);break;case 24:Ln(pt)}}function Tl(e,t){try{var s=t.updateQueue,i=s!==null?s.lastEffect:null;if(i!==null){var c=i.next;s=c;do{if((s.tag&e)===e){i=void 0;var d=s.create,y=s.inst;i=d(),y.destroy=i}s=s.next}while(s!==c)}}catch(C){Je(t,t.return,C)}}function hs(e,t,s){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var d=c.next;i=d;do{if((i.tag&e)===e){var y=i.inst,C=y.destroy;if(C!==void 0){y.destroy=void 0,c=t;var D=s,Y=C;try{Y()}catch(W){Je(c,D,W)}}}i=i.next}while(i!==d)}}catch(W){Je(t,t.return,W)}}function $h(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{qm(t,s)}catch(i){Je(e,e.return,i)}}}function Gh(e,t,s){s.props=Ys(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(i){Je(e,t,i)}}function ql(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof s=="function"?e.refCleanup=s(i):s.current=i}}catch(c){Je(e,t,c)}}function An(e,t){var s=e.ref,i=e.refCleanup;if(s!==null)if(typeof i=="function")try{i()}catch(c){Je(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){Je(e,t,c)}else s.current=null}function Fh(e){var t=e.type,s=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&i.focus();break e;case"img":s.src?i.src=s.src:s.srcSet&&(i.srcset=s.srcSet)}}catch(c){Je(e,e.return,c)}}function eu(e,t,s){try{var i=e.stateNode;Gb(i,e.type,s,t),i[Bt]=t}catch(c){Je(e,e.return,c)}}function Yh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ss(e.type)||e.tag===4}function tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ss(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nu(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=qn));else if(i!==4&&(i===27&&Ss(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(nu(e,t,s),e=e.sibling;e!==null;)nu(e,t,s),e=e.sibling}function ui(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(i!==4&&(i===27&&Ss(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(ui(e,t,s),e=e.sibling;e!==null;)ui(e,t,s),e=e.sibling}function Xh(e){var t=e.stateNode,s=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Mt(t,i,s),t[At]=e,t[Bt]=s}catch(d){Je(e,e.return,d)}}var $n=!1,vt=!1,su=!1,Qh=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function jb(e,t){if(e=e.containerInfo,wu=Ti,e=lm(e),Zo(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var i=s.getSelection&&s.getSelection();if(i&&i.rangeCount!==0){s=i.anchorNode;var c=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var y=0,C=-1,D=-1,Y=0,W=0,se=e,I=null;t:for(;;){for(var Z;se!==s||c!==0&&se.nodeType!==3||(C=y+c),se!==d||i!==0&&se.nodeType!==3||(D=y+i),se.nodeType===3&&(y+=se.nodeValue.length),(Z=se.firstChild)!==null;)I=se,se=Z;for(;;){if(se===e)break t;if(I===s&&++Y===c&&(C=y),I===d&&++W===i&&(D=y),(Z=se.nextSibling)!==null)break;se=I,I=se.parentNode}se=Z}s=C===-1||D===-1?null:{start:C,end:D}}else s=null}s=s||{start:0,end:0}}else s=null;for(Au={focusedElem:e,selectionRange:s},Ti=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s title"))),Mt(d,i,s),d[At]=e,jt(d),i=d;break e;case"link":var y=W0("link","href",c).get(i+(s.href||""));if(y){for(var C=0;Ctt&&(y=tt,tt=Ce,Ce=y);var U=sm(C,Ce),B=sm(C,tt);if(U&&B&&(Z.rangeCount!==1||Z.anchorNode!==U.node||Z.anchorOffset!==U.offset||Z.focusNode!==B.node||Z.focusOffset!==B.offset)){var F=se.createRange();F.setStart(U.node,U.offset),Z.removeAllRanges(),Ce>tt?(Z.addRange(F),Z.extend(B.node,B.offset)):(F.setEnd(B.node,B.offset),Z.addRange(F))}}}}for(se=[],Z=C;Z=Z.parentNode;)Z.nodeType===1&&se.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;Cs?32:s,q.T=null,s=uu,uu=null;var d=vs,y=Qn;if(St=0,Da=vs=null,Qn=0,(Ie&6)!==0)throw Error(o(331));var C=Ie;if(Ie|=4,a0(d.current),t0(d,d.current,y,s),Ie=C,zl(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(Ke,d)}catch{}return!0}finally{H.p=c,q.T=i,j0(e,t)}}function w0(e,t,s){t=an(s,t),t=Gc(e.stateNode,t,2),e=ds(e,t,2),e!==null&&(al(e,2),Cn(e))}function Je(e,t,s){if(e.tag===3)w0(e,e,s);else for(;t!==null;){if(t.tag===3){w0(t,e,s);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(gs===null||!gs.has(i))){e=an(s,e),s=Ah(2),i=ds(t,s,2),i!==null&&(Ch(s,i,t,e),al(i,2),Cn(i));break}}t=t.return}}function hu(e,t,s){var i=e.pingCache;if(i===null){i=e.pingCache=new Ab;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(s)||(ru=!0,c.add(s),e=Rb.bind(null,e,t,s),t.then(e,e))}function Rb(e,t,s){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,nt===e&&(Ve&s)===s&&(ut===4||ut===3&&(Ve&62914560)===Ve&&300>le()-mi?(Ie&2)===0&&_a(e,0):iu|=s,qa===Ve&&(qa=0)),Cn(e)}function A0(e,t){t===0&&(t=bf()),e=Os(e,t),e!==null&&(al(e,t),Cn(e))}function Tb(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),A0(e,s)}function qb(e,t){var s=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),A0(e,s)}function Db(e,t){return pe(e,t)}var yi=null,Ba=null,pu=!1,Si=!1,xu=!1,ys=0;function Cn(e){e!==Ba&&e.next===null&&(Ba===null?yi=Ba=e:Ba=Ba.next=e),Si=!0,pu||(pu=!0,Ob())}function zl(e,t){if(!xu&&Si){xu=!0;do for(var s=!1,i=yi;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var d=0;else{var y=i.suspendedLanes,C=i.pingedLanes;d=(1<<31-Pe(42|e)+1)-1,d&=c&~(y&~C),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(s=!0,M0(i,d))}else d=Ve,d=Ar(i,i===nt?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||sl(i,d)||(s=!0,M0(i,d));i=i.next}while(s);xu=!1}}function _b(){C0()}function C0(){Si=pu=!1;var e=0;ys!==0&&Yb()&&(e=ys);for(var t=le(),s=null,i=yi;i!==null;){var c=i.next,d=k0(i,t);d===0?(i.next=null,s===null?yi=c:s.next=c,c===null&&(Ba=s)):(s=i,(e!==0||(d&3)!==0)&&(Si=!0)),i=c}St!==0&&St!==5||zl(e),ys!==0&&(ys=0)}function k0(e,t){for(var s=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0C)break;var W=D.transferSize,se=D.initiatorType;W&&L0(se)&&(D=D.responseEnd,y+=W*(D"u"?null:document;function K0(e,t,s){var i=La;if(i&&typeof t=="string"&&t){var c=nn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),I0.has(c)||(I0.add(c),e={rel:e,crossOrigin:s,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),Mt(t,"link",e),jt(t),i.head.appendChild(t)))}}function ey(e){In.D(e),K0("dns-prefetch",e,null)}function ty(e,t){In.C(e,t),K0("preconnect",e,t)}function ny(e,t,s){In.L(e,t,s);var i=La;if(i&&e&&t){var c='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+nn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+nn(s.imageSizes)+'"]')):c+='[href="'+nn(e)+'"]';var d=c;switch(t){case"style":d=za(e);break;case"script":d=Ua(e)}dn.has(d)||(e=b({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),dn.set(d,e),i.querySelector(c)!==null||t==="style"&&i.querySelector($l(d))||t==="script"&&i.querySelector(Gl(d))||(t=i.createElement("link"),Mt(t,"link",e),jt(t),i.head.appendChild(t)))}}function sy(e,t){In.m(e,t);var s=La;if(s&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+nn(i)+'"][href="'+nn(e)+'"]',d=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ua(e)}if(!dn.has(d)&&(e=b({rel:"modulepreload",href:e},t),dn.set(d,e),s.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Gl(d)))return}i=s.createElement("link"),Mt(i,"link",e),jt(i),s.head.appendChild(i)}}}function ay(e,t,s){In.S(e,t,s);var i=La;if(i&&e){var c=ra(i).hoistableStyles,d=za(e);t=t||"default";var y=c.get(d);if(!y){var C={loading:0,preload:null};if(y=i.querySelector($l(d)))C.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},s),(s=dn.get(d))&&qu(e,s);var D=y=i.createElement("link");jt(D),Mt(D,"link",e),D._p=new Promise(function(Y,W){D.onload=Y,D.onerror=W}),D.addEventListener("load",function(){C.loading|=1}),D.addEventListener("error",function(){C.loading|=2}),C.loading|=4,Ci(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:C},c.set(d,y)}}}function ly(e,t){In.X(e,t);var s=La;if(s&&e){var i=ra(s).hoistableScripts,c=Ua(e),d=i.get(c);d||(d=s.querySelector(Gl(c)),d||(e=b({src:e,async:!0},t),(t=dn.get(c))&&Du(e,t),d=s.createElement("script"),jt(d),Mt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function ry(e,t){In.M(e,t);var s=La;if(s&&e){var i=ra(s).hoistableScripts,c=Ua(e),d=i.get(c);d||(d=s.querySelector(Gl(c)),d||(e=b({src:e,async:!0,type:"module"},t),(t=dn.get(c))&&Du(e,t),d=s.createElement("script"),jt(d),Mt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function Z0(e,t,s,i){var c=(c=ce.current)?Ai(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=za(s.href),s=ra(c).hoistableStyles,i=s.get(t),i||(i={type:"style",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=za(s.href);var d=ra(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector($l(e)))&&!d._p&&(y.instance=d,y.state.loading=5),dn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},dn.set(e,s),d||iy(c,e,s,y.state))),t&&i===null)throw Error(o(528,""));return y}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ua(s),s=ra(c).hoistableScripts,i=s.get(t),i||(i={type:"script",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function za(e){return'href="'+nn(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function J0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function iy(e,t,s,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Mt(t,"link",s),jt(t),e.head.appendChild(t))}function Ua(e){return'[src="'+nn(e)+'"]'}function Gl(e){return"script[async]"+e}function P0(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+nn(s.href)+'"]');if(i)return t.instance=i,jt(i),i;var c=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),jt(i),Mt(i,"style",c),Ci(i,s.precedence,e),t.instance=i;case"stylesheet":c=za(s.href);var d=e.querySelector($l(c));if(d)return t.state.loading|=4,t.instance=d,jt(d),d;i=J0(s),(c=dn.get(c))&&qu(i,c),d=(e.ownerDocument||e).createElement("link"),jt(d);var y=d;return y._p=new Promise(function(C,D){y.onload=C,y.onerror=D}),Mt(d,"link",i),t.state.loading|=4,Ci(d,s.precedence,e),t.instance=d;case"script":return d=Ua(s.src),(c=e.querySelector(Gl(d)))?(t.instance=c,jt(c),c):(i=s,(c=dn.get(d))&&(i=b({},s),Du(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),jt(c),Mt(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ci(i,s.precedence,e));return t.instance}function Ci(e,t,s){for(var i=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,d=c,y=0;y title"):null)}function oy(e,t,s){if(s===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cy(e,t,s,i){if(s.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=za(i.href),d=t.querySelector($l(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ei.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=d,jt(d);return}d=t.ownerDocument||t,i=J0(i),(c=dn.get(c))&&qu(i,c),d=d.createElement("link"),jt(d);var y=d;y._p=new Promise(function(C,D){y.onload=C,y.onerror=D}),Mt(d,"link",i),s.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=Ei.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var _u=0;function uy(e,t){return e.stylesheets&&e.count===0&&Ri(e,e.stylesheets),0_u?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function Ei(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ri(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mi=null;function Ri(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mi=new Map,t.forEach(dy,e),Mi=null,Ei.call(e))}function dy(e,t){if(!(t.state.loading&4)){var s=Mi.get(e);if(s)var i=s.get(null);else{s=new Map,Mi.set(e,s);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Gu.exports=Ey(),Gu.exports}var Ry=My();var Ap="popstate";function Ty(n={}){function a(o,u){let{pathname:f,search:h,hash:p}=o.location;return gd("",{pathname:f,search:h,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(o,u){return typeof u=="string"?u:or(u)}return Dy(a,r,null,n)}function ot(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Sn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function qy(){return Math.random().toString(36).substring(2,10)}function Cp(n,a){return{usr:n.state,key:n.key,idx:a}}function gd(n,a,r=null,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Wa(a):a,state:r,key:a&&a.key||o||qy()}}function or({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Wa(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let o=n.indexOf("?");o>=0&&(a.search=n.substring(o),n=n.substring(0,o)),n&&(a.pathname=n)}return a}function Dy(n,a,r,o={}){let{window:u=document.defaultView,v5Compat:f=!1}=o,h=u.history,p="POP",g=null,x=v();x==null&&(x=0,h.replaceState({...h.state,idx:x},""));function v(){return(h.state||{idx:null}).idx}function b(){p="POP";let w=v(),S=w==null?null:w-x;x=w,g&&g({action:p,location:N.location,delta:S})}function j(w,S){p="PUSH";let R=gd(N.location,w,S);x=v()+1;let E=Cp(R,x),A=N.createHref(R);try{h.pushState(E,"",A)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;u.location.assign(A)}f&&g&&g({action:p,location:N.location,delta:1})}function M(w,S){p="REPLACE";let R=gd(N.location,w,S);x=v();let E=Cp(R,x),A=N.createHref(R);h.replaceState(E,"",A),f&&g&&g({action:p,location:N.location,delta:0})}function k(w){return _y(w)}let N={get action(){return p},get location(){return n(u,h)},listen(w){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(Ap,b),g=w,()=>{u.removeEventListener(Ap,b),g=null}},createHref(w){return a(u,w)},createURL:k,encodeLocation(w){let S=k(w);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:j,replace:M,go(w){return h.go(w)}};return N}function _y(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ot(r,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:or(n);return o=o.replace(/ $/,"%20"),!a&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Mx(n,a,r="/"){return Oy(n,a,r,!1)}function Oy(n,a,r,o){let u=typeof a=="string"?Wa(a):a,f=es(u.pathname||"/",r);if(f==null)return null;let h=Rx(n);By(h);let p=null;for(let g=0;p==null&&g{let v={relativePath:x===void 0?h.path||"":x,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(o)&&g)return;ot(v.relativePath.startsWith(o),`Absolute route path "${v.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(o.length)}let b=Wn([o,v.relativePath]),j=r.concat(v);h.children&&h.children.length>0&&(ot(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Rx(h.children,a,j,b,g)),!(h.path==null&&!h.index)&&a.push({path:b,score:Gy(b,h.index),routesMeta:j})};return n.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))f(h,p);else for(let g of Tx(h.path))f(h,p,!0,g)}),a}function Tx(n){let a=n.split("/");if(a.length===0)return[];let[r,...o]=a,u=r.endsWith("?"),f=r.replace(/\?$/,"");if(o.length===0)return u?[f,""]:[f];let h=Tx(o.join("/")),p=[];return p.push(...h.map(g=>g===""?f:[f,g].join("/"))),u&&p.push(...h),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function By(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:Fy(a.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var Ly=/^:[\w-]+$/,zy=3,Uy=2,Hy=1,Vy=10,$y=-2,kp=n=>n==="*";function Gy(n,a){let r=n.split("/"),o=r.length;return r.some(kp)&&(o+=$y),a&&(o+=Uy),r.filter(u=>!kp(u)).reduce((u,f)=>u+(Ly.test(f)?zy:f===""?Hy:Vy),o)}function Fy(n,a){return n.length===a.length&&n.slice(0,-1).every((o,u)=>o===a[u])?n[n.length-1]-a[a.length-1]:0}function Yy(n,a,r=!1){let{routesMeta:o}=n,u={},f="/",h=[];for(let p=0;p{if(v==="*"){let k=p[j]||"";h=f.slice(0,f.length-k.length).replace(/(.)\/+$/,"$1")}const M=p[j];return b&&!M?x[v]=void 0:x[v]=(M||"").replace(/%2F/g,"/"),x},{}),pathname:f,pathnameBase:h,pattern:n}}function Xy(n,a=!1,r=!0){Sn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let o=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,g)=>(o.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,a?void 0:"i"),o]}function Qy(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Sn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function es(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,o=n.charAt(r);return o&&o!=="/"?null:n.slice(r)||"/"}var Iy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ky=n=>Iy.test(n);function Zy(n,a="/"){let{pathname:r,search:o="",hash:u=""}=typeof n=="string"?Wa(n):n,f;if(r)if(Ky(r))f=r;else{if(r.includes("//")){let h=r;r=r.replace(/\/\/+/g,"/"),Sn(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${r}`)}r.startsWith("/")?f=Ep(r.substring(1),"/"):f=Ep(r,a)}else f=a;return{pathname:f,search:Wy(o),hash:e1(u)}}function Ep(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function Qu(n,a,r,o){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Jy(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function qx(n){let a=Jy(n);return a.map((r,o)=>o===a.length-1?r.pathname:r.pathnameBase)}function Dx(n,a,r,o=!1){let u;typeof n=="string"?u=Wa(n):(u={...n},ot(!u.pathname||!u.pathname.includes("?"),Qu("?","pathname","search",u)),ot(!u.pathname||!u.pathname.includes("#"),Qu("#","pathname","hash",u)),ot(!u.search||!u.search.includes("#"),Qu("#","search","hash",u)));let f=n===""||u.pathname==="",h=f?"/":u.pathname,p;if(h==null)p=r;else{let b=a.length-1;if(!o&&h.startsWith("..")){let j=h.split("/");for(;j[0]==="..";)j.shift(),b-=1;u.pathname=j.join("/")}p=b>=0?a[b]:"/"}let g=Zy(u,p),x=h&&h!=="/"&&h.endsWith("/"),v=(f||h===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(x||v)&&(g.pathname+="/"),g}var Wn=n=>n.join("/").replace(/\/\/+/g,"/"),Py=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Wy=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,e1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function t1(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _x=["POST","PUT","PATCH","DELETE"];new Set(_x);var n1=["GET",..._x];new Set(n1);var el=m.createContext(null);el.displayName="DataRouter";var go=m.createContext(null);go.displayName="DataRouterState";m.createContext(!1);var Ox=m.createContext({isTransitioning:!1});Ox.displayName="ViewTransition";var s1=m.createContext(new Map);s1.displayName="Fetchers";var a1=m.createContext(null);a1.displayName="Await";var Rn=m.createContext(null);Rn.displayName="Navigation";var xr=m.createContext(null);xr.displayName="Location";var ns=m.createContext({outlet:null,matches:[],isDataRoute:!1});ns.displayName="Route";var zd=m.createContext(null);zd.displayName="RouteError";function l1(n,{relative:a}={}){ot(gr(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:o}=m.useContext(Rn),{hash:u,pathname:f,search:h}=vr(n,{relative:a}),p=f;return r!=="/"&&(p=f==="/"?r:Wn([r,f])),o.createHref({pathname:p,search:h,hash:u})}function gr(){return m.useContext(xr)!=null}function ta(){return ot(gr(),"useLocation() may be used only in the context of a component."),m.useContext(xr).location}var Bx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Lx(n){m.useContext(Rn).static||m.useLayoutEffect(n)}function r1(){let{isDataRoute:n}=m.useContext(ns);return n?b1():i1()}function i1(){ot(gr(),"useNavigate() may be used only in the context of a component.");let n=m.useContext(el),{basename:a,navigator:r}=m.useContext(Rn),{matches:o}=m.useContext(ns),{pathname:u}=ta(),f=JSON.stringify(qx(o)),h=m.useRef(!1);return Lx(()=>{h.current=!0}),m.useCallback((g,x={})=>{if(Sn(h.current,Bx),!h.current)return;if(typeof g=="number"){r.go(g);return}let v=Dx(g,JSON.parse(f),u,x.relative==="path");n==null&&a!=="/"&&(v.pathname=v.pathname==="/"?a:Wn([a,v.pathname])),(x.replace?r.replace:r.push)(v,x.state,x)},[a,r,f,u,n])}m.createContext(null);function vr(n,{relative:a}={}){let{matches:r}=m.useContext(ns),{pathname:o}=ta(),u=JSON.stringify(qx(r));return m.useMemo(()=>Dx(n,JSON.parse(u),o,a==="path"),[n,u,o,a])}function o1(n,a){return zx(n,a)}function zx(n,a,r,o,u){ot(gr(),"useRoutes() may be used only in the context of a component.");let{navigator:f}=m.useContext(Rn),{matches:h}=m.useContext(ns),p=h[h.length-1],g=p?p.params:{},x=p?p.pathname:"/",v=p?p.pathnameBase:"/",b=p&&p.route;{let R=b&&b.path||"";Ux(x,!b||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${x}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let j=ta(),M;if(a){let R=typeof a=="string"?Wa(a):a;ot(v==="/"||R.pathname?.startsWith(v),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${R.pathname}" was given in the \`location\` prop.`),M=R}else M=j;let k=M.pathname||"/",N=k;if(v!=="/"){let R=v.replace(/^\//,"").split("/");N="/"+k.replace(/^\//,"").split("/").slice(R.length).join("/")}let w=Mx(n,{pathname:N});Sn(b||w!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Sn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let S=m1(w&&w.map(R=>Object.assign({},R,{params:Object.assign({},g,R.params),pathname:Wn([v,f.encodeLocation?f.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?v:Wn([v,f.encodeLocation?f.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),h,r,o,u);return a&&S?m.createElement(xr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},S):S}function c1(){let n=v1(),a=t1(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:f},"ErrorBoundary")," or"," ",m.createElement("code",{style:f},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},a),r?m.createElement("pre",{style:u},r):null,h)}var u1=m.createElement(c1,null),d1=class extends m.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?m.createElement(ns.Provider,{value:this.props.routeContext},m.createElement(zd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function f1({routeContext:n,match:a,children:r}){let o=m.useContext(el);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),m.createElement(ns.Provider,{value:n},r)}function m1(n,a=[],r=null,o=null,u=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let f=n,h=r?.errors;if(h!=null){let v=f.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);ot(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,v+1))}let p=!1,g=-1;if(r)for(let v=0;v=0?f=f.slice(0,g+1):f=[f[0]];break}}}let x=r&&o?(v,b)=>{o(v,{location:r.location,params:r.matches?.[0]?.params??{},errorInfo:b})}:void 0;return f.reduceRight((v,b,j)=>{let M,k=!1,N=null,w=null;r&&(M=h&&b.route.id?h[b.route.id]:void 0,N=b.route.errorElement||u1,p&&(g<0&&j===0?(Ux("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,w=null):g===j&&(k=!0,w=b.route.hydrateFallbackElement||null)));let S=a.concat(f.slice(0,j+1)),R=()=>{let E;return M?E=N:k?E=w:b.route.Component?E=m.createElement(b.route.Component,null):b.route.element?E=b.route.element:E=v,m.createElement(f1,{match:b,routeContext:{outlet:v,matches:S,isDataRoute:r!=null},children:E})};return r&&(b.route.ErrorBoundary||b.route.errorElement||j===0)?m.createElement(d1,{location:r.location,revalidation:r.revalidation,component:N,error:M,children:R(),routeContext:{outlet:null,matches:S,isDataRoute:!0},onError:x}):R()},null)}function Ud(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function h1(n){let a=m.useContext(el);return ot(a,Ud(n)),a}function p1(n){let a=m.useContext(go);return ot(a,Ud(n)),a}function x1(n){let a=m.useContext(ns);return ot(a,Ud(n)),a}function Hd(n){let a=x1(n),r=a.matches[a.matches.length-1];return ot(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function g1(){return Hd("useRouteId")}function v1(){let n=m.useContext(zd),a=p1("useRouteError"),r=Hd("useRouteError");return n!==void 0?n:a.errors?.[r]}function b1(){let{router:n}=h1("useNavigate"),a=Hd("useNavigate"),r=m.useRef(!1);return Lx(()=>{r.current=!0}),m.useCallback(async(u,f={})=>{Sn(r.current,Bx),r.current&&(typeof u=="number"?n.navigate(u):await n.navigate(u,{fromRouteId:a,...f}))},[n,a])}var Mp={};function Ux(n,a,r){!a&&!Mp[n]&&(Mp[n]=!0,Sn(!1,r))}m.memo(y1);function y1({routes:n,future:a,state:r,unstable_onError:o}){return zx(n,void 0,r,o,a)}function Ki(n){ot(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function S1({basename:n="/",children:a=null,location:r,navigationType:o="POP",navigator:u,static:f=!1}){ot(!gr(),"You cannot render a inside another . You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),p=m.useMemo(()=>({basename:h,navigator:u,static:f,future:{}}),[h,u,f]);typeof r=="string"&&(r=Wa(r));let{pathname:g="/",search:x="",hash:v="",state:b=null,key:j="default"}=r,M=m.useMemo(()=>{let k=es(g,h);return k==null?null:{location:{pathname:k,search:x,hash:v,state:b,key:j},navigationType:o}},[h,g,x,v,b,j,o]);return Sn(M!=null,` is not able to match the URL "${g}${x}${v}" because it does not start with the basename, so the won't render anything.`),M==null?null:m.createElement(Rn.Provider,{value:p},m.createElement(xr.Provider,{children:a,value:M}))}function j1({children:n,location:a}){return o1(vd(n),a)}function vd(n,a=[]){let r=[];return m.Children.forEach(n,(o,u)=>{if(!m.isValidElement(o))return;let f=[...a,u];if(o.type===m.Fragment){r.push.apply(r,vd(o.props.children,f));return}ot(o.type===Ki,`[${typeof o.type=="string"?o.type:o.type.name}] is not a component. All component children of must be a or `),ot(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=vd(o.props.children,f)),r.push(h)}),r}var Zi="get",Ji="application/x-www-form-urlencoded";function vo(n){return n!=null&&typeof n.tagName=="string"}function N1(n){return vo(n)&&n.tagName.toLowerCase()==="button"}function w1(n){return vo(n)&&n.tagName.toLowerCase()==="form"}function A1(n){return vo(n)&&n.tagName.toLowerCase()==="input"}function C1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function k1(n,a){return n.button===0&&(!a||a==="_self")&&!C1(n)}var zi=null;function E1(){if(zi===null)try{new FormData(document.createElement("form"),0),zi=!1}catch{zi=!0}return zi}var M1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Iu(n){return n!=null&&!M1.has(n)?(Sn(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Ji}"`),null):n}function R1(n,a){let r,o,u,f,h;if(w1(n)){let p=n.getAttribute("action");o=p?es(p,a):null,r=n.getAttribute("method")||Zi,u=Iu(n.getAttribute("enctype"))||Ji,f=new FormData(n)}else if(N1(n)||A1(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a