diff --git a/server/public/assets/index-BY461TBg.js b/server/public/assets/index-BY461TBg.js new file mode 100644 index 00000000..001213f6 --- /dev/null +++ b/server/public/assets/index-BY461TBg.js @@ -0,0 +1,125 @@ +(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function i(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(f){if(f.ep)return;f.ep=!0;const d=i(f);fetch(f.href,d)}})();function Yy(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ru={exports:{}},Qs={};var W0;function Fy(){if(W0)return Qs;W0=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(o,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:a,type:o,key:h,ref:f!==void 0?f:null,props:d}}return Qs.Fragment=l,Qs.jsx=i,Qs.jsxs=i,Qs}var P0;function Xy(){return P0||(P0=1,Ru.exports=Fy()),Ru.exports}var r=Xy(),Tu={exports:{}},Ae={};var ep;function Qy(){if(ep)return Ae;ep=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),j=Symbol.iterator;function q(k){return k===null||typeof k!="object"?null:(k=j&&k[j]||k["@@iterator"],typeof k=="function"?k:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,N={};function M(k,H,te){this.props=k,this.context=H,this.refs=N,this.updater=te||C}M.prototype.isReactComponent={},M.prototype.setState=function(k,H){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,H,"setState")},M.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function S(){}S.prototype=M.prototype;function E(k,H,te){this.props=k,this.context=H,this.refs=N,this.updater=te||C}var T=E.prototype=new S;T.constructor=E,w(T,M.prototype),T.isPureReactComponent=!0;var z=Array.isArray;function U(){}var O={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function L(k,H,te){var ne=te.ref;return{$$typeof:a,type:k,key:H,ref:ne!==void 0?ne:null,props:te}}function K(k,H){return L(k.type,H,k.props)}function Z(k){return typeof k=="object"&&k!==null&&k.$$typeof===a}function ae(k){var H={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(te){return H[te]})}var ue=/\/+/g;function re(k,H){return typeof k=="object"&&k!==null&&k.key!=null?ae(""+k.key):H.toString(36)}function Y(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(U,U):(k.status="pending",k.then(function(H){k.status==="pending"&&(k.status="fulfilled",k.value=H)},function(H){k.status==="pending"&&(k.status="rejected",k.reason=H)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function R(k,H,te,ne,me){var ie=typeof k;(ie==="undefined"||ie==="boolean")&&(k=null);var ce=!1;if(k===null)ce=!0;else switch(ie){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(k.$$typeof){case a:case l:ce=!0;break;case b:return ce=k._init,R(ce(k._payload),H,te,ne,me)}}if(ce)return me=me(k),ce=ne===""?"."+re(k,0):ne,z(me)?(te="",ce!=null&&(te=ce.replace(ue,"$&/")+"/"),R(me,H,te,"",function(ge){return ge})):me!=null&&(Z(me)&&(me=K(me,te+(me.key==null||k&&k.key===me.key?"":(""+me.key).replace(ue,"$&/")+"/")+ce)),H.push(me)),1;ce=0;var fe=ne===""?".":ne+":";if(z(k))for(var pe=0;pe>>1,oe=R[se];if(0>>1;sef(te,J))nef(me,te)?(R[se]=me,R[ne]=J,se=ne):(R[se]=te,R[H]=J,se=H);else if(nef(me,J))R[se]=me,R[ne]=J,se=ne;else break e}}return Q}function f(R,Q){var J=R.sortIndex-Q.sortIndex;return J!==0?J:R.id-Q.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var x=[],g=[],b=1,y=null,j=3,q=!1,C=!1,w=!1,N=!1,M=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function T(R){for(var Q=i(g);Q!==null;){if(Q.callback===null)o(g);else if(Q.startTime<=R)o(g),Q.sortIndex=Q.expirationTime,l(x,Q);else break;Q=i(g)}}function z(R){if(w=!1,T(R),!C)if(i(x)!==null)C=!0,U||(U=!0,ae());else{var Q=i(g);Q!==null&&Y(z,Q.startTime-R)}}var U=!1,O=-1,F=5,L=-1;function K(){return N?!0:!(a.unstable_now()-LR&&K());){var se=y.callback;if(typeof se=="function"){y.callback=null,j=y.priorityLevel;var oe=se(y.expirationTime<=R);if(R=a.unstable_now(),typeof oe=="function"){y.callback=oe,T(R),Q=!0;break t}y===i(x)&&o(x),T(R)}else o(x);y=i(x)}if(y!==null)Q=!0;else{var k=i(g);k!==null&&Y(z,k.startTime-R),Q=!1}}break e}finally{y=null,j=J,q=!1}Q=void 0}}finally{Q?ae():U=!1}}}var ae;if(typeof E=="function")ae=function(){E(Z)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,re=ue.port2;ue.port1.onmessage=Z,ae=function(){re.postMessage(null)}}else ae=function(){M(Z,0)};function Y(R,Q){O=M(function(){R(a.unstable_now())},Q)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(R){R.callback=null},a.unstable_forceFrameRate=function(R){0>R||125se?(R.sortIndex=J,l(g,R),i(x)===null&&R===i(g)&&(w?(S(O),O=-1):w=!0,Y(z,J-se))):(R.sortIndex=oe,l(x,R),C||q||(C=!0,U||(U=!0,ae()))),R},a.unstable_shouldYield=K,a.unstable_wrapCallback=function(R){var Q=j;return function(){var J=j;j=Q;try{return R.apply(this,arguments)}finally{j=J}}}})(Ou)),Ou}var ap;function Zy(){return ap||(ap=1,_u.exports=Ky()),_u.exports}var Bu={exports:{}},wt={};var lp;function Iy(){if(lp)return wt;lp=1;var a=Ef();function l(x){var g="https://react.dev/errors/"+x;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Bu.exports=Iy(),Bu.exports}var ip;function Wy(){if(ip)return Ks;ip=1;var a=Zy(),l=Ef(),i=Jy();function o(e){var t="https://react.dev/errors/"+e;if(1oe||(e.current=se[oe],se[oe]=null,oe--)}function te(e,t){oe++,se[oe]=e.current,e.current=t}var ne=k(null),me=k(null),ie=k(null),ce=k(null);function fe(e,t){switch(te(ie,t),te(me,e),te(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?S0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=S0(t),e=A0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(ne),te(ne,e)}function pe(){H(ne),H(me),H(ie)}function ge(e){e.memoizedState!==null&&te(ce,e);var t=ne.current,n=A0(t,e.type);t!==n&&(te(me,e),te(ne,n))}function ze(e){me.current===e&&(H(ne),H(me)),ce.current===e&&(H(ce),Gs._currentValue=J)}var G,le;function xe(e){if(G===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);G=t&&t[1]||"",le=-1)":-1c||D[s]!==$[c]){var W=` +`+D[s].replace(" at new "," at ");return e.displayName&&W.includes("")&&(W=W.replace("",e.displayName)),W}while(1<=s&&0<=c);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?xe(n):""}function et(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe("Lazy");case 13:return e.child!==t&&t!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return Ye(e.type,!1);case 11:return Ye(e.type.render,!1);case 1:return Ye(e.type,!0);case 31:return xe("Activity");default:return""}}function xn(e){try{var t="",n=null;do t+=et(e,n),n=e,e=e.return;while(e);return t}catch(s){return` +Error generating stack: `+s.message+` +`+s.stack}}var kn=Object.prototype.hasOwnProperty,Nt=a.unstable_scheduleCallback,rn=a.unstable_cancelCallback,qn=a.unstable_shouldYield,vo=a.unstable_requestPaint,mt=a.unstable_now,el=a.unstable_getCurrentPriorityLevel,tl=a.unstable_ImmediatePriority,on=a.unstable_UserBlockingPriority,Ea=a.unstable_NormalPriority,bi=a.unstable_LowPriority,nl=a.unstable_IdlePriority,yo=a.log,ns=a.unstable_setDisableYieldValue,cn=null,pt=null;function Ft(e){if(typeof yo=="function"&&ns(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(cn,e)}catch{}}var rt=Math.clz32?Math.clz32:So,bo=Math.log,al=Math.LN2;function So(e){return e>>>=0,e===0?32:31-(bo(e)/al|0)|0}var ka=256,Ke=262144,ll=4194304;function Ot(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 ta(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var c=0,u=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var A=s&134217727;return A!==0?(s=A&~u,s!==0?c=Ot(s):(v&=A,v!==0?c=Ot(v):n||(n=A&~e,n!==0&&(c=Ot(n))))):(A=s&~u,A!==0?c=Ot(A):v!==0?c=Ot(v):n||(n=s&~e,n!==0&&(c=Ot(n)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:c}function gn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Si(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 Ai(){var e=ll;return ll<<=1,(ll&62914560)===0&&(ll=4194304),e}function as(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ji(e,t,n,s,c,u){var v=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var A=e.entanglements,D=e.expirationTimes,$=e.hiddenUpdates;for(n=v&~n;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var zg=/[\n"\\]/g;function Zt(e){return e.replace(zg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wo(e,t,n,s,c,u,v,A){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?Co(e,v,Kt(t)):n!=null?Co(e,v,Kt(n)):s!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+Kt(A):e.removeAttribute("name")}function pd(e,t,n,s,c,u,v,A){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){No(e);return}n=n!=null?""+Kt(n):"",t=t!=null?""+Kt(t):n,A||t===e.value||(e.value=t),e.defaultValue=t}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=A?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),No(e)}function Co(e,t,n){t==="number"&&Ci(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function cl(e,t,n,s){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ro=!1;if(Tn)try{var rs={};Object.defineProperty(rs,"passive",{get:function(){Ro=!0}}),window.addEventListener("test",rs,rs),window.removeEventListener("test",rs,rs)}catch{Ro=!1}var na=null,To=null,ki=null;function Ad(){if(ki)return ki;var e,t=To,n=t.length,s,c="value"in na?na.value:na.textContent,u=c.length;for(e=0;e=us),kd=" ",qd=!1;function Md(e,t){switch(e){case"keyup":return dv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ml=!1;function hv(e,t){switch(e){case"compositionend":return Rd(t);case"keypress":return t.which!==32?null:(qd=!0,kd);case"textInput":return e=t.data,e===kd&&qd?null:e;default:return null}}function pv(e,t){if(ml)return e==="compositionend"||!Lo&&Md(e,t)?(e=Ad(),ki=To=na=null,ml=!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=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ud(n)}}function Vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $d(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ci(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ci(e.document)}return t}function Ho(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 jv=Tn&&"documentMode"in document&&11>=document.documentMode,hl=null,Vo=null,hs=null,$o=!1;function Gd(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$o||hl==null||hl!==Ci(s)||(s=hl,"selectionStart"in s&&Ho(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),hs&&ms(hs,s)||(hs=s,s=Sr(Vo,"onSelect"),0>=v,c-=v,vn=1<<32-rt(t)+c|n<Ne?(qe=he,he=null):qe=he.sibling;var Oe=X(B,he,V[Ne],P);if(Oe===null){he===null&&(he=qe);break}e&&he&&Oe.alternate===null&&t(B,he),_=u(Oe,_,Ne),_e===null?ve=Oe:_e.sibling=Oe,_e=Oe,he=qe}if(Ne===V.length)return n(B,he),Me&&_n(B,Ne),ve;if(he===null){for(;NeNe?(qe=he,he=null):qe=he.sibling;var Na=X(B,he,Oe.value,P);if(Na===null){he===null&&(he=qe);break}e&&he&&Na.alternate===null&&t(B,he),_=u(Na,_,Ne),_e===null?ve=Na:_e.sibling=Na,_e=Na,he=qe}if(Oe.done)return n(B,he),Me&&_n(B,Ne),ve;if(he===null){for(;!Oe.done;Ne++,Oe=V.next())Oe=ee(B,Oe.value,P),Oe!==null&&(_=u(Oe,_,Ne),_e===null?ve=Oe:_e.sibling=Oe,_e=Oe);return Me&&_n(B,Ne),ve}for(he=s(he);!Oe.done;Ne++,Oe=V.next())Oe=I(he,B,Ne,Oe.value,P),Oe!==null&&(e&&Oe.alternate!==null&&he.delete(Oe.key===null?Ne:Oe.key),_=u(Oe,_,Ne),_e===null?ve=Oe:_e.sibling=Oe,_e=Oe);return e&&he.forEach(function(Gy){return t(B,Gy)}),Me&&_n(B,Ne),ve}function Ge(B,_,V,P){if(typeof V=="object"&&V!==null&&V.type===w&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case q:e:{for(var ve=V.key;_!==null;){if(_.key===ve){if(ve=V.type,ve===w){if(_.tag===7){n(B,_.sibling),P=c(_,V.props.children),P.return=B,B=P;break e}}else if(_.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===F&&Ha(ve)===_.type){n(B,_.sibling),P=c(_,V.props),bs(P,V),P.return=B,B=P;break e}n(B,_);break}else t(B,_);_=_.sibling}V.type===w?(P=Oa(V.props.children,B.mode,P,V.key),P.return=B,B=P):(P=zi(V.type,V.key,V.props,null,B.mode,P),bs(P,V),P.return=B,B=P)}return v(B);case C:e:{for(ve=V.key;_!==null;){if(_.key===ve)if(_.tag===4&&_.stateNode.containerInfo===V.containerInfo&&_.stateNode.implementation===V.implementation){n(B,_.sibling),P=c(_,V.children||[]),P.return=B,B=P;break e}else{n(B,_);break}else t(B,_);_=_.sibling}P=Zo(V,B.mode,P),P.return=B,B=P}return v(B);case F:return V=Ha(V),Ge(B,_,V,P)}if(Y(V))return de(B,_,V,P);if(ae(V)){if(ve=ae(V),typeof ve!="function")throw Error(o(150));return V=ve.call(V),be(B,_,V,P)}if(typeof V.then=="function")return Ge(B,_,Fi(V),P);if(V.$$typeof===E)return Ge(B,_,Vi(B,V),P);Xi(B,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,_!==null&&_.tag===6?(n(B,_.sibling),P=c(_,V),P.return=B,B=P):(n(B,_),P=Ko(V,B.mode,P),P.return=B,B=P),v(B)):n(B,_)}return function(B,_,V,P){try{ys=0;var ve=Ge(B,_,V,P);return wl=null,ve}catch(he){if(he===Nl||he===Gi)throw he;var _e=Lt(29,he,null,B.mode);return _e.lanes=P,_e.return=B,_e}finally{}}}var $a=dm(!0),mm=dm(!1),ra=!1;function rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oc(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 oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ca(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Be&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,t=Li(e),Id(e,null,n),t}return Bi(e,s,t,n),Li(e)}function Ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,ye(e,n)}}function cc(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var c=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var v={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?c=u=v:u=u.next=v,n=n.next}while(n!==null);u===null?c=u=t:u=u.next=t}else c=u=t;n={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var uc=!1;function As(){if(uc){var e=jl;if(e!==null)throw e}}function js(e,t,n,s){uc=!1;var c=e.updateQueue;ra=!1;var u=c.firstBaseUpdate,v=c.lastBaseUpdate,A=c.shared.pending;if(A!==null){c.shared.pending=null;var D=A,$=D.next;D.next=null,v===null?u=$:v.next=$,v=D;var W=e.alternate;W!==null&&(W=W.updateQueue,A=W.lastBaseUpdate,A!==v&&(A===null?W.firstBaseUpdate=$:A.next=$,W.lastBaseUpdate=D))}if(u!==null){var ee=c.baseState;v=0,W=$=D=null,A=u;do{var X=A.lane&-536870913,I=X!==A.lane;if(I?(ke&X)===X:(s&X)===X){X!==0&&X===Al&&(uc=!0),W!==null&&(W=W.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var de=e,be=A;X=t;var Ge=n;switch(be.tag){case 1:if(de=be.payload,typeof de=="function"){ee=de.call(Ge,ee,X);break e}ee=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=be.payload,X=typeof de=="function"?de.call(Ge,ee,X):de,X==null)break e;ee=y({},ee,X);break e;case 2:ra=!0}}X=A.callback,X!==null&&(e.flags|=64,I&&(e.flags|=8192),I=c.callbacks,I===null?c.callbacks=[X]:I.push(X))}else I={lane:X,tag:A.tag,payload:A.payload,callback:A.callback,next:null},W===null?($=W=I,D=ee):W=W.next=I,v|=X;if(A=A.next,A===null){if(A=c.shared.pending,A===null)break;I=A,A=I.next,I.next=null,c.lastBaseUpdate=I,c.shared.pending=null}}while(!0);W===null&&(D=ee),c.baseState=D,c.firstBaseUpdate=$,c.lastBaseUpdate=W,u===null&&(c.shared.lanes=0),ha|=v,e.lanes=v,e.memoizedState=ee}}function hm(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function pm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;eu?u:8;var v=R.T,A={};R.T=A,qc(e,!1,t,n);try{var D=c(),$=R.S;if($!==null&&$(A,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var W=Tv(D,s);Cs(e,t,W,$t(e))}else Cs(e,t,s,$t(e))}catch(ee){Cs(e,t,{then:function(){},status:"rejected",reason:ee},$t())}finally{Q.p=u,v!==null&&A.types!==null&&(v.types=A.types),R.T=v}}function zv(){}function Ec(e,t,n,s){if(e.tag!==5)throw Error(o(476));var c=Qm(e).queue;Xm(e,c,t,J,n===null?zv:function(){return Km(e),n(s)})}function Qm(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:zn,lastRenderedState:J},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Km(e){var t=Qm(e);t.next===null&&(t=e.alternate.memoizedState),Cs(e,t.next.queue,{},$t())}function kc(){return bt(Gs)}function Zm(){return it().memoizedState}function Im(){return it().memoizedState}function Uv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$t();e=oa(n);var s=ca(t,e,n);s!==null&&(_t(s,t,n),Ss(s,t,n)),t={cache:ac()},e.payload=t;return}t=t.return}}function Hv(e,t,n){var s=$t();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},nr(e)?Wm(t,n):(n=Xo(e,t,n,s),n!==null&&(_t(n,e,s),Pm(n,t,s)))}function Jm(e,t,n){var s=$t();Cs(e,t,n,s)}function Cs(e,t,n,s){var c={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(nr(e))Wm(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var v=t.lastRenderedState,A=u(v,n);if(c.hasEagerState=!0,c.eagerState=A,Bt(A,v))return Bi(e,t,c,0),Qe===null&&Oi(),!1}catch{}finally{}if(n=Xo(e,t,c,s),n!==null)return _t(n,e,s),Pm(n,t,s),!0}return!1}function qc(e,t,n,s){if(s={lane:2,revertLane:ru(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},nr(e)){if(t)throw Error(o(479))}else t=Xo(e,n,s,2),t!==null&&_t(t,e,2)}function nr(e){var t=e.alternate;return e===je||t!==null&&t===je}function Wm(e,t){El=Zi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pm(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,ye(e,n)}}var Es={readContext:bt,use:Wi,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Es.useEffectEvent=nt;var eh={readContext:bt,use:Wi,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:Lm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,er(4194308,4,Vm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return er(4194308,4,e,t)},useInsertionEffect:function(e,t){er(4,2,e,t)},useMemo:function(e,t){var n=Ct();t=t===void 0?null:t;var s=e();if(Ga){Ft(!0);try{e()}finally{Ft(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=Ct();if(n!==void 0){var c=n(t);if(Ga){Ft(!0);try{n(t)}finally{Ft(!1)}}}else c=t;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=Hv.bind(null,je,e),[s.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,n=Jm.bind(null,je,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:wc,useDeferredValue:function(e,t){var n=Ct();return Cc(n,e,t)},useTransition:function(){var e=Ac(!1);return e=Xm.bind(null,je,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=je,c=Ct();if(Me){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Qe===null)throw Error(o(349));(ke&127)!==0||Sm(s,t,n)}c.memoizedState=n;var u={value:n,getSnapshot:t};return c.queue=u,Lm(jm.bind(null,s,u,e),[e]),s.flags|=2048,ql(9,{destroy:void 0},Am.bind(null,s,u,n,t),null),n},useId:function(){var e=Ct(),t=Qe.identifierPrefix;if(Me){var n=yn,s=vn;n=(s&~(1<<32-rt(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ii++,0<\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?v.createElement(c,{is:s.is}):v.createElement(c)}}u[tt]=t,u[De]=s;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)u.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=u;e:switch(At(u,c,s),c){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Hn(t)}}return Ie(t),Gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Hn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,bl(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,c=yt,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||y0(e.nodeValue,n)),e||sa(t,!0)}else e=Ar(e).createTextNode(s),e[tt]=t,t.stateNode=e}return Ie(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=bl(t),n!==null){if(e===null){if(!s)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[tt]=t}else Ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),e=!1}else n=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ie(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=bl(t),s!==null&&s.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[tt]=t}else Ba(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),c=!1}else c=Po(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==c&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),rr(t,t.updateQueue),Ie(t),null);case 4:return pe(),e===null&&fu(t.stateNode.containerInfo),Ie(t),null;case 10:return Bn(t.type),Ie(t),null;case 19:if(H(st),s=t.memoizedState,s===null)return Ie(t),null;if(c=(t.flags&128)!==0,u=s.rendering,u===null)if(c)qs(s,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ki(e),u!==null){for(t.flags|=128,qs(s,!1),e=u.updateQueue,t.updateQueue=e,rr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Jd(n,e),n=n.sibling;return te(st,st.current&1|2),Me&&_n(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&mt()>dr&&(t.flags|=128,c=!0,qs(s,!1),t.lanes=4194304)}else{if(!c)if(e=Ki(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,rr(t,e),qs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Me)return Ie(t),null}else 2*mt()-s.renderingStartTime>dr&&n!==536870912&&(t.flags|=128,c=!0,qs(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=mt(),e.sibling=null,n=st.current,te(st,c?n&1|2:n&1),Me&&_n(t,s.treeForkCount),e):(Ie(t),null);case 22:case 23:return Ut(t),dc(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),n=t.updateQueue,n!==null&&rr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&H(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Bn(ot),Ie(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Fv(e,t){switch(Jo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bn(ot),pe(),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(Ut(t),t.alternate===null)throw Error(o(340));Ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(st),null;case 4:return pe(),null;case 10:return Bn(t.type),null;case 22:case 23:return Ut(t),dc(),e!==null&&H(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Bn(ot),null;case 25:return null;default:return null}}function Nh(e,t){switch(Jo(t),t.tag){case 3:Bn(ot),pe();break;case 26:case 27:case 5:ze(t);break;case 4:pe();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:H(st);break;case 10:Bn(t.type);break;case 22:case 23:Ut(t),dc(),e!==null&&H(Ua);break;case 24:Bn(ot)}}function Ms(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var c=s.next;n=c;do{if((n.tag&e)===e){s=void 0;var u=n.create,v=n.inst;s=u(),v.destroy=s}n=n.next}while(n!==c)}}catch(A){He(t,t.return,A)}}function da(e,t,n){try{var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var u=c.next;s=u;do{if((s.tag&e)===e){var v=s.inst,A=v.destroy;if(A!==void 0){v.destroy=void 0,c=t;var D=n,$=A;try{$()}catch(W){He(c,D,W)}}}s=s.next}while(s!==u)}}catch(W){He(t,t.return,W)}}function wh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{pm(t,n)}catch(s){He(e,e.return,s)}}}function Ch(e,t,n){n.props=Ya(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){He(e,t,s)}}function Rs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(c){He(e,t,c)}}function bn(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(c){He(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){He(e,t,c)}else n.current=null}function Eh(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(c){He(e,e.return,c)}}function Yc(e,t,n){try{var s=e.stateNode;my(s,e.type,n,t),s[De]=t}catch(c){He(e,e.return,c)}}function kh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ya(e.type)||e.tag===4}function Fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kh(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&&ya(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 Xc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rn));else if(s!==4&&(s===27&&ya(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function or(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&ya(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(or(e,t,n),e=e.sibling;e!==null;)or(e,t,n),e=e.sibling}function qh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);At(t,s,n),t[tt]=e,t[De]=n}catch(u){He(e,e.return,u)}}var Vn=!1,ft=!1,Qc=!1,Mh=typeof WeakSet=="function"?WeakSet:Set,gt=null;function Xv(e,t){if(e=e.containerInfo,hu=qr,e=$d(e),Ho(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var c=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var v=0,A=-1,D=-1,$=0,W=0,ee=e,X=null;t:for(;;){for(var I;ee!==n||c!==0&&ee.nodeType!==3||(A=v+c),ee!==u||s!==0&&ee.nodeType!==3||(D=v+s),ee.nodeType===3&&(v+=ee.nodeValue.length),(I=ee.firstChild)!==null;)X=ee,ee=I;for(;;){if(ee===e)break t;if(X===n&&++$===c&&(A=v),X===u&&++W===s&&(D=v),(I=ee.nextSibling)!==null)break;ee=X,X=ee.parentNode}ee=I}n=A===-1||D===-1?null:{start:A,end:D}}else n=null}n=n||{start:0,end:0}}else n=null;for(pu={focusedElem:e,selectionRange:n},qr=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,u=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(n=0;n title"))),At(u,s,n),u[tt]=e,xt(u),s=u;break e;case"link":var v=B0("link","href",c).get(s+(n.href||""));if(v){for(var A=0;AGe&&(v=Ge,Ge=be,be=v);var B=Hd(A,be),_=Hd(A,Ge);if(B&&_&&(I.rangeCount!==1||I.anchorNode!==B.node||I.anchorOffset!==B.offset||I.focusNode!==_.node||I.focusOffset!==_.offset)){var V=ee.createRange();V.setStart(B.node,B.offset),I.removeAllRanges(),be>Ge?(I.addRange(V),I.extend(_.node,_.offset)):(V.setEnd(_.node,_.offset),I.addRange(V))}}}}for(ee=[],I=A;I=I.parentNode;)I.nodeType===1&&ee.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;An?32:n,R.T=null,n=eu,eu=null;var u=xa,v=Xn;if(ht=0,_l=xa=null,Xn=0,(Be&6)!==0)throw Error(o(331));var A=Be;if(Be|=4,Vh(u.current),zh(u,u.current,v,n),Be=A,Ls(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(cn,u)}catch{}return!0}finally{Q.p=c,R.T=s,s0(e,t)}}function r0(e,t,n){t=Jt(n,t),t=Dc(e.stateNode,t,2),e=ca(e,t,2),e!==null&&(qa(e,2),Sn(e))}function He(e,t,n){if(e.tag===3)r0(e,e,n);else for(;t!==null;){if(t.tag===3){r0(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(pa===null||!pa.has(s))){e=Jt(n,e),n=oh(2),s=ca(t,n,2),s!==null&&(ch(n,s,t,e),qa(s,2),Sn(s));break}}t=t.return}}function lu(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Zv;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(n)||(Ic=!0,c.add(n),e=ey.bind(null,e,t,n),t.then(e,e))}function ey(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qe===e&&(ke&n)===n&&(at===4||at===3&&(ke&62914560)===ke&&300>mt()-fr?(Be&2)===0&&Ol(e,0):Jc|=n,Dl===ke&&(Dl=0)),Sn(e)}function o0(e,t){t===0&&(t=Ai()),e=_a(e,t),e!==null&&(qa(e,t),Sn(e))}function ty(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),o0(e,n)}function ny(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(t),o0(e,n)}function ay(e,t){return Nt(e,t)}var vr=null,Ll=null,su=!1,yr=!1,iu=!1,va=0;function Sn(e){e!==Ll&&e.next===null&&(Ll===null?vr=Ll=e:Ll=Ll.next=e),yr=!0,su||(su=!0,sy())}function Ls(e,t){if(!iu&&yr){iu=!0;do for(var n=!1,s=vr;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var u=0;else{var v=s.suspendedLanes,A=s.pingedLanes;u=(1<<31-rt(42|e)+1)-1,u&=c&~(v&~A),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,d0(s,u))}else u=ke,u=ta(s,s===Qe?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||gn(s,u)||(n=!0,d0(s,u));s=s.next}while(n);iu=!1}}function ly(){c0()}function c0(){yr=su=!1;var e=0;va!==0&&py()&&(e=va);for(var t=mt(),n=null,s=vr;s!==null;){var c=s.next,u=u0(s,t);u===0?(s.next=null,n===null?vr=c:n.next=c,c===null&&(Ll=n)):(n=s,(e!==0||(u&3)!==0)&&(yr=!0)),s=c}ht!==0&&ht!==5||Ls(e),va!==0&&(va=0)}function u0(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0A)break;var W=D.transferSize,ee=D.initiatorType;W&&b0(ee)&&(D=D.responseEnd,v+=W*(D"u"?null:document;function T0(e,t,n){var s=zl;if(s&&typeof t=="string"&&t){var c=Zt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),R0.has(c)||(R0.add(c),e={rel:e,crossOrigin:n,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),At(t,"link",e),xt(t),s.head.appendChild(t)))}}function Ny(e){Qn.D(e),T0("dns-prefetch",e,null)}function wy(e,t){Qn.C(e,t),T0("preconnect",e,t)}function Cy(e,t,n){Qn.L(e,t,n);var s=zl;if(s&&e&&t){var c='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Zt(n.imageSizes)+'"]')):c+='[href="'+Zt(e)+'"]';var u=c;switch(t){case"style":u=Ul(e);break;case"script":u=Hl(e)}an.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),an.set(u,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(Vs(u))||t==="script"&&s.querySelector($s(u))||(t=s.createElement("link"),At(t,"link",e),xt(t),s.head.appendChild(t)))}}function Ey(e,t){Qn.m(e,t);var n=zl;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Zt(s)+'"][href="'+Zt(e)+'"]',u=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Hl(e)}if(!an.has(u)&&(e=y({rel:"modulepreload",href:e},t),an.set(u,e),n.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($s(u)))return}s=n.createElement("link"),At(s,"link",e),xt(s),n.head.appendChild(s)}}}function ky(e,t,n){Qn.S(e,t,n);var s=zl;if(s&&e){var c=rl(s).hoistableStyles,u=Ul(e);t=t||"default";var v=c.get(u);if(!v){var A={loading:0,preload:null};if(v=s.querySelector(Vs(u)))A.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=an.get(u))&&Au(e,n);var D=v=s.createElement("link");xt(D),At(D,"link",e),D._p=new Promise(function($,W){D.onload=$,D.onerror=W}),D.addEventListener("load",function(){A.loading|=1}),D.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Nr(v,t,s)}v={type:"stylesheet",instance:v,count:1,state:A},c.set(u,v)}}}function qy(e,t){Qn.X(e,t);var n=zl;if(n&&e){var s=rl(n).hoistableScripts,c=Hl(e),u=s.get(c);u||(u=n.querySelector($s(c)),u||(e=y({src:e,async:!0},t),(t=an.get(c))&&ju(e,t),u=n.createElement("script"),xt(u),At(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function My(e,t){Qn.M(e,t);var n=zl;if(n&&e){var s=rl(n).hoistableScripts,c=Hl(e),u=s.get(c);u||(u=n.querySelector($s(c)),u||(e=y({src:e,async:!0,type:"module"},t),(t=an.get(c))&&ju(e,t),u=n.createElement("script"),xt(u),At(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function D0(e,t,n,s){var c=(c=ie.current)?jr(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ul(n.href),n=rl(c).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ul(n.href);var u=rl(c).hoistableStyles,v=u.get(e);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,v),(u=c.querySelector(Vs(e)))&&!u._p&&(v.instance=u,v.state.loading=5),an.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},an.set(e,n),u||Ry(c,e,n,v.state))),t&&s===null)throw Error(o(528,""));return v}if(t&&s!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hl(n),n=rl(c).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ul(e){return'href="'+Zt(e)+'"'}function Vs(e){return'link[rel="stylesheet"]['+e+"]"}function _0(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Ry(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),At(t,"link",n),xt(t),e.head.appendChild(t))}function Hl(e){return'[src="'+Zt(e)+'"]'}function $s(e){return"script[async]"+e}function O0(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Zt(n.href)+'"]');if(s)return t.instance=s,xt(s),s;var c=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),xt(s),At(s,"style",c),Nr(s,n.precedence,e),t.instance=s;case"stylesheet":c=Ul(n.href);var u=e.querySelector(Vs(c));if(u)return t.state.loading|=4,t.instance=u,xt(u),u;s=_0(n),(c=an.get(c))&&Au(s,c),u=(e.ownerDocument||e).createElement("link"),xt(u);var v=u;return v._p=new Promise(function(A,D){v.onload=A,v.onerror=D}),At(u,"link",s),t.state.loading|=4,Nr(u,n.precedence,e),t.instance=u;case"script":return u=Hl(n.src),(c=e.querySelector($s(u)))?(t.instance=c,xt(c),c):(s=n,(c=an.get(u))&&(s=y({},n),ju(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),xt(c),At(c,"link",s),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&&(s=t.instance,t.state.loading|=4,Nr(s,n.precedence,e));return t.instance}function Nr(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,u=c,v=0;v title"):null)}function Ty(e,t,n){if(n===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 z0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Dy(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=Ul(s.href),u=t.querySelector(Vs(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,xt(u);return}u=t.ownerDocument||t,s=_0(s),(c=an.get(c))&&Au(s,c),u=u.createElement("link"),xt(u);var v=u;v._p=new Promise(function(A,D){v.onload=A,v.onerror=D}),At(u,"link",s),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Cr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Nu=0;function _y(e,t){return e.stylesheets&&e.count===0&&kr(e,e.stylesheets),0Nu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(c)}}:null}function Cr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Er=null;function kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Er=new Map,t.forEach(Oy,e),Er=null,Cr.call(e))}function Oy(e,t){if(!(t.state.loading&4)){var n=Er.get(e);if(n)var s=n.get(null);else{n=new Map,Er.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Du.exports=Wy(),Du.exports}var eb=Py();var op="popstate";function tb(a={}){function l(o,f){let{pathname:d,search:h,hash:p}=o.location;return cf("",{pathname:d,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(o,f){return typeof f=="string"?f:ii(f)}return ab(l,i,null,a)}function Pe(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function pn(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function nb(){return Math.random().toString(36).substring(2,10)}function cp(a,l){return{usr:a.state,key:a.key,idx:l}}function cf(a,l,i=null,o){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof l=="string"?Wl(l):l,state:i,key:l&&l.key||o||nb()}}function ii({pathname:a="/",search:l="",hash:i=""}){return l&&l!=="?"&&(a+=l.charAt(0)==="?"?l:"?"+l),i&&i!=="#"&&(a+=i.charAt(0)==="#"?i:"#"+i),a}function Wl(a){let l={};if(a){let i=a.indexOf("#");i>=0&&(l.hash=a.substring(i),a=a.substring(0,i));let o=a.indexOf("?");o>=0&&(l.search=a.substring(o),a=a.substring(0,o)),a&&(l.pathname=a)}return l}function ab(a,l,i,o={}){let{window:f=document.defaultView,v5Compat:d=!1}=o,h=f.history,p="POP",x=null,g=b();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function b(){return(h.state||{idx:null}).idx}function y(){p="POP";let N=b(),M=N==null?null:N-g;g=N,x&&x({action:p,location:w.location,delta:M})}function j(N,M){p="PUSH";let S=cf(w.location,N,M);g=b()+1;let E=cp(S,g),T=w.createHref(S);try{h.pushState(E,"",T)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;f.location.assign(T)}d&&x&&x({action:p,location:w.location,delta:1})}function q(N,M){p="REPLACE";let S=cf(w.location,N,M);g=b();let E=cp(S,g),T=w.createHref(S);h.replaceState(E,"",T),d&&x&&x({action:p,location:w.location,delta:0})}function C(N){return lb(N)}let w={get action(){return p},get location(){return a(f,h)},listen(N){if(x)throw new Error("A history only accepts one active listener");return f.addEventListener(op,y),x=N,()=>{f.removeEventListener(op,y),x=null}},createHref(N){return l(f,N)},createURL:C,encodeLocation(N){let M=C(N);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:j,replace:q,go(N){return h.go(N)}};return w}function lb(a,l=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(i,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:ii(a);return o=o.replace(/ $/,"%20"),!l&&o.startsWith("//")&&(o=i+o),new URL(o,i)}function ix(a,l,i="/"){return sb(a,l,i,!1)}function sb(a,l,i,o){let f=typeof l=="string"?Wl(l):l,d=Pn(f.pathname||"/",i);if(d==null)return null;let h=rx(a);ib(h);let p=null;for(let x=0;p==null&&x{let b={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&x)return;Pe(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}let y=Wn([o,b.relativePath]),j=i.concat(b);h.children&&h.children.length>0&&(Pe(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),rx(h.children,l,j,y,x)),!(h.path==null&&!h.index)&&l.push({path:y,score:mb(y,h.index),routesMeta:j})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let x of ox(h.path))d(h,p,!0,x)}),l}function ox(a){let l=a.split("/");if(l.length===0)return[];let[i,...o]=l,f=i.endsWith("?"),d=i.replace(/\?$/,"");if(o.length===0)return f?[d,""]:[d];let h=ox(o.join("/")),p=[];return p.push(...h.map(x=>x===""?d:[d,x].join("/"))),f&&p.push(...h),p.map(x=>a.startsWith("/")&&x===""?"/":x)}function ib(a){a.sort((l,i)=>l.score!==i.score?i.score-l.score:hb(l.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}var rb=/^:[\w-]+$/,ob=3,cb=2,ub=1,fb=10,db=-2,up=a=>a==="*";function mb(a,l){let i=a.split("/"),o=i.length;return i.some(up)&&(o+=db),l&&(o+=cb),i.filter(f=>!up(f)).reduce((f,d)=>f+(rb.test(d)?ob:d===""?ub:fb),o)}function hb(a,l){return a.length===l.length&&a.slice(0,-1).every((o,f)=>o===l[f])?a[a.length-1]-l[l.length-1]:0}function pb(a,l,i=!1){let{routesMeta:o}=a,f={},d="/",h=[];for(let p=0;p{if(b==="*"){let C=p[j]||"";h=d.slice(0,d.length-C.length).replace(/(.)\/+$/,"$1")}const q=p[j];return y&&!q?g[b]=void 0:g[b]=(q||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:h,pattern:a}}function xb(a,l=!1,i=!0){pn(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let o=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,x)=>(o.push({paramName:p,isOptional:x!=null}),x?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(o.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,l?void 0:"i"),o]}function gb(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return pn(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),a}}function Pn(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,o=a.charAt(i);return o&&o!=="/"?null:a.slice(i)||"/"}var vb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yb=a=>vb.test(a);function bb(a,l="/"){let{pathname:i,search:o="",hash:f=""}=typeof a=="string"?Wl(a):a,d;if(i)if(yb(i))d=i;else{if(i.includes("//")){let h=i;i=i.replace(/\/\/+/g,"/"),pn(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${i}`)}i.startsWith("/")?d=fp(i.substring(1),"/"):d=fp(i,l)}else d=l;return{pathname:d,search:jb(o),hash:Nb(f)}}function fp(a,l){let i=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?i.length>1&&i.pop():f!=="."&&i.push(f)}),i.length>1?i.join("/"):"/"}function Lu(a,l,i,o){return`Cannot include a '${a}' character in a manually specified \`to.${l}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Sb(a){return a.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function cx(a){let l=Sb(a);return l.map((i,o)=>o===l.length-1?i.pathname:i.pathnameBase)}function ux(a,l,i,o=!1){let f;typeof a=="string"?f=Wl(a):(f={...a},Pe(!f.pathname||!f.pathname.includes("?"),Lu("?","pathname","search",f)),Pe(!f.pathname||!f.pathname.includes("#"),Lu("#","pathname","hash",f)),Pe(!f.search||!f.search.includes("#"),Lu("#","search","hash",f)));let d=a===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=i;else{let y=l.length-1;if(!o&&h.startsWith("..")){let j=h.split("/");for(;j[0]==="..";)j.shift(),y-=1;f.pathname=j.join("/")}p=y>=0?l[y]:"/"}let x=bb(f,p),g=h&&h!=="/"&&h.endsWith("/"),b=(d||h===".")&&i.endsWith("/");return!x.pathname.endsWith("/")&&(g||b)&&(x.pathname+="/"),x}var Wn=a=>a.join("/").replace(/\/\/+/g,"/"),Ab=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),jb=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Nb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function wb(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fx=["POST","PUT","PATCH","DELETE"];new Set(fx);var Cb=["GET",...fx];new Set(Cb);var Pl=m.createContext(null);Pl.displayName="DataRouter";var ro=m.createContext(null);ro.displayName="DataRouterState";m.createContext(!1);var dx=m.createContext({isTransitioning:!1});dx.displayName="ViewTransition";var Eb=m.createContext(new Map);Eb.displayName="Fetchers";var kb=m.createContext(null);kb.displayName="Await";var Cn=m.createContext(null);Cn.displayName="Navigation";var pi=m.createContext(null);pi.displayName="Location";var ea=m.createContext({outlet:null,matches:[],isDataRoute:!1});ea.displayName="Route";var kf=m.createContext(null);kf.displayName="RouteError";function qb(a,{relative:l}={}){Pe(xi(),"useHref() may be used only in the context of a component.");let{basename:i,navigator:o}=m.useContext(Cn),{hash:f,pathname:d,search:h}=gi(a,{relative:l}),p=d;return i!=="/"&&(p=d==="/"?i:Wn([i,d])),o.createHref({pathname:p,search:h,hash:f})}function xi(){return m.useContext(pi)!=null}function Pa(){return Pe(xi(),"useLocation() may be used only in the context of a component."),m.useContext(pi).location}var mx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hx(a){m.useContext(Cn).static||m.useLayoutEffect(a)}function Mb(){let{isDataRoute:a}=m.useContext(ea);return a?Gb():Rb()}function Rb(){Pe(xi(),"useNavigate() may be used only in the context of a component.");let a=m.useContext(Pl),{basename:l,navigator:i}=m.useContext(Cn),{matches:o}=m.useContext(ea),{pathname:f}=Pa(),d=JSON.stringify(cx(o)),h=m.useRef(!1);return hx(()=>{h.current=!0}),m.useCallback((x,g={})=>{if(pn(h.current,mx),!h.current)return;if(typeof x=="number"){i.go(x);return}let b=ux(x,JSON.parse(d),f,g.relative==="path");a==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:Wn([l,b.pathname])),(g.replace?i.replace:i.push)(b,g.state,g)},[l,i,d,f,a])}m.createContext(null);function gi(a,{relative:l}={}){let{matches:i}=m.useContext(ea),{pathname:o}=Pa(),f=JSON.stringify(cx(i));return m.useMemo(()=>ux(a,JSON.parse(f),o,l==="path"),[a,f,o,l])}function Tb(a,l){return px(a,l)}function px(a,l,i,o,f){Pe(xi(),"useRoutes() may be used only in the context of a component.");let{navigator:d}=m.useContext(Cn),{matches:h}=m.useContext(ea),p=h[h.length-1],x=p?p.params:{},g=p?p.pathname:"/",b=p?p.pathnameBase:"/",y=p&&p.route;{let S=y&&y.path||"";xx(g,!y||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (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=Pa(),q;if(l){let S=typeof l=="string"?Wl(l):l;Pe(b==="/"||S.pathname?.startsWith(b),`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 "${b}" but pathname "${S.pathname}" was given in the \`location\` prop.`),q=S}else q=j;let C=q.pathname||"/",w=C;if(b!=="/"){let S=b.replace(/^\//,"").split("/");w="/"+C.replace(/^\//,"").split("/").slice(S.length).join("/")}let N=ix(a,{pathname:w});pn(y||N!=null,`No routes matched location "${q.pathname}${q.search}${q.hash}" `),pn(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${q.pathname}${q.search}${q.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 M=Lb(N&&N.map(S=>Object.assign({},S,{params:Object.assign({},x,S.params),pathname:Wn([b,d.encodeLocation?d.encodeLocation(S.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?b:Wn([b,d.encodeLocation?d.encodeLocation(S.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),h,i,o,f);return l&&M?m.createElement(pi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...q},navigationType:"POP"}},M):M}function Db(){let a=$b(),l=wb(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,o="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),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:d},"ErrorBoundary")," or"," ",m.createElement("code",{style:d},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},l),i?m.createElement("pre",{style:f},i):null,h)}var _b=m.createElement(Db,null),Ob=class extends m.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,l){return l.location!==a.location||l.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:l.error,location:l.location,revalidation:a.revalidation||l.revalidation}}componentDidCatch(a,l){this.props.onError?this.props.onError(a,l):console.error("React Router caught the following error during render",a)}render(){return this.state.error!==void 0?m.createElement(ea.Provider,{value:this.props.routeContext},m.createElement(kf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Bb({routeContext:a,match:l,children:i}){let o=m.useContext(Pl);return o&&o.static&&o.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=l.route.id),m.createElement(ea.Provider,{value:a},i)}function Lb(a,l=[],i=null,o=null,f=null){if(a==null){if(!i)return null;if(i.errors)a=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let d=a,h=i?.errors;if(h!=null){let b=d.findIndex(y=>y.route.id&&h?.[y.route.id]!==void 0);Pe(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,b+1))}let p=!1,x=-1;if(i)for(let b=0;b=0?d=d.slice(0,x+1):d=[d[0]];break}}}let g=i&&o?(b,y)=>{o(b,{location:i.location,params:i.matches?.[0]?.params??{},errorInfo:y})}:void 0;return d.reduceRight((b,y,j)=>{let q,C=!1,w=null,N=null;i&&(q=h&&y.route.id?h[y.route.id]:void 0,w=y.route.errorElement||_b,p&&(x<0&&j===0?(xx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,N=null):x===j&&(C=!0,N=y.route.hydrateFallbackElement||null)));let M=l.concat(d.slice(0,j+1)),S=()=>{let E;return q?E=w:C?E=N:y.route.Component?E=m.createElement(y.route.Component,null):y.route.element?E=y.route.element:E=b,m.createElement(Bb,{match:y,routeContext:{outlet:b,matches:M,isDataRoute:i!=null},children:E})};return i&&(y.route.ErrorBoundary||y.route.errorElement||j===0)?m.createElement(Ob,{location:i.location,revalidation:i.revalidation,component:w,error:q,children:S(),routeContext:{outlet:null,matches:M,isDataRoute:!0},onError:g}):S()},null)}function qf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zb(a){let l=m.useContext(Pl);return Pe(l,qf(a)),l}function Ub(a){let l=m.useContext(ro);return Pe(l,qf(a)),l}function Hb(a){let l=m.useContext(ea);return Pe(l,qf(a)),l}function Mf(a){let l=Hb(a),i=l.matches[l.matches.length-1];return Pe(i.route.id,`${a} can only be used on routes that contain a unique "id"`),i.route.id}function Vb(){return Mf("useRouteId")}function $b(){let a=m.useContext(kf),l=Ub("useRouteError"),i=Mf("useRouteError");return a!==void 0?a:l.errors?.[i]}function Gb(){let{router:a}=zb("useNavigate"),l=Mf("useNavigate"),i=m.useRef(!1);return hx(()=>{i.current=!0}),m.useCallback(async(f,d={})=>{pn(i.current,mx),i.current&&(typeof f=="number"?a.navigate(f):await a.navigate(f,{fromRouteId:l,...d}))},[a,l])}var dp={};function xx(a,l,i){!l&&!dp[a]&&(dp[a]=!0,pn(!1,i))}m.memo(Yb);function Yb({routes:a,future:l,state:i,unstable_onError:o}){return px(a,void 0,i,o,l)}function $r(a){Pe(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Fb({basename:a="/",children:l=null,location:i,navigationType:o="POP",navigator:f,static:d=!1}){Pe(!xi(),"You cannot render a inside another . You should never have more than one in your app.");let h=a.replace(/^\/*/,"/"),p=m.useMemo(()=>({basename:h,navigator:f,static:d,future:{}}),[h,f,d]);typeof i=="string"&&(i=Wl(i));let{pathname:x="/",search:g="",hash:b="",state:y=null,key:j="default"}=i,q=m.useMemo(()=>{let C=Pn(x,h);return C==null?null:{location:{pathname:C,search:g,hash:b,state:y,key:j},navigationType:o}},[h,x,g,b,y,j,o]);return pn(q!=null,` is not able to match the URL "${x}${g}${b}" because it does not start with the basename, so the won't render anything.`),q==null?null:m.createElement(Cn.Provider,{value:p},m.createElement(pi.Provider,{children:l,value:q}))}function Xb({children:a,location:l}){return Tb(uf(a),l)}function uf(a,l=[]){let i=[];return m.Children.forEach(a,(o,f)=>{if(!m.isValidElement(o))return;let d=[...l,f];if(o.type===m.Fragment){i.push.apply(i,uf(o.props.children,d));return}Pe(o.type===$r,`[${typeof o.type=="string"?o.type:o.type.name}] is not a component. All component children of must be a or `),Pe(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||d.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=uf(o.props.children,d)),i.push(h)}),i}var Gr="get",Yr="application/x-www-form-urlencoded";function oo(a){return a!=null&&typeof a.tagName=="string"}function Qb(a){return oo(a)&&a.tagName.toLowerCase()==="button"}function Kb(a){return oo(a)&&a.tagName.toLowerCase()==="form"}function Zb(a){return oo(a)&&a.tagName.toLowerCase()==="input"}function Ib(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Jb(a,l){return a.button===0&&(!l||l==="_self")&&!Ib(a)}var Br=null;function Wb(){if(Br===null)try{new FormData(document.createElement("form"),0),Br=!1}catch{Br=!0}return Br}var Pb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zu(a){return a!=null&&!Pb.has(a)?(pn(!1,`"${a}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Yr}"`),null):a}function e1(a,l){let i,o,f,d,h;if(Kb(a)){let p=a.getAttribute("action");o=p?Pn(p,l):null,i=a.getAttribute("method")||Gr,f=zu(a.getAttribute("enctype"))||Yr,d=new FormData(a)}else if(Qb(a)||Zb(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a -
-

Microphone Forwarding

- -

PTT key: {controlState?.keymap?.micPtt?.[0] || 'm'} (hold)

-

mic: {micState}

-

transport: whip

+
+
+

Audio Path Status

+ + + +
+ +
+

Microphone

+ + + +
PTT key: {controlState?.keymap?.micPtt?.[0] || 'm'} (hold)
+
- {selectedForwardState ? ( -
- state: {selectedForwardState.state || 'idle'} - {selectedForwardState.error ? ` | error: ${selectedForwardState.error}` : ''} -
- ) : null} {message ?
{message}
: null}
diff --git a/webui/src/components/vip/VipIdentityCard.jsx b/webui/src/components/vip/VipIdentityCard.jsx index ccf51522..173ab35c 100644 --- a/webui/src/components/vip/VipIdentityCard.jsx +++ b/webui/src/components/vip/VipIdentityCard.jsx @@ -1,7 +1,7 @@ import { useState } from 'react'; import { fieldClass, flowWrapClass, innerFlowClass, maskKey } from './constants.js'; -export default function VipIdentityCard({ currentStoredKey, applyIdentityKey, onMessage }) { +export default function VipIdentityCard({ currentStoredKey, applyIdentityKey, onMessage, fullWidth = false }) { const [restoreFlowStep, setRestoreFlowStep] = useState(0); const [restoreKeyInput, setRestoreKeyInput] = useState(''); const [working, setWorking] = useState(false); @@ -34,8 +34,10 @@ export default function VipIdentityCard({ currentStoredKey, applyIdentityKey, on } }; + const wrapClass = fullWidth ? 'w-full' : flowWrapClass; + return ( -
+

Identity key

Current: {maskKey(currentStoredKey) || 'not set yet'}

diff --git a/webui/src/components/vip/VipVerificationCard.jsx b/webui/src/components/vip/VipVerificationCard.jsx index f27e234c..739ff7aa 100644 --- a/webui/src/components/vip/VipVerificationCard.jsx +++ b/webui/src/components/vip/VipVerificationCard.jsx @@ -9,6 +9,7 @@ export default function VipVerificationCard({ requestVerification, applyIdentityKey, onMessage, + fullWidth = false, }) { const [requestFlowStep, setRequestFlowStep] = useState(0); const [requestKeyInput, setRequestKeyInput] = useState(''); @@ -53,9 +54,11 @@ export default function VipVerificationCard({ } }; + const wrapClass = fullWidth ? 'w-full' : flowWrapClass; + if (pendingRequestId) { return ( -
+
Verification request pending: {pendingRequestId}
); @@ -63,7 +66,7 @@ export default function VipVerificationCard({ if (requestFlowStep === 0) { return ( -
+

Verification