const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OrbitControls-BJ-UXxdt.js","assets/three.module--MGUDD-H.js","assets/AdminApp-IRWcsD8B.js","assets/api-BVIrbPAA.js","assets/AdminApp-C7dustWw.css","assets/SetupApp-DaF1OgZA.js"])))=>i.map(i=>d[i]); (function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function a(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function l(s){if(s.ep)return;s.ep=!0;const o=a(s);fetch(s.href,o)}})();const Wx="modulepreload",Jx=function(t){return"/"+t},Io={},Se=function(c,a,l){let s=Promise.resolve();if(a&&a.length>0){let v=function(x){return Promise.all(x.map(p=>Promise.resolve(p).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");s=v(a.map(x=>{if(x=Jx(x),x in Io)return;Io[x]=!0;const p=x.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${x}"]${b}`))return;const w=document.createElement("link");if(w.rel=p?"stylesheet":Wx,p||(w.as="script"),w.crossOrigin="",w.href=x,m&&w.setAttribute("nonce",m),document.head.appendChild(w),p)return new Promise((y,S)=>{w.addEventListener("load",y),w.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${x}`)))})}))}function o(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return s.then(h=>{for(const m of h||[])m.status==="rejected"&&o(m.reason);return c().catch(o)})};function bh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xn={exports:{}},ae={};var $o;function tg(){if($o)return ae;$o=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function a(l,s,o){var h=null;if(o!==void 0&&(h=""+o),s.key!==void 0&&(h=""+s.key),"key"in s){o={};for(var m in s)m!=="key"&&(o[m]=s[m])}else o=s;return s=o.ref,{$$typeof:t,type:l,key:h,ref:s!==void 0?s:null,props:o}}return ae.Fragment=c,ae.jsx=a,ae.jsxs=a,ae}var Zo;function eg(){return Zo||(Zo=1,Xn.exports=tg()),Xn.exports}var r=eg(),Qn={exports:{}},G1={};var Go;function cg(){if(Go)return G1;Go=1;var t=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function y(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,M={};function V(T,P,e1){this.props=T,this.context=P,this.refs=M,this.updater=e1||S}V.prototype.isReactComponent={},V.prototype.setState=function(T,P){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,P,"setState")},V.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function A(){}A.prototype=V.prototype;function C(T,P,e1){this.props=T,this.context=P,this.refs=M,this.updater=e1||S}var N=C.prototype=new A;N.constructor=C,H(N,V.prototype),N.isPureReactComponent=!0;var k=Array.isArray;function E(){}var F={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function B(T,P,e1){var W=e1.ref;return{$$typeof:t,type:T,key:P,ref:W!==void 0?W:null,props:e1}}function D(T,P){return B(T.type,P,T.props)}function O(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function q(T){var P={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(e1){return P[e1]})}var a1=/\/+/g;function t1(T,P){return typeof T=="object"&&T!==null&&T.key!=null?q(""+T.key):P.toString(36)}function Z(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(E,E):(T.status="pending",T.then(function(P){T.status==="pending"&&(T.status="fulfilled",T.value=P)},function(P){T.status==="pending"&&(T.status="rejected",T.reason=P)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function _(T,P,e1,W,Y){var G=typeof T;(G==="undefined"||G==="boolean")&&(T=null);var d1=!1;if(T===null)d1=!0;else switch(G){case"bigint":case"string":case"number":d1=!0;break;case"object":switch(T.$$typeof){case t:case c:d1=!0;break;case p:return d1=T._init,_(d1(T._payload),P,e1,W,Y)}}if(d1)return Y=Y(T),d1=W===""?"."+t1(T,0):W,k(Y)?(e1="",d1!=null&&(e1=d1.replace(a1,"$&/")+"/"),_(Y,P,e1,"",function(B1){return B1})):Y!=null&&(O(Y)&&(Y=D(Y,e1+(Y.key==null||T&&T.key===Y.key?"":(""+Y.key).replace(a1,"$&/")+"/")+d1)),P.push(Y)),1;d1=0;var M1=W===""?".":W+":";if(k(T))for(var A1=0;A1>>1,p1=_[o1];if(0>>1;o1s(e1,Q))Ws(Y,e1)?(_[o1]=Y,_[W]=Q,o1=W):(_[o1]=e1,_[P]=Q,o1=P);else if(Ws(Y,Q))_[o1]=Y,_[W]=Q,o1=W;else break t}}return I}function s(_,I){var Q=_.sortIndex-I.sortIndex;return Q!==0?Q:_.id-I.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var h=Date,m=h.now();t.unstable_now=function(){return h.now()-m}}var v=[],x=[],p=1,b=null,w=3,y=!1,S=!1,H=!1,M=!1,V=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function N(_){for(var I=a(x);I!==null;){if(I.callback===null)l(x);else if(I.startTime<=_)l(x),I.sortIndex=I.expirationTime,c(v,I);else break;I=a(x)}}function k(_){if(H=!1,N(_),!S)if(a(v)!==null)S=!0,E||(E=!0,q());else{var I=a(x);I!==null&&Z(k,I.startTime-_)}}var E=!1,F=-1,j=5,B=-1;function D(){return M?!0:!(t.unstable_now()-B_&&D());){var o1=b.callback;if(typeof o1=="function"){b.callback=null,w=b.priorityLevel;var p1=o1(b.expirationTime<=_);if(_=t.unstable_now(),typeof p1=="function"){b.callback=p1,N(_),I=!0;break e}b===a(v)&&l(v),N(_)}else l(v);b=a(v)}if(b!==null)I=!0;else{var T=a(x);T!==null&&Z(k,T.startTime-_),I=!1}}break t}finally{b=null,w=Q,y=!1}I=void 0}}finally{I?q():E=!1}}}var q;if(typeof C=="function")q=function(){C(O)};else if(typeof MessageChannel<"u"){var a1=new MessageChannel,t1=a1.port2;a1.port1.onmessage=O,q=function(){t1.postMessage(null)}}else q=function(){V(O,0)};function Z(_,I){F=V(function(){_(t.unstable_now())},I)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(_){_.callback=null},t.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<_?Math.floor(1e3/_):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_next=function(_){switch(w){case 1:case 2:case 3:var I=3;break;default:I=w}var Q=w;w=I;try{return _()}finally{w=Q}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Q=w;w=_;try{return I()}finally{w=Q}},t.unstable_scheduleCallback=function(_,I,Q){var o1=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0o1?(_.sortIndex=Q,c(x,_),a(v)===null&&_===a(x)&&(H?(A(F),F=-1):H=!0,Z(k,Q-o1))):(_.sortIndex=p1,c(v,_),S||y||(S=!0,E||(E=!0,q()))),_},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(_){var I=w;return function(){var Q=w;w=I;try{return _.apply(this,arguments)}finally{w=Q}}}})(ta)),ta}var Xo;function ag(){return Xo||(Xo=1,Jn.exports=ng()),Jn.exports}var ea={exports:{}},t4={};var Qo;function rg(){if(Qo)return t4;Qo=1;var t=q9();function c(v){var x="https://react.dev/errors/"+v;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(c){console.error(c)}}return t(),ea.exports=rg(),ea.exports}var Jo;function lg(){if(Jo)return re;Jo=1;var t=ag(),c=q9(),a=zh();function l(e){var n="https://react.dev/errors/"+e;if(1p1||(e.current=o1[p1],o1[p1]=null,p1--)}function e1(e,n){p1++,o1[p1]=e.current,e.current=n}var W=T(null),Y=T(null),G=T(null),d1=T(null);function M1(e,n){switch(e1(G,n),e1(Y,e),e1(W,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?mo(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=mo(n),e=fo(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P(W),e1(W,e)}function A1(){P(W),P(Y),P(G)}function B1(e){e.memoizedState!==null&&e1(d1,e);var n=W.current,i=fo(n,e.type);n!==i&&(e1(Y,e),e1(W,i))}function s1(e){Y.current===e&&(P(W),P(Y)),d1.current===e&&(P(d1),te._currentValue=Q)}var N1,_1;function Z1(e){if(N1===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);N1=n&&n[1]||"",_1=-1)":-1g||U[d]!==n1[g]){var h1=` `+U[d].replace(" at new "," at ");return e.displayName&&h1.includes("")&&(h1=h1.replace("",e.displayName)),h1}while(1<=d&&0<=g);break}}}finally{F1=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Z1(i):""}function g1(e,n){switch(e.tag){case 26:case 27:case 5:return Z1(e.type);case 16:return Z1("Lazy");case 13:return e.child!==n&&n!==null?Z1("Suspense Fallback"):Z1("Suspense");case 19:return Z1("SuspenseList");case 0:case 15:return C1(e.type,!1);case 11:return C1(e.type.render,!1);case 1:return C1(e.type,!0);case 31:return Z1("Activity");default:return""}}function R1(e){try{var n="",i=null;do n+=g1(e,i),i=e,e=e.return;while(e);return n}catch(d){return` Error generating stack: `+d.message+` `+d.stack}}var S1=Object.prototype.hasOwnProperty,k1=t.unstable_scheduleCallback,$1=t.unstable_cancelCallback,x1=t.unstable_shouldYield,f1=t.unstable_requestPaint,r1=t.unstable_now,z1=t.unstable_getCurrentPriorityLevel,w1=t.unstable_ImmediatePriority,L1=t.unstable_UserBlockingPriority,I1=t.unstable_NormalPriority,Y1=t.unstable_LowPriority,J=t.unstable_IdlePriority,H1=t.log,D1=t.unstable_setDisableYieldValue,u1=null,y1=null;function b1(e){if(typeof H1=="function"&&D1(e),y1&&typeof y1.setStrictMode=="function")try{y1.setStrictMode(u1,e)}catch{}}var t2=Math.clz32?Math.clz32:D3,I2=Math.log,H4=Math.LN2;function D3(e){return e>>>=0,e===0?32:31-(I2(e)/H4|0)|0}var W2=256,J2=262144,Y0=4194304;function T1(e){var n=e&42;if(n!==0)return n;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 h2(e,n,i){var d=e.pendingLanes;if(d===0)return 0;var g=0,z=e.suspendedLanes,L=e.pingedLanes;e=e.warmLanes;var R=d&134217727;return R!==0?(d=R&~z,d!==0?g=T1(d):(L&=R,L!==0?g=T1(L):i||(i=R&~e,i!==0&&(g=T1(i))))):(R=d&~z,R!==0?g=T1(R):L!==0?g=T1(L):i||(i=d&~e,i!==0&&(g=T1(i)))),g===0?0:n!==0&&n!==g&&(n&z)===0&&(z=g&-g,i=n&-n,z>=i||z===32&&(i&4194048)!==0)?n:g}function o2(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function a2(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 p2(){var e=Y0;return Y0<<=1,(Y0&62914560)===0&&(Y0=4194304),e}function v4(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function $4(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function K0(e,n,i,d,g,z){var L=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var R=e.entanglements,U=e.expirationTimes,n1=e.hiddenUpdates;for(i=L&~i;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Zv=/[\n"\\]/g;function j4(e){return e.replace(Zv,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function P7(e,n,i,d,g,z,L,R){e.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?e.type=L:e.removeAttribute("type"),n!=null?L==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+L4(n)):e.value!==""+L4(n)&&(e.value=""+L4(n)):L!=="submit"&&L!=="reset"||e.removeAttribute("value"),n!=null?I7(e,L,L4(n)):i!=null?I7(e,L,L4(i)):d!=null&&e.removeAttribute("value"),g==null&&z!=null&&(e.defaultChecked=!!z),g!=null&&(e.checked=g&&typeof g!="function"&&typeof g!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+L4(R):e.removeAttribute("name")}function ll(e,n,i,d,g,z,L,R){if(z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(e.type=z),n!=null||i!=null){if(!(z!=="submit"&&z!=="reset"||n!=null)){U7(e);return}i=i!=null?""+L4(i):"",n=n!=null?""+L4(n):i,R||n===e.value||(e.value=n),e.defaultValue=n}d=d??g,d=typeof d!="function"&&typeof d!="symbol"&&!!d,e.checked=R?e.checked:!!d,e.defaultChecked=!!d,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(e.name=L),U7(e)}function I7(e,n,i){n==="number"&&t8(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function e6(e,n,i,d){if(e=e.options,n){n={};for(var g=0;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),K7=!1;if(v3)try{var gt={};Object.defineProperty(gt,"passive",{get:function(){K7=!0}}),window.addEventListener("test",gt,gt),window.removeEventListener("test",gt,gt)}catch{K7=!1}var q3=null,X7=null,c8=null;function ml(){if(c8)return c8;var e,n=X7,i=n.length,d,g="value"in q3?q3.value:q3.textContent,z=g.length;for(e=0;e=yt),bl=" ",zl=!1;function yl(e,n){switch(e){case"keyup":return zp.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wl(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var r6=!1;function wp(e,n){switch(e){case"compositionend":return wl(n);case"keypress":return n.which!==32?null:(zl=!0,bl);case"textInput":return e=n.data,e===bl&&zl?null:e;default:return null}}function Mp(e,n){if(r6)return e==="compositionend"||!ec&&yl(e,n)?(e=ml(),c8=X7=q3=null,r6=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:i,offset:n-e};e=d}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Nl(i)}}function Bl(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Bl(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function kl(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=t8(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=t8(e.document)}return n}function ac(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Vp=v3&&"documentMode"in document&&11>=document.documentMode,l6=null,rc=null,St=null,lc=!1;function Fl(e,n,i){var d=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;lc||l6==null||l6!==t8(d)||(d=l6,"selectionStart"in d&&ac(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),St&&Ct(St,d)||(St=d,d=K8(rc,"onSelect"),0>=L,g-=L,n3=1<<32-t2(n)+g|i<X1?(c2=E1,E1=null):c2=E1.sibling;var l2=l1(X,E1,c1[X1],m1);if(l2===null){E1===null&&(E1=c2);break}e&&E1&&l2.alternate===null&&n(X,E1),$=z(l2,$,X1),r2===null?q1=l2:r2.sibling=l2,r2=l2,E1=c2}if(X1===c1.length)return i(X,E1),n2&&x3(X,X1),q1;if(E1===null){for(;X1X1?(c2=E1,E1=null):c2=E1.sibling;var o0=l1(X,E1,l2.value,m1);if(o0===null){E1===null&&(E1=c2);break}e&&E1&&o0.alternate===null&&n(X,E1),$=z(o0,$,X1),r2===null?q1=o0:r2.sibling=o0,r2=o0,E1=c2}if(l2.done)return i(X,E1),n2&&x3(X,X1),q1;if(E1===null){for(;!l2.done;X1++,l2=c1.next())l2=v1(X,l2.value,m1),l2!==null&&($=z(l2,$,X1),r2===null?q1=l2:r2.sibling=l2,r2=l2);return n2&&x3(X,X1),q1}for(E1=d(E1);!l2.done;X1++,l2=c1.next())l2=i1(E1,X,X1,l2.value,m1),l2!==null&&(e&&l2.alternate!==null&&E1.delete(l2.key===null?X1:l2.key),$=z(l2,$,X1),r2===null?q1=l2:r2.sibling=l2,r2=l2);return e&&E1.forEach(function(Qx){return n(X,Qx)}),n2&&x3(X,X1),q1}function v2(X,$,c1,m1){if(typeof c1=="object"&&c1!==null&&c1.type===H&&c1.key===null&&(c1=c1.props.children),typeof c1=="object"&&c1!==null){switch(c1.$$typeof){case y:t:{for(var q1=c1.key;$!==null;){if($.key===q1){if(q1=c1.type,q1===H){if($.tag===7){i(X,$.sibling),m1=g($,c1.props.children),m1.return=X,X=m1;break t}}else if($.elementType===q1||typeof q1=="object"&&q1!==null&&q1.$$typeof===j&&N0(q1)===$.type){i(X,$.sibling),m1=g($,c1.props),Vt(m1,c1),m1.return=X,X=m1;break t}i(X,$);break}else n(X,$);$=$.sibling}c1.type===H?(m1=S0(c1.props.children,X.mode,m1,c1.key),m1.return=X,X=m1):(m1=h8(c1.type,c1.key,c1.props,null,X.mode,m1),Vt(m1,c1),m1.return=X,X=m1)}return L(X);case S:t:{for(q1=c1.key;$!==null;){if($.key===q1)if($.tag===4&&$.stateNode.containerInfo===c1.containerInfo&&$.stateNode.implementation===c1.implementation){i(X,$.sibling),m1=g($,c1.children||[]),m1.return=X,X=m1;break t}else{i(X,$);break}else n(X,$);$=$.sibling}m1=mc(c1,X.mode,m1),m1.return=X,X=m1}return L(X);case j:return c1=N0(c1),v2(X,$,c1,m1)}if(Z(c1))return V1(X,$,c1,m1);if(q(c1)){if(q1=q(c1),typeof q1!="function")throw Error(l(150));return c1=q1.call(c1),P1(X,$,c1,m1)}if(typeof c1.then=="function")return v2(X,$,b8(c1),m1);if(c1.$$typeof===C)return v2(X,$,v8(X,c1),m1);z8(X,c1)}return typeof c1=="string"&&c1!==""||typeof c1=="number"||typeof c1=="bigint"?(c1=""+c1,$!==null&&$.tag===6?(i(X,$.sibling),m1=g($,c1),m1.return=X,X=m1):(i(X,$),m1=hc(c1,X.mode,m1),m1.return=X,X=m1),L(X)):i(X,$)}return function(X,$,c1,m1){try{Nt=0;var q1=v2(X,$,c1,m1);return x6=null,q1}catch(E1){if(E1===p6||E1===x8)throw E1;var r2=x4(29,E1,null,X.mode);return r2.lanes=m1,r2.return=X,r2}finally{}}}var B0=ni(!0),ai=ni(!1),Z3=!1;function Sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ac(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function G3(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Y3(e,n,i){var d=e.updateQueue;if(d===null)return null;if(d=d.shared,(s2&2)!==0){var g=d.pending;return g===null?n.next=n:(n.next=g.next,g.next=n),d.pending=n,n=d8(e),ql(e,null,i),n}return u8(e,d,n,i),d8(e)}function Bt(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var d=n.lanes;d&=e.pendingLanes,i|=d,n.lanes=i,O3(e,i)}}function Hc(e,n){var i=e.updateQueue,d=e.alternate;if(d!==null&&(d=d.updateQueue,i===d)){var g=null,z=null;if(i=i.firstBaseUpdate,i!==null){do{var L={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};z===null?g=z=L:z=z.next=L,i=i.next}while(i!==null);z===null?g=z=n:z=z.next=n}else g=z=n;i={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:z,shared:d.shared,callbacks:d.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Lc=!1;function kt(){if(Lc){var e=v6;if(e!==null)throw e}}function Ft(e,n,i,d){Lc=!1;var g=e.updateQueue;Z3=!1;var z=g.firstBaseUpdate,L=g.lastBaseUpdate,R=g.shared.pending;if(R!==null){g.shared.pending=null;var U=R,n1=U.next;U.next=null,L===null?z=n1:L.next=n1,L=U;var h1=e.alternate;h1!==null&&(h1=h1.updateQueue,R=h1.lastBaseUpdate,R!==L&&(R===null?h1.firstBaseUpdate=n1:R.next=n1,h1.lastBaseUpdate=U))}if(z!==null){var v1=g.baseState;L=0,h1=n1=U=null,R=z;do{var l1=R.lane&-536870913,i1=l1!==R.lane;if(i1?(e2&l1)===l1:(d&l1)===l1){l1!==0&&l1===f6&&(Lc=!0),h1!==null&&(h1=h1.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});t:{var V1=e,P1=R;l1=n;var v2=i;switch(P1.tag){case 1:if(V1=P1.payload,typeof V1=="function"){v1=V1.call(v2,v1,l1);break t}v1=V1;break t;case 3:V1.flags=V1.flags&-65537|128;case 0:if(V1=P1.payload,l1=typeof V1=="function"?V1.call(v2,v1,l1):V1,l1==null)break t;v1=b({},v1,l1);break t;case 2:Z3=!0}}l1=R.callback,l1!==null&&(e.flags|=64,i1&&(e.flags|=8192),i1=g.callbacks,i1===null?g.callbacks=[l1]:i1.push(l1))}else i1={lane:l1,tag:R.tag,payload:R.payload,callback:R.callback,next:null},h1===null?(n1=h1=i1,U=v1):h1=h1.next=i1,L|=l1;if(R=R.next,R===null){if(R=g.shared.pending,R===null)break;i1=R,R=i1.next,i1.next=null,g.lastBaseUpdate=i1,g.shared.pending=null}}while(!0);h1===null&&(U=v1),g.baseState=U,g.firstBaseUpdate=n1,g.lastBaseUpdate=h1,z===null&&(g.shared.lanes=0),J3|=L,e.lanes=L,e.memoizedState=v1}}function ri(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function li(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;ez?z:8;var L=_.T,R={};_.T=R,Gc(e,!1,n,i);try{var U=g(),n1=_.S;if(n1!==null&&n1(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var h1=_p(U,d);Tt(e,n,h1,w4(e))}else Tt(e,n,d,w4(e))}catch(v1){Tt(e,n,{then:function(){},status:"rejected",reason:v1},w4())}finally{I.p=z,L!==null&&R.types!==null&&(L.types=R.types),_.T=L}}function Zp(){}function $c(e,n,i,d){if(e.tag!==5)throw Error(l(476));var g=Di(e).queue;Ti(e,g,n,Q,i===null?Zp:function(){return Oi(e),i(d)})}function Di(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:y3,lastRenderedState:Q},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:y3,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Oi(e){var n=Di(e);n.next===null&&(n=e.alternate.memoizedState),Tt(e,n.next.queue,{},w4())}function Zc(){return K2(te)}function _i(){return V2().memoizedState}function qi(){return V2().memoizedState}function Gp(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=w4();e=G3(i);var d=Y3(n,e,i);d!==null&&(h4(d,n,i),Bt(d,n,i)),n={cache:yc()},e.payload=n;return}n=n.return}}function Yp(e,n,i){var d=w4();i={lane:d,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},N8(e)?Pi(n,i):(i=uc(e,n,i,d),i!==null&&(h4(i,e,d),Ii(i,n,d)))}function Ui(e,n,i){var d=w4();Tt(e,n,i,d)}function Tt(e,n,i,d){var g={lane:d,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(N8(e))Pi(n,g);else{var z=e.alternate;if(e.lanes===0&&(z===null||z.lanes===0)&&(z=n.lastRenderedReducer,z!==null))try{var L=n.lastRenderedState,R=z(L,i);if(g.hasEagerState=!0,g.eagerState=R,p4(R,L))return u8(e,n,g,0),x2===null&&o8(),!1}catch{}finally{}if(i=uc(e,n,g,d),i!==null)return h4(i,e,d),Ii(i,n,d),!0}return!1}function Gc(e,n,i,d){if(d={lane:2,revertLane:An(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},N8(e)){if(n)throw Error(l(479))}else n=uc(e,i,d,2),n!==null&&h4(n,e,2)}function N8(e){var n=e.alternate;return e===K1||n!==null&&n===K1}function Pi(e,n){b6=M8=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function Ii(e,n,i){if((i&4194048)!==0){var d=n.lanes;d&=e.pendingLanes,i|=d,n.lanes=i,O3(e,i)}}var Dt={readContext:K2,use:A8,useCallback:H2,useContext:H2,useEffect:H2,useImperativeHandle:H2,useLayoutEffect:H2,useInsertionEffect:H2,useMemo:H2,useReducer:H2,useRef:H2,useState:H2,useDebugValue:H2,useDeferredValue:H2,useTransition:H2,useSyncExternalStore:H2,useId:H2,useHostTransitionStatus:H2,useFormState:H2,useActionState:H2,useOptimistic:H2,useMemoCache:H2,useCacheRefresh:H2};Dt.useEffectEvent=H2;var $i={readContext:K2,use:A8,useCallback:function(e,n){return n4().memoizedState=[e,n===void 0?null:n],e},useContext:K2,useEffect:Li,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,L8(4194308,4,Bi.bind(null,n,e),i)},useLayoutEffect:function(e,n){return L8(4194308,4,e,n)},useInsertionEffect:function(e,n){L8(4,2,e,n)},useMemo:function(e,n){var i=n4();n=n===void 0?null:n;var d=e();if(k0){b1(!0);try{e()}finally{b1(!1)}}return i.memoizedState=[d,n],d},useReducer:function(e,n,i){var d=n4();if(i!==void 0){var g=i(n);if(k0){b1(!0);try{i(n)}finally{b1(!1)}}}else g=n;return d.memoizedState=d.baseState=g,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:g},d.queue=e,e=e.dispatch=Yp.bind(null,K1,e),[d.memoizedState,e]},useRef:function(e){var n=n4();return e={current:e},n.memoizedState=e},useState:function(e){e=_c(e);var n=e.queue,i=Ui.bind(null,K1,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Pc,useDeferredValue:function(e,n){var i=n4();return Ic(i,e,n)},useTransition:function(){var e=_c(!1);return e=Ti.bind(null,K1,e.queue,!0,!1),n4().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var d=K1,g=n4();if(n2){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),x2===null)throw Error(l(349));(e2&127)!==0||hi(d,n,i)}g.memoizedState=i;var z={value:i,getSnapshot:n};return g.queue=z,Li(fi.bind(null,d,z,e),[e]),d.flags|=2048,y6(9,{destroy:void 0},mi.bind(null,d,z,i,n),null),i},useId:function(){var e=n4(),n=x2.identifierPrefix;if(n2){var i=a3,d=n3;i=(d&~(1<<32-t2(d)-1)).toString(32)+i,n="_"+n+"R_"+i,i=C8++,0<\/script>",z=z.removeChild(z.firstChild);break;case"select":z=typeof d.is=="string"?L.createElement("select",{is:d.is}):L.createElement("select"),d.multiple?z.multiple=!0:d.size&&(z.size=d.size);break;default:z=typeof d.is=="string"?L.createElement(g,{is:d.is}):L.createElement(g)}}z[G2]=n,z[l4]=d;t:for(L=n.child;L!==null;){if(L.tag===5||L.tag===6)z.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===n)break t;for(;L.sibling===null;){if(L.return===null||L.return===n)break t;L=L.return}L.sibling.return=L.return,L=L.sibling}n.stateNode=z;t:switch(Q2(z,g,d),g){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break t;case"img":d=!0;break t;default:d=!1}d&&M3(n)}}return y2(n),sn(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==d&&M3(n);else{if(typeof d!="string"&&n.stateNode===null)throw Error(l(166));if(e=G.current,h6(n)){if(e=n.stateNode,i=n.memoizedProps,d=null,g=Y2,g!==null)switch(g.tag){case 27:case 5:d=g.memoizedProps}e[G2]=n,e=!!(e.nodeValue===i||d!==null&&d.suppressHydrationWarning===!0||uo(e.nodeValue,i)),e||I3(n,!0)}else e=X8(e).createTextNode(d),e[G2]=n,n.stateNode=e}return y2(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(d=h6(n),i!==null){if(e===null){if(!d)throw Error(l(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[G2]=n}else A0(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;y2(n),e=!1}else i=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(b4(n),n):(b4(n),null);if((n.flags&128)!==0)throw Error(l(558))}return y2(n),null;case 13:if(d=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(g=h6(n),d!==null&&d.dehydrated!==null){if(e===null){if(!g)throw Error(l(318));if(g=n.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(l(317));g[G2]=n}else A0(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;y2(n),g=!1}else g=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=g),g=!0;if(!g)return n.flags&256?(b4(n),n):(b4(n),null)}return b4(n),(n.flags&128)!==0?(n.lanes=i,n):(i=d!==null,e=e!==null&&e.memoizedState!==null,i&&(d=n.child,g=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(g=d.alternate.memoizedState.cachePool.pool),z=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(z=d.memoizedState.cachePool.pool),z!==g&&(d.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),R8(n,n.updateQueue),y2(n),null);case 4:return A1(),e===null&&Nn(n.stateNode.containerInfo),y2(n),null;case 10:return b3(n.type),y2(n),null;case 19:if(P(N2),d=n.memoizedState,d===null)return y2(n),null;if(g=(n.flags&128)!==0,z=d.rendering,z===null)if(g)_t(d,!1);else{if(L2!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(z=w8(e),z!==null){for(n.flags|=128,_t(d,!1),e=z.updateQueue,n.updateQueue=e,R8(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)Ul(i,e),i=i.sibling;return e1(N2,N2.current&1|2),n2&&x3(n,d.treeForkCount),n.child}e=e.sibling}d.tail!==null&&r1()>_8&&(n.flags|=128,g=!0,_t(d,!1),n.lanes=4194304)}else{if(!g)if(e=w8(z),e!==null){if(n.flags|=128,g=!0,e=e.updateQueue,n.updateQueue=e,R8(n,e),_t(d,!0),d.tail===null&&d.tailMode==="hidden"&&!z.alternate&&!n2)return y2(n),null}else 2*r1()-d.renderingStartTime>_8&&i!==536870912&&(n.flags|=128,g=!0,_t(d,!1),n.lanes=4194304);d.isBackwards?(z.sibling=n.child,n.child=z):(e=d.last,e!==null?e.sibling=z:n.child=z,d.last=z)}return d.tail!==null?(e=d.tail,d.rendering=e,d.tail=e.sibling,d.renderingStartTime=r1(),e.sibling=null,i=N2.current,e1(N2,g?i&1|2:i&1),n2&&x3(n,d.treeForkCount),e):(y2(n),null);case 22:case 23:return b4(n),Nc(),d=n.memoizedState!==null,e!==null?e.memoizedState!==null!==d&&(n.flags|=8192):d&&(n.flags|=8192),d?(i&536870912)!==0&&(n.flags&128)===0&&(y2(n),n.subtreeFlags&6&&(n.flags|=8192)):y2(n),i=n.updateQueue,i!==null&&R8(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),d=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(d=n.memoizedState.cachePool.pool),d!==i&&(n.flags|=2048),e!==null&&P(j0),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),b3(R2),y2(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function Jp(e,n){switch(vc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return b3(R2),A1(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return s1(n),null;case 31:if(n.memoizedState!==null){if(b4(n),n.alternate===null)throw Error(l(340));A0()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(b4(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));A0()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return P(N2),null;case 4:return A1(),null;case 10:return b3(n.type),null;case 22:case 23:return b4(n),Nc(),e!==null&&P(j0),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return b3(R2),null;case 25:return null;default:return null}}function vs(e,n){switch(vc(n),n.tag){case 3:b3(R2),A1();break;case 26:case 27:case 5:s1(n);break;case 4:A1();break;case 31:n.memoizedState!==null&&b4(n);break;case 13:b4(n);break;case 19:P(N2);break;case 10:b3(n.type);break;case 22:case 23:b4(n),Nc(),e!==null&&P(j0);break;case 24:b3(R2)}}function qt(e,n){try{var i=n.updateQueue,d=i!==null?i.lastEffect:null;if(d!==null){var g=d.next;i=g;do{if((i.tag&e)===e){d=void 0;var z=i.create,L=i.inst;d=z(),L.destroy=d}i=i.next}while(i!==g)}}catch(R){d2(n,n.return,R)}}function Q3(e,n,i){try{var d=n.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var z=g.next;d=z;do{if((d.tag&e)===e){var L=d.inst,R=L.destroy;if(R!==void 0){L.destroy=void 0,g=n;var U=i,n1=R;try{n1()}catch(h1){d2(g,U,h1)}}}d=d.next}while(d!==z)}}catch(h1){d2(n,n.return,h1)}}function ps(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{li(n,i)}catch(d){d2(e,e.return,d)}}}function xs(e,n,i){i.props=F0(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(d){d2(e,n,d)}}function Ut(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var d=e.stateNode;break;case 30:d=e.stateNode;break;default:d=e.stateNode}typeof i=="function"?e.refCleanup=i(d):i.current=d}}catch(g){d2(e,n,g)}}function r3(e,n){var i=e.ref,d=e.refCleanup;if(i!==null)if(typeof d=="function")try{d()}catch(g){d2(e,n,g)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(g){d2(e,n,g)}else i.current=null}function gs(e){var n=e.type,i=e.memoizedProps,d=e.stateNode;try{t:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&d.focus();break t;case"img":i.src?d.src=i.src:i.srcSet&&(d.srcset=i.srcSet)}}catch(g){d2(e,e.return,g)}}function on(e,n,i){try{var d=e.stateNode;yx(d,e.type,i,n),d[l4]=n}catch(g){d2(e,e.return,g)}}function bs(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&a0(e.type)||e.tag===4}function un(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||bs(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&&a0(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dn(e,n,i){var d=e.tag;if(d===5||d===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=f3));else if(d!==4&&(d===27&&a0(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(dn(e,n,i),e=e.sibling;e!==null;)dn(e,n,i),e=e.sibling}function E8(e,n,i){var d=e.tag;if(d===5||d===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(d!==4&&(d===27&&a0(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(E8(e,n,i),e=e.sibling;e!==null;)E8(e,n,i),e=e.sibling}function zs(e){var n=e.stateNode,i=e.memoizedProps;try{for(var d=e.type,g=n.attributes;g.length;)n.removeAttributeNode(g[0]);Q2(n,d,i),n[G2]=e,n[l4]=i}catch(z){d2(e,e.return,z)}}var C3=!1,D2=!1,hn=!1,ys=typeof WeakSet=="function"?WeakSet:Set,Z2=null;function tx(e,n){if(e=e.containerInfo,kn=n5,e=kl(e),ac(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else t:{i=(i=e.ownerDocument)&&i.defaultView||window;var d=i.getSelection&&i.getSelection();if(d&&d.rangeCount!==0){i=d.anchorNode;var g=d.anchorOffset,z=d.focusNode;d=d.focusOffset;try{i.nodeType,z.nodeType}catch{i=null;break t}var L=0,R=-1,U=-1,n1=0,h1=0,v1=e,l1=null;e:for(;;){for(var i1;v1!==i||g!==0&&v1.nodeType!==3||(R=L+g),v1!==z||d!==0&&v1.nodeType!==3||(U=L+d),v1.nodeType===3&&(L+=v1.nodeValue.length),(i1=v1.firstChild)!==null;)l1=v1,v1=i1;for(;;){if(v1===e)break e;if(l1===i&&++n1===g&&(R=L),l1===z&&++h1===d&&(U=L),(i1=v1.nextSibling)!==null)break;v1=l1,l1=v1.parentNode}v1=i1}i=R===-1||U===-1?null:{start:R,end:U}}else i=null}i=i||{start:0,end:0}}else i=null;for(Fn={focusedElem:e,selectionRange:i},n5=!1,Z2=n;Z2!==null;)if(n=Z2,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Z2=e;else for(;Z2!==null;){switch(n=Z2,z=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i title"))),Q2(z,d,i),z[G2]=e,$2(z),d=z;break t;case"link":var L=Lo("link","href",g).get(d+(i.href||""));if(L){for(var R=0;Rv2&&(L=v2,v2=P1,P1=L);var X=Vl(R,P1),$=Vl(R,v2);if(X&&$&&(i1.rangeCount!==1||i1.anchorNode!==X.node||i1.anchorOffset!==X.offset||i1.focusNode!==$.node||i1.focusOffset!==$.offset)){var c1=v1.createRange();c1.setStart(X.node,X.offset),i1.removeAllRanges(),P1>v2?(i1.addRange(c1),i1.extend($.node,$.offset)):(c1.setEnd($.node,$.offset),i1.addRange(c1))}}}}for(v1=[],i1=R;i1=i1.parentNode;)i1.nodeType===1&&v1.push({element:i1,left:i1.scrollLeft,top:i1.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;Ri?32:i,_.T=null,i=bn,bn=null;var z=e0,L=j3;if(U2=0,A6=e0=null,j3=0,(s2&6)!==0)throw Error(l(331));var R=s2;if(s2|=4,Bs(z.current),js(z,z.current,L,i),s2=R,Yt(0,!1),y1&&typeof y1.onPostCommitFiberRoot=="function")try{y1.onPostCommitFiberRoot(u1,z)}catch{}return!0}finally{I.p=g,_.T=d,Xs(e,n)}}function Ws(e,n,i){n=V4(i,n),n=Qc(e.stateNode,n,2),e=Y3(e,n,2),e!==null&&($4(e,2),l3(e))}function d2(e,n,i){if(e.tag===3)Ws(e,e,i);else for(;n!==null;){if(n.tag===3){Ws(n,e,i);break}else if(n.tag===1){var d=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(t0===null||!t0.has(d))){e=V4(i,e),i=Ji(2),d=Y3(n,i,2),d!==null&&(ts(i,d,n,e),$4(d,2),l3(d));break}}n=n.return}}function Mn(e,n,i){var d=e.pingCache;if(d===null){d=e.pingCache=new nx;var g=new Set;d.set(n,g)}else g=d.get(n),g===void 0&&(g=new Set,d.set(n,g));g.has(i)||(vn=!0,g.add(i),e=sx.bind(null,e,n,i),n.then(e,e))}function sx(e,n,i){var d=e.pingCache;d!==null&&d.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,x2===e&&(e2&i)===i&&(L2===4||L2===3&&(e2&62914560)===e2&&300>r1()-O8?(s2&2)===0&&H6(e,0):pn|=i,S6===e2&&(S6=0)),l3(e)}function Js(e,n){n===0&&(n=p2()),e=C0(e,n),e!==null&&($4(e,n),l3(e))}function ox(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Js(e,i)}function ux(e,n){var i=0;switch(e.tag){case 31:case 13:var d=e.stateNode,g=e.memoizedState;g!==null&&(i=g.retryLane);break;case 19:d=e.stateNode;break;case 22:d=e.stateNode._retryCache;break;default:throw Error(l(314))}d!==null&&d.delete(n),Js(e,i)}function dx(e,n){return k1(e,n)}var Z8=null,j6=null,Cn=!1,G8=!1,Sn=!1,n0=0;function l3(e){e!==j6&&e.next===null&&(j6===null?Z8=j6=e:j6=j6.next=e),G8=!0,Cn||(Cn=!0,mx())}function Yt(e,n){if(!Sn&&G8){Sn=!0;do for(var i=!1,d=Z8;d!==null;){if(e!==0){var g=d.pendingLanes;if(g===0)var z=0;else{var L=d.suspendedLanes,R=d.pingedLanes;z=(1<<31-t2(42|e)+1)-1,z&=g&~(L&~R),z=z&201326741?z&201326741|1:z?z|2:0}z!==0&&(i=!0,no(d,z))}else z=e2,z=h2(d,d===x2?z:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(z&3)===0||o2(d,z)||(i=!0,no(d,z));d=d.next}while(i);Sn=!1}}function hx(){to()}function to(){G8=Cn=!1;var e=0;n0!==0&&Mx()&&(e=n0);for(var n=r1(),i=null,d=Z8;d!==null;){var g=d.next,z=eo(d,n);z===0?(d.next=null,i===null?Z8=g:i.next=g,g===null&&(j6=i)):(i=d,(e!==0||(z&3)!==0)&&(G8=!0)),d=g}U2!==0&&U2!==5||Yt(e),n0!==0&&(n0=0)}function eo(e,n){for(var i=e.suspendedLanes,d=e.pingedLanes,g=e.expirationTimes,z=e.pendingLanes&-62914561;0R)break;var h1=U.transferSize,v1=U.initiatorType;h1&&ho(v1)&&(U=U.responseEnd,L+=h1*(U"u"?null:document;function Co(e,n,i){var d=N6;if(d&&typeof n=="string"&&n){var g=j4(n);g='link[rel="'+e+'"][href="'+g+'"]',typeof i=="string"&&(g+='[crossorigin="'+i+'"]'),Mo.has(g)||(Mo.add(g),e={rel:e,crossOrigin:i,href:n},d.querySelector(g)===null&&(n=d.createElement("link"),Q2(n,"link",e),$2(n),d.head.appendChild(n)))}}function Bx(e){N3.D(e),Co("dns-prefetch",e,null)}function kx(e,n){N3.C(e,n),Co("preconnect",e,n)}function Fx(e,n,i){N3.L(e,n,i);var d=N6;if(d&&e&&n){var g='link[rel="preload"][as="'+j4(n)+'"]';n==="image"&&i&&i.imageSrcSet?(g+='[imagesrcset="'+j4(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(g+='[imagesizes="'+j4(i.imageSizes)+'"]')):g+='[href="'+j4(e)+'"]';var z=g;switch(n){case"style":z=V6(e);break;case"script":z=B6(e)}T4.has(z)||(e=b({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),T4.set(z,e),d.querySelector(g)!==null||n==="style"&&d.querySelector(Wt(z))||n==="script"&&d.querySelector(Jt(z))||(n=d.createElement("link"),Q2(n,"link",e),$2(n),d.head.appendChild(n)))}}function Rx(e,n){N3.m(e,n);var i=N6;if(i&&e){var d=n&&typeof n.as=="string"?n.as:"script",g='link[rel="modulepreload"][as="'+j4(d)+'"][href="'+j4(e)+'"]',z=g;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":z=B6(e)}if(!T4.has(z)&&(e=b({rel:"modulepreload",href:e},n),T4.set(z,e),i.querySelector(g)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Jt(z)))return}d=i.createElement("link"),Q2(d,"link",e),$2(d),i.head.appendChild(d)}}}function Ex(e,n,i){N3.S(e,n,i);var d=N6;if(d&&e){var g=J0(d).hoistableStyles,z=V6(e);n=n||"default";var L=g.get(z);if(!L){var R={loading:0,preload:null};if(L=d.querySelector(Wt(z)))R.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},i),(i=T4.get(z))&&qn(e,i);var U=L=d.createElement("link");$2(U),Q2(U,"link",e),U._p=new Promise(function(n1,h1){U.onload=n1,U.onerror=h1}),U.addEventListener("load",function(){R.loading|=1}),U.addEventListener("error",function(){R.loading|=2}),R.loading|=4,W8(L,n,d)}L={type:"stylesheet",instance:L,count:1,state:R},g.set(z,L)}}}function Tx(e,n){N3.X(e,n);var i=N6;if(i&&e){var d=J0(i).hoistableScripts,g=B6(e),z=d.get(g);z||(z=i.querySelector(Jt(g)),z||(e=b({src:e,async:!0},n),(n=T4.get(g))&&Un(e,n),z=i.createElement("script"),$2(z),Q2(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},d.set(g,z))}}function Dx(e,n){N3.M(e,n);var i=N6;if(i&&e){var d=J0(i).hoistableScripts,g=B6(e),z=d.get(g);z||(z=i.querySelector(Jt(g)),z||(e=b({src:e,async:!0,type:"module"},n),(n=T4.get(g))&&Un(e,n),z=i.createElement("script"),$2(z),Q2(z,"link",e),i.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},d.set(g,z))}}function So(e,n,i,d){var g=(g=G.current)?Q8(g):null;if(!g)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=V6(i.href),i=J0(g).hoistableStyles,d=i.get(n),d||(d={type:"style",instance:null,count:0,state:null},i.set(n,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=V6(i.href);var z=J0(g).hoistableStyles,L=z.get(e);if(L||(g=g.ownerDocument||g,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(e,L),(z=g.querySelector(Wt(e)))&&!z._p&&(L.instance=z,L.state.loading=5),T4.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},T4.set(e,i),z||Ox(g,e,i,L.state))),n&&d===null)throw Error(l(528,""));return L}if(n&&d!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=B6(i),i=J0(g).hoistableScripts,d=i.get(n),d||(d={type:"script",instance:null,count:0,state:null},i.set(n,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function V6(e){return'href="'+j4(e)+'"'}function Wt(e){return'link[rel="stylesheet"]['+e+"]"}function Ao(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Ox(e,n,i,d){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?d.loading=1:(n=e.createElement("link"),d.preload=n,n.addEventListener("load",function(){return d.loading|=1}),n.addEventListener("error",function(){return d.loading|=2}),Q2(n,"link",i),$2(n),e.head.appendChild(n))}function B6(e){return'[src="'+j4(e)+'"]'}function Jt(e){return"script[async]"+e}function Ho(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var d=e.querySelector('style[data-href~="'+j4(i.href)+'"]');if(d)return n.instance=d,$2(d),d;var g=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return d=(e.ownerDocument||e).createElement("style"),$2(d),Q2(d,"style",g),W8(d,i.precedence,e),n.instance=d;case"stylesheet":g=V6(i.href);var z=e.querySelector(Wt(g));if(z)return n.state.loading|=4,n.instance=z,$2(z),z;d=Ao(i),(g=T4.get(g))&&qn(d,g),z=(e.ownerDocument||e).createElement("link"),$2(z);var L=z;return L._p=new Promise(function(R,U){L.onload=R,L.onerror=U}),Q2(z,"link",d),n.state.loading|=4,W8(z,i.precedence,e),n.instance=z;case"script":return z=B6(i.src),(g=e.querySelector(Jt(z)))?(n.instance=g,$2(g),g):(d=i,(g=T4.get(z))&&(d=b({},i),Un(d,g)),e=e.ownerDocument||e,g=e.createElement("script"),$2(g),Q2(g,"link",d),e.head.appendChild(g),n.instance=g);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(d=n.instance,n.state.loading|=4,W8(d,i.precedence,e));return n.instance}function W8(e,n,i){for(var d=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=d.length?d[d.length-1]:null,z=g,L=0;L title"):null)}function _x(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function No(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qx(e,n,i,d){if(i.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var g=V6(d.href),z=n.querySelector(Wt(g));if(z){n=z._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=t5.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=z,$2(z);return}z=n.ownerDocument||n,d=Ao(d),(g=T4.get(g))&&qn(d,g),z=z.createElement("link"),$2(z);var L=z;L._p=new Promise(function(R,U){L.onload=R,L.onerror=U}),Q2(z,"link",d),i.instance=z}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=t5.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var Pn=0;function Ux(e,n){return e.stylesheets&&e.count===0&&c5(e,e.stylesheets),0Pn?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(d),clearTimeout(g)}}:null}function t5(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)c5(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var e5=null;function c5(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,e5=new Map,n.forEach(Px,e),e5=null,t5.call(e))}function Px(e,n){if(!(n.state.loading&4)){var i=e5.get(e);if(i)var d=i.get(null);else{i=new Map,e5.set(e,i);for(var g=e.querySelectorAll("link[data-precedence],style[data-precedence]"),z=0;z"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(c){console.error(c)}}return t(),Wn.exports=lg(),Wn.exports}var sg=ig();var eu="popstate";function og(t={}){function c(l,s){let{pathname:o,search:h,hash:m}=l.location;return Xa("",{pathname:o,search:h,hash:m},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function a(l,s){return typeof s=="string"?s:Ae(s)}return dg(c,a,null,t)}function C2(t,c){if(t===!1||t===null||typeof t>"u")throw new Error(c)}function C4(t,c){if(!t){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function ug(){return Math.random().toString(36).substring(2,10)}function cu(t,c){return{usr:t.state,key:t.key,idx:c}}function Xa(t,c,a=null,l){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof c=="string"?nt(c):c,state:a,key:c&&c.key||l||ug()}}function Ae({pathname:t="/",search:c="",hash:a=""}){return c&&c!=="?"&&(t+=c.charAt(0)==="?"?c:"?"+c),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function nt(t){let c={};if(t){let a=t.indexOf("#");a>=0&&(c.hash=t.substring(a),t=t.substring(0,a));let l=t.indexOf("?");l>=0&&(c.search=t.substring(l),t=t.substring(0,l)),t&&(c.pathname=t)}return c}function dg(t,c,a,l={}){let{window:s=document.defaultView,v5Compat:o=!1}=l,h=s.history,m="POP",v=null,x=p();x==null&&(x=0,h.replaceState({...h.state,idx:x},""));function p(){return(h.state||{idx:null}).idx}function b(){m="POP";let M=p(),V=M==null?null:M-x;x=M,v&&v({action:m,location:H.location,delta:V})}function w(M,V){m="PUSH";let A=Xa(H.location,M,V);x=p()+1;let C=cu(A,x),N=H.createHref(A);try{h.pushState(C,"",N)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(N)}o&&v&&v({action:m,location:H.location,delta:1})}function y(M,V){m="REPLACE";let A=Xa(H.location,M,V);x=p();let C=cu(A,x),N=H.createHref(A);h.replaceState(C,"",N),o&&v&&v({action:m,location:H.location,delta:0})}function S(M){return hg(M)}let H={get action(){return m},get location(){return t(s,h)},listen(M){if(v)throw new Error("A history only accepts one active listener");return s.addEventListener(eu,b),v=M,()=>{s.removeEventListener(eu,b),v=null}},createHref(M){return c(s,M)},createURL:S,encodeLocation(M){let V=S(M);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:w,replace:y,go(M){return h.go(M)}};return H}function hg(t,c=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),C2(a,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:Ae(t);return l=l.replace(/ $/,"%20"),!c&&l.startsWith("//")&&(l=a+l),new URL(l,a)}function yh(t,c,a="/"){return mg(t,c,a,!1)}function mg(t,c,a,l){let s=typeof c=="string"?nt(c):c,o=F3(s.pathname||"/",a);if(o==null)return null;let h=wh(t);fg(h);let m=null;for(let v=0;m==null&&v{let p={relativePath:x===void 0?h.path||"":x,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(l)&&v)return;C2(p.relativePath.startsWith(l),`Absolute route path "${p.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(l.length)}let b=k3([l,p.relativePath]),w=a.concat(p);h.children&&h.children.length>0&&(C2(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),wh(h.children,c,w,b,v)),!(h.path==null&&!h.index)&&c.push({path:b,score:yg(b,h.index),routesMeta:w})};return t.forEach((h,m)=>{if(h.path===""||!h.path?.includes("?"))o(h,m);else for(let v of Mh(h.path))o(h,m,!0,v)}),c}function Mh(t){let c=t.split("/");if(c.length===0)return[];let[a,...l]=c,s=a.endsWith("?"),o=a.replace(/\?$/,"");if(l.length===0)return s?[o,""]:[o];let h=Mh(l.join("/")),m=[];return m.push(...h.map(v=>v===""?o:[o,v].join("/"))),s&&m.push(...h),m.map(v=>t.startsWith("/")&&v===""?"/":v)}function fg(t){t.sort((c,a)=>c.score!==a.score?a.score-c.score:wg(c.routesMeta.map(l=>l.childrenIndex),a.routesMeta.map(l=>l.childrenIndex)))}var vg=/^:[\w-]+$/,pg=3,xg=2,gg=1,bg=10,zg=-2,nu=t=>t==="*";function yg(t,c){let a=t.split("/"),l=a.length;return a.some(nu)&&(l+=zg),c&&(l+=xg),a.filter(s=>!nu(s)).reduce((s,o)=>s+(vg.test(o)?pg:o===""?gg:bg),l)}function wg(t,c){return t.length===c.length&&t.slice(0,-1).every((l,s)=>l===c[s])?t[t.length-1]-c[c.length-1]:0}function Mg(t,c,a=!1){let{routesMeta:l}=t,s={},o="/",h=[];for(let m=0;m{if(p==="*"){let S=m[w]||"";h=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const y=m[w];return b&&!y?x[p]=void 0:x[p]=(y||"").replace(/%2F/g,"/"),x},{}),pathname:o,pathnameBase:h,pattern:t}}function Cg(t,c=!1,a=!0){C4(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let l=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,v)=>(l.push({paramName:m,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(l.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,c?void 0:"i"),l]}function Sg(t){try{return t.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return C4(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),t}}function F3(t,c){if(c==="/")return t;if(!t.toLowerCase().startsWith(c.toLowerCase()))return null;let a=c.endsWith("/")?c.length-1:c.length,l=t.charAt(a);return l&&l!=="/"?null:t.slice(a)||"/"}var Ag=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hg=t=>Ag.test(t);function Lg(t,c="/"){let{pathname:a,search:l="",hash:s=""}=typeof t=="string"?nt(t):t,o;if(a)if(Hg(a))o=a;else{if(a.includes("//")){let h=a;a=a.replace(/\/\/+/g,"/"),C4(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${a}`)}a.startsWith("/")?o=au(a.substring(1),"/"):o=au(a,c)}else o=c;return{pathname:o,search:Vg(l),hash:Bg(s)}}function au(t,c){let a=c.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?a.length>1&&a.pop():s!=="."&&a.push(s)}),a.length>1?a.join("/"):"/"}function ca(t,c,a,l){return`Cannot include a '${t}' character in a manually specified \`to.${c}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function jg(t){return t.filter((c,a)=>a===0||c.route.path&&c.route.path.length>0)}function U9(t){let c=jg(t);return c.map((a,l)=>l===c.length-1?a.pathname:a.pathnameBase)}function P9(t,c,a,l=!1){let s;typeof t=="string"?s=nt(t):(s={...t},C2(!s.pathname||!s.pathname.includes("?"),ca("?","pathname","search",s)),C2(!s.pathname||!s.pathname.includes("#"),ca("#","pathname","hash",s)),C2(!s.search||!s.search.includes("#"),ca("#","search","hash",s)));let o=t===""||s.pathname==="",h=o?"/":s.pathname,m;if(h==null)m=a;else{let b=c.length-1;if(!l&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}m=b>=0?c[b]:"/"}let v=Lg(s,m),x=h&&h!=="/"&&h.endsWith("/"),p=(o||h===".")&&a.endsWith("/");return!v.pathname.endsWith("/")&&(x||p)&&(v.pathname+="/"),v}var k3=t=>t.join("/").replace(/\/\/+/g,"/"),Ng=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Vg=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Bg=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function kg(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ch=["POST","PUT","PATCH","DELETE"];new Set(Ch);var Fg=["GET",...Ch];new Set(Fg);var at=f.createContext(null);at.displayName="DataRouter";var x7=f.createContext(null);x7.displayName="DataRouterState";f.createContext(!1);var Sh=f.createContext({isTransitioning:!1});Sh.displayName="ViewTransition";var Rg=f.createContext(new Map);Rg.displayName="Fetchers";var Eg=f.createContext(null);Eg.displayName="Await";var t3=f.createContext(null);t3.displayName="Navigation";var _e=f.createContext(null);_e.displayName="Location";var h3=f.createContext({outlet:null,matches:[],isDataRoute:!1});h3.displayName="Route";var I9=f.createContext(null);I9.displayName="RouteError";function Tg(t,{relative:c}={}){C2(rt(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:l}=f.useContext(t3),{hash:s,pathname:o,search:h}=Ue(t,{relative:c}),m=o;return a!=="/"&&(m=o==="/"?a:k3([a,o])),l.createHref({pathname:m,search:h,hash:s})}function rt(){return f.useContext(_e)!=null}function E3(){return C2(rt(),"useLocation() may be used only in the context of a component."),f.useContext(_e).location}var Ah="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hh(t){f.useContext(t3).static||f.useLayoutEffect(t)}function qe(){let{isDataRoute:t}=f.useContext(h3);return t?Xg():Dg()}function Dg(){C2(rt(),"useNavigate() may be used only in the context of a component.");let t=f.useContext(at),{basename:c,navigator:a}=f.useContext(t3),{matches:l}=f.useContext(h3),{pathname:s}=E3(),o=JSON.stringify(U9(l)),h=f.useRef(!1);return Hh(()=>{h.current=!0}),f.useCallback((v,x={})=>{if(C4(h.current,Ah),!h.current)return;if(typeof v=="number"){a.go(v);return}let p=P9(v,JSON.parse(o),s,x.relative==="path");t==null&&c!=="/"&&(p.pathname=p.pathname==="/"?c:k3([c,p.pathname])),(x.replace?a.replace:a.push)(p,x.state,x)},[c,a,o,s,t])}f.createContext(null);function Ue(t,{relative:c}={}){let{matches:a}=f.useContext(h3),{pathname:l}=E3(),s=JSON.stringify(U9(a));return f.useMemo(()=>P9(t,JSON.parse(s),l,c==="path"),[t,s,l,c])}function Og(t,c){return Lh(t,c)}function Lh(t,c,a,l,s){C2(rt(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=f.useContext(t3),{matches:h}=f.useContext(h3),m=h[h.length-1],v=m?m.params:{},x=m?m.pathname:"/",p=m?m.pathnameBase:"/",b=m&&m.route;{let A=b&&b.path||"";jh(x,!b||A.endsWith("*")||A.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 w=E3(),y;if(c){let A=typeof c=="string"?nt(c):c;C2(p==="/"||A.pathname?.startsWith(p),`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 "${p}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=w;let S=y.pathname||"/",H=S;if(p!=="/"){let A=p.replace(/^\//,"").split("/");H="/"+S.replace(/^\//,"").split("/").slice(A.length).join("/")}let M=yh(t,{pathname:H});C4(b||M!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),C4(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 V=Ig(M&&M.map(A=>Object.assign({},A,{params:Object.assign({},v,A.params),pathname:k3([p,o.encodeLocation?o.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:k3([p,o.encodeLocation?o.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),h,a,l,s);return c&&V?f.createElement(_e.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},V):V}function _g(){let t=Kg(),c=kg(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:l},o={padding:"2px 4px",backgroundColor:l},h=null;return console.error("Error handled by React Router default ErrorBoundary:",t),h=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:o},"ErrorBoundary")," or"," ",f.createElement("code",{style:o},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},c),a?f.createElement("pre",{style:s},a):null,h)}var qg=f.createElement(_g,null),Ug=class extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,c){return c.location!==t.location||c.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:c.error,location:c.location,revalidation:t.revalidation||c.revalidation}}componentDidCatch(t,c){this.props.onError?this.props.onError(t,c):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?f.createElement(h3.Provider,{value:this.props.routeContext},f.createElement(I9.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Pg({routeContext:t,match:c,children:a}){let l=f.useContext(at);return l&&l.static&&l.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=c.route.id),f.createElement(h3.Provider,{value:t},a)}function Ig(t,c=[],a=null,l=null,s=null){if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(c.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let o=t,h=a?.errors;if(h!=null){let p=o.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);C2(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let m=!1,v=-1;if(a)for(let p=0;p=0?o=o.slice(0,v+1):o=[o[0]];break}}}let x=a&&l?(p,b)=>{l(p,{location:a.location,params:a.matches?.[0]?.params??{},errorInfo:b})}:void 0;return o.reduceRight((p,b,w)=>{let y,S=!1,H=null,M=null;a&&(y=h&&b.route.id?h[b.route.id]:void 0,H=b.route.errorElement||qg,m&&(v<0&&w===0?(jh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,M=null):v===w&&(S=!0,M=b.route.hydrateFallbackElement||null)));let V=c.concat(o.slice(0,w+1)),A=()=>{let C;return y?C=H:S?C=M:b.route.Component?C=f.createElement(b.route.Component,null):b.route.element?C=b.route.element:C=p,f.createElement(Pg,{match:b,routeContext:{outlet:p,matches:V,isDataRoute:a!=null},children:C})};return a&&(b.route.ErrorBoundary||b.route.errorElement||w===0)?f.createElement(Ug,{location:a.location,revalidation:a.revalidation,component:H,error:y,children:A(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:x}):A()},null)}function $9(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $g(t){let c=f.useContext(at);return C2(c,$9(t)),c}function Zg(t){let c=f.useContext(x7);return C2(c,$9(t)),c}function Gg(t){let c=f.useContext(h3);return C2(c,$9(t)),c}function Z9(t){let c=Gg(t),a=c.matches[c.matches.length-1];return C2(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}function Yg(){return Z9("useRouteId")}function Kg(){let t=f.useContext(I9),c=Zg("useRouteError"),a=Z9("useRouteError");return t!==void 0?t:c.errors?.[a]}function Xg(){let{router:t}=$g("useNavigate"),c=Z9("useNavigate"),a=f.useRef(!1);return Hh(()=>{a.current=!0}),f.useCallback(async(s,o={})=>{C4(a.current,Ah),a.current&&(typeof s=="number"?t.navigate(s):await t.navigate(s,{fromRouteId:c,...o}))},[t,c])}var ru={};function jh(t,c,a){!c&&!ru[t]&&(ru[t]=!0,C4(!1,a))}f.memo(Qg);function Qg({routes:t,future:c,state:a,unstable_onError:l}){return Lh(t,void 0,a,l,c)}function Wg({to:t,replace:c,state:a,relative:l}){C2(rt()," may be used only in the context of a component.");let{static:s}=f.useContext(t3);C4(!s," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:o}=f.useContext(h3),{pathname:h}=E3(),m=qe(),v=P9(t,U9(o),h,l==="path"),x=JSON.stringify(v);return f.useEffect(()=>{m(JSON.parse(x),{replace:c,state:a,relative:l})},[m,x,l,c,a]),null}function q4(t){C2(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Jg({basename:t="/",children:c=null,location:a,navigationType:l="POP",navigator:s,static:o=!1}){C2(!rt(),"You cannot render a inside another . You should never have more than one in your app.");let h=t.replace(/^\/*/,"/"),m=f.useMemo(()=>({basename:h,navigator:s,static:o,future:{}}),[h,s,o]);typeof a=="string"&&(a=nt(a));let{pathname:v="/",search:x="",hash:p="",state:b=null,key:w="default"}=a,y=f.useMemo(()=>{let S=F3(v,h);return S==null?null:{location:{pathname:S,search:x,hash:p,state:b,key:w},navigationType:l}},[h,v,x,p,b,w,l]);return C4(y!=null,` is not able to match the URL "${v}${x}${p}" because it does not start with the basename, so the won't render anything.`),y==null?null:f.createElement(t3.Provider,{value:m},f.createElement(_e.Provider,{children:c,value:y}))}function tb({children:t,location:c}){return Og(Qa(t),c)}function Qa(t,c=[]){let a=[];return f.Children.forEach(t,(l,s)=>{if(!f.isValidElement(l))return;let o=[...c,s];if(l.type===f.Fragment){a.push.apply(a,Qa(l.props.children,o));return}C2(l.type===q4,`[${typeof l.type=="string"?l.type:l.type.name}] is not a component. All component children of must be a or `),C2(!l.props.index||!l.props.children,"An index route cannot have child routes.");let h={id:l.props.id||o.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(h.children=Qa(l.props.children,o)),a.push(h)}),a}var T5="get",D5="application/x-www-form-urlencoded";function g7(t){return t!=null&&typeof t.tagName=="string"}function eb(t){return g7(t)&&t.tagName.toLowerCase()==="button"}function cb(t){return g7(t)&&t.tagName.toLowerCase()==="form"}function nb(t){return g7(t)&&t.tagName.toLowerCase()==="input"}function ab(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function rb(t,c){return t.button===0&&(!c||c==="_self")&&!ab(t)}function Wa(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((c,a)=>{let l=t[a];return c.concat(Array.isArray(l)?l.map(s=>[a,s]):[[a,l]])},[]))}function lb(t,c){let a=Wa(t);return c&&c.forEach((l,s)=>{a.has(s)||c.getAll(s).forEach(o=>{a.append(s,o)})}),a}var u5=null;function ib(){if(u5===null)try{new FormData(document.createElement("form"),0),u5=!1}catch{u5=!0}return u5}var sb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function na(t){return t!=null&&!sb.has(t)?(C4(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${D5}"`),null):t}function ob(t,c){let a,l,s,o,h;if(cb(t)){let m=t.getAttribute("action");l=m?F3(m,c):null,a=t.getAttribute("method")||T5,s=na(t.getAttribute("enctype"))||D5,o=new FormData(t)}else if(eb(t)||nb(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a