@edihasaj/recall 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-G44JMYVI.js → chunk-53GKSF42.js} +6 -6
- package/dist/{chunk-5FY3HYGU.js → chunk-65XK27KK.js} +127 -44
- package/dist/chunk-65XK27KK.js.map +1 -0
- package/dist/{chunk-NFCBG4OH.js → chunk-6QFOCUEJ.js} +10 -10
- package/dist/chunk-6QFOCUEJ.js.map +1 -0
- package/dist/{chunk-UUCSHXES.js → chunk-7Q5CBVUT.js} +20 -9
- package/dist/{chunk-UUCSHXES.js.map → chunk-7Q5CBVUT.js.map} +1 -1
- package/dist/{chunk-KD4OKHYF.js → chunk-JKWK73GY.js} +7 -2
- package/dist/chunk-JKWK73GY.js.map +1 -0
- package/dist/{chunk-B6KSSZUW.js → chunk-JO5LRCA2.js} +2 -6
- package/dist/{chunk-B6KSSZUW.js.map → chunk-JO5LRCA2.js.map} +1 -1
- package/dist/{chunk-JP5YAQPQ.js → chunk-JSTZKFZR.js} +3 -3
- package/dist/{chunk-T5FOKQH2.js → chunk-MMYLXICL.js} +2 -2
- package/dist/{chunk-TUC6GU35.js → chunk-UWERS646.js} +3 -3
- package/dist/{cleanup-PT3VB3CG.js → cleanup-RHNBHBNP.js} +4 -4
- package/dist/cli.js +24 -22
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +25 -11
- package/dist/daemon.js.map +1 -1
- package/dist/{dispatcher-2Q6LY57F.js → dispatcher-ON7LNX6X.js} +4 -4
- package/dist/{embeddings-CLBTYK7N.js → embeddings-HDNAGCOS.js} +2 -2
- package/dist/{ingest-ERAUAPMC.js → ingest-MHPMJPUA.js} +3 -3
- package/dist/mcp.js +7 -7
- package/dist/{memory-value-2NDAQNMS.js → memory-value-6JUQEYJZ.js} +4 -4
- package/dist/{quality-WFWVU4FQ.js → quality-HVTIOIXP.js} +5 -5
- package/dist/{retrieval-JOC63UXZ.js → retrieval-72EIHKRF.js} +4 -4
- package/dist/{tasks-ANFQXOYX.js → tasks-AJ62N26N.js} +4 -4
- package/dist/webui/assets/{index-DSV5JHmg.css → GraphPage-B5DZHykP.css} +1 -1
- package/dist/webui/assets/GraphPage-DJhwG-72.js +5165 -0
- package/dist/webui/assets/GraphPage-DJhwG-72.js.map +1 -0
- package/dist/webui/assets/index-CVWARq15.css +1 -0
- package/dist/webui/assets/index-Cpn2MjW0.js +186 -0
- package/dist/webui/assets/index-Cpn2MjW0.js.map +1 -0
- package/dist/webui/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-5FY3HYGU.js.map +0 -1
- package/dist/chunk-KD4OKHYF.js.map +0 -1
- package/dist/chunk-NFCBG4OH.js.map +0 -1
- package/dist/webui/assets/index-2DR_ysOm.js +0 -5348
- package/dist/webui/assets/index-2DR_ysOm.js.map +0 -1
- /package/dist/{chunk-G44JMYVI.js.map → chunk-53GKSF42.js.map} +0 -0
- /package/dist/{chunk-JP5YAQPQ.js.map → chunk-JSTZKFZR.js.map} +0 -0
- /package/dist/{chunk-T5FOKQH2.js.map → chunk-MMYLXICL.js.map} +0 -0
- /package/dist/{chunk-TUC6GU35.js.map → chunk-UWERS646.js.map} +0 -0
- /package/dist/{cleanup-PT3VB3CG.js.map → cleanup-RHNBHBNP.js.map} +0 -0
- /package/dist/{dispatcher-2Q6LY57F.js.map → dispatcher-ON7LNX6X.js.map} +0 -0
- /package/dist/{embeddings-CLBTYK7N.js.map → embeddings-HDNAGCOS.js.map} +0 -0
- /package/dist/{ingest-ERAUAPMC.js.map → ingest-MHPMJPUA.js.map} +0 -0
- /package/dist/{memory-value-2NDAQNMS.js.map → memory-value-6JUQEYJZ.js.map} +0 -0
- /package/dist/{quality-WFWVU4FQ.js.map → quality-HVTIOIXP.js.map} +0 -0
- /package/dist/{retrieval-JOC63UXZ.js.map → retrieval-72EIHKRF.js.map} +0 -0
- /package/dist/{tasks-ANFQXOYX.js.map → tasks-AJ62N26N.js.map} +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GraphPage-DJhwG-72.js","assets/GraphPage-B5DZHykP.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var eg=Object.defineProperty;var ly=n=>{throw TypeError(n)};var lg=(n,i,c)=>i in n?eg(n,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[i]=c;var La=(n,i,c)=>lg(n,typeof i!="symbol"?i+"":i,c),uf=(n,i,c)=>i.has(n)||ly("Cannot "+c);var S=(n,i,c)=>(uf(n,i,"read from private field"),c?c.call(n):i.get(n)),P=(n,i,c)=>i.has(n)?ly("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,c),Z=(n,i,c,r)=>(uf(n,i,"write to private field"),r?r.call(n,c):i.set(n,c),c),rt=(n,i,c)=>(uf(n,i,"access private method"),c);var Rs=(n,i,c,r)=>({set _(o){Z(n,i,o,c)},get _(){return S(n,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&r(y)}).observe(document,{childList:!0,subtree:!0});function c(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=c(o);fetch(o.href,d)}})();function Wy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var sf={exports:{}},Ku={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var ay;function ag(){if(ay)return Ku;ay=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,o,d){var y=null;if(d!==void 0&&(y=""+d),o.key!==void 0&&(y=""+o.key),"key"in o){d={};for(var p in o)p!=="key"&&(d[p]=o[p])}else d=o;return o=d.ref,{$$typeof:n,type:r,key:y,ref:o!==void 0?o:null,props:d}}return Ku.Fragment=i,Ku.jsx=c,Ku.jsxs=c,Ku}var ny;function ng(){return ny||(ny=1,sf.exports=ag()),sf.exports}var R=ng(),cf={exports:{}},ut={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var uy;function ug(){if(uy)return ut;uy=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),C=Symbol.iterator;function U(T){return T===null||typeof T!="object"?null:(T=C&&T[C]||T["@@iterator"],typeof T=="function"?T:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,w={};function Y(T,Q,V){this.props=T,this.context=Q,this.refs=w,this.updater=V||j}Y.prototype.isReactComponent={},Y.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,Q,"setState")},Y.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function I(){}I.prototype=Y.prototype;function K(T,Q,V){this.props=T,this.context=Q,this.refs=w,this.updater=V||j}var G=K.prototype=new I;G.constructor=K,H(G,Y.prototype),G.isPureReactComponent=!0;var J=Array.isArray;function at(){}var W={H:null,A:null,T:null,S:null},et=Object.prototype.hasOwnProperty;function ft(T,Q,V){var F=V.ref;return{$$typeof:n,type:T,key:Q,ref:F!==void 0?F:null,props:V}}function Dt(T,Q){return ft(T.type,Q,T.props)}function wt(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function Yt(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(V){return Q[V]})}var Ee=/\/+/g;function te(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?Yt(""+T.key):Q.toString(36)}function jt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(at,at):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function q(T,Q,V,F,it){var ot=typeof T;(ot==="undefined"||ot==="boolean")&&(T=null);var Et=!1;if(T===null)Et=!0;else switch(ot){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(T.$$typeof){case n:case i:Et=!0;break;case _:return Et=T._init,q(Et(T._payload),Q,V,F,it)}}if(Et)return it=it(T),Et=F===""?"."+te(T,0):F,J(it)?(V="",Et!=null&&(V=Et.replace(Ee,"$&/")+"/"),q(it,Q,V,"",function(Pn){return Pn})):it!=null&&(wt(it)&&(it=Dt(it,V+(it.key==null||T&&T.key===it.key?"":(""+it.key).replace(Ee,"$&/")+"/")+Et)),Q.push(it)),1;Et=0;var ce=F===""?".":F+":";if(J(T))for(var Gt=0;Gt<T.length;Gt++)F=T[Gt],ot=ce+te(F,Gt),Et+=q(F,Q,V,ot,it);else if(Gt=U(T),typeof Gt=="function")for(T=Gt.call(T),Gt=0;!(F=T.next()).done;)F=F.value,ot=ce+te(F,Gt++),Et+=q(F,Q,V,ot,it);else if(ot==="object"){if(typeof T.then=="function")return q(jt(T),Q,V,F,it);throw Q=String(T),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Et}function X(T,Q,V){if(T==null)return T;var F=[],it=0;return q(T,F,"","",function(ot){return Q.call(V,ot,it++)}),F}function nt(T){if(T._status===-1){var Q=T._result;Q=Q(),Q.then(function(V){(T._status===0||T._status===-1)&&(T._status=1,T._result=V)},function(V){(T._status===0||T._status===-1)&&(T._status=2,T._result=V)}),T._status===-1&&(T._status=0,T._result=Q)}if(T._status===1)return T._result.default;throw T._result}var Ot=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Mt={map:X,forEach:function(T,Q,V){X(T,function(){Q.apply(this,arguments)},V)},count:function(T){var Q=0;return X(T,function(){Q++}),Q},toArray:function(T){return X(T,function(Q){return Q})||[]},only:function(T){if(!wt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ut.Activity=E,ut.Children=Mt,ut.Component=Y,ut.Fragment=c,ut.Profiler=o,ut.PureComponent=K,ut.StrictMode=r,ut.Suspense=v,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,ut.__COMPILER_RUNTIME={__proto__:null,c:function(T){return W.H.useMemoCache(T)}},ut.cache=function(T){return function(){return T.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(T,Q,V){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var F=H({},T.props),it=T.key;if(Q!=null)for(ot in Q.key!==void 0&&(it=""+Q.key),Q)!et.call(Q,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&Q.ref===void 0||(F[ot]=Q[ot]);var ot=arguments.length-2;if(ot===1)F.children=V;else if(1<ot){for(var Et=Array(ot),ce=0;ce<ot;ce++)Et[ce]=arguments[ce+2];F.children=Et}return ft(T.type,it,F)},ut.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},ut.createElement=function(T,Q,V){var F,it={},ot=null;if(Q!=null)for(F in Q.key!==void 0&&(ot=""+Q.key),Q)et.call(Q,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(it[F]=Q[F]);var Et=arguments.length-2;if(Et===1)it.children=V;else if(1<Et){for(var ce=Array(Et),Gt=0;Gt<Et;Gt++)ce[Gt]=arguments[Gt+2];it.children=ce}if(T&&T.defaultProps)for(F in Et=T.defaultProps,Et)it[F]===void 0&&(it[F]=Et[F]);return ft(T,ot,it)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(T){return{$$typeof:p,render:T}},ut.isValidElement=wt,ut.lazy=function(T){return{$$typeof:_,_payload:{_status:-1,_result:T},_init:nt}},ut.memo=function(T,Q){return{$$typeof:m,type:T,compare:Q===void 0?null:Q}},ut.startTransition=function(T){var Q=W.T,V={};W.T=V;try{var F=T(),it=W.S;it!==null&&it(V,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(at,Ot)}catch(ot){Ot(ot)}finally{Q!==null&&V.types!==null&&(Q.types=V.types),W.T=Q}},ut.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},ut.use=function(T){return W.H.use(T)},ut.useActionState=function(T,Q,V){return W.H.useActionState(T,Q,V)},ut.useCallback=function(T,Q){return W.H.useCallback(T,Q)},ut.useContext=function(T){return W.H.useContext(T)},ut.useDebugValue=function(){},ut.useDeferredValue=function(T,Q){return W.H.useDeferredValue(T,Q)},ut.useEffect=function(T,Q){return W.H.useEffect(T,Q)},ut.useEffectEvent=function(T){return W.H.useEffectEvent(T)},ut.useId=function(){return W.H.useId()},ut.useImperativeHandle=function(T,Q,V){return W.H.useImperativeHandle(T,Q,V)},ut.useInsertionEffect=function(T,Q){return W.H.useInsertionEffect(T,Q)},ut.useLayoutEffect=function(T,Q){return W.H.useLayoutEffect(T,Q)},ut.useMemo=function(T,Q){return W.H.useMemo(T,Q)},ut.useOptimistic=function(T,Q){return W.H.useOptimistic(T,Q)},ut.useReducer=function(T,Q,V){return W.H.useReducer(T,Q,V)},ut.useRef=function(T){return W.H.useRef(T)},ut.useState=function(T){return W.H.useState(T)},ut.useSyncExternalStore=function(T,Q,V){return W.H.useSyncExternalStore(T,Q,V)},ut.useTransition=function(){return W.H.useTransition()},ut.version="19.2.8",ut}var iy;function Qf(){return iy||(iy=1,cf.exports=ug()),cf.exports}var O=Qf();const ig=Wy(O);var rf={exports:{}},Vu={},ff={exports:{}},of={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var sy;function sg(){return sy||(sy=1,(function(n){function i(q,X){var nt=q.length;q.push(X);t:for(;0<nt;){var Ot=nt-1>>>1,Mt=q[Ot];if(0<o(Mt,X))q[Ot]=X,q[nt]=Mt,nt=Ot;else break t}}function c(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var X=q[0],nt=q.pop();if(nt!==X){q[0]=nt;t:for(var Ot=0,Mt=q.length,T=Mt>>>1;Ot<T;){var Q=2*(Ot+1)-1,V=q[Q],F=Q+1,it=q[F];if(0>o(V,nt))F<Mt&&0>o(it,V)?(q[Ot]=it,q[F]=nt,Ot=F):(q[Ot]=V,q[Q]=nt,Ot=Q);else if(F<Mt&&0>o(it,nt))q[Ot]=it,q[F]=nt,Ot=F;else break t}}return X}function o(q,X){var nt=q.sortIndex-X.sortIndex;return nt!==0?nt:q.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var y=Date,p=y.now();n.unstable_now=function(){return y.now()-p}}var v=[],m=[],_=1,E=null,C=3,U=!1,j=!1,H=!1,w=!1,Y=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function G(q){for(var X=c(m);X!==null;){if(X.callback===null)r(m);else if(X.startTime<=q)r(m),X.sortIndex=X.expirationTime,i(v,X);else break;X=c(m)}}function J(q){if(H=!1,G(q),!j)if(c(v)!==null)j=!0,at||(at=!0,Yt());else{var X=c(m);X!==null&&jt(J,X.startTime-q)}}var at=!1,W=-1,et=5,ft=-1;function Dt(){return w?!0:!(n.unstable_now()-ft<et)}function wt(){if(w=!1,at){var q=n.unstable_now();ft=q;var X=!0;try{t:{j=!1,H&&(H=!1,I(W),W=-1),U=!0;var nt=C;try{e:{for(G(q),E=c(v);E!==null&&!(E.expirationTime>q&&Dt());){var Ot=E.callback;if(typeof Ot=="function"){E.callback=null,C=E.priorityLevel;var Mt=Ot(E.expirationTime<=q);if(q=n.unstable_now(),typeof Mt=="function"){E.callback=Mt,G(q),X=!0;break e}E===c(v)&&r(v),G(q)}else r(v);E=c(v)}if(E!==null)X=!0;else{var T=c(m);T!==null&&jt(J,T.startTime-q),X=!1}}break t}finally{E=null,C=nt,U=!1}X=void 0}}finally{X?Yt():at=!1}}}var Yt;if(typeof K=="function")Yt=function(){K(wt)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,te=Ee.port2;Ee.port1.onmessage=wt,Yt=function(){te.postMessage(null)}}else Yt=function(){Y(wt,0)};function jt(q,X){W=Y(function(){q(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(q){q.callback=null},n.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):et=0<q?Math.floor(1e3/q):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(q){switch(C){case 1:case 2:case 3:var X=3;break;default:X=C}var nt=C;C=X;try{return q()}finally{C=nt}},n.unstable_requestPaint=function(){w=!0},n.unstable_runWithPriority=function(q,X){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var nt=C;C=q;try{return X()}finally{C=nt}},n.unstable_scheduleCallback=function(q,X,nt){var Ot=n.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?Ot+nt:Ot):nt=Ot,q){case 1:var Mt=-1;break;case 2:Mt=250;break;case 5:Mt=1073741823;break;case 4:Mt=1e4;break;default:Mt=5e3}return Mt=nt+Mt,q={id:_++,callback:X,priorityLevel:q,startTime:nt,expirationTime:Mt,sortIndex:-1},nt>Ot?(q.sortIndex=nt,i(m,q),c(v)===null&&q===c(m)&&(H?(I(W),W=-1):H=!0,jt(J,nt-Ot))):(q.sortIndex=Mt,i(v,q),j||U||(j=!0,at||(at=!0,Yt()))),q},n.unstable_shouldYield=Dt,n.unstable_wrapCallback=function(q){var X=C;return function(){var nt=C;C=X;try{return q.apply(this,arguments)}finally{C=nt}}}})(of)),of}var cy;function cg(){return cy||(cy=1,ff.exports=sg()),ff.exports}var hf={exports:{}},ie={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var ry;function rg(){if(ry)return ie;ry=1;var n=Qf();function i(v){var m="https://react.dev/errors/"+v;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)m+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+v+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(v,m,_){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:E==null?null:""+E,children:v,containerInfo:m,implementation:_}}var y=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,m){if(v==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ie.createPortal=function(v,m){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(v,m,null,_)},ie.flushSync=function(v){var m=y.T,_=r.p;try{if(y.T=null,r.p=2,v)return v()}finally{y.T=m,r.p=_,r.d.f()}},ie.preconnect=function(v,m){typeof v=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(v,m))},ie.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},ie.preinit=function(v,m){if(typeof v=="string"&&m&&typeof m.as=="string"){var _=m.as,E=p(_,m.crossOrigin),C=typeof m.integrity=="string"?m.integrity:void 0,U=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;_==="style"?r.d.S(v,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:E,integrity:C,fetchPriority:U}):_==="script"&&r.d.X(v,{crossOrigin:E,integrity:C,fetchPriority:U,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ie.preinitModule=function(v,m){if(typeof v=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var _=p(m.as,m.crossOrigin);r.d.M(v,{crossOrigin:_,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(v)},ie.preload=function(v,m){if(typeof v=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var _=m.as,E=p(_,m.crossOrigin);r.d.L(v,_,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ie.preloadModule=function(v,m){if(typeof v=="string")if(m){var _=p(m.as,m.crossOrigin);r.d.m(v,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:_,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(v)},ie.requestFormReset=function(v){r.d.r(v)},ie.unstable_batchedUpdates=function(v,m){return v(m)},ie.useFormState=function(v,m,_){return y.H.useFormState(v,m,_)},ie.useFormStatus=function(){return y.H.useHostTransitionStatus()},ie.version="19.2.8",ie}var fy;function fg(){if(fy)return hf.exports;fy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),hf.exports=rg(),hf.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var oy;function og(){if(oy)return Vu;oy=1;var n=cg(),i=Qf(),c=fg();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(d(t)!==t)throw Error(r(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var u=l.return;if(u===null)break;var s=u.alternate;if(s===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===l)return v(u),t;if(s===a)return v(u),e;s=s.sibling}throw Error(r(188))}if(l.return!==a.return)l=u,a=s;else{for(var f=!1,h=u.child;h;){if(h===l){f=!0,l=u,a=s;break}if(h===a){f=!0,a=u,l=s;break}h=h.sibling}if(!f){for(h=s.child;h;){if(h===l){f=!0,l=s,a=u;break}if(h===a){f=!0,a=s,l=u;break}h=h.sibling}if(!f)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function _(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=_(t),e!==null)return e;t=t.sibling}return null}var E=Object.assign,C=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),K=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),at=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),ft=Symbol.for("react.activity"),Dt=Symbol.for("react.memo_cache_sentinel"),wt=Symbol.iterator;function Yt(t){return t===null||typeof t!="object"?null:(t=wt&&t[wt]||t["@@iterator"],typeof t=="function"?t:null)}var Ee=Symbol.for("react.client.reference");function te(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ee?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case Y:return"Profiler";case w:return"StrictMode";case J:return"Suspense";case at:return"SuspenseList";case ft:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case K:return t.displayName||"Context";case I:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case W:return e=t.displayName||null,e!==null?e:te(t.type)||"Memo";case et:e=t._payload,t=t._init;try{return te(t(e))}catch{}}return null}var jt=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},Ot=[],Mt=-1;function T(t){return{current:t}}function Q(t){0>Mt||(t.current=Ot[Mt],Ot[Mt]=null,Mt--)}function V(t,e){Mt++,Ot[Mt]=t.current,t.current=e}var F=T(null),it=T(null),ot=T(null),Et=T(null);function ce(t,e){switch(V(ot,e),V(it,t),V(F,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Om(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Om(e),t=_m(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(F),V(F,t)}function Gt(){Q(F),Q(it),Q(ot)}function Pn(t){t.memoizedState!==null&&V(Et,t);var e=F.current,l=_m(e,t.type);e!==l&&(V(it,t),V(F,l))}function ui(t){it.current===t&&(Q(F),Q(it)),Et.current===t&&(Q(Et),Yu._currentValue=nt)}var Ys,to;function ga(t){if(Ys===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Ys=e&&e[1]||"",to=-1<l.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+Ys+t+to}var Gs=!1;function Xs(t,e){if(!t||Gs)return"";Gs=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(D){var M=D}Reflect.construct(t,[],B)}else{try{B.call()}catch(D){M=D}t.call(B.prototype)}}else{try{throw Error()}catch(D){M=D}(B=t())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(D){if(D&&M&&typeof D.stack=="string")return[D.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),f=s[0],h=s[1];if(f&&h){var g=f.split(`
|
|
45
|
+
`),z=h.split(`
|
|
46
|
+
`);for(u=a=0;a<g.length&&!g[a].includes("DetermineComponentFrameRoot");)a++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(a===g.length||u===z.length)for(a=g.length-1,u=z.length-1;1<=a&&0<=u&&g[a]!==z[u];)u--;for(;1<=a&&0<=u;a--,u--)if(g[a]!==z[u]){if(a!==1||u!==1)do if(a--,u--,0>u||g[a]!==z[u]){var N=`
|
|
47
|
+
`+g[a].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=a&&0<=u);break}}}finally{Gs=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ga(l):""}function jv(t,e){switch(t.tag){case 26:case 27:case 5:return ga(t.type);case 16:return ga("Lazy");case 13:return t.child!==e&&e!==null?ga("Suspense Fallback"):ga("Suspense");case 19:return ga("SuspenseList");case 0:case 15:return Xs(t.type,!1);case 11:return Xs(t.type.render,!1);case 1:return Xs(t.type,!0);case 31:return ga("Activity");default:return""}}function eo(t){try{var e="",l=null;do e+=jv(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
|
|
48
|
+
Error generating stack: `+a.message+`
|
|
49
|
+
`+a.stack}}var Zs=Object.prototype.hasOwnProperty,Ks=n.unstable_scheduleCallback,Vs=n.unstable_cancelCallback,Nv=n.unstable_shouldYield,Uv=n.unstable_requestPaint,Te=n.unstable_now,Hv=n.unstable_getCurrentPriorityLevel,lo=n.unstable_ImmediatePriority,ao=n.unstable_UserBlockingPriority,ii=n.unstable_NormalPriority,qv=n.unstable_LowPriority,no=n.unstable_IdlePriority,Lv=n.log,Bv=n.unstable_setDisableYieldValue,In=null,Re=null;function Ul(t){if(typeof Lv=="function"&&Bv(t),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(In,t)}catch{}}var xe=Math.clz32?Math.clz32:Yv,Qv=Math.log,wv=Math.LN2;function Yv(t){return t>>>=0,t===0?32:31-(Qv(t)/wv|0)|0}var si=256,ci=262144,ri=4194304;function Sa(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function fi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var u=0,s=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=a&134217727;return h!==0?(a=h&~s,a!==0?u=Sa(a):(f&=h,f!==0?u=Sa(f):l||(l=h&~t,l!==0&&(u=Sa(l))))):(h=a&~s,h!==0?u=Sa(h):f!==0?u=Sa(f):l||(l=a&~t,l!==0&&(u=Sa(l)))),u===0?0:e!==0&&e!==u&&(e&s)===0&&(s=u&-u,l=e&-e,s>=l||s===32&&(l&4194048)!==0)?e:u}function tu(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Gv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+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 uo(){var t=ri;return ri<<=1,(ri&62914560)===0&&(ri=4194304),t}function Js(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function eu(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xv(t,e,l,a,u,s){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var h=t.entanglements,g=t.expirationTimes,z=t.hiddenUpdates;for(l=f&~l;0<l;){var N=31-xe(l),B=1<<N;h[N]=0,g[N]=-1;var M=z[N];if(M!==null)for(z[N]=null,N=0;N<M.length;N++){var D=M[N];D!==null&&(D.lane&=-536870913)}l&=~B}a!==0&&io(t,a,0),s!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=s&~(f&~e))}function io(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-xe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function so(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-xe(l),u=1<<a;u&e|t[a]&e&&(t[a]|=e),l&=~u}}function co(t,e){var l=e&-e;return l=(l&42)!==0?1:$s(l),(l&(t.suspendedLanes|e))!==0?0:l}function $s(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Fs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ro(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Fm(t.type))}function fo(t,e){var l=X.p;try{return X.p=t,e()}finally{X.p=l}}var Hl=Math.random().toString(36).slice(2),ee="__reactFiber$"+Hl,he="__reactProps$"+Hl,Fa="__reactContainer$"+Hl,ks="__reactEvents$"+Hl,Zv="__reactListeners$"+Hl,Kv="__reactHandles$"+Hl,oo="__reactResources$"+Hl,lu="__reactMarker$"+Hl;function Ws(t){delete t[ee],delete t[he],delete t[ks],delete t[Zv],delete t[Kv]}function ka(t){var e=t[ee];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Fa]||l[ee]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Nm(t);t!==null;){if(l=t[ee])return l;t=Nm(t)}return e}t=l,l=t.parentNode}return null}function Wa(t){if(t=t[ee]||t[Fa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function au(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Pa(t){var e=t[oo];return e||(e=t[oo]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[lu]=!0}var ho=new Set,mo={};function ba(t,e){Ia(t,e),Ia(t+"Capture",e)}function Ia(t,e){for(mo[t]=e,t=0;t<e.length;t++)ho.add(e[t])}var Vv=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]*$"),yo={},vo={};function Jv(t){return Zs.call(vo,t)?!0:Zs.call(yo,t)?!1:Vv.test(t)?vo[t]=!0:(yo[t]=!0,!1)}function oi(t,e,l){if(Jv(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function hi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function rl(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function po(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function $v(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,s=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(f){l=""+f,s.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ps(t){if(!t._valueTracker){var e=po(t)?"checked":"value";t._valueTracker=$v(t,e,""+t[e])}}function go(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=po(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function di(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Fv=/[\n"\\]/g;function He(t){return t.replace(Fv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Is(t,e,l,a,u,s,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?tc(t,f,Ue(e)):l!=null?tc(t,f,Ue(l)):a!=null&&t.removeAttribute("value"),u==null&&s!=null&&(t.defaultChecked=!!s),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Ue(h):t.removeAttribute("name")}function So(t,e,l,a,u,s,f,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){Ps(t);return}l=l!=null?""+Ue(l):"",e=e!=null?""+Ue(e):l,h||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=h?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Ps(t)}function tc(t,e,l){e==="number"&&di(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function tn(t,e,l,a){if(t=t.options,e){e={};for(var u=0;u<l.length;u++)e["$"+l[u]]=!0;for(l=0;l<t.length;l++)u=e.hasOwnProperty("$"+t[l].value),t[l].selected!==u&&(t[l].selected=u),u&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ue(l),e=null,u=0;u<t.length;u++){if(t[u].value===l){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function bo(t,e,l){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ue(l):""}function Eo(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(jt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Ue(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Ps(t)}function en(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var kv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function To(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||kv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Ro(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var u in e)a=e[u],e.hasOwnProperty(u)&&l[u]!==a&&To(t,u,a)}else for(var s in e)e.hasOwnProperty(s)&&To(t,s,e[s])}function ec(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Pv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function mi(t){return Pv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function fl(){}var lc=null;function ac(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ln=null,an=null;function xo(t){var e=Wa(t);if(e&&(t=e.stateNode)){var l=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Is(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+He(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var u=a[he]||null;if(!u)throw Error(r(90));Is(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&go(a)}break t;case"textarea":bo(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&tn(t,!!l.multiple,e,!1)}}}var nc=!1;function Oo(t,e,l){if(nc)return t(e,l);nc=!0;try{var a=t(e);return a}finally{if(nc=!1,(ln!==null||an!==null)&&(es(),ln&&(e=ln,t=an,an=ln=null,xo(e),t)))for(e=0;e<t.length;e++)xo(t[e])}}function nu(t,e){var l=t.stateNode;if(l===null)return null;var a=l[he]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var ol=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uc=!1;if(ol)try{var uu={};Object.defineProperty(uu,"passive",{get:function(){uc=!0}}),window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,uu)}catch{uc=!1}var ql=null,ic=null,yi=null;function _o(){if(yi)return yi;var t,e=ic,l=e.length,a,u="value"in ql?ql.value:ql.textContent,s=u.length;for(t=0;t<l&&e[t]===u[t];t++);var f=l-t;for(a=1;a<=f&&e[l-a]===u[s-a];a++);return yi=u.slice(t,1<a?1-a:void 0)}function vi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function pi(){return!0}function Ao(){return!1}function de(t){function e(l,a,u,s,f){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(l=t[h],this[h]=l?l(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?pi:Ao,this.isPropagationStopped=Ao,this}return E(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=pi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=pi)},persist:function(){},isPersistent:pi}),e}var Ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gi=de(Ea),iu=E({},Ea,{view:0,detail:0}),Iv=de(iu),sc,cc,su,Si=E({},iu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==su&&(su&&t.type==="mousemove"?(sc=t.screenX-su.screenX,cc=t.screenY-su.screenY):cc=sc=0,su=t),sc)},movementY:function(t){return"movementY"in t?t.movementY:cc}}),zo=de(Si),t0=E({},Si,{dataTransfer:0}),e0=de(t0),l0=E({},iu,{relatedTarget:0}),rc=de(l0),a0=E({},Ea,{animationName:0,elapsedTime:0,pseudoElement:0}),n0=de(a0),u0=E({},Ea,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),i0=de(u0),s0=E({},Ea,{data:0}),Mo=de(s0),c0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},f0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=f0[t])?!!e[t]:!1}function fc(){return o0}var h0=E({},iu,{key:function(t){if(t.key){var e=c0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=vi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?r0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fc,charCode:function(t){return t.type==="keypress"?vi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?vi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),d0=de(h0),m0=E({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Co=de(m0),y0=E({},iu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fc}),v0=de(y0),p0=E({},Ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),g0=de(p0),S0=E({},Si,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),b0=de(S0),E0=E({},Ea,{newState:0,oldState:0}),T0=de(E0),R0=[9,13,27,32],oc=ol&&"CompositionEvent"in window,cu=null;ol&&"documentMode"in document&&(cu=document.documentMode);var x0=ol&&"TextEvent"in window&&!cu,Do=ol&&(!oc||cu&&8<cu&&11>=cu),jo=" ",No=!1;function Uo(t,e){switch(t){case"keyup":return R0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ho(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var nn=!1;function O0(t,e){switch(t){case"compositionend":return Ho(e);case"keypress":return e.which!==32?null:(No=!0,jo);case"textInput":return t=e.data,t===jo&&No?null:t;default:return null}}function _0(t,e){if(nn)return t==="compositionend"||!oc&&Uo(t,e)?(t=_o(),yi=ic=ql=null,nn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Do&&e.locale!=="ko"?null:e.data;default:return null}}var A0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!A0[t.type]:e==="textarea"}function Lo(t,e,l,a){ln?an?an.push(a):an=[a]:ln=a,e=cs(e,"onChange"),0<e.length&&(l=new gi("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var ru=null,fu=null;function z0(t){Sm(t,0)}function bi(t){var e=au(t);if(go(e))return t}function Bo(t,e){if(t==="change")return e}var Qo=!1;if(ol){var hc;if(ol){var dc="oninput"in document;if(!dc){var wo=document.createElement("div");wo.setAttribute("oninput","return;"),dc=typeof wo.oninput=="function"}hc=dc}else hc=!1;Qo=hc&&(!document.documentMode||9<document.documentMode)}function Yo(){ru&&(ru.detachEvent("onpropertychange",Go),fu=ru=null)}function Go(t){if(t.propertyName==="value"&&bi(fu)){var e=[];Lo(e,fu,t,ac(t)),Oo(z0,e)}}function M0(t,e,l){t==="focusin"?(Yo(),ru=e,fu=l,ru.attachEvent("onpropertychange",Go)):t==="focusout"&&Yo()}function C0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return bi(fu)}function D0(t,e){if(t==="click")return bi(e)}function j0(t,e){if(t==="input"||t==="change")return bi(e)}function N0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Oe=typeof Object.is=="function"?Object.is:N0;function ou(t,e){if(Oe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var u=l[a];if(!Zs.call(e,u)||!Oe(t[u],e[u]))return!1}return!0}function Xo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Zo(t,e){var l=Xo(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Xo(l)}}function Ko(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ko(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Vo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=di(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=di(t.document)}return e}function mc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var U0=ol&&"documentMode"in document&&11>=document.documentMode,un=null,yc=null,hu=null,vc=!1;function Jo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;vc||un==null||un!==di(a)||(a=un,"selectionStart"in a&&mc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),hu&&ou(hu,a)||(hu=a,a=cs(yc,"onSelect"),0<a.length&&(e=new gi("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=un)))}function Ta(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var sn={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},pc={},$o={};ol&&($o=document.createElement("div").style,"AnimationEvent"in window||(delete sn.animationend.animation,delete sn.animationiteration.animation,delete sn.animationstart.animation),"TransitionEvent"in window||delete sn.transitionend.transition);function Ra(t){if(pc[t])return pc[t];if(!sn[t])return t;var e=sn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in $o)return pc[t]=e[l];return t}var Fo=Ra("animationend"),ko=Ra("animationiteration"),Wo=Ra("animationstart"),H0=Ra("transitionrun"),q0=Ra("transitionstart"),L0=Ra("transitioncancel"),Po=Ra("transitionend"),Io=new Map,gc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gc.push("scrollEnd");function Je(t,e){Io.set(t,e),ba(e,[t])}var Ei=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},qe=[],cn=0,Sc=0;function Ti(){for(var t=cn,e=Sc=cn=0;e<t;){var l=qe[e];qe[e++]=null;var a=qe[e];qe[e++]=null;var u=qe[e];qe[e++]=null;var s=qe[e];if(qe[e++]=null,a!==null&&u!==null){var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}s!==0&&th(l,u,s)}}function Ri(t,e,l,a){qe[cn++]=t,qe[cn++]=e,qe[cn++]=l,qe[cn++]=a,Sc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function bc(t,e,l,a){return Ri(t,e,l,a),xi(t)}function xa(t,e){return Ri(t,null,null,e),xi(t)}function th(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var u=!1,s=t.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(u=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,u&&e!==null&&(u=31-xe(l),t=s.hiddenUpdates,a=t[u],a===null?t[u]=[e]:a.push(e),e.lane=l|536870912),s):null}function xi(t){if(50<Uu)throw Uu=0,Mr=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var rn={};function B0(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(t,e,l,a){return new B0(t,e,l,a)}function Ec(t){return t=t.prototype,!(!t||!t.isReactComponent)}function hl(t,e){var l=t.alternate;return l===null?(l=_e(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function eh(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Oi(t,e,l,a,u,s){var f=0;if(a=t,typeof t=="function")Ec(t)&&(f=1);else if(typeof t=="string")f=Xp(t,l,F.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ft:return t=_e(31,l,e,u),t.elementType=ft,t.lanes=s,t;case H:return Oa(l.children,u,s,e);case w:f=8,u|=24;break;case Y:return t=_e(12,l,e,u|2),t.elementType=Y,t.lanes=s,t;case J:return t=_e(13,l,e,u),t.elementType=J,t.lanes=s,t;case at:return t=_e(19,l,e,u),t.elementType=at,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:f=10;break t;case I:f=9;break t;case G:f=11;break t;case W:f=14;break t;case et:f=16,a=null;break t}f=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=_e(f,l,e,u),e.elementType=t,e.type=a,e.lanes=s,e}function Oa(t,e,l,a){return t=_e(7,t,a,e),t.lanes=l,t}function Tc(t,e,l){return t=_e(6,t,null,e),t.lanes=l,t}function lh(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function Rc(t,e,l){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ah=new WeakMap;function Le(t,e){if(typeof t=="object"&&t!==null){var l=ah.get(t);return l!==void 0?l:(e={value:t,source:e,stack:eo(e)},ah.set(t,e),e)}return{value:t,source:e,stack:eo(e)}}var fn=[],on=0,_i=null,du=0,Be=[],Qe=0,Ll=null,Ie=1,tl="";function dl(t,e){fn[on++]=du,fn[on++]=_i,_i=t,du=e}function nh(t,e,l){Be[Qe++]=Ie,Be[Qe++]=tl,Be[Qe++]=Ll,Ll=t;var a=Ie;t=tl;var u=32-xe(a)-1;a&=~(1<<u),l+=1;var s=32-xe(e)+u;if(30<s){var f=u-u%5;s=(a&(1<<f)-1).toString(32),a>>=f,u-=f,Ie=1<<32-xe(e)+u|l<<u|a,tl=s+t}else Ie=1<<s|l<<u|a,tl=t}function xc(t){t.return!==null&&(dl(t,1),nh(t,1,0))}function Oc(t){for(;t===_i;)_i=fn[--on],fn[on]=null,du=fn[--on],fn[on]=null;for(;t===Ll;)Ll=Be[--Qe],Be[Qe]=null,tl=Be[--Qe],Be[Qe]=null,Ie=Be[--Qe],Be[Qe]=null}function uh(t,e){Be[Qe++]=Ie,Be[Qe++]=tl,Be[Qe++]=Ll,Ie=e.id,tl=e.overflow,Ll=t}var le=null,Nt=null,vt=!1,Bl=null,we=!1,_c=Error(r(519));function Ql(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mu(Le(e,t)),_c}function ih(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[ee]=t,e[he]=a,l){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(l=0;l<qu.length;l++)dt(qu[l],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),So(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Eo(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Rm(e.textContent,l)?(a.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),a.onScroll!=null&&dt("scroll",e),a.onScrollEnd!=null&&dt("scrollend",e),a.onClick!=null&&(e.onclick=fl),e=!0):e=!1,e||Ql(t,!0)}function sh(t){for(le=t.return;le;)switch(le.tag){case 5:case 31:case 13:we=!1;return;case 27:case 3:we=!0;return;default:le=le.return}}function hn(t){if(t!==le)return!1;if(!vt)return sh(t),vt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Zr(t.type,t.memoizedProps)),l=!l),l&&Nt&&Ql(t),sh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Nt=jm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Nt=jm(t)}else e===27?(e=Nt,Il(t.type)?(t=Fr,Fr=null,Nt=t):Nt=e):Nt=le?Ge(t.stateNode.nextSibling):null;return!0}function _a(){Nt=le=null,vt=!1}function Ac(){var t=Bl;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),Bl=null),t}function mu(t){Bl===null?Bl=[t]:Bl.push(t)}var zc=T(null),Aa=null,ml=null;function wl(t,e,l){V(zc,e._currentValue),e._currentValue=l}function yl(t){t._currentValue=zc.current,Q(zc)}function Mc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Cc(t,e,l,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var s=u.dependencies;if(s!==null){var f=u.child;s=s.firstContext;t:for(;s!==null;){var h=s;s=u;for(var g=0;g<e.length;g++)if(h.context===e[g]){s.lanes|=l,h=s.alternate,h!==null&&(h.lanes|=l),Mc(s.return,l,t),a||(f=null);break t}s=h.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(r(341));f.lanes|=l,s=f.alternate,s!==null&&(s.lanes|=l),Mc(f,l,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function dn(t,e,l,a){t=null;for(var u=e,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var h=u.type;Oe(u.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(u===Et.current){if(f=u.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Yu):t=[Yu])}u=u.return}t!==null&&Cc(e,t,l,a),e.flags|=262144}function Ai(t){for(t=t.firstContext;t!==null;){if(!Oe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function za(t){Aa=t,ml=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ae(t){return ch(Aa,t)}function zi(t,e){return Aa===null&&za(t),ch(t,e)}function ch(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ml===null){if(t===null)throw Error(r(308));ml=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ml=ml.next=e;return l}var Q0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},w0=n.unstable_scheduleCallback,Y0=n.unstable_NormalPriority,Kt={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dc(){return{controller:new Q0,data:new Map,refCount:0}}function yu(t){t.refCount--,t.refCount===0&&w0(Y0,function(){t.controller.abort()})}var vu=null,jc=0,mn=0,yn=null;function G0(t,e){if(vu===null){var l=vu=[];jc=0,mn=Hr(),yn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return jc++,e.then(rh,rh),e}function rh(){if(--jc===0&&vu!==null){yn!==null&&(yn.status="fulfilled");var t=vu;vu=null,mn=0,yn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function X0(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var u=0;u<l.length;u++)(0,l[u])(e)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var fh=q.S;q.S=function(t,e){Jd=Te(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&G0(t,e),fh!==null&&fh(t,e)};var Ma=T(null);function Nc(){var t=Ma.current;return t!==null?t:Ct.pooledCache}function Mi(t,e){e===null?V(Ma,Ma.current):V(Ma,e.pool)}function oh(){var t=Nc();return t===null?null:{parent:Kt._currentValue,pool:t}}var vn=Error(r(460)),Uc=Error(r(474)),Ci=Error(r(542)),Di={then:function(){}};function hh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function dh(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(fl,fl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,yh(t),t;default:if(typeof e.status=="string")e.then(fl,fl);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=a}},function(a){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,yh(t),t}throw Da=e,vn}}function Ca(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Da=l,vn):l}}var Da=null;function mh(){if(Da===null)throw Error(r(459));var t=Da;return Da=null,t}function yh(t){if(t===vn||t===Ci)throw Error(r(483))}var pn=null,pu=0;function ji(t){var e=pu;return pu+=1,pn===null&&(pn=[]),dh(pn,t,e)}function gu(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ni(t,e){throw e.$$typeof===C?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function vh(t){function e(x,b){if(t){var A=x.deletions;A===null?(x.deletions=[b],x.flags|=16):A.push(b)}}function l(x,b){if(!t)return null;for(;b!==null;)e(x,b),b=b.sibling;return null}function a(x){for(var b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function u(x,b){return x=hl(x,b),x.index=0,x.sibling=null,x}function s(x,b,A){return x.index=A,t?(A=x.alternate,A!==null?(A=A.index,A<b?(x.flags|=67108866,b):A):(x.flags|=67108866,b)):(x.flags|=1048576,b)}function f(x){return t&&x.alternate===null&&(x.flags|=67108866),x}function h(x,b,A,L){return b===null||b.tag!==6?(b=Tc(A,x.mode,L),b.return=x,b):(b=u(b,A),b.return=x,b)}function g(x,b,A,L){var tt=A.type;return tt===H?N(x,b,A.props.children,L,A.key):b!==null&&(b.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===et&&Ca(tt)===b.type)?(b=u(b,A.props),gu(b,A),b.return=x,b):(b=Oi(A.type,A.key,A.props,null,x.mode,L),gu(b,A),b.return=x,b)}function z(x,b,A,L){return b===null||b.tag!==4||b.stateNode.containerInfo!==A.containerInfo||b.stateNode.implementation!==A.implementation?(b=Rc(A,x.mode,L),b.return=x,b):(b=u(b,A.children||[]),b.return=x,b)}function N(x,b,A,L,tt){return b===null||b.tag!==7?(b=Oa(A,x.mode,L,tt),b.return=x,b):(b=u(b,A),b.return=x,b)}function B(x,b,A){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Tc(""+b,x.mode,A),b.return=x,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case U:return A=Oi(b.type,b.key,b.props,null,x.mode,A),gu(A,b),A.return=x,A;case j:return b=Rc(b,x.mode,A),b.return=x,b;case et:return b=Ca(b),B(x,b,A)}if(jt(b)||Yt(b))return b=Oa(b,x.mode,A,null),b.return=x,b;if(typeof b.then=="function")return B(x,ji(b),A);if(b.$$typeof===K)return B(x,zi(x,b),A);Ni(x,b)}return null}function M(x,b,A,L){var tt=b!==null?b.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return tt!==null?null:h(x,b,""+A,L);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case U:return A.key===tt?g(x,b,A,L):null;case j:return A.key===tt?z(x,b,A,L):null;case et:return A=Ca(A),M(x,b,A,L)}if(jt(A)||Yt(A))return tt!==null?null:N(x,b,A,L,null);if(typeof A.then=="function")return M(x,b,ji(A),L);if(A.$$typeof===K)return M(x,b,zi(x,A),L);Ni(x,A)}return null}function D(x,b,A,L,tt){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return x=x.get(A)||null,h(b,x,""+L,tt);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case U:return x=x.get(L.key===null?A:L.key)||null,g(b,x,L,tt);case j:return x=x.get(L.key===null?A:L.key)||null,z(b,x,L,tt);case et:return L=Ca(L),D(x,b,A,L,tt)}if(jt(L)||Yt(L))return x=x.get(A)||null,N(b,x,L,tt,null);if(typeof L.then=="function")return D(x,b,A,ji(L),tt);if(L.$$typeof===K)return D(x,b,A,zi(b,L),tt);Ni(b,L)}return null}function $(x,b,A,L){for(var tt=null,gt=null,k=b,ct=b=0,yt=null;k!==null&&ct<A.length;ct++){k.index>ct?(yt=k,k=null):yt=k.sibling;var St=M(x,k,A[ct],L);if(St===null){k===null&&(k=yt);break}t&&k&&St.alternate===null&&e(x,k),b=s(St,b,ct),gt===null?tt=St:gt.sibling=St,gt=St,k=yt}if(ct===A.length)return l(x,k),vt&&dl(x,ct),tt;if(k===null){for(;ct<A.length;ct++)k=B(x,A[ct],L),k!==null&&(b=s(k,b,ct),gt===null?tt=k:gt.sibling=k,gt=k);return vt&&dl(x,ct),tt}for(k=a(k);ct<A.length;ct++)yt=D(k,x,ct,A[ct],L),yt!==null&&(t&&yt.alternate!==null&&k.delete(yt.key===null?ct:yt.key),b=s(yt,b,ct),gt===null?tt=yt:gt.sibling=yt,gt=yt);return t&&k.forEach(function(na){return e(x,na)}),vt&&dl(x,ct),tt}function lt(x,b,A,L){if(A==null)throw Error(r(151));for(var tt=null,gt=null,k=b,ct=b=0,yt=null,St=A.next();k!==null&&!St.done;ct++,St=A.next()){k.index>ct?(yt=k,k=null):yt=k.sibling;var na=M(x,k,St.value,L);if(na===null){k===null&&(k=yt);break}t&&k&&na.alternate===null&&e(x,k),b=s(na,b,ct),gt===null?tt=na:gt.sibling=na,gt=na,k=yt}if(St.done)return l(x,k),vt&&dl(x,ct),tt;if(k===null){for(;!St.done;ct++,St=A.next())St=B(x,St.value,L),St!==null&&(b=s(St,b,ct),gt===null?tt=St:gt.sibling=St,gt=St);return vt&&dl(x,ct),tt}for(k=a(k);!St.done;ct++,St=A.next())St=D(k,x,ct,St.value,L),St!==null&&(t&&St.alternate!==null&&k.delete(St.key===null?ct:St.key),b=s(St,b,ct),gt===null?tt=St:gt.sibling=St,gt=St);return t&&k.forEach(function(tg){return e(x,tg)}),vt&&dl(x,ct),tt}function zt(x,b,A,L){if(typeof A=="object"&&A!==null&&A.type===H&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case U:t:{for(var tt=A.key;b!==null;){if(b.key===tt){if(tt=A.type,tt===H){if(b.tag===7){l(x,b.sibling),L=u(b,A.props.children),L.return=x,x=L;break t}}else if(b.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===et&&Ca(tt)===b.type){l(x,b.sibling),L=u(b,A.props),gu(L,A),L.return=x,x=L;break t}l(x,b);break}else e(x,b);b=b.sibling}A.type===H?(L=Oa(A.props.children,x.mode,L,A.key),L.return=x,x=L):(L=Oi(A.type,A.key,A.props,null,x.mode,L),gu(L,A),L.return=x,x=L)}return f(x);case j:t:{for(tt=A.key;b!==null;){if(b.key===tt)if(b.tag===4&&b.stateNode.containerInfo===A.containerInfo&&b.stateNode.implementation===A.implementation){l(x,b.sibling),L=u(b,A.children||[]),L.return=x,x=L;break t}else{l(x,b);break}else e(x,b);b=b.sibling}L=Rc(A,x.mode,L),L.return=x,x=L}return f(x);case et:return A=Ca(A),zt(x,b,A,L)}if(jt(A))return $(x,b,A,L);if(Yt(A)){if(tt=Yt(A),typeof tt!="function")throw Error(r(150));return A=tt.call(A),lt(x,b,A,L)}if(typeof A.then=="function")return zt(x,b,ji(A),L);if(A.$$typeof===K)return zt(x,b,zi(x,A),L);Ni(x,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,b!==null&&b.tag===6?(l(x,b.sibling),L=u(b,A),L.return=x,x=L):(l(x,b),L=Tc(A,x.mode,L),L.return=x,x=L),f(x)):l(x,b)}return function(x,b,A,L){try{pu=0;var tt=zt(x,b,A,L);return pn=null,tt}catch(k){if(k===vn||k===Ci)throw k;var gt=_e(29,k,null,x.mode);return gt.lanes=L,gt.return=x,gt}finally{}}}var ja=vh(!0),ph=vh(!1),Yl=!1;function Hc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Gl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Xl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(bt&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=xi(t),th(t,null,l),e}return Ri(t,a,e,l),xi(t)}function Su(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,so(t,l)}}function Lc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?u=s=f:s=s.next=f,l=l.next}while(l!==null);s===null?u=s=e:s=s.next=e}else u=s=e;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Bc=!1;function bu(){if(Bc){var t=yn;if(t!==null)throw t}}function Eu(t,e,l,a){Bc=!1;var u=t.updateQueue;Yl=!1;var s=u.firstBaseUpdate,f=u.lastBaseUpdate,h=u.shared.pending;if(h!==null){u.shared.pending=null;var g=h,z=g.next;g.next=null,f===null?s=z:f.next=z,f=g;var N=t.alternate;N!==null&&(N=N.updateQueue,h=N.lastBaseUpdate,h!==f&&(h===null?N.firstBaseUpdate=z:h.next=z,N.lastBaseUpdate=g))}if(s!==null){var B=u.baseState;f=0,N=z=g=null,h=s;do{var M=h.lane&-536870913,D=M!==h.lane;if(D?(mt&M)===M:(a&M)===M){M!==0&&M===mn&&(Bc=!0),N!==null&&(N=N.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var $=t,lt=h;M=e;var zt=l;switch(lt.tag){case 1:if($=lt.payload,typeof $=="function"){B=$.call(zt,B,M);break t}B=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=lt.payload,M=typeof $=="function"?$.call(zt,B,M):$,M==null)break t;B=E({},B,M);break t;case 2:Yl=!0}}M=h.callback,M!==null&&(t.flags|=64,D&&(t.flags|=8192),D=u.callbacks,D===null?u.callbacks=[M]:D.push(M))}else D={lane:M,tag:h.tag,payload:h.payload,callback:h.callback,next:null},N===null?(z=N=D,g=B):N=N.next=D,f|=M;if(h=h.next,h===null){if(h=u.shared.pending,h===null)break;D=h,h=D.next,D.next=null,u.lastBaseUpdate=D,u.shared.pending=null}}while(!0);N===null&&(g=B),u.baseState=g,u.firstBaseUpdate=z,u.lastBaseUpdate=N,s===null&&(u.shared.lanes=0),$l|=f,t.lanes=f,t.memoizedState=B}}function gh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Sh(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)gh(l[t],e)}var gn=T(null),Ui=T(0);function bh(t,e){t=xl,V(Ui,t),V(gn,e),xl=t|e.baseLanes}function Qc(){V(Ui,xl),V(gn,gn.current)}function wc(){xl=Ui.current,Q(gn),Q(Ui)}var Ae=T(null),Ye=null;function Zl(t){var e=t.alternate;V(Xt,Xt.current&1),V(Ae,t),Ye===null&&(e===null||gn.current!==null||e.memoizedState!==null)&&(Ye=t)}function Yc(t){V(Xt,Xt.current),V(Ae,t),Ye===null&&(Ye=t)}function Eh(t){t.tag===22?(V(Xt,Xt.current),V(Ae,t),Ye===null&&(Ye=t)):Kl()}function Kl(){V(Xt,Xt.current),V(Ae,Ae.current)}function ze(t){Q(Ae),Ye===t&&(Ye=null),Q(Xt)}var Xt=T(0);function Hi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Jr(l)||$r(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var vl=0,st=null,_t=null,Vt=null,qi=!1,Sn=!1,Na=!1,Li=0,Tu=0,bn=null,Z0=0;function Lt(){throw Error(r(321))}function Gc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!Oe(t[l],e[l]))return!1;return!0}function Xc(t,e,l,a,u,s){return vl=s,st=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,q.H=t===null||t.memoizedState===null?nd:nr,Na=!1,s=l(a,u),Na=!1,Sn&&(s=Rh(e,l,a,u)),Th(t),s}function Th(t){q.H=Ou;var e=_t!==null&&_t.next!==null;if(vl=0,Vt=_t=st=null,qi=!1,Tu=0,bn=null,e)throw Error(r(300));t===null||Jt||(t=t.dependencies,t!==null&&Ai(t)&&(Jt=!0))}function Rh(t,e,l,a){st=t;var u=0;do{if(Sn&&(bn=null),Tu=0,Sn=!1,25<=u)throw Error(r(301));if(u+=1,Vt=_t=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}q.H=ud,s=e(l,a)}while(Sn);return s}function K0(){var t=q.H,e=t.useState()[0];return e=typeof e.then=="function"?Ru(e):e,t=t.useState()[0],(_t!==null?_t.memoizedState:null)!==t&&(st.flags|=1024),e}function Zc(){var t=Li!==0;return Li=0,t}function Kc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Vc(t){if(qi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}qi=!1}vl=0,Vt=_t=st=null,Sn=!1,Tu=Li=0,bn=null}function re(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?st.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Zt(){if(_t===null){var t=st.alternate;t=t!==null?t.memoizedState:null}else t=_t.next;var e=Vt===null?st.memoizedState:Vt.next;if(e!==null)Vt=e,_t=t;else{if(t===null)throw st.alternate===null?Error(r(467)):Error(r(310));_t=t,t={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},Vt===null?st.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function Bi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ru(t){var e=Tu;return Tu+=1,bn===null&&(bn=[]),t=dh(bn,t,e),e=st,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,q.H=e===null||e.memoizedState===null?nd:nr),t}function Qi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ru(t);if(t.$$typeof===K)return ae(t)}throw Error(r(438,String(t)))}function Jc(t){var e=null,l=st.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=st.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Bi(),st.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Dt;return e.index++,l}function pl(t,e){return typeof e=="function"?e(t):e}function wi(t){var e=Zt();return $c(e,_t,t)}function $c(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var u=t.baseQueue,s=a.pending;if(s!==null){if(u!==null){var f=u.next;u.next=s.next,s.next=f}e.baseQueue=u=s,a.pending=null}if(s=t.baseState,u===null)t.memoizedState=s;else{e=u.next;var h=f=null,g=null,z=e,N=!1;do{var B=z.lane&-536870913;if(B!==z.lane?(mt&B)===B:(vl&B)===B){var M=z.revertLane;if(M===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),B===mn&&(N=!0);else if((vl&M)===M){z=z.next,M===mn&&(N=!0);continue}else B={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},g===null?(h=g=B,f=s):g=g.next=B,st.lanes|=M,$l|=M;B=z.action,Na&&l(s,B),s=z.hasEagerState?z.eagerState:l(s,B)}else M={lane:B,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},g===null?(h=g=M,f=s):g=g.next=M,st.lanes|=B,$l|=B;z=z.next}while(z!==null&&z!==e);if(g===null?f=s:g.next=h,!Oe(s,t.memoizedState)&&(Jt=!0,N&&(l=yn,l!==null)))throw l;t.memoizedState=s,t.baseState=f,t.baseQueue=g,a.lastRenderedState=s}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Fc(t){var e=Zt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,u=l.pending,s=e.memoizedState;if(u!==null){l.pending=null;var f=u=u.next;do s=t(s,f.action),f=f.next;while(f!==u);Oe(s,e.memoizedState)||(Jt=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),l.lastRenderedState=s}return[s,a]}function xh(t,e,l){var a=st,u=Zt(),s=vt;if(s){if(l===void 0)throw Error(r(407));l=l()}else l=e();var f=!Oe((_t||u).memoizedState,l);if(f&&(u.memoizedState=l,Jt=!0),u=u.queue,Pc(Ah.bind(null,a,u,t),[t]),u.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(a.flags|=2048,En(9,{destroy:void 0},_h.bind(null,a,u,l,e),null),Ct===null)throw Error(r(349));s||(vl&127)!==0||Oh(a,e,l)}return l}function Oh(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=st.updateQueue,e===null?(e=Bi(),st.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function _h(t,e,l,a){e.value=l,e.getSnapshot=a,zh(e)&&Mh(t)}function Ah(t,e,l){return l(function(){zh(e)&&Mh(t)})}function zh(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!Oe(t,l)}catch{return!0}}function Mh(t){var e=xa(t,2);e!==null&&ge(e,t,2)}function kc(t){var e=re();if(typeof t=="function"){var l=t;if(t=l(),Na){Ul(!0);try{l()}finally{Ul(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:t},e}function Ch(t,e,l,a){return t.baseState=l,$c(t,_t,typeof a=="function"?a:pl)}function V0(t,e,l,a,u){if(Xi(t))throw Error(r(485));if(t=e.action,t!==null){var s={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};q.T!==null?l(!0):s.isTransition=!1,a(s),l=e.pending,l===null?(s.next=e.pending=s,Dh(e,s)):(s.next=l.next,e.pending=l.next=s)}}function Dh(t,e){var l=e.action,a=e.payload,u=t.state;if(e.isTransition){var s=q.T,f={};q.T=f;try{var h=l(u,a),g=q.S;g!==null&&g(f,h),jh(t,e,h)}catch(z){Wc(t,e,z)}finally{s!==null&&f.types!==null&&(s.types=f.types),q.T=s}}else try{s=l(u,a),jh(t,e,s)}catch(z){Wc(t,e,z)}}function jh(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Nh(t,e,a)},function(a){return Wc(t,e,a)}):Nh(t,e,l)}function Nh(t,e,l){e.status="fulfilled",e.value=l,Uh(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Dh(t,l)))}function Wc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Uh(e),e=e.next;while(e!==a)}t.action=null}function Uh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Hh(t,e){return e}function qh(t,e){if(vt){var l=Ct.formState;if(l!==null){t:{var a=st;if(vt){if(Nt){e:{for(var u=Nt,s=we;u.nodeType!==8;){if(!s){u=null;break e}if(u=Ge(u.nextSibling),u===null){u=null;break e}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){Nt=Ge(u.nextSibling),a=u.data==="F!";break t}}Ql(a)}a=!1}a&&(e=l[0])}}return l=re(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hh,lastRenderedState:e},l.queue=a,l=ed.bind(null,st,a),a.dispatch=l,a=kc(!1),s=ar.bind(null,st,!1,a.queue),a=re(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,l=V0.bind(null,st,u,s,l),u.dispatch=l,a.memoizedState=t,[e,l,!1]}function Lh(t){var e=Zt();return Bh(e,_t,t)}function Bh(t,e,l){if(e=$c(t,e,Hh)[0],t=wi(pl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Ru(e)}catch(f){throw f===vn?Ci:f}else a=e;e=Zt();var u=e.queue,s=u.dispatch;return l!==e.memoizedState&&(st.flags|=2048,En(9,{destroy:void 0},J0.bind(null,u,l),null)),[a,s,t]}function J0(t,e){t.action=e}function Qh(t){var e=Zt(),l=_t;if(l!==null)return Bh(e,l,t);Zt(),e=e.memoizedState,l=Zt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function En(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=st.updateQueue,e===null&&(e=Bi(),st.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function wh(){return Zt().memoizedState}function Yi(t,e,l,a){var u=re();st.flags|=t,u.memoizedState=En(1|e,{destroy:void 0},l,a===void 0?null:a)}function Gi(t,e,l,a){var u=Zt();a=a===void 0?null:a;var s=u.memoizedState.inst;_t!==null&&a!==null&&Gc(a,_t.memoizedState.deps)?u.memoizedState=En(e,s,l,a):(st.flags|=t,u.memoizedState=En(1|e,s,l,a))}function Yh(t,e){Yi(8390656,8,t,e)}function Pc(t,e){Gi(2048,8,t,e)}function $0(t){st.flags|=4;var e=st.updateQueue;if(e===null)e=Bi(),st.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Gh(t){var e=Zt().memoizedState;return $0({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Xh(t,e){return Gi(4,2,t,e)}function Zh(t,e){return Gi(4,4,t,e)}function Kh(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Vh(t,e,l){l=l!=null?l.concat([t]):null,Gi(4,4,Kh.bind(null,e,t),l)}function Ic(){}function Jh(t,e){var l=Zt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&Gc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function $h(t,e){var l=Zt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&Gc(e,a[1]))return a[0];if(a=t(),Na){Ul(!0);try{t()}finally{Ul(!1)}}return l.memoizedState=[a,e],a}function tr(t,e,l){return l===void 0||(vl&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Fd(),st.lanes|=t,$l|=t,l)}function Fh(t,e,l,a){return Oe(l,e)?l:gn.current!==null?(t=tr(t,l,a),Oe(t,e)||(Jt=!0),t):(vl&42)===0||(vl&1073741824)!==0&&(mt&261930)===0?(Jt=!0,t.memoizedState=l):(t=Fd(),st.lanes|=t,$l|=t,e)}function kh(t,e,l,a,u){var s=X.p;X.p=s!==0&&8>s?s:8;var f=q.T,h={};q.T=h,ar(t,!1,e,l);try{var g=u(),z=q.S;if(z!==null&&z(h,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var N=X0(g,a);xu(t,e,N,De(t))}else xu(t,e,a,De(t))}catch(B){xu(t,e,{then:function(){},status:"rejected",reason:B},De())}finally{X.p=s,f!==null&&h.types!==null&&(f.types=h.types),q.T=f}}function F0(){}function er(t,e,l,a){if(t.tag!==5)throw Error(r(476));var u=Wh(t).queue;kh(t,u,e,nt,l===null?F0:function(){return Ph(t),l(a)})}function Wh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:nt},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ph(t){var e=Wh(t);e.next===null&&(e=t.alternate.memoizedState),xu(t,e.next.queue,{},De())}function lr(){return ae(Yu)}function Ih(){return Zt().memoizedState}function td(){return Zt().memoizedState}function k0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=De();t=Gl(l);var a=Xl(e,t,l);a!==null&&(ge(a,e,l),Su(a,e,l)),e={cache:Dc()},t.payload=e;return}e=e.return}}function W0(t,e,l){var a=De();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xi(t)?ld(e,l):(l=bc(t,e,l,a),l!==null&&(ge(l,t,a),ad(l,e,a)))}function ed(t,e,l){var a=De();xu(t,e,l,a)}function xu(t,e,l,a){var u={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xi(t))ld(e,u);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var f=e.lastRenderedState,h=s(f,l);if(u.hasEagerState=!0,u.eagerState=h,Oe(h,f))return Ri(t,e,u,0),Ct===null&&Ti(),!1}catch{}finally{}if(l=bc(t,e,u,a),l!==null)return ge(l,t,a),ad(l,e,a),!0}return!1}function ar(t,e,l,a){if(a={lane:2,revertLane:Hr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xi(t)){if(e)throw Error(r(479))}else e=bc(t,l,a,2),e!==null&&ge(e,t,2)}function Xi(t){var e=t.alternate;return t===st||e!==null&&e===st}function ld(t,e){Sn=qi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function ad(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,so(t,l)}}var Ou={readContext:ae,use:Qi,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt};Ou.useEffectEvent=Lt;var nd={readContext:ae,use:Qi,useCallback:function(t,e){return re().memoizedState=[t,e===void 0?null:e],t},useContext:ae,useEffect:Yh,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Yi(4194308,4,Kh.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Yi(4194308,4,t,e)},useInsertionEffect:function(t,e){Yi(4,2,t,e)},useMemo:function(t,e){var l=re();e=e===void 0?null:e;var a=t();if(Na){Ul(!0);try{t()}finally{Ul(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=re();if(l!==void 0){var u=l(e);if(Na){Ul(!0);try{l(e)}finally{Ul(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=W0.bind(null,st,t),[a.memoizedState,t]},useRef:function(t){var e=re();return t={current:t},e.memoizedState=t},useState:function(t){t=kc(t);var e=t.queue,l=ed.bind(null,st,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Ic,useDeferredValue:function(t,e){var l=re();return tr(l,t,e)},useTransition:function(){var t=kc(!1);return t=kh.bind(null,st,t.queue,!0,!1),re().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=st,u=re();if(vt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Ct===null)throw Error(r(349));(mt&127)!==0||Oh(a,e,l)}u.memoizedState=l;var s={value:l,getSnapshot:e};return u.queue=s,Yh(Ah.bind(null,a,s,t),[t]),a.flags|=2048,En(9,{destroy:void 0},_h.bind(null,a,s,l,e),null),l},useId:function(){var t=re(),e=Ct.identifierPrefix;if(vt){var l=tl,a=Ie;l=(a&~(1<<32-xe(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Li++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Z0++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:lr,useFormState:qh,useActionState:qh,useOptimistic:function(t){var e=re();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=ar.bind(null,st,!0,l),l.dispatch=e,[t,e]},useMemoCache:Jc,useCacheRefresh:function(){return re().memoizedState=k0.bind(null,st)},useEffectEvent:function(t){var e=re(),l={impl:t};return e.memoizedState=l,function(){if((bt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},nr={readContext:ae,use:Qi,useCallback:Jh,useContext:ae,useEffect:Pc,useImperativeHandle:Vh,useInsertionEffect:Xh,useLayoutEffect:Zh,useMemo:$h,useReducer:wi,useRef:wh,useState:function(){return wi(pl)},useDebugValue:Ic,useDeferredValue:function(t,e){var l=Zt();return Fh(l,_t.memoizedState,t,e)},useTransition:function(){var t=wi(pl)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Ru(t),e]},useSyncExternalStore:xh,useId:Ih,useHostTransitionStatus:lr,useFormState:Lh,useActionState:Lh,useOptimistic:function(t,e){var l=Zt();return Ch(l,_t,t,e)},useMemoCache:Jc,useCacheRefresh:td};nr.useEffectEvent=Gh;var ud={readContext:ae,use:Qi,useCallback:Jh,useContext:ae,useEffect:Pc,useImperativeHandle:Vh,useInsertionEffect:Xh,useLayoutEffect:Zh,useMemo:$h,useReducer:Fc,useRef:wh,useState:function(){return Fc(pl)},useDebugValue:Ic,useDeferredValue:function(t,e){var l=Zt();return _t===null?tr(l,t,e):Fh(l,_t.memoizedState,t,e)},useTransition:function(){var t=Fc(pl)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Ru(t),e]},useSyncExternalStore:xh,useId:Ih,useHostTransitionStatus:lr,useFormState:Qh,useActionState:Qh,useOptimistic:function(t,e){var l=Zt();return _t!==null?Ch(l,_t,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Jc,useCacheRefresh:td};ud.useEffectEvent=Gh;function ur(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:E({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var ir={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=De(),u=Gl(a);u.payload=e,l!=null&&(u.callback=l),e=Xl(t,u,a),e!==null&&(ge(e,t,a),Su(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=De(),u=Gl(a);u.tag=1,u.payload=e,l!=null&&(u.callback=l),e=Xl(t,u,a),e!==null&&(ge(e,t,a),Su(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=De(),a=Gl(l);a.tag=2,e!=null&&(a.callback=e),e=Xl(t,a,l),e!==null&&(ge(e,t,l),Su(e,t,l))}};function id(t,e,l,a,u,s,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,s,f):e.prototype&&e.prototype.isPureReactComponent?!ou(l,a)||!ou(u,s):!0}function sd(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&ir.enqueueReplaceState(e,e.state,null)}function Ua(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=E({},l));for(var u in t)l[u]===void 0&&(l[u]=t[u])}return l}function cd(t){Ei(t)}function rd(t){console.error(t)}function fd(t){Ei(t)}function Zi(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function od(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function sr(t,e,l){return l=Gl(l),l.tag=3,l.payload={element:null},l.callback=function(){Zi(t,e)},l}function hd(t){return t=Gl(t),t.tag=3,t}function dd(t,e,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var s=a.value;t.payload=function(){return u(s)},t.callback=function(){od(e,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){od(e,l,a),typeof u!="function"&&(Fl===null?Fl=new Set([this]):Fl.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function P0(t,e,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&dn(e,l,u,!0),l=Ae.current,l!==null){switch(l.tag){case 31:case 13:return Ye===null?ls():l.alternate===null&&Bt===0&&(Bt=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===Di?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),jr(t,a,u)),!1;case 22:return l.flags|=65536,a===Di?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),jr(t,a,u)),!1}throw Error(r(435,l.tag))}return jr(t,a,u),ls(),!1}if(vt)return e=Ae.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==_c&&(t=Error(r(422),{cause:a}),mu(Le(t,l)))):(a!==_c&&(e=Error(r(423),{cause:a}),mu(Le(e,l))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=Le(a,l),u=sr(t.stateNode,a,u),Lc(t,u),Bt!==4&&(Bt=2)),!1;var s=Error(r(520),{cause:a});if(s=Le(s,l),Nu===null?Nu=[s]:Nu.push(s),Bt!==4&&(Bt=2),e===null)return!0;a=Le(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=u&-u,l.lanes|=t,t=sr(l.stateNode,a,t),Lc(l,t),!1;case 1:if(e=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Fl===null||!Fl.has(s))))return l.flags|=65536,u&=-u,l.lanes|=u,u=hd(u),dd(u,t,l,a),Lc(l,u),!1}l=l.return}while(l!==null);return!1}var cr=Error(r(461)),Jt=!1;function ne(t,e,l,a){e.child=t===null?ph(e,null,l,a):ja(e,t.child,l,a)}function md(t,e,l,a,u){l=l.render;var s=e.ref;if("ref"in a){var f={};for(var h in a)h!=="ref"&&(f[h]=a[h])}else f=a;return za(e),a=Xc(t,e,l,f,s,u),h=Zc(),t!==null&&!Jt?(Kc(t,e,u),gl(t,e,u)):(vt&&h&&xc(e),e.flags|=1,ne(t,e,a,u),e.child)}function yd(t,e,l,a,u){if(t===null){var s=l.type;return typeof s=="function"&&!Ec(s)&&s.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=s,vd(t,e,s,a,u)):(t=Oi(l.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!vr(t,u)){var f=s.memoizedProps;if(l=l.compare,l=l!==null?l:ou,l(f,a)&&t.ref===e.ref)return gl(t,e,u)}return e.flags|=1,t=hl(s,a),t.ref=e.ref,t.return=e,e.child=t}function vd(t,e,l,a,u){if(t!==null){var s=t.memoizedProps;if(ou(s,a)&&t.ref===e.ref)if(Jt=!1,e.pendingProps=a=s,vr(t,u))(t.flags&131072)!==0&&(Jt=!0);else return e.lanes=t.lanes,gl(t,e,u)}return rr(t,e,l,a,u)}function pd(t,e,l,a){var u=a.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~s}else a=0,e.child=null;return gd(t,e,s,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Mi(e,s!==null?s.cachePool:null),s!==null?bh(e,s):Qc(),Eh(e);else return a=e.lanes=536870912,gd(t,e,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(Mi(e,s.cachePool),bh(e,s),Kl(),e.memoizedState=null):(t!==null&&Mi(e,null),Qc(),Kl());return ne(t,e,u,l),e.child}function _u(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function gd(t,e,l,a,u){var s=Nc();return s=s===null?null:{parent:Kt._currentValue,pool:s},e.memoizedState={baseLanes:l,cachePool:s},t!==null&&Mi(e,null),Qc(),Eh(e),t!==null&&dn(t,e,a,!0),e.childLanes=u,null}function Ki(t,e){return e=Ji({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Sd(t,e,l){return ja(e,t.child,null,l),t=Ki(e,e.pendingProps),t.flags|=2,ze(e),e.memoizedState=null,t}function I0(t,e,l){var a=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(a.mode==="hidden")return t=Ki(e,a),e.lanes=536870912,_u(null,t);if(Yc(e),(t=Nt)?(t=Dm(t,we),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ll!==null?{id:Ie,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=lh(t),l.return=e,e.child=l,le=e,Nt=null)):t=null,t===null)throw Ql(e);return e.lanes=536870912,null}return Ki(e,a)}var s=t.memoizedState;if(s!==null){var f=s.dehydrated;if(Yc(e),u)if(e.flags&256)e.flags&=-257,e=Sd(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Jt||dn(t,e,l,!1),u=(l&t.childLanes)!==0,Jt||u){if(a=Ct,a!==null&&(f=co(a,l),f!==0&&f!==s.retryLane))throw s.retryLane=f,xa(t,f),ge(a,t,f),cr;ls(),e=Sd(t,e,l)}else t=s.treeContext,Nt=Ge(f.nextSibling),le=e,vt=!0,Bl=null,we=!1,t!==null&&uh(e,t),e=Ki(e,a),e.flags|=4096;return e}return t=hl(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Vi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function rr(t,e,l,a,u){return za(e),l=Xc(t,e,l,a,void 0,u),a=Zc(),t!==null&&!Jt?(Kc(t,e,u),gl(t,e,u)):(vt&&a&&xc(e),e.flags|=1,ne(t,e,l,u),e.child)}function bd(t,e,l,a,u,s){return za(e),e.updateQueue=null,l=Rh(e,a,l,u),Th(t),a=Zc(),t!==null&&!Jt?(Kc(t,e,s),gl(t,e,s)):(vt&&a&&xc(e),e.flags|=1,ne(t,e,l,s),e.child)}function Ed(t,e,l,a,u){if(za(e),e.stateNode===null){var s=rn,f=l.contextType;typeof f=="object"&&f!==null&&(s=ae(f)),s=new l(a,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ir,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=a,s.state=e.memoizedState,s.refs={},Hc(e),f=l.contextType,s.context=typeof f=="object"&&f!==null?ae(f):rn,s.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(ur(e,l,f,a),s.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&ir.enqueueReplaceState(s,s.state,null),Eu(e,a,s,u),bu(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){s=e.stateNode;var h=e.memoizedProps,g=Ua(l,h);s.props=g;var z=s.context,N=l.contextType;f=rn,typeof N=="object"&&N!==null&&(f=ae(N));var B=l.getDerivedStateFromProps;N=typeof B=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,N||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||z!==f)&&sd(e,s,a,f),Yl=!1;var M=e.memoizedState;s.state=M,Eu(e,a,s,u),bu(),z=e.memoizedState,h||M!==z||Yl?(typeof B=="function"&&(ur(e,l,B,a),z=e.memoizedState),(g=Yl||id(e,l,g,a,M,z,f))?(N||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=z),s.props=a,s.state=z,s.context=f,a=g):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{s=e.stateNode,qc(t,e),f=e.memoizedProps,N=Ua(l,f),s.props=N,B=e.pendingProps,M=s.context,z=l.contextType,g=rn,typeof z=="object"&&z!==null&&(g=ae(z)),h=l.getDerivedStateFromProps,(z=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==B||M!==g)&&sd(e,s,a,g),Yl=!1,M=e.memoizedState,s.state=M,Eu(e,a,s,u),bu();var D=e.memoizedState;f!==B||M!==D||Yl||t!==null&&t.dependencies!==null&&Ai(t.dependencies)?(typeof h=="function"&&(ur(e,l,h,a),D=e.memoizedState),(N=Yl||id(e,l,N,a,M,D,g)||t!==null&&t.dependencies!==null&&Ai(t.dependencies))?(z||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,D,g),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,D,g)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===t.memoizedProps&&M===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&M===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=D),s.props=a,s.state=D,s.context=g,a=N):(typeof s.componentDidUpdate!="function"||f===t.memoizedProps&&M===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&M===t.memoizedState||(e.flags|=1024),a=!1)}return s=a,Vi(t,e),a=(e.flags&128)!==0,s||a?(s=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&a?(e.child=ja(e,t.child,null,u),e.child=ja(e,null,l,u)):ne(t,e,l,u),e.memoizedState=s.state,t=e.child):t=gl(t,e,u),t}function Td(t,e,l,a){return _a(),e.flags|=256,ne(t,e,l,a),e.child}var fr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function or(t){return{baseLanes:t,cachePool:oh()}}function hr(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ce),t}function Rd(t,e,l){var a=e.pendingProps,u=!1,s=(e.flags&128)!==0,f;if((f=s)||(f=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(u?Zl(e):Kl(),(t=Nt)?(t=Dm(t,we),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ll!==null?{id:Ie,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=lh(t),l.return=e,e.child=l,le=e,Nt=null)):t=null,t===null)throw Ql(e);return $r(t)?e.lanes=32:e.lanes=536870912,null}var h=a.children;return a=a.fallback,u?(Kl(),u=e.mode,h=Ji({mode:"hidden",children:h},u),a=Oa(a,u,l,null),h.return=e,a.return=e,h.sibling=a,e.child=h,a=e.child,a.memoizedState=or(l),a.childLanes=hr(t,f,l),e.memoizedState=fr,_u(null,a)):(Zl(e),dr(e,h))}var g=t.memoizedState;if(g!==null&&(h=g.dehydrated,h!==null)){if(s)e.flags&256?(Zl(e),e.flags&=-257,e=mr(t,e,l)):e.memoizedState!==null?(Kl(),e.child=t.child,e.flags|=128,e=null):(Kl(),h=a.fallback,u=e.mode,a=Ji({mode:"visible",children:a.children},u),h=Oa(h,u,l,null),h.flags|=2,a.return=e,h.return=e,a.sibling=h,e.child=a,ja(e,t.child,null,l),a=e.child,a.memoizedState=or(l),a.childLanes=hr(t,f,l),e.memoizedState=fr,e=_u(null,a));else if(Zl(e),$r(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var z=f.dgst;f=z,a=Error(r(419)),a.stack="",a.digest=f,mu({value:a,source:null,stack:null}),e=mr(t,e,l)}else if(Jt||dn(t,e,l,!1),f=(l&t.childLanes)!==0,Jt||f){if(f=Ct,f!==null&&(a=co(f,l),a!==0&&a!==g.retryLane))throw g.retryLane=a,xa(t,a),ge(f,t,a),cr;Jr(h)||ls(),e=mr(t,e,l)}else Jr(h)?(e.flags|=192,e.child=t.child,e=null):(t=g.treeContext,Nt=Ge(h.nextSibling),le=e,vt=!0,Bl=null,we=!1,t!==null&&uh(e,t),e=dr(e,a.children),e.flags|=4096);return e}return u?(Kl(),h=a.fallback,u=e.mode,g=t.child,z=g.sibling,a=hl(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&65011712,z!==null?h=hl(z,h):(h=Oa(h,u,l,null),h.flags|=2),h.return=e,a.return=e,a.sibling=h,e.child=a,_u(null,a),a=e.child,h=t.child.memoizedState,h===null?h=or(l):(u=h.cachePool,u!==null?(g=Kt._currentValue,u=u.parent!==g?{parent:g,pool:g}:u):u=oh(),h={baseLanes:h.baseLanes|l,cachePool:u}),a.memoizedState=h,a.childLanes=hr(t,f,l),e.memoizedState=fr,_u(t.child,a)):(Zl(e),l=t.child,t=l.sibling,l=hl(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function dr(t,e){return e=Ji({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ji(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function mr(t,e,l){return ja(e,t.child,null,l),t=dr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function xd(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Mc(t.return,e,l)}function yr(t,e,l,a,u,s){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u,treeForkCount:s}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=u,f.treeForkCount=s)}function Od(t,e,l){var a=e.pendingProps,u=a.revealOrder,s=a.tail;a=a.children;var f=Xt.current,h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,V(Xt,f),ne(t,e,a,l),a=vt?du:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xd(t,l,e);else if(t.tag===19)xd(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(l=e.child,u=null;l!==null;)t=l.alternate,t!==null&&Hi(t)===null&&(u=l),l=l.sibling;l=u,l===null?(u=e.child,e.child=null):(u=l.sibling,l.sibling=null),yr(e,!1,u,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Hi(t)===null){e.child=u;break}t=u.sibling,u.sibling=l,l=u,u=t}yr(e,!0,l,null,s,a);break;case"together":yr(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function gl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),$l|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(dn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=hl(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=hl(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function vr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ai(t)))}function tp(t,e,l){switch(e.tag){case 3:ce(e,e.stateNode.containerInfo),wl(e,Kt,t.memoizedState.cache),_a();break;case 27:case 5:Pn(e);break;case 4:ce(e,e.stateNode.containerInfo);break;case 10:wl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Yc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Zl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Rd(t,e,l):(Zl(e),t=gl(t,e,l),t!==null?t.sibling:null);Zl(e);break;case 19:var u=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(dn(t,e,l,!1),a=(l&e.childLanes)!==0),u){if(a)return Od(t,e,l);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),V(Xt,Xt.current),a)break;return null;case 22:return e.lanes=0,pd(t,e,l,e.pendingProps);case 24:wl(e,Kt,t.memoizedState.cache)}return gl(t,e,l)}function _d(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Jt=!0;else{if(!vr(t,l)&&(e.flags&128)===0)return Jt=!1,tp(t,e,l);Jt=(t.flags&131072)!==0}else Jt=!1,vt&&(e.flags&1048576)!==0&&nh(e,du,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ca(e.elementType),e.type=t,typeof t=="function")Ec(t)?(a=Ua(t,a),e.tag=1,e=Ed(null,e,t,a,l)):(e.tag=0,e=rr(null,e,t,a,l));else{if(t!=null){var u=t.$$typeof;if(u===G){e.tag=11,e=md(null,e,t,a,l);break t}else if(u===W){e.tag=14,e=yd(null,e,t,a,l);break t}}throw e=te(t)||t,Error(r(306,e,""))}}return e;case 0:return rr(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,u=Ua(a,e.pendingProps),Ed(t,e,a,u,l);case 3:t:{if(ce(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var s=e.memoizedState;u=s.element,qc(t,e),Eu(e,a,null,l);var f=e.memoizedState;if(a=f.cache,wl(e,Kt,a),a!==s.cache&&Cc(e,[Kt],l,!0),bu(),a=f.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=Td(t,e,a,l);break t}else if(a!==u){u=Le(Error(r(424)),e),mu(u),e=Td(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Nt=Ge(t.firstChild),le=e,vt=!0,Bl=null,we=!0,l=ph(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(_a(),a===u){e=gl(t,e,l);break t}ne(t,e,a,l)}e=e.child}return e;case 26:return Vi(t,e),t===null?(l=Lm(e.type,null,e.pendingProps,null))?e.memoizedState=l:vt||(l=e.type,t=e.pendingProps,a=rs(ot.current).createElement(l),a[ee]=e,a[he]=t,ue(a,l,t),Wt(a),e.stateNode=a):e.memoizedState=Lm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pn(e),t===null&&vt&&(a=e.stateNode=Um(e.type,e.pendingProps,ot.current),le=e,we=!0,u=Nt,Il(e.type)?(Fr=u,Nt=Ge(a.firstChild)):Nt=u),ne(t,e,e.pendingProps.children,l),Vi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((u=a=Nt)&&(a=Cp(a,e.type,e.pendingProps,we),a!==null?(e.stateNode=a,le=e,Nt=Ge(a.firstChild),we=!1,u=!0):u=!1),u||Ql(e)),Pn(e),u=e.type,s=e.pendingProps,f=t!==null?t.memoizedProps:null,a=s.children,Zr(u,s)?a=null:f!==null&&Zr(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=Xc(t,e,K0,null,null,l),Yu._currentValue=u),Vi(t,e),ne(t,e,a,l),e.child;case 6:return t===null&&vt&&((t=l=Nt)&&(l=Dp(l,e.pendingProps,we),l!==null?(e.stateNode=l,le=e,Nt=null,t=!0):t=!1),t||Ql(e)),null;case 13:return Rd(t,e,l);case 4:return ce(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ja(e,null,a,l):ne(t,e,a,l),e.child;case 11:return md(t,e,e.type,e.pendingProps,l);case 7:return ne(t,e,e.pendingProps,l),e.child;case 8:return ne(t,e,e.pendingProps.children,l),e.child;case 12:return ne(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,wl(e,e.type,a.value),ne(t,e,a.children,l),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,za(e),u=ae(u),a=a(u),e.flags|=1,ne(t,e,a,l),e.child;case 14:return yd(t,e,e.type,e.pendingProps,l);case 15:return vd(t,e,e.type,e.pendingProps,l);case 19:return Od(t,e,l);case 31:return I0(t,e,l);case 22:return pd(t,e,l,e.pendingProps);case 24:return za(e),a=ae(Kt),t===null?(u=Nc(),u===null&&(u=Ct,s=Dc(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=l),u=s),e.memoizedState={parent:a,cache:u},Hc(e),wl(e,Kt,u)):((t.lanes&l)!==0&&(qc(t,e),Eu(e,null,null,l),bu()),u=t.memoizedState,s=e.memoizedState,u.parent!==a?(u={parent:a,cache:a},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),wl(e,Kt,a)):(a=s.cache,wl(e,Kt,a),a!==u.cache&&Cc(e,[Kt],l,!0))),ne(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Sl(t){t.flags|=4}function pr(t,e,l,a,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Id())t.flags|=8192;else throw Da=Di,Uc}else t.flags&=-16777217}function Ad(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Gm(e))if(Id())t.flags|=8192;else throw Da=Di,Uc}function $i(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?uo():536870912,t.lanes|=e,On|=e)}function Au(t,e){if(!vt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var u=t.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function ep(t,e,l){var a=e.pendingProps;switch(Oc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),yl(Kt),Gt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(hn(e)?Sl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ac())),Ut(e),null;case 26:var u=e.type,s=e.memoizedState;return t===null?(Sl(e),s!==null?(Ut(e),Ad(e,s)):(Ut(e),pr(e,u,null,a,l))):s?s!==t.memoizedState?(Sl(e),Ut(e),Ad(e,s)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Sl(e),Ut(e),pr(e,u,t,a,l)),null;case 27:if(ui(e),l=ot.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Sl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Ut(e),null}t=F.current,hn(e)?ih(e):(t=Um(u,a,l),e.stateNode=t,Sl(e))}return Ut(e),null;case 5:if(ui(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Sl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Ut(e),null}if(s=F.current,hn(e))ih(e);else{var f=rs(ot.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?f.createElement(u,{is:a.is}):f.createElement(u)}}s[ee]=e,s[he]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=s;t:switch(ue(s,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Sl(e)}}return Ut(e),pr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Sl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=ot.current,hn(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,u=le,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[ee]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Rm(t.nodeValue,l)),t||Ql(e,!0)}else t=rs(t).createTextNode(a),t[ee]=e,e.stateNode=t}return Ut(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=hn(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ee]=e}else _a(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else l=Ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ze(e),e):(ze(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Ut(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=hn(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ee]=e}else _a(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),u=!1}else u=Ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(ze(e),e):(ze(e),null)}return ze(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==u&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),$i(e,e.updateQueue),Ut(e),null);case 4:return Gt(),t===null&&Qr(e.stateNode.containerInfo),Ut(e),null;case 10:return yl(e.type),Ut(e),null;case 19:if(Q(Xt),a=e.memoizedState,a===null)return Ut(e),null;if(u=(e.flags&128)!==0,s=a.rendering,s===null)if(u)Au(a,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=Hi(t),s!==null){for(e.flags|=128,Au(a,!1),t=s.updateQueue,e.updateQueue=t,$i(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)eh(l,t),l=l.sibling;return V(Xt,Xt.current&1|2),vt&&dl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Te()>Ii&&(e.flags|=128,u=!0,Au(a,!1),e.lanes=4194304)}else{if(!u)if(t=Hi(s),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,$i(e,t),Au(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!vt)return Ut(e),null}else 2*Te()-a.renderingStartTime>Ii&&l!==536870912&&(e.flags|=128,u=!0,Au(a,!1),e.lanes=4194304);a.isBackwards?(s.sibling=e.child,e.child=s):(t=a.last,t!==null?t.sibling=s:e.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Te(),t.sibling=null,l=Xt.current,V(Xt,u?l&1|2:l&1),vt&&dl(e,a.treeForkCount),t):(Ut(e),null);case 22:case 23:return ze(e),wc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),l=e.updateQueue,l!==null&&$i(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&Q(Ma),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),yl(Kt),Ut(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function lp(t,e){switch(Oc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return yl(Kt),Gt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ui(e),null;case 31:if(e.memoizedState!==null){if(ze(e),e.alternate===null)throw Error(r(340));_a()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ze(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));_a()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Xt),null;case 4:return Gt(),null;case 10:return yl(e.type),null;case 22:case 23:return ze(e),wc(),t!==null&&Q(Ma),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return yl(Kt),null;case 25:return null;default:return null}}function zd(t,e){switch(Oc(e),e.tag){case 3:yl(Kt),Gt();break;case 26:case 27:case 5:ui(e);break;case 4:Gt();break;case 31:e.memoizedState!==null&&ze(e);break;case 13:ze(e);break;case 19:Q(Xt);break;case 10:yl(e.type);break;case 22:case 23:ze(e),wc(),t!==null&&Q(Ma);break;case 24:yl(Kt)}}function zu(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&t)===t){a=void 0;var s=l.create,f=l.inst;a=s(),f.destroy=a}l=l.next}while(l!==u)}}catch(h){xt(e,e.return,h)}}function Vl(t,e,l){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var s=u.next;a=s;do{if((a.tag&t)===t){var f=a.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,u=e;var g=l,z=h;try{z()}catch(N){xt(u,g,N)}}}a=a.next}while(a!==s)}}catch(N){xt(e,e.return,N)}}function Md(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Sh(e,l)}catch(a){xt(t,t.return,a)}}}function Cd(t,e,l){l.props=Ua(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){xt(t,e,a)}}function Mu(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(u){xt(t,e,u)}}function el(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){xt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){xt(t,e,u)}else l.current=null}function Dd(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(u){xt(t,t.return,u)}}function gr(t,e,l){try{var a=t.stateNode;xp(a,t.type,l,e),a[he]=e}catch(u){xt(t,t.return,u)}}function jd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Il(t.type)||t.tag===4}function Sr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||jd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Il(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function br(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=fl));else if(a!==4&&(a===27&&Il(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(br(t,e,l),t=t.sibling;t!==null;)br(t,e,l),t=t.sibling}function Fi(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Il(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Fi(t,e,l),t=t.sibling;t!==null;)Fi(t,e,l),t=t.sibling}function Nd(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ue(e,a,l),e[ee]=t,e[he]=l}catch(s){xt(t,t.return,s)}}var bl=!1,$t=!1,Er=!1,Ud=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function ap(t,e){if(t=t.containerInfo,Gr=vs,t=Vo(t),mc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break t}var f=0,h=-1,g=-1,z=0,N=0,B=t,M=null;e:for(;;){for(var D;B!==l||u!==0&&B.nodeType!==3||(h=f+u),B!==s||a!==0&&B.nodeType!==3||(g=f+a),B.nodeType===3&&(f+=B.nodeValue.length),(D=B.firstChild)!==null;)M=B,B=D;for(;;){if(B===t)break e;if(M===l&&++z===u&&(h=f),M===s&&++N===a&&(g=f),(D=B.nextSibling)!==null)break;B=M,M=B.parentNode}B=D}l=h===-1||g===-1?null:{start:h,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(Xr={focusedElem:t,selectionRange:l},vs=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){switch(e=Pt,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)u=t[l],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,l=e,u=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var $=Ua(l.type,u);t=a.getSnapshotBeforeUpdate($,s),a.__reactInternalSnapshotBeforeUpdate=t}catch(lt){xt(l,l.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Vr(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Vr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}}function Hd(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Tl(t,l),a&4&&zu(5,l);break;case 1:if(Tl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){xt(l,l.return,f)}else{var u=Ua(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){xt(l,l.return,f)}}a&64&&Md(l),a&512&&Mu(l,l.return);break;case 3:if(Tl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Sh(t,e)}catch(f){xt(l,l.return,f)}}break;case 27:e===null&&a&4&&Nd(l);case 26:case 5:Tl(t,l),e===null&&a&4&&Dd(l),a&512&&Mu(l,l.return);break;case 12:Tl(t,l);break;case 31:Tl(t,l),a&4&&Bd(t,l);break;case 13:Tl(t,l),a&4&&Qd(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=hp.bind(null,l),jp(t,l))));break;case 22:if(a=l.memoizedState!==null||bl,!a){e=e!==null&&e.memoizedState!==null||$t,u=bl;var s=$t;bl=a,($t=e)&&!s?Rl(t,l,(l.subtreeFlags&8772)!==0):Tl(t,l),bl=u,$t=s}break;case 30:break;default:Tl(t,l)}}function qd(t){var e=t.alternate;e!==null&&(t.alternate=null,qd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ws(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ht=null,me=!1;function El(t,e,l){for(l=l.child;l!==null;)Ld(t,e,l),l=l.sibling}function Ld(t,e,l){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(In,l)}catch{}switch(l.tag){case 26:$t||el(l,e),El(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:$t||el(l,e);var a=Ht,u=me;Il(l.type)&&(Ht=l.stateNode,me=!1),El(t,e,l),Bu(l.stateNode),Ht=a,me=u;break;case 5:$t||el(l,e);case 6:if(a=Ht,u=me,Ht=null,El(t,e,l),Ht=a,me=u,Ht!==null)if(me)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(l.stateNode)}catch(s){xt(l,e,s)}else try{Ht.removeChild(l.stateNode)}catch(s){xt(l,e,s)}break;case 18:Ht!==null&&(me?(t=Ht,Mm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Nn(t)):Mm(Ht,l.stateNode));break;case 4:a=Ht,u=me,Ht=l.stateNode.containerInfo,me=!0,El(t,e,l),Ht=a,me=u;break;case 0:case 11:case 14:case 15:Vl(2,l,e),$t||Vl(4,l,e),El(t,e,l);break;case 1:$t||(el(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Cd(l,e,a)),El(t,e,l);break;case 21:El(t,e,l);break;case 22:$t=(a=$t)||l.memoizedState!==null,El(t,e,l),$t=a;break;default:El(t,e,l)}}function Bd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Nn(t)}catch(l){xt(e,e.return,l)}}}function Qd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Nn(t)}catch(l){xt(e,e.return,l)}}function np(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ud),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ud),e;default:throw Error(r(435,t.tag))}}function ki(t,e){var l=np(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var u=dp.bind(null,t,a);a.then(u,u)}})}function ye(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],s=t,f=e,h=f;t:for(;h!==null;){switch(h.tag){case 27:if(Il(h.type)){Ht=h.stateNode,me=!1;break t}break;case 5:Ht=h.stateNode,me=!1;break t;case 3:case 4:Ht=h.stateNode.containerInfo,me=!0;break t}h=h.return}if(Ht===null)throw Error(r(160));Ld(s,f,u),Ht=null,me=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)wd(e,t),e=e.sibling}var $e=null;function wd(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ve(t),a&4&&(Vl(3,t,t.return),zu(3,t),Vl(5,t,t.return));break;case 1:ye(e,t),ve(t),a&512&&($t||l===null||el(l,l.return)),a&64&&bl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var u=$e;if(ye(e,t),ve(t),a&512&&($t||l===null||el(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,u=u.ownerDocument||u;e:switch(a){case"title":s=u.getElementsByTagName("title")[0],(!s||s[lu]||s[ee]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(a),u.head.insertBefore(s,u.querySelector("head > title"))),ue(s,a,l),s[ee]=t,Wt(s),a=s;break t;case"link":var f=wm("link","href",u).get(a+(l.href||""));if(f){for(var h=0;h<f.length;h++)if(s=f[h],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(h,1);break e}}s=u.createElement(a),ue(s,a,l),u.head.appendChild(s);break;case"meta":if(f=wm("meta","content",u).get(a+(l.content||""))){for(h=0;h<f.length;h++)if(s=f[h],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(h,1);break e}}s=u.createElement(a),ue(s,a,l),u.head.appendChild(s);break;default:throw Error(r(468,a))}s[ee]=t,Wt(s),a=s}t.stateNode=a}else Ym(u,t.type,t.stateNode);else t.stateNode=Qm(u,a,t.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?Ym(u,t.type,t.stateNode):Qm(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&gr(t,t.memoizedProps,l.memoizedProps)}break;case 27:ye(e,t),ve(t),a&512&&($t||l===null||el(l,l.return)),l!==null&&a&4&&gr(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ye(e,t),ve(t),a&512&&($t||l===null||el(l,l.return)),t.flags&32){u=t.stateNode;try{en(u,"")}catch($){xt(t,t.return,$)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,gr(t,u,l!==null?l.memoizedProps:u)),a&1024&&(Er=!0);break;case 6:if(ye(e,t),ve(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch($){xt(t,t.return,$)}}break;case 3:if(hs=null,u=$e,$e=fs(e.containerInfo),ye(e,t),$e=u,ve(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Nn(e.containerInfo)}catch($){xt(t,t.return,$)}Er&&(Er=!1,Yd(t));break;case 4:a=$e,$e=fs(t.stateNode.containerInfo),ye(e,t),ve(t),$e=a;break;case 12:ye(e,t),ve(t);break;case 31:ye(e,t),ve(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ki(t,a)));break;case 13:ye(e,t),ve(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Pi=Te()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ki(t,a)));break;case 22:u=t.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,z=bl,N=$t;if(bl=z||u,$t=N||g,ye(e,t),$t=N,bl=z,ve(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(l===null||g||bl||$t||Ha(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){g=l=e;try{if(s=g.stateNode,u)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=g.stateNode;var B=g.memoizedProps.style,M=B!=null&&B.hasOwnProperty("display")?B.display:null;h.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch($){xt(g,g.return,$)}}}else if(e.tag===6){if(l===null){g=e;try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch($){xt(g,g.return,$)}}}else if(e.tag===18){if(l===null){g=e;try{var D=g.stateNode;u?Cm(D,!0):Cm(g.stateNode,!1)}catch($){xt(g,g.return,$)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ki(t,l))));break;case 19:ye(e,t),ve(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ki(t,a)));break;case 30:break;case 21:break;default:ye(e,t),ve(t)}}function ve(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(jd(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var u=l.stateNode,s=Sr(t);Fi(t,s,u);break;case 5:var f=l.stateNode;l.flags&32&&(en(f,""),l.flags&=-33);var h=Sr(t);Fi(t,h,f);break;case 3:case 4:var g=l.stateNode.containerInfo,z=Sr(t);br(t,z,g);break;default:throw Error(r(161))}}catch(N){xt(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Yd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Yd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Tl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Hd(t,e.alternate,e),e=e.sibling}function Ha(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Vl(4,e,e.return),Ha(e);break;case 1:el(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Cd(e,e.return,l),Ha(e);break;case 27:Bu(e.stateNode);case 26:case 5:el(e,e.return),Ha(e);break;case 22:e.memoizedState===null&&Ha(e);break;case 30:Ha(e);break;default:Ha(e)}t=t.sibling}}function Rl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,u=t,s=e,f=s.flags;switch(s.tag){case 0:case 11:case 15:Rl(u,s,l),zu(4,s);break;case 1:if(Rl(u,s,l),a=s,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){xt(a,a.return,z)}if(a=s,u=a.updateQueue,u!==null){var h=a.stateNode;try{var g=u.shared.hiddenCallbacks;if(g!==null)for(u.shared.hiddenCallbacks=null,u=0;u<g.length;u++)gh(g[u],h)}catch(z){xt(a,a.return,z)}}l&&f&64&&Md(s),Mu(s,s.return);break;case 27:Nd(s);case 26:case 5:Rl(u,s,l),l&&a===null&&f&4&&Dd(s),Mu(s,s.return);break;case 12:Rl(u,s,l);break;case 31:Rl(u,s,l),l&&f&4&&Bd(u,s);break;case 13:Rl(u,s,l),l&&f&4&&Qd(u,s);break;case 22:s.memoizedState===null&&Rl(u,s,l),Mu(s,s.return);break;case 30:break;default:Rl(u,s,l)}e=e.sibling}}function Tr(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&yu(l))}function Rr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yu(t))}function Fe(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gd(t,e,l,a),e=e.sibling}function Gd(t,e,l,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,l,a),u&2048&&zu(9,e);break;case 1:Fe(t,e,l,a);break;case 3:Fe(t,e,l,a),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yu(t)));break;case 12:if(u&2048){Fe(t,e,l,a),t=e.stateNode;try{var s=e.memoizedProps,f=s.id,h=s.onPostCommit;typeof h=="function"&&h(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){xt(e,e.return,g)}}else Fe(t,e,l,a);break;case 31:Fe(t,e,l,a);break;case 13:Fe(t,e,l,a);break;case 23:break;case 22:s=e.stateNode,f=e.alternate,e.memoizedState!==null?s._visibility&2?Fe(t,e,l,a):Cu(t,e):s._visibility&2?Fe(t,e,l,a):(s._visibility|=2,Tn(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Tr(f,e);break;case 24:Fe(t,e,l,a),u&2048&&Rr(e.alternate,e);break;default:Fe(t,e,l,a)}}function Tn(t,e,l,a,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,f=e,h=l,g=a,z=f.flags;switch(f.tag){case 0:case 11:case 15:Tn(s,f,h,g,u),zu(8,f);break;case 23:break;case 22:var N=f.stateNode;f.memoizedState!==null?N._visibility&2?Tn(s,f,h,g,u):Cu(s,f):(N._visibility|=2,Tn(s,f,h,g,u)),u&&z&2048&&Tr(f.alternate,f);break;case 24:Tn(s,f,h,g,u),u&&z&2048&&Rr(f.alternate,f);break;default:Tn(s,f,h,g,u)}e=e.sibling}}function Cu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,u=a.flags;switch(a.tag){case 22:Cu(l,a),u&2048&&Tr(a.alternate,a);break;case 24:Cu(l,a),u&2048&&Rr(a.alternate,a);break;default:Cu(l,a)}e=e.sibling}}var Du=8192;function Rn(t,e,l){if(t.subtreeFlags&Du)for(t=t.child;t!==null;)Xd(t,e,l),t=t.sibling}function Xd(t,e,l){switch(t.tag){case 26:Rn(t,e,l),t.flags&Du&&t.memoizedState!==null&&Zp(l,$e,t.memoizedState,t.memoizedProps);break;case 5:Rn(t,e,l);break;case 3:case 4:var a=$e;$e=fs(t.stateNode.containerInfo),Rn(t,e,l),$e=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Du,Du=16777216,Rn(t,e,l),Du=a):Rn(t,e,l));break;default:Rn(t,e,l)}}function Zd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ju(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Pt=a,Vd(a,t)}Zd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Kd(t),t=t.sibling}function Kd(t){switch(t.tag){case 0:case 11:case 15:ju(t),t.flags&2048&&Vl(9,t,t.return);break;case 3:ju(t);break;case 12:ju(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Wi(t)):ju(t);break;default:ju(t)}}function Wi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Pt=a,Vd(a,t)}Zd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Vl(8,e,e.return),Wi(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Wi(e));break;default:Wi(e)}t=t.sibling}}function Vd(t,e){for(;Pt!==null;){var l=Pt;switch(l.tag){case 0:case 11:case 15:Vl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:yu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Pt=a;else t:for(l=t;Pt!==null;){a=Pt;var u=a.sibling,s=a.return;if(qd(a),a===l){Pt=null;break t}if(u!==null){u.return=s,Pt=u;break t}Pt=s}}}var up={getCacheForType:function(t){var e=ae(Kt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return ae(Kt).controller.signal}},ip=typeof WeakMap=="function"?WeakMap:Map,bt=0,Ct=null,ht=null,mt=0,Rt=0,Me=null,Jl=!1,xn=!1,xr=!1,xl=0,Bt=0,$l=0,qa=0,Or=0,Ce=0,On=0,Nu=null,pe=null,_r=!1,Pi=0,Jd=0,Ii=1/0,ts=null,Fl=null,Ft=0,kl=null,_n=null,Ol=0,Ar=0,zr=null,$d=null,Uu=0,Mr=null;function De(){return(bt&2)!==0&&mt!==0?mt&-mt:q.T!==null?Hr():ro()}function Fd(){if(Ce===0)if((mt&536870912)===0||vt){var t=ci;ci<<=1,(ci&3932160)===0&&(ci=262144),Ce=t}else Ce=536870912;return t=Ae.current,t!==null&&(t.flags|=32),Ce}function ge(t,e,l){(t===Ct&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(An(t,0),Wl(t,mt,Ce,!1)),eu(t,l),((bt&2)===0||t!==Ct)&&(t===Ct&&((bt&2)===0&&(qa|=l),Bt===4&&Wl(t,mt,Ce,!1)),ll(t))}function kd(t,e,l){if((bt&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||tu(t,e),u=a?rp(t,e):Dr(t,e,!0),s=a;do{if(u===0){xn&&!a&&Wl(t,e,0,!1);break}else{if(l=t.current.alternate,s&&!sp(l)){u=Dr(t,e,!1),s=!1;continue}if(u===2){if(s=e,t.errorRecoveryDisabledLanes&s)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var h=t;u=Nu;var g=h.current.memoizedState.isDehydrated;if(g&&(An(h,f).flags|=256),f=Dr(h,f,!1),f!==2){if(xr&&!g){h.errorRecoveryDisabledLanes|=s,qa|=s,u=4;break t}s=pe,pe=u,s!==null&&(pe===null?pe=s:pe.push.apply(pe,s))}u=f}if(s=!1,u!==2)continue}}if(u===1){An(t,0),Wl(t,e,0,!0);break}t:{switch(a=t,s=u,s){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Wl(a,e,Ce,!Jl);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=Pi+300-Te(),10<u)){if(Wl(a,e,Ce,!Jl),fi(a,0,!0)!==0)break t;Ol=e,a.timeoutHandle=Am(Wd.bind(null,a,l,pe,ts,_r,e,Ce,qa,On,Jl,s,"Throttled",-0,0),u);break t}Wd(a,l,pe,ts,_r,e,Ce,qa,On,Jl,s,null,-0,0)}}break}while(!0);ll(t)}function Wd(t,e,l,a,u,s,f,h,g,z,N,B,M,D){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fl},Xd(e,s,B);var $=(s&62914560)===s?Pi-Te():(s&4194048)===s?Jd-Te():0;if($=Kp(B,$),$!==null){Ol=s,t.cancelPendingCommit=$(um.bind(null,t,e,s,l,a,u,f,h,g,N,B,null,M,D)),Wl(t,s,f,!z);return}}um(t,e,s,l,a,u,f,h,g)}function sp(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var u=l[a],s=u.getSnapshot;u=u.value;try{if(!Oe(s(),u))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Wl(t,e,l,a){e&=~Or,e&=~qa,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var u=e;0<u;){var s=31-xe(u),f=1<<s;a[s]=-1,u&=~f}l!==0&&io(t,l,e)}function es(){return(bt&6)===0?(Hu(0),!1):!0}function Cr(){if(ht!==null){if(Rt===0)var t=ht.return;else t=ht,ml=Aa=null,Vc(t),pn=null,pu=0,t=ht;for(;t!==null;)zd(t.alternate,t),t=t.return;ht=null}}function An(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Ap(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Ol=0,Cr(),Ct=t,ht=l=hl(t.current,null),mt=e,Rt=0,Me=null,Jl=!1,xn=tu(t,e),xr=!1,On=Ce=Or=qa=$l=Bt=0,pe=Nu=null,_r=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var u=31-xe(a),s=1<<u;e|=t[u],a&=~s}return xl=e,Ti(),l}function Pd(t,e){st=null,q.H=Ou,e===vn||e===Ci?(e=mh(),Rt=3):e===Uc?(e=mh(),Rt=4):Rt=e===cr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Me=e,ht===null&&(Bt=1,Zi(t,Le(e,t.current)))}function Id(){var t=Ae.current;return t===null?!0:(mt&4194048)===mt?Ye===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Ye:!1}function tm(){var t=q.H;return q.H=Ou,t===null?Ou:t}function em(){var t=q.A;return q.A=up,t}function ls(){Bt=4,Jl||(mt&4194048)!==mt&&Ae.current!==null||(xn=!0),($l&134217727)===0&&(qa&134217727)===0||Ct===null||Wl(Ct,mt,Ce,!1)}function Dr(t,e,l){var a=bt;bt|=2;var u=tm(),s=em();(Ct!==t||mt!==e)&&(ts=null,An(t,e)),e=!1;var f=Bt;t:do try{if(Rt!==0&&ht!==null){var h=ht,g=Me;switch(Rt){case 8:Cr(),f=6;break t;case 3:case 2:case 9:case 6:Ae.current===null&&(e=!0);var z=Rt;if(Rt=0,Me=null,zn(t,h,g,z),l&&xn){f=0;break t}break;default:z=Rt,Rt=0,Me=null,zn(t,h,g,z)}}cp(),f=Bt;break}catch(N){Pd(t,N)}while(!0);return e&&t.shellSuspendCounter++,ml=Aa=null,bt=a,q.H=u,q.A=s,ht===null&&(Ct=null,mt=0,Ti()),f}function cp(){for(;ht!==null;)lm(ht)}function rp(t,e){var l=bt;bt|=2;var a=tm(),u=em();Ct!==t||mt!==e?(ts=null,Ii=Te()+500,An(t,e)):xn=tu(t,e);t:do try{if(Rt!==0&&ht!==null){e=ht;var s=Me;e:switch(Rt){case 1:Rt=0,Me=null,zn(t,e,s,1);break;case 2:case 9:if(hh(s)){Rt=0,Me=null,am(e);break}e=function(){Rt!==2&&Rt!==9||Ct!==t||(Rt=7),ll(t)},s.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:hh(s)?(Rt=0,Me=null,am(e)):(Rt=0,Me=null,zn(t,e,s,7));break;case 5:var f=null;switch(ht.tag){case 26:f=ht.memoizedState;case 5:case 27:var h=ht;if(f?Gm(f):h.stateNode.complete){Rt=0,Me=null;var g=h.sibling;if(g!==null)ht=g;else{var z=h.return;z!==null?(ht=z,as(z)):ht=null}break e}}Rt=0,Me=null,zn(t,e,s,5);break;case 6:Rt=0,Me=null,zn(t,e,s,6);break;case 8:Cr(),Bt=6;break t;default:throw Error(r(462))}}fp();break}catch(N){Pd(t,N)}while(!0);return ml=Aa=null,q.H=a,q.A=u,bt=l,ht!==null?0:(Ct=null,mt=0,Ti(),Bt)}function fp(){for(;ht!==null&&!Nv();)lm(ht)}function lm(t){var e=_d(t.alternate,t,xl);t.memoizedProps=t.pendingProps,e===null?as(t):ht=e}function am(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=bd(l,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=bd(l,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Vc(e);default:zd(l,e),e=ht=eh(e,xl),e=_d(l,e,xl)}t.memoizedProps=t.pendingProps,e===null?as(t):ht=e}function zn(t,e,l,a){ml=Aa=null,Vc(e),pn=null,pu=0;var u=e.return;try{if(P0(t,u,e,l,mt)){Bt=1,Zi(t,Le(l,t.current)),ht=null;return}}catch(s){if(u!==null)throw ht=u,s;Bt=1,Zi(t,Le(l,t.current)),ht=null;return}e.flags&32768?(vt||a===1?t=!0:xn||(mt&536870912)!==0?t=!1:(Jl=t=!0,(a===2||a===9||a===3||a===6)&&(a=Ae.current,a!==null&&a.tag===13&&(a.flags|=16384))),nm(e,t)):as(e)}function as(t){var e=t;do{if((e.flags&32768)!==0){nm(e,Jl);return}t=e.return;var l=ep(e.alternate,e,xl);if(l!==null){ht=l;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);Bt===0&&(Bt=5)}function nm(t,e){do{var l=lp(t.alternate,t);if(l!==null){l.flags&=32767,ht=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=l}while(t!==null);Bt=6,ht=null}function um(t,e,l,a,u,s,f,h,g){t.cancelPendingCommit=null;do ns();while(Ft!==0);if((bt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(s=e.lanes|e.childLanes,s|=Sc,Xv(t,l,s,f,h,g),t===Ct&&(ht=Ct=null,mt=0),_n=e,kl=t,Ol=l,Ar=s,zr=u,$d=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mp(ii,function(){return fm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=q.T,q.T=null,u=X.p,X.p=2,f=bt,bt|=4;try{ap(t,e,l)}finally{bt=f,X.p=u,q.T=a}}Ft=1,im(),sm(),cm()}}function im(){if(Ft===1){Ft=0;var t=kl,e=_n,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=q.T,q.T=null;var a=X.p;X.p=2;var u=bt;bt|=4;try{wd(e,t);var s=Xr,f=Vo(t.containerInfo),h=s.focusedElem,g=s.selectionRange;if(f!==h&&h&&h.ownerDocument&&Ko(h.ownerDocument.documentElement,h)){if(g!==null&&mc(h)){var z=g.start,N=g.end;if(N===void 0&&(N=z),"selectionStart"in h)h.selectionStart=z,h.selectionEnd=Math.min(N,h.value.length);else{var B=h.ownerDocument||document,M=B&&B.defaultView||window;if(M.getSelection){var D=M.getSelection(),$=h.textContent.length,lt=Math.min(g.start,$),zt=g.end===void 0?lt:Math.min(g.end,$);!D.extend&<>zt&&(f=zt,zt=lt,lt=f);var x=Zo(h,lt),b=Zo(h,zt);if(x&&b&&(D.rangeCount!==1||D.anchorNode!==x.node||D.anchorOffset!==x.offset||D.focusNode!==b.node||D.focusOffset!==b.offset)){var A=B.createRange();A.setStart(x.node,x.offset),D.removeAllRanges(),lt>zt?(D.addRange(A),D.extend(b.node,b.offset)):(A.setEnd(b.node,b.offset),D.addRange(A))}}}}for(B=[],D=h;D=D.parentNode;)D.nodeType===1&&B.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<B.length;h++){var L=B[h];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}vs=!!Gr,Xr=Gr=null}finally{bt=u,X.p=a,q.T=l}}t.current=e,Ft=2}}function sm(){if(Ft===2){Ft=0;var t=kl,e=_n,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=q.T,q.T=null;var a=X.p;X.p=2;var u=bt;bt|=4;try{Hd(t,e.alternate,e)}finally{bt=u,X.p=a,q.T=l}}Ft=3}}function cm(){if(Ft===4||Ft===3){Ft=0,Uv();var t=kl,e=_n,l=Ol,a=$d;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ft=5:(Ft=0,_n=kl=null,rm(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Fl=null),Fs(l),e=e.stateNode,Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(In,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=q.T,u=X.p,X.p=2,q.T=null;try{for(var s=t.onRecoverableError,f=0;f<a.length;f++){var h=a[f];s(h.value,{componentStack:h.stack})}}finally{q.T=e,X.p=u}}(Ol&3)!==0&&ns(),ll(t),u=t.pendingLanes,(l&261930)!==0&&(u&42)!==0?t===Mr?Uu++:(Uu=0,Mr=t):Uu=0,Hu(0)}}function rm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,yu(e)))}function ns(){return im(),sm(),cm(),fm()}function fm(){if(Ft!==5)return!1;var t=kl,e=Ar;Ar=0;var l=Fs(Ol),a=q.T,u=X.p;try{X.p=32>l?32:l,q.T=null,l=zr,zr=null;var s=kl,f=Ol;if(Ft=0,_n=kl=null,Ol=0,(bt&6)!==0)throw Error(r(331));var h=bt;if(bt|=4,Kd(s.current),Gd(s,s.current,f,l),bt=h,Hu(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(In,s)}catch{}return!0}finally{X.p=u,q.T=a,rm(t,e)}}function om(t,e,l){e=Le(l,e),e=sr(t.stateNode,e,2),t=Xl(t,e,2),t!==null&&(eu(t,2),ll(t))}function xt(t,e,l){if(t.tag===3)om(t,t,l);else for(;e!==null;){if(e.tag===3){om(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Fl===null||!Fl.has(a))){t=Le(l,t),l=hd(2),a=Xl(e,l,2),a!==null&&(dd(l,a,e,t),eu(a,2),ll(a));break}}e=e.return}}function jr(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new ip;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(l)||(xr=!0,u.add(l),t=op.bind(null,t,e,l),e.then(t,t))}function op(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Ct===t&&(mt&l)===l&&(Bt===4||Bt===3&&(mt&62914560)===mt&&300>Te()-Pi?(bt&2)===0&&An(t,0):Or|=l,On===mt&&(On=0)),ll(t)}function hm(t,e){e===0&&(e=uo()),t=xa(t,e),t!==null&&(eu(t,e),ll(t))}function hp(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),hm(t,l)}function dp(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),hm(t,l)}function mp(t,e){return Ks(t,e)}var us=null,Mn=null,Nr=!1,is=!1,Ur=!1,Pl=0;function ll(t){t!==Mn&&t.next===null&&(Mn===null?us=Mn=t:Mn=Mn.next=t),is=!0,Nr||(Nr=!0,vp())}function Hu(t,e){if(!Ur&&is){Ur=!0;do for(var l=!1,a=us;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var s=0;else{var f=a.suspendedLanes,h=a.pingedLanes;s=(1<<31-xe(42|t)+1)-1,s&=u&~(f&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,vm(a,s))}else s=mt,s=fi(a,a===Ct?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||tu(a,s)||(l=!0,vm(a,s));a=a.next}while(l);Ur=!1}}function yp(){dm()}function dm(){is=Nr=!1;var t=0;Pl!==0&&_p()&&(t=Pl);for(var e=Te(),l=null,a=us;a!==null;){var u=a.next,s=mm(a,e);s===0?(a.next=null,l===null?us=u:l.next=u,u===null&&(Mn=l)):(l=a,(t!==0||(s&3)!==0)&&(is=!0)),a=u}Ft!==0&&Ft!==5||Hu(t),Pl!==0&&(Pl=0)}function mm(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var f=31-xe(s),h=1<<f,g=u[f];g===-1?((h&l)===0||(h&a)!==0)&&(u[f]=Gv(h,e)):g<=e&&(t.expiredLanes|=h),s&=~h}if(e=Ct,l=mt,l=fi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Vs(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||tu(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Vs(a),Fs(l)){case 2:case 8:l=ao;break;case 32:l=ii;break;case 268435456:l=no;break;default:l=ii}return a=ym.bind(null,t),l=Ks(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Vs(a),t.callbackPriority=2,t.callbackNode=null,2}function ym(t,e){if(Ft!==0&&Ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ns()&&t.callbackNode!==l)return null;var a=mt;return a=fi(t,t===Ct?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(kd(t,a,e),mm(t,Te()),t.callbackNode!=null&&t.callbackNode===l?ym.bind(null,t):null)}function vm(t,e){if(ns())return null;kd(t,e,!0)}function vp(){zp(function(){(bt&6)!==0?Ks(lo,yp):dm()})}function Hr(){if(Pl===0){var t=mn;t===0&&(t=si,si<<=1,(si&261888)===0&&(si=256)),Pl=t}return Pl}function pm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:mi(""+t)}function gm(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function pp(t,e,l,a,u){if(e==="submit"&&l&&l.stateNode===u){var s=pm((u[he]||null).action),f=a.submitter;f&&(e=(e=f[he]||null)?pm(e.formAction):f.getAttribute("formAction"),e!==null&&(s=e,f=null));var h=new gi("action","action",null,a,u);t.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Pl!==0){var g=f?gm(u,f):new FormData(u);er(l,{pending:!0,data:g,method:u.method,action:s},null,g)}}else typeof s=="function"&&(h.preventDefault(),g=f?gm(u,f):new FormData(u),er(l,{pending:!0,data:g,method:u.method,action:s},s,g))},currentTarget:u}]})}}for(var qr=0;qr<gc.length;qr++){var Lr=gc[qr],gp=Lr.toLowerCase(),Sp=Lr[0].toUpperCase()+Lr.slice(1);Je(gp,"on"+Sp)}Je(Fo,"onAnimationEnd"),Je(ko,"onAnimationIteration"),Je(Wo,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(H0,"onTransitionRun"),Je(q0,"onTransitionStart"),Je(L0,"onTransitionCancel"),Je(Po,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("onPointerLeave",["pointerout","pointerover"]),ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qu));function Sm(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],u=a.event;a=a.listeners;t:{var s=void 0;if(e)for(var f=a.length-1;0<=f;f--){var h=a[f],g=h.instance,z=h.currentTarget;if(h=h.listener,g!==s&&u.isPropagationStopped())break t;s=h,u.currentTarget=z;try{s(u)}catch(N){Ei(N)}u.currentTarget=null,s=g}else for(f=0;f<a.length;f++){if(h=a[f],g=h.instance,z=h.currentTarget,h=h.listener,g!==s&&u.isPropagationStopped())break t;s=h,u.currentTarget=z;try{s(u)}catch(N){Ei(N)}u.currentTarget=null,s=g}}}}function dt(t,e){var l=e[ks];l===void 0&&(l=e[ks]=new Set);var a=t+"__bubble";l.has(a)||(bm(e,t,2,!1),l.add(a))}function Br(t,e,l){var a=0;e&&(a|=4),bm(l,t,a,e)}var ss="_reactListening"+Math.random().toString(36).slice(2);function Qr(t){if(!t[ss]){t[ss]=!0,ho.forEach(function(l){l!=="selectionchange"&&(bp.has(l)||Br(l,!1,t),Br(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ss]||(e[ss]=!0,Br("selectionchange",!1,e))}}function bm(t,e,l,a){switch(Fm(e)){case 2:var u=$p;break;case 8:u=Fp;break;default:u=tf}l=u.bind(null,e,l,t),u=void 0,!uc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(e,l,{capture:!0,passive:u}):t.addEventListener(e,l,!0):u!==void 0?t.addEventListener(e,l,{passive:u}):t.addEventListener(e,l,!1)}function wr(t,e,l,a,u){var s=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var h=a.stateNode.containerInfo;if(h===u)break;if(f===4)for(f=a.return;f!==null;){var g=f.tag;if((g===3||g===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;h!==null;){if(f=ka(h),f===null)return;if(g=f.tag,g===5||g===6||g===26||g===27){a=s=f;continue t}h=h.parentNode}}a=a.return}Oo(function(){var z=s,N=ac(l),B=[];t:{var M=Io.get(t);if(M!==void 0){var D=gi,$=t;switch(t){case"keypress":if(vi(l)===0)break t;case"keydown":case"keyup":D=d0;break;case"focusin":$="focus",D=rc;break;case"focusout":$="blur",D=rc;break;case"beforeblur":case"afterblur":D=rc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=zo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=e0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=v0;break;case Fo:case ko:case Wo:D=n0;break;case Po:D=g0;break;case"scroll":case"scrollend":D=Iv;break;case"wheel":D=b0;break;case"copy":case"cut":case"paste":D=i0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Co;break;case"toggle":case"beforetoggle":D=T0}var lt=(e&4)!==0,zt=!lt&&(t==="scroll"||t==="scrollend"),x=lt?M!==null?M+"Capture":null:M;lt=[];for(var b=z,A;b!==null;){var L=b;if(A=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||A===null||x===null||(L=nu(b,x),L!=null&<.push(Lu(b,L,A))),zt)break;b=b.return}0<lt.length&&(M=new D(M,$,null,l,N),B.push({event:M,listeners:lt}))}}if((e&7)===0){t:{if(M=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",M&&l!==lc&&($=l.relatedTarget||l.fromElement)&&(ka($)||$[Fa]))break t;if((D||M)&&(M=N.window===N?N:(M=N.ownerDocument)?M.defaultView||M.parentWindow:window,D?($=l.relatedTarget||l.toElement,D=z,$=$?ka($):null,$!==null&&(zt=d($),lt=$.tag,$!==zt||lt!==5&<!==27&<!==6)&&($=null)):(D=null,$=z),D!==$)){if(lt=zo,L="onMouseLeave",x="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(lt=Co,L="onPointerLeave",x="onPointerEnter",b="pointer"),zt=D==null?M:au(D),A=$==null?M:au($),M=new lt(L,b+"leave",D,l,N),M.target=zt,M.relatedTarget=A,L=null,ka(N)===z&&(lt=new lt(x,b+"enter",$,l,N),lt.target=A,lt.relatedTarget=zt,L=lt),zt=L,D&&$)e:{for(lt=Ep,x=D,b=$,A=0,L=x;L;L=lt(L))A++;L=0;for(var tt=b;tt;tt=lt(tt))L++;for(;0<A-L;)x=lt(x),A--;for(;0<L-A;)b=lt(b),L--;for(;A--;){if(x===b||b!==null&&x===b.alternate){lt=x;break e}x=lt(x),b=lt(b)}lt=null}else lt=null;D!==null&&Em(B,M,D,lt,!1),$!==null&&zt!==null&&Em(B,zt,$,lt,!0)}}t:{if(M=z?au(z):window,D=M.nodeName&&M.nodeName.toLowerCase(),D==="select"||D==="input"&&M.type==="file")var gt=Bo;else if(qo(M))if(Qo)gt=j0;else{gt=C0;var k=M0}else D=M.nodeName,!D||D.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?z&&ec(z.elementType)&&(gt=Bo):gt=D0;if(gt&&(gt=gt(t,z))){Lo(B,gt,l,N);break t}k&&k(t,M,z),t==="focusout"&&z&&M.type==="number"&&z.memoizedProps.value!=null&&tc(M,"number",M.value)}switch(k=z?au(z):window,t){case"focusin":(qo(k)||k.contentEditable==="true")&&(un=k,yc=z,hu=null);break;case"focusout":hu=yc=un=null;break;case"mousedown":vc=!0;break;case"contextmenu":case"mouseup":case"dragend":vc=!1,Jo(B,l,N);break;case"selectionchange":if(U0)break;case"keydown":case"keyup":Jo(B,l,N)}var ct;if(oc)t:{switch(t){case"compositionstart":var yt="onCompositionStart";break t;case"compositionend":yt="onCompositionEnd";break t;case"compositionupdate":yt="onCompositionUpdate";break t}yt=void 0}else nn?Uo(t,l)&&(yt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(yt="onCompositionStart");yt&&(Do&&l.locale!=="ko"&&(nn||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&nn&&(ct=_o()):(ql=N,ic="value"in ql?ql.value:ql.textContent,nn=!0)),k=cs(z,yt),0<k.length&&(yt=new Mo(yt,t,null,l,N),B.push({event:yt,listeners:k}),ct?yt.data=ct:(ct=Ho(l),ct!==null&&(yt.data=ct)))),(ct=x0?O0(t,l):_0(t,l))&&(yt=cs(z,"onBeforeInput"),0<yt.length&&(k=new Mo("onBeforeInput","beforeinput",null,l,N),B.push({event:k,listeners:yt}),k.data=ct)),pp(B,t,z,l,N)}Sm(B,e)})}function Lu(t,e,l){return{instance:t,listener:e,currentTarget:l}}function cs(t,e){for(var l=e+"Capture",a=[];t!==null;){var u=t,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=nu(t,l),u!=null&&a.unshift(Lu(t,u,s)),u=nu(t,e),u!=null&&a.push(Lu(t,u,s))),t.tag===3)return a;t=t.return}return[]}function Ep(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Em(t,e,l,a,u){for(var s=e._reactName,f=[];l!==null&&l!==a;){var h=l,g=h.alternate,z=h.stateNode;if(h=h.tag,g!==null&&g===a)break;h!==5&&h!==26&&h!==27||z===null||(g=z,u?(z=nu(l,s),z!=null&&f.unshift(Lu(l,z,g))):u||(z=nu(l,s),z!=null&&f.push(Lu(l,z,g)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var Tp=/\r\n?/g,Rp=/\u0000|\uFFFD/g;function Tm(t){return(typeof t=="string"?t:""+t).replace(Tp,`
|
|
50
|
+
`).replace(Rp,"")}function Rm(t,e){return e=Tm(e),Tm(t)===e}function At(t,e,l,a,u,s){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||en(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&en(t,""+a);break;case"className":hi(t,"class",a);break;case"tabIndex":hi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":hi(t,l,a);break;case"style":Ro(t,a,s);break;case"data":if(e!=="object"){hi(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=mi(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(l==="formAction"?(e!=="input"&&At(t,e,"name",u.name,u,null),At(t,e,"formEncType",u.formEncType,u,null),At(t,e,"formMethod",u.formMethod,u,null),At(t,e,"formTarget",u.formTarget,u,null)):(At(t,e,"encType",u.encType,u,null),At(t,e,"method",u.method,u,null),At(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=mi(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=fl);break;case"onScroll":a!=null&&dt("scroll",t);break;case"onScrollEnd":a!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=mi(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":dt("beforetoggle",t),dt("toggle",t),oi(t,"popover",a);break;case"xlinkActuate":rl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":rl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":rl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":rl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":rl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":rl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":rl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":rl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":rl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":oi(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Wv.get(l)||l,oi(t,l,a))}}function Yr(t,e,l,a,u,s){switch(l){case"style":Ro(t,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?en(t,a):(typeof a=="number"||typeof a=="bigint")&&en(t,""+a);break;case"onScroll":a!=null&&dt("scroll",t);break;case"onScrollEnd":a!=null&&dt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=fl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mo.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),e=l.slice(2,u?l.length-7:void 0),s=t[he]||null,s=s!=null?s[l]:null,typeof s=="function"&&t.removeEventListener(e,s,u),typeof a=="function")){typeof s!="function"&&s!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,u);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):oi(t,l,a)}}}function ue(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var a=!1,u=!1,s;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];if(f!=null)switch(s){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:At(t,e,s,f,l,null)}}u&&At(t,e,"srcSet",l.srcSet,l,null),a&&At(t,e,"src",l.src,l,null);return;case"input":dt("invalid",t);var h=s=f=u=null,g=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var N=l[a];if(N!=null)switch(a){case"name":u=N;break;case"type":f=N;break;case"checked":g=N;break;case"defaultChecked":z=N;break;case"value":s=N;break;case"defaultValue":h=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,e));break;default:At(t,e,a,N,l,null)}}So(t,s,h,g,z,f,u,!1);return;case"select":dt("invalid",t),a=f=s=null;for(u in l)if(l.hasOwnProperty(u)&&(h=l[u],h!=null))switch(u){case"value":s=h;break;case"defaultValue":f=h;break;case"multiple":a=h;default:At(t,e,u,h,l,null)}e=s,l=f,t.multiple=!!a,e!=null?tn(t,!!a,e,!1):l!=null&&tn(t,!!a,l,!0);return;case"textarea":dt("invalid",t),s=u=a=null;for(f in l)if(l.hasOwnProperty(f)&&(h=l[f],h!=null))switch(f){case"value":a=h;break;case"defaultValue":u=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:At(t,e,f,h,l,null)}Eo(t,a,u,s);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:At(t,e,g,a,l,null)}return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(a=0;a<qu.length;a++)dt(qu[a],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:At(t,e,z,a,l,null)}return;default:if(ec(e)){for(N in l)l.hasOwnProperty(N)&&(a=l[N],a!==void 0&&Yr(t,e,N,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&At(t,e,h,a,l,null))}function xp(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,s=null,f=null,h=null,g=null,z=null,N=null;for(D in l){var B=l[D];if(l.hasOwnProperty(D)&&B!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":g=B;default:a.hasOwnProperty(D)||At(t,e,D,null,a,B)}}for(var M in a){var D=a[M];if(B=l[M],a.hasOwnProperty(M)&&(D!=null||B!=null))switch(M){case"type":s=D;break;case"name":u=D;break;case"checked":z=D;break;case"defaultChecked":N=D;break;case"value":f=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:D!==B&&At(t,e,M,D,a,B)}}Is(t,f,h,g,z,N,s,u);return;case"select":D=f=h=M=null;for(s in l)if(g=l[s],l.hasOwnProperty(s)&&g!=null)switch(s){case"value":break;case"multiple":D=g;default:a.hasOwnProperty(s)||At(t,e,s,null,a,g)}for(u in a)if(s=a[u],g=l[u],a.hasOwnProperty(u)&&(s!=null||g!=null))switch(u){case"value":M=s;break;case"defaultValue":h=s;break;case"multiple":f=s;default:s!==g&&At(t,e,u,s,a,g)}e=h,l=f,a=D,M!=null?tn(t,!!l,M,!1):!!a!=!!l&&(e!=null?tn(t,!!l,e,!0):tn(t,!!l,l?[]:"",!1));return;case"textarea":D=M=null;for(h in l)if(u=l[h],l.hasOwnProperty(h)&&u!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:At(t,e,h,null,a,u)}for(f in a)if(u=a[f],s=l[f],a.hasOwnProperty(f)&&(u!=null||s!=null))switch(f){case"value":M=u;break;case"defaultValue":D=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==s&&At(t,e,f,u,a,s)}bo(t,M,D);return;case"option":for(var $ in l)if(M=l[$],l.hasOwnProperty($)&&M!=null&&!a.hasOwnProperty($))switch($){case"selected":t.selected=!1;break;default:At(t,e,$,null,a,M)}for(g in a)if(M=a[g],D=l[g],a.hasOwnProperty(g)&&M!==D&&(M!=null||D!=null))switch(g){case"selected":t.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:At(t,e,g,M,a,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var lt in l)M=l[lt],l.hasOwnProperty(lt)&&M!=null&&!a.hasOwnProperty(lt)&&At(t,e,lt,null,a,M);for(z in a)if(M=a[z],D=l[z],a.hasOwnProperty(z)&&M!==D&&(M!=null||D!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,e));break;default:At(t,e,z,M,a,D)}return;default:if(ec(e)){for(var zt in l)M=l[zt],l.hasOwnProperty(zt)&&M!==void 0&&!a.hasOwnProperty(zt)&&Yr(t,e,zt,void 0,a,M);for(N in a)M=a[N],D=l[N],!a.hasOwnProperty(N)||M===D||M===void 0&&D===void 0||Yr(t,e,N,M,a,D);return}}for(var x in l)M=l[x],l.hasOwnProperty(x)&&M!=null&&!a.hasOwnProperty(x)&&At(t,e,x,null,a,M);for(B in a)M=a[B],D=l[B],!a.hasOwnProperty(B)||M===D||M==null&&D==null||At(t,e,B,M,a,D)}function xm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Op(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var u=l[a],s=u.transferSize,f=u.initiatorType,h=u.duration;if(s&&h&&xm(f)){for(f=0,h=u.responseEnd,a+=1;a<l.length;a++){var g=l[a],z=g.startTime;if(z>h)break;var N=g.transferSize,B=g.initiatorType;N&&xm(B)&&(g=g.responseEnd,f+=N*(g<h?1:(h-z)/(g-z)))}if(--a,e+=8*(s+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Gr=null,Xr=null;function rs(t){return t.nodeType===9?t:t.ownerDocument}function Om(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _m(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Zr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Kr=null;function _p(){var t=window.event;return t&&t.type==="popstate"?t===Kr?!1:(Kr=t,!0):(Kr=null,!1)}var Am=typeof setTimeout=="function"?setTimeout:void 0,Ap=typeof clearTimeout=="function"?clearTimeout:void 0,zm=typeof Promise=="function"?Promise:void 0,zp=typeof queueMicrotask=="function"?queueMicrotask:typeof zm<"u"?function(t){return zm.resolve(null).then(t).catch(Mp)}:Am;function Mp(t){setTimeout(function(){throw t})}function Il(t){return t==="head"}function Mm(t,e){var l=e,a=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(u),Nn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Bu(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Bu(l);for(var s=l.firstChild;s;){var f=s.nextSibling,h=s.nodeName;s[lu]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=f}}else l==="body"&&Bu(t.ownerDocument.body);l=u}while(l);Nn(e)}function Cm(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Vr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Vr(l),Ws(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Cp(t,e,l,a){for(;t.nodeType===1;){var u=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[lu])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function Dp(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ge(t.nextSibling),t===null))return null;return t}function Dm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ge(t.nextSibling),t===null))return null;return t}function Jr(t){return t.data==="$?"||t.data==="$~"}function $r(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function jp(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Fr=null;function jm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ge(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Nm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Um(t,e,l){switch(e=rs(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Bu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ws(t)}var Xe=new Map,Hm=new Set;function fs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var _l=X.d;X.d={f:Np,r:Up,D:Hp,C:qp,L:Lp,m:Bp,X:wp,S:Qp,M:Yp};function Np(){var t=_l.f(),e=es();return t||e}function Up(t){var e=Wa(t);e!==null&&e.tag===5&&e.type==="form"?Ph(e):_l.r(t)}var Cn=typeof document>"u"?null:document;function qm(t,e,l){var a=Cn;if(a&&typeof e=="string"&&e){var u=He(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),Hm.has(u)||(Hm.add(u),t={rel:t,crossOrigin:l,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ue(e,"link",t),Wt(e),a.head.appendChild(e)))}}function Hp(t){_l.D(t),qm("dns-prefetch",t,null)}function qp(t,e){_l.C(t,e),qm("preconnect",t,e)}function Lp(t,e,l){_l.L(t,e,l);var a=Cn;if(a&&t&&e){var u='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+He(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+He(l.imageSizes)+'"]')):u+='[href="'+He(t)+'"]';var s=u;switch(e){case"style":s=Dn(t);break;case"script":s=jn(t)}Xe.has(s)||(t=E({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Xe.set(s,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(Qu(s))||e==="script"&&a.querySelector(wu(s))||(e=a.createElement("link"),ue(e,"link",t),Wt(e),a.head.appendChild(e)))}}function Bp(t,e){_l.m(t,e);var l=Cn;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+He(a)+'"][href="'+He(t)+'"]',s=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=jn(t)}if(!Xe.has(s)&&(t=E({rel:"modulepreload",href:t},e),Xe.set(s,t),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(wu(s)))return}a=l.createElement("link"),ue(a,"link",t),Wt(a),l.head.appendChild(a)}}}function Qp(t,e,l){_l.S(t,e,l);var a=Cn;if(a&&t){var u=Pa(a).hoistableStyles,s=Dn(t);e=e||"default";var f=u.get(s);if(!f){var h={loading:0,preload:null};if(f=a.querySelector(Qu(s)))h.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Xe.get(s))&&kr(t,l);var g=f=a.createElement("link");Wt(g),ue(g,"link",t),g._p=new Promise(function(z,N){g.onload=z,g.onerror=N}),g.addEventListener("load",function(){h.loading|=1}),g.addEventListener("error",function(){h.loading|=2}),h.loading|=4,os(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:h},u.set(s,f)}}}function wp(t,e){_l.X(t,e);var l=Cn;if(l&&t){var a=Pa(l).hoistableScripts,u=jn(t),s=a.get(u);s||(s=l.querySelector(wu(u)),s||(t=E({src:t,async:!0},e),(e=Xe.get(u))&&Wr(t,e),s=l.createElement("script"),Wt(s),ue(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(u,s))}}function Yp(t,e){_l.M(t,e);var l=Cn;if(l&&t){var a=Pa(l).hoistableScripts,u=jn(t),s=a.get(u);s||(s=l.querySelector(wu(u)),s||(t=E({src:t,async:!0,type:"module"},e),(e=Xe.get(u))&&Wr(t,e),s=l.createElement("script"),Wt(s),ue(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(u,s))}}function Lm(t,e,l,a){var u=(u=ot.current)?fs(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Dn(l.href),l=Pa(u).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Dn(l.href);var s=Pa(u).hoistableStyles,f=s.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,f),(s=u.querySelector(Qu(t)))&&!s._p&&(f.instance=s,f.state.loading=5),Xe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Xe.set(t,l),s||Gp(u,t,l,f.state))),e&&a===null)throw Error(r(528,""));return f}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=jn(l),l=Pa(u).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Dn(t){return'href="'+He(t)+'"'}function Qu(t){return'link[rel="stylesheet"]['+t+"]"}function Bm(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function Gp(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ue(e,"link",l),Wt(e),t.head.appendChild(e))}function jn(t){return'[src="'+He(t)+'"]'}function wu(t){return"script[async]"+t}function Qm(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+He(l.href)+'"]');if(a)return e.instance=a,Wt(a),a;var u=E({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Wt(a),ue(a,"style",u),os(a,l.precedence,t),e.instance=a;case"stylesheet":u=Dn(l.href);var s=t.querySelector(Qu(u));if(s)return e.state.loading|=4,e.instance=s,Wt(s),s;a=Bm(l),(u=Xe.get(u))&&kr(a,u),s=(t.ownerDocument||t).createElement("link"),Wt(s);var f=s;return f._p=new Promise(function(h,g){f.onload=h,f.onerror=g}),ue(s,"link",a),e.state.loading|=4,os(s,l.precedence,t),e.instance=s;case"script":return s=jn(l.src),(u=t.querySelector(wu(s)))?(e.instance=u,Wt(u),u):(a=l,(u=Xe.get(s))&&(a=E({},l),Wr(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Wt(u),ue(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,os(a,l.precedence,t));return e.instance}function os(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,s=u,f=0;f<a.length;f++){var h=a[f];if(h.dataset.precedence===e)s=h;else if(s!==u)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function kr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Wr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var hs=null;function wm(t,e,l){if(hs===null){var a=new Map,u=hs=new Map;u.set(l,a)}else u=hs,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),u=0;u<l.length;u++){var s=l[u];if(!(s[lu]||s[ee]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(e)||"";f=t+f;var h=a.get(f);h?h.push(s):a.set(f,[s])}}return a}function Ym(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Xp(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Gm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Zp(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=Dn(a.href),s=e.querySelector(Qu(u));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ds.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=s,Wt(s);return}s=e.ownerDocument||e,a=Bm(a),(u=Xe.get(u))&&kr(a,u),s=s.createElement("link"),Wt(s);var f=s;f._p=new Promise(function(h,g){f.onload=h,f.onerror=g}),ue(s,"link",a),l.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=ds.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Pr=0;function Kp(t,e){return t.stylesheets&&t.count===0&&ys(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&ys(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&Pr===0&&(Pr=62500*Op());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ys(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>Pr?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function ds(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ys(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ms=null;function ys(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ms=new Map,e.forEach(Vp,t),ms=null,ds.call(t))}function Vp(t,e){if(!(e.state.loading&4)){var l=ms.get(t);if(l)var a=l.get(null);else{l=new Map,ms.set(t,l);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var f=u[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}u=e.instance,f=u.getAttribute("data-precedence"),s=l.get(f)||a,s===a&&l.set(null,u),l.set(f,u),this.count++,a=ds.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),s?s.parentNode.insertBefore(u,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Yu={$$typeof:K,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function Jp(t,e,l,a,u,s,f,h,g){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Js(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Js(0),this.hiddenUpdates=Js(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Xm(t,e,l,a,u,s,f,h,g,z,N,B){return t=new Jp(t,e,l,f,g,z,N,B,h),e=1,s===!0&&(e|=24),s=_e(3,null,null,e),t.current=s,s.stateNode=t,e=Dc(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:e},Hc(s),t}function Zm(t){return t?(t=rn,t):rn}function Km(t,e,l,a,u,s){u=Zm(u),a.context===null?a.context=u:a.pendingContext=u,a=Gl(e),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=Xl(t,a,e),l!==null&&(ge(l,t,e),Su(l,t,e))}function Vm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Ir(t,e){Vm(t,e),(t=t.alternate)&&Vm(t,e)}function Jm(t){if(t.tag===13||t.tag===31){var e=xa(t,67108864);e!==null&&ge(e,t,67108864),Ir(t,67108864)}}function $m(t){if(t.tag===13||t.tag===31){var e=De();e=$s(e);var l=xa(t,e);l!==null&&ge(l,t,e),Ir(t,e)}}var vs=!0;function $p(t,e,l,a){var u=q.T;q.T=null;var s=X.p;try{X.p=2,tf(t,e,l,a)}finally{X.p=s,q.T=u}}function Fp(t,e,l,a){var u=q.T;q.T=null;var s=X.p;try{X.p=8,tf(t,e,l,a)}finally{X.p=s,q.T=u}}function tf(t,e,l,a){if(vs){var u=ef(a);if(u===null)wr(t,e,a,ps,l),km(t,a);else if(Wp(u,t,e,l,a))a.stopPropagation();else if(km(t,a),e&4&&-1<kp.indexOf(t)){for(;u!==null;){var s=Wa(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=Sa(s.pendingLanes);if(f!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var g=1<<31-xe(f);h.entanglements[1]|=g,f&=~g}ll(s),(bt&6)===0&&(Ii=Te()+500,Hu(0))}}break;case 31:case 13:h=xa(s,2),h!==null&&ge(h,s,2),es(),Ir(s,2)}if(s=ef(a),s===null&&wr(t,e,a,ps,l),s===u)break;u=s}u!==null&&a.stopPropagation()}else wr(t,e,a,null,l)}}function ef(t){return t=ac(t),lf(t)}var ps=null;function lf(t){if(ps=null,t=ka(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=p(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ps=t,null}function Fm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Hv()){case lo:return 2;case ao:return 8;case ii:case qv:return 32;case no:return 268435456;default:return 32}default:return 32}}var af=!1,ta=null,ea=null,la=null,Gu=new Map,Xu=new Map,aa=[],kp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function km(t,e){switch(t){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Gu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xu.delete(e.pointerId)}}function Zu(t,e,l,a,u,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[u]},e!==null&&(e=Wa(e),e!==null&&Jm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Wp(t,e,l,a,u){switch(e){case"focusin":return ta=Zu(ta,t,e,l,a,u),!0;case"dragenter":return ea=Zu(ea,t,e,l,a,u),!0;case"mouseover":return la=Zu(la,t,e,l,a,u),!0;case"pointerover":var s=u.pointerId;return Gu.set(s,Zu(Gu.get(s)||null,t,e,l,a,u)),!0;case"gotpointercapture":return s=u.pointerId,Xu.set(s,Zu(Xu.get(s)||null,t,e,l,a,u)),!0}return!1}function Wm(t){var e=ka(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,fo(t.priority,function(){$m(l)});return}}else if(e===31){if(e=p(l),e!==null){t.blockedOn=e,fo(t.priority,function(){$m(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function gs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=ef(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);lc=a,l.target.dispatchEvent(a),lc=null}else return e=Wa(l),e!==null&&Jm(e),t.blockedOn=l,!1;e.shift()}return!0}function Pm(t,e,l){gs(t)&&l.delete(e)}function Pp(){af=!1,ta!==null&&gs(ta)&&(ta=null),ea!==null&&gs(ea)&&(ea=null),la!==null&&gs(la)&&(la=null),Gu.forEach(Pm),Xu.forEach(Pm)}function Ss(t,e){t.blockedOn===e&&(t.blockedOn=null,af||(af=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Pp)))}var bs=null;function Im(t){bs!==t&&(bs=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){bs===t&&(bs=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(lf(a||l)===null)continue;break}var s=Wa(l);s!==null&&(t.splice(e,3),e-=3,er(s,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function Nn(t){function e(g){return Ss(g,t)}ta!==null&&Ss(ta,t),ea!==null&&Ss(ea,t),la!==null&&Ss(la,t),Gu.forEach(e),Xu.forEach(e);for(var l=0;l<aa.length;l++){var a=aa[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<aa.length&&(l=aa[0],l.blockedOn===null);)Wm(l),l.blockedOn===null&&aa.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],s=l[a+1],f=u[he]||null;if(typeof s=="function")f||Im(l);else if(f){var h=null;if(s&&s.hasAttribute("formAction")){if(u=s,f=s[he]||null)h=f.formAction;else if(lf(u)!==null)continue}else h=f.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Im(l)}}}function ty(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function nf(t){this._internalRoot=t}Es.prototype.render=nf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=De();Km(l,a,t,e,null,null)},Es.prototype.unmount=nf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Km(t.current,2,null,t,null,null),es(),e[Fa]=null}};function Es(t){this._internalRoot=t}Es.prototype.unstable_scheduleHydration=function(t){if(t){var e=ro();t={blockedOn:null,target:t,priority:e};for(var l=0;l<aa.length&&e!==0&&e<aa[l].priority;l++);aa.splice(l,0,t),l===0&&Wm(t)}};var ey=i.version;if(ey!=="19.2.8")throw Error(r(527,ey,"19.2.8"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(e),t=t!==null?_(t):null,t=t===null?null:t.stateNode,t};var Ip={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ts.isDisabled&&Ts.supportsFiber)try{In=Ts.inject(Ip),Re=Ts}catch{}}return Vu.createRoot=function(t,e){if(!o(t))throw Error(r(299));var l=!1,a="",u=cd,s=rd,f=fd;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Xm(t,1,!1,null,null,l,a,null,u,s,f,ty),t[Fa]=e.current,Qr(t),new nf(e)},Vu.hydrateRoot=function(t,e,l){if(!o(t))throw Error(r(299));var a=!1,u="",s=cd,f=rd,h=fd,g=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),e=Xm(t,1,!0,e,l??null,a,u,g,s,f,h,ty),e.context=Zm(null),l=e.current,a=De(),a=$s(a),u=Gl(a),u.callback=null,Xl(l,u,a),l=a,e.current.lanes=l,eu(e,l),ll(e),t[Fa]=e.current,Qr(t),new Es(e)},Vu.version="19.2.8",Vu}var hy;function hg(){if(hy)return rf.exports;hy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),rf.exports=og(),rf.exports}var dg=hg();const mg=Wy(dg);var $n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qa,sa,Hn,wy,yg=(wy=class extends $n{constructor(){super();P(this,Qa);P(this,sa);P(this,Hn);Z(this,Hn,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){S(this,sa)||this.setEventListener(S(this,Hn))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,sa))==null||i.call(this),Z(this,sa,void 0))}setEventListener(i){var c;Z(this,Hn,i),(c=S(this,sa))==null||c.call(this),Z(this,sa,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){S(this,Qa)!==i&&(Z(this,Qa,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(c=>{c(i)})}isFocused(){var i;return typeof S(this,Qa)=="boolean"?S(this,Qa):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Qa=new WeakMap,sa=new WeakMap,Hn=new WeakMap,wy),wf=new yg,vg={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},ca,Bf,Yy,pg=(Yy=class{constructor(){P(this,ca,vg);P(this,Bf,!1)}setTimeoutProvider(n){Z(this,ca,n)}setTimeout(n,i){return S(this,ca).setTimeout(n,i)}clearTimeout(n){S(this,ca).clearTimeout(n)}setInterval(n,i){return S(this,ca).setInterval(n,i)}clearInterval(n){S(this,ca).clearInterval(n)}},ca=new WeakMap,Bf=new WeakMap,Yy),Ba=new pg;function gg(n){setTimeout(n,0)}var Sg=typeof window>"u"||"Deno"in globalThis;function oe(){}function bg(n,i){return typeof n=="function"?n(i):n}function gf(n){return typeof n=="number"&&n>=0&&n!==1/0}function Py(n,i){return Math.max(n+(i||0)-Date.now(),0)}function va(n,i){return typeof n=="function"?n(i):n}function Ne(n,i){return typeof n=="function"?n(i):n}function dy(n,i){const{type:c="all",exact:r,fetchStatus:o,predicate:d,queryKey:y,stale:p}=n;if(y){if(r){if(i.queryHash!==Yf(y,i.options))return!1}else if(!Fu(i.queryKey,y))return!1}if(c!=="all"){const v=i.isActive();if(c==="active"&&!v||c==="inactive"&&v)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||o&&o!==i.state.fetchStatus||d&&!d(i))}function my(n,i){const{exact:c,status:r,predicate:o,mutationKey:d}=n;if(d){if(!i.options.mutationKey)return!1;if(c){if($a(i.options.mutationKey)!==$a(d))return!1}else if(!Fu(i.options.mutationKey,d))return!1}return!(r&&i.state.status!==r||o&&!o(i))}function Yf(n,i){return((i==null?void 0:i.queryKeyHashFn)||$a)(n)}function $a(n){return JSON.stringify(n,(i,c)=>Sf(c)?Object.keys(c).sort().reduce((r,o)=>(r[o]=c[o],r),{}):c)}function Fu(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(c=>Fu(n[c],i[c])):!1}var Eg=Object.prototype.hasOwnProperty;function Iy(n,i,c=0){if(n===i)return n;if(c>500)return i;const r=yy(n)&&yy(i);if(!r&&!(Sf(n)&&Sf(i)))return i;const d=(r?n:Object.keys(n)).length,y=r?i:Object.keys(i),p=y.length,v=r?new Array(p):{};let m=0;for(let _=0;_<p;_++){const E=r?_:y[_],C=n[E],U=i[E];if(C===U){v[E]=C,(r?_<d:Eg.call(n,E))&&m++;continue}if(C===null||U===null||typeof C!="object"||typeof U!="object"){v[E]=U;continue}const j=Iy(C,U,c+1);v[E]=j,j===C&&m++}return d===p&&m===d?n:v}function Cs(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const c in n)if(n[c]!==i[c])return!1;return!0}function yy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Sf(n){if(!vy(n))return!1;const i=n.constructor;if(i===void 0)return!0;const c=i.prototype;return!(!vy(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function vy(n){return Object.prototype.toString.call(n)==="[object Object]"}function Tg(n){return new Promise(i=>{Ba.setTimeout(i,n)})}function bf(n,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,i):c.structuralSharing!==!1?Iy(n,i):i}function Rg(n,i,c=0){const r=[...n,i];return c&&r.length>c?r.slice(1):r}function xg(n,i,c=0){const r=[i,...n];return c&&r.length>c?r.slice(0,-1):r}var Gf=Symbol();function tv(n,i){return!n.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!n.queryFn||n.queryFn===Gf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Xf(n,i){return typeof n=="function"?n(...i):!!n}function Og(n,i,c){let r=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=i()),r||(r=!0,o.aborted?c():o.addEventListener("abort",c,{once:!0})),o)}),n}var ku=(()=>{let n=()=>Sg;return{isServer(){return n()},setIsServer(i){n=i}}})();function Ef(){let n,i;const c=new Promise((o,d)=>{n=o,i=d});c.status="pending",c.catch(()=>{});function r(o){Object.assign(c,o),delete c.resolve,delete c.reject}return c.resolve=o=>{r({status:"fulfilled",value:o}),n(o)},c.reject=o=>{r({status:"rejected",reason:o}),i(o)},c}var _g=gg;function Ag(){let n=[],i=0,c=p=>{p()},r=p=>{p()},o=_g;const d=p=>{i?n.push(p):o(()=>{c(p)})},y=()=>{const p=n;n=[],p.length&&o(()=>{r(()=>{p.forEach(v=>{c(v)})})})};return{batch:p=>{let v;i++;try{v=p()}finally{i--,i||y()}return v},batchCalls:p=>(...v)=>{d(()=>{p(...v)})},schedule:d,setNotifyFunction:p=>{c=p},setBatchNotifyFunction:p=>{r=p},setScheduler:p=>{o=p}}}var kt=Ag(),qn,ra,Ln,Gy,zg=(Gy=class extends $n{constructor(){super();P(this,qn,!0);P(this,ra);P(this,Ln);Z(this,Ln,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",r)}}})}onSubscribe(){S(this,ra)||this.setEventListener(S(this,Ln))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,ra))==null||i.call(this),Z(this,ra,void 0))}setEventListener(i){var c;Z(this,Ln,i),(c=S(this,ra))==null||c.call(this),Z(this,ra,i(this.setOnline.bind(this)))}setOnline(i){S(this,qn)!==i&&(Z(this,qn,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return S(this,qn)}},qn=new WeakMap,ra=new WeakMap,Ln=new WeakMap,Gy),Ds=new zg;function Mg(n){return Math.min(1e3*2**n,3e4)}function ev(n){return(n??"online")==="online"?Ds.isOnline():!0}var Tf=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function lv(n){let i=!1,c=0,r;const o=Ef(),d=()=>o.status!=="pending",y=H=>{var w;if(!d()){const Y=new Tf(H);C(Y),(w=n.onCancel)==null||w.call(n,Y)}},p=()=>{i=!0},v=()=>{i=!1},m=()=>wf.isFocused()&&(n.networkMode==="always"||Ds.isOnline())&&n.canRun(),_=()=>ev(n.networkMode)&&n.canRun(),E=H=>{d()||(r==null||r(),o.resolve(H))},C=H=>{d()||(r==null||r(),o.reject(H))},U=()=>new Promise(H=>{var w;r=Y=>{(d()||m())&&H(Y)},(w=n.onPause)==null||w.call(n)}).then(()=>{var H;r=void 0,d()||(H=n.onContinue)==null||H.call(n)}),j=()=>{if(d())return;let H;const w=c===0?n.initialPromise:void 0;try{H=w??n.fn()}catch(Y){H=Promise.reject(Y)}Promise.resolve(H).then(E).catch(Y=>{var at;if(d())return;const I=n.retry??(ku.isServer()?0:3),K=n.retryDelay??Mg,G=typeof K=="function"?K(c,Y):K,J=I===!0||typeof I=="number"&&c<I||typeof I=="function"&&I(c,Y);if(i||!J){C(Y);return}c++,(at=n.onFail)==null||at.call(n,c,Y),Tg(G).then(()=>m()?void 0:U()).then(()=>{i?C(Y):j()})})};return{promise:o,status:()=>o.status,cancel:y,continue:()=>(r==null||r(),o),cancelRetry:p,continueRetry:v,canStart:_,start:()=>(_()?j():U().then(j),o)}}var wa,Xy,av=(Xy=class{constructor(){P(this,wa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gf(this.gcTime)&&Z(this,wa,Ba.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ku.isServer()?1/0:300*1e3))}clearGcTimeout(){S(this,wa)!==void 0&&(Ba.clearTimeout(S(this,wa)),Z(this,wa,void 0))}},wa=new WeakMap,Xy);function Cg(n){return{onFetch:(i,c)=>{var _,E,C,U,j;const r=i.options,o=(C=(E=(_=i.fetchOptions)==null?void 0:_.meta)==null?void 0:E.fetchMore)==null?void 0:C.direction,d=((U=i.state.data)==null?void 0:U.pages)||[],y=((j=i.state.data)==null?void 0:j.pageParams)||[];let p={pages:[],pageParams:[]},v=0;const m=async()=>{let H=!1;const w=K=>{Og(K,()=>i.signal,()=>H=!0)},Y=tv(i.options,i.fetchOptions),I=async(K,G,J)=>{if(H)return Promise.reject(i.signal.reason);if(G==null&&K.pages.length)return Promise.resolve(K);const W=(()=>{const wt={client:i.client,queryKey:i.queryKey,pageParam:G,direction:J?"backward":"forward",meta:i.options.meta};return w(wt),wt})(),et=await Y(W),{maxPages:ft}=i.options,Dt=J?xg:Rg;return{pages:Dt(K.pages,et,ft),pageParams:Dt(K.pageParams,G,ft)}};if(o&&d.length){const K=o==="backward",G=K?Dg:py,J={pages:d,pageParams:y},at=G(r,J);p=await I(J,at,K)}else{const K=n??d.length;do{const G=v===0?y[0]??r.initialPageParam:py(r,p);if(v>0&&G==null)break;p=await I(p,G),v++}while(v<K)}return p};i.options.persister?i.fetchFn=()=>{var H,w;return(w=(H=i.options).persister)==null?void 0:w.call(H,m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},c)}:i.fetchFn=m}}}function py(n,{pages:i,pageParams:c}){const r=i.length-1;return i.length>0?n.getNextPageParam(i[r],i,c[r],c):void 0}function Dg(n,{pages:i,pageParams:c}){var r;return i.length>0?(r=n.getPreviousPageParam)==null?void 0:r.call(n,i[0],i,c[0],c):void 0}var Bn,Ya,Qn,Ke,Ga,It,Pu,Xa,je,nv,Al,Zy,jg=(Zy=class extends av{constructor(i){super();P(this,je);P(this,Bn);P(this,Ya);P(this,Qn);P(this,Ke);P(this,Ga);P(this,It);P(this,Pu);P(this,Xa);Z(this,Xa,!1),Z(this,Pu,i.defaultOptions),this.setOptions(i.options),this.observers=[],Z(this,Ga,i.client),Z(this,Ke,S(this,Ga).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,Z(this,Ya,Sy(this.options)),this.state=i.state??S(this,Ya),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return S(this,Bn)}get promise(){var i;return(i=S(this,It))==null?void 0:i.promise}setOptions(i){if(this.options={...S(this,Pu),...i},i!=null&&i._type&&Z(this,Bn,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const c=Sy(this.options);c.data!==void 0&&(this.setState(gy(c.data,c.dataUpdatedAt)),Z(this,Ya,c))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Ke).remove(this)}setData(i,c){const r=bf(this.state.data,i,this.options);return rt(this,je,Al).call(this,{data:r,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),r}setState(i){rt(this,je,Al).call(this,{type:"setState",state:i})}cancel(i){var r,o;const c=(r=S(this,It))==null?void 0:r.promise;return(o=S(this,It))==null||o.cancel(i),c?c.then(oe).catch(oe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return S(this,Ya)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Ne(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>va(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!Py(this.state.dataUpdatedAt,i)}onFocus(){var c;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(c=S(this,It))==null||c.continue()}onOnline(){var c;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(c=S(this,It))==null||c.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),S(this,Ke).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(c=>c!==i),this.observers.length||(S(this,It)&&(S(this,Xa)||rt(this,je,nv).call(this)?S(this,It).cancel({revert:!0}):S(this,It).cancelRetry()),this.scheduleGc()),S(this,Ke).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rt(this,je,Al).call(this,{type:"invalidate"})}async fetch(i,c){var m,_,E,C,U,j,H,w,Y,I,K;if(this.state.fetchStatus!=="idle"&&((m=S(this,It))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(S(this,It))return S(this,It).continueRetry(),S(this,It).promise}if(i&&this.setOptions(i),!this.options.queryFn){const G=this.observers.find(J=>J.options.queryFn);G&&this.setOptions(G.options)}const r=new AbortController,o=G=>{Object.defineProperty(G,"signal",{enumerable:!0,get:()=>(Z(this,Xa,!0),r.signal)})},d=()=>{const G=tv(this.options,c),at=(()=>{const W={client:S(this,Ga),queryKey:this.queryKey,meta:this.meta};return o(W),W})();return Z(this,Xa,!1),this.options.persister?this.options.persister(G,at,this):G(at)},p=(()=>{const G={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:S(this,Ga),state:this.state,fetchFn:d};return o(G),G})(),v=S(this,Bn)==="infinite"?Cg(this.options.pages):this.options.behavior;v==null||v.onFetch(p,this),Z(this,Qn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((_=p.fetchOptions)==null?void 0:_.meta))&&rt(this,je,Al).call(this,{type:"fetch",meta:(E=p.fetchOptions)==null?void 0:E.meta}),Z(this,It,lv({initialPromise:c==null?void 0:c.initialPromise,fn:p.fetchFn,onCancel:G=>{G instanceof Tf&&G.revert&&this.setState({...S(this,Qn),fetchStatus:"idle"}),r.abort()},onFail:(G,J)=>{rt(this,je,Al).call(this,{type:"failed",failureCount:G,error:J})},onPause:()=>{rt(this,je,Al).call(this,{type:"pause"})},onContinue:()=>{rt(this,je,Al).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const G=await S(this,It).start();if(G===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(G),(U=(C=S(this,Ke).config).onSuccess)==null||U.call(C,G,this),(H=(j=S(this,Ke).config).onSettled)==null||H.call(j,G,this.state.error,this),G}catch(G){if(G instanceof Tf){if(G.silent)return S(this,It).promise;if(G.revert){if(this.state.data===void 0)throw G;return this.state.data}}throw rt(this,je,Al).call(this,{type:"error",error:G}),(Y=(w=S(this,Ke).config).onError)==null||Y.call(w,G,this),(K=(I=S(this,Ke).config).onSettled)==null||K.call(I,this.state.data,G,this),G}finally{this.scheduleGc()}}},Bn=new WeakMap,Ya=new WeakMap,Qn=new WeakMap,Ke=new WeakMap,Ga=new WeakMap,It=new WeakMap,Pu=new WeakMap,Xa=new WeakMap,je=new WeakSet,nv=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Al=function(i){const c=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...uv(r.data,this.options),fetchMeta:i.meta??null};case"success":const o={...r,...gy(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Z(this,Qn,i.manual?o:void 0),o;case"error":const d=i.error;return{...r,error:d,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=c(this.state),kt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,Ke).notify({query:this,type:"updated",action:i})})},Zy);function uv(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ev(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function gy(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Sy(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,c=i!==void 0,r=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:c?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Se,pt,Iu,fe,Za,wn,zl,fa,ti,Yn,Gn,Ka,Va,oa,Xn,Tt,$u,Rf,xf,Of,_f,Af,zf,Mf,iv,Ky,Ng=(Ky=class extends $n{constructor(i,c){super();P(this,Tt);P(this,Se);P(this,pt);P(this,Iu);P(this,fe);P(this,Za);P(this,wn);P(this,zl);P(this,fa);P(this,ti);P(this,Yn);P(this,Gn);P(this,Ka);P(this,Va);P(this,oa);P(this,Xn,new Set);this.options=c,Z(this,Se,i),Z(this,fa,null),Z(this,zl,Ef()),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,pt).addObserver(this),by(S(this,pt),this.options)?rt(this,Tt,$u).call(this):this.updateResult(),rt(this,Tt,_f).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cf(S(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cf(S(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,rt(this,Tt,Af).call(this),rt(this,Tt,zf).call(this),S(this,pt).removeObserver(this)}setOptions(i){const c=this.options,r=S(this,pt);if(this.options=S(this,Se).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ne(this.options.enabled,S(this,pt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");rt(this,Tt,Mf).call(this),S(this,pt).setOptions(this.options),c._defaulted&&!Cs(this.options,c)&&S(this,Se).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,pt),observer:this});const o=this.hasListeners();o&&Ey(S(this,pt),r,this.options,c)&&rt(this,Tt,$u).call(this),this.updateResult(),o&&(S(this,pt)!==r||Ne(this.options.enabled,S(this,pt))!==Ne(c.enabled,S(this,pt))||va(this.options.staleTime,S(this,pt))!==va(c.staleTime,S(this,pt)))&&rt(this,Tt,Rf).call(this);const d=rt(this,Tt,xf).call(this);o&&(S(this,pt)!==r||Ne(this.options.enabled,S(this,pt))!==Ne(c.enabled,S(this,pt))||d!==S(this,oa))&&rt(this,Tt,Of).call(this,d)}getOptimisticResult(i){const c=S(this,Se).getQueryCache().build(S(this,Se),i),r=this.createResult(c,i);return Hg(this,r)&&(Z(this,fe,r),Z(this,wn,this.options),Z(this,Za,S(this,pt).state)),r}getCurrentResult(){return S(this,fe)}trackResult(i,c){return new Proxy(i,{get:(r,o)=>(this.trackProp(o),c==null||c(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,zl).status==="pending"&&S(this,zl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(i){S(this,Xn).add(i)}getCurrentQuery(){return S(this,pt)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const c=S(this,Se).defaultQueryOptions(i),r=S(this,Se).getQueryCache().build(S(this,Se),c);return r.fetch().then(()=>this.createResult(r,c))}fetch(i){return rt(this,Tt,$u).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,fe)))}createResult(i,c){var ft;const r=S(this,pt),o=this.options,d=S(this,fe),y=S(this,Za),p=S(this,wn),m=i!==r?i.state:S(this,Iu),{state:_}=i;let E={..._},C=!1,U;if(c._optimisticResults){const Dt=this.hasListeners(),wt=!Dt&&by(i,c),Yt=Dt&&Ey(i,r,c,o);(wt||Yt)&&(E={...E,...uv(_.data,i.options)}),c._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:j,errorUpdatedAt:H,status:w}=E;U=E.data;let Y=!1;if(c.placeholderData!==void 0&&U===void 0&&w==="pending"){let Dt;d!=null&&d.isPlaceholderData&&c.placeholderData===(p==null?void 0:p.placeholderData)?(Dt=d.data,Y=!0):Dt=typeof c.placeholderData=="function"?c.placeholderData((ft=S(this,Gn))==null?void 0:ft.state.data,S(this,Gn)):c.placeholderData,Dt!==void 0&&(w="success",U=bf(d==null?void 0:d.data,Dt,c),C=!0)}if(c.select&&U!==void 0&&!Y)if(d&&U===(y==null?void 0:y.data)&&c.select===S(this,ti))U=S(this,Yn);else try{Z(this,ti,c.select),U=c.select(U),U=bf(d==null?void 0:d.data,U,c),Z(this,Yn,U),Z(this,fa,null)}catch(Dt){Z(this,fa,Dt)}S(this,fa)&&(j=S(this,fa),U=S(this,Yn),H=Date.now(),w="error");const I=E.fetchStatus==="fetching",K=w==="pending",G=w==="error",J=K&&I,at=U!==void 0,et={status:w,fetchStatus:E.fetchStatus,isPending:K,isSuccess:w==="success",isError:G,isInitialLoading:J,isLoading:J,data:U,dataUpdatedAt:E.dataUpdatedAt,error:j,errorUpdatedAt:H,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:E.dataUpdateCount>m.dataUpdateCount||E.errorUpdateCount>m.errorUpdateCount,isFetching:I,isRefetching:I&&!K,isLoadingError:G&&!at,isPaused:E.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:G&&at,isStale:Zf(i,c),refetch:this.refetch,promise:S(this,zl),isEnabled:Ne(c.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Dt=et.data!==void 0,wt=et.status==="error"&&!Dt,Yt=jt=>{wt?jt.reject(et.error):Dt&&jt.resolve(et.data)},Ee=()=>{const jt=Z(this,zl,et.promise=Ef());Yt(jt)},te=S(this,zl);switch(te.status){case"pending":i.queryHash===r.queryHash&&Yt(te);break;case"fulfilled":(wt||et.data!==te.value)&&Ee();break;case"rejected":(!wt||et.error!==te.reason)&&Ee();break}}return et}updateResult(){const i=S(this,fe),c=this.createResult(S(this,pt),this.options);if(Z(this,Za,S(this,pt).state),Z(this,wn,this.options),S(this,Za).data!==void 0&&Z(this,Gn,S(this,pt)),Cs(c,i))return;Z(this,fe,c);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!S(this,Xn).size)return!0;const y=new Set(d??S(this,Xn));return this.options.throwOnError&&y.add("error"),Object.keys(S(this,fe)).some(p=>{const v=p;return S(this,fe)[v]!==i[v]&&y.has(v)})};rt(this,Tt,iv).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&rt(this,Tt,_f).call(this)}},Se=new WeakMap,pt=new WeakMap,Iu=new WeakMap,fe=new WeakMap,Za=new WeakMap,wn=new WeakMap,zl=new WeakMap,fa=new WeakMap,ti=new WeakMap,Yn=new WeakMap,Gn=new WeakMap,Ka=new WeakMap,Va=new WeakMap,oa=new WeakMap,Xn=new WeakMap,Tt=new WeakSet,$u=function(i){rt(this,Tt,Mf).call(this);let c=S(this,pt).fetch(this.options,i);return i!=null&&i.throwOnError||(c=c.catch(oe)),c},Rf=function(){rt(this,Tt,Af).call(this);const i=va(this.options.staleTime,S(this,pt));if(ku.isServer()||S(this,fe).isStale||!gf(i))return;const r=Py(S(this,fe).dataUpdatedAt,i)+1;Z(this,Ka,Ba.setTimeout(()=>{S(this,fe).isStale||this.updateResult()},r))},xf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,pt)):this.options.refetchInterval)??!1},Of=function(i){rt(this,Tt,zf).call(this),Z(this,oa,i),!(ku.isServer()||Ne(this.options.enabled,S(this,pt))===!1||!gf(S(this,oa))||S(this,oa)===0)&&Z(this,Va,Ba.setInterval(()=>{(this.options.refetchIntervalInBackground||wf.isFocused())&&rt(this,Tt,$u).call(this)},S(this,oa)))},_f=function(){rt(this,Tt,Rf).call(this),rt(this,Tt,Of).call(this,rt(this,Tt,xf).call(this))},Af=function(){S(this,Ka)!==void 0&&(Ba.clearTimeout(S(this,Ka)),Z(this,Ka,void 0))},zf=function(){S(this,Va)!==void 0&&(Ba.clearInterval(S(this,Va)),Z(this,Va,void 0))},Mf=function(){const i=S(this,Se).getQueryCache().build(S(this,Se),this.options);if(i===S(this,pt))return;const c=S(this,pt);Z(this,pt,i),Z(this,Iu,i.state),this.hasListeners()&&(c==null||c.removeObserver(this),i.addObserver(this))},iv=function(i){kt.batch(()=>{i.listeners&&this.listeners.forEach(c=>{c(S(this,fe))}),S(this,Se).getQueryCache().notify({query:S(this,pt),type:"observerResultsUpdated"})})},Ky);function Ug(n,i){return Ne(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&Ne(i.retryOnMount,n)===!1)}function by(n,i){return Ug(n,i)||n.state.data!==void 0&&Cf(n,i,i.refetchOnMount)}function Cf(n,i,c){if(Ne(i.enabled,n)!==!1&&va(i.staleTime,n)!=="static"){const r=typeof c=="function"?c(n):c;return r==="always"||r!==!1&&Zf(n,i)}return!1}function Ey(n,i,c,r){return(n!==i||Ne(r.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&Zf(n,c)}function Zf(n,i){return Ne(i.enabled,n)!==!1&&n.isStaleByTime(va(i.staleTime,n))}function Hg(n,i){return!Cs(n.getCurrentResult(),i)}var ei,nl,se,Ja,ul,ua,Vy,qg=(Vy=class extends av{constructor(i){super();P(this,ul);P(this,ei);P(this,nl);P(this,se);P(this,Ja);Z(this,ei,i.client),this.mutationId=i.mutationId,Z(this,se,i.mutationCache),Z(this,nl,[]),this.state=i.state||sv(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){S(this,nl).includes(i)||(S(this,nl).push(i),this.clearGcTimeout(),S(this,se).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){Z(this,nl,S(this,nl).filter(c=>c!==i)),this.scheduleGc(),S(this,se).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){S(this,nl).length||(this.state.status==="pending"?this.scheduleGc():S(this,se).remove(this))}continue(){var i;return((i=S(this,Ja))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var y,p,v,m,_,E,C,U,j,H,w,Y,I,K,G,J,at,W;const c=()=>{rt(this,ul,ua).call(this,{type:"continue"})},r={client:S(this,ei),meta:this.options.meta,mutationKey:this.options.mutationKey};Z(this,Ja,lv({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(et,ft)=>{rt(this,ul,ua).call(this,{type:"failed",failureCount:et,error:ft})},onPause:()=>{rt(this,ul,ua).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,se).canRun(this)}));const o=this.state.status==="pending",d=!S(this,Ja).canStart();try{if(o)c();else{rt(this,ul,ua).call(this,{type:"pending",variables:i,isPaused:d}),S(this,se).config.onMutate&&await S(this,se).config.onMutate(i,this,r);const ft=await((p=(y=this.options).onMutate)==null?void 0:p.call(y,i,r));ft!==this.state.context&&rt(this,ul,ua).call(this,{type:"pending",context:ft,variables:i,isPaused:d})}const et=await S(this,Ja).start();return await((m=(v=S(this,se).config).onSuccess)==null?void 0:m.call(v,et,i,this.state.context,this,r)),await((E=(_=this.options).onSuccess)==null?void 0:E.call(_,et,i,this.state.context,r)),await((U=(C=S(this,se).config).onSettled)==null?void 0:U.call(C,et,null,this.state.variables,this.state.context,this,r)),await((H=(j=this.options).onSettled)==null?void 0:H.call(j,et,null,i,this.state.context,r)),rt(this,ul,ua).call(this,{type:"success",data:et}),et}catch(et){try{await((Y=(w=S(this,se).config).onError)==null?void 0:Y.call(w,et,i,this.state.context,this,r))}catch(ft){Promise.reject(ft)}try{await((K=(I=this.options).onError)==null?void 0:K.call(I,et,i,this.state.context,r))}catch(ft){Promise.reject(ft)}try{await((J=(G=S(this,se).config).onSettled)==null?void 0:J.call(G,void 0,et,this.state.variables,this.state.context,this,r))}catch(ft){Promise.reject(ft)}try{await((W=(at=this.options).onSettled)==null?void 0:W.call(at,void 0,et,i,this.state.context,r))}catch(ft){Promise.reject(ft)}throw rt(this,ul,ua).call(this,{type:"error",error:et}),et}finally{S(this,se).runNext(this)}}},ei=new WeakMap,nl=new WeakMap,se=new WeakMap,Ja=new WeakMap,ul=new WeakSet,ua=function(i){const c=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=c(this.state),kt.batch(()=>{S(this,nl).forEach(r=>{r.onMutationUpdate(i)}),S(this,se).notify({mutation:this,type:"updated",action:i})})},Vy);function sv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ml,ke,li,Jy,Lg=(Jy=class extends $n{constructor(i={}){super();P(this,Ml);P(this,ke);P(this,li);this.config=i,Z(this,Ml,new Set),Z(this,ke,new Map),Z(this,li,0)}build(i,c,r){const o=new qg({client:i,mutationCache:this,mutationId:++Rs(this,li)._,options:i.defaultMutationOptions(c),state:r});return this.add(o),o}add(i){S(this,Ml).add(i);const c=xs(i);if(typeof c=="string"){const r=S(this,ke).get(c);r?r.push(i):S(this,ke).set(c,[i])}this.notify({type:"added",mutation:i})}remove(i){if(S(this,Ml).delete(i)){const c=xs(i);if(typeof c=="string"){const r=S(this,ke).get(c);if(r)if(r.length>1){const o=r.indexOf(i);o!==-1&&r.splice(o,1)}else r[0]===i&&S(this,ke).delete(c)}}this.notify({type:"removed",mutation:i})}canRun(i){const c=xs(i);if(typeof c=="string"){const r=S(this,ke).get(c),o=r==null?void 0:r.find(d=>d.state.status==="pending");return!o||o===i}else return!0}runNext(i){var r;const c=xs(i);if(typeof c=="string"){const o=(r=S(this,ke).get(c))==null?void 0:r.find(d=>d!==i&&d.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){kt.batch(()=>{S(this,Ml).forEach(i=>{this.notify({type:"removed",mutation:i})}),S(this,Ml).clear(),S(this,ke).clear()})}getAll(){return Array.from(S(this,Ml))}find(i){const c={exact:!0,...i};return this.getAll().find(r=>my(c,r))}findAll(i={}){return this.getAll().filter(c=>my(i,c))}notify(i){kt.batch(()=>{this.listeners.forEach(c=>{c(i)})})}resumePausedMutations(){const i=this.getAll().filter(c=>c.state.isPaused);return kt.batch(()=>Promise.all(i.map(c=>c.continue().catch(oe))))}},Ml=new WeakMap,ke=new WeakMap,li=new WeakMap,Jy);function xs(n){var i;return(i=n.options.scope)==null?void 0:i.id}var Cl,ha,be,Dl,Nl,As,Df,$y,Bg=($y=class extends $n{constructor(c,r){super();P(this,Nl);P(this,Cl);P(this,ha);P(this,be);P(this,Dl);Z(this,Cl,c),this.setOptions(r),this.bindMethods(),rt(this,Nl,As).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(c){var o;const r=this.options;this.options=S(this,Cl).defaultMutationOptions(c),Cs(this.options,r)||S(this,Cl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,be),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&$a(r.mutationKey)!==$a(this.options.mutationKey)?this.reset():((o=S(this,be))==null?void 0:o.state.status)==="pending"&&S(this,be).setOptions(this.options)}onUnsubscribe(){var c;this.hasListeners()||(c=S(this,be))==null||c.removeObserver(this)}onMutationUpdate(c){rt(this,Nl,As).call(this),rt(this,Nl,Df).call(this,c)}getCurrentResult(){return S(this,ha)}reset(){var c;(c=S(this,be))==null||c.removeObserver(this),Z(this,be,void 0),rt(this,Nl,As).call(this),rt(this,Nl,Df).call(this)}mutate(c,r){var o;return Z(this,Dl,r),(o=S(this,be))==null||o.removeObserver(this),Z(this,be,S(this,Cl).getMutationCache().build(S(this,Cl),this.options)),S(this,be).addObserver(this),S(this,be).execute(c)}},Cl=new WeakMap,ha=new WeakMap,be=new WeakMap,Dl=new WeakMap,Nl=new WeakSet,As=function(){var r;const c=((r=S(this,be))==null?void 0:r.state)??sv();Z(this,ha,{...c,isPending:c.status==="pending",isSuccess:c.status==="success",isError:c.status==="error",isIdle:c.status==="idle",mutate:this.mutate,reset:this.reset})},Df=function(c){kt.batch(()=>{var r,o,d,y,p,v,m,_;if(S(this,Dl)&&this.hasListeners()){const E=S(this,ha).variables,C=S(this,ha).context,U={client:S(this,Cl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((c==null?void 0:c.type)==="success"){try{(o=(r=S(this,Dl)).onSuccess)==null||o.call(r,c.data,E,C,U)}catch(j){Promise.reject(j)}try{(y=(d=S(this,Dl)).onSettled)==null||y.call(d,c.data,null,E,C,U)}catch(j){Promise.reject(j)}}else if((c==null?void 0:c.type)==="error"){try{(v=(p=S(this,Dl)).onError)==null||v.call(p,c.error,E,C,U)}catch(j){Promise.reject(j)}try{(_=(m=S(this,Dl)).onSettled)==null||_.call(m,void 0,c.error,E,C,U)}catch(j){Promise.reject(j)}}}this.listeners.forEach(E=>{E(S(this,ha))})})},$y),il,Fy,Qg=(Fy=class extends $n{constructor(i={}){super();P(this,il);this.config=i,Z(this,il,new Map)}build(i,c,r){const o=c.queryKey,d=c.queryHash??Yf(o,c);let y=this.get(d);return y||(y=new jg({client:i,queryKey:o,queryHash:d,options:i.defaultQueryOptions(c),state:r,defaultOptions:i.getQueryDefaults(o)}),this.add(y)),y}add(i){S(this,il).has(i.queryHash)||(S(this,il).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const c=S(this,il).get(i.queryHash);c&&(i.destroy(),c===i&&S(this,il).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){kt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return S(this,il).get(i)}getAll(){return[...S(this,il).values()]}find(i){const c={exact:!0,...i};return this.getAll().find(r=>dy(c,r))}findAll(i={}){const c=this.getAll();return Object.keys(i).length>0?c.filter(r=>dy(i,r)):c}notify(i){kt.batch(()=>{this.listeners.forEach(c=>{c(i)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},il=new WeakMap,Fy),Qt,da,ma,Zn,Kn,ya,Vn,Jn,ky,wg=(ky=class{constructor(n={}){P(this,Qt);P(this,da);P(this,ma);P(this,Zn);P(this,Kn);P(this,ya);P(this,Vn);P(this,Jn);Z(this,Qt,n.queryCache||new Qg),Z(this,da,n.mutationCache||new Lg),Z(this,ma,n.defaultOptions||{}),Z(this,Zn,new Map),Z(this,Kn,new Map),Z(this,ya,0)}mount(){Rs(this,ya)._++,S(this,ya)===1&&(Z(this,Vn,wf.subscribe(async n=>{n&&(await this.resumePausedMutations(),S(this,Qt).onFocus())})),Z(this,Jn,Ds.subscribe(async n=>{n&&(await this.resumePausedMutations(),S(this,Qt).onOnline())})))}unmount(){var n,i;Rs(this,ya)._--,S(this,ya)===0&&((n=S(this,Vn))==null||n.call(this),Z(this,Vn,void 0),(i=S(this,Jn))==null||i.call(this),Z(this,Jn,void 0))}isFetching(n){return S(this,Qt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return S(this,da).findAll({...n,status:"pending"}).length}getQueryData(n){var c;const i=this.defaultQueryOptions({queryKey:n});return(c=S(this,Qt).get(i.queryHash))==null?void 0:c.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),c=S(this,Qt).build(this,i),r=c.state.data;return r===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(va(i.staleTime,c))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(n){return S(this,Qt).findAll(n).map(({queryKey:i,state:c})=>{const r=c.data;return[i,r]})}setQueryData(n,i,c){const r=this.defaultQueryOptions({queryKey:n}),o=S(this,Qt).get(r.queryHash),d=o==null?void 0:o.state.data,y=bg(i,d);if(y!==void 0)return S(this,Qt).build(this,r).setData(y,{...c,manual:!0})}setQueriesData(n,i,c){return kt.batch(()=>S(this,Qt).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,i,c)]))}getQueryState(n){var c;const i=this.defaultQueryOptions({queryKey:n});return(c=S(this,Qt).get(i.queryHash))==null?void 0:c.state}removeQueries(n){const i=S(this,Qt);kt.batch(()=>{i.findAll(n).forEach(c=>{i.remove(c)})})}resetQueries(n,i){const c=S(this,Qt);return kt.batch(()=>(c.findAll(n).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const c={revert:!0,...i},r=kt.batch(()=>S(this,Qt).findAll(n).map(o=>o.cancel(c)));return Promise.all(r).then(oe).catch(oe)}invalidateQueries(n,i={}){return kt.batch(()=>(S(this,Qt).findAll(n).forEach(c=>{c.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},i)))}refetchQueries(n,i={}){const c={...i,cancelRefetch:i.cancelRefetch??!0},r=kt.batch(()=>S(this,Qt).findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,c);return c.throwOnError||(d=d.catch(oe)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(r).then(oe)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const c=S(this,Qt).build(this,i);return c.isStaleByTime(va(i.staleTime,c))?c.fetch(i):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(oe).catch(oe)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(oe).catch(oe)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Ds.isOnline()?S(this,da).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Qt)}getMutationCache(){return S(this,da)}getDefaultOptions(){return S(this,ma)}setDefaultOptions(n){Z(this,ma,n)}setQueryDefaults(n,i){S(this,Zn).set($a(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...S(this,Zn).values()],c={};return i.forEach(r=>{Fu(n,r.queryKey)&&Object.assign(c,r.defaultOptions)}),c}setMutationDefaults(n,i){S(this,Kn).set($a(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...S(this,Kn).values()],c={};return i.forEach(r=>{Fu(n,r.mutationKey)&&Object.assign(c,r.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const i={...S(this,ma).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Yf(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Gf&&(i.enabled=!1),i}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...S(this,ma).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){S(this,Qt).clear(),S(this,da).clear()}},Qt=new WeakMap,da=new WeakMap,ma=new WeakMap,Zn=new WeakMap,Kn=new WeakMap,ya=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,ky),cv=O.createContext(void 0),Ns=n=>{const i=O.useContext(cv);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Yg=({client:n,children:i})=>(O.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),R.jsx(cv.Provider,{value:n,children:i})),rv=O.createContext(!1),Gg=()=>O.useContext(rv);rv.Provider;function Xg(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Zg=O.createContext(Xg()),Kg=()=>O.useContext(Zg),Vg=(n,i,c)=>{const r=c!=null&&c.state.error&&typeof n.throwOnError=="function"?Xf(n.throwOnError,[c.state.error,c]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||r)&&(i.isReset()||(n.retryOnMount=!1))},Jg=n=>{O.useEffect(()=>{n.clearReset()},[n])},$g=({result:n,errorResetBoundary:i,throwOnError:c,query:r,suspense:o})=>n.isError&&!i.isReset()&&!n.isFetching&&r&&(o&&n.data===void 0||Xf(c,[n.error,r])),Fg=n=>{if(n.suspense){const c=o=>o==="static"?o:Math.max(o??1e3,1e3),r=n.staleTime;n.staleTime=typeof r=="function"?(...o)=>c(r(...o)):c(r),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},kg=(n,i)=>n.isLoading&&n.isFetching&&!i,Wg=(n,i)=>(n==null?void 0:n.suspense)&&i.isPending,Ty=(n,i,c)=>i.fetchOptimistic(n).catch(()=>{c.clearReset()});function Pg(n,i,c){var C,U,j,H;const r=Gg(),o=Kg(),d=Ns(),y=d.defaultQueryOptions(n);(U=(C=d.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||U.call(C,y);const p=d.getQueryCache().get(y.queryHash);y._optimisticResults=r?"isRestoring":"optimistic",Fg(y),Vg(y,o,p),Jg(o);const v=!d.getQueryCache().get(y.queryHash),[m]=O.useState(()=>new i(d,y)),_=m.getOptimisticResult(y),E=!r&&n.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(w=>{const Y=E?m.subscribe(kt.batchCalls(w)):oe;return m.updateResult(),Y},[m,E]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),O.useEffect(()=>{m.setOptions(y)},[y,m]),Wg(y,_))throw Ty(y,m,o);if($g({result:_,errorResetBoundary:o,throwOnError:y.throwOnError,query:p,suspense:y.suspense}))throw _.error;if((H=(j=d.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||H.call(j,y,_),y.experimental_prefetchInRender&&!ku.isServer()&&kg(_,r)){const w=v?Ty(y,m,o):p==null?void 0:p.promise;w==null||w.catch(oe).finally(()=>{m.updateResult()})}return y.notifyOnChangeProps?_:m.trackResult(_)}function fv(n,i){return Pg(n,Ng)}function jf(n,i){const c=Ns(),[r]=O.useState(()=>new Bg(c,n));O.useEffect(()=>{r.setOptions(n)},[r,n]);const o=O.useSyncExternalStore(O.useCallback(y=>r.subscribe(kt.batchCalls(y)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),d=O.useCallback((y,p)=>{r.mutate(y,p).catch(oe)},[r]);if(o.error&&Xf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}/**
|
|
51
|
+
* react-router v8.3.0
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/const Kf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,ov=/^[\\/]{2}/;function Ig(n,i){return i+n.replace(/\\/g,"/")}/**
|
|
60
|
+
* react-router v8.3.0
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Remix Software Inc.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
66
|
+
*
|
|
67
|
+
* @license MIT
|
|
68
|
+
*/const Ry="popstate";function xy(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function tS(n={}){function i(r,o){var m;let d=(m=o.state)==null?void 0:m.masked,{pathname:y,search:p,hash:v}=d||r.location;return Nf("",{pathname:y,search:p,hash:v},o.state&&o.state.usr||null,o.state&&o.state.key||"default",d?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function c(r,o){return typeof o=="string"?o:Wu(o)}return lS(i,c,null,n)}function qt(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function sl(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function eS(){return Math.random().toString(36).substring(2,10)}function Oy(n,i){return{usr:n.state,key:n.key,idx:i,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Nf(n,i,c=null,r,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?Fn(i):i,state:c,key:i&&i.key||r||eS(),mask:o}}function Wu({pathname:n="/",search:i="",hash:c=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(n+=c.charAt(0)==="#"?c:"#"+c),n}function Fn(n){let i={};if(n){let c=n.indexOf("#");c>=0&&(i.hash=n.substring(c),n=n.substring(0,c));let r=n.indexOf("?");r>=0&&(i.search=n.substring(r),n=n.substring(0,r)),n&&(i.pathname=n)}return i}function lS(n,i,c,r={}){let{window:o=document.defaultView,v5Compat:d=!1}=r,y=o.history,p="POP",v=null,m=_();m==null&&(m=0,y.replaceState({...y.state,idx:m},""));function _(){return(y.state||{idx:null}).idx}function E(){p="POP";let w=_(),Y=w==null?null:w-m;m=w,v&&v({action:p,location:H.location,delta:Y})}function C(w,Y){p="PUSH";let I=xy(w)?w:Nf(H.location,w,Y);m=_()+1;let K=Oy(I,m),G=H.createHref(I.mask||I);try{y.pushState(K,"",G)}catch(J){if(J instanceof DOMException&&J.name==="DataCloneError")throw J;o.location.assign(G)}d&&v&&v({action:p,location:H.location,delta:1})}function U(w,Y){p="REPLACE";let I=xy(w)?w:Nf(H.location,w,Y);m=_();let K=Oy(I,m),G=H.createHref(I.mask||I);y.replaceState(K,"",G),d&&v&&v({action:p,location:H.location,delta:0})}function j(w){return aS(o,w)}let H={get action(){return p},get location(){return n(o,y)},listen(w){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(Ry,E),v=w,()=>{o.removeEventListener(Ry,E),v=null}},createHref(w){return i(o,w)},createURL:j,encodeLocation(w){let Y=j(w);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:C,replace:U,go(w){return y.go(w)}};return H}function aS(n,i,c=!1){let r="http://localhost";n&&(r=n.location.origin!=="null"?n.location.origin:n.location.href),qt(r,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Wu(i);return o=o.replace(/ $/,"%20"),!c&&ov.test(o)&&(o=r+o),new URL(o,r)}/**
|
|
69
|
+
* react-router v8.3.0
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) Remix Software Inc.
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the MIT license found in the
|
|
74
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
75
|
+
*
|
|
76
|
+
* @license MIT
|
|
77
|
+
*/function hv(n,i,c="/"){return nS(n,i,c,!1)}function nS(n,i,c,r,o){let d=pa((typeof i=="string"?Fn(i):i).pathname||"/",c);if(d==null)return null;let y=uS(n),p=null,v=gS(d);for(let m=0;p==null&&m<y.length;++m)p=pS(y[m],v,r);return p}function uS(n){let i=dv(n);return iS(i),i}function dv(n,i=[],c=[],r="",o=!1){let d=(y,p,v=o,m)=>{let _={relativePath:m===void 0?y.path||"":m,caseSensitive:y.caseSensitive===!0,childrenIndex:p,route:y};if(_.relativePath.startsWith("/")){if(!_.relativePath.startsWith(r)&&v)return;qt(_.relativePath.startsWith(r),`Absolute route path "${_.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),_.relativePath=_.relativePath.slice(r.length)}let E=We([r,_.relativePath]),C=c.concat(_);y.children&&y.children.length>0&&(qt(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),dv(y.children,i,C,E,v)),!(y.path==null&&!y.index)&&i.push({path:E,score:yS(E,y.index),routesMeta:C.map((U,j)=>{let[H,w]=vv(U.relativePath,U.caseSensitive,j===C.length-1);return{...U,matcher:H,compiledParams:w}})})};return n.forEach((y,p)=>{var v;if(y.path===""||!((v=y.path)!=null&&v.includes("?")))d(y,p);else for(let m of mv(y.path))d(y,p,!0,m)}),i}function mv(n){let i=n.split("/");if(i.length===0)return[];let[c,...r]=i,o=c.endsWith("?"),d=c.replace(/\?$/,"");if(r.length===0)return o?[d,""]:[d];let y=mv(r.join("/")),p=[];return p.push(...y.map(v=>v===""?d:[d,v].join("/"))),o&&p.push(...y),p.map(v=>n.startsWith("/")&&v===""?"/":v)}function iS(n){n.sort((i,c)=>i.score!==c.score?c.score-i.score:vS(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}const sS=/^:[\w-]+$/,cS=/^:[\w-]+/,rS=3.5,fS=3,oS=2,hS=1,dS=10,mS=-2,_y=n=>n==="*";function yS(n,i){let c=n.split("/"),r=c.length;return c.some(_y)&&(r+=mS),i&&(r+=oS),c.filter(o=>!_y(o)).reduce((o,d)=>o+(sS.test(d)?fS:cS.test(d)?rS:d===""?hS:dS),r)}function vS(n,i){return n.length===i.length&&n.slice(0,-1).every((c,r)=>c===i[r])?n[n.length-1]-i[i.length-1]:0}function pS(n,i,c=!1){let{routesMeta:r}=n,o={},d="/",y=[];for(let p=0;p<r.length;++p){let v=r[p],m=p===r.length-1,_=d==="/"?i:i.slice(d.length)||"/",E={path:v.relativePath,caseSensitive:v.caseSensitive,end:m},C=v.matcher&&v.compiledParams?yv(E,_,v.matcher,v.compiledParams):js(E,_),U=v.route;if(!C&&m&&c&&!r[r.length-1].route.index&&(C=js({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},_)),!C)return null;Object.assign(o,C.params),y.push({params:o,pathname:We([d,C.pathname]),pathnameBase:ES(We([d,C.pathnameBase])),route:U}),C.pathnameBase!=="/"&&(d=We([d,C.pathnameBase]))}return y}function js(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[c,r]=vv(n.path,n.caseSensitive,n.end);return yv(n,i,c,r)}function yv(n,i,c,r){let o=i.match(c);if(!o)return null;let d=o[0],y=d.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((v,{paramName:m,isOptional:_},E)=>{if(m==="*"){let U=p[E]||"";y=d.slice(0,d.length-U.length).replace(/(.)\/+$/,"$1")}const C=p[E];return _&&!C?v[m]=void 0:v[m]=(C||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:y,pattern:n}}function vv(n,i=!1,c=!0){sl(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,y,p,v,m)=>{if(r.push({paramName:y,isOptional:p!=null}),p){let _=m.charAt(v+d.length);return _&&_!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,"(?:/$1)?");return n.endsWith("*")?(r.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function gS(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return sl(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function pa(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=n.charAt(c);return r&&r!=="/"?null:n.slice(c)||"/"}function SS(n,i="/"){let{pathname:c,search:r="",hash:o=""}=typeof n=="string"?Fn(n):n,d;return c?(c=pv(c),c.startsWith("/")?d=Ay(c.substring(1),"/"):d=Ay(c,i)):d=i,{pathname:d,search:TS(r),hash:RS(o)}}function Ay(n,i){let c=gv(i).split("/");return n.split("/").forEach(r=>{r===".."?c.length>1&&c.pop():r!=="."&&c.push(r)}),c.length>1?c.join("/"):"/"}function df(n,i,c,r){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function bS(n){return n.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function Vf(n){let i=bS(n);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function Us(n,i,c,r=!1){let o;typeof n=="string"?o=Fn(n):(o={...n},qt(!o.pathname||!o.pathname.includes("?"),df("?","pathname","search",o)),qt(!o.pathname||!o.pathname.includes("#"),df("#","pathname","hash",o)),qt(!o.search||!o.search.includes("#"),df("#","search","hash",o)));let d=n===""||o.pathname==="",y=d?"/":o.pathname,p;if(y==null)p=c;else{let E=i.length-1;if(!r&&y.startsWith("..")){let C=y.split("/");for(;C[0]==="..";)C.shift(),E-=1;o.pathname=C.join("/")}p=E>=0?i[E]:"/"}let v=SS(o,p),m=y&&y!=="/"&&y.endsWith("/"),_=(d||y===".")&&c.endsWith("/");return!v.pathname.endsWith("/")&&(m||_)&&(v.pathname+="/"),v}const pv=n=>n.replace(/[\\/]{2,}/g,"/"),We=n=>pv(n.join("/")),gv=n=>n.replace(/\/+$/,""),ES=n=>gv(n).replace(/^\/*/,"/"),TS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,RS=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;var xS=class{constructor(n,i,c,r=!1){La(this,"status");La(this,"statusText");La(this,"data");La(this,"error");La(this,"internal");this.status=n,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function OS(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function _S(n){return We(n.map(i=>i.route.path).filter(Boolean))||"/"}const Sv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function bv(n,i){let c=n;if(typeof c!="string"||!Kf.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,o=!1;if(Sv)try{let d=new URL(window.location.href),y=ov.test(c)?new URL(Ig(c,d.protocol)):new URL(c),p=pa(y.pathname,i);y.origin===d.origin&&p!=null?c=p+y.search+y.hash:o=!0}catch{sl(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:c}}/**
|
|
78
|
+
* react-router v8.3.0
|
|
79
|
+
*
|
|
80
|
+
* Copyright (c) Remix Software Inc.
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
84
|
+
*
|
|
85
|
+
* @license MIT
|
|
86
|
+
*/const Ev=["POST","PUT","PATCH","DELETE"];new Set(Ev);const AS=["GET",...Ev];new Set(AS);const zS=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function MS(n){try{return zS.includes(new URL(n).protocol)}catch{return!1}}/**
|
|
87
|
+
* react-router v8.3.0
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Remix Software Inc.
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
93
|
+
*
|
|
94
|
+
* @license MIT
|
|
95
|
+
*/const kn=O.createContext(null);kn.displayName="DataRouter";const Hs=O.createContext(null);Hs.displayName="DataRouterState";const Tv=O.createContext(!1);function CS(){return O.useContext(Tv)}const Rv=O.createContext({isTransitioning:!1});Rv.displayName="ViewTransition";const DS=O.createContext(new Map);DS.displayName="Fetchers";const jS=O.createContext(null);jS.displayName="Await";const Ve=O.createContext(null);Ve.displayName="Navigation";const ai=O.createContext(null);ai.displayName="Location";const cl=O.createContext({outlet:null,matches:[],isDataRoute:!1});cl.displayName="Route";const Jf=O.createContext(null);Jf.displayName="RouteError";/**
|
|
96
|
+
* react-router v8.3.0
|
|
97
|
+
*
|
|
98
|
+
* Copyright (c) Remix Software Inc.
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the MIT license found in the
|
|
101
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
102
|
+
*
|
|
103
|
+
* @license MIT
|
|
104
|
+
*/const xv="REACT_ROUTER_ERROR",NS="REDIRECT",US="ROUTE_ERROR_RESPONSE";function HS(n){if(n.startsWith(`${xv}:${NS}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function qS(n){if(n.startsWith(`${xv}:${US}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new xS(i.status,i.statusText,i.data)}catch{}}/**
|
|
105
|
+
* react-router v8.3.0
|
|
106
|
+
*
|
|
107
|
+
* Copyright (c) Remix Software Inc.
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the MIT license found in the
|
|
110
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
111
|
+
*
|
|
112
|
+
* @license MIT
|
|
113
|
+
*/function LS(n,{relative:i}={}){qt(Wn(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=O.useContext(Ve),{hash:o,pathname:d,search:y}=ni(n,{relative:i}),p=d;return c!=="/"&&(p=d==="/"?c:We([c,d])),r.createHref({pathname:p,search:y,hash:o})}function Wn(){return O.useContext(ai)!=null}function Pe(){return qt(Wn(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(ai).location}const Ov="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $f(){let{isDataRoute:n}=O.useContext(cl);return n?WS():BS()}function BS(){qt(Wn(),"useNavigate() may be used only in the context of a <Router> component.");let n=O.useContext(kn),{basename:i,navigator:c}=O.useContext(Ve),{matches:r}=O.useContext(cl),{pathname:o}=Pe(),d=JSON.stringify(Vf(r)),y=O.useRef(!1);return O.useLayoutEffect(()=>{y.current=!0}),O.useCallback((p,v={})=>{if(sl(y.current,Ov),!y.current)return;if(typeof p=="number"){c.go(p);return}let m=Us(p,JSON.parse(d),o,v.relative==="path");n==null&&i!=="/"&&(m.pathname=m.pathname==="/"?i:We([i,m.pathname])),(v.replace?c.replace:c.push)(m,v.state,v)},[i,c,d,o,n])}O.createContext(null);function ni(n,{relative:i}={}){let{matches:c}=O.useContext(cl),{pathname:r}=Pe(),o=JSON.stringify(Vf(c));return O.useMemo(()=>Us(n,JSON.parse(o),r,i==="path"),[n,o,r,i])}function QS(n,i){return _v(n,i)}function _v(n,i,c){var j;qt(Wn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=O.useContext(Ve),{matches:o}=O.useContext(cl),d=o[o.length-1],y=d?d.params:{};d&&d.pathname;let p=d?d.pathnameBase:"/";d&&d.route;let v=Pe(),m;if(i){let H=typeof i=="string"?Fn(i):i;qt(p==="/"||((j=H.pathname)==null?void 0:j.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${H.pathname}" was given in the \`location\` prop.`),m=H}else m=v;let _=m.pathname||"/",E=_;if(p!=="/"){let H=p.replace(/^\//,"").split("/");E="/"+_.replace(/^\//,"").split("/").slice(H.length).join("/")}let C=c&&c.state.matches.length?c.state.matches.map(H=>Object.assign(H,{route:c.manifest[H.route.id]||H.route})):hv(n,{pathname:E}),U=KS(C&&C.map(H=>Object.assign({},H,{params:Object.assign({},y,H.params),pathname:We([p,r.encodeLocation?r.encodeLocation(H.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?p:We([p,r.encodeLocation?r.encodeLocation(H.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),o,c);return i&&U?O.createElement(ai.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...m},navigationType:"POP"}},U):U}function wS(){let n=kS(),i=OS(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),c=n instanceof Error?n.stack:null;return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},i),c?O.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},c):null,null)}const YS=O.createElement(wS,null);var pf,GS=(pf=class extends O.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const c=qS(n.digest);c&&(n=c)}let i=n!==void 0?O.createElement(cl.Provider,{value:this.props.routeContext},O.createElement(Jf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?O.createElement(XS,{error:n},i):i}},La(pf,"contextType",Tv),pf);const mf=new WeakMap;function XS({children:n,error:i}){let{basename:c}=O.useContext(Ve);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=HS(i.digest);if(r){let o=mf.get(i);if(o)throw o;let d=bv(r.location,c),y=d.absoluteURL||d.to;if(MS(y))throw new Error("Invalid redirect location");if(Sv&&!mf.get(i))if(d.isExternal||r.reloadDocument)window.location.href=y;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw mf.set(i,p),p}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return n}function ZS({routeContext:n,match:i,children:c}){let r=O.useContext(kn);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),O.createElement(cl.Provider,{value:n},c)}function KS(n,i=[],c){let r=c==null?void 0:c.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let o=n,d=r==null?void 0:r.errors;if(d!=null){let _=o.findIndex(E=>E.route.id&&(d==null?void 0:d[E.route.id])!==void 0);qt(_>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),o=o.slice(0,Math.min(o.length,_+1))}let y=!1,p=-1;if(c&&r){y=r.renderFallback;for(let _=0;_<o.length;_++){let E=o[_];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(p=_),E.route.id){let{loaderData:C,errors:U}=r,j=E.route.loader&&!C.hasOwnProperty(E.route.id)&&(!U||U[E.route.id]===void 0);if(E.route.lazy||j){c.isStatic&&(y=!0),p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}}let v=c==null?void 0:c.onError,m=r&&v?(_,E)=>{var C,U;v(_,{location:r.location,params:((U=(C=r.matches)==null?void 0:C[0])==null?void 0:U.params)??{},pattern:_S(r.matches),errorInfo:E})}:void 0;return o.reduceRight((_,E,C)=>{let U,j=!1,H=null,w=null;r&&(U=d&&E.route.id?d[E.route.id]:void 0,H=E.route.errorElement||YS,y&&(p<0&&C===0?(PS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,w=null):p===C&&(j=!0,w=E.route.hydrateFallbackElement||null)));let Y=i.concat(o.slice(0,C+1)),I=()=>{let K;return U?K=H:j?K=w:E.route.Component?K=O.createElement(E.route.Component,null):E.route.element?K=E.route.element:K=_,O.createElement(ZS,{match:E,routeContext:{outlet:_,matches:Y,isDataRoute:r!=null},children:K})};return r&&(E.route.ErrorBoundary||E.route.errorElement||C===0)?O.createElement(GS,{location:r.location,revalidation:r.revalidation,component:H,error:U,children:I(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:m}):I()},null)}function Ff(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VS(n){let i=O.useContext(kn);return qt(i,Ff(n)),i}function JS(n){let i=O.useContext(Hs);return qt(i,Ff(n)),i}function $S(n){let i=O.useContext(cl);return qt(i,Ff(n)),i}function kf(n){let i=$S(n),c=i.matches[i.matches.length-1];return qt(c.route.id,`${n} can only be used on routes that contain a unique "id"`),c.route.id}function FS(){return kf("useRouteId")}function kS(){var r;let n=O.useContext(Jf),i=JS("useRouteError"),c=kf("useRouteError");return n!==void 0?n:(r=i.errors)==null?void 0:r[c]}function WS(){let{router:n}=VS("useNavigate"),i=kf("useNavigate"),c=O.useRef(!1);return O.useLayoutEffect(()=>{c.current=!0}),O.useCallback(async(r,o={})=>{sl(c.current,Ov),c.current&&(typeof r=="number"?await n.navigate(r):await n.navigate(r,{fromRouteId:i,...o}))},[n,i])}const zy={};function PS(n,i,c){zy[n]||(zy[n]=!0,sl(!1,c))}/**
|
|
114
|
+
* react-router v8.3.0
|
|
115
|
+
*
|
|
116
|
+
* Copyright (c) Remix Software Inc.
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the MIT license found in the
|
|
119
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
120
|
+
*
|
|
121
|
+
* @license MIT
|
|
122
|
+
*/O.memo(IS);function IS({routes:n,manifest:i,future:c,state:r,isStatic:o,onError:d}){return _v(n,void 0,{manifest:i,state:r,isStatic:o,onError:d})}function t1({to:n,replace:i,state:c,relative:r}){qt(Wn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=O.useContext(Ve);sl(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=O.useContext(cl),{pathname:y}=Pe(),p=$f(),v=Us(n,Vf(d),y,r==="path"),m=JSON.stringify(v);return O.useEffect(()=>{p(JSON.parse(m),{replace:i,state:c,relative:r})},[p,m,r,i,c]),null}function ia(n){qt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function e1({basename:n="/",children:i=null,location:c,navigationType:r="POP",navigator:o,static:d=!1,useTransitions:y}){qt(!Wn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),v=O.useMemo(()=>({basename:p,navigator:o,static:d,useTransitions:y,future:{}}),[p,o,d,y]);typeof c=="string"&&(c=Fn(c));let{pathname:m="/",search:_="",hash:E="",state:C=null,key:U="default",mask:j}=c,H=O.useMemo(()=>{let w=pa(m,p);return w==null?null:{location:{pathname:w,search:_,hash:E,state:C,key:U,mask:j},navigationType:r}},[p,m,_,E,C,U,r,j]);return sl(H!=null,`<Router basename="${p}"> is not able to match the URL "${m}${_}${E}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:O.createElement(Ve.Provider,{value:v},O.createElement(ai.Provider,{children:i,value:H}))}function l1({children:n,location:i}){return QS(Uf(n),i)}function Uf(n,i=[]){let c=[];return O.Children.forEach(n,(r,o)=>{if(!O.isValidElement(r))return;let d=[...i,o];if(r.type===O.Fragment){c.push.apply(c,Uf(r.props.children,d));return}qt(r.type===ia,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let y=r.props;qt(!y.index||!y.children,"An index route cannot have child routes.");let p={id:y.id||d.join("-"),caseSensitive:y.caseSensitive,element:y.element,Component:y.Component,index:y.index,path:y.path,middleware:y.middleware,loader:y.loader,action:y.action,hydrateFallbackElement:y.hydrateFallbackElement,HydrateFallback:y.HydrateFallback,errorElement:y.errorElement,ErrorBoundary:y.ErrorBoundary,shouldRevalidate:y.shouldRevalidate,handle:y.handle,lazy:y.lazy};y.children&&(p.children=Uf(y.children,d)),c.push(p)}),c}/**
|
|
123
|
+
* react-router v8.3.0
|
|
124
|
+
*
|
|
125
|
+
* Copyright (c) Remix Software Inc.
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the MIT license found in the
|
|
128
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
129
|
+
*
|
|
130
|
+
* @license MIT
|
|
131
|
+
*/const zs="application/x-www-form-urlencoded";function qs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function a1(n){return qs(n)&&n.tagName.toLowerCase()==="button"}function n1(n){return qs(n)&&n.tagName.toLowerCase()==="form"}function u1(n){return qs(n)&&n.tagName.toLowerCase()==="input"}function i1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function s1(n,i){return n.button===0&&(!i||i==="_self")&&!i1(n)}function Hf(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((i,c)=>{let r=n[c];return i.concat(Array.isArray(r)?r.map(o=>[c,o]):[[c,r]])},[]))}function c1(n,i){let c=Hf(n);return i&&i.forEach((r,o)=>{c.has(o)||i.getAll(o).forEach(d=>{c.append(o,d)})}),c}let Os=null;function r1(){if(Os===null)try{new FormData(document.createElement("form"),0),Os=!1}catch{Os=!0}return Os}const f1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yf(n){return n!=null&&!f1.has(n)?(sl(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zs}"`),null):n}function o1(n,i){let c,r,o,d,y;if(n1(n)){let p=n.getAttribute("action");r=p?pa(p,i):null,c=n.getAttribute("method")||"get",o=yf(n.getAttribute("enctype"))||zs,d=new FormData(n)}else if(a1(n)||u1(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=n.getAttribute("formaction")||p.getAttribute("action");if(r=v?pa(v,i):null,c=n.getAttribute("formmethod")||p.getAttribute("method")||"get",o=yf(n.getAttribute("formenctype"))||yf(p.getAttribute("enctype"))||zs,d=new FormData(p,n),!r1()){let{name:m,type:_,value:E}=n;if(_==="image"){let C=m?`${m}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else m&&d.append(m,E)}}else{if(qs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c="get",r=null,o=zs,y=n}return d&&o==="text/plain"&&(y=d,d=void 0),{action:r,method:c.toLowerCase(),encType:o,formData:d,body:y}}/**
|
|
132
|
+
* react-router v8.3.0
|
|
133
|
+
*
|
|
134
|
+
* Copyright (c) Remix Software Inc.
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the MIT license found in the
|
|
137
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
138
|
+
*
|
|
139
|
+
* @license MIT
|
|
140
|
+
*/function Wf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}/**
|
|
141
|
+
* react-router v8.3.0
|
|
142
|
+
*
|
|
143
|
+
* Copyright (c) Remix Software Inc.
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the MIT license found in the
|
|
146
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
147
|
+
*
|
|
148
|
+
* @license MIT
|
|
149
|
+
*/function Av(n,i){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`,c}/**
|
|
150
|
+
* react-router v8.3.0
|
|
151
|
+
*
|
|
152
|
+
* Copyright (c) Remix Software Inc.
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the MIT license found in the
|
|
155
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
156
|
+
*
|
|
157
|
+
* @license MIT
|
|
158
|
+
*/async function h1(n,i){if(n.id in i)return i[n.id];try{let c=await import(n.module);return i[n.id]=c,c}catch(c){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}/**
|
|
159
|
+
* react-router v8.3.0
|
|
160
|
+
*
|
|
161
|
+
* Copyright (c) Remix Software Inc.
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the MIT license found in the
|
|
164
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
165
|
+
*
|
|
166
|
+
* @license MIT
|
|
167
|
+
*/function d1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function m1(n,i,c){return g1((await Promise.all(n.map(async r=>{let o=i.routes[r.route.id];if(o){let d=await h1(o,c);return d.links?d.links():[]}return[]}))).flat(1).filter(d1).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function My(n,i,c,r,o,d){let y=(v,m)=>c[m]?v.route.id!==c[m].route.id:!0,p=(v,m)=>{var _;return c[m].pathname!==v.pathname||((_=c[m].route.path)==null?void 0:_.endsWith("*"))&&c[m].params["*"]!==v.params["*"]};return d==="assets"?i.filter((v,m)=>y(v,m)||p(v,m)):d==="data"?i.filter((v,m)=>{var E;let _=r.routes[v.route.id];if(!_||!_.hasLoader)return!1;if(y(v,m)||p(v,m))return!0;if(v.route.shouldRevalidate){let C=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((E=c[0])==null?void 0:E.params)||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function y1(n,i,{includeHydrateFallback:c}={}){return v1(n.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let d=[o.module];return o.clientActionModule&&(d=d.concat(o.clientActionModule)),o.clientLoaderModule&&(d=d.concat(o.clientLoaderModule)),c&&o.hydrateFallbackModule&&(d=d.concat(o.hydrateFallbackModule)),o.imports&&(d=d.concat(o.imports)),d}).flat(1))}function v1(n){return[...new Set(n)]}function p1(n){let i={},c=Object.keys(n).sort();for(let r of c)i[r]=n[r];return i}function g1(n,i){let c=new Set;return new Set(i),n.reduce((r,o)=>{let d=JSON.stringify(p1(o));return c.has(d)||(c.add(d),r.push({key:d,link:o})),r},[])}/**
|
|
168
|
+
* react-router v8.3.0
|
|
169
|
+
*
|
|
170
|
+
* Copyright (c) Remix Software Inc.
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the MIT license found in the
|
|
173
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
174
|
+
*
|
|
175
|
+
* @license MIT
|
|
176
|
+
*/function S1(){let n=O.useContext(kn);return Wf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function b1(){let n=O.useContext(Hs);return Wf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}const Pf=O.createContext(void 0);Pf.displayName="FrameworkContext";function If(){let n=O.useContext(Pf);return Wf(n,"You must render this element inside a <HydratedRouter> element"),n}function E1(n,i){let c=O.useContext(Pf),[r,o]=O.useState(!1),[d,y]=O.useState(!1),{onFocus:p,onBlur:v,onMouseEnter:m,onMouseLeave:_,onTouchStart:E}=i,C=O.useRef(null);O.useEffect(()=>{if(n==="render"&&y(!0),n==="viewport"){let H=Y=>{Y.forEach(I=>{y(I.isIntersecting)})},w=new IntersectionObserver(H,{threshold:.5});return C.current&&w.observe(C.current),()=>{w.disconnect()}}},[n]),O.useEffect(()=>{if(r){let H=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(H)}}},[r]);let U=()=>{o(!0)},j=()=>{o(!1),y(!1)};return c?n!=="intent"?[d,C,{}]:[d,C,{onFocus:Ju(p,U),onBlur:Ju(v,j),onMouseEnter:Ju(m,U),onMouseLeave:Ju(_,j),onTouchStart:Ju(E,U)}]:[!1,C,{}]}function Ju(n,i){return c=>{n&&n(c),c.defaultPrevented||i(c)}}function T1({page:n,...i}){let c=CS(),{nonce:r}=If(),{router:o}=S1(),d=O.useMemo(()=>hv(o.routes,n,o.basename),[o.routes,n,o.basename]);return d?(i.nonce==null&&r&&(i={...i,nonce:r}),c?O.createElement(x1,{page:n,matches:d,...i}):O.createElement(O1,{page:n,matches:d,...i})):null}function R1(n){let{manifest:i,routeModules:c}=If(),[r,o]=O.useState([]);return O.useEffect(()=>{let d=!1;return m1(n,i,c).then(y=>{d||o(y)}),()=>{d=!0}},[n,i,c]),r}function x1({page:n,matches:i,...c}){let r=Pe(),o=O.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let d=Av(n,"rsc"),y=!1,p=[];for(let v of i)typeof v.route.shouldRevalidate=="function"?y=!0:p.push(v.route.id);return y&&p.length>0&&d.searchParams.set("_routes",p.join(",")),[d.pathname+d.search]},[n,r,i]);return O.createElement(O.Fragment,null,o.map(d=>O.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...c})))}function O1({page:n,matches:i,...c}){let r=Pe(),{manifest:o,routeModules:d}=If(),{loaderData:y,matches:p}=b1(),v=O.useMemo(()=>My(n,i,p,o,r,"data"),[n,i,p,o,r]),m=O.useMemo(()=>My(n,i,p,o,r,"assets"),[n,i,p,o,r]),_=O.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let U=new Set,j=!1;if(i.forEach(w=>{var I;let Y=o.routes[w.route.id];!Y||!Y.hasLoader||(!v.some(K=>K.route.id===w.route.id)&&w.route.id in y&&((I=d[w.route.id])!=null&&I.shouldRevalidate)||Y.hasClientLoader?j=!0:U.add(w.route.id))}),U.size===0)return[];let H=Av(n,"data");return j&&U.size>0&&H.searchParams.set("_routes",i.filter(w=>U.has(w.route.id)).map(w=>w.route.id).join(",")),[H.pathname+H.search]},[y,r,o,v,i,n,d]),E=O.useMemo(()=>y1(m,o),[m,o]),C=R1(m);return O.createElement(O.Fragment,null,_.map(U=>O.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...c})),E.map(U=>O.createElement("link",{key:U,rel:"modulepreload",href:U,...c})),C.map(({key:U,link:j})=>O.createElement("link",{key:U,nonce:c.nonce,...j,crossOrigin:j.crossOrigin??c.crossOrigin})))}function _1(...n){return i=>{n.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}/**
|
|
177
|
+
* react-router v8.3.0
|
|
178
|
+
*
|
|
179
|
+
* Copyright (c) Remix Software Inc.
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the MIT license found in the
|
|
182
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
183
|
+
*
|
|
184
|
+
* @license MIT
|
|
185
|
+
*/const A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{A1&&(window.__reactRouterVersion="8.3.0")}catch{}function z1({basename:n,children:i,useTransitions:c,window:r}){let o=O.useRef(null);o.current==null&&(o.current=tS({window:r,v5Compat:!0}));let d=o.current,[y,p]=O.useState({action:d.action,location:d.location}),v=O.useCallback(m=>{c===!1?p(m):O.startTransition(()=>p(m))},[c]);return O.useLayoutEffect(()=>d.listen(v),[d,v]),O.createElement(e1,{basename:n,children:i,location:y.location,navigationType:y.action,navigator:d,useTransitions:c})}const Ls=O.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:o,reloadDocument:d,replace:y,mask:p,state:v,target:m,to:_,preventScrollReset:E,viewTransition:C,defaultShouldRevalidate:U,...j},H){let{basename:w,navigator:Y,useTransitions:I}=O.useContext(Ve),K=typeof _=="string"&&Kf.test(_),G=bv(_,w);_=G.to;let J=LS(_,{relative:o}),at=Pe(),W=null;if(p){let jt=Us(p,[],at.mask?at.mask.pathname:"/",!0);w!=="/"&&(jt.pathname=jt.pathname==="/"?w:We([w,jt.pathname])),W=Y.createHref(jt)}let[et,ft,Dt]=E1(r,j),wt=D1(_,{replace:y,mask:p,state:v,target:m,preventScrollReset:E,relative:o,viewTransition:C,defaultShouldRevalidate:U,useTransitions:I});function Yt(jt){i&&i(jt),jt.defaultPrevented||wt(jt)}let Ee=!(G.isExternal||d),te=O.createElement("a",{...j,...Dt,href:(Ee?W:void 0)||G.absoluteURL||J,onClick:Ee?Yt:i,ref:_1(H,ft),target:m,"data-discover":!K&&c==="render"?"true":void 0});return et&&!K?O.createElement(O.Fragment,null,te,O.createElement(T1,{page:J})):te});Ls.displayName="Link";const Un=O.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:o=!1,style:d,to:y,viewTransition:p,children:v,...m},_){let E=ni(y,{relative:m.relative}),C=Pe(),U=O.useContext(Hs),{navigator:j,basename:H}=O.useContext(Ve),w=U!=null&&q1(E)&&p===!0,Y=j.encodeLocation?j.encodeLocation(E).pathname:E.pathname,I=C.pathname,K=U&&U.navigation&&U.navigation.location?U.navigation.location.pathname:null;c||(I=I.toLowerCase(),K=K?K.toLowerCase():null,Y=Y.toLowerCase()),K&&H&&(K=pa(K,H)||K);const G=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let J=I===Y||!o&&I.startsWith(Y)&&I.charAt(G)==="/",at=K!=null&&(K===Y||!o&&K.startsWith(Y)&&K.charAt(G)==="/"),W={isActive:J,isPending:at,isTransitioning:w},et=J?i:void 0,ft;typeof r=="function"?ft=r(W):ft=[r,J?"active":null,at?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Dt=typeof d=="function"?d(W):d;return O.createElement(Ls,{...m,"aria-current":et,className:ft,ref:_,style:Dt,to:y,viewTransition:p},typeof v=="function"?v(W):v)});Un.displayName="NavLink";const M1=O.forwardRef(({discover:n="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:o,state:d,method:y="get",action:p,onSubmit:v,relative:m,preventScrollReset:_,viewTransition:E,defaultShouldRevalidate:C,...U},j)=>{let{useTransitions:H}=O.useContext(Ve),w=U1(),Y=H1(p,{relative:m}),I=y.toLowerCase()==="get"?"get":"post",K=typeof p=="string"&&Kf.test(p),G=J=>{if(v&&v(J),J.defaultPrevented)return;J.preventDefault();let at=J.nativeEvent.submitter,W=(at==null?void 0:at.getAttribute("formmethod"))||y,et=()=>w(at||J.currentTarget,{fetcherKey:i,method:W,navigate:c,replace:o,state:d,relative:m,preventScrollReset:_,viewTransition:E,defaultShouldRevalidate:C});H&&c!==!1?O.startTransition(()=>et()):et()};return O.createElement("form",{ref:j,method:I,action:Y,onSubmit:r?v:G,...U,"data-discover":!K&&n==="render"?"true":void 0})});M1.displayName="Form";function C1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zv(n){let i=O.useContext(kn);return qt(i,C1(n)),i}function D1(n,{target:i,replace:c,mask:r,state:o,preventScrollReset:d,relative:y,viewTransition:p,defaultShouldRevalidate:v,useTransitions:m}={}){let _=$f(),E=Pe(),C=ni(n,{relative:y});return O.useCallback(U=>{if(s1(U,i)){U.preventDefault();let j=c!==void 0?c:Wu(E)===Wu(C),H=()=>_(n,{replace:j,mask:r,state:o,preventScrollReset:d,relative:y,viewTransition:p,defaultShouldRevalidate:v});m?O.startTransition(()=>H()):H()}},[E,_,C,c,r,o,i,n,d,y,p,v,m])}function Bs(n){sl(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=O.useRef(Hf(n)),c=O.useRef(!1),r=Pe(),o=O.useMemo(()=>c1(r.search,c.current?null:i.current),[r.search]),d=$f();return[o,O.useCallback((y,p)=>{const v=Hf(typeof y=="function"?y(new URLSearchParams(o)):y);c.current=!0,d("?"+v,p)},[d,o])]}let j1=0,N1=()=>`__${String(++j1)}__`;function U1(){let{router:n}=zv("useSubmit"),{basename:i}=O.useContext(Ve),c=FS(),r=n.fetch,o=n.navigate;return O.useCallback(async(d,y={})=>{let{action:p,method:v,encType:m,formData:_,body:E}=o1(d,i);y.navigate===!1?await r(y.fetcherKey||N1(),c,y.action||p,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:_,body:E,formMethod:y.method||v,formEncType:y.encType||m,flushSync:y.flushSync}):await o(y.action||p,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:_,body:E,formMethod:y.method||v,formEncType:y.encType||m,replace:y.replace,state:y.state,fromRouteId:c,flushSync:y.flushSync,viewTransition:y.viewTransition})},[r,o,i,c])}function H1(n,{relative:i}={}){let{basename:c}=O.useContext(Ve),r=O.useContext(cl);qt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),d={...ni(n||".",{relative:i})},y=Pe();if(n==null){d.search=y.search;let p=new URLSearchParams(d.search),v=p.getAll("index");if(v.some(m=>m==="")){p.delete("index"),v.filter(_=>_).forEach(_=>p.append("index",_));let m=p.toString();d.search=m?`?${m}`:""}}return(!n||n===".")&&o.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:We([c,d.pathname])),Wu(d)}function q1(n,{relative:i}={}){let c=O.useContext(Rv);qt(c!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=zv("useViewTransitionState"),o=ni(n,{relative:i});if(!c.isTransitioning)return!1;let d=pa(c.currentLocation.pathname,r)||c.currentLocation.pathname,y=pa(c.nextLocation.pathname,r)||c.nextLocation.pathname;return js(o.pathname,y)!=null||js(o.pathname,d)!=null}const L1="modulepreload",B1=function(n){return"/"+n},Cy={},Q1=function(i,c,r){let o=Promise.resolve();if(c&&c.length>0){let y=function(m){return Promise.all(m.map(_=>Promise.resolve(_).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),v=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));o=y(c.map(m=>{if(m=B1(m),m in Cy)return;Cy[m]=!0;const _=m.endsWith(".css"),E=_?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${E}`))return;const C=document.createElement("link");if(C.rel=_?"stylesheet":L1,_||(C.as="script"),C.crossOrigin="",C.href=m,v&&C.setAttribute("nonce",v),document.head.appendChild(C),_)return new Promise((U,j)=>{C.addEventListener("load",U),C.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${m}`)))})}))}function d(y){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=y,window.dispatchEvent(p),!p.defaultPrevented)throw y}return o.then(y=>{for(const p of y||[])p.status==="rejected"&&d(p.reason);return i().catch(d)})},Mv="http://127.0.0.1:7890";async function al(n,i){const c=new URL(`${Mv}${n}`,window.location.origin);if(i)for(const[o,d]of Object.entries(i))d!=null&&c.searchParams.set(o,String(d));const r=await fetch(c.toString());if(!r.ok)throw new Error(`${r.status} ${r.statusText} for ${n}`);return r.json()}async function _s(n,i){const c=await fetch(`${Mv}${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!c.ok)throw new Error(`${c.status} ${c.statusText} for ${n}`);return c.json()}const jl={health:()=>al("/health"),memories:(n={})=>al("/memories",{limit:50,...n}),memory:n=>al(`/memory/${encodeURIComponent(n)}`),activity:(n={})=>al("/activity",{limit:50,...n}),sessions:(n={})=>al("/sessions",{limit:50,...n}),contradictions:(n={})=>al("/contradictions",{limit:50,...n,resolved:n.resolved==null?void 0:String(n.resolved)}),confirm:n=>_s("/confirm",{memory_id:n}),reject:n=>_s("/reject",{memory_id:n}),resolveContradiction:(n,i)=>_s("/contradictions/resolve",{contradiction_id:n,keep_memory_id:i}),graphStats:()=>al("/graph/stats"),graphEntities:n=>al("/graph/entities",n),graphRelations:n=>al("/graph/relations",n),graphNeighbors:(n,i=1)=>_s("/graph/neighbors",{entity_id:n,hops:i,include_memories:!0}),graphMemoryEntities:n=>al(`/graph/memory/${encodeURIComponent(n)}`)};function Dy(n){if(n&&typeof n=="object"){const i=n;for(const c of["id","session_id","memory_id"]){const r=i[c];if(typeof r=="string"||typeof r=="number")return`${c}:${r}`}}return JSON.stringify(n)}function Qs({fetchPage:n,pageSize:i,resetKey:c,query:r,refetchInterval:o}){const[d,y]=O.useState([]),[p,v]=O.useState(!0),[m,_]=O.useState(!0),[E,C]=O.useState(!1),[U,j]=O.useState(null),H=O.useRef(r);H.current=r;const w=O.useRef(c),Y=O.useRef(!1),I=async J=>{_(!0);try{const{items:at,has_more:W}=await n(0,H.current);if(J!=null&&J.aborted)return;y(at),v(W),j(null)}catch(at){J!=null&&J.aborted||j(at)}finally{J!=null&&J.aborted||_(!1)}};return O.useEffect(()=>{w.current=c,Y.current=!1;const J=new AbortController;return I(J.signal),()=>J.abort()},[c]),O.useEffect(()=>{if(!o)return;const J=setInterval(()=>{n(0,H.current).then(({items:at,has_more:W})=>{w.current===c&&(y(et=>et.length<=i?at:[...at,...et.slice(i)]),at.length<i&&v(W))}).catch(()=>{})},o);return()=>clearInterval(J)},[o,c,i,n]),{items:d,hasMore:p,isLoading:m,isLoadingMore:E,error:U,loadMore:()=>{Y.current||!p||(Y.current=!0,C(!0),n(d.length,H.current).then(({items:J,has_more:at})=>{y(W=>{const et=new Set(W.map(ft=>Dy(ft)));return[...W,...J.filter(ft=>!et.has(Dy(ft)))]}),v(at)}).catch(J=>j(J)).finally(()=>{Y.current=!1,C(!1)}))},refresh:()=>I()}}function ws({hasMore:n,isLoading:i,onLoadMore:c,total:r}){const o=O.useRef(null);return O.useEffect(()=>{if(!n||i)return;const d=o.current;if(!d||typeof IntersectionObserver>"u")return;const y=new IntersectionObserver(p=>{for(const v of p)v.isIntersecting&&c()},{rootMargin:"320px 0px"});return y.observe(d),()=>y.disconnect()},[n,i,c]),!n&&r===0?null:R.jsx("div",{ref:o,style:{display:"flex",justifyContent:"center",padding:"16px 0 32px",gap:10,color:"var(--muted)",fontSize:12},children:n?R.jsx("button",{className:"btn",onClick:c,disabled:i,style:{minWidth:140},children:i?"loading…":`load more (showing ${r})`}):R.jsxs("span",{children:[r," total · end of list"]})})}const jy=50;function Ny(){const n=Ns(),[i,c]=Bs(),r=i.get("repo")??"",o=i.get("status")??"",d=i.get("focus"),y=(E,C)=>{const U=new URLSearchParams(i);C?U.set(E,C):U.delete(E),c(U,{replace:!0})},p=O.useMemo(()=>JSON.stringify({repo:r,status:o}),[r,o]),v=Qs({fetchPage:async(E,C)=>{const U=await jl.memories({repo:C.repo||void 0,status:C.status||void 0,limit:jy,offset:E});return{items:U.memories,has_more:U.has_more}},pageSize:jy,resetKey:p,query:{repo:r,status:o},refetchInterval:12e3});O.useEffect(()=>{if(!d)return;const E=document.getElementById(`memory-${d}`);E&&E.scrollIntoView({behavior:"smooth",block:"center"})},[d,v.items]);const m=jf({mutationFn:E=>jl.confirm(E),onSuccess:()=>{n.invalidateQueries({queryKey:["memories"]}),v.refresh()}}),_=jf({mutationFn:E=>jl.reject(E),onSuccess:()=>{n.invalidateQueries({queryKey:["memories"]}),v.refresh()}});return R.jsxs("div",{children:[R.jsxs("header",{className:"page-header",children:[R.jsxs("div",{children:[R.jsx("h1",{className:"page-title",children:"Memories"}),R.jsx("p",{className:"page-subtitle",children:"All rules, gotchas, decisions captured by Recall"})]}),R.jsxs("div",{className:"live-indicator",children:[R.jsx("span",{className:"live-dot"})," live"]})]}),R.jsxs("div",{className:"toolbar",children:[R.jsx("input",{className:"input",placeholder:"filter by repo (e.g. recall)",value:r,onChange:E=>y("repo",E.target.value)}),R.jsxs("select",{className:"select",value:o,onChange:E=>y("status",E.target.value),children:[R.jsx("option",{value:"",children:"all statuses"}),R.jsx("option",{value:"active",children:"active"}),R.jsx("option",{value:"candidate",children:"candidate"}),R.jsx("option",{value:"rejected",children:"rejected"})]}),R.jsx("button",{className:"btn",onClick:()=>v.refresh(),style:{marginLeft:"auto"},children:"refresh"})]}),v.isLoading&&v.items.length===0&&R.jsx("div",{className:"empty",children:"loading…"}),v.error!=null&&R.jsx("div",{className:"empty",children:"could not reach daemon — check `recall daemon status`"}),!v.isLoading&&v.items.length===0&&R.jsx("div",{className:"empty",children:"no memories yet — capture some via your agent"}),v.items.map(E=>R.jsx(w1,{memory:E,focused:E.id===d,onConfirm:()=>m.mutate(E.id),onReject:()=>_.mutate(E.id)},E.id)),R.jsx(ws,{hasMore:v.hasMore,isLoading:v.isLoadingMore,onLoadMore:v.loadMore,total:v.items.length})]})}function w1({memory:n,focused:i,onConfirm:c,onReject:r}){return R.jsxs("div",{id:`memory-${n.id}`,className:"card memory-row",style:i?{borderColor:"var(--accent)",boxShadow:"0 0 0 1px var(--accent)"}:void 0,children:[R.jsx("span",{className:`badge ${n.status}`,children:n.status}),R.jsxs("div",{children:[R.jsx("div",{className:"memory-text",children:n.text}),R.jsxs("div",{className:"memory-meta",children:[n.type," · ",n.repo??"global"," · scope=",n.scope," · conf=",n.confidence.toFixed(2),n.source?` · src=${n.source}`:""]})]}),R.jsxs("div",{style:{display:"flex",gap:6},children:[n.status==="candidate"&&R.jsx("button",{className:"btn primary",onClick:c,children:"confirm"}),n.status!=="rejected"&&R.jsx("button",{className:"btn danger",onClick:r,children:"reject"})]})]})}let Ze=null,qf=new Set,Ms=500,vf=null;function Y1(){const n=window.location;return`${n.protocol==="https:"?"wss":"ws"}://${n.host}/ws`}function Cv(){if(!(Ze&&(Ze.readyState===WebSocket.CONNECTING||Ze.readyState===WebSocket.OPEN))){try{Ze=new WebSocket(Y1())}catch{Uy();return}Ze.onopen=()=>{Ms=500},Ze.onmessage=n=>{try{const i=JSON.parse(n.data);for(const c of qf)c(i)}catch{}},Ze.onclose=()=>Uy(),Ze.onerror=()=>{Ze==null||Ze.close()}}}function Uy(){vf===null&&(vf=window.setTimeout(()=>{vf=null,Ms=Math.min(Ms*2,1e4),Cv()},Ms))}function G1(n){return Ze||Cv(),qf.add(n),()=>{qf.delete(n)}}function X1(n=50){const[i,c]=O.useState([]);return O.useEffect(()=>G1(o=>{c(d=>{const y=[...d,o];return y.length>n?y.slice(y.length-n):y})}),[n]),i}const Hy=50,Z1=["compile","query","scan","correction","review","feedback","signal","session_start","session_event","session_end","tool_call"],Dv={compile:"#7aa2f7",query:"#9ece6a",scan:"#bb9af7",correction:"#f7768e",review:"#7dcfff",feedback:"#e0af68",signal:"#f0c674",session_start:"#9ece6a",session_event:"#7aa2f7",session_end:"#f7768e",tool_call:"#bb9af7"};function K1(){const[n,i]=Bs(),c=n.get("repo")??"",r=n.get("source")??"",o=n.get("event_type")??"",d=n.get("session_id")??"",y=(j,H)=>{const w=new URLSearchParams(n);H?w.set(j,H):w.delete(j),i(w,{replace:!0})},p=O.useMemo(()=>JSON.stringify({repo:c,source:r,eventType:o,sessionId:d}),[c,r,o,d]),v=Qs({fetchPage:async(j,H)=>{const w=await jl.activity({repo:H.repo||void 0,source:H.source||void 0,event_type:H.eventType||void 0,session_id:H.sessionId||void 0,limit:Hy,offset:j});return{items:w.events,has_more:w.has_more}},pageSize:Hy,resetKey:p,query:{repo:c,source:r,eventType:o,sessionId:d},refetchInterval:8e3}),m=X1(20),_=O.useMemo(()=>{const j=new Set;for(const H of v.items)j.add(H.source);return[...j].sort()},[v.items]),E=O.useMemo(()=>{const j=new Set;for(const H of v.items)H.repo&&j.add(H.repo);return[...j].sort()},[v.items]),C=v.items,U=c||r||o||d;return R.jsxs("div",{children:[R.jsxs("header",{className:"page-header",children:[R.jsxs("div",{children:[R.jsx("h1",{className:"page-title",children:"Timeline"}),R.jsxs("p",{className:"page-subtitle",children:[C.length," event",C.length===1?"":"s"," · live stream attached"]})]}),R.jsxs("div",{className:"live-indicator",children:[R.jsx("span",{className:"live-dot"})," WebSocket"]})]}),R.jsxs("div",{className:"toolbar",children:[R.jsxs("select",{className:"select",value:c,onChange:j=>y("repo",j.target.value),children:[R.jsx("option",{value:"",children:"all repos"}),E.map(j=>R.jsx("option",{value:j,children:j},j))]}),R.jsxs("select",{className:"select",value:r,onChange:j=>y("source",j.target.value),children:[R.jsx("option",{value:"",children:"all sources"}),_.map(j=>R.jsx("option",{value:j,children:j},j))]}),R.jsxs("select",{className:"select",value:o,onChange:j=>y("event_type",j.target.value),children:[R.jsx("option",{value:"",children:"all types"}),Z1.map(j=>R.jsx("option",{value:j,children:j},j))]}),d&&R.jsxs("span",{className:"badge",style:{background:"var(--surface-2)",padding:"4px 8px"},children:["session=",d.slice(0,8),R.jsx("button",{className:"btn",style:{marginLeft:6,padding:"0 6px"},onClick:()=>y("session_id",""),children:"✕"})]}),U&&R.jsx("button",{className:"btn",onClick:()=>{i({},{replace:!0})},children:"clear all"}),R.jsx("button",{className:"btn",onClick:()=>v.refresh(),style:{marginLeft:"auto"},children:"refresh"})]}),m.length>0&&!U&&R.jsxs("div",{className:"card",style:{marginBottom:20},children:[R.jsxs("div",{className:"page-subtitle",style:{marginBottom:8},children:["Live stream (last ",m.length,")"]}),m.slice().reverse().map((j,H)=>R.jsxs("div",{className:"timeline-event",children:[R.jsx("span",{className:"timeline-time",children:F1(j.ts)}),R.jsx("span",{className:"timeline-name",style:{color:Dv[j.name]??"var(--accent)"},children:j.name}),R.jsx("span",{style:{color:"var(--muted)"},children:W1(j.payload)})]},`${j.ts}-${H}`))]}),v.isLoading&&C.length===0&&R.jsx("div",{className:"empty",children:"loading…"}),!v.isLoading&&C.length===0&&R.jsx("div",{className:"empty",children:"no events match your filters"}),C.map(j=>R.jsx(V1,{event:j,onJumpSession:H=>y("session_id",H)},j.id)),R.jsx(ws,{hasMore:v.hasMore,isLoading:v.isLoadingMore,onLoadMore:v.loadMore,total:C.length})]})}function V1({event:n,onJumpSession:i}){const[c,r]=O.useState(!1),o=Dv[n.event_type]??"var(--accent)",d=J1(n);return R.jsxs("div",{className:"card",style:{marginBottom:6,padding:"10px 12px",cursor:"pointer"},onClick:()=>r(!c),children:[R.jsxs("div",{style:{display:"flex",gap:12,alignItems:"baseline",flexWrap:"wrap"},children:[R.jsx("span",{className:"timeline-time",style:{minWidth:90},children:k1(n.created_at)}),R.jsx("span",{className:"badge",style:{color:o,borderColor:o,border:"1px solid",padding:"1px 6px"},children:n.event_type}),R.jsx("span",{style:{color:"var(--muted)",fontFamily:"var(--mono)",fontSize:12.5},children:n.source}),n.repo&&R.jsx("span",{style:{color:"var(--muted)",fontSize:13.5},children:n.repo}),n.memory_ids&&n.memory_ids.length>0&&R.jsxs("span",{className:"badge",style:{background:"var(--surface-2)",padding:"1px 6px"},children:[n.memory_ids.length," mem"]}),R.jsx("span",{style:{flex:1,color:"var(--text-2)",fontSize:14,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d}),R.jsx("span",{style:{color:"var(--muted)",fontSize:12.5},children:c?"▾":"▸"})]}),c&&R.jsxs("div",{style:{marginTop:10,fontSize:13.5,fontFamily:"var(--mono)"},onClick:y=>y.stopPropagation(),children:[n.session_id&&R.jsxs("div",{style:{marginBottom:8},children:[R.jsx("span",{style:{color:"var(--muted)"},children:"session: "}),R.jsx("button",{className:"btn",style:{padding:"0 6px",fontSize:12.5},onClick:()=>i(n.session_id),children:n.session_id})]}),n.path&&R.jsxs("div",{style:{marginBottom:8},children:[R.jsx("span",{style:{color:"var(--muted)"},children:"path: "}),R.jsx("span",{children:n.path})]}),n.memory_ids&&n.memory_ids.length>0&&R.jsxs("div",{style:{marginBottom:8},children:[R.jsx("span",{style:{color:"var(--muted)"},children:"memories: "}),n.memory_ids.map(y=>R.jsx(Ls,{to:`/memories?focus=${y}`,style:{color:"var(--accent)",marginRight:8},children:y.slice(0,8)},y))]}),Ly(n.request)&&R.jsxs("details",{open:!0,style:{marginBottom:6},children:[R.jsx("summary",{style:{cursor:"pointer",color:"var(--muted)"},children:"request"}),R.jsx("pre",{style:qy,children:JSON.stringify(n.request,null,2)})]}),Ly(n.result)&&R.jsxs("details",{open:!0,style:{marginBottom:6},children:[R.jsx("summary",{style:{cursor:"pointer",color:"var(--muted)"},children:"result"}),R.jsx("pre",{style:qy,children:JSON.stringify(n.result,null,2)})]})]})]})}const qy={background:"var(--surface-2)",padding:"8px 10px",borderRadius:4,marginTop:4,fontSize:12.5,lineHeight:1.45,maxHeight:320,overflow:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word",border:"1px solid var(--border)"};function Ly(n){return!!n&&Object.keys(n).length>0}function J1(n){const i=n.request??{},c=n.result??{};if(typeof i.name=="string"){const o=c.tool_call;return o!=null&&o.name?`${i.name} → ${o.name}${o.input_summary?` · ${o.input_summary.slice(0,80)}`:""}`:typeof c.text=="string"?`${i.name} · ${c.text.slice(0,80)}`:String(i.name)}if(typeof i.query=="string")return`query: ${i.query.slice(0,80)}`;if(typeof i.text=="string")return i.text.slice(0,80);const r=Object.keys(i);return r.length>0?r.slice(0,3).map(o=>`${o}=${$1(i[o])}`).join(" · "):""}function $1(n){return n==null?"-":typeof n=="string"?n.slice(0,30):typeof n=="number"||typeof n=="boolean"?String(n):Array.isArray(n)?`[${n.length}]`:"{…}"}function F1(n){try{return new Date(n).toLocaleTimeString()}catch{return n}}function k1(n){try{const i=new Date(n),c=new Date;return i.toDateString()===c.toDateString()?i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}):`${i.toLocaleDateString([],{month:"short",day:"numeric"})} ${i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}`}catch{return n}}function W1(n){return Object.entries(n).slice(0,4).map(([i,c])=>`${i}=${typeof c=="string"?c.slice(0,20):String(c)}`).join(" · ")}const By=50,Lf={compile:"#7aa2f7",query:"#9ece6a",scan:"#bb9af7",correction:"#f7768e",review:"#7dcfff",feedback:"#e0af68",signal:"#f0c674",session_start:"#9ece6a",session_event:"#7aa2f7",session_end:"#f7768e",tool_call:"#bb9af7"};function P1(){const[n,i]=Bs(),c=n.get("repo")??"",r=v=>{const m=new URLSearchParams(n);v?m.set("repo",v):m.delete("repo"),i(m,{replace:!0})},o=O.useMemo(()=>JSON.stringify({repo:c}),[c]),d=Qs({fetchPage:async(v,m)=>{const _=await jl.sessions({repo:m.repo||void 0,limit:By,offset:v});return{items:_.sessions,has_more:_.has_more}},pageSize:By,resetKey:o,query:{repo:c},refetchInterval:12e3}),y=O.useMemo(()=>{const v=new Set;for(const m of d.items)m.repo&&v.add(m.repo);return[...v].sort()},[d.items]),p=d.items;return R.jsxs("div",{children:[R.jsx("header",{className:"page-header",children:R.jsxs("div",{children:[R.jsx("h1",{className:"page-title",children:"Sessions"}),R.jsxs("p",{className:"page-subtitle",children:[p.length," session",p.length===1?"":"s"," — click one to inspect its events"]})]})}),R.jsxs("div",{className:"toolbar",children:[R.jsxs("select",{className:"select",value:c,onChange:v=>r(v.target.value),children:[R.jsx("option",{value:"",children:"all repos"}),y.map(v=>R.jsx("option",{value:v,children:v},v))]}),R.jsx("button",{className:"btn",onClick:()=>d.refresh(),style:{marginLeft:"auto"},children:"refresh"})]}),d.isLoading&&p.length===0&&R.jsx("div",{className:"empty",children:"loading…"}),!d.isLoading&&p.length===0&&R.jsx("div",{className:"empty",children:"no sessions yet"}),p.map(v=>R.jsx(I1,{session:v},v.session_id)),R.jsx(ws,{hasMore:d.hasMore,isLoading:d.isLoadingMore,onLoadMore:d.loadMore,total:p.length})]})}function I1({session:n}){const[i,c]=O.useState(!1),r=nb(n.first_at,n.last_at);return R.jsxs("div",{className:"card",style:{marginBottom:8,padding:"12px 14px",cursor:"pointer"},onClick:()=>c(!i),children:[R.jsxs("div",{style:{display:"flex",gap:12,alignItems:"baseline",flexWrap:"wrap"},children:[R.jsxs("span",{style:{fontFamily:"var(--mono)",fontSize:13.5,fontWeight:600},children:[n.session_id.slice(0,8),R.jsxs("span",{style:{color:"var(--muted)"},children:["…",n.session_id.slice(-4)]})]}),n.repo&&R.jsx("span",{style:{color:"var(--muted)",fontSize:13.5},children:n.repo}),R.jsxs("span",{className:"badge",style:{background:"var(--surface-2)",padding:"1px 6px"},children:[n.event_count," event",n.event_count===1?"":"s"]}),R.jsx("span",{style:{color:"var(--muted)",fontSize:12.5,fontFamily:"var(--mono)"},children:r}),R.jsx("div",{style:{display:"flex",gap:4,flexWrap:"wrap"},children:n.event_types.map(o=>R.jsx("span",{style:{fontSize:12,padding:"1px 6px",borderRadius:3,color:Lf[o]??"var(--muted)",border:`1px solid ${Lf[o]??"var(--border)"}`},children:o},o))}),R.jsxs("span",{style:{marginLeft:"auto",color:"var(--muted)",fontSize:12.5},children:[ub(n.last_at)," ",i?"▾":"▸"]})]}),i&&R.jsx(tb,{sessionId:n.session_id})]})}function tb({sessionId:n}){var r;const i=fv({queryKey:["session-events",n],queryFn:()=>jl.activity({session_id:n,limit:500})}),c=(((r=i.data)==null?void 0:r.events)??[]).slice().reverse();return R.jsxs("div",{style:{marginTop:12,borderTop:"1px solid var(--border)",paddingTop:10},onClick:o=>o.stopPropagation(),children:[R.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:6},children:[R.jsxs("span",{className:"page-subtitle",children:[c.length," events (oldest first)"]}),R.jsx(Ls,{to:`/timeline?session_id=${n}`,className:"btn",style:{padding:"2px 8px",fontSize:12.5},children:"open in timeline →"})]}),i.isLoading&&R.jsx("div",{className:"empty",style:{padding:8},children:"loading…"}),!i.isLoading&&c.length===0&&R.jsx("div",{className:"empty",style:{padding:8},children:"no events"}),c.map(o=>R.jsx(eb,{event:o},o.id))]})}function eb({event:n}){const i=Lf[n.event_type]??"var(--accent)",c=lb(n);return R.jsxs("div",{style:{display:"flex",gap:10,alignItems:"baseline",padding:"4px 0",fontSize:13.5,borderBottom:"1px dashed var(--border)"},children:[R.jsx("span",{style:{color:"var(--muted)",fontFamily:"var(--mono)",fontSize:12,minWidth:60},children:ab(n.created_at)}),R.jsx("span",{style:{color:i,fontFamily:"var(--mono)",fontSize:12.5,minWidth:95},children:n.event_type}),R.jsx("span",{style:{color:"var(--muted)",fontSize:12.5},children:n.source}),R.jsx("span",{style:{flex:1,color:"var(--text-2)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:c})]})}function lb(n){const i=n.request??{},c=n.result??{};if(typeof i.name=="string"){const r=c.tool_call;return r!=null&&r.name?`${i.name} → ${r.name}${r.input_summary?` · ${r.input_summary.slice(0,80)}`:""}`:typeof c.text=="string"?`${i.name} · ${c.text.slice(0,80)}`:String(i.name)}return typeof i.query=="string"?`query: ${i.query.slice(0,80)}`:typeof i.text=="string"?i.text.slice(0,80):""}function ab(n){try{return new Date(n).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return n}}function nb(n,i){try{const c=new Date(n).getTime(),r=new Date(i).getTime(),o=Math.max(0,Math.round((r-c)/1e3));return o<60?`${o}s`:o<3600?`${Math.round(o/60)}m`:`${Math.round(o/3600)}h`}catch{return"—"}}function ub(n){try{const i=Date.now()-new Date(n).getTime(),c=Math.round(i/1e3);return c<60?`${c}s ago`:c<3600?`${Math.round(c/60)}m ago`:c<86400?`${Math.round(c/3600)}h ago`:`${Math.round(c/86400)}d ago`}catch{return n}}const Qy=50;function ib(){const n=Ns(),[i,c]=Bs(),r=i.get("resolved")??"open",o=m=>{const _=new URLSearchParams(i);m==="open"?_.delete("resolved"):_.set("resolved",m),c(_,{replace:!0})},d=r==="open"?!1:r==="resolved"?!0:void 0,y=O.useMemo(()=>JSON.stringify({resolvedFilter:r}),[r]),p=Qs({fetchPage:async(m,_)=>{const E=await jl.contradictions({resolved:_.resolved,limit:Qy,offset:m});return{items:E.contradictions,has_more:E.has_more}},pageSize:Qy,resetKey:y,query:{resolved:d},refetchInterval:2e4}),v=jf({mutationFn:({id:m,keep:_})=>jl.resolveContradiction(m,_),onSuccess:()=>{n.invalidateQueries({queryKey:["contradictions"]}),p.refresh()}});return R.jsxs("div",{children:[R.jsx("header",{className:"page-header",children:R.jsxs("div",{children:[R.jsx("h1",{className:"page-title",children:"Contradictions"}),R.jsx("p",{className:"page-subtitle",children:"Memory pairs that disagree — keep one to resolve"})]})}),R.jsxs("div",{className:"toolbar",children:[R.jsxs("select",{className:"select",value:r,onChange:m=>o(m.target.value),children:[R.jsx("option",{value:"open",children:"open only"}),R.jsx("option",{value:"resolved",children:"resolved only"}),R.jsx("option",{value:"all",children:"all"})]}),R.jsx("button",{className:"btn",onClick:()=>p.refresh(),style:{marginLeft:"auto"},children:"refresh"})]}),p.isLoading&&p.items.length===0&&R.jsx("div",{className:"empty",children:"loading…"}),!p.isLoading&&p.items.length===0&&R.jsx("div",{className:"empty",children:r==="open"?"no open contradictions — clean shop 🍃":"nothing to show"}),p.items.map(m=>R.jsxs("div",{className:"card",children:[R.jsxs("div",{className:"memory-meta",style:{marginBottom:6},children:[R.jsx("span",{className:`badge ${m.severity==="high"?"rejected":"candidate"}`,children:m.severity})," ",m.contradiction_type,m.resolved&&R.jsx("span",{style:{marginLeft:8,color:"var(--muted)"},children:"· resolved"})]}),R.jsx("div",{className:"memory-text",style:{marginBottom:10},children:m.description}),!m.resolved&&R.jsxs("div",{style:{display:"flex",gap:8},children:[R.jsxs("button",{className:"btn",onClick:()=>v.mutate({id:m.id,keep:m.memory_a_id}),children:["keep A (",m.memory_a_id.slice(0,8),")"]}),R.jsxs("button",{className:"btn",onClick:()=>v.mutate({id:m.id,keep:m.memory_b_id}),children:["keep B (",m.memory_b_id.slice(0,8),")"]})]})]},m.id)),R.jsx(ws,{hasMore:p.hasMore,isLoading:p.isLoadingMore,onLoadMore:p.loadMore,total:p.items.length})]})}const sb=O.lazy(async()=>({default:(await Q1(()=>import("./GraphPage-DJhwG-72.js"),__vite__mapDeps([0,1]))).GraphPage}));function cb(){const n=fv({queryKey:["health"],queryFn:()=>jl.health(),refetchInterval:15e3});return R.jsxs("div",{className:"layout",children:[R.jsxs("aside",{className:"sidebar",children:[R.jsxs("div",{className:"brand",children:[R.jsx("img",{src:"/recall-icon.png",alt:"",className:"brand-logo"}),R.jsx("span",{className:"brand-name",children:"Recall"})]}),R.jsxs("nav",{className:"nav",children:[R.jsx(Un,{to:"/memories",className:"nav-link",children:"Memories"}),R.jsx(Un,{to:"/graph",className:"nav-link",children:"Graph"}),R.jsx(Un,{to:"/timeline",className:"nav-link",children:"Timeline"}),R.jsx(Un,{to:"/sessions",className:"nav-link",children:"Sessions"}),R.jsx(Un,{to:"/contradictions",className:"nav-link",children:"Contradictions"})]}),R.jsx("footer",{className:"sidebar-footer",children:R.jsxs("div",{className:"health",children:[R.jsx("span",{className:`health-dot ${n.data?"ok":"stale"}`}),R.jsx("span",{className:"health-text",children:n.data?`daemon ${n.data.version}`:"no daemon"})]})})]}),R.jsx("main",{className:"content",children:R.jsxs(l1,{children:[R.jsx(ia,{path:"/",element:R.jsx(t1,{to:"/memories",replace:!0})}),R.jsx(ia,{path:"/memories",element:R.jsx(Ny,{})}),R.jsx(ia,{path:"/memories/:id",element:R.jsx(Ny,{})}),R.jsx(ia,{path:"/graph",element:R.jsx(O.Suspense,{fallback:R.jsx("p",{className:"empty-state",children:"Loading graph…"}),children:R.jsx(sb,{})})}),R.jsx(ia,{path:"/timeline",element:R.jsx(K1,{})}),R.jsx(ia,{path:"/sessions",element:R.jsx(P1,{})}),R.jsx(ia,{path:"/contradictions",element:R.jsx(ib,{})})]})})]})}const rb=new wg({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:1e4}}});mg.createRoot(document.getElementById("root")).render(R.jsx(ig.StrictMode,{children:R.jsx(Yg,{client:rb,children:R.jsx(z1,{children:R.jsx(cb,{})})})}));export{ig as R,jl as a,Qf as b,fg as c,Wy as g,R as j,O as r,fv as u};
|
|
186
|
+
//# sourceMappingURL=index-Cpn2MjW0.js.map
|