From 13eeb9a52bdb41c4f878ca5f649788bcb7122712 Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 16 Apr 2025 00:51:09 +0800 Subject: [PATCH 1/2] Optimze document status change monitor --- .../src/features/DocumentManager.tsx | 38 +++++++++++++------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/lightrag_webui/src/features/DocumentManager.tsx b/lightrag_webui/src/features/DocumentManager.tsx index 99e8d941..f1b25472 100644 --- a/lightrag_webui/src/features/DocumentManager.tsx +++ b/lightrag_webui/src/features/DocumentManager.tsx @@ -361,20 +361,8 @@ export default function DocumentManager() { // Check again if component is still mounted after the request completes if (!isMountedRef.current) return; - // Get new status counts (treat null as all zeros) - const newStatusCounts = { - processed: docs?.statuses?.processed?.length || 0, - processing: docs?.statuses?.processing?.length || 0, - pending: docs?.statuses?.pending?.length || 0, - failed: docs?.statuses?.failed?.length || 0 - } - - // Only update state if component is still mounted if (isMountedRef.current) { - // Update previous status counts - prevStatusCounts.current = newStatusCounts - // Update docs state if (docs && docs.statuses) { const numDocuments = Object.values(docs.statuses).reduce( @@ -449,6 +437,32 @@ export default function DocumentManager() { } }, [health, fetchDocuments, t, currentTab]) + // Monitor docs changes to check status counts and trigger health check if needed + useEffect(() => { + if (!docs) return; + + // Get new status counts + const newStatusCounts = { + processed: docs?.statuses?.processed?.length || 0, + processing: docs?.statuses?.processing?.length || 0, + pending: docs?.statuses?.pending?.length || 0, + failed: docs?.statuses?.failed?.length || 0 + } + + // Check if any status count has changed + const hasStatusCountChange = (Object.keys(newStatusCounts) as Array).some( + status => newStatusCounts[status] !== prevStatusCounts.current[status] + ) + + // Trigger health check if changes detected and component is still mounted + if (hasStatusCountChange && isMountedRef.current) { + useBackendState.getState().check() + } + + // Update previous status counts + prevStatusCounts.current = newStatusCounts + }, [docs]); + // Add dependency on sort state to re-render when sort changes useEffect(() => { // This effect ensures the component re-renders when sort state changes From 4585f5f7678ded1ac9be0f03293cae718a4a570a Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 16 Apr 2025 00:52:39 +0800 Subject: [PATCH 2/2] Update webui assets --- .../{index-CTSf2SLr.js => index-CiKI6b4o.js} | 58 +++++++++---------- lightrag/api/webui/index.html | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) rename lightrag/api/webui/assets/{index-CTSf2SLr.js => index-CiKI6b4o.js} (96%) diff --git a/lightrag/api/webui/assets/index-CTSf2SLr.js b/lightrag/api/webui/assets/index-CiKI6b4o.js similarity index 96% rename from lightrag/api/webui/assets/index-CTSf2SLr.js rename to lightrag/api/webui/assets/index-CiKI6b4o.js index ffbea032..81fa2e62 100644 --- a/lightrag/api/webui/assets/index-CTSf2SLr.js +++ b/lightrag/api/webui/assets/index-CiKI6b4o.js @@ -14,7 +14,7 @@ var sq=Object.defineProperty;var lq=(e,t,n)=>t in e?sq(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var a_;function fq(){if(a_)return lt;a_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.iterator;function h(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function x(M,V,j){this.props=M,this.context=V,this.refs=v,this.updater=j||b}x.prototype.isReactComponent={},x.prototype.setState=function(M,V){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,V,"setState")},x.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function T(){}T.prototype=x.prototype;function k(M,V,j){this.props=M,this.context=V,this.refs=v,this.updater=j||b}var R=k.prototype=new T;R.constructor=k,y(R,x.prototype),R.isPureReactComponent=!0;var O=Array.isArray,N={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function _(M,V,j,P,Z,Q){return j=Q.ref,{$$typeof:e,type:M,key:V,ref:j!==void 0?j:null,props:Q}}function L(M,V){return _(M.type,V,void 0,void 0,void 0,M.props)}function D(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function I(M){var V={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(j){return V[j]})}var U=/\/+/g;function $(M,V){return typeof M=="object"&&M!==null&&M.key!=null?I(""+M.key):V.toString(36)}function B(){}function W(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(B,B):(M.status="pending",M.then(function(V){M.status==="pending"&&(M.status="fulfilled",M.value=V)},function(V){M.status==="pending"&&(M.status="rejected",M.reason=V)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function K(M,V,j,P,Z){var Q=typeof M;(Q==="undefined"||Q==="boolean")&&(M=null);var oe=!1;if(M===null)oe=!0;else switch(Q){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(M.$$typeof){case e:case t:oe=!0;break;case f:return oe=M._init,K(oe(M._payload),V,j,P,Z)}}if(oe)return Z=Z(M),oe=P===""?"."+$(M,0):P,O(Z)?(j="",oe!=null&&(j=oe.replace(U,"$&/")+"/"),K(Z,V,j,"",function(Re){return Re})):Z!=null&&(D(Z)&&(Z=L(Z,j+(Z.key==null||M&&M.key===Z.key?"":(""+Z.key).replace(U,"$&/")+"/")+oe)),V.push(Z)),1;oe=0;var ae=P===""?".":P+":";if(O(M))for(var ce=0;cet in e?sq(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var i_;function hq(){return i_||(i_=1,function(e){function t(G,H){var F=G.length;G.push(H);e:for(;0>>1,M=G[Y];if(0>>1;Ya(P,F))Za(Q,P)?(G[Y]=Q,G[Z]=F,Y=Z):(G[Y]=P,G[j]=F,Y=j);else if(Za(Q,F))G[Y]=Q,G[Z]=F,Y=Z;else break e}}return H}function a(G,H){var F=G.sortIndex-H.sortIndex;return F!==0?F:G.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],d=[],f=1,g=null,h=3,b=!1,y=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(G){for(var H=n(d);H!==null;){if(H.callback===null)r(d);else if(H.startTime<=G)r(d),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(d)}}function O(G){if(v=!1,R(G),!y)if(n(u)!==null)y=!0,W();else{var H=n(d);H!==null&&K(O,H.startTime-G)}}var N=!1,C=-1,_=5,L=-1;function D(){return!(e.unstable_now()-L<_)}function I(){if(N){var G=e.unstable_now();L=G;var H=!0;try{e:{y=!1,v&&(v=!1,T(C),C=-1),b=!0;var F=h;try{t:{for(R(G),g=n(u);g!==null&&!(g.expirationTime>G&&D());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,h=g.priorityLevel;var M=Y(g.expirationTime<=G);if(G=e.unstable_now(),typeof M=="function"){g.callback=M,R(G),H=!0;break t}g===n(u)&&r(u),R(G)}else r(u);g=n(u)}if(g!==null)H=!0;else{var V=n(d);V!==null&&K(O,V.startTime-G),H=!1}}break e}finally{g=null,h=F,b=!1}H=void 0}}finally{H?U():N=!1}}}var U;if(typeof k=="function")U=function(){k(I)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,B=$.port2;$.port1.onmessage=I,U=function(){B.postMessage(null)}}else U=function(){x(I,0)};function W(){N||(N=!0,U())}function K(G,H){C=x(function(){G(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){y||b||(y=!0,W())},e.unstable_forceFrameRate=function(G){0>G||125Y?(G.sortIndex=F,t(d,G),n(u)===null&&G===n(d)&&(v?(T(C),C=-1):v=!0,K(O,F-Y))):(G.sortIndex=M,t(u,G),y||b||(y=!0,W())),G},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(G){var H=h;return function(){var F=h;h=H;try{return G.apply(this,arguments)}finally{h=F}}}}(Zh)),Zh}var s_;function mq(){return s_||(s_=1,Xh.exports=hq()),Xh.exports}var Qh={exports:{}},kn={};/** + */var i_;function hq(){return i_||(i_=1,function(e){function t(G,H){var z=G.length;G.push(H);e:for(;0>>1,M=G[Y];if(0>>1;Ya(P,z))Za(Q,P)?(G[Y]=Q,G[Z]=z,Y=Z):(G[Y]=P,G[j]=z,Y=j);else if(Za(Q,z))G[Y]=Q,G[Z]=z,Y=Z;else break e}}return H}function a(G,H){var z=G.sortIndex-H.sortIndex;return z!==0?z:G.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],d=[],f=1,g=null,h=3,b=!1,y=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(G){for(var H=n(d);H!==null;){if(H.callback===null)r(d);else if(H.startTime<=G)r(d),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(d)}}function O(G){if(v=!1,R(G),!y)if(n(u)!==null)y=!0,W();else{var H=n(d);H!==null&&K(O,H.startTime-G)}}var N=!1,C=-1,_=5,L=-1;function D(){return!(e.unstable_now()-L<_)}function I(){if(N){var G=e.unstable_now();L=G;var H=!0;try{e:{y=!1,v&&(v=!1,T(C),C=-1),b=!0;var z=h;try{t:{for(R(G),g=n(u);g!==null&&!(g.expirationTime>G&&D());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,h=g.priorityLevel;var M=Y(g.expirationTime<=G);if(G=e.unstable_now(),typeof M=="function"){g.callback=M,R(G),H=!0;break t}g===n(u)&&r(u),R(G)}else r(u);g=n(u)}if(g!==null)H=!0;else{var V=n(d);V!==null&&K(O,V.startTime-G),H=!1}}break e}finally{g=null,h=z,b=!1}H=void 0}}finally{H?U():N=!1}}}var U;if(typeof k=="function")U=function(){k(I)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,B=$.port2;$.port1.onmessage=I,U=function(){B.postMessage(null)}}else U=function(){x(I,0)};function W(){N||(N=!0,U())}function K(G,H){C=x(function(){G(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){y||b||(y=!0,W())},e.unstable_forceFrameRate=function(G){0>G||125Y?(G.sortIndex=z,t(d,G),n(u)===null&&G===n(d)&&(v?(T(C),C=-1):v=!0,K(O,z-Y))):(G.sortIndex=M,t(u,G),y||b||(y=!0,W())),G},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(G){var H=h;return function(){var z=h;h=H;try{return G.apply(this,arguments)}finally{h=z}}}}(Zh)),Zh}var s_;function mq(){return s_||(s_=1,Xh.exports=hq()),Xh.exports}var Qh={exports:{}},kn={};/** * @license React * react-dom.production.js * @@ -40,13 +40,13 @@ var sq=Object.defineProperty;var lq=(e,t,n)=>t in e?sq(e,t,{enumerable:!0,config * LICENSE file in the root directory of this source tree. */var u_;function yq(){if(u_)return nc;u_=1;var e=mq(),t=$p(),n=Kz();function r(i){var c="https://react.dev/errors/"+i;if(1)":-1S||X[m]!==re[S]){var ve=` `+X[m].replace(" at new "," at ");return i.displayName&&ve.includes("")&&(ve=ve.replace("",i.displayName)),ve}while(1<=m&&0<=S);break}}}finally{W=!1,Error.prepareStackTrace=p}return(p=i?i.displayName||i.name:"")?B(p):""}function G(i){switch(i.tag){case 26:case 27:case 5:return B(i.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 15:return i=K(i.type,!1),i;case 11:return i=K(i.type.render,!1),i;case 1:return i=K(i.type,!0),i;default:return""}}function H(i){try{var c="";do c+=G(i),i=i.return;while(i);return c}catch(p){return` Error generating stack: `+p.message+` -`+p.stack}}function F(i){var c=i,p=i;if(i.alternate)for(;c.return;)c=c.return;else{i=c;do c=i,c.flags&4098&&(p=c.return),i=c.return;while(i)}return c.tag===3?p:null}function Y(i){if(i.tag===13){var c=i.memoizedState;if(c===null&&(i=i.alternate,i!==null&&(c=i.memoizedState)),c!==null)return c.dehydrated}return null}function M(i){if(F(i)!==i)throw Error(r(188))}function V(i){var c=i.alternate;if(!c){if(c=F(i),c===null)throw Error(r(188));return c!==i?null:i}for(var p=i,m=c;;){var S=p.return;if(S===null)break;var A=S.alternate;if(A===null){if(m=S.return,m!==null){p=m;continue}break}if(S.child===A.child){for(A=S.child;A;){if(A===p)return M(S),i;if(A===m)return M(S),c;A=A.sibling}throw Error(r(188))}if(p.return!==m.return)p=S,m=A;else{for(var z=!1,q=S.child;q;){if(q===p){z=!0,p=S,m=A;break}if(q===m){z=!0,m=S,p=A;break}q=q.sibling}if(!z){for(q=A.child;q;){if(q===p){z=!0,p=A,m=S;break}if(q===m){z=!0,m=A,p=S;break}q=q.sibling}if(!z)throw Error(r(189))}}if(p.alternate!==m)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?i:c}function j(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i;for(i=i.child;i!==null;){if(c=j(i),c!==null)return c;i=i.sibling}return null}var P=Array.isArray,Z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},oe=[],ae=-1;function ce(i){return{current:i}}function Re(i){0>ae||(i.current=oe[ae],oe[ae]=null,ae--)}function ie(i,c){ae++,oe[ae]=i.current,i.current=c}var Te=ce(null),ne=ce(null),xe=ce(null),Se=ce(null);function be(i,c){switch(ie(xe,c),ie(ne,i),ie(Te,null),i=c.nodeType,i){case 9:case 11:c=(c=c.documentElement)&&(c=c.namespaceURI)?OC(c):0;break;default:if(i=i===8?c.parentNode:c,c=i.tagName,i=i.namespaceURI)i=OC(i),c=IC(i,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}Re(Te),ie(Te,c)}function J(){Re(Te),Re(ne),Re(xe)}function fe(i){i.memoizedState!==null&&ie(Se,i);var c=Te.current,p=IC(c,i.type);c!==p&&(ie(ne,i),ie(Te,p))}function ke(i){ne.current===i&&(Re(Te),Re(ne)),Se.current===i&&(Re(Se),Xl._currentValue=Q)}var he=Object.prototype.hasOwnProperty,we=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,Be=e.unstable_shouldYield,je=e.unstable_requestPaint,ye=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,de=e.unstable_UserBlockingPriority,Ne=e.unstable_NormalPriority,ze=e.unstable_LowPriority,We=e.unstable_IdlePriority,wt=e.log,Tt=e.unstable_setDisableYieldValue,yt=null,et=null;function Rt(i){if(et&&typeof et.onCommitFiberRoot=="function")try{et.onCommitFiberRoot(yt,i,void 0,(i.current.flags&128)===128)}catch{}}function st(i){if(typeof wt=="function"&&Tt(i),et&&typeof et.setStrictMode=="function")try{et.setStrictMode(yt,i)}catch{}}var Et=Math.clz32?Math.clz32:zt,Ht=Math.log,gn=Math.LN2;function zt(i){return i>>>=0,i===0?32:31-(Ht(i)/gn|0)|0}var ir=128,Vr=4194304;function Jt(i){var c=i&42;if(c!==0)return c;switch(i&-i){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: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 i&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function fa(i,c){var p=i.pendingLanes;if(p===0)return 0;var m=0,S=i.suspendedLanes,A=i.pingedLanes,z=i.warmLanes;i=i.finishedLanes!==0;var q=p&134217727;return q!==0?(p=q&~S,p!==0?m=Jt(p):(A&=q,A!==0?m=Jt(A):i||(z=q&~z,z!==0&&(m=Jt(z))))):(q=p&~S,q!==0?m=Jt(q):A!==0?m=Jt(A):i||(z=p&~z,z!==0&&(m=Jt(z)))),m===0?0:c!==0&&c!==m&&!(c&S)&&(S=m&-m,z=c&-c,S>=z||S===32&&(z&4194176)!==0)?c:m}function Xe(i,c){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&c)===0}function vt(i,c){switch(i){case 1:case 2:case 4:case 8:return c+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+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 Ot(){var i=ir;return ir<<=1,!(ir&4194176)&&(ir=128),i}function Ln(){var i=Vr;return Vr<<=1,!(Vr&62914560)&&(Vr=4194304),i}function Nn(i){for(var c=[],p=0;31>p;p++)c.push(i);return c}function Mn(i,c){i.pendingLanes|=c,c!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ga(i,c,p,m,S,A){var z=i.pendingLanes;i.pendingLanes=p,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=p,i.entangledLanes&=p,i.errorRecoveryDisabledLanes&=p,i.shellSuspendCounter=0;var q=i.entanglements,X=i.expirationTimes,re=i.hiddenUpdates;for(p=z&~p;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e$=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),IA={},DA={};function t$(i){return he.call(DA,i)?!0:he.call(IA,i)?!1:e$.test(i)?DA[i]=!0:(IA[i]=!0,!1)}function uu(i,c,p){if(t$(c))if(p===null)i.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":i.removeAttribute(c);return;case"boolean":var m=c.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(c);return}}i.setAttribute(c,""+p)}}function du(i,c,p){if(p===null)i.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttribute(c,""+p)}}function ma(i,c,p,m){if(m===null)i.removeAttribute(p);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(p);return}i.setAttributeNS(c,p,""+m)}}function sr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function LA(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function n$(i){var c=LA(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,c),m=""+i[c];if(!i.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,A=p.set;return Object.defineProperty(i,c,{configurable:!0,get:function(){return S.call(this)},set:function(z){m=""+z,A.call(this,z)}}),Object.defineProperty(i,c,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(z){m=""+z},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function pu(i){i._valueTracker||(i._valueTracker=n$(i))}function MA(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var p=c.getValue(),m="";return i&&(m=LA(i)?i.checked?"true":"false":i.value),i=m,i!==p?(c.setValue(i),!0):!1}function fu(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var r$=/[\n"\\]/g;function lr(i){return i.replace(r$,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function qf(i,c,p,m,S,A,z,q){i.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?i.type=z:i.removeAttribute("type"),c!=null?z==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+sr(c)):i.value!==""+sr(c)&&(i.value=""+sr(c)):z!=="submit"&&z!=="reset"||i.removeAttribute("value"),c!=null?Vf(i,z,sr(c)):p!=null?Vf(i,z,sr(p)):m!=null&&i.removeAttribute("value"),S==null&&A!=null&&(i.defaultChecked=!!A),S!=null&&(i.checked=S&&typeof S!="function"&&typeof S!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?i.name=""+sr(q):i.removeAttribute("name")}function PA(i,c,p,m,S,A,z,q){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(i.type=A),c!=null||p!=null){if(!(A!=="submit"&&A!=="reset"||c!=null))return;p=p!=null?""+sr(p):"",c=c!=null?""+sr(c):p,q||c===i.value||(i.value=c),i.defaultValue=c}m=m??S,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=q?i.checked:!!m,i.defaultChecked=!!m,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(i.name=z)}function Vf(i,c,p){c==="number"&&fu(i.ownerDocument)===i||i.defaultValue===""+p||(i.defaultValue=""+p)}function Di(i,c,p,m){if(i=i.options,c){c={};for(var S=0;S=gl),KA=" ",XA=!1;function ZA(i,c){switch(i){case"keyup":return O$.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QA(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Fi=!1;function D$(i,c){switch(i){case"compositionend":return QA(c);case"keypress":return c.which!==32?null:(XA=!0,KA);case"textInput":return i=c.data,i===KA&&XA?null:i;default:return null}}function L$(i,c){if(Fi)return i==="compositionend"||!rg&&ZA(i,c)?(i=HA(),hu=Qf=Ya=null,Fi=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-i};i=m}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=i1(p)}}function l1(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?l1(i,c.parentNode):"contains"in i?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function c1(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var c=fu(i.document);c instanceof i.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)i=c.contentWindow;else break;c=fu(i.document)}return c}function ig(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}function G$(i,c){var p=c1(c);c=i.focusedElem;var m=i.selectionRange;if(p!==c&&c&&c.ownerDocument&&l1(c.ownerDocument.documentElement,c)){if(m!==null&&ig(c)){if(i=m.start,p=m.end,p===void 0&&(p=i),"selectionStart"in c)c.selectionStart=i,c.selectionEnd=Math.min(p,c.value.length);else if(p=(i=c.ownerDocument||document)&&i.defaultView||window,p.getSelection){p=p.getSelection();var S=c.textContent.length,A=Math.min(m.start,S);m=m.end===void 0?A:Math.min(m.end,S),!p.extend&&A>m&&(S=m,m=A,A=S),S=s1(c,A);var z=s1(c,m);S&&z&&(p.rangeCount!==1||p.anchorNode!==S.node||p.anchorOffset!==S.offset||p.focusNode!==z.node||p.focusOffset!==z.offset)&&(i=i.createRange(),i.setStart(S.node,S.offset),p.removeAllRanges(),A>m?(p.addRange(i),p.extend(z.node,z.offset)):(i.setEnd(z.node,z.offset),p.addRange(i)))}}for(i=[],p=c;p=p.parentNode;)p.nodeType===1&&i.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,zi=null,sg=null,yl=null,lg=!1;function u1(i,c,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;lg||zi==null||zi!==fu(m)||(m=zi,"selectionStart"in m&&ig(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),yl&&bl(yl,m)||(yl=m,m=nd(sg,"onSelect"),0>=z,S-=z,ba=1<<32-Et(c)+S|p<Qe?(ln=Ye,Ye=null):ln=Ye.sibling;var kt=pe(le,Ye,ue[Qe],Ae);if(kt===null){Ye===null&&(Ye=ln);break}i&&Ye&&kt.alternate===null&&c(le,Ye),te=A(kt,te,Qe),ut===null?Ge=kt:ut.sibling=kt,ut=kt,Ye=ln}if(Qe===ue.length)return p(le,Ye),xt&&Ho(le,Qe),Ge;if(Ye===null){for(;QeQe?(ln=Ye,Ye=null):ln=Ye.sibling;var ho=pe(le,Ye,kt.value,Ae);if(ho===null){Ye===null&&(Ye=ln);break}i&&Ye&&ho.alternate===null&&c(le,Ye),te=A(ho,te,Qe),ut===null?Ge=ho:ut.sibling=ho,ut=ho,Ye=ln}if(kt.done)return p(le,Ye),xt&&Ho(le,Qe),Ge;if(Ye===null){for(;!kt.done;Qe++,kt=ue.next())kt=Ce(le,kt.value,Ae),kt!==null&&(te=A(kt,te,Qe),ut===null?Ge=kt:ut.sibling=kt,ut=kt);return xt&&Ho(le,Qe),Ge}for(Ye=m(Ye);!kt.done;Qe++,kt=ue.next())kt=me(Ye,le,Qe,kt.value,Ae),kt!==null&&(i&&kt.alternate!==null&&Ye.delete(kt.key===null?Qe:kt.key),te=A(kt,te,Qe),ut===null?Ge=kt:ut.sibling=kt,ut=kt);return i&&Ye.forEach(function(iq){return c(le,iq)}),xt&&Ho(le,Qe),Ge}function Vt(le,te,ue,Ae){if(typeof ue=="object"&&ue!==null&&ue.type===u&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case s:e:{for(var Ge=ue.key;te!==null;){if(te.key===Ge){if(Ge=ue.type,Ge===u){if(te.tag===7){p(le,te.sibling),Ae=S(te,ue.props.children),Ae.return=le,le=Ae;break e}}else if(te.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===k&&R1(Ge)===te.type){p(le,te.sibling),Ae=S(te,ue.props),Tl(Ae,ue),Ae.return=le,le=Ae;break e}p(le,te);break}else c(le,te);te=te.sibling}ue.type===u?(Ae=ei(ue.props.children,le.mode,Ae,ue.key),Ae.return=le,le=Ae):(Ae=Vu(ue.type,ue.key,ue.props,null,le.mode,Ae),Tl(Ae,ue),Ae.return=le,le=Ae)}return z(le);case l:e:{for(Ge=ue.key;te!==null;){if(te.key===Ge)if(te.tag===4&&te.stateNode.containerInfo===ue.containerInfo&&te.stateNode.implementation===ue.implementation){p(le,te.sibling),Ae=S(te,ue.children||[]),Ae.return=le,le=Ae;break e}else{p(le,te);break}else c(le,te);te=te.sibling}Ae=uh(ue,le.mode,Ae),Ae.return=le,le=Ae}return z(le);case k:return Ge=ue._init,ue=Ge(ue._payload),Vt(le,te,ue,Ae)}if(P(ue))return qe(le,te,ue,Ae);if(C(ue)){if(Ge=C(ue),typeof Ge!="function")throw Error(r(150));return ue=Ge.call(ue),rt(le,te,ue,Ae)}if(typeof ue.then=="function")return Vt(le,te,Ru(ue),Ae);if(ue.$$typeof===b)return Vt(le,te,Hu(le,ue),Ae);Cu(le,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,te!==null&&te.tag===6?(p(le,te.sibling),Ae=S(te,ue),Ae.return=le,le=Ae):(p(le,te),Ae=ch(ue,le.mode,Ae),Ae.return=le,le=Ae),z(le)):p(le,te)}return function(le,te,ue,Ae){try{kl=0;var Ge=Vt(le,te,ue,Ae);return $i=null,Ge}catch(Ye){if(Ye===El)throw Ye;var ut=mr(29,Ye,null,le.mode);return ut.lanes=Ae,ut.return=le,ut}finally{}}}var qo=C1(!0),_1=C1(!1),qi=ce(null),_u=ce(0);function N1(i,c){i=_a,ie(_u,i),ie(qi,c),_a=i|c.baseLanes}function mg(){ie(_u,_a),ie(qi,qi.current)}function bg(){_a=_u.current,Re(qi),Re(_u)}var fr=ce(null),Yr=null;function Xa(i){var c=i.alternate;ie(en,en.current&1),ie(fr,i),Yr===null&&(c===null||qi.current!==null||c.memoizedState!==null)&&(Yr=i)}function O1(i){if(i.tag===22){if(ie(en,en.current),ie(fr,i),Yr===null){var c=i.alternate;c!==null&&c.memoizedState!==null&&(Yr=i)}}else Za()}function Za(){ie(en,en.current),ie(fr,fr.current)}function va(i){Re(fr),Yr===i&&(Yr=null),Re(en)}var en=ce(0);function Nu(i){for(var c=i;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if(c.flags&128)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var W$=typeof AbortController<"u"?AbortController:function(){var i=[],c=this.signal={aborted:!1,addEventListener:function(p,m){i.push(m)}};this.abort=function(){c.aborted=!0,i.forEach(function(p){return p()})}},Y$=e.unstable_scheduleCallback,K$=e.unstable_NormalPriority,tn={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yg(){return{controller:new W$,data:new Map,refCount:0}}function Al(i){i.refCount--,i.refCount===0&&Y$(K$,function(){i.controller.abort()})}var Rl=null,vg=0,Vi=0,Wi=null;function X$(i,c){if(Rl===null){var p=Rl=[];vg=0,Vi=Th(),Wi={status:"pending",value:void 0,then:function(m){p.push(m)}}}return vg++,c.then(I1,I1),c}function I1(){if(--vg===0&&Rl!==null){Wi!==null&&(Wi.status="fulfilled");var i=Rl;Rl=null,Vi=0,Wi=null;for(var c=0;cA?A:8;var z=D.T,q={};D.T=q,Pg(i,!1,c,p);try{var X=S(),re=D.S;if(re!==null&&re(q,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var ve=Z$(X,m);Nl(i,c,ve,Qn(i))}else Nl(i,c,m,Qn(i))}catch(Ce){Nl(i,c,{then:function(){},status:"rejected",reason:Ce},Qn())}finally{Z.p=A,D.T=z}}function n6(){}function Lg(i,c,p,m){if(i.tag!==5)throw Error(r(476));var S=cR(i).queue;lR(i,S,c,Q,p===null?n6:function(){return uR(i),p(m)})}function cR(i){var c=i.memoizedState;if(c!==null)return c;c={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:Q},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:p},next:null},i.memoizedState=c,i=i.alternate,i!==null&&(i.memoizedState=c),c}function uR(i){var c=cR(i).next.queue;Nl(i,c,{},Qn())}function Mg(){return xn(Xl)}function dR(){return Xt().memoizedState}function pR(){return Xt().memoizedState}function r6(i){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var p=Qn();i=no(p);var m=ro(c,i,p);m!==null&&(In(m,c,p),Dl(m,c,p)),c={cache:yg()},i.payload=c;return}c=c.return}}function a6(i,c,p){var m=Qn();p={lane:m,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Bu(i)?gR(c,p):(p=dg(i,c,p,m),p!==null&&(In(p,i,m),hR(p,c,m)))}function fR(i,c,p){var m=Qn();Nl(i,c,p,m)}function Nl(i,c,p,m){var S={lane:m,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Bu(i))gR(c,S);else{var A=i.alternate;if(i.lanes===0&&(A===null||A.lanes===0)&&(A=c.lastRenderedReducer,A!==null))try{var z=c.lastRenderedState,q=A(z,p);if(S.hasEagerState=!0,S.eagerState=q,Yn(q,z))return Eu(i,c,S,0),Mt===null&&wu(),!1}catch{}finally{}if(p=dg(i,c,S,m),p!==null)return In(p,i,m),hR(p,c,m),!0}return!1}function Pg(i,c,p,m){if(m={lane:2,revertLane:Th(),action:m,hasEagerState:!1,eagerState:null,next:null},Bu(i)){if(c)throw Error(r(479))}else c=dg(i,p,m,2),c!==null&&In(c,i,2)}function Bu(i){var c=i.alternate;return i===ct||c!==null&&c===ct}function gR(i,c){Yi=Iu=!0;var p=i.pending;p===null?c.next=c:(c.next=p.next,p.next=c),i.pending=c}function hR(i,c,p){if(p&4194176){var m=c.lanes;m&=i.pendingLanes,p|=m,c.lanes=p,_r(i,p)}}var Kr={readContext:xn,use:Mu,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt};Kr.useCacheRefresh=Wt,Kr.useMemoCache=Wt,Kr.useHostTransitionStatus=Wt,Kr.useFormState=Wt,Kr.useActionState=Wt,Kr.useOptimistic=Wt;var Yo={readContext:xn,use:Mu,useCallback:function(i,c){return Bn().memoizedState=[i,c===void 0?null:c],i},useContext:xn,useEffect:eR,useImperativeHandle:function(i,c,p){p=p!=null?p.concat([i]):null,Fu(4194308,4,rR.bind(null,c,i),p)},useLayoutEffect:function(i,c){return Fu(4194308,4,i,c)},useInsertionEffect:function(i,c){Fu(4,2,i,c)},useMemo:function(i,c){var p=Bn();c=c===void 0?null:c;var m=i();if(Wo){st(!0);try{i()}finally{st(!1)}}return p.memoizedState=[m,c],m},useReducer:function(i,c,p){var m=Bn();if(p!==void 0){var S=p(c);if(Wo){st(!0);try{p(c)}finally{st(!1)}}}else S=c;return m.memoizedState=m.baseState=S,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:S},m.queue=i,i=i.dispatch=a6.bind(null,ct,i),[m.memoizedState,i]},useRef:function(i){var c=Bn();return i={current:i},c.memoizedState=i},useState:function(i){i=_g(i);var c=i.queue,p=fR.bind(null,ct,c);return c.dispatch=p,[i.memoizedState,p]},useDebugValue:Ig,useDeferredValue:function(i,c){var p=Bn();return Dg(p,i,c)},useTransition:function(){var i=_g(!1);return i=lR.bind(null,ct,i.queue,!0,!1),Bn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,c,p){var m=ct,S=Bn();if(xt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Mt===null)throw Error(r(349));St&60||z1(m,c,p)}S.memoizedState=p;var A={value:p,getSnapshot:c};return S.queue=A,eR(j1.bind(null,m,A,i),[i]),m.flags|=2048,Xi(9,B1.bind(null,m,A,p,c),{destroy:void 0},null),p},useId:function(){var i=Bn(),c=Mt.identifierPrefix;if(xt){var p=ya,m=ba;p=(m&~(1<<32-Et(m)-1)).toString(32)+p,c=":"+c+"R"+p,p=Du++,0 title"))),bn(A,m,p),A[En]=i,an(A),m=A;break e;case"link":var z=GC("link","href",S).get(m+(p.href||""));if(z){for(var q=0;q<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof m.is=="string"?S.createElement("select",{is:m.is}):S.createElement("select"),m.multiple?i.multiple=!0:m.size&&(i.size=m.size);break;default:i=typeof m.is=="string"?S.createElement(p,{is:m.is}):S.createElement(p)}}i[En]=c,i[Fn]=m;e:for(S=c.child;S!==null;){if(S.tag===5||S.tag===6)i.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===c)break e;for(;S.sibling===null;){if(S.return===null||S.return===c)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}c.stateNode=i;e:switch(bn(i,p,m),p){case"button":case"input":case"select":case"textarea":i=!!m.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ra(c)}}return Bt(c),c.flags&=-16777217,null;case 6:if(i&&c.stateNode!=null)i.memoizedProps!==m&&Ra(c);else{if(typeof m!="string"&&c.stateNode===null)throw Error(r(166));if(i=xe.current,vl(c)){if(i=c.stateNode,p=c.memoizedProps,m=null,S=On,S!==null)switch(S.tag){case 27:case 5:m=S.memoizedProps}i[En]=c,i=!!(i.nodeValue===p||m!==null&&m.suppressHydrationWarning===!0||NC(i.nodeValue,p)),i||$o(c)}else i=ad(i).createTextNode(m),i[En]=c,c.stateNode=i}return Bt(c),null;case 13:if(m=c.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(S=vl(c),m!==null&&m.dehydrated!==null){if(i===null){if(!S)throw Error(r(318));if(S=c.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(r(317));S[En]=c}else Sl(),!(c.flags&128)&&(c.memoizedState=null),c.flags|=4;Bt(c),S=!1}else Or!==null&&(yh(Or),Or=null),S=!0;if(!S)return c.flags&256?(va(c),c):(va(c),null)}if(va(c),c.flags&128)return c.lanes=p,c;if(p=m!==null,i=i!==null&&i.memoizedState!==null,p){m=c.child,S=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(S=m.alternate.memoizedState.cachePool.pool);var A=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(A=m.memoizedState.cachePool.pool),A!==S&&(m.flags|=2048)}return p!==i&&p&&(c.child.flags|=8192),Wu(c,c.updateQueue),Bt(c),null;case 4:return J(),i===null&&_h(c.stateNode.containerInfo),Bt(c),null;case 10:return xa(c.type),Bt(c),null;case 19:if(Re(en),S=c.memoizedState,S===null)return Bt(c),null;if(m=(c.flags&128)!==0,A=S.rendering,A===null)if(m)jl(S,!1);else{if(qt!==0||i!==null&&i.flags&128)for(i=c.child;i!==null;){if(A=Nu(i),A!==null){for(c.flags|=128,jl(S,!1),i=A.updateQueue,c.updateQueue=i,Wu(c,i),c.subtreeFlags=0,i=p,p=c.child;p!==null;)aC(p,i),p=p.sibling;return ie(en,en.current&1|2),c.child}i=i.sibling}S.tail!==null&&ye()>Yu&&(c.flags|=128,m=!0,jl(S,!1),c.lanes=4194304)}else{if(!m)if(i=Nu(A),i!==null){if(c.flags|=128,m=!0,i=i.updateQueue,c.updateQueue=i,Wu(c,i),jl(S,!0),S.tail===null&&S.tailMode==="hidden"&&!A.alternate&&!xt)return Bt(c),null}else 2*ye()-S.renderingStartTime>Yu&&p!==536870912&&(c.flags|=128,m=!0,jl(S,!1),c.lanes=4194304);S.isBackwards?(A.sibling=c.child,c.child=A):(i=S.last,i!==null?i.sibling=A:c.child=A,S.last=A)}return S.tail!==null?(c=S.tail,S.rendering=c,S.tail=c.sibling,S.renderingStartTime=ye(),c.sibling=null,i=en.current,ie(en,m?i&1|2:i&1),c):(Bt(c),null);case 22:case 23:return va(c),bg(),m=c.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(c.flags|=8192):m&&(c.flags|=8192),m?p&536870912&&!(c.flags&128)&&(Bt(c),c.subtreeFlags&6&&(c.flags|=8192)):Bt(c),p=c.updateQueue,p!==null&&Wu(c,p.retryQueue),p=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==p&&(c.flags|=2048),i!==null&&Re(Vo),null;case 24:return p=null,i!==null&&(p=i.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),xa(tn),Bt(c),null;case 25:return null}throw Error(r(156,c.tag))}function d6(i,c){switch(fg(c),c.tag){case 1:return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return xa(tn),J(),i=c.flags,i&65536&&!(i&128)?(c.flags=i&-65537|128,c):null;case 26:case 27:case 5:return ke(c),null;case 13:if(va(c),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Sl()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return Re(en),null;case 4:return J(),null;case 10:return xa(c.type),null;case 22:case 23:return va(c),bg(),i!==null&&Re(Vo),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 24:return xa(tn),null;case 25:return null;default:return null}}function sC(i,c){switch(fg(c),c.tag){case 3:xa(tn),J();break;case 26:case 27:case 5:ke(c);break;case 4:J();break;case 13:va(c);break;case 19:Re(en);break;case 10:xa(c.type);break;case 22:case 23:va(c),bg(),i!==null&&Re(Vo);break;case 24:xa(tn)}}var p6={getCacheForType:function(i){var c=xn(tn),p=c.data.get(i);return p===void 0&&(p=i(),c.data.set(i,p)),p}},f6=typeof WeakMap=="function"?WeakMap:Map,jt=0,Mt=null,pt=null,St=0,Pt=0,Zn=null,Ca=!1,es=!1,dh=!1,_a=0,qt=0,lo=0,ti=0,ph=0,br=0,ts=0,Ul=null,Xr=null,fh=!1,gh=0,Yu=1/0,Ku=null,co=null,Xu=!1,ni=null,Gl=0,hh=0,mh=null,Hl=0,bh=null;function Qn(){if(jt&2&&St!==0)return St&-St;if(D.T!==null){var i=Vi;return i!==0?i:Th()}return CA()}function lC(){br===0&&(br=!(St&536870912)||xt?Ot():536870912);var i=fr.current;return i!==null&&(i.flags|=32),br}function In(i,c,p){(i===Mt&&Pt===2||i.cancelPendingCommit!==null)&&(ns(i,0),Na(i,St,br,!1)),Mn(i,p),(!(jt&2)||i!==Mt)&&(i===Mt&&(!(jt&2)&&(ti|=p),qt===4&&Na(i,St,br,!1)),Zr(i))}function cC(i,c,p){if(jt&6)throw Error(r(327));var m=!p&&(c&60)===0&&(c&i.expiredLanes)===0||Xe(i,c),S=m?m6(i,c):wh(i,c,!0),A=m;do{if(S===0){es&&!m&&Na(i,c,0,!1);break}else if(S===6)Na(i,c,0,!Ca);else{if(p=i.current.alternate,A&&!g6(p)){S=wh(i,c,!1),A=!1;continue}if(S===2){if(A=c,i.errorRecoveryDisabledLanes&A)var z=0;else z=i.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){c=z;e:{var q=i;S=Ul;var X=q.current.memoizedState.isDehydrated;if(X&&(ns(q,z).flags|=256),z=wh(q,z,!1),z!==2){if(dh&&!X){q.errorRecoveryDisabledLanes|=A,ti|=A,S=4;break e}A=Xr,Xr=S,A!==null&&yh(A)}S=z}if(A=!1,S!==2)continue}}if(S===1){ns(i,0),Na(i,c,0,!0);break}e:{switch(m=i,S){case 0:case 1:throw Error(r(345));case 4:if((c&4194176)===c){Na(m,c,br,!Ca);break e}break;case 2:Xr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(m.finishedWork=p,m.finishedLanes=c,(c&62914560)===c&&(A=gh+300-ye(),10p?32:p,D.T=null,ni===null)var A=!1;else{p=mh,mh=null;var z=ni,q=Gl;if(ni=null,Gl=0,jt&6)throw Error(r(331));var X=jt;if(jt|=4,nC(z.current),JR(z,z.current,q,p),jt=X,$l(0,!1),et&&typeof et.onPostCommitFiberRoot=="function")try{et.onPostCommitFiberRoot(yt,z)}catch{}A=!0}return A}finally{Z.p=S,D.T=m,yC(i,c)}}return!1}function vC(i,c,p){c=ur(p,c),c=Bg(i.stateNode,c,2),i=ro(i,c,2),i!==null&&(Mn(i,2),Zr(i))}function It(i,c,p){if(i.tag===3)vC(i,i,p);else for(;c!==null;){if(c.tag===3){vC(c,i,p);break}else if(c.tag===1){var m=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(co===null||!co.has(m))){i=ur(p,i),p=ER(2),m=ro(c,p,2),m!==null&&(xR(p,m,c,i),Mn(m,2),Zr(m));break}}c=c.return}}function Eh(i,c,p){var m=i.pingCache;if(m===null){m=i.pingCache=new f6;var S=new Set;m.set(c,S)}else S=m.get(c),S===void 0&&(S=new Set,m.set(c,S));S.has(p)||(dh=!0,S.add(p),i=v6.bind(null,i,c,p),c.then(i,i))}function v6(i,c,p){var m=i.pingCache;m!==null&&m.delete(c),i.pingedLanes|=i.suspendedLanes&p,i.warmLanes&=~p,Mt===i&&(St&p)===p&&(qt===4||qt===3&&(St&62914560)===St&&300>ye()-gh?!(jt&2)&&ns(i,0):ph|=p,ts===St&&(ts=0)),Zr(i)}function SC(i,c){c===0&&(c=Ln()),i=Ka(i,c),i!==null&&(Mn(i,c),Zr(i))}function S6(i){var c=i.memoizedState,p=0;c!==null&&(p=c.retryLane),SC(i,p)}function w6(i,c){var p=0;switch(i.tag){case 13:var m=i.stateNode,S=i.memoizedState;S!==null&&(p=S.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(c),SC(i,p)}function E6(i,c){return we(i,c)}var Ju=null,os=null,xh=!1,ed=!1,kh=!1,ri=0;function Zr(i){i!==os&&i.next===null&&(os===null?Ju=os=i:os=os.next=i),ed=!0,xh||(xh=!0,k6(x6))}function $l(i,c){if(!kh&&ed){kh=!0;do for(var p=!1,m=Ju;m!==null;){if(i!==0){var S=m.pendingLanes;if(S===0)var A=0;else{var z=m.suspendedLanes,q=m.pingedLanes;A=(1<<31-Et(42|i)+1)-1,A&=S&~(z&~q),A=A&201326677?A&201326677|1:A?A|2:0}A!==0&&(p=!0,xC(m,A))}else A=St,A=fa(m,m===Mt?A:0),!(A&3)||Xe(m,A)||(p=!0,xC(m,A));m=m.next}while(p);kh=!1}}function x6(){ed=xh=!1;var i=0;ri!==0&&(I6()&&(i=ri),ri=0);for(var c=ye(),p=null,m=Ju;m!==null;){var S=m.next,A=wC(m,c);A===0?(m.next=null,p===null?Ju=S:p.next=S,S===null&&(os=p)):(p=m,(i!==0||A&3)&&(ed=!0)),m=S}$l(i)}function wC(i,c){for(var p=i.suspendedLanes,m=i.pingedLanes,S=i.expirationTimes,A=i.pendingLanes&-62914561;0"u"?null:document;function zC(i,c,p){var m=ss;if(m&&typeof c=="string"&&c){var S=lr(c);S='link[rel="'+i+'"][href="'+S+'"]',typeof p=="string"&&(S+='[crossorigin="'+p+'"]'),FC.has(S)||(FC.add(S),i={rel:i,crossOrigin:p,href:c},m.querySelector(S)===null&&(c=m.createElement("link"),bn(c,"link",i),an(c),m.head.appendChild(c)))}}function j6(i){Oa.D(i),zC("dns-prefetch",i,null)}function U6(i,c){Oa.C(i,c),zC("preconnect",i,c)}function G6(i,c,p){Oa.L(i,c,p);var m=ss;if(m&&i&&c){var S='link[rel="preload"][as="'+lr(c)+'"]';c==="image"&&p&&p.imageSrcSet?(S+='[imagesrcset="'+lr(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(S+='[imagesizes="'+lr(p.imageSizes)+'"]')):S+='[href="'+lr(i)+'"]';var A=S;switch(c){case"style":A=ls(i);break;case"script":A=cs(i)}yr.has(A)||(i=I({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:i,as:c},p),yr.set(A,i),m.querySelector(S)!==null||c==="style"&&m.querySelector(Wl(A))||c==="script"&&m.querySelector(Yl(A))||(c=m.createElement("link"),bn(c,"link",i),an(c),m.head.appendChild(c)))}}function H6(i,c){Oa.m(i,c);var p=ss;if(p&&i){var m=c&&typeof c.as=="string"?c.as:"script",S='link[rel="modulepreload"][as="'+lr(m)+'"][href="'+lr(i)+'"]',A=S;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=cs(i)}if(!yr.has(A)&&(i=I({rel:"modulepreload",href:i},c),yr.set(A,i),p.querySelector(S)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(Yl(A)))return}m=p.createElement("link"),bn(m,"link",i),an(m),p.head.appendChild(m)}}}function $6(i,c,p){Oa.S(i,c,p);var m=ss;if(m&&i){var S=Oi(m).hoistableStyles,A=ls(i);c=c||"default";var z=S.get(A);if(!z){var q={loading:0,preload:null};if(z=m.querySelector(Wl(A)))q.loading=5;else{i=I({rel:"stylesheet",href:i,"data-precedence":c},p),(p=yr.get(A))&&zh(i,p);var X=z=m.createElement("link");an(X),bn(X,"link",i),X._p=new Promise(function(re,ve){X.onload=re,X.onerror=ve}),X.addEventListener("load",function(){q.loading|=1}),X.addEventListener("error",function(){q.loading|=2}),q.loading|=4,id(z,c,m)}z={type:"stylesheet",instance:z,count:1,state:q},S.set(A,z)}}}function q6(i,c){Oa.X(i,c);var p=ss;if(p&&i){var m=Oi(p).hoistableScripts,S=cs(i),A=m.get(S);A||(A=p.querySelector(Yl(S)),A||(i=I({src:i,async:!0},c),(c=yr.get(S))&&Bh(i,c),A=p.createElement("script"),an(A),bn(A,"link",i),p.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(S,A))}}function V6(i,c){Oa.M(i,c);var p=ss;if(p&&i){var m=Oi(p).hoistableScripts,S=cs(i),A=m.get(S);A||(A=p.querySelector(Yl(S)),A||(i=I({src:i,async:!0,type:"module"},c),(c=yr.get(S))&&Bh(i,c),A=p.createElement("script"),an(A),bn(A,"link",i),p.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(S,A))}}function BC(i,c,p,m){var S=(S=xe.current)?od(S):null;if(!S)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=ls(p.href),p=Oi(S).hoistableStyles,m=p.get(c),m||(m={type:"style",instance:null,count:0,state:null},p.set(c,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){i=ls(p.href);var A=Oi(S).hoistableStyles,z=A.get(i);if(z||(S=S.ownerDocument||S,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(i,z),(A=S.querySelector(Wl(i)))&&!A._p&&(z.instance=A,z.state.loading=5),yr.has(i)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},yr.set(i,p),A||W6(S,i,p,z.state))),c&&m===null)throw Error(r(528,""));return z}if(c&&m!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=cs(p),p=Oi(S).hoistableScripts,m=p.get(c),m||(m={type:"script",instance:null,count:0,state:null},p.set(c,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function ls(i){return'href="'+lr(i)+'"'}function Wl(i){return'link[rel="stylesheet"]['+i+"]"}function jC(i){return I({},i,{"data-precedence":i.precedence,precedence:null})}function W6(i,c,p,m){i.querySelector('link[rel="preload"][as="style"]['+c+"]")?m.loading=1:(c=i.createElement("link"),m.preload=c,c.addEventListener("load",function(){return m.loading|=1}),c.addEventListener("error",function(){return m.loading|=2}),bn(c,"link",p),an(c),i.head.appendChild(c))}function cs(i){return'[src="'+lr(i)+'"]'}function Yl(i){return"script[async]"+i}function UC(i,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var m=i.querySelector('style[data-href~="'+lr(p.href)+'"]');if(m)return c.instance=m,an(m),m;var S=I({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),an(m),bn(m,"style",S),id(m,p.precedence,i),c.instance=m;case"stylesheet":S=ls(p.href);var A=i.querySelector(Wl(S));if(A)return c.state.loading|=4,c.instance=A,an(A),A;m=jC(p),(S=yr.get(S))&&zh(m,S),A=(i.ownerDocument||i).createElement("link"),an(A);var z=A;return z._p=new Promise(function(q,X){z.onload=q,z.onerror=X}),bn(A,"link",m),c.state.loading|=4,id(A,p.precedence,i),c.instance=A;case"script":return A=cs(p.src),(S=i.querySelector(Yl(A)))?(c.instance=S,an(S),S):(m=p,(S=yr.get(A))&&(m=I({},p),Bh(m,S)),i=i.ownerDocument||i,S=i.createElement("script"),an(S),bn(S,"link",m),i.head.appendChild(S),c.instance=S);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&!(c.state.loading&4)&&(m=c.instance,c.state.loading|=4,id(m,p.precedence,i));return c.instance}function id(i,c,p){for(var m=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=m.length?m[m.length-1]:null,A=S,z=0;z title"):null)}function Y6(i,c,p){if(p===1||c.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return i=c.disabled,typeof c.precedence=="string"&&i==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function $C(i){return!(i.type==="stylesheet"&&!(i.state.loading&3))}var Kl=null;function K6(){}function X6(i,c,p){if(Kl===null)throw Error(r(475));var m=Kl;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&!(c.state.loading&4)){if(c.instance===null){var S=ls(p.href),A=i.querySelector(Wl(S));if(A){i=A._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=ld.bind(m),i.then(m,m)),c.state.loading|=4,c.instance=A,an(A);return}A=i.ownerDocument||i,p=jC(p),(S=yr.get(S))&&zh(p,S),A=A.createElement("link"),an(A);var z=A;z._p=new Promise(function(q,X){z.onload=q,z.onerror=X}),bn(A,"link",p),c.instance=A}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(c,i),(i=c.state.preload)&&!(c.state.loading&3)&&(m.count++,c=ld.bind(m),i.addEventListener("load",c),i.addEventListener("error",c))}}function Z6(){if(Kl===null)throw Error(r(475));var i=Kl;return i.stylesheets&&i.count===0&&jh(i,i.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Kh.exports=yq(),Kh.exports}var Sq=vq(),rc={},p_;function wq(){if(p_)return rc;p_=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.parse=s,rc.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function s(h,b){const y=new o,v=h.length;if(v<2)return y;const x=(b==null?void 0:b.decode)||f;let T=0;do{const k=h.indexOf("=",T);if(k===-1)break;const R=h.indexOf(";",T),O=R===-1?v:R;if(k>O){T=h.lastIndexOf(";",k-1)+1;continue}const N=l(h,T,k),C=u(h,k,N),_=h.slice(N,C);if(y[_]===void 0){let L=l(h,k+1,O),D=u(h,O,L);const I=x(h.slice(L,D));y[_]=I}T=O+1}while(Ty;){const v=h.charCodeAt(--b);if(v!==32&&v!==9)return b+1}return y}function d(h,b,y){const v=(y==null?void 0:y.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const x=v(b);if(!t.test(x))throw new TypeError(`argument val is invalid: ${b}`);let T=h+"="+x;if(!y)return T;if(y.maxAge!==void 0){if(!Number.isInteger(y.maxAge))throw new TypeError(`option maxAge is invalid: ${y.maxAge}`);T+="; Max-Age="+y.maxAge}if(y.domain){if(!n.test(y.domain))throw new TypeError(`option domain is invalid: ${y.domain}`);T+="; Domain="+y.domain}if(y.path){if(!r.test(y.path))throw new TypeError(`option path is invalid: ${y.path}`);T+="; Path="+y.path}if(y.expires){if(!g(y.expires)||!Number.isFinite(y.expires.valueOf()))throw new TypeError(`option expires is invalid: ${y.expires}`);T+="; Expires="+y.expires.toUTCString()}if(y.httpOnly&&(T+="; HttpOnly"),y.secure&&(T+="; Secure"),y.partitioned&&(T+="; Partitioned"),y.priority)switch(typeof y.priority=="string"?y.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${y.priority}`)}if(y.sameSite)switch(typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${y.sameSite}`)}return T}function f(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function g(h){return a.call(h)==="[object Date]"}return rc}wq();/** +`+p.stack}}function z(i){var c=i,p=i;if(i.alternate)for(;c.return;)c=c.return;else{i=c;do c=i,c.flags&4098&&(p=c.return),i=c.return;while(i)}return c.tag===3?p:null}function Y(i){if(i.tag===13){var c=i.memoizedState;if(c===null&&(i=i.alternate,i!==null&&(c=i.memoizedState)),c!==null)return c.dehydrated}return null}function M(i){if(z(i)!==i)throw Error(r(188))}function V(i){var c=i.alternate;if(!c){if(c=z(i),c===null)throw Error(r(188));return c!==i?null:i}for(var p=i,m=c;;){var S=p.return;if(S===null)break;var A=S.alternate;if(A===null){if(m=S.return,m!==null){p=m;continue}break}if(S.child===A.child){for(A=S.child;A;){if(A===p)return M(S),i;if(A===m)return M(S),c;A=A.sibling}throw Error(r(188))}if(p.return!==m.return)p=S,m=A;else{for(var F=!1,q=S.child;q;){if(q===p){F=!0,p=S,m=A;break}if(q===m){F=!0,m=S,p=A;break}q=q.sibling}if(!F){for(q=A.child;q;){if(q===p){F=!0,p=A,m=S;break}if(q===m){F=!0,m=A,p=S;break}q=q.sibling}if(!F)throw Error(r(189))}}if(p.alternate!==m)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?i:c}function j(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i;for(i=i.child;i!==null;){if(c=j(i),c!==null)return c;i=i.sibling}return null}var P=Array.isArray,Z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},oe=[],ae=-1;function ce(i){return{current:i}}function Re(i){0>ae||(i.current=oe[ae],oe[ae]=null,ae--)}function ie(i,c){ae++,oe[ae]=i.current,i.current=c}var Te=ce(null),ne=ce(null),xe=ce(null),Se=ce(null);function be(i,c){switch(ie(xe,c),ie(ne,i),ie(Te,null),i=c.nodeType,i){case 9:case 11:c=(c=c.documentElement)&&(c=c.namespaceURI)?OC(c):0;break;default:if(i=i===8?c.parentNode:c,c=i.tagName,i=i.namespaceURI)i=OC(i),c=IC(i,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}Re(Te),ie(Te,c)}function J(){Re(Te),Re(ne),Re(xe)}function fe(i){i.memoizedState!==null&&ie(Se,i);var c=Te.current,p=IC(c,i.type);c!==p&&(ie(ne,i),ie(Te,p))}function ke(i){ne.current===i&&(Re(Te),Re(ne)),Se.current===i&&(Re(Se),Xl._currentValue=Q)}var he=Object.prototype.hasOwnProperty,we=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,Be=e.unstable_shouldYield,je=e.unstable_requestPaint,ye=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,de=e.unstable_UserBlockingPriority,Ne=e.unstable_NormalPriority,ze=e.unstable_LowPriority,We=e.unstable_IdlePriority,wt=e.log,Tt=e.unstable_setDisableYieldValue,yt=null,et=null;function Rt(i){if(et&&typeof et.onCommitFiberRoot=="function")try{et.onCommitFiberRoot(yt,i,void 0,(i.current.flags&128)===128)}catch{}}function st(i){if(typeof wt=="function"&&Tt(i),et&&typeof et.setStrictMode=="function")try{et.setStrictMode(yt,i)}catch{}}var Et=Math.clz32?Math.clz32:zt,Ht=Math.log,gn=Math.LN2;function zt(i){return i>>>=0,i===0?32:31-(Ht(i)/gn|0)|0}var sr=128,Vr=4194304;function Jt(i){var c=i&42;if(c!==0)return c;switch(i&-i){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: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 i&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function fa(i,c){var p=i.pendingLanes;if(p===0)return 0;var m=0,S=i.suspendedLanes,A=i.pingedLanes,F=i.warmLanes;i=i.finishedLanes!==0;var q=p&134217727;return q!==0?(p=q&~S,p!==0?m=Jt(p):(A&=q,A!==0?m=Jt(A):i||(F=q&~F,F!==0&&(m=Jt(F))))):(q=p&~S,q!==0?m=Jt(q):A!==0?m=Jt(A):i||(F=p&~F,F!==0&&(m=Jt(F)))),m===0?0:c!==0&&c!==m&&!(c&S)&&(S=m&-m,F=c&-c,S>=F||S===32&&(F&4194176)!==0)?c:m}function Xe(i,c){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&c)===0}function vt(i,c){switch(i){case 1:case 2:case 4:case 8:return c+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+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 Ot(){var i=sr;return sr<<=1,!(sr&4194176)&&(sr=128),i}function Ln(){var i=Vr;return Vr<<=1,!(Vr&62914560)&&(Vr=4194304),i}function Nn(i){for(var c=[],p=0;31>p;p++)c.push(i);return c}function Mn(i,c){i.pendingLanes|=c,c!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ga(i,c,p,m,S,A){var F=i.pendingLanes;i.pendingLanes=p,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=p,i.entangledLanes&=p,i.errorRecoveryDisabledLanes&=p,i.shellSuspendCounter=0;var q=i.entanglements,X=i.expirationTimes,re=i.hiddenUpdates;for(p=F&~p;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e$=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),IA={},DA={};function t$(i){return he.call(DA,i)?!0:he.call(IA,i)?!1:e$.test(i)?DA[i]=!0:(IA[i]=!0,!1)}function uu(i,c,p){if(t$(c))if(p===null)i.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":i.removeAttribute(c);return;case"boolean":var m=c.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(c);return}}i.setAttribute(c,""+p)}}function du(i,c,p){if(p===null)i.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttribute(c,""+p)}}function ma(i,c,p,m){if(m===null)i.removeAttribute(p);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(p);return}i.setAttributeNS(c,p,""+m)}}function lr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function LA(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function n$(i){var c=LA(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,c),m=""+i[c];if(!i.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,A=p.set;return Object.defineProperty(i,c,{configurable:!0,get:function(){return S.call(this)},set:function(F){m=""+F,A.call(this,F)}}),Object.defineProperty(i,c,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(F){m=""+F},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function pu(i){i._valueTracker||(i._valueTracker=n$(i))}function MA(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var p=c.getValue(),m="";return i&&(m=LA(i)?i.checked?"true":"false":i.value),i=m,i!==p?(c.setValue(i),!0):!1}function fu(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var r$=/[\n"\\]/g;function cr(i){return i.replace(r$,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function qf(i,c,p,m,S,A,F,q){i.name="",F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?i.type=F:i.removeAttribute("type"),c!=null?F==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+lr(c)):i.value!==""+lr(c)&&(i.value=""+lr(c)):F!=="submit"&&F!=="reset"||i.removeAttribute("value"),c!=null?Vf(i,F,lr(c)):p!=null?Vf(i,F,lr(p)):m!=null&&i.removeAttribute("value"),S==null&&A!=null&&(i.defaultChecked=!!A),S!=null&&(i.checked=S&&typeof S!="function"&&typeof S!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?i.name=""+lr(q):i.removeAttribute("name")}function PA(i,c,p,m,S,A,F,q){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(i.type=A),c!=null||p!=null){if(!(A!=="submit"&&A!=="reset"||c!=null))return;p=p!=null?""+lr(p):"",c=c!=null?""+lr(c):p,q||c===i.value||(i.value=c),i.defaultValue=c}m=m??S,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=q?i.checked:!!m,i.defaultChecked=!!m,F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(i.name=F)}function Vf(i,c,p){c==="number"&&fu(i.ownerDocument)===i||i.defaultValue===""+p||(i.defaultValue=""+p)}function Di(i,c,p,m){if(i=i.options,c){c={};for(var S=0;S=gl),KA=" ",XA=!1;function ZA(i,c){switch(i){case"keyup":return O$.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QA(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Fi=!1;function D$(i,c){switch(i){case"compositionend":return QA(c);case"keypress":return c.which!==32?null:(XA=!0,KA);case"textInput":return i=c.data,i===KA&&XA?null:i;default:return null}}function L$(i,c){if(Fi)return i==="compositionend"||!rg&&ZA(i,c)?(i=HA(),hu=Qf=Ya=null,Fi=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-i};i=m}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=i1(p)}}function l1(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?l1(i,c.parentNode):"contains"in i?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function c1(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var c=fu(i.document);c instanceof i.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)i=c.contentWindow;else break;c=fu(i.document)}return c}function ig(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}function G$(i,c){var p=c1(c);c=i.focusedElem;var m=i.selectionRange;if(p!==c&&c&&c.ownerDocument&&l1(c.ownerDocument.documentElement,c)){if(m!==null&&ig(c)){if(i=m.start,p=m.end,p===void 0&&(p=i),"selectionStart"in c)c.selectionStart=i,c.selectionEnd=Math.min(p,c.value.length);else if(p=(i=c.ownerDocument||document)&&i.defaultView||window,p.getSelection){p=p.getSelection();var S=c.textContent.length,A=Math.min(m.start,S);m=m.end===void 0?A:Math.min(m.end,S),!p.extend&&A>m&&(S=m,m=A,A=S),S=s1(c,A);var F=s1(c,m);S&&F&&(p.rangeCount!==1||p.anchorNode!==S.node||p.anchorOffset!==S.offset||p.focusNode!==F.node||p.focusOffset!==F.offset)&&(i=i.createRange(),i.setStart(S.node,S.offset),p.removeAllRanges(),A>m?(p.addRange(i),p.extend(F.node,F.offset)):(i.setEnd(F.node,F.offset),p.addRange(i)))}}for(i=[],p=c;p=p.parentNode;)p.nodeType===1&&i.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,zi=null,sg=null,yl=null,lg=!1;function u1(i,c,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;lg||zi==null||zi!==fu(m)||(m=zi,"selectionStart"in m&&ig(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),yl&&bl(yl,m)||(yl=m,m=nd(sg,"onSelect"),0>=F,S-=F,ba=1<<32-Et(c)+S|p<Qe?(ln=Ye,Ye=null):ln=Ye.sibling;var kt=pe(le,Ye,ue[Qe],Ae);if(kt===null){Ye===null&&(Ye=ln);break}i&&Ye&&kt.alternate===null&&c(le,Ye),te=A(kt,te,Qe),ut===null?Ge=kt:ut.sibling=kt,ut=kt,Ye=ln}if(Qe===ue.length)return p(le,Ye),xt&&Ho(le,Qe),Ge;if(Ye===null){for(;QeQe?(ln=Ye,Ye=null):ln=Ye.sibling;var ho=pe(le,Ye,kt.value,Ae);if(ho===null){Ye===null&&(Ye=ln);break}i&&Ye&&ho.alternate===null&&c(le,Ye),te=A(ho,te,Qe),ut===null?Ge=ho:ut.sibling=ho,ut=ho,Ye=ln}if(kt.done)return p(le,Ye),xt&&Ho(le,Qe),Ge;if(Ye===null){for(;!kt.done;Qe++,kt=ue.next())kt=Ce(le,kt.value,Ae),kt!==null&&(te=A(kt,te,Qe),ut===null?Ge=kt:ut.sibling=kt,ut=kt);return xt&&Ho(le,Qe),Ge}for(Ye=m(Ye);!kt.done;Qe++,kt=ue.next())kt=me(Ye,le,Qe,kt.value,Ae),kt!==null&&(i&&kt.alternate!==null&&Ye.delete(kt.key===null?Qe:kt.key),te=A(kt,te,Qe),ut===null?Ge=kt:ut.sibling=kt,ut=kt);return i&&Ye.forEach(function(iq){return c(le,iq)}),xt&&Ho(le,Qe),Ge}function Vt(le,te,ue,Ae){if(typeof ue=="object"&&ue!==null&&ue.type===u&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case s:e:{for(var Ge=ue.key;te!==null;){if(te.key===Ge){if(Ge=ue.type,Ge===u){if(te.tag===7){p(le,te.sibling),Ae=S(te,ue.props.children),Ae.return=le,le=Ae;break e}}else if(te.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===k&&R1(Ge)===te.type){p(le,te.sibling),Ae=S(te,ue.props),Tl(Ae,ue),Ae.return=le,le=Ae;break e}p(le,te);break}else c(le,te);te=te.sibling}ue.type===u?(Ae=ei(ue.props.children,le.mode,Ae,ue.key),Ae.return=le,le=Ae):(Ae=Vu(ue.type,ue.key,ue.props,null,le.mode,Ae),Tl(Ae,ue),Ae.return=le,le=Ae)}return F(le);case l:e:{for(Ge=ue.key;te!==null;){if(te.key===Ge)if(te.tag===4&&te.stateNode.containerInfo===ue.containerInfo&&te.stateNode.implementation===ue.implementation){p(le,te.sibling),Ae=S(te,ue.children||[]),Ae.return=le,le=Ae;break e}else{p(le,te);break}else c(le,te);te=te.sibling}Ae=uh(ue,le.mode,Ae),Ae.return=le,le=Ae}return F(le);case k:return Ge=ue._init,ue=Ge(ue._payload),Vt(le,te,ue,Ae)}if(P(ue))return qe(le,te,ue,Ae);if(C(ue)){if(Ge=C(ue),typeof Ge!="function")throw Error(r(150));return ue=Ge.call(ue),rt(le,te,ue,Ae)}if(typeof ue.then=="function")return Vt(le,te,Ru(ue),Ae);if(ue.$$typeof===b)return Vt(le,te,Hu(le,ue),Ae);Cu(le,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,te!==null&&te.tag===6?(p(le,te.sibling),Ae=S(te,ue),Ae.return=le,le=Ae):(p(le,te),Ae=ch(ue,le.mode,Ae),Ae.return=le,le=Ae),F(le)):p(le,te)}return function(le,te,ue,Ae){try{kl=0;var Ge=Vt(le,te,ue,Ae);return $i=null,Ge}catch(Ye){if(Ye===El)throw Ye;var ut=br(29,Ye,null,le.mode);return ut.lanes=Ae,ut.return=le,ut}finally{}}}var qo=C1(!0),_1=C1(!1),qi=ce(null),_u=ce(0);function N1(i,c){i=_a,ie(_u,i),ie(qi,c),_a=i|c.baseLanes}function mg(){ie(_u,_a),ie(qi,qi.current)}function bg(){_a=_u.current,Re(qi),Re(_u)}var gr=ce(null),Yr=null;function Xa(i){var c=i.alternate;ie(en,en.current&1),ie(gr,i),Yr===null&&(c===null||qi.current!==null||c.memoizedState!==null)&&(Yr=i)}function O1(i){if(i.tag===22){if(ie(en,en.current),ie(gr,i),Yr===null){var c=i.alternate;c!==null&&c.memoizedState!==null&&(Yr=i)}}else Za()}function Za(){ie(en,en.current),ie(gr,gr.current)}function va(i){Re(gr),Yr===i&&(Yr=null),Re(en)}var en=ce(0);function Nu(i){for(var c=i;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if(c.flags&128)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var W$=typeof AbortController<"u"?AbortController:function(){var i=[],c=this.signal={aborted:!1,addEventListener:function(p,m){i.push(m)}};this.abort=function(){c.aborted=!0,i.forEach(function(p){return p()})}},Y$=e.unstable_scheduleCallback,K$=e.unstable_NormalPriority,tn={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yg(){return{controller:new W$,data:new Map,refCount:0}}function Al(i){i.refCount--,i.refCount===0&&Y$(K$,function(){i.controller.abort()})}var Rl=null,vg=0,Vi=0,Wi=null;function X$(i,c){if(Rl===null){var p=Rl=[];vg=0,Vi=Th(),Wi={status:"pending",value:void 0,then:function(m){p.push(m)}}}return vg++,c.then(I1,I1),c}function I1(){if(--vg===0&&Rl!==null){Wi!==null&&(Wi.status="fulfilled");var i=Rl;Rl=null,Vi=0,Wi=null;for(var c=0;cA?A:8;var F=D.T,q={};D.T=q,Pg(i,!1,c,p);try{var X=S(),re=D.S;if(re!==null&&re(q,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var ve=Z$(X,m);Nl(i,c,ve,Qn(i))}else Nl(i,c,m,Qn(i))}catch(Ce){Nl(i,c,{then:function(){},status:"rejected",reason:Ce},Qn())}finally{Z.p=A,D.T=F}}function n6(){}function Lg(i,c,p,m){if(i.tag!==5)throw Error(r(476));var S=cR(i).queue;lR(i,S,c,Q,p===null?n6:function(){return uR(i),p(m)})}function cR(i){var c=i.memoizedState;if(c!==null)return c;c={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:Q},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:p},next:null},i.memoizedState=c,i=i.alternate,i!==null&&(i.memoizedState=c),c}function uR(i){var c=cR(i).next.queue;Nl(i,c,{},Qn())}function Mg(){return xn(Xl)}function dR(){return Xt().memoizedState}function pR(){return Xt().memoizedState}function r6(i){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var p=Qn();i=no(p);var m=ro(c,i,p);m!==null&&(In(m,c,p),Dl(m,c,p)),c={cache:yg()},i.payload=c;return}c=c.return}}function a6(i,c,p){var m=Qn();p={lane:m,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Bu(i)?gR(c,p):(p=dg(i,c,p,m),p!==null&&(In(p,i,m),hR(p,c,m)))}function fR(i,c,p){var m=Qn();Nl(i,c,p,m)}function Nl(i,c,p,m){var S={lane:m,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Bu(i))gR(c,S);else{var A=i.alternate;if(i.lanes===0&&(A===null||A.lanes===0)&&(A=c.lastRenderedReducer,A!==null))try{var F=c.lastRenderedState,q=A(F,p);if(S.hasEagerState=!0,S.eagerState=q,Yn(q,F))return Eu(i,c,S,0),Mt===null&&wu(),!1}catch{}finally{}if(p=dg(i,c,S,m),p!==null)return In(p,i,m),hR(p,c,m),!0}return!1}function Pg(i,c,p,m){if(m={lane:2,revertLane:Th(),action:m,hasEagerState:!1,eagerState:null,next:null},Bu(i)){if(c)throw Error(r(479))}else c=dg(i,p,m,2),c!==null&&In(c,i,2)}function Bu(i){var c=i.alternate;return i===ct||c!==null&&c===ct}function gR(i,c){Yi=Iu=!0;var p=i.pending;p===null?c.next=c:(c.next=p.next,p.next=c),i.pending=c}function hR(i,c,p){if(p&4194176){var m=c.lanes;m&=i.pendingLanes,p|=m,c.lanes=p,_r(i,p)}}var Kr={readContext:xn,use:Mu,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useLayoutEffect:Wt,useInsertionEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useSyncExternalStore:Wt,useId:Wt};Kr.useCacheRefresh=Wt,Kr.useMemoCache=Wt,Kr.useHostTransitionStatus=Wt,Kr.useFormState=Wt,Kr.useActionState=Wt,Kr.useOptimistic=Wt;var Yo={readContext:xn,use:Mu,useCallback:function(i,c){return Bn().memoizedState=[i,c===void 0?null:c],i},useContext:xn,useEffect:eR,useImperativeHandle:function(i,c,p){p=p!=null?p.concat([i]):null,Fu(4194308,4,rR.bind(null,c,i),p)},useLayoutEffect:function(i,c){return Fu(4194308,4,i,c)},useInsertionEffect:function(i,c){Fu(4,2,i,c)},useMemo:function(i,c){var p=Bn();c=c===void 0?null:c;var m=i();if(Wo){st(!0);try{i()}finally{st(!1)}}return p.memoizedState=[m,c],m},useReducer:function(i,c,p){var m=Bn();if(p!==void 0){var S=p(c);if(Wo){st(!0);try{p(c)}finally{st(!1)}}}else S=c;return m.memoizedState=m.baseState=S,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:S},m.queue=i,i=i.dispatch=a6.bind(null,ct,i),[m.memoizedState,i]},useRef:function(i){var c=Bn();return i={current:i},c.memoizedState=i},useState:function(i){i=_g(i);var c=i.queue,p=fR.bind(null,ct,c);return c.dispatch=p,[i.memoizedState,p]},useDebugValue:Ig,useDeferredValue:function(i,c){var p=Bn();return Dg(p,i,c)},useTransition:function(){var i=_g(!1);return i=lR.bind(null,ct,i.queue,!0,!1),Bn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,c,p){var m=ct,S=Bn();if(xt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Mt===null)throw Error(r(349));St&60||z1(m,c,p)}S.memoizedState=p;var A={value:p,getSnapshot:c};return S.queue=A,eR(j1.bind(null,m,A,i),[i]),m.flags|=2048,Xi(9,B1.bind(null,m,A,p,c),{destroy:void 0},null),p},useId:function(){var i=Bn(),c=Mt.identifierPrefix;if(xt){var p=ya,m=ba;p=(m&~(1<<32-Et(m)-1)).toString(32)+p,c=":"+c+"R"+p,p=Du++,0 title"))),bn(A,m,p),A[En]=i,an(A),m=A;break e;case"link":var F=GC("link","href",S).get(m+(p.href||""));if(F){for(var q=0;q<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof m.is=="string"?S.createElement("select",{is:m.is}):S.createElement("select"),m.multiple?i.multiple=!0:m.size&&(i.size=m.size);break;default:i=typeof m.is=="string"?S.createElement(p,{is:m.is}):S.createElement(p)}}i[En]=c,i[Fn]=m;e:for(S=c.child;S!==null;){if(S.tag===5||S.tag===6)i.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===c)break e;for(;S.sibling===null;){if(S.return===null||S.return===c)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}c.stateNode=i;e:switch(bn(i,p,m),p){case"button":case"input":case"select":case"textarea":i=!!m.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ra(c)}}return Bt(c),c.flags&=-16777217,null;case 6:if(i&&c.stateNode!=null)i.memoizedProps!==m&&Ra(c);else{if(typeof m!="string"&&c.stateNode===null)throw Error(r(166));if(i=xe.current,vl(c)){if(i=c.stateNode,p=c.memoizedProps,m=null,S=On,S!==null)switch(S.tag){case 27:case 5:m=S.memoizedProps}i[En]=c,i=!!(i.nodeValue===p||m!==null&&m.suppressHydrationWarning===!0||NC(i.nodeValue,p)),i||$o(c)}else i=ad(i).createTextNode(m),i[En]=c,c.stateNode=i}return Bt(c),null;case 13:if(m=c.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(S=vl(c),m!==null&&m.dehydrated!==null){if(i===null){if(!S)throw Error(r(318));if(S=c.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(r(317));S[En]=c}else Sl(),!(c.flags&128)&&(c.memoizedState=null),c.flags|=4;Bt(c),S=!1}else Or!==null&&(yh(Or),Or=null),S=!0;if(!S)return c.flags&256?(va(c),c):(va(c),null)}if(va(c),c.flags&128)return c.lanes=p,c;if(p=m!==null,i=i!==null&&i.memoizedState!==null,p){m=c.child,S=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(S=m.alternate.memoizedState.cachePool.pool);var A=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(A=m.memoizedState.cachePool.pool),A!==S&&(m.flags|=2048)}return p!==i&&p&&(c.child.flags|=8192),Wu(c,c.updateQueue),Bt(c),null;case 4:return J(),i===null&&_h(c.stateNode.containerInfo),Bt(c),null;case 10:return xa(c.type),Bt(c),null;case 19:if(Re(en),S=c.memoizedState,S===null)return Bt(c),null;if(m=(c.flags&128)!==0,A=S.rendering,A===null)if(m)jl(S,!1);else{if(qt!==0||i!==null&&i.flags&128)for(i=c.child;i!==null;){if(A=Nu(i),A!==null){for(c.flags|=128,jl(S,!1),i=A.updateQueue,c.updateQueue=i,Wu(c,i),c.subtreeFlags=0,i=p,p=c.child;p!==null;)aC(p,i),p=p.sibling;return ie(en,en.current&1|2),c.child}i=i.sibling}S.tail!==null&&ye()>Yu&&(c.flags|=128,m=!0,jl(S,!1),c.lanes=4194304)}else{if(!m)if(i=Nu(A),i!==null){if(c.flags|=128,m=!0,i=i.updateQueue,c.updateQueue=i,Wu(c,i),jl(S,!0),S.tail===null&&S.tailMode==="hidden"&&!A.alternate&&!xt)return Bt(c),null}else 2*ye()-S.renderingStartTime>Yu&&p!==536870912&&(c.flags|=128,m=!0,jl(S,!1),c.lanes=4194304);S.isBackwards?(A.sibling=c.child,c.child=A):(i=S.last,i!==null?i.sibling=A:c.child=A,S.last=A)}return S.tail!==null?(c=S.tail,S.rendering=c,S.tail=c.sibling,S.renderingStartTime=ye(),c.sibling=null,i=en.current,ie(en,m?i&1|2:i&1),c):(Bt(c),null);case 22:case 23:return va(c),bg(),m=c.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(c.flags|=8192):m&&(c.flags|=8192),m?p&536870912&&!(c.flags&128)&&(Bt(c),c.subtreeFlags&6&&(c.flags|=8192)):Bt(c),p=c.updateQueue,p!==null&&Wu(c,p.retryQueue),p=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==p&&(c.flags|=2048),i!==null&&Re(Vo),null;case 24:return p=null,i!==null&&(p=i.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),xa(tn),Bt(c),null;case 25:return null}throw Error(r(156,c.tag))}function d6(i,c){switch(fg(c),c.tag){case 1:return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return xa(tn),J(),i=c.flags,i&65536&&!(i&128)?(c.flags=i&-65537|128,c):null;case 26:case 27:case 5:return ke(c),null;case 13:if(va(c),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Sl()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return Re(en),null;case 4:return J(),null;case 10:return xa(c.type),null;case 22:case 23:return va(c),bg(),i!==null&&Re(Vo),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 24:return xa(tn),null;case 25:return null;default:return null}}function sC(i,c){switch(fg(c),c.tag){case 3:xa(tn),J();break;case 26:case 27:case 5:ke(c);break;case 4:J();break;case 13:va(c);break;case 19:Re(en);break;case 10:xa(c.type);break;case 22:case 23:va(c),bg(),i!==null&&Re(Vo);break;case 24:xa(tn)}}var p6={getCacheForType:function(i){var c=xn(tn),p=c.data.get(i);return p===void 0&&(p=i(),c.data.set(i,p)),p}},f6=typeof WeakMap=="function"?WeakMap:Map,jt=0,Mt=null,pt=null,St=0,Pt=0,Zn=null,Ca=!1,es=!1,dh=!1,_a=0,qt=0,lo=0,ti=0,ph=0,yr=0,ts=0,Ul=null,Xr=null,fh=!1,gh=0,Yu=1/0,Ku=null,co=null,Xu=!1,ni=null,Gl=0,hh=0,mh=null,Hl=0,bh=null;function Qn(){if(jt&2&&St!==0)return St&-St;if(D.T!==null){var i=Vi;return i!==0?i:Th()}return CA()}function lC(){yr===0&&(yr=!(St&536870912)||xt?Ot():536870912);var i=gr.current;return i!==null&&(i.flags|=32),yr}function In(i,c,p){(i===Mt&&Pt===2||i.cancelPendingCommit!==null)&&(ns(i,0),Na(i,St,yr,!1)),Mn(i,p),(!(jt&2)||i!==Mt)&&(i===Mt&&(!(jt&2)&&(ti|=p),qt===4&&Na(i,St,yr,!1)),Zr(i))}function cC(i,c,p){if(jt&6)throw Error(r(327));var m=!p&&(c&60)===0&&(c&i.expiredLanes)===0||Xe(i,c),S=m?m6(i,c):wh(i,c,!0),A=m;do{if(S===0){es&&!m&&Na(i,c,0,!1);break}else if(S===6)Na(i,c,0,!Ca);else{if(p=i.current.alternate,A&&!g6(p)){S=wh(i,c,!1),A=!1;continue}if(S===2){if(A=c,i.errorRecoveryDisabledLanes&A)var F=0;else F=i.pendingLanes&-536870913,F=F!==0?F:F&536870912?536870912:0;if(F!==0){c=F;e:{var q=i;S=Ul;var X=q.current.memoizedState.isDehydrated;if(X&&(ns(q,F).flags|=256),F=wh(q,F,!1),F!==2){if(dh&&!X){q.errorRecoveryDisabledLanes|=A,ti|=A,S=4;break e}A=Xr,Xr=S,A!==null&&yh(A)}S=F}if(A=!1,S!==2)continue}}if(S===1){ns(i,0),Na(i,c,0,!0);break}e:{switch(m=i,S){case 0:case 1:throw Error(r(345));case 4:if((c&4194176)===c){Na(m,c,yr,!Ca);break e}break;case 2:Xr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(m.finishedWork=p,m.finishedLanes=c,(c&62914560)===c&&(A=gh+300-ye(),10p?32:p,D.T=null,ni===null)var A=!1;else{p=mh,mh=null;var F=ni,q=Gl;if(ni=null,Gl=0,jt&6)throw Error(r(331));var X=jt;if(jt|=4,nC(F.current),JR(F,F.current,q,p),jt=X,$l(0,!1),et&&typeof et.onPostCommitFiberRoot=="function")try{et.onPostCommitFiberRoot(yt,F)}catch{}A=!0}return A}finally{Z.p=S,D.T=m,yC(i,c)}}return!1}function vC(i,c,p){c=dr(p,c),c=Bg(i.stateNode,c,2),i=ro(i,c,2),i!==null&&(Mn(i,2),Zr(i))}function It(i,c,p){if(i.tag===3)vC(i,i,p);else for(;c!==null;){if(c.tag===3){vC(c,i,p);break}else if(c.tag===1){var m=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(co===null||!co.has(m))){i=dr(p,i),p=ER(2),m=ro(c,p,2),m!==null&&(xR(p,m,c,i),Mn(m,2),Zr(m));break}}c=c.return}}function Eh(i,c,p){var m=i.pingCache;if(m===null){m=i.pingCache=new f6;var S=new Set;m.set(c,S)}else S=m.get(c),S===void 0&&(S=new Set,m.set(c,S));S.has(p)||(dh=!0,S.add(p),i=v6.bind(null,i,c,p),c.then(i,i))}function v6(i,c,p){var m=i.pingCache;m!==null&&m.delete(c),i.pingedLanes|=i.suspendedLanes&p,i.warmLanes&=~p,Mt===i&&(St&p)===p&&(qt===4||qt===3&&(St&62914560)===St&&300>ye()-gh?!(jt&2)&&ns(i,0):ph|=p,ts===St&&(ts=0)),Zr(i)}function SC(i,c){c===0&&(c=Ln()),i=Ka(i,c),i!==null&&(Mn(i,c),Zr(i))}function S6(i){var c=i.memoizedState,p=0;c!==null&&(p=c.retryLane),SC(i,p)}function w6(i,c){var p=0;switch(i.tag){case 13:var m=i.stateNode,S=i.memoizedState;S!==null&&(p=S.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(c),SC(i,p)}function E6(i,c){return we(i,c)}var Ju=null,os=null,xh=!1,ed=!1,kh=!1,ri=0;function Zr(i){i!==os&&i.next===null&&(os===null?Ju=os=i:os=os.next=i),ed=!0,xh||(xh=!0,k6(x6))}function $l(i,c){if(!kh&&ed){kh=!0;do for(var p=!1,m=Ju;m!==null;){if(i!==0){var S=m.pendingLanes;if(S===0)var A=0;else{var F=m.suspendedLanes,q=m.pingedLanes;A=(1<<31-Et(42|i)+1)-1,A&=S&~(F&~q),A=A&201326677?A&201326677|1:A?A|2:0}A!==0&&(p=!0,xC(m,A))}else A=St,A=fa(m,m===Mt?A:0),!(A&3)||Xe(m,A)||(p=!0,xC(m,A));m=m.next}while(p);kh=!1}}function x6(){ed=xh=!1;var i=0;ri!==0&&(I6()&&(i=ri),ri=0);for(var c=ye(),p=null,m=Ju;m!==null;){var S=m.next,A=wC(m,c);A===0?(m.next=null,p===null?Ju=S:p.next=S,S===null&&(os=p)):(p=m,(i!==0||A&3)&&(ed=!0)),m=S}$l(i)}function wC(i,c){for(var p=i.suspendedLanes,m=i.pingedLanes,S=i.expirationTimes,A=i.pendingLanes&-62914561;0"u"?null:document;function zC(i,c,p){var m=ss;if(m&&typeof c=="string"&&c){var S=cr(c);S='link[rel="'+i+'"][href="'+S+'"]',typeof p=="string"&&(S+='[crossorigin="'+p+'"]'),FC.has(S)||(FC.add(S),i={rel:i,crossOrigin:p,href:c},m.querySelector(S)===null&&(c=m.createElement("link"),bn(c,"link",i),an(c),m.head.appendChild(c)))}}function j6(i){Oa.D(i),zC("dns-prefetch",i,null)}function U6(i,c){Oa.C(i,c),zC("preconnect",i,c)}function G6(i,c,p){Oa.L(i,c,p);var m=ss;if(m&&i&&c){var S='link[rel="preload"][as="'+cr(c)+'"]';c==="image"&&p&&p.imageSrcSet?(S+='[imagesrcset="'+cr(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(S+='[imagesizes="'+cr(p.imageSizes)+'"]')):S+='[href="'+cr(i)+'"]';var A=S;switch(c){case"style":A=ls(i);break;case"script":A=cs(i)}vr.has(A)||(i=I({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:i,as:c},p),vr.set(A,i),m.querySelector(S)!==null||c==="style"&&m.querySelector(Wl(A))||c==="script"&&m.querySelector(Yl(A))||(c=m.createElement("link"),bn(c,"link",i),an(c),m.head.appendChild(c)))}}function H6(i,c){Oa.m(i,c);var p=ss;if(p&&i){var m=c&&typeof c.as=="string"?c.as:"script",S='link[rel="modulepreload"][as="'+cr(m)+'"][href="'+cr(i)+'"]',A=S;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=cs(i)}if(!vr.has(A)&&(i=I({rel:"modulepreload",href:i},c),vr.set(A,i),p.querySelector(S)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(Yl(A)))return}m=p.createElement("link"),bn(m,"link",i),an(m),p.head.appendChild(m)}}}function $6(i,c,p){Oa.S(i,c,p);var m=ss;if(m&&i){var S=Oi(m).hoistableStyles,A=ls(i);c=c||"default";var F=S.get(A);if(!F){var q={loading:0,preload:null};if(F=m.querySelector(Wl(A)))q.loading=5;else{i=I({rel:"stylesheet",href:i,"data-precedence":c},p),(p=vr.get(A))&&zh(i,p);var X=F=m.createElement("link");an(X),bn(X,"link",i),X._p=new Promise(function(re,ve){X.onload=re,X.onerror=ve}),X.addEventListener("load",function(){q.loading|=1}),X.addEventListener("error",function(){q.loading|=2}),q.loading|=4,id(F,c,m)}F={type:"stylesheet",instance:F,count:1,state:q},S.set(A,F)}}}function q6(i,c){Oa.X(i,c);var p=ss;if(p&&i){var m=Oi(p).hoistableScripts,S=cs(i),A=m.get(S);A||(A=p.querySelector(Yl(S)),A||(i=I({src:i,async:!0},c),(c=vr.get(S))&&Bh(i,c),A=p.createElement("script"),an(A),bn(A,"link",i),p.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(S,A))}}function V6(i,c){Oa.M(i,c);var p=ss;if(p&&i){var m=Oi(p).hoistableScripts,S=cs(i),A=m.get(S);A||(A=p.querySelector(Yl(S)),A||(i=I({src:i,async:!0,type:"module"},c),(c=vr.get(S))&&Bh(i,c),A=p.createElement("script"),an(A),bn(A,"link",i),p.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(S,A))}}function BC(i,c,p,m){var S=(S=xe.current)?od(S):null;if(!S)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=ls(p.href),p=Oi(S).hoistableStyles,m=p.get(c),m||(m={type:"style",instance:null,count:0,state:null},p.set(c,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){i=ls(p.href);var A=Oi(S).hoistableStyles,F=A.get(i);if(F||(S=S.ownerDocument||S,F={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(i,F),(A=S.querySelector(Wl(i)))&&!A._p&&(F.instance=A,F.state.loading=5),vr.has(i)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},vr.set(i,p),A||W6(S,i,p,F.state))),c&&m===null)throw Error(r(528,""));return F}if(c&&m!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=cs(p),p=Oi(S).hoistableScripts,m=p.get(c),m||(m={type:"script",instance:null,count:0,state:null},p.set(c,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function ls(i){return'href="'+cr(i)+'"'}function Wl(i){return'link[rel="stylesheet"]['+i+"]"}function jC(i){return I({},i,{"data-precedence":i.precedence,precedence:null})}function W6(i,c,p,m){i.querySelector('link[rel="preload"][as="style"]['+c+"]")?m.loading=1:(c=i.createElement("link"),m.preload=c,c.addEventListener("load",function(){return m.loading|=1}),c.addEventListener("error",function(){return m.loading|=2}),bn(c,"link",p),an(c),i.head.appendChild(c))}function cs(i){return'[src="'+cr(i)+'"]'}function Yl(i){return"script[async]"+i}function UC(i,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var m=i.querySelector('style[data-href~="'+cr(p.href)+'"]');if(m)return c.instance=m,an(m),m;var S=I({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),an(m),bn(m,"style",S),id(m,p.precedence,i),c.instance=m;case"stylesheet":S=ls(p.href);var A=i.querySelector(Wl(S));if(A)return c.state.loading|=4,c.instance=A,an(A),A;m=jC(p),(S=vr.get(S))&&zh(m,S),A=(i.ownerDocument||i).createElement("link"),an(A);var F=A;return F._p=new Promise(function(q,X){F.onload=q,F.onerror=X}),bn(A,"link",m),c.state.loading|=4,id(A,p.precedence,i),c.instance=A;case"script":return A=cs(p.src),(S=i.querySelector(Yl(A)))?(c.instance=S,an(S),S):(m=p,(S=vr.get(A))&&(m=I({},p),Bh(m,S)),i=i.ownerDocument||i,S=i.createElement("script"),an(S),bn(S,"link",m),i.head.appendChild(S),c.instance=S);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&!(c.state.loading&4)&&(m=c.instance,c.state.loading|=4,id(m,p.precedence,i));return c.instance}function id(i,c,p){for(var m=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=m.length?m[m.length-1]:null,A=S,F=0;F title"):null)}function Y6(i,c,p){if(p===1||c.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return i=c.disabled,typeof c.precedence=="string"&&i==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function $C(i){return!(i.type==="stylesheet"&&!(i.state.loading&3))}var Kl=null;function K6(){}function X6(i,c,p){if(Kl===null)throw Error(r(475));var m=Kl;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&!(c.state.loading&4)){if(c.instance===null){var S=ls(p.href),A=i.querySelector(Wl(S));if(A){i=A._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=ld.bind(m),i.then(m,m)),c.state.loading|=4,c.instance=A,an(A);return}A=i.ownerDocument||i,p=jC(p),(S=vr.get(S))&&zh(p,S),A=A.createElement("link"),an(A);var F=A;F._p=new Promise(function(q,X){F.onload=q,F.onerror=X}),bn(A,"link",p),c.instance=A}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(c,i),(i=c.state.preload)&&!(c.state.loading&3)&&(m.count++,c=ld.bind(m),i.addEventListener("load",c),i.addEventListener("error",c))}}function Z6(){if(Kl===null)throw Error(r(475));var i=Kl;return i.stylesheets&&i.count===0&&jh(i,i.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Kh.exports=yq(),Kh.exports}var Sq=vq(),rc={},p_;function wq(){if(p_)return rc;p_=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.parse=s,rc.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function s(h,b){const y=new o,v=h.length;if(v<2)return y;const x=(b==null?void 0:b.decode)||f;let T=0;do{const k=h.indexOf("=",T);if(k===-1)break;const R=h.indexOf(";",T),O=R===-1?v:R;if(k>O){T=h.lastIndexOf(";",k-1)+1;continue}const N=l(h,T,k),C=u(h,k,N),_=h.slice(N,C);if(y[_]===void 0){let L=l(h,k+1,O),D=u(h,O,L);const I=x(h.slice(L,D));y[_]=I}T=O+1}while(Ty;){const v=h.charCodeAt(--b);if(v!==32&&v!==9)return b+1}return y}function d(h,b,y){const v=(y==null?void 0:y.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const x=v(b);if(!t.test(x))throw new TypeError(`argument val is invalid: ${b}`);let T=h+"="+x;if(!y)return T;if(y.maxAge!==void 0){if(!Number.isInteger(y.maxAge))throw new TypeError(`option maxAge is invalid: ${y.maxAge}`);T+="; Max-Age="+y.maxAge}if(y.domain){if(!n.test(y.domain))throw new TypeError(`option domain is invalid: ${y.domain}`);T+="; Domain="+y.domain}if(y.path){if(!r.test(y.path))throw new TypeError(`option path is invalid: ${y.path}`);T+="; Path="+y.path}if(y.expires){if(!g(y.expires)||!Number.isFinite(y.expires.valueOf()))throw new TypeError(`option expires is invalid: ${y.expires}`);T+="; Expires="+y.expires.toUTCString()}if(y.httpOnly&&(T+="; HttpOnly"),y.secure&&(T+="; Secure"),y.partitioned&&(T+="; Partitioned"),y.priority)switch(typeof y.priority=="string"?y.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${y.priority}`)}if(y.sameSite)switch(typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${y.sameSite}`)}return T}function f(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function g(h){return a.call(h)==="[object Date]"}return rc}wq();/** * react-router v7.3.0 * * Copyright (c) Remix Software Inc. @@ -57,17 +57,17 @@ Error generating stack: `+p.message+` * @license MIT */var f_="popstate";function Eq(e={}){function t(a,o){let{pathname:s="/",search:l="",hash:u=""}=ki(a.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),c0("",{pathname:s,search:l,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(a,o){let s=a.document.querySelector("base"),l="";if(s&&s.getAttribute("href")){let u=a.location.href,d=u.indexOf("#");l=d===-1?u:u.slice(0,d)}return l+"#"+(typeof o=="string"?o:kc(o))}function r(a,o){jr(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return kq(t,n,r,e)}function Gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xq(){return Math.random().toString(36).substring(2,10)}function g_(e,t){return{usr:e.state,key:e.key,idx:t}}function c0(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ki(t):t,state:n,key:t&&t.key||r||xq()}}function kc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ki(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function kq(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,s=a.history,l="POP",u=null,d=f();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function f(){return(s.state||{idx:null}).idx}function g(){l="POP";let x=f(),T=x==null?null:x-d;d=x,u&&u({action:l,location:v.location,delta:T})}function h(x,T){l="PUSH";let k=c0(v.location,x,T);n&&n(k,x),d=f()+1;let R=g_(k,d),O=v.createHref(k);try{s.pushState(R,"",O)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(O)}o&&u&&u({action:l,location:v.location,delta:1})}function b(x,T){l="REPLACE";let k=c0(v.location,x,T);n&&n(k,x),d=f();let R=g_(k,d),O=v.createHref(k);s.replaceState(R,"",O),o&&u&&u({action:l,location:v.location,delta:0})}function y(x){let T=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof x=="string"?x:kc(x);return k=k.replace(/ $/,"%20"),Gt(T,`No window.location.(origin|href) available to create URL for href: ${k}`),new URL(k,T)}let v={get action(){return l},get location(){return e(a,s)},listen(x){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(f_,g),u=x,()=>{a.removeEventListener(f_,g),u=null}},createHref(x){return t(a,x)},createURL:y,encodeLocation(x){let T=y(x);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:h,replace:b,go(x){return s.go(x)}};return v}function Xz(e,t,n="/"){return Tq(e,t,n,!1)}function Tq(e,t,n,r){let a=typeof t=="string"?ki(t):t,o=Ba(a.pathname||"/",n);if(o==null)return null;let s=Zz(e);Aq(s);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(Gt(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=Fa([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(Gt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Zz(o.children,t,f,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:Dq(d,o.index),routesMeta:f})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,s);else for(let u of Qz(o.path))a(o,s,u)}),t}function Qz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let s=Qz(r.join("/")),l=[];return l.push(...s.map(u=>u===""?o:[o,u].join("/"))),a&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function Aq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Rq=/^:[\w-]+$/,Cq=3,_q=2,Nq=1,Oq=10,Iq=-2,h_=e=>e==="*";function Dq(e,t){let n=e.split("/"),r=n.length;return n.some(h_)&&(r+=Iq),t&&(r+=_q),n.filter(a=>!h_(a)).reduce((a,o)=>a+(Rq.test(o)?Cq:o===""?Nq:Oq),r)}function Lq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function Mq(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",s=[];for(let l=0;l{if(f==="*"){let y=l[h]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const b=l[h];return g&&!b?d[f]=void 0:d[f]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:s,pattern:e}}function Pq(e,t=!1,n=!0){jr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Fq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ba(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function zq(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ki(e):e;return{pathname:n?n.startsWith("/")?n:Bq(n,t):t,search:Gq(r),hash:Hq(a)}}function Bq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Jh(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function jq(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jz(e){let t=jq(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function eB(e,t,n,r=!1){let a;typeof e=="string"?a=ki(e):(a={...e},Gt(!a.pathname||!a.pathname.includes("?"),Jh("?","pathname","search",a)),Gt(!a.pathname||!a.pathname.includes("#"),Jh("#","pathname","hash",a)),Gt(!a.search||!a.search.includes("#"),Jh("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,l;if(s==null)l=n;else{let g=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),g-=1;a.pathname=h.join("/")}l=g>=0?t[g]:"/"}let u=zq(a,l),d=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||f)&&(u.pathname+="/"),u}var Fa=e=>e.join("/").replace(/\/\/+/g,"/"),Uq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $q(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var tB=["POST","PUT","PATCH","DELETE"];new Set(tB);var qq=["GET",...tB];new Set(qq);var Us=E.createContext(null);Us.displayName="DataRouter";var qp=E.createContext(null);qp.displayName="DataRouterState";var nB=E.createContext({isTransitioning:!1});nB.displayName="ViewTransition";var Vq=E.createContext(new Map);Vq.displayName="Fetchers";var Wq=E.createContext(null);Wq.displayName="Await";var sa=E.createContext(null);sa.displayName="Navigation";var Gc=E.createContext(null);Gc.displayName="Location";var Ha=E.createContext({outlet:null,matches:[],isDataRoute:!1});Ha.displayName="Route";var _k=E.createContext(null);_k.displayName="RouteError";function Yq(e,{relative:t}={}){Gt(Hc(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=E.useContext(sa),{hash:a,pathname:o,search:s}=$c(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:Fa([n,o])),r.createHref({pathname:l,search:s,hash:a})}function Hc(){return E.useContext(Gc)!=null}function Ti(){return Gt(Hc(),"useLocation() may be used only in the context of a component."),E.useContext(Gc).location}var rB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function aB(e){E.useContext(sa).static||E.useLayoutEffect(e)}function Nk(){let{isDataRoute:e}=E.useContext(Ha);return e?s9():Kq()}function Kq(){Gt(Hc(),"useNavigate() may be used only in the context of a component.");let e=E.useContext(Us),{basename:t,navigator:n}=E.useContext(sa),{matches:r}=E.useContext(Ha),{pathname:a}=Ti(),o=JSON.stringify(Jz(r)),s=E.useRef(!1);return aB(()=>{s.current=!0}),E.useCallback((u,d={})=>{if(jr(s.current,rB),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=eB(u,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Fa([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,o,a,e])}E.createContext(null);function $c(e,{relative:t}={}){let{matches:n}=E.useContext(Ha),{pathname:r}=Ti(),a=JSON.stringify(Jz(n));return E.useMemo(()=>eB(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Xq(e,t){return oB(e,t)}function oB(e,t,n,r){var k;Gt(Hc(),"useRoutes() may be used only in the context of a component.");let{navigator:a,static:o}=E.useContext(sa),{matches:s}=E.useContext(Ha),l=s[s.length-1],u=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",g=l&&l.route;{let R=g&&g.path||"";iB(d,!g||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${d}" (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 h=Ti(),b;if(t){let R=typeof t=="string"?ki(t):t;Gt(f==="/"||((k=R.pathname)==null?void 0:k.startsWith(f)),`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 "${f}" but pathname "${R.pathname}" was given in the \`location\` prop.`),b=R}else b=h;let y=b.pathname||"/",v=y;if(f!=="/"){let R=f.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(R.length).join("/")}let x=!o&&n&&n.matches&&n.matches.length>0?n.matches:Xz(e,{pathname:v});jr(g||x!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),jr(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 T=t9(x&&x.map(R=>Object.assign({},R,{params:Object.assign({},u,R.params),pathname:Fa([f,a.encodeLocation?a.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?f:Fa([f,a.encodeLocation?a.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),s,n,r);return t&&T?E.createElement(Gc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},T):T}function Zq(){let e=i9(),t=$q(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:o},"ErrorBoundary")," or"," ",E.createElement("code",{style:o},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:a},n):null,s)}var Qq=E.createElement(Zq,null),Jq=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?E.createElement(Ha.Provider,{value:this.props.routeContext},E.createElement(_k.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function e9({routeContext:e,match:t,children:n}){let r=E.useContext(Us);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Ha.Provider,{value:e},n)}function t9(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n==null?void 0:n.errors;if(o!=null){let u=a.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);Gt(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,u+1))}let s=!1,l=-1;if(n)for(let u=0;u=0?a=a.slice(0,l+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let g,h=!1,b=null,y=null;n&&(g=o&&d.route.id?o[d.route.id]:void 0,b=d.route.errorElement||Qq,s&&(l<0&&f===0?(iB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,y=null):l===f&&(h=!0,y=d.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,f+1)),x=()=>{let T;return g?T=b:h?T=y:d.route.Component?T=E.createElement(d.route.Component,null):d.route.element?T=d.route.element:T=u,E.createElement(e9,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:T})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?E.createElement(Jq,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:x(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}function Ok(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n9(e){let t=E.useContext(Us);return Gt(t,Ok(e)),t}function r9(e){let t=E.useContext(qp);return Gt(t,Ok(e)),t}function a9(e){let t=E.useContext(Ha);return Gt(t,Ok(e)),t}function Ik(e){let t=a9(e),n=t.matches[t.matches.length-1];return Gt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function o9(){return Ik("useRouteId")}function i9(){var r;let e=E.useContext(_k),t=r9("useRouteError"),n=Ik("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function s9(){let{router:e}=n9("useNavigate"),t=Ik("useNavigate"),n=E.useRef(!1);return aB(()=>{n.current=!0}),E.useCallback(async(a,o={})=>{jr(n.current,rB),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var m_={};function iB(e,t,n){!t&&!m_[e]&&(m_[e]=!0,jr(!1,n))}E.memo(l9);function l9({routes:e,future:t,state:n}){return oB(e,void 0,n,t)}function u0(e){Gt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function c9({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Gt(!Hc(),"You cannot render a inside another . You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=E.useMemo(()=>({basename:s,navigator:a,static:o,future:{}}),[s,a,o]);typeof n=="string"&&(n=ki(n));let{pathname:u="/",search:d="",hash:f="",state:g=null,key:h="default"}=n,b=E.useMemo(()=>{let y=Ba(u,s);return y==null?null:{location:{pathname:y,search:d,hash:f,state:g,key:h},navigationType:r}},[s,u,d,f,g,h,r]);return jr(b!=null,` is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the won't render anything.`),b==null?null:E.createElement(sa.Provider,{value:l},E.createElement(Gc.Provider,{children:t,value:b}))}function u9({children:e,location:t}){return Xq(d0(e),t)}function d0(e,t=[]){let n=[];return E.Children.forEach(e,(r,a)=>{if(!E.isValidElement(r))return;let o=[...t,a];if(r.type===E.Fragment){n.push.apply(n,d0(r.props.children,o));return}Gt(r.type===u0,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Gt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=d0(r.props.children,o)),n.push(s)}),n}var Yd="get",Kd="application/x-www-form-urlencoded";function Vp(e){return e!=null&&typeof e.tagName=="string"}function d9(e){return Vp(e)&&e.tagName.toLowerCase()==="button"}function p9(e){return Vp(e)&&e.tagName.toLowerCase()==="form"}function f9(e){return Vp(e)&&e.tagName.toLowerCase()==="input"}function g9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h9(e,t){return e.button===0&&(!t||t==="_self")&&!g9(e)}var bd=null;function m9(){if(bd===null)try{new FormData(document.createElement("form"),0),bd=!1}catch{bd=!0}return bd}var b9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function em(e){return e!=null&&!b9.has(e)?(jr(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Kd}"`),null):e}function y9(e,t){let n,r,a,o,s;if(p9(e)){let l=e.getAttribute("action");r=l?Ba(l,t):null,n=e.getAttribute("method")||Yd,a=em(e.getAttribute("enctype"))||Kd,o=new FormData(e)}else if(d9(e)||f9(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a