@m8i-51/shoal 0.1.11 → 0.1.12
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/framework/trackers/asana.ts +9 -4
- package/framework/trackers/backlog.ts +8 -2
- package/framework/trackers/github.ts +1 -0
- package/framework/trackers/index.ts +18 -8
- package/framework/trackers/jira.ts +8 -2
- package/framework/trackers/notion.ts +7 -4
- package/framework/trackers/types.ts +1 -0
- package/framework/triage.ts +8 -4
- package/package.json +2 -2
- package/web/dist/assets/{index-ehlX_Hdw.js → index-BgIAUEzL.js} +14 -14
- package/web/dist/index.html +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var zh;function ey(){if(zh)return Gn;zh=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+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:s,type:r,key:h,ref:o!==void 0?o:null,props:d}}return Gn.Fragment=i,Gn.jsx=c,Gn.jsxs=c,Gn}var Oh;function ty(){return Oh||(Oh=1,Jr.exports=ey()),Jr.exports}var N=ty(),$r={exports:{}},ie={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Dh;function ly(){if(Dh)return ie;Dh=1;var s=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"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),
|
|
17
|
+
*/var Dh;function ly(){if(Dh)return ie;Dh=1;var s=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"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),A=Symbol.iterator;function L(x){return x===null||typeof x!="object"?null:(x=A&&x[A]||x["@@iterator"],typeof x=="function"?x:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,G={};function q(x,j,K){this.props=x,this.context=j,this.refs=G,this.updater=K||_}q.prototype.isReactComponent={},q.prototype.setState=function(x,j){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,j,"setState")},q.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function X(){}X.prototype=q.prototype;function Y(x,j,K){this.props=x,this.context=j,this.refs=G,this.updater=K||_}var Q=Y.prototype=new X;Q.constructor=Y,w(Q,q.prototype),Q.isPureReactComponent=!0;var I=Array.isArray;function se(){}var k={H:null,A:null,T:null,S:null},ge=Object.prototype.hasOwnProperty;function ce(x,j,K){var Z=K.ref;return{$$typeof:s,type:x,key:j,ref:Z!==void 0?Z:null,props:K}}function me(x,j){return ce(x.type,j,x.props)}function Be(x){return typeof x=="object"&&x!==null&&x.$$typeof===s}function le(x){var j={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(K){return j[K]})}var ee=/\/+/g;function ne(x,j){return typeof x=="object"&&x!==null&&x.key!=null?le(""+x.key):j.toString(36)}function oe(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(se,se):(x.status="pending",x.then(function(j){x.status==="pending"&&(x.status="fulfilled",x.value=j)},function(j){x.status==="pending"&&(x.status="rejected",x.reason=j)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function D(x,j,K,Z,ae){var fe=typeof x;(fe==="undefined"||fe==="boolean")&&(x=null);var Te=!1;if(x===null)Te=!0;else switch(fe){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(x.$$typeof){case s:case i:Te=!0;break;case b:return Te=x._init,D(Te(x._payload),j,K,Z,ae)}}if(Te)return ae=ae(x),Te=Z===""?"."+ne(x,0):Z,I(ae)?(K="",Te!=null&&(K=Te.replace(ee,"$&/")+"/"),D(ae,j,K,"",function(Ja){return Ja})):ae!=null&&(Be(ae)&&(ae=me(ae,K+(ae.key==null||x&&x.key===ae.key?"":(""+ae.key).replace(ee,"$&/")+"/")+Te)),j.push(ae)),1;Te=0;var ut=Z===""?".":Z+":";if(I(x))for(var Ge=0;Ge<x.length;Ge++)Z=x[Ge],fe=ut+ne(Z,Ge),Te+=D(Z,j,K,fe,ae);else if(Ge=L(x),typeof Ge=="function")for(x=Ge.call(x),Ge=0;!(Z=x.next()).done;)Z=Z.value,fe=ut+ne(Z,Ge++),Te+=D(Z,j,K,fe,ae);else if(fe==="object"){if(typeof x.then=="function")return D(oe(x),j,K,Z,ae);throw j=String(x),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Te}function V(x,j,K){if(x==null)return x;var Z=[],ae=0;return D(x,Z,"","",function(fe){return j.call(K,fe,ae++)}),Z}function F(x){if(x._status===-1){var j=x._result;j=j(),j.then(function(K){(x._status===0||x._status===-1)&&(x._status=1,x._result=K)},function(K){(x._status===0||x._status===-1)&&(x._status=2,x._result=K)}),x._status===-1&&(x._status=0,x._result=j)}if(x._status===1)return x._result.default;throw x._result}var Se=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},Re={map:V,forEach:function(x,j,K){V(x,function(){j.apply(this,arguments)},K)},count:function(x){var j=0;return V(x,function(){j++}),j},toArray:function(x){return V(x,function(j){return j})||[]},only:function(x){if(!Be(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ie.Activity=v,ie.Children=Re,ie.Component=q,ie.Fragment=c,ie.Profiler=o,ie.PureComponent=Y,ie.StrictMode=r,ie.Suspense=y,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ie.__COMPILER_RUNTIME={__proto__:null,c:function(x){return k.H.useMemoCache(x)}},ie.cache=function(x){return function(){return x.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(x,j,K){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=w({},x.props),ae=x.key;if(j!=null)for(fe in j.key!==void 0&&(ae=""+j.key),j)!ge.call(j,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&j.ref===void 0||(Z[fe]=j[fe]);var fe=arguments.length-2;if(fe===1)Z.children=K;else if(1<fe){for(var Te=Array(fe),ut=0;ut<fe;ut++)Te[ut]=arguments[ut+2];Z.children=Te}return ce(x.type,ae,Z)},ie.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},ie.createElement=function(x,j,K){var Z,ae={},fe=null;if(j!=null)for(Z in j.key!==void 0&&(fe=""+j.key),j)ge.call(j,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ae[Z]=j[Z]);var Te=arguments.length-2;if(Te===1)ae.children=K;else if(1<Te){for(var ut=Array(Te),Ge=0;Ge<Te;Ge++)ut[Ge]=arguments[Ge+2];ae.children=ut}if(x&&x.defaultProps)for(Z in Te=x.defaultProps,Te)ae[Z]===void 0&&(ae[Z]=Te[Z]);return ce(x,fe,ae)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(x){return{$$typeof:p,render:x}},ie.isValidElement=Be,ie.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:F}},ie.memo=function(x,j){return{$$typeof:g,type:x,compare:j===void 0?null:j}},ie.startTransition=function(x){var j=k.T,K={};k.T=K;try{var Z=x(),ae=k.S;ae!==null&&ae(K,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(se,Se)}catch(fe){Se(fe)}finally{j!==null&&K.types!==null&&(j.types=K.types),k.T=j}},ie.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ie.use=function(x){return k.H.use(x)},ie.useActionState=function(x,j,K){return k.H.useActionState(x,j,K)},ie.useCallback=function(x,j){return k.H.useCallback(x,j)},ie.useContext=function(x){return k.H.useContext(x)},ie.useDebugValue=function(){},ie.useDeferredValue=function(x,j){return k.H.useDeferredValue(x,j)},ie.useEffect=function(x,j){return k.H.useEffect(x,j)},ie.useEffectEvent=function(x){return k.H.useEffectEvent(x)},ie.useId=function(){return k.H.useId()},ie.useImperativeHandle=function(x,j,K){return k.H.useImperativeHandle(x,j,K)},ie.useInsertionEffect=function(x,j){return k.H.useInsertionEffect(x,j)},ie.useLayoutEffect=function(x,j){return k.H.useLayoutEffect(x,j)},ie.useMemo=function(x,j){return k.H.useMemo(x,j)},ie.useOptimistic=function(x,j){return k.H.useOptimistic(x,j)},ie.useReducer=function(x,j,K){return k.H.useReducer(x,j,K)},ie.useRef=function(x){return k.H.useRef(x)},ie.useState=function(x){return k.H.useState(x)},ie.useSyncExternalStore=function(x,j,K){return k.H.useSyncExternalStore(x,j,K)},ie.useTransition=function(){return k.H.useTransition()},ie.version="19.2.5",ie}var Mh;function Au(){return Mh||(Mh=1,$r.exports=ly()),$r.exports}var T=Au(),kr={exports:{}},Vn={},Fr={exports:{}},Wr={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var _h;function ay(){return _h||(_h=1,(function(s){function i(D,V){var F=D.length;D.push(V);e:for(;0<F;){var Se=F-1>>>1,Re=D[Se];if(0<o(Re,V))D[Se]=V,D[F]=Re,F=Se;else break e}}function c(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],F=D.pop();if(F!==V){D[0]=F;e:for(var Se=0,Re=D.length,x=Re>>>1;Se<x;){var j=2*(Se+1)-1,K=D[j],Z=j+1,ae=D[Z];if(0>o(K,F))Z<Re&&0>o(ae,K)?(D[Se]=ae,D[Z]=F,Se=Z):(D[Se]=K,D[j]=F,Se=j);else if(Z<Re&&0>o(ae,F))D[Se]=ae,D[Z]=F,Se=Z;else break e}}return V}function o(D,V){var F=D.sortIndex-V.sortIndex;return F!==0?F:D.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();s.unstable_now=function(){return h.now()-p}}var y=[],g=[],b=1,v=null,
|
|
25
|
+
*/var _h;function ay(){return _h||(_h=1,(function(s){function i(D,V){var F=D.length;D.push(V);e:for(;0<F;){var Se=F-1>>>1,Re=D[Se];if(0<o(Re,V))D[Se]=V,D[F]=Re,F=Se;else break e}}function c(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],F=D.pop();if(F!==V){D[0]=F;e:for(var Se=0,Re=D.length,x=Re>>>1;Se<x;){var j=2*(Se+1)-1,K=D[j],Z=j+1,ae=D[Z];if(0>o(K,F))Z<Re&&0>o(ae,K)?(D[Se]=ae,D[Z]=F,Se=Z):(D[Se]=K,D[j]=F,Se=j);else if(Z<Re&&0>o(ae,F))D[Se]=ae,D[Z]=F,Se=Z;else break e}}return V}function o(D,V){var F=D.sortIndex-V.sortIndex;return F!==0?F:D.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();s.unstable_now=function(){return h.now()-p}}var y=[],g=[],b=1,v=null,A=3,L=!1,_=!1,w=!1,G=!1,q=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function Q(D){for(var V=c(g);V!==null;){if(V.callback===null)r(g);else if(V.startTime<=D)r(g),V.sortIndex=V.expirationTime,i(y,V);else break;V=c(g)}}function I(D){if(w=!1,Q(D),!_)if(c(y)!==null)_=!0,se||(se=!0,le());else{var V=c(g);V!==null&&oe(I,V.startTime-D)}}var se=!1,k=-1,ge=5,ce=-1;function me(){return G?!0:!(s.unstable_now()-ce<ge)}function Be(){if(G=!1,se){var D=s.unstable_now();ce=D;var V=!0;try{e:{_=!1,w&&(w=!1,X(k),k=-1),L=!0;var F=A;try{t:{for(Q(D),v=c(y);v!==null&&!(v.expirationTime>D&&me());){var Se=v.callback;if(typeof Se=="function"){v.callback=null,A=v.priorityLevel;var Re=Se(v.expirationTime<=D);if(D=s.unstable_now(),typeof Re=="function"){v.callback=Re,Q(D),V=!0;break t}v===c(y)&&r(y),Q(D)}else r(y);v=c(y)}if(v!==null)V=!0;else{var x=c(g);x!==null&&oe(I,x.startTime-D),V=!1}}break e}finally{v=null,A=F,L=!1}V=void 0}}finally{V?le():se=!1}}}var le;if(typeof Y=="function")le=function(){Y(Be)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ne=ee.port2;ee.port1.onmessage=Be,le=function(){ne.postMessage(null)}}else le=function(){q(Be,0)};function oe(D,V){k=q(function(){D(s.unstable_now())},V)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(D){D.callback=null},s.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ge=0<D?Math.floor(1e3/D):5},s.unstable_getCurrentPriorityLevel=function(){return A},s.unstable_next=function(D){switch(A){case 1:case 2:case 3:var V=3;break;default:V=A}var F=A;A=V;try{return D()}finally{A=F}},s.unstable_requestPaint=function(){G=!0},s.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var F=A;A=D;try{return V()}finally{A=F}},s.unstable_scheduleCallback=function(D,V,F){var Se=s.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?Se+F:Se):F=Se,D){case 1:var Re=-1;break;case 2:Re=250;break;case 5:Re=1073741823;break;case 4:Re=1e4;break;default:Re=5e3}return Re=F+Re,D={id:b++,callback:V,priorityLevel:D,startTime:F,expirationTime:Re,sortIndex:-1},F>Se?(D.sortIndex=F,i(g,D),c(y)===null&&D===c(g)&&(w?(X(k),k=-1):w=!0,oe(I,F-Se))):(D.sortIndex=Re,i(y,D),_||L||(_=!0,se||(se=!0,le()))),D},s.unstable_shouldYield=me,s.unstable_wrapCallback=function(D){var V=A;return function(){var F=A;A=V;try{return D.apply(this,arguments)}finally{A=F}}}})(Wr)),Wr}var Nh;function ny(){return Nh||(Nh=1,Fr.exports=ay()),Fr.exports}var Ir={exports:{}},it={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Lh;function iy(){if(Lh)return it;Lh=1;var s=
|
|
33
|
+
*/var Lh;function iy(){if(Lh)return it;Lh=1;var s=Au();function i(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+g+" 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(y,g,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:y,containerInfo:g,implementation:b}}var h=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,it.createPortal=function(y,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return d(y,g,null,b)},it.flushSync=function(y){var g=h.T,b=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=g,r.p=b,r.d.f()}},it.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},it.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},it.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var b=g.as,v=p(b,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,L=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:A,fetchPriority:L}):b==="script"&&r.d.X(y,{crossOrigin:v,integrity:A,fetchPriority:L,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},it.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=p(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},it.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,v=p(b,g.crossOrigin);r.d.L(y,b,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},it.preloadModule=function(y,g){if(typeof y=="string")if(g){var b=p(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},it.requestFormReset=function(y){r.d.r(y)},it.unstable_batchedUpdates=function(y,g){return y(g)},it.useFormState=function(y,g,b){return h.H.useFormState(y,g,b)},it.useFormStatus=function(){return h.H.useHostTransitionStatus()},it.version="19.2.5",it}var Uh;function uy(){if(Uh)return Ir.exports;Uh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),Ir.exports=iy(),Ir.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var jh;function sy(){if(jh)return Vn;jh=1;var s=ny(),i=
|
|
41
|
+
*/var jh;function sy(){if(jh)return Vn;jh=1;var s=ny(),i=Au(),c=uy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return y(n),e;if(u===a)return y(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var f=!1,m=n.child;m;){if(m===l){f=!0,l=n,a=u;break}if(m===a){f=!0,a=n,l=u;break}m=m.sibling}if(!f){for(m=u.child;m;){if(m===l){f=!0,l=u,a=n;break}if(m===a){f=!0,a=u,l=n;break}m=m.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?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,A=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),Be=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=Be&&e[Be]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case q:return"Profiler";case G:return"StrictMode";case I:return"Suspense";case se:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case ge:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var oe=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},Se=[],Re=-1;function x(e){return{current:e}}function j(e){0>Re||(e.current=Se[Re],Se[Re]=null,Re--)}function K(e,t){Re++,Se[Re]=e.current,e.current=t}var Z=x(null),ae=x(null),fe=x(null),Te=x(null);function ut(e,t){switch(K(fe,t),K(ae,e),K(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fd(t),e=Wd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(Z),K(Z,e)}function Ge(){j(Z),j(ae),j(fe)}function Ja(e){e.memoizedState!==null&&K(Te,e);var t=Z.current,l=Wd(t,e.type);t!==l&&(K(ae,e),K(Z,l))}function In(e){ae.current===e&&(j(Z),j(ae)),Te.current===e&&(j(Te),Bn._currentValue=F)}var Du,Tc;function ql(e){if(Du===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Du=t&&t[1]||"",Tc=-1<l.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
43
|
`+Du+e+Tc}var Mu=!1;function _u(e,t){if(!e||Mu)return"";Mu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){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(M){var O=M}Reflect.construct(e,[],B)}else{try{B.call()}catch(M){O=M}e.call(B.prototype)}}else{try{throw Error()}catch(M){O=M}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(M){if(M&&O&&typeof M.stack=="string")return[M.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),f=u[0],m=u[1];if(f&&m){var S=f.split(`
|
|
44
|
-
`),
|
|
45
|
-
`);for(n=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;n<
|
|
46
|
-
`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=n);break}}}finally{Mu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ql(l):""}function _g(e,t){switch(e.tag){case 26:case 27:case 5:return ql(e.type);case 16:return ql("Lazy");case 13:return e.child!==t&&t!==null?ql("Suspense Fallback"):ql("Suspense");case 19:return ql("SuspenseList");case 0:case 15:return _u(e.type,!1);case 11:return _u(e.type.render,!1);case 1:return _u(e.type,!0);case 31:return ql("Activity");default:return""}}function
|
|
44
|
+
`),z=m.split(`
|
|
45
|
+
`);for(n=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(a===S.length||n===z.length)for(a=S.length-1,n=z.length-1;1<=a&&0<=n&&S[a]!==z[n];)n--;for(;1<=a&&0<=n;a--,n--)if(S[a]!==z[n]){if(a!==1||n!==1)do if(a--,n--,0>n||S[a]!==z[n]){var U=`
|
|
46
|
+
`+S[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=n);break}}}finally{Mu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ql(l):""}function _g(e,t){switch(e.tag){case 26:case 27:case 5:return ql(e.type);case 16:return ql("Lazy");case 13:return e.child!==t&&t!==null?ql("Suspense Fallback"):ql("Suspense");case 19:return ql("SuspenseList");case 0:case 15:return _u(e.type,!1);case 11:return _u(e.type.render,!1);case 1:return _u(e.type,!0);case 31:return ql("Activity");default:return""}}function Ac(e){try{var t="",l=null;do t+=_g(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
47
|
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Nu=Object.prototype.hasOwnProperty,Lu=s.unstable_scheduleCallback,Uu=s.unstable_cancelCallback,Ng=s.unstable_shouldYield,Lg=s.unstable_requestPaint,mt=s.unstable_now,Ug=s.unstable_getCurrentPriorityLevel,zc=s.unstable_ImmediatePriority,Ac=s.unstable_UserBlockingPriority,Pn=s.unstable_NormalPriority,jg=s.unstable_LowPriority,Oc=s.unstable_IdlePriority,Hg=s.log,Bg=s.unstable_setDisableYieldValue,$a=null,pt=null;function gl(e){if(typeof Hg=="function"&&Bg(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode($a,e)}catch{}}var yt=Math.clz32?Math.clz32:Yg,wg=Math.log,qg=Math.LN2;function Yg(e){return e>>>=0,e===0?32:31-(wg(e)/qg|0)|0}var ei=256,ti=262144,li=4194304;function Yl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ai(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~u,a!==0?n=Yl(a):(f&=m,f!==0?n=Yl(f):l||(l=m&~e,l!==0&&(n=Yl(l))))):(m=a&~u,m!==0?n=Yl(m):f!==0?n=Yl(f):l||(l=a&~e,l!==0&&(n=Yl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Gg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Dc(){var e=li;return li<<=1,(li&62914560)===0&&(li=4194304),e}function ju(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Vg(e,t,l,a,n,u){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(l=f&~l;0<l;){var U=31-yt(l),B=1<<U;m[U]=0,S[U]=-1;var O=A[U];if(O!==null)for(A[U]=null,U=0;U<O.length;U++){var M=O[U];M!==null&&(M.lane&=-536870913)}l&=~B}a!==0&&Mc(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function Mc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function _c(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-yt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Nc(e,t){var l=t&-t;return l=(l&42)!==0?1:Hu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Hu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Lc(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:bh(e.type))}function Uc(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var ml=Math.random().toString(36).slice(2),et="__reactFiber$"+ml,rt="__reactProps$"+ml,ua="__reactContainer$"+ml,wu="__reactEvents$"+ml,Xg="__reactListeners$"+ml,Qg="__reactHandles$"+ml,jc="__reactResources$"+ml,Wa="__reactMarker$"+ml;function qu(e){delete e[et],delete e[rt],delete e[wu],delete e[Xg],delete e[Qg]}function sa(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ua]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=nh(e);e!==null;){if(l=e[et])return l;e=nh(e)}return t}e=l,l=e.parentNode}return null}function ra(e){if(e=e[et]||e[ua]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ca(e){var t=e[jc];return t||(t=e[jc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[Wa]=!0}var Hc=new Set,Bc={};function Gl(e,t){oa(e,t),oa(e+"Capture",t)}function oa(e,t){for(Bc[e]=t,e=0;e<t.length;e++)Hc.add(t[e])}var Kg=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]*$"),wc={},qc={};function Zg(e){return Nu.call(qc,e)?!0:Nu.call(wc,e)?!1:Kg.test(e)?qc[e]=!0:(wc[e]=!0,!1)}function ni(e,t,l){if(Zg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ii(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Jt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jg(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yu(e){if(!e._valueTracker){var t=Yc(e)?"checked":"value";e._valueTracker=Jg(e,t,""+e[t])}}function Gc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Yc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ui(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var $g=/[\n"\\]/g;function zt(e){return e.replace($g,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gu(e,t,l,a,n,u,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Vu(e,f,Ct(t)):l!=null?Vu(e,f,Ct(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Ct(m):e.removeAttribute("name")}function Vc(e,t,l,a,n,u,f,m){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Yu(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Yu(e)}function Vu(e,t,l){t==="number"&&ui(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function fa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Xc(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function Qc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(oe(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Yu(e)}function da(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var kg=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 Kc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||kg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Zc(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Kc(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Kc(e,u,t[u])}function Xu(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Fg=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"]]),Wg=/^[\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 si(e){return Wg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var Qu=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,ga=null;function Jc(e){var t=ra(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[rt]||null;if(!n)throw Error(r(90));Gu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Gc(a)}break e;case"textarea":Xc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&fa(e,!!l.multiple,t,!1)}}}var Zu=!1;function $c(e,t,l){if(Zu)return e(t,l);Zu=!0;try{var a=e(t);return a}finally{if(Zu=!1,(ha!==null||ga!==null)&&($i(),ha&&(t=ha,e=ga,ga=ha=null,Jc(t),e)))for(t=0;t<e.length;t++)Jc(e[t])}}function Pa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||null;if(a===null)return null;l=a[t];e:switch(t){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)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ju=!1;if(kt)try{var en={};Object.defineProperty(en,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{Ju=!1}var pl=null,$u=null,ri=null;function kc(){if(ri)return ri;var e,t=$u,l=t.length,a,n="value"in pl?pl.value:pl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===n[u-a];a++);return ri=n.slice(e,1<a?1-a:void 0)}function ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function oi(){return!0}function Fc(){return!1}function ct(e){function t(l,a,n,u,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(u):u[m]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?oi:Fc,this.isPropagationStopped=Fc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fi=ct(Vl),tn=v({},Vl,{view:0,detail:0}),Ig=ct(tn),ku,Fu,ln,di=v({},tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&e.type==="mousemove"?(ku=e.screenX-ln.screenX,Fu=e.screenY-ln.screenY):Fu=ku=0,ln=e),ku)},movementY:function(e){return"movementY"in e?e.movementY:Fu}}),Wc=ct(di),Pg=v({},di,{dataTransfer:0}),em=ct(Pg),tm=v({},tn,{relatedTarget:0}),Wu=ct(tm),lm=v({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),am=ct(lm),nm=v({},Vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),im=ct(nm),um=v({},Vl,{data:0}),Ic=ct(um),sm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rm={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"},cm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cm[e])?!!t[e]:!1}function Iu(){return om}var fm=v({},tn,{key:function(e){if(e.key){var t=sm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(e){return e.type==="keypress"?ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dm=ct(fm),hm=v({},di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pc=ct(hm),gm=v({},tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),mm=ct(gm),pm=v({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ym=ct(pm),vm=v({},di,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Sm=ct(vm),bm=v({},Vl,{newState:0,oldState:0}),xm=ct(bm),Em=[9,13,27,32],Pu=kt&&"CompositionEvent"in window,an=null;kt&&"documentMode"in document&&(an=document.documentMode);var Rm=kt&&"TextEvent"in window&&!an,eo=kt&&(!Pu||an&&8<an&&11>=an),to=" ",lo=!1;function ao(e,t){switch(e){case"keyup":return Em.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function no(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ma=!1;function Tm(e,t){switch(e){case"compositionend":return no(t);case"keypress":return t.which!==32?null:(lo=!0,to);case"textInput":return e=t.data,e===to&&lo?null:e;default:return null}}function Cm(e,t){if(ma)return e==="compositionend"||!Pu&&ao(e,t)?(e=kc(),ri=$u=pl=null,ma=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return eo&&t.locale!=="ko"?null:t.data;default:return null}}var zm={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 io(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zm[e.type]:t==="textarea"}function uo(e,t,l,a){ha?ga?ga.push(a):ga=[a]:ha=a,t=tu(t,"onChange"),0<t.length&&(l=new fi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var nn=null,un=null;function Am(e){Qd(e,0)}function hi(e){var t=Ia(e);if(Gc(t))return e}function so(e,t){if(e==="change")return t}var ro=!1;if(kt){var es;if(kt){var ts="oninput"in document;if(!ts){var co=document.createElement("div");co.setAttribute("oninput","return;"),ts=typeof co.oninput=="function"}es=ts}else es=!1;ro=es&&(!document.documentMode||9<document.documentMode)}function oo(){nn&&(nn.detachEvent("onpropertychange",fo),un=nn=null)}function fo(e){if(e.propertyName==="value"&&hi(un)){var t=[];uo(t,un,e,Ku(e)),$c(Am,t)}}function Om(e,t,l){e==="focusin"?(oo(),nn=t,un=l,nn.attachEvent("onpropertychange",fo)):e==="focusout"&&oo()}function Dm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hi(un)}function Mm(e,t){if(e==="click")return hi(t)}function _m(e,t){if(e==="input"||e==="change")return hi(t)}function Nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Nm;function sn(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Nu.call(t,n)||!vt(e[n],t[n]))return!1}return!0}function ho(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function go(e,t){var l=ho(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ho(l)}}function mo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function po(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ui(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ui(e.document)}return t}function ls(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Lm=kt&&"documentMode"in document&&11>=document.documentMode,pa=null,as=null,rn=null,ns=!1;function yo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ns||pa==null||pa!==ui(a)||(a=pa,"selectionStart"in a&&ls(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}),rn&&sn(rn,a)||(rn=a,a=tu(as,"onSelect"),0<a.length&&(t=new fi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=pa)))}function Xl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ya={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionrun:Xl("Transition","TransitionRun"),transitionstart:Xl("Transition","TransitionStart"),transitioncancel:Xl("Transition","TransitionCancel"),transitionend:Xl("Transition","TransitionEnd")},is={},vo={};kt&&(vo=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function Ql(e){if(is[e])return is[e];if(!ya[e])return e;var t=ya[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in vo)return is[e]=t[l];return e}var So=Ql("animationend"),bo=Ql("animationiteration"),xo=Ql("animationstart"),Um=Ql("transitionrun"),jm=Ql("transitionstart"),Hm=Ql("transitioncancel"),Eo=Ql("transitionend"),Ro=new Map,us="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(" ");us.push("scrollEnd");function Ht(e,t){Ro.set(e,t),Gl(t,[e])}var gi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},At=[],va=0,ss=0;function mi(){for(var e=va,t=ss=va=0;t<e;){var l=At[t];At[t++]=null;var a=At[t];At[t++]=null;var n=At[t];At[t++]=null;var u=At[t];if(At[t++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}u!==0&&To(l,n,u)}}function pi(e,t,l,a){At[va++]=e,At[va++]=t,At[va++]=l,At[va++]=a,ss|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function rs(e,t,l,a){return pi(e,t,l,a),yi(e)}function Kl(e,t){return pi(e,null,null,t),yi(e)}function To(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-yt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function yi(e){if(50<Mn)throw Mn=0,yr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sa={};function Bm(e,t,l,a){this.tag=e,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=t,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 St(e,t,l,a){return new Bm(e,t,l,a)}function cs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=St(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Co(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function vi(e,t,l,a,n,u){var f=0;if(a=e,typeof e=="function")cs(e)&&(f=1);else if(typeof e=="string")f=Vp(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=St(31,l,t,n),e.elementType=ce,e.lanes=u,e;case w:return Zl(l.children,n,u,t);case G:f=8,n|=24;break;case Y:return e=St(12,l,t,n|2),e.elementType=Y,e.lanes=u,e;case I:return e=St(13,l,t,n),e.elementType=I,e.lanes=u,e;case se:return e=St(19,l,t,n),e.elementType=se,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:f=10;break e;case X:f=9;break e;case Q:f=11;break e;case k:f=14;break e;case ge:f=16,a=null;break e}f=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=St(f,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Zl(e,t,l,a){return e=St(7,e,a,t),e.lanes=l,e}function os(e,t,l){return e=St(6,e,null,t),e.lanes=l,e}function zo(e){var t=St(18,null,null,0);return t.stateNode=e,t}function fs(e,t,l){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ao=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var l=Ao.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Cc(t)},Ao.set(e,t),t)}return{value:e,source:t,stack:Cc(t)}}var ba=[],xa=0,Si=null,cn=0,Dt=[],Mt=0,yl=null,Yt=1,Gt="";function Wt(e,t){ba[xa++]=cn,ba[xa++]=Si,Si=e,cn=t}function Oo(e,t,l){Dt[Mt++]=Yt,Dt[Mt++]=Gt,Dt[Mt++]=yl,yl=e;var a=Yt;e=Gt;var n=32-yt(a)-1;a&=~(1<<n),l+=1;var u=32-yt(t)+n;if(30<u){var f=n-n%5;u=(a&(1<<f)-1).toString(32),a>>=f,n-=f,Yt=1<<32-yt(t)+n|l<<n|a,Gt=u+e}else Yt=1<<u|l<<n|a,Gt=e}function ds(e){e.return!==null&&(Wt(e,1),Oo(e,1,0))}function hs(e){for(;e===Si;)Si=ba[--xa],ba[xa]=null,cn=ba[--xa],ba[xa]=null;for(;e===yl;)yl=Dt[--Mt],Dt[Mt]=null,Gt=Dt[--Mt],Dt[Mt]=null,Yt=Dt[--Mt],Dt[Mt]=null}function Do(e,t){Dt[Mt++]=Yt,Dt[Mt++]=Gt,Dt[Mt++]=yl,Yt=t.id,Gt=t.overflow,yl=e}var tt=null,Ne=null,ve=!1,vl=null,_t=!1,gs=Error(r(519));function Sl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw on(Ot(t,e)),gs}function Mo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[rt]=a,l){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)he(Nn[l],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),Vc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Qc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||$d(t.textContent,l)?(a.popover!=null&&(he("beforetoggle",t),he("toggle",t)),a.onScroll!=null&&he("scroll",t),a.onScrollEnd!=null&&he("scrollend",t),a.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||Sl(e,!0)}function _o(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:_t=!1;return;case 27:case 3:_t=!0;return;default:tt=tt.return}}function Ea(e){if(e!==tt)return!1;if(!ve)return _o(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Nr(e.type,e.memoizedProps)),l=!l),l&&Ne&&Sl(e),_o(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ne=ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ne=ah(e)}else t===27?(t=Ne,Ll(e.type)?(e=Br,Br=null,Ne=e):Ne=t):Ne=tt?Lt(e.stateNode.nextSibling):null;return!0}function Jl(){Ne=tt=null,ve=!1}function ms(){var e=vl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),vl=null),e}function on(e){vl===null?vl=[e]:vl.push(e)}var ps=x(null),$l=null,It=null;function bl(e,t,l){K(ps,t._currentValue),t._currentValue=l}function Pt(e){e._currentValue=ps.current,j(ps)}function ys(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function vs(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var f=n.child;u=u.firstContext;e:for(;u!==null;){var m=u;u=n;for(var S=0;S<t.length;S++)if(m.context===t[S]){u.lanes|=l,m=u.alternate,m!==null&&(m.lanes|=l),ys(u.return,l,e),a||(f=null);break e}u=m.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(r(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),ys(f,l,e),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===e){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function Ra(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var m=n.type;vt(n.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(n===Te.current){if(f=n.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Bn):e=[Bn])}n=n.return}e!==null&&vs(t,e,l,a),t.flags|=262144}function bi(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){$l=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return No($l,e)}function xi(e,t){return $l===null&&kl(e),No(e,t)}function No(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},It===null){if(e===null)throw Error(r(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return l}var wm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},qm=s.unstable_scheduleCallback,Ym=s.unstable_NormalPriority,Ke={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ss(){return{controller:new wm,data:new Map,refCount:0}}function fn(e){e.refCount--,e.refCount===0&&qm(Ym,function(){e.controller.abort()})}var dn=null,bs=0,Ta=0,Ca=null;function Gm(e,t){if(dn===null){var l=dn=[];bs=0,Ta=Rr(),Ca={status:"pending",value:void 0,then:function(a){l.push(a)}}}return bs++,t.then(Lo,Lo),t}function Lo(){if(--bs===0&&dn!==null){Ca!==null&&(Ca.status="fulfilled");var e=dn;dn=null,Ta=0,Ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vm(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Uo=D.S;D.S=function(e,t){vd=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Gm(e,t),Uo!==null&&Uo(e,t)};var Fl=x(null);function xs(){var e=Fl.current;return e!==null?e:_e.pooledCache}function Ei(e,t){t===null?K(Fl,Fl.current):K(Fl,t.pool)}function jo(){var e=xs();return e===null?null:{parent:Ke._currentValue,pool:e}}var za=Error(r(460)),Es=Error(r(474)),Ri=Error(r(542)),Ti={then:function(){}};function Ho(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then($t,$t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qo(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qo(e),e}throw Il=t,za}}function Wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Il=l,za):l}}var Il=null;function wo(){if(Il===null)throw Error(r(459));var e=Il;return Il=null,e}function qo(e){if(e===za||e===Ri)throw Error(r(483))}var Aa=null,hn=0;function Ci(e){var t=hn;return hn+=1,Aa===null&&(Aa=[]),Bo(Aa,e,t)}function gn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function zi(e,t){throw t.$$typeof===C?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yo(e){function t(R,E){if(e){var z=R.deletions;z===null?(R.deletions=[E],R.flags|=16):z.push(E)}}function l(R,E){if(!e)return null;for(;E!==null;)t(R,E),E=E.sibling;return null}function a(R){for(var E=new Map;R!==null;)R.key!==null?E.set(R.key,R):E.set(R.index,R),R=R.sibling;return E}function n(R,E){return R=Ft(R,E),R.index=0,R.sibling=null,R}function u(R,E,z){return R.index=z,e?(z=R.alternate,z!==null?(z=z.index,z<E?(R.flags|=67108866,E):z):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function f(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function m(R,E,z,H){return E===null||E.tag!==6?(E=os(z,R.mode,H),E.return=R,E):(E=n(E,z),E.return=R,E)}function S(R,E,z,H){var W=z.type;return W===w?U(R,E,z.props.children,H,z.key):E!==null&&(E.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ge&&Wl(W)===E.type)?(E=n(E,z.props),gn(E,z),E.return=R,E):(E=vi(z.type,z.key,z.props,null,R.mode,H),gn(E,z),E.return=R,E)}function A(R,E,z,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==z.containerInfo||E.stateNode.implementation!==z.implementation?(E=fs(z,R.mode,H),E.return=R,E):(E=n(E,z.children||[]),E.return=R,E)}function U(R,E,z,H,W){return E===null||E.tag!==7?(E=Zl(z,R.mode,H,W),E.return=R,E):(E=n(E,z),E.return=R,E)}function B(R,E,z){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=os(""+E,R.mode,z),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case L:return z=vi(E.type,E.key,E.props,null,R.mode,z),gn(z,E),z.return=R,z;case _:return E=fs(E,R.mode,z),E.return=R,E;case ge:return E=Wl(E),B(R,E,z)}if(oe(E)||le(E))return E=Zl(E,R.mode,z,null),E.return=R,E;if(typeof E.then=="function")return B(R,Ci(E),z);if(E.$$typeof===q)return B(R,xi(R,E),z);zi(R,E)}return null}function O(R,E,z,H){var W=E!==null?E.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return W!==null?null:m(R,E,""+z,H);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case L:return z.key===W?S(R,E,z,H):null;case _:return z.key===W?A(R,E,z,H):null;case ge:return z=Wl(z),O(R,E,z,H)}if(oe(z)||le(z))return W!==null?null:U(R,E,z,H,null);if(typeof z.then=="function")return O(R,E,Ci(z),H);if(z.$$typeof===q)return O(R,E,xi(R,z),H);zi(R,z)}return null}function M(R,E,z,H,W){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(z)||null,m(E,R,""+H,W);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case L:return R=R.get(H.key===null?z:H.key)||null,S(E,R,H,W);case _:return R=R.get(H.key===null?z:H.key)||null,A(E,R,H,W);case ge:return H=Wl(H),M(R,E,z,H,W)}if(oe(H)||le(H))return R=R.get(z)||null,U(E,R,H,W,null);if(typeof H.then=="function")return M(R,E,z,Ci(H),W);if(H.$$typeof===q)return M(R,E,z,xi(E,H),W);zi(E,H)}return null}function J(R,E,z,H){for(var W=null,be=null,$=E,re=E=0,ye=null;$!==null&&re<z.length;re++){$.index>re?(ye=$,$=null):ye=$.sibling;var xe=O(R,$,z[re],H);if(xe===null){$===null&&($=ye);break}e&&$&&xe.alternate===null&&t(R,$),E=u(xe,E,re),be===null?W=xe:be.sibling=xe,be=xe,$=ye}if(re===z.length)return l(R,$),ve&&Wt(R,re),W;if($===null){for(;re<z.length;re++)$=B(R,z[re],H),$!==null&&(E=u($,E,re),be===null?W=$:be.sibling=$,be=$);return ve&&Wt(R,re),W}for($=a($);re<z.length;re++)ye=M($,R,re,z[re],H),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?re:ye.key),E=u(ye,E,re),be===null?W=ye:be.sibling=ye,be=ye);return e&&$.forEach(function(wl){return t(R,wl)}),ve&&Wt(R,re),W}function P(R,E,z,H){if(z==null)throw Error(r(151));for(var W=null,be=null,$=E,re=E=0,ye=null,xe=z.next();$!==null&&!xe.done;re++,xe=z.next()){$.index>re?(ye=$,$=null):ye=$.sibling;var wl=O(R,$,xe.value,H);if(wl===null){$===null&&($=ye);break}e&&$&&wl.alternate===null&&t(R,$),E=u(wl,E,re),be===null?W=wl:be.sibling=wl,be=wl,$=ye}if(xe.done)return l(R,$),ve&&Wt(R,re),W;if($===null){for(;!xe.done;re++,xe=z.next())xe=B(R,xe.value,H),xe!==null&&(E=u(xe,E,re),be===null?W=xe:be.sibling=xe,be=xe);return ve&&Wt(R,re),W}for($=a($);!xe.done;re++,xe=z.next())xe=M($,R,re,xe.value,H),xe!==null&&(e&&xe.alternate!==null&&$.delete(xe.key===null?re:xe.key),E=u(xe,E,re),be===null?W=xe:be.sibling=xe,be=xe);return e&&$.forEach(function(Pp){return t(R,Pp)}),ve&&Wt(R,re),W}function De(R,E,z,H){if(typeof z=="object"&&z!==null&&z.type===w&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case L:e:{for(var W=z.key;E!==null;){if(E.key===W){if(W=z.type,W===w){if(E.tag===7){l(R,E.sibling),H=n(E,z.props.children),H.return=R,R=H;break e}}else if(E.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ge&&Wl(W)===E.type){l(R,E.sibling),H=n(E,z.props),gn(H,z),H.return=R,R=H;break e}l(R,E);break}else t(R,E);E=E.sibling}z.type===w?(H=Zl(z.props.children,R.mode,H,z.key),H.return=R,R=H):(H=vi(z.type,z.key,z.props,null,R.mode,H),gn(H,z),H.return=R,R=H)}return f(R);case _:e:{for(W=z.key;E!==null;){if(E.key===W)if(E.tag===4&&E.stateNode.containerInfo===z.containerInfo&&E.stateNode.implementation===z.implementation){l(R,E.sibling),H=n(E,z.children||[]),H.return=R,R=H;break e}else{l(R,E);break}else t(R,E);E=E.sibling}H=fs(z,R.mode,H),H.return=R,R=H}return f(R);case ge:return z=Wl(z),De(R,E,z,H)}if(oe(z))return J(R,E,z,H);if(le(z)){if(W=le(z),typeof W!="function")throw Error(r(150));return z=W.call(z),P(R,E,z,H)}if(typeof z.then=="function")return De(R,E,Ci(z),H);if(z.$$typeof===q)return De(R,E,xi(R,z),H);zi(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,E!==null&&E.tag===6?(l(R,E.sibling),H=n(E,z),H.return=R,R=H):(l(R,E),H=os(z,R.mode,H),H.return=R,R=H),f(R)):l(R,E)}return function(R,E,z,H){try{hn=0;var W=De(R,E,z,H);return Aa=null,W}catch($){if($===za||$===Ri)throw $;var be=St(29,$,null,R.mode);return be.lanes=H,be.return=R,be}finally{}}}var Pl=Yo(!0),Go=Yo(!1),xl=!1;function Rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ts(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function El(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Rl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ee&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=yi(e),To(e,null,l),t}return pi(e,a,t,l),yi(e)}function mn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,_c(e,l)}}function Cs(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=f:u=u.next=f,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var zs=!1;function pn(){if(zs){var e=Ca;if(e!==null)throw e}}function yn(e,t,l,a){zs=!1;var n=e.updateQueue;xl=!1;var u=n.firstBaseUpdate,f=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var S=m,A=S.next;S.next=null,f===null?u=A:f.next=A,f=S;var U=e.alternate;U!==null&&(U=U.updateQueue,m=U.lastBaseUpdate,m!==f&&(m===null?U.firstBaseUpdate=A:m.next=A,U.lastBaseUpdate=S))}if(u!==null){var B=n.baseState;f=0,U=A=S=null,m=u;do{var O=m.lane&-536870913,M=O!==m.lane;if(M?(pe&O)===O:(a&O)===O){O!==0&&O===Ta&&(zs=!0),U!==null&&(U=U.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var J=e,P=m;O=t;var De=l;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){B=J.call(De,B,O);break e}B=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,O=typeof J=="function"?J.call(De,B,O):J,O==null)break e;B=v({},B,O);break e;case 2:xl=!0}}O=m.callback,O!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[O]:M.push(O))}else M={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},U===null?(A=U=M,S=B):U=U.next=M,f|=O;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;M=m,m=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);U===null&&(S=B),n.baseState=S,n.firstBaseUpdate=A,n.lastBaseUpdate=U,u===null&&(n.shared.lanes=0),Ol|=f,e.lanes=f,e.memoizedState=B}}function Vo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Xo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Vo(l[e],t)}var Oa=x(null),Ai=x(0);function Qo(e,t){e=rl,K(Ai,e),K(Oa,t),rl=e|t.baseLanes}function As(){K(Ai,rl),K(Oa,Oa.current)}function Os(){rl=Ai.current,j(Oa),j(Ai)}var bt=x(null),Nt=null;function Tl(e){var t=e.alternate;K(Ve,Ve.current&1),K(bt,e),Nt===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(Nt=e)}function Ds(e){K(Ve,Ve.current),K(bt,e),Nt===null&&(Nt=e)}function Ko(e){e.tag===22?(K(Ve,Ve.current),K(bt,e),Nt===null&&(Nt=e)):Cl()}function Cl(){K(Ve,Ve.current),K(bt,bt.current)}function xt(e){j(bt),Nt===e&&(Nt=null),j(Ve)}var Ve=x(0);function Oi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jr(l)||Hr(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var el=0,ue=null,Ae=null,Ze=null,Di=!1,Da=!1,ea=!1,Mi=0,vn=0,Ma=null,Xm=0;function we(){throw Error(r(321))}function Ms(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!vt(e[l],t[l]))return!1;return!0}function _s(e,t,l,a,n,u){return el=u,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Df:Zs,ea=!1,u=l(a,n),ea=!1,Da&&(u=Jo(t,l,a,n)),Zo(e),u}function Zo(e){D.H=xn;var t=Ae!==null&&Ae.next!==null;if(el=0,Ze=Ae=ue=null,Di=!1,vn=0,Ma=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&bi(e)&&(Je=!0))}function Jo(e,t,l,a){ue=e;var n=0;do{if(Da&&(Ma=null),vn=0,Da=!1,25<=n)throw Error(r(301));if(n+=1,Ze=Ae=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=Mf,u=t(l,a)}while(Da);return u}function Qm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Sn(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(ue.flags|=1024),t}function Ns(){var e=Mi!==0;return Mi=0,e}function Ls(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Us(e){if(Di){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Di=!1}el=0,Ze=Ae=ue=null,Da=!1,vn=Mi=0,Ma=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ue.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(Ae===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ze===null?ue.memoizedState:Ze.next;if(t!==null)Ze=t,Ae=e;else{if(e===null)throw ue.alternate===null?Error(r(467)):Error(r(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Ze===null?ue.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function _i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sn(e){var t=vn;return vn+=1,Ma===null&&(Ma=[]),e=Bo(Ma,e,t),t=ue,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Df:Zs),e}function Ni(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sn(e);if(e.$$typeof===q)return lt(e)}throw Error(r(438,String(e)))}function js(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=_i(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=me;return t.index++,l}function tl(e,t){return typeof t=="function"?t(e):t}function Li(e){var t=Xe();return Hs(t,Ae,e)}function Hs(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var f=n.next;n.next=u.next,u.next=f}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var m=f=null,S=null,A=t,U=!1;do{var B=A.lane&-536870913;if(B!==A.lane?(pe&B)===B:(el&B)===B){var O=A.revertLane;if(O===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),B===Ta&&(U=!0);else if((el&O)===O){A=A.next,O===Ta&&(U=!0);continue}else B={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(m=S=B,f=u):S=S.next=B,ue.lanes|=O,Ol|=O;B=A.action,ea&&l(u,B),u=A.hasEagerState?A.eagerState:l(u,B)}else O={lane:B,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(m=S=O,f=u):S=S.next=O,ue.lanes|=B,Ol|=B;A=A.next}while(A!==null&&A!==t);if(S===null?f=u:S.next=m,!vt(u,e.memoizedState)&&(Je=!0,U&&(l=Ca,l!==null)))throw l;e.memoizedState=u,e.baseState=f,e.baseQueue=S,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Bs(e){var t=Xe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do u=e(u,f.action),f=f.next;while(f!==n);vt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function $o(e,t,l){var a=ue,n=Xe(),u=ve;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var f=!vt((Ae||n).memoizedState,l);if(f&&(n.memoizedState=l,Je=!0),n=n.queue,Ys(Wo.bind(null,a,n,e),[e]),n.getSnapshot!==t||f||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,_a(9,{destroy:void 0},Fo.bind(null,a,n,l,t),null),_e===null)throw Error(r(349));u||(el&127)!==0||ko(a,t,l)}return l}function ko(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=_i(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Fo(e,t,l,a){t.value=l,t.getSnapshot=a,Io(t)&&Po(e)}function Wo(e,t,l){return l(function(){Io(t)&&Po(e)})}function Io(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!vt(e,l)}catch{return!0}}function Po(e){var t=Kl(e,2);t!==null&>(t,e,2)}function ws(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),ea){gl(!0);try{l()}finally{gl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:e},t}function ef(e,t,l,a){return e.baseState=l,Hs(e,Ae,typeof a=="function"?a:tl)}function Km(e,t,l,a,n){if(Hi(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,tf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function tf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,f={};D.T=f;try{var m=l(n,a),S=D.S;S!==null&&S(f,m),lf(e,t,m)}catch(A){qs(e,t,A)}finally{u!==null&&f.types!==null&&(u.types=f.types),D.T=u}}else try{u=l(n,a),lf(e,t,u)}catch(A){qs(e,t,A)}}function lf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){af(e,t,a)},function(a){return qs(e,t,a)}):af(e,t,l)}function af(e,t,l){t.status="fulfilled",t.value=l,nf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,tf(e,l)))}function qs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,nf(t),t=t.next;while(t!==a)}e.action=null}function nf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function uf(e,t){return t}function sf(e,t){if(ve){var l=_e.formState;if(l!==null){e:{var a=ue;if(ve){if(Ne){t:{for(var n=Ne,u=_t;n.nodeType!==8;){if(!u){n=null;break t}if(n=Lt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ne=Lt(n.nextSibling),a=n.data==="F!";break e}}Sl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uf,lastRenderedState:t},l.queue=a,l=zf.bind(null,ue,a),a.dispatch=l,a=ws(!1),u=Ks.bind(null,ue,!1,a.queue),a=st(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Km.bind(null,ue,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function rf(e){var t=Xe();return cf(t,Ae,e)}function cf(e,t,l){if(t=Hs(e,t,uf)[0],e=Li(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Sn(t)}catch(f){throw f===za?Ri:f}else a=t;t=Xe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,_a(9,{destroy:void 0},Zm.bind(null,n,l),null)),[a,u,e]}function Zm(e,t){e.action=t}function of(e){var t=Xe(),l=Ae;if(l!==null)return cf(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function _a(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=_i(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function ff(){return Xe().memoizedState}function Ui(e,t,l,a){var n=st();ue.flags|=e,n.memoizedState=_a(1|t,{destroy:void 0},l,a===void 0?null:a)}function ji(e,t,l,a){var n=Xe();a=a===void 0?null:a;var u=n.memoizedState.inst;Ae!==null&&a!==null&&Ms(a,Ae.memoizedState.deps)?n.memoizedState=_a(t,u,l,a):(ue.flags|=e,n.memoizedState=_a(1|t,u,l,a))}function df(e,t){Ui(8390656,8,e,t)}function Ys(e,t){ji(2048,8,e,t)}function Jm(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=_i(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function hf(e){var t=Xe().memoizedState;return Jm({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gf(e,t){return ji(4,2,e,t)}function mf(e,t){return ji(4,4,e,t)}function pf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yf(e,t,l){l=l!=null?l.concat([e]):null,ji(4,4,pf.bind(null,t,e),l)}function Gs(){}function vf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ms(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Sf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ms(t,a[1]))return a[0];if(a=e(),ea){gl(!0);try{e()}finally{gl(!1)}}return l.memoizedState=[a,t],a}function Vs(e,t,l){return l===void 0||(el&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=bd(),ue.lanes|=e,Ol|=e,l)}function bf(e,t,l,a){return vt(l,t)?l:Oa.current!==null?(e=Vs(e,l,a),vt(e,t)||(Je=!0),e):(el&42)===0||(el&1073741824)!==0&&(pe&261930)===0?(Je=!0,e.memoizedState=l):(e=bd(),ue.lanes|=e,Ol|=e,t)}function xf(e,t,l,a,n){var u=V.p;V.p=u!==0&&8>u?u:8;var f=D.T,m={};D.T=m,Ks(e,!1,t,l);try{var S=n(),A=D.S;if(A!==null&&A(m,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=Vm(S,a);bn(e,t,U,Tt(e))}else bn(e,t,a,Tt(e))}catch(B){bn(e,t,{then:function(){},status:"rejected",reason:B},Tt())}finally{V.p=u,f!==null&&m.types!==null&&(f.types=m.types),D.T=f}}function $m(){}function Xs(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=Ef(e).queue;xf(e,n,t,F,l===null?$m:function(){return Rf(e),l(a)})}function Ef(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rf(e){var t=Ef(e);t.next===null&&(t=e.alternate.memoizedState),bn(e,t.next.queue,{},Tt())}function Qs(){return lt(Bn)}function Tf(){return Xe().memoizedState}function Cf(){return Xe().memoizedState}function km(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Tt();e=El(l);var a=Rl(t,e,l);a!==null&&(gt(a,t,l),mn(a,t,l)),t={cache:Ss()},e.payload=t;return}t=t.return}}function Fm(e,t,l){var a=Tt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Hi(e)?Af(t,l):(l=rs(e,t,l,a),l!==null&&(gt(l,e,a),Of(l,t,a)))}function zf(e,t,l){var a=Tt();bn(e,t,l,a)}function bn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))Af(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,m=u(f,l);if(n.hasEagerState=!0,n.eagerState=m,vt(m,f))return pi(e,t,n,0),_e===null&&mi(),!1}catch{}finally{}if(l=rs(e,t,n,a),l!==null)return gt(l,e,a),Of(l,t,a),!0}return!1}function Ks(e,t,l,a){if(a={lane:2,revertLane:Rr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Hi(e)){if(t)throw Error(r(479))}else t=rs(e,l,a,2),t!==null&>(t,e,2)}function Hi(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Af(e,t){Da=Di=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Of(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,_c(e,l)}}var xn={readContext:lt,use:Ni,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useInsertionEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useSyncExternalStore:we,useId:we,useHostTransitionStatus:we,useFormState:we,useActionState:we,useOptimistic:we,useMemoCache:we,useCacheRefresh:we};xn.useEffectEvent=we;var Df={readContext:lt,use:Ni,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:df,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ui(4194308,4,pf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){Ui(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(ea){gl(!0);try{e()}finally{gl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var n=l(t);if(ea){gl(!0);try{l(t)}finally{gl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Fm.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=ws(e);var t=e.queue,l=zf.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Gs,useDeferredValue:function(e,t){var l=st();return Vs(l,e,t)},useTransition:function(){var e=ws(!1);return e=xf.bind(null,ue,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=st();if(ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),_e===null)throw Error(r(349));(pe&127)!==0||ko(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,df(Wo.bind(null,a,u,e),[e]),a.flags|=2048,_a(9,{destroy:void 0},Fo.bind(null,a,u,l,t),null),l},useId:function(){var e=st(),t=_e.identifierPrefix;if(ve){var l=Gt,a=Yt;l=(a&~(1<<32-yt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Mi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Xm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qs,useFormState:sf,useActionState:sf,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ks.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:js,useCacheRefresh:function(){return st().memoizedState=km.bind(null,ue)},useEffectEvent:function(e){var t=st(),l={impl:e};return t.memoizedState=l,function(){if((Ee&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Zs={readContext:lt,use:Ni,useCallback:vf,useContext:lt,useEffect:Ys,useImperativeHandle:yf,useInsertionEffect:gf,useLayoutEffect:mf,useMemo:Sf,useReducer:Li,useRef:ff,useState:function(){return Li(tl)},useDebugValue:Gs,useDeferredValue:function(e,t){var l=Xe();return bf(l,Ae.memoizedState,e,t)},useTransition:function(){var e=Li(tl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:$o,useId:Tf,useHostTransitionStatus:Qs,useFormState:rf,useActionState:rf,useOptimistic:function(e,t){var l=Xe();return ef(l,Ae,e,t)},useMemoCache:js,useCacheRefresh:Cf};Zs.useEffectEvent=hf;var Mf={readContext:lt,use:Ni,useCallback:vf,useContext:lt,useEffect:Ys,useImperativeHandle:yf,useInsertionEffect:gf,useLayoutEffect:mf,useMemo:Sf,useReducer:Bs,useRef:ff,useState:function(){return Bs(tl)},useDebugValue:Gs,useDeferredValue:function(e,t){var l=Xe();return Ae===null?Vs(l,e,t):bf(l,Ae.memoizedState,e,t)},useTransition:function(){var e=Bs(tl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:$o,useId:Tf,useHostTransitionStatus:Qs,useFormState:of,useActionState:of,useOptimistic:function(e,t){var l=Xe();return Ae!==null?ef(l,Ae,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:js,useCacheRefresh:Cf};Mf.useEffectEvent=hf;function Js(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:v({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var $s={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Tt(),n=El(a);n.payload=t,l!=null&&(n.callback=l),t=Rl(e,n,a),t!==null&&(gt(t,e,a),mn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Tt(),n=El(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Rl(e,n,a),t!==null&&(gt(t,e,a),mn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Tt(),a=El(l);a.tag=2,t!=null&&(a.callback=t),t=Rl(e,a,l),t!==null&&(gt(t,e,l),mn(t,e,l))}};function _f(e,t,l,a,n,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,f):t.prototype&&t.prototype.isPureReactComponent?!sn(l,a)||!sn(n,u):!0}function Nf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&$s.enqueueReplaceState(t,t.state,null)}function ta(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=v({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Lf(e){gi(e)}function Uf(e){console.error(e)}function jf(e){gi(e)}function Bi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ks(e,t,l){return l=El(l),l.tag=3,l.payload={element:null},l.callback=function(){Bi(e,t)},l}function Bf(e){return e=El(e),e.tag=3,e}function wf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Hf(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Hf(t,l,a),typeof n!="function"&&(Dl===null?Dl=new Set([this]):Dl.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function Wm(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ra(t,l,n,!0),l=bt.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?ki():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ti?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),br(e,a,n)),!1;case 22:return l.flags|=65536,a===Ti?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),br(e,a,n)),!1}throw Error(r(435,l.tag))}return br(e,a,n),ki(),!1}if(ve)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==gs&&(e=Error(r(422),{cause:a}),on(Ot(e,l)))):(a!==gs&&(t=Error(r(423),{cause:a}),on(Ot(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Ot(a,l),n=ks(e.stateNode,a,n),Cs(e,n),qe!==4&&(qe=2)),!1;var u=Error(r(520),{cause:a});if(u=Ot(u,l),Dn===null?Dn=[u]:Dn.push(u),qe!==4&&(qe=2),t===null)return!0;a=Ot(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=ks(l.stateNode,a,e),Cs(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Dl===null||!Dl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Bf(n),wf(n,e,l,a),Cs(l,n),!1}l=l.return}while(l!==null);return!1}var Fs=Error(r(461)),Je=!1;function at(e,t,l,a){t.child=e===null?Go(t,null,l,a):Pl(t,e.child,l,a)}function qf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var f={};for(var m in a)m!=="ref"&&(f[m]=a[m])}else f=a;return kl(t),a=_s(e,t,l,f,u,n),m=Ns(),e!==null&&!Je?(Ls(e,t,n),ll(e,t,n)):(ve&&m&&ds(t),t.flags|=1,at(e,t,a,n),t.child)}function Yf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!cs(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Gf(e,t,u,a,n)):(e=vi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!nr(e,n)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:sn,l(f,a)&&e.ref===t.ref)return ll(e,t,n)}return t.flags|=1,e=Ft(u,a),e.ref=t.ref,e.return=t,t.child=e}function Gf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(sn(u,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=u,nr(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,ll(e,t,n)}return Ws(e,t,l,a,n)}function Vf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Xf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ei(t,u!==null?u.cachePool:null),u!==null?Qo(t,u):As(),Ko(t);else return a=t.lanes=536870912,Xf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Ei(t,u.cachePool),Qo(t,u),Cl(),t.memoizedState=null):(e!==null&&Ei(t,null),As(),Cl());return at(e,t,n,l),t.child}function En(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xf(e,t,l,a,n){var u=xs();return u=u===null?null:{parent:Ke._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Ei(t,null),As(),Ko(t),e!==null&&Ra(e,t,a,!0),t.childLanes=n,null}function wi(e,t){return t=Yi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Qf(e,t,l){return Pl(t,e.child,null,l),e=wi(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function Im(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=wi(t,a),t.lanes=536870912,En(null,e);if(Ds(t),(e=Ne)?(e=lh(e,_t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=zo(e),l.return=t,t.child=l,tt=t,Ne=null)):e=null,e===null)throw Sl(t);return t.lanes=536870912,null}return wi(t,a)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(Ds(t),n)if(t.flags&256)t.flags&=-257,t=Qf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||Ra(e,t,l,!1),n=(l&e.childLanes)!==0,Je||n){if(a=_e,a!==null&&(f=Nc(a,l),f!==0&&f!==u.retryLane))throw u.retryLane=f,Kl(e,f),gt(a,e,f),Fs;ki(),t=Qf(e,t,l)}else e=u.treeContext,Ne=Lt(f.nextSibling),tt=t,ve=!0,vl=null,_t=!1,e!==null&&Do(t,e),t=wi(t,a),t.flags|=4096;return t}return e=Ft(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ws(e,t,l,a,n){return kl(t),l=_s(e,t,l,a,void 0,n),a=Ns(),e!==null&&!Je?(Ls(e,t,n),ll(e,t,n)):(ve&&a&&ds(t),t.flags|=1,at(e,t,l,n),t.child)}function Kf(e,t,l,a,n,u){return kl(t),t.updateQueue=null,l=Jo(t,a,l,n),Zo(e),a=Ns(),e!==null&&!Je?(Ls(e,t,u),ll(e,t,u)):(ve&&a&&ds(t),t.flags|=1,at(e,t,l,u),t.child)}function Zf(e,t,l,a,n){if(kl(t),t.stateNode===null){var u=Sa,f=l.contextType;typeof f=="object"&&f!==null&&(u=lt(f)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=$s,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Rs(t),f=l.contextType,u.context=typeof f=="object"&&f!==null?lt(f):Sa,u.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Js(t,l,f,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&$s.enqueueReplaceState(u,u.state,null),yn(t,a,u,n),pn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var m=t.memoizedProps,S=ta(l,m);u.props=S;var A=u.context,U=l.contextType;f=Sa,typeof U=="object"&&U!==null&&(f=lt(U));var B=l.getDerivedStateFromProps;U=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m||A!==f)&&Nf(t,u,a,f),xl=!1;var O=t.memoizedState;u.state=O,yn(t,a,u,n),pn(),A=t.memoizedState,m||O!==A||xl?(typeof B=="function"&&(Js(t,l,B,a),A=t.memoizedState),(S=xl||_f(t,l,S,a,O,A,f))?(U||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=f,a=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Ts(e,t),f=t.memoizedProps,U=ta(l,f),u.props=U,B=t.pendingProps,O=u.context,A=l.contextType,S=Sa,typeof A=="object"&&A!==null&&(S=lt(A)),m=l.getDerivedStateFromProps,(A=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==B||O!==S)&&Nf(t,u,a,S),xl=!1,O=t.memoizedState,u.state=O,yn(t,a,u,n),pn();var M=t.memoizedState;f!==B||O!==M||xl||e!==null&&e.dependencies!==null&&bi(e.dependencies)?(typeof m=="function"&&(Js(t,l,m,a),M=t.memoizedState),(U=xl||_f(t,l,U,a,O,M,S)||e!==null&&e.dependencies!==null&&bi(e.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,M,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,M,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),u.props=a,u.state=M,u.context=S,a=U):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,qi(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Pl(t,e.child,null,n),t.child=Pl(t,null,l,n)):at(e,t,l,n),t.memoizedState=u.state,e=t.child):e=ll(e,t,n),e}function Jf(e,t,l,a){return Jl(),t.flags|=256,at(e,t,l,a),t.child}var Is={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ps(e){return{baseLanes:e,cachePool:jo()}}function er(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Rt),e}function $f(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),f&&(n=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?Tl(t):Cl(),(e=Ne)?(e=lh(e,_t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=zo(e),l.return=t,t.child=l,tt=t,Ne=null)):e=null,e===null)throw Sl(t);return Hr(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,n?(Cl(),n=t.mode,m=Yi({mode:"hidden",children:m},n),a=Zl(a,n,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=Ps(l),a.childLanes=er(e,f,l),t.memoizedState=Is,En(null,a)):(Tl(t),tr(t,m))}var S=e.memoizedState;if(S!==null&&(m=S.dehydrated,m!==null)){if(u)t.flags&256?(Tl(t),t.flags&=-257,t=lr(e,t,l)):t.memoizedState!==null?(Cl(),t.child=e.child,t.flags|=128,t=null):(Cl(),m=a.fallback,n=t.mode,a=Yi({mode:"visible",children:a.children},n),m=Zl(m,n,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,Pl(t,e.child,null,l),a=t.child,a.memoizedState=Ps(l),a.childLanes=er(e,f,l),t.memoizedState=Is,t=En(null,a));else if(Tl(t),Hr(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var A=f.dgst;f=A,a=Error(r(419)),a.stack="",a.digest=f,on({value:a,source:null,stack:null}),t=lr(e,t,l)}else if(Je||Ra(e,t,l,!1),f=(l&e.childLanes)!==0,Je||f){if(f=_e,f!==null&&(a=Nc(f,l),a!==0&&a!==S.retryLane))throw S.retryLane=a,Kl(e,a),gt(f,e,a),Fs;jr(m)||ki(),t=lr(e,t,l)}else jr(m)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ne=Lt(m.nextSibling),tt=t,ve=!0,vl=null,_t=!1,e!==null&&Do(t,e),t=tr(t,a.children),t.flags|=4096);return t}return n?(Cl(),m=a.fallback,n=t.mode,S=e.child,A=S.sibling,a=Ft(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,A!==null?m=Ft(A,m):(m=Zl(m,n,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,En(null,a),a=t.child,m=e.child.memoizedState,m===null?m=Ps(l):(n=m.cachePool,n!==null?(S=Ke._currentValue,n=n.parent!==S?{parent:S,pool:S}:n):n=jo(),m={baseLanes:m.baseLanes|l,cachePool:n}),a.memoizedState=m,a.childLanes=er(e,f,l),t.memoizedState=Is,En(e.child,a)):(Tl(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function tr(e,t){return t=Yi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yi(e,t){return e=St(22,e,null,t),e.lanes=0,e}function lr(e,t,l){return Pl(t,e.child,null,l),e=tr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ys(e.return,t,l)}function ar(e,t,l,a,n,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=u)}function Ff(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var f=Ve.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,K(Ve,f),at(e,t,a,l),a=ve?cn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kf(e,l,t);else if(e.tag===19)kf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Oi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),ar(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Oi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}ar(t,!0,l,null,u,a);break;case"together":ar(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ll(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ol|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ra(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function nr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&bi(e)))}function Pm(e,t,l){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),bl(t,Ke,e.memoizedState.cache),Jl();break;case 27:case 5:Ja(t);break;case 4:ut(t,t.stateNode.containerInfo);break;case 10:bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ds(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Tl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?$f(e,t,l):(Tl(t),e=ll(e,t,l),e!==null?e.sibling:null);Tl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ra(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Ff(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Ve,Ve.current),a)break;return null;case 22:return t.lanes=0,Vf(e,t,l,t.pendingProps);case 24:bl(t,Ke,e.memoizedState.cache)}return ll(e,t,l)}function Wf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!nr(e,l)&&(t.flags&128)===0)return Je=!1,Pm(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,ve&&(t.flags&1048576)!==0&&Oo(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Wl(t.elementType),t.type=e,typeof e=="function")cs(e)?(a=ta(e,a),t.tag=1,t=Zf(null,t,e,a,l)):(t.tag=0,t=Ws(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Q){t.tag=11,t=qf(null,t,e,a,l);break e}else if(n===k){t.tag=14,t=Yf(null,t,e,a,l);break e}}throw t=ne(e)||e,Error(r(306,t,""))}}return t;case 0:return Ws(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ta(a,t.pendingProps),Zf(e,t,a,n,l);case 3:e:{if(ut(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Ts(e,t),yn(t,a,null,l);var f=t.memoizedState;if(a=f.cache,bl(t,Ke,a),a!==u.cache&&vs(t,[Ke],l,!0),pn(),a=f.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Jf(e,t,a,l);break e}else if(a!==n){n=Ot(Error(r(424)),t),on(n),t=Jf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ne=Lt(e.firstChild),tt=t,ve=!0,vl=null,_t=!0,l=Go(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),a===n){t=ll(e,t,l);break e}at(e,t,a,l)}t=t.child}return t;case 26:return qi(e,t),e===null?(l=rh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=lu(fe.current).createElement(l),a[et]=t,a[rt]=e,nt(a,l,e),We(a),t.stateNode=a):t.memoizedState=rh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ja(t),e===null&&ve&&(a=t.stateNode=ih(t.type,t.pendingProps,fe.current),tt=t,_t=!0,n=Ne,Ll(t.type)?(Br=n,Ne=Lt(a.firstChild)):Ne=n),at(e,t,t.pendingProps.children,l),qi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=Ne)&&(a=Dp(a,t.type,t.pendingProps,_t),a!==null?(t.stateNode=a,tt=t,Ne=Lt(a.firstChild),_t=!1,n=!0):n=!1),n||Sl(t)),Ja(t),n=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,a=u.children,Nr(n,u)?a=null:f!==null&&Nr(n,f)&&(t.flags|=32),t.memoizedState!==null&&(n=_s(e,t,Qm,null,null,l),Bn._currentValue=n),qi(e,t),at(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=Ne)&&(l=Mp(l,t.pendingProps,_t),l!==null?(t.stateNode=l,tt=t,Ne=null,e=!0):e=!1),e||Sl(t)),null;case 13:return $f(e,t,l);case 4:return ut(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Pl(t,null,a,l):at(e,t,a,l),t.child;case 11:return qf(e,t,t.type,t.pendingProps,l);case 7:return at(e,t,t.pendingProps,l),t.child;case 8:return at(e,t,t.pendingProps.children,l),t.child;case 12:return at(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,bl(t,t.type,a.value),at(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,kl(t),n=lt(n),a=a(n),t.flags|=1,at(e,t,a,l),t.child;case 14:return Yf(e,t,t.type,t.pendingProps,l);case 15:return Gf(e,t,t.type,t.pendingProps,l);case 19:return Ff(e,t,l);case 31:return Im(e,t,l);case 22:return Vf(e,t,l,t.pendingProps);case 24:return kl(t),a=lt(Ke),e===null?(n=xs(),n===null&&(n=_e,u=Ss(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Rs(t),bl(t,Ke,n)):((e.lanes&l)!==0&&(Ts(e,t),yn(t,null,null,l),pn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),bl(t,Ke,a)):(a=u.cache,bl(t,Ke,a),a!==n.cache&&vs(t,[Ke],l,!0))),at(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function al(e){e.flags|=4}function ir(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Td())e.flags|=8192;else throw Il=Ti,Es}else e.flags&=-16777217}function If(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hh(t))if(Td())e.flags|=8192;else throw Il=Ti,Es}function Gi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dc():536870912,e.lanes|=t,ja|=t)}function Rn(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function ep(e,t,l){var a=t.pendingProps;switch(hs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pt(Ke),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ea(t)?al(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ms())),Le(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(al(t),u!==null?(Le(t),If(t,u)):(Le(t),ir(t,n,null,a,l))):u?u!==e.memoizedState?(al(t),Le(t),If(t,u)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&al(t),Le(t),ir(t,n,e,a,l)),null;case 27:if(In(t),l=fe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Le(t),null}e=Z.current,Ea(t)?Mo(t):(e=ih(n,a,l),t.stateNode=e,al(t))}return Le(t),null;case 5:if(In(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Le(t),null}if(u=Z.current,Ea(t))Mo(t);else{var f=lu(fe.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}u[et]=t,u[rt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(nt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&al(t)}}return Le(t),ir(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,Ea(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||$d(e.nodeValue,l)),e||Sl(t,!0)}else e=lu(e).createTextNode(a),e[et]=t,t.stateNode=e}return Le(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ea(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[et]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else l=ms(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Le(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ea(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[et]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),n=!1}else n=ms(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Gi(t,t.updateQueue),Le(t),null);case 4:return Ge(),e===null&&Ar(t.stateNode.containerInfo),Le(t),null;case 10:return Pt(t.type),Le(t),null;case 19:if(j(Ve),a=t.memoizedState,a===null)return Le(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Rn(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Oi(e),u!==null){for(t.flags|=128,Rn(a,!1),e=u.updateQueue,t.updateQueue=e,Gi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Co(l,e),l=l.sibling;return K(Ve,Ve.current&1|2),ve&&Wt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&mt()>Zi&&(t.flags|=128,n=!0,Rn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Oi(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Gi(t,e),Rn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ve)return Le(t),null}else 2*mt()-a.renderingStartTime>Zi&&l!==536870912&&(t.flags|=128,n=!0,Rn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=mt(),e.sibling=null,l=Ve.current,K(Ve,n?l&1|2:l&1),ve&&Wt(t,a.treeForkCount),e):(Le(t),null);case 22:case 23:return xt(t),Os(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),l=t.updateQueue,l!==null&&Gi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&j(Fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Pt(Ke),Le(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function tp(e,t){switch(hs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pt(Ke),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return In(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Ve),null;case 4:return Ge(),null;case 10:return Pt(t.type),null;case 22:case 23:return xt(t),Os(),e!==null&&j(Fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pt(Ke),null;case 25:return null;default:return null}}function Pf(e,t){switch(hs(t),t.tag){case 3:Pt(Ke),Ge();break;case 26:case 27:case 5:In(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:j(Ve);break;case 10:Pt(t.type);break;case 22:case 23:xt(t),Os(),e!==null&&j(Fl);break;case 24:Pt(Ke)}}function Tn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,f=l.inst;a=u(),f.destroy=a}l=l.next}while(l!==n)}}catch(m){ze(t,t.return,m)}}function zl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,n=t;var S=l,A=m;try{A()}catch(U){ze(n,S,U)}}}a=a.next}while(a!==u)}}catch(U){ze(t,t.return,U)}}function ed(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Xo(t,l)}catch(a){ze(e,e.return,a)}}}function td(e,t,l){l.props=ta(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ze(e,t,a)}}function Cn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){ze(e,t,n)}}function Vt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ze(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ze(e,t,n)}else l.current=null}function ld(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ze(e,e.return,n)}}function ur(e,t,l){try{var a=e.stateNode;Rp(a,e.type,l,t),a[rt]=t}catch(n){ze(e,e.return,n)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ll(e.type)||e.tag===4}function sr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ll(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=$t));else if(a!==4&&(a===27&&Ll(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(rr(e,t,l),e=e.sibling;e!==null;)rr(e,t,l),e=e.sibling}function Vi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Ll(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Vi(e,t,l),e=e.sibling;e!==null;)Vi(e,t,l),e=e.sibling}function nd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,a,l),t[et]=e,t[rt]=l}catch(u){ze(e,e.return,u)}}var nl=!1,$e=!1,cr=!1,id=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function lp(e,t){if(e=e.containerInfo,Mr=cu,e=po(e),ls(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var f=0,m=-1,S=-1,A=0,U=0,B=e,O=null;t:for(;;){for(var M;B!==l||n!==0&&B.nodeType!==3||(m=f+n),B!==u||a!==0&&B.nodeType!==3||(S=f+a),B.nodeType===3&&(f+=B.nodeValue.length),(M=B.firstChild)!==null;)O=B,B=M;for(;;){if(B===e)break t;if(O===l&&++A===n&&(m=f),O===u&&++U===a&&(S=f),(M=B.nextSibling)!==null)break;B=O,O=B.parentNode}B=M}l=m===-1||S===-1?null:{start:m,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(_r={focusedElem:e,selectionRange:l},cu=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var J=ta(l.type,n);e=a.getSnapshotBeforeUpdate(J,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){ze(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ur(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ur(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function ud(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ul(e,l),a&4&&Tn(5,l);break;case 1:if(ul(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){ze(l,l.return,f)}else{var n=ta(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){ze(l,l.return,f)}}a&64&&ed(l),a&512&&Cn(l,l.return);break;case 3:if(ul(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Xo(e,t)}catch(f){ze(l,l.return,f)}}break;case 27:t===null&&a&4&&nd(l);case 26:case 5:ul(e,l),t===null&&a&4&&ld(l),a&512&&Cn(l,l.return);break;case 12:ul(e,l);break;case 31:ul(e,l),a&4&&cd(e,l);break;case 13:ul(e,l),a&4&&od(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=fp.bind(null,l),_p(e,l))));break;case 22:if(a=l.memoizedState!==null||nl,!a){t=t!==null&&t.memoizedState!==null||$e,n=nl;var u=$e;nl=a,($e=t)&&!u?sl(e,l,(l.subtreeFlags&8772)!==0):ul(e,l),nl=n,$e=u}break;case 30:break;default:ul(e,l)}}function sd(e){var t=e.alternate;t!==null&&(e.alternate=null,sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&qu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,ot=!1;function il(e,t,l){for(l=l.child;l!==null;)rd(e,t,l),l=l.sibling}function rd(e,t,l){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount($a,l)}catch{}switch(l.tag){case 26:$e||Vt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:$e||Vt(l,t);var a=Ue,n=ot;Ll(l.type)&&(Ue=l.stateNode,ot=!1),il(e,t,l),Un(l.stateNode),Ue=a,ot=n;break;case 5:$e||Vt(l,t);case 6:if(a=Ue,n=ot,Ue=null,il(e,t,l),Ue=a,ot=n,Ue!==null)if(ot)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(u){ze(l,t,u)}else try{Ue.removeChild(l.stateNode)}catch(u){ze(l,t,u)}break;case 18:Ue!==null&&(ot?(e=Ue,eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Xa(e)):eh(Ue,l.stateNode));break;case 4:a=Ue,n=ot,Ue=l.stateNode.containerInfo,ot=!0,il(e,t,l),Ue=a,ot=n;break;case 0:case 11:case 14:case 15:zl(2,l,t),$e||zl(4,l,t),il(e,t,l);break;case 1:$e||(Vt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&td(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:$e=(a=$e)||l.memoizedState!==null,il(e,t,l),$e=a;break;default:il(e,t,l)}}function cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xa(e)}catch(l){ze(t,t.return,l)}}}function od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xa(e)}catch(l){ze(t,t.return,l)}}function ap(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new id),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new id),t;default:throw Error(r(435,e.tag))}}function Xi(e,t){var l=ap(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=dp.bind(null,e,a);a.then(n,n)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(Ll(m.type)){Ue=m.stateNode,ot=!1;break e}break;case 5:Ue=m.stateNode,ot=!1;break e;case 3:case 4:Ue=m.stateNode.containerInfo,ot=!0;break e}m=m.return}if(Ue===null)throw Error(r(160));rd(u,f,n),Ue=null,ot=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fd(t,e),t=t.sibling}var Bt=null;function fd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),a&4&&(zl(3,e,e.return),Tn(3,e),zl(5,e,e.return));break;case 1:ft(t,e),dt(e),a&512&&($e||l===null||Vt(l,l.return)),a&64&&nl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Bt;if(ft(t,e),dt(e),a&512&&($e||l===null||Vt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Wa]||u[et]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),nt(u,a,l),u[et]=e,We(u),a=u;break e;case"link":var f=fh("link","href",n).get(a+(l.href||""));if(f){for(var m=0;m<f.length;m++)if(u=f[m],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(m,1);break t}}u=n.createElement(a),nt(u,a,l),n.head.appendChild(u);break;case"meta":if(f=fh("meta","content",n).get(a+(l.content||""))){for(m=0;m<f.length;m++)if(u=f[m],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(m,1);break t}}u=n.createElement(a),nt(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[et]=e,We(u),a=u}e.stateNode=a}else dh(n,e.type,e.stateNode);else e.stateNode=oh(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?dh(n,e.type,e.stateNode):oh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ur(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),dt(e),a&512&&($e||l===null||Vt(l,l.return)),l!==null&&a&4&&ur(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),dt(e),a&512&&($e||l===null||Vt(l,l.return)),e.flags&32){n=e.stateNode;try{da(n,"")}catch(J){ze(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,ur(e,n,l!==null?l.memoizedProps:n)),a&1024&&(cr=!0);break;case 6:if(ft(t,e),dt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){ze(e,e.return,J)}}break;case 3:if(iu=null,n=Bt,Bt=au(t.containerInfo),ft(t,e),Bt=n,dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Xa(t.containerInfo)}catch(J){ze(e,e.return,J)}cr&&(cr=!1,dd(e));break;case 4:a=Bt,Bt=au(e.stateNode.containerInfo),ft(t,e),dt(e),Bt=a;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xi(e,a)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ki=mt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xi(e,a)));break;case 22:n=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,A=nl,U=$e;if(nl=A||n,$e=U||S,ft(t,e),$e=U,nl=A,dt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||S||nl||$e||la(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(u=S.stateNode,n)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=S.stateNode;var B=S.memoizedProps.style,O=B!=null&&B.hasOwnProperty("display")?B.display:null;m.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(J){ze(S,S.return,J)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch(J){ze(S,S.return,J)}}}else if(t.tag===18){if(l===null){S=t;try{var M=S.stateNode;n?th(M,!0):th(S.stateNode,!1)}catch(J){ze(S,S.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Xi(e,l))));break;case 19:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xi(e,a)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ad(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=sr(e);Vi(e,u,n);break;case 5:var f=l.stateNode;l.flags&32&&(da(f,""),l.flags&=-33);var m=sr(e);Vi(e,m,f);break;case 3:case 4:var S=l.stateNode.containerInfo,A=sr(e);rr(e,A,S);break;default:throw Error(r(161))}}catch(U){ze(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ul(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ud(e,t.alternate,t),t=t.sibling}function la(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:zl(4,t,t.return),la(t);break;case 1:Vt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&td(t,t.return,l),la(t);break;case 27:Un(t.stateNode);case 26:case 5:Vt(t,t.return),la(t);break;case 22:t.memoizedState===null&&la(t);break;case 30:la(t);break;default:la(t)}e=e.sibling}}function sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:sl(n,u,l),Tn(4,u);break;case 1:if(sl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){ze(a,a.return,A)}if(a=u,n=a.updateQueue,n!==null){var m=a.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Vo(S[n],m)}catch(A){ze(a,a.return,A)}}l&&f&64&&ed(u),Cn(u,u.return);break;case 27:nd(u);case 26:case 5:sl(n,u,l),l&&a===null&&f&4&&ld(u),Cn(u,u.return);break;case 12:sl(n,u,l);break;case 31:sl(n,u,l),l&&f&4&&cd(n,u);break;case 13:sl(n,u,l),l&&f&4&&od(n,u);break;case 22:u.memoizedState===null&&sl(n,u,l),Cn(u,u.return);break;case 30:break;default:sl(n,u,l)}t=t.sibling}}function or(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&fn(l))}function fr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fn(e))}function wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hd(e,t,l,a),t=t.sibling}function hd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:wt(e,t,l,a),n&2048&&Tn(9,t);break;case 1:wt(e,t,l,a);break;case 3:wt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fn(e)));break;case 12:if(n&2048){wt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,m=u.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){ze(t,t.return,S)}}else wt(e,t,l,a);break;case 31:wt(e,t,l,a);break;case 13:wt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?wt(e,t,l,a):zn(e,t):u._visibility&2?wt(e,t,l,a):(u._visibility|=2,Na(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&or(f,t);break;case 24:wt(e,t,l,a),n&2048&&fr(t.alternate,t);break;default:wt(e,t,l,a)}}function Na(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,m=l,S=a,A=f.flags;switch(f.tag){case 0:case 11:case 15:Na(u,f,m,S,n),Tn(8,f);break;case 23:break;case 22:var U=f.stateNode;f.memoizedState!==null?U._visibility&2?Na(u,f,m,S,n):zn(u,f):(U._visibility|=2,Na(u,f,m,S,n)),n&&A&2048&&or(f.alternate,f);break;case 24:Na(u,f,m,S,n),n&&A&2048&&fr(f.alternate,f);break;default:Na(u,f,m,S,n)}t=t.sibling}}function zn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:zn(l,a),n&2048&&or(a.alternate,a);break;case 24:zn(l,a),n&2048&&fr(a.alternate,a);break;default:zn(l,a)}t=t.sibling}}var An=8192;function La(e,t,l){if(e.subtreeFlags&An)for(e=e.child;e!==null;)gd(e,t,l),e=e.sibling}function gd(e,t,l){switch(e.tag){case 26:La(e,t,l),e.flags&An&&e.memoizedState!==null&&Xp(l,Bt,e.memoizedState,e.memoizedProps);break;case 5:La(e,t,l);break;case 3:case 4:var a=Bt;Bt=au(e.stateNode.containerInfo),La(e,t,l),Bt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=An,An=16777216,La(e,t,l),An=a):La(e,t,l));break;default:La(e,t,l)}}function md(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function On(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,yd(a,e)}md(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pd(e),e=e.sibling}function pd(e){switch(e.tag){case 0:case 11:case 15:On(e),e.flags&2048&&zl(9,e,e.return);break;case 3:On(e);break;case 12:On(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qi(e)):On(e);break;default:On(e)}}function Qi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,yd(a,e)}md(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:zl(8,t,t.return),Qi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Qi(t));break;default:Qi(t)}e=e.sibling}}function yd(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:zl(8,l,t);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:fn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,u=a.return;if(sd(a),a===l){Ie=null;break e}if(n!==null){n.return=u,Ie=n;break e}Ie=u}}}var np={getCacheForType:function(e){var t=lt(Ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return lt(Ke).controller.signal}},ip=typeof WeakMap=="function"?WeakMap:Map,Ee=0,_e=null,de=null,pe=0,Ce=0,Et=null,Al=!1,Ua=!1,dr=!1,rl=0,qe=0,Ol=0,aa=0,hr=0,Rt=0,ja=0,Dn=null,ht=null,gr=!1,Ki=0,vd=0,Zi=1/0,Ji=null,Dl=null,Fe=0,Ml=null,Ha=null,cl=0,mr=0,pr=null,Sd=null,Mn=0,yr=null;function Tt(){return(Ee&2)!==0&&pe!==0?pe&-pe:D.T!==null?Rr():Lc()}function bd(){if(Rt===0)if((pe&536870912)===0||ve){var e=ti;ti<<=1,(ti&3932160)===0&&(ti=262144),Rt=e}else Rt=536870912;return e=bt.current,e!==null&&(e.flags|=32),Rt}function gt(e,t,l){(e===_e&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(Ba(e,0),_l(e,pe,Rt,!1)),Fa(e,l),((Ee&2)===0||e!==_e)&&(e===_e&&((Ee&2)===0&&(aa|=l),qe===4&&_l(e,pe,Rt,!1)),Xt(e))}function xd(e,t,l){if((Ee&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ka(e,t),n=a?rp(e,t):Sr(e,t,!0),u=a;do{if(n===0){Ua&&!a&&_l(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!up(l)){n=Sr(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;n=Dn;var S=m.current.memoizedState.isDehydrated;if(S&&(Ba(m,f).flags|=256),f=Sr(m,f,!1),f!==2){if(dr&&!S){m.errorRecoveryDisabledLanes|=u,aa|=u,n=4;break e}u=ht,ht=n,u!==null&&(ht===null?ht=u:ht.push.apply(ht,u))}n=f}if(u=!1,n!==2)continue}}if(n===1){Ba(e,0),_l(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:_l(a,t,Rt,!Al);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Ki+300-mt(),10<n)){if(_l(a,t,Rt,!Al),ai(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=Id(Ed.bind(null,a,l,ht,Ji,gr,t,Rt,aa,ja,Al,u,"Throttled",-0,0),n);break e}Ed(a,l,ht,Ji,gr,t,Rt,aa,ja,Al,u,null,-0,0)}}break}while(!0);Xt(e)}function Ed(e,t,l,a,n,u,f,m,S,A,U,B,O,M){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},gd(t,u,B);var J=(u&62914560)===u?Ki-mt():(u&4194048)===u?vd-mt():0;if(J=Qp(B,J),J!==null){cl=u,e.cancelPendingCommit=J(Md.bind(null,e,t,u,l,a,n,f,m,S,U,B,null,O,M)),_l(e,u,f,!A);return}}Md(e,t,u,l,a,n,f,m,S)}function up(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!vt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _l(e,t,l,a){t&=~hr,t&=~aa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-yt(n),f=1<<u;a[u]=-1,n&=~f}l!==0&&Mc(e,l,t)}function $i(){return(Ee&6)===0?(_n(0),!1):!0}function vr(){if(de!==null){if(Ce===0)var e=de.return;else e=de,It=$l=null,Us(e),Aa=null,hn=0,e=de;for(;e!==null;)Pf(e.alternate,e),e=e.return;de=null}}function Ba(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,zp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,vr(),_e=e,de=l=Ft(e.current,null),pe=t,Ce=0,Et=null,Al=!1,Ua=ka(e,t),dr=!1,ja=Rt=hr=aa=Ol=qe=0,ht=Dn=null,gr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-yt(a),u=1<<n;t|=e[n],a&=~u}return rl=t,mi(),l}function Rd(e,t){ue=null,D.H=xn,t===za||t===Ri?(t=wo(),Ce=3):t===Es?(t=wo(),Ce=4):Ce=t===Fs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,de===null&&(qe=1,Bi(e,Ot(t,e.current)))}function Td(){var e=bt.current;return e===null?!0:(pe&4194048)===pe?Nt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Nt:!1}function Cd(){var e=D.H;return D.H=xn,e===null?xn:e}function zd(){var e=D.A;return D.A=np,e}function ki(){qe=4,Al||(pe&4194048)!==pe&&bt.current!==null||(Ua=!0),(Ol&134217727)===0&&(aa&134217727)===0||_e===null||_l(_e,pe,Rt,!1)}function Sr(e,t,l){var a=Ee;Ee|=2;var n=Cd(),u=zd();(_e!==e||pe!==t)&&(Ji=null,Ba(e,t)),t=!1;var f=qe;e:do try{if(Ce!==0&&de!==null){var m=de,S=Et;switch(Ce){case 8:vr(),f=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var A=Ce;if(Ce=0,Et=null,wa(e,m,S,A),l&&Ua){f=0;break e}break;default:A=Ce,Ce=0,Et=null,wa(e,m,S,A)}}sp(),f=qe;break}catch(U){Rd(e,U)}while(!0);return t&&e.shellSuspendCounter++,It=$l=null,Ee=a,D.H=n,D.A=u,de===null&&(_e=null,pe=0,mi()),f}function sp(){for(;de!==null;)Ad(de)}function rp(e,t){var l=Ee;Ee|=2;var a=Cd(),n=zd();_e!==e||pe!==t?(Ji=null,Zi=mt()+500,Ba(e,t)):Ua=ka(e,t);e:do try{if(Ce!==0&&de!==null){t=de;var u=Et;t:switch(Ce){case 1:Ce=0,Et=null,wa(e,t,u,1);break;case 2:case 9:if(Ho(u)){Ce=0,Et=null,Od(t);break}t=function(){Ce!==2&&Ce!==9||_e!==e||(Ce=7),Xt(e)},u.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:Ho(u)?(Ce=0,Et=null,Od(t)):(Ce=0,Et=null,wa(e,t,u,7));break;case 5:var f=null;switch(de.tag){case 26:f=de.memoizedState;case 5:case 27:var m=de;if(f?hh(f):m.stateNode.complete){Ce=0,Et=null;var S=m.sibling;if(S!==null)de=S;else{var A=m.return;A!==null?(de=A,Fi(A)):de=null}break t}}Ce=0,Et=null,wa(e,t,u,5);break;case 6:Ce=0,Et=null,wa(e,t,u,6);break;case 8:vr(),qe=6;break e;default:throw Error(r(462))}}cp();break}catch(U){Rd(e,U)}while(!0);return It=$l=null,D.H=a,D.A=n,Ee=l,de!==null?0:(_e=null,pe=0,mi(),qe)}function cp(){for(;de!==null&&!Ng();)Ad(de)}function Ad(e){var t=Wf(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?Fi(e):de=t}function Od(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kf(l,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=Kf(l,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Us(t);default:Pf(l,t),t=de=Co(t,rl),t=Wf(l,t,rl)}e.memoizedProps=e.pendingProps,t===null?Fi(e):de=t}function wa(e,t,l,a){It=$l=null,Us(t),Aa=null,hn=0;var n=t.return;try{if(Wm(e,n,t,l,pe)){qe=1,Bi(e,Ot(l,e.current)),de=null;return}}catch(u){if(n!==null)throw de=n,u;qe=1,Bi(e,Ot(l,e.current)),de=null;return}t.flags&32768?(ve||a===1?e=!0:Ua||(pe&536870912)!==0?e=!1:(Al=e=!0,(a===2||a===9||a===3||a===6)&&(a=bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Dd(t,e)):Fi(t)}function Fi(e){var t=e;do{if((t.flags&32768)!==0){Dd(t,Al);return}e=t.return;var l=ep(t.alternate,t,rl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);qe===0&&(qe=5)}function Dd(e,t){do{var l=tp(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);qe=6,de=null}function Md(e,t,l,a,n,u,f,m,S){e.cancelPendingCommit=null;do Wi();while(Fe!==0);if((Ee&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=ss,Vg(e,l,u,f,m,S),e===_e&&(de=_e=null,pe=0),Ha=t,Ml=e,cl=l,mr=u,pr=n,Sd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hp(Pn,function(){return jd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=V.p,V.p=2,f=Ee,Ee|=4;try{lp(e,t,l)}finally{Ee=f,V.p=n,D.T=a}}Fe=1,_d(),Nd(),Ld()}}function _d(){if(Fe===1){Fe=0;var e=Ml,t=Ha,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Ee;Ee|=4;try{fd(t,e);var u=_r,f=po(e.containerInfo),m=u.focusedElem,S=u.selectionRange;if(f!==m&&m&&m.ownerDocument&&mo(m.ownerDocument.documentElement,m)){if(S!==null&&ls(m)){var A=S.start,U=S.end;if(U===void 0&&(U=A),"selectionStart"in m)m.selectionStart=A,m.selectionEnd=Math.min(U,m.value.length);else{var B=m.ownerDocument||document,O=B&&B.defaultView||window;if(O.getSelection){var M=O.getSelection(),J=m.textContent.length,P=Math.min(S.start,J),De=S.end===void 0?P:Math.min(S.end,J);!M.extend&&P>De&&(f=De,De=P,P=f);var R=go(m,P),E=go(m,De);if(R&&E&&(M.rangeCount!==1||M.anchorNode!==R.node||M.anchorOffset!==R.offset||M.focusNode!==E.node||M.focusOffset!==E.offset)){var z=B.createRange();z.setStart(R.node,R.offset),M.removeAllRanges(),P>De?(M.addRange(z),M.extend(E.node,E.offset)):(z.setEnd(E.node,E.offset),M.addRange(z))}}}}for(B=[],M=m;M=M.parentNode;)M.nodeType===1&&B.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<B.length;m++){var H=B[m];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}cu=!!Mr,_r=Mr=null}finally{Ee=n,V.p=a,D.T=l}}e.current=t,Fe=2}}function Nd(){if(Fe===2){Fe=0;var e=Ml,t=Ha,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Ee;Ee|=4;try{ud(e,t.alternate,t)}finally{Ee=n,V.p=a,D.T=l}}Fe=3}}function Ld(){if(Fe===4||Fe===3){Fe=0,Lg();var e=Ml,t=Ha,l=cl,a=Sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Ha=Ml=null,Ud(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Dl=null),Bu(l),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=V.p,V.p=2,D.T=null;try{for(var u=e.onRecoverableError,f=0;f<a.length;f++){var m=a[f];u(m.value,{componentStack:m.stack})}}finally{D.T=t,V.p=n}}(cl&3)!==0&&Wi(),Xt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===yr?Mn++:(Mn=0,yr=e):Mn=0,_n(0)}}function Ud(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fn(t)))}function Wi(){return _d(),Nd(),Ld(),jd()}function jd(){if(Fe!==5)return!1;var e=Ml,t=mr;mr=0;var l=Bu(cl),a=D.T,n=V.p;try{V.p=32>l?32:l,D.T=null,l=pr,pr=null;var u=Ml,f=cl;if(Fe=0,Ha=Ml=null,cl=0,(Ee&6)!==0)throw Error(r(331));var m=Ee;if(Ee|=4,pd(u.current),hd(u,u.current,f,l),Ee=m,_n(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot($a,u)}catch{}return!0}finally{V.p=n,D.T=a,Ud(e,t)}}function Hd(e,t,l){t=Ot(l,t),t=ks(e.stateNode,t,2),e=Rl(e,t,2),e!==null&&(Fa(e,2),Xt(e))}function ze(e,t,l){if(e.tag===3)Hd(e,e,l);else for(;t!==null;){if(t.tag===3){Hd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Dl===null||!Dl.has(a))){e=Ot(l,e),l=Bf(2),a=Rl(t,l,2),a!==null&&(wf(l,a,t,e),Fa(a,2),Xt(a));break}}t=t.return}}function br(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new ip;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(dr=!0,n.add(l),e=op.bind(null,e,t,l),t.then(e,e))}function op(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,_e===e&&(pe&l)===l&&(qe===4||qe===3&&(pe&62914560)===pe&&300>mt()-Ki?(Ee&2)===0&&Ba(e,0):hr|=l,ja===pe&&(ja=0)),Xt(e)}function Bd(e,t){t===0&&(t=Dc()),e=Kl(e,t),e!==null&&(Fa(e,t),Xt(e))}function fp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Bd(e,l)}function dp(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Bd(e,l)}function hp(e,t){return Lu(e,t)}var Ii=null,qa=null,xr=!1,Pi=!1,Er=!1,Nl=0;function Xt(e){e!==qa&&e.next===null&&(qa===null?Ii=qa=e:qa=qa.next=e),Pi=!0,xr||(xr=!0,mp())}function _n(e,t){if(!Er&&Pi){Er=!0;do for(var l=!1,a=Ii;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var f=a.suspendedLanes,m=a.pingedLanes;u=(1<<31-yt(42|e)+1)-1,u&=n&~(f&~m),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Gd(a,u))}else u=pe,u=ai(a,a===_e?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||ka(a,u)||(l=!0,Gd(a,u));a=a.next}while(l);Er=!1}}function gp(){wd()}function wd(){Pi=xr=!1;var e=0;Nl!==0&&Cp()&&(e=Nl);for(var t=mt(),l=null,a=Ii;a!==null;){var n=a.next,u=qd(a,t);u===0?(a.next=null,l===null?Ii=n:l.next=n,n===null&&(qa=l)):(l=a,(e!==0||(u&3)!==0)&&(Pi=!0)),a=n}Fe!==0&&Fe!==5||_n(e),Nl!==0&&(Nl=0)}function qd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-yt(u),m=1<<f,S=n[f];S===-1?((m&l)===0||(m&a)!==0)&&(n[f]=Gg(m,t)):S<=t&&(e.expiredLanes|=m),u&=~m}if(t=_e,l=pe,l=ai(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Uu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Uu(a),Bu(l)){case 2:case 8:l=Ac;break;case 32:l=Pn;break;case 268435456:l=Oc;break;default:l=Pn}return a=Yd.bind(null,e),l=Lu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Uu(a),e.callbackPriority=2,e.callbackNode=null,2}function Yd(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Wi()&&e.callbackNode!==l)return null;var a=pe;return a=ai(e,e===_e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(xd(e,a,t),qd(e,mt()),e.callbackNode!=null&&e.callbackNode===l?Yd.bind(null,e):null)}function Gd(e,t){if(Wi())return null;xd(e,t,!0)}function mp(){Ap(function(){(Ee&6)!==0?Lu(zc,gp):wd()})}function Rr(){if(Nl===0){var e=Ta;e===0&&(e=ei,ei<<=1,(ei&261888)===0&&(ei=256)),Nl=e}return Nl}function Vd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:si(""+e)}function Xd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function pp(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Vd((n[rt]||null).action),f=a.submitter;f&&(t=(t=f[rt]||null)?Vd(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var m=new fi("action","action",null,a,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Nl!==0){var S=f?Xd(n,f):new FormData(n);Xs(l,{pending:!0,data:S,method:n.method,action:u},null,S)}}else typeof u=="function"&&(m.preventDefault(),S=f?Xd(n,f):new FormData(n),Xs(l,{pending:!0,data:S,method:n.method,action:u},u,S))},currentTarget:n}]})}}for(var Tr=0;Tr<us.length;Tr++){var Cr=us[Tr],yp=Cr.toLowerCase(),vp=Cr[0].toUpperCase()+Cr.slice(1);Ht(yp,"on"+vp)}Ht(So,"onAnimationEnd"),Ht(bo,"onAnimationIteration"),Ht(xo,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Um,"onTransitionRun"),Ht(jm,"onTransitionStart"),Ht(Hm,"onTransitionCancel"),Ht(Eo,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("onPointerLeave",["pointerout","pointerover"]),Gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="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(" "),Sp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function Qd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var f=a.length-1;0<=f;f--){var m=a[f],S=m.instance,A=m.currentTarget;if(m=m.listener,S!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=A;try{u(n)}catch(U){gi(U)}n.currentTarget=null,u=S}else for(f=0;f<a.length;f++){if(m=a[f],S=m.instance,A=m.currentTarget,m=m.listener,S!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=A;try{u(n)}catch(U){gi(U)}n.currentTarget=null,u=S}}}}function he(e,t){var l=t[wu];l===void 0&&(l=t[wu]=new Set);var a=e+"__bubble";l.has(a)||(Kd(t,e,2,!1),l.add(a))}function zr(e,t,l){var a=0;t&&(a|=4),Kd(l,e,a,t)}var eu="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){if(!e[eu]){e[eu]=!0,Hc.forEach(function(l){l!=="selectionchange"&&(Sp.has(l)||zr(l,!1,e),zr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[eu]||(t[eu]=!0,zr("selectionchange",!1,t))}}function Kd(e,t,l,a){switch(bh(t)){case 2:var n=Jp;break;case 8:n=$p;break;default:n=Vr}l=n.bind(null,t,l,e),n=void 0,!Ju||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Or(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var m=a.stateNode.containerInfo;if(m===n)break;if(f===4)for(f=a.return;f!==null;){var S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;m!==null;){if(f=sa(m),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){a=u=f;continue e}m=m.parentNode}}a=a.return}$c(function(){var A=u,U=Ku(l),B=[];e:{var O=Ro.get(e);if(O!==void 0){var M=fi,J=e;switch(e){case"keypress":if(ci(l)===0)break e;case"keydown":case"keyup":M=dm;break;case"focusin":J="focus",M=Wu;break;case"focusout":J="blur",M=Wu;break;case"beforeblur":case"afterblur":M=Wu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Wc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=em;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=mm;break;case So:case bo:case xo:M=am;break;case Eo:M=ym;break;case"scroll":case"scrollend":M=Ig;break;case"wheel":M=Sm;break;case"copy":case"cut":case"paste":M=im;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Pc;break;case"toggle":case"beforetoggle":M=xm}var P=(t&4)!==0,De=!P&&(e==="scroll"||e==="scrollend"),R=P?O!==null?O+"Capture":null:O;P=[];for(var E=A,z;E!==null;){var H=E;if(z=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||z===null||R===null||(H=Pa(E,R),H!=null&&P.push(Ln(E,H,z))),De)break;E=E.return}0<P.length&&(O=new M(O,J,null,l,U),B.push({event:O,listeners:P}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",O&&l!==Qu&&(J=l.relatedTarget||l.fromElement)&&(sa(J)||J[ua]))break e;if((M||O)&&(O=U.window===U?U:(O=U.ownerDocument)?O.defaultView||O.parentWindow:window,M?(J=l.relatedTarget||l.toElement,M=A,J=J?sa(J):null,J!==null&&(De=d(J),P=J.tag,J!==De||P!==5&&P!==27&&P!==6)&&(J=null)):(M=null,J=A),M!==J)){if(P=Wc,H="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(P=Pc,H="onPointerLeave",R="onPointerEnter",E="pointer"),De=M==null?O:Ia(M),z=J==null?O:Ia(J),O=new P(H,E+"leave",M,l,U),O.target=De,O.relatedTarget=z,H=null,sa(U)===A&&(P=new P(R,E+"enter",J,l,U),P.target=z,P.relatedTarget=De,H=P),De=H,M&&J)t:{for(P=bp,R=M,E=J,z=0,H=R;H;H=P(H))z++;H=0;for(var W=E;W;W=P(W))H++;for(;0<z-H;)R=P(R),z--;for(;0<H-z;)E=P(E),H--;for(;z--;){if(R===E||E!==null&&R===E.alternate){P=R;break t}R=P(R),E=P(E)}P=null}else P=null;M!==null&&Zd(B,O,M,P,!1),J!==null&&De!==null&&Zd(B,De,J,P,!0)}}e:{if(O=A?Ia(A):window,M=O.nodeName&&O.nodeName.toLowerCase(),M==="select"||M==="input"&&O.type==="file")var be=so;else if(io(O))if(ro)be=_m;else{be=Dm;var $=Om}else M=O.nodeName,!M||M.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&Xu(A.elementType)&&(be=so):be=Mm;if(be&&(be=be(e,A))){uo(B,be,l,U);break e}$&&$(e,O,A),e==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&Vu(O,"number",O.value)}switch($=A?Ia(A):window,e){case"focusin":(io($)||$.contentEditable==="true")&&(pa=$,as=A,rn=null);break;case"focusout":rn=as=pa=null;break;case"mousedown":ns=!0;break;case"contextmenu":case"mouseup":case"dragend":ns=!1,yo(B,l,U);break;case"selectionchange":if(Lm)break;case"keydown":case"keyup":yo(B,l,U)}var re;if(Pu)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ma?ao(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(eo&&l.locale!=="ko"&&(ma||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ma&&(re=kc()):(pl=U,$u="value"in pl?pl.value:pl.textContent,ma=!0)),$=tu(A,ye),0<$.length&&(ye=new Ic(ye,e,null,l,U),B.push({event:ye,listeners:$}),re?ye.data=re:(re=no(l),re!==null&&(ye.data=re)))),(re=Rm?Tm(e,l):Cm(e,l))&&(ye=tu(A,"onBeforeInput"),0<ye.length&&($=new Ic("onBeforeInput","beforeinput",null,l,U),B.push({event:$,listeners:ye}),$.data=re)),pp(B,e,A,l,U)}Qd(B,t)})}function Ln(e,t,l){return{instance:e,listener:t,currentTarget:l}}function tu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Pa(e,l),n!=null&&a.unshift(Ln(e,n,u)),n=Pa(e,t),n!=null&&a.push(Ln(e,n,u))),e.tag===3)return a;e=e.return}return[]}function bp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zd(e,t,l,a,n){for(var u=t._reactName,f=[];l!==null&&l!==a;){var m=l,S=m.alternate,A=m.stateNode;if(m=m.tag,S!==null&&S===a)break;m!==5&&m!==26&&m!==27||A===null||(S=A,n?(A=Pa(l,u),A!=null&&f.unshift(Ln(l,A,S))):n||(A=Pa(l,u),A!=null&&f.push(Ln(l,A,S)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var xp=/\r\n?/g,Ep=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(xp,`
|
|
49
|
-
`).replace(Ep,"")}function $d(e,t){return t=Jd(t),Jd(e)===t}function Oe(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||da(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&da(e,""+a);break;case"className":ii(e,"class",a);break;case"tabIndex":ii(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,l,a);break;case"style":Zc(e,a,u);break;case"data":if(t!=="object"){ii(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=si(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.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 u=="function"&&(l==="formAction"?(t!=="input"&&Oe(e,t,"name",n.name,n,null),Oe(e,t,"formEncType",n.formEncType,n,null),Oe(e,t,"formMethod",n.formMethod,n,null),Oe(e,t,"formTarget",n.formTarget,n,null)):(Oe(e,t,"encType",n.encType,n,null),Oe(e,t,"method",n.method,n,null),Oe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=si(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$t);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}l=si(""+a),e.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"?e.setAttribute(l,""+a):e.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"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":he("beforetoggle",e),he("toggle",e),ni(e,"popover",a);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ni(e,"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=Fg.get(l)||l,ni(e,l,a))}}function Dr(e,t,l,a,n,u){switch(l){case"style":Zc(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?da(e,a):(typeof a=="number"||typeof a=="bigint")&&da(e,""+a);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[rt]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):ni(e,l,a)}}}function nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];if(f!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Oe(e,t,u,f,l,null)}}n&&Oe(e,t,"srcSet",l.srcSet,l,null),a&&Oe(e,t,"src",l.src,l,null);return;case"input":he("invalid",e);var m=u=f=n=null,S=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var U=l[a];if(U!=null)switch(a){case"name":n=U;break;case"type":f=U;break;case"checked":S=U;break;case"defaultChecked":A=U;break;case"value":u=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:Oe(e,t,a,U,l,null)}}Vc(e,u,m,S,A,f,n,!1);return;case"select":he("invalid",e),a=f=u=null;for(n in l)if(l.hasOwnProperty(n)&&(m=l[n],m!=null))switch(n){case"value":u=m;break;case"defaultValue":f=m;break;case"multiple":a=m;default:Oe(e,t,n,m,l,null)}t=u,l=f,e.multiple=!!a,t!=null?fa(e,!!a,t,!1):l!=null&&fa(e,!!a,l,!0);return;case"textarea":he("invalid",e),u=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(m=l[f],m!=null))switch(f){case"value":a=m;break;case"defaultValue":n=m;break;case"children":u=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:Oe(e,t,f,m,l,null)}Qc(e,a,n,u);return;case"option":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Oe(e,t,S,a,l,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)he(Nn[a],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Oe(e,t,A,a,l,null)}return;default:if(Xu(t)){for(U in l)l.hasOwnProperty(U)&&(a=l[U],a!==void 0&&Dr(e,t,U,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Oe(e,t,m,a,l,null))}function Rp(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,f=null,m=null,S=null,A=null,U=null;for(M in l){var B=l[M];if(l.hasOwnProperty(M)&&B!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":S=B;default:a.hasOwnProperty(M)||Oe(e,t,M,null,a,B)}}for(var O in a){var M=a[O];if(B=l[O],a.hasOwnProperty(O)&&(M!=null||B!=null))switch(O){case"type":u=M;break;case"name":n=M;break;case"checked":A=M;break;case"defaultChecked":U=M;break;case"value":f=M;break;case"defaultValue":m=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:M!==B&&Oe(e,t,O,M,a,B)}}Gu(e,f,m,S,A,U,u,n);return;case"select":M=f=m=O=null;for(u in l)if(S=l[u],l.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":M=S;default:a.hasOwnProperty(u)||Oe(e,t,u,null,a,S)}for(n in a)if(u=a[n],S=l[n],a.hasOwnProperty(n)&&(u!=null||S!=null))switch(n){case"value":O=u;break;case"defaultValue":m=u;break;case"multiple":f=u;default:u!==S&&Oe(e,t,n,u,a,S)}t=m,l=f,a=M,O!=null?fa(e,!!l,O,!1):!!a!=!!l&&(t!=null?fa(e,!!l,t,!0):fa(e,!!l,l?[]:"",!1));return;case"textarea":M=O=null;for(m in l)if(n=l[m],l.hasOwnProperty(m)&&n!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Oe(e,t,m,null,a,n)}for(f in a)if(n=a[f],u=l[f],a.hasOwnProperty(f)&&(n!=null||u!=null))switch(f){case"value":O=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Oe(e,t,f,n,a,u)}Xc(e,O,M);return;case"option":for(var J in l)if(O=l[J],l.hasOwnProperty(J)&&O!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Oe(e,t,J,null,a,O)}for(S in a)if(O=a[S],M=l[S],a.hasOwnProperty(S)&&O!==M&&(O!=null||M!=null))switch(S){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Oe(e,t,S,O,a,M)}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 P in l)O=l[P],l.hasOwnProperty(P)&&O!=null&&!a.hasOwnProperty(P)&&Oe(e,t,P,null,a,O);for(A in a)if(O=a[A],M=l[A],a.hasOwnProperty(A)&&O!==M&&(O!=null||M!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:Oe(e,t,A,O,a,M)}return;default:if(Xu(t)){for(var De in l)O=l[De],l.hasOwnProperty(De)&&O!==void 0&&!a.hasOwnProperty(De)&&Dr(e,t,De,void 0,a,O);for(U in a)O=a[U],M=l[U],!a.hasOwnProperty(U)||O===M||O===void 0&&M===void 0||Dr(e,t,U,O,a,M);return}}for(var R in l)O=l[R],l.hasOwnProperty(R)&&O!=null&&!a.hasOwnProperty(R)&&Oe(e,t,R,null,a,O);for(B in a)O=a[B],M=l[B],!a.hasOwnProperty(B)||O===M||O==null&&M==null||Oe(e,t,B,O,a,M)}function kd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,f=n.initiatorType,m=n.duration;if(u&&m&&kd(f)){for(f=0,m=n.responseEnd,a+=1;a<l.length;a++){var S=l[a],A=S.startTime;if(A>m)break;var U=S.transferSize,B=S.initiatorType;U&&kd(B)&&(S=S.responseEnd,f+=U*(S<m?1:(m-A)/(S-A)))}if(--a,t+=8*(u+f)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mr=null,_r=null;function lu(e){return e.nodeType===9?e:e.ownerDocument}function Fd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lr=null;function Cp(){var e=window.event;return e&&e.type==="popstate"?e===Lr?!1:(Lr=e,!0):(Lr=null,!1)}var Id=typeof setTimeout=="function"?setTimeout:void 0,zp=typeof clearTimeout=="function"?clearTimeout:void 0,Pd=typeof Promise=="function"?Promise:void 0,Ap=typeof queueMicrotask=="function"?queueMicrotask:typeof Pd<"u"?function(e){return Pd.resolve(null).then(e).catch(Op)}:Id;function Op(e){setTimeout(function(){throw e})}function Ll(e){return e==="head"}function eh(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Xa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Un(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Un(l);for(var u=l.firstChild;u;){var f=u.nextSibling,m=u.nodeName;u[Wa]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=f}}else l==="body"&&Un(e.ownerDocument.body);l=n}while(l);Xa(t)}function th(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Ur(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ur(l),qu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Dp(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Wa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function Mp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Lt(e.nextSibling),e===null))return null;return e}function lh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function jr(e){return e.data==="$?"||e.data==="$~"}function Hr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _p(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Br=null;function ah(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Lt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function nh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function ih(e,t,l){switch(t=lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Un(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);qu(e)}var Ut=new Map,uh=new Set;function au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ol=V.d;V.d={f:Np,r:Lp,D:Up,C:jp,L:Hp,m:Bp,X:qp,S:wp,M:Yp};function Np(){var e=ol.f(),t=$i();return e||t}function Lp(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?Rf(t):ol.r(e)}var Ya=typeof document>"u"?null:document;function sh(e,t,l){var a=Ya;if(a&&typeof t=="string"&&t){var n=zt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),uh.has(n)||(uh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function Up(e){ol.D(e),sh("dns-prefetch",e,null)}function jp(e,t){ol.C(e,t),sh("preconnect",e,t)}function Hp(e,t,l){ol.L(e,t,l);var a=Ya;if(a&&e&&t){var n='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+zt(l.imageSizes)+'"]')):n+='[href="'+zt(e)+'"]';var u=n;switch(t){case"style":u=Ga(e);break;case"script":u=Va(e)}Ut.has(u)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(jn(u))||t==="script"&&a.querySelector(Hn(u))||(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function Bp(e,t){ol.m(e,t);var l=Ya;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+zt(a)+'"][href="'+zt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Va(e)}if(!Ut.has(u)&&(e=v({rel:"modulepreload",href:e},t),Ut.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Hn(u)))return}a=l.createElement("link"),nt(a,"link",e),We(a),l.head.appendChild(a)}}}function wp(e,t,l){ol.S(e,t,l);var a=Ya;if(a&&e){var n=ca(a).hoistableStyles,u=Ga(e);t=t||"default";var f=n.get(u);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(jn(u)))m.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(u))&&wr(e,l);var S=f=a.createElement("link");We(S),nt(S,"link",e),S._p=new Promise(function(A,U){S.onload=A,S.onerror=U}),S.addEventListener("load",function(){m.loading|=1}),S.addEventListener("error",function(){m.loading|=2}),m.loading|=4,nu(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:m},n.set(u,f)}}}function qp(e,t){ol.X(e,t);var l=Ya;if(l&&e){var a=ca(l).hoistableScripts,n=Va(e),u=a.get(n);u||(u=l.querySelector(Hn(n)),u||(e=v({src:e,async:!0},t),(t=Ut.get(n))&&qr(e,t),u=l.createElement("script"),We(u),nt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Yp(e,t){ol.M(e,t);var l=Ya;if(l&&e){var a=ca(l).hoistableScripts,n=Va(e),u=a.get(n);u||(u=l.querySelector(Hn(n)),u||(e=v({src:e,async:!0,type:"module"},t),(t=Ut.get(n))&&qr(e,t),u=l.createElement("script"),We(u),nt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function rh(e,t,l,a){var n=(n=fe.current)?au(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ga(l.href),l=ca(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ga(l.href);var u=ca(n).hoistableStyles,f=u.get(e);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=n.querySelector(jn(e)))&&!u._p&&(f.instance=u,f.state.loading=5),Ut.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ut.set(e,l),u||Gp(n,e,l,f.state))),t&&a===null)throw Error(r(528,""));return f}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Va(l),l=ca(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ga(e){return'href="'+zt(e)+'"'}function jn(e){return'link[rel="stylesheet"]['+e+"]"}function ch(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Gp(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",l),We(t),e.head.appendChild(t))}function Va(e){return'[src="'+zt(e)+'"]'}function Hn(e){return"script[async]"+e}function oh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+zt(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),nt(a,"style",n),nu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ga(l.href);var u=e.querySelector(jn(n));if(u)return t.state.loading|=4,t.instance=u,We(u),u;a=ch(l),(n=Ut.get(n))&&wr(a,n),u=(e.ownerDocument||e).createElement("link"),We(u);var f=u;return f._p=new Promise(function(m,S){f.onload=m,f.onerror=S}),nt(u,"link",a),t.state.loading|=4,nu(u,l.precedence,e),t.instance=u;case"script":return u=Va(l.src),(n=e.querySelector(Hn(u)))?(t.instance=n,We(n),n):(a=l,(n=Ut.get(u))&&(a=v({},l),qr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),nt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,nu(a,l.precedence,e));return t.instance}function nu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,f=0;f<a.length;f++){var m=a[f];if(m.dataset.precedence===t)u=m;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var iu=null;function fh(e,t,l){if(iu===null){var a=new Map,n=iu=new Map;n.set(l,a)}else n=iu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Wa]||u[et]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var m=a.get(f);m?m.push(u):a.set(f,[u])}}return a}function dh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Vp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Xp(e,t,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 n=Ga(a.href),u=t.querySelector(jn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=uu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,We(u);return}u=t.ownerDocument||t,a=ch(a),(n=Ut.get(n))&&wr(a,n),u=u.createElement("link"),We(u);var f=u;f._p=new Promise(function(m,S){f.onload=m,f.onerror=S}),nt(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=uu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Yr=0;function Qp(e,t){return e.stylesheets&&e.count===0&&ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Yr===0&&(Yr=62500*Tp());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Yr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var su=null;function ru(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,su=new Map,t.forEach(Kp,e),su=null,uu.call(e))}function Kp(e,t){if(!(t.state.loading&4)){var l=su.get(e);if(l)var a=l.get(null);else{l=new Map,su.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var f=n[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=t.instance,f=n.getAttribute("data-precedence"),u=l.get(f)||a,u===a&&l.set(null,n),l.set(f,n),this.count++,a=uu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Bn={$$typeof:q,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Zp(e,t,l,a,n,u,f,m,S){this.tag=1,this.containerInfo=e,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=ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.hiddenUpdates=ju(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function gh(e,t,l,a,n,u,f,m,S,A,U,B){return e=new Zp(e,t,l,f,S,A,U,B,m),t=1,u===!0&&(t|=24),u=St(3,null,null,t),e.current=u,u.stateNode=e,t=Ss(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Rs(u),e}function mh(e){return e?(e=Sa,e):Sa}function ph(e,t,l,a,n,u){n=mh(n),a.context===null?a.context=n:a.pendingContext=n,a=El(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Rl(e,a,t),l!==null&&(gt(l,e,t),mn(l,e,t))}function yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Gr(e,t){yh(e,t),(e=e.alternate)&&yh(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=Kl(e,67108864);t!==null&>(t,e,67108864),Gr(e,67108864)}}function Sh(e){if(e.tag===13||e.tag===31){var t=Tt();t=Hu(t);var l=Kl(e,t);l!==null&>(l,e,t),Gr(e,t)}}var cu=!0;function Jp(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=2,Vr(e,t,l,a)}finally{V.p=u,D.T=n}}function $p(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=8,Vr(e,t,l,a)}finally{V.p=u,D.T=n}}function Vr(e,t,l,a){if(cu){var n=Xr(a);if(n===null)Or(e,t,a,ou,l),xh(e,a);else if(Fp(n,e,t,l,a))a.stopPropagation();else if(xh(e,a),t&4&&-1<kp.indexOf(e)){for(;n!==null;){var u=ra(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=Yl(u.pendingLanes);if(f!==0){var m=u;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var S=1<<31-yt(f);m.entanglements[1]|=S,f&=~S}Xt(u),(Ee&6)===0&&(Zi=mt()+500,_n(0))}}break;case 31:case 13:m=Kl(u,2),m!==null&>(m,u,2),$i(),Gr(u,2)}if(u=Xr(a),u===null&&Or(e,t,a,ou,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Or(e,t,a,null,l)}}function Xr(e){return e=Ku(e),Qr(e)}var ou=null;function Qr(e){if(ou=null,e=sa(e),e!==null){var t=d(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ou=e,null}function bh(e){switch(e){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(Ug()){case zc:return 2;case Ac:return 8;case Pn:case jg:return 32;case Oc:return 268435456;default:return 32}default:return 32}}var Kr=!1,Ul=null,jl=null,Hl=null,wn=new Map,qn=new Map,Bl=[],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 xh(e,t){switch(e){case"focusin":case"focusout":Ul=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qn.delete(t.pointerId)}}function Yn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ra(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Fp(e,t,l,a,n){switch(t){case"focusin":return Ul=Yn(Ul,e,t,l,a,n),!0;case"dragenter":return jl=Yn(jl,e,t,l,a,n),!0;case"mouseover":return Hl=Yn(Hl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return wn.set(u,Yn(wn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,qn.set(u,Yn(qn.get(u)||null,e,t,l,a,n)),!0}return!1}function Eh(e){var t=sa(e.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Uc(e.priority,function(){Sh(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Uc(e.priority,function(){Sh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Xr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Qu=a,l.target.dispatchEvent(a),Qu=null}else return t=ra(l),t!==null&&vh(t),e.blockedOn=l,!1;t.shift()}return!0}function Rh(e,t,l){fu(e)&&l.delete(t)}function Wp(){Kr=!1,Ul!==null&&fu(Ul)&&(Ul=null),jl!==null&&fu(jl)&&(jl=null),Hl!==null&&fu(Hl)&&(Hl=null),wn.forEach(Rh),qn.forEach(Rh)}function du(e,t){e.blockedOn===t&&(e.blockedOn=null,Kr||(Kr=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Wp)))}var hu=null;function Th(e){hu!==e&&(hu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){hu===e&&(hu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Qr(a||l)===null)continue;break}var u=ra(l);u!==null&&(e.splice(t,3),t-=3,Xs(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Xa(e){function t(S){return du(S,e)}Ul!==null&&du(Ul,e),jl!==null&&du(jl,e),Hl!==null&&du(Hl,e),wn.forEach(t),qn.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)Eh(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],f=n[rt]||null;if(typeof u=="function")f||Th(l);else if(f){var m=null;if(u&&u.hasAttribute("formAction")){if(n=u,f=u[rt]||null)m=f.formAction;else if(Qr(n)!==null)continue}else m=f.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),Th(l)}}}function Ch(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Zr(e){this._internalRoot=e}gu.prototype.render=Zr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Tt();ph(l,a,e,t,null,null)},gu.prototype.unmount=Zr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),$i(),t[ua]=null}};function gu(e){this._internalRoot=e}gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&Eh(e)}};var zh=i.version;if(zh!=="19.2.5")throw Error(r(527,zh,"19.2.5"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Ip={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mu.isDisabled&&mu.supportsFiber)try{$a=mu.inject(Ip),pt=mu}catch{}}return Vn.createRoot=function(e,t){if(!o(e))throw Error(r(299));var l=!1,a="",n=Lf,u=Uf,f=jf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=gh(e,1,!1,null,null,l,a,null,n,u,f,Ch),e[ua]=t.current,Ar(e),new Zr(t)},Vn.hydrateRoot=function(e,t,l){if(!o(e))throw Error(r(299));var a=!1,n="",u=Lf,f=Uf,m=jf,S=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=gh(e,1,!0,t,l??null,a,n,S,u,f,m,Ch),t.context=mh(null),l=t.current,a=Tt(),a=Hu(a),n=El(a),n.callback=null,Rl(l,n,a),l=a,t.current.lanes=l,Fa(t,l),Xt(t),e[ua]=t.current,Ar(e),new gu(t)},Vn.version="19.2.5",Vn}var Hh;function ry(){if(Hh)return kr.exports;Hh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),kr.exports=sy(),kr.exports}var cy=ry();/**
|
|
50
|
-
* react-router v7.
|
|
48
|
+
`+a.stack}}var Nu=Object.prototype.hasOwnProperty,Lu=s.unstable_scheduleCallback,Uu=s.unstable_cancelCallback,Ng=s.unstable_shouldYield,Lg=s.unstable_requestPaint,mt=s.unstable_now,Ug=s.unstable_getCurrentPriorityLevel,Cc=s.unstable_ImmediatePriority,zc=s.unstable_UserBlockingPriority,Pn=s.unstable_NormalPriority,jg=s.unstable_LowPriority,Oc=s.unstable_IdlePriority,Hg=s.log,Bg=s.unstable_setDisableYieldValue,$a=null,pt=null;function gl(e){if(typeof Hg=="function"&&Bg(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode($a,e)}catch{}}var yt=Math.clz32?Math.clz32:Yg,wg=Math.log,qg=Math.LN2;function Yg(e){return e>>>=0,e===0?32:31-(wg(e)/qg|0)|0}var ei=256,ti=262144,li=4194304;function Yl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ai(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~u,a!==0?n=Yl(a):(f&=m,f!==0?n=Yl(f):l||(l=m&~e,l!==0&&(n=Yl(l))))):(m=a&~u,m!==0?n=Yl(m):f!==0?n=Yl(f):l||(l=a&~e,l!==0&&(n=Yl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Gg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Dc(){var e=li;return li<<=1,(li&62914560)===0&&(li=4194304),e}function ju(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Vg(e,t,l,a,n,u){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,S=e.expirationTimes,z=e.hiddenUpdates;for(l=f&~l;0<l;){var U=31-yt(l),B=1<<U;m[U]=0,S[U]=-1;var O=z[U];if(O!==null)for(z[U]=null,U=0;U<O.length;U++){var M=O[U];M!==null&&(M.lane&=-536870913)}l&=~B}a!==0&&Mc(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function Mc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function _c(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-yt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Nc(e,t){var l=t&-t;return l=(l&42)!==0?1:Hu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Hu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Lc(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:bh(e.type))}function Uc(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var ml=Math.random().toString(36).slice(2),et="__reactFiber$"+ml,rt="__reactProps$"+ml,ua="__reactContainer$"+ml,wu="__reactEvents$"+ml,Xg="__reactListeners$"+ml,Qg="__reactHandles$"+ml,jc="__reactResources$"+ml,Wa="__reactMarker$"+ml;function qu(e){delete e[et],delete e[rt],delete e[wu],delete e[Xg],delete e[Qg]}function sa(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ua]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=nh(e);e!==null;){if(l=e[et])return l;e=nh(e)}return t}e=l,l=e.parentNode}return null}function ra(e){if(e=e[et]||e[ua]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ca(e){var t=e[jc];return t||(t=e[jc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[Wa]=!0}var Hc=new Set,Bc={};function Gl(e,t){oa(e,t),oa(e+"Capture",t)}function oa(e,t){for(Bc[e]=t,e=0;e<t.length;e++)Hc.add(t[e])}var Kg=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]*$"),wc={},qc={};function Zg(e){return Nu.call(qc,e)?!0:Nu.call(wc,e)?!1:Kg.test(e)?qc[e]=!0:(wc[e]=!0,!1)}function ni(e,t,l){if(Zg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ii(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Jt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jg(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yu(e){if(!e._valueTracker){var t=Yc(e)?"checked":"value";e._valueTracker=Jg(e,t,""+e[t])}}function Gc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Yc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ui(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var $g=/[\n"\\]/g;function Ct(e){return e.replace($g,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gu(e,t,l,a,n,u,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Vu(e,f,At(t)):l!=null?Vu(e,f,At(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+At(m):e.removeAttribute("name")}function Vc(e,t,l,a,n,u,f,m){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Yu(e);return}l=l!=null?""+At(l):"",t=t!=null?""+At(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Yu(e)}function Vu(e,t,l){t==="number"&&ui(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function fa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+At(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Xc(e,t,l){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+At(l):""}function Qc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(oe(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=At(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Yu(e)}function da(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var kg=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 Kc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||kg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Zc(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Kc(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Kc(e,u,t[u])}function Xu(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Fg=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"]]),Wg=/^[\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 si(e){return Wg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var Qu=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,ga=null;function Jc(e){var t=ra(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ct(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[rt]||null;if(!n)throw Error(r(90));Gu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Gc(a)}break e;case"textarea":Xc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&fa(e,!!l.multiple,t,!1)}}}var Zu=!1;function $c(e,t,l){if(Zu)return e(t,l);Zu=!0;try{var a=e(t);return a}finally{if(Zu=!1,(ha!==null||ga!==null)&&($i(),ha&&(t=ha,e=ga,ga=ha=null,Jc(t),e)))for(t=0;t<e.length;t++)Jc(e[t])}}function Pa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||null;if(a===null)return null;l=a[t];e:switch(t){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)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ju=!1;if(kt)try{var en={};Object.defineProperty(en,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{Ju=!1}var pl=null,$u=null,ri=null;function kc(){if(ri)return ri;var e,t=$u,l=t.length,a,n="value"in pl?pl.value:pl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===n[u-a];a++);return ri=n.slice(e,1<a?1-a:void 0)}function ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function oi(){return!0}function Fc(){return!1}function ct(e){function t(l,a,n,u,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(u):u[m]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?oi:Fc,this.isPropagationStopped=Fc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fi=ct(Vl),tn=v({},Vl,{view:0,detail:0}),Ig=ct(tn),ku,Fu,ln,di=v({},tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&e.type==="mousemove"?(ku=e.screenX-ln.screenX,Fu=e.screenY-ln.screenY):Fu=ku=0,ln=e),ku)},movementY:function(e){return"movementY"in e?e.movementY:Fu}}),Wc=ct(di),Pg=v({},di,{dataTransfer:0}),em=ct(Pg),tm=v({},tn,{relatedTarget:0}),Wu=ct(tm),lm=v({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),am=ct(lm),nm=v({},Vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),im=ct(nm),um=v({},Vl,{data:0}),Ic=ct(um),sm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rm={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"},cm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cm[e])?!!t[e]:!1}function Iu(){return om}var fm=v({},tn,{key:function(e){if(e.key){var t=sm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(e){return e.type==="keypress"?ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dm=ct(fm),hm=v({},di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pc=ct(hm),gm=v({},tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),mm=ct(gm),pm=v({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ym=ct(pm),vm=v({},di,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Sm=ct(vm),bm=v({},Vl,{newState:0,oldState:0}),xm=ct(bm),Em=[9,13,27,32],Pu=kt&&"CompositionEvent"in window,an=null;kt&&"documentMode"in document&&(an=document.documentMode);var Rm=kt&&"TextEvent"in window&&!an,eo=kt&&(!Pu||an&&8<an&&11>=an),to=" ",lo=!1;function ao(e,t){switch(e){case"keyup":return Em.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function no(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ma=!1;function Tm(e,t){switch(e){case"compositionend":return no(t);case"keypress":return t.which!==32?null:(lo=!0,to);case"textInput":return e=t.data,e===to&&lo?null:e;default:return null}}function Am(e,t){if(ma)return e==="compositionend"||!Pu&&ao(e,t)?(e=kc(),ri=$u=pl=null,ma=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return eo&&t.locale!=="ko"?null:t.data;default:return null}}var Cm={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 io(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cm[e.type]:t==="textarea"}function uo(e,t,l,a){ha?ga?ga.push(a):ga=[a]:ha=a,t=tu(t,"onChange"),0<t.length&&(l=new fi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var nn=null,un=null;function zm(e){Qd(e,0)}function hi(e){var t=Ia(e);if(Gc(t))return e}function so(e,t){if(e==="change")return t}var ro=!1;if(kt){var es;if(kt){var ts="oninput"in document;if(!ts){var co=document.createElement("div");co.setAttribute("oninput","return;"),ts=typeof co.oninput=="function"}es=ts}else es=!1;ro=es&&(!document.documentMode||9<document.documentMode)}function oo(){nn&&(nn.detachEvent("onpropertychange",fo),un=nn=null)}function fo(e){if(e.propertyName==="value"&&hi(un)){var t=[];uo(t,un,e,Ku(e)),$c(zm,t)}}function Om(e,t,l){e==="focusin"?(oo(),nn=t,un=l,nn.attachEvent("onpropertychange",fo)):e==="focusout"&&oo()}function Dm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hi(un)}function Mm(e,t){if(e==="click")return hi(t)}function _m(e,t){if(e==="input"||e==="change")return hi(t)}function Nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Nm;function sn(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Nu.call(t,n)||!vt(e[n],t[n]))return!1}return!0}function ho(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function go(e,t){var l=ho(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ho(l)}}function mo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function po(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ui(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ui(e.document)}return t}function ls(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Lm=kt&&"documentMode"in document&&11>=document.documentMode,pa=null,as=null,rn=null,ns=!1;function yo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ns||pa==null||pa!==ui(a)||(a=pa,"selectionStart"in a&&ls(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}),rn&&sn(rn,a)||(rn=a,a=tu(as,"onSelect"),0<a.length&&(t=new fi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=pa)))}function Xl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ya={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionrun:Xl("Transition","TransitionRun"),transitionstart:Xl("Transition","TransitionStart"),transitioncancel:Xl("Transition","TransitionCancel"),transitionend:Xl("Transition","TransitionEnd")},is={},vo={};kt&&(vo=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function Ql(e){if(is[e])return is[e];if(!ya[e])return e;var t=ya[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in vo)return is[e]=t[l];return e}var So=Ql("animationend"),bo=Ql("animationiteration"),xo=Ql("animationstart"),Um=Ql("transitionrun"),jm=Ql("transitionstart"),Hm=Ql("transitioncancel"),Eo=Ql("transitionend"),Ro=new Map,us="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(" ");us.push("scrollEnd");function Ht(e,t){Ro.set(e,t),Gl(t,[e])}var gi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},zt=[],va=0,ss=0;function mi(){for(var e=va,t=ss=va=0;t<e;){var l=zt[t];zt[t++]=null;var a=zt[t];zt[t++]=null;var n=zt[t];zt[t++]=null;var u=zt[t];if(zt[t++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}u!==0&&To(l,n,u)}}function pi(e,t,l,a){zt[va++]=e,zt[va++]=t,zt[va++]=l,zt[va++]=a,ss|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function rs(e,t,l,a){return pi(e,t,l,a),yi(e)}function Kl(e,t){return pi(e,null,null,t),yi(e)}function To(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-yt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function yi(e){if(50<Mn)throw Mn=0,yr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sa={};function Bm(e,t,l,a){this.tag=e,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=t,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 St(e,t,l,a){return new Bm(e,t,l,a)}function cs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=St(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ao(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function vi(e,t,l,a,n,u){var f=0;if(a=e,typeof e=="function")cs(e)&&(f=1);else if(typeof e=="string")f=Vp(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=St(31,l,t,n),e.elementType=ce,e.lanes=u,e;case w:return Zl(l.children,n,u,t);case G:f=8,n|=24;break;case q:return e=St(12,l,t,n|2),e.elementType=q,e.lanes=u,e;case I:return e=St(13,l,t,n),e.elementType=I,e.lanes=u,e;case se:return e=St(19,l,t,n),e.elementType=se,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:f=10;break e;case X:f=9;break e;case Q:f=11;break e;case k:f=14;break e;case ge:f=16,a=null;break e}f=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=St(f,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Zl(e,t,l,a){return e=St(7,e,a,t),e.lanes=l,e}function os(e,t,l){return e=St(6,e,null,t),e.lanes=l,e}function Co(e){var t=St(18,null,null,0);return t.stateNode=e,t}function fs(e,t,l){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zo=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var l=zo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ac(t)},zo.set(e,t),t)}return{value:e,source:t,stack:Ac(t)}}var ba=[],xa=0,Si=null,cn=0,Dt=[],Mt=0,yl=null,Yt=1,Gt="";function Wt(e,t){ba[xa++]=cn,ba[xa++]=Si,Si=e,cn=t}function Oo(e,t,l){Dt[Mt++]=Yt,Dt[Mt++]=Gt,Dt[Mt++]=yl,yl=e;var a=Yt;e=Gt;var n=32-yt(a)-1;a&=~(1<<n),l+=1;var u=32-yt(t)+n;if(30<u){var f=n-n%5;u=(a&(1<<f)-1).toString(32),a>>=f,n-=f,Yt=1<<32-yt(t)+n|l<<n|a,Gt=u+e}else Yt=1<<u|l<<n|a,Gt=e}function ds(e){e.return!==null&&(Wt(e,1),Oo(e,1,0))}function hs(e){for(;e===Si;)Si=ba[--xa],ba[xa]=null,cn=ba[--xa],ba[xa]=null;for(;e===yl;)yl=Dt[--Mt],Dt[Mt]=null,Gt=Dt[--Mt],Dt[Mt]=null,Yt=Dt[--Mt],Dt[Mt]=null}function Do(e,t){Dt[Mt++]=Yt,Dt[Mt++]=Gt,Dt[Mt++]=yl,Yt=t.id,Gt=t.overflow,yl=e}var tt=null,Ne=null,ve=!1,vl=null,_t=!1,gs=Error(r(519));function Sl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw on(Ot(t,e)),gs}function Mo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[rt]=a,l){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)he(Nn[l],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),Vc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Qc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||$d(t.textContent,l)?(a.popover!=null&&(he("beforetoggle",t),he("toggle",t)),a.onScroll!=null&&he("scroll",t),a.onScrollEnd!=null&&he("scrollend",t),a.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||Sl(e,!0)}function _o(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:_t=!1;return;case 27:case 3:_t=!0;return;default:tt=tt.return}}function Ea(e){if(e!==tt)return!1;if(!ve)return _o(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Nr(e.type,e.memoizedProps)),l=!l),l&&Ne&&Sl(e),_o(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ne=ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ne=ah(e)}else t===27?(t=Ne,Ll(e.type)?(e=Br,Br=null,Ne=e):Ne=t):Ne=tt?Lt(e.stateNode.nextSibling):null;return!0}function Jl(){Ne=tt=null,ve=!1}function ms(){var e=vl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),vl=null),e}function on(e){vl===null?vl=[e]:vl.push(e)}var ps=x(null),$l=null,It=null;function bl(e,t,l){K(ps,t._currentValue),t._currentValue=l}function Pt(e){e._currentValue=ps.current,j(ps)}function ys(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function vs(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var f=n.child;u=u.firstContext;e:for(;u!==null;){var m=u;u=n;for(var S=0;S<t.length;S++)if(m.context===t[S]){u.lanes|=l,m=u.alternate,m!==null&&(m.lanes|=l),ys(u.return,l,e),a||(f=null);break e}u=m.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(r(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),ys(f,l,e),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===e){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function Ra(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var m=n.type;vt(n.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(n===Te.current){if(f=n.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Bn):e=[Bn])}n=n.return}e!==null&&vs(t,e,l,a),t.flags|=262144}function bi(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){$l=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return No($l,e)}function xi(e,t){return $l===null&&kl(e),No(e,t)}function No(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},It===null){if(e===null)throw Error(r(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return l}var wm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},qm=s.unstable_scheduleCallback,Ym=s.unstable_NormalPriority,Ke={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ss(){return{controller:new wm,data:new Map,refCount:0}}function fn(e){e.refCount--,e.refCount===0&&qm(Ym,function(){e.controller.abort()})}var dn=null,bs=0,Ta=0,Aa=null;function Gm(e,t){if(dn===null){var l=dn=[];bs=0,Ta=Rr(),Aa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return bs++,t.then(Lo,Lo),t}function Lo(){if(--bs===0&&dn!==null){Aa!==null&&(Aa.status="fulfilled");var e=dn;dn=null,Ta=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vm(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Uo=D.S;D.S=function(e,t){vd=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Gm(e,t),Uo!==null&&Uo(e,t)};var Fl=x(null);function xs(){var e=Fl.current;return e!==null?e:_e.pooledCache}function Ei(e,t){t===null?K(Fl,Fl.current):K(Fl,t.pool)}function jo(){var e=xs();return e===null?null:{parent:Ke._currentValue,pool:e}}var Ca=Error(r(460)),Es=Error(r(474)),Ri=Error(r(542)),Ti={then:function(){}};function Ho(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then($t,$t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qo(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qo(e),e}throw Il=t,Ca}}function Wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Il=l,Ca):l}}var Il=null;function wo(){if(Il===null)throw Error(r(459));var e=Il;return Il=null,e}function qo(e){if(e===Ca||e===Ri)throw Error(r(483))}var za=null,hn=0;function Ai(e){var t=hn;return hn+=1,za===null&&(za=[]),Bo(za,e,t)}function gn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ci(e,t){throw t.$$typeof===A?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yo(e){function t(R,E){if(e){var C=R.deletions;C===null?(R.deletions=[E],R.flags|=16):C.push(E)}}function l(R,E){if(!e)return null;for(;E!==null;)t(R,E),E=E.sibling;return null}function a(R){for(var E=new Map;R!==null;)R.key!==null?E.set(R.key,R):E.set(R.index,R),R=R.sibling;return E}function n(R,E){return R=Ft(R,E),R.index=0,R.sibling=null,R}function u(R,E,C){return R.index=C,e?(C=R.alternate,C!==null?(C=C.index,C<E?(R.flags|=67108866,E):C):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function f(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function m(R,E,C,H){return E===null||E.tag!==6?(E=os(C,R.mode,H),E.return=R,E):(E=n(E,C),E.return=R,E)}function S(R,E,C,H){var W=C.type;return W===w?U(R,E,C.props.children,H,C.key):E!==null&&(E.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ge&&Wl(W)===E.type)?(E=n(E,C.props),gn(E,C),E.return=R,E):(E=vi(C.type,C.key,C.props,null,R.mode,H),gn(E,C),E.return=R,E)}function z(R,E,C,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==C.containerInfo||E.stateNode.implementation!==C.implementation?(E=fs(C,R.mode,H),E.return=R,E):(E=n(E,C.children||[]),E.return=R,E)}function U(R,E,C,H,W){return E===null||E.tag!==7?(E=Zl(C,R.mode,H,W),E.return=R,E):(E=n(E,C),E.return=R,E)}function B(R,E,C){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=os(""+E,R.mode,C),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case L:return C=vi(E.type,E.key,E.props,null,R.mode,C),gn(C,E),C.return=R,C;case _:return E=fs(E,R.mode,C),E.return=R,E;case ge:return E=Wl(E),B(R,E,C)}if(oe(E)||le(E))return E=Zl(E,R.mode,C,null),E.return=R,E;if(typeof E.then=="function")return B(R,Ai(E),C);if(E.$$typeof===Y)return B(R,xi(R,E),C);Ci(R,E)}return null}function O(R,E,C,H){var W=E!==null?E.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return W!==null?null:m(R,E,""+C,H);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case L:return C.key===W?S(R,E,C,H):null;case _:return C.key===W?z(R,E,C,H):null;case ge:return C=Wl(C),O(R,E,C,H)}if(oe(C)||le(C))return W!==null?null:U(R,E,C,H,null);if(typeof C.then=="function")return O(R,E,Ai(C),H);if(C.$$typeof===Y)return O(R,E,xi(R,C),H);Ci(R,C)}return null}function M(R,E,C,H,W){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(C)||null,m(E,R,""+H,W);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case L:return R=R.get(H.key===null?C:H.key)||null,S(E,R,H,W);case _:return R=R.get(H.key===null?C:H.key)||null,z(E,R,H,W);case ge:return H=Wl(H),M(R,E,C,H,W)}if(oe(H)||le(H))return R=R.get(C)||null,U(E,R,H,W,null);if(typeof H.then=="function")return M(R,E,C,Ai(H),W);if(H.$$typeof===Y)return M(R,E,C,xi(E,H),W);Ci(E,H)}return null}function J(R,E,C,H){for(var W=null,be=null,$=E,re=E=0,ye=null;$!==null&&re<C.length;re++){$.index>re?(ye=$,$=null):ye=$.sibling;var xe=O(R,$,C[re],H);if(xe===null){$===null&&($=ye);break}e&&$&&xe.alternate===null&&t(R,$),E=u(xe,E,re),be===null?W=xe:be.sibling=xe,be=xe,$=ye}if(re===C.length)return l(R,$),ve&&Wt(R,re),W;if($===null){for(;re<C.length;re++)$=B(R,C[re],H),$!==null&&(E=u($,E,re),be===null?W=$:be.sibling=$,be=$);return ve&&Wt(R,re),W}for($=a($);re<C.length;re++)ye=M($,R,re,C[re],H),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?re:ye.key),E=u(ye,E,re),be===null?W=ye:be.sibling=ye,be=ye);return e&&$.forEach(function(wl){return t(R,wl)}),ve&&Wt(R,re),W}function P(R,E,C,H){if(C==null)throw Error(r(151));for(var W=null,be=null,$=E,re=E=0,ye=null,xe=C.next();$!==null&&!xe.done;re++,xe=C.next()){$.index>re?(ye=$,$=null):ye=$.sibling;var wl=O(R,$,xe.value,H);if(wl===null){$===null&&($=ye);break}e&&$&&wl.alternate===null&&t(R,$),E=u(wl,E,re),be===null?W=wl:be.sibling=wl,be=wl,$=ye}if(xe.done)return l(R,$),ve&&Wt(R,re),W;if($===null){for(;!xe.done;re++,xe=C.next())xe=B(R,xe.value,H),xe!==null&&(E=u(xe,E,re),be===null?W=xe:be.sibling=xe,be=xe);return ve&&Wt(R,re),W}for($=a($);!xe.done;re++,xe=C.next())xe=M($,R,re,xe.value,H),xe!==null&&(e&&xe.alternate!==null&&$.delete(xe.key===null?re:xe.key),E=u(xe,E,re),be===null?W=xe:be.sibling=xe,be=xe);return e&&$.forEach(function(Pp){return t(R,Pp)}),ve&&Wt(R,re),W}function De(R,E,C,H){if(typeof C=="object"&&C!==null&&C.type===w&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case L:e:{for(var W=C.key;E!==null;){if(E.key===W){if(W=C.type,W===w){if(E.tag===7){l(R,E.sibling),H=n(E,C.props.children),H.return=R,R=H;break e}}else if(E.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ge&&Wl(W)===E.type){l(R,E.sibling),H=n(E,C.props),gn(H,C),H.return=R,R=H;break e}l(R,E);break}else t(R,E);E=E.sibling}C.type===w?(H=Zl(C.props.children,R.mode,H,C.key),H.return=R,R=H):(H=vi(C.type,C.key,C.props,null,R.mode,H),gn(H,C),H.return=R,R=H)}return f(R);case _:e:{for(W=C.key;E!==null;){if(E.key===W)if(E.tag===4&&E.stateNode.containerInfo===C.containerInfo&&E.stateNode.implementation===C.implementation){l(R,E.sibling),H=n(E,C.children||[]),H.return=R,R=H;break e}else{l(R,E);break}else t(R,E);E=E.sibling}H=fs(C,R.mode,H),H.return=R,R=H}return f(R);case ge:return C=Wl(C),De(R,E,C,H)}if(oe(C))return J(R,E,C,H);if(le(C)){if(W=le(C),typeof W!="function")throw Error(r(150));return C=W.call(C),P(R,E,C,H)}if(typeof C.then=="function")return De(R,E,Ai(C),H);if(C.$$typeof===Y)return De(R,E,xi(R,C),H);Ci(R,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,E!==null&&E.tag===6?(l(R,E.sibling),H=n(E,C),H.return=R,R=H):(l(R,E),H=os(C,R.mode,H),H.return=R,R=H),f(R)):l(R,E)}return function(R,E,C,H){try{hn=0;var W=De(R,E,C,H);return za=null,W}catch($){if($===Ca||$===Ri)throw $;var be=St(29,$,null,R.mode);return be.lanes=H,be.return=R,be}finally{}}}var Pl=Yo(!0),Go=Yo(!1),xl=!1;function Rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ts(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function El(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Rl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ee&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=yi(e),To(e,null,l),t}return pi(e,a,t,l),yi(e)}function mn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,_c(e,l)}}function As(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=f:u=u.next=f,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Cs=!1;function pn(){if(Cs){var e=Aa;if(e!==null)throw e}}function yn(e,t,l,a){Cs=!1;var n=e.updateQueue;xl=!1;var u=n.firstBaseUpdate,f=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var S=m,z=S.next;S.next=null,f===null?u=z:f.next=z,f=S;var U=e.alternate;U!==null&&(U=U.updateQueue,m=U.lastBaseUpdate,m!==f&&(m===null?U.firstBaseUpdate=z:m.next=z,U.lastBaseUpdate=S))}if(u!==null){var B=n.baseState;f=0,U=z=S=null,m=u;do{var O=m.lane&-536870913,M=O!==m.lane;if(M?(pe&O)===O:(a&O)===O){O!==0&&O===Ta&&(Cs=!0),U!==null&&(U=U.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var J=e,P=m;O=t;var De=l;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){B=J.call(De,B,O);break e}B=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,O=typeof J=="function"?J.call(De,B,O):J,O==null)break e;B=v({},B,O);break e;case 2:xl=!0}}O=m.callback,O!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[O]:M.push(O))}else M={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},U===null?(z=U=M,S=B):U=U.next=M,f|=O;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;M=m,m=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);U===null&&(S=B),n.baseState=S,n.firstBaseUpdate=z,n.lastBaseUpdate=U,u===null&&(n.shared.lanes=0),Ol|=f,e.lanes=f,e.memoizedState=B}}function Vo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Xo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Vo(l[e],t)}var Oa=x(null),zi=x(0);function Qo(e,t){e=rl,K(zi,e),K(Oa,t),rl=e|t.baseLanes}function zs(){K(zi,rl),K(Oa,Oa.current)}function Os(){rl=zi.current,j(Oa),j(zi)}var bt=x(null),Nt=null;function Tl(e){var t=e.alternate;K(Ve,Ve.current&1),K(bt,e),Nt===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(Nt=e)}function Ds(e){K(Ve,Ve.current),K(bt,e),Nt===null&&(Nt=e)}function Ko(e){e.tag===22?(K(Ve,Ve.current),K(bt,e),Nt===null&&(Nt=e)):Al()}function Al(){K(Ve,Ve.current),K(bt,bt.current)}function xt(e){j(bt),Nt===e&&(Nt=null),j(Ve)}var Ve=x(0);function Oi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jr(l)||Hr(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var el=0,ue=null,ze=null,Ze=null,Di=!1,Da=!1,ea=!1,Mi=0,vn=0,Ma=null,Xm=0;function we(){throw Error(r(321))}function Ms(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!vt(e[l],t[l]))return!1;return!0}function _s(e,t,l,a,n,u){return el=u,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Df:Zs,ea=!1,u=l(a,n),ea=!1,Da&&(u=Jo(t,l,a,n)),Zo(e),u}function Zo(e){D.H=xn;var t=ze!==null&&ze.next!==null;if(el=0,Ze=ze=ue=null,Di=!1,vn=0,Ma=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&bi(e)&&(Je=!0))}function Jo(e,t,l,a){ue=e;var n=0;do{if(Da&&(Ma=null),vn=0,Da=!1,25<=n)throw Error(r(301));if(n+=1,Ze=ze=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=Mf,u=t(l,a)}while(Da);return u}function Qm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Sn(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ue.flags|=1024),t}function Ns(){var e=Mi!==0;return Mi=0,e}function Ls(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Us(e){if(Di){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Di=!1}el=0,Ze=ze=ue=null,Da=!1,vn=Mi=0,Ma=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ue.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(ze===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ze===null?ue.memoizedState:Ze.next;if(t!==null)Ze=t,ze=e;else{if(e===null)throw ue.alternate===null?Error(r(467)):Error(r(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ze===null?ue.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function _i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sn(e){var t=vn;return vn+=1,Ma===null&&(Ma=[]),e=Bo(Ma,e,t),t=ue,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Df:Zs),e}function Ni(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sn(e);if(e.$$typeof===Y)return lt(e)}throw Error(r(438,String(e)))}function js(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=_i(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=me;return t.index++,l}function tl(e,t){return typeof t=="function"?t(e):t}function Li(e){var t=Xe();return Hs(t,ze,e)}function Hs(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var f=n.next;n.next=u.next,u.next=f}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var m=f=null,S=null,z=t,U=!1;do{var B=z.lane&-536870913;if(B!==z.lane?(pe&B)===B:(el&B)===B){var O=z.revertLane;if(O===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),B===Ta&&(U=!0);else if((el&O)===O){z=z.next,O===Ta&&(U=!0);continue}else B={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(m=S=B,f=u):S=S.next=B,ue.lanes|=O,Ol|=O;B=z.action,ea&&l(u,B),u=z.hasEagerState?z.eagerState:l(u,B)}else O={lane:B,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(m=S=O,f=u):S=S.next=O,ue.lanes|=B,Ol|=B;z=z.next}while(z!==null&&z!==t);if(S===null?f=u:S.next=m,!vt(u,e.memoizedState)&&(Je=!0,U&&(l=Aa,l!==null)))throw l;e.memoizedState=u,e.baseState=f,e.baseQueue=S,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Bs(e){var t=Xe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do u=e(u,f.action),f=f.next;while(f!==n);vt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function $o(e,t,l){var a=ue,n=Xe(),u=ve;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var f=!vt((ze||n).memoizedState,l);if(f&&(n.memoizedState=l,Je=!0),n=n.queue,Ys(Wo.bind(null,a,n,e),[e]),n.getSnapshot!==t||f||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,_a(9,{destroy:void 0},Fo.bind(null,a,n,l,t),null),_e===null)throw Error(r(349));u||(el&127)!==0||ko(a,t,l)}return l}function ko(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=_i(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Fo(e,t,l,a){t.value=l,t.getSnapshot=a,Io(t)&&Po(e)}function Wo(e,t,l){return l(function(){Io(t)&&Po(e)})}function Io(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!vt(e,l)}catch{return!0}}function Po(e){var t=Kl(e,2);t!==null&>(t,e,2)}function ws(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),ea){gl(!0);try{l()}finally{gl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:e},t}function ef(e,t,l,a){return e.baseState=l,Hs(e,ze,typeof a=="function"?a:tl)}function Km(e,t,l,a,n){if(Hi(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,tf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function tf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,f={};D.T=f;try{var m=l(n,a),S=D.S;S!==null&&S(f,m),lf(e,t,m)}catch(z){qs(e,t,z)}finally{u!==null&&f.types!==null&&(u.types=f.types),D.T=u}}else try{u=l(n,a),lf(e,t,u)}catch(z){qs(e,t,z)}}function lf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){af(e,t,a)},function(a){return qs(e,t,a)}):af(e,t,l)}function af(e,t,l){t.status="fulfilled",t.value=l,nf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,tf(e,l)))}function qs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,nf(t),t=t.next;while(t!==a)}e.action=null}function nf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function uf(e,t){return t}function sf(e,t){if(ve){var l=_e.formState;if(l!==null){e:{var a=ue;if(ve){if(Ne){t:{for(var n=Ne,u=_t;n.nodeType!==8;){if(!u){n=null;break t}if(n=Lt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ne=Lt(n.nextSibling),a=n.data==="F!";break e}}Sl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uf,lastRenderedState:t},l.queue=a,l=Cf.bind(null,ue,a),a.dispatch=l,a=ws(!1),u=Ks.bind(null,ue,!1,a.queue),a=st(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Km.bind(null,ue,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function rf(e){var t=Xe();return cf(t,ze,e)}function cf(e,t,l){if(t=Hs(e,t,uf)[0],e=Li(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Sn(t)}catch(f){throw f===Ca?Ri:f}else a=t;t=Xe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,_a(9,{destroy:void 0},Zm.bind(null,n,l),null)),[a,u,e]}function Zm(e,t){e.action=t}function of(e){var t=Xe(),l=ze;if(l!==null)return cf(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function _a(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=_i(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function ff(){return Xe().memoizedState}function Ui(e,t,l,a){var n=st();ue.flags|=e,n.memoizedState=_a(1|t,{destroy:void 0},l,a===void 0?null:a)}function ji(e,t,l,a){var n=Xe();a=a===void 0?null:a;var u=n.memoizedState.inst;ze!==null&&a!==null&&Ms(a,ze.memoizedState.deps)?n.memoizedState=_a(t,u,l,a):(ue.flags|=e,n.memoizedState=_a(1|t,u,l,a))}function df(e,t){Ui(8390656,8,e,t)}function Ys(e,t){ji(2048,8,e,t)}function Jm(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=_i(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function hf(e){var t=Xe().memoizedState;return Jm({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gf(e,t){return ji(4,2,e,t)}function mf(e,t){return ji(4,4,e,t)}function pf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yf(e,t,l){l=l!=null?l.concat([e]):null,ji(4,4,pf.bind(null,t,e),l)}function Gs(){}function vf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ms(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Sf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ms(t,a[1]))return a[0];if(a=e(),ea){gl(!0);try{e()}finally{gl(!1)}}return l.memoizedState=[a,t],a}function Vs(e,t,l){return l===void 0||(el&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=bd(),ue.lanes|=e,Ol|=e,l)}function bf(e,t,l,a){return vt(l,t)?l:Oa.current!==null?(e=Vs(e,l,a),vt(e,t)||(Je=!0),e):(el&42)===0||(el&1073741824)!==0&&(pe&261930)===0?(Je=!0,e.memoizedState=l):(e=bd(),ue.lanes|=e,Ol|=e,t)}function xf(e,t,l,a,n){var u=V.p;V.p=u!==0&&8>u?u:8;var f=D.T,m={};D.T=m,Ks(e,!1,t,l);try{var S=n(),z=D.S;if(z!==null&&z(m,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var U=Vm(S,a);bn(e,t,U,Tt(e))}else bn(e,t,a,Tt(e))}catch(B){bn(e,t,{then:function(){},status:"rejected",reason:B},Tt())}finally{V.p=u,f!==null&&m.types!==null&&(f.types=m.types),D.T=f}}function $m(){}function Xs(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=Ef(e).queue;xf(e,n,t,F,l===null?$m:function(){return Rf(e),l(a)})}function Ef(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rf(e){var t=Ef(e);t.next===null&&(t=e.alternate.memoizedState),bn(e,t.next.queue,{},Tt())}function Qs(){return lt(Bn)}function Tf(){return Xe().memoizedState}function Af(){return Xe().memoizedState}function km(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Tt();e=El(l);var a=Rl(t,e,l);a!==null&&(gt(a,t,l),mn(a,t,l)),t={cache:Ss()},e.payload=t;return}t=t.return}}function Fm(e,t,l){var a=Tt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Hi(e)?zf(t,l):(l=rs(e,t,l,a),l!==null&&(gt(l,e,a),Of(l,t,a)))}function Cf(e,t,l){var a=Tt();bn(e,t,l,a)}function bn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))zf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,m=u(f,l);if(n.hasEagerState=!0,n.eagerState=m,vt(m,f))return pi(e,t,n,0),_e===null&&mi(),!1}catch{}finally{}if(l=rs(e,t,n,a),l!==null)return gt(l,e,a),Of(l,t,a),!0}return!1}function Ks(e,t,l,a){if(a={lane:2,revertLane:Rr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Hi(e)){if(t)throw Error(r(479))}else t=rs(e,l,a,2),t!==null&>(t,e,2)}function Hi(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function zf(e,t){Da=Di=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Of(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,_c(e,l)}}var xn={readContext:lt,use:Ni,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useInsertionEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useSyncExternalStore:we,useId:we,useHostTransitionStatus:we,useFormState:we,useActionState:we,useOptimistic:we,useMemoCache:we,useCacheRefresh:we};xn.useEffectEvent=we;var Df={readContext:lt,use:Ni,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:df,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ui(4194308,4,pf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){Ui(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(ea){gl(!0);try{e()}finally{gl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var n=l(t);if(ea){gl(!0);try{l(t)}finally{gl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Fm.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=ws(e);var t=e.queue,l=Cf.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Gs,useDeferredValue:function(e,t){var l=st();return Vs(l,e,t)},useTransition:function(){var e=ws(!1);return e=xf.bind(null,ue,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=st();if(ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),_e===null)throw Error(r(349));(pe&127)!==0||ko(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,df(Wo.bind(null,a,u,e),[e]),a.flags|=2048,_a(9,{destroy:void 0},Fo.bind(null,a,u,l,t),null),l},useId:function(){var e=st(),t=_e.identifierPrefix;if(ve){var l=Gt,a=Yt;l=(a&~(1<<32-yt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Mi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Xm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qs,useFormState:sf,useActionState:sf,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ks.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:js,useCacheRefresh:function(){return st().memoizedState=km.bind(null,ue)},useEffectEvent:function(e){var t=st(),l={impl:e};return t.memoizedState=l,function(){if((Ee&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Zs={readContext:lt,use:Ni,useCallback:vf,useContext:lt,useEffect:Ys,useImperativeHandle:yf,useInsertionEffect:gf,useLayoutEffect:mf,useMemo:Sf,useReducer:Li,useRef:ff,useState:function(){return Li(tl)},useDebugValue:Gs,useDeferredValue:function(e,t){var l=Xe();return bf(l,ze.memoizedState,e,t)},useTransition:function(){var e=Li(tl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:$o,useId:Tf,useHostTransitionStatus:Qs,useFormState:rf,useActionState:rf,useOptimistic:function(e,t){var l=Xe();return ef(l,ze,e,t)},useMemoCache:js,useCacheRefresh:Af};Zs.useEffectEvent=hf;var Mf={readContext:lt,use:Ni,useCallback:vf,useContext:lt,useEffect:Ys,useImperativeHandle:yf,useInsertionEffect:gf,useLayoutEffect:mf,useMemo:Sf,useReducer:Bs,useRef:ff,useState:function(){return Bs(tl)},useDebugValue:Gs,useDeferredValue:function(e,t){var l=Xe();return ze===null?Vs(l,e,t):bf(l,ze.memoizedState,e,t)},useTransition:function(){var e=Bs(tl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:$o,useId:Tf,useHostTransitionStatus:Qs,useFormState:of,useActionState:of,useOptimistic:function(e,t){var l=Xe();return ze!==null?ef(l,ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:js,useCacheRefresh:Af};Mf.useEffectEvent=hf;function Js(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:v({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var $s={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Tt(),n=El(a);n.payload=t,l!=null&&(n.callback=l),t=Rl(e,n,a),t!==null&&(gt(t,e,a),mn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Tt(),n=El(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Rl(e,n,a),t!==null&&(gt(t,e,a),mn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Tt(),a=El(l);a.tag=2,t!=null&&(a.callback=t),t=Rl(e,a,l),t!==null&&(gt(t,e,l),mn(t,e,l))}};function _f(e,t,l,a,n,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,f):t.prototype&&t.prototype.isPureReactComponent?!sn(l,a)||!sn(n,u):!0}function Nf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&$s.enqueueReplaceState(t,t.state,null)}function ta(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=v({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Lf(e){gi(e)}function Uf(e){console.error(e)}function jf(e){gi(e)}function Bi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Hf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ks(e,t,l){return l=El(l),l.tag=3,l.payload={element:null},l.callback=function(){Bi(e,t)},l}function Bf(e){return e=El(e),e.tag=3,e}function wf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Hf(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Hf(t,l,a),typeof n!="function"&&(Dl===null?Dl=new Set([this]):Dl.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function Wm(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ra(t,l,n,!0),l=bt.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?ki():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ti?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),br(e,a,n)),!1;case 22:return l.flags|=65536,a===Ti?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),br(e,a,n)),!1}throw Error(r(435,l.tag))}return br(e,a,n),ki(),!1}if(ve)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==gs&&(e=Error(r(422),{cause:a}),on(Ot(e,l)))):(a!==gs&&(t=Error(r(423),{cause:a}),on(Ot(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Ot(a,l),n=ks(e.stateNode,a,n),As(e,n),qe!==4&&(qe=2)),!1;var u=Error(r(520),{cause:a});if(u=Ot(u,l),Dn===null?Dn=[u]:Dn.push(u),qe!==4&&(qe=2),t===null)return!0;a=Ot(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=ks(l.stateNode,a,e),As(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Dl===null||!Dl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Bf(n),wf(n,e,l,a),As(l,n),!1}l=l.return}while(l!==null);return!1}var Fs=Error(r(461)),Je=!1;function at(e,t,l,a){t.child=e===null?Go(t,null,l,a):Pl(t,e.child,l,a)}function qf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var f={};for(var m in a)m!=="ref"&&(f[m]=a[m])}else f=a;return kl(t),a=_s(e,t,l,f,u,n),m=Ns(),e!==null&&!Je?(Ls(e,t,n),ll(e,t,n)):(ve&&m&&ds(t),t.flags|=1,at(e,t,a,n),t.child)}function Yf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!cs(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Gf(e,t,u,a,n)):(e=vi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!nr(e,n)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:sn,l(f,a)&&e.ref===t.ref)return ll(e,t,n)}return t.flags|=1,e=Ft(u,a),e.ref=t.ref,e.return=t,t.child=e}function Gf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(sn(u,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=u,nr(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,ll(e,t,n)}return Ws(e,t,l,a,n)}function Vf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Xf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ei(t,u!==null?u.cachePool:null),u!==null?Qo(t,u):zs(),Ko(t);else return a=t.lanes=536870912,Xf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Ei(t,u.cachePool),Qo(t,u),Al(),t.memoizedState=null):(e!==null&&Ei(t,null),zs(),Al());return at(e,t,n,l),t.child}function En(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xf(e,t,l,a,n){var u=xs();return u=u===null?null:{parent:Ke._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Ei(t,null),zs(),Ko(t),e!==null&&Ra(e,t,a,!0),t.childLanes=n,null}function wi(e,t){return t=Yi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Qf(e,t,l){return Pl(t,e.child,null,l),e=wi(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function Im(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=wi(t,a),t.lanes=536870912,En(null,e);if(Ds(t),(e=Ne)?(e=lh(e,_t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Co(e),l.return=t,t.child=l,tt=t,Ne=null)):e=null,e===null)throw Sl(t);return t.lanes=536870912,null}return wi(t,a)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(Ds(t),n)if(t.flags&256)t.flags&=-257,t=Qf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||Ra(e,t,l,!1),n=(l&e.childLanes)!==0,Je||n){if(a=_e,a!==null&&(f=Nc(a,l),f!==0&&f!==u.retryLane))throw u.retryLane=f,Kl(e,f),gt(a,e,f),Fs;ki(),t=Qf(e,t,l)}else e=u.treeContext,Ne=Lt(f.nextSibling),tt=t,ve=!0,vl=null,_t=!1,e!==null&&Do(t,e),t=wi(t,a),t.flags|=4096;return t}return e=Ft(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ws(e,t,l,a,n){return kl(t),l=_s(e,t,l,a,void 0,n),a=Ns(),e!==null&&!Je?(Ls(e,t,n),ll(e,t,n)):(ve&&a&&ds(t),t.flags|=1,at(e,t,l,n),t.child)}function Kf(e,t,l,a,n,u){return kl(t),t.updateQueue=null,l=Jo(t,a,l,n),Zo(e),a=Ns(),e!==null&&!Je?(Ls(e,t,u),ll(e,t,u)):(ve&&a&&ds(t),t.flags|=1,at(e,t,l,u),t.child)}function Zf(e,t,l,a,n){if(kl(t),t.stateNode===null){var u=Sa,f=l.contextType;typeof f=="object"&&f!==null&&(u=lt(f)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=$s,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Rs(t),f=l.contextType,u.context=typeof f=="object"&&f!==null?lt(f):Sa,u.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Js(t,l,f,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&$s.enqueueReplaceState(u,u.state,null),yn(t,a,u,n),pn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var m=t.memoizedProps,S=ta(l,m);u.props=S;var z=u.context,U=l.contextType;f=Sa,typeof U=="object"&&U!==null&&(f=lt(U));var B=l.getDerivedStateFromProps;U=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m||z!==f)&&Nf(t,u,a,f),xl=!1;var O=t.memoizedState;u.state=O,yn(t,a,u,n),pn(),z=t.memoizedState,m||O!==z||xl?(typeof B=="function"&&(Js(t,l,B,a),z=t.memoizedState),(S=xl||_f(t,l,S,a,O,z,f))?(U||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=f,a=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Ts(e,t),f=t.memoizedProps,U=ta(l,f),u.props=U,B=t.pendingProps,O=u.context,z=l.contextType,S=Sa,typeof z=="object"&&z!==null&&(S=lt(z)),m=l.getDerivedStateFromProps,(z=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==B||O!==S)&&Nf(t,u,a,S),xl=!1,O=t.memoizedState,u.state=O,yn(t,a,u,n),pn();var M=t.memoizedState;f!==B||O!==M||xl||e!==null&&e.dependencies!==null&&bi(e.dependencies)?(typeof m=="function"&&(Js(t,l,m,a),M=t.memoizedState),(U=xl||_f(t,l,U,a,O,M,S)||e!==null&&e.dependencies!==null&&bi(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,M,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,M,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),u.props=a,u.state=M,u.context=S,a=U):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,qi(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Pl(t,e.child,null,n),t.child=Pl(t,null,l,n)):at(e,t,l,n),t.memoizedState=u.state,e=t.child):e=ll(e,t,n),e}function Jf(e,t,l,a){return Jl(),t.flags|=256,at(e,t,l,a),t.child}var Is={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ps(e){return{baseLanes:e,cachePool:jo()}}function er(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Rt),e}function $f(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),f&&(n=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?Tl(t):Al(),(e=Ne)?(e=lh(e,_t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Co(e),l.return=t,t.child=l,tt=t,Ne=null)):e=null,e===null)throw Sl(t);return Hr(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,n?(Al(),n=t.mode,m=Yi({mode:"hidden",children:m},n),a=Zl(a,n,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=Ps(l),a.childLanes=er(e,f,l),t.memoizedState=Is,En(null,a)):(Tl(t),tr(t,m))}var S=e.memoizedState;if(S!==null&&(m=S.dehydrated,m!==null)){if(u)t.flags&256?(Tl(t),t.flags&=-257,t=lr(e,t,l)):t.memoizedState!==null?(Al(),t.child=e.child,t.flags|=128,t=null):(Al(),m=a.fallback,n=t.mode,a=Yi({mode:"visible",children:a.children},n),m=Zl(m,n,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,Pl(t,e.child,null,l),a=t.child,a.memoizedState=Ps(l),a.childLanes=er(e,f,l),t.memoizedState=Is,t=En(null,a));else if(Tl(t),Hr(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var z=f.dgst;f=z,a=Error(r(419)),a.stack="",a.digest=f,on({value:a,source:null,stack:null}),t=lr(e,t,l)}else if(Je||Ra(e,t,l,!1),f=(l&e.childLanes)!==0,Je||f){if(f=_e,f!==null&&(a=Nc(f,l),a!==0&&a!==S.retryLane))throw S.retryLane=a,Kl(e,a),gt(f,e,a),Fs;jr(m)||ki(),t=lr(e,t,l)}else jr(m)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ne=Lt(m.nextSibling),tt=t,ve=!0,vl=null,_t=!1,e!==null&&Do(t,e),t=tr(t,a.children),t.flags|=4096);return t}return n?(Al(),m=a.fallback,n=t.mode,S=e.child,z=S.sibling,a=Ft(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,z!==null?m=Ft(z,m):(m=Zl(m,n,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,En(null,a),a=t.child,m=e.child.memoizedState,m===null?m=Ps(l):(n=m.cachePool,n!==null?(S=Ke._currentValue,n=n.parent!==S?{parent:S,pool:S}:n):n=jo(),m={baseLanes:m.baseLanes|l,cachePool:n}),a.memoizedState=m,a.childLanes=er(e,f,l),t.memoizedState=Is,En(e.child,a)):(Tl(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function tr(e,t){return t=Yi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yi(e,t){return e=St(22,e,null,t),e.lanes=0,e}function lr(e,t,l){return Pl(t,e.child,null,l),e=tr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ys(e.return,t,l)}function ar(e,t,l,a,n,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=u)}function Ff(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var f=Ve.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,K(Ve,f),at(e,t,a,l),a=ve?cn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kf(e,l,t);else if(e.tag===19)kf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Oi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),ar(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Oi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}ar(t,!0,l,null,u,a);break;case"together":ar(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ll(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ol|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ra(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function nr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&bi(e)))}function Pm(e,t,l){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),bl(t,Ke,e.memoizedState.cache),Jl();break;case 27:case 5:Ja(t);break;case 4:ut(t,t.stateNode.containerInfo);break;case 10:bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ds(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Tl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?$f(e,t,l):(Tl(t),e=ll(e,t,l),e!==null?e.sibling:null);Tl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ra(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Ff(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Ve,Ve.current),a)break;return null;case 22:return t.lanes=0,Vf(e,t,l,t.pendingProps);case 24:bl(t,Ke,e.memoizedState.cache)}return ll(e,t,l)}function Wf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!nr(e,l)&&(t.flags&128)===0)return Je=!1,Pm(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,ve&&(t.flags&1048576)!==0&&Oo(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Wl(t.elementType),t.type=e,typeof e=="function")cs(e)?(a=ta(e,a),t.tag=1,t=Zf(null,t,e,a,l)):(t.tag=0,t=Ws(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Q){t.tag=11,t=qf(null,t,e,a,l);break e}else if(n===k){t.tag=14,t=Yf(null,t,e,a,l);break e}}throw t=ne(e)||e,Error(r(306,t,""))}}return t;case 0:return Ws(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ta(a,t.pendingProps),Zf(e,t,a,n,l);case 3:e:{if(ut(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Ts(e,t),yn(t,a,null,l);var f=t.memoizedState;if(a=f.cache,bl(t,Ke,a),a!==u.cache&&vs(t,[Ke],l,!0),pn(),a=f.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Jf(e,t,a,l);break e}else if(a!==n){n=Ot(Error(r(424)),t),on(n),t=Jf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ne=Lt(e.firstChild),tt=t,ve=!0,vl=null,_t=!0,l=Go(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),a===n){t=ll(e,t,l);break e}at(e,t,a,l)}t=t.child}return t;case 26:return qi(e,t),e===null?(l=rh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=lu(fe.current).createElement(l),a[et]=t,a[rt]=e,nt(a,l,e),We(a),t.stateNode=a):t.memoizedState=rh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ja(t),e===null&&ve&&(a=t.stateNode=ih(t.type,t.pendingProps,fe.current),tt=t,_t=!0,n=Ne,Ll(t.type)?(Br=n,Ne=Lt(a.firstChild)):Ne=n),at(e,t,t.pendingProps.children,l),qi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=Ne)&&(a=Dp(a,t.type,t.pendingProps,_t),a!==null?(t.stateNode=a,tt=t,Ne=Lt(a.firstChild),_t=!1,n=!0):n=!1),n||Sl(t)),Ja(t),n=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,a=u.children,Nr(n,u)?a=null:f!==null&&Nr(n,f)&&(t.flags|=32),t.memoizedState!==null&&(n=_s(e,t,Qm,null,null,l),Bn._currentValue=n),qi(e,t),at(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=Ne)&&(l=Mp(l,t.pendingProps,_t),l!==null?(t.stateNode=l,tt=t,Ne=null,e=!0):e=!1),e||Sl(t)),null;case 13:return $f(e,t,l);case 4:return ut(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Pl(t,null,a,l):at(e,t,a,l),t.child;case 11:return qf(e,t,t.type,t.pendingProps,l);case 7:return at(e,t,t.pendingProps,l),t.child;case 8:return at(e,t,t.pendingProps.children,l),t.child;case 12:return at(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,bl(t,t.type,a.value),at(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,kl(t),n=lt(n),a=a(n),t.flags|=1,at(e,t,a,l),t.child;case 14:return Yf(e,t,t.type,t.pendingProps,l);case 15:return Gf(e,t,t.type,t.pendingProps,l);case 19:return Ff(e,t,l);case 31:return Im(e,t,l);case 22:return Vf(e,t,l,t.pendingProps);case 24:return kl(t),a=lt(Ke),e===null?(n=xs(),n===null&&(n=_e,u=Ss(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Rs(t),bl(t,Ke,n)):((e.lanes&l)!==0&&(Ts(e,t),yn(t,null,null,l),pn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),bl(t,Ke,a)):(a=u.cache,bl(t,Ke,a),a!==n.cache&&vs(t,[Ke],l,!0))),at(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function al(e){e.flags|=4}function ir(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Td())e.flags|=8192;else throw Il=Ti,Es}else e.flags&=-16777217}function If(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hh(t))if(Td())e.flags|=8192;else throw Il=Ti,Es}function Gi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dc():536870912,e.lanes|=t,ja|=t)}function Rn(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function ep(e,t,l){var a=t.pendingProps;switch(hs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pt(Ke),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ea(t)?al(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ms())),Le(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(al(t),u!==null?(Le(t),If(t,u)):(Le(t),ir(t,n,null,a,l))):u?u!==e.memoizedState?(al(t),Le(t),If(t,u)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&al(t),Le(t),ir(t,n,e,a,l)),null;case 27:if(In(t),l=fe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Le(t),null}e=Z.current,Ea(t)?Mo(t):(e=ih(n,a,l),t.stateNode=e,al(t))}return Le(t),null;case 5:if(In(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Le(t),null}if(u=Z.current,Ea(t))Mo(t);else{var f=lu(fe.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}u[et]=t,u[rt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(nt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&al(t)}}return Le(t),ir(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,Ea(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||$d(e.nodeValue,l)),e||Sl(t,!0)}else e=lu(e).createTextNode(a),e[et]=t,t.stateNode=e}return Le(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ea(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[et]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else l=ms(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Le(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ea(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[et]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),n=!1}else n=ms(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Gi(t,t.updateQueue),Le(t),null);case 4:return Ge(),e===null&&zr(t.stateNode.containerInfo),Le(t),null;case 10:return Pt(t.type),Le(t),null;case 19:if(j(Ve),a=t.memoizedState,a===null)return Le(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Rn(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Oi(e),u!==null){for(t.flags|=128,Rn(a,!1),e=u.updateQueue,t.updateQueue=e,Gi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ao(l,e),l=l.sibling;return K(Ve,Ve.current&1|2),ve&&Wt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&mt()>Zi&&(t.flags|=128,n=!0,Rn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Oi(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Gi(t,e),Rn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ve)return Le(t),null}else 2*mt()-a.renderingStartTime>Zi&&l!==536870912&&(t.flags|=128,n=!0,Rn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=mt(),e.sibling=null,l=Ve.current,K(Ve,n?l&1|2:l&1),ve&&Wt(t,a.treeForkCount),e):(Le(t),null);case 22:case 23:return xt(t),Os(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),l=t.updateQueue,l!==null&&Gi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&j(Fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Pt(Ke),Le(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function tp(e,t){switch(hs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pt(Ke),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return In(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Ve),null;case 4:return Ge(),null;case 10:return Pt(t.type),null;case 22:case 23:return xt(t),Os(),e!==null&&j(Fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pt(Ke),null;case 25:return null;default:return null}}function Pf(e,t){switch(hs(t),t.tag){case 3:Pt(Ke),Ge();break;case 26:case 27:case 5:In(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:j(Ve);break;case 10:Pt(t.type);break;case 22:case 23:xt(t),Os(),e!==null&&j(Fl);break;case 24:Pt(Ke)}}function Tn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,f=l.inst;a=u(),f.destroy=a}l=l.next}while(l!==n)}}catch(m){Ce(t,t.return,m)}}function Cl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,n=t;var S=l,z=m;try{z()}catch(U){Ce(n,S,U)}}}a=a.next}while(a!==u)}}catch(U){Ce(t,t.return,U)}}function ed(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Xo(t,l)}catch(a){Ce(e,e.return,a)}}}function td(e,t,l){l.props=ta(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ce(e,t,a)}}function An(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ce(e,t,n)}}function Vt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ce(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ce(e,t,n)}else l.current=null}function ld(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ce(e,e.return,n)}}function ur(e,t,l){try{var a=e.stateNode;Rp(a,e.type,l,t),a[rt]=t}catch(n){Ce(e,e.return,n)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ll(e.type)||e.tag===4}function sr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ll(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=$t));else if(a!==4&&(a===27&&Ll(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(rr(e,t,l),e=e.sibling;e!==null;)rr(e,t,l),e=e.sibling}function Vi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Ll(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Vi(e,t,l),e=e.sibling;e!==null;)Vi(e,t,l),e=e.sibling}function nd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,a,l),t[et]=e,t[rt]=l}catch(u){Ce(e,e.return,u)}}var nl=!1,$e=!1,cr=!1,id=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function lp(e,t){if(e=e.containerInfo,Mr=cu,e=po(e),ls(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var f=0,m=-1,S=-1,z=0,U=0,B=e,O=null;t:for(;;){for(var M;B!==l||n!==0&&B.nodeType!==3||(m=f+n),B!==u||a!==0&&B.nodeType!==3||(S=f+a),B.nodeType===3&&(f+=B.nodeValue.length),(M=B.firstChild)!==null;)O=B,B=M;for(;;){if(B===e)break t;if(O===l&&++z===n&&(m=f),O===u&&++U===a&&(S=f),(M=B.nextSibling)!==null)break;B=O,O=B.parentNode}B=M}l=m===-1||S===-1?null:{start:m,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(_r={focusedElem:e,selectionRange:l},cu=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var J=ta(l.type,n);e=a.getSnapshotBeforeUpdate(J,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){Ce(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ur(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ur(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function ud(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ul(e,l),a&4&&Tn(5,l);break;case 1:if(ul(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Ce(l,l.return,f)}else{var n=ta(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ce(l,l.return,f)}}a&64&&ed(l),a&512&&An(l,l.return);break;case 3:if(ul(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Xo(e,t)}catch(f){Ce(l,l.return,f)}}break;case 27:t===null&&a&4&&nd(l);case 26:case 5:ul(e,l),t===null&&a&4&&ld(l),a&512&&An(l,l.return);break;case 12:ul(e,l);break;case 31:ul(e,l),a&4&&cd(e,l);break;case 13:ul(e,l),a&4&&od(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=fp.bind(null,l),_p(e,l))));break;case 22:if(a=l.memoizedState!==null||nl,!a){t=t!==null&&t.memoizedState!==null||$e,n=nl;var u=$e;nl=a,($e=t)&&!u?sl(e,l,(l.subtreeFlags&8772)!==0):ul(e,l),nl=n,$e=u}break;case 30:break;default:ul(e,l)}}function sd(e){var t=e.alternate;t!==null&&(e.alternate=null,sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&qu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,ot=!1;function il(e,t,l){for(l=l.child;l!==null;)rd(e,t,l),l=l.sibling}function rd(e,t,l){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount($a,l)}catch{}switch(l.tag){case 26:$e||Vt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:$e||Vt(l,t);var a=Ue,n=ot;Ll(l.type)&&(Ue=l.stateNode,ot=!1),il(e,t,l),Un(l.stateNode),Ue=a,ot=n;break;case 5:$e||Vt(l,t);case 6:if(a=Ue,n=ot,Ue=null,il(e,t,l),Ue=a,ot=n,Ue!==null)if(ot)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(u){Ce(l,t,u)}else try{Ue.removeChild(l.stateNode)}catch(u){Ce(l,t,u)}break;case 18:Ue!==null&&(ot?(e=Ue,eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Xa(e)):eh(Ue,l.stateNode));break;case 4:a=Ue,n=ot,Ue=l.stateNode.containerInfo,ot=!0,il(e,t,l),Ue=a,ot=n;break;case 0:case 11:case 14:case 15:Cl(2,l,t),$e||Cl(4,l,t),il(e,t,l);break;case 1:$e||(Vt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&td(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:$e=(a=$e)||l.memoizedState!==null,il(e,t,l),$e=a;break;default:il(e,t,l)}}function cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xa(e)}catch(l){Ce(t,t.return,l)}}}function od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xa(e)}catch(l){Ce(t,t.return,l)}}function ap(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new id),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new id),t;default:throw Error(r(435,e.tag))}}function Xi(e,t){var l=ap(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=dp.bind(null,e,a);a.then(n,n)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(Ll(m.type)){Ue=m.stateNode,ot=!1;break e}break;case 5:Ue=m.stateNode,ot=!1;break e;case 3:case 4:Ue=m.stateNode.containerInfo,ot=!0;break e}m=m.return}if(Ue===null)throw Error(r(160));rd(u,f,n),Ue=null,ot=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fd(t,e),t=t.sibling}var Bt=null;function fd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),a&4&&(Cl(3,e,e.return),Tn(3,e),Cl(5,e,e.return));break;case 1:ft(t,e),dt(e),a&512&&($e||l===null||Vt(l,l.return)),a&64&&nl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Bt;if(ft(t,e),dt(e),a&512&&($e||l===null||Vt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Wa]||u[et]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),nt(u,a,l),u[et]=e,We(u),a=u;break e;case"link":var f=fh("link","href",n).get(a+(l.href||""));if(f){for(var m=0;m<f.length;m++)if(u=f[m],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(m,1);break t}}u=n.createElement(a),nt(u,a,l),n.head.appendChild(u);break;case"meta":if(f=fh("meta","content",n).get(a+(l.content||""))){for(m=0;m<f.length;m++)if(u=f[m],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(m,1);break t}}u=n.createElement(a),nt(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[et]=e,We(u),a=u}e.stateNode=a}else dh(n,e.type,e.stateNode);else e.stateNode=oh(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?dh(n,e.type,e.stateNode):oh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ur(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),dt(e),a&512&&($e||l===null||Vt(l,l.return)),l!==null&&a&4&&ur(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),dt(e),a&512&&($e||l===null||Vt(l,l.return)),e.flags&32){n=e.stateNode;try{da(n,"")}catch(J){Ce(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,ur(e,n,l!==null?l.memoizedProps:n)),a&1024&&(cr=!0);break;case 6:if(ft(t,e),dt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){Ce(e,e.return,J)}}break;case 3:if(iu=null,n=Bt,Bt=au(t.containerInfo),ft(t,e),Bt=n,dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Xa(t.containerInfo)}catch(J){Ce(e,e.return,J)}cr&&(cr=!1,dd(e));break;case 4:a=Bt,Bt=au(e.stateNode.containerInfo),ft(t,e),dt(e),Bt=a;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xi(e,a)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ki=mt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xi(e,a)));break;case 22:n=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,z=nl,U=$e;if(nl=z||n,$e=U||S,ft(t,e),$e=U,nl=z,dt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||S||nl||$e||la(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(u=S.stateNode,n)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=S.stateNode;var B=S.memoizedProps.style,O=B!=null&&B.hasOwnProperty("display")?B.display:null;m.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(J){Ce(S,S.return,J)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch(J){Ce(S,S.return,J)}}}else if(t.tag===18){if(l===null){S=t;try{var M=S.stateNode;n?th(M,!0):th(S.stateNode,!1)}catch(J){Ce(S,S.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Xi(e,l))));break;case 19:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Xi(e,a)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ad(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=sr(e);Vi(e,u,n);break;case 5:var f=l.stateNode;l.flags&32&&(da(f,""),l.flags&=-33);var m=sr(e);Vi(e,m,f);break;case 3:case 4:var S=l.stateNode.containerInfo,z=sr(e);rr(e,z,S);break;default:throw Error(r(161))}}catch(U){Ce(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ul(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ud(e,t.alternate,t),t=t.sibling}function la(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Cl(4,t,t.return),la(t);break;case 1:Vt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&td(t,t.return,l),la(t);break;case 27:Un(t.stateNode);case 26:case 5:Vt(t,t.return),la(t);break;case 22:t.memoizedState===null&&la(t);break;case 30:la(t);break;default:la(t)}e=e.sibling}}function sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:sl(n,u,l),Tn(4,u);break;case 1:if(sl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){Ce(a,a.return,z)}if(a=u,n=a.updateQueue,n!==null){var m=a.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Vo(S[n],m)}catch(z){Ce(a,a.return,z)}}l&&f&64&&ed(u),An(u,u.return);break;case 27:nd(u);case 26:case 5:sl(n,u,l),l&&a===null&&f&4&&ld(u),An(u,u.return);break;case 12:sl(n,u,l);break;case 31:sl(n,u,l),l&&f&4&&cd(n,u);break;case 13:sl(n,u,l),l&&f&4&&od(n,u);break;case 22:u.memoizedState===null&&sl(n,u,l),An(u,u.return);break;case 30:break;default:sl(n,u,l)}t=t.sibling}}function or(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&fn(l))}function fr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fn(e))}function wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hd(e,t,l,a),t=t.sibling}function hd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:wt(e,t,l,a),n&2048&&Tn(9,t);break;case 1:wt(e,t,l,a);break;case 3:wt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fn(e)));break;case 12:if(n&2048){wt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,m=u.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ce(t,t.return,S)}}else wt(e,t,l,a);break;case 31:wt(e,t,l,a);break;case 13:wt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?wt(e,t,l,a):Cn(e,t):u._visibility&2?wt(e,t,l,a):(u._visibility|=2,Na(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&or(f,t);break;case 24:wt(e,t,l,a),n&2048&&fr(t.alternate,t);break;default:wt(e,t,l,a)}}function Na(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,m=l,S=a,z=f.flags;switch(f.tag){case 0:case 11:case 15:Na(u,f,m,S,n),Tn(8,f);break;case 23:break;case 22:var U=f.stateNode;f.memoizedState!==null?U._visibility&2?Na(u,f,m,S,n):Cn(u,f):(U._visibility|=2,Na(u,f,m,S,n)),n&&z&2048&&or(f.alternate,f);break;case 24:Na(u,f,m,S,n),n&&z&2048&&fr(f.alternate,f);break;default:Na(u,f,m,S,n)}t=t.sibling}}function Cn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Cn(l,a),n&2048&&or(a.alternate,a);break;case 24:Cn(l,a),n&2048&&fr(a.alternate,a);break;default:Cn(l,a)}t=t.sibling}}var zn=8192;function La(e,t,l){if(e.subtreeFlags&zn)for(e=e.child;e!==null;)gd(e,t,l),e=e.sibling}function gd(e,t,l){switch(e.tag){case 26:La(e,t,l),e.flags&zn&&e.memoizedState!==null&&Xp(l,Bt,e.memoizedState,e.memoizedProps);break;case 5:La(e,t,l);break;case 3:case 4:var a=Bt;Bt=au(e.stateNode.containerInfo),La(e,t,l),Bt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=zn,zn=16777216,La(e,t,l),zn=a):La(e,t,l));break;default:La(e,t,l)}}function md(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function On(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,yd(a,e)}md(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pd(e),e=e.sibling}function pd(e){switch(e.tag){case 0:case 11:case 15:On(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:On(e);break;case 12:On(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qi(e)):On(e);break;default:On(e)}}function Qi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,yd(a,e)}md(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),Qi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Qi(t));break;default:Qi(t)}e=e.sibling}}function yd(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:Cl(8,l,t);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:fn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,u=a.return;if(sd(a),a===l){Ie=null;break e}if(n!==null){n.return=u,Ie=n;break e}Ie=u}}}var np={getCacheForType:function(e){var t=lt(Ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return lt(Ke).controller.signal}},ip=typeof WeakMap=="function"?WeakMap:Map,Ee=0,_e=null,de=null,pe=0,Ae=0,Et=null,zl=!1,Ua=!1,dr=!1,rl=0,qe=0,Ol=0,aa=0,hr=0,Rt=0,ja=0,Dn=null,ht=null,gr=!1,Ki=0,vd=0,Zi=1/0,Ji=null,Dl=null,Fe=0,Ml=null,Ha=null,cl=0,mr=0,pr=null,Sd=null,Mn=0,yr=null;function Tt(){return(Ee&2)!==0&&pe!==0?pe&-pe:D.T!==null?Rr():Lc()}function bd(){if(Rt===0)if((pe&536870912)===0||ve){var e=ti;ti<<=1,(ti&3932160)===0&&(ti=262144),Rt=e}else Rt=536870912;return e=bt.current,e!==null&&(e.flags|=32),Rt}function gt(e,t,l){(e===_e&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(Ba(e,0),_l(e,pe,Rt,!1)),Fa(e,l),((Ee&2)===0||e!==_e)&&(e===_e&&((Ee&2)===0&&(aa|=l),qe===4&&_l(e,pe,Rt,!1)),Xt(e))}function xd(e,t,l){if((Ee&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ka(e,t),n=a?rp(e,t):Sr(e,t,!0),u=a;do{if(n===0){Ua&&!a&&_l(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!up(l)){n=Sr(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;n=Dn;var S=m.current.memoizedState.isDehydrated;if(S&&(Ba(m,f).flags|=256),f=Sr(m,f,!1),f!==2){if(dr&&!S){m.errorRecoveryDisabledLanes|=u,aa|=u,n=4;break e}u=ht,ht=n,u!==null&&(ht===null?ht=u:ht.push.apply(ht,u))}n=f}if(u=!1,n!==2)continue}}if(n===1){Ba(e,0),_l(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:_l(a,t,Rt,!zl);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Ki+300-mt(),10<n)){if(_l(a,t,Rt,!zl),ai(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=Id(Ed.bind(null,a,l,ht,Ji,gr,t,Rt,aa,ja,zl,u,"Throttled",-0,0),n);break e}Ed(a,l,ht,Ji,gr,t,Rt,aa,ja,zl,u,null,-0,0)}}break}while(!0);Xt(e)}function Ed(e,t,l,a,n,u,f,m,S,z,U,B,O,M){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},gd(t,u,B);var J=(u&62914560)===u?Ki-mt():(u&4194048)===u?vd-mt():0;if(J=Qp(B,J),J!==null){cl=u,e.cancelPendingCommit=J(Md.bind(null,e,t,u,l,a,n,f,m,S,U,B,null,O,M)),_l(e,u,f,!z);return}}Md(e,t,u,l,a,n,f,m,S)}function up(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!vt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _l(e,t,l,a){t&=~hr,t&=~aa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-yt(n),f=1<<u;a[u]=-1,n&=~f}l!==0&&Mc(e,l,t)}function $i(){return(Ee&6)===0?(_n(0),!1):!0}function vr(){if(de!==null){if(Ae===0)var e=de.return;else e=de,It=$l=null,Us(e),za=null,hn=0,e=de;for(;e!==null;)Pf(e.alternate,e),e=e.return;de=null}}function Ba(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Cp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,vr(),_e=e,de=l=Ft(e.current,null),pe=t,Ae=0,Et=null,zl=!1,Ua=ka(e,t),dr=!1,ja=Rt=hr=aa=Ol=qe=0,ht=Dn=null,gr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-yt(a),u=1<<n;t|=e[n],a&=~u}return rl=t,mi(),l}function Rd(e,t){ue=null,D.H=xn,t===Ca||t===Ri?(t=wo(),Ae=3):t===Es?(t=wo(),Ae=4):Ae=t===Fs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,de===null&&(qe=1,Bi(e,Ot(t,e.current)))}function Td(){var e=bt.current;return e===null?!0:(pe&4194048)===pe?Nt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Nt:!1}function Ad(){var e=D.H;return D.H=xn,e===null?xn:e}function Cd(){var e=D.A;return D.A=np,e}function ki(){qe=4,zl||(pe&4194048)!==pe&&bt.current!==null||(Ua=!0),(Ol&134217727)===0&&(aa&134217727)===0||_e===null||_l(_e,pe,Rt,!1)}function Sr(e,t,l){var a=Ee;Ee|=2;var n=Ad(),u=Cd();(_e!==e||pe!==t)&&(Ji=null,Ba(e,t)),t=!1;var f=qe;e:do try{if(Ae!==0&&de!==null){var m=de,S=Et;switch(Ae){case 8:vr(),f=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var z=Ae;if(Ae=0,Et=null,wa(e,m,S,z),l&&Ua){f=0;break e}break;default:z=Ae,Ae=0,Et=null,wa(e,m,S,z)}}sp(),f=qe;break}catch(U){Rd(e,U)}while(!0);return t&&e.shellSuspendCounter++,It=$l=null,Ee=a,D.H=n,D.A=u,de===null&&(_e=null,pe=0,mi()),f}function sp(){for(;de!==null;)zd(de)}function rp(e,t){var l=Ee;Ee|=2;var a=Ad(),n=Cd();_e!==e||pe!==t?(Ji=null,Zi=mt()+500,Ba(e,t)):Ua=ka(e,t);e:do try{if(Ae!==0&&de!==null){t=de;var u=Et;t:switch(Ae){case 1:Ae=0,Et=null,wa(e,t,u,1);break;case 2:case 9:if(Ho(u)){Ae=0,Et=null,Od(t);break}t=function(){Ae!==2&&Ae!==9||_e!==e||(Ae=7),Xt(e)},u.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:Ho(u)?(Ae=0,Et=null,Od(t)):(Ae=0,Et=null,wa(e,t,u,7));break;case 5:var f=null;switch(de.tag){case 26:f=de.memoizedState;case 5:case 27:var m=de;if(f?hh(f):m.stateNode.complete){Ae=0,Et=null;var S=m.sibling;if(S!==null)de=S;else{var z=m.return;z!==null?(de=z,Fi(z)):de=null}break t}}Ae=0,Et=null,wa(e,t,u,5);break;case 6:Ae=0,Et=null,wa(e,t,u,6);break;case 8:vr(),qe=6;break e;default:throw Error(r(462))}}cp();break}catch(U){Rd(e,U)}while(!0);return It=$l=null,D.H=a,D.A=n,Ee=l,de!==null?0:(_e=null,pe=0,mi(),qe)}function cp(){for(;de!==null&&!Ng();)zd(de)}function zd(e){var t=Wf(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?Fi(e):de=t}function Od(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kf(l,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=Kf(l,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Us(t);default:Pf(l,t),t=de=Ao(t,rl),t=Wf(l,t,rl)}e.memoizedProps=e.pendingProps,t===null?Fi(e):de=t}function wa(e,t,l,a){It=$l=null,Us(t),za=null,hn=0;var n=t.return;try{if(Wm(e,n,t,l,pe)){qe=1,Bi(e,Ot(l,e.current)),de=null;return}}catch(u){if(n!==null)throw de=n,u;qe=1,Bi(e,Ot(l,e.current)),de=null;return}t.flags&32768?(ve||a===1?e=!0:Ua||(pe&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Dd(t,e)):Fi(t)}function Fi(e){var t=e;do{if((t.flags&32768)!==0){Dd(t,zl);return}e=t.return;var l=ep(t.alternate,t,rl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);qe===0&&(qe=5)}function Dd(e,t){do{var l=tp(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);qe=6,de=null}function Md(e,t,l,a,n,u,f,m,S){e.cancelPendingCommit=null;do Wi();while(Fe!==0);if((Ee&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=ss,Vg(e,l,u,f,m,S),e===_e&&(de=_e=null,pe=0),Ha=t,Ml=e,cl=l,mr=u,pr=n,Sd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hp(Pn,function(){return jd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=V.p,V.p=2,f=Ee,Ee|=4;try{lp(e,t,l)}finally{Ee=f,V.p=n,D.T=a}}Fe=1,_d(),Nd(),Ld()}}function _d(){if(Fe===1){Fe=0;var e=Ml,t=Ha,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Ee;Ee|=4;try{fd(t,e);var u=_r,f=po(e.containerInfo),m=u.focusedElem,S=u.selectionRange;if(f!==m&&m&&m.ownerDocument&&mo(m.ownerDocument.documentElement,m)){if(S!==null&&ls(m)){var z=S.start,U=S.end;if(U===void 0&&(U=z),"selectionStart"in m)m.selectionStart=z,m.selectionEnd=Math.min(U,m.value.length);else{var B=m.ownerDocument||document,O=B&&B.defaultView||window;if(O.getSelection){var M=O.getSelection(),J=m.textContent.length,P=Math.min(S.start,J),De=S.end===void 0?P:Math.min(S.end,J);!M.extend&&P>De&&(f=De,De=P,P=f);var R=go(m,P),E=go(m,De);if(R&&E&&(M.rangeCount!==1||M.anchorNode!==R.node||M.anchorOffset!==R.offset||M.focusNode!==E.node||M.focusOffset!==E.offset)){var C=B.createRange();C.setStart(R.node,R.offset),M.removeAllRanges(),P>De?(M.addRange(C),M.extend(E.node,E.offset)):(C.setEnd(E.node,E.offset),M.addRange(C))}}}}for(B=[],M=m;M=M.parentNode;)M.nodeType===1&&B.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<B.length;m++){var H=B[m];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}cu=!!Mr,_r=Mr=null}finally{Ee=n,V.p=a,D.T=l}}e.current=t,Fe=2}}function Nd(){if(Fe===2){Fe=0;var e=Ml,t=Ha,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Ee;Ee|=4;try{ud(e,t.alternate,t)}finally{Ee=n,V.p=a,D.T=l}}Fe=3}}function Ld(){if(Fe===4||Fe===3){Fe=0,Lg();var e=Ml,t=Ha,l=cl,a=Sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Ha=Ml=null,Ud(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Dl=null),Bu(l),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=V.p,V.p=2,D.T=null;try{for(var u=e.onRecoverableError,f=0;f<a.length;f++){var m=a[f];u(m.value,{componentStack:m.stack})}}finally{D.T=t,V.p=n}}(cl&3)!==0&&Wi(),Xt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===yr?Mn++:(Mn=0,yr=e):Mn=0,_n(0)}}function Ud(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fn(t)))}function Wi(){return _d(),Nd(),Ld(),jd()}function jd(){if(Fe!==5)return!1;var e=Ml,t=mr;mr=0;var l=Bu(cl),a=D.T,n=V.p;try{V.p=32>l?32:l,D.T=null,l=pr,pr=null;var u=Ml,f=cl;if(Fe=0,Ha=Ml=null,cl=0,(Ee&6)!==0)throw Error(r(331));var m=Ee;if(Ee|=4,pd(u.current),hd(u,u.current,f,l),Ee=m,_n(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot($a,u)}catch{}return!0}finally{V.p=n,D.T=a,Ud(e,t)}}function Hd(e,t,l){t=Ot(l,t),t=ks(e.stateNode,t,2),e=Rl(e,t,2),e!==null&&(Fa(e,2),Xt(e))}function Ce(e,t,l){if(e.tag===3)Hd(e,e,l);else for(;t!==null;){if(t.tag===3){Hd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Dl===null||!Dl.has(a))){e=Ot(l,e),l=Bf(2),a=Rl(t,l,2),a!==null&&(wf(l,a,t,e),Fa(a,2),Xt(a));break}}t=t.return}}function br(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new ip;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(dr=!0,n.add(l),e=op.bind(null,e,t,l),t.then(e,e))}function op(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,_e===e&&(pe&l)===l&&(qe===4||qe===3&&(pe&62914560)===pe&&300>mt()-Ki?(Ee&2)===0&&Ba(e,0):hr|=l,ja===pe&&(ja=0)),Xt(e)}function Bd(e,t){t===0&&(t=Dc()),e=Kl(e,t),e!==null&&(Fa(e,t),Xt(e))}function fp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Bd(e,l)}function dp(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Bd(e,l)}function hp(e,t){return Lu(e,t)}var Ii=null,qa=null,xr=!1,Pi=!1,Er=!1,Nl=0;function Xt(e){e!==qa&&e.next===null&&(qa===null?Ii=qa=e:qa=qa.next=e),Pi=!0,xr||(xr=!0,mp())}function _n(e,t){if(!Er&&Pi){Er=!0;do for(var l=!1,a=Ii;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var f=a.suspendedLanes,m=a.pingedLanes;u=(1<<31-yt(42|e)+1)-1,u&=n&~(f&~m),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Gd(a,u))}else u=pe,u=ai(a,a===_e?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||ka(a,u)||(l=!0,Gd(a,u));a=a.next}while(l);Er=!1}}function gp(){wd()}function wd(){Pi=xr=!1;var e=0;Nl!==0&&Ap()&&(e=Nl);for(var t=mt(),l=null,a=Ii;a!==null;){var n=a.next,u=qd(a,t);u===0?(a.next=null,l===null?Ii=n:l.next=n,n===null&&(qa=l)):(l=a,(e!==0||(u&3)!==0)&&(Pi=!0)),a=n}Fe!==0&&Fe!==5||_n(e),Nl!==0&&(Nl=0)}function qd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-yt(u),m=1<<f,S=n[f];S===-1?((m&l)===0||(m&a)!==0)&&(n[f]=Gg(m,t)):S<=t&&(e.expiredLanes|=m),u&=~m}if(t=_e,l=pe,l=ai(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Uu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Uu(a),Bu(l)){case 2:case 8:l=zc;break;case 32:l=Pn;break;case 268435456:l=Oc;break;default:l=Pn}return a=Yd.bind(null,e),l=Lu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Uu(a),e.callbackPriority=2,e.callbackNode=null,2}function Yd(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Wi()&&e.callbackNode!==l)return null;var a=pe;return a=ai(e,e===_e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(xd(e,a,t),qd(e,mt()),e.callbackNode!=null&&e.callbackNode===l?Yd.bind(null,e):null)}function Gd(e,t){if(Wi())return null;xd(e,t,!0)}function mp(){zp(function(){(Ee&6)!==0?Lu(Cc,gp):wd()})}function Rr(){if(Nl===0){var e=Ta;e===0&&(e=ei,ei<<=1,(ei&261888)===0&&(ei=256)),Nl=e}return Nl}function Vd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:si(""+e)}function Xd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function pp(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Vd((n[rt]||null).action),f=a.submitter;f&&(t=(t=f[rt]||null)?Vd(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var m=new fi("action","action",null,a,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Nl!==0){var S=f?Xd(n,f):new FormData(n);Xs(l,{pending:!0,data:S,method:n.method,action:u},null,S)}}else typeof u=="function"&&(m.preventDefault(),S=f?Xd(n,f):new FormData(n),Xs(l,{pending:!0,data:S,method:n.method,action:u},u,S))},currentTarget:n}]})}}for(var Tr=0;Tr<us.length;Tr++){var Ar=us[Tr],yp=Ar.toLowerCase(),vp=Ar[0].toUpperCase()+Ar.slice(1);Ht(yp,"on"+vp)}Ht(So,"onAnimationEnd"),Ht(bo,"onAnimationIteration"),Ht(xo,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Um,"onTransitionRun"),Ht(jm,"onTransitionStart"),Ht(Hm,"onTransitionCancel"),Ht(Eo,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("onPointerLeave",["pointerout","pointerover"]),Gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="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(" "),Sp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function Qd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var f=a.length-1;0<=f;f--){var m=a[f],S=m.instance,z=m.currentTarget;if(m=m.listener,S!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=z;try{u(n)}catch(U){gi(U)}n.currentTarget=null,u=S}else for(f=0;f<a.length;f++){if(m=a[f],S=m.instance,z=m.currentTarget,m=m.listener,S!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=z;try{u(n)}catch(U){gi(U)}n.currentTarget=null,u=S}}}}function he(e,t){var l=t[wu];l===void 0&&(l=t[wu]=new Set);var a=e+"__bubble";l.has(a)||(Kd(t,e,2,!1),l.add(a))}function Cr(e,t,l){var a=0;t&&(a|=4),Kd(l,e,a,t)}var eu="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[eu]){e[eu]=!0,Hc.forEach(function(l){l!=="selectionchange"&&(Sp.has(l)||Cr(l,!1,e),Cr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[eu]||(t[eu]=!0,Cr("selectionchange",!1,t))}}function Kd(e,t,l,a){switch(bh(t)){case 2:var n=Jp;break;case 8:n=$p;break;default:n=Vr}l=n.bind(null,t,l,e),n=void 0,!Ju||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Or(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var m=a.stateNode.containerInfo;if(m===n)break;if(f===4)for(f=a.return;f!==null;){var S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;m!==null;){if(f=sa(m),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){a=u=f;continue e}m=m.parentNode}}a=a.return}$c(function(){var z=u,U=Ku(l),B=[];e:{var O=Ro.get(e);if(O!==void 0){var M=fi,J=e;switch(e){case"keypress":if(ci(l)===0)break e;case"keydown":case"keyup":M=dm;break;case"focusin":J="focus",M=Wu;break;case"focusout":J="blur",M=Wu;break;case"beforeblur":case"afterblur":M=Wu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Wc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=em;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=mm;break;case So:case bo:case xo:M=am;break;case Eo:M=ym;break;case"scroll":case"scrollend":M=Ig;break;case"wheel":M=Sm;break;case"copy":case"cut":case"paste":M=im;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Pc;break;case"toggle":case"beforetoggle":M=xm}var P=(t&4)!==0,De=!P&&(e==="scroll"||e==="scrollend"),R=P?O!==null?O+"Capture":null:O;P=[];for(var E=z,C;E!==null;){var H=E;if(C=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||C===null||R===null||(H=Pa(E,R),H!=null&&P.push(Ln(E,H,C))),De)break;E=E.return}0<P.length&&(O=new M(O,J,null,l,U),B.push({event:O,listeners:P}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",O&&l!==Qu&&(J=l.relatedTarget||l.fromElement)&&(sa(J)||J[ua]))break e;if((M||O)&&(O=U.window===U?U:(O=U.ownerDocument)?O.defaultView||O.parentWindow:window,M?(J=l.relatedTarget||l.toElement,M=z,J=J?sa(J):null,J!==null&&(De=d(J),P=J.tag,J!==De||P!==5&&P!==27&&P!==6)&&(J=null)):(M=null,J=z),M!==J)){if(P=Wc,H="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(P=Pc,H="onPointerLeave",R="onPointerEnter",E="pointer"),De=M==null?O:Ia(M),C=J==null?O:Ia(J),O=new P(H,E+"leave",M,l,U),O.target=De,O.relatedTarget=C,H=null,sa(U)===z&&(P=new P(R,E+"enter",J,l,U),P.target=C,P.relatedTarget=De,H=P),De=H,M&&J)t:{for(P=bp,R=M,E=J,C=0,H=R;H;H=P(H))C++;H=0;for(var W=E;W;W=P(W))H++;for(;0<C-H;)R=P(R),C--;for(;0<H-C;)E=P(E),H--;for(;C--;){if(R===E||E!==null&&R===E.alternate){P=R;break t}R=P(R),E=P(E)}P=null}else P=null;M!==null&&Zd(B,O,M,P,!1),J!==null&&De!==null&&Zd(B,De,J,P,!0)}}e:{if(O=z?Ia(z):window,M=O.nodeName&&O.nodeName.toLowerCase(),M==="select"||M==="input"&&O.type==="file")var be=so;else if(io(O))if(ro)be=_m;else{be=Dm;var $=Om}else M=O.nodeName,!M||M.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?z&&Xu(z.elementType)&&(be=so):be=Mm;if(be&&(be=be(e,z))){uo(B,be,l,U);break e}$&&$(e,O,z),e==="focusout"&&z&&O.type==="number"&&z.memoizedProps.value!=null&&Vu(O,"number",O.value)}switch($=z?Ia(z):window,e){case"focusin":(io($)||$.contentEditable==="true")&&(pa=$,as=z,rn=null);break;case"focusout":rn=as=pa=null;break;case"mousedown":ns=!0;break;case"contextmenu":case"mouseup":case"dragend":ns=!1,yo(B,l,U);break;case"selectionchange":if(Lm)break;case"keydown":case"keyup":yo(B,l,U)}var re;if(Pu)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ma?ao(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(eo&&l.locale!=="ko"&&(ma||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ma&&(re=kc()):(pl=U,$u="value"in pl?pl.value:pl.textContent,ma=!0)),$=tu(z,ye),0<$.length&&(ye=new Ic(ye,e,null,l,U),B.push({event:ye,listeners:$}),re?ye.data=re:(re=no(l),re!==null&&(ye.data=re)))),(re=Rm?Tm(e,l):Am(e,l))&&(ye=tu(z,"onBeforeInput"),0<ye.length&&($=new Ic("onBeforeInput","beforeinput",null,l,U),B.push({event:$,listeners:ye}),$.data=re)),pp(B,e,z,l,U)}Qd(B,t)})}function Ln(e,t,l){return{instance:e,listener:t,currentTarget:l}}function tu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Pa(e,l),n!=null&&a.unshift(Ln(e,n,u)),n=Pa(e,t),n!=null&&a.push(Ln(e,n,u))),e.tag===3)return a;e=e.return}return[]}function bp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zd(e,t,l,a,n){for(var u=t._reactName,f=[];l!==null&&l!==a;){var m=l,S=m.alternate,z=m.stateNode;if(m=m.tag,S!==null&&S===a)break;m!==5&&m!==26&&m!==27||z===null||(S=z,n?(z=Pa(l,u),z!=null&&f.unshift(Ln(l,z,S))):n||(z=Pa(l,u),z!=null&&f.push(Ln(l,z,S)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var xp=/\r\n?/g,Ep=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(xp,`
|
|
49
|
+
`).replace(Ep,"")}function $d(e,t){return t=Jd(t),Jd(e)===t}function Oe(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||da(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&da(e,""+a);break;case"className":ii(e,"class",a);break;case"tabIndex":ii(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,l,a);break;case"style":Zc(e,a,u);break;case"data":if(t!=="object"){ii(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=si(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.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 u=="function"&&(l==="formAction"?(t!=="input"&&Oe(e,t,"name",n.name,n,null),Oe(e,t,"formEncType",n.formEncType,n,null),Oe(e,t,"formMethod",n.formMethod,n,null),Oe(e,t,"formTarget",n.formTarget,n,null)):(Oe(e,t,"encType",n.encType,n,null),Oe(e,t,"method",n.method,n,null),Oe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=si(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$t);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}l=si(""+a),e.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"?e.setAttribute(l,""+a):e.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"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":he("beforetoggle",e),he("toggle",e),ni(e,"popover",a);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ni(e,"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=Fg.get(l)||l,ni(e,l,a))}}function Dr(e,t,l,a,n,u){switch(l){case"style":Zc(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?da(e,a):(typeof a=="number"||typeof a=="bigint")&&da(e,""+a);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[rt]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):ni(e,l,a)}}}function nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];if(f!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Oe(e,t,u,f,l,null)}}n&&Oe(e,t,"srcSet",l.srcSet,l,null),a&&Oe(e,t,"src",l.src,l,null);return;case"input":he("invalid",e);var m=u=f=n=null,S=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var U=l[a];if(U!=null)switch(a){case"name":n=U;break;case"type":f=U;break;case"checked":S=U;break;case"defaultChecked":z=U;break;case"value":u=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:Oe(e,t,a,U,l,null)}}Vc(e,u,m,S,z,f,n,!1);return;case"select":he("invalid",e),a=f=u=null;for(n in l)if(l.hasOwnProperty(n)&&(m=l[n],m!=null))switch(n){case"value":u=m;break;case"defaultValue":f=m;break;case"multiple":a=m;default:Oe(e,t,n,m,l,null)}t=u,l=f,e.multiple=!!a,t!=null?fa(e,!!a,t,!1):l!=null&&fa(e,!!a,l,!0);return;case"textarea":he("invalid",e),u=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(m=l[f],m!=null))switch(f){case"value":a=m;break;case"defaultValue":n=m;break;case"children":u=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:Oe(e,t,f,m,l,null)}Qc(e,a,n,u);return;case"option":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Oe(e,t,S,a,l,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)he(Nn[a],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);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,t));default:Oe(e,t,z,a,l,null)}return;default:if(Xu(t)){for(U in l)l.hasOwnProperty(U)&&(a=l[U],a!==void 0&&Dr(e,t,U,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Oe(e,t,m,a,l,null))}function Rp(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,f=null,m=null,S=null,z=null,U=null;for(M in l){var B=l[M];if(l.hasOwnProperty(M)&&B!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":S=B;default:a.hasOwnProperty(M)||Oe(e,t,M,null,a,B)}}for(var O in a){var M=a[O];if(B=l[O],a.hasOwnProperty(O)&&(M!=null||B!=null))switch(O){case"type":u=M;break;case"name":n=M;break;case"checked":z=M;break;case"defaultChecked":U=M;break;case"value":f=M;break;case"defaultValue":m=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:M!==B&&Oe(e,t,O,M,a,B)}}Gu(e,f,m,S,z,U,u,n);return;case"select":M=f=m=O=null;for(u in l)if(S=l[u],l.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":M=S;default:a.hasOwnProperty(u)||Oe(e,t,u,null,a,S)}for(n in a)if(u=a[n],S=l[n],a.hasOwnProperty(n)&&(u!=null||S!=null))switch(n){case"value":O=u;break;case"defaultValue":m=u;break;case"multiple":f=u;default:u!==S&&Oe(e,t,n,u,a,S)}t=m,l=f,a=M,O!=null?fa(e,!!l,O,!1):!!a!=!!l&&(t!=null?fa(e,!!l,t,!0):fa(e,!!l,l?[]:"",!1));return;case"textarea":M=O=null;for(m in l)if(n=l[m],l.hasOwnProperty(m)&&n!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Oe(e,t,m,null,a,n)}for(f in a)if(n=a[f],u=l[f],a.hasOwnProperty(f)&&(n!=null||u!=null))switch(f){case"value":O=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Oe(e,t,f,n,a,u)}Xc(e,O,M);return;case"option":for(var J in l)if(O=l[J],l.hasOwnProperty(J)&&O!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Oe(e,t,J,null,a,O)}for(S in a)if(O=a[S],M=l[S],a.hasOwnProperty(S)&&O!==M&&(O!=null||M!=null))switch(S){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Oe(e,t,S,O,a,M)}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 P in l)O=l[P],l.hasOwnProperty(P)&&O!=null&&!a.hasOwnProperty(P)&&Oe(e,t,P,null,a,O);for(z in a)if(O=a[z],M=l[z],a.hasOwnProperty(z)&&O!==M&&(O!=null||M!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:Oe(e,t,z,O,a,M)}return;default:if(Xu(t)){for(var De in l)O=l[De],l.hasOwnProperty(De)&&O!==void 0&&!a.hasOwnProperty(De)&&Dr(e,t,De,void 0,a,O);for(U in a)O=a[U],M=l[U],!a.hasOwnProperty(U)||O===M||O===void 0&&M===void 0||Dr(e,t,U,O,a,M);return}}for(var R in l)O=l[R],l.hasOwnProperty(R)&&O!=null&&!a.hasOwnProperty(R)&&Oe(e,t,R,null,a,O);for(B in a)O=a[B],M=l[B],!a.hasOwnProperty(B)||O===M||O==null&&M==null||Oe(e,t,B,O,a,M)}function kd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,f=n.initiatorType,m=n.duration;if(u&&m&&kd(f)){for(f=0,m=n.responseEnd,a+=1;a<l.length;a++){var S=l[a],z=S.startTime;if(z>m)break;var U=S.transferSize,B=S.initiatorType;U&&kd(B)&&(S=S.responseEnd,f+=U*(S<m?1:(m-z)/(S-z)))}if(--a,t+=8*(u+f)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mr=null,_r=null;function lu(e){return e.nodeType===9?e:e.ownerDocument}function Fd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lr=null;function Ap(){var e=window.event;return e&&e.type==="popstate"?e===Lr?!1:(Lr=e,!0):(Lr=null,!1)}var Id=typeof setTimeout=="function"?setTimeout:void 0,Cp=typeof clearTimeout=="function"?clearTimeout:void 0,Pd=typeof Promise=="function"?Promise:void 0,zp=typeof queueMicrotask=="function"?queueMicrotask:typeof Pd<"u"?function(e){return Pd.resolve(null).then(e).catch(Op)}:Id;function Op(e){setTimeout(function(){throw e})}function Ll(e){return e==="head"}function eh(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Xa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Un(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Un(l);for(var u=l.firstChild;u;){var f=u.nextSibling,m=u.nodeName;u[Wa]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=f}}else l==="body"&&Un(e.ownerDocument.body);l=n}while(l);Xa(t)}function th(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Ur(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ur(l),qu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Dp(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Wa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function Mp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Lt(e.nextSibling),e===null))return null;return e}function lh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function jr(e){return e.data==="$?"||e.data==="$~"}function Hr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _p(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Br=null;function ah(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Lt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function nh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function ih(e,t,l){switch(t=lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Un(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);qu(e)}var Ut=new Map,uh=new Set;function au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ol=V.d;V.d={f:Np,r:Lp,D:Up,C:jp,L:Hp,m:Bp,X:qp,S:wp,M:Yp};function Np(){var e=ol.f(),t=$i();return e||t}function Lp(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?Rf(t):ol.r(e)}var Ya=typeof document>"u"?null:document;function sh(e,t,l){var a=Ya;if(a&&typeof t=="string"&&t){var n=Ct(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),uh.has(n)||(uh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function Up(e){ol.D(e),sh("dns-prefetch",e,null)}function jp(e,t){ol.C(e,t),sh("preconnect",e,t)}function Hp(e,t,l){ol.L(e,t,l);var a=Ya;if(a&&e&&t){var n='link[rel="preload"][as="'+Ct(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ct(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ct(l.imageSizes)+'"]')):n+='[href="'+Ct(e)+'"]';var u=n;switch(t){case"style":u=Ga(e);break;case"script":u=Va(e)}Ut.has(u)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(jn(u))||t==="script"&&a.querySelector(Hn(u))||(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function Bp(e,t){ol.m(e,t);var l=Ya;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ct(a)+'"][href="'+Ct(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Va(e)}if(!Ut.has(u)&&(e=v({rel:"modulepreload",href:e},t),Ut.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Hn(u)))return}a=l.createElement("link"),nt(a,"link",e),We(a),l.head.appendChild(a)}}}function wp(e,t,l){ol.S(e,t,l);var a=Ya;if(a&&e){var n=ca(a).hoistableStyles,u=Ga(e);t=t||"default";var f=n.get(u);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(jn(u)))m.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(u))&&wr(e,l);var S=f=a.createElement("link");We(S),nt(S,"link",e),S._p=new Promise(function(z,U){S.onload=z,S.onerror=U}),S.addEventListener("load",function(){m.loading|=1}),S.addEventListener("error",function(){m.loading|=2}),m.loading|=4,nu(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:m},n.set(u,f)}}}function qp(e,t){ol.X(e,t);var l=Ya;if(l&&e){var a=ca(l).hoistableScripts,n=Va(e),u=a.get(n);u||(u=l.querySelector(Hn(n)),u||(e=v({src:e,async:!0},t),(t=Ut.get(n))&&qr(e,t),u=l.createElement("script"),We(u),nt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Yp(e,t){ol.M(e,t);var l=Ya;if(l&&e){var a=ca(l).hoistableScripts,n=Va(e),u=a.get(n);u||(u=l.querySelector(Hn(n)),u||(e=v({src:e,async:!0,type:"module"},t),(t=Ut.get(n))&&qr(e,t),u=l.createElement("script"),We(u),nt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function rh(e,t,l,a){var n=(n=fe.current)?au(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ga(l.href),l=ca(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ga(l.href);var u=ca(n).hoistableStyles,f=u.get(e);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=n.querySelector(jn(e)))&&!u._p&&(f.instance=u,f.state.loading=5),Ut.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ut.set(e,l),u||Gp(n,e,l,f.state))),t&&a===null)throw Error(r(528,""));return f}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Va(l),l=ca(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ga(e){return'href="'+Ct(e)+'"'}function jn(e){return'link[rel="stylesheet"]['+e+"]"}function ch(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Gp(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",l),We(t),e.head.appendChild(t))}function Va(e){return'[src="'+Ct(e)+'"]'}function Hn(e){return"script[async]"+e}function oh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ct(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),nt(a,"style",n),nu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ga(l.href);var u=e.querySelector(jn(n));if(u)return t.state.loading|=4,t.instance=u,We(u),u;a=ch(l),(n=Ut.get(n))&&wr(a,n),u=(e.ownerDocument||e).createElement("link"),We(u);var f=u;return f._p=new Promise(function(m,S){f.onload=m,f.onerror=S}),nt(u,"link",a),t.state.loading|=4,nu(u,l.precedence,e),t.instance=u;case"script":return u=Va(l.src),(n=e.querySelector(Hn(u)))?(t.instance=n,We(n),n):(a=l,(n=Ut.get(u))&&(a=v({},l),qr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),nt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,nu(a,l.precedence,e));return t.instance}function nu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,f=0;f<a.length;f++){var m=a[f];if(m.dataset.precedence===t)u=m;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var iu=null;function fh(e,t,l){if(iu===null){var a=new Map,n=iu=new Map;n.set(l,a)}else n=iu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Wa]||u[et]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var m=a.get(f);m?m.push(u):a.set(f,[u])}}return a}function dh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Vp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Xp(e,t,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 n=Ga(a.href),u=t.querySelector(jn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=uu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,We(u);return}u=t.ownerDocument||t,a=ch(a),(n=Ut.get(n))&&wr(a,n),u=u.createElement("link"),We(u);var f=u;f._p=new Promise(function(m,S){f.onload=m,f.onerror=S}),nt(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=uu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Yr=0;function Qp(e,t){return e.stylesheets&&e.count===0&&ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Yr===0&&(Yr=62500*Tp());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Yr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var su=null;function ru(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,su=new Map,t.forEach(Kp,e),su=null,uu.call(e))}function Kp(e,t){if(!(t.state.loading&4)){var l=su.get(e);if(l)var a=l.get(null);else{l=new Map,su.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var f=n[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=t.instance,f=n.getAttribute("data-precedence"),u=l.get(f)||a,u===a&&l.set(null,n),l.set(f,n),this.count++,a=uu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Bn={$$typeof:Y,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Zp(e,t,l,a,n,u,f,m,S){this.tag=1,this.containerInfo=e,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=ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.hiddenUpdates=ju(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function gh(e,t,l,a,n,u,f,m,S,z,U,B){return e=new Zp(e,t,l,f,S,z,U,B,m),t=1,u===!0&&(t|=24),u=St(3,null,null,t),e.current=u,u.stateNode=e,t=Ss(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Rs(u),e}function mh(e){return e?(e=Sa,e):Sa}function ph(e,t,l,a,n,u){n=mh(n),a.context===null?a.context=n:a.pendingContext=n,a=El(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Rl(e,a,t),l!==null&&(gt(l,e,t),mn(l,e,t))}function yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Gr(e,t){yh(e,t),(e=e.alternate)&&yh(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=Kl(e,67108864);t!==null&>(t,e,67108864),Gr(e,67108864)}}function Sh(e){if(e.tag===13||e.tag===31){var t=Tt();t=Hu(t);var l=Kl(e,t);l!==null&>(l,e,t),Gr(e,t)}}var cu=!0;function Jp(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=2,Vr(e,t,l,a)}finally{V.p=u,D.T=n}}function $p(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=8,Vr(e,t,l,a)}finally{V.p=u,D.T=n}}function Vr(e,t,l,a){if(cu){var n=Xr(a);if(n===null)Or(e,t,a,ou,l),xh(e,a);else if(Fp(n,e,t,l,a))a.stopPropagation();else if(xh(e,a),t&4&&-1<kp.indexOf(e)){for(;n!==null;){var u=ra(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=Yl(u.pendingLanes);if(f!==0){var m=u;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var S=1<<31-yt(f);m.entanglements[1]|=S,f&=~S}Xt(u),(Ee&6)===0&&(Zi=mt()+500,_n(0))}}break;case 31:case 13:m=Kl(u,2),m!==null&>(m,u,2),$i(),Gr(u,2)}if(u=Xr(a),u===null&&Or(e,t,a,ou,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Or(e,t,a,null,l)}}function Xr(e){return e=Ku(e),Qr(e)}var ou=null;function Qr(e){if(ou=null,e=sa(e),e!==null){var t=d(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ou=e,null}function bh(e){switch(e){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(Ug()){case Cc:return 2;case zc:return 8;case Pn:case jg:return 32;case Oc:return 268435456;default:return 32}default:return 32}}var Kr=!1,Ul=null,jl=null,Hl=null,wn=new Map,qn=new Map,Bl=[],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 xh(e,t){switch(e){case"focusin":case"focusout":Ul=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qn.delete(t.pointerId)}}function Yn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ra(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Fp(e,t,l,a,n){switch(t){case"focusin":return Ul=Yn(Ul,e,t,l,a,n),!0;case"dragenter":return jl=Yn(jl,e,t,l,a,n),!0;case"mouseover":return Hl=Yn(Hl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return wn.set(u,Yn(wn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,qn.set(u,Yn(qn.get(u)||null,e,t,l,a,n)),!0}return!1}function Eh(e){var t=sa(e.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Uc(e.priority,function(){Sh(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Uc(e.priority,function(){Sh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Xr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Qu=a,l.target.dispatchEvent(a),Qu=null}else return t=ra(l),t!==null&&vh(t),e.blockedOn=l,!1;t.shift()}return!0}function Rh(e,t,l){fu(e)&&l.delete(t)}function Wp(){Kr=!1,Ul!==null&&fu(Ul)&&(Ul=null),jl!==null&&fu(jl)&&(jl=null),Hl!==null&&fu(Hl)&&(Hl=null),wn.forEach(Rh),qn.forEach(Rh)}function du(e,t){e.blockedOn===t&&(e.blockedOn=null,Kr||(Kr=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Wp)))}var hu=null;function Th(e){hu!==e&&(hu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){hu===e&&(hu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Qr(a||l)===null)continue;break}var u=ra(l);u!==null&&(e.splice(t,3),t-=3,Xs(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Xa(e){function t(S){return du(S,e)}Ul!==null&&du(Ul,e),jl!==null&&du(jl,e),Hl!==null&&du(Hl,e),wn.forEach(t),qn.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)Eh(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],f=n[rt]||null;if(typeof u=="function")f||Th(l);else if(f){var m=null;if(u&&u.hasAttribute("formAction")){if(n=u,f=u[rt]||null)m=f.formAction;else if(Qr(n)!==null)continue}else m=f.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),Th(l)}}}function Ah(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Zr(e){this._internalRoot=e}gu.prototype.render=Zr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Tt();ph(l,a,e,t,null,null)},gu.prototype.unmount=Zr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),$i(),t[ua]=null}};function gu(e){this._internalRoot=e}gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&Eh(e)}};var Ch=i.version;if(Ch!=="19.2.5")throw Error(r(527,Ch,"19.2.5"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Ip={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mu.isDisabled&&mu.supportsFiber)try{$a=mu.inject(Ip),pt=mu}catch{}}return Vn.createRoot=function(e,t){if(!o(e))throw Error(r(299));var l=!1,a="",n=Lf,u=Uf,f=jf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=gh(e,1,!1,null,null,l,a,null,n,u,f,Ah),e[ua]=t.current,zr(e),new Zr(t)},Vn.hydrateRoot=function(e,t,l){if(!o(e))throw Error(r(299));var a=!1,n="",u=Lf,f=Uf,m=jf,S=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=gh(e,1,!0,t,l??null,a,n,S,u,f,m,Ah),t.context=mh(null),l=t.current,a=Tt(),a=Hu(a),n=El(a),n.callback=null,Rl(l,n,a),l=a,t.current.lanes=l,Fa(t,l),Xt(t),e[ua]=t.current,zr(e),new gu(t)},Vn.version="19.2.5",Vn}var Hh;function ry(){if(Hh)return kr.exports;Hh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),kr.exports=sy(),kr.exports}var cy=ry();/**
|
|
50
|
+
* react-router v7.16.0
|
|
51
51
|
*
|
|
52
52
|
* Copyright (c) Remix Software Inc.
|
|
53
53
|
*
|
|
@@ -55,9 +55,9 @@ Error generating stack: `+a.message+`
|
|
|
55
55
|
* LICENSE.md file in the root directory of this source tree.
|
|
56
56
|
*
|
|
57
57
|
* @license MIT
|
|
58
|
-
*/var Bh="popstate";function wh(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function oy(s={}){function i(r,o){var g;let d=(g=o.state)==null?void 0:g.masked,{pathname:h,search:p,hash:y}=d||r.location;return rc("",{pathname:h,search:p,hash:y},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:Jn(o)}return dy(i,c,null,s)}function He(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Kt(s,i){if(!s){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function fy(){return Math.random().toString(36).substring(2,10)}function qh(s,i){return{usr:s.state,key:s.key,idx:i,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function rc(s,i,c=null,r,o){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof i=="string"?Ka(i):i,state:c,key:i&&i.key||r||fy(),unstable_mask:o}}function Jn({pathname:s="/",search:i="",hash:c=""}){return i&&i!=="?"&&(s+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Ka(s){let i={};if(s){let c=s.indexOf("#");c>=0&&(i.hash=s.substring(c),s=s.substring(0,c));let r=s.indexOf("?");r>=0&&(i.search=s.substring(r),s=s.substring(0,r)),s&&(i.pathname=s)}return i}function dy(s,i,c,r={}){let{window:o=document.defaultView,v5Compat:d=!1}=r,h=o.history,p="POP",y=null,g=b();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function b(){return(h.state||{idx:null}).idx}function v(){p="POP";let G=b(),Y=G==null?null:G-g;g=G,y&&y({action:p,location:w.location,delta:Y})}function C(G,Y){p="PUSH";let X=wh(G)?G:rc(w.location,G,Y);g=b()+1;let q=qh(X,g),Q=w.createHref(X.unstable_mask||X);try{h.pushState(q,"",Q)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(Q)}d&&y&&y({action:p,location:w.location,delta:1})}function L(G,Y){p="REPLACE";let X=wh(G)?G:rc(w.location,G,Y);g=b();let q=qh(X,g),Q=w.createHref(X.unstable_mask||X);h.replaceState(q,"",Q),d&&y&&y({action:p,location:w.location,delta:0})}function _(G){return hy(G)}let w={get action(){return p},get location(){return s(o,h)},listen(G){if(y)throw new Error("A history only accepts one active listener");return o.addEventListener(Bh,v),y=G,()=>{o.removeEventListener(Bh,v),y=null}},createHref(G){return i(o,G)},createURL:_,encodeLocation(G){let Y=_(G);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:C,replace:L,go(G){return h.go(G)}};return w}function hy(s,i=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),He(c,"No window.location.(origin|href) available to create URL");let r=typeof s=="string"?s:Jn(s);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function ug(s,i,c="/"){return gy(s,i,c,!1)}function gy(s,i,c,r){let o=typeof i=="string"?Ka(i):i,d=dl(o.pathname||"/",c);if(d==null)return null;let h=sg(s);my(h);let p=null;for(let y=0;p==null&&y<h.length;++y){let g=zy(d);p=Ty(h[y],g,r)}return p}function sg(s,i=[],c=[],r="",o=!1){let d=(h,p,y=o,g)=>{let b={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&y)return;He(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let v=qt([r,b.relativePath]),C=c.concat(b);h.children&&h.children.length>0&&(He(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),sg(h.children,i,C,v,y)),!(h.path==null&&!h.index)&&i.push({path:v,score:Ey(v,h.index),routesMeta:C})};return s.forEach((h,p)=>{var y;if(h.path===""||!((y=h.path)!=null&&y.includes("?")))d(h,p);else for(let g of rg(h.path))d(h,p,!0,g)}),i}function rg(s){let i=s.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 h=rg(r.join("/")),p=[];return p.push(...h.map(y=>y===""?d:[d,y].join("/"))),o&&p.push(...h),p.map(y=>s.startsWith("/")&&y===""?"/":y)}function my(s){s.sort((i,c)=>i.score!==c.score?c.score-i.score:Ry(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var py=/^:[\w-]+$/,yy=3,vy=2,Sy=1,by=10,xy=-2,Yh=s=>s==="*";function Ey(s,i){let c=s.split("/"),r=c.length;return c.some(Yh)&&(r+=xy),i&&(r+=vy),c.filter(o=>!Yh(o)).reduce((o,d)=>o+(py.test(d)?yy:d===""?Sy:by),r)}function Ry(s,i){return s.length===i.length&&s.slice(0,-1).every((r,o)=>r===i[o])?s[s.length-1]-i[i.length-1]:0}function Ty(s,i,c=!1){let{routesMeta:r}=s,o={},d="/",h=[];for(let p=0;p<r.length;++p){let y=r[p],g=p===r.length-1,b=d==="/"?i:i.slice(d.length)||"/",v=bu({path:y.relativePath,caseSensitive:y.caseSensitive,end:g},b),C=y.route;if(!v&&g&&c&&!r[r.length-1].route.index&&(v=bu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!v)return null;Object.assign(o,v.params),h.push({params:o,pathname:qt([d,v.pathname]),pathnameBase:My(qt([d,v.pathnameBase])),route:C}),v.pathnameBase!=="/"&&(d=qt([d,v.pathnameBase]))}return h}function bu(s,i){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=Cy(s.path,s.caseSensitive,s.end),o=i.match(c);if(!o)return null;let d=o[0],h=d.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((g,{paramName:b,isOptional:v},C)=>{if(b==="*"){let _=p[C]||"";h=d.slice(0,d.length-_.length).replace(/(.)\/+$/,"$1")}const L=p[C];return v&&!L?g[b]=void 0:g[b]=(L||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:h,pattern:s}}function Cy(s,i=!1,c=!0){Kt(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],o="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,y,g,b)=>{if(r.push({paramName:p,isOptional:y!=null}),y){let v=b.charAt(g+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),o+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":s!==""&&s!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function zy(s){try{return s.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Kt(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),s}}function dl(s,i){if(i==="/")return s;if(!s.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}var Ay=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Oy(s,i="/"){let{pathname:c,search:r="",hash:o=""}=typeof s=="string"?Ka(s):s,d;return c?(c=og(c),c.startsWith("/")?d=Gh(c.substring(1),"/"):d=Gh(c,i)):d=i,{pathname:d,search:_y(r),hash:Ny(o)}}function Gh(s,i){let c=xu(i).split("/");return s.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function Pr(s,i,c,r){return`Cannot include a '${s}' 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 Dy(s){return s.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function cg(s){let i=Dy(s);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function mc(s,i,c,r=!1){let o;typeof s=="string"?o=Ka(s):(o={...s},He(!o.pathname||!o.pathname.includes("?"),Pr("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),Pr("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),Pr("#","search","hash",o)));let d=s===""||o.pathname==="",h=d?"/":o.pathname,p;if(h==null)p=c;else{let v=i.length-1;if(!r&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),v-=1;o.pathname=C.join("/")}p=v>=0?i[v]:"/"}let y=Oy(o,p),g=h&&h!=="/"&&h.endsWith("/"),b=(d||h===".")&&c.endsWith("/");return!y.pathname.endsWith("/")&&(g||b)&&(y.pathname+="/"),y}var og=s=>s.replace(/\/\/+/g,"/"),qt=s=>og(s.join("/")),xu=s=>s.replace(/\/+$/,""),My=s=>xu(s).replace(/^\/*/,"/"),_y=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Ny=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,Ly=class{constructor(s,i,c,r=!1){this.status=s,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Uy(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function jy(s){let i=s.map(c=>c.route.path).filter(Boolean);return qt(i)||"/"}var fg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dg(s,i){let c=s;if(typeof c!="string"||!Ay.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,o=!1;if(fg)try{let d=new URL(window.location.href),h=c.startsWith("//")?new URL(d.protocol+c):new URL(c),p=dl(h.pathname,i);h.origin===d.origin&&p!=null?c=p+h.search+h.hash:o=!0}catch{Kt(!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}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var hg=["POST","PUT","PATCH","DELETE"];new Set(hg);var Hy=["GET",...hg];new Set(Hy);var Za=T.createContext(null);Za.displayName="DataRouter";var zu=T.createContext(null);zu.displayName="DataRouterState";var gg=T.createContext(!1);function By(){return T.useContext(gg)}var mg=T.createContext({isTransitioning:!1});mg.displayName="ViewTransition";var wy=T.createContext(new Map);wy.displayName="Fetchers";var qy=T.createContext(null);qy.displayName="Await";var jt=T.createContext(null);jt.displayName="Navigation";var kn=T.createContext(null);kn.displayName="Location";var Zt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Zt.displayName="Route";var pc=T.createContext(null);pc.displayName="RouteError";var pg="REACT_ROUTER_ERROR",Yy="REDIRECT",Gy="ROUTE_ERROR_RESPONSE";function Vy(s){if(s.startsWith(`${pg}:${Yy}:{`))try{let i=JSON.parse(s.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 Xy(s){if(s.startsWith(`${pg}:${Gy}:{`))try{let i=JSON.parse(s.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Ly(i.status,i.statusText,i.data)}catch{}}function Qy(s,{relative:i}={}){He(Fn(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=T.useContext(jt),{hash:o,pathname:d,search:h}=Wn(s,{relative:i}),p=d;return c!=="/"&&(p=d==="/"?c:qt([c,d])),r.createHref({pathname:p,search:h,hash:o})}function Fn(){return T.useContext(kn)!=null}function hl(){return He(Fn(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(kn).location}var yg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vg(s){T.useContext(jt).static||T.useLayoutEffect(s)}function yc(){let{isDataRoute:s}=T.useContext(Zt);return s?n0():Ky()}function Ky(){He(Fn(),"useNavigate() may be used only in the context of a <Router> component.");let s=T.useContext(Za),{basename:i,navigator:c}=T.useContext(jt),{matches:r}=T.useContext(Zt),{pathname:o}=hl(),d=JSON.stringify(cg(r)),h=T.useRef(!1);return vg(()=>{h.current=!0}),T.useCallback((y,g={})=>{if(Kt(h.current,yg),!h.current)return;if(typeof y=="number"){c.go(y);return}let b=mc(y,JSON.parse(d),o,g.relative==="path");s==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:qt([i,b.pathname])),(g.replace?c.replace:c.push)(b,g.state,g)},[i,c,d,o,s])}T.createContext(null);function Zy(){let{matches:s}=T.useContext(Zt),i=s[s.length-1];return i?i.params:{}}function Wn(s,{relative:i}={}){let{matches:c}=T.useContext(Zt),{pathname:r}=hl(),o=JSON.stringify(cg(c));return T.useMemo(()=>mc(s,JSON.parse(o),r,i==="path"),[s,o,r,i])}function Jy(s,i){return Sg(s,i)}function Sg(s,i,c){var G;He(Fn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(jt),{matches:o}=T.useContext(Zt),d=o[o.length-1],h=d?d.params:{},p=d?d.pathname:"/",y=d?d.pathnameBase:"/",g=d&&d.route;{let Y=g&&g.path||"";xg(p,!g||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${Y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
58
|
+
*/var Bh="popstate";function wh(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function oy(s={}){function i(r,o){var g;let d=(g=o.state)==null?void 0:g.masked,{pathname:h,search:p,hash:y}=d||r.location;return rc("",{pathname:h,search:p,hash:y},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:Jn(o)}return dy(i,c,null,s)}function He(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Kt(s,i){if(!s){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function fy(){return Math.random().toString(36).substring(2,10)}function qh(s,i){return{usr:s.state,key:s.key,idx:i,masked:s.mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function rc(s,i,c=null,r,o){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof i=="string"?Ka(i):i,state:c,key:i&&i.key||r||fy(),mask:o}}function Jn({pathname:s="/",search:i="",hash:c=""}){return i&&i!=="?"&&(s+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Ka(s){let i={};if(s){let c=s.indexOf("#");c>=0&&(i.hash=s.substring(c),s=s.substring(0,c));let r=s.indexOf("?");r>=0&&(i.search=s.substring(r),s=s.substring(0,r)),s&&(i.pathname=s)}return i}function dy(s,i,c,r={}){let{window:o=document.defaultView,v5Compat:d=!1}=r,h=o.history,p="POP",y=null,g=b();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function b(){return(h.state||{idx:null}).idx}function v(){p="POP";let G=b(),q=G==null?null:G-g;g=G,y&&y({action:p,location:w.location,delta:q})}function A(G,q){p="PUSH";let X=wh(G)?G:rc(w.location,G,q);g=b()+1;let Y=qh(X,g),Q=w.createHref(X.mask||X);try{h.pushState(Y,"",Q)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(Q)}d&&y&&y({action:p,location:w.location,delta:1})}function L(G,q){p="REPLACE";let X=wh(G)?G:rc(w.location,G,q);g=b();let Y=qh(X,g),Q=w.createHref(X.mask||X);h.replaceState(Y,"",Q),d&&y&&y({action:p,location:w.location,delta:0})}function _(G){return hy(o,G)}let w={get action(){return p},get location(){return s(o,h)},listen(G){if(y)throw new Error("A history only accepts one active listener");return o.addEventListener(Bh,v),y=G,()=>{o.removeEventListener(Bh,v),y=null}},createHref(G){return i(o,G)},createURL:_,encodeLocation(G){let q=_(G);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:A,replace:L,go(G){return h.go(G)}};return w}function hy(s,i,c=!1){let r="http://localhost";s&&(r=s.location.origin!=="null"?s.location.origin:s.location.href),He(r,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Jn(i);return o=o.replace(/ $/,"%20"),!c&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function ug(s,i,c="/"){return gy(s,i,c,!1)}function gy(s,i,c,r,o){let d=typeof i=="string"?Ka(i):i,h=dl(d.pathname||"/",c);if(h==null)return null;let p=my(s),y=null,g=zy(h);for(let b=0;y==null&&b<p.length;++b)y=Ay(p[b],g,r);return y}function my(s){let i=sg(s);return py(i),i}function sg(s,i=[],c=[],r="",o=!1){let d=(h,p,y=o,g)=>{let b={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&y)return;He(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let v=qt([r,b.relativePath]),A=c.concat(b);h.children&&h.children.length>0&&(He(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),sg(h.children,i,A,v,y)),!(h.path==null&&!h.index)&&i.push({path:v,score:Ry(v,h.index),routesMeta:A})};return s.forEach((h,p)=>{var y;if(h.path===""||!((y=h.path)!=null&&y.includes("?")))d(h,p);else for(let g of rg(h.path))d(h,p,!0,g)}),i}function rg(s){let i=s.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 h=rg(r.join("/")),p=[];return p.push(...h.map(y=>y===""?d:[d,y].join("/"))),o&&p.push(...h),p.map(y=>s.startsWith("/")&&y===""?"/":y)}function py(s){s.sort((i,c)=>i.score!==c.score?c.score-i.score:Ty(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var yy=/^:[\w-]+$/,vy=3,Sy=2,by=1,xy=10,Ey=-2,Yh=s=>s==="*";function Ry(s,i){let c=s.split("/"),r=c.length;return c.some(Yh)&&(r+=Ey),i&&(r+=Sy),c.filter(o=>!Yh(o)).reduce((o,d)=>o+(yy.test(d)?vy:d===""?by:xy),r)}function Ty(s,i){return s.length===i.length&&s.slice(0,-1).every((r,o)=>r===i[o])?s[s.length-1]-i[i.length-1]:0}function Ay(s,i,c=!1){let{routesMeta:r}=s,o={},d="/",h=[];for(let p=0;p<r.length;++p){let y=r[p],g=p===r.length-1,b=d==="/"?i:i.slice(d.length)||"/",v=bu({path:y.relativePath,caseSensitive:y.caseSensitive,end:g},b),A=y.route;if(!v&&g&&c&&!r[r.length-1].route.index&&(v=bu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!v)return null;Object.assign(o,v.params),h.push({params:o,pathname:qt([d,v.pathname]),pathnameBase:_y(qt([d,v.pathnameBase])),route:A}),v.pathnameBase!=="/"&&(d=qt([d,v.pathnameBase]))}return h}function bu(s,i){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=Cy(s.path,s.caseSensitive,s.end),o=i.match(c);if(!o)return null;let d=o[0],h=d.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((g,{paramName:b,isOptional:v},A)=>{if(b==="*"){let _=p[A]||"";h=d.slice(0,d.length-_.length).replace(/(.)\/+$/,"$1")}const L=p[A];return v&&!L?g[b]=void 0:g[b]=(L||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:h,pattern:s}}function Cy(s,i=!1,c=!0){Kt(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],o="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,y,g,b)=>{if(r.push({paramName:p,isOptional:y!=null}),y){let v=b.charAt(g+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),o+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":s!==""&&s!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function zy(s){try{return s.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Kt(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),s}}function dl(s,i){if(i==="/")return s;if(!s.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}var Oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Dy(s,i="/"){let{pathname:c,search:r="",hash:o=""}=typeof s=="string"?Ka(s):s,d;return c?(c=og(c),c.startsWith("/")?d=Gh(c.substring(1),"/"):d=Gh(c,i)):d=i,{pathname:d,search:Ny(r),hash:Ly(o)}}function Gh(s,i){let c=xu(i).split("/");return s.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function Pr(s,i,c,r){return`Cannot include a '${s}' 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 My(s){return s.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function cg(s){let i=My(s);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function mc(s,i,c,r=!1){let o;typeof s=="string"?o=Ka(s):(o={...s},He(!o.pathname||!o.pathname.includes("?"),Pr("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),Pr("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),Pr("#","search","hash",o)));let d=s===""||o.pathname==="",h=d?"/":o.pathname,p;if(h==null)p=c;else{let v=i.length-1;if(!r&&h.startsWith("..")){let A=h.split("/");for(;A[0]==="..";)A.shift(),v-=1;o.pathname=A.join("/")}p=v>=0?i[v]:"/"}let y=Dy(o,p),g=h&&h!=="/"&&h.endsWith("/"),b=(d||h===".")&&c.endsWith("/");return!y.pathname.endsWith("/")&&(g||b)&&(y.pathname+="/"),y}var og=s=>s.replace(/\/\/+/g,"/"),qt=s=>og(s.join("/")),xu=s=>s.replace(/\/+$/,""),_y=s=>xu(s).replace(/^\/*/,"/"),Ny=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Ly=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,Uy=class{constructor(s,i,c,r=!1){this.status=s,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function jy(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function Hy(s){let i=s.map(c=>c.route.path).filter(Boolean);return qt(i)||"/"}var fg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dg(s,i){let c=s;if(typeof c!="string"||!Oy.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,o=!1;if(fg)try{let d=new URL(window.location.href),h=c.startsWith("//")?new URL(d.protocol+c):new URL(c),p=dl(h.pathname,i);h.origin===d.origin&&p!=null?c=p+h.search+h.hash:o=!0}catch{Kt(!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}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var hg=["POST","PUT","PATCH","DELETE"];new Set(hg);var By=["GET",...hg];new Set(By);var Za=T.createContext(null);Za.displayName="DataRouter";var Cu=T.createContext(null);Cu.displayName="DataRouterState";var gg=T.createContext(!1);function wy(){return T.useContext(gg)}var mg=T.createContext({isTransitioning:!1});mg.displayName="ViewTransition";var qy=T.createContext(new Map);qy.displayName="Fetchers";var Yy=T.createContext(null);Yy.displayName="Await";var jt=T.createContext(null);jt.displayName="Navigation";var kn=T.createContext(null);kn.displayName="Location";var Zt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Zt.displayName="Route";var pc=T.createContext(null);pc.displayName="RouteError";var pg="REACT_ROUTER_ERROR",Gy="REDIRECT",Vy="ROUTE_ERROR_RESPONSE";function Xy(s){if(s.startsWith(`${pg}:${Gy}:{`))try{let i=JSON.parse(s.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 Qy(s){if(s.startsWith(`${pg}:${Vy}:{`))try{let i=JSON.parse(s.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Uy(i.status,i.statusText,i.data)}catch{}}function Ky(s,{relative:i}={}){He(Fn(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=T.useContext(jt),{hash:o,pathname:d,search:h}=Wn(s,{relative:i}),p=d;return c!=="/"&&(p=d==="/"?c:qt([c,d])),r.createHref({pathname:p,search:h,hash:o})}function Fn(){return T.useContext(kn)!=null}function hl(){return He(Fn(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(kn).location}var yg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vg(s){T.useContext(jt).static||T.useLayoutEffect(s)}function yc(){let{isDataRoute:s}=T.useContext(Zt);return s?i0():Zy()}function Zy(){He(Fn(),"useNavigate() may be used only in the context of a <Router> component.");let s=T.useContext(Za),{basename:i,navigator:c}=T.useContext(jt),{matches:r}=T.useContext(Zt),{pathname:o}=hl(),d=JSON.stringify(cg(r)),h=T.useRef(!1);return vg(()=>{h.current=!0}),T.useCallback((y,g={})=>{if(Kt(h.current,yg),!h.current)return;if(typeof y=="number"){c.go(y);return}let b=mc(y,JSON.parse(d),o,g.relative==="path");s==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:qt([i,b.pathname])),(g.replace?c.replace:c.push)(b,g.state,g)},[i,c,d,o,s])}T.createContext(null);function Jy(){let{matches:s}=T.useContext(Zt),i=s[s.length-1];return(i==null?void 0:i.params)??{}}function Wn(s,{relative:i}={}){let{matches:c}=T.useContext(Zt),{pathname:r}=hl(),o=JSON.stringify(cg(c));return T.useMemo(()=>mc(s,JSON.parse(o),r,i==="path"),[s,o,r,i])}function $y(s,i){return Sg(s,i)}function Sg(s,i,c){var G;He(Fn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(jt),{matches:o}=T.useContext(Zt),d=o[o.length-1],h=d?d.params:{},p=d?d.pathname:"/",y=d?d.pathnameBase:"/",g=d&&d.route;{let q=g&&g.path||"";xg(p,!g||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
59
|
|
|
60
|
-
Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let b=hl(),v;if(i){let Y=typeof i=="string"?Ka(i):i;He(y==="/"||((G=Y.pathname)==null?void 0:G.startsWith(y)),`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 "${y}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),v=Y}else v=b;let C=v.pathname||"/",L=C;if(y!=="/"){let Y=y.replace(/^\//,"").split("/");L="/"+C.replace(/^\//,"").split("/").slice(Y.length).join("/")}let _=ug(s,{pathname:L});Kt(g||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Kt(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=Iy(_&&_.map(Y=>Object.assign({},Y,{params:Object.assign({},h,Y.params),pathname:qt([y,r.encodeLocation?r.encodeLocation(Y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?y:qt([y,r.encodeLocation?r.encodeLocation(Y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),o,c);return i&&w?T.createElement(kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},w):w}function $y(){let s=a0(),i=Uy(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:d},"ErrorBoundary")," or"," ",T.createElement("code",{style:d},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),c?T.createElement("pre",{style:o},c):null,h)}var ky=T.createElement($y,null),bg=class extends T.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,i){return i.location!==s.location||i.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:i.error,location:i.location,revalidation:s.revalidation||i.revalidation}}componentDidCatch(s,i){this.props.onError?this.props.onError(s,i):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const c=Xy(s.digest);c&&(s=c)}let i=s!==void 0?T.createElement(Zt.Provider,{value:this.props.routeContext},T.createElement(pc.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?T.createElement(Fy,{error:s},i):i}};bg.contextType=gg;var ec=new WeakMap;function Fy({children:s,error:i}){let{basename:c}=T.useContext(jt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Vy(i.digest);if(r){let o=ec.get(i);if(o)throw o;let d=dg(r.location,c);if(fg&&!ec.get(i))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw ec.set(i,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function Wy({routeContext:s,match:i,children:c}){let r=T.useContext(Za);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(Zt.Provider,{value:s},c)}function Iy(s,i=[],c){let r=c==null?void 0:c.state;if(s==null){if(!r)return null;if(r.errors)s=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)s=r.matches;else return null}let o=s,d=r==null?void 0:r.errors;if(d!=null){let b=o.findIndex(v=>v.route.id&&(d==null?void 0:d[v.route.id])!==void 0);He(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let h=!1,p=-1;if(c&&r){h=r.renderFallback;for(let b=0;b<o.length;b++){let v=o[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=b),v.route.id){let{loaderData:C,errors:L}=r,_=v.route.loader&&!C.hasOwnProperty(v.route.id)&&(!L||L[v.route.id]===void 0);if(v.route.lazy||_){c.isStatic&&(h=!0),p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}}let y=c==null?void 0:c.onError,g=r&&y?(b,v)=>{var C,L;y(b,{location:r.location,params:((L=(C=r.matches)==null?void 0:C[0])==null?void 0:L.params)??{},unstable_pattern:jy(r.matches),errorInfo:v})}:void 0;return o.reduceRight((b,v,C)=>{let L,_=!1,w=null,G=null;r&&(L=d&&v.route.id?d[v.route.id]:void 0,w=v.route.errorElement||ky,h&&(p<0&&C===0?(xg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,G=null):p===C&&(_=!0,G=v.route.hydrateFallbackElement||null)));let Y=i.concat(o.slice(0,C+1)),X=()=>{let q;return L?q=w:_?q=G:v.route.Component?q=T.createElement(v.route.Component,null):v.route.element?q=v.route.element:q=b,T.createElement(Wy,{match:v,routeContext:{outlet:b,matches:Y,isDataRoute:r!=null},children:q})};return r&&(v.route.ErrorBoundary||v.route.errorElement||C===0)?T.createElement(bg,{location:r.location,revalidation:r.revalidation,component:w,error:L,children:X(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:g}):X()},null)}function vc(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Py(s){let i=T.useContext(Za);return He(i,vc(s)),i}function e0(s){let i=T.useContext(zu);return He(i,vc(s)),i}function t0(s){let i=T.useContext(Zt);return He(i,vc(s)),i}function Sc(s){let i=t0(s),c=i.matches[i.matches.length-1];return He(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function l0(){return Sc("useRouteId")}function a0(){var r;let s=T.useContext(pc),i=e0("useRouteError"),c=Sc("useRouteError");return s!==void 0?s:(r=i.errors)==null?void 0:r[c]}function n0(){let{router:s}=Py("useNavigate"),i=Sc("useNavigate"),c=T.useRef(!1);return vg(()=>{c.current=!0}),T.useCallback(async(o,d={})=>{Kt(c.current,yg),c.current&&(typeof o=="number"?await s.navigate(o):await s.navigate(o,{fromRouteId:i,...d}))},[s,i])}var Vh={};function xg(s,i,c){!i&&!Vh[s]&&(Vh[s]=!0,Kt(!1,c))}T.memo(i0);function i0({routes:s,future:i,state:c,isStatic:r,onError:o}){return Sg(s,void 0,{state:c,isStatic:r,onError:o})}function cc(s){He(!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 u0({basename:s="/",children:i=null,location:c,navigationType:r="POP",navigator:o,static:d=!1,unstable_useTransitions:h}){He(!Fn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=s.replace(/^\/*/,"/"),y=T.useMemo(()=>({basename:p,navigator:o,static:d,unstable_useTransitions:h,future:{}}),[p,o,d,h]);typeof c=="string"&&(c=Ka(c));let{pathname:g="/",search:b="",hash:v="",state:C=null,key:L="default",unstable_mask:_}=c,w=T.useMemo(()=>{let G=dl(g,p);return G==null?null:{location:{pathname:G,search:b,hash:v,state:C,key:L,unstable_mask:_},navigationType:r}},[p,g,b,v,C,L,r,_]);return Kt(w!=null,`<Router basename="${p}"> is not able to match the URL "${g}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:T.createElement(jt.Provider,{value:y},T.createElement(kn.Provider,{children:i,value:w}))}function s0({children:s,location:i}){return Jy(oc(s),i)}function oc(s,i=[]){let c=[];return T.Children.forEach(s,(r,o)=>{if(!T.isValidElement(r))return;let d=[...i,o];if(r.type===T.Fragment){c.push.apply(c,oc(r.props.children,d));return}He(r.type===cc,`[${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>`),He(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=oc(r.props.children,d)),c.push(h)}),c}var vu="get",Su="application/x-www-form-urlencoded";function Au(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function r0(s){return Au(s)&&s.tagName.toLowerCase()==="button"}function c0(s){return Au(s)&&s.tagName.toLowerCase()==="form"}function o0(s){return Au(s)&&s.tagName.toLowerCase()==="input"}function f0(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function d0(s,i){return s.button===0&&(!i||i==="_self")&&!f0(s)}var pu=null;function h0(){if(pu===null)try{new FormData(document.createElement("form"),0),pu=!1}catch{pu=!0}return pu}var g0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function tc(s){return s!=null&&!g0.has(s)?(Kt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Su}"`),null):s}function m0(s,i){let c,r,o,d,h;if(c0(s)){let p=s.getAttribute("action");r=p?dl(p,i):null,c=s.getAttribute("method")||vu,o=tc(s.getAttribute("enctype"))||Su,d=new FormData(s)}else if(r0(s)||o0(s)&&(s.type==="submit"||s.type==="image")){let p=s.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=s.getAttribute("formaction")||p.getAttribute("action");if(r=y?dl(y,i):null,c=s.getAttribute("formmethod")||p.getAttribute("method")||vu,o=tc(s.getAttribute("formenctype"))||tc(p.getAttribute("enctype"))||Su,d=new FormData(p,s),!h0()){let{name:g,type:b,value:v}=s;if(b==="image"){let C=g?`${g}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else g&&d.append(g,v)}}else{if(Au(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=vu,r=null,o=Su,h=s}return d&&o==="text/plain"&&(h=d,d=void 0),{action:r,method:c.toLowerCase(),encType:o,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function bc(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Eg(s,i,c,r){let o=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return c?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:i&&dl(o.pathname,i)==="/"?o.pathname=`${xu(i)}/_root.${r}`:o.pathname=`${xu(o.pathname)}.${r}`,o}async function p0(s,i){if(s.id in i)return i[s.id];try{let c=await import(s.module);return i[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function y0(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function v0(s,i,c){let r=await Promise.all(s.map(async o=>{let d=i.routes[o.route.id];if(d){let h=await p0(d,c);return h.links?h.links():[]}return[]}));return E0(r.flat(1).filter(y0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Xh(s,i,c,r,o,d){let h=(y,g)=>c[g]?y.route.id!==c[g].route.id:!0,p=(y,g)=>{var b;return c[g].pathname!==y.pathname||((b=c[g].route.path)==null?void 0:b.endsWith("*"))&&c[g].params["*"]!==y.params["*"]};return d==="assets"?i.filter((y,g)=>h(y,g)||p(y,g)):d==="data"?i.filter((y,g)=>{var v;let b=r.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(h(y,g)||p(y,g))return!0;if(y.route.shouldRevalidate){let C=y.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=c[0])==null?void 0:v.params)||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function S0(s,i,{includeHydrateFallback:c}={}){return b0(s.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 b0(s){return[...new Set(s)]}function x0(s){let i={},c=Object.keys(s).sort();for(let r of c)i[r]=s[r];return i}function E0(s,i){let c=new Set;return new Set(i),s.reduce((r,o)=>{let d=JSON.stringify(x0(o));return c.has(d)||(c.add(d),r.push({key:d,link:o})),r},[])}function xc(){let s=T.useContext(Za);return bc(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function R0(){let s=T.useContext(zu);return bc(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Ec=T.createContext(void 0);Ec.displayName="FrameworkContext";function Rc(){let s=T.useContext(Ec);return bc(s,"You must render this element inside a <HydratedRouter> element"),s}function T0(s,i){let c=T.useContext(Ec),[r,o]=T.useState(!1),[d,h]=T.useState(!1),{onFocus:p,onBlur:y,onMouseEnter:g,onMouseLeave:b,onTouchStart:v}=i,C=T.useRef(null);T.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let w=Y=>{Y.forEach(X=>{h(X.isIntersecting)})},G=new IntersectionObserver(w,{threshold:.5});return C.current&&G.observe(C.current),()=>{G.disconnect()}}},[s]),T.useEffect(()=>{if(r){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[r]);let L=()=>{o(!0)},_=()=>{o(!1),h(!1)};return c?s!=="intent"?[d,C,{}]:[d,C,{onFocus:Xn(p,L),onBlur:Xn(y,_),onMouseEnter:Xn(g,L),onMouseLeave:Xn(b,_),onTouchStart:Xn(v,L)}]:[!1,C,{}]}function Xn(s,i){return c=>{s&&s(c),c.defaultPrevented||i(c)}}function C0({page:s,...i}){let c=By(),{router:r}=xc(),o=T.useMemo(()=>ug(r.routes,s,r.basename),[r.routes,s,r.basename]);return o?c?T.createElement(A0,{page:s,matches:o,...i}):T.createElement(O0,{page:s,matches:o,...i}):null}function z0(s){let{manifest:i,routeModules:c}=Rc(),[r,o]=T.useState([]);return T.useEffect(()=>{let d=!1;return v0(s,i,c).then(h=>{d||o(h)}),()=>{d=!0}},[s,i,c]),r}function A0({page:s,matches:i,...c}){let r=hl(),{future:o}=Rc(),{basename:d}=xc(),h=T.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let p=Eg(s,d,o.unstable_trailingSlashAwareDataRequests,"rsc"),y=!1,g=[];for(let b of i)typeof b.route.shouldRevalidate=="function"?y=!0:g.push(b.route.id);return y&&g.length>0&&p.searchParams.set("_routes",g.join(",")),[p.pathname+p.search]},[d,o.unstable_trailingSlashAwareDataRequests,s,r,i]);return T.createElement(T.Fragment,null,h.map(p=>T.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...c})))}function O0({page:s,matches:i,...c}){let r=hl(),{future:o,manifest:d,routeModules:h}=Rc(),{basename:p}=xc(),{loaderData:y,matches:g}=R0(),b=T.useMemo(()=>Xh(s,i,g,d,r,"data"),[s,i,g,d,r]),v=T.useMemo(()=>Xh(s,i,g,d,r,"assets"),[s,i,g,d,r]),C=T.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let w=new Set,G=!1;if(i.forEach(X=>{var Q;let q=d.routes[X.route.id];!q||!q.hasLoader||(!b.some(I=>I.route.id===X.route.id)&&X.route.id in y&&((Q=h[X.route.id])!=null&&Q.shouldRevalidate)||q.hasClientLoader?G=!0:w.add(X.route.id))}),w.size===0)return[];let Y=Eg(s,p,o.unstable_trailingSlashAwareDataRequests,"data");return G&&w.size>0&&Y.searchParams.set("_routes",i.filter(X=>w.has(X.route.id)).map(X=>X.route.id).join(",")),[Y.pathname+Y.search]},[p,o.unstable_trailingSlashAwareDataRequests,y,r,d,b,i,s,h]),L=T.useMemo(()=>S0(v,d),[v,d]),_=z0(v);return T.createElement(T.Fragment,null,C.map(w=>T.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...c})),L.map(w=>T.createElement("link",{key:w,rel:"modulepreload",href:w,...c})),_.map(({key:w,link:G})=>T.createElement("link",{key:w,nonce:c.nonce,...G,crossOrigin:G.crossOrigin??c.crossOrigin})))}function D0(...s){return i=>{s.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var M0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{M0&&(window.__reactRouterVersion="7.14.1")}catch{}function _0({basename:s,children:i,unstable_useTransitions:c,window:r}){let o=T.useRef();o.current==null&&(o.current=oy({window:r,v5Compat:!0}));let d=o.current,[h,p]=T.useState({action:d.action,location:d.location}),y=T.useCallback(g=>{c===!1?p(g):T.startTransition(()=>p(g))},[c]);return T.useLayoutEffect(()=>d.listen(y),[d,y]),T.createElement(u0,{basename:s,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:c})}var Rg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tg=T.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:o,reloadDocument:d,replace:h,unstable_mask:p,state:y,target:g,to:b,preventScrollReset:v,viewTransition:C,unstable_defaultShouldRevalidate:L,..._},w){let{basename:G,navigator:Y,unstable_useTransitions:X}=T.useContext(jt),q=typeof b=="string"&&Rg.test(b),Q=dg(b,G);b=Q.to;let I=Qy(b,{relative:o}),se=hl(),k=null;if(p){let oe=mc(p,[],se.unstable_mask?se.unstable_mask.pathname:"/",!0);G!=="/"&&(oe.pathname=oe.pathname==="/"?G:qt([G,oe.pathname])),k=Y.createHref(oe)}let[ge,ce,me]=T0(r,_),Be=j0(b,{replace:h,unstable_mask:p,state:y,target:g,preventScrollReset:v,relative:o,viewTransition:C,unstable_defaultShouldRevalidate:L,unstable_useTransitions:X});function le(oe){i&&i(oe),oe.defaultPrevented||Be(oe)}let ee=!(Q.isExternal||d),ne=T.createElement("a",{..._,...me,href:(ee?k:void 0)||Q.absoluteURL||I,onClick:ee?le:i,ref:D0(w,ce),target:g,"data-discover":!q&&c==="render"?"true":void 0});return ge&&!q?T.createElement(T.Fragment,null,ne,T.createElement(C0,{page:I})):ne});Tg.displayName="Link";var N0=T.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:o=!1,style:d,to:h,viewTransition:p,children:y,...g},b){let v=Wn(h,{relative:g.relative}),C=hl(),L=T.useContext(zu),{navigator:_,basename:w}=T.useContext(jt),G=L!=null&&Y0(v)&&p===!0,Y=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,X=C.pathname,q=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;c||(X=X.toLowerCase(),q=q?q.toLowerCase():null,Y=Y.toLowerCase()),q&&w&&(q=dl(q,w)||q);const Q=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let I=X===Y||!o&&X.startsWith(Y)&&X.charAt(Q)==="/",se=q!=null&&(q===Y||!o&&q.startsWith(Y)&&q.charAt(Y.length)==="/"),k={isActive:I,isPending:se,isTransitioning:G},ge=I?i:void 0,ce;typeof r=="function"?ce=r(k):ce=[r,I?"active":null,se?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let me=typeof d=="function"?d(k):d;return T.createElement(Tg,{...g,"aria-current":ge,className:ce,ref:b,style:me,to:h,viewTransition:p},typeof y=="function"?y(k):y)});N0.displayName="NavLink";var L0=T.forwardRef(({discover:s="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:o,state:d,method:h=vu,action:p,onSubmit:y,relative:g,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:C,...L},_)=>{let{unstable_useTransitions:w}=T.useContext(jt),G=w0(),Y=q0(p,{relative:g}),X=h.toLowerCase()==="get"?"get":"post",q=typeof p=="string"&&Rg.test(p),Q=I=>{if(y&&y(I),I.defaultPrevented)return;I.preventDefault();let se=I.nativeEvent.submitter,k=(se==null?void 0:se.getAttribute("formmethod"))||h,ge=()=>G(se||I.currentTarget,{fetcherKey:i,method:k,navigate:c,replace:o,state:d,relative:g,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:C});w&&c!==!1?T.startTransition(()=>ge()):ge()};return T.createElement("form",{ref:_,method:X,action:Y,onSubmit:r?y:Q,...L,"data-discover":!q&&s==="render"?"true":void 0})});L0.displayName="Form";function U0(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cg(s){let i=T.useContext(Za);return He(i,U0(s)),i}function j0(s,{target:i,replace:c,unstable_mask:r,state:o,preventScrollReset:d,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:y,unstable_useTransitions:g}={}){let b=yc(),v=hl(),C=Wn(s,{relative:h});return T.useCallback(L=>{if(d0(L,i)){L.preventDefault();let _=c!==void 0?c:Jn(v)===Jn(C),w=()=>b(s,{replace:_,unstable_mask:r,state:o,preventScrollReset:d,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:y});g?T.startTransition(()=>w()):w()}},[v,b,C,c,r,o,i,s,d,h,p,y,g])}var H0=0,B0=()=>`__${String(++H0)}__`;function w0(){let{router:s}=Cg("useSubmit"),{basename:i}=T.useContext(jt),c=l0(),r=s.fetch,o=s.navigate;return T.useCallback(async(d,h={})=>{let{action:p,method:y,encType:g,formData:b,body:v}=m0(d,i);if(h.navigate===!1){let C=h.fetcherKey||B0();await r(C,c,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||g,flushSync:h.flushSync})}else await o(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:c,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,o,i,c])}function q0(s,{relative:i}={}){let{basename:c}=T.useContext(jt),r=T.useContext(Zt);He(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),d={...Wn(s||".",{relative:i})},h=hl();if(s==null){d.search=h.search;let p=new URLSearchParams(d.search),y=p.getAll("index");if(y.some(b=>b==="")){p.delete("index"),y.filter(v=>v).forEach(v=>p.append("index",v));let b=p.toString();d.search=b?`?${b}`:""}}return(!s||s===".")&&o.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:qt([c,d.pathname])),Jn(d)}function Y0(s,{relative:i}={}){let c=T.useContext(mg);He(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Cg("useViewTransitionState"),o=Wn(s,{relative:i});if(!c.isTransitioning)return!1;let d=dl(c.currentLocation.pathname,r)||c.currentLocation.pathname,h=dl(c.nextLocation.pathname,r)||c.nextLocation.pathname;return bu(o.pathname,h)!=null||bu(o.pathname,d)!=null}const te=s=>typeof s=="string",Qn=()=>{let s,i;const c=new Promise((r,o)=>{s=r,i=o});return c.resolve=s,c.reject=i,c},Qh=s=>s==null?"":String(s),G0=(s,i,c)=>{s.forEach(r=>{i[r]&&(c[r]=i[r])})},V0=/###/g,Kh=s=>s&&s.includes("###")?s.replace(V0,"."):s,Zh=s=>!s||te(s),Kn=(s,i,c)=>{const r=te(i)?i.split("."):i;let o=0;for(;o<r.length-1;){if(Zh(s))return{};const d=Kh(r[o]);!s[d]&&c&&(s[d]=new c),Object.prototype.hasOwnProperty.call(s,d)?s=s[d]:s={},++o}return Zh(s)?{}:{obj:s,k:Kh(r[o])}},Jh=(s,i,c)=>{const{obj:r,k:o}=Kn(s,i,Object);if(r!==void 0||i.length===1){r[o]=c;return}let d=i[i.length-1],h=i.slice(0,i.length-1),p=Kn(s,h,Object);for(;p.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),p=Kn(s,h,Object),p!=null&&p.obj&&typeof p.obj[`${p.k}.${d}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${d}`]=c},X0=(s,i,c,r)=>{const{obj:o,k:d}=Kn(s,i,Object);o[d]=o[d]||[],o[d].push(c)},Eu=(s,i)=>{const{obj:c,k:r}=Kn(s,i);if(c&&Object.prototype.hasOwnProperty.call(c,r))return c[r]},Q0=(s,i,c)=>{const r=Eu(s,c);return r!==void 0?r:Eu(i,c)},zg=(s,i,c)=>{for(const r in i)r!=="__proto__"&&r!=="constructor"&&(r in s?te(s[r])||s[r]instanceof String||te(i[r])||i[r]instanceof String?c&&(s[r]=i[r]):zg(s[r],i[r],c):s[r]=i[r]);return s},fl=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),K0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Z0=s=>te(s)?s.replace(/[&<>"'\/]/g,i=>K0[i]):s;class J0{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const c=this.regExpMap.get(i);if(c!==void 0)return c;const r=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,r),this.regExpQueue.push(i),r}}const $0=[" ",",","?","!",";"],k0=new J0(20),F0=(s,i,c)=>{i=i||"",c=c||"";const r=$0.filter(h=>!i.includes(h)&&!c.includes(h));if(r.length===0)return!0;const o=k0.getRegExp(`(${r.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!o.test(s);if(!d){const h=s.indexOf(c);h>0&&!o.test(s.substring(0,h))&&(d=!0)}return d},fc=(s,i,c=".")=>{if(!s)return;if(s[i])return Object.prototype.hasOwnProperty.call(s,i)?s[i]:void 0;const r=i.split(c);let o=s;for(let d=0;d<r.length;){if(!o||typeof o!="object")return;let h,p="";for(let y=d;y<r.length;++y)if(y!==d&&(p+=c),p+=r[y],h=o[p],h!==void 0){if(["string","number","boolean"].includes(typeof h)&&y<r.length-1)continue;d+=y-d+1;break}o=h}return o},$n=s=>s==null?void 0:s.replace(/_/g,"-"),W0={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,i){var c,r;(r=(c=console==null?void 0:console[s])==null?void 0:c.apply)==null||r.call(c,console,i)}};class Ru{constructor(i,c={}){this.init(i,c)}init(i,c={}){this.prefix=c.prefix||"i18next:",this.logger=i||W0,this.options=c,this.debug=c.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,c,r,o){return o&&!this.debug?null:(i=i.map(d=>te(d)?d.replace(/[\r\n\x00-\x1F\x7F]/g," "):d),te(i[0])&&(i[0]=`${r}${this.prefix} ${i[0]}`),this.logger[c](i))}create(i){return new Ru(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new Ru(this.logger,i)}}var Qt=new Ru;class Ou{constructor(){this.observers={}}on(i,c){return i.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(c)||0;this.observers[r].set(c,o+1)}),this}off(i,c){if(this.observers[i]){if(!c){delete this.observers[i];return}this.observers[i].delete(c)}}once(i,c){const r=(...o)=>{c(...o),this.off(i,r)};return this.on(i,r),this}emit(i,...c){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([o,d])=>{for(let h=0;h<d;h++)o(...c)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,d])=>{for(let h=0;h<d;h++)o(i,...c)})}}class $h extends Ou{constructor(i,c={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.includes(i)||this.options.ns.push(i)}removeNamespaces(i){const c=this.options.ns.indexOf(i);c>-1&&this.options.ns.splice(c,1)}getResource(i,c,r,o={}){var g,b;const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,h=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;i.includes(".")?p=i.split("."):(p=[i,c],r&&(Array.isArray(r)?p.push(...r):te(r)&&d?p.push(...r.split(d)):p.push(r)));const y=Eu(this.data,p);return!y&&!c&&!r&&i.includes(".")&&(i=p[0],c=p[1],r=p.slice(2).join(".")),y||!h||!te(r)?y:fc((b=(g=this.data)==null?void 0:g[i])==null?void 0:b[c],r,d)}addResource(i,c,r,o,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let p=[i,c];r&&(p=p.concat(h?r.split(h):r)),i.includes(".")&&(p=i.split("."),o=c,c=p[1]),this.addNamespaces(c),Jh(this.data,p,o),d.silent||this.emit("added",i,c,r,o)}addResources(i,c,r,o={silent:!1}){for(const d in r)(te(r[d])||Array.isArray(r[d]))&&this.addResource(i,c,d,r[d],{silent:!0});o.silent||this.emit("added",i,c,r)}addResourceBundle(i,c,r,o,d,h={silent:!1,skipCopy:!1}){let p=[i,c];i.includes(".")&&(p=i.split("."),o=r,r=c,c=p[1]),this.addNamespaces(c);let y=Eu(this.data,p)||{};h.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?zg(y,r,d):y={...y,...r},Jh(this.data,p,y),h.silent||this.emit("added",i,c,r)}removeResourceBundle(i,c){this.hasResourceBundle(i,c)&&delete this.data[i][c],this.removeNamespaces(c),this.emit("removed",i,c)}hasResourceBundle(i,c){return this.getResource(i,c)!==void 0}getResourceBundle(i,c){return c||(c=this.options.defaultNS),this.getResource(i,c)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const c=this.getDataByLanguage(i);return!!(c&&Object.keys(c)||[]).find(o=>c[o]&&Object.keys(c[o]).length>0)}toJSON(){return this.data}}var Ag={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,i,c,r,o){return s.forEach(d=>{var h;i=((h=this.processors[d])==null?void 0:h.process(i,c,r,o))??i}),i}};const Og=Symbol("i18next/PATH_KEY");function I0(){const s=[],i=Object.create(null);let c;return i.get=(r,o)=>{var d;return(d=c==null?void 0:c.revoke)==null||d.call(c),o===Og?s:(s.push(o),c=Proxy.revocable(r,i),c.proxy)},Proxy.revocable(Object.create(null),i).proxy}function Qa(s,i){const{[Og]:c}=s(I0()),r=(i==null?void 0:i.keySeparator)??".",o=(i==null?void 0:i.nsSeparator)??":";if(c.length>1&&o){const d=i==null?void 0:i.ns,h=Array.isArray(d)?d:null;if(h&&h.length>1&&h.slice(1).includes(c[0]))return`${c[0]}${o}${c.slice(1).join(r)}`}return c.join(r)}const lc=s=>!te(s)&&typeof s!="boolean"&&typeof s!="number";class Tu extends Ou{constructor(i,c={}){super(),G0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator"),this.checkedLoadedFor={}}changeLanguage(i){i&&(this.language=i)}exists(i,c={interpolation:{}}){const r={...c};if(i==null)return!1;const o=this.resolve(i,r);if((o==null?void 0:o.res)===void 0)return!1;const d=lc(o.res);return!(r.returnObjects===!1&&d)}extractFromKey(i,c){let r=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let d=c.ns||this.options.defaultNS||[];const h=r&&i.includes(r),p=!this.options.userDefinedKeySeparator&&!c.keySeparator&&!this.options.userDefinedNsSeparator&&!c.nsSeparator&&!F0(i,r,o);if(h&&!p){const y=i.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:i,namespaces:te(d)?[d]:d};const g=i.split(r);(r!==o||r===o&&this.options.ns.includes(g[0]))&&(d=g.shift()),i=g.join(o)}return{key:i,namespaces:te(d)?[d]:d}}translate(i,c,r){let o=typeof c=="object"?{...c}:c;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";typeof i=="function"&&(i=Qa(i,{...this.options,...o})),Array.isArray(i)||(i=[String(i)]),i=i.map(ee=>typeof ee=="function"?Qa(ee,{...this.options,...o}):String(ee));const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,h=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:p,namespaces:y}=this.extractFromKey(i[i.length-1],o),g=y[y.length-1];let b=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=o.lng||this.language,C=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return C?d?{res:`${g}${b}${p}`,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:g,usedParams:this.getUsedParamsDetails(o)}:`${g}${b}${p}`:d?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:g,usedParams:this.getUsedParamsDetails(o)}:p;const L=this.resolve(i,o);let _=L==null?void 0:L.res;const w=(L==null?void 0:L.usedKey)||p,G=(L==null?void 0:L.exactUsedKey)||p,Y=["[object Number]","[object Function]","[object RegExp]"],X=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,q=!this.i18nFormat||this.i18nFormat.handleAsObject,Q=o.count!==void 0&&!te(o.count),I=Tu.hasDefaultValue(o),se=Q?this.pluralResolver.getSuffix(v,o.count,o):"",k=o.ordinal&&Q?this.pluralResolver.getSuffix(v,o.count,{ordinal:!1}):"",ge=Q&&!o.ordinal&&o.count===0,ce=ge&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${se}`]||o[`defaultValue${k}`]||o.defaultValue;let me=_;q&&!_&&I&&(me=ce);const Be=lc(me),le=Object.prototype.toString.apply(me);if(q&&me&&Be&&!Y.includes(le)&&!(te(X)&&Array.isArray(me))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,me,{...o,ns:y}):`key '${p} (${this.language})' returned an object instead of string.`;return d?(L.res=ee,L.usedParams=this.getUsedParamsDetails(o),L):ee}if(h){const ee=Array.isArray(me),ne=ee?[]:{},oe=ee?G:w;for(const D in me)if(Object.prototype.hasOwnProperty.call(me,D)){const V=`${oe}${h}${D}`;I&&!_?ne[D]=this.translate(V,{...o,defaultValue:lc(ce)?ce[D]:void 0,joinArrays:!1,ns:y}):ne[D]=this.translate(V,{...o,joinArrays:!1,ns:y}),ne[D]===V&&(ne[D]=me[D])}_=ne}}else if(q&&te(X)&&Array.isArray(_))_=_.join(X),_&&(_=this.extendTranslation(_,i,o,r));else{let ee=!1,ne=!1;!this.isValidLookup(_)&&I&&(ee=!0,_=ce),this.isValidLookup(_)||(ne=!0,_=p);const D=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ne?void 0:_,V=I&&ce!==_&&this.options.updateMissing;if(ne||ee||V){if(this.logger.log(V?"updateKey":"missingKey",v,g,p,V?ce:_),h){const x=this.resolve(p,{...o,keySeparator:!1});x&&x.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(let x=0;x<Se.length;x++)F.push(Se[x]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(o.lng||this.language):F.push(o.lng||this.language);const Re=(x,j,K)=>{var ae;const Z=I&&K!==_?K:D;this.options.missingKeyHandler?this.options.missingKeyHandler(x,g,j,Z,V,o):(ae=this.backendConnector)!=null&&ae.saveMissing&&this.backendConnector.saveMissing(x,g,j,Z,V,o),this.emit("missingKey",x,g,j,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Q?F.forEach(x=>{const j=this.pluralResolver.getSuffixes(x,o);ge&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!j.includes(`${this.options.pluralSeparator}zero`)&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(K=>{Re([x],p+K,o[`defaultValue${K}`]||ce)})}):Re(F,p,ce))}_=this.extendTranslation(_,i,o,L,r),ne&&_===p&&this.options.appendNamespaceToMissingKey&&(_=`${g}${b}${p}`),(ne||ee)&&this.options.parseMissingKeyHandler&&(_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${b}${p}`:p,ee?_:void 0,o))}return d?(L.res=_,L.usedParams=this.getUsedParamsDetails(o),L):_}extendTranslation(i,c,r,o,d){var y,g;if((y=this.i18nFormat)!=null&&y.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const b=te(i)&&(((g=r==null?void 0:r.interpolation)==null?void 0:g.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(b){const L=i.match(this.interpolator.nestingRegexp);v=L&&L.length}let C=r.replace&&!te(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),i=this.interpolator.interpolate(i,C,r.lng||this.language||o.usedLng,r),b){const L=i.match(this.interpolator.nestingRegexp),_=L&&L.length;v<_&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(i=this.interpolator.nest(i,(...L)=>(d==null?void 0:d[0])===L[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${L[0]} in key: ${c[0]}`),null):this.translate(...L,c),r)),r.interpolation&&this.interpolator.reset()}const h=r.postProcess||this.options.postProcess,p=te(h)?[h]:h;return i!=null&&(p!=null&&p.length)&&r.applyPostProcessor!==!1&&(i=Ag.handle(p,i,c,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),i}resolve(i,c={}){let r,o,d,h,p;return te(i)&&(i=[i]),Array.isArray(i)&&(i=i.map(y=>typeof y=="function"?Qa(y,{...this.options,...c}):y)),i.forEach(y=>{if(this.isValidLookup(r))return;const g=this.extractFromKey(y,c),b=g.key;o=b;let v=g.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const C=c.count!==void 0&&!te(c.count),L=C&&!c.ordinal&&c.count===0,_=c.context!==void 0&&(te(c.context)||typeof c.context=="number")&&c.context!=="",w=c.lngs?c.lngs:this.languageUtils.toResolveHierarchy(c.lng||this.language,c.fallbackLng);v.forEach(G=>{var Y,X;this.isValidLookup(r)||(p=G,!this.checkedLoadedFor[`${w[0]}-${G}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((X=this.utils)!=null&&X.hasLoadedNamespace(p))&&(this.checkedLoadedFor[`${w[0]}-${G}`]=!0,this.logger.warn(`key "${o}" for languages "${w.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(q=>{var se;if(this.isValidLookup(r))return;h=q;const Q=[b];if((se=this.i18nFormat)!=null&&se.addLookupKeys)this.i18nFormat.addLookupKeys(Q,b,q,G,c);else{let k;C&&(k=this.pluralResolver.getSuffix(q,c.count,c));const ge=`${this.options.pluralSeparator}zero`,ce=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(c.ordinal&&k.startsWith(ce)&&Q.push(b+k.replace(ce,this.options.pluralSeparator)),Q.push(b+k),L&&Q.push(b+ge)),_){const me=`${b}${this.options.contextSeparator||"_"}${c.context}`;Q.push(me),C&&(c.ordinal&&k.startsWith(ce)&&Q.push(me+k.replace(ce,this.options.pluralSeparator)),Q.push(me+k),L&&Q.push(me+ge))}}let I;for(;I=Q.pop();)this.isValidLookup(r)||(d=I,r=this.getResource(q,G,I,c))}))})}),{res:r,usedKey:o,exactUsedKey:d,usedLng:h,usedNS:p}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,c,r,o={}){var d;return(d=this.i18nFormat)!=null&&d.getResource?this.i18nFormat.getResource(i,c,r,o):this.resourceStore.getResource(i,c,r,o)}getUsedParamsDetails(i={}){const c=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=i.replace&&!te(i.replace);let o=r?i.replace:i;if(r&&typeof i.count<"u"&&(o.count=i.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const d of c)delete o[d]}return o}static hasDefaultValue(i){const c="defaultValue";for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.startsWith(c)&&i[r]!==void 0)return!0;return!1}}class kh{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(i){if(i=$n(i),!i||!i.includes("-"))return null;const c=i.split("-");return c.length===2||(c.pop(),c[c.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(c.join("-"))}getLanguagePartFromCode(i){if(i=$n(i),!i||!i.includes("-"))return i;const c=i.split("-");return this.formatLanguageCode(c[0])}formatLanguageCode(i){if(te(i)&&i.includes("-")){let c;try{c=Intl.getCanonicalLocales(i)[0]}catch{}return c&&this.options.lowerCaseLng&&(c=c.toLowerCase()),c||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(i)}getBestMatchFromCodes(i){if(!i)return null;let c;return i.forEach(r=>{if(c)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(c=o)}),!c&&this.options.supportedLngs&&i.forEach(r=>{if(c)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return c=o;const d=this.getLanguagePartFromCode(r);if(this.isSupportedCode(d))return c=d;c=this.options.supportedLngs.find(h=>h===d?!0:!h.includes("-")&&!d.includes("-")?!1:!!(h.includes("-")&&!d.includes("-")&&h.slice(0,h.indexOf("-"))===d||h.startsWith(d)&&d.length>1))}),c||(c=this.getFallbackCodes(this.options.fallbackLng)[0]),c}getFallbackCodes(i,c){if(!i)return[];if(typeof i=="function"&&(i=i(c)),te(i)&&(i=[i]),Array.isArray(i))return i;if(!c)return i.default||[];let r=i[c];return r||(r=i[this.getScriptPartFromCode(c)]),r||(r=i[this.formatLanguageCode(c)]),r||(r=i[this.getLanguagePartFromCode(c)]),r||(r=i.default),r||[]}toResolveHierarchy(i,c){const r=this.getFallbackCodes((c===!1?[]:c)||this.options.fallbackLng||[],i),o=[],d=h=>{h&&(this.isSupportedCode(h)?o.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return te(i)&&(i.includes("-")||i.includes("_"))?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(i))):te(i)&&d(this.formatLanguageCode(i)),r.forEach(h=>{o.includes(h)||d(this.formatLanguageCode(h))}),o}}const Fh={zero:0,one:1,two:2,few:3,many:4,other:5},Wh={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class P0{constructor(i,c={}){this.languageUtils=i,this.options=c,this.logger=Qt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,c={}){const r=$n(i==="dev"?"en":i),o=c.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:r,type:o});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Wh;if(!i.match(/-|_/))return Wh;const y=this.languageUtils.getLanguagePartFromCode(i);h=this.getRule(y,c)}return this.pluralRulesCache[d]=h,h}needsPlural(i,c={}){let r=this.getRule(i,c);return r||(r=this.getRule("dev",c)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,c,r={}){return this.getSuffixes(i,r).map(o=>`${c}${o}`)}getSuffixes(i,c={}){let r=this.getRule(i,c);return r||(r=this.getRule("dev",c)),r?r.resolvedOptions().pluralCategories.sort((o,d)=>Fh[o]-Fh[d]).map(o=>`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(i,c,r={}){const o=this.getRule(i,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(c)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",c,r))}}const Ih=(s,i,c,r=".",o=!0)=>{let d=Q0(s,i,c);return!d&&o&&te(c)&&(d=fc(s,c,r),d===void 0&&(d=fc(i,c,r))),d},ac=s=>s.replace(/\$/g,"$$$$");class Ph{constructor(i={}){var c;this.logger=Qt.create("interpolator"),this.options=i,this.format=((c=i==null?void 0:i.interpolation)==null?void 0:c.format)||(r=>r),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:c,escapeValue:r,useRawValueToEscape:o,prefix:d,prefixEscaped:h,suffix:p,suffixEscaped:y,formatSeparator:g,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:C,nestingPrefixEscaped:L,nestingSuffix:_,nestingSuffixEscaped:w,nestingOptionsSeparator:G,maxReplaces:Y,alwaysFormat:X}=i.interpolation;this.escape=c!==void 0?c:Z0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=d?fl(d):h||"{{",this.suffix=p?fl(p):y||"}}",this.formatSeparator=g||",",this.unescapePrefix=b?"":v?fl(v):"-",this.unescapeSuffix=this.unescapePrefix?"":b?fl(b):"",this.nestingPrefix=C?fl(C):L||fl("$t("),this.nestingSuffix=_?fl(_):w||fl(")"),this.nestingOptionsSeparator=G||",",this.maxReplaces=Y||1e3,this.alwaysFormat=X!==void 0?X:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(c,r)=>(c==null?void 0:c.source)===r?(c.lastIndex=0,c):new RegExp(r,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,c,r,o){var L;let d,h,p;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=_=>{if(!_.includes(this.formatSeparator)){const X=Ih(c,y,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(X,void 0,r,{...o,...c,interpolationkey:_}):X}const w=_.split(this.formatSeparator),G=w.shift().trim(),Y=w.join(this.formatSeparator).trim();return this.format(Ih(c,y,G,this.options.keySeparator,this.options.ignoreJSONStructure),Y,r,{...o,...c,interpolationkey:G})};this.resetRegExp(),!this.escapeValue&&typeof i=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(i)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const b=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((L=o==null?void 0:o.interpolation)==null?void 0:L.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>ac(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?ac(this.escape(_)):ac(_)}].forEach(_=>{for(p=0;d=_.regex.exec(i);){const w=d[1].trim();if(h=g(w),h===void 0)if(typeof b=="function"){const Y=b(i,d,o);h=te(Y)?Y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,w))h="";else if(v){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${i}`),h="";else!te(h)&&!this.useRawValueToEscape&&(h=Qh(h));const G=_.safeValue(h);if(i=i.replace(d[0],G),v?(_.regex.lastIndex+=h.length,_.regex.lastIndex-=d[0].length):_.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),i}nest(i,c,r={}){let o,d,h;const p=(y,g)=>{const b=this.nestingOptionsSeparator;if(!y.includes(b))return y;const v=y.split(new RegExp(`${fl(b)}[ ]*{`));let C=`{${v[1]}`;y=v[0],C=this.interpolate(C,h);const L=C.match(/'/g),_=C.match(/"/g);(((L==null?void 0:L.length)??0)%2===0&&!_||((_==null?void 0:_.length)??0)%2!==0)&&(C=C.replace(/'/g,'"'));try{h=JSON.parse(C),g&&(h={...g,...h})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,w),`${y}${b}${C}`}return h.defaultValue&&h.defaultValue.includes(this.prefix)&&delete h.defaultValue,y};for(;o=this.nestingRegexp.exec(i);){let y=[];h={...r},h=h.replace&&!te(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const g=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(g!==-1&&(y=o[1].slice(g).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),o[1]=o[1].slice(0,g)),d=c(p.call(this,o[1].trim(),h),h),d&&o[0]===i&&!te(d))return d;te(d)||(d=Qh(d)),d||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${i}`),d=""),y.length&&(d=y.reduce((b,v)=>this.format(b,v,r.lng,{...r,interpolationkey:o[1].trim()}),d.trim())),i=i.replace(o[0],d),this.regexp.lastIndex=0}return i}}const ev=s=>{let i=s.toLowerCase().trim();const c={};if(s.includes("(")){const r=s.split("(");i=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);i==="currency"&&!o.includes(":")?c.currency||(c.currency=o.trim()):i==="relativetime"&&!o.includes(":")?c.range||(c.range=o.trim()):o.split(";").forEach(h=>{if(h){const[p,...y]=h.split(":"),g=y.join(":").trim().replace(/^'+|'+$/g,""),b=p.trim();c[b]||(c[b]=g),g==="false"&&(c[b]=!1),g==="true"&&(c[b]=!0),isNaN(g)||(c[b]=parseInt(g,10))}})}return{formatName:i,formatOptions:c}},eg=s=>{const i={};return(c,r,o)=>{let d=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(d={...d,[o.interpolationkey]:void 0});const h=r+JSON.stringify(d);let p=i[h];return p||(p=s($n(r),o),i[h]=p),p(c)}},tv=s=>(i,c,r)=>s($n(c),r)(i);class lv{constructor(i={}){this.logger=Qt.create("formatter"),this.options=i,this.init(i)}init(i,c={interpolation:{}}){this.formatSeparator=c.interpolation.formatSeparator||",";const r=c.cacheInBuiltFormats?eg:tv;this.formats={number:r((o,d)=>{const h=new Intl.NumberFormat(o,{...d});return p=>h.format(p)}),currency:r((o,d)=>{const h=new Intl.NumberFormat(o,{...d,style:"currency"});return p=>h.format(p)}),datetime:r((o,d)=>{const h=new Intl.DateTimeFormat(o,{...d});return p=>h.format(p)}),relativetime:r((o,d)=>{const h=new Intl.RelativeTimeFormat(o,{...d});return p=>h.format(p,d.range||"day")}),list:r((o,d)=>{const h=new Intl.ListFormat(o,{...d});return p=>h.format(p)})}}add(i,c){this.formats[i.toLowerCase().trim()]=c}addCached(i,c){this.formats[i.toLowerCase().trim()]=eg(c)}format(i,c,r,o={}){if(!c||i==null)return i;const d=c.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&!d[0].includes(")")&&d.find(p=>p.includes(")"))){const p=d.findIndex(y=>y.includes(")"));d[0]=[d[0],...d.splice(1,p)].join(this.formatSeparator)}return d.reduce((p,y)=>{var v;const{formatName:g,formatOptions:b}=ev(y);if(this.formats[g]){let C=p;try{const L=((v=o==null?void 0:o.formatParams)==null?void 0:v[o.interpolationkey])||{},_=L.locale||L.lng||o.locale||o.lng||r;C=this.formats[g](p,_,{...b,...o,...L})}catch(L){this.logger.warn(L)}return C}else this.logger.warn(`there was no format function for ${g}`);return p},i)}}const av=(s,i)=>{s.pending[i]!==void 0&&(delete s.pending[i],s.pendingCount--)};class nv extends Ou{constructor(i,c,r,o={}){var d,h;super(),this.backend=i,this.store=c,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(h=(d=this.backend)==null?void 0:d.init)==null||h.call(d,r,o.backend,o)}queueLoad(i,c,r,o){const d={},h={},p={},y={};return i.forEach(g=>{let b=!0;c.forEach(v=>{const C=`${g}|${v}`;!r.reload&&this.store.hasResourceBundle(g,v)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?h[C]===void 0&&(h[C]=!0):(this.state[C]=1,b=!1,h[C]===void 0&&(h[C]=!0),d[C]===void 0&&(d[C]=!0),y[v]===void 0&&(y[v]=!0)))}),b||(p[g]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(y)}}loaded(i,c,r){const o=i.split("|"),d=o[0],h=o[1];c&&this.emit("failedLoading",d,h,c),!c&&r&&this.store.addResourceBundle(d,h,r,void 0,void 0,{skipCopy:!0}),this.state[i]=c?-1:2,c&&r&&(this.state[i]=0);const p={};this.queue.forEach(y=>{X0(y.loaded,[d],h),av(y,i),c&&y.errors.push(c),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(g=>{p[g]||(p[g]={});const b=y.loaded[g];b.length&&b.forEach(v=>{p[g][v]===void 0&&(p[g][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(y=>!y.done)}read(i,c,r,o=0,d=this.retryTimeout,h){if(!i.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:c,fcName:r,tried:o,wait:d,callback:h});return}this.readingCalls++;const p=(g,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(g&&b&&o<this.maxRetries){setTimeout(()=>{this.read(i,c,r,o+1,d*2,h)},d);return}h(g,b)},y=this.backend[r].bind(this.backend);if(y.length===2){try{const g=y(i,c);g&&typeof g.then=="function"?g.then(b=>p(null,b)).catch(p):p(null,g)}catch(g){p(g)}return}return y(i,c,p)}prepareLoading(i,c,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();te(i)&&(i=this.languageUtils.toResolveHierarchy(i)),te(c)&&(c=[c]);const d=this.queueLoad(i,c,r,o);if(!d.toLoad.length)return d.pending.length||o(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(i,c,r){this.prepareLoading(i,c,{},r)}reload(i,c,r){this.prepareLoading(i,c,{reload:!0},r)}loadOne(i,c=""){const r=i.split("|"),o=r[0],d=r[1];this.read(o,d,"read",void 0,void 0,(h,p)=>{h&&this.logger.warn(`${c}loading namespace ${d} for language ${o} failed`,h),!h&&p&&this.logger.log(`${c}loaded namespace ${d} for language ${o}`,p),this.loaded(i,h,p)})}saveMissing(i,c,r,o,d,h={},p=()=>{}){var y,g,b,v,C;if((g=(y=this.services)==null?void 0:y.utils)!=null&&g.hasLoadedNamespace&&!((v=(b=this.services)==null?void 0:b.utils)!=null&&v.hasLoadedNamespace(c))){this.logger.warn(`did not save key "${r}" as the namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((C=this.backend)!=null&&C.create){const L={...h,isUpdate:d},_=this.backend.create.bind(this.backend);if(_.length<6)try{let w;_.length===5?w=_(i,c,r,o,L):w=_(i,c,r,o),w&&typeof w.then=="function"?w.then(G=>p(null,G)).catch(p):p(null,w)}catch(w){p(w)}else _(i,c,r,o,p,L)}!i||!i[0]||this.store.addResource(i[0],c,r,o)}}}const nc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let i={};if(typeof s[1]=="object"&&(i=s[1]),te(s[1])&&(i.defaultValue=s[1]),te(s[2])&&(i.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const c=s[3]||s[2];Object.keys(c).forEach(r=>{i[r]=c[r]})}return i},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),tg=s=>(te(s.ns)&&(s.ns=[s.ns]),te(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),te(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs&&!s.supportedLngs.includes("cimode")&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),s),yu=()=>{},iv=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(c=>{typeof s[c]=="function"&&(s[c]=s[c].bind(s))})};class Zn extends Ou{constructor(i={},c){if(super(),this.options=tg(i),this.services={},this.logger=Qt,this.modules={external:[]},iv(this),c&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,c),this;setTimeout(()=>{this.init(i,c)},0)}}init(i={},c){this.isInitializing=!0,typeof i=="function"&&(c=i,i={}),i.defaultNS==null&&i.ns&&(te(i.ns)?i.defaultNS=i.ns:i.ns.includes("translation")||(i.defaultNS=i.ns[0]));const r=nc();this.options={...r,...this.options,...tg(i)},this.options.interpolation={...r.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const o=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?Qt.init(o(this.modules.logger),this.options):Qt.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=lv;const b=new kh(this.options);this.store=new $h(this.options.resources,this.options);const v=this.services;v.logger=Qt,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new P0(b,{prepend:this.options.pluralSeparator}),g&&(v.formatter=o(g),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new Ph(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new nv(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(C,...L)=>{this.emit(C,...L)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Tu(this.services,this.options),this.translator.on("*",(C,...L)=>{this.emit(C,...L)}),this.modules.external.forEach(C=>{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,c||(c=yu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...b)=>this.store[g](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...b)=>(this.store[g](...b),this)});const p=Qn(),y=()=>{const g=(b,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(v),c(b,v)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),p}loadResources(i,c=yu){var d,h;let r=c;const o=te(i)?i:this.language;if(typeof i=="function"&&(r=i),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const p=[],y=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(v=>{v!=="cimode"&&(p.includes(v)||p.push(v))})};o?y(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>y(b)),(h=(d=this.options.preload)==null?void 0:d.forEach)==null||h.call(d,g=>y(g)),this.services.backendConnector.load(p,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(g)})}else r(null)}reloadResources(i,c,r){const o=Qn();return typeof i=="function"&&(r=i,i=void 0),typeof c=="function"&&(r=c,c=void 0),i||(i=this.languages),c||(c=this.options.ns),r||(r=yu),this.services.backendConnector.reload(i,c,d=>{o.resolve(),r(d)}),o}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Ag.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!["cimode","dev"].includes(i)){for(let c=0;c<this.languages.length;c++){const r=this.languages[c];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(i)&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,c){this.isLanguageChangingTo=i;const r=Qn();this.emit("languageChanging",i);const o=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,y)=>{y?this.isLanguageChangingTo===i&&(o(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,r.resolve((...g)=>this.t(...g)),c&&c(p,(...g)=>this.t(...g))},h=p=>{var b,v;!i&&!p&&this.services.languageDetector&&(p=[]);const y=te(p)?p:p&&p[0],g=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(te(p)?[p]:p);g&&(this.language||o(g),this.translator.language||this.translator.changeLanguage(g),(v=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||v.call(b,g)),this.loadResources(g,C=>{d(C,g)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(i),r}getFixedT(i,c,r){const o=(d,h,...p)=>{let y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([d,h].concat(p)):y={...h},y.lng=y.lng||o.lng,y.lngs=y.lngs||o.lngs,y.ns=y.ns||o.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||r||o.keyPrefix);const g={...this.options,...y};typeof y.keyPrefix=="function"&&(y.keyPrefix=Qa(y.keyPrefix,g));const b=this.options.keySeparator||".";let v;return y.keyPrefix&&Array.isArray(d)?v=d.map(C=>(typeof C=="function"&&(C=Qa(C,g)),`${y.keyPrefix}${b}${C}`)):(typeof d=="function"&&(d=Qa(d,g)),v=y.keyPrefix?`${y.keyPrefix}${b}${d}`:d),this.t(v,y)};return te(i)?o.lng=i:o.lngs=i,o.ns=c,o.keyPrefix=r,o}t(...i){var c;return(c=this.translator)==null?void 0:c.translate(...i)}exists(...i){var c;return(c=this.translator)==null?void 0:c.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,c={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=c.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const h=(p,y)=>{const g=this.services.backendConnector.state[`${p}|${y}`];return g===-1||g===0||g===2};if(c.precheck){const p=c.precheck(this,h);if(p!==void 0)return p}return!!(this.hasResourceBundle(r,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(r,i)&&(!o||h(d,i)))}loadNamespaces(i,c){const r=Qn();return this.options.ns?(te(i)&&(i=[i]),i.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),c&&c(o)}),r):(c&&c(),Promise.resolve())}loadLanguages(i,c){const r=Qn();te(i)&&(i=[i]);const o=this.options.preload||[],d=i.filter(h=>!o.includes(h)&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=o.concat(d),this.loadResources(h=>{r.resolve(),c&&c(h)}),r):(c&&c(),Promise.resolve())}dir(i){var o,d;if(i||(i=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const h=new Intl.Locale(i);if(h&&h.getTextInfo){const p=h.getTextInfo();if(p&&p.direction)return p.direction}}catch{}const c=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((d=this.services)==null?void 0:d.languageUtils)||new kh(nc());return i.toLowerCase().indexOf("-latn")>1?"ltr":c.includes(r.getLanguagePartFromCode(i))||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},c){const r=new Zn(i,c);return r.createInstance=Zn.createInstance,r}cloneInstance(i={},c=yu){const r=i.forkResourceStore;r&&delete i.forkResourceStore;const o={...this.options,...i,isClone:!0},d=new Zn(o);if((i.debug!==void 0||i.prefix!==void 0)&&(d.logger=d.logger.clone(i)),["store","services","language"].forEach(p=>{d[p]=this[p]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},r){const p=Object.keys(this.store.data).reduce((y,g)=>(y[g]={...this.store.data[g]},y[g]=Object.keys(y[g]).reduce((b,v)=>(b[v]={...y[g][v]},b),y[g]),y),{});d.store=new $h(p,o),d.services.resourceStore=d.store}if(i.interpolation){const y={...nc().interpolation,...this.options.interpolation,...i.interpolation},g={...o,interpolation:y};d.services.interpolator=new Ph(g)}return d.translator=new Tu(d.services,o),d.translator.on("*",(p,...y)=>{d.emit(p,...y)}),d.init(o,c),d.translator.options=o,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ke=Zn.createInstance();ke.createInstance;ke.dir;ke.init;ke.loadResources;ke.reloadResources;ke.use;ke.changeLanguage;ke.getFixedT;ke.t;ke.exists;ke.setDefaultNamespace;ke.hasLoadedNamespace;ke.loadNamespaces;ke.loadLanguages;const uv=(s,i,c,r)=>{var d,h,p,y;const o=[c,{code:i,...r||{}}];if((h=(d=s==null?void 0:s.services)==null?void 0:d.logger)!=null&&h.forward)return s.services.logger.forward(o,"warn","react-i18next::",!0);na(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(y=(p=s==null?void 0:s.services)==null?void 0:p.logger)!=null&&y.warn?s.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},lg={},dc=(s,i,c,r)=>{na(c)&&lg[c]||(na(c)&&(lg[c]=new Date),uv(s,i,c,r))},Dg=(s,i)=>()=>{if(s.isInitialized)i();else{const c=()=>{setTimeout(()=>{s.off("initialized",c)},0),i()};s.on("initialized",c)}},hc=(s,i,c)=>{s.loadNamespaces(i,Dg(s,c))},ag=(s,i,c,r)=>{if(na(c)&&(c=[c]),s.options.preload&&s.options.preload.indexOf(i)>-1)return hc(s,c,r);c.forEach(o=>{s.options.ns.indexOf(o)<0&&s.options.ns.push(o)}),s.loadLanguages(i,Dg(s,r))},sv=(s,i,c={})=>!i.languages||!i.languages.length?(dc(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(s,{lng:c.lng,precheck:(r,o)=>{if(c.bindI18n&&c.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,s))return!1}}),na=s=>typeof s=="string",rv=s=>typeof s=="object"&&s!==null,cv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ov={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},fv=s=>ov[s],dv=s=>s.replace(cv,fv);let gc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:dv,transDefaultProps:void 0};const hv=(s={})=>{gc={...gc,...s}},gv=()=>gc;let Mg;const mv=s=>{Mg=s},pv=()=>Mg,yv={type:"3rdParty",init(s){hv(s.options.react),mv(s)}},vv=T.createContext();class Sv{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(c=>{this.usedNamespaces[c]||(this.usedNamespaces[c]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var ic={exports:{}},uc={};/**
|
|
60
|
+
Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let b=hl(),v;if(i){let q=typeof i=="string"?Ka(i):i;He(y==="/"||((G=q.pathname)==null?void 0:G.startsWith(y)),`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 "${y}" but pathname "${q.pathname}" was given in the \`location\` prop.`),v=q}else v=b;let A=v.pathname||"/",L=A;if(y!=="/"){let q=y.replace(/^\//,"").split("/");L="/"+A.replace(/^\//,"").split("/").slice(q.length).join("/")}let _=c&&c.state.matches.length?c.state.matches.map(q=>Object.assign(q,{route:c.manifest[q.route.id]||q.route})):ug(s,{pathname:L});Kt(g||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Kt(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=Py(_&&_.map(q=>Object.assign({},q,{params:Object.assign({},h,q.params),pathname:qt([y,r.encodeLocation?r.encodeLocation(q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?y:qt([y,r.encodeLocation?r.encodeLocation(q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),o,c);return i&&w?T.createElement(kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},w):w}function ky(){let s=n0(),i=jy(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:d},"ErrorBoundary")," or"," ",T.createElement("code",{style:d},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),c?T.createElement("pre",{style:o},c):null,h)}var Fy=T.createElement(ky,null),bg=class extends T.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,i){return i.location!==s.location||i.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:i.error,location:i.location,revalidation:s.revalidation||i.revalidation}}componentDidCatch(s,i){this.props.onError?this.props.onError(s,i):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const c=Qy(s.digest);c&&(s=c)}let i=s!==void 0?T.createElement(Zt.Provider,{value:this.props.routeContext},T.createElement(pc.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?T.createElement(Wy,{error:s},i):i}};bg.contextType=gg;var ec=new WeakMap;function Wy({children:s,error:i}){let{basename:c}=T.useContext(jt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Xy(i.digest);if(r){let o=ec.get(i);if(o)throw o;let d=dg(r.location,c);if(fg&&!ec.get(i))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw ec.set(i,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function Iy({routeContext:s,match:i,children:c}){let r=T.useContext(Za);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(Zt.Provider,{value:s},c)}function Py(s,i=[],c){let r=c==null?void 0:c.state;if(s==null){if(!r)return null;if(r.errors)s=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)s=r.matches;else return null}let o=s,d=r==null?void 0:r.errors;if(d!=null){let b=o.findIndex(v=>v.route.id&&(d==null?void 0:d[v.route.id])!==void 0);He(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let h=!1,p=-1;if(c&&r){h=r.renderFallback;for(let b=0;b<o.length;b++){let v=o[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=b),v.route.id){let{loaderData:A,errors:L}=r,_=v.route.loader&&!A.hasOwnProperty(v.route.id)&&(!L||L[v.route.id]===void 0);if(v.route.lazy||_){c.isStatic&&(h=!0),p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}}let y=c==null?void 0:c.onError,g=r&&y?(b,v)=>{var A,L;y(b,{location:r.location,params:((L=(A=r.matches)==null?void 0:A[0])==null?void 0:L.params)??{},pattern:Hy(r.matches),errorInfo:v})}:void 0;return o.reduceRight((b,v,A)=>{let L,_=!1,w=null,G=null;r&&(L=d&&v.route.id?d[v.route.id]:void 0,w=v.route.errorElement||Fy,h&&(p<0&&A===0?(xg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,G=null):p===A&&(_=!0,G=v.route.hydrateFallbackElement||null)));let q=i.concat(o.slice(0,A+1)),X=()=>{let Y;return L?Y=w:_?Y=G:v.route.Component?Y=T.createElement(v.route.Component,null):v.route.element?Y=v.route.element:Y=b,T.createElement(Iy,{match:v,routeContext:{outlet:b,matches:q,isDataRoute:r!=null},children:Y})};return r&&(v.route.ErrorBoundary||v.route.errorElement||A===0)?T.createElement(bg,{location:r.location,revalidation:r.revalidation,component:w,error:L,children:X(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:g}):X()},null)}function vc(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function e0(s){let i=T.useContext(Za);return He(i,vc(s)),i}function t0(s){let i=T.useContext(Cu);return He(i,vc(s)),i}function l0(s){let i=T.useContext(Zt);return He(i,vc(s)),i}function Sc(s){let i=l0(s),c=i.matches[i.matches.length-1];return He(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function a0(){return Sc("useRouteId")}function n0(){var r;let s=T.useContext(pc),i=t0("useRouteError"),c=Sc("useRouteError");return s!==void 0?s:(r=i.errors)==null?void 0:r[c]}function i0(){let{router:s}=e0("useNavigate"),i=Sc("useNavigate"),c=T.useRef(!1);return vg(()=>{c.current=!0}),T.useCallback(async(o,d={})=>{Kt(c.current,yg),c.current&&(typeof o=="number"?await s.navigate(o):await s.navigate(o,{fromRouteId:i,...d}))},[s,i])}var Vh={};function xg(s,i,c){!i&&!Vh[s]&&(Vh[s]=!0,Kt(!1,c))}T.memo(u0);function u0({routes:s,manifest:i,future:c,state:r,isStatic:o,onError:d}){return Sg(s,void 0,{manifest:i,state:r,isStatic:o,onError:d})}function cc(s){He(!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 s0({basename:s="/",children:i=null,location:c,navigationType:r="POP",navigator:o,static:d=!1,useTransitions:h}){He(!Fn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=s.replace(/^\/*/,"/"),y=T.useMemo(()=>({basename:p,navigator:o,static:d,useTransitions:h,future:{}}),[p,o,d,h]);typeof c=="string"&&(c=Ka(c));let{pathname:g="/",search:b="",hash:v="",state:A=null,key:L="default",mask:_}=c,w=T.useMemo(()=>{let G=dl(g,p);return G==null?null:{location:{pathname:G,search:b,hash:v,state:A,key:L,mask:_},navigationType:r}},[p,g,b,v,A,L,r,_]);return Kt(w!=null,`<Router basename="${p}"> is not able to match the URL "${g}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:T.createElement(jt.Provider,{value:y},T.createElement(kn.Provider,{children:i,value:w}))}function r0({children:s,location:i}){return $y(oc(s),i)}function oc(s,i=[]){let c=[];return T.Children.forEach(s,(r,o)=>{if(!T.isValidElement(r))return;let d=[...i,o];if(r.type===T.Fragment){c.push.apply(c,oc(r.props.children,d));return}He(r.type===cc,`[${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>`),He(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=oc(r.props.children,d)),c.push(h)}),c}var vu="get",Su="application/x-www-form-urlencoded";function zu(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function c0(s){return zu(s)&&s.tagName.toLowerCase()==="button"}function o0(s){return zu(s)&&s.tagName.toLowerCase()==="form"}function f0(s){return zu(s)&&s.tagName.toLowerCase()==="input"}function d0(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function h0(s,i){return s.button===0&&(!i||i==="_self")&&!d0(s)}var pu=null;function g0(){if(pu===null)try{new FormData(document.createElement("form"),0),pu=!1}catch{pu=!0}return pu}var m0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function tc(s){return s!=null&&!m0.has(s)?(Kt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Su}"`),null):s}function p0(s,i){let c,r,o,d,h;if(o0(s)){let p=s.getAttribute("action");r=p?dl(p,i):null,c=s.getAttribute("method")||vu,o=tc(s.getAttribute("enctype"))||Su,d=new FormData(s)}else if(c0(s)||f0(s)&&(s.type==="submit"||s.type==="image")){let p=s.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=s.getAttribute("formaction")||p.getAttribute("action");if(r=y?dl(y,i):null,c=s.getAttribute("formmethod")||p.getAttribute("method")||vu,o=tc(s.getAttribute("formenctype"))||tc(p.getAttribute("enctype"))||Su,d=new FormData(p,s),!g0()){let{name:g,type:b,value:v}=s;if(b==="image"){let A=g?`${g}.`:"";d.append(`${A}x`,"0"),d.append(`${A}y`,"0")}else g&&d.append(g,v)}}else{if(zu(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=vu,r=null,o=Su,h=s}return d&&o==="text/plain"&&(h=d,d=void 0),{action:r,method:c.toLowerCase(),encType:o,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function bc(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Eg(s,i,c,r){let o=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return c?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:i&&dl(o.pathname,i)==="/"?o.pathname=`${xu(i)}/_root.${r}`:o.pathname=`${xu(o.pathname)}.${r}`,o}async function y0(s,i){if(s.id in i)return i[s.id];try{let c=await import(s.module);return i[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function v0(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function S0(s,i,c){let r=await Promise.all(s.map(async o=>{let d=i.routes[o.route.id];if(d){let h=await y0(d,c);return h.links?h.links():[]}return[]}));return R0(r.flat(1).filter(v0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Xh(s,i,c,r,o,d){let h=(y,g)=>c[g]?y.route.id!==c[g].route.id:!0,p=(y,g)=>{var b;return c[g].pathname!==y.pathname||((b=c[g].route.path)==null?void 0:b.endsWith("*"))&&c[g].params["*"]!==y.params["*"]};return d==="assets"?i.filter((y,g)=>h(y,g)||p(y,g)):d==="data"?i.filter((y,g)=>{var v;let b=r.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(h(y,g)||p(y,g))return!0;if(y.route.shouldRevalidate){let A=y.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=c[0])==null?void 0:v.params)||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof A=="boolean")return A}return!0}):[]}function b0(s,i,{includeHydrateFallback:c}={}){return x0(s.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 x0(s){return[...new Set(s)]}function E0(s){let i={},c=Object.keys(s).sort();for(let r of c)i[r]=s[r];return i}function R0(s,i){let c=new Set;return new Set(i),s.reduce((r,o)=>{let d=JSON.stringify(E0(o));return c.has(d)||(c.add(d),r.push({key:d,link:o})),r},[])}function xc(){let s=T.useContext(Za);return bc(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function T0(){let s=T.useContext(Cu);return bc(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Ec=T.createContext(void 0);Ec.displayName="FrameworkContext";function Rc(){let s=T.useContext(Ec);return bc(s,"You must render this element inside a <HydratedRouter> element"),s}function A0(s,i){let c=T.useContext(Ec),[r,o]=T.useState(!1),[d,h]=T.useState(!1),{onFocus:p,onBlur:y,onMouseEnter:g,onMouseLeave:b,onTouchStart:v}=i,A=T.useRef(null);T.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let w=q=>{q.forEach(X=>{h(X.isIntersecting)})},G=new IntersectionObserver(w,{threshold:.5});return A.current&&G.observe(A.current),()=>{G.disconnect()}}},[s]),T.useEffect(()=>{if(r){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[r]);let L=()=>{o(!0)},_=()=>{o(!1),h(!1)};return c?s!=="intent"?[d,A,{}]:[d,A,{onFocus:Xn(p,L),onBlur:Xn(y,_),onMouseEnter:Xn(g,L),onMouseLeave:Xn(b,_),onTouchStart:Xn(v,L)}]:[!1,A,{}]}function Xn(s,i){return c=>{s&&s(c),c.defaultPrevented||i(c)}}function C0({page:s,...i}){let c=wy(),{router:r}=xc(),o=T.useMemo(()=>ug(r.routes,s,r.basename),[r.routes,s,r.basename]);return o?c?T.createElement(O0,{page:s,matches:o,...i}):T.createElement(D0,{page:s,matches:o,...i}):null}function z0(s){let{manifest:i,routeModules:c}=Rc(),[r,o]=T.useState([]);return T.useEffect(()=>{let d=!1;return S0(s,i,c).then(h=>{d||o(h)}),()=>{d=!0}},[s,i,c]),r}function O0({page:s,matches:i,...c}){let r=hl(),{future:o}=Rc(),{basename:d}=xc(),h=T.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let p=Eg(s,d,o.v8_trailingSlashAwareDataRequests,"rsc"),y=!1,g=[];for(let b of i)typeof b.route.shouldRevalidate=="function"?y=!0:g.push(b.route.id);return y&&g.length>0&&p.searchParams.set("_routes",g.join(",")),[p.pathname+p.search]},[d,o.v8_trailingSlashAwareDataRequests,s,r,i]);return T.createElement(T.Fragment,null,h.map(p=>T.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...c})))}function D0({page:s,matches:i,...c}){let r=hl(),{future:o,manifest:d,routeModules:h}=Rc(),{basename:p}=xc(),{loaderData:y,matches:g}=T0(),b=T.useMemo(()=>Xh(s,i,g,d,r,"data"),[s,i,g,d,r]),v=T.useMemo(()=>Xh(s,i,g,d,r,"assets"),[s,i,g,d,r]),A=T.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let w=new Set,G=!1;if(i.forEach(X=>{var Q;let Y=d.routes[X.route.id];!Y||!Y.hasLoader||(!b.some(I=>I.route.id===X.route.id)&&X.route.id in y&&((Q=h[X.route.id])!=null&&Q.shouldRevalidate)||Y.hasClientLoader?G=!0:w.add(X.route.id))}),w.size===0)return[];let q=Eg(s,p,o.v8_trailingSlashAwareDataRequests,"data");return G&&w.size>0&&q.searchParams.set("_routes",i.filter(X=>w.has(X.route.id)).map(X=>X.route.id).join(",")),[q.pathname+q.search]},[p,o.v8_trailingSlashAwareDataRequests,y,r,d,b,i,s,h]),L=T.useMemo(()=>b0(v,d),[v,d]),_=z0(v);return T.createElement(T.Fragment,null,A.map(w=>T.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...c})),L.map(w=>T.createElement("link",{key:w,rel:"modulepreload",href:w,...c})),_.map(({key:w,link:G})=>T.createElement("link",{key:w,nonce:c.nonce,...G,crossOrigin:G.crossOrigin??c.crossOrigin})))}function M0(...s){return i=>{s.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var _0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{_0&&(window.__reactRouterVersion="7.16.0")}catch{}function N0({basename:s,children:i,useTransitions:c,window:r}){let o=T.useRef();o.current==null&&(o.current=oy({window:r,v5Compat:!0}));let d=o.current,[h,p]=T.useState({action:d.action,location:d.location}),y=T.useCallback(g=>{c===!1?p(g):T.startTransition(()=>p(g))},[c]);return T.useLayoutEffect(()=>d.listen(y),[d,y]),T.createElement(s0,{basename:s,children:i,location:h.location,navigationType:h.action,navigator:d,useTransitions:c})}var Rg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tg=T.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:o,reloadDocument:d,replace:h,mask:p,state:y,target:g,to:b,preventScrollReset:v,viewTransition:A,defaultShouldRevalidate:L,..._},w){let{basename:G,navigator:q,useTransitions:X}=T.useContext(jt),Y=typeof b=="string"&&Rg.test(b),Q=dg(b,G);b=Q.to;let I=Ky(b,{relative:o}),se=hl(),k=null;if(p){let oe=mc(p,[],se.mask?se.mask.pathname:"/",!0);G!=="/"&&(oe.pathname=oe.pathname==="/"?G:qt([G,oe.pathname])),k=q.createHref(oe)}let[ge,ce,me]=A0(r,_),Be=H0(b,{replace:h,mask:p,state:y,target:g,preventScrollReset:v,relative:o,viewTransition:A,defaultShouldRevalidate:L,useTransitions:X});function le(oe){i&&i(oe),oe.defaultPrevented||Be(oe)}let ee=!(Q.isExternal||d),ne=T.createElement("a",{..._,...me,href:(ee?k:void 0)||Q.absoluteURL||I,onClick:ee?le:i,ref:M0(w,ce),target:g,"data-discover":!Y&&c==="render"?"true":void 0});return ge&&!Y?T.createElement(T.Fragment,null,ne,T.createElement(C0,{page:I})):ne});Tg.displayName="Link";var L0=T.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:o=!1,style:d,to:h,viewTransition:p,children:y,...g},b){let v=Wn(h,{relative:g.relative}),A=hl(),L=T.useContext(Cu),{navigator:_,basename:w}=T.useContext(jt),G=L!=null&&G0(v)&&p===!0,q=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,X=A.pathname,Y=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;c||(X=X.toLowerCase(),Y=Y?Y.toLowerCase():null,q=q.toLowerCase()),Y&&w&&(Y=dl(Y,w)||Y);const Q=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let I=X===q||!o&&X.startsWith(q)&&X.charAt(Q)==="/",se=Y!=null&&(Y===q||!o&&Y.startsWith(q)&&Y.charAt(q.length)==="/"),k={isActive:I,isPending:se,isTransitioning:G},ge=I?i:void 0,ce;typeof r=="function"?ce=r(k):ce=[r,I?"active":null,se?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let me=typeof d=="function"?d(k):d;return T.createElement(Tg,{...g,"aria-current":ge,className:ce,ref:b,style:me,to:h,viewTransition:p},typeof y=="function"?y(k):y)});L0.displayName="NavLink";var U0=T.forwardRef(({discover:s="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:o,state:d,method:h=vu,action:p,onSubmit:y,relative:g,preventScrollReset:b,viewTransition:v,defaultShouldRevalidate:A,...L},_)=>{let{useTransitions:w}=T.useContext(jt),G=q0(),q=Y0(p,{relative:g}),X=h.toLowerCase()==="get"?"get":"post",Y=typeof p=="string"&&Rg.test(p),Q=I=>{if(y&&y(I),I.defaultPrevented)return;I.preventDefault();let se=I.nativeEvent.submitter,k=(se==null?void 0:se.getAttribute("formmethod"))||h,ge=()=>G(se||I.currentTarget,{fetcherKey:i,method:k,navigate:c,replace:o,state:d,relative:g,preventScrollReset:b,viewTransition:v,defaultShouldRevalidate:A});w&&c!==!1?T.startTransition(()=>ge()):ge()};return T.createElement("form",{ref:_,method:X,action:q,onSubmit:r?y:Q,...L,"data-discover":!Y&&s==="render"?"true":void 0})});U0.displayName="Form";function j0(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ag(s){let i=T.useContext(Za);return He(i,j0(s)),i}function H0(s,{target:i,replace:c,mask:r,state:o,preventScrollReset:d,relative:h,viewTransition:p,defaultShouldRevalidate:y,useTransitions:g}={}){let b=yc(),v=hl(),A=Wn(s,{relative:h});return T.useCallback(L=>{if(h0(L,i)){L.preventDefault();let _=c!==void 0?c:Jn(v)===Jn(A),w=()=>b(s,{replace:_,mask:r,state:o,preventScrollReset:d,relative:h,viewTransition:p,defaultShouldRevalidate:y});g?T.startTransition(()=>w()):w()}},[v,b,A,c,r,o,i,s,d,h,p,y,g])}var B0=0,w0=()=>`__${String(++B0)}__`;function q0(){let{router:s}=Ag("useSubmit"),{basename:i}=T.useContext(jt),c=a0(),r=s.fetch,o=s.navigate;return T.useCallback(async(d,h={})=>{let{action:p,method:y,encType:g,formData:b,body:v}=p0(d,i);if(h.navigate===!1){let A=h.fetcherKey||w0();await r(A,c,h.action||p,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||g,flushSync:h.flushSync})}else await o(h.action||p,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:c,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,o,i,c])}function Y0(s,{relative:i}={}){let{basename:c}=T.useContext(jt),r=T.useContext(Zt);He(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),d={...Wn(s||".",{relative:i})},h=hl();if(s==null){d.search=h.search;let p=new URLSearchParams(d.search),y=p.getAll("index");if(y.some(b=>b==="")){p.delete("index"),y.filter(v=>v).forEach(v=>p.append("index",v));let b=p.toString();d.search=b?`?${b}`:""}}return(!s||s===".")&&o.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:qt([c,d.pathname])),Jn(d)}function G0(s,{relative:i}={}){let c=T.useContext(mg);He(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ag("useViewTransitionState"),o=Wn(s,{relative:i});if(!c.isTransitioning)return!1;let d=dl(c.currentLocation.pathname,r)||c.currentLocation.pathname,h=dl(c.nextLocation.pathname,r)||c.nextLocation.pathname;return bu(o.pathname,h)!=null||bu(o.pathname,d)!=null}const te=s=>typeof s=="string",Qn=()=>{let s,i;const c=new Promise((r,o)=>{s=r,i=o});return c.resolve=s,c.reject=i,c},Qh=s=>s==null?"":String(s),V0=(s,i,c)=>{s.forEach(r=>{i[r]&&(c[r]=i[r])})},X0=/###/g,Kh=s=>s&&s.includes("###")?s.replace(X0,"."):s,Zh=s=>!s||te(s),Kn=(s,i,c)=>{const r=te(i)?i.split("."):i;let o=0;for(;o<r.length-1;){if(Zh(s))return{};const d=Kh(r[o]);!s[d]&&c&&(s[d]=new c),Object.prototype.hasOwnProperty.call(s,d)?s=s[d]:s={},++o}return Zh(s)?{}:{obj:s,k:Kh(r[o])}},Jh=(s,i,c)=>{const{obj:r,k:o}=Kn(s,i,Object);if(r!==void 0||i.length===1){r[o]=c;return}let d=i[i.length-1],h=i.slice(0,i.length-1),p=Kn(s,h,Object);for(;p.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),p=Kn(s,h,Object),p!=null&&p.obj&&typeof p.obj[`${p.k}.${d}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${d}`]=c},Q0=(s,i,c,r)=>{const{obj:o,k:d}=Kn(s,i,Object);o[d]=o[d]||[],o[d].push(c)},Eu=(s,i)=>{const{obj:c,k:r}=Kn(s,i);if(c&&Object.prototype.hasOwnProperty.call(c,r))return c[r]},K0=(s,i,c)=>{const r=Eu(s,c);return r!==void 0?r:Eu(i,c)},Cg=(s,i,c)=>{for(const r in i)r!=="__proto__"&&r!=="constructor"&&(r in s?te(s[r])||s[r]instanceof String||te(i[r])||i[r]instanceof String?c&&(s[r]=i[r]):Cg(s[r],i[r],c):s[r]=i[r]);return s},fl=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Z0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},J0=s=>te(s)?s.replace(/[&<>"'\/]/g,i=>Z0[i]):s;class $0{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const c=this.regExpMap.get(i);if(c!==void 0)return c;const r=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,r),this.regExpQueue.push(i),r}}const k0=[" ",",","?","!",";"],F0=new $0(20),W0=(s,i,c)=>{i=i||"",c=c||"";const r=k0.filter(h=>!i.includes(h)&&!c.includes(h));if(r.length===0)return!0;const o=F0.getRegExp(`(${r.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!o.test(s);if(!d){const h=s.indexOf(c);h>0&&!o.test(s.substring(0,h))&&(d=!0)}return d},fc=(s,i,c=".")=>{if(!s)return;if(s[i])return Object.prototype.hasOwnProperty.call(s,i)?s[i]:void 0;const r=i.split(c);let o=s;for(let d=0;d<r.length;){if(!o||typeof o!="object")return;let h,p="";for(let y=d;y<r.length;++y)if(y!==d&&(p+=c),p+=r[y],h=o[p],h!==void 0){if(["string","number","boolean"].includes(typeof h)&&y<r.length-1)continue;d+=y-d+1;break}o=h}return o},$n=s=>s==null?void 0:s.replace(/_/g,"-"),I0={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,i){var c,r;(r=(c=console==null?void 0:console[s])==null?void 0:c.apply)==null||r.call(c,console,i)}};class Ru{constructor(i,c={}){this.init(i,c)}init(i,c={}){this.prefix=c.prefix||"i18next:",this.logger=i||I0,this.options=c,this.debug=c.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,c,r,o){return o&&!this.debug?null:(i=i.map(d=>te(d)?d.replace(/[\r\n\x00-\x1F\x7F]/g," "):d),te(i[0])&&(i[0]=`${r}${this.prefix} ${i[0]}`),this.logger[c](i))}create(i){return new Ru(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new Ru(this.logger,i)}}var Qt=new Ru;class Ou{constructor(){this.observers={}}on(i,c){return i.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(c)||0;this.observers[r].set(c,o+1)}),this}off(i,c){if(this.observers[i]){if(!c){delete this.observers[i];return}this.observers[i].delete(c)}}once(i,c){const r=(...o)=>{c(...o),this.off(i,r)};return this.on(i,r),this}emit(i,...c){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([o,d])=>{for(let h=0;h<d;h++)o(...c)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,d])=>{for(let h=0;h<d;h++)o(i,...c)})}}class $h extends Ou{constructor(i,c={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.includes(i)||this.options.ns.push(i)}removeNamespaces(i){const c=this.options.ns.indexOf(i);c>-1&&this.options.ns.splice(c,1)}getResource(i,c,r,o={}){var g,b;const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,h=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;i.includes(".")?p=i.split("."):(p=[i,c],r&&(Array.isArray(r)?p.push(...r):te(r)&&d?p.push(...r.split(d)):p.push(r)));const y=Eu(this.data,p);return!y&&!c&&!r&&i.includes(".")&&(i=p[0],c=p[1],r=p.slice(2).join(".")),y||!h||!te(r)?y:fc((b=(g=this.data)==null?void 0:g[i])==null?void 0:b[c],r,d)}addResource(i,c,r,o,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let p=[i,c];r&&(p=p.concat(h?r.split(h):r)),i.includes(".")&&(p=i.split("."),o=c,c=p[1]),this.addNamespaces(c),Jh(this.data,p,o),d.silent||this.emit("added",i,c,r,o)}addResources(i,c,r,o={silent:!1}){for(const d in r)(te(r[d])||Array.isArray(r[d]))&&this.addResource(i,c,d,r[d],{silent:!0});o.silent||this.emit("added",i,c,r)}addResourceBundle(i,c,r,o,d,h={silent:!1,skipCopy:!1}){let p=[i,c];i.includes(".")&&(p=i.split("."),o=r,r=c,c=p[1]),this.addNamespaces(c);let y=Eu(this.data,p)||{};h.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Cg(y,r,d):y={...y,...r},Jh(this.data,p,y),h.silent||this.emit("added",i,c,r)}removeResourceBundle(i,c){this.hasResourceBundle(i,c)&&delete this.data[i][c],this.removeNamespaces(c),this.emit("removed",i,c)}hasResourceBundle(i,c){return this.getResource(i,c)!==void 0}getResourceBundle(i,c){return c||(c=this.options.defaultNS),this.getResource(i,c)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const c=this.getDataByLanguage(i);return!!(c&&Object.keys(c)||[]).find(o=>c[o]&&Object.keys(c[o]).length>0)}toJSON(){return this.data}}var zg={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,i,c,r,o){return s.forEach(d=>{var h;i=((h=this.processors[d])==null?void 0:h.process(i,c,r,o))??i}),i}};const Og=Symbol("i18next/PATH_KEY");function P0(){const s=[],i=Object.create(null);let c;return i.get=(r,o)=>{var d;return(d=c==null?void 0:c.revoke)==null||d.call(c),o===Og?s:(s.push(o),c=Proxy.revocable(r,i),c.proxy)},Proxy.revocable(Object.create(null),i).proxy}function Qa(s,i){const{[Og]:c}=s(P0()),r=(i==null?void 0:i.keySeparator)??".",o=(i==null?void 0:i.nsSeparator)??":";if(c.length>1&&o){const d=i==null?void 0:i.ns,h=Array.isArray(d)?d:null;if(h&&h.length>1&&h.slice(1).includes(c[0]))return`${c[0]}${o}${c.slice(1).join(r)}`}return c.join(r)}const lc=s=>!te(s)&&typeof s!="boolean"&&typeof s!="number";class Tu extends Ou{constructor(i,c={}){super(),V0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator"),this.checkedLoadedFor={}}changeLanguage(i){i&&(this.language=i)}exists(i,c={interpolation:{}}){const r={...c};if(i==null)return!1;const o=this.resolve(i,r);if((o==null?void 0:o.res)===void 0)return!1;const d=lc(o.res);return!(r.returnObjects===!1&&d)}extractFromKey(i,c){let r=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let d=c.ns||this.options.defaultNS||[];const h=r&&i.includes(r),p=!this.options.userDefinedKeySeparator&&!c.keySeparator&&!this.options.userDefinedNsSeparator&&!c.nsSeparator&&!W0(i,r,o);if(h&&!p){const y=i.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:i,namespaces:te(d)?[d]:d};const g=i.split(r);(r!==o||r===o&&this.options.ns.includes(g[0]))&&(d=g.shift()),i=g.join(o)}return{key:i,namespaces:te(d)?[d]:d}}translate(i,c,r){let o=typeof c=="object"?{...c}:c;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";typeof i=="function"&&(i=Qa(i,{...this.options,...o})),Array.isArray(i)||(i=[String(i)]),i=i.map(ee=>typeof ee=="function"?Qa(ee,{...this.options,...o}):String(ee));const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,h=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:p,namespaces:y}=this.extractFromKey(i[i.length-1],o),g=y[y.length-1];let b=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=o.lng||this.language,A=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return A?d?{res:`${g}${b}${p}`,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:g,usedParams:this.getUsedParamsDetails(o)}:`${g}${b}${p}`:d?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:g,usedParams:this.getUsedParamsDetails(o)}:p;const L=this.resolve(i,o);let _=L==null?void 0:L.res;const w=(L==null?void 0:L.usedKey)||p,G=(L==null?void 0:L.exactUsedKey)||p,q=["[object Number]","[object Function]","[object RegExp]"],X=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,Y=!this.i18nFormat||this.i18nFormat.handleAsObject,Q=o.count!==void 0&&!te(o.count),I=Tu.hasDefaultValue(o),se=Q?this.pluralResolver.getSuffix(v,o.count,o):"",k=o.ordinal&&Q?this.pluralResolver.getSuffix(v,o.count,{ordinal:!1}):"",ge=Q&&!o.ordinal&&o.count===0,ce=ge&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${se}`]||o[`defaultValue${k}`]||o.defaultValue;let me=_;Y&&!_&&I&&(me=ce);const Be=lc(me),le=Object.prototype.toString.apply(me);if(Y&&me&&Be&&!q.includes(le)&&!(te(X)&&Array.isArray(me))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,me,{...o,ns:y}):`key '${p} (${this.language})' returned an object instead of string.`;return d?(L.res=ee,L.usedParams=this.getUsedParamsDetails(o),L):ee}if(h){const ee=Array.isArray(me),ne=ee?[]:{},oe=ee?G:w;for(const D in me)if(Object.prototype.hasOwnProperty.call(me,D)){const V=`${oe}${h}${D}`;I&&!_?ne[D]=this.translate(V,{...o,defaultValue:lc(ce)?ce[D]:void 0,joinArrays:!1,ns:y}):ne[D]=this.translate(V,{...o,joinArrays:!1,ns:y}),ne[D]===V&&(ne[D]=me[D])}_=ne}}else if(Y&&te(X)&&Array.isArray(_))_=_.join(X),_&&(_=this.extendTranslation(_,i,o,r));else{let ee=!1,ne=!1;!this.isValidLookup(_)&&I&&(ee=!0,_=ce),this.isValidLookup(_)||(ne=!0,_=p);const D=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ne?void 0:_,V=I&&ce!==_&&this.options.updateMissing;if(ne||ee||V){if(this.logger.log(V?"updateKey":"missingKey",v,g,p,V?ce:_),h){const x=this.resolve(p,{...o,keySeparator:!1});x&&x.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(let x=0;x<Se.length;x++)F.push(Se[x]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(o.lng||this.language):F.push(o.lng||this.language);const Re=(x,j,K)=>{var ae;const Z=I&&K!==_?K:D;this.options.missingKeyHandler?this.options.missingKeyHandler(x,g,j,Z,V,o):(ae=this.backendConnector)!=null&&ae.saveMissing&&this.backendConnector.saveMissing(x,g,j,Z,V,o),this.emit("missingKey",x,g,j,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Q?F.forEach(x=>{const j=this.pluralResolver.getSuffixes(x,o);ge&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!j.includes(`${this.options.pluralSeparator}zero`)&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(K=>{Re([x],p+K,o[`defaultValue${K}`]||ce)})}):Re(F,p,ce))}_=this.extendTranslation(_,i,o,L,r),ne&&_===p&&this.options.appendNamespaceToMissingKey&&(_=`${g}${b}${p}`),(ne||ee)&&this.options.parseMissingKeyHandler&&(_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${b}${p}`:p,ee?_:void 0,o))}return d?(L.res=_,L.usedParams=this.getUsedParamsDetails(o),L):_}extendTranslation(i,c,r,o,d){var y,g;if((y=this.i18nFormat)!=null&&y.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const b=te(i)&&(((g=r==null?void 0:r.interpolation)==null?void 0:g.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(b){const L=i.match(this.interpolator.nestingRegexp);v=L&&L.length}let A=r.replace&&!te(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(A={...this.options.interpolation.defaultVariables,...A}),i=this.interpolator.interpolate(i,A,r.lng||this.language||o.usedLng,r),b){const L=i.match(this.interpolator.nestingRegexp),_=L&&L.length;v<_&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(i=this.interpolator.nest(i,(...L)=>(d==null?void 0:d[0])===L[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${L[0]} in key: ${c[0]}`),null):this.translate(...L,c),r)),r.interpolation&&this.interpolator.reset()}const h=r.postProcess||this.options.postProcess,p=te(h)?[h]:h;return i!=null&&(p!=null&&p.length)&&r.applyPostProcessor!==!1&&(i=zg.handle(p,i,c,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),i}resolve(i,c={}){let r,o,d,h,p;return te(i)&&(i=[i]),Array.isArray(i)&&(i=i.map(y=>typeof y=="function"?Qa(y,{...this.options,...c}):y)),i.forEach(y=>{if(this.isValidLookup(r))return;const g=this.extractFromKey(y,c),b=g.key;o=b;let v=g.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const A=c.count!==void 0&&!te(c.count),L=A&&!c.ordinal&&c.count===0,_=c.context!==void 0&&(te(c.context)||typeof c.context=="number")&&c.context!=="",w=c.lngs?c.lngs:this.languageUtils.toResolveHierarchy(c.lng||this.language,c.fallbackLng);v.forEach(G=>{var q,X;this.isValidLookup(r)||(p=G,!this.checkedLoadedFor[`${w[0]}-${G}`]&&((q=this.utils)!=null&&q.hasLoadedNamespace)&&!((X=this.utils)!=null&&X.hasLoadedNamespace(p))&&(this.checkedLoadedFor[`${w[0]}-${G}`]=!0,this.logger.warn(`key "${o}" for languages "${w.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(Y=>{var se;if(this.isValidLookup(r))return;h=Y;const Q=[b];if((se=this.i18nFormat)!=null&&se.addLookupKeys)this.i18nFormat.addLookupKeys(Q,b,Y,G,c);else{let k;A&&(k=this.pluralResolver.getSuffix(Y,c.count,c));const ge=`${this.options.pluralSeparator}zero`,ce=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(A&&(c.ordinal&&k.startsWith(ce)&&Q.push(b+k.replace(ce,this.options.pluralSeparator)),Q.push(b+k),L&&Q.push(b+ge)),_){const me=`${b}${this.options.contextSeparator||"_"}${c.context}`;Q.push(me),A&&(c.ordinal&&k.startsWith(ce)&&Q.push(me+k.replace(ce,this.options.pluralSeparator)),Q.push(me+k),L&&Q.push(me+ge))}}let I;for(;I=Q.pop();)this.isValidLookup(r)||(d=I,r=this.getResource(Y,G,I,c))}))})}),{res:r,usedKey:o,exactUsedKey:d,usedLng:h,usedNS:p}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,c,r,o={}){var d;return(d=this.i18nFormat)!=null&&d.getResource?this.i18nFormat.getResource(i,c,r,o):this.resourceStore.getResource(i,c,r,o)}getUsedParamsDetails(i={}){const c=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=i.replace&&!te(i.replace);let o=r?i.replace:i;if(r&&typeof i.count<"u"&&(o.count=i.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const d of c)delete o[d]}return o}static hasDefaultValue(i){const c="defaultValue";for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.startsWith(c)&&i[r]!==void 0)return!0;return!1}}class kh{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(i){if(i=$n(i),!i||!i.includes("-"))return null;const c=i.split("-");return c.length===2||(c.pop(),c[c.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(c.join("-"))}getLanguagePartFromCode(i){if(i=$n(i),!i||!i.includes("-"))return i;const c=i.split("-");return this.formatLanguageCode(c[0])}formatLanguageCode(i){if(te(i)&&i.includes("-")){let c;try{c=Intl.getCanonicalLocales(i)[0]}catch{}return c&&this.options.lowerCaseLng&&(c=c.toLowerCase()),c||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(i)}getBestMatchFromCodes(i){if(!i)return null;let c;return i.forEach(r=>{if(c)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(c=o)}),!c&&this.options.supportedLngs&&i.forEach(r=>{if(c)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return c=o;const d=this.getLanguagePartFromCode(r);if(this.isSupportedCode(d))return c=d;c=this.options.supportedLngs.find(h=>h===d?!0:!h.includes("-")&&!d.includes("-")?!1:!!(h.includes("-")&&!d.includes("-")&&h.slice(0,h.indexOf("-"))===d||h.startsWith(d)&&d.length>1))}),c||(c=this.getFallbackCodes(this.options.fallbackLng)[0]),c}getFallbackCodes(i,c){if(!i)return[];if(typeof i=="function"&&(i=i(c)),te(i)&&(i=[i]),Array.isArray(i))return i;if(!c)return i.default||[];let r=i[c];return r||(r=i[this.getScriptPartFromCode(c)]),r||(r=i[this.formatLanguageCode(c)]),r||(r=i[this.getLanguagePartFromCode(c)]),r||(r=i.default),r||[]}toResolveHierarchy(i,c){const r=this.getFallbackCodes((c===!1?[]:c)||this.options.fallbackLng||[],i),o=[],d=h=>{h&&(this.isSupportedCode(h)?o.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return te(i)&&(i.includes("-")||i.includes("_"))?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(i))):te(i)&&d(this.formatLanguageCode(i)),r.forEach(h=>{o.includes(h)||d(this.formatLanguageCode(h))}),o}}const Fh={zero:0,one:1,two:2,few:3,many:4,other:5},Wh={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ev{constructor(i,c={}){this.languageUtils=i,this.options=c,this.logger=Qt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,c={}){const r=$n(i==="dev"?"en":i),o=c.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:r,type:o});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Wh;if(!i.match(/-|_/))return Wh;const y=this.languageUtils.getLanguagePartFromCode(i);h=this.getRule(y,c)}return this.pluralRulesCache[d]=h,h}needsPlural(i,c={}){let r=this.getRule(i,c);return r||(r=this.getRule("dev",c)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,c,r={}){return this.getSuffixes(i,r).map(o=>`${c}${o}`)}getSuffixes(i,c={}){let r=this.getRule(i,c);return r||(r=this.getRule("dev",c)),r?r.resolvedOptions().pluralCategories.sort((o,d)=>Fh[o]-Fh[d]).map(o=>`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(i,c,r={}){const o=this.getRule(i,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(c)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",c,r))}}const Ih=(s,i,c,r=".",o=!0)=>{let d=K0(s,i,c);return!d&&o&&te(c)&&(d=fc(s,c,r),d===void 0&&(d=fc(i,c,r))),d},ac=s=>s.replace(/\$/g,"$$$$");class Ph{constructor(i={}){var c;this.logger=Qt.create("interpolator"),this.options=i,this.format=((c=i==null?void 0:i.interpolation)==null?void 0:c.format)||(r=>r),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:c,escapeValue:r,useRawValueToEscape:o,prefix:d,prefixEscaped:h,suffix:p,suffixEscaped:y,formatSeparator:g,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:A,nestingPrefixEscaped:L,nestingSuffix:_,nestingSuffixEscaped:w,nestingOptionsSeparator:G,maxReplaces:q,alwaysFormat:X}=i.interpolation;this.escape=c!==void 0?c:J0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=d?fl(d):h||"{{",this.suffix=p?fl(p):y||"}}",this.formatSeparator=g||",",this.unescapePrefix=b?"":v?fl(v):"-",this.unescapeSuffix=this.unescapePrefix?"":b?fl(b):"",this.nestingPrefix=A?fl(A):L||fl("$t("),this.nestingSuffix=_?fl(_):w||fl(")"),this.nestingOptionsSeparator=G||",",this.maxReplaces=q||1e3,this.alwaysFormat=X!==void 0?X:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(c,r)=>(c==null?void 0:c.source)===r?(c.lastIndex=0,c):new RegExp(r,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,c,r,o){var L;let d,h,p;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=_=>{if(!_.includes(this.formatSeparator)){const X=Ih(c,y,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(X,void 0,r,{...o,...c,interpolationkey:_}):X}const w=_.split(this.formatSeparator),G=w.shift().trim(),q=w.join(this.formatSeparator).trim();return this.format(Ih(c,y,G,this.options.keySeparator,this.options.ignoreJSONStructure),q,r,{...o,...c,interpolationkey:G})};this.resetRegExp(),!this.escapeValue&&typeof i=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(i)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const b=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((L=o==null?void 0:o.interpolation)==null?void 0:L.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>ac(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?ac(this.escape(_)):ac(_)}].forEach(_=>{for(p=0;d=_.regex.exec(i);){const w=d[1].trim();if(h=g(w),h===void 0)if(typeof b=="function"){const q=b(i,d,o);h=te(q)?q:""}else if(o&&Object.prototype.hasOwnProperty.call(o,w))h="";else if(v){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${i}`),h="";else!te(h)&&!this.useRawValueToEscape&&(h=Qh(h));const G=_.safeValue(h);if(i=i.replace(d[0],G),v?(_.regex.lastIndex+=h.length,_.regex.lastIndex-=d[0].length):_.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),i}nest(i,c,r={}){let o,d,h;const p=(y,g)=>{const b=this.nestingOptionsSeparator;if(!y.includes(b))return y;const v=y.split(new RegExp(`${fl(b)}[ ]*{`));let A=`{${v[1]}`;y=v[0],A=this.interpolate(A,h);const L=A.match(/'/g),_=A.match(/"/g);(((L==null?void 0:L.length)??0)%2===0&&!_||((_==null?void 0:_.length)??0)%2!==0)&&(A=A.replace(/'/g,'"'));try{h=JSON.parse(A),g&&(h={...g,...h})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,w),`${y}${b}${A}`}return h.defaultValue&&h.defaultValue.includes(this.prefix)&&delete h.defaultValue,y};for(;o=this.nestingRegexp.exec(i);){let y=[];h={...r},h=h.replace&&!te(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const g=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(g!==-1&&(y=o[1].slice(g).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),o[1]=o[1].slice(0,g)),d=c(p.call(this,o[1].trim(),h),h),d&&o[0]===i&&!te(d))return d;te(d)||(d=Qh(d)),d||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${i}`),d=""),y.length&&(d=y.reduce((b,v)=>this.format(b,v,r.lng,{...r,interpolationkey:o[1].trim()}),d.trim())),i=i.replace(o[0],d),this.regexp.lastIndex=0}return i}}const tv=s=>{let i=s.toLowerCase().trim();const c={};if(s.includes("(")){const r=s.split("(");i=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);i==="currency"&&!o.includes(":")?c.currency||(c.currency=o.trim()):i==="relativetime"&&!o.includes(":")?c.range||(c.range=o.trim()):o.split(";").forEach(h=>{if(h){const[p,...y]=h.split(":"),g=y.join(":").trim().replace(/^'+|'+$/g,""),b=p.trim();c[b]||(c[b]=g),g==="false"&&(c[b]=!1),g==="true"&&(c[b]=!0),isNaN(g)||(c[b]=parseInt(g,10))}})}return{formatName:i,formatOptions:c}},eg=s=>{const i={};return(c,r,o)=>{let d=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(d={...d,[o.interpolationkey]:void 0});const h=r+JSON.stringify(d);let p=i[h];return p||(p=s($n(r),o),i[h]=p),p(c)}},lv=s=>(i,c,r)=>s($n(c),r)(i);class av{constructor(i={}){this.logger=Qt.create("formatter"),this.options=i,this.init(i)}init(i,c={interpolation:{}}){this.formatSeparator=c.interpolation.formatSeparator||",";const r=c.cacheInBuiltFormats?eg:lv;this.formats={number:r((o,d)=>{const h=new Intl.NumberFormat(o,{...d});return p=>h.format(p)}),currency:r((o,d)=>{const h=new Intl.NumberFormat(o,{...d,style:"currency"});return p=>h.format(p)}),datetime:r((o,d)=>{const h=new Intl.DateTimeFormat(o,{...d});return p=>h.format(p)}),relativetime:r((o,d)=>{const h=new Intl.RelativeTimeFormat(o,{...d});return p=>h.format(p,d.range||"day")}),list:r((o,d)=>{const h=new Intl.ListFormat(o,{...d});return p=>h.format(p)})}}add(i,c){this.formats[i.toLowerCase().trim()]=c}addCached(i,c){this.formats[i.toLowerCase().trim()]=eg(c)}format(i,c,r,o={}){if(!c||i==null)return i;const d=c.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&!d[0].includes(")")&&d.find(p=>p.includes(")"))){const p=d.findIndex(y=>y.includes(")"));d[0]=[d[0],...d.splice(1,p)].join(this.formatSeparator)}return d.reduce((p,y)=>{var v;const{formatName:g,formatOptions:b}=tv(y);if(this.formats[g]){let A=p;try{const L=((v=o==null?void 0:o.formatParams)==null?void 0:v[o.interpolationkey])||{},_=L.locale||L.lng||o.locale||o.lng||r;A=this.formats[g](p,_,{...b,...o,...L})}catch(L){this.logger.warn(L)}return A}else this.logger.warn(`there was no format function for ${g}`);return p},i)}}const nv=(s,i)=>{s.pending[i]!==void 0&&(delete s.pending[i],s.pendingCount--)};class iv extends Ou{constructor(i,c,r,o={}){var d,h;super(),this.backend=i,this.store=c,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(h=(d=this.backend)==null?void 0:d.init)==null||h.call(d,r,o.backend,o)}queueLoad(i,c,r,o){const d={},h={},p={},y={};return i.forEach(g=>{let b=!0;c.forEach(v=>{const A=`${g}|${v}`;!r.reload&&this.store.hasResourceBundle(g,v)?this.state[A]=2:this.state[A]<0||(this.state[A]===1?h[A]===void 0&&(h[A]=!0):(this.state[A]=1,b=!1,h[A]===void 0&&(h[A]=!0),d[A]===void 0&&(d[A]=!0),y[v]===void 0&&(y[v]=!0)))}),b||(p[g]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(y)}}loaded(i,c,r){const o=i.split("|"),d=o[0],h=o[1];c&&this.emit("failedLoading",d,h,c),!c&&r&&this.store.addResourceBundle(d,h,r,void 0,void 0,{skipCopy:!0}),this.state[i]=c?-1:2,c&&r&&(this.state[i]=0);const p={};this.queue.forEach(y=>{Q0(y.loaded,[d],h),nv(y,i),c&&y.errors.push(c),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(g=>{p[g]||(p[g]={});const b=y.loaded[g];b.length&&b.forEach(v=>{p[g][v]===void 0&&(p[g][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(y=>!y.done)}read(i,c,r,o=0,d=this.retryTimeout,h){if(!i.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:c,fcName:r,tried:o,wait:d,callback:h});return}this.readingCalls++;const p=(g,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(g&&b&&o<this.maxRetries){setTimeout(()=>{this.read(i,c,r,o+1,d*2,h)},d);return}h(g,b)},y=this.backend[r].bind(this.backend);if(y.length===2){try{const g=y(i,c);g&&typeof g.then=="function"?g.then(b=>p(null,b)).catch(p):p(null,g)}catch(g){p(g)}return}return y(i,c,p)}prepareLoading(i,c,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();te(i)&&(i=this.languageUtils.toResolveHierarchy(i)),te(c)&&(c=[c]);const d=this.queueLoad(i,c,r,o);if(!d.toLoad.length)return d.pending.length||o(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(i,c,r){this.prepareLoading(i,c,{},r)}reload(i,c,r){this.prepareLoading(i,c,{reload:!0},r)}loadOne(i,c=""){const r=i.split("|"),o=r[0],d=r[1];this.read(o,d,"read",void 0,void 0,(h,p)=>{h&&this.logger.warn(`${c}loading namespace ${d} for language ${o} failed`,h),!h&&p&&this.logger.log(`${c}loaded namespace ${d} for language ${o}`,p),this.loaded(i,h,p)})}saveMissing(i,c,r,o,d,h={},p=()=>{}){var y,g,b,v,A;if((g=(y=this.services)==null?void 0:y.utils)!=null&&g.hasLoadedNamespace&&!((v=(b=this.services)==null?void 0:b.utils)!=null&&v.hasLoadedNamespace(c))){this.logger.warn(`did not save key "${r}" as the namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((A=this.backend)!=null&&A.create){const L={...h,isUpdate:d},_=this.backend.create.bind(this.backend);if(_.length<6)try{let w;_.length===5?w=_(i,c,r,o,L):w=_(i,c,r,o),w&&typeof w.then=="function"?w.then(G=>p(null,G)).catch(p):p(null,w)}catch(w){p(w)}else _(i,c,r,o,p,L)}!i||!i[0]||this.store.addResource(i[0],c,r,o)}}}const nc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let i={};if(typeof s[1]=="object"&&(i=s[1]),te(s[1])&&(i.defaultValue=s[1]),te(s[2])&&(i.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const c=s[3]||s[2];Object.keys(c).forEach(r=>{i[r]=c[r]})}return i},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),tg=s=>(te(s.ns)&&(s.ns=[s.ns]),te(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),te(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs&&!s.supportedLngs.includes("cimode")&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),s),yu=()=>{},uv=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(c=>{typeof s[c]=="function"&&(s[c]=s[c].bind(s))})};class Zn extends Ou{constructor(i={},c){if(super(),this.options=tg(i),this.services={},this.logger=Qt,this.modules={external:[]},uv(this),c&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,c),this;setTimeout(()=>{this.init(i,c)},0)}}init(i={},c){this.isInitializing=!0,typeof i=="function"&&(c=i,i={}),i.defaultNS==null&&i.ns&&(te(i.ns)?i.defaultNS=i.ns:i.ns.includes("translation")||(i.defaultNS=i.ns[0]));const r=nc();this.options={...r,...this.options,...tg(i)},this.options.interpolation={...r.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const o=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?Qt.init(o(this.modules.logger),this.options):Qt.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=av;const b=new kh(this.options);this.store=new $h(this.options.resources,this.options);const v=this.services;v.logger=Qt,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new ev(b,{prepend:this.options.pluralSeparator}),g&&(v.formatter=o(g),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new Ph(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new iv(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(A,...L)=>{this.emit(A,...L)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Tu(this.services,this.options),this.translator.on("*",(A,...L)=>{this.emit(A,...L)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,c||(c=yu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...b)=>this.store[g](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...b)=>(this.store[g](...b),this)});const p=Qn(),y=()=>{const g=(b,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(v),c(b,v)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),p}loadResources(i,c=yu){var d,h;let r=c;const o=te(i)?i:this.language;if(typeof i=="function"&&(r=i),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const p=[],y=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(v=>{v!=="cimode"&&(p.includes(v)||p.push(v))})};o?y(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>y(b)),(h=(d=this.options.preload)==null?void 0:d.forEach)==null||h.call(d,g=>y(g)),this.services.backendConnector.load(p,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(g)})}else r(null)}reloadResources(i,c,r){const o=Qn();return typeof i=="function"&&(r=i,i=void 0),typeof c=="function"&&(r=c,c=void 0),i||(i=this.languages),c||(c=this.options.ns),r||(r=yu),this.services.backendConnector.reload(i,c,d=>{o.resolve(),r(d)}),o}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&zg.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!["cimode","dev"].includes(i)){for(let c=0;c<this.languages.length;c++){const r=this.languages[c];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(i)&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,c){this.isLanguageChangingTo=i;const r=Qn();this.emit("languageChanging",i);const o=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,y)=>{y?this.isLanguageChangingTo===i&&(o(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,r.resolve((...g)=>this.t(...g)),c&&c(p,(...g)=>this.t(...g))},h=p=>{var b,v;!i&&!p&&this.services.languageDetector&&(p=[]);const y=te(p)?p:p&&p[0],g=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(te(p)?[p]:p);g&&(this.language||o(g),this.translator.language||this.translator.changeLanguage(g),(v=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||v.call(b,g)),this.loadResources(g,A=>{d(A,g)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(i),r}getFixedT(i,c,r){const o=(d,h,...p)=>{let y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([d,h].concat(p)):y={...h},y.lng=y.lng||o.lng,y.lngs=y.lngs||o.lngs,y.ns=y.ns||o.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||r||o.keyPrefix);const g={...this.options,...y};typeof y.keyPrefix=="function"&&(y.keyPrefix=Qa(y.keyPrefix,g));const b=this.options.keySeparator||".";let v;return y.keyPrefix&&Array.isArray(d)?v=d.map(A=>(typeof A=="function"&&(A=Qa(A,g)),`${y.keyPrefix}${b}${A}`)):(typeof d=="function"&&(d=Qa(d,g)),v=y.keyPrefix?`${y.keyPrefix}${b}${d}`:d),this.t(v,y)};return te(i)?o.lng=i:o.lngs=i,o.ns=c,o.keyPrefix=r,o}t(...i){var c;return(c=this.translator)==null?void 0:c.translate(...i)}exists(...i){var c;return(c=this.translator)==null?void 0:c.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,c={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=c.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const h=(p,y)=>{const g=this.services.backendConnector.state[`${p}|${y}`];return g===-1||g===0||g===2};if(c.precheck){const p=c.precheck(this,h);if(p!==void 0)return p}return!!(this.hasResourceBundle(r,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(r,i)&&(!o||h(d,i)))}loadNamespaces(i,c){const r=Qn();return this.options.ns?(te(i)&&(i=[i]),i.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),c&&c(o)}),r):(c&&c(),Promise.resolve())}loadLanguages(i,c){const r=Qn();te(i)&&(i=[i]);const o=this.options.preload||[],d=i.filter(h=>!o.includes(h)&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=o.concat(d),this.loadResources(h=>{r.resolve(),c&&c(h)}),r):(c&&c(),Promise.resolve())}dir(i){var o,d;if(i||(i=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const h=new Intl.Locale(i);if(h&&h.getTextInfo){const p=h.getTextInfo();if(p&&p.direction)return p.direction}}catch{}const c=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((d=this.services)==null?void 0:d.languageUtils)||new kh(nc());return i.toLowerCase().indexOf("-latn")>1?"ltr":c.includes(r.getLanguagePartFromCode(i))||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},c){const r=new Zn(i,c);return r.createInstance=Zn.createInstance,r}cloneInstance(i={},c=yu){const r=i.forkResourceStore;r&&delete i.forkResourceStore;const o={...this.options,...i,isClone:!0},d=new Zn(o);if((i.debug!==void 0||i.prefix!==void 0)&&(d.logger=d.logger.clone(i)),["store","services","language"].forEach(p=>{d[p]=this[p]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},r){const p=Object.keys(this.store.data).reduce((y,g)=>(y[g]={...this.store.data[g]},y[g]=Object.keys(y[g]).reduce((b,v)=>(b[v]={...y[g][v]},b),y[g]),y),{});d.store=new $h(p,o),d.services.resourceStore=d.store}if(i.interpolation){const y={...nc().interpolation,...this.options.interpolation,...i.interpolation},g={...o,interpolation:y};d.services.interpolator=new Ph(g)}return d.translator=new Tu(d.services,o),d.translator.on("*",(p,...y)=>{d.emit(p,...y)}),d.init(o,c),d.translator.options=o,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ke=Zn.createInstance();ke.createInstance;ke.dir;ke.init;ke.loadResources;ke.reloadResources;ke.use;ke.changeLanguage;ke.getFixedT;ke.t;ke.exists;ke.setDefaultNamespace;ke.hasLoadedNamespace;ke.loadNamespaces;ke.loadLanguages;const sv=(s,i,c,r)=>{var d,h,p,y;const o=[c,{code:i,...r||{}}];if((h=(d=s==null?void 0:s.services)==null?void 0:d.logger)!=null&&h.forward)return s.services.logger.forward(o,"warn","react-i18next::",!0);na(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(y=(p=s==null?void 0:s.services)==null?void 0:p.logger)!=null&&y.warn?s.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},lg={},dc=(s,i,c,r)=>{na(c)&&lg[c]||(na(c)&&(lg[c]=new Date),sv(s,i,c,r))},Dg=(s,i)=>()=>{if(s.isInitialized)i();else{const c=()=>{setTimeout(()=>{s.off("initialized",c)},0),i()};s.on("initialized",c)}},hc=(s,i,c)=>{s.loadNamespaces(i,Dg(s,c))},ag=(s,i,c,r)=>{if(na(c)&&(c=[c]),s.options.preload&&s.options.preload.indexOf(i)>-1)return hc(s,c,r);c.forEach(o=>{s.options.ns.indexOf(o)<0&&s.options.ns.push(o)}),s.loadLanguages(i,Dg(s,r))},rv=(s,i,c={})=>!i.languages||!i.languages.length?(dc(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(s,{lng:c.lng,precheck:(r,o)=>{if(c.bindI18n&&c.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,s))return!1}}),na=s=>typeof s=="string",cv=s=>typeof s=="object"&&s!==null,ov=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,fv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},dv=s=>fv[s],hv=s=>s.replace(ov,dv);let gc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:hv,transDefaultProps:void 0};const gv=(s={})=>{gc={...gc,...s}},mv=()=>gc;let Mg;const pv=s=>{Mg=s},yv=()=>Mg,vv={type:"3rdParty",init(s){gv(s.options.react),pv(s)}},Sv=T.createContext();class bv{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(c=>{this.usedNamespaces[c]||(this.usedNamespaces[c]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var ic={exports:{}},uc={};/**
|
|
61
61
|
* @license React
|
|
62
62
|
* use-sync-external-store-shim.production.js
|
|
63
63
|
*
|
|
@@ -65,4 +65,4 @@ Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}
|
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the MIT license found in the
|
|
67
67
|
* LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var ng;function bv(){if(ng)return uc;ng=1;var s=Cu();function i(v,C){return v===C&&(v!==0||1/v===1/C)||v!==v&&C!==C}var c=typeof Object.is=="function"?Object.is:i,r=s.useState,o=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue;function p(v,C){var L=C(),_=r({inst:{value:L,getSnapshot:C}}),w=_[0].inst,G=_[1];return d(function(){w.value=L,w.getSnapshot=C,y(w)&&G({inst:w})},[v,L,C]),o(function(){return y(w)&&G({inst:w}),v(function(){y(w)&&G({inst:w})})},[v]),h(L),L}function y(v){var C=v.getSnapshot;v=v.value;try{var L=C();return!c(v,L)}catch{return!0}}function g(v,C){return C()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:p;return uc.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,uc}var ig;function xv(){return ig||(ig=1,ic.exports=bv()),ic.exports}var Ev=xv();const Rv=(s,i)=>{if(na(i))return i;if(rv(i)&&na(i.defaultValue))return i.defaultValue;if(typeof s=="function")return"";if(Array.isArray(s)){const c=s[s.length-1];return typeof c=="function"?"":c}return s},Tv={t:Rv,ready:!1},Cv=()=>()=>{},ia=(s,i={})=>{var ce,me,Be;const{i18n:c}=i,{i18n:r,defaultNS:o}=T.useContext(vv)||{},d=c||r||pv();d&&!d.reportNamespaces&&(d.reportNamespaces=new Sv),d||dc(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=T.useMemo(()=>{var le;return{...gv(),...(le=d==null?void 0:d.options)==null?void 0:le.react,...i}},[d,i]),{useSuspense:p,keyPrefix:y}=h,g=o||((ce=d==null?void 0:d.options)==null?void 0:ce.defaultNS),b=na(g)?[g]:g||["translation"],v=T.useMemo(()=>b,b);(Be=(me=d==null?void 0:d.reportNamespaces)==null?void 0:me.addUsedNamespaces)==null||Be.call(me,v);const C=T.useRef(0),L=T.useCallback(le=>{if(!d)return Cv;const{bindI18n:ee,bindI18nStore:ne}=h,oe=()=>{C.current+=1,le()};return ee&&d.on(ee,oe),ne&&d.store.on(ne,oe),()=>{ee&&ee.split(" ").forEach(D=>d.off(D,oe)),ne&&ne.split(" ").forEach(D=>d.store.off(D,oe))}},[d,h]),_=T.useRef(),w=T.useCallback(()=>{if(!d)return Tv;const le=!!(d.isInitialized||d.initializedStoreOnce)&&v.every(F=>sv(F,d,h)),ee=i.lng||d.language,ne=C.current,oe=_.current;if(oe&&oe.ready===le&&oe.lng===ee&&oe.keyPrefix===y&&oe.revision===ne)return oe;const V={t:d.getFixedT(ee,h.nsMode==="fallback"?v:v[0],y),ready:le,lng:ee,keyPrefix:y,revision:ne};return _.current=V,V},[d,v,y,h,i.lng]),[G,Y]=T.useState(0),{t:X,ready:q}=Ev.useSyncExternalStore(L,w,w);T.useEffect(()=>{if(d&&!q&&!p){const le=()=>Y(ee=>ee+1);i.lng?ag(d,i.lng,v,le):hc(d,v,le)}},[d,i.lng,v,q,p,G]);const Q=d||{},I=T.useRef(null),se=T.useRef(),k=le=>{const ee=Object.getOwnPropertyDescriptors(le);ee.__original&&delete ee.__original;const ne=Object.create(Object.getPrototypeOf(le),ee);if(!Object.prototype.hasOwnProperty.call(ne,"__original"))try{Object.defineProperty(ne,"__original",{value:le,writable:!1,enumerable:!1,configurable:!1})}catch{}return ne},ge=T.useMemo(()=>{const le=Q,ee=le==null?void 0:le.language;let ne=le;le&&(I.current&&I.current.__original===le?se.current!==ee?(ne=k(le),I.current=ne,se.current=ee):ne=I.current:(ne=k(le),I.current=ne,se.current=ee));const oe=!q&&!p?(...V)=>(dc(d,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),X(...V)):X,D=[oe,ne,q];return D.t=oe,D.i18n=ne,D.ready=q,D},[X,Q,q,Q.resolvedLanguage,Q.language,Q.languages]);if(d&&p&&!q)throw new Promise(le=>{const ee=()=>le();i.lng?ag(d,i.lng,v,ee):hc(d,v,ee)});return ge},zv={title:"shoal"},Av={title:"Run History",startRun:"Start Run",noRuns:"No runs yet",noRunsHint:"Start a run to explore your app with AI agents."},Ov={status:"Status",started:"Started",duration:"Duration",findings:"Findings",agents:"Agents",cost:"Cost",actions:""},Dv={completed:"Completed",running:"Running"},Mv={back:"← Back",noReport:"No report found for this run.",noLog:"No log available.",tabLog:"Log",tabReport:"Report",cancel:"Cancel run",cancelConfirmLabel:"Stop this run?",cancelConfirmYes:"Stop",cancelConfirmNo:"Keep going"},_v={title:"Start Run",baseUrl:"App URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"Browser agents",maxExplorers:"API agents",start:"Start",cancel:"Cancel",running:"Running…",liveLog:"Live log",close:"Close",advanced:"Advanced",llmBaseUrl:"LLM Base URL",llmModel:"Model",llmApiKey:"API Key"},Nv={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"In progress"},Lv={title:"Scheduled Runs",enabled:"Auto-run enabled",disabled:"Auto-run disabled",dayLabel:"Day",timeLabel:"Time (server local)",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],nextRun:"Next run",saved:"Saved"},Uv={title:"App Goals",noSpec:"No product spec yet. Start a run to discover app goals.",noGoals:"No goals defined.",edit:"Edit",save:"Save",cancel:"Cancel",add:"+ Add goal",placeholder:"e.g. Users can complete onboarding without assistance",hint:"Goals inferred by product discovery. Edit to correct or add missing ones.",goalGapHint:'Agents will flag issues that prevent these goals as "goal-gap".'},jv={header:zv,dashboard:Av,table:Ov,status:Dv,detail:Mv,startModal:_v,duration:Nv,schedule:Lv,goals:Uv},Hv={title:"shoal"},Bv={title:"実行一覧",startRun:"実行を開始",noRuns:"実行履歴がありません",noRunsHint:"実行を開始して AI エージェントにアプリを探索させましょう。"},wv={status:"ステータス",started:"開始日時",duration:"所要時間",findings:"Findings",agents:"エージェント",cost:"コスト",actions:""},qv={completed:"完了",running:"実行中"},Yv={back:"← 一覧に戻る",noReport:"このレポートは見つかりませんでした。",noLog:"ログがありません。",tabLog:"ログ",tabReport:"レポート",cancel:"中止",cancelConfirmLabel:"中止しますか?",cancelConfirmYes:"中止する",cancelConfirmNo:"やめる"},Gv={title:"実行を開始",baseUrl:"アプリの URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"ブラウザエージェント数",maxExplorers:"API エージェント数",start:"開始",cancel:"キャンセル",running:"実行中…",liveLog:"ライブログ",close:"閉じる",advanced:"詳細設定",llmBaseUrl:"LLM Base URL",llmModel:"モデル",llmApiKey:"API キー"},Vv={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"実行中"},Xv={title:"定期実行",enabled:"自動実行:オン",disabled:"自動実行:オフ",dayLabel:"曜日",timeLabel:"時刻(サーバーのローカル時刻)",days:["日","月","火","水","木","金","土"],nextRun:"次回実行",saved:"保存しました"},Qv={title:"App Goals",noSpec:"プロダクト仕様がまだありません。実行を開始するとゴールが自動推論されます。",noGoals:"ゴールが未設定です。",edit:"編集",save:"保存",cancel:"キャンセル",add:"+ ゴールを追加",placeholder:"例: ユーザーがサポートなしでオンボーディングを完了できる",hint:"プロダクト理解エージェントが推論したゴールです。誤りがあれば修正してください。",goalGapHint:'エージェントはこれらのゴール達成を妨げる問題を "goal-gap" として報告します。'},Kv={header:Hv,dashboard:Bv,table:wv,status:qv,detail:Yv,startModal:Gv,duration:Vv,schedule:Xv,goals:Qv},Zv=localStorage.getItem("shoal-lang"),Jv=navigator.language.startsWith("ja")?"ja":"en";ke.use(yv).init({resources:{en:{translation:jv},ja:{translation:Kv}},lng:Zv??Jv,fallbackLng:"en",interpolation:{escapeValue:!1}});function $v(){const{t:s}=ia(),i=()=>{const c=ke.language==="ja"?"en":"ja";ke.changeLanguage(c),localStorage.setItem("shoal-lang",c)};return N.jsxs("header",{style:sc.header,children:[N.jsx("span",{style:sc.title,children:s("header.title")}),N.jsx("button",{onClick:i,style:sc.langBtn,children:ke.language==="ja"?"EN":"JA"})]})}const sc={header:{background:"#1e293b",color:"#f8fafc",padding:"0 2rem",height:"52px",display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,zIndex:100},title:{fontSize:"1rem",fontWeight:700,letterSpacing:"0.04em"},langBtn:{background:"transparent",border:"1px solid #475569",color:"#94a3b8",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600,letterSpacing:"0.05em"}};function kv({onClose:s,onStarted:i}){const{t:c}=ia(),[r,o]=T.useState("http://localhost:3000"),[d,h]=T.useState(2),[p,y]=T.useState(0),[g,b]=T.useState(""),[v,C]=T.useState(""),[L,_]=T.useState(""),[w,G]=T.useState(!1),[Y,X]=T.useState(!1),q=async()=>{X(!0);const Q={baseUrl:r,maxBrowsers:d,maxExplorers:p};g&&(Q.llmBaseUrl=g),v&&(Q.llmApiKey=v),L&&(Q.llmModel=L);const I=await fetch("/api/runs/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Q)}),{sessionId:se}=await I.json();X(!1),i(se)};return N.jsx("div",{style:je.overlay,onClick:Q=>Q.target===Q.currentTarget&&s(),children:N.jsxs("div",{style:je.modal,children:[N.jsx("h2",{style:je.title,children:c("startModal.title")}),N.jsxs("div",{style:je.form,children:[N.jsxs("label",{style:je.label,children:[c("startModal.baseUrl"),N.jsx("input",{type:"text",value:r,onChange:Q=>o(Q.target.value),placeholder:c("startModal.baseUrlPlaceholder"),style:je.input})]}),N.jsxs("div",{style:je.row,children:[N.jsxs("label",{style:je.label,children:[c("startModal.maxBrowsers"),N.jsx("input",{type:"number",min:0,max:8,value:d,onChange:Q=>h(Number(Q.target.value)),style:{...je.input,width:"80px"}})]}),N.jsxs("label",{style:je.label,children:[c("startModal.maxExplorers"),N.jsx("input",{type:"number",min:0,max:8,value:p,onChange:Q=>y(Number(Q.target.value)),style:{...je.input,width:"80px"}})]})]}),N.jsxs("button",{type:"button",onClick:()=>G(Q=>!Q),style:je.advancedToggle,children:[w?"▾":"▸"," ",c("startModal.advanced")]}),w&&N.jsxs("div",{style:je.advancedBox,children:[N.jsxs("label",{style:je.label,children:[c("startModal.llmBaseUrl"),N.jsx("input",{type:"text",value:g,onChange:Q=>b(Q.target.value),placeholder:"http://localhost:11434/v1",style:je.input})]}),N.jsxs("div",{style:je.row,children:[N.jsxs("label",{style:je.label,children:[c("startModal.llmModel"),N.jsx("input",{type:"text",value:L,onChange:Q=>_(Q.target.value),placeholder:"gemma4:e4b",style:je.input})]}),N.jsxs("label",{style:je.label,children:[c("startModal.llmApiKey"),N.jsx("input",{type:"text",value:v,onChange:Q=>C(Q.target.value),placeholder:"ollama",style:je.input})]})]})]}),N.jsxs("div",{style:je.buttons,children:[N.jsx("button",{onClick:s,style:je.cancelBtn,disabled:Y,children:c("startModal.cancel")}),N.jsx("button",{onClick:q,style:je.startBtn,disabled:Y,children:Y?"…":c("startModal.start")})]})]})]})})}const je={overlay:{position:"fixed",inset:0,background:"rgba(15,23,42,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{background:"#fff",borderRadius:"12px",padding:"1.75rem",width:"520px",maxWidth:"calc(100vw - 2rem)",boxShadow:"0 20px 60px rgba(0,0,0,0.2)"},title:{fontSize:"1rem",fontWeight:700,marginBottom:"1.25rem"},form:{display:"flex",flexDirection:"column",gap:"1rem"},row:{display:"flex",gap:"1rem"},label:{display:"flex",flexDirection:"column",gap:"0.375rem",fontSize:"0.8rem",fontWeight:600,color:"#475569",flex:1},input:{border:"1px solid #e2e8f0",borderRadius:"6px",padding:"8px 10px",fontSize:"0.875rem",outline:"none",width:"100%",color:"#1e293b",background:"#fff"},advancedToggle:{background:"none",border:"none",padding:0,color:"#94a3b8",fontSize:"0.8rem",fontWeight:600,textAlign:"left",cursor:"pointer"},advancedBox:{display:"flex",flexDirection:"column",gap:"0.75rem",padding:"0.875rem",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},buttons:{display:"flex",gap:"0.5rem",justifyContent:"flex-end",marginTop:"0.25rem"},cancelBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"6px",padding:"8px 16px",fontWeight:600,cursor:"pointer"},startBtn:{background:"#1e293b",color:"#fff",border:"none",borderRadius:"6px",padding:"8px 20px",fontWeight:600,cursor:"pointer"}};function Fv(){const{t:s}=ia(),[i,c]=T.useState(null),[r,o]=T.useState(!1),[d,h]=T.useState(!1),[p,y]=T.useState([]),[g,b]=T.useState(!1);T.useEffect(()=>{fetch("/api/spec").then(X=>X.status===404?(o(!0),null):X.json()).then(X=>{X&&c(X)}).catch(()=>{})},[]);const v=()=>{var X;y((X=i==null?void 0:i.appGoals)!=null&&X.length?[...i.appGoals]:[""]),h(!0)},C=()=>h(!1),L=async()=>{const X=p.map(q=>q.trim()).filter(Boolean);b(!0);try{await fetch("/api/spec/goals",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({goals:X})}),c(q=>q&&{...q,appGoals:X}),h(!1)}finally{b(!1)}},_=(X,q)=>{y(Q=>Q.map((I,se)=>se===X?q:I))},w=X=>{y(q=>q.filter((Q,I)=>I!==X))},G=()=>y(X=>[...X,""]);if(r)return N.jsxs("div",{style:Qe.panel,children:[N.jsx("div",{style:Qe.header,children:N.jsx("span",{style:Qe.title,children:s("goals.title")})}),N.jsx("p",{style:Qe.hint,children:s("goals.noSpec")})]});if(!i)return null;const Y=i.appGoals??[];return N.jsxs("div",{style:Qe.panel,children:[N.jsxs("div",{style:Qe.header,children:[N.jsxs("span",{style:Qe.title,children:[s("goals.title"),i.appName&&N.jsxs("span",{style:Qe.appName,children:[" — ",i.appName]})]}),!d&&N.jsx("button",{onClick:v,style:Qe.editBtn,children:s("goals.edit")})]}),d?N.jsxs("div",{style:Qe.editArea,children:[p.map((X,q)=>N.jsxs("div",{style:Qe.inputRow,children:[N.jsx("input",{style:Qe.input,value:X,placeholder:s("goals.placeholder"),onChange:Q=>_(q,Q.target.value),autoFocus:q===p.length-1&&X===""}),N.jsx("button",{onClick:()=>w(q),style:Qe.removeBtn,children:"×"})]},q)),N.jsx("button",{onClick:G,style:Qe.addBtn,children:s("goals.add")}),N.jsxs("div",{style:Qe.editActions,children:[N.jsx("button",{onClick:C,style:Qe.cancelBtn,children:s("goals.cancel")}),N.jsx("button",{onClick:L,style:Qe.saveBtn,disabled:g,children:g?"…":s("goals.save")})]})]}):N.jsxs(N.Fragment,{children:[Y.length===0?N.jsx("p",{style:Qe.hint,children:s("goals.noGoals")}):N.jsx("ul",{style:Qe.list,children:Y.map((X,q)=>N.jsx("li",{style:Qe.goalItem,children:X},q))}),N.jsx("p",{style:Qe.subHint,children:s("goals.goalGapHint")})]})]})}const Qe={panel:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"8px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.6rem"},title:{fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#64748b"},appName:{fontWeight:400,textTransform:"none",letterSpacing:0},editBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"5px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},list:{margin:"0 0 0.5rem 0",paddingLeft:"1.25rem",display:"flex",flexDirection:"column",gap:"0.3rem"},goalItem:{fontSize:"0.875rem",color:"#1e293b",lineHeight:1.5},hint:{fontSize:"0.8rem",color:"#94a3b8",margin:"0 0 0.4rem"},subHint:{fontSize:"0.75rem",color:"#94a3b8",margin:"0.5rem 0 0"},editArea:{display:"flex",flexDirection:"column",gap:"0.4rem"},inputRow:{display:"flex",gap:"0.4rem",alignItems:"center"},input:{flex:1,padding:"6px 10px",fontSize:"0.875rem",border:"1px solid #cbd5e1",borderRadius:"5px",color:"#1e293b",outline:"none"},removeBtn:{background:"transparent",border:"none",color:"#94a3b8",fontSize:"1rem",cursor:"pointer",padding:"0 4px",lineHeight:1},addBtn:{alignSelf:"flex-start",background:"transparent",border:"none",color:"#3b82f6",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",padding:"2px 0"},editActions:{display:"flex",gap:"0.5rem",justifyContent:"flex-end",marginTop:"0.25rem"},cancelBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"5px",padding:"5px 12px",fontSize:"0.8rem",cursor:"pointer"},saveBtn:{background:"#1e293b",border:"none",color:"#f8fafc",borderRadius:"5px",padding:"5px 14px",fontSize:"0.8rem",fontWeight:600,cursor:"pointer"}};function Wv(){const{t:s}=ia(),[i,c]=T.useState(null),[r,o]=T.useState(!1);T.useEffect(()=>{fetch("/api/schedule").then(y=>y.json()).then(y=>c(y)).catch(()=>{})},[]);const d=async y=>{if(!i)return;const g={...i,...y};c(g);try{const b=await fetch("/api/schedule",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(y)});if(b.ok){const v=await b.json();c(v),o(!0),setTimeout(()=>o(!1),2e3)}}catch{}};if(!i)return null;const h=s("schedule.days",{returnObjects:!0}),p=(()=>{if(!i.enabled)return null;const y=new Date,g=new Date;g.setHours(i.hour,i.minute,0,0);const b=(i.dayOfWeek-y.getDay()+7)%7||(y.getHours()*60+y.getMinutes()>=i.hour*60+i.minute?7:0);return g.setDate(g.getDate()+b),g.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})();return N.jsxs("div",{style:Pe.panel,children:[N.jsxs("div",{style:Pe.header,children:[N.jsx("span",{style:Pe.title,children:s("schedule.title")}),N.jsx("button",{onClick:()=>d({enabled:!i.enabled}),style:{...Pe.toggle,background:i.enabled?"#22c55e":"#374151"},children:i.enabled?s("schedule.enabled"):s("schedule.disabled")})]}),N.jsxs("div",{style:{...Pe.fields,opacity:i.enabled?1:.4,pointerEvents:i.enabled?"auto":"none"},children:[N.jsxs("div",{style:Pe.field,children:[N.jsx("label",{style:Pe.label,children:s("schedule.dayLabel")}),N.jsx("div",{style:Pe.dayRow,children:h.map((y,g)=>N.jsx("button",{onClick:()=>d({dayOfWeek:g}),style:{...Pe.dayBtn,background:i.dayOfWeek===g?"#6366f1":"#1f2937"},children:y},g))})]}),N.jsxs("div",{style:Pe.field,children:[N.jsx("label",{style:Pe.label,children:s("schedule.timeLabel")}),N.jsxs("div",{style:Pe.timeRow,children:[N.jsx("input",{type:"number",min:0,max:23,value:i.hour,onChange:y=>d({hour:parseInt(y.target.value)||0}),style:Pe.timeInput}),N.jsx("span",{style:Pe.colon,children:":"}),N.jsx("input",{type:"number",min:0,max:59,value:String(i.minute).padStart(2,"0"),onChange:y=>d({minute:parseInt(y.target.value)||0}),style:Pe.timeInput})]})]})]}),N.jsxs("div",{style:Pe.footer,children:[r&&N.jsx("span",{style:Pe.savedLabel,children:s("schedule.saved")}),p&&N.jsxs("span",{style:Pe.nextRun,children:[s("schedule.nextRun"),": ",p]})]})]})}const Pe={panel:{background:"#111827",border:"1px solid #1f2937",borderRadius:"8px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.875rem"},title:{color:"#e2e8f0",fontWeight:600,fontSize:"0.9rem"},toggle:{border:"none",borderRadius:"6px",padding:"0.3rem 0.75rem",fontSize:"0.75rem",fontWeight:600,color:"#fff",cursor:"pointer"},fields:{display:"flex",gap:"1.5rem",flexWrap:"wrap"},field:{display:"flex",flexDirection:"column",gap:"0.4rem"},label:{fontSize:"0.75rem",color:"#94a3b8"},dayRow:{display:"flex",gap:"0.25rem"},dayBtn:{border:"none",borderRadius:"4px",padding:"0.3rem 0.5rem",fontSize:"0.75rem",color:"#e2e8f0",cursor:"pointer"},timeRow:{display:"flex",alignItems:"center",gap:"0.25rem"},timeInput:{background:"#1f2937",border:"1px solid #374151",borderRadius:"4px",color:"#e2e8f0",padding:"0.3rem 0.5rem",width:"3.5rem",textAlign:"center",fontSize:"0.875rem"},colon:{color:"#94a3b8",fontWeight:700},footer:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"0.75rem",minHeight:"1.2rem"},savedLabel:{fontSize:"0.75rem",color:"#22c55e"},nextRun:{fontSize:"0.75rem",color:"#64748b"}};function Iv(s,i,c){if(!i)return c("duration.inProgress");const r=new Date(i).getTime()-new Date(s).getTime(),o=Math.round(r/1e3);return o<60?c("duration.seconds",{count:o}):c("duration.minutes",{m:Math.floor(o/60),s:o%60})}function Pv(s){return new Date(s).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}const eS={bug:"#ef4444",ux:"#f97316","feature-request":"#3b82f6","goal-gap":"#8b5cf6"};function tS(s){return s==null?"—":s<1e-4?"< $0.0001":s<.01?`$${s.toFixed(4)}`:s<1?`$${s.toFixed(3)}`:`$${s.toFixed(2)}`}function lS(){const{t:s}=ia(),i=yc(),[c,r]=T.useState([]),[o,d]=T.useState(!1),h=()=>{fetch("/api/runs").then(p=>p.json()).then(p=>{const y=new Set(p.map(L=>L.runId)),g=localStorage.getItem("shoal-active-run-id"),b=localStorage.getItem("shoal-active-run-started-at"),v=()=>{localStorage.removeItem("shoal-active-run-id"),localStorage.removeItem("shoal-active-run-started-at")};let C=[];if(g&&b){const L=(Date.now()-new Date(b).getTime())/6e4;y.has(g)||L>120?v():C=[{runId:g,startedAt:b,completedAt:null,status:"running",agentCount:0,completedAgents:0,errorAgents:0,findingCount:0,findingsByCategory:{},hasReport:!1,isLive:!0}]}r([...C,...p])}).catch(()=>{})};return T.useEffect(()=>{h();const p=setInterval(h,5e3);return()=>clearInterval(p)},[]),N.jsxs("main",{style:Me.main,children:[N.jsxs("div",{style:Me.pageHeader,children:[N.jsx("h1",{style:Me.pageTitle,children:s("dashboard.title")}),N.jsx("button",{onClick:()=>d(!0),style:Me.startBtn,children:s("dashboard.startRun")})]}),N.jsx(Fv,{}),N.jsx(Wv,{}),c.length===0?N.jsxs("div",{style:Me.empty,children:[N.jsx("img",{src:"/mascot.svg",alt:"shoal",style:Me.emptyMascot}),N.jsx("p",{style:Me.emptyTitle,children:s("dashboard.noRuns")}),N.jsx("p",{style:Me.emptyHint,children:s("dashboard.noRunsHint")})]}):N.jsx("div",{style:Me.tableWrapper,children:N.jsxs("table",{style:Me.table,children:[N.jsx("thead",{children:N.jsx("tr",{children:["status","started","duration","findings","agents","cost","actions"].map(p=>N.jsx("th",{style:{...Me.th,...p==="agents"||p==="findings"||p==="cost"?{textAlign:"center"}:{}},children:s(`table.${p}`)},p))})}),N.jsx("tbody",{children:c.map(p=>N.jsx(aS,{run:p,onView:()=>i(`/runs/${p.runId}`)},p.runId))})]})}),o&&N.jsx(kv,{onClose:()=>d(!1),onStarted:p=>{d(!1),localStorage.setItem("shoal-active-run-id",p),localStorage.setItem("shoal-active-run-started-at",new Date().toISOString()),h()}})]})}function aS({run:s,onView:i}){const{t:c}=ia(),r=s.status==="running",o=s.findingCount,d=Object.entries(s.findingsByCategory);return N.jsxs("tr",{style:Me.row,children:[N.jsx("td",{style:Me.td,children:N.jsx("span",{style:{...Me.badge,background:r?"#f59e0b":"#22c55e"},children:c(`status.${s.status}`)})}),N.jsx("td",{style:{...Me.td,...Me.muted},children:Pv(s.startedAt)}),N.jsx("td",{style:{...Me.td,...Me.muted},children:Iv(s.startedAt,s.completedAt,c)}),N.jsxs("td",{style:{...Me.td,textAlign:"center"},children:[o>0?N.jsx("span",{style:Me.findingsGroup,children:d.map(([h,p])=>N.jsx("span",{style:{...Me.badge,background:eS[h]??"#6b7280"},children:p},h))}):N.jsx("span",{style:Me.muted,children:"—"}),s.regressionChecked>0&&N.jsx("span",{style:{display:"block",fontSize:"0.7rem",marginTop:"0.25rem",color:s.regressionFailed>0?"#ef4444":"#22c55e"},children:s.regressionFailed>0?`⚠ ${s.regressionFailed} regressed`:`✓ ${s.regressionChecked} still fixed`})]}),N.jsxs("td",{style:{...Me.td,textAlign:"center",...Me.muted},children:[s.completedAgents,"/",s.agentCount]}),N.jsx("td",{style:{...Me.td,textAlign:"center",...Me.muted},children:tS(s.estimatedCostUSD)}),N.jsx("td",{style:Me.td,children:N.jsx("button",{onClick:i,style:Me.viewBtn,children:s.isLive?ke.language==="ja"?"ログ →":"Log →":ke.language==="ja"?"表示 →":"View →"})})]})}const Me={main:{maxWidth:"960px",margin:"0 auto",padding:"2rem"},pageHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.5rem"},pageTitle:{fontSize:"1rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#64748b"},startBtn:{background:"#1e293b",color:"#f8fafc",border:"none",borderRadius:"6px",padding:"8px 16px",fontWeight:600,fontSize:"0.875rem"},empty:{textAlign:"center",padding:"4rem 2rem",color:"#94a3b8"},emptyMascot:{width:"100px",height:"100px",opacity:.55,marginBottom:"1rem"},emptyTitle:{fontSize:"1rem",fontWeight:600,marginBottom:"0.5rem"},emptyHint:{fontSize:"0.875rem"},tableWrapper:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},table:{width:"100%",borderCollapse:"collapse",fontSize:"0.875rem"},th:{background:"#f1f5f9",padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"#64748b",fontSize:"0.7rem",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid #e2e8f0"},row:{borderTop:"1px solid #e2e8f0"},td:{padding:"0.75rem 1rem",verticalAlign:"middle"},muted:{color:"#64748b"},badge:{display:"inline-block",padding:"0.15rem 0.5rem",borderRadius:"9999px",fontSize:"0.65rem",fontWeight:700,color:"#fff",whiteSpace:"nowrap"},findingsGroup:{display:"inline-flex",gap:"4px",alignItems:"center"},viewBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600}};function nS(){const{runId:s}=Zy(),i=yc(),{t:c}=ia(),[r,o]=T.useState("log"),[d,h]=T.useState([]),[p,y]=T.useState(!1),[g,b]=T.useState(!1),[v,C]=T.useState(!1),[L,_]=T.useState(!1),[w,G]=T.useState(!1),Y=T.useRef(null),X=async()=>{_(!0),G(!1),await fetch(`/api/runs/${s}/cancel`,{method:"POST"}).catch(()=>{})};return T.useEffect(()=>{fetch(`/api/runs/${s}/log`).then(q=>q.json()).then(q=>{h(q.lines),b(q.done),q.done||y(!0)}).catch(()=>{}),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(q=>C(q.ok)).catch(()=>{})},[s]),T.useEffect(()=>{if(!p)return;let q=!1;const Q=new EventSource(`/api/runs/${s}/events`),I=()=>{b(!0),y(!1),Q.close(),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(ge=>C(ge.ok)).catch(()=>{})};Q.onmessage=ge=>{const ce=JSON.parse(ge.data);h(me=>[...me,ce])},Q.addEventListener("done",I);const se=setTimeout(()=>{Q.readyState!==EventSource.OPEN&&(Q.close(),k())},3e3);Q.onerror=()=>{clearTimeout(se),Q.close(),q||k()};function k(){let ge=0;const ce=setInterval(async()=>{if(q){clearInterval(ce);return}try{const me=await fetch(`/api/runs/${s}/log`);if(!me.ok)return;const Be=await me.json();Be.lines.length>ge&&(h(Be.lines),ge=Be.lines.length),Be.done&&(clearInterval(ce),b(!0),y(!1),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(le=>C(le.ok)).catch(()=>{}))}catch{}},2e3);return()=>clearInterval(ce)}return()=>{q=!0,clearTimeout(se),Q.close()}},[p,s]),T.useEffect(()=>{Y.current&&(Y.current.scrollTop=Y.current.scrollHeight)},[d]),N.jsxs("div",{style:Ye.wrapper,children:[N.jsxs("div",{style:Ye.toolbar,children:[N.jsx("button",{onClick:()=>i("/"),style:Ye.backBtn,children:c("detail.back")}),N.jsx("span",{style:Ye.runId,children:s}),p&&N.jsx("span",{style:Ye.liveBadge,children:"● LIVE"}),p&&!w&&N.jsx("button",{onClick:()=>G(!0),style:Ye.cancelBtn,disabled:L,children:L?"…":c("detail.cancel")}),p&&w&&N.jsxs("div",{style:Ye.cancelConfirm,children:[N.jsx("span",{style:Ye.cancelConfirmLabel,children:c("detail.cancelConfirmLabel")}),N.jsx("button",{onClick:X,style:Ye.cancelConfirmYes,children:c("detail.cancelConfirmYes")}),N.jsx("button",{onClick:()=>G(!1),style:Ye.cancelConfirmNo,children:c("detail.cancelConfirmNo")})]})]}),N.jsxs("div",{style:Ye.tabs,children:[N.jsx("button",{style:{...Ye.tab,...r==="log"?Ye.tabActive:{}},onClick:()=>o("log"),children:c("detail.tabLog")}),N.jsx("button",{style:{...Ye.tab,...r==="report"?Ye.tabActive:{},...v?{}:Ye.tabDisabled},onClick:()=>v&&o("report"),disabled:!v,children:c("detail.tabReport")})]}),r==="log"&&N.jsxs("div",{ref:Y,style:Ye.log,children:[d.length===0&&!p&&N.jsx("p",{style:Ye.logEmpty,children:c("detail.noLog")}),d.map((q,Q)=>N.jsx("div",{style:Ye.logLine,children:q},Q)),p&&N.jsx("div",{style:Ye.cursor,children:"▌"}),g&&d.length>0&&N.jsxs("div",{style:Ye.logDone,children:["— ",c("status.completed")," —"]})]}),r==="report"&&N.jsx("iframe",{src:`/api/runs/${s}/report`,style:Ye.frame,title:`Report for ${s}`})]})}const Ye={wrapper:{display:"flex",flexDirection:"column",height:"calc(100vh - 52px)"},toolbar:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.75rem 2rem",borderBottom:"1px solid #e2e8f0",background:"#fff"},backBtn:{background:"transparent",border:"none",color:"#475569",fontSize:"0.875rem",fontWeight:600,padding:0,cursor:"pointer"},runId:{fontSize:"0.75rem",color:"#94a3b8",fontFamily:"monospace"},liveBadge:{fontSize:"0.7rem",fontWeight:700,color:"#22c55e",letterSpacing:"0.05em"},cancelBtn:{background:"transparent",border:"1px solid #ef4444",color:"#ef4444",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer",marginLeft:"auto"},cancelConfirm:{display:"flex",alignItems:"center",gap:"0.5rem",marginLeft:"auto"},cancelConfirmLabel:{fontSize:"0.75rem",color:"#64748b",fontWeight:600},cancelConfirmYes:{background:"#ef4444",border:"none",color:"#fff",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},cancelConfirmNo:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},tabs:{display:"flex",gap:0,background:"#fff",borderBottom:"1px solid #e2e8f0",padding:"0 2rem"},tab:{background:"transparent",border:"none",borderBottom:"2px solid transparent",padding:"0.625rem 1rem",fontSize:"0.8rem",fontWeight:600,color:"#94a3b8",cursor:"pointer",marginBottom:"-1px"},tabActive:{color:"#1e293b",borderBottomColor:"#1e293b"},tabDisabled:{opacity:.4,cursor:"default"},log:{flex:1,overflowY:"auto",background:"#0f172a",padding:"1.25rem 1.5rem",fontFamily:"monospace",fontSize:"0.8rem",lineHeight:1.7},logEmpty:{color:"#475569"},logLine:{color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all"},cursor:{color:"#22c55e"},logDone:{color:"#475569",marginTop:"1rem",textAlign:"center",fontSize:"0.75rem"},frame:{flex:1,width:"100%",border:"none"}};function iS(){return N.jsxs(N.Fragment,{children:[N.jsx($v,{}),N.jsxs(s0,{children:[N.jsx(cc,{path:"/",element:N.jsx(lS,{})}),N.jsx(cc,{path:"/runs/:runId",element:N.jsx(nS,{})})]})]})}cy.createRoot(document.getElementById("root")).render(N.jsx(T.StrictMode,{children:N.jsx(_0,{children:N.jsx(iS,{})})}));
|
|
68
|
+
*/var ng;function xv(){if(ng)return uc;ng=1;var s=Au();function i(v,A){return v===A&&(v!==0||1/v===1/A)||v!==v&&A!==A}var c=typeof Object.is=="function"?Object.is:i,r=s.useState,o=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue;function p(v,A){var L=A(),_=r({inst:{value:L,getSnapshot:A}}),w=_[0].inst,G=_[1];return d(function(){w.value=L,w.getSnapshot=A,y(w)&&G({inst:w})},[v,L,A]),o(function(){return y(w)&&G({inst:w}),v(function(){y(w)&&G({inst:w})})},[v]),h(L),L}function y(v){var A=v.getSnapshot;v=v.value;try{var L=A();return!c(v,L)}catch{return!0}}function g(v,A){return A()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:p;return uc.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,uc}var ig;function Ev(){return ig||(ig=1,ic.exports=xv()),ic.exports}var Rv=Ev();const Tv=(s,i)=>{if(na(i))return i;if(cv(i)&&na(i.defaultValue))return i.defaultValue;if(typeof s=="function")return"";if(Array.isArray(s)){const c=s[s.length-1];return typeof c=="function"?"":c}return s},Av={t:Tv,ready:!1},Cv=()=>()=>{},ia=(s,i={})=>{var ce,me,Be;const{i18n:c}=i,{i18n:r,defaultNS:o}=T.useContext(Sv)||{},d=c||r||yv();d&&!d.reportNamespaces&&(d.reportNamespaces=new bv),d||dc(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=T.useMemo(()=>{var le;return{...mv(),...(le=d==null?void 0:d.options)==null?void 0:le.react,...i}},[d,i]),{useSuspense:p,keyPrefix:y}=h,g=o||((ce=d==null?void 0:d.options)==null?void 0:ce.defaultNS),b=na(g)?[g]:g||["translation"],v=T.useMemo(()=>b,b);(Be=(me=d==null?void 0:d.reportNamespaces)==null?void 0:me.addUsedNamespaces)==null||Be.call(me,v);const A=T.useRef(0),L=T.useCallback(le=>{if(!d)return Cv;const{bindI18n:ee,bindI18nStore:ne}=h,oe=()=>{A.current+=1,le()};return ee&&d.on(ee,oe),ne&&d.store.on(ne,oe),()=>{ee&&ee.split(" ").forEach(D=>d.off(D,oe)),ne&&ne.split(" ").forEach(D=>d.store.off(D,oe))}},[d,h]),_=T.useRef(),w=T.useCallback(()=>{if(!d)return Av;const le=!!(d.isInitialized||d.initializedStoreOnce)&&v.every(F=>rv(F,d,h)),ee=i.lng||d.language,ne=A.current,oe=_.current;if(oe&&oe.ready===le&&oe.lng===ee&&oe.keyPrefix===y&&oe.revision===ne)return oe;const V={t:d.getFixedT(ee,h.nsMode==="fallback"?v:v[0],y),ready:le,lng:ee,keyPrefix:y,revision:ne};return _.current=V,V},[d,v,y,h,i.lng]),[G,q]=T.useState(0),{t:X,ready:Y}=Rv.useSyncExternalStore(L,w,w);T.useEffect(()=>{if(d&&!Y&&!p){const le=()=>q(ee=>ee+1);i.lng?ag(d,i.lng,v,le):hc(d,v,le)}},[d,i.lng,v,Y,p,G]);const Q=d||{},I=T.useRef(null),se=T.useRef(),k=le=>{const ee=Object.getOwnPropertyDescriptors(le);ee.__original&&delete ee.__original;const ne=Object.create(Object.getPrototypeOf(le),ee);if(!Object.prototype.hasOwnProperty.call(ne,"__original"))try{Object.defineProperty(ne,"__original",{value:le,writable:!1,enumerable:!1,configurable:!1})}catch{}return ne},ge=T.useMemo(()=>{const le=Q,ee=le==null?void 0:le.language;let ne=le;le&&(I.current&&I.current.__original===le?se.current!==ee?(ne=k(le),I.current=ne,se.current=ee):ne=I.current:(ne=k(le),I.current=ne,se.current=ee));const oe=!Y&&!p?(...V)=>(dc(d,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),X(...V)):X,D=[oe,ne,Y];return D.t=oe,D.i18n=ne,D.ready=Y,D},[X,Q,Y,Q.resolvedLanguage,Q.language,Q.languages]);if(d&&p&&!Y)throw new Promise(le=>{const ee=()=>le();i.lng?ag(d,i.lng,v,ee):hc(d,v,ee)});return ge},zv={title:"shoal"},Ov={title:"Run History",startRun:"Start Run",noRuns:"No runs yet",noRunsHint:"Start a run to explore your app with AI agents."},Dv={status:"Status",started:"Started",duration:"Duration",findings:"Findings",agents:"Agents",cost:"Cost",actions:""},Mv={completed:"Completed",running:"Running"},_v={back:"← Back",noReport:"No report found for this run.",noLog:"No log available.",tabLog:"Log",tabReport:"Report",cancel:"Cancel run",cancelConfirmLabel:"Stop this run?",cancelConfirmYes:"Stop",cancelConfirmNo:"Keep going"},Nv={title:"Start Run",baseUrl:"App URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"Browser agents",maxExplorers:"API agents",start:"Start",cancel:"Cancel",running:"Running…",liveLog:"Live log",close:"Close",advanced:"Advanced",llmBaseUrl:"LLM Base URL",llmModel:"Model",llmApiKey:"API Key"},Lv={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"In progress"},Uv={title:"Scheduled Runs",enabled:"Auto-run enabled",disabled:"Auto-run disabled",dayLabel:"Day",timeLabel:"Time (server local)",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],nextRun:"Next run",saved:"Saved"},jv={title:"App Goals",noSpec:"No product spec yet. Start a run to discover app goals.",noGoals:"No goals defined.",edit:"Edit",save:"Save",cancel:"Cancel",add:"+ Add goal",placeholder:"e.g. Users can complete onboarding without assistance",hint:"Goals inferred by product discovery. Edit to correct or add missing ones.",goalGapHint:'Agents will flag issues that prevent these goals as "goal-gap".'},Hv={header:zv,dashboard:Ov,table:Dv,status:Mv,detail:_v,startModal:Nv,duration:Lv,schedule:Uv,goals:jv},Bv={title:"shoal"},wv={title:"実行一覧",startRun:"実行を開始",noRuns:"実行履歴がありません",noRunsHint:"実行を開始して AI エージェントにアプリを探索させましょう。"},qv={status:"ステータス",started:"開始日時",duration:"所要時間",findings:"Findings",agents:"エージェント",cost:"コスト",actions:""},Yv={completed:"完了",running:"実行中"},Gv={back:"← 一覧に戻る",noReport:"このレポートは見つかりませんでした。",noLog:"ログがありません。",tabLog:"ログ",tabReport:"レポート",cancel:"中止",cancelConfirmLabel:"中止しますか?",cancelConfirmYes:"中止する",cancelConfirmNo:"やめる"},Vv={title:"実行を開始",baseUrl:"アプリの URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"ブラウザエージェント数",maxExplorers:"API エージェント数",start:"開始",cancel:"キャンセル",running:"実行中…",liveLog:"ライブログ",close:"閉じる",advanced:"詳細設定",llmBaseUrl:"LLM Base URL",llmModel:"モデル",llmApiKey:"API キー"},Xv={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"実行中"},Qv={title:"定期実行",enabled:"自動実行:オン",disabled:"自動実行:オフ",dayLabel:"曜日",timeLabel:"時刻(サーバーのローカル時刻)",days:["日","月","火","水","木","金","土"],nextRun:"次回実行",saved:"保存しました"},Kv={title:"App Goals",noSpec:"プロダクト仕様がまだありません。実行を開始するとゴールが自動推論されます。",noGoals:"ゴールが未設定です。",edit:"編集",save:"保存",cancel:"キャンセル",add:"+ ゴールを追加",placeholder:"例: ユーザーがサポートなしでオンボーディングを完了できる",hint:"プロダクト理解エージェントが推論したゴールです。誤りがあれば修正してください。",goalGapHint:'エージェントはこれらのゴール達成を妨げる問題を "goal-gap" として報告します。'},Zv={header:Bv,dashboard:wv,table:qv,status:Yv,detail:Gv,startModal:Vv,duration:Xv,schedule:Qv,goals:Kv},Jv=localStorage.getItem("shoal-lang"),$v=navigator.language.startsWith("ja")?"ja":"en";ke.use(vv).init({resources:{en:{translation:Hv},ja:{translation:Zv}},lng:Jv??$v,fallbackLng:"en",interpolation:{escapeValue:!1}});function kv(){const{t:s}=ia(),i=()=>{const c=ke.language==="ja"?"en":"ja";ke.changeLanguage(c),localStorage.setItem("shoal-lang",c)};return N.jsxs("header",{style:sc.header,children:[N.jsx("span",{style:sc.title,children:s("header.title")}),N.jsx("button",{onClick:i,style:sc.langBtn,children:ke.language==="ja"?"EN":"JA"})]})}const sc={header:{background:"#1e293b",color:"#f8fafc",padding:"0 2rem",height:"52px",display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,zIndex:100},title:{fontSize:"1rem",fontWeight:700,letterSpacing:"0.04em"},langBtn:{background:"transparent",border:"1px solid #475569",color:"#94a3b8",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600,letterSpacing:"0.05em"}};function Fv({onClose:s,onStarted:i}){const{t:c}=ia(),[r,o]=T.useState("http://localhost:3000"),[d,h]=T.useState(2),[p,y]=T.useState(0),[g,b]=T.useState(""),[v,A]=T.useState(""),[L,_]=T.useState(""),[w,G]=T.useState(!1),[q,X]=T.useState(!1),Y=async()=>{X(!0);const Q={baseUrl:r,maxBrowsers:d,maxExplorers:p};g&&(Q.llmBaseUrl=g),v&&(Q.llmApiKey=v),L&&(Q.llmModel=L);const I=await fetch("/api/runs/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Q)}),{sessionId:se}=await I.json();X(!1),i(se)};return N.jsx("div",{style:je.overlay,onClick:Q=>Q.target===Q.currentTarget&&s(),children:N.jsxs("div",{style:je.modal,children:[N.jsx("h2",{style:je.title,children:c("startModal.title")}),N.jsxs("div",{style:je.form,children:[N.jsxs("label",{style:je.label,children:[c("startModal.baseUrl"),N.jsx("input",{type:"text",value:r,onChange:Q=>o(Q.target.value),placeholder:c("startModal.baseUrlPlaceholder"),style:je.input})]}),N.jsxs("div",{style:je.row,children:[N.jsxs("label",{style:je.label,children:[c("startModal.maxBrowsers"),N.jsx("input",{type:"number",min:0,max:8,value:d,onChange:Q=>h(Number(Q.target.value)),style:{...je.input,width:"80px"}})]}),N.jsxs("label",{style:je.label,children:[c("startModal.maxExplorers"),N.jsx("input",{type:"number",min:0,max:8,value:p,onChange:Q=>y(Number(Q.target.value)),style:{...je.input,width:"80px"}})]})]}),N.jsxs("button",{type:"button",onClick:()=>G(Q=>!Q),style:je.advancedToggle,children:[w?"▾":"▸"," ",c("startModal.advanced")]}),w&&N.jsxs("div",{style:je.advancedBox,children:[N.jsxs("label",{style:je.label,children:[c("startModal.llmBaseUrl"),N.jsx("input",{type:"text",value:g,onChange:Q=>b(Q.target.value),placeholder:"http://localhost:11434/v1",style:je.input})]}),N.jsxs("div",{style:je.row,children:[N.jsxs("label",{style:je.label,children:[c("startModal.llmModel"),N.jsx("input",{type:"text",value:L,onChange:Q=>_(Q.target.value),placeholder:"gemma4:e4b",style:je.input})]}),N.jsxs("label",{style:je.label,children:[c("startModal.llmApiKey"),N.jsx("input",{type:"text",value:v,onChange:Q=>A(Q.target.value),placeholder:"ollama",style:je.input})]})]})]}),N.jsxs("div",{style:je.buttons,children:[N.jsx("button",{onClick:s,style:je.cancelBtn,disabled:q,children:c("startModal.cancel")}),N.jsx("button",{onClick:Y,style:je.startBtn,disabled:q,children:q?"…":c("startModal.start")})]})]})]})})}const je={overlay:{position:"fixed",inset:0,background:"rgba(15,23,42,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{background:"#fff",borderRadius:"12px",padding:"1.75rem",width:"520px",maxWidth:"calc(100vw - 2rem)",boxShadow:"0 20px 60px rgba(0,0,0,0.2)"},title:{fontSize:"1rem",fontWeight:700,marginBottom:"1.25rem"},form:{display:"flex",flexDirection:"column",gap:"1rem"},row:{display:"flex",gap:"1rem"},label:{display:"flex",flexDirection:"column",gap:"0.375rem",fontSize:"0.8rem",fontWeight:600,color:"#475569",flex:1},input:{border:"1px solid #e2e8f0",borderRadius:"6px",padding:"8px 10px",fontSize:"0.875rem",outline:"none",width:"100%",color:"#1e293b",background:"#fff"},advancedToggle:{background:"none",border:"none",padding:0,color:"#94a3b8",fontSize:"0.8rem",fontWeight:600,textAlign:"left",cursor:"pointer"},advancedBox:{display:"flex",flexDirection:"column",gap:"0.75rem",padding:"0.875rem",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},buttons:{display:"flex",gap:"0.5rem",justifyContent:"flex-end",marginTop:"0.25rem"},cancelBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"6px",padding:"8px 16px",fontWeight:600,cursor:"pointer"},startBtn:{background:"#1e293b",color:"#fff",border:"none",borderRadius:"6px",padding:"8px 20px",fontWeight:600,cursor:"pointer"}};function Wv(){const{t:s}=ia(),[i,c]=T.useState(null),[r,o]=T.useState(!1),[d,h]=T.useState(!1),[p,y]=T.useState([]),[g,b]=T.useState(!1);T.useEffect(()=>{fetch("/api/spec").then(X=>X.status===404?(o(!0),null):X.json()).then(X=>{X&&c(X)}).catch(()=>{})},[]);const v=()=>{var X;y((X=i==null?void 0:i.appGoals)!=null&&X.length?[...i.appGoals]:[""]),h(!0)},A=()=>h(!1),L=async()=>{const X=p.map(Y=>Y.trim()).filter(Boolean);b(!0);try{await fetch("/api/spec/goals",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({goals:X})}),c(Y=>Y&&{...Y,appGoals:X}),h(!1)}finally{b(!1)}},_=(X,Y)=>{y(Q=>Q.map((I,se)=>se===X?Y:I))},w=X=>{y(Y=>Y.filter((Q,I)=>I!==X))},G=()=>y(X=>[...X,""]);if(r)return N.jsxs("div",{style:Qe.panel,children:[N.jsx("div",{style:Qe.header,children:N.jsx("span",{style:Qe.title,children:s("goals.title")})}),N.jsx("p",{style:Qe.hint,children:s("goals.noSpec")})]});if(!i)return null;const q=i.appGoals??[];return N.jsxs("div",{style:Qe.panel,children:[N.jsxs("div",{style:Qe.header,children:[N.jsxs("span",{style:Qe.title,children:[s("goals.title"),i.appName&&N.jsxs("span",{style:Qe.appName,children:[" — ",i.appName]})]}),!d&&N.jsx("button",{onClick:v,style:Qe.editBtn,children:s("goals.edit")})]}),d?N.jsxs("div",{style:Qe.editArea,children:[p.map((X,Y)=>N.jsxs("div",{style:Qe.inputRow,children:[N.jsx("input",{style:Qe.input,value:X,placeholder:s("goals.placeholder"),onChange:Q=>_(Y,Q.target.value),autoFocus:Y===p.length-1&&X===""}),N.jsx("button",{onClick:()=>w(Y),style:Qe.removeBtn,children:"×"})]},Y)),N.jsx("button",{onClick:G,style:Qe.addBtn,children:s("goals.add")}),N.jsxs("div",{style:Qe.editActions,children:[N.jsx("button",{onClick:A,style:Qe.cancelBtn,children:s("goals.cancel")}),N.jsx("button",{onClick:L,style:Qe.saveBtn,disabled:g,children:g?"…":s("goals.save")})]})]}):N.jsxs(N.Fragment,{children:[q.length===0?N.jsx("p",{style:Qe.hint,children:s("goals.noGoals")}):N.jsx("ul",{style:Qe.list,children:q.map((X,Y)=>N.jsx("li",{style:Qe.goalItem,children:X},Y))}),N.jsx("p",{style:Qe.subHint,children:s("goals.goalGapHint")})]})]})}const Qe={panel:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"8px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.6rem"},title:{fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#64748b"},appName:{fontWeight:400,textTransform:"none",letterSpacing:0},editBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"5px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},list:{margin:"0 0 0.5rem 0",paddingLeft:"1.25rem",display:"flex",flexDirection:"column",gap:"0.3rem"},goalItem:{fontSize:"0.875rem",color:"#1e293b",lineHeight:1.5},hint:{fontSize:"0.8rem",color:"#94a3b8",margin:"0 0 0.4rem"},subHint:{fontSize:"0.75rem",color:"#94a3b8",margin:"0.5rem 0 0"},editArea:{display:"flex",flexDirection:"column",gap:"0.4rem"},inputRow:{display:"flex",gap:"0.4rem",alignItems:"center"},input:{flex:1,padding:"6px 10px",fontSize:"0.875rem",border:"1px solid #cbd5e1",borderRadius:"5px",color:"#1e293b",outline:"none"},removeBtn:{background:"transparent",border:"none",color:"#94a3b8",fontSize:"1rem",cursor:"pointer",padding:"0 4px",lineHeight:1},addBtn:{alignSelf:"flex-start",background:"transparent",border:"none",color:"#3b82f6",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",padding:"2px 0"},editActions:{display:"flex",gap:"0.5rem",justifyContent:"flex-end",marginTop:"0.25rem"},cancelBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"5px",padding:"5px 12px",fontSize:"0.8rem",cursor:"pointer"},saveBtn:{background:"#1e293b",border:"none",color:"#f8fafc",borderRadius:"5px",padding:"5px 14px",fontSize:"0.8rem",fontWeight:600,cursor:"pointer"}};function Iv(){const{t:s}=ia(),[i,c]=T.useState(null),[r,o]=T.useState(!1);T.useEffect(()=>{fetch("/api/schedule").then(y=>y.json()).then(y=>c(y)).catch(()=>{})},[]);const d=async y=>{if(!i)return;const g={...i,...y};c(g);try{const b=await fetch("/api/schedule",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(y)});if(b.ok){const v=await b.json();c(v),o(!0),setTimeout(()=>o(!1),2e3)}}catch{}};if(!i)return null;const h=s("schedule.days",{returnObjects:!0}),p=(()=>{if(!i.enabled)return null;const y=new Date,g=new Date;g.setHours(i.hour,i.minute,0,0);const b=(i.dayOfWeek-y.getDay()+7)%7||(y.getHours()*60+y.getMinutes()>=i.hour*60+i.minute?7:0);return g.setDate(g.getDate()+b),g.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})();return N.jsxs("div",{style:Pe.panel,children:[N.jsxs("div",{style:Pe.header,children:[N.jsx("span",{style:Pe.title,children:s("schedule.title")}),N.jsx("button",{onClick:()=>d({enabled:!i.enabled}),style:{...Pe.toggle,background:i.enabled?"#22c55e":"#374151"},children:i.enabled?s("schedule.enabled"):s("schedule.disabled")})]}),N.jsxs("div",{style:{...Pe.fields,opacity:i.enabled?1:.4,pointerEvents:i.enabled?"auto":"none"},children:[N.jsxs("div",{style:Pe.field,children:[N.jsx("label",{style:Pe.label,children:s("schedule.dayLabel")}),N.jsx("div",{style:Pe.dayRow,children:h.map((y,g)=>N.jsx("button",{onClick:()=>d({dayOfWeek:g}),style:{...Pe.dayBtn,background:i.dayOfWeek===g?"#6366f1":"#1f2937"},children:y},g))})]}),N.jsxs("div",{style:Pe.field,children:[N.jsx("label",{style:Pe.label,children:s("schedule.timeLabel")}),N.jsxs("div",{style:Pe.timeRow,children:[N.jsx("input",{type:"number",min:0,max:23,value:i.hour,onChange:y=>d({hour:parseInt(y.target.value)||0}),style:Pe.timeInput}),N.jsx("span",{style:Pe.colon,children:":"}),N.jsx("input",{type:"number",min:0,max:59,value:String(i.minute).padStart(2,"0"),onChange:y=>d({minute:parseInt(y.target.value)||0}),style:Pe.timeInput})]})]})]}),N.jsxs("div",{style:Pe.footer,children:[r&&N.jsx("span",{style:Pe.savedLabel,children:s("schedule.saved")}),p&&N.jsxs("span",{style:Pe.nextRun,children:[s("schedule.nextRun"),": ",p]})]})]})}const Pe={panel:{background:"#111827",border:"1px solid #1f2937",borderRadius:"8px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.875rem"},title:{color:"#e2e8f0",fontWeight:600,fontSize:"0.9rem"},toggle:{border:"none",borderRadius:"6px",padding:"0.3rem 0.75rem",fontSize:"0.75rem",fontWeight:600,color:"#fff",cursor:"pointer"},fields:{display:"flex",gap:"1.5rem",flexWrap:"wrap"},field:{display:"flex",flexDirection:"column",gap:"0.4rem"},label:{fontSize:"0.75rem",color:"#94a3b8"},dayRow:{display:"flex",gap:"0.25rem"},dayBtn:{border:"none",borderRadius:"4px",padding:"0.3rem 0.5rem",fontSize:"0.75rem",color:"#e2e8f0",cursor:"pointer"},timeRow:{display:"flex",alignItems:"center",gap:"0.25rem"},timeInput:{background:"#1f2937",border:"1px solid #374151",borderRadius:"4px",color:"#e2e8f0",padding:"0.3rem 0.5rem",width:"3.5rem",textAlign:"center",fontSize:"0.875rem"},colon:{color:"#94a3b8",fontWeight:700},footer:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"0.75rem",minHeight:"1.2rem"},savedLabel:{fontSize:"0.75rem",color:"#22c55e"},nextRun:{fontSize:"0.75rem",color:"#64748b"}};function Pv(s,i,c){if(!i)return c("duration.inProgress");const r=new Date(i).getTime()-new Date(s).getTime(),o=Math.round(r/1e3);return o<60?c("duration.seconds",{count:o}):c("duration.minutes",{m:Math.floor(o/60),s:o%60})}function eS(s){return new Date(s).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}const tS={bug:"#ef4444",ux:"#f97316","feature-request":"#3b82f6","goal-gap":"#8b5cf6"};function lS(s){return s==null?"—":s<1e-4?"< $0.0001":s<.01?`$${s.toFixed(4)}`:s<1?`$${s.toFixed(3)}`:`$${s.toFixed(2)}`}function aS(){const{t:s}=ia(),i=yc(),[c,r]=T.useState([]),[o,d]=T.useState(!1),h=()=>{fetch("/api/runs").then(p=>p.json()).then(p=>{const y=new Set(p.map(L=>L.runId)),g=localStorage.getItem("shoal-active-run-id"),b=localStorage.getItem("shoal-active-run-started-at"),v=()=>{localStorage.removeItem("shoal-active-run-id"),localStorage.removeItem("shoal-active-run-started-at")};let A=[];if(g&&b){const L=(Date.now()-new Date(b).getTime())/6e4;y.has(g)||L>120?v():A=[{runId:g,startedAt:b,completedAt:null,status:"running",agentCount:0,completedAgents:0,errorAgents:0,findingCount:0,findingsByCategory:{},hasReport:!1,isLive:!0}]}r([...A,...p])}).catch(()=>{})};return T.useEffect(()=>{h();const p=setInterval(h,5e3);return()=>clearInterval(p)},[]),N.jsxs("main",{style:Me.main,children:[N.jsxs("div",{style:Me.pageHeader,children:[N.jsx("h1",{style:Me.pageTitle,children:s("dashboard.title")}),N.jsx("button",{onClick:()=>d(!0),style:Me.startBtn,children:s("dashboard.startRun")})]}),N.jsx(Wv,{}),N.jsx(Iv,{}),c.length===0?N.jsxs("div",{style:Me.empty,children:[N.jsx("img",{src:"/mascot.svg",alt:"shoal",style:Me.emptyMascot}),N.jsx("p",{style:Me.emptyTitle,children:s("dashboard.noRuns")}),N.jsx("p",{style:Me.emptyHint,children:s("dashboard.noRunsHint")})]}):N.jsx("div",{style:Me.tableWrapper,children:N.jsxs("table",{style:Me.table,children:[N.jsx("thead",{children:N.jsx("tr",{children:["status","started","duration","findings","agents","cost","actions"].map(p=>N.jsx("th",{style:{...Me.th,...p==="agents"||p==="findings"||p==="cost"?{textAlign:"center"}:{}},children:s(`table.${p}`)},p))})}),N.jsx("tbody",{children:c.map(p=>N.jsx(nS,{run:p,onView:()=>i(`/runs/${p.runId}`)},p.runId))})]})}),o&&N.jsx(Fv,{onClose:()=>d(!1),onStarted:p=>{d(!1),localStorage.setItem("shoal-active-run-id",p),localStorage.setItem("shoal-active-run-started-at",new Date().toISOString()),h()}})]})}function nS({run:s,onView:i}){const{t:c}=ia(),r=s.status==="running",o=s.findingCount,d=Object.entries(s.findingsByCategory);return N.jsxs("tr",{style:Me.row,children:[N.jsx("td",{style:Me.td,children:N.jsx("span",{style:{...Me.badge,background:r?"#f59e0b":"#22c55e"},children:c(`status.${s.status}`)})}),N.jsx("td",{style:{...Me.td,...Me.muted},children:eS(s.startedAt)}),N.jsx("td",{style:{...Me.td,...Me.muted},children:Pv(s.startedAt,s.completedAt,c)}),N.jsxs("td",{style:{...Me.td,textAlign:"center"},children:[o>0?N.jsx("span",{style:Me.findingsGroup,children:d.map(([h,p])=>N.jsx("span",{style:{...Me.badge,background:tS[h]??"#6b7280"},children:p},h))}):N.jsx("span",{style:Me.muted,children:"—"}),s.regressionChecked>0&&N.jsx("span",{style:{display:"block",fontSize:"0.7rem",marginTop:"0.25rem",color:s.regressionFailed>0?"#ef4444":"#22c55e"},children:s.regressionFailed>0?`⚠ ${s.regressionFailed} regressed`:`✓ ${s.regressionChecked} still fixed`})]}),N.jsxs("td",{style:{...Me.td,textAlign:"center",...Me.muted},children:[s.completedAgents,"/",s.agentCount]}),N.jsx("td",{style:{...Me.td,textAlign:"center",...Me.muted},children:lS(s.estimatedCostUSD)}),N.jsx("td",{style:Me.td,children:N.jsx("button",{onClick:i,style:Me.viewBtn,children:s.isLive?ke.language==="ja"?"ログ →":"Log →":ke.language==="ja"?"表示 →":"View →"})})]})}const Me={main:{maxWidth:"960px",margin:"0 auto",padding:"2rem"},pageHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.5rem"},pageTitle:{fontSize:"1rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#64748b"},startBtn:{background:"#1e293b",color:"#f8fafc",border:"none",borderRadius:"6px",padding:"8px 16px",fontWeight:600,fontSize:"0.875rem"},empty:{textAlign:"center",padding:"4rem 2rem",color:"#94a3b8"},emptyMascot:{width:"100px",height:"100px",opacity:.55,marginBottom:"1rem"},emptyTitle:{fontSize:"1rem",fontWeight:600,marginBottom:"0.5rem"},emptyHint:{fontSize:"0.875rem"},tableWrapper:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},table:{width:"100%",borderCollapse:"collapse",fontSize:"0.875rem"},th:{background:"#f1f5f9",padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"#64748b",fontSize:"0.7rem",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid #e2e8f0"},row:{borderTop:"1px solid #e2e8f0"},td:{padding:"0.75rem 1rem",verticalAlign:"middle"},muted:{color:"#64748b"},badge:{display:"inline-block",padding:"0.15rem 0.5rem",borderRadius:"9999px",fontSize:"0.65rem",fontWeight:700,color:"#fff",whiteSpace:"nowrap"},findingsGroup:{display:"inline-flex",gap:"4px",alignItems:"center"},viewBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600}};function iS(){const{runId:s}=Jy(),i=yc(),{t:c}=ia(),[r,o]=T.useState("log"),[d,h]=T.useState([]),[p,y]=T.useState(!1),[g,b]=T.useState(!1),[v,A]=T.useState(!1),[L,_]=T.useState(!1),[w,G]=T.useState(!1),q=T.useRef(null),X=async()=>{_(!0),G(!1),await fetch(`/api/runs/${s}/cancel`,{method:"POST"}).catch(()=>{})};return T.useEffect(()=>{fetch(`/api/runs/${s}/log`).then(Y=>Y.json()).then(Y=>{h(Y.lines),b(Y.done),Y.done||y(!0)}).catch(()=>{}),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(Y=>A(Y.ok)).catch(()=>{})},[s]),T.useEffect(()=>{if(!p)return;let Y=!1;const Q=new EventSource(`/api/runs/${s}/events`),I=()=>{b(!0),y(!1),Q.close(),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(ge=>A(ge.ok)).catch(()=>{})};Q.onmessage=ge=>{const ce=JSON.parse(ge.data);h(me=>[...me,ce])},Q.addEventListener("done",I);const se=setTimeout(()=>{Q.readyState!==EventSource.OPEN&&(Q.close(),k())},3e3);Q.onerror=()=>{clearTimeout(se),Q.close(),Y||k()};function k(){let ge=0;const ce=setInterval(async()=>{if(Y){clearInterval(ce);return}try{const me=await fetch(`/api/runs/${s}/log`);if(!me.ok)return;const Be=await me.json();Be.lines.length>ge&&(h(Be.lines),ge=Be.lines.length),Be.done&&(clearInterval(ce),b(!0),y(!1),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(le=>A(le.ok)).catch(()=>{}))}catch{}},2e3);return()=>clearInterval(ce)}return()=>{Y=!0,clearTimeout(se),Q.close()}},[p,s]),T.useEffect(()=>{q.current&&(q.current.scrollTop=q.current.scrollHeight)},[d]),N.jsxs("div",{style:Ye.wrapper,children:[N.jsxs("div",{style:Ye.toolbar,children:[N.jsx("button",{onClick:()=>i("/"),style:Ye.backBtn,children:c("detail.back")}),N.jsx("span",{style:Ye.runId,children:s}),p&&N.jsx("span",{style:Ye.liveBadge,children:"● LIVE"}),p&&!w&&N.jsx("button",{onClick:()=>G(!0),style:Ye.cancelBtn,disabled:L,children:L?"…":c("detail.cancel")}),p&&w&&N.jsxs("div",{style:Ye.cancelConfirm,children:[N.jsx("span",{style:Ye.cancelConfirmLabel,children:c("detail.cancelConfirmLabel")}),N.jsx("button",{onClick:X,style:Ye.cancelConfirmYes,children:c("detail.cancelConfirmYes")}),N.jsx("button",{onClick:()=>G(!1),style:Ye.cancelConfirmNo,children:c("detail.cancelConfirmNo")})]})]}),N.jsxs("div",{style:Ye.tabs,children:[N.jsx("button",{style:{...Ye.tab,...r==="log"?Ye.tabActive:{}},onClick:()=>o("log"),children:c("detail.tabLog")}),N.jsx("button",{style:{...Ye.tab,...r==="report"?Ye.tabActive:{},...v?{}:Ye.tabDisabled},onClick:()=>v&&o("report"),disabled:!v,children:c("detail.tabReport")})]}),r==="log"&&N.jsxs("div",{ref:q,style:Ye.log,children:[d.length===0&&!p&&N.jsx("p",{style:Ye.logEmpty,children:c("detail.noLog")}),d.map((Y,Q)=>N.jsx("div",{style:Ye.logLine,children:Y},Q)),p&&N.jsx("div",{style:Ye.cursor,children:"▌"}),g&&d.length>0&&N.jsxs("div",{style:Ye.logDone,children:["— ",c("status.completed")," —"]})]}),r==="report"&&N.jsx("iframe",{src:`/api/runs/${s}/report`,style:Ye.frame,title:`Report for ${s}`})]})}const Ye={wrapper:{display:"flex",flexDirection:"column",height:"calc(100vh - 52px)"},toolbar:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.75rem 2rem",borderBottom:"1px solid #e2e8f0",background:"#fff"},backBtn:{background:"transparent",border:"none",color:"#475569",fontSize:"0.875rem",fontWeight:600,padding:0,cursor:"pointer"},runId:{fontSize:"0.75rem",color:"#94a3b8",fontFamily:"monospace"},liveBadge:{fontSize:"0.7rem",fontWeight:700,color:"#22c55e",letterSpacing:"0.05em"},cancelBtn:{background:"transparent",border:"1px solid #ef4444",color:"#ef4444",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer",marginLeft:"auto"},cancelConfirm:{display:"flex",alignItems:"center",gap:"0.5rem",marginLeft:"auto"},cancelConfirmLabel:{fontSize:"0.75rem",color:"#64748b",fontWeight:600},cancelConfirmYes:{background:"#ef4444",border:"none",color:"#fff",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},cancelConfirmNo:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},tabs:{display:"flex",gap:0,background:"#fff",borderBottom:"1px solid #e2e8f0",padding:"0 2rem"},tab:{background:"transparent",border:"none",borderBottom:"2px solid transparent",padding:"0.625rem 1rem",fontSize:"0.8rem",fontWeight:600,color:"#94a3b8",cursor:"pointer",marginBottom:"-1px"},tabActive:{color:"#1e293b",borderBottomColor:"#1e293b"},tabDisabled:{opacity:.4,cursor:"default"},log:{flex:1,overflowY:"auto",background:"#0f172a",padding:"1.25rem 1.5rem",fontFamily:"monospace",fontSize:"0.8rem",lineHeight:1.7},logEmpty:{color:"#475569"},logLine:{color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all"},cursor:{color:"#22c55e"},logDone:{color:"#475569",marginTop:"1rem",textAlign:"center",fontSize:"0.75rem"},frame:{flex:1,width:"100%",border:"none"}};function uS(){return N.jsxs(N.Fragment,{children:[N.jsx(kv,{}),N.jsxs(r0,{children:[N.jsx(cc,{path:"/",element:N.jsx(aS,{})}),N.jsx(cc,{path:"/runs/:runId",element:N.jsx(iS,{})})]})]})}cy.createRoot(document.getElementById("root")).render(N.jsx(T.StrictMode,{children:N.jsx(N0,{children:N.jsx(uS,{})})}));
|