@m8i-51/shoal 0.1.16 → 0.1.17
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.
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function o(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=o(c);fetch(c.href,f)}})();var Ps={exports:{}},Vn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var jh;function iy(){if(jh)return Vn;jh=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(s,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:r,type:s,key:h,ref:c!==void 0?c:null,props:f}}return Vn.Fragment=i,Vn.jsx=o,Vn.jsxs=o,Vn}var Mh;function uy(){return Mh||(Mh=1,Ps.exports=iy()),Ps.exports}var R=uy(),eo={exports:{}},se={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Lh;function ry(){if(Lh)return se;Lh=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),z=Symbol.iterator;function N(x){return x===null||typeof x!="object"?null:(x=z&&x[z]||x["@@iterator"],typeof x=="function"?x:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,q={};function Y(x,U,Z){this.props=x,this.context=U,this.refs=q,this.updater=Z||L}Y.prototype.isReactComponent={},Y.prototype.setState=function(x,U){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,U,"setState")},Y.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function V(){}V.prototype=Y.prototype;function X(x,U,Z){this.props=x,this.context=U,this.refs=q,this.updater=Z||L}var Q=X.prototype=new V;Q.constructor=X,B(Q,Y.prototype),Q.isPureReactComponent=!0;var I=Array.isArray;function K(){}var J={H:null,A:null,T:null,S:null},de=Object.prototype.hasOwnProperty;function fe(x,U,Z){var k=Z.ref;return{$$typeof:r,type:x,key:U,ref:k!==void 0?k:null,props:Z}}function ee(x,U){return fe(x.type,U,x.props)}function Te(x){return typeof x=="object"&&x!==null&&x.$$typeof===r}function ie(x){var U={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(Z){return U[Z]})}var ae=/\/+/g;function le(x,U){return typeof x=="object"&&x!==null&&x.key!=null?ie(""+x.key):U.toString(36)}function ue(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(K,K):(x.status="pending",x.then(function(U){x.status==="pending"&&(x.status="fulfilled",x.value=U)},function(U){x.status==="pending"&&(x.status="rejected",x.reason=U)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function j(x,U,Z,k,re){var he=typeof x;(he==="undefined"||he==="boolean")&&(x=null);var Ae=!1;if(x===null)Ae=!0;else switch(he){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(x.$$typeof){case r:case i:Ae=!0;break;case b:return Ae=x._init,j(Ae(x._payload),U,Z,k,re)}}if(Ae)return re=re(x),Ae=k===""?"."+le(x,0):k,I(re)?(Z="",Ae!=null&&(Z=Ae.replace(ae,"$&/")+"/"),j(re,U,Z,"",function(kl){return kl})):re!=null&&(Te(re)&&(re=ee(re,Z+(re.key==null||x&&x.key===re.key?"":(""+re.key).replace(ae,"$&/")+"/")+Ae)),U.push(re)),1;Ae=0;var rt=k===""?".":k+":";if(I(x))for(var Ve=0;Ve<x.length;Ve++)k=x[Ve],he=rt+le(k,Ve),Ae+=j(k,U,Z,he,re);else if(Ve=N(x),typeof Ve=="function")for(x=Ve.call(x),Ve=0;!(k=x.next()).done;)k=k.value,he=rt+le(k,Ve++),Ae+=j(k,U,Z,he,re);else if(he==="object"){if(typeof x.then=="function")return j(ue(x),U,Z,k,re);throw U=String(x),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function G(x,U,Z){if(x==null)return x;var k=[],re=0;return j(x,k,"","",function(he){return U.call(Z,he,re++)}),k}function F(x){if(x._status===-1){var U=x._result;U=U(),U.then(function(Z){(x._status===0||x._status===-1)&&(x._status=1,x._result=Z)},function(Z){(x._status===0||x._status===-1)&&(x._status=2,x._result=Z)}),x._status===-1&&(x._status=0,x._result=U)}if(x._status===1)return x._result.default;throw x._result}var ve=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=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(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ze={map:G,forEach:function(x,U,Z){G(x,function(){U.apply(this,arguments)},Z)},count:function(x){var U=0;return G(x,function(){U++}),U},toArray:function(x){return G(x,function(U){return U})||[]},only:function(x){if(!Te(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return se.Activity=v,se.Children=ze,se.Component=Y,se.Fragment=o,se.Profiler=c,se.PureComponent=X,se.StrictMode=s,se.Suspense=y,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,se.__COMPILER_RUNTIME={__proto__:null,c:function(x){return J.H.useMemoCache(x)}},se.cache=function(x){return function(){return x.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(x,U,Z){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var k=B({},x.props),re=x.key;if(U!=null)for(he in U.key!==void 0&&(re=""+U.key),U)!de.call(U,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&U.ref===void 0||(k[he]=U[he]);var he=arguments.length-2;if(he===1)k.children=Z;else if(1<he){for(var Ae=Array(he),rt=0;rt<he;rt++)Ae[rt]=arguments[rt+2];k.children=Ae}return fe(x.type,re,k)},se.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},se.createElement=function(x,U,Z){var k,re={},he=null;if(U!=null)for(k in U.key!==void 0&&(he=""+U.key),U)de.call(U,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(re[k]=U[k]);var Ae=arguments.length-2;if(Ae===1)re.children=Z;else if(1<Ae){for(var rt=Array(Ae),Ve=0;Ve<Ae;Ve++)rt[Ve]=arguments[Ve+2];re.children=rt}if(x&&x.defaultProps)for(k in Ae=x.defaultProps,Ae)re[k]===void 0&&(re[k]=Ae[k]);return fe(x,he,re)},se.createRef=function(){return{current:null}},se.forwardRef=function(x){return{$$typeof:g,render:x}},se.isValidElement=Te,se.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:F}},se.memo=function(x,U){return{$$typeof:m,type:x,compare:U===void 0?null:U}},se.startTransition=function(x){var U=J.T,Z={};J.T=Z;try{var k=x(),re=J.S;re!==null&&re(Z,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(K,ve)}catch(he){ve(he)}finally{U!==null&&Z.types!==null&&(U.types=Z.types),J.T=U}},se.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},se.use=function(x){return J.H.use(x)},se.useActionState=function(x,U,Z){return J.H.useActionState(x,U,Z)},se.useCallback=function(x,U){return J.H.useCallback(x,U)},se.useContext=function(x){return J.H.useContext(x)},se.useDebugValue=function(){},se.useDeferredValue=function(x,U){return J.H.useDeferredValue(x,U)},se.useEffect=function(x,U){return J.H.useEffect(x,U)},se.useEffectEvent=function(x){return J.H.useEffectEvent(x)},se.useId=function(){return J.H.useId()},se.useImperativeHandle=function(x,U,Z){return J.H.useImperativeHandle(x,U,Z)},se.useInsertionEffect=function(x,U){return J.H.useInsertionEffect(x,U)},se.useLayoutEffect=function(x,U){return J.H.useLayoutEffect(x,U)},se.useMemo=function(x,U){return J.H.useMemo(x,U)},se.useOptimistic=function(x,U){return J.H.useOptimistic(x,U)},se.useReducer=function(x,U,Z){return J.H.useReducer(x,U,Z)},se.useRef=function(x){return J.H.useRef(x)},se.useState=function(x){return J.H.useState(x)},se.useSyncExternalStore=function(x,U,Z){return J.H.useSyncExternalStore(x,U,Z)},se.useTransition=function(){return J.H.useTransition()},se.version="19.2.5",se}var Nh;function Mu(){return Nh||(Nh=1,eo.exports=ry()),eo.exports}var T=Mu(),to={exports:{}},Xn={},ao={exports:{}},lo={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var _h;function sy(){return _h||(_h=1,(function(r){function i(j,G){var F=j.length;j.push(G);e:for(;0<F;){var ve=F-1>>>1,ze=j[ve];if(0<c(ze,G))j[ve]=G,j[F]=ze,F=ve;else break e}}function o(j){return j.length===0?null:j[0]}function s(j){if(j.length===0)return null;var G=j[0],F=j.pop();if(F!==G){j[0]=F;e:for(var ve=0,ze=j.length,x=ze>>>1;ve<x;){var U=2*(ve+1)-1,Z=j[U],k=U+1,re=j[k];if(0>c(Z,F))k<ze&&0>c(re,Z)?(j[ve]=re,j[k]=F,ve=k):(j[ve]=Z,j[U]=F,ve=U);else if(k<ze&&0>c(re,F))j[ve]=re,j[k]=F,ve=k;else break e}}return G}function c(j,G){var F=j.sortIndex-G.sortIndex;return F!==0?F:j.id-G.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();r.unstable_now=function(){return h.now()-g}}var y=[],m=[],b=1,v=null,z=3,N=!1,L=!1,B=!1,q=!1,Y=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Q(j){for(var G=o(m);G!==null;){if(G.callback===null)s(m);else if(G.startTime<=j)s(m),G.sortIndex=G.expirationTime,i(y,G);else break;G=o(m)}}function I(j){if(B=!1,Q(j),!L)if(o(y)!==null)L=!0,K||(K=!0,ie());else{var G=o(m);G!==null&&ue(I,G.startTime-j)}}var K=!1,J=-1,de=5,fe=-1;function ee(){return q?!0:!(r.unstable_now()-fe<de)}function Te(){if(q=!1,K){var j=r.unstable_now();fe=j;var G=!0;try{e:{L=!1,B&&(B=!1,V(J),J=-1),N=!0;var F=z;try{t:{for(Q(j),v=o(y);v!==null&&!(v.expirationTime>j&&ee());){var ve=v.callback;if(typeof ve=="function"){v.callback=null,z=v.priorityLevel;var ze=ve(v.expirationTime<=j);if(j=r.unstable_now(),typeof ze=="function"){v.callback=ze,Q(j),G=!0;break t}v===o(y)&&s(y),Q(j)}else s(y);v=o(y)}if(v!==null)G=!0;else{var x=o(m);x!==null&&ue(I,x.startTime-j),G=!1}}break e}finally{v=null,z=F,N=!1}G=void 0}}finally{G?ie():K=!1}}}var ie;if(typeof X=="function")ie=function(){X(Te)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,le=ae.port2;ae.port1.onmessage=Te,ie=function(){le.postMessage(null)}}else ie=function(){Y(Te,0)};function ue(j,G){J=Y(function(){j(r.unstable_now())},G)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(j){j.callback=null},r.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<j?Math.floor(1e3/j):5},r.unstable_getCurrentPriorityLevel=function(){return z},r.unstable_next=function(j){switch(z){case 1:case 2:case 3:var G=3;break;default:G=z}var F=z;z=G;try{return j()}finally{z=F}},r.unstable_requestPaint=function(){q=!0},r.unstable_runWithPriority=function(j,G){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var F=z;z=j;try{return G()}finally{z=F}},r.unstable_scheduleCallback=function(j,G,F){var ve=r.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ve+F:ve):F=ve,j){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=F+ze,j={id:b++,callback:G,priorityLevel:j,startTime:F,expirationTime:ze,sortIndex:-1},F>ve?(j.sortIndex=F,i(m,j),o(y)===null&&j===o(m)&&(B?(V(J),J=-1):B=!0,ue(I,F-ve))):(j.sortIndex=ze,i(y,j),L||N||(L=!0,K||(K=!0,ie()))),j},r.unstable_shouldYield=ee,r.unstable_wrapCallback=function(j){var G=z;return function(){var F=z;z=G;try{return j.apply(this,arguments)}finally{z=F}}}})(lo)),lo}var Uh;function oy(){return Uh||(Uh=1,ao.exports=sy()),ao.exports}var no={exports:{}},ut={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Hh;function cy(){if(Hh)return ut;Hh=1;var r=Mu();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:y,containerInfo:m,implementation:b}}var h=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ut.createPortal=function(y,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(y,m,null,b)},ut.flushSync=function(y){var m=h.T,b=s.p;try{if(h.T=null,s.p=2,y)return y()}finally{h.T=m,s.p=b,s.d.f()}},ut.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(y,m))},ut.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},ut.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var b=m.as,v=g(b,m.crossOrigin),z=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:z,fetchPriority:N}):b==="script"&&s.d.X(y,{crossOrigin:v,integrity:z,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ut.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=g(m.as,m.crossOrigin);s.d.M(y,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(y)},ut.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=g(b,m.crossOrigin);s.d.L(y,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ut.preloadModule=function(y,m){if(typeof y=="string")if(m){var b=g(m.as,m.crossOrigin);s.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(y)},ut.requestFormReset=function(y){s.d.r(y)},ut.unstable_batchedUpdates=function(y,m){return y(m)},ut.useFormState=function(y,m,b){return h.H.useFormState(y,m,b)},ut.useFormStatus=function(){return h.H.useHostTransitionStatus()},ut.version="19.2.5",ut}var Bh;function fy(){if(Bh)return no.exports;Bh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),no.exports=cy(),no.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var wh;function dy(){if(wh)return Xn;wh=1;var r=oy(),i=Mu(),o=fy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a: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 g(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(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var u=n.alternate;if(u===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===a)return y(n),e;if(u===l)return y(n),t;u=u.sibling}throw Error(s(188))}if(a.return!==l.return)a=n,l=u;else{for(var d=!1,p=n.child;p;){if(p===a){d=!0,a=n,l=u;break}if(p===l){d=!0,l=n,a=u;break}p=p.sibling}if(!d){for(p=u.child;p;){if(p===a){d=!0,a=u,l=n;break}if(p===l){d=!0,l=u,a=n;break}p=p.sibling}if(!d)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?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,z=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),Te=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=Te&&e[Te]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case Y:return"Profiler";case q:return"StrictMode";case I:return"Suspense";case K:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case X:return e.displayName||"Context";case V: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 J:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case de:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,j=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ve=[],ze=-1;function x(e){return{current:e}}function U(e){0>ze||(e.current=ve[ze],ve[ze]=null,ze--)}function Z(e,t){ze++,ve[ze]=e.current,e.current=t}var k=x(null),re=x(null),he=x(null),Ae=x(null);function rt(e,t){switch(Z(he,t),Z(re,e),Z(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Pd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Pd(t),e=eh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(k),Z(k,e)}function Ve(){U(k),U(re),U(he)}function kl(e){e.memoizedState!==null&&Z(Ae,e);var t=k.current,a=eh(t,e.type);t!==a&&(Z(re,e),Z(k,a))}function ai(e){re.current===e&&(U(k),U(re)),Ae.current===e&&(U(Ae),wn._currentValue=F)}var Uu,Oo;function Ga(e){if(Uu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Uu=t&&t[1]||"",Oo=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Uu+e+Oo}var Hu=!1;function Bu(e,t){if(!e||Hu)return"";Hu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(M){var D=M}Reflect.construct(e,[],w)}else{try{w.call()}catch(M){D=M}e.call(w.prototype)}}else{try{throw Error()}catch(M){D=M}(w=e())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(M){if(M&&D&&typeof M.stack=="string")return[M.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),d=u[0],p=u[1];if(d&&p){var S=d.split(`
|
|
44
|
+
`),O=p.split(`
|
|
45
|
+
`);for(n=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;n<O.length&&!O[n].includes("DetermineComponentFrameRoot");)n++;if(l===S.length||n===O.length)for(l=S.length-1,n=O.length-1;1<=l&&0<=n&&S[l]!==O[n];)n--;for(;1<=l&&0<=n;l--,n--)if(S[l]!==O[n]){if(l!==1||n!==1)do if(l--,n--,0>n||S[l]!==O[n]){var _=`
|
|
46
|
+
`+S[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=l&&0<=n);break}}}finally{Hu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ga(a):""}function Hm(e,t){switch(e.tag){case 26:case 27:case 5:return Ga(e.type);case 16:return Ga("Lazy");case 13:return e.child!==t&&t!==null?Ga("Suspense Fallback"):Ga("Suspense");case 19:return Ga("SuspenseList");case 0:case 15:return Bu(e.type,!1);case 11:return Bu(e.type.render,!1);case 1:return Bu(e.type,!0);case 31:return Ga("Activity");default:return""}}function Do(e){try{var t="",a=null;do t+=Hm(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var wu=Object.prototype.hasOwnProperty,Yu=r.unstable_scheduleCallback,qu=r.unstable_cancelCallback,Bm=r.unstable_shouldYield,wm=r.unstable_requestPaint,pt=r.unstable_now,Ym=r.unstable_getCurrentPriorityLevel,jo=r.unstable_ImmediatePriority,Mo=r.unstable_UserBlockingPriority,li=r.unstable_NormalPriority,qm=r.unstable_LowPriority,Lo=r.unstable_IdlePriority,Gm=r.log,Vm=r.unstable_setDisableYieldValue,$l=null,yt=null;function ga(e){if(typeof Gm=="function"&&Vm(e),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode($l,e)}catch{}}var vt=Math.clz32?Math.clz32:Km,Xm=Math.log,Qm=Math.LN2;function Km(e){return e>>>=0,e===0?32:31-(Xm(e)/Qm|0)|0}var ni=256,ii=262144,ui=4194304;function Va(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 ri(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,u=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~u,l!==0?n=Va(l):(d&=p,d!==0?n=Va(d):a||(a=p&~e,a!==0&&(n=Va(a))))):(p=l&~u,p!==0?n=Va(p):d!==0?n=Va(d):a||(a=l&~e,a!==0&&(n=Va(a)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:n}function Fl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Zm(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 No(){var e=ui;return ui<<=1,(ui&62914560)===0&&(ui=4194304),e}function Gu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Wl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jm(e,t,a,l,n,u){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,S=e.expirationTimes,O=e.hiddenUpdates;for(a=d&~a;0<a;){var _=31-vt(a),w=1<<_;p[_]=0,S[_]=-1;var D=O[_];if(D!==null)for(O[_]=null,_=0;_<D.length;_++){var M=D[_];M!==null&&(M.lane&=-536870913)}a&=~w}l!==0&&_o(e,l,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(d&~t))}function _o(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Uo(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-vt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Ho(e,t){var a=t&-t;return a=(a&42)!==0?1:Vu(a),(a&(e.suspendedLanes|t))!==0?0:a}function Vu(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 Xu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bo(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Rh(e.type))}function wo(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var pa=Math.random().toString(36).slice(2),tt="__reactFiber$"+pa,ot="__reactProps$"+pa,rl="__reactContainer$"+pa,Qu="__reactEvents$"+pa,km="__reactListeners$"+pa,$m="__reactHandles$"+pa,Yo="__reactResources$"+pa,Il="__reactMarker$"+pa;function Ku(e){delete e[tt],delete e[ot],delete e[Qu],delete e[km],delete e[$m]}function sl(e){var t=e[tt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[rl]||a[tt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=rh(e);e!==null;){if(a=e[tt])return a;e=rh(e)}return t}e=a,a=e.parentNode}return null}function ol(e){if(e=e[tt]||e[rl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function cl(e){var t=e[Yo];return t||(t=e[Yo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Il]=!0}var qo=new Set,Go={};function Xa(e,t){fl(e,t),fl(e+"Capture",t)}function fl(e,t){for(Go[e]=t,e=0;e<t.length;e++)qo.add(t[e])}var Fm=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]*$"),Vo={},Xo={};function Wm(e){return wu.call(Xo,e)?!0:wu.call(Vo,e)?!1:Fm.test(e)?Xo[e]=!0:(Vo[e]=!0,!1)}function si(e,t,a){if(Wm(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function oi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function kt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Im(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(d){a=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zu(e){if(!e._valueTracker){var t=Qo(e)?"checked":"value";e._valueTracker=Im(e,t,""+e[t])}}function Ko(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Qo(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ci(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 Pm=/[\n"\\]/g;function At(e){return e.replace(Pm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ju(e,t,a,l,n,u,d,p){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?ku(e,d,zt(t)):a!=null?ku(e,d,zt(a)):l!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+zt(p):e.removeAttribute("name")}function Zo(e,t,a,l,n,u,d,p){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Zu(e);return}a=a!=null?""+zt(a):"",t=t!=null?""+zt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Zu(e)}function ku(e,t,a){t==="number"&&ci(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function dl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+zt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Jo(e,t,a){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+zt(a):""}function ko(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(ue(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=zt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Zu(e)}function hl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var eg=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 $o(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||eg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Fo(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&$o(e,n,l)}else for(var u in t)t.hasOwnProperty(u)&&$o(e,u,t[u])}function $u(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 tg=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"]]),ag=/^[\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 fi(e){return ag.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var Fu=null;function Wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,gl=null;function Wo(e){var t=ol(e);if(t&&(e=t.stateNode)){var a=e[ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ju(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[ot]||null;if(!n)throw Error(s(90));Ju(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Ko(l)}break e;case"textarea":Jo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&dl(e,!!a.multiple,t,!1)}}}var Iu=!1;function Io(e,t,a){if(Iu)return e(t,a);Iu=!0;try{var l=e(t);return l}finally{if(Iu=!1,(ml!==null||gl!==null)&&(Ii(),ml&&(t=ml,e=gl,gl=ml=null,Wo(t),e)))for(t=0;t<e.length;t++)Wo(e[t])}}function en(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ot]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pu=!1;if(Ft)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){Pu=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{Pu=!1}var ya=null,er=null,di=null;function Po(){if(di)return di;var e,t=er,a=t.length,l,n="value"in ya?ya.value:ya.textContent,u=n.length;for(e=0;e<a&&t[e]===n[e];e++);var d=a-e;for(l=1;l<=d&&t[a-l]===n[u-l];l++);return di=n.slice(e,1<l?1-l:void 0)}function hi(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 mi(){return!0}function ec(){return!1}function ct(e){function t(a,l,n,u,d){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(u):u[p]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?mi:ec,this.isPropagationStopped=ec,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=mi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gi=ct(Qa),an=v({},Qa,{view:0,detail:0}),lg=ct(an),tr,ar,ln,pi=v({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,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"?(tr=e.screenX-ln.screenX,ar=e.screenY-ln.screenY):ar=tr=0,ln=e),tr)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),tc=ct(pi),ng=v({},pi,{dataTransfer:0}),ig=ct(ng),ug=v({},an,{relatedTarget:0}),lr=ct(ug),rg=v({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),sg=ct(rg),og=v({},Qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cg=ct(og),fg=v({},Qa,{data:0}),ac=ct(fg),dg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hg={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"},mg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mg[e])?!!t[e]:!1}function nr(){return gg}var pg=v({},an,{key:function(e){if(e.key){var t=dg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(e){return e.type==="keypress"?hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yg=ct(pg),vg=v({},pi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lc=ct(vg),bg=v({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr}),Sg=ct(bg),xg=v({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Eg=ct(xg),Rg=v({},pi,{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}),Tg=ct(Rg),Cg=v({},Qa,{newState:0,oldState:0}),zg=ct(Cg),Ag=[9,13,27,32],ir=Ft&&"CompositionEvent"in window,nn=null;Ft&&"documentMode"in document&&(nn=document.documentMode);var Og=Ft&&"TextEvent"in window&&!nn,nc=Ft&&(!ir||nn&&8<nn&&11>=nn),ic=" ",uc=!1;function rc(e,t){switch(e){case"keyup":return Ag.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pl=!1;function Dg(e,t){switch(e){case"compositionend":return sc(t);case"keypress":return t.which!==32?null:(uc=!0,ic);case"textInput":return e=t.data,e===ic&&uc?null:e;default:return null}}function jg(e,t){if(pl)return e==="compositionend"||!ir&&rc(e,t)?(e=Po(),di=er=ya=null,pl=!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 nc&&t.locale!=="ko"?null:t.data;default:return null}}var Mg={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 oc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mg[e.type]:t==="textarea"}function cc(e,t,a,l){ml?gl?gl.push(l):gl=[l]:ml=l,t=iu(t,"onChange"),0<t.length&&(a=new gi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var un=null,rn=null;function Lg(e){Jd(e,0)}function yi(e){var t=Pl(e);if(Ko(t))return e}function fc(e,t){if(e==="change")return t}var dc=!1;if(Ft){var ur;if(Ft){var rr="oninput"in document;if(!rr){var hc=document.createElement("div");hc.setAttribute("oninput","return;"),rr=typeof hc.oninput=="function"}ur=rr}else ur=!1;dc=ur&&(!document.documentMode||9<document.documentMode)}function mc(){un&&(un.detachEvent("onpropertychange",gc),rn=un=null)}function gc(e){if(e.propertyName==="value"&&yi(rn)){var t=[];cc(t,rn,e,Wu(e)),Io(Lg,t)}}function Ng(e,t,a){e==="focusin"?(mc(),un=t,rn=a,un.attachEvent("onpropertychange",gc)):e==="focusout"&&mc()}function _g(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(rn)}function Ug(e,t){if(e==="click")return yi(t)}function Hg(e,t){if(e==="input"||e==="change")return yi(t)}function Bg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Bg;function sn(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!wu.call(t,n)||!bt(e[n],t[n]))return!1}return!0}function pc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yc(e,t){var a=pc(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=pc(a)}}function vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ci(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ci(e.document)}return t}function sr(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 wg=Ft&&"documentMode"in document&&11>=document.documentMode,yl=null,or=null,on=null,cr=!1;function Sc(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cr||yl==null||yl!==ci(l)||(l=yl,"selectionStart"in l&&sr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),on&&sn(on,l)||(on=l,l=iu(or,"onSelect"),0<l.length&&(t=new gi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=yl)))}function Ka(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var vl={animationend:Ka("Animation","AnimationEnd"),animationiteration:Ka("Animation","AnimationIteration"),animationstart:Ka("Animation","AnimationStart"),transitionrun:Ka("Transition","TransitionRun"),transitionstart:Ka("Transition","TransitionStart"),transitioncancel:Ka("Transition","TransitionCancel"),transitionend:Ka("Transition","TransitionEnd")},fr={},xc={};Ft&&(xc=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function Za(e){if(fr[e])return fr[e];if(!vl[e])return e;var t=vl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in xc)return fr[e]=t[a];return e}var Ec=Za("animationend"),Rc=Za("animationiteration"),Tc=Za("animationstart"),Yg=Za("transitionrun"),qg=Za("transitionstart"),Gg=Za("transitioncancel"),Cc=Za("transitionend"),zc=new Map,dr="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(" ");dr.push("scrollEnd");function Bt(e,t){zc.set(e,t),Xa(t,[e])}var vi=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)},Ot=[],bl=0,hr=0;function bi(){for(var e=bl,t=hr=bl=0;t<e;){var a=Ot[t];Ot[t++]=null;var l=Ot[t];Ot[t++]=null;var n=Ot[t];Ot[t++]=null;var u=Ot[t];if(Ot[t++]=null,l!==null&&n!==null){var d=l.pending;d===null?n.next=n:(n.next=d.next,d.next=n),l.pending=n}u!==0&&Ac(a,n,u)}}function Si(e,t,a,l){Ot[bl++]=e,Ot[bl++]=t,Ot[bl++]=a,Ot[bl++]=l,hr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function mr(e,t,a,l){return Si(e,t,a,l),xi(e)}function Ja(e,t){return Si(e,null,null,t),xi(e)}function Ac(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),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-vt(a),e=u.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),u):null}function xi(e){if(50<Mn)throw Mn=0,Rs=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sl={};function Vg(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,a,l){return new Vg(e,t,a,l)}function gr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var a=e.alternate;return a===null?(a=St(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Oc(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ei(e,t,a,l,n,u){var d=0;if(l=e,typeof e=="function")gr(e)&&(d=1);else if(typeof e=="string")d=Jp(e,a,k.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=St(31,a,t,n),e.elementType=fe,e.lanes=u,e;case B:return ka(a.children,n,u,t);case q:d=8,n|=24;break;case Y:return e=St(12,a,t,n|2),e.elementType=Y,e.lanes=u,e;case I:return e=St(13,a,t,n),e.elementType=I,e.lanes=u,e;case K:return e=St(19,a,t,n),e.elementType=K,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case V:d=9;break e;case Q:d=11;break e;case J:d=14;break e;case de:d=16,l=null;break e}d=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=St(d,a,t,n),t.elementType=e,t.type=l,t.lanes=u,t}function ka(e,t,a,l){return e=St(7,e,l,t),e.lanes=a,e}function pr(e,t,a){return e=St(6,e,null,t),e.lanes=a,e}function Dc(e){var t=St(18,null,null,0);return t.stateNode=e,t}function yr(e,t,a){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jc=new WeakMap;function Dt(e,t){if(typeof e=="object"&&e!==null){var a=jc.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Do(t)},jc.set(e,t),t)}return{value:e,source:t,stack:Do(t)}}var xl=[],El=0,Ri=null,cn=0,jt=[],Mt=0,va=null,Gt=1,Vt="";function It(e,t){xl[El++]=cn,xl[El++]=Ri,Ri=e,cn=t}function Mc(e,t,a){jt[Mt++]=Gt,jt[Mt++]=Vt,jt[Mt++]=va,va=e;var l=Gt;e=Vt;var n=32-vt(l)-1;l&=~(1<<n),a+=1;var u=32-vt(t)+n;if(30<u){var d=n-n%5;u=(l&(1<<d)-1).toString(32),l>>=d,n-=d,Gt=1<<32-vt(t)+n|a<<n|l,Vt=u+e}else Gt=1<<u|a<<n|l,Vt=e}function vr(e){e.return!==null&&(It(e,1),Mc(e,1,0))}function br(e){for(;e===Ri;)Ri=xl[--El],xl[El]=null,cn=xl[--El],xl[El]=null;for(;e===va;)va=jt[--Mt],jt[Mt]=null,Vt=jt[--Mt],jt[Mt]=null,Gt=jt[--Mt],jt[Mt]=null}function Lc(e,t){jt[Mt++]=Gt,jt[Mt++]=Vt,jt[Mt++]=va,Gt=t.id,Vt=t.overflow,va=e}var at=null,Ue=null,be=!1,ba=null,Lt=!1,Sr=Error(s(519));function Sa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fn(Dt(t,e)),Sr}function Nc(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[tt]=e,t[ot]=l,a){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(a=0;a<Nn.length;a++)ge(Nn[a],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),Zo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),ko(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Wd(t.textContent,a)?(l.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),l.onScroll!=null&&ge("scroll",t),l.onScrollEnd!=null&&ge("scrollend",t),l.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||Sa(e,!0)}function _c(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:at=at.return}}function Rl(e){if(e!==at)return!1;if(!be)return _c(e),be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ws(e.type,e.memoizedProps)),a=!a),a&&Ue&&Sa(e),_c(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=uh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=uh(e)}else t===27?(t=Ue,_a(e.type)?(e=Xs,Xs=null,Ue=e):Ue=t):Ue=at?_t(e.stateNode.nextSibling):null;return!0}function $a(){Ue=at=null,be=!1}function xr(){var e=ba;return e!==null&&(mt===null?mt=e:mt.push.apply(mt,e),ba=null),e}function fn(e){ba===null?ba=[e]:ba.push(e)}var Er=x(null),Fa=null,Pt=null;function xa(e,t,a){Z(Er,t._currentValue),t._currentValue=a}function ea(e){e._currentValue=Er.current,U(Er)}function Rr(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Tr(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var d=n.child;u=u.firstContext;e:for(;u!==null;){var p=u;u=n;for(var S=0;S<t.length;S++)if(p.context===t[S]){u.lanes|=a,p=u.alternate,p!==null&&(p.lanes|=a),Rr(u.return,a,e),l||(d=null);break e}u=p.next}}else if(n.tag===18){if(d=n.return,d===null)throw Error(s(341));d.lanes|=a,u=d.alternate,u!==null&&(u.lanes|=a),Rr(d,a,e),d=null}else d=n.child;if(d!==null)d.return=n;else for(d=n;d!==null;){if(d===e){d=null;break}if(n=d.sibling,n!==null){n.return=d.return,d=n;break}d=d.return}n=d}}function Tl(e,t,a,l){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 d=n.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var p=n.type;bt(n.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(n===Ae.current){if(d=n.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(wn):e=[wn])}n=n.return}e!==null&&Tr(t,e,a,l),t.flags|=262144}function Ti(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wa(e){Fa=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Uc(Fa,e)}function Ci(e,t){return Fa===null&&Wa(e),Uc(e,t)}function Uc(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Pt===null){if(e===null)throw Error(s(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return a}var Xg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Qg=r.unstable_scheduleCallback,Kg=r.unstable_NormalPriority,Ze={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cr(){return{controller:new Xg,data:new Map,refCount:0}}function dn(e){e.refCount--,e.refCount===0&&Qg(Kg,function(){e.controller.abort()})}var hn=null,zr=0,Cl=0,zl=null;function Zg(e,t){if(hn===null){var a=hn=[];zr=0,Cl=Ds(),zl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return zr++,t.then(Hc,Hc),t}function Hc(){if(--zr===0&&hn!==null){zl!==null&&(zl.status="fulfilled");var e=hn;hn=null,Cl=0,zl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jg(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Bc=j.S;j.S=function(e,t){xd=pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Zg(e,t),Bc!==null&&Bc(e,t)};var Ia=x(null);function Ar(){var e=Ia.current;return e!==null?e:_e.pooledCache}function zi(e,t){t===null?Z(Ia,Ia.current):Z(Ia,t.pool)}function wc(){var e=Ar();return e===null?null:{parent:Ze._currentValue,pool:e}}var Al=Error(s(460)),Or=Error(s(474)),Ai=Error(s(542)),Oi={then:function(){}};function Yc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qc(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then($t,$t),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vc(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vc(e),e}throw el=t,Al}}function Pa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(el=a,Al):a}}var el=null;function Gc(){if(el===null)throw Error(s(459));var e=el;return el=null,e}function Vc(e){if(e===Al||e===Ai)throw Error(s(483))}var Ol=null,mn=0;function Di(e){var t=mn;return mn+=1,Ol===null&&(Ol=[]),qc(Ol,e,t)}function gn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ji(e,t){throw t.$$typeof===z?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xc(e){function t(C,E){if(e){var A=C.deletions;A===null?(C.deletions=[E],C.flags|=16):A.push(E)}}function a(C,E){if(!e)return null;for(;E!==null;)t(C,E),E=E.sibling;return null}function l(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function n(C,E){return C=Wt(C,E),C.index=0,C.sibling=null,C}function u(C,E,A){return C.index=A,e?(A=C.alternate,A!==null?(A=A.index,A<E?(C.flags|=67108866,E):A):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function d(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,E,A,H){return E===null||E.tag!==6?(E=pr(A,C.mode,H),E.return=C,E):(E=n(E,A),E.return=C,E)}function S(C,E,A,H){var P=A.type;return P===B?_(C,E,A.props.children,H,A.key):E!==null&&(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===de&&Pa(P)===E.type)?(E=n(E,A.props),gn(E,A),E.return=C,E):(E=Ei(A.type,A.key,A.props,null,C.mode,H),gn(E,A),E.return=C,E)}function O(C,E,A,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==A.containerInfo||E.stateNode.implementation!==A.implementation?(E=yr(A,C.mode,H),E.return=C,E):(E=n(E,A.children||[]),E.return=C,E)}function _(C,E,A,H,P){return E===null||E.tag!==7?(E=ka(A,C.mode,H,P),E.return=C,E):(E=n(E,A),E.return=C,E)}function w(C,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=pr(""+E,C.mode,A),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case N:return A=Ei(E.type,E.key,E.props,null,C.mode,A),gn(A,E),A.return=C,A;case L:return E=yr(E,C.mode,A),E.return=C,E;case de:return E=Pa(E),w(C,E,A)}if(ue(E)||ie(E))return E=ka(E,C.mode,A,null),E.return=C,E;if(typeof E.then=="function")return w(C,Di(E),A);if(E.$$typeof===X)return w(C,Ci(C,E),A);ji(C,E)}return null}function D(C,E,A,H){var P=E!==null?E.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return P!==null?null:p(C,E,""+A,H);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return A.key===P?S(C,E,A,H):null;case L:return A.key===P?O(C,E,A,H):null;case de:return A=Pa(A),D(C,E,A,H)}if(ue(A)||ie(A))return P!==null?null:_(C,E,A,H,null);if(typeof A.then=="function")return D(C,E,Di(A),H);if(A.$$typeof===X)return D(C,E,Ci(C,A),H);ji(C,A)}return null}function M(C,E,A,H,P){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return C=C.get(A)||null,p(E,C,""+H,P);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case N:return C=C.get(H.key===null?A:H.key)||null,S(E,C,H,P);case L:return C=C.get(H.key===null?A:H.key)||null,O(E,C,H,P);case de:return H=Pa(H),M(C,E,A,H,P)}if(ue(H)||ie(H))return C=C.get(A)||null,_(E,C,H,P,null);if(typeof H.then=="function")return M(C,E,A,Di(H),P);if(H.$$typeof===X)return M(C,E,A,Ci(E,H),P);ji(E,H)}return null}function $(C,E,A,H){for(var P=null,xe=null,W=E,ce=E=0,ye=null;W!==null&&ce<A.length;ce++){W.index>ce?(ye=W,W=null):ye=W.sibling;var Ee=D(C,W,A[ce],H);if(Ee===null){W===null&&(W=ye);break}e&&W&&Ee.alternate===null&&t(C,W),E=u(Ee,E,ce),xe===null?P=Ee:xe.sibling=Ee,xe=Ee,W=ye}if(ce===A.length)return a(C,W),be&&It(C,ce),P;if(W===null){for(;ce<A.length;ce++)W=w(C,A[ce],H),W!==null&&(E=u(W,E,ce),xe===null?P=W:xe.sibling=W,xe=W);return be&&It(C,ce),P}for(W=l(W);ce<A.length;ce++)ye=M(W,C,ce,A[ce],H),ye!==null&&(e&&ye.alternate!==null&&W.delete(ye.key===null?ce:ye.key),E=u(ye,E,ce),xe===null?P=ye:xe.sibling=ye,xe=ye);return e&&W.forEach(function(Ya){return t(C,Ya)}),be&&It(C,ce),P}function te(C,E,A,H){if(A==null)throw Error(s(151));for(var P=null,xe=null,W=E,ce=E=0,ye=null,Ee=A.next();W!==null&&!Ee.done;ce++,Ee=A.next()){W.index>ce?(ye=W,W=null):ye=W.sibling;var Ya=D(C,W,Ee.value,H);if(Ya===null){W===null&&(W=ye);break}e&&W&&Ya.alternate===null&&t(C,W),E=u(Ya,E,ce),xe===null?P=Ya:xe.sibling=Ya,xe=Ya,W=ye}if(Ee.done)return a(C,W),be&&It(C,ce),P;if(W===null){for(;!Ee.done;ce++,Ee=A.next())Ee=w(C,Ee.value,H),Ee!==null&&(E=u(Ee,E,ce),xe===null?P=Ee:xe.sibling=Ee,xe=Ee);return be&&It(C,ce),P}for(W=l(W);!Ee.done;ce++,Ee=A.next())Ee=M(W,C,ce,Ee.value,H),Ee!==null&&(e&&Ee.alternate!==null&&W.delete(Ee.key===null?ce:Ee.key),E=u(Ee,E,ce),xe===null?P=Ee:xe.sibling=Ee,xe=Ee);return e&&W.forEach(function(ny){return t(C,ny)}),be&&It(C,ce),P}function Le(C,E,A,H){if(typeof A=="object"&&A!==null&&A.type===B&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case N:e:{for(var P=A.key;E!==null;){if(E.key===P){if(P=A.type,P===B){if(E.tag===7){a(C,E.sibling),H=n(E,A.props.children),H.return=C,C=H;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===de&&Pa(P)===E.type){a(C,E.sibling),H=n(E,A.props),gn(H,A),H.return=C,C=H;break e}a(C,E);break}else t(C,E);E=E.sibling}A.type===B?(H=ka(A.props.children,C.mode,H,A.key),H.return=C,C=H):(H=Ei(A.type,A.key,A.props,null,C.mode,H),gn(H,A),H.return=C,C=H)}return d(C);case L:e:{for(P=A.key;E!==null;){if(E.key===P)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){a(C,E.sibling),H=n(E,A.children||[]),H.return=C,C=H;break e}else{a(C,E);break}else t(C,E);E=E.sibling}H=yr(A,C.mode,H),H.return=C,C=H}return d(C);case de:return A=Pa(A),Le(C,E,A,H)}if(ue(A))return $(C,E,A,H);if(ie(A)){if(P=ie(A),typeof P!="function")throw Error(s(150));return A=P.call(A),te(C,E,A,H)}if(typeof A.then=="function")return Le(C,E,Di(A),H);if(A.$$typeof===X)return Le(C,E,Ci(C,A),H);ji(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(a(C,E.sibling),H=n(E,A),H.return=C,C=H):(a(C,E),H=pr(A,C.mode,H),H.return=C,C=H),d(C)):a(C,E)}return function(C,E,A,H){try{mn=0;var P=Le(C,E,A,H);return Ol=null,P}catch(W){if(W===Al||W===Ai)throw W;var xe=St(29,W,null,C.mode);return xe.lanes=H,xe.return=C,xe}finally{}}}var tl=Xc(!0),Qc=Xc(!1),Ea=!1;function Dr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jr(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 Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ta(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ce&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=xi(e),Ac(e,null,a),t}return Si(e,l,t,a),xi(e)}function pn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Uo(e,a)}}function Mr(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?n=u=d:u=u.next=d,a=a.next}while(a!==null);u===null?n=u=t:u=u.next=t}else n=u=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Lr=!1;function yn(){if(Lr){var e=zl;if(e!==null)throw e}}function vn(e,t,a,l){Lr=!1;var n=e.updateQueue;Ea=!1;var u=n.firstBaseUpdate,d=n.lastBaseUpdate,p=n.shared.pending;if(p!==null){n.shared.pending=null;var S=p,O=S.next;S.next=null,d===null?u=O:d.next=O,d=S;var _=e.alternate;_!==null&&(_=_.updateQueue,p=_.lastBaseUpdate,p!==d&&(p===null?_.firstBaseUpdate=O:p.next=O,_.lastBaseUpdate=S))}if(u!==null){var w=n.baseState;d=0,_=O=S=null,p=u;do{var D=p.lane&-536870913,M=D!==p.lane;if(M?(pe&D)===D:(l&D)===D){D!==0&&D===Cl&&(Lr=!0),_!==null&&(_=_.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var $=e,te=p;D=t;var Le=a;switch(te.tag){case 1:if($=te.payload,typeof $=="function"){w=$.call(Le,w,D);break e}w=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=te.payload,D=typeof $=="function"?$.call(Le,w,D):$,D==null)break e;w=v({},w,D);break e;case 2:Ea=!0}}D=p.callback,D!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[D]:M.push(D))}else M={lane:D,tag:p.tag,payload:p.payload,callback:p.callback,next:null},_===null?(O=_=M,S=w):_=_.next=M,d|=D;if(p=p.next,p===null){if(p=n.shared.pending,p===null)break;M=p,p=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);_===null&&(S=w),n.baseState=S,n.firstBaseUpdate=O,n.lastBaseUpdate=_,u===null&&(n.shared.lanes=0),Da|=d,e.lanes=d,e.memoizedState=w}}function Kc(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Zc(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Kc(a[e],t)}var Dl=x(null),Mi=x(0);function Jc(e,t){e=oa,Z(Mi,e),Z(Dl,t),oa=e|t.baseLanes}function Nr(){Z(Mi,oa),Z(Dl,Dl.current)}function _r(){oa=Mi.current,U(Dl),U(Mi)}var xt=x(null),Nt=null;function Ca(e){var t=e.alternate;Z(Xe,Xe.current&1),Z(xt,e),Nt===null&&(t===null||Dl.current!==null||t.memoizedState!==null)&&(Nt=e)}function Ur(e){Z(Xe,Xe.current),Z(xt,e),Nt===null&&(Nt=e)}function kc(e){e.tag===22?(Z(Xe,Xe.current),Z(xt,e),Nt===null&&(Nt=e)):za()}function za(){Z(Xe,Xe.current),Z(xt,xt.current)}function Et(e){U(xt),Nt===e&&(Nt=null),U(Xe)}var Xe=x(0);function Li(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Gs(a)||Vs(a)))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 ta=0,oe=null,je=null,Je=null,Ni=!1,jl=!1,al=!1,_i=0,bn=0,Ml=null,kg=0;function qe(){throw Error(s(321))}function Hr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!bt(e[a],t[a]))return!1;return!0}function Br(e,t,a,l,n,u){return ta=u,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Lf:Ir,al=!1,u=a(l,n),al=!1,jl&&(u=Fc(t,a,l,n)),$c(e),u}function $c(e){j.H=En;var t=je!==null&&je.next!==null;if(ta=0,Je=je=oe=null,Ni=!1,bn=0,Ml=null,t)throw Error(s(300));e===null||ke||(e=e.dependencies,e!==null&&Ti(e)&&(ke=!0))}function Fc(e,t,a,l){oe=e;var n=0;do{if(jl&&(Ml=null),bn=0,jl=!1,25<=n)throw Error(s(301));if(n+=1,Je=je=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}j.H=Nf,u=t(a,l)}while(jl);return u}function $g(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?Sn(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(oe.flags|=1024),t}function wr(){var e=_i!==0;return _i=0,e}function Yr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function qr(e){if(Ni){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ni=!1}ta=0,Je=je=oe=null,jl=!1,bn=_i=0,Ml=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?oe.memoizedState=Je=e:Je=Je.next=e,Je}function Qe(){if(je===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Je===null?oe.memoizedState:Je.next;if(t!==null)Je=t,je=e;else{if(e===null)throw oe.alternate===null?Error(s(467)):Error(s(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Je===null?oe.memoizedState=Je=e:Je=Je.next=e}return Je}function Ui(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sn(e){var t=bn;return bn+=1,Ml===null&&(Ml=[]),e=qc(Ml,e,t),t=oe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Lf:Ir),e}function Hi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sn(e);if(e.$$typeof===X)return lt(e)}throw Error(s(438,String(e)))}function Gr(e){var t=null,a=oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=oe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ui(),oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ee;return t.index++,a}function aa(e,t){return typeof t=="function"?t(e):t}function Bi(e){var t=Qe();return Vr(t,je,e)}function Vr(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var n=e.baseQueue,u=l.pending;if(u!==null){if(n!==null){var d=n.next;n.next=u.next,u.next=d}t.baseQueue=n=u,l.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var p=d=null,S=null,O=t,_=!1;do{var w=O.lane&-536870913;if(w!==O.lane?(pe&w)===w:(ta&w)===w){var D=O.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),w===Cl&&(_=!0);else if((ta&D)===D){O=O.next,D===Cl&&(_=!0);continue}else w={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(p=S=w,d=u):S=S.next=w,oe.lanes|=D,Da|=D;w=O.action,al&&a(u,w),u=O.hasEagerState?O.eagerState:a(u,w)}else D={lane:w,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(p=S=D,d=u):S=S.next=D,oe.lanes|=w,Da|=w;O=O.next}while(O!==null&&O!==t);if(S===null?d=u:S.next=p,!bt(u,e.memoizedState)&&(ke=!0,_&&(a=zl,a!==null)))throw a;e.memoizedState=u,e.baseState=d,e.baseQueue=S,l.lastRenderedState=u}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Xr(e){var t=Qe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,u=t.memoizedState;if(n!==null){a.pending=null;var d=n=n.next;do u=e(u,d.action),d=d.next;while(d!==n);bt(u,t.memoizedState)||(ke=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function Wc(e,t,a){var l=oe,n=Qe(),u=be;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var d=!bt((je||n).memoizedState,a);if(d&&(n.memoizedState=a,ke=!0),n=n.queue,Zr(ef.bind(null,l,n,e),[e]),n.getSnapshot!==t||d||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,Ll(9,{destroy:void 0},Pc.bind(null,l,n,a,t),null),_e===null)throw Error(s(349));u||(ta&127)!==0||Ic(l,t,a)}return a}function Ic(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=oe.updateQueue,t===null?(t=Ui(),oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Pc(e,t,a,l){t.value=a,t.getSnapshot=l,tf(t)&&af(e)}function ef(e,t,a){return a(function(){tf(t)&&af(e)})}function tf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!bt(e,a)}catch{return!0}}function af(e){var t=Ja(e,2);t!==null&>(t,e,2)}function Qr(e){var t=st();if(typeof e=="function"){var a=e;if(e=a(),al){ga(!0);try{a()}finally{ga(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function lf(e,t,a,l){return e.baseState=a,Vr(e,je,typeof l=="function"?l:aa)}function Fg(e,t,a,l,n){if(qi(e))throw Error(s(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(d){u.listeners.push(d)}};j.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,nf(t,u)):(u.next=a.next,t.pending=a.next=u)}}function nf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var u=j.T,d={};j.T=d;try{var p=a(n,l),S=j.S;S!==null&&S(d,p),uf(e,t,p)}catch(O){Kr(e,t,O)}finally{u!==null&&d.types!==null&&(u.types=d.types),j.T=u}}else try{u=a(n,l),uf(e,t,u)}catch(O){Kr(e,t,O)}}function uf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){rf(e,t,l)},function(l){return Kr(e,t,l)}):rf(e,t,a)}function rf(e,t,a){t.status="fulfilled",t.value=a,sf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,nf(e,a)))}function Kr(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,sf(t),t=t.next;while(t!==l)}e.action=null}function sf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function of(e,t){return t}function cf(e,t){if(be){var a=_e.formState;if(a!==null){e:{var l=oe;if(be){if(Ue){t:{for(var n=Ue,u=Lt;n.nodeType!==8;){if(!u){n=null;break t}if(n=_t(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ue=_t(n.nextSibling),l=n.data==="F!";break e}}Sa(l)}l=!1}l&&(t=a[0])}}return a=st(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:of,lastRenderedState:t},a.queue=l,a=Df.bind(null,oe,l),l.dispatch=a,l=Qr(!1),u=Wr.bind(null,oe,!1,l.queue),l=st(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=Fg.bind(null,oe,n,u,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function ff(e){var t=Qe();return df(t,je,e)}function df(e,t,a){if(t=Vr(e,t,of)[0],e=Bi(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Sn(t)}catch(d){throw d===Al?Ai:d}else l=t;t=Qe();var n=t.queue,u=n.dispatch;return a!==t.memoizedState&&(oe.flags|=2048,Ll(9,{destroy:void 0},Wg.bind(null,n,a),null)),[l,u,e]}function Wg(e,t){e.action=t}function hf(e){var t=Qe(),a=je;if(a!==null)return df(t,a,e);Qe(),t=t.memoizedState,a=Qe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ll(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=oe.updateQueue,t===null&&(t=Ui(),oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function mf(){return Qe().memoizedState}function wi(e,t,a,l){var n=st();oe.flags|=e,n.memoizedState=Ll(1|t,{destroy:void 0},a,l===void 0?null:l)}function Yi(e,t,a,l){var n=Qe();l=l===void 0?null:l;var u=n.memoizedState.inst;je!==null&&l!==null&&Hr(l,je.memoizedState.deps)?n.memoizedState=Ll(t,u,a,l):(oe.flags|=e,n.memoizedState=Ll(1|t,u,a,l))}function gf(e,t){wi(8390656,8,e,t)}function Zr(e,t){Yi(2048,8,e,t)}function Ig(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=Ui(),oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function pf(e){var t=Qe().memoizedState;return Ig({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function yf(e,t){return Yi(4,2,e,t)}function vf(e,t){return Yi(4,4,e,t)}function bf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sf(e,t,a){a=a!=null?a.concat([e]):null,Yi(4,4,bf.bind(null,t,e),a)}function Jr(){}function xf(e,t){var a=Qe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Hr(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Ef(e,t){var a=Qe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Hr(t,l[1]))return l[0];if(l=e(),al){ga(!0);try{e()}finally{ga(!1)}}return a.memoizedState=[l,t],l}function kr(e,t,a){return a===void 0||(ta&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Rd(),oe.lanes|=e,Da|=e,a)}function Rf(e,t,a,l){return bt(a,t)?a:Dl.current!==null?(e=kr(e,a,l),bt(e,t)||(ke=!0),e):(ta&42)===0||(ta&1073741824)!==0&&(pe&261930)===0?(ke=!0,e.memoizedState=a):(e=Rd(),oe.lanes|=e,Da|=e,t)}function Tf(e,t,a,l,n){var u=G.p;G.p=u!==0&&8>u?u:8;var d=j.T,p={};j.T=p,Wr(e,!1,t,a);try{var S=n(),O=j.S;if(O!==null&&O(p,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=Jg(S,l);xn(e,t,_,Ct(e))}else xn(e,t,l,Ct(e))}catch(w){xn(e,t,{then:function(){},status:"rejected",reason:w},Ct())}finally{G.p=u,d!==null&&p.types!==null&&(d.types=p.types),j.T=d}}function Pg(){}function $r(e,t,a,l){if(e.tag!==5)throw Error(s(476));var n=Cf(e).queue;Tf(e,n,t,F,a===null?Pg:function(){return zf(e),a(l)})}function Cf(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:aa,lastRenderedState:F},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zf(e){var t=Cf(e);t.next===null&&(t=e.alternate.memoizedState),xn(e,t.next.queue,{},Ct())}function Fr(){return lt(wn)}function Af(){return Qe().memoizedState}function Of(){return Qe().memoizedState}function ep(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ct();e=Ra(a);var l=Ta(t,e,a);l!==null&&(gt(l,t,a),pn(l,t,a)),t={cache:Cr()},e.payload=t;return}t=t.return}}function tp(e,t,a){var l=Ct();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},qi(e)?jf(t,a):(a=mr(e,t,a,l),a!==null&&(gt(a,e,l),Mf(a,t,l)))}function Df(e,t,a){var l=Ct();xn(e,t,a,l)}function xn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(qi(e))jf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,p=u(d,a);if(n.hasEagerState=!0,n.eagerState=p,bt(p,d))return Si(e,t,n,0),_e===null&&bi(),!1}catch{}finally{}if(a=mr(e,t,n,l),a!==null)return gt(a,e,l),Mf(a,t,l),!0}return!1}function Wr(e,t,a,l){if(l={lane:2,revertLane:Ds(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},qi(e)){if(t)throw Error(s(479))}else t=mr(e,a,l,2),t!==null&>(t,e,2)}function qi(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function jf(e,t){jl=Ni=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Mf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Uo(e,a)}}var En={readContext:lt,use:Hi,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};En.useEffectEvent=qe;var Lf={readContext:lt,use:Hi,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:gf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,wi(4194308,4,bf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return wi(4194308,4,e,t)},useInsertionEffect:function(e,t){wi(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var l=e();if(al){ga(!0);try{e()}finally{ga(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=st();if(a!==void 0){var n=a(t);if(al){ga(!0);try{a(t)}finally{ga(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=tp.bind(null,oe,e),[l.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Qr(e);var t=e.queue,a=Df.bind(null,oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Jr,useDeferredValue:function(e,t){var a=st();return kr(a,e,t)},useTransition:function(){var e=Qr(!1);return e=Tf.bind(null,oe,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=oe,n=st();if(be){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),_e===null)throw Error(s(349));(pe&127)!==0||Ic(l,t,a)}n.memoizedState=a;var u={value:a,getSnapshot:t};return n.queue=u,gf(ef.bind(null,l,u,e),[e]),l.flags|=2048,Ll(9,{destroy:void 0},Pc.bind(null,l,u,a,t),null),a},useId:function(){var e=st(),t=_e.identifierPrefix;if(be){var a=Vt,l=Gt;a=(l&~(1<<32-vt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=_i++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=kg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fr,useFormState:cf,useActionState:cf,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Wr.bind(null,oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Gr,useCacheRefresh:function(){return st().memoizedState=ep.bind(null,oe)},useEffectEvent:function(e){var t=st(),a={impl:e};return t.memoizedState=a,function(){if((Ce&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Ir={readContext:lt,use:Hi,useCallback:xf,useContext:lt,useEffect:Zr,useImperativeHandle:Sf,useInsertionEffect:yf,useLayoutEffect:vf,useMemo:Ef,useReducer:Bi,useRef:mf,useState:function(){return Bi(aa)},useDebugValue:Jr,useDeferredValue:function(e,t){var a=Qe();return Rf(a,je.memoizedState,e,t)},useTransition:function(){var e=Bi(aa)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:Wc,useId:Af,useHostTransitionStatus:Fr,useFormState:ff,useActionState:ff,useOptimistic:function(e,t){var a=Qe();return lf(a,je,e,t)},useMemoCache:Gr,useCacheRefresh:Of};Ir.useEffectEvent=pf;var Nf={readContext:lt,use:Hi,useCallback:xf,useContext:lt,useEffect:Zr,useImperativeHandle:Sf,useInsertionEffect:yf,useLayoutEffect:vf,useMemo:Ef,useReducer:Xr,useRef:mf,useState:function(){return Xr(aa)},useDebugValue:Jr,useDeferredValue:function(e,t){var a=Qe();return je===null?kr(a,e,t):Rf(a,je.memoizedState,e,t)},useTransition:function(){var e=Xr(aa)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:Wc,useId:Af,useHostTransitionStatus:Fr,useFormState:hf,useActionState:hf,useOptimistic:function(e,t){var a=Qe();return je!==null?lf(a,je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Gr,useCacheRefresh:Of};Nf.useEffectEvent=pf;function Pr(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var es={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Ct(),n=Ra(l);n.payload=t,a!=null&&(n.callback=a),t=Ta(e,n,l),t!==null&&(gt(t,e,l),pn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Ct(),n=Ra(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Ta(e,n,l),t!==null&&(gt(t,e,l),pn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ct(),l=Ra(a);l.tag=2,t!=null&&(l.callback=t),t=Ta(e,l,a),t!==null&&(gt(t,e,a),pn(t,e,a))}};function _f(e,t,a,l,n,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,d):t.prototype&&t.prototype.isPureReactComponent?!sn(a,l)||!sn(n,u):!0}function Uf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&es.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function Hf(e){vi(e)}function Bf(e){console.error(e)}function wf(e){vi(e)}function Gi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Yf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ts(e,t,a){return a=Ra(a),a.tag=3,a.payload={element:null},a.callback=function(){Gi(e,t)},a}function qf(e){return e=Ra(e),e.tag=3,e}function Gf(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var u=l.value;e.payload=function(){return n(u)},e.callback=function(){Yf(t,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Yf(t,a,l),typeof n!="function"&&(ja===null?ja=new Set([this]):ja.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function ap(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Tl(t,a,n,!0),a=xt.current,a!==null){switch(a.tag){case 31:case 13:return Nt===null?Pi():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Oi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),zs(e,l,n)),!1;case 22:return a.flags|=65536,l===Oi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),zs(e,l,n)),!1}throw Error(s(435,a.tag))}return zs(e,l,n),Pi(),!1}if(be)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Sr&&(e=Error(s(422),{cause:l}),fn(Dt(e,a)))):(l!==Sr&&(t=Error(s(423),{cause:l}),fn(Dt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Dt(l,a),n=ts(e.stateNode,l,n),Mr(e,n),Ge!==4&&(Ge=2)),!1;var u=Error(s(520),{cause:l});if(u=Dt(u,a),jn===null?jn=[u]:jn.push(u),Ge!==4&&(Ge=2),t===null)return!0;l=Dt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=ts(a.stateNode,l,e),Mr(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ja===null||!ja.has(u))))return a.flags|=65536,n&=-n,a.lanes|=n,n=qf(n),Gf(n,e,a,l),Mr(a,n),!1}a=a.return}while(a!==null);return!1}var as=Error(s(461)),ke=!1;function nt(e,t,a,l){t.child=e===null?Qc(t,null,a,l):tl(t,e.child,a,l)}function Vf(e,t,a,l,n){a=a.render;var u=t.ref;if("ref"in l){var d={};for(var p in l)p!=="ref"&&(d[p]=l[p])}else d=l;return Wa(t),l=Br(e,t,a,d,u,n),p=wr(),e!==null&&!ke?(Yr(e,t,n),la(e,t,n)):(be&&p&&vr(t),t.flags|=1,nt(e,t,l,n),t.child)}function Xf(e,t,a,l,n){if(e===null){var u=a.type;return typeof u=="function"&&!gr(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,Qf(e,t,u,l,n)):(e=Ei(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!cs(e,n)){var d=u.memoizedProps;if(a=a.compare,a=a!==null?a:sn,a(d,l)&&e.ref===t.ref)return la(e,t,n)}return t.flags|=1,e=Wt(u,l),e.ref=t.ref,e.return=t,t.child=e}function Qf(e,t,a,l,n){if(e!==null){var u=e.memoizedProps;if(sn(u,l)&&e.ref===t.ref)if(ke=!1,t.pendingProps=l=u,cs(e,n))(e.flags&131072)!==0&&(ke=!0);else return t.lanes=e.lanes,la(e,t,n)}return ls(e,t,a,l,n)}function Kf(e,t,a,l){var n=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~u}else l=0,t.child=null;return Zf(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zi(t,u!==null?u.cachePool:null),u!==null?Jc(t,u):Nr(),kc(t);else return l=t.lanes=536870912,Zf(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(zi(t,u.cachePool),Jc(t,u),za(),t.memoizedState=null):(e!==null&&zi(t,null),Nr(),za());return nt(e,t,n,a),t.child}function Rn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zf(e,t,a,l,n){var u=Ar();return u=u===null?null:{parent:Ze._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&zi(t,null),Nr(),kc(t),e!==null&&Tl(e,t,l,!0),t.childLanes=n,null}function Vi(e,t){return t=Qi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jf(e,t,a){return tl(t,e.child,null,a),e=Vi(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function lp(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(l.mode==="hidden")return e=Vi(t,l),t.lanes=536870912,Rn(null,e);if(Ur(t),(e=Ue)?(e=ih(e,Lt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:va!==null?{id:Gt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},a=Dc(e),a.return=t,t.child=a,at=t,Ue=null)):e=null,e===null)throw Sa(t);return t.lanes=536870912,null}return Vi(t,l)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(Ur(t),n)if(t.flags&256)t.flags&=-257,t=Jf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ke||Tl(e,t,a,!1),n=(a&e.childLanes)!==0,ke||n){if(l=_e,l!==null&&(d=Ho(l,a),d!==0&&d!==u.retryLane))throw u.retryLane=d,Ja(e,d),gt(l,e,d),as;Pi(),t=Jf(e,t,a)}else e=u.treeContext,Ue=_t(d.nextSibling),at=t,be=!0,ba=null,Lt=!1,e!==null&&Lc(t,e),t=Vi(t,l),t.flags|=4096;return t}return e=Wt(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Xi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ls(e,t,a,l,n){return Wa(t),a=Br(e,t,a,l,void 0,n),l=wr(),e!==null&&!ke?(Yr(e,t,n),la(e,t,n)):(be&&l&&vr(t),t.flags|=1,nt(e,t,a,n),t.child)}function kf(e,t,a,l,n,u){return Wa(t),t.updateQueue=null,a=Fc(t,l,a,n),$c(e),l=wr(),e!==null&&!ke?(Yr(e,t,u),la(e,t,u)):(be&&l&&vr(t),t.flags|=1,nt(e,t,a,u),t.child)}function $f(e,t,a,l,n){if(Wa(t),t.stateNode===null){var u=Sl,d=a.contextType;typeof d=="object"&&d!==null&&(u=lt(d)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=es,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Dr(t),d=a.contextType,u.context=typeof d=="object"&&d!==null?lt(d):Sl,u.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Pr(t,a,d,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&es.enqueueReplaceState(u,u.state,null),vn(t,l,u,n),yn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var p=t.memoizedProps,S=ll(a,p);u.props=S;var O=u.context,_=a.contextType;d=Sl,typeof _=="object"&&_!==null&&(d=lt(_));var w=a.getDerivedStateFromProps;_=typeof w=="function"||typeof u.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p||O!==d)&&Uf(t,u,l,d),Ea=!1;var D=t.memoizedState;u.state=D,vn(t,l,u,n),yn(),O=t.memoizedState,p||D!==O||Ea?(typeof w=="function"&&(Pr(t,a,w,l),O=t.memoizedState),(S=Ea||_f(t,a,S,l,D,O,d))?(_||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=l,t.memoizedState=O),u.props=l,u.state=O,u.context=d,l=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,jr(e,t),d=t.memoizedProps,_=ll(a,d),u.props=_,w=t.pendingProps,D=u.context,O=a.contextType,S=Sl,typeof O=="object"&&O!==null&&(S=lt(O)),p=a.getDerivedStateFromProps,(O=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==w||D!==S)&&Uf(t,u,l,S),Ea=!1,D=t.memoizedState,u.state=D,vn(t,l,u,n),yn();var M=t.memoizedState;d!==w||D!==M||Ea||e!==null&&e.dependencies!==null&&Ti(e.dependencies)?(typeof p=="function"&&(Pr(t,a,p,l),M=t.memoizedState),(_=Ea||_f(t,a,_,l,D,M,S)||e!==null&&e.dependencies!==null&&Ti(e.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,M,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,M,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=M),u.props=l,u.state=M,u.context=S,l=_):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Xi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=tl(t,e.child,null,n),t.child=tl(t,null,a,n)):nt(e,t,a,n),t.memoizedState=u.state,e=t.child):e=la(e,t,n),e}function Ff(e,t,a,l){return $a(),t.flags|=256,nt(e,t,a,l),t.child}var ns={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function is(e){return{baseLanes:e,cachePool:wc()}}function us(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function Wf(e,t,a){var l=t.pendingProps,n=!1,u=(t.flags&128)!==0,d;if((d=u)||(d=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),d&&(n=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(n?Ca(t):za(),(e=Ue)?(e=ih(e,Lt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:va!==null?{id:Gt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},a=Dc(e),a.return=t,t.child=a,at=t,Ue=null)):e=null,e===null)throw Sa(t);return Vs(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,n?(za(),n=t.mode,p=Qi({mode:"hidden",children:p},n),l=ka(l,n,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=is(a),l.childLanes=us(e,d,a),t.memoizedState=ns,Rn(null,l)):(Ca(t),rs(t,p))}var S=e.memoizedState;if(S!==null&&(p=S.dehydrated,p!==null)){if(u)t.flags&256?(Ca(t),t.flags&=-257,t=ss(e,t,a)):t.memoizedState!==null?(za(),t.child=e.child,t.flags|=128,t=null):(za(),p=l.fallback,n=t.mode,l=Qi({mode:"visible",children:l.children},n),p=ka(p,n,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,tl(t,e.child,null,a),l=t.child,l.memoizedState=is(a),l.childLanes=us(e,d,a),t.memoizedState=ns,t=Rn(null,l));else if(Ca(t),Vs(p)){if(d=p.nextSibling&&p.nextSibling.dataset,d)var O=d.dgst;d=O,l=Error(s(419)),l.stack="",l.digest=d,fn({value:l,source:null,stack:null}),t=ss(e,t,a)}else if(ke||Tl(e,t,a,!1),d=(a&e.childLanes)!==0,ke||d){if(d=_e,d!==null&&(l=Ho(d,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,Ja(e,l),gt(d,e,l),as;Gs(p)||Pi(),t=ss(e,t,a)}else Gs(p)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ue=_t(p.nextSibling),at=t,be=!0,ba=null,Lt=!1,e!==null&&Lc(t,e),t=rs(t,l.children),t.flags|=4096);return t}return n?(za(),p=l.fallback,n=t.mode,S=e.child,O=S.sibling,l=Wt(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,O!==null?p=Wt(O,p):(p=ka(p,n,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,Rn(null,l),l=t.child,p=e.child.memoizedState,p===null?p=is(a):(n=p.cachePool,n!==null?(S=Ze._currentValue,n=n.parent!==S?{parent:S,pool:S}:n):n=wc(),p={baseLanes:p.baseLanes|a,cachePool:n}),l.memoizedState=p,l.childLanes=us(e,d,a),t.memoizedState=ns,Rn(e.child,l)):(Ca(t),a=e.child,e=a.sibling,a=Wt(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function rs(e,t){return t=Qi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qi(e,t){return e=St(22,e,null,t),e.lanes=0,e}function ss(e,t,a){return tl(t,e.child,null,a),e=rs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function If(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Rr(e.return,t,a)}function os(e,t,a,l,n,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=n,d.treeForkCount=u)}function Pf(e,t,a){var l=t.pendingProps,n=l.revealOrder,u=l.tail;l=l.children;var d=Xe.current,p=(d&2)!==0;if(p?(d=d&1|2,t.flags|=128):d&=1,Z(Xe,d),nt(e,t,l,a),l=be?cn:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&If(e,a,t);else if(e.tag===19)If(e,a,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(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&Li(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),os(t,!1,n,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Li(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}os(t,!0,a,null,u,l);break;case"together":os(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function la(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Da|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Tl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=Wt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Wt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function cs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ti(e)))}function np(e,t,a){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),xa(t,Ze,e.memoizedState.cache),$a();break;case 27:case 5:kl(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ur(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ca(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Wf(e,t,a):(Ca(t),e=la(e,t,a),e!==null?e.sibling:null);Ca(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Tl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Pf(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Z(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,Kf(e,t,a,t.pendingProps);case 24:xa(t,Ze,e.memoizedState.cache)}return la(e,t,a)}function ed(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ke=!0;else{if(!cs(e,a)&&(t.flags&128)===0)return ke=!1,np(e,t,a);ke=(e.flags&131072)!==0}else ke=!1,be&&(t.flags&1048576)!==0&&Mc(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Pa(t.elementType),t.type=e,typeof e=="function")gr(e)?(l=ll(e,l),t.tag=1,t=$f(null,t,e,l,a)):(t.tag=0,t=ls(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===Q){t.tag=11,t=Vf(null,t,e,l,a);break e}else if(n===J){t.tag=14,t=Xf(null,t,e,l,a);break e}}throw t=le(e)||e,Error(s(306,t,""))}}return t;case 0:return ls(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=ll(l,t.pendingProps),$f(e,t,l,n,a);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var u=t.memoizedState;n=u.element,jr(e,t),vn(t,l,null,a);var d=t.memoizedState;if(l=d.cache,xa(t,Ze,l),l!==u.cache&&Tr(t,[Ze],a,!0),yn(),l=d.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Ff(e,t,l,a);break e}else if(l!==n){n=Dt(Error(s(424)),t),fn(n),t=Ff(e,t,l,a);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(Ue=_t(e.firstChild),at=t,be=!0,ba=null,Lt=!0,a=Qc(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($a(),l===n){t=la(e,t,a);break e}nt(e,t,l,a)}t=t.child}return t;case 26:return Xi(e,t),e===null?(a=fh(t.type,null,t.pendingProps,null))?t.memoizedState=a:be||(a=t.type,e=t.pendingProps,l=uu(he.current).createElement(a),l[tt]=t,l[ot]=e,it(l,a,e),Ie(l),t.stateNode=l):t.memoizedState=fh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return kl(t),e===null&&be&&(l=t.stateNode=sh(t.type,t.pendingProps,he.current),at=t,Lt=!0,n=Ue,_a(t.type)?(Xs=n,Ue=_t(l.firstChild)):Ue=n),nt(e,t,t.pendingProps.children,a),Xi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((n=l=Ue)&&(l=_p(l,t.type,t.pendingProps,Lt),l!==null?(t.stateNode=l,at=t,Ue=_t(l.firstChild),Lt=!1,n=!0):n=!1),n||Sa(t)),kl(t),n=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,l=u.children,ws(n,u)?l=null:d!==null&&ws(n,d)&&(t.flags|=32),t.memoizedState!==null&&(n=Br(e,t,$g,null,null,a),wn._currentValue=n),Xi(e,t),nt(e,t,l,a),t.child;case 6:return e===null&&be&&((e=a=Ue)&&(a=Up(a,t.pendingProps,Lt),a!==null?(t.stateNode=a,at=t,Ue=null,e=!0):e=!1),e||Sa(t)),null;case 13:return Wf(e,t,a);case 4:return rt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=tl(t,null,l,a):nt(e,t,l,a),t.child;case 11:return Vf(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,xa(t,t.type,l.value),nt(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,Wa(t),n=lt(n),l=l(n),t.flags|=1,nt(e,t,l,a),t.child;case 14:return Xf(e,t,t.type,t.pendingProps,a);case 15:return Qf(e,t,t.type,t.pendingProps,a);case 19:return Pf(e,t,a);case 31:return lp(e,t,a);case 22:return Kf(e,t,a,t.pendingProps);case 24:return Wa(t),l=lt(Ze),e===null?(n=Ar(),n===null&&(n=_e,u=Cr(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=a),n=u),t.memoizedState={parent:l,cache:n},Dr(t),xa(t,Ze,n)):((e.lanes&a)!==0&&(jr(e,t),vn(t,null,null,a),yn()),n=e.memoizedState,u=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),xa(t,Ze,l)):(l=u.cache,xa(t,Ze,l),l!==n.cache&&Tr(t,[Ze],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function na(e){e.flags|=4}function fs(e,t,a,l,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(Ad())e.flags|=8192;else throw el=Oi,Or}else e.flags&=-16777217}function td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ph(t))if(Ad())e.flags|=8192;else throw el=Oi,Or}function Ki(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?No():536870912,e.lanes|=t,Hl|=t)}function Tn(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function ip(e,t,a){var l=t.pendingProps;switch(br(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ea(Ze),Ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?na(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xr())),He(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(na(t),u!==null?(He(t),td(t,u)):(He(t),fs(t,n,null,l,a))):u?u!==e.memoizedState?(na(t),He(t),td(t,u)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&na(t),He(t),fs(t,n,e,l,a)),null;case 27:if(ai(t),a=he.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return He(t),null}e=k.current,Rl(t)?Nc(t):(e=sh(n,l,a),t.stateNode=e,na(t))}return He(t),null;case 5:if(ai(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return He(t),null}if(u=k.current,Rl(t))Nc(t);else{var d=uu(he.current);switch(u){case 1:u=d.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=d.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=d.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=d.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=d.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?d.createElement(n,{is:l.is}):d.createElement(n)}}u[tt]=t,u[ot]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=u;e:switch(it(u,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&na(t)}}return He(t),fs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=he.current,Rl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=at,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[tt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Wd(e.nodeValue,a)),e||Sa(t,!0)}else e=uu(e).createTextNode(l),e[tt]=t,t.stateNode=e}return He(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Rl(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else $a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else a=xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(s(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Rl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[tt]=t}else $a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),n=!1}else n=xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ki(t,t.updateQueue),He(t),null);case 4:return Ve(),e===null&&Ns(t.stateNode.containerInfo),He(t),null;case 10:return ea(t.type),He(t),null;case 19:if(U(Xe),l=t.memoizedState,l===null)return He(t),null;if(n=(t.flags&128)!==0,u=l.rendering,u===null)if(n)Tn(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Li(e),u!==null){for(t.flags|=128,Tn(l,!1),e=u.updateQueue,t.updateQueue=e,Ki(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Oc(a,e),a=a.sibling;return Z(Xe,Xe.current&1|2),be&&It(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&pt()>Fi&&(t.flags|=128,n=!0,Tn(l,!1),t.lanes=4194304)}else{if(!n)if(e=Li(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ki(t,e),Tn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!be)return He(t),null}else 2*pt()-l.renderingStartTime>Fi&&a!==536870912&&(t.flags|=128,n=!0,Tn(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=pt(),e.sibling=null,a=Xe.current,Z(Xe,n?a&1|2:a&1),be&&It(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return Et(t),_r(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),a=t.updateQueue,a!==null&&Ki(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&U(Ia),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ea(Ze),He(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function up(e,t){switch(br(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(Ze),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ai(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(s(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Xe),null;case 4:return Ve(),null;case 10:return ea(t.type),null;case 22:case 23:return Et(t),_r(),e!==null&&U(Ia),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(Ze),null;case 25:return null;default:return null}}function ad(e,t){switch(br(t),t.tag){case 3:ea(Ze),Ve();break;case 26:case 27:case 5:ai(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:U(Xe);break;case 10:ea(t.type);break;case 22:case 23:Et(t),_r(),e!==null&&U(Ia);break;case 24:ea(Ze)}}function Cn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var u=a.create,d=a.inst;l=u(),d.destroy=l}a=a.next}while(a!==n)}}catch(p){De(t,t.return,p)}}function Aa(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&e)===e){var d=l.inst,p=d.destroy;if(p!==void 0){d.destroy=void 0,n=t;var S=a,O=p;try{O()}catch(_){De(n,S,_)}}}l=l.next}while(l!==u)}}catch(_){De(t,t.return,_)}}function ld(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Zc(t,a)}catch(l){De(e,e.return,l)}}}function nd(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){De(e,t,l)}}function zn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){De(e,t,n)}}function Xt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){De(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){De(e,t,n)}else a.current=null}function id(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){De(e,e.return,n)}}function ds(e,t,a){try{var l=e.stateNode;Op(l,e.type,a,t),l[ot]=t}catch(n){De(e,e.return,n)}}function ud(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_a(e.type)||e.tag===4}function hs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ud(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&&_a(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 ms(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=$t));else if(l!==4&&(l===27&&_a(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ms(e,t,a),e=e.sibling;e!==null;)ms(e,t,a),e=e.sibling}function Zi(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&_a(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zi(e,t,a),e=e.sibling;e!==null;)Zi(e,t,a),e=e.sibling}function rd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);it(t,l,a),t[tt]=e,t[ot]=a}catch(u){De(e,e.return,u)}}var ia=!1,$e=!1,gs=!1,sd=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function rp(e,t){if(e=e.containerInfo,Hs=hu,e=bc(e),sr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var d=0,p=-1,S=-1,O=0,_=0,w=e,D=null;t:for(;;){for(var M;w!==a||n!==0&&w.nodeType!==3||(p=d+n),w!==u||l!==0&&w.nodeType!==3||(S=d+l),w.nodeType===3&&(d+=w.nodeValue.length),(M=w.firstChild)!==null;)D=w,w=M;for(;;){if(w===e)break t;if(D===a&&++O===n&&(p=d),D===u&&++_===l&&(S=d),(M=w.nextSibling)!==null)break;w=D,D=w.parentNode}w=M}a=p===-1||S===-1?null:{start:p,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bs={focusedElem:e,selectionRange:a},hu=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,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(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,n=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var $=ll(a.type,n);e=l.getSnapshotBeforeUpdate($,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(te){De(a,a.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)qs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":qs(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function od(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ra(e,a),l&4&&Cn(5,a);break;case 1:if(ra(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){De(a,a.return,d)}else{var n=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){De(a,a.return,d)}}l&64&&ld(a),l&512&&zn(a,a.return);break;case 3:if(ra(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Zc(e,t)}catch(d){De(a,a.return,d)}}break;case 27:t===null&&l&4&&rd(a);case 26:case 5:ra(e,a),t===null&&l&4&&id(a),l&512&&zn(a,a.return);break;case 12:ra(e,a);break;case 31:ra(e,a),l&4&&dd(e,a);break;case 13:ra(e,a),l&4&&hd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=pp.bind(null,a),Hp(e,a))));break;case 22:if(l=a.memoizedState!==null||ia,!l){t=t!==null&&t.memoizedState!==null||$e,n=ia;var u=$e;ia=l,($e=t)&&!u?sa(e,a,(a.subtreeFlags&8772)!==0):ra(e,a),ia=n,$e=u}break;case 30:break;default:ra(e,a)}}function cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ku(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 Be=null,ft=!1;function ua(e,t,a){for(a=a.child;a!==null;)fd(e,t,a),a=a.sibling}function fd(e,t,a){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount($l,a)}catch{}switch(a.tag){case 26:$e||Xt(a,t),ua(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||Xt(a,t);var l=Be,n=ft;_a(a.type)&&(Be=a.stateNode,ft=!1),ua(e,t,a),Un(a.stateNode),Be=l,ft=n;break;case 5:$e||Xt(a,t);case 6:if(l=Be,n=ft,Be=null,ua(e,t,a),Be=l,ft=n,Be!==null)if(ft)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(a.stateNode)}catch(u){De(a,t,u)}else try{Be.removeChild(a.stateNode)}catch(u){De(a,t,u)}break;case 18:Be!==null&&(ft?(e=Be,lh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ql(e)):lh(Be,a.stateNode));break;case 4:l=Be,n=ft,Be=a.stateNode.containerInfo,ft=!0,ua(e,t,a),Be=l,ft=n;break;case 0:case 11:case 14:case 15:Aa(2,a,t),$e||Aa(4,a,t),ua(e,t,a);break;case 1:$e||(Xt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&nd(a,t,l)),ua(e,t,a);break;case 21:ua(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,ua(e,t,a),$e=l;break;default:ua(e,t,a)}}function dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ql(e)}catch(a){De(t,t.return,a)}}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ql(e)}catch(a){De(t,t.return,a)}}function sp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sd),t;default:throw Error(s(435,e.tag))}}function Ji(e,t){var a=sp(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=yp.bind(null,e,l);l.then(n,n)}})}function dt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],u=e,d=t,p=d;e:for(;p!==null;){switch(p.tag){case 27:if(_a(p.type)){Be=p.stateNode,ft=!1;break e}break;case 5:Be=p.stateNode,ft=!1;break e;case 3:case 4:Be=p.stateNode.containerInfo,ft=!0;break e}p=p.return}if(Be===null)throw Error(s(160));fd(u,d,n),Be=null,ft=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)md(t,e),t=t.sibling}var wt=null;function md(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dt(t,e),ht(e),l&4&&(Aa(3,e,e.return),Cn(3,e),Aa(5,e,e.return));break;case 1:dt(t,e),ht(e),l&512&&($e||a===null||Xt(a,a.return)),l&64&&ia&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=wt;if(dt(t,e),ht(e),l&512&&($e||a===null||Xt(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Il]||u[tt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(l),n.head.insertBefore(u,n.querySelector("head > title"))),it(u,l,a),u[tt]=e,Ie(u),l=u;break e;case"link":var d=mh("link","href",n).get(l+(a.href||""));if(d){for(var p=0;p<d.length;p++)if(u=d[p],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(p,1);break t}}u=n.createElement(l),it(u,l,a),n.head.appendChild(u);break;case"meta":if(d=mh("meta","content",n).get(l+(a.content||""))){for(p=0;p<d.length;p++)if(u=d[p],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(p,1);break t}}u=n.createElement(l),it(u,l,a),n.head.appendChild(u);break;default:throw Error(s(468,l))}u[tt]=e,Ie(u),l=u}e.stateNode=l}else gh(n,e.type,e.stateNode);else e.stateNode=hh(n,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?gh(n,e.type,e.stateNode):hh(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ds(e,e.memoizedProps,a.memoizedProps)}break;case 27:dt(t,e),ht(e),l&512&&($e||a===null||Xt(a,a.return)),a!==null&&l&4&&ds(e,e.memoizedProps,a.memoizedProps);break;case 5:if(dt(t,e),ht(e),l&512&&($e||a===null||Xt(a,a.return)),e.flags&32){n=e.stateNode;try{hl(n,"")}catch($){De(e,e.return,$)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,ds(e,n,a!==null?a.memoizedProps:n)),l&1024&&(gs=!0);break;case 6:if(dt(t,e),ht(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch($){De(e,e.return,$)}}break;case 3:if(ou=null,n=wt,wt=ru(t.containerInfo),dt(t,e),wt=n,ht(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ql(t.containerInfo)}catch($){De(e,e.return,$)}gs&&(gs=!1,gd(e));break;case 4:l=wt,wt=ru(e.stateNode.containerInfo),dt(t,e),ht(e),wt=l;break;case 12:dt(t,e),ht(e);break;case 31:dt(t,e),ht(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ji(e,l)));break;case 13:dt(t,e),ht(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&($i=pt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ji(e,l)));break;case 22:n=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,O=ia,_=$e;if(ia=O||n,$e=_||S,dt(t,e),$e=_,ia=O,ht(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||S||ia||$e||nl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(u=S.stateNode,n)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{p=S.stateNode;var w=S.memoizedProps.style,D=w!=null&&w.hasOwnProperty("display")?w.display:null;p.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch($){De(S,S.return,$)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch($){De(S,S.return,$)}}}else if(t.tag===18){if(a===null){S=t;try{var M=S.stateNode;n?nh(M,!0):nh(S.stateNode,!1)}catch($){De(S,S.return,$)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ji(e,a))));break;case 19:dt(t,e),ht(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ji(e,l)));break;case 30:break;case 21:break;default:dt(t,e),ht(e)}}function ht(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(ud(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var n=a.stateNode,u=hs(e);Zi(e,u,n);break;case 5:var d=a.stateNode;a.flags&32&&(hl(d,""),a.flags&=-33);var p=hs(e);Zi(e,p,d);break;case 3:case 4:var S=a.stateNode.containerInfo,O=hs(e);ms(e,O,S);break;default:throw Error(s(161))}}catch(_){De(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ra(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(e,t.alternate,t),t=t.sibling}function nl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Aa(4,t,t.return),nl(t);break;case 1:Xt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&nd(t,t.return,a),nl(t);break;case 27:Un(t.stateNode);case 26:case 5:Xt(t,t.return),nl(t);break;case 22:t.memoizedState===null&&nl(t);break;case 30:nl(t);break;default:nl(t)}e=e.sibling}}function sa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,u=t,d=u.flags;switch(u.tag){case 0:case 11:case 15:sa(n,u,a),Cn(4,u);break;case 1:if(sa(n,u,a),l=u,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(O){De(l,l.return,O)}if(l=u,n=l.updateQueue,n!==null){var p=l.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Kc(S[n],p)}catch(O){De(l,l.return,O)}}a&&d&64&&ld(u),zn(u,u.return);break;case 27:rd(u);case 26:case 5:sa(n,u,a),a&&l===null&&d&4&&id(u),zn(u,u.return);break;case 12:sa(n,u,a);break;case 31:sa(n,u,a),a&&d&4&&dd(n,u);break;case 13:sa(n,u,a),a&&d&4&&hd(n,u);break;case 22:u.memoizedState===null&&sa(n,u,a),zn(u,u.return);break;case 30:break;default:sa(n,u,a)}t=t.sibling}}function ps(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&dn(a))}function ys(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e))}function Yt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pd(e,t,a,l),t=t.sibling}function pd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,a,l),n&2048&&Cn(9,t);break;case 1:Yt(e,t,a,l);break;case 3:Yt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e)));break;case 12:if(n&2048){Yt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,d=u.id,p=u.onPostCommit;typeof p=="function"&&p(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){De(t,t.return,S)}}else Yt(e,t,a,l);break;case 31:Yt(e,t,a,l);break;case 13:Yt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,d=t.alternate,t.memoizedState!==null?u._visibility&2?Yt(e,t,a,l):An(e,t):u._visibility&2?Yt(e,t,a,l):(u._visibility|=2,Nl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ps(d,t);break;case 24:Yt(e,t,a,l),n&2048&&ys(t.alternate,t);break;default:Yt(e,t,a,l)}}function Nl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,d=t,p=a,S=l,O=d.flags;switch(d.tag){case 0:case 11:case 15:Nl(u,d,p,S,n),Cn(8,d);break;case 23:break;case 22:var _=d.stateNode;d.memoizedState!==null?_._visibility&2?Nl(u,d,p,S,n):An(u,d):(_._visibility|=2,Nl(u,d,p,S,n)),n&&O&2048&&ps(d.alternate,d);break;case 24:Nl(u,d,p,S,n),n&&O&2048&&ys(d.alternate,d);break;default:Nl(u,d,p,S,n)}t=t.sibling}}function An(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:An(a,l),n&2048&&ps(l.alternate,l);break;case 24:An(a,l),n&2048&&ys(l.alternate,l);break;default:An(a,l)}t=t.sibling}}var On=8192;function _l(e,t,a){if(e.subtreeFlags&On)for(e=e.child;e!==null;)yd(e,t,a),e=e.sibling}function yd(e,t,a){switch(e.tag){case 26:_l(e,t,a),e.flags&On&&e.memoizedState!==null&&kp(a,wt,e.memoizedState,e.memoizedProps);break;case 5:_l(e,t,a);break;case 3:case 4:var l=wt;wt=ru(e.stateNode.containerInfo),_l(e,t,a),wt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=On,On=16777216,_l(e,t,a),On=l):_l(e,t,a));break;default:_l(e,t,a)}}function vd(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 Dn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,Sd(l,e)}vd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bd(e),e=e.sibling}function bd(e){switch(e.tag){case 0:case 11:case 15:Dn(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:Dn(e);break;case 12:Dn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ki(e)):Dn(e);break;default:Dn(e)}}function ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,Sd(l,e)}vd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),ki(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ki(t));break;default:ki(t)}e=e.sibling}}function Sd(e,t){for(;Pe!==null;){var a=Pe;switch(a.tag){case 0:case 11:case 15:Aa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:dn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Pe=l;else e:for(a=e;Pe!==null;){l=Pe;var n=l.sibling,u=l.return;if(cd(l),l===a){Pe=null;break e}if(n!==null){n.return=u,Pe=n;break e}Pe=u}}}var op={getCacheForType:function(e){var t=lt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return lt(Ze).controller.signal}},cp=typeof WeakMap=="function"?WeakMap:Map,Ce=0,_e=null,me=null,pe=0,Oe=0,Rt=null,Oa=!1,Ul=!1,vs=!1,oa=0,Ge=0,Da=0,il=0,bs=0,Tt=0,Hl=0,jn=null,mt=null,Ss=!1,$i=0,xd=0,Fi=1/0,Wi=null,ja=null,We=0,Ma=null,Bl=null,ca=0,xs=0,Es=null,Ed=null,Mn=0,Rs=null;function Ct(){return(Ce&2)!==0&&pe!==0?pe&-pe:j.T!==null?Ds():Bo()}function Rd(){if(Tt===0)if((pe&536870912)===0||be){var e=ii;ii<<=1,(ii&3932160)===0&&(ii=262144),Tt=e}else Tt=536870912;return e=xt.current,e!==null&&(e.flags|=32),Tt}function gt(e,t,a){(e===_e&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(wl(e,0),La(e,pe,Tt,!1)),Wl(e,a),((Ce&2)===0||e!==_e)&&(e===_e&&((Ce&2)===0&&(il|=a),Ge===4&&La(e,pe,Tt,!1)),Qt(e))}function Td(e,t,a){if((Ce&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Fl(e,t),n=l?hp(e,t):Cs(e,t,!0),u=l;do{if(n===0){Ul&&!l&&La(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!fp(a)){n=Cs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var p=e;n=jn;var S=p.current.memoizedState.isDehydrated;if(S&&(wl(p,d).flags|=256),d=Cs(p,d,!1),d!==2){if(vs&&!S){p.errorRecoveryDisabledLanes|=u,il|=u,n=4;break e}u=mt,mt=n,u!==null&&(mt===null?mt=u:mt.push.apply(mt,u))}n=d}if(u=!1,n!==2)continue}}if(n===1){wl(e,0),La(e,t,0,!0);break}e:{switch(l=e,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:La(l,t,Tt,!Oa);break e;case 2:mt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=$i+300-pt(),10<n)){if(La(l,t,Tt,!Oa),ri(l,0,!0)!==0)break e;ca=t,l.timeoutHandle=th(Cd.bind(null,l,a,mt,Wi,Ss,t,Tt,il,Hl,Oa,u,"Throttled",-0,0),n);break e}Cd(l,a,mt,Wi,Ss,t,Tt,il,Hl,Oa,u,null,-0,0)}}break}while(!0);Qt(e)}function Cd(e,t,a,l,n,u,d,p,S,O,_,w,D,M){if(e.timeoutHandle=-1,w=t.subtreeFlags,w&8192||(w&16785408)===16785408){w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},yd(t,u,w);var $=(u&62914560)===u?$i-pt():(u&4194048)===u?xd-pt():0;if($=$p(w,$),$!==null){ca=u,e.cancelPendingCommit=$(Nd.bind(null,e,t,u,a,l,n,d,p,S,_,w,null,D,M)),La(e,u,d,!O);return}}Nd(e,t,u,a,l,n,d,p,S)}function fp(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],u=n.getSnapshot;n=n.value;try{if(!bt(u(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 La(e,t,a,l){t&=~bs,t&=~il,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var u=31-vt(n),d=1<<u;l[u]=-1,n&=~d}a!==0&&_o(e,a,t)}function Ii(){return(Ce&6)===0?(Ln(0),!1):!0}function Ts(){if(me!==null){if(Oe===0)var e=me.return;else e=me,Pt=Fa=null,qr(e),Ol=null,mn=0,e=me;for(;e!==null;)ad(e.alternate,e),e=e.return;me=null}}function wl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Mp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ca=0,Ts(),_e=e,me=a=Wt(e.current,null),pe=t,Oe=0,Rt=null,Oa=!1,Ul=Fl(e,t),vs=!1,Hl=Tt=bs=il=Da=Ge=0,mt=jn=null,Ss=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-vt(l),u=1<<n;t|=e[n],l&=~u}return oa=t,bi(),a}function zd(e,t){oe=null,j.H=En,t===Al||t===Ai?(t=Gc(),Oe=3):t===Or?(t=Gc(),Oe=4):Oe=t===as?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,me===null&&(Ge=1,Gi(e,Dt(t,e.current)))}function Ad(){var e=xt.current;return e===null?!0:(pe&4194048)===pe?Nt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Nt:!1}function Od(){var e=j.H;return j.H=En,e===null?En:e}function Dd(){var e=j.A;return j.A=op,e}function Pi(){Ge=4,Oa||(pe&4194048)!==pe&&xt.current!==null||(Ul=!0),(Da&134217727)===0&&(il&134217727)===0||_e===null||La(_e,pe,Tt,!1)}function Cs(e,t,a){var l=Ce;Ce|=2;var n=Od(),u=Dd();(_e!==e||pe!==t)&&(Wi=null,wl(e,t)),t=!1;var d=Ge;e:do try{if(Oe!==0&&me!==null){var p=me,S=Rt;switch(Oe){case 8:Ts(),d=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var O=Oe;if(Oe=0,Rt=null,Yl(e,p,S,O),a&&Ul){d=0;break e}break;default:O=Oe,Oe=0,Rt=null,Yl(e,p,S,O)}}dp(),d=Ge;break}catch(_){zd(e,_)}while(!0);return t&&e.shellSuspendCounter++,Pt=Fa=null,Ce=l,j.H=n,j.A=u,me===null&&(_e=null,pe=0,bi()),d}function dp(){for(;me!==null;)jd(me)}function hp(e,t){var a=Ce;Ce|=2;var l=Od(),n=Dd();_e!==e||pe!==t?(Wi=null,Fi=pt()+500,wl(e,t)):Ul=Fl(e,t);e:do try{if(Oe!==0&&me!==null){t=me;var u=Rt;t:switch(Oe){case 1:Oe=0,Rt=null,Yl(e,t,u,1);break;case 2:case 9:if(Yc(u)){Oe=0,Rt=null,Md(t);break}t=function(){Oe!==2&&Oe!==9||_e!==e||(Oe=7),Qt(e)},u.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Yc(u)?(Oe=0,Rt=null,Md(t)):(Oe=0,Rt=null,Yl(e,t,u,7));break;case 5:var d=null;switch(me.tag){case 26:d=me.memoizedState;case 5:case 27:var p=me;if(d?ph(d):p.stateNode.complete){Oe=0,Rt=null;var S=p.sibling;if(S!==null)me=S;else{var O=p.return;O!==null?(me=O,eu(O)):me=null}break t}}Oe=0,Rt=null,Yl(e,t,u,5);break;case 6:Oe=0,Rt=null,Yl(e,t,u,6);break;case 8:Ts(),Ge=6;break e;default:throw Error(s(462))}}mp();break}catch(_){zd(e,_)}while(!0);return Pt=Fa=null,j.H=l,j.A=n,Ce=a,me!==null?0:(_e=null,pe=0,bi(),Ge)}function mp(){for(;me!==null&&!Bm();)jd(me)}function jd(e){var t=ed(e.alternate,e,oa);e.memoizedProps=e.pendingProps,t===null?eu(e):me=t}function Md(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=kf(a,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=kf(a,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:qr(t);default:ad(a,t),t=me=Oc(t,oa),t=ed(a,t,oa)}e.memoizedProps=e.pendingProps,t===null?eu(e):me=t}function Yl(e,t,a,l){Pt=Fa=null,qr(t),Ol=null,mn=0;var n=t.return;try{if(ap(e,n,t,a,pe)){Ge=1,Gi(e,Dt(a,e.current)),me=null;return}}catch(u){if(n!==null)throw me=n,u;Ge=1,Gi(e,Dt(a,e.current)),me=null;return}t.flags&32768?(be||l===1?e=!0:Ul||(pe&536870912)!==0?e=!1:(Oa=e=!0,(l===2||l===9||l===3||l===6)&&(l=xt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ld(t,e)):eu(t)}function eu(e){var t=e;do{if((t.flags&32768)!==0){Ld(t,Oa);return}e=t.return;var a=ip(t.alternate,t,oa);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Ge===0&&(Ge=5)}function Ld(e,t){do{var a=up(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);Ge=6,me=null}function Nd(e,t,a,l,n,u,d,p,S){e.cancelPendingCommit=null;do tu();while(We!==0);if((Ce&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=hr,Jm(e,a,u,d,p,S),e===_e&&(me=_e=null,pe=0),Bl=t,Ma=e,ca=a,xs=u,Es=n,Ed=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,vp(li,function(){return wd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,n=G.p,G.p=2,d=Ce,Ce|=4;try{rp(e,t,a)}finally{Ce=d,G.p=n,j.T=l}}We=1,_d(),Ud(),Hd()}}function _d(){if(We===1){We=0;var e=Ma,t=Bl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var l=G.p;G.p=2;var n=Ce;Ce|=4;try{md(t,e);var u=Bs,d=bc(e.containerInfo),p=u.focusedElem,S=u.selectionRange;if(d!==p&&p&&p.ownerDocument&&vc(p.ownerDocument.documentElement,p)){if(S!==null&&sr(p)){var O=S.start,_=S.end;if(_===void 0&&(_=O),"selectionStart"in p)p.selectionStart=O,p.selectionEnd=Math.min(_,p.value.length);else{var w=p.ownerDocument||document,D=w&&w.defaultView||window;if(D.getSelection){var M=D.getSelection(),$=p.textContent.length,te=Math.min(S.start,$),Le=S.end===void 0?te:Math.min(S.end,$);!M.extend&&te>Le&&(d=Le,Le=te,te=d);var C=yc(p,te),E=yc(p,Le);if(C&&E&&(M.rangeCount!==1||M.anchorNode!==C.node||M.anchorOffset!==C.offset||M.focusNode!==E.node||M.focusOffset!==E.offset)){var A=w.createRange();A.setStart(C.node,C.offset),M.removeAllRanges(),te>Le?(M.addRange(A),M.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),M.addRange(A))}}}}for(w=[],M=p;M=M.parentNode;)M.nodeType===1&&w.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<w.length;p++){var H=w[p];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}hu=!!Hs,Bs=Hs=null}finally{Ce=n,G.p=l,j.T=a}}e.current=t,We=2}}function Ud(){if(We===2){We=0;var e=Ma,t=Bl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var l=G.p;G.p=2;var n=Ce;Ce|=4;try{od(e,t.alternate,t)}finally{Ce=n,G.p=l,j.T=a}}We=3}}function Hd(){if(We===4||We===3){We=0,wm();var e=Ma,t=Bl,a=ca,l=Ed;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,Bl=Ma=null,Bd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ja=null),Xu(a),t=t.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot($l,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=j.T,n=G.p,G.p=2,j.T=null;try{for(var u=e.onRecoverableError,d=0;d<l.length;d++){var p=l[d];u(p.value,{componentStack:p.stack})}}finally{j.T=t,G.p=n}}(ca&3)!==0&&tu(),Qt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Rs?Mn++:(Mn=0,Rs=e):Mn=0,Ln(0)}}function Bd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dn(t)))}function tu(){return _d(),Ud(),Hd(),wd()}function wd(){if(We!==5)return!1;var e=Ma,t=xs;xs=0;var a=Xu(ca),l=j.T,n=G.p;try{G.p=32>a?32:a,j.T=null,a=Es,Es=null;var u=Ma,d=ca;if(We=0,Bl=Ma=null,ca=0,(Ce&6)!==0)throw Error(s(331));var p=Ce;if(Ce|=4,bd(u.current),pd(u,u.current,d,a),Ce=p,Ln(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot($l,u)}catch{}return!0}finally{G.p=n,j.T=l,Bd(e,t)}}function Yd(e,t,a){t=Dt(a,t),t=ts(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(Wl(e,2),Qt(e))}function De(e,t,a){if(e.tag===3)Yd(e,e,a);else for(;t!==null;){if(t.tag===3){Yd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ja===null||!ja.has(l))){e=Dt(a,e),a=qf(2),l=Ta(t,a,2),l!==null&&(Gf(a,l,t,e),Wl(l,2),Qt(l));break}}t=t.return}}function zs(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new cp;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(vs=!0,n.add(a),e=gp.bind(null,e,t,a),t.then(e,e))}function gp(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,_e===e&&(pe&a)===a&&(Ge===4||Ge===3&&(pe&62914560)===pe&&300>pt()-$i?(Ce&2)===0&&wl(e,0):bs|=a,Hl===pe&&(Hl=0)),Qt(e)}function qd(e,t){t===0&&(t=No()),e=Ja(e,t),e!==null&&(Wl(e,t),Qt(e))}function pp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),qd(e,a)}function yp(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),qd(e,a)}function vp(e,t){return Yu(e,t)}var au=null,ql=null,As=!1,lu=!1,Os=!1,Na=0;function Qt(e){e!==ql&&e.next===null&&(ql===null?au=ql=e:ql=ql.next=e),lu=!0,As||(As=!0,Sp())}function Ln(e,t){if(!Os&&lu){Os=!0;do for(var a=!1,l=au;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var u=0;else{var d=l.suspendedLanes,p=l.pingedLanes;u=(1<<31-vt(42|e)+1)-1,u&=n&~(d&~p),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Qd(l,u))}else u=pe,u=ri(l,l===_e?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Fl(l,u)||(a=!0,Qd(l,u));l=l.next}while(a);Os=!1}}function bp(){Gd()}function Gd(){lu=As=!1;var e=0;Na!==0&&jp()&&(e=Na);for(var t=pt(),a=null,l=au;l!==null;){var n=l.next,u=Vd(l,t);u===0?(l.next=null,a===null?au=n:a.next=n,n===null&&(ql=a)):(a=l,(e!==0||(u&3)!==0)&&(lu=!0)),l=n}We!==0&&We!==5||Ln(e),Na!==0&&(Na=0)}function Vd(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var d=31-vt(u),p=1<<d,S=n[d];S===-1?((p&a)===0||(p&l)!==0)&&(n[d]=Zm(p,t)):S<=t&&(e.expiredLanes|=p),u&=~p}if(t=_e,a=pe,a=ri(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&qu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Fl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&qu(l),Xu(a)){case 2:case 8:a=Mo;break;case 32:a=li;break;case 268435456:a=Lo;break;default:a=li}return l=Xd.bind(null,e),a=Yu(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&qu(l),e.callbackPriority=2,e.callbackNode=null,2}function Xd(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(tu()&&e.callbackNode!==a)return null;var l=pe;return l=ri(e,e===_e?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Td(e,l,t),Vd(e,pt()),e.callbackNode!=null&&e.callbackNode===a?Xd.bind(null,e):null)}function Qd(e,t){if(tu())return null;Td(e,t,!0)}function Sp(){Lp(function(){(Ce&6)!==0?Yu(jo,bp):Gd()})}function Ds(){if(Na===0){var e=Cl;e===0&&(e=ni,ni<<=1,(ni&261888)===0&&(ni=256)),Na=e}return Na}function Kd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fi(""+e)}function Zd(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function xp(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var u=Kd((n[ot]||null).action),d=l.submitter;d&&(t=(t=d[ot]||null)?Kd(t.formAction):d.getAttribute("formAction"),t!==null&&(u=t,d=null));var p=new gi("action","action",null,l,n);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Na!==0){var S=d?Zd(n,d):new FormData(n);$r(a,{pending:!0,data:S,method:n.method,action:u},null,S)}}else typeof u=="function"&&(p.preventDefault(),S=d?Zd(n,d):new FormData(n),$r(a,{pending:!0,data:S,method:n.method,action:u},u,S))},currentTarget:n}]})}}for(var js=0;js<dr.length;js++){var Ms=dr[js],Ep=Ms.toLowerCase(),Rp=Ms[0].toUpperCase()+Ms.slice(1);Bt(Ep,"on"+Rp)}Bt(Ec,"onAnimationEnd"),Bt(Rc,"onAnimationIteration"),Bt(Tc,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Yg,"onTransitionRun"),Bt(qg,"onTransitionStart"),Bt(Gg,"onTransitionCancel"),Bt(Cc,"onTransitionEnd"),fl("onMouseEnter",["mouseout","mouseover"]),fl("onMouseLeave",["mouseout","mouseover"]),fl("onPointerEnter",["pointerout","pointerover"]),fl("onPointerLeave",["pointerout","pointerover"]),Xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xa("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(" "),Tp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function Jd(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var d=l.length-1;0<=d;d--){var p=l[d],S=p.instance,O=p.currentTarget;if(p=p.listener,S!==u&&n.isPropagationStopped())break e;u=p,n.currentTarget=O;try{u(n)}catch(_){vi(_)}n.currentTarget=null,u=S}else for(d=0;d<l.length;d++){if(p=l[d],S=p.instance,O=p.currentTarget,p=p.listener,S!==u&&n.isPropagationStopped())break e;u=p,n.currentTarget=O;try{u(n)}catch(_){vi(_)}n.currentTarget=null,u=S}}}}function ge(e,t){var a=t[Qu];a===void 0&&(a=t[Qu]=new Set);var l=e+"__bubble";a.has(l)||(kd(t,e,2,!1),a.add(l))}function Ls(e,t,a){var l=0;t&&(l|=4),kd(a,e,l,t)}var nu="_reactListening"+Math.random().toString(36).slice(2);function Ns(e){if(!e[nu]){e[nu]=!0,qo.forEach(function(a){a!=="selectionchange"&&(Tp.has(a)||Ls(a,!1,e),Ls(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nu]||(t[nu]=!0,Ls("selectionchange",!1,t))}}function kd(e,t,a,l){switch(Rh(t)){case 2:var n=Ip;break;case 8:n=Pp;break;default:n=ks}a=n.bind(null,t,a,e),n=void 0,!Pu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function _s(e,t,a,l,n){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var p=l.stateNode.containerInfo;if(p===n)break;if(d===4)for(d=l.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===n)return;d=d.return}for(;p!==null;){if(d=sl(p),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){l=u=d;continue e}p=p.parentNode}}l=l.return}Io(function(){var O=u,_=Wu(a),w=[];e:{var D=zc.get(e);if(D!==void 0){var M=gi,$=e;switch(e){case"keypress":if(hi(a)===0)break e;case"keydown":case"keyup":M=yg;break;case"focusin":$="focus",M=lr;break;case"focusout":$="blur",M=lr;break;case"beforeblur":case"afterblur":M=lr;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=tc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=ig;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Sg;break;case Ec:case Rc:case Tc:M=sg;break;case Cc:M=Eg;break;case"scroll":case"scrollend":M=lg;break;case"wheel":M=Tg;break;case"copy":case"cut":case"paste":M=cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=lc;break;case"toggle":case"beforetoggle":M=zg}var te=(t&4)!==0,Le=!te&&(e==="scroll"||e==="scrollend"),C=te?D!==null?D+"Capture":null:D;te=[];for(var E=O,A;E!==null;){var H=E;if(A=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||A===null||C===null||(H=en(E,C),H!=null&&te.push(_n(E,H,A))),Le)break;E=E.return}0<te.length&&(D=new M(D,$,null,a,_),w.push({event:D,listeners:te}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",D&&a!==Fu&&($=a.relatedTarget||a.fromElement)&&(sl($)||$[rl]))break e;if((M||D)&&(D=_.window===_?_:(D=_.ownerDocument)?D.defaultView||D.parentWindow:window,M?($=a.relatedTarget||a.toElement,M=O,$=$?sl($):null,$!==null&&(Le=f($),te=$.tag,$!==Le||te!==5&&te!==27&&te!==6)&&($=null)):(M=null,$=O),M!==$)){if(te=tc,H="onMouseLeave",C="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(te=lc,H="onPointerLeave",C="onPointerEnter",E="pointer"),Le=M==null?D:Pl(M),A=$==null?D:Pl($),D=new te(H,E+"leave",M,a,_),D.target=Le,D.relatedTarget=A,H=null,sl(_)===O&&(te=new te(C,E+"enter",$,a,_),te.target=A,te.relatedTarget=Le,H=te),Le=H,M&&$)t:{for(te=Cp,C=M,E=$,A=0,H=C;H;H=te(H))A++;H=0;for(var P=E;P;P=te(P))H++;for(;0<A-H;)C=te(C),A--;for(;0<H-A;)E=te(E),H--;for(;A--;){if(C===E||E!==null&&C===E.alternate){te=C;break t}C=te(C),E=te(E)}te=null}else te=null;M!==null&&$d(w,D,M,te,!1),$!==null&&Le!==null&&$d(w,Le,$,te,!0)}}e:{if(D=O?Pl(O):window,M=D.nodeName&&D.nodeName.toLowerCase(),M==="select"||M==="input"&&D.type==="file")var xe=fc;else if(oc(D))if(dc)xe=Hg;else{xe=_g;var W=Ng}else M=D.nodeName,!M||M.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&$u(O.elementType)&&(xe=fc):xe=Ug;if(xe&&(xe=xe(e,O))){cc(w,xe,a,_);break e}W&&W(e,D,O),e==="focusout"&&O&&D.type==="number"&&O.memoizedProps.value!=null&&ku(D,"number",D.value)}switch(W=O?Pl(O):window,e){case"focusin":(oc(W)||W.contentEditable==="true")&&(yl=W,or=O,on=null);break;case"focusout":on=or=yl=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,Sc(w,a,_);break;case"selectionchange":if(wg)break;case"keydown":case"keyup":Sc(w,a,_)}var ce;if(ir)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 pl?rc(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(nc&&a.locale!=="ko"&&(pl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&pl&&(ce=Po()):(ya=_,er="value"in ya?ya.value:ya.textContent,pl=!0)),W=iu(O,ye),0<W.length&&(ye=new ac(ye,e,null,a,_),w.push({event:ye,listeners:W}),ce?ye.data=ce:(ce=sc(a),ce!==null&&(ye.data=ce)))),(ce=Og?Dg(e,a):jg(e,a))&&(ye=iu(O,"onBeforeInput"),0<ye.length&&(W=new ac("onBeforeInput","beforeinput",null,a,_),w.push({event:W,listeners:ye}),W.data=ce)),xp(w,e,O,a,_)}Jd(w,t)})}function _n(e,t,a){return{instance:e,listener:t,currentTarget:a}}function iu(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=en(e,a),n!=null&&l.unshift(_n(e,n,u)),n=en(e,t),n!=null&&l.push(_n(e,n,u))),e.tag===3)return l;e=e.return}return[]}function Cp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $d(e,t,a,l,n){for(var u=t._reactName,d=[];a!==null&&a!==l;){var p=a,S=p.alternate,O=p.stateNode;if(p=p.tag,S!==null&&S===l)break;p!==5&&p!==26&&p!==27||O===null||(S=O,n?(O=en(a,u),O!=null&&d.unshift(_n(a,O,S))):n||(O=en(a,u),O!=null&&d.push(_n(a,O,S)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var zp=/\r\n?/g,Ap=/\u0000|\uFFFD/g;function Fd(e){return(typeof e=="string"?e:""+e).replace(zp,`
|
|
49
|
+
`).replace(Ap,"")}function Wd(e,t){return t=Fd(t),Fd(e)===t}function Me(e,t,a,l,n,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||hl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&hl(e,""+l);break;case"className":oi(e,"class",l);break;case"tabIndex":oi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":oi(e,a,l);break;case"style":Fo(e,l,u);break;case"data":if(t!=="object"){oi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=fi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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"&&(a==="formAction"?(t!=="input"&&Me(e,t,"name",n.name,n,null),Me(e,t,"formEncType",n.formEncType,n,null),Me(e,t,"formMethod",n.formMethod,n,null),Me(e,t,"formTarget",n.formTarget,n,null)):(Me(e,t,"encType",n.encType,n,null),Me(e,t,"method",n.method,n,null),Me(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=fi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=$t);break;case"onScroll":l!=null&&ge("scroll",e);break;case"onScrollEnd":l!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=fi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":ge("beforetoggle",e),ge("toggle",e),si(e,"popover",l);break;case"xlinkActuate":kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":kt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":kt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":kt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":kt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":si(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=tg.get(a)||a,si(e,a,l))}}function Us(e,t,a,l,n,u){switch(a){case"style":Fo(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?hl(e,l):(typeof l=="number"||typeof l=="bigint")&&hl(e,""+l);break;case"onScroll":l!=null&&ge("scroll",e);break;case"onScrollEnd":l!=null&&ge("scrollend",e);break;case"onClick":l!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Go.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),u=e[ot]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):si(e,a,l)}}}function it(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var l=!1,n=!1,u;for(u in a)if(a.hasOwnProperty(u)){var d=a[u];if(d!=null)switch(u){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,u,d,a,null)}}n&&Me(e,t,"srcSet",a.srcSet,a,null),l&&Me(e,t,"src",a.src,a,null);return;case"input":ge("invalid",e);var p=u=d=n=null,S=null,O=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":n=_;break;case"type":d=_;break;case"checked":S=_;break;case"defaultChecked":O=_;break;case"value":u=_;break;case"defaultValue":p=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,t));break;default:Me(e,t,l,_,a,null)}}Zo(e,u,p,S,O,d,n,!1);return;case"select":ge("invalid",e),l=d=u=null;for(n in a)if(a.hasOwnProperty(n)&&(p=a[n],p!=null))switch(n){case"value":u=p;break;case"defaultValue":d=p;break;case"multiple":l=p;default:Me(e,t,n,p,a,null)}t=u,a=d,e.multiple=!!l,t!=null?dl(e,!!l,t,!1):a!=null&&dl(e,!!l,a,!0);return;case"textarea":ge("invalid",e),u=n=l=null;for(d in a)if(a.hasOwnProperty(d)&&(p=a[d],p!=null))switch(d){case"value":l=p;break;case"defaultValue":n=p;break;case"children":u=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:Me(e,t,d,p,a,null)}ko(e,l,n,u);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Me(e,t,S,l,a,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(l=0;l<Nn.length;l++)ge(Nn[l],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("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(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,O,l,a,null)}return;default:if($u(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&Us(e,t,_,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Me(e,t,p,l,a,null))}function Op(e,t,a,l){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,d=null,p=null,S=null,O=null,_=null;for(M in a){var w=a[M];if(a.hasOwnProperty(M)&&w!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":S=w;default:l.hasOwnProperty(M)||Me(e,t,M,null,l,w)}}for(var D in l){var M=l[D];if(w=a[D],l.hasOwnProperty(D)&&(M!=null||w!=null))switch(D){case"type":u=M;break;case"name":n=M;break;case"checked":O=M;break;case"defaultChecked":_=M;break;case"value":d=M;break;case"defaultValue":p=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:M!==w&&Me(e,t,D,M,l,w)}}Ju(e,d,p,S,O,_,u,n);return;case"select":M=d=p=D=null;for(u in a)if(S=a[u],a.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":M=S;default:l.hasOwnProperty(u)||Me(e,t,u,null,l,S)}for(n in l)if(u=l[n],S=a[n],l.hasOwnProperty(n)&&(u!=null||S!=null))switch(n){case"value":D=u;break;case"defaultValue":p=u;break;case"multiple":d=u;default:u!==S&&Me(e,t,n,u,l,S)}t=p,a=d,l=M,D!=null?dl(e,!!a,D,!1):!!l!=!!a&&(t!=null?dl(e,!!a,t,!0):dl(e,!!a,a?[]:"",!1));return;case"textarea":M=D=null;for(p in a)if(n=a[p],a.hasOwnProperty(p)&&n!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Me(e,t,p,null,l,n)}for(d in l)if(n=l[d],u=a[d],l.hasOwnProperty(d)&&(n!=null||u!=null))switch(d){case"value":D=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&Me(e,t,d,n,l,u)}Jo(e,D,M);return;case"option":for(var $ in a)if(D=a[$],a.hasOwnProperty($)&&D!=null&&!l.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:Me(e,t,$,null,l,D)}for(S in l)if(D=l[S],M=a[S],l.hasOwnProperty(S)&&D!==M&&(D!=null||M!=null))switch(S){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Me(e,t,S,D,l,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 te in a)D=a[te],a.hasOwnProperty(te)&&D!=null&&!l.hasOwnProperty(te)&&Me(e,t,te,null,l,D);for(O in l)if(D=l[O],M=a[O],l.hasOwnProperty(O)&&D!==M&&(D!=null||M!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:Me(e,t,O,D,l,M)}return;default:if($u(t)){for(var Le in a)D=a[Le],a.hasOwnProperty(Le)&&D!==void 0&&!l.hasOwnProperty(Le)&&Us(e,t,Le,void 0,l,D);for(_ in l)D=l[_],M=a[_],!l.hasOwnProperty(_)||D===M||D===void 0&&M===void 0||Us(e,t,_,D,l,M);return}}for(var C in a)D=a[C],a.hasOwnProperty(C)&&D!=null&&!l.hasOwnProperty(C)&&Me(e,t,C,null,l,D);for(w in l)D=l[w],M=a[w],!l.hasOwnProperty(w)||D===M||D==null&&M==null||Me(e,t,w,D,l,M)}function Id(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Dp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],u=n.transferSize,d=n.initiatorType,p=n.duration;if(u&&p&&Id(d)){for(d=0,p=n.responseEnd,l+=1;l<a.length;l++){var S=a[l],O=S.startTime;if(O>p)break;var _=S.transferSize,w=S.initiatorType;_&&Id(w)&&(S=S.responseEnd,d+=_*(S<p?1:(p-O)/(S-O)))}if(--l,t+=8*(u+d)/(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 Hs=null,Bs=null;function uu(e){return e.nodeType===9?e:e.ownerDocument}function Pd(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 eh(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 ws(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 Ys=null;function jp(){var e=window.event;return e&&e.type==="popstate"?e===Ys?!1:(Ys=e,!0):(Ys=null,!1)}var th=typeof setTimeout=="function"?setTimeout:void 0,Mp=typeof clearTimeout=="function"?clearTimeout:void 0,ah=typeof Promise=="function"?Promise:void 0,Lp=typeof queueMicrotask=="function"?queueMicrotask:typeof ah<"u"?function(e){return ah.resolve(null).then(e).catch(Np)}:th;function Np(e){setTimeout(function(){throw e})}function _a(e){return e==="head"}function lh(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Ql(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Un(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Un(a);for(var u=a.firstChild;u;){var d=u.nextSibling,p=u.nodeName;u[Il]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=d}}else a==="body"&&Un(e.ownerDocument.body);a=n}while(a);Ql(t)}function nh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function qs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":qs(a),Ku(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function _p(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Il])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=_t(e.nextSibling),e===null)break}return null}function Up(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=_t(e.nextSibling),e===null))return null;return e}function ih(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function Gs(e){return e.data==="$?"||e.data==="$~"}function Vs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Hp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function _t(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 Xs=null;function uh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return _t(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function rh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function sh(e,t,a){switch(t=uu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Un(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ku(e)}var Ut=new Map,oh=new Set;function ru(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fa=G.d;G.d={f:Bp,r:wp,D:Yp,C:qp,L:Gp,m:Vp,X:Qp,S:Xp,M:Kp};function Bp(){var e=fa.f(),t=Ii();return e||t}function wp(e){var t=ol(e);t!==null&&t.tag===5&&t.type==="form"?zf(t):fa.r(e)}var Gl=typeof document>"u"?null:document;function ch(e,t,a){var l=Gl;if(l&&typeof t=="string"&&t){var n=At(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),oh.has(n)||(oh.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),it(t,"link",e),Ie(t),l.head.appendChild(t)))}}function Yp(e){fa.D(e),ch("dns-prefetch",e,null)}function qp(e,t){fa.C(e,t),ch("preconnect",e,t)}function Gp(e,t,a){fa.L(e,t,a);var l=Gl;if(l&&e&&t){var n='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+At(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+At(a.imageSizes)+'"]')):n+='[href="'+At(e)+'"]';var u=n;switch(t){case"style":u=Vl(e);break;case"script":u=Xl(e)}Ut.has(u)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ut.set(u,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Hn(u))||t==="script"&&l.querySelector(Bn(u))||(t=l.createElement("link"),it(t,"link",e),Ie(t),l.head.appendChild(t)))}}function Vp(e,t){fa.m(e,t);var a=Gl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+At(l)+'"][href="'+At(e)+'"]',u=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Xl(e)}if(!Ut.has(u)&&(e=v({rel:"modulepreload",href:e},t),Ut.set(u,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Bn(u)))return}l=a.createElement("link"),it(l,"link",e),Ie(l),a.head.appendChild(l)}}}function Xp(e,t,a){fa.S(e,t,a);var l=Gl;if(l&&e){var n=cl(l).hoistableStyles,u=Vl(e);t=t||"default";var d=n.get(u);if(!d){var p={loading:0,preload:null};if(d=l.querySelector(Hn(u)))p.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ut.get(u))&&Qs(e,a);var S=d=l.createElement("link");Ie(S),it(S,"link",e),S._p=new Promise(function(O,_){S.onload=O,S.onerror=_}),S.addEventListener("load",function(){p.loading|=1}),S.addEventListener("error",function(){p.loading|=2}),p.loading|=4,su(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:p},n.set(u,d)}}}function Qp(e,t){fa.X(e,t);var a=Gl;if(a&&e){var l=cl(a).hoistableScripts,n=Xl(e),u=l.get(n);u||(u=a.querySelector(Bn(n)),u||(e=v({src:e,async:!0},t),(t=Ut.get(n))&&Ks(e,t),u=a.createElement("script"),Ie(u),it(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function Kp(e,t){fa.M(e,t);var a=Gl;if(a&&e){var l=cl(a).hoistableScripts,n=Xl(e),u=l.get(n);u||(u=a.querySelector(Bn(n)),u||(e=v({src:e,async:!0,type:"module"},t),(t=Ut.get(n))&&Ks(e,t),u=a.createElement("script"),Ie(u),it(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function fh(e,t,a,l){var n=(n=he.current)?ru(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Vl(a.href),a=cl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Vl(a.href);var u=cl(n).hoistableStyles,d=u.get(e);if(d||(n=n.ownerDocument||n,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=n.querySelector(Hn(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Ut.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ut.set(e,a),u||Zp(n,e,a,d.state))),t&&l===null)throw Error(s(528,""));return d}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xl(a),a=cl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Vl(e){return'href="'+At(e)+'"'}function Hn(e){return'link[rel="stylesheet"]['+e+"]"}function dh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Zp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",a),Ie(t),e.head.appendChild(t))}function Xl(e){return'[src="'+At(e)+'"]'}function Bn(e){return"script[async]"+e}function hh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+At(a.href)+'"]');if(l)return t.instance=l,Ie(l),l;var n=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),it(l,"style",n),su(l,a.precedence,e),t.instance=l;case"stylesheet":n=Vl(a.href);var u=e.querySelector(Hn(n));if(u)return t.state.loading|=4,t.instance=u,Ie(u),u;l=dh(a),(n=Ut.get(n))&&Qs(l,n),u=(e.ownerDocument||e).createElement("link"),Ie(u);var d=u;return d._p=new Promise(function(p,S){d.onload=p,d.onerror=S}),it(u,"link",l),t.state.loading|=4,su(u,a.precedence,e),t.instance=u;case"script":return u=Xl(a.src),(n=e.querySelector(Bn(u)))?(t.instance=n,Ie(n),n):(l=a,(n=Ut.get(u))&&(l=v({},a),Ks(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ie(n),it(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,su(l,a.precedence,e));return t.instance}function su(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,u=n,d=0;d<l.length;d++){var p=l[d];if(p.dataset.precedence===t)u=p;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Qs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ks(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ou=null;function mh(e,t,a){if(ou===null){var l=new Map,n=ou=new Map;n.set(a,l)}else n=ou,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var u=a[n];if(!(u[Il]||u[tt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(t)||"";d=e+d;var p=l.get(d);p?p.push(u):l.set(d,[u])}}return l}function gh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Jp(e,t,a){if(a===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 ph(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Vl(l.href),u=t.querySelector(Hn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=cu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Ie(u);return}u=t.ownerDocument||t,l=dh(l),(n=Ut.get(n))&&Qs(l,n),u=u.createElement("link"),Ie(u);var d=u;d._p=new Promise(function(p,S){d.onload=p,d.onerror=S}),it(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=cu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Zs=0;function $p(e,t){return e.stylesheets&&e.count===0&&du(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&du(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Zs===0&&(Zs=62500*Dp());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&du(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Zs?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)du(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fu=null;function du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fu=new Map,t.forEach(Fp,e),fu=null,cu.call(e))}function Fp(e,t){if(!(t.state.loading&4)){var a=fu.get(e);if(a)var l=a.get(null);else{a=new Map,fu.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var d=n[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}n=t.instance,d=n.getAttribute("data-precedence"),u=a.get(d)||l,u===l&&a.set(null,n),a.set(d,n),this.count++,l=cu.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var wn={$$typeof:X,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Wp(e,t,a,l,n,u,d,p,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=Gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.hiddenUpdates=Gu(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function yh(e,t,a,l,n,u,d,p,S,O,_,w){return e=new Wp(e,t,a,d,S,O,_,w,p),t=1,u===!0&&(t|=24),u=St(3,null,null,t),e.current=u,u.stateNode=e,t=Cr(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Dr(u),e}function vh(e){return e?(e=Sl,e):Sl}function bh(e,t,a,l,n,u){n=vh(n),l.context===null?l.context=n:l.pendingContext=n,l=Ra(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Ta(e,l,t),a!==null&&(gt(a,e,t),pn(a,e,t))}function Sh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Js(e,t){Sh(e,t),(e=e.alternate)&&Sh(e,t)}function xh(e){if(e.tag===13||e.tag===31){var t=Ja(e,67108864);t!==null&>(t,e,67108864),Js(e,67108864)}}function Eh(e){if(e.tag===13||e.tag===31){var t=Ct();t=Vu(t);var a=Ja(e,t);a!==null&>(a,e,t),Js(e,t)}}var hu=!0;function Ip(e,t,a,l){var n=j.T;j.T=null;var u=G.p;try{G.p=2,ks(e,t,a,l)}finally{G.p=u,j.T=n}}function Pp(e,t,a,l){var n=j.T;j.T=null;var u=G.p;try{G.p=8,ks(e,t,a,l)}finally{G.p=u,j.T=n}}function ks(e,t,a,l){if(hu){var n=$s(l);if(n===null)_s(e,t,l,mu,a),Th(e,l);else if(ty(n,e,t,a,l))l.stopPropagation();else if(Th(e,l),t&4&&-1<ey.indexOf(e)){for(;n!==null;){var u=ol(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=Va(u.pendingLanes);if(d!==0){var p=u;for(p.pendingLanes|=2,p.entangledLanes|=2;d;){var S=1<<31-vt(d);p.entanglements[1]|=S,d&=~S}Qt(u),(Ce&6)===0&&(Fi=pt()+500,Ln(0))}}break;case 31:case 13:p=Ja(u,2),p!==null&>(p,u,2),Ii(),Js(u,2)}if(u=$s(l),u===null&&_s(e,t,l,mu,a),u===n)break;n=u}n!==null&&l.stopPropagation()}else _s(e,t,l,null,a)}}function $s(e){return e=Wu(e),Fs(e)}var mu=null;function Fs(e){if(mu=null,e=sl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mu=e,null}function Rh(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(Ym()){case jo:return 2;case Mo:return 8;case li:case qm:return 32;case Lo:return 268435456;default:return 32}default:return 32}}var Ws=!1,Ua=null,Ha=null,Ba=null,Yn=new Map,qn=new Map,wa=[],ey="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 Th(e,t){switch(e){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":Ha=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":Yn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qn.delete(t.pointerId)}}function Gn(e,t,a,l,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ol(t),t!==null&&xh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function ty(e,t,a,l,n){switch(t){case"focusin":return Ua=Gn(Ua,e,t,a,l,n),!0;case"dragenter":return Ha=Gn(Ha,e,t,a,l,n),!0;case"mouseover":return Ba=Gn(Ba,e,t,a,l,n),!0;case"pointerover":var u=n.pointerId;return Yn.set(u,Gn(Yn.get(u)||null,e,t,a,l,n)),!0;case"gotpointercapture":return u=n.pointerId,qn.set(u,Gn(qn.get(u)||null,e,t,a,l,n)),!0}return!1}function Ch(e){var t=sl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,wo(e.priority,function(){Eh(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,wo(e.priority,function(){Eh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=$s(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Fu=l,a.target.dispatchEvent(l),Fu=null}else return t=ol(a),t!==null&&xh(t),e.blockedOn=a,!1;t.shift()}return!0}function zh(e,t,a){gu(e)&&a.delete(t)}function ay(){Ws=!1,Ua!==null&&gu(Ua)&&(Ua=null),Ha!==null&&gu(Ha)&&(Ha=null),Ba!==null&&gu(Ba)&&(Ba=null),Yn.forEach(zh),qn.forEach(zh)}function pu(e,t){e.blockedOn===t&&(e.blockedOn=null,Ws||(Ws=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,ay)))}var yu=null;function Ah(e){yu!==e&&(yu=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){yu===e&&(yu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(Fs(l||a)===null)continue;break}var u=ol(a);u!==null&&(e.splice(t,3),t-=3,$r(u,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Ql(e){function t(S){return pu(S,e)}Ua!==null&&pu(Ua,e),Ha!==null&&pu(Ha,e),Ba!==null&&pu(Ba,e),Yn.forEach(t),qn.forEach(t);for(var a=0;a<wa.length;a++){var l=wa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<wa.length&&(a=wa[0],a.blockedOn===null);)Ch(a),a.blockedOn===null&&wa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],u=a[l+1],d=n[ot]||null;if(typeof u=="function")d||Ah(a);else if(d){var p=null;if(u&&u.hasAttribute("formAction")){if(n=u,d=u[ot]||null)p=d.formAction;else if(Fs(n)!==null)continue}else p=d.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Ah(a)}}}function Oh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(d){return n=d})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!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 l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Is(e){this._internalRoot=e}vu.prototype.render=Is.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Ct();bh(a,l,e,t,null,null)},vu.prototype.unmount=Is.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bh(e.current,2,null,e,null,null),Ii(),t[rl]=null}};function vu(e){this._internalRoot=e}vu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<wa.length&&t!==0&&t<wa[a].priority;a++);wa.splice(a,0,e),a===0&&Ch(e)}};var Dh=i.version;if(Dh!=="19.2.5")throw Error(s(527,Dh,"19.2.5"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var ly={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bu.isDisabled&&bu.supportsFiber)try{$l=bu.inject(ly),yt=bu}catch{}}return Xn.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,l="",n=Hf,u=Bf,d=wf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=yh(e,1,!1,null,null,a,l,null,n,u,d,Oh),e[rl]=t.current,Ns(e),new Is(t)},Xn.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var l=!1,n="",u=Hf,d=Bf,p=wf,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=yh(e,1,!0,t,a??null,l,n,S,u,d,p,Oh),t.context=vh(null),a=t.current,l=Ct(),l=Vu(l),n=Ra(l),n.callback=null,Ta(a,n,l),a=l,t.current.lanes=a,Wl(t,a),Qt(t),e[rl]=t.current,Ns(e),new vu(t)},Xn.version="19.2.5",Xn}var Yh;function hy(){if(Yh)return to.exports;Yh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),to.exports=dy(),to.exports}var my=hy();/**
|
|
50
|
+
* react-router v7.16.0
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var qh="popstate";function Gh(r){return typeof r=="object"&&r!=null&&"pathname"in r&&"search"in r&&"hash"in r&&"state"in r&&"key"in r}function gy(r={}){function i(s,c){var m;let f=(m=c.state)==null?void 0:m.masked,{pathname:h,search:g,hash:y}=f||s.location;return mo("",{pathname:h,search:g,hash:y},c.state&&c.state.usr||null,c.state&&c.state.key||"default",f?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function o(s,c){return typeof c=="string"?c:Fn(c)}return yy(i,o,null,r)}function Ye(r,i){if(r===!1||r===null||typeof r>"u")throw new Error(i)}function Zt(r,i){if(!r){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function py(){return Math.random().toString(36).substring(2,10)}function Vh(r,i){return{usr:r.state,key:r.key,idx:i,masked:r.mask?{pathname:r.pathname,search:r.search,hash:r.hash}:void 0}}function mo(r,i,o=null,s,c){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof i=="string"?Zl(i):i,state:o,key:i&&i.key||s||py(),mask:c}}function Fn({pathname:r="/",search:i="",hash:o=""}){return i&&i!=="?"&&(r+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(r+=o.charAt(0)==="#"?o:"#"+o),r}function Zl(r){let i={};if(r){let o=r.indexOf("#");o>=0&&(i.hash=r.substring(o),r=r.substring(0,o));let s=r.indexOf("?");s>=0&&(i.search=r.substring(s),r=r.substring(0,s)),r&&(i.pathname=r)}return i}function yy(r,i,o,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,h=c.history,g="POP",y=null,m=b();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function b(){return(h.state||{idx:null}).idx}function v(){g="POP";let q=b(),Y=q==null?null:q-m;m=q,y&&y({action:g,location:B.location,delta:Y})}function z(q,Y){g="PUSH";let V=Gh(q)?q:mo(B.location,q,Y);m=b()+1;let X=Vh(V,m),Q=B.createHref(V.mask||V);try{h.pushState(X,"",Q)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;c.location.assign(Q)}f&&y&&y({action:g,location:B.location,delta:1})}function N(q,Y){g="REPLACE";let V=Gh(q)?q:mo(B.location,q,Y);m=b();let X=Vh(V,m),Q=B.createHref(V.mask||V);h.replaceState(X,"",Q),f&&y&&y({action:g,location:B.location,delta:0})}function L(q){return vy(c,q)}let B={get action(){return g},get location(){return r(c,h)},listen(q){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(qh,v),y=q,()=>{c.removeEventListener(qh,v),y=null}},createHref(q){return i(c,q)},createURL:L,encodeLocation(q){let Y=L(q);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:z,replace:N,go(q){return h.go(q)}};return B}function vy(r,i,o=!1){let s="http://localhost";r&&(s=r.location.origin!=="null"?r.location.origin:r.location.href),Ye(s,"No window.location.(origin|href) available to create URL");let c=typeof i=="string"?i:Fn(i);return c=c.replace(/ $/,"%20"),!o&&c.startsWith("//")&&(c=s+c),new URL(c,s)}function cm(r,i,o="/"){return by(r,i,o,!1)}function by(r,i,o,s,c){let f=typeof i=="string"?Zl(i):i,h=ha(f.pathname||"/",o);if(h==null)return null;let g=Sy(r),y=null,m=Ly(h);for(let b=0;y==null&&b<g.length;++b)y=jy(g[b],m,s);return y}function Sy(r){let i=fm(r);return xy(i),i}function fm(r,i=[],o=[],s="",c=!1){let f=(h,g,y=c,m)=>{let b={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&y)return;Ye(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let v=qt([s,b.relativePath]),z=o.concat(b);h.children&&h.children.length>0&&(Ye(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),fm(h.children,i,z,v,y)),!(h.path==null&&!h.index)&&i.push({path:v,score:Oy(v,h.index),routesMeta:z})};return r.forEach((h,g)=>{var y;if(h.path===""||!((y=h.path)!=null&&y.includes("?")))f(h,g);else for(let m of dm(h.path))f(h,g,!0,m)}),i}function dm(r){let i=r.split("/");if(i.length===0)return[];let[o,...s]=i,c=o.endsWith("?"),f=o.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let h=dm(s.join("/")),g=[];return g.push(...h.map(y=>y===""?f:[f,y].join("/"))),c&&g.push(...h),g.map(y=>r.startsWith("/")&&y===""?"/":y)}function xy(r){r.sort((i,o)=>i.score!==o.score?o.score-i.score:Dy(i.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var Ey=/^:[\w-]+$/,Ry=3,Ty=2,Cy=1,zy=10,Ay=-2,Xh=r=>r==="*";function Oy(r,i){let o=r.split("/"),s=o.length;return o.some(Xh)&&(s+=Ay),i&&(s+=Ty),o.filter(c=>!Xh(c)).reduce((c,f)=>c+(Ey.test(f)?Ry:f===""?Cy:zy),s)}function Dy(r,i){return r.length===i.length&&r.slice(0,-1).every((s,c)=>s===i[c])?r[r.length-1]-i[i.length-1]:0}function jy(r,i,o=!1){let{routesMeta:s}=r,c={},f="/",h=[];for(let g=0;g<s.length;++g){let y=s[g],m=g===s.length-1,b=f==="/"?i:i.slice(f.length)||"/",v=zu({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},b),z=y.route;if(!v&&m&&o&&!s[s.length-1].route.index&&(v=zu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!v)return null;Object.assign(c,v.params),h.push({params:c,pathname:qt([f,v.pathname]),pathnameBase:Hy(qt([f,v.pathnameBase])),route:z}),v.pathnameBase!=="/"&&(f=qt([f,v.pathnameBase]))}return h}function zu(r,i){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[o,s]=My(r.path,r.caseSensitive,r.end),c=i.match(o);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:s.reduce((m,{paramName:b,isOptional:v},z)=>{if(b==="*"){let L=g[z]||"";h=f.slice(0,f.length-L.length).replace(/(.)\/+$/,"$1")}const N=g[z];return v&&!N?m[b]=void 0:m[b]=(N||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:h,pattern:r}}function My(r,i=!1,o=!0){Zt(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let s=[],c="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,y,m,b)=>{if(s.push({paramName:g,isOptional:y!=null}),y){let v=b.charAt(m+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(s.push({paramName:"*"}),c+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":r!==""&&r!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),s]}function Ly(r){try{return r.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Zt(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),r}}function ha(r,i){if(i==="/")return r;if(!r.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,s=r.charAt(o);return s&&s!=="/"?null:r.slice(o)||"/"}var Ny=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function _y(r,i="/"){let{pathname:o,search:s="",hash:c=""}=typeof r=="string"?Zl(r):r,f;return o?(o=mm(o),o.startsWith("/")?f=Qh(o.substring(1),"/"):f=Qh(o,i)):f=i,{pathname:f,search:By(s),hash:wy(c)}}function Qh(r,i){let o=Au(i).split("/");return r.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function io(r,i,o,s){return`Cannot include a '${r}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Uy(r){return r.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function hm(r){let i=Uy(r);return i.map((o,s)=>s===i.length-1?o.pathname:o.pathnameBase)}function So(r,i,o,s=!1){let c;typeof r=="string"?c=Zl(r):(c={...r},Ye(!c.pathname||!c.pathname.includes("?"),io("?","pathname","search",c)),Ye(!c.pathname||!c.pathname.includes("#"),io("#","pathname","hash",c)),Ye(!c.search||!c.search.includes("#"),io("#","search","hash",c)));let f=r===""||c.pathname==="",h=f?"/":c.pathname,g;if(h==null)g=o;else{let v=i.length-1;if(!s&&h.startsWith("..")){let z=h.split("/");for(;z[0]==="..";)z.shift(),v-=1;c.pathname=z.join("/")}g=v>=0?i[v]:"/"}let y=_y(c,g),m=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(m||b)&&(y.pathname+="/"),y}var mm=r=>r.replace(/\/\/+/g,"/"),qt=r=>mm(r.join("/")),Au=r=>r.replace(/\/+$/,""),Hy=r=>Au(r).replace(/^\/*/,"/"),By=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,wy=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,Yy=class{constructor(r,i,o,s=!1){this.status=r,this.statusText=i||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function qy(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function Gy(r){let i=r.map(o=>o.route.path).filter(Boolean);return qt(i)||"/"}var gm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pm(r,i){let o=r;if(typeof o!="string"||!Ny.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,c=!1;if(gm)try{let f=new URL(window.location.href),h=o.startsWith("//")?new URL(f.protocol+o):new URL(o),g=ha(h.pathname,i);h.origin===f.origin&&g!=null?o=g+h.search+h.hash:c=!0}catch{Zt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ym=["POST","PUT","PATCH","DELETE"];new Set(ym);var Vy=["GET",...ym];new Set(Vy);var Jl=T.createContext(null);Jl.displayName="DataRouter";var Lu=T.createContext(null);Lu.displayName="DataRouterState";var vm=T.createContext(!1);function Xy(){return T.useContext(vm)}var bm=T.createContext({isTransitioning:!1});bm.displayName="ViewTransition";var Qy=T.createContext(new Map);Qy.displayName="Fetchers";var Ky=T.createContext(null);Ky.displayName="Await";var Ht=T.createContext(null);Ht.displayName="Navigation";var In=T.createContext(null);In.displayName="Location";var Jt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var xo=T.createContext(null);xo.displayName="RouteError";var Sm="REACT_ROUTER_ERROR",Zy="REDIRECT",Jy="ROUTE_ERROR_RESPONSE";function ky(r){if(r.startsWith(`${Sm}:${Zy}:{`))try{let i=JSON.parse(r.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 $y(r){if(r.startsWith(`${Sm}:${Jy}:{`))try{let i=JSON.parse(r.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Yy(i.status,i.statusText,i.data)}catch{}}function Fy(r,{relative:i}={}){Ye(Pn(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:s}=T.useContext(Ht),{hash:c,pathname:f,search:h}=ti(r,{relative:i}),g=f;return o!=="/"&&(g=f==="/"?o:qt([o,f])),s.createHref({pathname:g,search:h,hash:c})}function Pn(){return T.useContext(In)!=null}function ma(){return Ye(Pn(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(In).location}var xm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Em(r){T.useContext(Ht).static||T.useLayoutEffect(r)}function ei(){let{isDataRoute:r}=T.useContext(Jt);return r?c0():Wy()}function Wy(){Ye(Pn(),"useNavigate() may be used only in the context of a <Router> component.");let r=T.useContext(Jl),{basename:i,navigator:o}=T.useContext(Ht),{matches:s}=T.useContext(Jt),{pathname:c}=ma(),f=JSON.stringify(hm(s)),h=T.useRef(!1);return Em(()=>{h.current=!0}),T.useCallback((y,m={})=>{if(Zt(h.current,xm),!h.current)return;if(typeof y=="number"){o.go(y);return}let b=So(y,JSON.parse(f),c,m.relative==="path");r==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:qt([i,b.pathname])),(m.replace?o.replace:o.push)(b,m.state,m)},[i,o,f,c,r])}T.createContext(null);function Iy(){let{matches:r}=T.useContext(Jt),i=r[r.length-1];return(i==null?void 0:i.params)??{}}function ti(r,{relative:i}={}){let{matches:o}=T.useContext(Jt),{pathname:s}=ma(),c=JSON.stringify(hm(o));return T.useMemo(()=>So(r,JSON.parse(c),s,i==="path"),[r,c,s,i])}function Py(r,i){return Rm(r,i)}function Rm(r,i,o){var q;Ye(Pn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=T.useContext(Ht),{matches:c}=T.useContext(Jt),f=c[c.length-1],h=f?f.params:{},g=f?f.pathname:"/",y=f?f.pathnameBase:"/",m=f&&f.route;{let Y=m&&m.path||"";Cm(g,!m||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (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.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let b=ma(),v;if(i){let Y=typeof i=="string"?Zl(i):i;Ye(y==="/"||((q=Y.pathname)==null?void 0:q.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 z=v.pathname||"/",N=z;if(y!=="/"){let Y=y.replace(/^\//,"").split("/");N="/"+z.replace(/^\//,"").split("/").slice(Y.length).join("/")}let L=o&&o.state.matches.length?o.state.matches.map(Y=>Object.assign(Y,{route:o.manifest[Y.route.id]||Y.route})):cm(r,{pathname:N});Zt(m||L!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Zt(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.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 B=n0(L&&L.map(Y=>Object.assign({},Y,{params:Object.assign({},h,Y.params),pathname:qt([y,s.encodeLocation?s.encodeLocation(Y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?y:qt([y,s.encodeLocation?s.encodeLocation(Y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),c,o);return i&&B?T.createElement(In.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},B):B}function e0(){let r=o0(),i=qy(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),o=r instanceof Error?r.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",r),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:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),o?T.createElement("pre",{style:c},o):null,h)}var t0=T.createElement(e0,null),Tm=class extends T.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,i){return i.location!==r.location||i.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:i.error,location:i.location,revalidation:r.revalidation||i.revalidation}}componentDidCatch(r,i){this.props.onError?this.props.onError(r,i):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const o=$y(r.digest);o&&(r=o)}let i=r!==void 0?T.createElement(Jt.Provider,{value:this.props.routeContext},T.createElement(xo.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?T.createElement(a0,{error:r},i):i}};Tm.contextType=vm;var uo=new WeakMap;function a0({children:r,error:i}){let{basename:o}=T.useContext(Ht);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=ky(i.digest);if(s){let c=uo.get(i);if(c)throw c;let f=pm(s.location,o);if(gm&&!uo.get(i))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw uo.set(i,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return r}function l0({routeContext:r,match:i,children:o}){let s=T.useContext(Jl);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(Jt.Provider,{value:r},o)}function n0(r,i=[],o){let s=o==null?void 0:o.state;if(r==null){if(!s)return null;if(s.errors)r=s.matches;else if(i.length===0&&!s.initialized&&s.matches.length>0)r=s.matches;else return null}let c=r,f=s==null?void 0:s.errors;if(f!=null){let b=c.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);Ye(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let h=!1,g=-1;if(o&&s){h=s.renderFallback;for(let b=0;b<c.length;b++){let v=c[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=b),v.route.id){let{loaderData:z,errors:N}=s,L=v.route.loader&&!z.hasOwnProperty(v.route.id)&&(!N||N[v.route.id]===void 0);if(v.route.lazy||L){o.isStatic&&(h=!0),g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}}let y=o==null?void 0:o.onError,m=s&&y?(b,v)=>{var z,N;y(b,{location:s.location,params:((N=(z=s.matches)==null?void 0:z[0])==null?void 0:N.params)??{},pattern:Gy(s.matches),errorInfo:v})}:void 0;return c.reduceRight((b,v,z)=>{let N,L=!1,B=null,q=null;s&&(N=f&&v.route.id?f[v.route.id]:void 0,B=v.route.errorElement||t0,h&&(g<0&&z===0?(Cm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,q=null):g===z&&(L=!0,q=v.route.hydrateFallbackElement||null)));let Y=i.concat(c.slice(0,z+1)),V=()=>{let X;return N?X=B:L?X=q:v.route.Component?X=T.createElement(v.route.Component,null):v.route.element?X=v.route.element:X=b,T.createElement(l0,{match:v,routeContext:{outlet:b,matches:Y,isDataRoute:s!=null},children:X})};return s&&(v.route.ErrorBoundary||v.route.errorElement||z===0)?T.createElement(Tm,{location:s.location,revalidation:s.revalidation,component:B,error:N,children:V(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:m}):V()},null)}function Eo(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function i0(r){let i=T.useContext(Jl);return Ye(i,Eo(r)),i}function u0(r){let i=T.useContext(Lu);return Ye(i,Eo(r)),i}function r0(r){let i=T.useContext(Jt);return Ye(i,Eo(r)),i}function Ro(r){let i=r0(r),o=i.matches[i.matches.length-1];return Ye(o.route.id,`${r} can only be used on routes that contain a unique "id"`),o.route.id}function s0(){return Ro("useRouteId")}function o0(){var s;let r=T.useContext(xo),i=u0("useRouteError"),o=Ro("useRouteError");return r!==void 0?r:(s=i.errors)==null?void 0:s[o]}function c0(){let{router:r}=i0("useNavigate"),i=Ro("useNavigate"),o=T.useRef(!1);return Em(()=>{o.current=!0}),T.useCallback(async(c,f={})=>{Zt(o.current,xm),o.current&&(typeof c=="number"?await r.navigate(c):await r.navigate(c,{fromRouteId:i,...f}))},[r,i])}var Kh={};function Cm(r,i,o){!i&&!Kh[r]&&(Kh[r]=!0,Zt(!1,o))}T.memo(f0);function f0({routes:r,manifest:i,future:o,state:s,isStatic:c,onError:f}){return Rm(r,void 0,{manifest:i,state:s,isStatic:c,onError:f})}function Eu(r){Ye(!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 d0({basename:r="/",children:i=null,location:o,navigationType:s="POP",navigator:c,static:f=!1,useTransitions:h}){Ye(!Pn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=r.replace(/^\/*/,"/"),y=T.useMemo(()=>({basename:g,navigator:c,static:f,useTransitions:h,future:{}}),[g,c,f,h]);typeof o=="string"&&(o=Zl(o));let{pathname:m="/",search:b="",hash:v="",state:z=null,key:N="default",mask:L}=o,B=T.useMemo(()=>{let q=ha(m,g);return q==null?null:{location:{pathname:q,search:b,hash:v,state:z,key:N,mask:L},navigationType:s}},[g,m,b,v,z,N,s,L]);return Zt(B!=null,`<Router basename="${g}"> is not able to match the URL "${m}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:T.createElement(Ht.Provider,{value:y},T.createElement(In.Provider,{children:i,value:B}))}function h0({children:r,location:i}){return Py(go(r),i)}function go(r,i=[]){let o=[];return T.Children.forEach(r,(s,c)=>{if(!T.isValidElement(s))return;let f=[...i,c];if(s.type===T.Fragment){o.push.apply(o,go(s.props.children,f));return}Ye(s.type===Eu,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ye(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=go(s.props.children,f)),o.push(h)}),o}var Ru="get",Tu="application/x-www-form-urlencoded";function Nu(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function m0(r){return Nu(r)&&r.tagName.toLowerCase()==="button"}function g0(r){return Nu(r)&&r.tagName.toLowerCase()==="form"}function p0(r){return Nu(r)&&r.tagName.toLowerCase()==="input"}function y0(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function v0(r,i){return r.button===0&&(!i||i==="_self")&&!y0(r)}var Su=null;function b0(){if(Su===null)try{new FormData(document.createElement("form"),0),Su=!1}catch{Su=!0}return Su}var S0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ro(r){return r!=null&&!S0.has(r)?(Zt(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tu}"`),null):r}function x0(r,i){let o,s,c,f,h;if(g0(r)){let g=r.getAttribute("action");s=g?ha(g,i):null,o=r.getAttribute("method")||Ru,c=ro(r.getAttribute("enctype"))||Tu,f=new FormData(r)}else if(m0(r)||p0(r)&&(r.type==="submit"||r.type==="image")){let g=r.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=r.getAttribute("formaction")||g.getAttribute("action");if(s=y?ha(y,i):null,o=r.getAttribute("formmethod")||g.getAttribute("method")||Ru,c=ro(r.getAttribute("formenctype"))||ro(g.getAttribute("enctype"))||Tu,f=new FormData(g,r),!b0()){let{name:m,type:b,value:v}=r;if(b==="image"){let z=m?`${m}.`:"";f.append(`${z}x`,"0"),f.append(`${z}y`,"0")}else m&&f.append(m,v)}}else{if(Nu(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ru,s=null,c=Tu,h=r}return f&&c==="text/plain"&&(h=f,f=void 0),{action:s,method:o.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function To(r,i){if(r===!1||r===null||typeof r>"u")throw new Error(i)}function zm(r,i,o,s){let c=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return o?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:i&&ha(c.pathname,i)==="/"?c.pathname=`${Au(i)}/_root.${s}`:c.pathname=`${Au(c.pathname)}.${s}`,c}async function E0(r,i){if(r.id in i)return i[r.id];try{let o=await import(r.module);return i[r.id]=o,o}catch(o){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function R0(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function T0(r,i,o){let s=await Promise.all(r.map(async c=>{let f=i.routes[c.route.id];if(f){let h=await E0(f,o);return h.links?h.links():[]}return[]}));return O0(s.flat(1).filter(R0).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Zh(r,i,o,s,c,f){let h=(y,m)=>o[m]?y.route.id!==o[m].route.id:!0,g=(y,m)=>{var b;return o[m].pathname!==y.pathname||((b=o[m].route.path)==null?void 0:b.endsWith("*"))&&o[m].params["*"]!==y.params["*"]};return f==="assets"?i.filter((y,m)=>h(y,m)||g(y,m)):f==="data"?i.filter((y,m)=>{var v;let b=s.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(h(y,m)||g(y,m))return!0;if(y.route.shouldRevalidate){let z=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((v=o[0])==null?void 0:v.params)||{},nextUrl:new URL(r,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function C0(r,i,{includeHydrateFallback:o}={}){return z0(r.map(s=>{let c=i.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),o&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function z0(r){return[...new Set(r)]}function A0(r){let i={},o=Object.keys(r).sort();for(let s of o)i[s]=r[s];return i}function O0(r,i){let o=new Set;return new Set(i),r.reduce((s,c)=>{let f=JSON.stringify(A0(c));return o.has(f)||(o.add(f),s.push({key:f,link:c})),s},[])}function Co(){let r=T.useContext(Jl);return To(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function D0(){let r=T.useContext(Lu);return To(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var zo=T.createContext(void 0);zo.displayName="FrameworkContext";function Ao(){let r=T.useContext(zo);return To(r,"You must render this element inside a <HydratedRouter> element"),r}function j0(r,i){let o=T.useContext(zo),[s,c]=T.useState(!1),[f,h]=T.useState(!1),{onFocus:g,onBlur:y,onMouseEnter:m,onMouseLeave:b,onTouchStart:v}=i,z=T.useRef(null);T.useEffect(()=>{if(r==="render"&&h(!0),r==="viewport"){let B=Y=>{Y.forEach(V=>{h(V.isIntersecting)})},q=new IntersectionObserver(B,{threshold:.5});return z.current&&q.observe(z.current),()=>{q.disconnect()}}},[r]),T.useEffect(()=>{if(s){let B=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(B)}}},[s]);let N=()=>{c(!0)},L=()=>{c(!1),h(!1)};return o?r!=="intent"?[f,z,{}]:[f,z,{onFocus:Qn(g,N),onBlur:Qn(y,L),onMouseEnter:Qn(m,N),onMouseLeave:Qn(b,L),onTouchStart:Qn(v,N)}]:[!1,z,{}]}function Qn(r,i){return o=>{r&&r(o),o.defaultPrevented||i(o)}}function M0({page:r,...i}){let o=Xy(),{router:s}=Co(),c=T.useMemo(()=>cm(s.routes,r,s.basename),[s.routes,r,s.basename]);return c?o?T.createElement(N0,{page:r,matches:c,...i}):T.createElement(_0,{page:r,matches:c,...i}):null}function L0(r){let{manifest:i,routeModules:o}=Ao(),[s,c]=T.useState([]);return T.useEffect(()=>{let f=!1;return T0(r,i,o).then(h=>{f||c(h)}),()=>{f=!0}},[r,i,o]),s}function N0({page:r,matches:i,...o}){let s=ma(),{future:c}=Ao(),{basename:f}=Co(),h=T.useMemo(()=>{if(r===s.pathname+s.search+s.hash)return[];let g=zm(r,f,c.v8_trailingSlashAwareDataRequests,"rsc"),y=!1,m=[];for(let b of i)typeof b.route.shouldRevalidate=="function"?y=!0:m.push(b.route.id);return y&&m.length>0&&g.searchParams.set("_routes",m.join(",")),[g.pathname+g.search]},[f,c.v8_trailingSlashAwareDataRequests,r,s,i]);return T.createElement(T.Fragment,null,h.map(g=>T.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...o})))}function _0({page:r,matches:i,...o}){let s=ma(),{future:c,manifest:f,routeModules:h}=Ao(),{basename:g}=Co(),{loaderData:y,matches:m}=D0(),b=T.useMemo(()=>Zh(r,i,m,f,s,"data"),[r,i,m,f,s]),v=T.useMemo(()=>Zh(r,i,m,f,s,"assets"),[r,i,m,f,s]),z=T.useMemo(()=>{if(r===s.pathname+s.search+s.hash)return[];let B=new Set,q=!1;if(i.forEach(V=>{var Q;let X=f.routes[V.route.id];!X||!X.hasLoader||(!b.some(I=>I.route.id===V.route.id)&&V.route.id in y&&((Q=h[V.route.id])!=null&&Q.shouldRevalidate)||X.hasClientLoader?q=!0:B.add(V.route.id))}),B.size===0)return[];let Y=zm(r,g,c.v8_trailingSlashAwareDataRequests,"data");return q&&B.size>0&&Y.searchParams.set("_routes",i.filter(V=>B.has(V.route.id)).map(V=>V.route.id).join(",")),[Y.pathname+Y.search]},[g,c.v8_trailingSlashAwareDataRequests,y,s,f,b,i,r,h]),N=T.useMemo(()=>C0(v,f),[v,f]),L=L0(v);return T.createElement(T.Fragment,null,z.map(B=>T.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...o})),N.map(B=>T.createElement("link",{key:B,rel:"modulepreload",href:B,...o})),L.map(({key:B,link:q})=>T.createElement("link",{key:B,nonce:o.nonce,...q,crossOrigin:q.crossOrigin??o.crossOrigin})))}function U0(...r){return i=>{r.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}var H0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{H0&&(window.__reactRouterVersion="7.16.0")}catch{}function B0({basename:r,children:i,useTransitions:o,window:s}){let c=T.useRef();c.current==null&&(c.current=gy({window:s,v5Compat:!0}));let f=c.current,[h,g]=T.useState({action:f.action,location:f.location}),y=T.useCallback(m=>{o===!1?g(m):T.startTransition(()=>g(m))},[o]);return T.useLayoutEffect(()=>f.listen(y),[f,y]),T.createElement(d0,{basename:r,children:i,location:h.location,navigationType:h.action,navigator:f,useTransitions:o})}var Am=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Om=T.forwardRef(function({onClick:i,discover:o="render",prefetch:s="none",relative:c,reloadDocument:f,replace:h,mask:g,state:y,target:m,to:b,preventScrollReset:v,viewTransition:z,defaultShouldRevalidate:N,...L},B){let{basename:q,navigator:Y,useTransitions:V}=T.useContext(Ht),X=typeof b=="string"&&Am.test(b),Q=pm(b,q);b=Q.to;let I=Fy(b,{relative:c}),K=ma(),J=null;if(g){let ue=So(g,[],K.mask?K.mask.pathname:"/",!0);q!=="/"&&(ue.pathname=ue.pathname==="/"?q:qt([q,ue.pathname])),J=Y.createHref(ue)}let[de,fe,ee]=j0(s,L),Te=G0(b,{replace:h,mask:g,state:y,target:m,preventScrollReset:v,relative:c,viewTransition:z,defaultShouldRevalidate:N,useTransitions:V});function ie(ue){i&&i(ue),ue.defaultPrevented||Te(ue)}let ae=!(Q.isExternal||f),le=T.createElement("a",{...L,...ee,href:(ae?J:void 0)||Q.absoluteURL||I,onClick:ae?ie:i,ref:U0(B,fe),target:m,"data-discover":!X&&o==="render"?"true":void 0});return de&&!X?T.createElement(T.Fragment,null,le,T.createElement(M0,{page:I})):le});Om.displayName="Link";var w0=T.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:s="",end:c=!1,style:f,to:h,viewTransition:g,children:y,...m},b){let v=ti(h,{relative:m.relative}),z=ma(),N=T.useContext(Lu),{navigator:L,basename:B}=T.useContext(Ht),q=N!=null&&Z0(v)&&g===!0,Y=L.encodeLocation?L.encodeLocation(v).pathname:v.pathname,V=z.pathname,X=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;o||(V=V.toLowerCase(),X=X?X.toLowerCase():null,Y=Y.toLowerCase()),X&&B&&(X=ha(X,B)||X);const Q=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let I=V===Y||!c&&V.startsWith(Y)&&V.charAt(Q)==="/",K=X!=null&&(X===Y||!c&&X.startsWith(Y)&&X.charAt(Y.length)==="/"),J={isActive:I,isPending:K,isTransitioning:q},de=I?i:void 0,fe;typeof s=="function"?fe=s(J):fe=[s,I?"active":null,K?"pending":null,q?"transitioning":null].filter(Boolean).join(" ");let ee=typeof f=="function"?f(J):f;return T.createElement(Om,{...m,"aria-current":de,className:fe,ref:b,style:ee,to:h,viewTransition:g},typeof y=="function"?y(J):y)});w0.displayName="NavLink";var Y0=T.forwardRef(({discover:r="render",fetcherKey:i,navigate:o,reloadDocument:s,replace:c,state:f,method:h=Ru,action:g,onSubmit:y,relative:m,preventScrollReset:b,viewTransition:v,defaultShouldRevalidate:z,...N},L)=>{let{useTransitions:B}=T.useContext(Ht),q=Q0(),Y=K0(g,{relative:m}),V=h.toLowerCase()==="get"?"get":"post",X=typeof g=="string"&&Am.test(g),Q=I=>{if(y&&y(I),I.defaultPrevented)return;I.preventDefault();let K=I.nativeEvent.submitter,J=(K==null?void 0:K.getAttribute("formmethod"))||h,de=()=>q(K||I.currentTarget,{fetcherKey:i,method:J,navigate:o,replace:c,state:f,relative:m,preventScrollReset:b,viewTransition:v,defaultShouldRevalidate:z});B&&o!==!1?T.startTransition(()=>de()):de()};return T.createElement("form",{ref:L,method:V,action:Y,onSubmit:s?y:Q,...N,"data-discover":!X&&r==="render"?"true":void 0})});Y0.displayName="Form";function q0(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dm(r){let i=T.useContext(Jl);return Ye(i,q0(r)),i}function G0(r,{target:i,replace:o,mask:s,state:c,preventScrollReset:f,relative:h,viewTransition:g,defaultShouldRevalidate:y,useTransitions:m}={}){let b=ei(),v=ma(),z=ti(r,{relative:h});return T.useCallback(N=>{if(v0(N,i)){N.preventDefault();let L=o!==void 0?o:Fn(v)===Fn(z),B=()=>b(r,{replace:L,mask:s,state:c,preventScrollReset:f,relative:h,viewTransition:g,defaultShouldRevalidate:y});m?T.startTransition(()=>B()):B()}},[v,b,z,o,s,c,i,r,f,h,g,y,m])}var V0=0,X0=()=>`__${String(++V0)}__`;function Q0(){let{router:r}=Dm("useSubmit"),{basename:i}=T.useContext(Ht),o=s0(),s=r.fetch,c=r.navigate;return T.useCallback(async(f,h={})=>{let{action:g,method:y,encType:m,formData:b,body:v}=x0(f,i);if(h.navigate===!1){let z=h.fetcherKey||X0();await s(z,o,h.action||g,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||m,flushSync:h.flushSync})}else await c(h.action||g,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:o,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,c,i,o])}function K0(r,{relative:i}={}){let{basename:o}=T.useContext(Ht),s=T.useContext(Jt);Ye(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...ti(r||".",{relative:i})},h=ma();if(r==null){f.search=h.search;let g=new URLSearchParams(f.search),y=g.getAll("index");if(y.some(b=>b==="")){g.delete("index"),y.filter(v=>v).forEach(v=>g.append("index",v));let b=g.toString();f.search=b?`?${b}`:""}}return(!r||r===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:qt([o,f.pathname])),Fn(f)}function Z0(r,{relative:i}={}){let o=T.useContext(bm);Ye(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Dm("useViewTransitionState"),c=ti(r,{relative:i});if(!o.isTransitioning)return!1;let f=ha(o.currentLocation.pathname,s)||o.currentLocation.pathname,h=ha(o.nextLocation.pathname,s)||o.nextLocation.pathname;return zu(c.pathname,h)!=null||zu(c.pathname,f)!=null}const ne=r=>typeof r=="string",Kn=()=>{let r,i;const o=new Promise((s,c)=>{r=s,i=c});return o.resolve=r,o.reject=i,o},Jh=r=>r==null?"":String(r),J0=(r,i,o)=>{r.forEach(s=>{i[s]&&(o[s]=i[s])})},k0=/###/g,kh=r=>r&&r.includes("###")?r.replace(k0,"."):r,$h=r=>!r||ne(r),kn=(r,i,o)=>{const s=ne(i)?i.split("."):i;let c=0;for(;c<s.length-1;){if($h(r))return{};const f=kh(s[c]);!r[f]&&o&&(r[f]=new o),Object.prototype.hasOwnProperty.call(r,f)?r=r[f]:r={},++c}return $h(r)?{}:{obj:r,k:kh(s[c])}},Fh=(r,i,o)=>{const{obj:s,k:c}=kn(r,i,Object);if(s!==void 0||i.length===1){s[c]=o;return}let f=i[i.length-1],h=i.slice(0,i.length-1),g=kn(r,h,Object);for(;g.obj===void 0&&h.length;)f=`${h[h.length-1]}.${f}`,h=h.slice(0,h.length-1),g=kn(r,h,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=o},$0=(r,i,o,s)=>{const{obj:c,k:f}=kn(r,i,Object);c[f]=c[f]||[],c[f].push(o)},Ou=(r,i)=>{const{obj:o,k:s}=kn(r,i);if(o&&Object.prototype.hasOwnProperty.call(o,s))return o[s]},F0=(r,i,o)=>{const s=Ou(r,o);return s!==void 0?s:Ou(i,o)},jm=(r,i,o)=>{for(const s in i)s!=="__proto__"&&s!=="constructor"&&(s in r?ne(r[s])||r[s]instanceof String||ne(i[s])||i[s]instanceof String?o&&(r[s]=i[s]):jm(r[s],i[s],o):r[s]=i[s]);return r},da=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),W0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},I0=r=>ne(r)?r.replace(/[&<>"'\/]/g,i=>W0[i]):r;class P0{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const o=this.regExpMap.get(i);if(o!==void 0)return o;const s=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,s),this.regExpQueue.push(i),s}}const ev=[" ",",","?","!",";"],tv=new P0(20),av=(r,i,o)=>{i=i||"",o=o||"";const s=ev.filter(h=>!i.includes(h)&&!o.includes(h));if(s.length===0)return!0;const c=tv.getRegExp(`(${s.map(h=>h==="?"?"\\?":h).join("|")})`);let f=!c.test(r);if(!f){const h=r.indexOf(o);h>0&&!c.test(r.substring(0,h))&&(f=!0)}return f},po=(r,i,o=".")=>{if(!r)return;if(r[i])return Object.prototype.hasOwnProperty.call(r,i)?r[i]:void 0;const s=i.split(o);let c=r;for(let f=0;f<s.length;){if(!c||typeof c!="object")return;let h,g="";for(let y=f;y<s.length;++y)if(y!==f&&(g+=o),g+=s[y],h=c[g],h!==void 0){if(["string","number","boolean"].includes(typeof h)&&y<s.length-1)continue;f+=y-f+1;break}c=h}return c},Wn=r=>r==null?void 0:r.replace(/_/g,"-"),lv={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,i){var o,s;(s=(o=console==null?void 0:console[r])==null?void 0:o.apply)==null||s.call(o,console,i)}};class Du{constructor(i,o={}){this.init(i,o)}init(i,o={}){this.prefix=o.prefix||"i18next:",this.logger=i||lv,this.options=o,this.debug=o.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,o,s,c){return c&&!this.debug?null:(i=i.map(f=>ne(f)?f.replace(/[\r\n\x00-\x1F\x7F]/g," "):f),ne(i[0])&&(i[0]=`${s}${this.prefix} ${i[0]}`),this.logger[o](i))}create(i){return new Du(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new Du(this.logger,i)}}var Kt=new Du;class _u{constructor(){this.observers={}}on(i,o){return i.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const c=this.observers[s].get(o)||0;this.observers[s].set(o,c+1)}),this}off(i,o){if(this.observers[i]){if(!o){delete this.observers[i];return}this.observers[i].delete(o)}}once(i,o){const s=(...c)=>{o(...c),this.off(i,s)};return this.on(i,s),this}emit(i,...o){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c(i,...o)})}}class Wh extends _u{constructor(i,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=o,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 o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}getResource(i,o,s,c={}){var m,b;const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,h=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;i.includes(".")?g=i.split("."):(g=[i,o],s&&(Array.isArray(s)?g.push(...s):ne(s)&&f?g.push(...s.split(f)):g.push(s)));const y=Ou(this.data,g);return!y&&!o&&!s&&i.includes(".")&&(i=g[0],o=g[1],s=g.slice(2).join(".")),y||!h||!ne(s)?y:po((b=(m=this.data)==null?void 0:m[i])==null?void 0:b[o],s,f)}addResource(i,o,s,c,f={silent:!1}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[i,o];s&&(g=g.concat(h?s.split(h):s)),i.includes(".")&&(g=i.split("."),c=o,o=g[1]),this.addNamespaces(o),Fh(this.data,g,c),f.silent||this.emit("added",i,o,s,c)}addResources(i,o,s,c={silent:!1}){for(const f in s)(ne(s[f])||Array.isArray(s[f]))&&this.addResource(i,o,f,s[f],{silent:!0});c.silent||this.emit("added",i,o,s)}addResourceBundle(i,o,s,c,f,h={silent:!1,skipCopy:!1}){let g=[i,o];i.includes(".")&&(g=i.split("."),c=s,s=o,o=g[1]),this.addNamespaces(o);let y=Ou(this.data,g)||{};h.skipCopy||(s=JSON.parse(JSON.stringify(s))),c?jm(y,s,f):y={...y,...s},Fh(this.data,g,y),h.silent||this.emit("added",i,o,s)}removeResourceBundle(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}hasResourceBundle(i,o){return this.getResource(i,o)!==void 0}getResourceBundle(i,o){return o||(o=this.options.defaultNS),this.getResource(i,o)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const o=this.getDataByLanguage(i);return!!(o&&Object.keys(o)||[]).find(c=>o[c]&&Object.keys(o[c]).length>0)}toJSON(){return this.data}}var Mm={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,i,o,s,c){return r.forEach(f=>{var h;i=((h=this.processors[f])==null?void 0:h.process(i,o,s,c))??i}),i}};const Lm=Symbol("i18next/PATH_KEY");function nv(){const r=[],i=Object.create(null);let o;return i.get=(s,c)=>{var f;return(f=o==null?void 0:o.revoke)==null||f.call(o),c===Lm?r:(r.push(c),o=Proxy.revocable(s,i),o.proxy)},Proxy.revocable(Object.create(null),i).proxy}function Kl(r,i){const{[Lm]:o}=r(nv()),s=(i==null?void 0:i.keySeparator)??".",c=(i==null?void 0:i.nsSeparator)??":";if(o.length>1&&c){const f=i==null?void 0:i.ns,h=Array.isArray(f)?f:null;if(h&&h.length>1&&h.slice(1).includes(o[0]))return`${o[0]}${c}${o.slice(1).join(s)}`}return o.join(s)}const so=r=>!ne(r)&&typeof r!="boolean"&&typeof r!="number";class ju extends _u{constructor(i,o={}){super(),J0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Kt.create("translator"),this.checkedLoadedFor={}}changeLanguage(i){i&&(this.language=i)}exists(i,o={interpolation:{}}){const s={...o};if(i==null)return!1;const c=this.resolve(i,s);if((c==null?void 0:c.res)===void 0)return!1;const f=so(c.res);return!(s.returnObjects===!1&&f)}extractFromKey(i,o){let s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let f=o.ns||this.options.defaultNS||[];const h=s&&i.includes(s),g=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!av(i,s,c);if(h&&!g){const y=i.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:i,namespaces:ne(f)?[f]:f};const m=i.split(s);(s!==c||s===c&&this.options.ns.includes(m[0]))&&(f=m.shift()),i=m.join(c)}return{key:i,namespaces:ne(f)?[f]:f}}translate(i,o,s){let c=typeof o=="object"?{...o}:o;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof c=="object"&&(c={...c}),c||(c={}),i==null)return"";typeof i=="function"&&(i=Kl(i,{...this.options,...c})),Array.isArray(i)||(i=[String(i)]),i=i.map(ae=>typeof ae=="function"?Kl(ae,{...this.options,...c}):String(ae));const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,h=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:g,namespaces:y}=this.extractFromKey(i[i.length-1],c),m=y[y.length-1];let b=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=c.lng||this.language,z=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return z?f?{res:`${m}${b}${g}`,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(c)}:`${m}${b}${g}`:f?{res:g,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(c)}:g;const N=this.resolve(i,c);let L=N==null?void 0:N.res;const B=(N==null?void 0:N.usedKey)||g,q=(N==null?void 0:N.exactUsedKey)||g,Y=["[object Number]","[object Function]","[object RegExp]"],V=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,Q=c.count!==void 0&&!ne(c.count),I=ju.hasDefaultValue(c),K=Q?this.pluralResolver.getSuffix(v,c.count,c):"",J=c.ordinal&&Q?this.pluralResolver.getSuffix(v,c.count,{ordinal:!1}):"",de=Q&&!c.ordinal&&c.count===0,fe=de&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${K}`]||c[`defaultValue${J}`]||c.defaultValue;let ee=L;X&&!L&&I&&(ee=fe);const Te=so(ee),ie=Object.prototype.toString.apply(ee);if(X&&ee&&Te&&!Y.includes(ie)&&!(ne(V)&&Array.isArray(ee))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(B,ee,{...c,ns:y}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(N.res=ae,N.usedParams=this.getUsedParamsDetails(c),N):ae}if(h){const ae=Array.isArray(ee),le=ae?[]:{},ue=ae?q:B;for(const j in ee)if(Object.prototype.hasOwnProperty.call(ee,j)){const G=`${ue}${h}${j}`;I&&!L?le[j]=this.translate(G,{...c,defaultValue:so(fe)?fe[j]:void 0,joinArrays:!1,ns:y}):le[j]=this.translate(G,{...c,joinArrays:!1,ns:y}),le[j]===G&&(le[j]=ee[j])}L=le}}else if(X&&ne(V)&&Array.isArray(L))L=L.join(V),L&&(L=this.extendTranslation(L,i,c,s));else{let ae=!1,le=!1;!this.isValidLookup(L)&&I&&(ae=!0,L=fe),this.isValidLookup(L)||(le=!0,L=g);const j=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&le?void 0:L,G=I&&fe!==L&&this.options.updateMissing;if(le||ae||G){if(this.logger.log(G?"updateKey":"missingKey",v,m,g,G?fe:L),h){const x=this.resolve(g,{...c,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 ve=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ve&&ve[0])for(let x=0;x<ve.length;x++)F.push(ve[x]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(c.lng||this.language):F.push(c.lng||this.language);const ze=(x,U,Z)=>{var re;const k=I&&Z!==L?Z:j;this.options.missingKeyHandler?this.options.missingKeyHandler(x,m,U,k,G,c):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(x,m,U,k,G,c),this.emit("missingKey",x,m,U,L)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Q?F.forEach(x=>{const U=this.pluralResolver.getSuffixes(x,c);de&&c[`defaultValue${this.options.pluralSeparator}zero`]&&!U.includes(`${this.options.pluralSeparator}zero`)&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(Z=>{ze([x],g+Z,c[`defaultValue${Z}`]||fe)})}):ze(F,g,fe))}L=this.extendTranslation(L,i,c,N,s),le&&L===g&&this.options.appendNamespaceToMissingKey&&(L=`${m}${b}${g}`),(le||ae)&&this.options.parseMissingKeyHandler&&(L=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${b}${g}`:g,ae?L:void 0,c))}return f?(N.res=L,N.usedParams=this.getUsedParamsDetails(c),N):L}extendTranslation(i,o,s,c,f){var y,m;if((y=this.i18nFormat)!=null&&y.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const b=ne(i)&&(((m=s==null?void 0:s.interpolation)==null?void 0:m.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(b){const N=i.match(this.interpolator.nestingRegexp);v=N&&N.length}let z=s.replace&&!ne(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(z={...this.options.interpolation.defaultVariables,...z}),i=this.interpolator.interpolate(i,z,s.lng||this.language||c.usedLng,s),b){const N=i.match(this.interpolator.nestingRegexp),L=N&&N.length;v<L&&(s.nest=!1)}!s.lng&&c&&c.res&&(s.lng=this.language||c.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,(...N)=>(f==null?void 0:f[0])===N[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${N[0]} in key: ${o[0]}`),null):this.translate(...N,o),s)),s.interpolation&&this.interpolator.reset()}const h=s.postProcess||this.options.postProcess,g=ne(h)?[h]:h;return i!=null&&(g!=null&&g.length)&&s.applyPostProcessor!==!1&&(i=Mm.handle(g,i,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),i}resolve(i,o={}){let s,c,f,h,g;return ne(i)&&(i=[i]),Array.isArray(i)&&(i=i.map(y=>typeof y=="function"?Kl(y,{...this.options,...o}):y)),i.forEach(y=>{if(this.isValidLookup(s))return;const m=this.extractFromKey(y,o),b=m.key;c=b;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const z=o.count!==void 0&&!ne(o.count),N=z&&!o.ordinal&&o.count===0,L=o.context!==void 0&&(ne(o.context)||typeof o.context=="number")&&o.context!=="",B=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);v.forEach(q=>{var Y,V;this.isValidLookup(s)||(g=q,!this.checkedLoadedFor[`${B[0]}-${q}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((V=this.utils)!=null&&V.hasLoadedNamespace(g))&&(this.checkedLoadedFor[`${B[0]}-${q}`]=!0,this.logger.warn(`key "${c}" for languages "${B.join(", ")}" won't get resolved as namespace "${g}" 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!!!")),B.forEach(X=>{var K;if(this.isValidLookup(s))return;h=X;const Q=[b];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(Q,b,X,q,o);else{let J;z&&(J=this.pluralResolver.getSuffix(X,o.count,o));const de=`${this.options.pluralSeparator}zero`,fe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(z&&(o.ordinal&&J.startsWith(fe)&&Q.push(b+J.replace(fe,this.options.pluralSeparator)),Q.push(b+J),N&&Q.push(b+de)),L){const ee=`${b}${this.options.contextSeparator||"_"}${o.context}`;Q.push(ee),z&&(o.ordinal&&J.startsWith(fe)&&Q.push(ee+J.replace(fe,this.options.pluralSeparator)),Q.push(ee+J),N&&Q.push(ee+de))}}let I;for(;I=Q.pop();)this.isValidLookup(s)||(f=I,s=this.getResource(X,q,I,o))}))})}),{res:s,usedKey:c,exactUsedKey:f,usedLng:h,usedNS:g}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,o,s,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(i,o,s,c):this.resourceStore.getResource(i,o,s,c)}getUsedParamsDetails(i={}){const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=i.replace&&!ne(i.replace);let c=s?i.replace:i;if(s&&typeof i.count<"u"&&(c.count=i.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!s){c={...c};for(const f of o)delete c[f]}return c}static hasDefaultValue(i){const o="defaultValue";for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&s.startsWith(o)&&i[s]!==void 0)return!0;return!1}}class Ih{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Kt.create("languageUtils")}getScriptPartFromCode(i){if(i=Wn(i),!i||!i.includes("-"))return null;const o=i.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(i){if(i=Wn(i),!i||!i.includes("-"))return i;const o=i.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(i){if(ne(i)&&i.includes("-")){let o;try{o=Intl.getCanonicalLocales(i)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(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 o;return i.forEach(s=>{if(o)return;const c=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(c))&&(o=c)}),!o&&this.options.supportedLngs&&i.forEach(s=>{if(o)return;const c=this.getScriptPartFromCode(s);if(this.isSupportedCode(c))return o=c;const f=this.getLanguagePartFromCode(s);if(this.isSupportedCode(f))return o=f;o=this.options.supportedLngs.find(h=>h===f?!0:!h.includes("-")&&!f.includes("-")?!1:!!(h.includes("-")&&!f.includes("-")&&h.slice(0,h.indexOf("-"))===f||h.startsWith(f)&&f.length>1))}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(i,o){if(!i)return[];if(typeof i=="function"&&(i=i(o)),ne(i)&&(i=[i]),Array.isArray(i))return i;if(!o)return i.default||[];let s=i[o];return s||(s=i[this.getScriptPartFromCode(o)]),s||(s=i[this.formatLanguageCode(o)]),s||(s=i[this.getLanguagePartFromCode(o)]),s||(s=i.default),s||[]}toResolveHierarchy(i,o){const s=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],i),c=[],f=h=>{h&&(this.isSupportedCode(h)?c.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return ne(i)&&(i.includes("-")||i.includes("_"))?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(i))):ne(i)&&f(this.formatLanguageCode(i)),s.forEach(h=>{c.includes(h)||f(this.formatLanguageCode(h))}),c}}const Ph={zero:0,one:1,two:2,few:3,many:4,other:5},em={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class iv{constructor(i,o={}){this.languageUtils=i,this.options=o,this.logger=Kt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,o={}){const s=Wn(i==="dev"?"en":i),c=o.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:s,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let h;try{h=new Intl.PluralRules(s,{type:c})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),em;if(!i.match(/-|_/))return em;const y=this.languageUtils.getLanguagePartFromCode(i);h=this.getRule(y,o)}return this.pluralRulesCache[f]=h,h}needsPlural(i,o={}){let s=this.getRule(i,o);return s||(s=this.getRule("dev",o)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,o,s={}){return this.getSuffixes(i,s).map(c=>`${o}${c}`)}getSuffixes(i,o={}){let s=this.getRule(i,o);return s||(s=this.getRule("dev",o)),s?s.resolvedOptions().pluralCategories.sort((c,f)=>Ph[c]-Ph[f]).map(c=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(i,o,s={}){const c=this.getRule(i,s);return c?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c.select(o)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",o,s))}}const tm=(r,i,o,s=".",c=!0)=>{let f=F0(r,i,o);return!f&&c&&ne(o)&&(f=po(r,o,s),f===void 0&&(f=po(i,o,s))),f},oo=r=>r.replace(/\$/g,"$$$$");class am{constructor(i={}){var o;this.logger=Kt.create("interpolator"),this.options=i,this.format=((o=i==null?void 0:i.interpolation)==null?void 0:o.format)||(s=>s),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:o,escapeValue:s,useRawValueToEscape:c,prefix:f,prefixEscaped:h,suffix:g,suffixEscaped:y,formatSeparator:m,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:z,nestingPrefixEscaped:N,nestingSuffix:L,nestingSuffixEscaped:B,nestingOptionsSeparator:q,maxReplaces:Y,alwaysFormat:V}=i.interpolation;this.escape=o!==void 0?o:I0,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?da(f):h||"{{",this.suffix=g?da(g):y||"}}",this.formatSeparator=m||",",this.unescapePrefix=b?"":v?da(v):"-",this.unescapeSuffix=this.unescapePrefix?"":b?da(b):"",this.nestingPrefix=z?da(z):N||da("$t("),this.nestingSuffix=L?da(L):B||da(")"),this.nestingOptionsSeparator=q||",",this.maxReplaces=Y||1e3,this.alwaysFormat=V!==void 0?V:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(o,s)=>(o==null?void 0:o.source)===s?(o.lastIndex=0,o):new RegExp(s,"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,o,s,c){var N;let f,h,g;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=L=>{if(!L.includes(this.formatSeparator)){const V=tm(o,y,L,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(V,void 0,s,{...c,...o,interpolationkey:L}):V}const B=L.split(this.formatSeparator),q=B.shift().trim(),Y=B.join(this.formatSeparator).trim();return this.format(tm(o,y,q,this.options.keySeparator,this.options.ignoreJSONStructure),Y,s,{...c,...o,interpolationkey:q})};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=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((N=c==null?void 0:c.interpolation)==null?void 0:N.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:L=>oo(L)},{regex:this.regexp,safeValue:L=>this.escapeValue?oo(this.escape(L)):oo(L)}].forEach(L=>{for(g=0;f=L.regex.exec(i);){const B=f[1].trim();if(h=m(B),h===void 0)if(typeof b=="function"){const Y=b(i,f,c);h=ne(Y)?Y:""}else if(c&&Object.prototype.hasOwnProperty.call(c,B))h="";else if(v){h=f[0];continue}else this.logger.warn(`missed to pass in variable ${B} for interpolating ${i}`),h="";else!ne(h)&&!this.useRawValueToEscape&&(h=Jh(h));const q=L.safeValue(h);if(i=i.replace(f[0],q),v?(L.regex.lastIndex+=h.length,L.regex.lastIndex-=f[0].length):L.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),i}nest(i,o,s={}){let c,f,h;const g=(y,m)=>{const b=this.nestingOptionsSeparator;if(!y.includes(b))return y;const v=y.split(new RegExp(`${da(b)}[ ]*{`));let z=`{${v[1]}`;y=v[0],z=this.interpolate(z,h);const N=z.match(/'/g),L=z.match(/"/g);(((N==null?void 0:N.length)??0)%2===0&&!L||((L==null?void 0:L.length)??0)%2!==0)&&(z=z.replace(/'/g,'"'));try{h=JSON.parse(z),m&&(h={...m,...h})}catch(B){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,B),`${y}${b}${z}`}return h.defaultValue&&h.defaultValue.includes(this.prefix)&&delete h.defaultValue,y};for(;c=this.nestingRegexp.exec(i);){let y=[];h={...s},h=h.replace&&!ne(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const m=/{.*}/.test(c[1])?c[1].lastIndexOf("}")+1:c[1].indexOf(this.formatSeparator);if(m!==-1&&(y=c[1].slice(m).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),c[1]=c[1].slice(0,m)),f=o(g.call(this,c[1].trim(),h),h),f&&c[0]===i&&!ne(f))return f;ne(f)||(f=Jh(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${i}`),f=""),y.length&&(f=y.reduce((b,v)=>this.format(b,v,s.lng,{...s,interpolationkey:c[1].trim()}),f.trim())),i=i.replace(c[0],f),this.regexp.lastIndex=0}return i}}const uv=r=>{let i=r.toLowerCase().trim();const o={};if(r.includes("(")){const s=r.split("(");i=s[0].toLowerCase().trim();const c=s[1].slice(0,-1);i==="currency"&&!c.includes(":")?o.currency||(o.currency=c.trim()):i==="relativetime"&&!c.includes(":")?o.range||(o.range=c.trim()):c.split(";").forEach(h=>{if(h){const[g,...y]=h.split(":"),m=y.join(":").trim().replace(/^'+|'+$/g,""),b=g.trim();o[b]||(o[b]=m),m==="false"&&(o[b]=!1),m==="true"&&(o[b]=!0),isNaN(m)||(o[b]=parseInt(m,10))}})}return{formatName:i,formatOptions:o}},lm=r=>{const i={};return(o,s,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const h=s+JSON.stringify(f);let g=i[h];return g||(g=r(Wn(s),c),i[h]=g),g(o)}},rv=r=>(i,o,s)=>r(Wn(o),s)(i);class sv{constructor(i={}){this.logger=Kt.create("formatter"),this.options=i,this.init(i)}init(i,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";const s=o.cacheInBuiltFormats?lm:rv;this.formats={number:s((c,f)=>{const h=new Intl.NumberFormat(c,{...f});return g=>h.format(g)}),currency:s((c,f)=>{const h=new Intl.NumberFormat(c,{...f,style:"currency"});return g=>h.format(g)}),datetime:s((c,f)=>{const h=new Intl.DateTimeFormat(c,{...f});return g=>h.format(g)}),relativetime:s((c,f)=>{const h=new Intl.RelativeTimeFormat(c,{...f});return g=>h.format(g,f.range||"day")}),list:s((c,f)=>{const h=new Intl.ListFormat(c,{...f});return g=>h.format(g)})}}add(i,o){this.formats[i.toLowerCase().trim()]=o}addCached(i,o){this.formats[i.toLowerCase().trim()]=lm(o)}format(i,o,s,c={}){if(!o||i==null)return i;const f=o.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&!f[0].includes(")")&&f.find(g=>g.includes(")"))){const g=f.findIndex(y=>y.includes(")"));f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,y)=>{var v;const{formatName:m,formatOptions:b}=uv(y);if(this.formats[m]){let z=g;try{const N=((v=c==null?void 0:c.formatParams)==null?void 0:v[c.interpolationkey])||{},L=N.locale||N.lng||c.locale||c.lng||s;z=this.formats[m](g,L,{...b,...c,...N})}catch(N){this.logger.warn(N)}return z}else this.logger.warn(`there was no format function for ${m}`);return g},i)}}const ov=(r,i)=>{r.pending[i]!==void 0&&(delete r.pending[i],r.pendingCount--)};class cv extends _u{constructor(i,o,s,c={}){var f,h;super(),this.backend=i,this.store=o,this.services=s,this.languageUtils=s.languageUtils,this.options=c,this.logger=Kt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],(h=(f=this.backend)==null?void 0:f.init)==null||h.call(f,s,c.backend,c)}queueLoad(i,o,s,c){const f={},h={},g={},y={};return i.forEach(m=>{let b=!0;o.forEach(v=>{const z=`${m}|${v}`;!s.reload&&this.store.hasResourceBundle(m,v)?this.state[z]=2:this.state[z]<0||(this.state[z]===1?h[z]===void 0&&(h[z]=!0):(this.state[z]=1,b=!1,h[z]===void 0&&(h[z]=!0),f[z]===void 0&&(f[z]=!0),y[v]===void 0&&(y[v]=!0)))}),b||(g[m]=!0)}),(Object.keys(f).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(h),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(y)}}loaded(i,o,s){const c=i.split("|"),f=c[0],h=c[1];o&&this.emit("failedLoading",f,h,o),!o&&s&&this.store.addResourceBundle(f,h,s,void 0,void 0,{skipCopy:!0}),this.state[i]=o?-1:2,o&&s&&(this.state[i]=0);const g={};this.queue.forEach(y=>{$0(y.loaded,[f],h),ov(y,i),o&&y.errors.push(o),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(m=>{g[m]||(g[m]={});const b=y.loaded[m];b.length&&b.forEach(v=>{g[m][v]===void 0&&(g[m][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(y=>!y.done)}read(i,o,s,c=0,f=this.retryTimeout,h){if(!i.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:c,wait:f,callback:h});return}this.readingCalls++;const g=(m,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(m&&b&&c<this.maxRetries){setTimeout(()=>{this.read(i,o,s,c+1,f*2,h)},f);return}h(m,b)},y=this.backend[s].bind(this.backend);if(y.length===2){try{const m=y(i,o);m&&typeof m.then=="function"?m.then(b=>g(null,b)).catch(g):g(null,m)}catch(m){g(m)}return}return y(i,o,g)}prepareLoading(i,o,s={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ne(i)&&(i=this.languageUtils.toResolveHierarchy(i)),ne(o)&&(o=[o]);const f=this.queueLoad(i,o,s,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(h=>{this.loadOne(h)})}load(i,o,s){this.prepareLoading(i,o,{},s)}reload(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}loadOne(i,o=""){const s=i.split("|"),c=s[0],f=s[1];this.read(c,f,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${o}loading namespace ${f} for language ${c} failed`,h),!h&&g&&this.logger.log(`${o}loaded namespace ${f} for language ${c}`,g),this.loaded(i,h,g)})}saveMissing(i,o,s,c,f,h={},g=()=>{}){var y,m,b,v,z;if((m=(y=this.services)==null?void 0:y.utils)!=null&&m.hasLoadedNamespace&&!((v=(b=this.services)==null?void 0:b.utils)!=null&&v.hasLoadedNamespace(o))){this.logger.warn(`did not save key "${s}" as the namespace "${o}" 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(!(s==null||s==="")){if((z=this.backend)!=null&&z.create){const N={...h,isUpdate:f},L=this.backend.create.bind(this.backend);if(L.length<6)try{let B;L.length===5?B=L(i,o,s,c,N):B=L(i,o,s,c),B&&typeof B.then=="function"?B.then(q=>g(null,q)).catch(g):g(null,B)}catch(B){g(B)}else L(i,o,s,c,g,N)}!i||!i[0]||this.store.addResource(i[0],o,s,c)}}}const co=()=>({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:r=>{let i={};if(typeof r[1]=="object"&&(i=r[1]),ne(r[1])&&(i.defaultValue=r[1]),ne(r[2])&&(i.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const o=r[3]||r[2];Object.keys(o).forEach(s=>{i[s]=o[s]})}return i},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),nm=r=>(ne(r.ns)&&(r.ns=[r.ns]),ne(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),ne(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs&&!r.supportedLngs.includes("cimode")&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),r),xu=()=>{},fv=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(o=>{typeof r[o]=="function"&&(r[o]=r[o].bind(r))})};class $n extends _u{constructor(i={},o){if(super(),this.options=nm(i),this.services={},this.logger=Kt,this.modules={external:[]},fv(this),o&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,o),this;setTimeout(()=>{this.init(i,o)},0)}}init(i={},o){this.isInitializing=!0,typeof i=="function"&&(o=i,i={}),i.defaultNS==null&&i.ns&&(ne(i.ns)?i.defaultNS=i.ns:i.ns.includes("translation")||(i.defaultNS=i.ns[0]));const s=co();this.options={...s,...this.options,...nm(i)},this.options.interpolation={...s.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=s.overloadTranslationOptionHandler);const c=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Kt.init(c(this.modules.logger),this.options):Kt.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=sv;const b=new Ih(this.options);this.store=new Wh(this.options.resources,this.options);const v=this.services;v.logger=Kt,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new iv(b,{prepend:this.options.pluralSeparator}),m&&(v.formatter=c(m),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new am(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new cv(c(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(z,...N)=>{this.emit(z,...N)}),this.modules.languageDetector&&(v.languageDetector=c(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=c(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new ju(this.services,this.options),this.translator.on("*",(z,...N)=>{this.emit(z,...N)}),this.modules.external.forEach(z=>{z.init&&z.init(this)})}if(this.format=this.options.interpolation.format,o||(o=xu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=(...b)=>this.store[m](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...b)=>(this.store[m](...b),this)});const g=Kn(),y=()=>{const m=(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),g.resolve(v),o(b,v)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),g}loadResources(i,o=xu){var f,h;let s=o;const c=ne(i)?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const g=[],y=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(v=>{v!=="cimode"&&(g.includes(v)||g.push(v))})};c?y(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>y(b)),(h=(f=this.options.preload)==null?void 0:f.forEach)==null||h.call(f,m=>y(m)),this.services.backendConnector.load(g,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(m)})}else s(null)}reloadResources(i,o,s){const c=Kn();return typeof i=="function"&&(s=i,i=void 0),typeof o=="function"&&(s=o,o=void 0),i||(i=this.languages),o||(o=this.options.ns),s||(s=xu),this.services.backendConnector.reload(i,o,f=>{c.resolve(),s(f)}),c}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"&&Mm.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 o=0;o<this.languages.length;o++){const s=this.languages[o];if(!["cimode","dev"].includes(s)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&!this.languages.includes(i)&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,o){this.isLanguageChangingTo=i;const s=Kn();this.emit("languageChanging",i);const c=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},f=(g,y)=>{y?this.isLanguageChangingTo===i&&(c(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,s.resolve((...m)=>this.t(...m)),o&&o(g,(...m)=>this.t(...m))},h=g=>{var b,v;!i&&!g&&this.services.languageDetector&&(g=[]);const y=ne(g)?g:g&&g[0],m=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(ne(g)?[g]:g);m&&(this.language||c(m),this.translator.language||this.translator.changeLanguage(m),(v=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||v.call(b,m)),this.loadResources(m,z=>{f(z,m)})};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),s}getFixedT(i,o,s){const c=(f,h,...g)=>{let y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([f,h].concat(g)):y={...h},y.lng=y.lng||c.lng,y.lngs=y.lngs||c.lngs,y.ns=y.ns||c.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||s||c.keyPrefix);const m={...this.options,...y};typeof y.keyPrefix=="function"&&(y.keyPrefix=Kl(y.keyPrefix,m));const b=this.options.keySeparator||".";let v;return y.keyPrefix&&Array.isArray(f)?v=f.map(z=>(typeof z=="function"&&(z=Kl(z,m)),`${y.keyPrefix}${b}${z}`)):(typeof f=="function"&&(f=Kl(f,m)),v=y.keyPrefix?`${y.keyPrefix}${b}${f}`:f),this.t(v,y)};return ne(i)?c.lng=i:c.lngs=i,c.ns=o,c.keyPrefix=s,c}t(...i){var o;return(o=this.translator)==null?void 0:o.translate(...i)}exists(...i){var o;return(o=this.translator)==null?void 0:o.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,o={}){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 s=o.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const h=(g,y)=>{const m=this.services.backendConnector.state[`${g}|${y}`];return m===-1||m===0||m===2};if(o.precheck){const g=o.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(s,i)&&(!c||h(f,i)))}loadNamespaces(i,o){const s=Kn();return this.options.ns?(ne(i)&&(i=[i]),i.forEach(c=>{this.options.ns.includes(c)||this.options.ns.push(c)}),this.loadResources(c=>{s.resolve(),o&&o(c)}),s):(o&&o(),Promise.resolve())}loadLanguages(i,o){const s=Kn();ne(i)&&(i=[i]);const c=this.options.preload||[],f=i.filter(h=>!c.includes(h)&&this.services.languageUtils.isSupportedCode(h));return f.length?(this.options.preload=c.concat(f),this.loadResources(h=>{s.resolve(),o&&o(h)}),s):(o&&o(),Promise.resolve())}dir(i){var c,f;if(i||(i=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const h=new Intl.Locale(i);if(h&&h.getTextInfo){const g=h.getTextInfo();if(g&&g.direction)return g.direction}}catch{}const o=["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"],s=((f=this.services)==null?void 0:f.languageUtils)||new Ih(co());return i.toLowerCase().indexOf("-latn")>1?"ltr":o.includes(s.getLanguagePartFromCode(i))||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},o){const s=new $n(i,o);return s.createInstance=$n.createInstance,s}cloneInstance(i={},o=xu){const s=i.forkResourceStore;s&&delete i.forkResourceStore;const c={...this.options,...i,isClone:!0},f=new $n(c);if((i.debug!==void 0||i.prefix!==void 0)&&(f.logger=f.logger.clone(i)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s){const g=Object.keys(this.store.data).reduce((y,m)=>(y[m]={...this.store.data[m]},y[m]=Object.keys(y[m]).reduce((b,v)=>(b[v]={...y[m][v]},b),y[m]),y),{});f.store=new Wh(g,c),f.services.resourceStore=f.store}if(i.interpolation){const y={...co().interpolation,...this.options.interpolation,...i.interpolation},m={...c,interpolation:y};f.services.interpolator=new am(m)}return f.translator=new ju(f.services,c),f.translator.on("*",(g,...y)=>{f.emit(g,...y)}),f.init(c,o),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Fe=$n.createInstance();Fe.createInstance;Fe.dir;Fe.init;Fe.loadResources;Fe.reloadResources;Fe.use;Fe.changeLanguage;Fe.getFixedT;Fe.t;Fe.exists;Fe.setDefaultNamespace;Fe.hasLoadedNamespace;Fe.loadNamespaces;Fe.loadLanguages;const dv=(r,i,o,s)=>{var f,h,g,y;const c=[o,{code:i,...s||{}}];if((h=(f=r==null?void 0:r.services)==null?void 0:f.logger)!=null&&h.forward)return r.services.logger.forward(c,"warn","react-i18next::",!0);ul(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(y=(g=r==null?void 0:r.services)==null?void 0:g.logger)!=null&&y.warn?r.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},im={},yo=(r,i,o,s)=>{ul(o)&&im[o]||(ul(o)&&(im[o]=new Date),dv(r,i,o,s))},Nm=(r,i)=>()=>{if(r.isInitialized)i();else{const o=()=>{setTimeout(()=>{r.off("initialized",o)},0),i()};r.on("initialized",o)}},vo=(r,i,o)=>{r.loadNamespaces(i,Nm(r,o))},um=(r,i,o,s)=>{if(ul(o)&&(o=[o]),r.options.preload&&r.options.preload.indexOf(i)>-1)return vo(r,o,s);o.forEach(c=>{r.options.ns.indexOf(c)<0&&r.options.ns.push(c)}),r.loadLanguages(i,Nm(r,s))},hv=(r,i,o={})=>!i.languages||!i.languages.length?(yo(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(r,{lng:o.lng,precheck:(s,c)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!c(s.isLanguageChangingTo,r))return!1}}),ul=r=>typeof r=="string",mv=r=>typeof r=="object"&&r!==null,gv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,pv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},yv=r=>pv[r],vv=r=>r.replace(gv,yv);let bo={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:vv,transDefaultProps:void 0};const bv=(r={})=>{bo={...bo,...r}},Sv=()=>bo;let _m;const xv=r=>{_m=r},Ev=()=>_m,Rv={type:"3rdParty",init(r){bv(r.options.react),xv(r)}},Tv=T.createContext();class Cv{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var fo={exports:{}},ho={};/**
|
|
61
|
+
* @license React
|
|
62
|
+
* use-sync-external-store-shim.production.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/var rm;function zv(){if(rm)return ho;rm=1;var r=Mu();function i(v,z){return v===z&&(v!==0||1/v===1/z)||v!==v&&z!==z}var o=typeof Object.is=="function"?Object.is:i,s=r.useState,c=r.useEffect,f=r.useLayoutEffect,h=r.useDebugValue;function g(v,z){var N=z(),L=s({inst:{value:N,getSnapshot:z}}),B=L[0].inst,q=L[1];return f(function(){B.value=N,B.getSnapshot=z,y(B)&&q({inst:B})},[v,N,z]),c(function(){return y(B)&&q({inst:B}),v(function(){y(B)&&q({inst:B})})},[v]),h(N),N}function y(v){var z=v.getSnapshot;v=v.value;try{var N=z();return!o(v,N)}catch{return!0}}function m(v,z){return z()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:g;return ho.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:b,ho}var sm;function Av(){return sm||(sm=1,fo.exports=zv()),fo.exports}var Ov=Av();const Dv=(r,i)=>{if(ul(i))return i;if(mv(i)&&ul(i.defaultValue))return i.defaultValue;if(typeof r=="function")return"";if(Array.isArray(r)){const o=r[r.length-1];return typeof o=="function"?"":o}return r},jv={t:Dv,ready:!1},Mv=()=>()=>{},qa=(r,i={})=>{var fe,ee,Te;const{i18n:o}=i,{i18n:s,defaultNS:c}=T.useContext(Tv)||{},f=o||s||Ev();f&&!f.reportNamespaces&&(f.reportNamespaces=new Cv),f||yo(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=T.useMemo(()=>{var ie;return{...Sv(),...(ie=f==null?void 0:f.options)==null?void 0:ie.react,...i}},[f,i]),{useSuspense:g,keyPrefix:y}=h,m=c||((fe=f==null?void 0:f.options)==null?void 0:fe.defaultNS),b=ul(m)?[m]:m||["translation"],v=T.useMemo(()=>b,b);(Te=(ee=f==null?void 0:f.reportNamespaces)==null?void 0:ee.addUsedNamespaces)==null||Te.call(ee,v);const z=T.useRef(0),N=T.useCallback(ie=>{if(!f)return Mv;const{bindI18n:ae,bindI18nStore:le}=h,ue=()=>{z.current+=1,ie()};return ae&&f.on(ae,ue),le&&f.store.on(le,ue),()=>{ae&&ae.split(" ").forEach(j=>f.off(j,ue)),le&&le.split(" ").forEach(j=>f.store.off(j,ue))}},[f,h]),L=T.useRef(),B=T.useCallback(()=>{if(!f)return jv;const ie=!!(f.isInitialized||f.initializedStoreOnce)&&v.every(F=>hv(F,f,h)),ae=i.lng||f.language,le=z.current,ue=L.current;if(ue&&ue.ready===ie&&ue.lng===ae&&ue.keyPrefix===y&&ue.revision===le)return ue;const G={t:f.getFixedT(ae,h.nsMode==="fallback"?v:v[0],y),ready:ie,lng:ae,keyPrefix:y,revision:le};return L.current=G,G},[f,v,y,h,i.lng]),[q,Y]=T.useState(0),{t:V,ready:X}=Ov.useSyncExternalStore(N,B,B);T.useEffect(()=>{if(f&&!X&&!g){const ie=()=>Y(ae=>ae+1);i.lng?um(f,i.lng,v,ie):vo(f,v,ie)}},[f,i.lng,v,X,g,q]);const Q=f||{},I=T.useRef(null),K=T.useRef(),J=ie=>{const ae=Object.getOwnPropertyDescriptors(ie);ae.__original&&delete ae.__original;const le=Object.create(Object.getPrototypeOf(ie),ae);if(!Object.prototype.hasOwnProperty.call(le,"__original"))try{Object.defineProperty(le,"__original",{value:ie,writable:!1,enumerable:!1,configurable:!1})}catch{}return le},de=T.useMemo(()=>{const ie=Q,ae=ie==null?void 0:ie.language;let le=ie;ie&&(I.current&&I.current.__original===ie?K.current!==ae?(le=J(ie),I.current=le,K.current=ae):le=I.current:(le=J(ie),I.current=le,K.current=ae));const ue=!X&&!g?(...G)=>(yo(f,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),V(...G)):V,j=[ue,le,X];return j.t=ue,j.i18n=le,j.ready=X,j},[V,Q,X,Q.resolvedLanguage,Q.language,Q.languages]);if(f&&g&&!X)throw new Promise(ie=>{const ae=()=>ie();i.lng?um(f,i.lng,v,ae):vo(f,v,ae)});return de},Lv={title:"shoal"},Nv={title:"Run History",startRun:"Start Run",noRuns:"No runs yet",noRunsHint:"Start a run to explore your app with AI agents."},_v={status:"Status",started:"Started",duration:"Duration",findings:"Findings",agents:"Agents",cost:"Cost",actions:""},Uv={completed:"Completed",running:"Running"},Hv={back:"← Back",noReport:"No report found for this run.",noLog:"No log available.",tabLog:"Log",tabSwarm:"Swarm",tabDiary:"Diary",diaryHint:"Generate a story-style diary of the agents' exploration. Uses one LLM call.",generateDiary:"Generate Diary",generatingDiary:"Generating…",diaryError:"Generation failed. Check your LLM settings.",tabReport:"Report",cancel:"Cancel run",cancelConfirmLabel:"Stop this run?",cancelConfirmYes:"Stop",cancelConfirmNo:"Keep going"},Bv={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"},wv={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"In progress"},Yv={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"},qv={title:"Hall of Issues",subtitle:"All findings across every run",export:"Export JSON",searchPlaceholder:"Search findings…",filterAll:"All",import:"Load",importing:"Loading…",importPlaceholder:"Paste URL to a community findings JSON…",importError:"Failed to load. Check the URL.",importedBadge:"+{{count}} imported",noFindings:"No findings yet. Start a run to discover issues.",noResults:"No results matching your search.",navLink:"Hall"},Gv={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".'},Vv={header:Lv,dashboard:Nv,table:_v,status:Uv,detail:Hv,startModal:Bv,duration:wv,schedule:Yv,hall:qv,goals:Gv},Xv={title:"shoal"},Qv={title:"実行一覧",startRun:"実行を開始",noRuns:"実行履歴がありません",noRunsHint:"実行を開始して AI エージェントにアプリを探索させましょう。"},Kv={status:"ステータス",started:"開始日時",duration:"所要時間",findings:"Findings",agents:"エージェント",cost:"コスト",actions:""},Zv={completed:"完了",running:"実行中"},Jv={back:"← 一覧に戻る",noReport:"このレポートは見つかりませんでした。",noLog:"ログがありません。",tabLog:"ログ",tabSwarm:"群泳",tabDiary:"日誌",diaryHint:"エージェント群の探索を物語体の「探索日誌」として生成します。LLM を1回呼び出します。",generateDiary:"探索日誌を生成",generatingDiary:"生成中…",diaryError:"生成に失敗しました。LLM の設定を確認してください。",tabReport:"レポート",cancel:"中止",cancelConfirmLabel:"中止しますか?",cancelConfirmYes:"中止する",cancelConfirmNo:"やめる"},kv={title:"実行を開始",baseUrl:"アプリの URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"ブラウザエージェント数",maxExplorers:"API エージェント数",start:"開始",cancel:"キャンセル",running:"実行中…",liveLog:"ライブログ",close:"閉じる",advanced:"詳細設定",llmBaseUrl:"LLM Base URL",llmModel:"モデル",llmApiKey:"API キー"},$v={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"実行中"},Fv={title:"定期実行",enabled:"自動実行:オン",disabled:"自動実行:オフ",dayLabel:"曜日",timeLabel:"時刻(サーバーのローカル時刻)",days:["日","月","火","水","木","金","土"],nextRun:"次回実行",saved:"保存しました"},Wv={title:"Hall of Issues",subtitle:"全 run の findings を横断表示",export:"JSON をエクスポート",searchPlaceholder:"findings を検索…",filterAll:"すべて",import:"読み込む",importing:"読み込み中…",importPlaceholder:"コミュニティ findings JSON の URL を貼り付け…",importError:"読み込みに失敗しました。URL を確認してください。",importedBadge:"+{{count}} 件インポート済み",noFindings:"まだ findings がありません。実行を開始して問題を発見しましょう。",noResults:"検索結果がありません。",navLink:"Hall"},Iv={title:"App Goals",noSpec:"プロダクト仕様がまだありません。実行を開始するとゴールが自動推論されます。",noGoals:"ゴールが未設定です。",edit:"編集",save:"保存",cancel:"キャンセル",add:"+ ゴールを追加",placeholder:"例: ユーザーがサポートなしでオンボーディングを完了できる",hint:"プロダクト理解エージェントが推論したゴールです。誤りがあれば修正してください。",goalGapHint:'エージェントはこれらのゴール達成を妨げる問題を "goal-gap" として報告します。'},Pv={header:Xv,dashboard:Qv,table:Kv,status:Zv,detail:Jv,startModal:kv,duration:$v,schedule:Fv,hall:Wv,goals:Iv},eb=localStorage.getItem("shoal-lang"),tb=navigator.language.startsWith("ja")?"ja":"en";Fe.use(Rv).init({resources:{en:{translation:Vv},ja:{translation:Pv}},lng:eb??tb,fallbackLng:"en",interpolation:{escapeValue:!1}});function ab(){const{t:r}=qa(),i=ei(),o=()=>{const s=Fe.language==="ja"?"en":"ja";Fe.changeLanguage(s),localStorage.setItem("shoal-lang",s)};return R.jsxs("header",{style:Zn.header,children:[R.jsx("button",{onClick:()=>i("/"),style:Zn.titleBtn,children:r("header.title")}),R.jsx("nav",{style:Zn.nav,children:R.jsx("button",{onClick:()=>i("/hall"),style:Zn.navLink,children:r("hall.navLink")})}),R.jsx("button",{onClick:o,style:Zn.langBtn,children:Fe.language==="ja"?"EN":"JA"})]})}const Zn={header:{background:"#1e293b",color:"#f8fafc",padding:"0 2rem",height:"52px",display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,zIndex:100},titleBtn:{background:"transparent",border:"none",color:"#f8fafc",fontSize:"1rem",fontWeight:700,letterSpacing:"0.04em",cursor:"pointer",padding:0},nav:{display:"flex",gap:"0.25rem",flex:1,paddingLeft:"1.5rem"},navLink:{background:"transparent",border:"none",color:"#94a3b8",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",padding:"4px 8px",borderRadius:"6px",letterSpacing:"0.03em"},langBtn:{background:"transparent",border:"1px solid #475569",color:"#94a3b8",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600,letterSpacing:"0.05em"}};function lb({onClose:r,onStarted:i}){const{t:o}=qa(),[s,c]=T.useState("http://localhost:3000"),[f,h]=T.useState(2),[g,y]=T.useState(0),[m,b]=T.useState(""),[v,z]=T.useState(""),[N,L]=T.useState(""),[B,q]=T.useState(!1),[Y,V]=T.useState(!1),X=async()=>{V(!0);const Q={baseUrl:s,maxBrowsers:f,maxExplorers:g};m&&(Q.llmBaseUrl=m),v&&(Q.llmApiKey=v),N&&(Q.llmModel=N);const I=await fetch("/api/runs/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Q)}),{sessionId:K}=await I.json();V(!1),i(K)};return R.jsx("div",{style:we.overlay,onClick:Q=>Q.target===Q.currentTarget&&r(),children:R.jsxs("div",{style:we.modal,children:[R.jsx("h2",{style:we.title,children:o("startModal.title")}),R.jsxs("div",{style:we.form,children:[R.jsxs("label",{style:we.label,children:[o("startModal.baseUrl"),R.jsx("input",{type:"text",value:s,onChange:Q=>c(Q.target.value),placeholder:o("startModal.baseUrlPlaceholder"),style:we.input})]}),R.jsxs("div",{style:we.row,children:[R.jsxs("label",{style:we.label,children:[o("startModal.maxBrowsers"),R.jsx("input",{type:"number",min:0,max:8,value:f,onChange:Q=>h(Number(Q.target.value)),style:{...we.input,width:"80px"}})]}),R.jsxs("label",{style:we.label,children:[o("startModal.maxExplorers"),R.jsx("input",{type:"number",min:0,max:8,value:g,onChange:Q=>y(Number(Q.target.value)),style:{...we.input,width:"80px"}})]})]}),R.jsxs("button",{type:"button",onClick:()=>q(Q=>!Q),style:we.advancedToggle,children:[B?"▾":"▸"," ",o("startModal.advanced")]}),B&&R.jsxs("div",{style:we.advancedBox,children:[R.jsxs("label",{style:we.label,children:[o("startModal.llmBaseUrl"),R.jsx("input",{type:"text",value:m,onChange:Q=>b(Q.target.value),placeholder:"http://localhost:11434/v1",style:we.input})]}),R.jsxs("div",{style:we.row,children:[R.jsxs("label",{style:we.label,children:[o("startModal.llmModel"),R.jsx("input",{type:"text",value:N,onChange:Q=>L(Q.target.value),placeholder:"gemma4:e4b",style:we.input})]}),R.jsxs("label",{style:we.label,children:[o("startModal.llmApiKey"),R.jsx("input",{type:"text",value:v,onChange:Q=>z(Q.target.value),placeholder:"ollama",style:we.input})]})]})]}),R.jsxs("div",{style:we.buttons,children:[R.jsx("button",{onClick:r,style:we.cancelBtn,disabled:Y,children:o("startModal.cancel")}),R.jsx("button",{onClick:X,style:we.startBtn,disabled:Y,children:Y?"…":o("startModal.start")})]})]})]})})}const we={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 nb(){const{t:r}=qa(),[i,o]=T.useState(null),[s,c]=T.useState(!1),[f,h]=T.useState(!1),[g,y]=T.useState([]),[m,b]=T.useState(!1);T.useEffect(()=>{fetch("/api/spec").then(V=>V.status===404?(c(!0),null):V.json()).then(V=>{V&&o(V)}).catch(()=>{})},[]);const v=()=>{var V;y((V=i==null?void 0:i.appGoals)!=null&&V.length?[...i.appGoals]:[""]),h(!0)},z=()=>h(!1),N=async()=>{const V=g.map(X=>X.trim()).filter(Boolean);b(!0);try{await fetch("/api/spec/goals",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({goals:V})}),o(X=>X&&{...X,appGoals:V}),h(!1)}finally{b(!1)}},L=(V,X)=>{y(Q=>Q.map((I,K)=>K===V?X:I))},B=V=>{y(X=>X.filter((Q,I)=>I!==V))},q=()=>y(V=>[...V,""]);if(s)return R.jsxs("div",{style:Ke.panel,children:[R.jsx("div",{style:Ke.header,children:R.jsx("span",{style:Ke.title,children:r("goals.title")})}),R.jsx("p",{style:Ke.hint,children:r("goals.noSpec")})]});if(!i)return null;const Y=i.appGoals??[];return R.jsxs("div",{style:Ke.panel,children:[R.jsxs("div",{style:Ke.header,children:[R.jsxs("span",{style:Ke.title,children:[r("goals.title"),i.appName&&R.jsxs("span",{style:Ke.appName,children:[" — ",i.appName]})]}),!f&&R.jsx("button",{onClick:v,style:Ke.editBtn,children:r("goals.edit")})]}),f?R.jsxs("div",{style:Ke.editArea,children:[g.map((V,X)=>R.jsxs("div",{style:Ke.inputRow,children:[R.jsx("input",{style:Ke.input,value:V,placeholder:r("goals.placeholder"),onChange:Q=>L(X,Q.target.value),autoFocus:X===g.length-1&&V===""}),R.jsx("button",{onClick:()=>B(X),style:Ke.removeBtn,children:"×"})]},X)),R.jsx("button",{onClick:q,style:Ke.addBtn,children:r("goals.add")}),R.jsxs("div",{style:Ke.editActions,children:[R.jsx("button",{onClick:z,style:Ke.cancelBtn,children:r("goals.cancel")}),R.jsx("button",{onClick:N,style:Ke.saveBtn,disabled:m,children:m?"…":r("goals.save")})]})]}):R.jsxs(R.Fragment,{children:[Y.length===0?R.jsx("p",{style:Ke.hint,children:r("goals.noGoals")}):R.jsx("ul",{style:Ke.list,children:Y.map((V,X)=>R.jsx("li",{style:Ke.goalItem,children:V},X))}),R.jsx("p",{style:Ke.subHint,children:r("goals.goalGapHint")})]})]})}const Ke={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 ib(){const{t:r}=qa(),[i,o]=T.useState(null),[s,c]=T.useState(!1);T.useEffect(()=>{fetch("/api/schedule").then(y=>y.json()).then(y=>o(y)).catch(()=>{})},[]);const f=async y=>{if(!i)return;const m={...i,...y};o(m);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();o(v),c(!0),setTimeout(()=>c(!1),2e3)}}catch{}};if(!i)return null;const h=r("schedule.days",{returnObjects:!0}),g=(()=>{if(!i.enabled)return null;const y=new Date,m=new Date;m.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 m.setDate(m.getDate()+b),m.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})();return R.jsxs("div",{style:et.panel,children:[R.jsxs("div",{style:et.header,children:[R.jsx("span",{style:et.title,children:r("schedule.title")}),R.jsx("button",{onClick:()=>f({enabled:!i.enabled}),style:{...et.toggle,background:i.enabled?"#22c55e":"#374151"},children:i.enabled?r("schedule.enabled"):r("schedule.disabled")})]}),R.jsxs("div",{style:{...et.fields,opacity:i.enabled?1:.4,pointerEvents:i.enabled?"auto":"none"},children:[R.jsxs("div",{style:et.field,children:[R.jsx("label",{style:et.label,children:r("schedule.dayLabel")}),R.jsx("div",{style:et.dayRow,children:h.map((y,m)=>R.jsx("button",{onClick:()=>f({dayOfWeek:m}),style:{...et.dayBtn,background:i.dayOfWeek===m?"#6366f1":"#1f2937"},children:y},m))})]}),R.jsxs("div",{style:et.field,children:[R.jsx("label",{style:et.label,children:r("schedule.timeLabel")}),R.jsxs("div",{style:et.timeRow,children:[R.jsx("input",{type:"number",min:0,max:23,value:i.hour,onChange:y=>f({hour:parseInt(y.target.value)||0}),style:et.timeInput}),R.jsx("span",{style:et.colon,children:":"}),R.jsx("input",{type:"number",min:0,max:59,value:String(i.minute).padStart(2,"0"),onChange:y=>f({minute:parseInt(y.target.value)||0}),style:et.timeInput})]})]})]}),R.jsxs("div",{style:et.footer,children:[s&&R.jsx("span",{style:et.savedLabel,children:r("schedule.saved")}),g&&R.jsxs("span",{style:et.nextRun,children:[r("schedule.nextRun"),": ",g]})]})]})}const et={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 ub(r,i,o){if(!i)return o("duration.inProgress");const s=new Date(i).getTime()-new Date(r).getTime(),c=Math.round(s/1e3);return c<60?o("duration.seconds",{count:c}):o("duration.minutes",{m:Math.floor(c/60),s:c%60})}function rb(r){return new Date(r).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}const sb={bug:"#ef4444",ux:"#f97316","feature-request":"#3b82f6","goal-gap":"#8b5cf6"};function ob(r){return r==null?"—":r<1e-4?"< $0.0001":r<.01?`$${r.toFixed(4)}`:r<1?`$${r.toFixed(3)}`:`$${r.toFixed(2)}`}function cb(){const{t:r}=qa(),i=ei(),[o,s]=T.useState([]),[c,f]=T.useState(!1),h=()=>{fetch("/api/runs").then(g=>g.json()).then(g=>{const y=new Set(g.map(N=>N.runId)),m=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 z=[];if(m&&b){const N=(Date.now()-new Date(b).getTime())/6e4;y.has(m)||N>120?v():z=[{runId:m,startedAt:b,completedAt:null,status:"running",agentCount:0,completedAgents:0,errorAgents:0,findingCount:0,findingsByCategory:{},hasReport:!1,isLive:!0}]}s([...z,...g])}).catch(()=>{})};return T.useEffect(()=>{h();const g=setInterval(h,5e3);return()=>clearInterval(g)},[]),R.jsxs("main",{style:Ne.main,children:[R.jsxs("div",{style:Ne.pageHeader,children:[R.jsx("h1",{style:Ne.pageTitle,children:r("dashboard.title")}),R.jsx("button",{onClick:()=>f(!0),style:Ne.startBtn,children:r("dashboard.startRun")})]}),R.jsx(nb,{}),R.jsx(ib,{}),o.length===0?R.jsxs("div",{style:Ne.empty,children:[R.jsx("img",{src:"/mascot.svg",alt:"shoal",style:Ne.emptyMascot}),R.jsx("p",{style:Ne.emptyTitle,children:r("dashboard.noRuns")}),R.jsx("p",{style:Ne.emptyHint,children:r("dashboard.noRunsHint")})]}):R.jsx("div",{style:Ne.tableWrapper,children:R.jsxs("table",{style:Ne.table,children:[R.jsx("thead",{children:R.jsx("tr",{children:["status","started","duration","findings","agents","cost","actions"].map(g=>R.jsx("th",{style:{...Ne.th,...g==="agents"||g==="findings"||g==="cost"?{textAlign:"center"}:{}},children:r(`table.${g}`)},g))})}),R.jsx("tbody",{children:o.map(g=>R.jsx(fb,{run:g,onView:()=>i(`/runs/${g.runId}`)},g.runId))})]})}),c&&R.jsx(lb,{onClose:()=>f(!1),onStarted:g=>{f(!1),localStorage.setItem("shoal-active-run-id",g),localStorage.setItem("shoal-active-run-started-at",new Date().toISOString()),h()}})]})}function fb({run:r,onView:i}){const{t:o}=qa(),s=r.status==="running",c=r.findingCount,f=Object.entries(r.findingsByCategory);return R.jsxs("tr",{style:Ne.row,children:[R.jsx("td",{style:Ne.td,children:R.jsx("span",{style:{...Ne.badge,background:s?"#f59e0b":"#22c55e"},children:o(`status.${r.status}`)})}),R.jsx("td",{style:{...Ne.td,...Ne.muted},children:rb(r.startedAt)}),R.jsx("td",{style:{...Ne.td,...Ne.muted},children:ub(r.startedAt,r.completedAt,o)}),R.jsxs("td",{style:{...Ne.td,textAlign:"center"},children:[c>0?R.jsx("span",{style:Ne.findingsGroup,children:f.map(([h,g])=>R.jsx("span",{style:{...Ne.badge,background:sb[h]??"#6b7280"},children:g},h))}):R.jsx("span",{style:Ne.muted,children:"—"}),r.regressionChecked>0&&R.jsx("span",{style:{display:"block",fontSize:"0.7rem",marginTop:"0.25rem",color:r.regressionFailed>0?"#ef4444":"#22c55e"},children:r.regressionFailed>0?`⚠ ${r.regressionFailed} regressed`:`✓ ${r.regressionChecked} still fixed`})]}),R.jsxs("td",{style:{...Ne.td,textAlign:"center",...Ne.muted},children:[r.completedAgents,"/",r.agentCount]}),R.jsx("td",{style:{...Ne.td,textAlign:"center",...Ne.muted},children:ob(r.estimatedCostUSD)}),R.jsx("td",{style:Ne.td,children:R.jsx("button",{onClick:i,style:Ne.viewBtn,children:r.isLive?Fe.language==="ja"?"ログ →":"Log →":Fe.language==="ja"?"表示 →":"View →"})})]})}const Ne={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}},om=[10,24,38,52,66,80,17,31,45,59,73,87],Um={explorer:{bg:"rgba(59,130,246,0.12)",text:"#93c5fd",dot:"#3b82f6",glow:"#3b82f620"},browser:{bg:"rgba(34,197,94,0.12)",text:"#86efac",dot:"#22c55e",glow:"#22c55e20"},regression:{bg:"rgba(249,115,22,0.12)",text:"#fdba74",dot:"#f97316",glow:"#f9731620"}},db={explorer:"EX",browser:"BR",regression:"RG"};function hb(r){const i=new Map;let o=null,s=0;for(const c of r){const f=c.match(/^\[(explorer|browser|regression)\] (.+?) start/);if(f){const m=f[1],b=f[2],v=`${m}:${b}`;if(i.has(v))i.get(v).status="running";else{const z=s++;i.set(v,{id:v,type:m,name:b,status:"running",currentPath:"/",findingsCount:0,lastFinding:"",yPercent:om[z%om.length],swimDuration:7+z%5,swimDelay:-(z*1.7),bobDuration:2.5+z%3*.5,bobDelay:-(z*.6),reverseSwim:z%2!==0})}o=v;continue}const h=c.match(/^\[(explorer|browser|regression)\] (.+?) (?:done|cancelled)/);if(h){const m=`${h[1]}:${h[2]}`;i.has(m)&&(i.get(m).status="done"),o===m&&(o=null);continue}const g=c.match(/→ navigate\(\{[^}]*"path"\s*:\s*"([^"]+)"/);if(g&&o&&i.has(o)){i.get(o).currentPath=g[1];continue}const y=c.match(/→ \[findings\] saved: "([^"]+)"/);if(y&&o&&i.has(o)){const m=i.get(o);m.findingsCount+=1,m.lastFinding=y[1]}}return Array.from(i.values())}const mb=`
|
|
69
|
+
@keyframes shoal-swim {
|
|
70
|
+
from { left: 2%; }
|
|
71
|
+
to { left: calc(100% - 280px); }
|
|
72
|
+
}
|
|
73
|
+
@keyframes shoal-bob {
|
|
74
|
+
from { transform: translateY(0); }
|
|
75
|
+
to { transform: translateY(9px); }
|
|
76
|
+
}
|
|
77
|
+
@keyframes shoal-pulse {
|
|
78
|
+
0%, 100% { opacity: 0.55; transform: scale(1); }
|
|
79
|
+
50% { opacity: 1; transform: scale(1.15); }
|
|
80
|
+
}
|
|
81
|
+
@keyframes shoal-fade-in {
|
|
82
|
+
from { opacity: 0; transform: scale(0.85); }
|
|
83
|
+
to { opacity: 1; transform: scale(1); }
|
|
84
|
+
}
|
|
85
|
+
`;function gb({logLines:r,isLive:i}){const o=T.useMemo(()=>hb(r),[r]),s=o.filter(f=>f.status==="running"),c=o.filter(f=>f.status==="done");return R.jsxs("div",{style:Jn.container,children:[R.jsx("style",{children:mb}),R.jsx("div",{style:Jn.waterLayer}),o.length===0?R.jsx("div",{style:Jn.empty,children:i?"Waiting for agents to start…":"No agent activity recorded"}):R.jsxs(R.Fragment,{children:[s.map(f=>R.jsx(pb,{agent:f},f.id)),c.length>0&&R.jsx("div",{style:Jn.doneRow,children:c.map(f=>{const h=Um[f.type];return R.jsxs("span",{style:{...Jn.doneBadge,color:h.text,borderColor:`${h.dot}44`},children:["✓ ",f.name]},f.id)})})]})]})}function pb({agent:r}){const i=Um[r.type],[o,s]=T.useState(!1),c=T.useRef(r.findingsCount);T.useEffect(()=>{if(r.findingsCount>c.current){c.current=r.findingsCount,s(!0);const h=setTimeout(()=>s(!1),1500);return()=>clearTimeout(h)}},[r.findingsCount]);const f=r.currentPath.length>26?"…"+r.currentPath.slice(-26):r.currentPath;return R.jsx("div",{style:{position:"absolute",top:`${r.yPercent}%`,animationName:"shoal-swim",animationDuration:`${r.swimDuration}s`,animationDelay:`${r.swimDelay}s`,animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationDirection:r.reverseSwim?"alternate-reverse":"alternate",animationFillMode:"both"},children:R.jsxs("div",{style:{position:"relative",animationName:"shoal-bob",animationDuration:`${r.bobDuration}s`,animationDelay:`${r.bobDelay}s`,animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationDirection:"alternate",animationFillMode:"both"},children:[R.jsx("div",{style:{animationName:"shoal-fade-in",animationDuration:"0.4s",animationTimingFunction:"ease-out",animationFillMode:"both"},children:R.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",background:i.bg,border:`1px solid ${o?i.dot+"88":i.dot+"33"}`,borderRadius:"20px",padding:"4px 10px 4px 7px",whiteSpace:"nowrap",boxShadow:o?`0 0 40px ${i.dot}cc, 0 0 18px ${i.dot}88, 0 2px 8px rgba(0,0,0,0.3)`:`0 0 16px ${i.glow}, 0 2px 8px rgba(0,0,0,0.3)`,transition:o?"box-shadow 0.08s ease-in, border-color 0.08s ease-in":"box-shadow 1.4s ease-out, border-color 1.4s ease-out",backdropFilter:"blur(4px)",cursor:"default",userSelect:"none"},children:[R.jsx("span",{style:{width:"6px",height:"6px",borderRadius:"50%",background:i.dot,flexShrink:0,animationName:"shoal-pulse",animationDuration:"1.8s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationFillMode:"both"}}),R.jsx("span",{style:{fontSize:"0.6rem",fontWeight:700,color:i.dot,fontFamily:"monospace",letterSpacing:"0.08em"},children:db[r.type]}),R.jsx("span",{style:{fontSize:"0.75rem",fontWeight:600,color:i.text,fontFamily:"monospace"},children:r.name}),R.jsx("span",{style:{fontSize:"0.65rem",color:`${i.text}88`,fontFamily:"monospace"},children:f}),r.findingsCount>0&&R.jsxs("span",{style:{fontSize:"0.6rem",fontWeight:700,color:"#fbbf24",fontFamily:"monospace",letterSpacing:"0.02em"},children:["⚡",r.findingsCount]})]})}),o&&r.lastFinding&&R.jsxs("div",{style:{position:"absolute",top:"calc(100% + 5px)",left:0,background:"rgba(251,191,36,0.12)",border:"1px solid #fbbf2455",borderRadius:"8px",padding:"2px 8px",fontSize:"0.6rem",color:"#fbbf24",fontFamily:"monospace",whiteSpace:"nowrap",pointerEvents:"none",animationName:"shoal-fade-in",animationDuration:"0.25s",animationTimingFunction:"ease-out",animationFillMode:"both"},children:["⚡ ",r.lastFinding.length>34?r.lastFinding.slice(0,34)+"…":r.lastFinding]})]})})}const Jn={container:{flex:1,position:"relative",background:"linear-gradient(180deg, #080f1e 0%, #0f172a 60%, #0b1220 100%)",overflow:"hidden",minHeight:"280px"},waterLayer:{position:"absolute",inset:0,backgroundImage:["radial-gradient(ellipse at 20% 40%, rgba(59,130,246,0.04) 0%, transparent 55%)","radial-gradient(ellipse at 75% 60%, rgba(34,197,94,0.04) 0%, transparent 55%)","radial-gradient(ellipse at 50% 80%, rgba(249,115,22,0.03) 0%, transparent 40%)"].join(", "),pointerEvents:"none"},empty:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"#1e293b",fontSize:"0.8rem",fontFamily:"monospace",textAlign:"center",letterSpacing:"0.04em"},doneRow:{position:"absolute",bottom:"0.75rem",left:0,right:0,display:"flex",gap:"0.5rem",justifyContent:"center",flexWrap:"wrap",padding:"0 2rem"},doneBadge:{fontSize:"0.6rem",fontWeight:600,fontFamily:"monospace",padding:"2px 8px",border:"1px solid",borderRadius:"12px",opacity:.45,letterSpacing:"0.04em"}};function yb(){const{runId:r}=Iy(),i=ei(),{t:o}=qa(),[s,c]=T.useState("log"),[f,h]=T.useState([]),[g,y]=T.useState(!1),[m,b]=T.useState(!1),[v,z]=T.useState(!1),[N,L]=T.useState(!1),[B,q]=T.useState(!1),[Y,V]=T.useState(null),[X,Q]=T.useState(!1),[I,K]=T.useState(!1),J=T.useRef(null),de=async()=>{Q(!0),K(!1);try{const Te=await(await fetch(`/api/runs/${r}/diary`,{method:"POST"})).json();Te.content?V(Te.content):K(!0)}catch{K(!0)}finally{Q(!1)}},fe=async()=>{L(!0),q(!1),await fetch(`/api/runs/${r}/cancel`,{method:"POST"}).catch(()=>{})};return T.useEffect(()=>{fetch(`/api/runs/${r}/log`).then(ee=>ee.json()).then(ee=>{h(ee.lines),b(ee.done),ee.done||y(!0)}).catch(()=>{}),fetch(`/api/runs/${r}/report`,{method:"HEAD"}).then(ee=>z(ee.ok)).catch(()=>{})},[r]),T.useEffect(()=>{if(!g)return;let ee=!1;const Te=new EventSource(`/api/runs/${r}/events`),ie=()=>{b(!0),y(!1),Te.close(),fetch(`/api/runs/${r}/report`,{method:"HEAD"}).then(ue=>z(ue.ok)).catch(()=>{})};Te.onmessage=ue=>{const j=JSON.parse(ue.data);h(G=>[...G,j])},Te.addEventListener("done",ie);const ae=setTimeout(()=>{Te.readyState!==EventSource.OPEN&&(Te.close(),le())},3e3);Te.onerror=()=>{clearTimeout(ae),Te.close(),ee||le()};function le(){let ue=0;const j=setInterval(async()=>{if(ee){clearInterval(j);return}try{const G=await fetch(`/api/runs/${r}/log`);if(!G.ok)return;const F=await G.json();F.lines.length>ue&&(h(F.lines),ue=F.lines.length),F.done&&(clearInterval(j),b(!0),y(!1),fetch(`/api/runs/${r}/report`,{method:"HEAD"}).then(ve=>z(ve.ok)).catch(()=>{}))}catch{}},2e3);return()=>clearInterval(j)}return()=>{ee=!0,clearTimeout(ae),Te.close()}},[g,r]),T.useEffect(()=>{J.current&&(J.current.scrollTop=J.current.scrollHeight)},[f]),T.useEffect(()=>{s!=="diary"||Y||fetch(`/api/runs/${r}/diary`).then(ee=>ee.ok?ee.json():null).then(ee=>{ee!=null&&ee.content&&V(ee.content)}).catch(()=>{})},[s,r,Y]),R.jsxs("div",{style:Se.wrapper,children:[R.jsxs("div",{style:Se.toolbar,children:[R.jsx("button",{onClick:()=>i("/"),style:Se.backBtn,children:o("detail.back")}),R.jsx("span",{style:Se.runId,children:r}),g&&R.jsx("span",{style:Se.liveBadge,children:"● LIVE"}),g&&!B&&R.jsx("button",{onClick:()=>q(!0),style:Se.cancelBtn,disabled:N,children:N?"…":o("detail.cancel")}),g&&B&&R.jsxs("div",{style:Se.cancelConfirm,children:[R.jsx("span",{style:Se.cancelConfirmLabel,children:o("detail.cancelConfirmLabel")}),R.jsx("button",{onClick:fe,style:Se.cancelConfirmYes,children:o("detail.cancelConfirmYes")}),R.jsx("button",{onClick:()=>q(!1),style:Se.cancelConfirmNo,children:o("detail.cancelConfirmNo")})]})]}),R.jsxs("div",{style:Se.tabs,children:[R.jsx("button",{style:{...Se.tab,...s==="log"?Se.tabActive:{}},onClick:()=>c("log"),children:o("detail.tabLog")}),R.jsx("button",{style:{...Se.tab,...s==="swarm"?Se.tabActive:{}},onClick:()=>c("swarm"),children:o("detail.tabSwarm")}),R.jsx("button",{style:{...Se.tab,...s==="report"?Se.tabActive:{},...v?{}:Se.tabDisabled},onClick:()=>v&&c("report"),disabled:!v,children:o("detail.tabReport")}),R.jsx("button",{style:{...Se.tab,...s==="diary"?Se.tabActive:{},...m?{}:Se.tabDisabled},onClick:()=>m&&c("diary"),disabled:!m,children:o("detail.tabDiary")})]}),s==="swarm"&&R.jsx(gb,{logLines:f,isLive:g}),s==="log"&&R.jsxs("div",{ref:J,style:Se.log,children:[f.length===0&&!g&&R.jsx("p",{style:Se.logEmpty,children:o("detail.noLog")}),f.map((ee,Te)=>R.jsx("div",{style:Se.logLine,children:ee},Te)),g&&R.jsx("div",{style:Se.cursor,children:"▌"}),m&&f.length>0&&R.jsxs("div",{style:Se.logDone,children:["— ",o("status.completed")," —"]})]}),s==="report"&&R.jsx("iframe",{src:`/api/runs/${r}/report`,style:Se.frame,title:`Report for ${r}`}),s==="diary"&&R.jsxs("div",{style:Se.diaryWrapper,children:[!Y&&!X&&R.jsxs("div",{style:Se.diaryPrompt,children:[R.jsx("p",{style:Se.diaryHint,children:o("detail.diaryHint")}),I&&R.jsx("p",{style:Se.diaryErrMsg,children:o("detail.diaryError")}),R.jsx("button",{onClick:de,style:Se.generateBtn,children:o("detail.generateDiary")})]}),X&&R.jsx("div",{style:Se.diaryLoading,children:o("detail.generatingDiary")}),Y&&R.jsx("pre",{style:Se.diaryContent,children:Y})]})]})}const Se={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"},diaryWrapper:{flex:1,overflowY:"auto",background:"#f8fafc"},diaryPrompt:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"1rem",height:"100%",minHeight:"200px",padding:"3rem 2rem"},diaryHint:{fontSize:"0.875rem",color:"#64748b",textAlign:"center",maxWidth:"400px"},diaryErrMsg:{fontSize:"0.8rem",color:"#ef4444"},generateBtn:{background:"#1e293b",color:"#f8fafc",border:"none",borderRadius:"8px",padding:"0.6rem 1.5rem",fontSize:"0.875rem",fontWeight:600,cursor:"pointer"},diaryLoading:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",minHeight:"200px",fontSize:"0.875rem",color:"#64748b"},diaryContent:{margin:"0 auto",maxWidth:"720px",padding:"2rem",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:"0.9rem",lineHeight:1.8,color:"#1e293b",whiteSpace:"pre-wrap",wordBreak:"break-word",background:"transparent",border:"none"}},Cu={bug:"#ef4444",ux:"#f97316","feature-request":"#3b82f6","goal-gap":"#8b5cf6"};function vb(){const{t:r}=qa(),i=ei(),[o,s]=T.useState([]),[c,f]=T.useState([]),[h,g]=T.useState(""),[y,m]=T.useState("all"),[b,v]=T.useState(""),[z,N]=T.useState(!1),[L,B]=T.useState(!1);T.useEffect(()=>{fetch("/api/findings").then(K=>K.ok?K.json():[]).then(s).catch(()=>{})},[]);const q=[...o,...c],Y=q.filter(K=>{if(y!=="all"&&K.category!==y)return!1;if(h){const J=h.toLowerCase();return K.title.toLowerCase().includes(J)||K.body.toLowerCase().includes(J)}return!0}),V=Array.from(new Set(q.map(K=>K.category))),X=async()=>{const J=await(await fetch("/api/findings/export")).blob(),de=URL.createObjectURL(J),fe=document.createElement("a");fe.href=de,fe.download=`shoal-findings-${Date.now()}.json`,fe.click(),URL.revokeObjectURL(de)},Q=async()=>{if(b.trim()){N(!0),B(!1);try{const K=await fetch("/api/findings/proxy-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:b.trim()})});if(!K.ok){B(!0);return}const J=await K.json();Array.isArray(J.findings)?f(J.findings.map(de=>({...de,runId:de.runId??"imported"}))):B(!0)}catch{B(!0)}finally{N(!1)}}},I=["all",...Array.from(new Set(["bug","ux","feature-request","goal-gap",...V]))];return R.jsxs("div",{style:Re.page,children:[R.jsxs("div",{style:Re.pageHeader,children:[R.jsx("button",{onClick:()=>i("/"),style:Re.backBtn,children:r("detail.back")}),R.jsxs("div",{style:Re.headerMain,children:[R.jsx("h1",{style:Re.title,children:r("hall.title")}),R.jsx("span",{style:Re.subtitle,children:r("hall.subtitle")})]}),R.jsxs("div",{style:Re.headerActions,children:[R.jsxs("span",{style:Re.totalCount,children:[q.length," findings"]}),R.jsx("button",{onClick:X,style:Re.exportBtn,disabled:o.length===0,children:r("hall.export")})]})]}),R.jsxs("div",{style:Re.toolbar,children:[R.jsx("input",{style:Re.search,placeholder:r("hall.searchPlaceholder"),value:h,onChange:K=>g(K.target.value)}),R.jsx("div",{style:Re.filters,children:I.map(K=>R.jsx("button",{style:{...Re.filterBtn,...y===K?Re.filterBtnActive:{},...K!=="all"&&Cu[K]?{borderColor:y===K?Cu[K]:"transparent",color:y===K?Cu[K]:"#64748b"}:{}},onClick:()=>m(K),children:K==="all"?r("hall.filterAll"):K},K))})]}),R.jsxs("div",{style:Re.importBar,children:[R.jsx("input",{style:Re.importInput,placeholder:r("hall.importPlaceholder"),value:b,onChange:K=>v(K.target.value),onKeyDown:K=>K.key==="Enter"&&Q()}),R.jsx("button",{onClick:Q,style:Re.importBtn,disabled:z||!b.trim(),children:r(z?"hall.importing":"hall.import")}),L&&R.jsx("span",{style:Re.importError,children:r("hall.importError")}),c.length>0&&R.jsxs("span",{style:Re.importedBadge,children:["+",c.length," imported"]})]}),R.jsx("div",{style:Re.list,children:Y.length===0?R.jsx("p",{style:Re.empty,children:q.length===0?r("hall.noFindings"):r("hall.noResults")}):Y.map(K=>R.jsx(bb,{finding:K,onRunClick:K.runId!=="imported"?()=>i(`/runs/${K.runId}`):void 0},`${K.runId}:${K.id}`))})]})}function bb({finding:r,onRunClick:i}){const o=Cu[r.category]??"#6b7280",s=new Date(r.timestamp).toLocaleDateString("ja-JP"),[c,f]=T.useState(!1),h=r.body.length>160?r.body.slice(0,160)+"…":r.body;return R.jsxs("div",{style:Re.card,onClick:()=>f(g=>!g),children:[R.jsxs("div",{style:Re.cardHeader,children:[R.jsx("span",{style:{...Re.catBadge,background:o},children:r.category}),R.jsxs("div",{style:Re.cardMeta,children:[i?R.jsx("button",{onClick:g=>{g.stopPropagation(),i()},style:Re.runLink,children:r.runId}):R.jsx("span",{style:Re.importedTag,children:"imported"}),R.jsx("span",{style:Re.metaSep,children:"·"}),R.jsx("span",{style:Re.metaDate,children:s})]})]}),R.jsx("h3",{style:Re.cardTitle,children:r.title}),R.jsx("p",{style:Re.cardBody,children:c?r.body:h}),r.body.length>160&&R.jsx("span",{style:Re.expandHint,children:c?"▲":"▼"})]})}const Re={page:{minHeight:"calc(100vh - 52px)",background:"#f8fafc"},pageHeader:{display:"flex",alignItems:"center",gap:"1rem",padding:"1rem 2rem",background:"#fff",borderBottom:"1px solid #e2e8f0"},backBtn:{background:"transparent",border:"none",color:"#475569",fontSize:"0.875rem",fontWeight:600,cursor:"pointer",padding:0,flexShrink:0},headerMain:{display:"flex",flexDirection:"column",gap:"2px",flex:1},title:{fontSize:"1.1rem",fontWeight:700,color:"#1e293b",margin:0},subtitle:{fontSize:"0.75rem",color:"#94a3b8"},headerActions:{display:"flex",alignItems:"center",gap:"0.75rem"},totalCount:{fontSize:"0.75rem",color:"#94a3b8",fontFamily:"monospace"},exportBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"6px",padding:"5px 12px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},toolbar:{display:"flex",alignItems:"center",gap:"0.75rem",padding:"0.75rem 2rem",background:"#fff",borderBottom:"1px solid #e2e8f0",flexWrap:"wrap"},search:{flex:"1 1 200px",border:"1px solid #e2e8f0",borderRadius:"8px",padding:"6px 12px",fontSize:"0.875rem",outline:"none",color:"#1e293b",background:"#f8fafc"},filters:{display:"flex",gap:"0.25rem",flexWrap:"wrap"},filterBtn:{background:"transparent",border:"1px solid transparent",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600,color:"#64748b",cursor:"pointer"},filterBtnActive:{background:"#f1f5f9",borderColor:"#cbd5e1",color:"#1e293b"},importBar:{display:"flex",alignItems:"center",gap:"0.5rem",padding:"0.6rem 2rem",background:"#f8fafc",borderBottom:"1px solid #e2e8f0",flexWrap:"wrap"},importInput:{flex:"1 1 300px",border:"1px solid #e2e8f0",borderRadius:"6px",padding:"5px 10px",fontSize:"0.8rem",outline:"none",color:"#475569",background:"#fff",fontFamily:"monospace"},importBtn:{background:"#1e293b",color:"#f8fafc",border:"none",borderRadius:"6px",padding:"5px 14px",fontSize:"0.8rem",fontWeight:600,cursor:"pointer"},importError:{fontSize:"0.75rem",color:"#ef4444"},importedBadge:{fontSize:"0.7rem",fontWeight:700,color:"#8b5cf6",background:"#ede9fe",borderRadius:"10px",padding:"2px 8px"},list:{maxWidth:"800px",margin:"0 auto",padding:"1.5rem 2rem",display:"flex",flexDirection:"column",gap:"0.75rem"},empty:{textAlign:"center",color:"#94a3b8",fontSize:"0.875rem",padding:"3rem 0"},card:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"10px",padding:"1rem 1.25rem",cursor:"pointer",transition:"box-shadow 0.15s ease"},cardHeader:{display:"flex",alignItems:"center",gap:"0.5rem",marginBottom:"0.5rem"},catBadge:{display:"inline-block",padding:"2px 8px",borderRadius:"9999px",fontSize:"0.65rem",fontWeight:700,color:"#fff",flexShrink:0},cardMeta:{display:"flex",alignItems:"center",gap:"0.35rem",marginLeft:"auto"},runLink:{background:"transparent",border:"none",color:"#3b82f6",fontSize:"0.7rem",fontFamily:"monospace",cursor:"pointer",padding:0,textDecoration:"underline"},importedTag:{fontSize:"0.65rem",color:"#8b5cf6",fontFamily:"monospace"},metaSep:{color:"#cbd5e1",fontSize:"0.75rem"},metaDate:{fontSize:"0.7rem",color:"#94a3b8"},cardTitle:{fontSize:"0.9rem",fontWeight:600,color:"#1e293b",margin:"0 0 0.3rem",lineHeight:1.4},cardBody:{fontSize:"0.8rem",color:"#475569",lineHeight:1.6,margin:0},expandHint:{fontSize:"0.6rem",color:"#cbd5e1",display:"block",textAlign:"right",marginTop:"0.25rem"}};function Sb(){return R.jsxs(R.Fragment,{children:[R.jsx(ab,{}),R.jsxs(h0,{children:[R.jsx(Eu,{path:"/",element:R.jsx(cb,{})}),R.jsx(Eu,{path:"/runs/:runId",element:R.jsx(yb,{})}),R.jsx(Eu,{path:"/hall",element:R.jsx(vb,{})})]})]})}my.createRoot(document.getElementById("root")).render(R.jsx(T.StrictMode,{children:R.jsx(B0,{children:R.jsx(Sb,{})})}));
|